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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var E0,vSt,THt,W3,O0,S00,W0t,Vj,oU,att,itL,Ot7,GO,Y0W,m7U,ts,rs0,sU0,L0s,oSM,MW0,tW0,R$U,BHM,CL7,z$0,T2,AsW,iM,Zt3,O6,csH,bM,$I,F0$,QU3,RE,Pc,uM3,vIO,euS,z2,EI0,Tn7,S6W,a00,diW,Hc,O7t,Y6S,hu0,WO,KgL,$iL,jEt,sE3,Nns,Ss,yes,Ei,q6L,re0,tAU,Rut,PMj,yv,CML,BnS,Xc$,zuL,l0M,Aet,Z7W,FgO,QE0,nIW,Ui0,vsj,SiM,aw0,Wf0,RC,i9L,m1W,yit,riO,jCM,Kf$,sCM,$1U,C9,H7j,Xt,zQ,HO,N9U,Ai,VsU,kQ0,LfL,Qv,oss,Ji3,MsU,fwj,ts$,R_$,PSS,x1W,cO,CSj,z_t,p9,H9U,wO3,em,gs0,D1t,AiH,U17,vms,eTM,iY3,Tut,IB7,YJO,mf0,qJS,rr3,s$S,om$,RTM,
C6W,ZYU,sJ,w$O,Q$S,gmS,Jr,GD,fY,l6,Ar,ZB,dqt,S9O,W7W,OFU,bFj,Y90,d5,mqS,Sl,Wu,a0,i9,q9t,r7M,hU7,K77,$qW,s0H,N5U,kM$,L7s,oat,m7,b9,J77,GMt,MlM,f2j,tlt,RUs,P9W,xqs,Nq,ka,LF,o0,GM,C9L,Mq,zUM,c7H,fF,wuL,F77,Q00,Pu,gaS,us0,naj,xa,puj,CF,dRj,Exs,Xs,Sa$,Tr0,W1s,aPs,i0O,O0s,Hu,IPS,b0L,Z2,YaW,mRH,cu,w5,Fs,Qt,ycS,rcS,qaW,g5,K1W,$Rs,j23,nF,U9,pF,vn,ey,dr,s20,NrM,L1O,VyW,oxM,JcO,G8M,MyL,tyS,fP$,RWH,Pe$,xR0,BrM,a2,CeW,XnU,I2,zWt,yN,qR,lPU,Z00,cc3,wnS,Q2s,gxt,uv$,pnL,vhO,eHM,duL,Eh$,TfU,Sl$,OXS,K0,I40,bXt,Yl0,
muU,yzO,qlM,hH0,Mtt,tt0,f4S,xu7,BfS,o2,CZM,l4j,ZXM,czL,ww0,Fij,Quj,gh3,u$H,nhW,UuM,pwU,HXS,vGW,ed0,d4M,EGU,Ths,SE0,Ws0,agS,iD0,YEj,Igt,qEL,m43,yft,KsO,$47,j_W,rfL,Nht,hdt,LsM,cn,VxO,Fv,gr,oG0,Gq$,Mx0,RdO,ZD$,x4j,P3t,C3H,zdW,BhM,uKs,FsM,nG0,D4s,U4L,px7,vc0,d9t,eZt,Ec$,TZj,SWM,WE7,i4W,IV0,b4t,YWU,yES,m9L,ocW,Ua,JEO,MIL,tIt,fV$,RZM,PgL,BZM,Cgt,XbM,St,Ww,zZj,wb0,Ol,Iu,uy7,D90,aTS,qu,ITt,bwU,Rh$,m_s,fTt,jt,PYW,x_U,CYs,Xis,zhs,lTj,HwO,AaS,ZwO,wiS,Fq$,gL3,QHM,D_0,Mu,Ru,pi3,ve7,eNt,dkt,Ees,Tts,WYM,iUt,aFO,
F$,gf,KYL,Ul,LYS,VaL,pX,Jot,oet,CRs,X8S,zNO,HUs,w8U,QMW,geM,unW,ne0,UkH,vft,eeU,EE,Ef0,WH0,aqS,iIt,OIj,bIW,SNL,dGt,Iqj,Sx,mG3,heU,qN3,i3,$Gt,sI$,NbO,kNj,LHH,YG,VhW,JIO,of0,GNM,th$,q4,XVt,lqt,AI$,cIj,$G,FH0,kG,Vl,LD,nfL,wV3,DG0,Gq,eIt,fD,Px,TmH,a8S,OkW,I8j,bks,xG,Yh7,Bx,my$,qh0,r0S,hIL,KhS,jOs,l3,sO$,Nmt,Af,wh,VOH,okS,J0U,GvW,f8U,RI$,xyU,Bmj,ZkO,c0O,l8t,Fh7,QOL,gk$,dZ,Tr,SI,UyO,pY3,as,vqt,ebH,dn0,EqM,SwM,W$j,a_j,i2M,T3M,O2t,bg,b2s,mnM,Yc,Yw7,yW$,I_0,qwt,yU,hbj,K$j,$nO,jmM,N3U,smL,kzs,oqt,L$S,GzM,Cn7,
XPs,l_3,Z20,AWM,H2H,cWj,F$L,gq3,Qm$,nq$,L4,UnM,pPj,vBS,eaW,WNW,iB0,amH,OB$,Im7,tE,f4,bBL,mgM,qzM,KNt,jq3,$gU,p4,sqW,yUO,GES,tXW,fmL,Ra0,TR,P4$,BVW,zas,AUS,HB0,FNL,Qq$,gBH,uqt,DgU,dES,UgS,vHO,elj,EHM,Tgs,WU3,So0,iQS,aYL,ha,OQU,bQ7,YoU,r_j,V8,oH,hls,KUU,Ja,Ng0,fw,RH,xL,oH3,Bi,M7t,zR,t70,fYM,Rls,PqM,Aa,xE0,BgH,CqM,zlH,HQ0,c_3,FUj,UI,QG3,gHt,u1H,nHL,DEL,UE0,pKH,vEM,dt,EE3,T13,SjW,WxM,apL,io$,OoU,IpU,boM,Yj3,md0,ykH,qjM,IM,JkU,Go$,bR,Ye,mY,MU7,tUM,fps,RXH,PX0,xdM,B1S,Ho0,Ak$,ZoM,ckj,wvM,ho,$e,ja,s$,LU,
Vp,oM,Qb0,Gd,uDL,Mk,nE0,Dd0,to,UdU,pv7,vvs,OqL,bqW,rGS,jBs,$r$,IoO,sBL,LIU,ziU,tw$,cG$,RiW,Zq0,wg$,CU,QBH,zd,ueU,nvS,Ur0,pgU,vJU,dCU,Ao,TCH,S_3,W5t,aI3,i1s,O1s,IIO,EJ$,mC7,yg0,q_S,c8,s5W,NCt,j57,L50,V2L,Jg0,Gjt,oJW,BCt,XzM,lIO,AgU,db,gJt,Q5H,pzM,egt,deL,Ej3,Tq3,SGt,W8H,bl,qGW,hg0,meW,YGS,r8t,iML,$eW,tMM,NqU,kIt,L8S,HMt,ZMj,lyS,ujL,zgS,ay3,gjt,sZL,MMH,A8W,K80,Iy0,OMj,bMH,y80,Xa0,GN,Ovj,bvj,YKj,mPS,yX$,knH,MKj,tK$,ll,R07,BBt,lxj,z07,AXL,ZvM,w50,Q7S,FSS,gz$,UN,ucU,nzO,DPt,pI,TpO,Ep$,d0O,irW,SRt,OrL,
a7t,I7S,eO,br$,qRH,m0$,y1M,hJt,jt7,stL,LC0,VBj,opW,GUt,Tv,tBH,PwL,f7L,x0U,zJO,l7H,Zr0,wj$,Oh,IO,ubs,npS,bW,Yk,D0H,mh,yF,U03,qy,pj3,rm,v57,eot,Kk,d3j,E5W,TQ$,Skt,WXM,iOt,a9H,I9S,m30,Yk0,yRt,qkH,OOt,rRs,$3L,KX3,bOU,jat,sas,Lk,NQs,LXH,kp7,Vdt,o50,GpO,JRt,Mdj,oO,f9s,Ro0,tdj,x3O,BQ0,Cz3,HOH,cRO,uAt,p0O,J0,dTL,Eut,Gv,TNU,xk,BY,IkS,RO,zv,bp$,YUj,ynH,qUL,hPj,$TO,jW0,sWO,NN0,V1W,t1W,GwW,LLS,fk0,RPs,Z8,M1O,P1L,Fk,xTH,BNO,C13,XMs,Anj,zPW,Hps,FLW,QW$,UT0,DTS,e3H,ai$,ifU,IiO,YSO,mFH,qS0,rZM,h3j,$FS,jdL,sds,Lv$,
G5M,Mj3,Vjt,fiL,xFL,P_s,tjW,BIj,XB0,z3t,li3,HfL,AZ3,Tz,So,bn,m$,wBL,FvL,g0M,DFL,yI,qn,UFM,r3,ewt,dsj,ENL,K2,iy7,Yd0,ytM,qdU,rtW,hw0,KJL,snU,jo,N60,V9s,sw,oN7,M9O,t9M,fHO,Gxt,XJs,HyW,zw$,At$,wJL,QnM,uhM,pJO,Us0,ETj,om,TGM,S3t,JW,WWH,Gz,aft,iCH,OC$,bC7,IfW,Y3U,mU0,yM0,q33,NG0,LWS,oTj,VPW,$U$,hY3,GeS,tPW,BG$,CaW,lfS,FW3,gTU,Rm,uxU,DUs,UUO,viH,Ty0,acU,Ics,bl3,Ys$,mY0,Kuj,yCM,Nyt,k3H,Lut,oiL,BP,JCM,MTL,tT0,fct,R8U,PPt,xYO,Bys,X6$,z8S,ln,lcH,HlU,Zls,AW,ACW,w6t,u8O,w3,nit,DYH,UYM,eDO,d6H,p6$,TWS,iP0,OPS,
IXt,D_,bP0,qY0,r4S,eX,$6M,hDt,Kj7,NWM,kk0,LjW,Gk7,fXS,trU,Mr7,RDj,x60,BWj,HPO,C0L,A4L,c4W,ZPj,nZM,pXH,evt,Els,aeM,y9t,CB,r90,jx0,NsO,xB,wV,GBO,Rv3,feO,xSW,Bst,XA$,Cy3,zvS,le0,Fq,hiH,M$3,PyU,t$O,Zm,Z$s,c9$,wA7,Fkj,Qx$,glM,uOS,nlt,Eo,DS7,USM,pAt,vw$,eMH,aG,d50,SAt,aGt,i6M,qAt,hM7,K4s,$5H,siH,N$0,KQ,L43,V6H,owj,Jy7,G10,M6W,fG0,Px0,B$L,Cx$,Z6j,H6t,cy3,QiS,gwW,VR,uYL,nwH,D5W,v_t,dNM,exL,Tos,W33,ME,ie7,Oe7,aS$,ISS,beH,mNH,qT0,ydO,rdH,YTW,hx0,K3W,$Nj,jgM,sg0,NoU,kJ7,L3L,ViO,GJ7,JdO,Mi7,fSt,ti0,t_,Rxj,Bot,
lSs,PjW,Ze0,cdL,wHU,F3O,uBs,d$0,EKU,S1$,WZ$,cK,Ih0,yb0,hrS,wg,scj,jcs,NTt,gg,kf0,LZO,VN3,JbL,GfW,MN7,tNj,Rrs,PA$,set,lhH,Ab0,kX3,ND0,LOW,VZs,J5O,MZt,fb0,P$U,BDj,FOt,uWH,DZU,UZU,pht,vXj,eBt,EXM,TK0,aKW,igt,OgS,IKS,bg7,YFW,mJO,yus,hB0,sPS,ab,iX,Oj,Ib,NKL,mx,LM0,PV0,lKH,XkO,dpj,E1j,TYs,oXM,RBO,M40,Wwt,adt,iEU,BKU,IdS,YC0,yxM,hnW,Kw0,ob,Md,tk,Vq$,Lw3,Mq$,tqt,ldO,AxW,cx$,w7H,g1t,n13,uU7,p7S,e1U,ijU,Wm0,E7U,a30,TvL,Ojs,mwH,FD,Nvt,$wj,Lm$,VYL,JQt,Gyt,g1,MY$,R13,xwS,Bvt,XyW,CT0,Dp,cQM,Eg,Fm0,Q60,Sw,g7L,umt,
n70,DwW,UwO,pyt,v83,e5U,dx7,E8O,TJO,Sm$,Wds,alL,iGj,Wg,OGL,Ilj,bGU,YmU,mxj,yTS,qmj,rTj,h5j,KdS,$xM,j3H,ih,NJs,LdL,o8L,MpU,R5j,P5L,xxj,C5H,z5S,llH,HGt,ri,Fd3,cTS,Q3t,g8W,uLS,Uxj,p4s,vQU,dh3,GV,TjU,oB,WF0,aJ0,Mr,i5M,O5t,IJW,b5t,Pg,qP7,hA7,Njt,soO,LF7,VVM,Hg,oQS,JhH,MVM,fJW,RA0,xhO,BjW,tV$,Cm7,Ahj,FF7,Qo$,AG,gQ0,ug$,vOS,nQ0,Uhj,pW$,Wb$,djH,a60,OKt,bK3,YD3,mjt,yO3,qD0,rOM,Kb0,$j3,jv$,svS,NzH,Lb0,oOL,MuU,Pd3,Cdj,zKO,AO$,uh,ZK3,cO0,w2S,FbO,Qvs,uXO,nO$,DjS,Uj0,p2j,v9S,eCW,dAM,E9O,TPW,Sr0,an7,WrM,InU,YrH,
Ug,mA0,rYH,qr0,$At,jF$,sF$,kKL,o9j,M_0,GKt,V_S,RCW,fnj,X17,Prs,E_,BP0,w10,HdL,AYL,ZdH,cY7,Fr$,g9s,QF0,Tj,S2,ej0,n90,v3s,p17,DAt,UAM,Txt,WzO,iaH,aU$,YZt,ba0,yHH,hjt,KzU,rHs,$Dt,sJM,jJ3,k0j,o3O,YJ,JHH,G0j,fUO,CDH,ZaH,yK,weW,u60,peW,UDS,n3S,DD3,$J,Eo7,voj,e7O,TAt,Wa0,SuL,OLt,IWt,YuM,mHt,yPj,quj,rPM,KaS,$Ht,R5,sz0,NAS,ooL,JP$,X2,GP$,tkt,lWt,cz,xH$,z7W,BAW,Cft,cPO,ZLH,goM,wCs,uij,noH,F2,UH$,pCO,v4L,DHt,uk,eGL,QK,SLj,YLj,mBO,ypO,qL0,rpt,hG0,sV3,$Bs,jVt,KB$,kgO,o40,MnM,tnH,RGW,BR7,PoM,xBM,Cos,zG3,lMW,HT3,
Apj,ZTW,cpt,FBW,EG,g4j,DB7,n4t,pQj,UBO,v$M,eyj,TI,Tw7,qpU,mvj,Knt,$vt,V3j,o$W,JjS,Gmj,M3L,t3U,PNW,xvW,BwU,XtW,zyt,lst,h8,cjL,ZcH,Aj$,Hct,Fn3,u0t,QR$,Dvs,UvS,ptS,vR0,St$,eOH,dIL,ER0,Wet,aOt,iZL,T7O,Ne,bZ0,mIO,YtH,LM,qtO,r33,hOt,y3H,KeU,$I$,jf0,sfS,N70,LeW,Vz0,oRt,J3s,tzt,Mzs,B7O,G_H,Vw,Ctj,fOS,xI3,lO$,HZM,A3j,ZZH,c3M,wLW,FeL,Qft,gRO,uw$,nRt,UI3,pLj,vPj,doO,TO0,WGs,iSs,moU,bS0,Y53,IRt,OS0,yBj,q5t,rBH,h6L,zI,j1s,s1H,NOS,kGM,LGt,VJ7,tJ0,JBt,oPj,GGL,ABO,lRU,MJ7,z60,uH$,nPW,DoS,Uo7,pEU,vy$,eLM,dMt,SM0,
a$7,OH0,bHs,YML,mMs,hL3,rq3,K9H,jLj,W5,k60,L9L,Ve0,oyM,iH,OK,MeW,RLt,zL3,ZHO,cqL,wNS,F9W,QLs,gyt,ny0,UM0,DMH,pNt,ecj,dV0,EDj,Tls,Sv3,WPU,qP,azU,yls,qvU,b8O,IzO,mV0,Yvt,k7H,jDS,LP3,VHL,oDO,JlU,G7W,MH3,tHM,Pit,fzU,Rcs,Al3,Z8t,clj,QD0,gDL,wfS,FP3,dW$,TES,WtH,ixH,I5S,YH7,r60,hkS,KtL,sw7,jwj,$Wt,NEH,kWt,Vg7,oAt,J6H,GWO,Mg$,tgM,Rk3,PCS,xW7,BEO,CC$,XR0,HxH,A6j,c63,FtM,wR$,Qw7,MP,gA7,u_t,nAL,DWO,eFW,vF$,dX$,EFO,T0W,S7j,iNL,IAM,bNW,Y77,mXO,ySM,q7O,rSM,hFj,KcM,$Xt,sN3,jNj,N00,kF0,Lct,VbM,oF3,JSH,GFU,MbW,Xc,
fAt,RF$,xXU,B0j,CKW,XpM,zFs,lAt,ASL,ZNW,wpt,QNU,uQM,pp0,DXS,nF0,UX3,vbs,e2L,dzs,SX0,WAO,auW,i33,IuU,b3$,YX$,yw0,mzO,qX0,rwU,h20,jKt,sKs,NS$,klO,LA3,VF0,Glt,MFL,Dx,BSt,Cp$,z2$,AwW,H3U,Z3s,cw3,UK,vj,FA0,QKL,ER,TU,Dzt,gbW,ud3,v60,eqt,db0,E6s,aE0,OmS,IE$,bmM,Y8S,mb$,q8U,rD3,hqM,K6M,$b3,jT0,sTO,at,NMW,ki0,OR,L6$,Vfs,o60,JDW,Gi$,Mf7,Yp,mC,tf7,fE0,yZ,RqS,PuU,xbj,BM3,XI3,zq0,Hm0,F6M,wIt,cD0,QTM,g6W,vdO,Dbj,Ub0,n6M,pIS,rp,Eds,T_U,Sx7,WoM,av3,Obt,bb3,y$j,KoW,r$L,h1,qxM,k9s,VD$,Kr,od3,J$W,G90,tD$,fvs,R9t,PJ$,
B_U,CJs,Xmt,lv0,Hb0,ZbM,c$t,u9W,gdt,DQ$,UQ7,Etj,TUW,SBS,Wyj,Ont,YB7,Lr,VZ,mcH,yVt,qBs,rV0,hE0,$cL,jQO,sQ$,NUW,Lys,VRj,ott,ot,JV0,GcU,fas,REs,J1,GU,BUH,PFM,zEO,CF3,la0,AVO,Rt,Zn7,cVH,QQs,uE0,Pj,Dct,Ucs,p_H,vg0,eVW,dOj,EgO,aCj,iuO,buj,OuH,ICM,Yfs,rFt,mOt,qf0,hVU,KRU,$O3,NFW,kHH,LRS,ogS,JF3,Ps$,RV0,lCW,Zut,Z7,cF3,Grt,w9j,FR7,ggt,DO7,UOs,Sbt,W_U,a1W,i_O,O_H,I1s,YbS,mLS,qbU,hQL,yNW,rNL,$LU,K_S,sS0,L_7,NaO,VES,o2j,JNL,GsW,ME0,tEL,RQW,f10,CvL,l1S,XZL,H_W,ANU,Z_U,D7,cNO,wZU,pr,QSL,F_W,g2j,u5t,DLO,ULS,vUt,
efs,dtt,EU0,T2H,aL0,Ozs,Yy7,bzt,mtL,yLt,hfU,JL0,s8H,M0t,t00,RfU,PB0,XGW,zfs,lLM,Hzs,ALU,Zz7,cL7,wGt,gUH,uIM,nU0,DtU,Ut$,pGt,vYj,dmM,Sct,WpL,aQ0,iVS,OVL,IQt,bV7,yAt,mmW,Kps,$mt,jrS,srS,Nd0,Lpj,ktW,oY$,fQM,CcM,xmS,XqS,zSS,lQM,AA0,KO,cAW,N3,FpM,gY3,uGO,vC0,dl3,SVt,aDW,iiL,IDM,biW,YV0,yKU,rKH,hm0,$lj,NeS,spW,jps,fO,LTO,kAH,VCS,oCS,JKj,GA0,MCO,tCM,fD0,P80,xl$,Be0,C8O,XTS,zmH,lDL,Hi0,AKH,cK$,wTL,pTM,vn$,ez0,EnS,TX$,S4U,iW0,zp,yv0,q4H,rvM,hzj,KDt,lz,H0,Q4,AR,c0,onH,Mv0,fjM,tvs,FA,Rz0,PUs,xKt;
_.dH=function(v,e){if(Error.captureStackTrace)Error.captureStackTrace(this,_.dH);else{var d=Error().stack;d&&(this.stack=d)}v&&(this.message=String(v));e!==void 0&&(this.cause=e)};
E0=function(){throw Error("E");};
vSt=function(v,e){e=String.fromCharCode.apply(null,e);return v==null?e:v+e};
THt=function(v){var e=!1;e=e===void 0?!1:e;if(e$L){if(e&&(d7L?!v.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(v)))throw Error("F");v=(ESj||(ESj=new TextEncoder)).encode(v)}else{for(var d=0,E=new Uint8Array(3*v.length),T=0;T<v.length;T++){var S=v.charCodeAt(T);if(S<128)E[d++]=S;else{if(S<2048)E[d++]=S>>6|192;else{if(S>=55296&&S<=57343){if(S<=56319&&T<v.length){var O=v.charCodeAt(++T);if(O>=56320&&O<=57343){S=(S-55296)*1024+O-56320+65536;E[d++]=S>>18|
240;E[d++]=S>>12&63|128;E[d++]=S>>6&63|128;E[d++]=S&63|128;continue}else T--}if(e)throw Error("F");S=65533}E[d++]=S>>12|224;E[d++]=S>>6&63|128}E[d++]=S&63|128}}v=d===E.length?E:E.subarray(0,d)}return v};
W3=function(v){_.TO.setTimeout(function(){throw v;},0)};
_.aU=function(v,e){return v.lastIndexOf(e,0)==0};
O0=function(v,e){var d=v.length-e.length;return d>=0&&v.indexOf(e,d)==d};
_.IU=function(v){return/^[\s\xa0]*$/.test(v)};
_.bL=function(v,e){return v.indexOf(e)!=-1};
_.YS=function(v,e){return _.bL(v.toLowerCase(),e.toLowerCase())};
_.rH=function(v,e){var d=0;v=yj(String(v)).split(".");e=yj(String(e)).split(".");for(var E=Math.max(v.length,e.length),T=0;d==0&&T<E;T++){var S=v[T]||"",O=e[T]||"";do{S=/(\d*)(\D*)(.*)/.exec(S)||["","","",""];O=/(\d*)(\D*)(.*)/.exec(O)||["","","",""];if(S[0].length==0&&O[0].length==0)break;d=S00(S[1].length==0?0:parseInt(S[1],10),O[1].length==0?0:parseInt(O[1],10))||S00(S[2].length==0,O[2].length==0)||S00(S[2],O[2]);S=S[3];O=O[3]}while(d==0)}return d};
S00=function(v,e){return v<e?-1:v>e?1:0};
_.Kt=function(){var v=_.TO.navigator;return v&&(v=v.userAgent)?v:""};
W0t=function(v){if(!jW||!s0)return!1;for(var e=0;e<s0.brands.length;e++){var d=s0.brands[e].brand;if(d&&_.bL(d,v))return!0}return!1};
Vj=function(v){return _.bL(_.Kt(),v)};
oU=function(){return jW?!!s0&&s0.brands.length>0:!1};
att=function(){return oU()?!1:Vj("Opera")};
itL=function(){return oU()?!1:Vj("Trident")||Vj("MSIE")};
Ot7=function(){return oU()?W0t("Microsoft Edge"):Vj("Edg/")};
GO=function(){return Vj("Firefox")||Vj("FxiOS")};
_.It7=function(){return Vj("Safari")&&!(_.M7()||(oU()?0:Vj("Coast"))||att()||(oU()?0:Vj("Edge"))||Ot7()||(oU()?W0t("Opera"):Vj("OPR"))||GO()||Vj("Silk")||Vj("Android"))};
_.M7=function(){return oU()?W0t("Chromium"):(Vj("Chrome")||Vj("CriOS"))&&!(oU()?0:Vj("Edge"))||Vj("Silk")};
_.bt0=function(){return Vj("Android")&&!(_.M7()||GO()||att()||Vj("Silk"))};
Y0W=function(v){var e={};v.forEach(function(d){e[d[0]]=d[1]});
return function(d){return e[d.find(function(E){return E in e})]||""}};
m7U=function(v){var e=_.Kt();if(v==="Internet Explorer"){if(itL())if((v=/rv: *([\d\.]*)/.exec(e))&&v[1])e=v[1];else{v="";var d=/MSIE +([\d\.]+)/.exec(e);if(d&&d[1])if(e=/Trident\/(\d.\d)/.exec(e),d[1]=="7.0")if(e&&e[1])switch(e[1]){case "4.0":v="8.0";break;case "5.0":v="9.0";break;case "6.0":v="10.0";break;case "7.0":v="11.0"}else v="7.0";else v=d[1];e=v}else e="";return e}var E=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");d=[];for(var T;T=E.exec(e);)d.push([T[1],T[2],T[3]||void 0]);
e=Y0W(d);switch(v){case "Opera":if(att())return e(["Version","Opera"]);if(oU()?W0t("Opera"):Vj("OPR"))return e(["OPR"]);break;case "Microsoft Edge":if(oU()?0:Vj("Edge"))return e(["Edge"]);if(Ot7())return e(["Edg"]);break;case "Chromium":if(_.M7())return e(["Chrome","CriOS","HeadlessChrome"])}return v==="Firefox"&&GO()||v==="Safari"&&_.It7()||v==="Android Browser"&&_.bt0()||v==="Silk"&&Vj("Silk")?(e=d[2])&&e[1]||"":""};
_.ysL=function(v){if(oU()&&v!=="Silk"){var e=s0.brands.find(function(d){return d.brand===v});
if(!e||!e.version)return NaN;e=e.version.split(".")}else{e=m7U(v);if(e==="")return NaN;e=e.split(".")}return e.length===0?NaN:Number(e[0])};
ts=function(){return jW?!!s0&&!!s0.platform:!1};
_.q0O=function(){return ts()?s0.platform==="Android":Vj("Android")};
rs0=function(){return Vj("iPhone")&&!Vj("iPod")&&!Vj("iPad")};
_.ft=function(){return rs0()||Vj("iPad")||Vj("iPod")};
_.h$0=function(){return ts()?s0.platform==="macOS":Vj("Macintosh")};
_.K0H=function(){return ts()?s0.platform==="Windows":Vj("Windows")};
_.$77=function(){return ts()?s0.platform==="Chrome OS":Vj("CrOS")};
_.P3=function(v){return v[v.length-1]};
_.xS=function(v,e,d){e=_.jUW(v,e,d);return e<0?null:typeof v==="string"?v.charAt(e):v[e]};
_.jUW=function(v,e,d){for(var E=v.length,T=typeof v==="string"?v.split(""):v,S=0;S<E;S++)if(S in T&&e.call(d,T[S],S,v))return S;return-1};
sU0=function(v){for(var e=_.B3,d=typeof v==="string"?v.split(""):v,E=v.length-1;E>=0;E--)if(E in d&&e.call(void 0,d[E],E,v))return E;return-1};
_.lL=function(v,e){return _.XM(v,e)>=0};
_.NHU=function(v,e){_.lL(v,e)||v.push(e)};
_.H3=function(v,e){e=_.XM(v,e);var d;(d=e>=0)&&_.kO7(v,e);return d};
_.kO7=function(v,e){Array.prototype.splice.call(v,e,1)};
_.Zt=function(v){var e=v.length;if(e>0){for(var d=Array(e),E=0;E<e;E++)d[E]=v[E];return d}return[]};
_.FM=function(v,e){for(var d=1;d<arguments.length;d++){var E=arguments[d];if(_.c3(E)){var T=v.length||0,S=E.length||0;v.length=T+S;for(var O=0;O<S;O++)v[T+O]=E[O]}else v.push(E)}};
_.VWL=function(v,e,d,E){Array.prototype.splice.apply(v,L0s(arguments,1))};
L0s=function(v,e,d){return arguments.length<=2?Array.prototype.slice.call(v,e):Array.prototype.slice.call(v,e,d)};
oSM=function(v,e){e=e||v;for(var d=0,E=0,T={};E<v.length;){var S=v[E++],O=_.Qj(S)?"o"+_.gH(S):(typeof S).charAt(0)+S;Object.prototype.hasOwnProperty.call(T,O)||(T[O]=!0,e[d++]=S)}e.length=d};
_.GOO=function(v,e,d){d=d||_.Jsj;for(var E=0,T=v.length,S;E<T;){var O=E+(T-E>>>1);var b=d(e,v[O]);b>0?E=O+1:(T=O,S=!b)}return S?E:-E-1};
_.uL=function(v,e,d){if(!_.c3(v)||!_.c3(e)||v.length!=e.length)return!1;var E=v.length;d=d||MW0;for(var T=0;T<E;T++)if(!d(v[T],e[T]))return!1;return!0};
_.Jsj=function(v,e){return v>e?1:v<e?-1:0};
MW0=function(v,e){return v===e};
tW0=function(v,e,d){e=Array.prototype.splice.call(v,e,1);Array.prototype.splice.call(v,d,0,e[0])};
R$U=function(v){return ft3[v]||""};
BHM=function(v){if(!PLH)return _.U0(v);v=x7t.test(v)?v.replace(x7t,R$U):v;v=atob(v);for(var e=new Uint8Array(v.length),d=0;d<v.length;d++)e[d]=v.charCodeAt(d);return e};
CL7=function(v,e){v.__closure__error__context__984382||(v.__closure__error__context__984382={});v.__closure__error__context__984382.severity=e};
_.eA=function(v){v=Error(v);CL7(v,"warning");return v};
z$0=function(v,e){if(v!=null){var d;var E=(d=X30)!=null?d:X30={};d=E[v]||0;d>=e||(E[v]=d+1,v=Error(),CL7(v,"incident"),W3(v))}};
T2=function(v,e,d){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(d===void 0?0:d)&&Symbol.for&&v?Symbol.for(v):v!=null?Symbol(v):Symbol():e};
AsW=function(v,e){Wc||_.aE in v||ltO(v,HtW);v[_.aE]|=e};
iM=function(v,e){Wc||_.aE in v||ltO(v,HtW);v[_.aE]=e};
Zt3=function(v){if(4&v)return 512&v?512:1024&v?1024:0};
O6=function(v){AsW(v,34);return v};
csH=function(v){AsW(v,32);return v};
bM=function(){return typeof BigInt==="function"};
$I=function(v,e){return e===void 0?v.copyOnWrite!==YI&&!!(2&(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.aE]|0)):!!(2&e)&&v.copyOnWrite!==YI};
_.Mi=function(v,e){if(v!=null)if(typeof v==="string")v=v?new L7(v,VB):_.oE();else if(v.constructor!==L7)if(w37&&v!=null&&v instanceof Uint8Array)v=v.length?new L7(new Uint8Array(v),VB):_.oE();else{if(!e)throw Error();v=void 0}return v};
F0$=function(v,e){if(typeof e!=="number"||e<0||e>=v.length)throw Error();};
QU3=function(v,e,d){var E=e&128?0:-1,T=v.length,S;if(S=!!T)S=v[T-1],S=S!=null&&typeof S==="object"&&S.constructor===Object;var O=T+(S?-1:0);for(e=e&128?1:0;e<O;e++)d(e-E,v[e]);if(S){v=v[T-1];for(var b in v)!isNaN(b)&&d(+b,v[b])}};
RE=function(v){return v&128?f7:void 0};
Pc=function(v){v.isGuard_doNotManuallySetPrettyPlease=!0;return v};
uM3=function(){var v=gS0;return Pc(function(e){for(var d in v)if(e===v[d]&&!/^[0-9]+$/.test(d))return!0;return!1})};
_.Bc=function(v){var e=v;if(nSH(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e));}else if(D77(e)&&!Number.isSafeInteger(e))throw Error(String(e));return U70?BigInt(v):v=p3$(v)?v?"1":"0":nSH(v)?v.trim()||"0":String(v)};
vIO=function(v,e){if(v.length>e.length)return!1;if(v.length<e.length||v===e)return!0;for(var d=0;d<v.length;d++){var E=v[d],T=e[d];if(E>T)return!1;if(E<T)return!0}};
euS=function(v){var e=v>>>0;C7=e;XJ=(v-e)/4294967296>>>0};
z2=function(v){if(v<0){euS(-v);var e=_.a(diW(C7,XJ));v=e.next().value;e=e.next().value;C7=v>>>0;XJ=e>>>0}else euS(v)};
EI0=function(v,e){var d=e*4294967296+(v>>>0);return Number.isSafeInteger(d)?d:_.lM(v,e)};
Tn7=function(v,e){var d=e&2147483648;d&&(v=~v+1>>>0,e=~e>>>0,v==0&&(e=e+1>>>0));v=EI0(v,e);return typeof v==="number"?d?-v:v:d?"-"+v:v};
_.lM=function(v,e){e>>>=0;v>>>=0;if(e<=2097151)var d=""+(4294967296*e+v);else bM()?d=""+(BigInt(e)<<BigInt(32)|BigInt(v)):(d=(v>>>24|e<<8)&16777215,e=e>>16&65535,v=(v&16777215)+d*6777216+e*6710656,d+=e*8147497,e*=2,v>=1E7&&(d+=v/1E7>>>0,v%=1E7),d>=1E7&&(e+=d/1E7>>>0,d%=1E7),d=e+S6W(d)+S6W(v));return d};
S6W=function(v){v=String(v);return"0000000".slice(v.length)+v};
_.WgS=function(v,e){e&2147483648?bM()?v=""+(BigInt(e|0)<<BigInt(32)|BigInt(v>>>0)):(e=_.a(diW(v,e)),v=e.next().value,e=e.next().value,v="-"+_.lM(v,e)):v=_.lM(v,e);return v};
a00=function(v){if(v.length<16)z2(Number(v));else if(bM())v=BigInt(v),C7=Number(v&BigInt(4294967295))>>>0,XJ=Number(v>>BigInt(32)&BigInt(4294967295));else{var e=+(v[0]==="-");XJ=C7=0;for(var d=v.length,E=e,T=(d-e)%6+e;T<=d;E=T,T+=6)E=Number(v.slice(E,T)),XJ*=1E6,C7=C7*1E6+E,C7>=4294967296&&(XJ+=Math.trunc(C7/4294967296),XJ>>>=0,C7>>>=0);e&&(e=_.a(diW(C7,XJ)),v=e.next().value,e=e.next().value,C7=v,XJ=e)}};
diW=function(v,e){e=~e;v?v=~v+1:e+=1;return[v,e]};
Hc=function(v){return Array.prototype.slice.call(v)};
_.Z0=function(v,e){throw Error(e===void 0?"unexpected value "+v+"!":e);};
_.cc=function(v){if(v!=null&&typeof v!=="number")throw Error("L`"+typeof v+"`"+v);return v};
_.i7U=function(v){if(v==null||typeof v==="number")return v;if(v==="NaN"||v==="Infinity"||v==="-Infinity")return Number(v)};
O7t=function(v){if(v!=null&&typeof v!=="boolean")throw Error("M`"+_.wn(v)+"`"+v);return v};
_.I0W=function(v){if(v==null||typeof v==="boolean")return v;if(typeof v==="number")return!!v};
_.QB=function(v){switch(typeof v){case "bigint":return!0;case "number":return FJ(v);case "string":return b77.test(v);default:return!1}};
_.D0=function(v){if(!FJ(v))throw _.eA("enum");return v|0};
_.U6=function(v){return v==null?v:FJ(v)?v|0:void 0};
Y6S=function(v){if(typeof v!=="number")throw _.eA("int32");if(!FJ(v))throw _.eA("int32");return v|0};
_.p7=function(v){return v==null?v:Y6S(v)};
_.d9=function(v){if(v==null)return v;if(typeof v==="string"&&v)v=+v;else if(typeof v!=="number")return;return FJ(v)?v|0:void 0};
_.mit=function(v){if(v==null)return v;if(typeof v==="string"&&v)v=+v;else if(typeof v!=="number")return;return FJ(v)?v>>>0:void 0};
hu0=function(v){var e=0;e=e===void 0?0:e;if(!_.QB(v))throw _.eA("int64");var d=typeof v;switch(e){case 512:switch(d){case "string":return Ei(v);case "bigint":return String(TQ(64,v));default:return yes(v)}case 1024:switch(d){case "string":return q6L(v);case "bigint":return _.Bc(TQ(64,v));default:return re0(v)}case 0:switch(d){case "string":return Ei(v);case "bigint":return _.Bc(TQ(64,v));default:return Ss(v)}default:return _.Z0(e,"Unknown format requested type for int64")}};
WO=function(v){return v==null?v:hu0(v)};
KgL=function(v){if(v[0]==="-")return!1;var e=v.length;return e<20?!0:e===20&&Number(v.substring(0,6))<184467};
$iL=function(v){var e=v.length;return v[0]==="-"?e<20?!0:e===20&&Number(v.substring(0,7))>-922337:e<19?!0:e===19&&Number(v.substring(0,6))<922337};
jEt=function(v){if(v<0){z2(v);var e=_.lM(C7,XJ);v=Number(e);return iS(v)?v:e}e=String(v);if(KgL(e))return e;z2(v);return EI0(C7,XJ)};
sE3=function(v){if($iL(v))return v;a00(v);return _.WgS(C7,XJ)};
Nns=function(v){if(KgL(v))return v;a00(v);return _.lM(C7,XJ)};
Ss=function(v){v=Oi(v);iS(v)||(z2(v),v=Tn7(C7,XJ));return v};
_.k20=function(v){v=Oi(v);return v>=0&&iS(v)?v:jEt(v)};
yes=function(v){v=Oi(v);if(iS(v))v=String(v);else{var e=String(v);$iL(e)?v=e:(z2(v),v=_.WgS(C7,XJ))}return v};
_.Lg0=function(v){v=Oi(v);if(v>=0&&iS(v))v=String(v);else{var e=String(v);KgL(e)?v=e:(z2(v),v=_.lM(C7,XJ))}return v};
Ei=function(v){var e=Oi(Number(v));if(iS(e))return String(e);e=v.indexOf(".");e!==-1&&(v=v.substring(0,e));return sE3(v)};
q6L=function(v){var e=Oi(Number(v));if(iS(e))return _.Bc(e);e=v.indexOf(".");e!==-1&&(v=v.substring(0,e));return bM()?_.Bc(TQ(64,BigInt(v))):_.Bc(sE3(v))};
re0=function(v){return iS(v)?_.Bc(Ss(v)):_.Bc(yes(v))};
_.VA0=function(v){return iS(v)?_.Bc(_.k20(v)):_.Bc(_.Lg0(v))};
_.oIL=function(v){var e=Oi(Number(v));if(iS(e)&&e>=0)return String(e);e=v.indexOf(".");e!==-1&&(v=v.substring(0,e));return Nns(v)};
_.Jet=function(v){var e=Oi(Number(v));if(iS(e)&&e>=0)return _.Bc(e);e=v.indexOf(".");e!==-1&&(v=v.substring(0,e));return bM()?_.Bc((0,_.IC)(64,BigInt(v))):_.Bc(Nns(v))};
_.MA$=function(v){if(v==null)return v;if(typeof v==="bigint")return G2t(v)?v=Number(v):(v=TQ(64,v),v=G2t(v)?Number(v):String(v)),v;if(_.QB(v))return typeof v==="number"?Ss(v):Ei(v)};
tAU=function(v,e){e=e===void 0?!1:e;var d=typeof v;if(v==null)return v;if(d==="bigint")return String(TQ(64,v));if(_.QB(v))return d==="string"?Ei(v):e?yes(v):Ss(v)};
_.f0$=function(v){var e=typeof v;if(v==null)return v;if(e==="bigint")return _.Bc(TQ(64,v));if(_.QB(v))return e==="string"?q6L(v):re0(v)};
Rut=function(v){if(v==null)return v;var e=typeof v;if(e==="bigint")return String(TQ(64,v));if(_.QB(v)){if(e==="string")return Ei(v);if(e==="number")return Ss(v)}};
PMj=function(v){if(v==null)return v;var e=typeof v;if(e==="bigint")return String((0,_.IC)(64,v));if(_.QB(v)){if(e==="string")return _.oIL(v);if(e==="number")return _.k20(v)}};
_.bS=function(v){if(typeof v!=="string")throw Error();return v};
yv=function(v){if(v!=null&&typeof v!=="string")throw Error();return v};
_.q1=function(v){return v==null||typeof v==="string"?v:void 0};
CML=function(v,e,d,E){if(v!=null&&v[$s]===js)return v;if(!Array.isArray(v))return d?E&2?e[xi$]||(e[xi$]=BnS(e)):new e:void 0;d=v[_.aE]|0;E=d|E&32|E&2;E!==d&&iM(v,E);return new e(v)};
BnS=function(v){v=new v;O6(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return v};
Xc$=function(v,e,d){v=e?Y6S(v):_.d9(v);return v==null?d?0:void 0:v|0};
zuL=function(v){return v};
l0M=function(v){return v};
Aet=function(v,e,d,E,T,S){v=CML(v,E,d,S);T&&(v=H7j(v));return v};
Z7W=function(v){return[v,this.get(v)]};
FgO=function(){return ceO||(ceO=new N1(O6([]),void 0,void 0,void 0,wcU))};
QE0=function(v){var e=ks(Ji);return e?v[e]:void 0};
nIW=function(v,e){var d=d===void 0?!1:d;if(ks(gIS)&&ks(Ji)&&void 0===gIS){var E=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=E[Ji];if(!T)return;if(T=T.reviveUnknownFields)try{T(E,e,uJH);return}catch(S){W3(S)}}d&&(v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(d=ks(Ji))&&d in v&&(v=v[d])&&delete v[e])};
Ui0=function(v,e){var d=ks(Ji),E;Wc&&d&&((E=v[d])==null?void 0:E[e])!=null&&z$0(DiL,3)};
vsj=function(v,e){e<100||z$0(pcH,1)};
SiM=function(v,e,d,E){var T=E!==void 0;E=!!E;var S=ks(Ji),O;!T&&Wc&&S&&(O=v[S])&&e_0(O,vsj);S=[];var b=v.length;O=4294967295;var Y=!1,q=!!(e&64),r=q?e&128?0:-1:void 0;if(!(e&1)){var h=b&&v[b-1];h!=null&&typeof h==="object"&&h.constructor===Object?(b--,O=b):h=void 0;if(q&&!(e&128)&&!T){Y=!0;var K;O=((K=d1S)!=null?K:zuL)(O-r,r,v,h,void 0)+r}}e=void 0;for(K=0;K<b;K++){var k=v[K];if(k!=null&&(k=d(k,E))!=null)if(q&&K>=O){var J=K-r,R=void 0;((R=e)!=null?R:e={})[J]=k}else S[K]=k}if(h)for(var B in h)b=h[B],
b!=null&&(b=d(b,E))!=null&&(K=+B,k=void 0,q&&!Number.isNaN(K)&&(k=K+r)<O?S[k]=b:(K=void 0,((K=e)!=null?K:e={})[B]=b));e&&(Y?S.push(e):S[O]=e);T&&ks(Ji)&&(v=QE0(v))&&v instanceof Es3&&(S[Ji]=T90(v));return S};
aw0=function(v){v[0]=Wf0(v[0]);v[1]=Wf0(v[1]);return v};
Wf0=function(v){switch(typeof v){case "number":return Number.isFinite(v)?v:""+v;case "bigint":return G2t(v)?Number(v):""+v;case "boolean":return v?1:0;case "object":if(Array.isArray(v)){var e=v[_.aE]|0;return v.length===0&&e&1?void 0:SiM(v,e,Wf0)}if(v!=null&&v[$s]===js)return i9L(v);if(v instanceof L7){e=v.JSC$8810_value_;if(e==null)v="";else if(typeof e==="string")v=e;else{if(PLH){for(var d="",E=0,T=e.length-10240;E<T;)d+=String.fromCharCode.apply(null,e.subarray(E,E+=10240));d+=String.fromCharCode.apply(null,
E?e.subarray(E):e);e=btoa(d)}else e=_.GQ(e);v=v.JSC$8810_value_=e}return v}if(v instanceof N1)return v=v.size!==0?Array.from(ti.prototype.entries.call(v),aw0):void 0,v;return}return v};
RC=function(v,e){if(e){d1S=e==null||e===zuL||e[O9j]!==IwL?zuL:e;try{return i9L(v)}finally{d1S=void 0}}return i9L(v)};
i9L=function(v){v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return SiM(v,v[_.aE]|0,Wf0)};
m1W=function(v){switch(typeof v){case "boolean":return b9S||(b9S=[0,void 0,!0]);case "number":return v>0?void 0:v===0?Yij||(Yij=[0,void 0]):[-v,void 0];case "string":return[0,v];case "object":return v}};
yit=function(v,e,d){return v=_.PO(v,e[0],e[1],d?1:2)};
_.PO=function(v,e,d,E){E=E===void 0?0:E;if(v==null){var T=32;d?(v=[d],T|=128):v=[];e&&(T=T&-8380417|(e&1023)<<13)}else{if(!Array.isArray(v))throw Error("O");T=v[_.aE]|0;if(qiL&&1&T)throw Error("P");2048&T&&!(2&T)&&riO();if(T&256)throw Error("Q");if(T&64)return E!==0||T&2048||iM(v,T|2048),v;if(d&&(T|=128,d!==v[0]))throw Error("R");a:{d=v;T|=64;var S=d.length;if(S){var O=S-1,b=d[O];if(b!=null&&typeof b==="object"&&b.constructor===Object){e=T&128?0:-1;O-=e;if(O>=1024)throw Error("T");for(var Y in b)S=
+Y,S<O&&(d[S+e]=b[Y],delete b[Y]);T=T&-8380417|(O&1023)<<13;break a}}if(e){Y=Math.max(e,S-(T&128?0:-1));if(Y>1024)throw Error("U");T=T&-8380417|(Y&1023)<<13}}}T|=64;E===0&&(T|=2048);iM(v,T);return v};
riO=function(){if(qiL)throw Error("S");z$0(h_L,5)};
jCM=function(v,e){if(typeof v!=="object")return v;if(Array.isArray(v)){var d=v[_.aE]|0;return v.length===0&&d&1?void 0:Kf$(v,d,e)}if(v!=null&&v[$s]===js)return $1U(v);if(v instanceof N1){e=v.arrayState;if(e&2)return v;if(!v.size)return;d=O6(Array.from(ti.prototype.entries.call(v)));if(v.valueCtor)for(v=0;v<d.length;v++){var E=d[v],T=E[1];T==null||typeof T!=="object"?T=void 0:T!=null&&T[$s]===js?T=$1U(T):Array.isArray(T)?T=Kf$(T,T[_.aE]|0,!!(e&32)):T=void 0;E[1]=T}return d}if(v instanceof L7)return v};
Kf$=function(v,e,d){if(e&2)return v;!d||4096&e||16&e?v=C9(v,e,!1,d&&!(e&16)):(AsW(v,34),e&4&&Object.freeze(v));return v};
sCM=function(v,e,d){v=new v.constructor(e);d&&(v.copyOnWrite=YI);v.noLegacyNull=YI;return v};
$1U=function(v){var e=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=e[_.aE]|0;return $I(v,d)?v:N9U(v,e,d)?sCM(v,e):C9(e,d)};
C9=function(v,e,d,E){E!=null||(E=!!(34&e));v=SiM(v,e,jCM,E);E=32;d&&(E|=2);e=e&8380609|E;iM(v,e);return v};
H7j=function(v){var e=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=e[_.aE]|0;return $I(v,d)?N9U(v,e,d)?sCM(v,e,!0):new v.constructor(C9(e,d,!1)):v};
Xt=function(v){if(v.copyOnWrite!==YI)return!1;var e=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;e=C9(e,e[_.aE]|0);AsW(e,2048);v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=e;v.copyOnWrite=void 0;v.noLegacyNull=void 0;return!0};
zQ=function(v){if(!Xt(v)&&$I(v,v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.aE]|0))throw Error();};
HO=function(v,e){e===void 0&&(e=v[_.aE]|0);e&32&&!(e&4096)&&iM(v,e|4096)};
N9U=function(v,e,d){return d&2?!0:d&32&&!(d&4096)?(iM(e,d|2),v.copyOnWrite=YI,!0):!1};
Ai=function(v,e,d,E,T){var S=d+(T?0:-1),O=v.length-1;if(O>=1+(T?0:-1)&&S>=O){var b=v[O];if(b!=null&&typeof b==="object"&&b.constructor===Object)return b[d]=E,e}if(S<=O)return v[S]=E,e;if(E!==void 0){var Y;O=((Y=e)!=null?Y:e=v[_.aE]|0)>>13&1023||536870912;d>=O?E!=null&&(S={},v[O+(T?0:-1)]=(S[d]=E,S)):v[S]=E}return e};
_.Ft=function(v,e,d,E,T){var S=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=S[_.aE]|0;E=$I(v,O)?1:E;T=!!T||E===3;E===2&&Xt(v)&&(S=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=S[_.aE]|0);v=kQ0(S,e);var b=v===Zw?7:v[_.aE]|0,Y=LfL(b,O);var q=4&Y?!1:!0;if(q){4&Y&&(v=Hc(v),b=0,Y=cO(Y,O),O=Ai(S,O,e,v));for(var r=0,h=0;r<v.length;r++){var K=d(v[r]);K!=null&&(v[h++]=K)}h<r&&(v.length=h);d=(Y|4)&-513;Y=d&=-1025;Y&=-4097}Y!==b&&(iM(v,Y),2&Y&&Object.freeze(v));return v=VsU(v,Y,S,
O,e,E,q,T)};
VsU=function(v,e,d,E,T,S,O,b){var Y=e;S===1||(S!==4?0:2&e||!(16&e)&&32&E)?Qv(e)||(e|=!v.length||O&&!(4096&e)||32&E&&!(4096&e||16&e)?2:256,e!==Y&&iM(v,e),Object.freeze(v)):(S===2&&Qv(e)&&(v=Hc(v),Y=0,e=cO(e,E),E=Ai(d,E,T,v)),Qv(e)||(b||(e|=16),e!==Y&&iM(v,e)));2&e||!(4096&e||16&e)||HO(d,E);return v};
kQ0=function(v,e,d){v=g9(v,e,d);return Array.isArray(v)?v:Zw};
LfL=function(v,e){2&e&&(v|=2);return v|1};
Qv=function(v){return!!(2&v)&&!!(4&v)||!!(256&v)};
oss=function(v){return _.Mi(v,!0)};
Ji3=function(v,e){var d=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=d[_.aE]|0;a:{var T=E;E=$I(v,E);!E&&Xt(v)&&(d=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=d[_.aE]|0);var S=g9(d,e);v=!1;if(S==null){if(E){e=FgO();break a}S=[]}else if(S.constructor===N1)if(S.arrayState&2&&!E)S=Array.from(ti.prototype.entries.call(S));else{e=S;break a}else Array.isArray(S)?v=!!((S[_.aE]|0)&2):S=[];if(E){if(!S.length){e=FgO();break a}v||(v=!0,O6(S))}else if(v){v=!1;E=S;E=Hc(E);for(S=0;S<
E.length;S++){var O=E[S]=Hc(E[S]);Array.isArray(O[1])&&(O[1]=O6(O[1]))}S=E}!v&&T&32&&csH(S);E=new N1(S,void 0,Xc$,Xc$);T=Ai(d,T,e,E);v||HO(d,T);e=E}return e};
_.uS=function(v,e,d,E){zQ(v);var T=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=T[_.aE]|0;if(d==null)return Ai(T,S,e),v;var O=d===Zw?7:d[_.aE]|0,b=O,Y=Qv(O),q=Y||Object.isFrozen(d);Y||(O=0);q||(d=Hc(d),b=0,O=cO(O,S),q=!1);O|=5;var r;Y=(r=Zt3(O))!=null?r:0;for(r=0;r<d.length;r++){var h=d[r],K=E(h,Y);Object.is(h,K)||(q&&(d=Hc(d),b=0,O=cO(O,S),q=!1),d[r]=K)}O!==b&&(q&&(d=Hc(d),O=cO(O,S)),iM(d,O));Ai(T,S,e,d);return v};
_.n9=function(v,e,d,E,T){zQ(v);var S=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Ai(S,S[_.aE]|0,e,(E==="0"?Number(d)===0:d===E)?void 0:d,T);return v};
_.GQO=function(v,e,d){if(e&2)throw Error();var E=RE(e),T=kQ0(v,d,E),S=T===Zw?7:T[_.aE]|0,O=LfL(S,e);if(2&O||Qv(O)||16&O)T=Hc(T),S=0,O=cO(O,e),Ai(v,e,d,T,E);O&=-13;O!==S&&iM(T,O);return T};
MsU=function(v){if(Wc){var e;return(e=v[Dw])!=null?e:v[Dw]=new Map}if(Dw in v)return v[Dw];e=new Map;Object.defineProperty(v,Dw,{value:e});return e};
fwj=function(v,e,d,E,T){var S=MsU(v),O=ts$(S,v,e,d,T);O!==E&&(O&&(e=Ai(v,e,O,void 0,T)),S.set(d,E));return e};
ts$=function(v,e,d,E,T){var S=v.get(E);if(S!=null)return S;for(var O=S=0;O<E.length;O++){var b=E[O];g9(e,b,T)!=null&&(S!==0&&(d=Ai(e,d,S,void 0,T)),S=b)}v.set(E,S);return S};
R_$=function(v,e,d,E,T){var S=!1;E=g9(v,E,T,function(O){var b=CML(O,d,!1,e);S=b!==O&&b!=null;return b});
if(E!=null)return S&&!$I(E)&&HO(v,e),E};
PSS=function(v,e,d,E,T,S,O,b){var Y=$I(v,d);S=Y?1:S;O=!!O||S===3;Y=b&&!Y;(S===2||Y)&&Xt(v)&&(e=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=e[_.aE]|0);v=kQ0(e,T);var q=v===Zw?7:v[_.aE]|0,r=LfL(q,d);if(b=!(4&r)){var h=v,K=d,k=!!(2&r);k&&(K|=2);for(var J=!k,R=!0,B=0,X=0;B<h.length;B++){var Z=CML(h[B],E,!1,K);if(Z instanceof E){if(!k){var U=$I(Z);J&&(J=!U);R&&(R=U)}h[X++]=Z}}X<B&&(h.length=X);r|=4;r=R?r&-4097:r|4096;r=J?r|8:r&-9}r!==q&&(iM(v,r),2&r&&Object.freeze(v));if(Y&&!(8&r||!v.length&&
(S===1||(S!==4?0:2&r||!(16&r)&&32&d)))){Qv(r)&&(v=Hc(v),r=cO(r,d),d=Ai(e,d,T,v));E=v;Y=r;for(q=0;q<E.length;q++)h=E[q],r=H7j(h),h!==r&&(E[q]=r);Y|=8;r=Y=E.length?Y|4096:Y&-4097;iM(v,r)}return v=VsU(v,r,e,d,T,S,b,O)};
x1W=function(v){v==null&&(v=void 0);return v};
cO=function(v,e){return v=(2&e?v|2:v&-3)&-273};
_.B9O=function(v,e,d,E,T){zQ(v);e=_.Ft(v,e,T,2,!0);var S;T=(S=Zt3(e===Zw?7:e[_.aE]|0))!=null?S:0;e.push(d(E,T));return v};
CSj=function(v,e,d,E,T,S,O){zQ(v);var b=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;v=PSS(v,b,b[_.aE]|0,d,e,2,!0);if(S&&O)T!=null||(T=v.length-1),F0$(v,T),v.splice(T,S),v.length||(v[_.aE]&=-4097);else{if(S){if(typeof T!=="number"||T<0||T>v.length)throw Error();}else E=E!=null?E:new d;T!=void 0?v.splice(T,S,E):v.push(E);T=d=v===Zw?7:v[_.aE]|0;(E=$I(E))?(d&=-9,v.length===1&&(d&=-4097)):d|=4096;d!==T&&iM(v,d);E||HO(b)}};
z_t=function(v,e){if(typeof v==="string")return new Ui(BHM(v),e);if(Array.isArray(v))return new Ui(new Uint8Array(v),e);if(v.constructor===Uint8Array)return new Ui(v,!1);if(v.constructor===ArrayBuffer)return v=new Uint8Array(v),new Ui(v,!1);if(v.constructor===L7)return e=XOO(v)||new Uint8Array(0),new Ui(e,!0,v);if(v instanceof Uint8Array)return v=v.constructor===Uint8Array?v:new Uint8Array(v.buffer,v.byteOffset,v.byteLength),new Ui(v,!1);throw Error();};
p9=function(){var v=function(){throw Error();};
Object.setPrototypeOf(v,v.prototype);return v};
H9U=function(v,e){var d=d===void 0?lw3:d;return new v$(v,e,d)};
wO3=function(v,e,d,E,T){e=AiH(e,E);e!=null&&(d=_.Z90(v,d),T(e,v),_.ciW(v,d))};
em=function(v,e,d,E){var T=E[v];if(T)return T;T={};T.binaryFields=E;T.messageMetadata=m1W(E[0]);var S=E[1],O=1;S&&S.constructor===Object&&(T.extensions=S,S=E[++O],typeof S==="function"&&(T.isMessageSet=!0,FfU!=null||(FfU=S),QC7!=null||(QC7=E[O+1]),S=E[O+=2]));for(var b={};S&&gs0(S);){for(var Y=0;Y<S.length;Y++)b[S[Y]]=S;S=E[++O]}for(Y=1;S!==void 0;){typeof S==="number"&&(Y+=S,S=E[++O]);var q=void 0;if(S instanceof v$)var r=S;else r=utS,O--;S=void 0;if((S=r)==null?0:S.$$isMsg){S=E[++O];q=E;var h=O;
typeof S==="function"&&(S=S(),q[h]=S);q=S}S=E[++O];h=Y+1;typeof S==="number"&&S<0&&(h-=S,S=E[++O]);for(;Y<h;Y++){var K=b[Y];q?d(T,Y,r,q,K):e(T,Y,r,K)}}return E[v]=T};
gs0=function(v){return Array.isArray(v)&&!!v.length&&typeof v[0]==="number"&&v[0]>0};
D1t=function(v){return Array.isArray(v)?v[0]instanceof v$?v:[nsO,v]:[v,void 0]};
AiH=function(v,e){if(v instanceof _.du)return v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(v))return yit(v,e,!1)};
U17=function(v,e,d,E){var T=d.$$binaryReaderFn;v[e]=E?function(S,O,b){return T(S,O,b,E)}:T};
vms=function(v,e,d,E,T){var S=d.$$binaryReaderFn,O,b;v[e]=function(Y,q,r){return S(Y,q,r,b||(b=em(pO7,U17,vms,E).messageMetadata),O||(O=eTM(E)),T)}};
eTM=function(v){var e=v[dfS];if(e!=null)return e;var d=em(pO7,U17,vms,v);e=d.isMessageSet?function(E,T){return FfU(E,T,d)}:function(E,T){for(;EmL(T)&&T.nextWireType_!=4;){var S=T.nextField_,O=d[S];
if(O==null){var b=d.extensions;b&&(b=b[S])&&(b=Tut(b),b!=null&&(O=d[S]=b))}if(O==null||!O(T,E,S)){b=T;O=b.fieldCursor_;SJ3(b);if(b.discardUnknownFields)var Y=void 0;else{var q=b.decoder_.cursor_-O;b.decoder_.cursor_=O;Y=WVH(b.decoder_,q)}q=b=O=void 0;var r=E;Y&&((O=(b=(q=r[Ji])!=null?q:r[Ji]=new Es3)[S])!=null?O:b[S]=[]).push(Y)}}if(E=QE0(E))E.reviveUnknownFields=d.binaryFields[aB0];return!0};
v[dfS]=e;v[aB0]=iY3.bind(v);return e};
iY3=function(v,e,d,E){var T=this[pO7],S=this[dfS],O=yit(void 0,T.messageMetadata,!1),b=QE0(v);if(b){var Y=!1,q=T.extensions;if(q){T=function(J,R,B){if(B.length!==0)if(q[R])for(J=_.a(B),R=J.next();!R.done;R=J.next()){R=OYj(R.value);try{Y=!0,S(O,R)}finally{R.free()}}else E==null||E(v,R,B)};
if(e==null)e_0(b,T);else if(b!=null){var r=b[e];r&&T(b,e,r)}if(Y){var h=v[_.aE]|0;if(h&2&&h&2048&&(d==null||!d.reviveIntoImmutable))throw Error();var K=RE(h),k=function(J,R){if(g9(v,J,K)!=null)switch(d==null?void 0:d.resolutionBehavior){case 1:return;default:throw Error();}R!=null&&(h=Ai(v,h,J,R,K));delete b[J]};
e==null?QU3(O,O[_.aE]|0,function(J,R){k(J,R)}):k(e,g9(O,e,K))}}}};
Tut=function(v){v=D1t(v);var e=v[0].$$binaryReaderFn;if(v=v[1]){var d=eTM(v),E=em(pO7,U17,vms,v).messageMetadata;return function(T,S,O){return e(T,S,O,E,d)}}return e};
IB7=function(v,e,d){v[e]=d.$$binaryWriterFn};
YJO=function(v,e,d,E){var T,S,O=d.$$binaryWriterFn;v[e]=function(b,Y,q){return O(b,Y,q,S||(S=em(bYH,IB7,YJO,E).messageMetadata),T||(T=mf0(E)))}};
mf0=function(v){var e=v[yrM];if(!e){var d=em(bYH,IB7,YJO,v);e=function(E,T){return qJS(E,T,d)};
v[yrM]=e}return e};
qJS=function(v,e,d){QU3(v,v[_.aE]|0,function(E,T){if(T!=null){var S=rr3(d,E);S?S(e,T,E):E<500||z$0(hT0,3)}});
(v=QE0(v))&&e_0(v,function(E,T,S){EJ(e,e.encoder_.end());for(E=0;E<S.length;E++)EJ(e,XOO(S[E])||new Uint8Array(0))})};
rr3=function(v,e){var d=v[e];if(d)return d;if(d=v.extensions)if(d=d[e]){d=D1t(d);var E=d[0].$$binaryWriterFn;if(d=d[1]){var T=mf0(d),S=em(bYH,IB7,YJO,d).messageMetadata;d=v.isMessageSet?QC7(S,T):function(O,b,Y){return E(O,b,Y,S,T)}}else d=E;
return v[e]=d}};
_.KVj=function(v,e,d){if(Array.isArray(e)){var E=e[_.aE]|0;if(E&4)return e;for(var T=0,S=0;T<e.length;T++){var O=v(e[T]);O!=null&&(e[S++]=O)}S<T&&(e.length=S);d&&(iM(e,(E|5)&-1537),E&2&&Object.freeze(e));return e}};
_.TD=function(v,e,d){return new v$(v,e,d)};
_.$fs=function(v,e,d){return new v$(v,e,d)};
_.Sm=function(v,e,d){Ai(v,v[_.aE]|0,e,d,RE(v[_.aE]|0))};
s$S=function(v,e,d){e=_.i7U(e);e!=null&&(_.i6(v,d,1),v=v.encoder_,d=j$L||(j$L=new DataView(new ArrayBuffer(8))),d.setFloat64(0,+e,!0),C7=d.getUint32(0,!0),XJ=d.getUint32(4,!0),_.OJ(v,C7),_.OJ(v,XJ))};
_.I$=function(v,e,d){e=Rut(e);if(e!=null){switch(typeof e){case "string":NuU(e)}if(e!=null)switch(_.i6(v,d,0),typeof e){case "number":v=v.encoder_;z2(e);kD7(v,C7,XJ);break;case "bigint":d=BigInt.asUintN(64,e);d=new LVM(Number(d&BigInt(4294967295)),Number(d>>BigInt(32)));kD7(v.encoder_,d.JSC$8853_lo,d.JSC$8853_hi);break;default:d=NuU(e),kD7(v.encoder_,d.JSC$8853_lo,d.JSC$8853_hi)}}};
om$=function(v,e,d){e=_.d9(e);e!=null&&e!=null&&(_.i6(v,d,0),_.Vmt(v.encoder_,e))};
_.GDO=function(v,e,d){Jr0(v,d,PMj(e))};
_.MmU=function(v,e,d){e=_.I0W(e);e!=null&&(_.i6(v,d,0),v.encoder_.JSC$8855_buffer_.push(e?1:0))};
_.fBW=function(v,e,d){e=_.q1(e);e!=null&&tm$(v,d,THt(e))};
RTM=function(v,e,d,E,T){e=AiH(e,E);e!=null&&(d=_.Z90(v,d),T(e,v),_.ciW(v,d))};
_.P60=function(v,e,d){e=e==null||typeof e=="string"||e instanceof L7?e:void 0;e!=null&&tm$(v,d,z_t(e,!0).buffer)};
_.xf0=function(v,e,d){e=_.d9(e);e!=null&&(e=parseInt(e,10),_.i6(v,d,0),_.Vmt(v.encoder_,e))};
_.b6=function(v,e){return function(d,E){var T={treatNewDataAsImmutable:!0};E&&Object.assign(T,E);d=OYj(d,void 0,void 0,T);try{var S=new v,O=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;eTM(e)(O,d);var b=S}finally{d.free()}return b}};
_.Ym=function(v){return function(e){return Buj(e,v)}};
C6W=function(v){return function(){return Buj(this,v)}};
_.X$S=function(v){return Pc(function(e){return e instanceof v&&!$I(e)})};
_.mV=function(v){return function(e){return zTj(v,e)}};
ZYU=function(v,e){return lBH({child:v,origin:e||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:HYL,getPayloadCase:function(d){return d.getPayloadCase()},
createInitMessage:function(d){var E=new yk,T=new ArO;d=_.hr(T,1,d);return _.$m(E,5,jm,d)}})};
sJ=function(v){return{valueOf:v}.valueOf()};
w$O=function(){var v=null;if(!crM)return v;try{var e=function(d){return d};
v=crM.createPolicy("goog#html",{createHTML:e,createScript:e,createScriptURL:e})}catch(d){}return v};
Q$S=function(){FVW===void 0&&(FVW=w$O());return FVW};
_.km=function(v){var e=Q$S();v=e?e.createScriptURL(v):v;return new Nf(v)};
_.LY=function(v){if(v instanceof Nf)return v.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Vk=function(v){return Object.isFrozen(v)&&Object.isFrozen(v.raw)};
gmS=function(v){return v.toString().indexOf("`")===-1};
Jr=function(v){return new _.o$(uaW,v)};
GD=function(v){return v instanceof _.o$};
_.Mf=function(v){if(GD(v))return v.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
fY=function(v){return new nmM(function(e){return e.substr(0,v.length+1).toLowerCase()===v+":"})};
_.R$=function(v,e){e=e===void 0?Df0:e;if(GD(v))return v;for(var d=0;d<e.length;++d){var E=e[d];if(E instanceof nmM&&E.isValid(v))return Jr(v)}};
_.xm=function(v,e){e=e===void 0?Df0:e;return _.R$(v,e)||P$};
_.B$=function(v){var e=window;if(typeof MediaSource!=="undefined"&&v instanceof MediaSource||typeof e.ManagedMediaSource!=="undefined"&&v instanceof e.ManagedMediaSource)return Jr(URL.createObjectURL(v));e=v.type;e.toLowerCase()==="application/octet-stream"?e=!0:(e=e.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),e=(e==null?void 0:e.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(e[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(e[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(e[1])||/^font\/[\w-]+$/i.test(e[1])));if(!e)throw Error("Z");return Jr(URL.createObjectURL(v))};
_.Uf3=function(v){for(var e=_.Xa.apply(1,arguments),d=[v[0]],E=0;E<e.length;E++)d.push(String(e[E])),d.push(v[E+1]);return Jr(d.join(""))};
_.vaS=function(v){if(!p$W){a:{var e=document.createElement("a");try{e.href=v}catch(d){v=void 0;break a}v=e.protocol;v=v===":"||v===""?"https:":v}return v}try{e=new URL(v)}catch(d){return"https:"}return e.protocol};
_.zD=function(v){v instanceof _.o$?v=_.Mf(v):v=eUW.test(v)?v:void 0;return v};
l6=function(v,e){e=_.zD(e);e!==void 0&&(v.href=e)};
Ar=function(v){var e=Q$S();v=e?e.createHTML(v):v;return new H$(v)};
ZB=function(v){if(v instanceof H$)return v.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.c$=function(v,e){v.src=_.LY(e).toString()};
dqt=function(v,e){v.setAttribute("sandbox","");for(var d=0;d<e.length;d++)v.sandbox.supports&&!v.sandbox.supports(e[d])||v.sandbox.add(e[d])};
_.T5j=function(v,e,d){v.removeAttribute("srcdoc");switch(e){case 0:if(d instanceof Nf)throw new Eat("TrustedResourceUrl",0);dqt(v,[]);e=_.zD(d);e!==void 0&&(v.src=e);break;case 1:if(!(d instanceof Nf))throw new Eat(typeof d,1);dqt(v,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.c$(v,d);break;case 2:if(d instanceof Nf)throw new Eat("TrustedResourceUrl",2);dqt(v,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
e=_.zD(d);e!==void 0&&(v.src=e);break;default:_.Z0(e)}};
_.Fa=function(v,e,d,E){e=_.zD(e);return e!==void 0?v.open(e,d,E):null};
_.Qk=function(v){v=v===void 0?document:v;var e,d;v=(d=(e=v).querySelector)==null?void 0:d.call(e,"script[nonce]");return v==null?"":v.nonce||v.getAttribute("nonce")||""};
_.u6=function(v){var e=Q$S();v=e?e.createScript(v):v;return new _.gu(v)};
S9O=function(v){if(v instanceof _.gu)return v.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
W7W=function(v){var e=_.Qk(v.ownerDocument);e&&v.setAttribute("nonce",e)};
_.nY=function(v,e){v.textContent=S9O(e);W7W(v)};
_.DB=function(v,e){v.src=_.LY(e);W7W(v)};
_.UJ=function(v,e){if(v.nodeType===1&&/^(script|style)$/i.test(v.tagName))throw Error("Z");v.innerHTML=ZB(e)};
_.pY=function(v,e,d,E){if(v.length===0)throw Error("Z");v=v.map(function(S){if(S instanceof a2S)S=S.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return S});
var T=d.toLowerCase();if(v.every(function(S){return T.indexOf(S)!==0}))throw Error("aa`"+d);
e.setAttribute(d,E)};
_.vu=function(v,e,d){if(e instanceof Nf)v.href=_.LY(e).toString(),v.rel=d;else{if(iFW.indexOf(d)===-1)throw Error("ba`"+d);e=_.zD(e);e!==void 0&&(v.href=e,v.rel=d)}};
OFU=function(v){if(v instanceof el)return v.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.I23=function(v,e){e=_.zD(e);e!==void 0&&(v.href=e)};
bFj=function(v){return _.km(v)};
Y90=function(v,e){v&&(e=v.indexOf(e),0<=e&&v.splice(e,1))};
d5=function(v){return typeof v==="function"};
mqS=function(v){return v instanceof E9||v&&"closed"in v&&d5(v.remove)&&d5(v.add)&&d5(v.unsubscribe)};
Sl=function(){};
Wu=function(v){y7s(function(){throw v;})};
a0=function(v){return v};
i9=function(){return q9t(_.Xa.apply(0,arguments))};
q9t=function(v){return v.length===0?a0:v.length===1?v[0]:function(e){return v.reduce(function(d,E){return E(d)},e)}};
r7M=function(v){var e;return(e=v!=null?v:void 0)!=null?e:Promise};
hU7=function(v,e){return new O9(function(d){var E=0;return e.schedule(function(){E===v.length?d.complete():(d.next(v[E++]),d.closed||this.schedule())})})};
K77=function(v,e){if(!v)throw Error("ca");return new O9(function(d){var E=new E9;E.add(e.schedule(function(){var T=v[Symbol.asyncIterator]();E.add(e.schedule(function(){var S=this;T.next().then(function(O){O.done?d.complete():(d.next(O.value),S.schedule())})}))}));
return E})};
$qW=function(v,e,d){e=e.schedule(function(){try{d.call(this)}catch(E){v.error(E)}},0);
v.add(e)};
s0H=function(v,e){return new O9(function(d){var E;d.add(e.schedule(function(){E=v[j0L]();$qW(d,e,function(){var T=E.next(),S=T.value;T.done?d.complete():(d.next(S),this.schedule())})}));
return function(){var T;return d5((T=E)==null?void 0:T.return)&&E.return()}})};
N5U=function(v,e){return new O9(function(d){var E=new E9;E.add(e.schedule(function(){var T=v[I0]();E.add(T.subscribe({next:function(S){E.add(e.schedule(function(){return d.next(S)}))},
error:function(S){E.add(e.schedule(function(){return d.error(S)}))},
complete:function(){E.add(e.schedule(function(){return d.complete()}))}}))}));
return E})};
kM$=function(v,e){return new O9(function(d){return e.schedule(function(){return v.then(function(E){d.add(e.schedule(function(){d.next(E);d.add(e.schedule(function(){return d.complete()}))}))},function(E){d.add(e.schedule(function(){return d.error(E)}))})})})};
L7s=function(v){return new TypeError("da`"+(v!==null&&typeof v==="object"?"an invalid object":"'"+v+"'"))};
oat=function(v,e){if(v!=null){if(d5(v[I0]))return N5U(v,e);if(VlW(v))return hU7(v,e);if(d5(v==null?void 0:v.then))return kM$(v,e);if(Symbol.asyncIterator&&d5(v==null?void 0:v[Symbol.asyncIterator]))return K77(v,e);if(d5(v==null?void 0:v[j0L]))return s0H(v,e)}throw L7s(v);};
m7=function(v,e){return e?oat(v,e):b9(v)};
b9=function(v){if(v instanceof O9)return v;if(v!=null){if(d5(v[I0]))return J77(v);if(VlW(v))return GMt(v);if(d5(v==null?void 0:v.then))return MlM(v);if(Symbol.asyncIterator&&d5(v==null?void 0:v[Symbol.asyncIterator]))return tlt(v);if(d5(v==null?void 0:v[j0L]))return f2j(v)}throw L7s(v);};
J77=function(v){return new O9(function(e){var d=v[I0]();if(d5(d.subscribe))return d.subscribe(e);throw new TypeError("ea");})};
GMt=function(v){return new O9(function(e){for(var d=0;d<v.length&&!e.closed;d++)e.next(v[d]);e.complete()})};
MlM=function(v){return new O9(function(e){v.then(function(d){e.closed||(e.next(d),e.complete())},function(d){return e.error(d)}).then(null,Wu)})};
f2j=function(v){return new O9(function(e){for(var d=v[j0L]();!e.closed;){var E=d.next(),T=E.value;E.done?e.complete():e.next(T)}return function(){return d5(d==null?void 0:d.return)&&d.return()}})};
tlt=function(v){return new O9(function(e){RUs(v,e).catch(function(d){return e.error(d)})})};
RUs=function(v,e){var d,E,T,S,O,b;return _.I(function(Y){switch(Y.nextAddress){case 1:_.qq(Y,2,3),S=_.r5(v);case 5:return Y.yield(S.next(),8);case 8:E=Y.yieldResult;if(E.done){Y.jumpTo(3);break}O=E.value;e.next(O);Y.jumpTo(5);break;case 3:_.h7(Y);_.KF(Y,9);if(!E||E.done||!(T=S.return)){Y.jumpTo(9);break}return Y.yield(T.call(S),9);case 9:_.h7(Y,0,0,1);if(d)throw d.error;_.$a(Y,10,1);break;case 10:_.$a(Y,4);break;case 2:b=_.jl(Y);d={error:b};Y.jumpTo(3);break;case 4:e.complete(),_.s9(Y)}})};
P9W=function(v,e){return e?hU7(v,e):GMt(v)};
xqs=function(v){return d5(v[v.length-1])?v.pop():void 0};
Nq=function(v){var e=v[v.length-1];return e&&d5(e.schedule)?v.pop():void 0};
ka=function(){var v=_.Xa.apply(0,arguments),e=Nq(v);return e?hU7(v,e):P9W(v)};
LF=function(v){var e=d5(v)?v:function(){return v};
return new O9(function(d){return d.error(e())})};
o0=function(v){return function(e){if(d5(e==null?void 0:e.lift))return e.lift(function(d){try{return v(d,this)}catch(E){this.error(E)}});
throw new TypeError("fa");}};
GM=function(){return o0(function(v,e){var d=null;v._refCount++;var E=new J7(e,void 0,void 0,void 0,function(){if(!v||v._refCount<=0||0<--v._refCount)d=null;else{var T=v._connection,S=d;d=null;!T||S&&T!==S||T.unsubscribe();e.unsubscribe()}});
v.subscribe(E);E.closed||(d=v.connect())})};
C9L=function(){var v=B50;var e=e===void 0?0:e;return o0(function(d,E){E.add(v.schedule(function(){return d.subscribe(E)},e))})};
Mq=function(v){return o0(function(e,d){var E=0;e.subscribe(new J7(d,function(T){d.next(v.call(void 0,T,E++))}))})};
zUM=function(v){return Mq(function(e){return Xuj(e)?v.apply(null,_.t7(e)):v(e)})};
c7H=function(v){if(v.length===1){var e=v[0];if(l2j(e))return{args:e,keys:null};if(e&&typeof e==="object"&&HF3(e)===A7L)return v=ZFt(e),{args:v.map(function(d){return e[d]}),
keys:v}}return{args:v,keys:null}};
fF=function(){var v=_.Xa.apply(0,arguments),e=Nq(v),d=xqs(v);v=c7H(v);var E=v.args,T=v.keys;if(E.length===0)return m7([],e);e=new O9(wuL(E,e,T?function(S){for(var O={},b=0;b<S.length;b++)O[T[b]]=S[b];return O}:a0));
return d?e.pipe(zUM(d)):e};
wuL=function(v,e,d){d=d===void 0?a0:d;return function(E){F77(e,function(){for(var T=v.length,S=Array(T),O=T,b=v.map(function(){return!1}),Y=!0,q={i$jscomp$217:0};q.i$jscomp$217<T;q={i$jscomp$217:q.i$jscomp$217},q.i$jscomp$217++)F77(e,function(r){return function(){m7(v[r.i$jscomp$217],e).subscribe(new R0(E,function(h){S[r.i$jscomp$217]=h;
Y&&(b[r.i$jscomp$217]=!0,Y=!b.every(a0));Y||E.next(d(S.slice()))},function(){return--O===0}))}}(q),E)},E)}};
F77=function(v,e,d){v?d.add(v.schedule(e)):e()};
Q00=function(v,e,d,E){var T=[],S=0,O=0,b=!1,Y=function(q){S++;b9(d(q,O++)).subscribe(new J7(e,function(r){e.next(r)},void 0,function(){S--;
for(var r={};T.length&&S<E;r={bufferedValue:void 0})r.bufferedValue=T.shift(),Y(r.bufferedValue);!b||T.length||S||e.complete()}))};
v.subscribe(new J7(e,function(q){return S<E?Y(q):T.push(q)},void 0,function(){b=!0;
!b||T.length||S||e.complete()}));
return function(){T=null}};
Pu=function(v,e){var d=d===void 0?Infinity:d;if(d5(e))return Pu(function(E,T){return Mq(function(S,O){return e(E,S,T,O)})(b9(v(E,T)))},d);
typeof e==="number"&&(d=e);return o0(function(E,T){return Q00(E,T,v,d)})};
gaS=function(v){v=v===void 0?Infinity:v;return Pu(a0,v)};
us0=function(){var v=_.Xa.apply(0,arguments);return gaS(1)(P9W(v,Nq(v)))};
naj=function(v){return new O9(function(e){b9(v()).subscribe(e)})};
xa=function(v,e,d){if(d5(d)){var E=d;d=void 0}if(E)return xa(v,e,d).pipe(zUM(E));E=_.a(d5(v.addEventListener)&&d5(v.removeEventListener)?DqU.map(function(O){return function(b){return v[O](e,b,d)}}):d5(v.addListener)&&d5(v.removeListener)?Uqs.map(puj(v,e)):d5(v.on)&&d5(v.off)?vxL.map(puj(v,e)):[]);
var T=E.next().value,S=E.next().value;return!T&&VlW(v)?Pu(function(O){return xa(O,e,d)})(P9W(v)):new O9(function(O){if(!T)throw new TypeError("ga");
var b=function(){var Y=_.Xa.apply(0,arguments);return O.next(1<Y.length?Y:Y[0])};
T(b);return function(){return S(b)}})};
puj=function(v,e){return function(d){return function(E){return v[d](e,E)}}};
CF=function(){var v=_.Xa.apply(0,arguments),e=Nq(v);var d=typeof v[v.length-1]==="number"?v.pop():Infinity;return v.length?v.length===1?b9(v[0]):gaS(d)(P9W(v,e)):Bu};
dRj=function(v){return v.length===1&&eW0(v[0])?v[0]:v};
Exs=function(){var v=dRj(_.Xa.apply(0,arguments));return o0(function(e,d){var E=[e].concat(_.t7(v)),T=function(){if(!d.closed)if(E.length>0){try{var S=b9(E.shift())}catch(b){T();return}var O=new J7(d,void 0,Sl,Sl);d.add(S.subscribe(O));O.add(T)}else d.complete()};
T()})};
Xs=function(v){return o0(function(e,d){var E=0;e.subscribe(new J7(d,function(T){return v.call(void 0,T,E++)&&d.next(T)}))})};
Sa$=function(){var v=_.Xa.apply(0,arguments);v=dRj(v);return v.length===1?b9(v[0]):new O9(Tr0(v))};
Tr0=function(v){return function(e){for(var d=[],E={i$jscomp$220:0};d&&!e.closed&&E.i$jscomp$220<v.length;E={i$jscomp$220:E.i$jscomp$220},E.i$jscomp$220++)d.push(b9(v[E.i$jscomp$220]).subscribe(new J7(e,function(T){return function(S){if(d){for(var O=0;O<d.length;O++)O!==T.i$jscomp$220&&d[O].unsubscribe();d=null}e.next(S)}}(E))))}};
W1s=function(){var v=_.Xa.apply(0,arguments),e=xqs(v),d=dRj(v);return d.length?new O9(function(E){var T=d.map(function(){return[]}),S=d.map(function(){return!1});
E.add(function(){T=S=null});
for(var O={sourceIndex$jscomp$1:0};!E.closed&&O.sourceIndex$jscomp$1<d.length;O={sourceIndex$jscomp$1:O.sourceIndex$jscomp$1},O.sourceIndex$jscomp$1++)b9(d[O.sourceIndex$jscomp$1]).subscribe(new J7(E,function(b){return function(Y){T[b.sourceIndex$jscomp$1].push(Y);T.every(function(q){return q.length})&&(Y=T.map(function(q){return q.shift()}),E.next(e?e.apply(null,_.t7(Y)):Y),T.some(function(q,r){return!q.length&&S[r]})&&E.complete())}}(O),void 0,function(b){return function(){S[b.sourceIndex$jscomp$1]=
!0;
!T[b.sourceIndex$jscomp$1].length&&E.complete()}}(O)));
return function(){T=S=null}}):Bu};
aPs=function(v){var e,d,E;return!!v&&typeof v.active==="boolean"&&typeof((e=v.clock)==null?void 0:e.now)==="function"&&((d=v.clock)==null?void 0:d.timeline)!==void 0&&!((E=v.lastMeasurement)==null||!E.timestamp)&&typeof v.equivalentTo==="function"&&typeof v.extrapolateToNow==="function"&&typeof v.extrapolateToTime==="function"&&typeof v.map==="function"&&typeof v.joinWith==="function"};
i0O=function(v){function e(d){return typeof d==="boolean"||typeof d==="string"||typeof d==="number"||d===void 0||d===null}
return e(v)?!0:Array.isArray(v)?v.every(e):typeof v==="object"?Object.keys(v).every(function(d){return typeof d==="string"})&&Object.values(v).every(function(d){return Array.isArray(d)?d.every(e):e(d)}):!1};
O0s=function(v){if(i0O(v))return v;if(aPs(v))return{lastMeasurement:{value:O0s(v.lastMeasurement.value),timestamp:zM(v.lastMeasurement.timestamp,new l9(0,v.lastMeasurement.timestamp.timeline))},active:v.active};try{return JSON.parse(JSON.stringify(v))}catch(e){}return String(v)};
Hu=function(v,e){return function(d){return new O9(function(E){return d.subscribe(function(T){v.timeExecution(e,function(){E.next(T)})()},function(T){v.timeExecution(e,function(){E.error(T)})()},function(){v.timeExecution(e,function(){E.complete()})()})})}};
IPS=function(v,e){var d=!1;return new O9(function(E){var T=v.setTimeout(function(){d=!0;E.next(!0);E.complete()},e);
return function(){d||v.clearTimeout(T)}})};
b0L=function(v){v=v.global;if(v.fetchLater)return v.fetchLater.bind(v)};
Z2=function(v){return o0(function(e,d){var E=null,T=!1,S;E=e.subscribe(new J7(d,void 0,function(O){S=b9(v(O,Z2(v)(e)));E?(E.unsubscribe(),E=null,S.subscribe(d)):T=!0}));
T&&(E.unsubscribe(),E=null,S.subscribe(d))})};
YaW=function(v,e,d){return function(E,T){var S=d,O=e,b=0;E.subscribe(new J7(T,function(Y){var q=b++;O=S?v(O,Y,q):(S=!0,Y);T.next(O)},void 0,void 0))}};
mRH=function(v){v=v===void 0?null:v;return o0(function(e,d){var E=!1;e.subscribe(new J7(d,function(T){E=!0;d.next(T)},void 0,function(){E||d.next(v);
d.complete()}))})};
cu=function(){return o0(function(v,e){v.subscribe(new J7(e,Sl))})};
w5=function(v){return o0(function(e,d){e.subscribe(new J7(d,function(){return d.next(v)}))})};
Fs=function(v){return v<=0?function(){return Bu}:o0(function(e,d){var E=0;
e.subscribe(new J7(d,function(T){++E<=v&&(d.next(T),v<=E&&d.complete())}))})};
Qt=function(v){var e=e===void 0?a0:e;var d;v=(d=v)!=null?d:ycS;return o0(function(E,T){var S,O=!0;E.subscribe(new J7(T,function(b){var Y=e(b);if(O||!v(S,Y))O=!1,S=Y,T.next(b)}))})};
ycS=function(v,e){return v===e};
rcS=function(v){v=v===void 0?qaW:v;return o0(function(e,d){var E=!1;e.subscribe(new J7(d,function(T){E=!0;d.next(T)},void 0,function(){return E?d.complete():d.error(v())}))})};
qaW=function(){return new hWO};
g5=function(){var v=_.Xa.apply(0,arguments);return function(e){return us0(e,ka.apply(null,_.t7(v)))}};
K1W=function(v){return o0(function(e,d){var E=0;e.subscribe(new J7(d,function(T){v.call(void 0,T,E++,e)||(d.next(!1),d.complete())},void 0,function(){d.next(!0);
d.complete()}))})};
$Rs=function(){return o0(function(v,e){var d=[];v.subscribe(new J7(e,function(E){d.push(E);1<d.length&&d.shift()},void 0,function(){for(var E=_.a(d),T=E.next();!T.done;T=E.next())e.next(T.value);
e.complete()},function(){d=null}))})};
j23=function(v,e){var d=arguments.length>=2;return function(E){return E.pipe(v?Xs(function(T,S){return v(T,S,E)}):a0,$Rs(),d?mRH(e):rcS(function(){return new hWO}))}};
nF=function(v){var e=d5(v)?v:function(){return v};
return d5()?o0(function(d,E){var T=e();(void 0)(T).subscribe(E).add(d.subscribe(T))}):function(d){var E=new u9(d,e);
d5(d==null?void 0:d.lift)&&(E.lift=d.lift);E.source=d;E.subjectFactory=e;return E}};
U9=function(v){var e=new D2(v,void 0,void 0);return function(d){return nF(function(){return e})(d)}};
pF=function(v,e){return o0(YaW(v,e,arguments.length>=2))};
vn=function(){var v=_.Xa.apply(0,arguments),e=Nq(v);return o0(function(d,E){(e?us0(v,d,e):us0(v,d)).subscribe(E)})};
ey=function(v){return o0(function(e,d){var E=null,T=0,S=!1;e.subscribe(new J7(d,function(O){var b;(b=E)==null||b.unsubscribe();b=T++;b9(v(O,b)).subscribe(E=new J7(d,function(Y){return d.next(Y)},void 0,function(){E=null;
S&&!E&&d.complete()}))},void 0,function(){(S=!0,!E)&&d.complete()}))})};
dr=function(v,e){e=e===void 0?!1:e;return o0(function(d,E){var T=0;d.subscribe(new J7(E,function(S){var O=v(S,T++);(O||e)&&E.next(S);!O&&E.complete()}))})};
s20=function(v,e,d){var E=d5(v)||e||d?{next:v,error:e,complete:d}:v;return E?o0(function(T,S){T.subscribe(new J7(S,function(O){var b;(b=E.next)==null||b.call(E,O);S.next(O)},function(O){var b;
(b=E.error)==null||b.call(E,O);S.error(O)},function(){var O;
(O=E.complete)==null||O.call(E);S.complete()}))}):a0};
NrM=function(){var v=_.Xa.apply(0,arguments),e=xqs(v);return o0(function(d,E){for(var T=v.length,S=Array(T),O=v.map(function(){return!1}),b=!1,Y={i$jscomp$230:0};Y.i$jscomp$230<T;Y={i$jscomp$230:Y.i$jscomp$230},Y.i$jscomp$230++)b9(v[Y.i$jscomp$230]).subscribe(new J7(E,function(q){return function(r){S[q.i$jscomp$230]=r;
b||O[q.i$jscomp$230]||(O[q.i$jscomp$230]=!0,(b=O.every(a0))&&(O=null))}}(Y),void 0,Sl));
d.subscribe(new J7(E,function(q){b&&(q=[q].concat(_.t7(S)),E.next(e?e.apply(null,_.t7(q)):q))}))})};
L1O=function(v){try{return!!v&&v.location.href!=null&&k87(v,"foo")}catch(e){return!1}};
VyW=function(v){var e=[],d=0,E;for(E in v)e[d++]=E;return e};
oxM=function(v,e){for(var d in v)if(v[d]==e)return!0;return!1};
JcO=function(v,e,d){for(var E in v)if(e.call(d,v[E],E,v))return E};
G8M=function(v){if(!v||typeof v!=="object")return v;if(typeof v.clone==="function")return v.clone();if(typeof Map!=="undefined"&&v instanceof Map)return new Map(v);if(typeof Set!=="undefined"&&v instanceof Set)return new Set(v);if(v instanceof Date)return new Date(v.getTime());var e=Array.isArray(v)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(v)||v instanceof DataView?{}:new v.constructor(v.length),d;for(d in v)e[d]=G8M(v[d]);return e};
MyL=function(v){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return MyL.apply(null,arguments[0]);if(e%2)throw Error("ka");for(var d={},E=0;E<e;E+=2)d[arguments[E]]=arguments[E+1];return d};
tyS=function(v){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return tyS.apply(null,arguments[0]);for(var d={},E=0;E<e;E++)d[arguments[E]]=!0;return d};
_.Ea=function(v){return new a2S(v[0].toLowerCase())};
fP$=function(v){for(var e=_.Xa.apply(1,arguments),d=v[0],E=0;E<v.length-1;E++)d+=String(e[E]),d+=v[E+1];e=document.implementation.createHTMLDocument("");E=e.createElement("style");e.head.appendChild(E);e=E.sheet;e.insertRule(d,0);if(e.cssRules.length===1&&(d=e.cssRules[0],d instanceof CSSStyleRule))return new el(d.cssText.replace(/</g,"\\3C "))};
RWH=function(v){try{return new URL(v,window.document.baseURI)}catch(e){return new URL("about:invalid")}};
Pe$=function(v,e){var d=e.createRange();d.selectNode(e.body);v=Ar(v);return d.createContextualFragment(ZB(v))};
xR0=function(v){v=v.nodeName;return typeof v==="string"?v:"FORM"};
BrM=function(v){v=v.nodeType;return v===1||typeof v!=="number"};
a2=function(v,e,d){v.setAttribute(e,d)};
CeW=function(v){return v.parts.map(function(e){var d=e.descriptor;return""+e.url+(d?" "+d:"")}).join(" , ")};
_.ie=function(v){var e=_.Xa.apply(1,arguments);if(e.length===0)return _.km(v[0]);for(var d=v[0],E=0;E<e.length;E++)d+=encodeURIComponent(e[E])+v[E+1];return _.km(d)};
_.Oa=function(v,e){v=_.LY(v).toString();var d=v.split(/[?#]/),E=/[?]/.test(v)?"?"+d[1]:"";return XnU(d[0],E,/[#]/.test(v)?"#"+(E?d[2]:d[1]):"",e)};
XnU=function(v,e,d,E){function T(O,b){O!=null&&(Array.isArray(O)?O.forEach(function(Y){return T(Y,b)}):(e+=S+encodeURIComponent(b)+"="+encodeURIComponent(O),S="&"))}
var S=e.length?"&":"?";E.constructor===Object&&(E=Object.entries(E));Array.isArray(E)?E.forEach(function(O){return T(O[1],O[0])}):E.forEach(T);
return _.km(v+e+d)};
I2=function(v,e,d,E){this.top=v;this.right=e;this.bottom=d;this.left=E};
zWt=function(v){v=v.global;if(v.PendingGetBeacon)return v.PendingGetBeacon};
yN=function(v){return function(e){return e.pipe(lPU(v,nF(new Yx)))}};
qR=function(v){return function(e){return e.pipe(lPU(v,U9(1)))}};
lPU=function(v,e){function d(E){return new O9(function(T){return E.subscribe(function(S){rr(v,function(){return void T.next(S)},3)},function(S){rr(v,function(){return void T.error(S)},3)},function(){rr(v,function(){return void T.complete()},3)})})}
return i9(d,C9L(),e,GM(),d)};
Z00=function(v){var e=H0s(v);return e===null?new hc(null):e.pipe(Mq(function(d){d=d.serialize();if(Ac3)d=_.TO.btoa(d);else{for(var E=[],T=0,S=0;S<d.length;S++){var O=d.charCodeAt(S);O>255&&(E[T++]=O&255,O>>=8);E[T++]=O}d=_.GQ(E)}return d}),Fs(1),qR(v.queue))};
cc3=function(v){var e=e===void 0?{}:e;if(typeof Event==="function")return new Event(v,e);if(typeof document!=="undefined"){var d=document.createEvent("CustomEvent");d.initCustomEvent(v,e.bubbles||!1,e.cancelable||!1,e.detail);return d}throw Error();};
wnS=function(v){return typeof v==="string"?document.getElementById(v):v};
Q2s=function(v){var e=!1;e=e===void 0?!1:e;if(v.tagName==="IMG"){if(v.complete&&(!v.naturalWidth||!v.naturalHeight))return!0;var d;if(e&&((d=v.style)==null?void 0:d.display)==="none")return!0}var E,T;return F10.test((E=v.getAttribute("width"))!=null?E:"")&&F10.test((T=v.getAttribute("height"))!=null?T:"")};
gxt=function(v,e){if(v.tagName==="IMG")return v.naturalWidth&&v.naturalHeight?!0:!1;try{if(v.readyState)var d=v.readyState;else{var E,T;d=(E=v.contentWindow)==null?void 0:(T=E.document)==null?void 0:T.readyState}return d==="complete"}catch(S){return e===void 0?!1:e}};
uv$=function(v){v||(v=function(e,d,E){e.addEventListener(d,E)});
return v};
pnL=function(v,e){var d=nx7();d=d===void 0?new DR3:d;if(v=wnS(v)){var E=uv$(E);for(var T=!1,S=function(B){T||(T=!0,e(B))},O,b=2,Y=0;Y<UR3.length;++Y)if(UR3[Y]===v.tagName){b=3;
O=[v];break}O||(O=v.querySelectorAll(UR3.join(",")));var q=0,r=0,h=!0,K=v=!1;Y={};for(var k=0;k<O.length;Y={isImg:void 0},k++){var J=O[k];if(!Q2s(J))if(Y.isImg=J.tagName==="IMG",gxt(J,d.crossDomainLoadedDefault))v=!0,Y.isImg&&(h=!0);else{q++;var R=function(B){return function(X){q--;!q&&h&&S(b);B.isImg&&(X=X&&X.type==="error",r--,X||(h=!0),!r&&K&&h&&S(b))}}(Y);
E(J,"load",R);Y.isImg&&(r++,E(J,"error",R))}}r===0&&(h=!0);O=null;O=_.TO.document.readyState==="complete";if(q===0&&!v&&O)b=5;else if(q||!v){E(_.TO,"load",function(){!d.pendingImagesBlockLoad||!r&&h?S(4):K=!0});
return}S(b)}};
vhO=function(v,e,d){if(v)for(var E=0;v!=null&&E<500&&!d(v);++E)v=e(v)};
eHM=function(v,e){vhO(v,function(d){try{return d===d.parent?null:d.parent}catch(E){}return null},e)};
duL=function(v,e){if(v.tagName=="IFRAME")e(v);else{v=v.querySelectorAll("IFRAME");for(var d=0;d<v.length&&!e(v[d]);++d);}};
Eh$=function(v){return(v=v.ownerDocument)&&(v.parentWindow||v.defaultView)||null};
TfU=function(v,e,d){try{var E=JSON.parse(d.data)}catch(O){}if(typeof E==="object"&&E&&E.type==="creativeLoad"){var T=Eh$(v);if(d.source&&T){var S;eHM(d.source,function(O){try{if(O.parent===T)return S=O,!0}catch(b){}});
S&&duL(v,function(O){if(O.contentWindow===S)return e(E),!0})}}};
Sl$=function(v){return typeof v==="string"?document.getElementById(v):v};
OXS=function(){var v={};return v[0]=_.ie(Wi3,"current"),v[1]=_.ie(a4j),v[2]=_.ie(iX0),v};
K0=function(v,e){return v.left===e.left&&v.top===e.top&&v.width===e.width&&v.height===e.height};
I40=function(v,e){return{left:Math.max(v.left,e.left),top:Math.max(v.top,e.top),width:Math.max(0,Math.min(v.left+v.width,e.left+e.width)-Math.max(v.left,e.left)),height:Math.max(0,Math.min(v.top+v.height,e.top+e.height)-Math.max(v.top,e.top))}};
bXt=function(v,e){return{left:Math.round(v.left+e.x),top:Math.round(v.top+e.y),width:v.width,height:v.height}};
Yl0=function(v,e,d){if(v&&e!==null&&e!=e.top){if(!e.top)return new _.$x(-12245933,-12245933);e=e.top}try{return(d===void 0?0:d)?(new _.$x(e.innerWidth,e.innerHeight)).round():_.jy(e).round()}catch(E){return new _.$x(-12245933,-12245933)}};
muU=function(v,e,d){try{if(v){if(!e.top)return new I2(-12245933,-12245933,-12245933,-12245933);e=e.top}var E=Yl0(v,e,d),T=E.height,S=E.width;if(S===-12245933)return new I2(S,S,S,S);var O=sa(NR(e.document)),b=O.x,Y=O.y;return new I2(Y,b+S,Y+T,b)}catch(q){return new I2(-12245933,-12245933,-12245933,-12245933)}};
yzO=function(v){var e;return(e=v.google_tag_data)!=null?e:v.google_tag_data={}};
qlM=function(v){var e,d;return typeof((e=v.navigator)==null?void 0:(d=e.userAgentData)==null?void 0:d.getHighEntropyValues)==="function"};
hH0=function(v){if(!qlM(v))return null;var e=yzO(v);if(e.uach_promise)return e.uach_promise;v=v.navigator.userAgentData.getHighEntropyValues(rz0).then(function(d){e.uach!=null||(e.uach=d);return d});
return e.uach_promise=v};
Mtt=function(v){var e;return Kij($uM(ju0(suU(Nfs(kZj(LiW(Vt7(ohO(new JzU,v.architecture||""),v.bitness||""),v.mobile||!1),v.model||""),v.platform||""),v.platformVersion||""),v.uaFullVersion||""),((e=v.fullVersionList)==null?void 0:e.map(function(d){var E=new GZL;E=_.L0(E,1,d.brand);return _.L0(E,2,d.version)}))||[]),v.wow64||!1)};
tt0=function(v){var e,d;return(d=(e=hH0(v))==null?void 0:e.then(function(E){return Mtt(E)}))!=null?d:null};
f4S=function(v,e){return new O9(function(d){var E=!1,T=Array(e.length);T.fill(void 0);var S=new Set,O=new Set,b=function(h,K){v.running?(T[K]=h,S.add(K),E||(E=!0,rr(v,function(){E=!1;d.next(_.Zt(T))},1))):d.error(new VN(K))},Y=function(h,K){O.add(K);
S.add(K);rr(v,function(){d.error(h)},1)},q=function(h){O.add(h);
rr(v,function(){O.size===e.length&&d.complete()},1)},r=e.map(function(h,K){return h.subscribe(function(k){return void b(k,K)},function(k){return void Y(k,K)},function(){return void q(K)})});
return function(){r.forEach(function(h){return void h.unsubscribe()})}})};
xu7=function(v,e,d){function E(){if(e.debugChannel){var B=e.debugChannel,X=B.next;var Z={creativeId:e.debugNames.getName(d),requiredSignals:T,signals:Object.assign({},S),hasPrematurelyCompleted:O,errorMessage:b,erroredSignalKey:Y};Z={specMajor:2,specMinor:0,specPatch:0,timestamp:zM(e.timeProvider.now(),new l9(0,e.timeProvider.timeline)),instanceId:e.debugNames.getName(e.symbol),creativeState:Z};X.call(B,Z)}}
for(var T=Object.keys(v),S={},O=!1,b=null,Y=null,q={},r=new Set,h=[],K=[],k=_.a(T),J=k.next(),R={};!J.done;R={key$jscomp$396:void 0},J=k.next())R.key$jscomp$396=J.value,J=v[R.key$jscomp$396],J instanceof hc?(q[R.key$jscomp$396]=J.value,r.add(R.key$jscomp$396),e.debugChannel&&(S[String(R.key$jscomp$396)]=O0s(J.value))):(J=J.pipe(Qt(function(B,X){return aPs(B)||aPs(X)?!1:B===X}),Mq(function(B){return function(X){e.debugChannel&&(S[String(B.key$jscomp$396)]=O0s(X),E());
var Z={};return Z[B.key$jscomp$396]=X,Z}}(R)),Z2(function(B){return function(X){if(X instanceof VN)throw new RHs(String(B.key$jscomp$396));
throw X;}}(R)),s20(function(B){return function(){r.add(B.key$jscomp$396)}}(R),function(B){return function(X){Y=String(B.key$jscomp$396);
b=String(X);E()}}(R),function(B){return function(){r.has(B.key$jscomp$396)||(O=!0,E())}}(R))),K.push(R.key$jscomp$396),h.push(J));
(v=Object.keys(S).length>0)&&E();k=f4S(e.queue,h).pipe(Z2(function(B){if(B instanceof VN)throw new PZM(String(K[B.inputObservableIndex]));throw B;}),Mq(function(B){return Object.freeze(Object.assign.apply(Object,[{},
q].concat(_.t7(B))))}));
return(h=h.length>0)&&v?CF(ka(Object.freeze(q)),k):h?k:ka(Object.freeze(q))};
BfS=function(v,e,d,E,T){return v.performanceMonitor.timeExecution.bind(v.performanceMonitor)(733,function(){var S={};try{return e.pipe(Z2(function(O){E(Object.assign({},S,{error:O}));return Bu}),Pu(function(O){try{var b=d(v,O)}catch(q){return E(Object.assign({},S,{error:q instanceof Error?q:String(q)})),Bu}var Y={};
return xu7(b,v,O.symbol).pipe(s20(function(q){Y=q}),U9(1),GM()).pipe(T,Z2(function(q){E(Object.assign({},Y,{error:q}));
return Bu}),g5(void 0),Mq(function(){return!0}))})).pipe(pF(function(O){return O+1},0),Z2(function(O){E(Object.assign({},S,{error:O}));
return Bu}))}catch(O){return E(Object.assign({},S,{error:O})),Bu}})()};
o2=function(v){var e=new Map;if(typeof v!=="object"||v===null)return e;Object.values(v).forEach(function(d){d&&typeof d.extrapolateToNow==="function"&&(e.has(d.clock.timeline)||e.set(d.clock.timeline,d.clock.now()))});
return e};
CZM=function(v,e){return typeof v==="string"?encodeURIComponent(v):typeof v==="number"?String(v):Array.isArray(v)?v.map(function(d){return CZM(d,e)}).join(","):v instanceof l9?v.toString():v&&typeof v.extrapolateToNow==="function"?CZM(v.extrapolateUsingTimestampMap(e).value,e):v===!0?"1":v===!1?"0":v===void 0||v===null?null:v instanceof XwW?zHs(v):[v.top,
v.left,v.top+v.height,v.left+v.width].join()};
l4j=function(v,e){v=Object.entries(v).map(function(d){var E=_.a(d);d=E.next().value;E=E.next().value;E=CZM(E,e);return E===null?"":d+"="+E}).filter(function(d){return d!==""});
return v.length?v.join("&"):""};
ZXM=function(v,e){var d=HXS,E=Az0;e=e===void 0?.01:e;return function(T){e>0&&Math.random()<=e&&(v.global.HTMLFencedFrameElement&&v.global.fence&&typeof v.global.fence.reportEvent==="function"&&v.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(v.performanceMonitor.timedFunctionContext),errorEscapedQueryId:T.escapedQueryId}),d(Object.assign({},T,{payloadMapper:function(){return function(S){try{return E(Object.assign({},S))}catch(O){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),o2(T)).forEach(function(S){v.beaconFactory.makeBeacon(S).sendNow()}))}};
czL=function(){var v=_.Xa.apply(0,arguments);return function(e){var d=e.pipe(U9(1),GM());e=v.map(function(E){return d.pipe(E,g5(!0))});
return fF(e).pipe(Fs(1),cu())}};
ww0=function(){var v=_.Xa.apply(0,arguments);return function(e){var d=e.pipe(U9(1),GM());e=v.map(function(E){return d.pipe(E,g5(!0))});
return CF.apply(null,_.t7(e)).pipe(Fs(1),cu())}};
Fij=function(v,e){return function(d){var E=d.pipe(U9(1),GM());d=E.pipe(v,g5(!0));E=E.pipe(i9(e,U9(),GM()),g5(!0));d=fF([d,E]);return Sa$(d,E).pipe(Fs(1),cu())}};
Quj=function(v,e,d){d(!0)};
gh3=function(v,e){return i9(ey(function(d){var E=v(d),T=e(d),S={};return E&&T&&S?new O9(function(O){T(E,S,function(b){O.next(Object.assign({},d,{canEmit:b}));O.complete()});
return function(){}}):Jc}),Xs(function(d){return d.canEmit}))};
u$H=function(v){var e={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(d){return d.pipe(ey(function(E){return new O9(function(T){function S(){b.disconnect();Y.unsubscribe()}
var O=v.MutationObserver;if(O&&E.ref!==void 0){var b=new O(function(q){T.next(q)});
b.observe(E.ref,e);var Y=E.JSC$9351_released.subscribe(S);return S}})}))}};
nhW=function(v){if(v.measurementDeferralState===3)return null;if(v.timeOnScreenReason!==void 0){var e=v.creativeFound===!1?"n":null;if(e!==null)return e}return v.geometricMeasurementErrors instanceof MR?"msf":v.contextValidationErrors instanceof tc?"c":v.contextVisibilityKnown===!1?"pv":v.geometricMeasurementErrors||v.contextValidationErrors?"x":null};
UuM=function(v,e){return v.replace(DuM,function(d,E){try{var T=_.f0.get(e,E);if(T==null||T.toString()==null)return d;T=T.toString();if(T==""||!_.IU(T==null?"":String(T)))return encodeURIComponent(T).replace(/%2C/g,",")}catch(S){}return d})};
pwU=function(v,e){var d=Object.assign({},v),E=v.userAgentClientHints;d=(delete d.userAgentClientHints,d);d=v.payloadMapper(d);var T=l4j(d,e);return _.R2(v.urlPrefixes,function(S){var O="";typeof E==="string"&&(O="&"+l4j({uach:E},e));var b={};return UuM(S,(b.VIEWABILITY=T,b))+O})};
HXS=function(v,e){var d=v.payloadMapper(v),E=l4j(d,e);return E?_.R2(v.urlPrefixes,function(T){T=T.indexOf("?")>=0?T:T+"?";T="?&".indexOf(T.slice(-1))>=0?T:T+"&";return T+E}):v.urlPrefixes};
vGW=function(){return i9(Xs(function(v){return v!==void 0}),Mq(function(v){return v}))};
ed0=function(v){return i9(Mq(function(){return!0}),vn(!1),qR(v))};
d4M=function(v){return v.length<=0?Bu:fF(v.map(function(e){var d=0;return e.pipe(Mq(function(E){return{index:d++,value:E}}))})).pipe(Xs(function(e){return e.every(function(d){return d.index===e[0].index})}),Mq(function(e){return e.map(function(d){return d.value})}))};
EGU=function(v,e){v.currentState&&(v.previousState=v.currentState);v.currentState=e;v.previousState&&v.previousState.value?(e=Math.max(0,zM(e.timestamp,v.previousState.timestamp)),v.totalTime+=e,v.consecutiveTime+=e):v.consecutiveTime=0;return v};
Ths=function(){return i9(pF(EGU,{totalTime:0,consecutiveTime:0}),Mq(function(v){return v.totalTime}))};
SE0=function(){return i9(pF(EGU,{totalTime:0,consecutiveTime:0}),Mq(function(v){return v.consecutiveTime}))};
Ws0=function(v,e){return function(d){return d4M(e.map(function(E){return d.pipe(v(E))}))}};
agS=function(){var v;return i9(s20(function(e){return void(v=e.timestamp)}),SE0(),Mq(function(e){return{timestamp:v,
value:Math.round(e)}}))};
iD0=function(v,e){return K0(v.topWindowViewportExternalGeometry,e.topWindowViewportExternalGeometry)&&K0(v.elementGeometry,e.elementGeometry)&&K0(v.exposedViewportLocalGeometry,e.exposedViewportLocalGeometry)&&K0(v.intersectionGeometry,e.intersectionGeometry)&&v.elementGeometrySourceName===e.elementGeometrySourceName&&v.measurementRequests===e.measurementRequests&&v.viewportGeometrySourceName===e.viewportGeometrySourceName&&v.viewportLocalAppOffset.x===e.viewportLocalAppOffset.x&&v.viewportLocalAppOffset.y===
e.viewportLocalAppOffset.y};
YEj=function(v,e){return function(d){return function(E){var T=E.pipe(nF(new Yx),GM());E=d.element.pipe(Qt());T=T.pipe(Mq(function(S){return S.value}));
return fF([E,T,e]).pipe(Mq(function(S){var O=_.a(S);S=O.next().value;var b=O.next().value;O=O.next().value;if(S.ref===void 0)var Y={top:0,left:0,width:0,height:0};else{Y=S.ref.getBoundingClientRect();var q=S.ref,r=v.global,h=new _.Pn(0,0),K=xx(_.Bn(q));if(k87(K,"parent")){do{if(K==r)var k=_.C0(q);else k=ODL(q),k=new _.Pn(k.left,k.top);h.x+=k.x;h.y+=k.y}while(K&&K!=r&&K!=K.parent&&(q=K.frameElement)&&(K=K.parent))}Y={top:h.y,left:h.x,width:Y.width,height:Y.height}}Y=bXt(Y,b.viewportLocalAppOffset);
r=I40(Y,b.exposedViewportLocalGeometry);h=v.timeProvider.now();K=Object;q=K.assign;if(O!==2||v.inCrossDomainIframe||r.width<=0||r.height<=0)var J=!1;else try{var R=v.document.elementFromPoint(r.left+r.width/2,r.top+r.height/2);J=R?!Igt(R,S):!1}catch(B){J=!1}return{timestamp:h,value:q.call(K,{},b,{elementGeometrySourceName:"geo",intersectionGeometry:J?bDU.intersectionGeometry:r,elementGeometry:Y})}}),yN(v.queue))}}};
Igt=function(v,e,d){d=d===void 0?0:d;return v.ref===void 0||e.ref===void 0?!1:v.ref===e.ref||_.Xv(e.ref,function(E){return E===v.ref})?!0:e.ref.ownerDocument&&e.ref.ownerDocument.defaultView&&e.ref.ownerDocument.defaultView===e.ref.ownerDocument.defaultView.top?!1:d<10&&e.ref.ownerDocument&&e.ref.ownerDocument.defaultView&&e.ref.ownerDocument.defaultView.frameElement?Igt(v,new z8(e.ref.ownerDocument.defaultView.frameElement),d+1):!0};
qEL=function(v){return function(e){return e.pipe(v.ResizeObserver?m43(v):yft(v),U9(1),GM())}};
m43=function(v){return function(e){return e.pipe(ey(function(d){var E=v.ResizeObserver;if(!E||d.ref===void 0)return ka(bDU.elementGeometry);var T=(new O9(function(S){function O(){d.ref!==void 0&&b.unobserve(d.ref);b.disconnect();Y.unsubscribe()}
if(d.ref===void 0)return S.complete(),function(){};
var b=new E(function(q){q.forEach(function(r){S.next(r)})});
b.observe(d.ref);var Y=d.JSC$9351_released.subscribe(O);return O})).pipe(Hu(v.performanceMonitor,736),Mq(function(S){return S.contentRect}));
return CF(ka(d.ref.getBoundingClientRect()),T)}),Qt(K0))}};
yft=function(v){return function(e){var d=e.pipe(u$H(v)),E=v.onResize;d=CF(e.pipe(Mq(function(){return cc3("resize")})),d,E);
return fF(e,d).pipe(Hu(v.performanceMonitor,737),Mq(function(T){T=_.a(T).next().value;return T.ref===void 0?void 0:T.ref.getBoundingClientRect()}),vGW(),Qt(K0))}};
KsO=function(v,e){var d=rfL(v,e).pipe(U9(1),GM());return function(E){return function(T){T=T.pipe(ey(function(S){return S.element}),Qt());
return fF([d,T]).pipe(ey(function(S){var O=_.a(S);S=O.next().value;O=O.next().value;return hdt(v,S.intersectionObserver,qEL(v),S.observations,E,S.flushRecords,O)}),yN(v.queue))}}};
$47=function(v){return Mq(function(e){return e.value.viewportGeometrySourceName!=="nio"?e:Object.assign({},e,{value:Object.assign({},e.value,{exposedViewportLocalGeometry:le(v,!0),topWindowViewportExternalGeometry:le(v,!0)})})})};
j_W=function(v,e){return ka(e).pipe(v,Mq(function(){return e}))};
rfL=function(v,e){return v.timeProvider.timeline!==s_S?LF(new MR(2)):v.MutationObserver?typeof IntersectionObserver==="undefined"?LF(new MR(0)):(new O9(function(d){var E=new Yx,T=new Hn(E.next.bind(E),{threshold:[].concat(_.t7(e))});d.next({observations:E.pipe(Hu(v.performanceMonitor,735)),intersectionObserver:T,flushRecords:function(S){S=T.takeRecords(S);S.length>0&&E.next(S)}})})).pipe(Fs(1),U9(1),GM()):LF(new MR(1))};
Nht=function(v){return oat(v.sort(function(e,d){return e.time-d.time}),B50)};
hdt=function(v,e,d,E,T,S,O){return new O9(function(b){function Y(){J||(J=!0,O.ref!==void 0&&e.unobserve(T,O.ref),r.unsubscribe(),k.unsubscribe(),K.unsubscribe(),R.unsubscribe())}
if(O.ref!==void 0){kq$(e,T);e.observe(T,O.ref);var q=new Ac({timestamp:v.timeProvider.now(),value:Object.assign({},bDU,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),r=E.pipe(Pu(function(B){return Nht(B)}),Xs(function(B){return B.target===O.ref}),Mq(function(B){return{timestamp:new l9(B.time,s_S),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:B.rootBounds||ZP,topWindowViewportExternalGeometry:B.rootBounds||le(v,!0),measurementRequests:h,elementGeometrySourceName:"nio",intersectionGeometry:B.intersectionRect,elementGeometry:B.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:B.isIntersecting,isV2Visible:B.isVisible}}}),nF(q),GM()).subscribe(b),h=new Yx,K=h.subscribe(function(){S(T);
b.next({timestamp:v.timeProvider.now(),value:q.value.value});O.ref!==void 0&&(e.unobserve(T,O.ref),e.observe(T,O.ref))}),k=j_W(d,O).subscribe(function(){h.next()}),J=!1,R=O.JSC$9351_released.subscribe(function(){return Y()});
return Y}})};
LsM=function(v,e){var d=v.getOnBackgrounded().pipe(Mq(function(){return"b"}));
return Sa$(e,d).pipe(Fs(1),qR(v.queue))};
cn=function(v){return function(e){var d;return e.pipe(s20(function(E){return void(d=E.timestamp)}),Mq(function(E){return E.value}),v,Mq(function(E){return{timestamp:d,
value:E}}))}};
VxO=function(v){return v.intersectionGeometry.width*v.intersectionGeometry.height/(v.elementGeometry.width*v.elementGeometry.height)};
Fv=function(v,e,d){d=d===void 0?function(E,T){return E===T}:d;
return v.timestamp.equals(e.timestamp)&&d(v.value,e.value)};
gr=function(v,e){return e.pipe(Mq(function(d){return new QN(v.timeProvider,{timestamp:v.timeProvider.now(),value:d})}))};
oG0=function(v){return function(e){return e.pipe(NrM(v),Mq(function(d){var E=_.a(d);d=E.next().value;E=E.next().value;var T=d.value;return{timestamp:d.timestamp,value:T>=1?!0:T<=0?!1:T>=E}}))}};
Gq$=function(){return i9(Xs(function(v,e){return e>0}),JfO,vn(-1),Qt())};
Mx0=function(v,e,d){return v?fF([e,d]).pipe(Xs(function(E){var T=_.a(E);E=T.next().value;T=T.next().value;return E.timestamp.equals(T.timestamp)}),Mq(function(E){var T=_.a(E);
E=T.next().value;T=T.next().value;return E.value>T.value?E:T})):e};
RdO=function(v){return function(e){var d=e.pipe(txj),E=e.pipe(fg3);return v instanceof O9?v.pipe(ey(function(T){return Mx0(T,d,E)})):Mx0(v.value,d,E)}};
ZD$=function(v,e,d,E){var T=E.geometryIsOccluded,S=E.exposureThreshold,O=E.wasLargeAdAtRender,b=E.allowLargeAdThreshold,Y=E.largeAdExposureThreshold,q=E.mayUseViewportShareExposure,r=E.hasMeasurementStarted;E=E.useIntersectionObserverV2;e=P3t(v,d,e);d=x4j(v,d);E=BhM(e,E);var h=C3H(v,T,q,e),K=h.pipe(Mq(function(g){return g.value}),Qt(),qR(v),pF(function(g,Q){return Math.max(g,Q)},0)),k=h.pipe(Mq(function(g){return g.value}),Gq$(),qR(v)),J=e.pipe(Xxt,Mq(function(g){return g.value}),Fs(2),Qt(),qR(v));
O=zdW(v,e,O,b);var R=O.pipe(vn(!1),Qt(),Mq(function(g){return g?Y:S}));
b=h.pipe(oG0(R),Qt(),qR(v));var B=fF([b,e]).pipe(Xs(function(g){var Q=_.a(g);g=Q.next().value;Q=Q.next().value;return g.timestamp.equals(Q.timestamp)}),Mq(function(g){var Q=_.a(g);
g=Q.next().value;Q=Q.next().value;return{visible:g.value,geometry:Q.value.elementGeometry}}),pF(function(g,Q){return!Q.visible&&g.visible?g:Q},{visible:!1,
geometry:ZP}),Mq(function(g){return g.geometry}),vn(ZP),qR(v),Qt(K0));
q=q instanceof O9?q.pipe(Qt(),w5()):Jc;R=fF([q,R]).pipe(w5());var X=e.pipe(Xs(function(g){return g.value.viewportGeometrySourceName!=="ns"&&g.value.elementGeometrySourceName!=="ns"}),pF(function(g){return g+1},0),vn(0),qR(v)),Z=d.pipe(w5(!0),vn(!1),qR(v));
Z=fF([r,Z]).pipe(Mq(function(g){var Q=_.a(g);g=Q.next().value;Q=Q.next().value;return g&&!Q}),qR(v));
var U=e.pipe(lgO,Qt()),F=U.pipe(Mq(function(g){return g.value}),pF(function(g,Q){return Math.max(g,Q)},0),Qt(),qR(v));
v=U.pipe(Mq(function(g){return g.value}),Gq$(),qR(v));
return{shouldResetExposureSignals:q,shouldResetViewabilitySignals:R,geometrySignals:{readyGeometryWithDefault:e,measurementStrategy:e.pipe(HDM),creativePosition:B.pipe(Qt(K0)),visible:b.pipe(Qt(Fv)),timestampedExposure:h.pipe(Qt(Fv)),maximumExposure:K,minimumExposure:k,browserSize:e.pipe(Af0,Qt(_.uL)),timestampedScreenShare:U,maxScreenShare:F,minScreenShare:v,geometricMeasurementErrors:d,measurementRequests:e.pipe(Mq(function(g){return g.value.measurementRequests})),
isLargeAd:O,geometryIsOccluded:T,hasMeasurementStarted:r,geometryMeasurable:Z,validMeasurementCount:X,loadTimeExposure:J,v2VisibilityBitVector:E}}};
x4j=function(v,e){return e.pipe(Xs(function(){return!1}),Mq(function(d){return d}),Z2(function(d){return ue(new hc(d),v)}))};
P3t=function(v,e,d){return e.pipe(Exs(Jc),qR(v)).pipe(Qt(function(E,T){return Fv(E,T,iD0)}),vn({timestamp:d.now(),
value:bDU}),qR(v))};
C3H=function(v,e,d,E){d=E.pipe(RdO(d),cn(Mq(function(T){return Math.round(T*100)/100})),qR(v));
return e instanceof hc?d:fF([d,e]).pipe(Mq(function(T){var S=_.a(T);T=S.next().value;S=S.next().value;return{timestamp:S.timestamp.maximum(T.timestamp),value:S.value?0:T.value}}),Qt(Fv),qR(v))};
zdW=function(v,e,d,E){e=[e.pipe(Mq(function(T){return T.value.elementGeometry.width*T.value.elementGeometry.height>=242500}))];
d instanceof O9&&e.push(d.pipe(Mq(function(T){return!!T})));
d=fF(e);return E?d.pipe(Mq(function(T){return T.some(function(S){return S})}),vn(!1),Qt(),qR(v)):ue(new hc(!1),v)};
BhM=function(v,e){v=fF([v,e]).pipe(Mq(function(T){var S=_.a(T);T=S.next().value;if(S.next().value&&T.value.isIntersecting)return T.value.isV2Visible}),Qt());
var d=v.pipe(Mq(function(T){return T===void 0?!0:T}),pF(function(T,S){return T||!S},!1)),E=v.pipe(pF(function(T,S){return S===void 0?T:S?!1:T!=null?T:!0},void 0),Mq(function(T){return!!T}));
return fF([e,W1s(v,d,E)]).pipe(Mq(function(T){var S=_.a(T);T=S.next().value;var O=_.a(S.next().value);S=O.next().value;var b=O.next().value;O=O.next().value;var Y=0;if(!T)return 0;if(S===void 0)return 16;S&&(Y|=1);S||(Y|=2);b&&(Y|=4);O&&(Y|=8);return Y}))};
uKs=function(v,e,d,E,T){var S=cfU.timeThresholdMs;var O=O===void 0?new wx3(e,E):O;return(new O9(function(b){var Y=d.pipe(vn(void 0),ey(function(){return FsM(T)})).pipe(Mq(function(q){var r=q.value;
q=q.timestamp;var h=r.visible;r=r.consecutiveViewTime;var K=r>=S;K||!h?Q_t(O):(q=Math.max(0,zM(e.now(),q)),gGH(O,Math.max(0,S-r-q)));return K}),pF(function(q,r){return r||q},!1),Qt()).subscribe(b);
return function(){O.dispose();Y.unsubscribe()}})).pipe(dr(function(b){return!b},!0),qR(v))};
FsM=function(v){return d4M([v,v.pipe(agS())]).pipe(Mq(function(e){var d=_.a(e);e=d.next().value;d=d.next().value;return{timestamp:e.timestamp,value:{visible:e.value,consecutiveViewTime:d.value}}}),Qt(function(e,d){return Fv(e,d,function(E,T){return E.consecutiveViewTime===T.consecutiveViewTime&&E.visible===T.visible})}))};
nG0=function(){return i9(SE0(),pF(function(v,e){return Math.max(v,e)},0),Mq(function(v){return Math.round(v)}))};
D4s=function(v){return i9(oG0(ka(v)),nG0())};
U4L=function(v,e){return e instanceof O9?e.pipe(ey(function(d){return(d=d?15:null)?LF(new MR(d)):v})):(e=e.value?15:null)?LF(new MR(e)):v};
px7=function(v){var e=new MR(13);if(v.length<1)return{chain:Bu,capturedErrors:Bu};var d=new Yx,E=v[0];return{chain:v.slice(1).reduce(function(T,S){return T.pipe(Z2(function(O){d.next(O);return S}))},E).pipe(Z2(function(T){d.next(T);
return LF(e)}),nF(new Yx),GM()),
capturedErrors:d}};
vc0=function(v,e){var d=v.pipe(nF(new Yx),GM());return ey(function(E){return d.pipe(e(E))})};
d9t=function(v,e){if(v.inCrossDomainIframe)return LF(new MR(6));var d=new Yx;return CF(ka({}),e,d).pipe(Mq(function(){return{timestamp:v.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:eZt(v),topWindowViewportExternalGeometry:le(v,!0),measurementRequests:d,viewportLocalAppOffset:{x:0,y:0}}}}),yN(v.queue))};
eZt=function(v){var e=le(v,!1);if(!v.inIframe||!L1O(v.global.parent)||v.global.parent===v.global)return e;var d=new n0(v.global.parent,v.debugChannel);d.beaconFactory=v.beaconFactory;d=eZt(d);v=v.global.frameElement.getBoundingClientRect();return I40(bXt(I40(d,v),{x:e.left-v.left,y:e.top-v.top}),e)};
Ec$=function(v){if(v.prerendering)return 3;var e;return(e={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[v.visibilityState||v.webkitVisibilityState||v.mozVisibilityState||""])!=null?e:0};
TZj=function(v){return v.document.JSC$9362_onVisibilityChange.pipe(Mq(function(e){return e==="visible"}),Qt(),qR(v.queue))};
SWM=function(v,e,d){var E;return e.pipe(Qt(),ey(function(T){return d.pipe(Mq(function(){if(!E){E=!0;try{T.next()}finally{E=!1}}return!0}))}),vn(!1),qR(v.queue))};
WE7=function(v){return i9(cn(Mq(function(e){return e>=1?!0:e<=0?!1:e>=v})),Ths(),Mq(function(e){return Math.round(e)}))};
i4W=function(v,e,d,E,T){var S=aV$;if(S.length>1)for(var O=0;O<S.length-1;O++)if(S[O]<S[O+1])throw Error();O=T.pipe(vn(void 0),ey(function(){return d.pipe(agS())}),Qt(),qR(v));
T=T.pipe(vn(void 0),ey(function(){return d.pipe(nG0())}),Qt(),qR(v));
return{totalMeasurementTime:E.pipe(vn(void 0),ey(function(){return e.pipe(Mq(function(b){return{timestamp:b.timestamp,value:!0}}),Ths())}),Qt(),qR(v)),
totalUnviewedTime:E.pipe(vn(void 0),ey(function(){return e.pipe(Mq(function(b){return{timestamp:b.timestamp,value:b.value===0}}),Ths())}),Qt(),qR(v)),
maxTimeOnScreen:E.pipe(vn(void 0),ey(function(){return e.pipe(Ws0(D4s,S))}),Qt(_.uL),qR(v)),
timeOnScreen:E.pipe(vn(void 0),ey(function(){return e.pipe(Ws0(WE7,S),Mq(function(b){return b.map(function(Y,q){return q>0?Y-b[q-1]:Y})}))}),Qt(_.uL),qR(v)),
maxConsecutiveViewTime:T,consecutiveViewTime:O.pipe(Qt(Fv),qR(v))}};
IV0=function(v){var e=!0;e=e===void 0?!1:e;return i9(ey(function(d){return O4U(v.document,d,e)}),qR(v.queue))};
b4t=function(v,e,d){var E=d.pipe(Mq(function(T){return{value:T,timestamp:v.timeProvider.now()}}),Qt(Fv));
return e instanceof O9?e.pipe(Qt(),ey(function(T){return T?ue(new hc({value:!1,timestamp:v.timeProvider.now()}),v.queue):E})):e.value===!1?E:new hc(!1)};
YWU=function(v,e,d,E,T,S,O){var b=cfU;e=e instanceof O9?e.pipe(vn(!1),Qt()):e;var Y=!v.isMobile();d=b4t(v,d,E);v=O.measurableCreative.pipe(ed0(v.queue));return Object.assign({},b,{geometryIsOccluded:d,wasLargeAdAtRender:T,allowLargeAdThreshold:Y,mayUseViewportShareExposure:e,hasMeasurementStarted:v,useIntersectionObserverV2:S})};
yES=function(v,e,d,E,T,S){var O=1;S=S===void 0?!0:S;O=O===void 0?.01:O;var b=b===void 0?v.timeProvider.intervalObservable(100).pipe(qR(v.queue)):b;return v.performanceMonitor.timeExecution(916,function(){return m9L(v,e.pipe(yN(v.queue)),d.pipe(yN(v.queue)),E,T,S,O,b)})()};
m9L=function(v,e,d,E,T,S,O,b){var Y=TZj(v).pipe(Mq(function(r){return!r})),q=new qWW(v,[new rE0(v,aV$),
new hZH(v,b)]);b=czL(KEM,$9j);return BfS(v,e,function(r,h){var K=ue(new hc(h.element),r.queue).pipe(IV0(r),qR(r.queue)),k={loadedElement:K,shouldMeasure:K.pipe(w5(!0)),measurableCreative:K.pipe(Mq(function(g){var Q=Q===void 0?Symbol():Q;return Object.freeze({symbol:Q,element:ue(new hc(g),r.queue)})})),
creativeSearchResult:ue(new hc("mue"),r.queue)},J=new hc(!1),R=new hc(!1),B=new hc(17),X=new hc(!1),Z=new hc(!1),U=ue(DP,r.queue);J=q.buildGeometrySource(k,{inApp:J,useV2:!1,requestSource:ue(B,r.queue)}).geometrySource;k=YWU(r,X,R,Y,Z,U,k);R=ZD$(r.queue,r.timeProvider,J,k);k=R.geometrySignals;X=R.shouldResetViewabilitySignals;R=i4W(r.queue,k.timestampedExposure,k.visible,R.shouldResetExposureSignals,X);X=uKs(r.queue,r.timeProvider,X,k.measurementRequests,k.visible);Z=d.pipe(Xs(function(g){return g===
h.element.ref}),Mq(function(){return"ur"}));
U=IPS(r.timeProvider,T).pipe(w5("t"));Z=LsM(r,CF(Z,U));U=SWM(r,k.measurementRequests,Z.pipe(Xs(function(g){return g!==null})));
J=Z.pipe(Xs(function(g){return g!==null}),Mq(function(){return Ec$(r.global.document)===1}));
var F=js3(r.document);return Object.assign({},{beaconFactory:new hc(r.beaconFactory),context:new hc(r),inferredPingId:new hc("lidar2"),timeOnScreenPingId:new hc("lidartos"),binaryContext:new hc(17),binaryVersion:new hc(E),requestSource:B,contextValidationErrors:new hc(r.validate()?null:new tc),contextVisibilityKnown:new hc(F),payloadMapper:new hc(Az0),endOfSessionReason:Z,timeOnScreenReason:Z,requestMeasurementOnEndOfSession:U,hasImpressionFired:ssU,crossDomainIframeState:new hc(r.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:DP,inFetchLaterBeaconExperiment:DP,isTurtlex:DP,turtlexReportEventData:new hc(""),reportFencedFrameEvent:Jc,isViewableAttributionEnabled:DP,inViewableAttributionExperiment:new hc(0),fetchBeaconFactory:Jc,supportsPendingBeacon:DP,supportsFetchLater:DP,emit:new hc(Quj),beginToRenderEvent:new hc(Symbol()),activeViewUnmeasurableEvent:new hc(Symbol()),activeViewViewableEvent:new hc(Symbol()),creativeFound:ssU,immediateUrlPrefixes:new hc(h.immediateUrls),timeOnScreenUrlPrefixes:new hc(h.timeOnScreenUrls),
cpmavUrls:Jc,viewableRelayUrls:Jc,measurementDeferralState:new hc(2),urlSerializer:new hc(pwU),viewUrlSerializer:new hc(NZs),isCreativeLoaded:K.pipe(ed0(r.queue)),pageVisible:Y.pipe(Mq(function(g){return!g})),
eosPageVisible:J,timestampedExposureHistory:k.timestampedExposure.pipe(pF(function(g,Q){g.push(Q);return g},[]))},k,{viewable:gr(r,X),
maxTimeOnScreen:gr(r,R.maxTimeOnScreen),timeOnScreen:gr(r,R.timeOnScreen),maxConsecutiveViewTime:gr(r,R.maxConsecutiveViewTime),consecutiveViewTime:R.consecutiveViewTime.pipe(Mq(function(g){return new QN(r.timeProvider,g)})),
totalMeasurementTime:gr(r,R.totalMeasurementTime),totalUnviewedTime:gr(r,R.totalUnviewedTime),userAgentClientHints:Z00(r),clientOrderPingCounter:new hc(new XwW)})},ZXM(v,O),ww0(S?Fij(b,kr3):Fij(b,LEH),VIj))};
ocW=function(v){var e=_.Xa.apply(1,arguments).filter(Boolean).join("&");if(!e)return v;var d=v.match(/[?&]adurl=/);return d?v.slice(0,d.index+1)+e+"&"+v.slice(d.index+1):v+(v.indexOf("?")<0?"?":"&")+e};
Ua=function(v,e){return e?"&"+v+"="+encodeURIComponent(e):""};
JEO=function(){try{var v,e;return!!((v=window)==null?0:(e=v.top)==null?0:e.location.href)&&!1}catch(d){return!0}};
_.p0=function(v){v&&typeof v.dispose=="function"&&v.dispose()};
_.vw=function(v){for(var e=0,d=arguments.length;e<d;++e){var E=arguments[e];_.c3(E)?_.vw.apply(null,E):_.p0(E)}};
MIL=function(){var v=Grt();v=v===void 0?"bevasrsg":v;return new Promise(function(e){var d=window===window.top?window:JEO()?window:window.top,E=d[v],T;((T=E)==null?0:T.bevasrs)?e(new et(E.bevasrs)):(E||(E={},E=(E.nqfbel=[],E),d[v]=E),E.nqfbel.push(function(S){e(new et(S))}))})};
tIt=function(v){var e={c:v.vp,e:v.cEX,mc:v.lQW,me:v.dFA};v.wi&&(e.co={c:v.wi.qFk,a:v.wi.fgG,s:v.wi.e1a});return e};
fV$=function(v){var e,d,E={vp:v.c,cEX:v.e,lQW:(e=v.mc)!=null?e:!1,dFA:(d=v.me)!=null?d:!1};v.co&&(E.wi={qFk:v.co.c,fgG:v.co.a,e1a:v.co.s});return E};
RZM=function(v){return function(){var e;return _.I(function(d){if(d.nextAddress==1)return d.yield(v(),2);e=d.yieldResult;return d.return({f:function(){return e.pyS()},
c:function(E){return e.n7s(E)},
m:function(E){return e.qN(fV$(E))},
mws:function(E){return e.xdC(fV$(E))}})})}};
PgL=function(v,e){var d=Grt();d=d===void 0?"bevasrsg":d;e={s:function(S){var O;return v.snapshot(Object.assign({},S.c&&{vp:S.c},S.s&&{yYd:S.s},{j2y:(O=S.p)!=null?O:!0}))},
e:function(S){var O;return void((O=v.odq)==null?void 0:O.call(v,S))},
c:function(S,O){return v.cgC(S,O)},
p:v.lsE,l:function(){return v.r2A()},
wpc:e?RZM(e):void 0};var E=window===window.top?window:JEO()?window:window.top,T=E[d];if(T){T.bevasrs=e;if(T.nqfbel!==void 0)for(d=_.a(T.nqfbel),E=d.next();!E.done;E=d.next())E=E.value,E(e);T.nqfbel=void 0}else T={},T=(T.bevasrs=e,T.nqfbel=void 0,T),E[d]=T};
BZM=function(v){var e=e===void 0?51:e;var d=[];_.df(v,x9j,6,_.El()).forEach(function(E){_.TZ(E,2)<=e&&d.push(_.TZ(E,1))});
return d};
Cgt=function(v){var e=e===void 0?51:e;var d=[];_.df(v,x9j,6,_.El()).forEach(function(E){_.TZ(E,2)>e&&d.push(_.TZ(E,1))});
return d};
XbM=function(v){v.then(function(){},function(){})};
St=function(v){return{fieldType:1,fieldName:v}};
Ww=function(v){return{fieldType:2,fieldName:v}};
_.au=function(v){return{fieldType:3,fieldName:v}};
zZj=function(){function v(){T[0]=1732584193;T[1]=4023233417;T[2]=2562383102;T[3]=271733878;T[4]=3285377520;r=q=0}
function e(h){for(var K=O,k=0;k<64;k+=4)K[k/4]=h[k]<<24|h[k+1]<<16|h[k+2]<<8|h[k+3];for(k=16;k<80;k++)h=K[k-3]^K[k-8]^K[k-14]^K[k-16],K[k]=(h<<1|h>>>31)&4294967295;h=T[0];var J=T[1],R=T[2],B=T[3],X=T[4];for(k=0;k<80;k++){if(k<40)if(k<20){var Z=B^J&(R^B);var U=1518500249}else Z=J^R^B,U=1859775393;else k<60?(Z=J&R|B&(J|R),U=2400959708):(Z=J^R^B,U=3395469782);Z=((h<<5|h>>>27)&4294967295)+Z+X+U+K[k]&4294967295;X=B;B=R;R=(J<<30|J>>>2)&4294967295;J=h;h=Z}T[0]=T[0]+h&4294967295;T[1]=T[1]+J&4294967295;T[2]=
T[2]+R&4294967295;T[3]=T[3]+B&4294967295;T[4]=T[4]+X&4294967295}
function d(h,K){if(typeof h==="string"){h=unescape(encodeURIComponent(h));for(var k=[],J=0,R=h.length;J<R;++J)k.push(h.charCodeAt(J));h=k}K||(K=h.length);k=0;if(q==0)for(;k+64<K;)e(h.slice(k,k+64)),k+=64,r+=64;for(;k<K;)if(S[q++]=h[k++],r++,q==64)for(q=0,e(S);k+64<K;)e(h.slice(k,k+64)),k+=64,r+=64}
function E(){var h=[],K=r*8;q<56?d(b,56-q):d(b,64-(q-56));for(var k=63;k>=56;k--)S[k]=K&255,K>>>=8;e(S);for(k=K=0;k<5;k++)for(var J=24;J>=0;J-=8)h[K++]=T[k]>>J&255;return h}
for(var T=[],S=[],O=[],b=[128],Y=1;Y<64;++Y)b[Y]=0;var q,r;v();return{reset:v,update:d,digest:E,digestString:function(){for(var h=E(),K="",k=0;k<h.length;k++)K+="0123456789ABCDEF".charAt(Math.floor(h[k]/16))+"0123456789ABCDEF".charAt(h[k]%16);return K}}};
wb0=function(v,e){e=e===void 0?lV0:e;if(!H4t){var d;v=(d=v.navigator)==null?void 0:d.userAgentData;if(!v||typeof v.getHighEntropyValues!=="function"||v.brands&&typeof v.brands.map!=="function")return Promise.reject(Error("ua"));AE7((v.brands||[]).map(function(T){var S=new Z4L;S=_.L0(S,1,T.brand);return _.L0(S,2,T.version)}));
typeof v.mobile==="boolean"&&_.iZ(cEH,2,v.mobile);H4t=v.getHighEntropyValues(e)}var E=new Set(e);return H4t.then(function(T){var S=cEH.clone();E.has("platform")&&_.L0(S,3,T.platform);E.has("platformVersion")&&_.L0(S,4,T.platformVersion);E.has("architecture")&&_.L0(S,5,T.architecture);E.has("model")&&_.L0(S,6,T.model);E.has("uaFullVersion")&&_.L0(S,7,T.uaFullVersion);return S.serialize()}).catch(function(){return cEH.serialize()})};
Ol=function(v,e,d,E){this.initialValue_=v;this.maxValue_=e;this.currBaseValue_=this.currValue_=v;this.randomFactor_=d||0;this.backoffFactor_=E||2};
Iu=function(v){this.src=v;this.listeners={};this.typeCount_=0};
uy7=function(){for(var v;v=FE3.remove();){try{v.fn.call(v.scope)}catch(e){W3(e)}Qs0.put(v)}gct=!1};
_.ncj=function(v){switch(v){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}};
D90=function(v){switch(v){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""}};
_.U90=function(){};
aTS=function(v,e,d,E){v=pb$(vL0(eh7(new _.bZ(1828,"0"),v),new d_$)).disableWithCredentials();e.length&&ELM(v,Tk0(new SI3,e));E!==void 0&&(v.destinationUrl=E);var T=new WqL(1828,"","",!1,"",v.build());_.Yh(T,v);var S=new mi({flush:function(O){try{T.flush(O)}catch(b){d(b)}}});
S.addOnDisposeCallback(function(){setTimeout(function(){try{S.snapshotAndFlush()}finally{T.dispose()}})});
S.invocationLimit=1E5;S.flushInterval=3E4;S.JSC$9778_flushTimer.setInterval(3E4);return S};
qu=function(){var v,e,d;return(d=(v=globalThis.performance)==null?void 0:(e=v.now)==null?void 0:e.call(v))!=null?d:Date.now()};
ITt=function(v,e){if(v.disable)return new iw0;e=e?BZM(e):[];v={jo:v.jo,bpY:v.rL4,y6G:v.uIf,destinationUrl:v.destinationUrl,amX:v.amX,nZC:v.nZC};e=e===void 0?[]:e;return new OwH(v,e)};
bwU=function(v){if(!v)return null;v=_.rf(v,2);return v===null||v===void 0?null:Ar(v)};
_.YIt=function(v){if(!v)return null;v=_.rf(v,4);return v===null||v===void 0?null:_.km(v)};
Rh$=function(v,e){return e?m_s(e):v?fTt(v):Promise.resolve()};
m_s=function(v){return new Promise(function(e,d){var E=_.hz("SCRIPT"),T=_.YIt(v);_.DB(E,T);E.onload=function(){_.KX(E);e()};
E.onerror=function(){_.KX(E);d(Error("Fa"))};
($h("HEAD")[0]||document.documentElement).appendChild(E)})};
fTt=function(v){return new Promise(function(e){var d=_.hz("SCRIPT");if(v){var E=_.rf(v,6);E=E===null||E===void 0?null:_.u6(E)}else E=null;_.nY(d,E);($h("HEAD")[0]||document.documentElement).appendChild(d);_.KX(d);e()})};
jt=function(v,e,d){var E,T=new Promise(function(S){E=setTimeout(S,e)});
return Promise.race([v.finally(function(){return void clearTimeout(E)}),
T.then(d)])};
PYW=function(v,e){try{return globalThis.sessionStorage.setItem(v,e),!0}catch(d){return!1}};
x_U=function(v,e,d,E){e=e===void 0?0:e;d=d===void 0?v.length:d;var T=0;for(E&&(T=x_U(E));e<d;e++)E=typeof v==="string"?v.charCodeAt(e):v[e],T=Bk0(31,T)+E|0;return T};
CYs=function(v,e){return[x_U(v,0,v.length>>1,e),x_U(v,v.length>>1)]};
Xis=function(v){var e=_.a(CYs(v,sl));v=e.next().value;e=e.next().value;return v.toString(16)+e.toString(16)};
zhs=function(v,e){var d=CYs(e);v=new Uint32Array(v.buffer);e=v[0];var E=_.a(d);d=E.next().value;E=E.next().value;for(var T=1;T<v.length;T+=2){for(var S=e,O=T,b=d,Y=E,q=0;q<22;q++)O=O>>>8|O<<24,O+=S|0,O^=b+38293,S=S<<3|S>>>29,S^=O,Y=Y>>>8|Y<<24,Y+=b|0,Y^=q+38293,b=b<<3|b>>>29,b^=Y;S=[S,O];v[T]^=S[0];T+1<v.length&&(v[T+1]^=S[1])}};
lTj=function(v,e,d,E,T){var S=(4-(sl.length+d.length)%4)%4,O=new Uint8Array(4+S+sl.length+4+d.length),b=new DataView(O.buffer),Y=0;b.setUint32(Y,Math.random()*4294967295);Y=Y+4+S;O.set(sl,Y);Y+=sl.length;b.setUint32(Y,T);O.set(d,Y+4);zhs(O,E);return v.insert(e,function(q){return void globalThis.sessionStorage.removeItem(q)})?PYW(e,_.GQ(O))?"s":"t":"i"};
HwO=function(v,e){var d=globalThis.sessionStorage.getItem(v);if(!d)return["m"];try{var E=_.U0(d);zhs(E,e)}catch(T){return globalThis.sessionStorage.removeItem(v),["c"]}for(e=4;e<7&&E[e]===0;)e++;for(d=0;d<sl.length;d++)if(E[e++]!==sl[d])return globalThis.sessionStorage.removeItem(v),["d"];d=(new DataView(E.buffer)).getUint32(e);return Math.floor(Date.now()/1E3)>=d?(globalThis.sessionStorage.removeItem(v),["e"]):["a",new Uint8Array(E.buffer,e+4)]};
AaS=function(v){return globalThis.TextEncoder?(new TextEncoder).encode(v):_.Nu(v)};
ZwO=function(v){var e=v,d;return function(){if(e){var E=e;e=void 0;d=E.apply(this,arguments)}return d}};
wiS=function(v){return Pc(function(e){if(e instanceof v)return!0;var d,E,T=e==null?void 0:(d=e.ownerDocument)==null?void 0:(E=d.defaultView)==null?void 0:E[v.name];return cat(T)&&e instanceof T})};
_.V4=function(v,e,d){_.kh.call(this);this.JSC$9991_listener_=v;this.JSC$9991_interval_=e||0;this.handler_=d;this.callback_=(0,_.LX)(this.JSC$9993_doAction_,this)};
_.ou=function(v){v=Fq$(v);return _.km(v)};
Fq$=function(v){return v===null?"null":v===void 0?"undefined":v};
gL3=function(v){if(v&&v.focus)if(v!==document.activeElement)v.focus();else return QHM(function(){return _.I(function(e){document.activeElement&&document.activeElement.blur();return e.return(QHM(function(){v.focus()}))})})};
_.uo3=function(v){var e=e===void 0?5:e;setTimeout(function(){var d;return _.I(function(E){E.nextAddress==1&&(d=document.activeElement);if(E.nextAddress!=5)return(document.activeElement===d||document.activeElement===document.body)&&e>=0&&v?E.yield(gL3(v),5):E.jumpTo(0);if(document.activeElement===v)return E.return();v=v.parentElement;--e;return E.jumpTo(2)})},15)};
QHM=function(v){return new Promise(function(e){requestAnimationFrame(function(){e(v())})})};
D_0=function(v){if(_.Jz)v(_.Jz);else{var e;((e=nLs)!=null?e:nLs=[]).push(v)}};
Mu=function(){!_.Jz&&_.GZ&&_.U_L(_.GZ());return _.Jz};
_.U_L=function(v){_.Jz=v;var e;(e=nLs)==null||e.forEach(D_0);nLs=void 0};
_.tz=function(v){_.Jz&&_.Jz.beforeLoadModuleCode(v)};
_.fX=function(){_.Jz&&_.Jz.JSC$11035_setLoaded()};
Ru=function(v){return G2t(v)?Number(v):String(v)};
pi3=function(v){this.action=v;this.wfv=!1};
ve7=function(v,e){pi3.call(this,"set-drive-options");this.appId=v;this.appOrigin=e};
eNt=function(v){pi3.call(this,"visibility");this.visible=v};
dkt=function(v,e,d){Pw.call(this,v,e,d)};
Ees=function(v){Bw.call(this,v)};
Tts=function(v){v=v&&v.getWindow()||window;return v.gadgets&&v.gadgets.rpc};
WYM=function(v,e){var d=e&&e.getWindow()||window;if(Tts(e))v();else if(S$M)S$M.push(v);else var E=S$M=[v],T=d.setInterval(function(){if(Tts(e)){d.clearInterval(T);for(var S=0;S<E.length;S++)E[S]();S$M=null}},100)};
iUt=function(v,e){var d=new CX(v);_.Yh(e,d);var E={passive:!1};e.listen(d,"mousewheel",function(T){return void aFO(v,T)},E).listen(v,"scroll",function(T){return void aFO(v,T)},E)};
aFO=function(v,e){var d;a:{for(d=e.target;d;){if(d.nodeType==1){var E=_.X$(d,"overflowY");if(E=="auto"||E=="scroll")break a}d=d.parentNode}d=null}if(!d||!_.zZ(v,d)||d.scrollHeight==d.clientHeight||e.deltaY>0&&Math.abs(d.scrollTop-(d.scrollHeight-d.clientHeight))<=1||e.deltaY<0&&d.scrollTop==0)e.preventDefault(),e.stopPropagation()};
F$=function(v,e,d,E,T,S,O,b,Y){b=b===void 0?!1:b;Y=Y===void 0?!1:Y;Pw.call(this,void 0,void 0,void 0);Pw.call(this,S?S+" picker modal-dialog":"picker modal-dialog",!0,d);_.lZ(v,"protocol");this.iframeManager_=new OUM;this.targetId_=Hw();this.rpcToken_=Hw();v=_.Az(v);_.Z4(v,"hostId");d=_.Z4(v,"parent");this.useGapi_=!Y&&!0||(d==null?void 0:d.includes("onepick.corp.google.com"));b&&_.cw(v,"fv2","true");this.setUrl(v.toString());this.preferredDialogWidth_=E;this.preferredDialogHeight_=T;E!==void 0||
T!==void 0?E=!0:(E=_.Z4(_.Az(v.toString()),"hostId"),IF0||(IF0=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),E=!IF0.has(E));this.autoSizeDialog_=E;this.JSC$10181_gadgetsDomHelper_=O||this.JSC$10132_dom_;e&&(O=this.JSC$10181_gadgetsDomHelper_,e=_.Z4(_.Az(this.JSC$10183_url_),"grugl")=="true"?bUW:Y$U,Tts(O)||(O=O||NR(document),E=O.createElement("SCRIPT"),_.DB(E,e),E.type="text/javascript",O.JSC$9317_document_.body.appendChild(E)));
v=v.toString();e=null;O=v.indexOf("/picker?");O>-1?e=v.substring(0,O+8-1):O0(v,"/picker")&&(e=v);e&&this.setRelayUrl(e+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(v=this.buttons_,v.JSC$10166_element_=this.buttonEl_,v.render()):_.UJ(this.buttonEl_,mkM),_.wf(this.buttonEl_,!!this.buttons_))};
_.hNt=function(v){var e=e===void 0?yot:e;var d=_.gH(v),E=function(S){S=_.a(S);S.next();S=Q4(S);return e(d,S)},T=function(S){var O=_.a(S);
S=O.next().value;O=Q4(O);return v.apply(S,O)};
return function(){var S=_.Xa.apply(0,arguments),O=this||_.TO,b=q$S.get(O);b||(b={},q$S.set(O,b));return roH(b,[this].concat(_.t7(S)),T,E)}};
gf=function(v){var e={};v=v.replace(/\r/g,"").split("\n");for(var d=0;d<v.length;d++){var E=v[d],T=E.indexOf(":");T<0||(e[E.substring(0,T)]=E.substring(T+2,E.length))}return e};
KYL=function(v,e,d){d=d===void 0?function(){}:d;
return v?e():d()};
_.jMM=function(v){var e;return((e=$kO.documentOverride)!=null?e:v).__wizdispatcher};
_.nX=function(v){var e=uZ;uZ=v;return e};
_.Nt$=function(v){return v===sMS||(v==null?void 0:v.name)==="\u0275NotFound"};
_.D4=function(v,e){var d;if((d=v)==null?0:d.isDisposed)throw Error("jb`"+String(v.debugName));for(;v!==void 0;){d=v;if(d.retrieve)return d.retrieve(e,{optional:!0});v=v.parent}return sMS};
Ul=function(v){return{"\u0275prov":{providedIn:"root",token:Symbol(v),factory:void 0,value:void 0}}};
_.kdW=function(v){var e=uZ;if(!e){switch(v===void 0?3:v){case 0:v=Error("ib");break;case 1:v=Error("kb");break;case 2:v=Error("lb");break;default:v=Error("mb")}throw v;}return e};
LYS=function(v){var e=_.nX(v);v={};return v[Symbol.dispose]=function(){_.nX(e)},v};
VaL=function(v,e){v.disposables||(v.disposables=[]);v.disposables.push(e)};
pX=function(v){var e=uZ;e&&!e.isDisposed&&(VaL(e,v),v.parent=e)};
Jot=function(v){if(v.disposables){for(var e=_.a(v.disposables),d=e.next();!d.done;d=e.next())d=d.value,typeof d==="function"?d():oet(d);v.disposables.length=0}};
oet=function(v){if(!v.isDisposed){v.isDisposed=!0;var e;(e=v[Symbol.dispose])==null||e.call(v);delete v.parent;Jot(v)}};
CRs=function(v){var e={retrieve:function(d){switch(d.\u0275prov.token){case Gd3.\u0275prov.token:var E=v.asyncDeps;break;case _.Ma0.\u0275prov.token:E=v.rootElement;break;case taU.\u0275prov.token:E=v.modelRootElement;break;case fF7.\u0275prov.token:E=v.appContext;break;case RNO.\u0275prov.token:E=v.rendererData;break;case PRO.\u0275prov.token:E=v.injectingConstructor;break;case xkt.\u0275prov.token:E=v.dispatcher}if(E)d=E;else a:{for(E=e.parent;E;){var T=E;if(T.retrieve){d=T.retrieve(d);break a}E=
E.parent}E=d.\u0275prov.token;T=Bt7[E];T!==void 0?d=T:(T=d.\u0275prov.providedIn,d.\u0275prov.factory?(d=d.\u0275prov.factory(),E&&T==="root"&&(Bt7[E]=d)):d=sMS)}return d}};
pX(e);return e};
X8S=function(){var v=_.kdW(1),e=_.D4(v,fF7);_.Nt$(e)&&(v=_.D4(v,xkt),_.Nt$(v)||v.getOptionalAppContext())};
zNO=function(v){if(typeof document!=="undefined"&&document&&document.getElementById&&(v=document.getElementById(v))){var e=v.tagName.toUpperCase();if(e=="SCRIPT"||e=="LINK")return v}return null};
HUs=function(v,e){if((v=v===void 0?"":v)&&e)throw Error("sb");var d="";var E=_.TO._F_jsUrl;(v=e||zNO(v))&&(d=v.src?v.src:v.getAttribute("href"));if(E&&d){if(E!=d)throw Error("tb`"+E+"`"+d);d=E}else d=E||d;if(!lFj(d))throw Error("ub");return d};
w8U=function(){if(!Aot){Aot=!0;try{var v=HUs(_.TO._F_jsUrl?"":"base-js")}catch(E){return}var e=ZUH(co3(v)),d=Object.keys(e);d.length!==0&&D_0(function(E){for(var T=_.a(d),S=T.next();!S.done;S=T.next()){S=S.value;for(var O=_.a(Object.keys(e[S])),b=O.next();!b.done;b=O.next())E.addExtraEdge(S,b.value)}})}};
QMW=function(){var v=Object.assign({},FYU);Object.getOwnPropertyNames(FYU).forEach(function(e){vx[e]!==void 0&&(v[e]=vx[e])});
return v};
geM=function(v,e){if(vx.enablePerformanceTiming){var d,E;(E=(d=performance).mark)==null||E.call(d,v+"Start__"+e)}};
unW=function(v,e){if(vx.enablePerformanceTiming){var d,E;(E=(d=performance).measure)==null||E.call(d,v+"__"+e,v+"Start__"+e)}};
ne0=function(v,e,d){var E;return v&&e?v+"__"+e:(E=v!=null?v:e)!=null?E:d};
UkH=function(v,e){var d=Object.create(Dk3);d.debugName=e;!uZ||pX(d);e=_.nX(d);try{v(d)}finally{_.nX(e)}return function(){return void oet(d)}};
vft=function(v){return ex(v)&&p80 in v};
eeU=function(v,e){return Object.is(v,e)};
EE=function(v){var e=dh;dh=v;return e};
Ef0=function(v){if(Tq)throw Error("Z");if(dh!==null){var e=dh.producersTail;if(e===void 0||e.producer!==v){var d=void 0,E=dh.recomputing;if(E&&(d=e!==void 0?e.nextProducer:dh.producers,d!==void 0&&d.producer===v)){dh.producersTail=d;d.lastReadVersion=v.version;return}var T=v.consumersTail,S;if(!(S=T===void 0||T.consumer!==dh)){if(E){a:{S=dh;E=S.producersTail;if(E!==void 0){S=S.producers;do{if(S===T){E=!0;break a}if(S===E)break;S=S.nextProducer}while(S!==void 0)}E=!1}E=!E}S=E}S&&(E=Sx(dh),d={producer:v,
consumer:dh,nextProducer:d,prevConsumer:T,lastReadVersion:v.version,nextConsumer:void 0},dh.producersTail=d,e!==void 0?e.nextProducer=d:dh.producers=d,E&&dGt(v,d))}}};
WH0=function(v){if(!Sx(v)||v.dirty)if(v.dirty||v.lastCleanEpoch!==Tb7)(v.producerMustRecompute(v)||SNL(v))&&v.producerRecomputeValue(v),v.dirty=!1,v.lastCleanEpoch=Tb7};
aqS=function(v){if(v.consumers!==void 0){var e=Tq;Tq=!0;try{for(var d=v.consumers;d!==void 0;d=d.nextConsumer){var E=d.consumer;E.dirty||(v=void 0,E.dirty=!0,aqS(E),(v=E.consumerMarkedDirty)==null||v.call(E,E))}}finally{Tq=e}}};
iIt=function(){var v;return((v=dh)==null?void 0:v.consumerAllowSignalWrites)!==!1};
OIj=function(v){v&&(v.producersTail=void 0,v.recomputing=!0);return EE(v)};
bIW=function(v,e){EE(e);if(v){v.recomputing=!1;e=v.producersTail;var d=e!==void 0?e.nextProducer:v.producers;if(d!==void 0){if(Sx(v)){do d=Iqj(d);while(d!==void 0)}e!==void 0?e.nextProducer=void 0:v.producers=void 0}}};
SNL=function(v){for(v=v.producers;v!==void 0;v=v.nextProducer){var e=v.producer,d=v.lastReadVersion;if(d!==e.version)return!0;WH0(e);if(d!==e.version)return!0}return!1};
dGt=function(v,e){var d=v.consumersTail,E=Sx(v);d!==void 0?(e.nextConsumer=d.nextConsumer,d.nextConsumer=e):(e.nextConsumer=void 0,v.consumers=e);e.prevConsumer=d;v.consumersTail=e;if(!E)for(v=v.producers;v!==void 0;v=v.nextProducer)dGt(v.producer,v)};
Iqj=function(v){var e=v.producer,d=v.nextProducer,E=v.nextConsumer,T=v.prevConsumer;v.nextConsumer=void 0;v.prevConsumer=void 0;E!==void 0?E.prevConsumer=T:e.consumersTail=T;if(T!==void 0)T.nextConsumer=E;else if(e.consumers=E,!Sx(e))for(v=e.producers;v!==void 0;)v=Iqj(v);return d};
Sx=function(v){return v.consumerIsAlwaysLive||v.consumers!==void 0};
mG3=function(v){var e=Object.create(YN3);e.computation=v;v=function(){WH0(e);Ef0(e);if(e.value===Wx)throw e.error;return e.value};
v[a_]=e;return v};
heU=function(v,e){var d=Object.create(yIH);d.value=v;e!==void 0&&(d.equal=e);v=function(){Ef0(d);return d.value};
v[a_]=d;return[v,function(E){return qN3(d,E)},
function(E){iIt()||rIt(d);qN3(d,E(d.value))}]};
qN3=function(v,e){iIt()||rIt(v);if(!v.equal(v.value,e)){v.value=e;v.version++;Tb7++;aqS(v);var d;(d=KH0)==null||d(v)}};
i3=function(v){var e=EE(null);try{return v()}finally{EE(e)}};
_.OE=function(v,e,d){d=d===void 0?"":d;v=heU(v,e==null?void 0:e.equals);var E=v[0],T=E[a_];T.debugName=ne0(e==null?void 0:e.debugName,d,"[signal]");if(!vx.enablePerformanceTiming)return v;var S=v[1],O=v[2];return[E,function(b){$Gt(function(){return void S(b)},T)},
function(b){$Gt(function(){return void O(b)},T)}]};
$Gt=function(v,e){geM("signalSet",e.debugName);try{v()}finally{unW("signalSet",e.debugName)}};
sI$=function(v,e){var d=_.a(_.OE(v,void 0,"cPpJzc"));v=d.next().value;d=d.next().value;v[jIj]=d;v[I_]=e;return v};
NbO=function(v){return!!v&&typeof v==="object"&&Object.getPrototypeOf(v)===Object.prototype};
kNj=function(v){return typeof v==="function"&&jIj in v&&typeof v[jIj]==="function"};
LHH=function(v,e){Object.defineProperty(v,I_,{get:function(){return e}})};
YG=function(v,e){if(b3(v)){var d=v.map(function(S){return YG(S,e)});
LHH(d,e);return d}if(NbO(v)){d={};v=_.a(Object.entries(v));for(var E=v.next();!E.done;E=v.next()){var T=_.a(E.value);E=T.next().value;T=T.next().value;d[E]=YG(T,e)}LHH(d,e);return d}return sI$(v,e)};
VhW=function(v){if(b3(v))return v.map(function(T){return VhW(T)});
if(NbO(v)){var e={};v=_.a(Object.entries(v));for(var d=v.next();!d.done;d=v.next()){var E=_.a(d.value);d=E.next().value;E=E.next().value;e[d]=VhW(E)}return e}return kNj(v)?v():v};
JIO=function(){var v={height:0,width:0};if(!NbO(v))throw Error("Gb");var e=Symbol("Hb");return[YG(v,e),function(d,E){if(d[I_]===e)if(typeof E==="function"){var T=[].concat(_.t7(VhW(d)));E=E(T)||T;of0(d,[].concat(_.t7(E)))}else of0(d,E);else throw Error("Ib");}]};
of0=function(v,e){if(kNj(v))v[jIj](e);else if(b3(v)&&b3(e))e=YG(e,v[I_]),v.length=0,v.push.apply(v,_.t7(e));else if((NbO(v)||b3(v))&&(b3(e)||typeof e==="object"&&e!==null)){e=_.a(Object.entries(e));for(var d=e.next();!d.done;d=e.next()){var E=_.a(d.value);d=E.next().value;E=E.next().value;var T=v,S=T[d];Object.hasOwn(v,d)?of0(S,E):T[d]=YG(E,v[I_])}}else throw Error("Jb");};
GNM=function(v){return Object.create(Object.assign({},ms,v))};
th$=function(){var v;return(v=MhU)!=null?v:MhU=GNM({consumerAllowSignalWrites:!0})};
_.yl=function(v,e,d){d=d===void 0?"":d;v=mG3(v);var E=v[a_];E.debugName=ne0(e==null?void 0:e.debugName,d,"[computed]");(e==null?void 0:e.equals)!=null&&(E.equal=e.equals);return v};
q4=function(v){var e=EE(fq0);try{v()}finally{EE(e)}};
XVt=function(v){if(!v.isDisposed)switch(v.effectType){case rh:ReM.schedule(v);break;case PlO:xGj.schedule(v);break;case BbM:Clt.schedule(v);break;default:_.Z0(v.effectType)}};
lqt=function(v){zeL.push(v);return function(){var e=zeL.indexOf(v);e!==-1&&zeL.splice(e,1)}};
AI$=function(){if(hf>0)vx.flushRenderEffectsDuringRender&&ReM.flush();else for(var v=_.a(HI0),e=v.next();!e.done;e=v.next())e.value.flush()};
cIj=function(v){KD=!0;try{for(var e=_.a(v),d=e.next();!d.done;d=e.next()){for(var E=d.value,T=[E],S=E;S.parent!==void 0;)S=S.parent,ZI3(S)&&v.has(S)&&T.push(S);for(;T.length>0;){var O=T.pop();v.delete(O);O.run()}}}finally{KD=!1}};
$G=function(v){hf--;if(v){v=_.a(HI0);for(var e=v.next();!e.done;e=v.next())e.value.clear()}else hf>0||KD&&!vx.flushRenderEffectsDuringRender||AI$()};
FH0=function(v,e,d){var E=wV3(v);sE={name:d?E+" ("+d+")":E,isReactive:v.componentType!==_.N4,parent:sE};v=e();sE=sE.parent;return v};
kG=function(){var v=sE;return v?v.isReactive:!1};
Vl=function(v,e,d){var E=sE;e&&(sE=e);try{return d==null?v():v.call(d)}catch(S){v=S;LD(v,sE);if(v!==QI0){gf3=sE;e=[];for(d=uZ;d;){var T=void 0;e.push((T=d.debugName)!=null?T:"[context]");T=void 0;d=(T=d.parent)!=null?T:null}uTs=e.reverse()}QI0=v;throw v;}finally{sE=E}};
LD=function(v,e){try{var d=nfL(e);if(d&&!v.componentStack&&(v.componentStack=d,vx.enableComponentStacksInErrorMessages)){var E=v.message+"\n\nComponent stack: "+d;v.stack&&(v.stack=v.stack.replace(v.message,E));v.message=E}}catch(T){}};
nfL=function(v){if(ex(v)&&v.name!==void 0&&v.isReactive!==void 0&&v.parent!==void 0||v===null){for(var e=0,d="";e<20&&v;)d+=v.name+" > ",v=v.parent,e++;v=d.slice(0,-3)}else if(vx.enableContextBasedComponentStacks){a:{for(v=v===void 0?uZ:v;v;){if(vft(v))break a;e=void 0;v=(e=v.parent)!=null?e:null}v=null}v=v.getComponentStack().slice(0,20).join(" > ")}else v="";return v};
wV3=function(v){return v.debugName||v.name||"[component]"};
DG0=function(v,e,d){e=Object.create(e);v&&(e.effectFn=v);d&&(e.debugName=d);pX(e);e.componentStack=sE;return e};
_.o_=function(v,e){v=DG0(v,UGU,e);XVt(v)};
_.Jf=function(v){var e=uZ;if(e){var d=sE;VaL(e,function(){var E=EE(th$());try{Vl(function(){return void v()},d)}catch(T){throw vx.enableContextBasedComponentStacks&&LD(T),T;
}finally{EE(E)}})}};
Gq=function(v,e){var d={};(e===void 0||e)&&pX(d);e=_.nX(d);try{v(d)}finally{_.nX(e)}return function(){return void oet(d)}};
_.M4=function(v){return typeof v==="function"?v():(v==null?0:v[pV$])?v.get():v};
_.tf=function(v,e){v=DG0(v,vk0,e);XVt(v)};
eIt=function(v){if(uZ)throw Error("nb");Gq(v,!1)};
fD=function(v,e){v=_.nX(v);try{return i3(e)}finally{_.nX(v)}};
Px=function(v,e){var d=nfL(gf3),E,T;var S=(T=(E=uTs)==null?void 0:E.slice())!=null?T:[];e={componentStack:d,contextTrace:S,errorSeverity:3,featureFlags:QMW(),tagName:e};return[v,e]};
TmH=function(v,e,d){if(Object.hasOwnProperty.call(dy7,v)&&(v=dy7[v],Object.hasOwnProperty.call(v,e)&&(v=v[e],v instanceof Array))){for(var E=null,T=!1,S=0,O=v.length;S<O;++S){var b=v[S],Y=b.contingentAttribute;if(!Y)return b.contract;E===null&&(E={});Y=Object.hasOwnProperty.call(E,Y)?E[Y]:E[Y]=d(Y);if(Y===b.requiredValue)return b.contract;Y==null&&(T=!0)}if(T)return null}e=Ekt[e];return typeof e==="number"?e:null};
a8S=function(v,e,d){var E=null;(v=ShW[v])&&(E=v[e]);return typeof E!=="number"&&((v=ShW["*"])&&(E=v[e]),typeof E!=="number")?!1:!0===Wh3[E][String(d).toLowerCase()]};
OkW=function(v,e){e=TmH(v.toLowerCase(),e,function(){var E;(E=vx.handleError)==null||E.call.apply(E,[vx].concat(_.t7(Px(Error("Ob"),v.toLowerCase()))))});
if(e===null)return null;var d;return(d=ik3[e])!=null?d:null};
I8j=function(v,e,d){if(d===null||d===void 0)return d;e=e.toLowerCase();v=OkW(v,e);return v===null?d:v(e,d)};
bks=function(){};
xG=function(v,e){for(;v.length>e;)v.pop()};
Yh7=function(v){v=Array(v);xG(v,0);return v};
Bx=function(v,e,d){if(d==null)v.removeAttribute(e);else{var E;(E=e.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":e.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?v.setAttributeNS(E,e,d):v.setAttribute(e,d)}};
my$=function(v,e,d){v[e]=d};
qh0=function(v,e,d){v=v.style;if(typeof d==="string")v.cssText=d;else{v.cssText="";for(var E in d)if(y0M.call(d,E)){e=v;var T=E,S=d[E];T.indexOf("-")>=0?e.setProperty(T,S):e[T]=S}}};
r0S=function(v,e,d){var E=typeof d;E==="object"||E==="function"?v[e]=d:Bx(v,e,d)};
hIL=function(){var v=new bks;v[zq.default]=r0S;v.style=qh0;return v};
KhS=function(v,e,d,E){(E[e]||E[zq.default])(v,e,d)};
jOs=function(v,e,d){e=new $y0(e,d);return v.__incrementalDOMData=e};
l3=function(v,e){if(v.__incrementalDOMData)return v.__incrementalDOMData;var d=v.nodeType===1?v.localName:v.nodeName,E=v.nodeType===1?v.getAttribute("key"):null;e=jOs(v,d,v.nodeType===1?E||e:null);if(v.nodeType===1&&(v=v.attributes,d=v.length)){E=e._attrsArr||(e._attrsArr=Yh7(d*2));for(var T=0,S=0;T<d;T+=1,S+=2){var O=v[T],b=O.value;E[S]=O.name;E[S+1]=b}}return e};
sO$=function(v,e,d,E,T){return e==d&&E==T};
Nmt=function(v){for(var e=Hx,d=Af();d!==v;){var E=d.nextSibling;e.removeChild(d);Zg.deleted.push(d);d=E}};
Af=function(){return cx?cx.nextSibling:Hx.firstChild};
wh=function(){cx=Af()};
VOH=function(v,e,d){wh();var E;a:{if(E=cx){do{var T=E,S=v,O=e,b=l3(T,O);if(kv$(T,S,b.nameOrCtor,O,b.key))break a}while(e&&(E=E.nextSibling))}E=null}E||(v==="#text"?(d=FK.createTextNode(""),jOs(d,"#text",null),v=d):(E=FK,T=Hx,typeof v==="function"?E=new v:E=(T=v==="svg"?"http://www.w3.org/2000/svg":v==="math"?"http://www.w3.org/1998/Math/MathML":T==null||l3(T).nameOrCtor==="foreignObject"?null:T.namespaceURI)?E.createElementNS(T,v):E.createElement(v),jOs(E,v,e),v=E,d&&v.setAttribute("nonce",d)),Zg.created.push(v),
E=v);d=E;if(d!==cx){if(Lht.indexOf(d)>=0)for(v=Hx,e=d.nextSibling,E=cx;E!==null&&E!==d;)T=E.nextSibling,v.insertBefore(E,e),E=T;else Hx.insertBefore(d,cx);cx=d}};
okS=function(v,e,d){VOH(v,e,d);Hx=cx;cx=null;return Hx};
J0U=function(){Nmt(null);cx=Hx;Hx=Hx.parentNode};
GvW=function(){cx=Hx.lastChild};
f8U=function(v,e){e=e===void 0?{}:e;var d=e.matches===void 0?sO$:e.matches;return function(E,T,S){var O=Zg,b=FK,Y=Lht,q=Ql,r=gh,h=cx,K=Hx,k=kv$;FK=E.ownerDocument;Zg=new MO7(E);kv$=d;Ql=[];gh=[];cx=null;var J=Hx=E.parentNode,R,B=tO3.call(E);if((R=B.nodeType===11||B.nodeType===9?B.activeElement:null)&&E.contains(R)){for(B=[];R!==J;)B.push(R),R=R.parentNode||(J?R.host:null);J=B}else J=[];Lht=J;try{return v(E,T,S)}finally{E=Zg,u3&&E.deleted.length>0&&u3(E.deleted),FK=b,Zg=O,kv$=k,Ql=q,gh=r,cx=h,Hx=K,
Lht=Y}}};
RI$=function(v,e,d,E){nD.push(KhS);nD.push(v);nD.push(e);nD.push(d);nD.push(E)};
xyU=function(v,e,d){var E=gh;e=e._attrsArr||(e._attrsArr=Yh7(E.length));for(var T=!e.length||!1,S=0;S<E.length;S+=2){var O=E[S];if(T)e[S]=O;else if(e[S]!==O)break;var b=E[S+1];if(T||e[S+1]!==b)e[S+1]=b,RI$(v,O,b,d)}if(S<E.length||S<e.length){for(S=T=S;S<e.length;S+=2)Dg[e[S]]=e[S+1];for(S=T;S<E.length;S+=2)T=E[S],O=E[S+1],Dg[T]!==O&&RI$(v,T,O,d),e[S]=T,e[S+1]=O,delete Dg[T];xG(e,E.length);for(var Y in Dg)RI$(v,Y,void 0,d),delete Dg[Y]}v=PWt;PWt=d=nD.length;for(Y=v;Y<d;Y+=5)(0,nD[Y])(nD[Y+1],nD[Y+
2],nD[Y+3],nD[Y+4]);PWt=v;xG(nD,v);xG(E,0)};
Bmj=function(v){VOH("#text",null);var e=cx;var d=l3(e);if(d.text!==v){d=d.text=v;for(var E=1;E<arguments.length;E+=1)d=(0,arguments[E])(d);e.data!==d&&(e.data=d)}};
ZkO=function(v,e,d){if(d===!1&&CWs.has(e))Bx(v,e,null);else if(e!=="idomKey"&&e!=="skip"&&e!=="skipchildren"&&e!=="children"&&e!=="el")if(e.startsWith("on")){if(e[2]!==":")throw Error("Nb`"+e);if(d===void 0||d===null){var E;(E=vx.handleError)==null||E.call.apply(E,[vx].concat(_.t7(Px(Error("Sb`"+e),v.tagName))));v[e]=void 0}else{var T=e.slice(3);E=kG();if(T==="jsaction"){d=Array.isArray(d)?d:[d];d=_.a(d);for(var S=d.next();!S.done;S=d.next()){S=S.value;if(typeof S!=="object"||S===null||typeof S.selfReg!==
"function")throw Error("Vb`"+e);S.selfReg(0,v,E?_.Jf:function(){})}}else{if(typeof d!=="object"||d===null)throw Error("Tb`"+e+"`"+typeof d);
if(typeof d.getFn!=="function")throw Error("Ub`"+e+"`"+Object.keys(d));if(d.selfReg)d.selfReg(0,v,T,E?_.Jf:function(){});
else if(E&&v["on"+T]===void 0){var O=d.getFn(0);v.addEventListener(T,O);_.Jf(function(){return void v.removeEventListener(T,O)})}else if(E||!XYM.includes(T))v["on"+T]=d.getFn(0)}}}else{if(e.startsWith("data-")&&typeof d==="string")try{d=zI7(d)}catch(b){d="zSoyz"}typeof d!=="function"||v._disposeEffects!=null?((E=e.startsWith("prop:"))&&(e=e.slice(5)),vx.enableAttributeSanitization&&(E&&l8t(v.tagName)||(d=I8j(v.tagName,e,d))),e==="style"?("function"==typeof _.UE&&d instanceof _.UE&&(d=d.toString()),
HkU(v,e,d)):E?v[e]=d:A0j(v,e,d)):(v._signalProps||(v._signalProps=[]),v._signalValues||(v._signalValues=[]),v._signalProps.push(e))}};
c0O=function(v,e,d){d=(d===void 0?{}:d).isReactive;if(e==null?0:e.el){var E=e.el;if(typeof E==="function")E(v);else{var T;(T=E.onRender)==null||T.call(E,v);v._disposeRef||(v._disposeRef=function(){var S;(S=E.onUnmount)==null||S.call(E);delete v._disposeRef},d&&_.Jf(function(){var S;
(S=v._disposeRef)==null||S.call(v)}))}}};
l8t=function(v){return v.length>0&&v.includes("-")&&!wY3.includes(v.toLowerCase())};
Fh7=function(v){return ex(v)&&pD in v};
QOL=function(v){return Fh7(v)?v[pD].flattened:v};
gk$=function(v,e){var d=_.Xa.apply(2,arguments),E;e=(E=e)!=null?E:{};E={};return E.type=v,E.props=e,E.children=d,E[vb]=!0,E};
_.eI=function(v){return v.children};
dZ=function(v){var e=ukM!==gk$;ukM=v?nkH:gk$;return e};
_.EW=function(v){return _.Qj(v)?"nodeType"in v:!1};
Tr=function(){return document.createTextNode("")};
SI=function(v){v=document.createTextNode(String(v));v._isSignalTextNode=!0;return v};
UyO=function(v){return v!=null&&v.contentKind===Wb||v instanceof H$||Dys(v)};
pY3=function(v){var e=document.createElement("div");if(Dys(v)&&bwU(v))_.UJ(e,bwU(v));else if(v instanceof H$)_.UJ(e,v);else if(v!=null&&v.contentKind===Wb){if(v.contentKind!==Wb)throw Error("Rb");v=Ar(v.toString());_.UJ(e,v)}v=_.a(e.childNodes);for(var d=v.next();!d.done;d=v.next())d.value._isSafeOrSanitizedHtmlNode=!0;return e};
as=function(v){v=typeof v;return v==="string"||v==="number"||v==="boolean"};
vqt=function(v){return v instanceof Nf||GD(v)||v instanceof el||"function"==typeof _.UE&&v instanceof _.UE};
ebH=function(v,e){var d=v.parentElement;if(!d)return e;d.replaceChild(e,v);return e};
dn0=function(v,e){var d=v[0].parentElement;if(d)if(v[0].previousSibling||v[v.length-1].nextSibling){d.insertBefore(e,v[0]);for(var E=v.length-1;E>=0;E--)d.removeChild(v[E])}else d.textContent="",d.appendChild(e);return e};
EqM=function(v,e){if(v[0].parentElement)for(var d=v[0].parentElement,E=e.length,T=v.length,S=E,O=0,b=0,Y=v[T-1].nextSibling,q=null;O<T||b<S;)if(v[O]===e[b])O++,b++;else{for(;v[T-1]===e[S-1];)T--,S--;if(T===O)for(var r=S<E?b?e[b-1].nextSibling:e[S-b]:Y;b<S;){var h=e[b++];d.insertBefore(h,r)}else if(S===b)for(;O<T;)r=v[O],q&&q.has(r)||d.removeChild(r),O++;else if(v[O]===e[S-1]&&e[b]===v[T-1])r=v[--T].nextSibling,d.insertBefore(e[b++],v[O++].nextSibling),d.insertBefore(e[--S],r),v[T]=e[S];else{if(!q)for(q=
new Map,r=b;r<S;)q.set(e[r],r++);r=q.get(v[O]);if(r==null)d.removeChild(v[O]),O++;else if(b<r&&r<S){h=O;for(var K=1,k=void 0;++h<T&&h<S&&(k=q.get(v[h]))!=null&&k===r+K;)K++;if(K>r-b)for(h=v[O];b<r;)d.insertBefore(e[b++],h);else d.replaceChild(e[b++],v[O++])}else O++}}return e};
SwM=function(v){if(Array.isArray(v)){if(v.length>1)throw Error("dc`"+v.length+"`"+v.map(T3M).join(", "));v=v[0]}if(v==null)return null;if(!(v instanceof _.gu)){var e,d;if((e=window)==null?0:(d=e.trustedTypes)==null?0:d.isScript(v))throw Error("cc");if(String(v).trim().length===0)return null;throw Error("ec`"+T3M(v));}return v};
W$j=function(v,e){e=SwM(e);e!==null&&_.nY(v,e)};
a_j=function(v){if(Array.isArray(v)){if(v.length>1)throw Error("fc`"+v.length+"`"+v.map(T3M).join(", "));v=v[0]}if(v==null)return null;if(!(v instanceof el)){if(String(v).trim().length===0)return null;throw Error("gc`"+T3M(v));}return v};
i2M=function(v,e){e=a_j(e);e!==null&&(v.textContent=OFU(e))};
T3M=function(v){return"("+typeof v+") "+(v!=null&&typeof v==="object"?v.constructor.name:typeof v)+" "+v};
O2t=function(){};
bg=function(v,e){e=e===void 0?{}:e;var d=I_0();vx.legacyTriggerSoyRendererEvents&&X8S();_.tf(function(){OW.setUp();e.isControlFlowComponent&&hf++;var E=d[0],T=d[pD].flattened,S=dZ(!0);try{var O=v(),b=b2s(E,O,d);Array.isArray(b)||(d[pD].flattened=[b]);var Y=d[pD].flattened;if(T&&(!Array.isArray(T)||T.length!==0)){var q=Array.isArray(T)?T[0]:T,r=q[Is],h=q._disposeEffects;q._disposeEffects=void 0;q=Array.isArray(Y)?Y[0]:Y;q[Is]=r;q[Is]&&(q[Is].numNodes=q===Y?1:Y.length);q._disposeEffects=h}d[0]=b;e.isControlFlowComponent&&
$G(!1)}catch(K){throw e.isControlFlowComponent&&$G(!0),K;}finally{dZ(S),OW.tearDown()}},e.debugName);
return d};
b2s=function(v,e,d){for(;typeof e==="function";)e=e();if(e!=null&&e[vb]){var E,T,S;(S=vx.handleError)==null||S.call.apply(S,[vx].concat(_.t7(Px(Error("hc`"+((E=e.type)==null?void 0:E.TAG_NAME)),(T=e.type)==null?void 0:T.TAG_NAME))))}if(v==null)return e==null?Tr():as(e)?SI(e):vqt(e)?SI(e.toString()):_.EW(e)?e:e.length===0?Tr():Yw7(e,d);if(_.EW(v)){if(e==null)return ebH(v,Tr());if(as(e))return mnM(v,e);if(vqt(e))return mnM(v,e.toString());if(_.EW(e))return ebH(v,e);if(e.length===0)return ebH(v,Tr());
e=Yw7(e,d);EqM([v],d[pD].flattened);return e}v=Yc(v);if(e==null)return dn0(v,Tr());if(as(e))return dn0(v,SI(e));if(vqt(e))return dn0(v,SI(e.toString()));if(_.EW(e))return EqM(v,[e])[0];if(e.length===0)return dn0(v,Tr());e=Yw7(e,d);EqM(v,d[pD].flattened);return e};
mnM=function(v,e){v.nodeType===Node.TEXT_NODE?v.textContent!==String(e)&&(v.textContent=String(e)):v=ebH(v,SI(e));return v};
Yc=function(v,e,d){return yW$(v,e!=null?e:[],d===void 0?!1:d)};
Yw7=function(v,e){var d=Yc(v,void 0,!0);if(d.length===0)return Tr();e[pD].flattened=d;return v};
yW$=function(v,e,d,E,T){e=e===void 0?[]:e;d=d===void 0?!1:d;T=T===void 0?-1:T;if(v==null)return e;if(v instanceof mE){var S=v.render();return yW$(S,e,d,E,T)}if(_.EW(e)&&e.nodeType===Node.ELEMENT_NODE)switch(e.tagName){case "SCRIPT":W$j(e,v);return;case "STYLE":i2M(e,v);return}as(v)&&(v=SI(v),E&&d&&(E[T]=v));if(UyO(v)){d=pY3(v);d=Array.from(d.childNodes);d=_.a(d);for(S=d.next();!S.done;S=d.next())qwt(e,S.value);return e}vqt(v)&&(v=SI(v.toString()),E&&d&&(E[T]=v));if(_.EW(v))return qwt(e,v);if(Array.isArray(v)){for(S=
0;S<v.length;S++)yW$(v[S],e,d,v,S);return e}if(typeof v==="function"){S=bg(function(){var b=v();return b!=null&&!as(b)&&UyO(b)?(b=pY3(b),Array.from(b.childNodes)):b},{debugName:"qmF2ne",
debugFn:v})[0];if(Array.isArray(S)){d=_.a(S);for(S=d.next();!S.done;S=d.next())qwt(e,S.value);return e}E&&d&&(E[T]=S);return qwt(e,S)}if(v!=null&&v[vb]){E=v;T=dZ(!0);var O=ukM;try{S=O.apply(null,[E.type,E.props].concat(_.t7(E.children)))}finally{dZ(T)}return yW$(S,e,d)}(O=vx.handleError)==null||O.call.apply(O,[vx].concat(_.t7(Px(Error("ic")))));return e};
I_0=function(v){var e={};e=Object.assign([],(e[pD]={flattened:[]},e));if(!v)return e;e[0]=Yw7(v,e);return e};
qwt=function(v,e){Array.isArray(v)?v.push(e):v.appendChild(e);return v};
yU=function(v){if(!vx.enableLazyTsx)return v;if(Array.isArray(v)){for(var e=0;e<v.length;e++)v[e]=yU(v[e]);return v}return v instanceof mE?(v=v.render(),yU(v)):v};
hbj=function(v,e){var d,E,T=wV3(v),S=function(k){E=k;k=dZ(!0);var J=EE(q9);geM("render",T);try{d=yU(v(e))}finally{unW("render",T),EE(J),dZ(k)}};
S=vx.enableContextPerComponent?UkH(S,T):Gq(S,vx.alwaysTrackContexts||!!uZ);vft(E);if(!e.renderedFromIdom){var O=_.nX(E);try{return rW0(v,e,d),d}finally{_.nX(O)}}!Fh7(d)&&Array.isArray(d)&&(d=I_0(d));var b=QOL(d);O=Array.isArray(b)?b[0]:b;var Y=!1;if(O){var q,r=(q=e==null?void 0:e.idomKey)!=null?q:v;q=b!==O;O._disposeEffects=S;var h=O[Is]||{},K=Fh7(d)?d:h.sourceDynamicRange;Object.assign(h,{key:r,numNodes:q?b.length:1,context:E,higherOrder:!!O[Is],sourceDynamicRange:K});O[Is]=h}else Y=!0;(function(){var k=
_.nX(E);try{rW0(v,e,b)}finally{_.nX(k)}})();
Y&&S();return d};
K$j=function(v){var e={},d;for(d in v)e={prev$jscomp$23:void 0,next$jscomp$33:void 0},e.prev$jscomp$23=rZ[d],e.next$jscomp$33=v[d],rZ[d]=function(E){return function(){var T=_.Xa.apply(0,arguments);E.prev$jscomp$23.apply(null,_.t7(T));E.next$jscomp$33.apply(null,_.t7(T))}}(e)};
$nO=function(){if(kG())throw Error("jc");return hE};
jmM=function(v,e){if(!v.__unmounted&&e){v.__unmounted=!0;try{v.didUnmount()}catch(T){var d,E;(E=vx.handleError)==null||E.call.apply(E,[vx].concat(_.t7(Px(T,(d=v.__type)==null?void 0:d.TAG_NAME))))}rZ.didUnmount(v);v.el=null;e.__instance&&delete e.__instance}};
N3U=function(v,e,d){v._signalProps!=null&&v._disposeEffects==null&&((d===void 0?0:d)?v._disposeEffects=Gq(function(){return void smL(v,e)},vx.alwaysTrackContexts||!!uZ):smL(v,e))};
smL=function(v,e){_.tf(function(){for(var d=v._signalProps,E=v._signalValues,T=0;T<d.length;T++){var S=d[T],O=e[S]();E[T]!==O&&(E[T]=O,ZkO(v,S,O))}},"e3YVbb")};
kzs=function(v,e,d){var E,T=[];v._disposeEffects=Gq(function(){_.tf(function(){var S=d();if(S===null||S===void 0)S="";if(as(S)||S===null)E!=null||(E=document.createTextNode("")),E.parentNode!==v&&(E._isSignalTextNode=!0,v.insertBefore(E,e)),E.textContent=String(S);else if(UyO(S)){for(var O=T.length>0?T[T.length-1].nextSibling:e,b=_.a(T),Y=b.next();!Y.done;Y=b.next())v.removeChild(Y.value);S=pY3(S);T=Array.from(S.childNodes);S=_.a(T);for(b=S.next();!b.done;b=S.next())v.insertBefore(b.value,O)}else throw Y=
(b=(O=sE)==null?void 0:O.name)!=null?b:"unknown",Error("Zb`"+Y+"`"+typeof S);},"VvDgC")},vx.alwaysTrackContexts||!!uZ)};
oqt=function(v,e){var d=_.Xa.apply(2,arguments);e!=null||(e={});return!vx.enableLazyTsx||sE!=null&&!kG()?L$S(v,e,d):new Vo0(v,e,d)};
L$S=function(v,e,d){if(v===_.eI)return d;if(typeof v==="function")return sE&&!kG()&&(e.renderedFromIdom=!0),FH0(v,function(){var S=JW7(v,e,d);if(S)return S;d.length>0&&(e.children=d.length===1?d[0]:d);if(v.componentType===_.N4){var O;UkH(function(){var b=e;if(v.componentType!==_.N4)O=!1;else{b||(b={});var Y=new K4(b,v),q=EE(q9);try{var r=Y.render(b)}finally{EE(q)}r instanceof HTMLElement?(r.__instance=Y,Y.el=r,Y.__type=v,v.TAG_NAME=r.tagName.toLowerCase(),rZ.didPatch(Y),O=r):O=r}},v.name);
if(O)return O}return hbj(v,e)},e.debugInstance);
var E=GzM(v,e),T;for(T in e)ZkO(E,T,e[T]);N3U(E,e);Yc(d,E);c0O(E,e,{isReactive:!0});Mo$(E,e);return E};
GzM=function(v,e){v=(to3.has(v.toLowerCase())?0:f_L.has(v.startsWith("svg:")?v.replace("svg:",""):v))?document.createElementNS("http://www.w3.org/2000/svg",v.startsWith("svg:")?v.replace("svg:",""):v):RbL(v,e)||document.createElement(v);v[Pnt]=!0;return v};
_.xnj=function(v){if(v){var e;(e=v._disposeRef)==null||e.call(v);var d;(d=v._disposeEffects)==null||d.call(v);v.__instance&&v.__instance instanceof $c&&(e=v.__instance,jmM(e,v),e instanceof K4&&e.disposeEffects());for(e=0;e<v.childNodes.length;e++)_.xnj(v.childNodes[e])}};
Cn7=function(v){B3L.push(v)===1&&requestAnimationFrame(function(){setTimeout(function(){var e=[].concat(_.t7(B3L));B3L=[];e=_.a(e);for(var d=e.next();!d.done;d=e.next()){d=d.value;try{for(var E=0;E<d.length;E++)_.xnj(d[E])}catch(T){E=d=void 0,(E=(d=vx).handleError)==null||E.call.apply(E,[d].concat(_.t7(Px(T))))}}})})};
_.m=function(v,e){return ukM.apply(null,[v,e].concat(_.t7(_.Xa.apply(2,arguments))))};
XPs=function(v,e){e=e===void 0?new Map:e;v=_.a(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value,!e.has(d)){for(var E=[],T=d.producers;T!==void 0;T=T.nextProducer)E.push(T.producer);e.set(d,E);XPs(E,e)}return e};
_.y=function(v){var e=v.cond;if(e===void 0)return v.else&&v.else();var d=_.yl(function(){return!!e()},void 0,"JHVi8"),E=function(){var T=e();
if(!T){var S;(S=vx.handleError)==null||S.call.apply(S,[vx].concat(_.t7(Px(zbH.nonNullableCondIsNull()))))}return T};
return bg(function(){var T=d(),S;Gq(function(){var O=EE(q9);try{S=yU(T?v.then(E):v.else&&v.else())}finally{EE(O)}},!0);
return S},{debugName:v.debugInstance,
debugFn:v.then,isControlFlowComponent:!0})};
l_3=function(v){return _.y(v)};
_.jI=function(v){return v.keyBy==="INDEX"?H2H(v):AWM(v)};
Z20=function(v){v=_.a(v);for(var e=v.next();!e.done;e=v.next()){var d=void 0;(d=e.value)==null||d()}};
AWM=function(v){var e=v.keyBy===void 0||v.keyBy==="REFERENCE",d=e?function(r){return r}:v.keyBy,E=[],T=[],S=[],O=[],b=[],Y=[],q=!0;
_.Jf(function(){Z20(O)});
return bg(function(){var r=v.each(),h=r.length;if(h===0){if(E.length===0&&!q)return S;Z20(O);E=r;T=[];for(r=0;r<E.length;r++)T.push(d(E[r]));S=[];O=[];b=[];Y=[];v.fallback&&(O[0]=cWj(function(){S[0]=yU(v.fallback())}));
q=!1;return S}for(var K=new wPt,k=E.length-1;k>=0;k--)K.push(T[k],k);k=Array(h);for(var J=Array(h),R=Array(h),B=Array(h),X=Array(e?0:h),Z={i$jscomp$446:0};Z.i$jscomp$446<h;Z={i$jscomp$446:Z.i$jscomp$446,item$jscomp$104:void 0,key$jscomp$551:void 0},Z.i$jscomp$446++){Z.item$jscomp$104=r[Z.i$jscomp$446];Z.key$jscomp$551=d(Z.item$jscomp$104);var U=K.pop(Z.key$jscomp$551);U!=null?(R[Z.i$jscomp$446]=S[U],J[Z.i$jscomp$446]=T[U],k[Z.i$jscomp$446]=O[U],B[Z.i$jscomp$446]=b[U],e||(X[Z.i$jscomp$446]=Y[U]),q4(function(F){return function(){B[F.i$jscomp$446](F.i$jscomp$446);
if(!e)X[F.i$jscomp$446](F.item$jscomp$104)}}(Z)),delete O[U]):k[Z.i$jscomp$446]=cWj(function(F){return function(){var g=_.a(_.OE(F.i$jscomp$446,void 0,"Fqk1zd")),Q=g.next().value;
g=g.next().value;B[F.i$jscomp$446]=g;J[F.i$jscomp$446]=F.key$jscomp$551;if(e)R[F.i$jscomp$446]=yU(v.children(F.item$jscomp$104,Q));else{var v3=_.a(_.OE(F.item$jscomp$104,void 0,"GBj5de"));g=v3.next().value;v3=v3.next().value;X[F.i$jscomp$446]=v3;R[F.i$jscomp$446]=yU(v.children(g,Q))}}}(Z))}Z20(O);
E=r;T=J;S=R;O=k;b=B;Y=X;q=!1;return R},{debugName:v.debugInstance,
debugFn:v.each,isControlFlowComponent:!0})};
H2H=function(v){var e=[],d=[],E=[],T=[],S=!1;_.Jf(function(){for(var O=_.a(T),b=O.next();!b.done;b=O.next())b=b.value,b()});
return bg(function(){var O=v.each();S&&O.length>0&&(T.pop()(),e.pop(),S=!1);for(var b=Array(O.length),Y={i$jscomp$447:0};Y.i$jscomp$447<O.length;Y={i$jscomp$447:Y.i$jscomp$447},Y.i$jscomp$447++)if(Y.i$jscomp$447<e.length)e[Y.i$jscomp$447]!==O[Y.i$jscomp$447]&&(q4(function(r){return function(){return void d[r.i$jscomp$447](O[r.i$jscomp$447])}}(Y)),e[Y.i$jscomp$447]=O[Y.i$jscomp$447]),b[Y.i$jscomp$447]=E[Y.i$jscomp$447];
else{var q=cWj(function(r){return function(){e[r.i$jscomp$447]=O[r.i$jscomp$447];var h=_.a(_.OE(O[r.i$jscomp$447],void 0,"JMMLmd")),K=h.next().value;h=h.next().value;d[r.i$jscomp$447]=h;b[r.i$jscomp$447]=yU(v.children(K,r.i$jscomp$447))}}(Y));
T[Y.i$jscomp$447]=q}for(;e.length>O.length;)e.pop(),T.pop()(),d.pop();O.length===0&&!S&&v.fallback&&(Y=cWj(function(){b[0]=yU(v.fallback())}),T[0]=Y,S=!0);
return E=b},{debugName:v.debugInstance,
isControlFlowComponent:!0})};
cWj=function(v){var e=uZ;return Gq(function(d){var E=EE(q9);try{d.parent=e,v(d)}finally{EE(E)}},!1)};
_.sW=function(v){return v};
_.N9=function(v){return{isDefault:!0,children:v.children}};
_.kc=function(v){var e=F$L(v),d=_.yl(function(){return Qm$(e)},void 0,"F1PF4");
return bg(function(){var E=d(),T;Gq(function(){var S=EE(q9);try{T=yU(E())}finally{EE(S)}});
return T},{debugName:v.debugInstance,
isControlFlowComponent:!0})};
F$L=function(v){v=v.children;return Array.isArray(v)?v:[v]};
gq3=function(v){var e=v.props;v=v.getChildren()[0];return e.when?{when:e.when,children:v}:{isDefault:!0,children:v}};
Qm$=function(v){var e=function(){return null};
v=_.a(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value,d!=null&&d[vb]&&(d=d.type===_.N9?{isDefault:!0,children:d.children[0]}:{when:d.props.when,children:d.children[0]}),d instanceof mE&&(d=gq3(d)),d.isDefault)e=d.children;else if(d.when())return d.children;return e};
nq$=function(v){var e=null,d,E={get value(){var S,O;(O=(S=T).validateGetValue)==null||O.call(S);return T.__value},set value(S){var O,b;(b=(O=T).validateSetValue)==null||b.call(O,S);T.__value=S;T.__hasBeenSet=!0}},T=(E.__value=null,E.__hasBeenSet=!1,E.__hasErrored=!1,E.onRender=function(S){if(d&&S!==d){d._disposeRef=void 0;var O;(O=e)==null||O()}d=S;e=v(S)||null},E.onUnmount=function(){var S;
(S=e)==null||S();e=T.value=null},E[_.uf$]=!0,E);
return T};
L4=function(v){return typeof v==="symbol"};
UnM=function(v){var e=$nO();if(e==null)throw _.Dn$.PRIMITIVE_INVALID_HOOK_CALL();var d=e.hookCounter++;e.hooks||(e.hooks=[]);var E=e.hooks;E[d]||(E[d]={key:v,host:e});if(v!==E[d].key){if(e.__type){var T;v=(T=e.__type)==null?void 0:T.name}else v=e instanceof K4?wV3(e.functionComponent):"<"+e.el.tagName.toLowerCase()+">";throw _.Dn$.OUT_OF_ORDER_HOOK_CALL(v);}return E[d]};
pPj=function(v,e){return!v||v.length!==(e==null?void 0:e.length)||v.some(function(d,E){return d!==e[E]})};
vBS=function(v,e){var d=UnM("onChange"),E=$nO();pPj(d.deps,e)&&(d.deps=e,d.pendingEffect=v,E.__syncEffects||(E.__syncEffects=[]),E.__syncEffects.push(d))};
_.VU=function(v,e,d){d!=null||(d={});d=d.appContext;var E=!!vx.legacyTriggerSoyRendererEvents;OW.setUp();try{var T=eaW(v,e,d);E&&(e=d,e==null&&(e=_.jMM(document).getAppContext()),e.get(dg0).JSC$28992_getEventTarget().dispatchEvent(new EBU(TVM,v,Wb)));OW.log(v);return T}finally{OW.tearDown()}};
eaW=function(v,e,d){var E=function(){var S=EE(q9);try{return Gq(function(){var O=_.jMM(_.Bn(v)),b;var Y=CRs({rootElement:{value:v},appContext:d||(O==null?void 0:(b=O.getOptionalAppContext)==null?void 0:b.call(O)),dispatcher:O});O=_.nX(Y);Y=dZ(!0);hf++;try{Yc(e(),v),$G(!1)}catch(q){throw $G(!0),q;}finally{dZ(Y),_.nX(O)}},!1)}catch(O){throw vx.enableContextBasedComponentStacks&&LD(O),O;
}finally{EE(S)}},T=Vl(function(){return E()});
v[Sz$]=!0;return function(){v.textContent="";T();v[Sz$]=!1}};
_.JE=function(v){if(ZI3(dh)){var e;(e=vx.handleError)==null||e.call.apply(e,[vx].concat(_.t7(Px(Error("Yb")))))}var d=uZ,E=sE;Promise.resolve().then(function(){if(d&&!d.isDisposed){var T=_.nX(d);try{Vl(function(){return void v()},E)}catch(S){throw vx.enableContextBasedComponentStacks&&LD(S),S;
}finally{_.nX(T)}}})};
WNW=function(v,e){vBS(function(){return i3(v)},e)};
_.Gr=function(v){kG()?_.JE(function(){i3(v)}):vBS(function(){return i3(v)},[])};
iB0=function(v){var e=[].concat(_.t7(v));v.length=0;v=_.a(e);for(e=v.next();!e.done;e=v.next()){e=e.value;amH(e);var d=e.pendingEffect;e.pendingEffect=null;if(d=d==null?void 0:d())e.pendingCleanup=d}};
amH=function(v){var e=v.pendingCleanup;v.pendingCleanup=null;e==null||e()};
OB$=function(v,e){if(kG())return v();var d=UnM("useMemoInternal");pPj(d.deps,e)&&(d.deps=e,d.value=v());return d.value};
Im7=function(v,e){return OB$(v,e)};
tE=function(v){return OB$(v,[])};
f4=function(v){return tE(function(){return{value:v}})};
_.Rs=function(v,e){if(!v)return null;v=Object.keys(v);v=_.a(v);for(var d=v.next();!d.done;d=v.next()){d=d.value;var E=d.toLowerCase();if(E.indexOf(e,E.length-e.length)>-1)return d}return null};
_.xc=function(){var v=arguments,e=_.Pb;v.length>1?e[v[0]]=v[1]:v.length===1&&Object.assign(e,v[0])};
_.Bb=function(v,e){return v in _.Pb?_.Pb[v]:e};
_.zr=function(v,e){return!!_.Bb(v,e)};
bBL=function(v){var e=_.Pb.EXPERIMENT_FLAGS;return e?e[v]:void 0};
mgM=function(v){Yz7.forEach(function(e){return e(v)})};
_.Hb=function(v){return v&&window.yterr?function(){try{return v.apply(this,arguments)}catch(e){_.lg(e)}}:v};
_.lg=function(v){var e=_.AE("yt.logging.errors.log");e?e(v,"ERROR",void 0,void 0,void 0,void 0,void 0):(e=_.Bb("ERRORS",[]),e.push([v,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.xc("ERRORS",e));mgM(v)};
_.ZV=function(v,e,d,E,T){var S=_.AE("yt.logging.errors.log");S?S(v,"WARNING",e,d,E,void 0,T):(S=_.Bb("ERRORS",[]),S.push([v,"WARNING",e,d,E,void 0,T]),_.xc("ERRORS",S))};
qzM=function(v,e){e=v.split(e);for(var d={},E=0,T=e.length;E<T;E++){var S=e[E].split("=");if(S.length===1&&S[0]||S.length===2)try{var O=yUO(S[0]||""),b=yUO(S[1]||"");if(O in d){var Y=d[O];Array.isArray(Y)?_.FM(Y,b):d[O]=[Y,b]}else d[O]=b}catch(K){var q=K,r=S[0],h=String(qzM);q.args=[{key:r,value:S[1],query:v,method:rUL===h?"unchanged":h}];ha0.hasOwnProperty(r)||_.ZV(q)}}return d};
KNt=function(v){var e=[];_.f0.forEach(v,function(d,E){var T=_.cb(E);d=Array.isArray(d)?d:[d];_.wZ(d,function(S){S==""?e.push(T):e.push(T+"="+_.cb(S))})});
return e.join("&")};
_.Fy=function(v){v.charAt(0)==="?"&&(v=v.substring(1));return qzM(v,"&")};
_.QU=function(v){return v.indexOf("?")!==-1?(v=(v||"").split("#")[0],v=v.split("?",2),_.Fy(v.length>1?v[1]:v[0])):{}};
_.gZ=function(v,e){return $gU(v,e||{},!0)};
jq3=function(v,e){return $gU(v,e||{},!1)};
$gU=function(v,e,d){var E=v.split("#",2);v=E[0];E=E.length>1?"#"+E[1]:"";var T=v.split("?",2);v=T[0];T=_.Fy(T[1]||"");for(var S in e)if(d||!_.f0.containsKey(T,S))T[S]=e[S];return _.ug(v,T)+E};
p4=function(v){if(!e)var e=window.location.href;var d=_.n4(v)[1]||null,E=_.DV(v);return d&&E?UW(v,e):E?_.DV(e)===E&&(Number(_.n4(e)[4]||null)||null)===(Number(_.n4(v)[4]||null)||null):!0};
_.NVt=function(v){v=sqW(v);return v===null?!1:v[0]==="com"&&v[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
sqW=function(v){v=_.DV(v);return v!==null?v.split(".").reverse():null};
yUO=function(v){return v&&v.match(kEs)?v:vi(v)};
_.eG=function(v){return new LNU(v)};
_.dk=function(){VXS||(VXS=new oBH);return VXS};
GES=function(){var v=JU$;return function(){var e=_.dk();e.resolve(_.eG(v))||e.addProvider({provide:v,useClass:v});return e.resolve(v)}};
tXW=function(v){var e=_.EI,d,E;_.I(function(T){d=_.dk();return(E=d.resolve(_.eG(e)))?(v(E),T.return(Promise.resolve(E))):T.return(d.resolve(new MX0(e)).then(function(S){v(S);return S}))})};
_.N=function(v){v=TR(v);return typeof v==="string"&&v==="false"?!1:!!v};
_.Wi=function(v,e){v=TR(v);return v===void 0&&e!==void 0?e:Number(v||0)};
fmL=function(v){v=TR(v);return Array.isArray(v)?_.R2(v,function(e){return Number(e||0)}):[Number(v||0)]};
_.aH=function(v){v=TR(v);return v!==void 0?String(v):""};
_.iY=function(v){v=TR(v);return Array.isArray(v)?_.R2(v,function(e){return String(e||"")}):[String(v||"")]};
Ra0=function(){return _.Bb("EXPERIMENTS_TOKEN","")};
TR=function(v){return _.Bb("EXPERIMENT_FLAGS",{})[v]};
P4$=function(){for(var v=[],e=_.Bb("EXPERIMENTS_FORCED_FLAGS",{}),d=_.a(Object.keys(e)),E=d.next();!E.done;E=d.next())E=E.value,v.push({key:E,value:String(e[E])});d=_.Bb("EXPERIMENT_FLAGS",{});E=_.a(Object.keys(d));for(var T=E.next();!T.done;T=E.next())T=T.value,T.startsWith("force_")&&e[T]===void 0&&v.push({key:T,value:String(d[T])});return v};
BVW=function(){if(!xg3)return null;var v=xg3();return"open"in v?v:null};
_.C40=function(v){switch(_.OI(v)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.OI=function(v){return v&&"status"in v?v.status:-1};
_.IH=function(v,e){typeof v==="function"&&(v=_.Hb(v));return window.setTimeout(v,e)};
_.bY=function(v,e){typeof v==="function"&&(v=_.Hb(v));return window.setInterval(v,e)};
_.YL=function(v){window.clearTimeout(v)};
zas=function(v){v=_.QU(v);for(var e=_.a(XFt),d=e.next();!d.done;d=e.next())if(v[d.value]!==void 0)return!0;return!1};
AUS=function(v,e,d,E,T,S,O,b,Y){d=d===void 0?"GET":d;E=E===void 0?"":E;b=b===void 0?!1:b;var q=BVW();if(!q)return null;var r=function(){(q&&"readyState"in q?q.readyState:0)===4&&e&&_.Hb(e)(q)};
"onloadend"in q?q.addEventListener("loadend",r,!1):q.onreadystatechange=r;_.N("debug_forward_web_query_parameters")&&(v=lmW(v,window.location.search));q.open(d,v,!0);S&&(q.responseType=S);O&&(q.withCredentials=!0);d=d==="POST"&&(window.FormData===void 0||!(E instanceof FormData));if(T=HB0(v,T))for(var h in T)q.setRequestHeader(h,T[h]),"content-type"===h.toLowerCase()&&(d=!1);d&&q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");Y&&"onprogress"in q&&(q.onprogress=function(){Y(q.responseText)});
if(b&&"setAttributionReporting"in XMLHttpRequest.prototype){v={eventSourceEligible:!0,triggerEligible:!1};try{q.setAttributionReporting(v)}catch(K){_.ZV(K)}}q.send(E);return q};
HB0=function(v,e){e=e===void 0?{}:e;var d=p4(v),E=_.Bb("INNERTUBE_CLIENT_NAME"),T=_.N("web_ajax_ignore_global_headers_if_set"),S;for(S in ZBj){var O=_.Bb(ZBj[S]),b=S==="X-Goog-AuthUser"||S==="X-Goog-PageId";S!=="X-Goog-Visitor-Id"||O||(O=_.Bb("VISITOR_DATA"));var Y;if(!(Y=!O)){if(!(Y=d||(_.DV(v)?!1:!0))){Y=v;var q;if(q=_.N("add_auth_headers_to_remarketing_google_dot_com_ping")&&S==="Authorization"&&(E==="TVHTML5"||E==="TVHTML5_UNPLUGGED"||E==="TVHTML5_SIMPLY"))q=sqW(Y),q=q===null?!1:q[1]==="google"?
!0:q[2]==="google"?q[0]==="au"&&q[1]==="com"?!0:q[0]==="uk"&&q[1]==="co"?!0:!1:!1;q&&(Y=_.mq(Y)||"",Y=Y.split("/"),Y="/"+(Y.length>1?Y[1]:""),q=Y==="/pagead");Y=q?!0:!1}Y=!Y}Y||T&&e[S]!==void 0||E==="TVHTML5_UNPLUGGED"&&b||(e[S]=O)}"X-Goog-EOM-Visitor-Id"in e&&"X-Goog-Visitor-Id"in e&&delete e["X-Goog-Visitor-Id"];if(d||!_.DV(v))e["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(d||!_.DV(v)){try{var r=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(h){}r&&(e["X-YouTube-Time-Zone"]=
r)}document.location.hostname.endsWith("youtubeeducation.com")||!d&&_.DV(v)||(e["X-YouTube-Ad-Signals"]=KNt(cUO()));return e};
_.wF3=function(v,e){var d=_.DV(v);_.N("debug_handle_relative_url_for_query_forward_killswitch")||!d&&p4(v)&&(d=document.location.hostname);var E=_.mq(v);E=(d=d&&(d.endsWith("youtube.com")||d.endsWith("youtube-nocookie.com")))&&E&&E.startsWith("/api/");if(!d||E)return v;var T=_.Fy(e),S={};_.wZ(XFt,function(O){T[O]&&(S[O]=T[O])});
return jq3(v,S)};
FNL=function(v,e){e.method="POST";e.postParams||(e.postParams={});return _.y8(v,e)};
Qq$=function(v,e){var d=_.Bb("XSRF_FIELD_NAME"),E;e.headers&&(E=e.headers["Content-Type"]);return!e.excludeXsrf&&(!_.DV(v)||e.withCredentials||_.DV(v)===document.location.hostname)&&e.method==="POST"&&(!E||E==="application/x-www-form-urlencoded")&&!(e.postParams&&e.postParams[d])};
_.y8=function(v,e){var d=e.format||"JSON";v=gBH(v,e);var E=uqt(v,e),T=!1,S=nBU(v,function(Y){if(!T){T=!0;b&&_.YL(b);var q=_.C40(Y),r=null,h=400<=Y.status&&Y.status<500,K=500<=Y.status&&Y.status<600;if(q||h||K)r=DgU(v,d,Y,e.convertToSafeHtml);q&&(q=UgS(d,Y,r));r=r||{};h=e.context||_.TO;q?e.onSuccess&&e.onSuccess.call(h,Y,r):e.onError&&e.onError.call(h,Y,r);e.onFinish&&e.onFinish.call(h,Y,r)}},e.method,E,e.headers,e.responseType,e.withCredentials,!1,e.onProgress);
E=e.timeout||0;if(e.onTimeout&&E>0){var O=e.onTimeout;var b=_.IH(function(){T||(T=!0,S.abort(),_.YL(b),O.call(e.context||_.TO,S))},E)}return S};
gBH=function(v,e){e.includeDomain&&(v=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+v);var d=_.Bb("XSRF_FIELD_NAME");if(e=e.urlParams)e[d]&&delete e[d],v=_.gZ(v,e);return v};
uqt=function(v,e){var d=_.Bb("XSRF_FIELD_NAME"),E=_.Bb("XSRF_TOKEN"),T=e.postBody||"",S=e.postParams;Qq$(v,e)&&(S||(S={}),S[d]=E);(_.N("ajax_parse_query_data_only_when_filled")&&S&&Object.keys(S).length>0||S)&&typeof T==="string"&&(T=_.Fy(T),_.f0.extend(T,S),T=e.postBodyFormat&&e.postBodyFormat==="JSON"?JSON.stringify(T):_.q_(T));S=T||S&&!_.f0.isEmpty(S);!pFs&&S&&e.method!=="POST"&&(pFs=!0,_.lg(Error("Hc")));return T};
DgU=function(v,e,d,E){var T=null;switch(e){case "JSON":try{var S=d.responseText}catch(O){throw E=Error("Ic"),E.params=v,_.ZV(E),O;}v=d.getResponseHeader("Content-Type")||"";S&&v.indexOf("json")>=0&&(S.substring(0,5)===")]}'\n"&&(S=S.substring(5)),T=JSON.parse(S));break;case "XML":if(v=(v=d.responseXML)?vHO(v):null)T={},_.wZ(v.getElementsByTagName("*"),function(O){T[O.tagName]=elj(O)})}E&&dES(T);
return T};
dES=function(v){if(_.Qj(v))for(var e in v)e==="html_content"||O0(e,"_html")?v[e]=Ar(v[e]):dES(v[e])};
UgS=function(v,e,d){if(e&&e.status===204)return!0;switch(v){case "JSON":return!!d;case "XML":return Number(d&&d.return_code)===0;case "RAW":return!0;default:return!!d}};
vHO=function(v){return v?(v=("responseXML"in v?v.responseXML:v).getElementsByTagName("root"))&&v.length>0?v[0]:null:null};
elj=function(v){var e="";_.wZ(v.childNodes,function(d){e+=d.nodeValue});
return e};
EHM=function(v){if(v.name==="JavaException")return!0;v=v.stack;return v.includes("chrome://")||v.includes("-extension://")||v.includes("webkit-masked-url://")};
Tgs=function(v){if(!v.stack)return!0;var e=!v.stack.includes("\n");return e&&v.stack.includes("ErrorType: ")||e&&v.stack.includes("Anonymous function (Unknown script")||v.stack.toLowerCase()==="not available"||v.fileName==="user-script"||v.fileName.startsWith("user-script:")?!0:!1};
_.rk=function(v){_.kh.call(this);this.JSC$10500_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!v};
WU3=function(v,e){var d=v.length,E=0,T=function(){return v.charCodeAt(E++)};
do{var S=So0(T);if(S===Infinity)break;var O=S>>3;switch(S&7){case 0:S=So0(T);if(O===e)return S;break;case 1:if(O===e)return;E+=8;break;case 2:S=So0(T);if(O===e)return v.substr(E,S);E+=S;break;case 5:if(O===e)return;E+=4;break;default:return}}while(E<d)};
So0=function(v){var e=v(),d=e&127;if(e<128)return d;e=v();d|=(e&127)<<7;if(e<128)return d;e=v();d|=(e&127)<<14;if(e<128)return d;e=v();return e<128?d|(e&127)<<21:Infinity};
iQS=function(v,e,d,E){if(v)if(Array.isArray(v)){var T=E;for(E=0;E<v.length&&!(v[E]&&(T+=aYL(E,v[E],e,d),T>500));E++);E=T}else if(typeof v==="object")for(T in v){if(v[T]){var S=T;var O=v[T],b=e,Y=d;S=typeof O!=="string"||S!=="clickTrackingParams"&&S!=="trackingParams"?0:(O=WU3(atob(O.replace(/-/g,"+").replace(/_/g,"/")),2))?aYL(S+".ve",O,b,Y):0;E+=S;E+=aYL(T,v[T],e,d);if(E>500)break}}else d[e]=ha(v),E+=d[e].length;else d[e]=ha(v),E+=d[e].length;return E};
aYL=function(v,e,d,E){d+="."+v;v=ha(e);E[d]=v;return d.length+v.length};
ha=function(v){try{return(typeof v==="string"?v:String(JSON.stringify(v))).substr(0,500)}catch(e){return"unable to serialize "+typeof v+" ("+e.message+")"}};
OQU=function(v){switch(v){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}};
_.$L=function(v,e,d,E,T){_.Kw.set(v,e,{maxAge:d,path:"/",domain:E===void 0?"youtube.com":E,secure:T===void 0?!1:T})};
_.IYs=function(v,e,d){_.Kw.remove(v,e===void 0?"/":e,d===void 0?"youtube.com":d)};
_.jG=function(){if(_.N("embeds_web_enable_cookie_detection_fix")){if(!_.TO.navigator.cookieEnabled)return!1}else if(!_.Kw.isEnabled())return!1;if(!_.Kw.isEmpty())return!0;_.N("embeds_web_enable_cookie_detection_fix")?_.Kw.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Kw.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Kw.get("TESTCOOKIESENABLED")!=="1")return!1;_.Kw.remove("TESTCOOKIESENABLED");return!0};
bQ7=function(){var v=_.TO.navigator;return v?v.connection:void 0};
YoU=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(v){}};
_.y_H=function(){var v=bQ7();if(v){var e=mE0[v.type||"unknown"]||"CONN_UNKNOWN";v=mE0[v.effectiveType||"unknown"]||"CONN_UNKNOWN";e==="CONN_CELLULAR_UNKNOWN"&&v!=="CONN_UNKNOWN"&&(e=v);if(e!=="CONN_UNKNOWN")return e;if(v!=="CONN_UNKNOWN")return v}};
r_j=function(){var v=bQ7();if(v!=null&&v.effectiveType)return qoS.hasOwnProperty(v.effectiveType)?qoS[v.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.N_=function(){try{return _.sI(),!0}catch(v){return!1}};
_.sI=function(v){if(_.Bb("DATASYNC_ID")!==void 0)return _.Bb("DATASYNC_ID");throw new _.kL("Datasync ID not set",v===void 0?"unknown":v);};
_.Lw=function(v){this.mechanism=v};
V8=function(v){this.mechanism=v};
oH=function(v){this.storage_=v;this.cachedIsStorageAvailable_=null};
hls=function(){var v=null;try{v=_.TO.localStorage||null}catch(e){}oH.call(this,v)};
KUU=function(){var v=null;try{v=_.TO.sessionStorage||null}catch(e){}oH.call(this,v)};
Ja=function(v,e){this.mechanism_=v;this.JSC$10602_prefix_=e+"::"};
_.$Et=function(v){var e=new hls;return e.isAvailable()?v?new Ja(e,v):e:null};
_.jG3=function(v){var e=new KUU;return e.isAvailable()?v?new Ja(e,v):e:null};
Ng0=function(){var v;return(v=sGs())==null?void 0:v.get("LAST_RESULT_ENTRY_KEY",!0)};
_.ta=function(v){kas||(_.GR?_.GR.logError(v):(_.M_.push({type:"ERROR",payload:v}),_.M_.length>10&&_.M_.shift()))};
fw=function(v,e){kas||(_.GR?_.GR.logEvent(v,e):(_.M_.push({type:"EVENT",eventType:v,payload:e}),_.M_.length>10&&_.M_.shift()))};
RH=function(v){if(v.indexOf(":")>=0)throw Error("Pc");};
xL=function(v){return v.substr(0,v.indexOf(":"))||v};
oH3=function(){return(LUH||V70)&&Bi("applewebkit")&&!Bi("version")&&(!Bi("safari")||Bi("gsa/"))};
Bi=function(v){var e=_.Kt();return e?e.toLowerCase().indexOf(v)>=0:!1};
M7t=function(v,e,d,E){e=xL(e);var T=v instanceof Error?v:Error("Qc`"+v);if(T instanceof Cw)return T;v={objectStoreNames:d,dbName:e,dbVersion:E};if(T.name==="QuotaExceededError")return new Cw("QUOTA_EXCEEDED",v);if(_.Xo&&T.name==="UnknownError")return new Cw("QUOTA_MAYBE_EXCEEDED",v);if(T instanceof J_S)return new Cw("MISSING_INDEX",Object.assign({},v,{objectStore:T.objectStore,index:T.index}));if(T.name==="InvalidStateError"&&GaW.some(function(S){return T.message.includes(S)}))return new Cw("EXECUTE_TRANSACTION_ON_CLOSED_DB",
v);
if(T.name==="AbortError")return new Cw("UNKNOWN_ABORT",v,T.message);T.args=[Object.assign({},v,{name:"IdbError",originalName:T.name})];T.level="WARNING";return T};
zR=function(v,e,d){var E=Ng0();return new Cw("IDB_NOT_SUPPORTED",{context:{caller:v,publicName:e,version:d,hasSucceededOnce:E==null?void 0:E.hasSucceededOnce}})};
t70=function(v){if(!v)throw Error();throw v;};
fYM=function(v){return v};
Rls=function(v,e,d){var E=function(){try{v.removeEventListener("success",T),v.removeEventListener("error",S)}catch(O){}},T=function(){e(v.result);
E()},S=function(){d(v.error);
E()};
v.addEventListener("success",T);v.addEventListener("error",S)};
PqM=function(v){return new Promise(function(e,d){Rls(v,e,d)})};
Aa=function(v){return new lY(new Hi(function(e,d){Rls(v,e,d)}))};
xE0=function(v,e){return new lY(new Hi(function(d,E){var T=function(){var S=v?e(v):null;S?S.then(function(O){v=O;T()},E):d()};
T()}))};
BgH=function(v,e,d){return new Promise(function(E,T){var S=e!==void 0?self.indexedDB.open(v,e):self.indexedDB.open(v);var O=d.blocked,b=d.blocking,Y=d.terminated,q=d.upgrade,r=d.closed,h,K=function(){h||(h=new ZT(S.result,{closed:r}));return h};
S.addEventListener("upgradeneeded",function(k){try{if(k.newVersion===null)throw Error("Vc");if(S.transaction===null)throw Error("Wc");k.dataLoss&&k.dataLoss!=="none"&&fw("IDB_DATA_CORRUPTED",{reason:k.dataLossMessage||"unknown reason",dbName:xL(v)});var J=K(),R=new ci(S.transaction);q&&q(J,function(B){return k.oldVersion<B&&k.newVersion>=B},R);
R.done.catch(function(B){T(B)})}catch(B){T(B)}});
S.addEventListener("success",function(){var k=S.result;b&&k.addEventListener("versionchange",function(){b(K())});
k.addEventListener("close",function(){fw("IDB_UNEXPECTEDLY_CLOSED",{dbName:xL(v),dbVersion:k.version});Y&&Y()});
E(K())});
S.addEventListener("error",function(){T(S.error)});
O&&S.addEventListener("blocked",function(){O()})})};
CqM=function(v,e,d){d=d===void 0?{}:d;return BgH(v,e,d)};
_.Fo=function(v,e){e=e===void 0?{}:e;var d,E,T,S;return _.I(function(O){if(O.nextAddress==1)return _.qq(O,2),d=self.indexedDB.deleteDatabase(v),E=e,(T=E.blocked)&&d.addEventListener("blocked",function(){T()}),O.yield(PqM(d),4);
if(O.nextAddress!=2)return _.wk(O,0);S=_.jl(O);throw M7t(S,v,"",-1);})};
zlH=function(v,e){var d;return _.I(function(E){if(E.nextAddress==1)return E.yield(_.Q8(XKS,e),2);d=E.yieldResult;return E.return(_.gk(d,["databases"],{enableRetries:!0,mode:"readwrite"},function(T){var S=T.objectStore("databases");return S.get(v.actualName).then(function(O){if(O?v.actualName!==O.actualName||v.publicName!==O.publicName||v.userIdentifier!==O.userIdentifier:1)return S.put(v).then(function(){})})}))})};
_.uY=function(v,e){var d;return _.I(function(E){if(E.nextAddress==1)return v?E.yield(_.Q8(XKS,e),2):E.return();d=E.yieldResult;return E.return(d.delete("databases",v))})};
_.lYM=function(v,e){var d,E;return _.I(function(T){return T.nextAddress==1?(d=[],T.yield(_.Q8(XKS,e),2)):T.nextAddress!=3?(E=T.yieldResult,T.yield(_.gk(E,["databases"],{enableRetries:!0,mode:"readonly"},function(S){d.length=0;return nw(S.objectStore("databases"),{},function(O){v(O.getValue())&&d.push(O.getValue());return O.continue()})}),3)):T.return(d)})};
HQ0=function(v,e){return _.lYM(function(d){return d.publicName===v&&d.userIdentifier!==void 0},e)};
c_3=function(){var v,e,d,E;return _.I(function(T){switch(T.nextAddress){case 1:v=Ng0();if((e=v)==null?0:e.hasSucceededOnce)return T.return(!0);var S;if(S=A_H)S=/WebKit\/([0-9]+)/.exec(_.Kt()),S=!!(S&&parseInt(S[1],10)>=600);S&&(S=/WebKit\/([0-9]+)/.exec(_.Kt()),S=!(S&&parseInt(S[1],10)>=602));if(S||DT)return T.return(!1);try{if(d=self,!(d.indexedDB&&d.IDBIndex&&d.IDBKeyRange&&d.IDBObjectStore))return T.return(!1)}catch(O){return T.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return T.return(!1);
_.qq(T,2);E={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return T.yield(zlH(E,ZQt),4);case 4:return T.yield(_.uY("yt-idb-test-do-not-use",ZQt),5);case 5:return T.return(!0);case 2:return _.jl(T),T.return(!1)}})};
FUj=function(){if(wKj!==void 0)return wKj;kas=!0;return wKj=c_3().then(function(v){kas=!1;var e;if((e=sGs())!=null&&e.expiringStorage_){var d;e={hasSucceededOnce:((d=Ng0())==null?void 0:d.hasSucceededOnce)||v};var E;(E=sGs())==null||E.set("LAST_RESULT_ENTRY_KEY",e,2592E3,!0)}return v})};
UI=function(){return _.AE("ytglobal.idbToken_")||void 0};
_.ea=function(){var v=UI();return v?Promise.resolve(v):FUj().then(function(e){(e=e?ZQt:void 0)&&_.pw("ytglobal.idbToken_",e);return e})};
QG3=function(v){if(!_.N_())throw v=new Cw("AUTH_INVALID",{dbName:v}),_.ta(v),v;var e=_.sI();return{actualName:v+":"+e,publicName:v,userIdentifier:e}};
gHt=function(v,e,d,E){var T,S,O,b,Y,q;return _.I(function(r){switch(r.nextAddress){case 1:return S=(T=Error().stack)!=null?T:"",r.yield(_.ea(),2);case 2:O=r.yieldResult;if(!O)throw b=zR("openDbImpl",v,e),_.N("ytidb_async_stack_killswitch")||(b.stack=b.stack+"\n"+S.substring(S.indexOf("\n")+1)),_.ta(b),b;RH(v);Y=d?{actualName:v,publicName:v,userIdentifier:void 0}:QG3(v);_.qq(r,3);return r.yield(zlH(Y,O),5);case 5:return r.yield(CqM(Y.actualName,e,E),6);case 6:return r.return(r.yieldResult);case 3:return q=
_.jl(r),_.qq(r,7),r.yield(_.uY(Y.actualName,O),9);case 9:_.wk(r,8);break;case 7:_.jl(r);case 8:throw q;}})};
u1H=function(v,e,d){d=d===void 0?{}:d;return gHt(v,e,!1,d)};
nHL=function(v,e,d){d=d===void 0?{}:d;return gHt(v,e,!0,d)};
DEL=function(v,e){e=e===void 0?{}:e;var d,E;return _.I(function(T){if(T.nextAddress==1)return T.yield(_.ea(),2);if(T.nextAddress!=3){d=T.yieldResult;if(!d)return T.return();RH(v);E=QG3(v);return T.yield(_.Fo(E.actualName,e),3)}return T.yield(_.uY(E.actualName,d),0)})};
UE0=function(v,e,d){v=v.map(function(E){return _.I(function(T){return T.nextAddress==1?T.yield(_.Fo(E.actualName,e),2):T.yield(_.uY(E.actualName,d),0)})});
return Promise.all(v).then(function(){})};
pKH=function(v){var e=e===void 0?{}:e;var d,E;return _.I(function(T){if(T.nextAddress==1)return T.yield(_.ea(),2);if(T.nextAddress!=3){d=T.yieldResult;if(!d)return T.return();RH(v);return T.yield(HQ0(v,d),3)}E=T.yieldResult;return T.yield(UE0(E,e,d),0)})};
vEM=function(v,e){e=e===void 0?{}:e;var d;return _.I(function(E){if(E.nextAddress==1)return E.yield(_.ea(),2);if(E.nextAddress!=3){d=E.yieldResult;if(!d)return E.return();RH(v);return E.yield(_.Fo(v,e),3)}return E.yield(_.uY(v,d),0)})};
dt=function(v,e){return eX3(v,e)};
EE3=function(v){return _.Q8(dd0(),v)};
T13=function(v,e,d,E){var T,S,O;return _.I(function(b){switch(b.nextAddress){case 1:return T={config:v,hashData:e,timestamp:E!==void 0?E:(0,_.E$)()},b.yield(EE3(d),2);case 2:return S=b.yieldResult,b.yield(S.clear("hotConfigStore"),3);case 3:return b.yield(S.put("hotConfigStore",T),4);case 4:return O=b.yieldResult,b.return(O)}})};
SjW=function(v,e,d,E,T){var S,O,b;return _.I(function(Y){switch(Y.nextAddress){case 1:return S={config:v,hashData:e,configData:d,timestamp:T!==void 0?T:(0,_.E$)()},Y.yield(EE3(E),2);case 2:return O=Y.yieldResult,Y.yield(O.clear("coldConfigStore"),3);case 3:return Y.yield(O.put("coldConfigStore",S),4);case 4:return b=Y.yieldResult,Y.return(b)}})};
WxM=function(v){var e,d;return _.I(function(E){return E.nextAddress==1?E.yield(EE3(v),2):E.nextAddress!=3?(e=E.yieldResult,d=void 0,E.yield(_.gk(e,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(T){return _.Td(T.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(S){d=S.getValue()})}),3)):E.return(d)})};
apL=function(v){var e,d;return _.I(function(E){return E.nextAddress==1?E.yield(EE3(v),2):E.nextAddress!=3?(e=E.yieldResult,d=void 0,E.yield(_.gk(e,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(T){return _.Td(T.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(S){d=S.getValue()})}),3)):E.return(d)})};
io$=function(){return _.I(function(v){return v.yield(pKH("ytGcfConfig"),0)})};
OoU=function(){return"INNERTUBE_API_KEY"in _.Pb&&"INNERTUBE_API_VERSION"in _.Pb};
_.Sa=function(){return{innertubeApiKey:_.Bb("INNERTUBE_API_KEY"),innertubeApiVersion:_.Bb("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Bb("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Bb("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Bb("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Bb("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Bb("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.zr("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.zr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Bb("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.rkj=function(v){var e={client:{hl:v.innertubeContextHostLanguage,gl:v.innertubeContextGeoLocation,clientName:v.innertubeContextClientName,clientVersion:v.innertubeContextClientVersion,configInfo:v.innertubeContextClientConfigInfo}};navigator.userAgent&&(e.client.userAgent=String(navigator.userAgent));var d=_.TO.devicePixelRatio;d&&d!=1&&(e.client.screenDensityFloat=String(d));d=Ra0();d!==""&&(e.client.experimentsToken=d);d=P4$();d.length>0&&(e.request={internalExperimentFlags:d});IpU(v,void 0,e);
boM(void 0,e);Yj3(void 0,e);md0(v,void 0,e);ykH(void 0,e);_.N("start_client_gcf")&&qjM(void 0,e);_.Bb("DELEGATED_SESSION_ID")&&!_.N("pageid_as_header_web")&&(e.user={onBehalfOfUser:_.Bb("DELEGATED_SESSION_ID")});!_.N("fill_delegate_context_in_gel_killswitch")&&(v=_.Bb("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(e.user=Object.assign({},e.user,{serializedDelegationContext:v}));v=_.Bb("INNERTUBE_CONTEXT");var E;if(_.N("enable_persistent_device_token")&&(v==null?0:(E=v.client)==null?0:E.rolloutToken)){var T;
e.client.rolloutToken=v==null?void 0:(T=v.client)==null?void 0:T.rolloutToken}E=Object;T=E.assign;v=e.client;d={};for(var S=_.a(Object.entries(_.Fy(_.Bb("DEVICE","")))),O=S.next();!O.done;O=S.next()){var b=_.a(O.value);O=b.next().value;b=b.next().value;O==="cbrand"?d.deviceMake=b:O==="cmodel"?d.deviceModel=b:O==="cbr"?d.browserName=b:O==="cbrver"?d.browserVersion=b:O==="cos"?d.osName=b:O==="cosver"?d.osVersion=b:O==="cplatform"&&(d.platform=b)}e.client=T.call(E,v,d);return e};
IpU=function(v,e,d){v=v.innertubeContextClientName;if(v==="WEB"||v==="MWEB"||v===1||v===2)if(e){d=_.W8(e,hX0,96)||new hX0;var E=KxW();E=Object.keys($dS).indexOf(E);E=E===-1?null:E;E!==null&&_.aM(d,3,E);_.hr(e,96,d)}else d&&(d.client.mainAppWebInfo=(E=d.client.mainAppWebInfo)!=null?E:{},d.client.mainAppWebInfo.webDisplayMode=KxW())};
boM=function(v,e){var d=_.AE("yt.embedded_player.embed_url");d&&(v?(e=_.W8(v,jbS,7)||new jbS,_.L0(e,4,d),_.hr(v,7,e)):e&&(e.thirdParty={embedUrl:d}))};
Yj3=function(v,e){var d;if(_.N("web_log_memory_total_kbytes")&&((d=_.TO.navigator)==null?0:d.deviceMemory)){var E;d=(E=_.TO.navigator)==null?void 0:E.deviceMemory;v?_.iR(v,95,WO(d*1E6)):e&&(e.client.memoryTotalKbytes=""+d*1E6)}};
md0=function(v,e,d){if(v.appInstallData)if(e){var E;d=(E=_.W8(e,O$,62))!=null?E:new O$;_.L0(d,6,v.appInstallData);_.hr(e,62,d)}else d&&(d.client.configInfo=d.client.configInfo||{},d.client.configInfo.appInstallData=v.appInstallData)};
ykH=function(v,e){var d=_.y_H();d&&(v?_.aM(v,61,sbH[d]):e&&(e.client.connectionType=d));_.N("web_log_effective_connection_type")&&(d=r_j())&&(v?_.aM(v,94,N1O[d]):e&&(e.client.effectiveConnectionType=d))};
_.VU0=function(v,e,d){d=d===void 0?{}:d;var E={};_.Bb("EOM_VISITOR_DATA")?E={"X-Goog-EOM-Visitor-Id":_.Bb("EOM_VISITOR_DATA")}:E={"X-Goog-Visitor-Id":d.visitorData||_.Bb("VISITOR_DATA","")};if(e&&e.includes("www.youtube-nocookie.com"))return E;e=d.authorization||_.Bb("AUTHORIZATION");e||(v?e="Bearer "+_.AE("gapi.auth.getToken")().access_token:(koH.instance||(koH.instance=new koH),v=Lx7(),_.N("pageid_as_header_web")||delete v["X-Goog-PageId"],E=Object.assign({},E,v)));e&&(E.Authorization=e);return E};
qjM=function(v,e){var d=oEs();if(d){var E=d.coldConfigData,T=d.coldHashData;d=d.hotHashData;if(v){var S;e=(S=_.W8(v,O$,62))!=null?S:new O$;E=_.L0(e,1,E);_.L0(E,3,T).setHotHashData(d);_.hr(v,62,e)}else e&&(e.client.configInfo=e.client.configInfo||{},E&&(e.client.configInfo.coldConfigData=E),T&&(e.client.configInfo.coldHashData=T),d&&(e.client.configInfo.hotHashData=d))}};
IM=function(v){for(var e=v.length;--e>=0;)v[e]=0};
JkU=function(v,e,d,E,T){this.static_tree=v;this.extra_bits=e;this.extra_base=d;this.elems=E;this.max_length=T;this.has_stree=v&&v.length};
Go$=function(v,e){this.dyn_tree=v;this.max_code=0;this.stat_desc=e};
bR=function(v,e){v.pending_buf[v.pending++]=e&255;v.pending_buf[v.pending++]=e>>>8&255};
Ye=function(v,e,d){v.bi_valid>16-d?(v.bi_buf|=e<<v.bi_valid&65535,bR(v,v.bi_buf),v.bi_buf=e>>16-v.bi_valid,v.bi_valid+=d-16):(v.bi_buf|=e<<v.bi_valid&65535,v.bi_valid+=d)};
mY=function(v,e,d){Ye(v,d[e*2],d[e*2+1])};
MU7=function(v,e){var d=0;do d|=v&1,v>>>=1,d<<=1;while(--e>0);return d>>>1};
tUM=function(v,e,d){var E=Array(16),T=0,S;for(S=1;S<=15;S++)E[S]=T=T+d[S-1]<<1;for(d=0;d<=e;d++)T=v[d*2+1],T!==0&&(v[d*2]=MU7(E[T]++,T))};
fps=function(v){var e;for(e=0;e<286;e++)v.dyn_ltree[e*2]=0;for(e=0;e<30;e++)v.dyn_dtree[e*2]=0;for(e=0;e<19;e++)v.bl_tree[e*2]=0;v.dyn_ltree[512]=1;v.opt_len=v.static_len=0;v.last_lit=v.matches=0};
RXH=function(v){v.bi_valid>8?bR(v,v.bi_buf):v.bi_valid>0&&(v.pending_buf[v.pending++]=v.bi_buf);v.bi_buf=0;v.bi_valid=0};
PX0=function(v,e,d){RXH(v);bR(v,d);bR(v,~d);yp.arraySet(v.pending_buf,v.window,e,d,v.pending);v.pending+=d};
xdM=function(v,e,d,E){var T=e*2,S=d*2;return v[T]<v[S]||v[T]===v[S]&&E[e]<=E[d]};
B1S=function(v,e,d){for(var E=v.heap[d],T=d<<1;T<=v.heap_len;){T<v.heap_len&&xdM(e,v.heap[T+1],v.heap[T],v.depth)&&T++;if(xdM(e,E,v.heap[T],v.depth))break;v.heap[d]=v.heap[T];d=T;T<<=1}v.heap[d]=E};
Ho0=function(v,e,d){var E=0;if(v.last_lit!==0){do{var T=v.pending_buf[v.d_buf+E*2]<<8|v.pending_buf[v.d_buf+E*2+1];var S=v.pending_buf[v.l_buf+E];E++;if(T===0)mY(v,S,e);else{var O=qk[S];mY(v,O+256+1,e);var b=CXM[O];b!==0&&(S-=Xv$[O],Ye(v,S,b));T--;O=T<256?rt[T]:rt[256+(T>>>7)];mY(v,O,d);b=zXM[O];b!==0&&(T-=lpS[O],Ye(v,T,b))}}while(E<v.last_lit)}mY(v,256,e)};
Ak$=function(v,e){var d=e.dyn_tree,E=e.stat_desc.static_tree,T=e.stat_desc.has_stree,S=e.stat_desc.elems,O,b=-1;v.heap_len=0;v.heap_max=573;for(O=0;O<S;O++)d[O*2]!==0?(v.heap[++v.heap_len]=b=O,v.depth[O]=0):d[O*2+1]=0;for(;v.heap_len<2;){var Y=v.heap[++v.heap_len]=b<2?++b:0;d[Y*2]=1;v.depth[Y]=0;v.opt_len--;T&&(v.static_len-=E[Y*2+1])}e.max_code=b;for(O=v.heap_len>>1;O>=1;O--)B1S(v,d,O);Y=S;do O=v.heap[1],v.heap[1]=v.heap[v.heap_len--],B1S(v,d,1),E=v.heap[1],v.heap[--v.heap_max]=O,v.heap[--v.heap_max]=
E,d[Y*2]=d[O*2]+d[E*2],v.depth[Y]=(v.depth[O]>=v.depth[E]?v.depth[O]:v.depth[E])+1,d[O*2+1]=d[E*2+1]=Y,v.heap[1]=Y++,B1S(v,d,1);while(v.heap_len>=2);v.heap[--v.heap_max]=v.heap[1];O=e.dyn_tree;Y=e.max_code;E=e.stat_desc.static_tree;T=e.stat_desc.has_stree;S=e.stat_desc.extra_bits;var q=e.stat_desc.extra_base,r=e.stat_desc.max_length,h,K=0;for(h=0;h<=15;h++)v.bl_count[h]=0;O[v.heap[v.heap_max]*2+1]=0;for(e=v.heap_max+1;e<573;e++){var k=v.heap[e];h=O[O[k*2+1]*2+1]+1;h>r&&(h=r,K++);O[k*2+1]=h;if(!(k>
Y)){v.bl_count[h]++;var J=0;k>=q&&(J=S[k-q]);var R=O[k*2];v.opt_len+=R*(h+J);T&&(v.static_len+=R*(E[k*2+1]+J))}}if(K!==0){do{for(h=r-1;v.bl_count[h]===0;)h--;v.bl_count[h]--;v.bl_count[h+1]+=2;v.bl_count[r]--;K-=2}while(K>0);for(h=r;h!==0;h--)for(k=v.bl_count[h];k!==0;)E=v.heap[--e],E>Y||(O[E*2+1]!==h&&(v.opt_len+=(h-O[E*2+1])*O[E*2],O[E*2+1]=h),k--)}tUM(d,b,v.bl_count)};
ZoM=function(v,e,d){var E,T=-1,S=e[1],O=0,b=7,Y=4;S===0&&(b=138,Y=3);e[(d+1)*2+1]=65535;for(E=0;E<=d;E++){var q=S;S=e[(E+1)*2+1];++O<b&&q===S||(O<Y?v.bl_tree[q*2]+=O:q!==0?(q!==T&&v.bl_tree[q*2]++,v.bl_tree[32]++):O<=10?v.bl_tree[34]++:v.bl_tree[36]++,O=0,T=q,S===0?(b=138,Y=3):q===S?(b=6,Y=3):(b=7,Y=4))}};
ckj=function(v,e,d){var E,T=-1,S=e[1],O=0,b=7,Y=4;S===0&&(b=138,Y=3);for(E=0;E<=d;E++){var q=S;S=e[(E+1)*2+1];if(!(++O<b&&q===S)){if(O<Y){do mY(v,q,v.bl_tree);while(--O!==0)}else q!==0?(q!==T&&(mY(v,q,v.bl_tree),O--),mY(v,16,v.bl_tree),Ye(v,O-3,2)):O<=10?(mY(v,17,v.bl_tree),Ye(v,O-3,3)):(mY(v,18,v.bl_tree),Ye(v,O-11,7));O=0;T=q;S===0?(b=138,Y=3):q===S?(b=6,Y=3):(b=7,Y=4)}}};
wvM=function(v){var e=4093624447,d;for(d=0;d<=31;d++,e>>>=1)if(e&1&&v.dyn_ltree[d*2]!==0)return 0;if(v.dyn_ltree[18]!==0||v.dyn_ltree[20]!==0||v.dyn_ltree[26]!==0)return 1;for(d=32;d<256;d++)if(v.dyn_ltree[d*2]!==0)return 1;return 0};
ho=function(v,e,d){v.pending_buf[v.d_buf+v.last_lit*2]=e>>>8&255;v.pending_buf[v.d_buf+v.last_lit*2+1]=e&255;v.pending_buf[v.l_buf+v.last_lit]=d&255;v.last_lit++;e===0?v.dyn_ltree[d*2]++:(v.matches++,e--,v.dyn_ltree[(qk[d]+256+1)*2]++,v.dyn_dtree[(e<256?rt[e]:rt[256+(e>>>7)])*2]++);return v.last_lit===v.lit_bufsize-1};
$e=function(v,e){v.msg=KU[e];return e};
ja=function(v){for(var e=v.length;--e>=0;)v[e]=0};
s$=function(v){var e=v.state,d=e.pending;d>v.avail_out&&(d=v.avail_out);d!==0&&(yp.arraySet(v.output,e.pending_buf,e.pending_out,d,v.next_out),v.next_out+=d,e.pending_out+=d,v.total_out+=d,v.avail_out-=d,e.pending-=d,e.pending===0&&(e.pending_out=0))};
LU=function(v,e){var d=v.block_start>=0?v.block_start:-1,E=v.strstart-v.block_start,T=0;if(v.level>0){v.strm.data_type===2&&(v.strm.data_type=wvM(v));Ak$(v,v.l_desc);Ak$(v,v.d_desc);ZoM(v,v.dyn_ltree,v.l_desc.max_code);ZoM(v,v.dyn_dtree,v.d_desc.max_code);Ak$(v,v.bl_desc);for(T=18;T>=3&&v.bl_tree[Fxt[T]*2+1]===0;T--);v.opt_len+=3*(T+1)+5+5+4;var S=v.opt_len+3+7>>>3;var O=v.static_len+3+7>>>3;O<=S&&(S=O)}else S=O=E+5;if(E+4<=S&&d!==-1)Ye(v,e?1:0,3),PX0(v,d,E);else if(v.strategy===4||O===S)Ye(v,2+(e?
1:0),3),Ho0(v,Nk,ke);else{Ye(v,4+(e?1:0),3);d=v.l_desc.max_code+1;E=v.d_desc.max_code+1;T+=1;Ye(v,d-257,5);Ye(v,E-1,5);Ye(v,T-4,4);for(S=0;S<T;S++)Ye(v,v.bl_tree[Fxt[S]*2+1],3);ckj(v,v.dyn_ltree,d-1);ckj(v,v.dyn_dtree,E-1);Ho0(v,v.dyn_ltree,v.dyn_dtree)}fps(v);e&&RXH(v);v.block_start=v.strstart;s$(v.strm)};
Vp=function(v,e){v.pending_buf[v.pending++]=e};
oM=function(v,e){v.pending_buf[v.pending++]=e>>>8&255;v.pending_buf[v.pending++]=e&255};
Qb0=function(v,e){var d=v.max_chain_length,E=v.strstart,T=v.prev_length,S=v.nice_match,O=v.strstart>v.w_size-262?v.strstart-(v.w_size-262):0,b=v.window,Y=v.w_mask,q=v.prev,r=v.strstart+258,h=b[E+T-1],K=b[E+T];v.prev_length>=v.good_match&&(d>>=2);S>v.lookahead&&(S=v.lookahead);do{var k=e;if(b[k+T]===K&&b[k+T-1]===h&&b[k]===b[E]&&b[++k]===b[E+1]){E+=2;for(k++;b[++E]===b[++k]&&b[++E]===b[++k]&&b[++E]===b[++k]&&b[++E]===b[++k]&&b[++E]===b[++k]&&b[++E]===b[++k]&&b[++E]===b[++k]&&b[++E]===b[++k]&&E<r;);
k=258-(r-E);E=r-258;if(k>T){v.match_start=e;T=k;if(k>=S)break;h=b[E+T-1];K=b[E+T]}}}while((e=q[e&Y])>O&&--d!==0);return T<=v.lookahead?T:v.lookahead};
Gd=function(v){var e=v.w_size,d;do{var E=v.window_size-v.lookahead-v.strstart;if(v.strstart>=e+(e-262)){yp.arraySet(v.window,v.window,e,e,0);v.match_start-=e;v.strstart-=e;v.block_start-=e;var T=d=v.hash_size;do{var S=v.head[--T];v.head[T]=S>=e?S-e:0}while(--d);T=d=e;do S=v.prev[--T],v.prev[T]=S>=e?S-e:0;while(--d);E+=e}if(v.strm.avail_in===0)break;T=v.strm;d=v.window;S=v.strstart+v.lookahead;var O=T.avail_in;O>E&&(O=E);O===0?d=0:(T.avail_in-=O,yp.arraySet(d,T.input,T.next_in,O,S),T.state.wrap===
1?T.adler=gE0(T.adler,d,O,S):T.state.wrap===2&&(T.adler=Jo(T.adler,d,O,S)),T.next_in+=O,T.total_in+=O,d=O);v.lookahead+=d;if(v.lookahead+v.insert>=3)for(E=v.strstart-v.insert,v.ins_h=v.window[E],v.ins_h=(v.ins_h<<v.hash_shift^v.window[E+1])&v.hash_mask;v.insert&&!(v.ins_h=(v.ins_h<<v.hash_shift^v.window[E+3-1])&v.hash_mask,v.prev[E&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=E,E++,v.insert--,v.lookahead+v.insert<3););}while(v.lookahead<262&&v.strm.avail_in!==0)};
uDL=function(v,e){for(var d;;){if(v.lookahead<262){Gd(v);if(v.lookahead<262&&e===0)return 1;if(v.lookahead===0)break}d=0;v.lookahead>=3&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,d=v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart);d!==0&&v.strstart-d<=v.w_size-262&&(v.match_length=Qb0(v,d));if(v.match_length>=3)if(d=ho(v,v.strstart-v.match_start,v.match_length-3),v.lookahead-=v.match_length,v.match_length<=v.max_lazy_match&&v.lookahead>=3){v.match_length--;
do v.strstart++,v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart;while(--v.match_length!==0);v.strstart++}else v.strstart+=v.match_length,v.match_length=0,v.ins_h=v.window[v.strstart],v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+1])&v.hash_mask;else d=ho(v,0,v.window[v.strstart]),v.lookahead--,v.strstart++;if(d&&(LU(v,!1),v.strm.avail_out===0))return 1}v.insert=v.strstart<2?v.strstart:2;return e===4?(LU(v,
!0),v.strm.avail_out===0?3:4):v.last_lit&&(LU(v,!1),v.strm.avail_out===0)?1:2};
Mk=function(v,e){for(var d,E;;){if(v.lookahead<262){Gd(v);if(v.lookahead<262&&e===0)return 1;if(v.lookahead===0)break}d=0;v.lookahead>=3&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,d=v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart);v.prev_length=v.match_length;v.prev_match=v.match_start;v.match_length=2;d!==0&&v.prev_length<v.max_lazy_match&&v.strstart-d<=v.w_size-262&&(v.match_length=Qb0(v,d),v.match_length<=5&&(v.strategy===1||v.match_length===3&&
v.strstart-v.match_start>4096)&&(v.match_length=2));if(v.prev_length>=3&&v.match_length<=v.prev_length){E=v.strstart+v.lookahead-3;d=ho(v,v.strstart-1-v.prev_match,v.prev_length-3);v.lookahead-=v.prev_length-1;v.prev_length-=2;do++v.strstart<=E&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart);while(--v.prev_length!==0);v.match_available=0;v.match_length=2;v.strstart++;if(d&&(LU(v,!1),v.strm.avail_out===0))return 1}else if(v.match_available){if((d=
ho(v,0,v.window[v.strstart-1]))&&LU(v,!1),v.strstart++,v.lookahead--,v.strm.avail_out===0)return 1}else v.match_available=1,v.strstart++,v.lookahead--}v.match_available&&(ho(v,0,v.window[v.strstart-1]),v.match_available=0);v.insert=v.strstart<2?v.strstart:2;return e===4?(LU(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(LU(v,!1),v.strm.avail_out===0)?1:2};
nE0=function(v,e){for(var d,E,T,S=v.window;;){if(v.lookahead<=258){Gd(v);if(v.lookahead<=258&&e===0)return 1;if(v.lookahead===0)break}v.match_length=0;if(v.lookahead>=3&&v.strstart>0&&(E=v.strstart-1,d=S[E],d===S[++E]&&d===S[++E]&&d===S[++E])){for(T=v.strstart+258;d===S[++E]&&d===S[++E]&&d===S[++E]&&d===S[++E]&&d===S[++E]&&d===S[++E]&&d===S[++E]&&d===S[++E]&&E<T;);v.match_length=258-(T-E);v.match_length>v.lookahead&&(v.match_length=v.lookahead)}v.match_length>=3?(d=ho(v,1,v.match_length-3),v.lookahead-=
v.match_length,v.strstart+=v.match_length,v.match_length=0):(d=ho(v,0,v.window[v.strstart]),v.lookahead--,v.strstart++);if(d&&(LU(v,!1),v.strm.avail_out===0))return 1}v.insert=0;return e===4?(LU(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(LU(v,!1),v.strm.avail_out===0)?1:2};
Dd0=function(v,e){for(var d;;){if(v.lookahead===0&&(Gd(v),v.lookahead===0)){if(e===0)return 1;break}v.match_length=0;d=ho(v,0,v.window[v.strstart]);v.lookahead--;v.strstart++;if(d&&(LU(v,!1),v.strm.avail_out===0))return 1}v.insert=0;return e===4?(LU(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(LU(v,!1),v.strm.avail_out===0)?1:2};
to=function(v,e,d,E,T){this.good_length=v;this.max_lazy=e;this.nice_length=d;this.max_chain=E;this.func=T};
UdU=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 yp.Buf16(1146);this.dyn_dtree=new yp.Buf16(122);this.bl_tree=new yp.Buf16(78);ja(this.dyn_ltree);ja(this.dyn_dtree);ja(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new yp.Buf16(16);this.heap=new yp.Buf16(573);ja(this.heap);this.heap_max=this.heap_len=0;this.depth=new yp.Buf16(573);ja(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};
pv7=function(v,e){if(!v||!v.state||e>5||e<0)return v?$e(v,-2):-2;var d=v.state;if(!v.output||!v.input&&v.avail_in!==0||d.status===666&&e!==4)return $e(v,v.avail_out===0?-5:-2);d.strm=v;var E=d.last_flush;d.last_flush=e;if(d.status===42)if(d.wrap===2)v.adler=0,Vp(d,31),Vp(d,139),Vp(d,8),d.gzhead?(Vp(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),Vp(d,d.gzhead.time&255),Vp(d,d.gzhead.time>>8&255),Vp(d,d.gzhead.time>>16&255),Vp(d,d.gzhead.time>>
24&255),Vp(d,d.level===9?2:d.strategy>=2||d.level<2?4:0),Vp(d,d.gzhead.os&255),d.gzhead.extra&&d.gzhead.extra.length&&(Vp(d,d.gzhead.extra.length&255),Vp(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(v.adler=Jo(v.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=69):(Vp(d,0),Vp(d,0),Vp(d,0),Vp(d,0),Vp(d,0),Vp(d,d.level===9?2:d.strategy>=2||d.level<2?4:0),Vp(d,3),d.status=113);else{var T=8+(d.w_bits-8<<4)<<8;T|=(d.strategy>=2||d.level<2?0:d.level<6?1:d.level===6?2:3)<<6;d.strstart!==0&&(T|=
32);d.status=113;oM(d,T+(31-T%31));d.strstart!==0&&(oM(d,v.adler>>>16),oM(d,v.adler&65535));v.adler=1}if(d.status===69)if(d.gzhead.extra){for(T=d.pending;d.gzindex<(d.gzhead.extra.length&65535)&&(d.pending!==d.pending_buf_size||(d.gzhead.hcrc&&d.pending>T&&(v.adler=Jo(v.adler,d.pending_buf,d.pending-T,T)),s$(v),T=d.pending,d.pending!==d.pending_buf_size));)Vp(d,d.gzhead.extra[d.gzindex]&255),d.gzindex++;d.gzhead.hcrc&&d.pending>T&&(v.adler=Jo(v.adler,d.pending_buf,d.pending-T,T));d.gzindex===d.gzhead.extra.length&&
(d.gzindex=0,d.status=73)}else d.status=73;if(d.status===73)if(d.gzhead.name){T=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>T&&(v.adler=Jo(v.adler,d.pending_buf,d.pending-T,T)),s$(v),T=d.pending,d.pending===d.pending_buf_size)){var S=1;break}S=d.gzindex<d.gzhead.name.length?d.gzhead.name.charCodeAt(d.gzindex++)&255:0;Vp(d,S)}while(S!==0);d.gzhead.hcrc&&d.pending>T&&(v.adler=Jo(v.adler,d.pending_buf,d.pending-T,T));S===0&&(d.gzindex=0,d.status=91)}else d.status=91;if(d.status===
91)if(d.gzhead.comment){T=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>T&&(v.adler=Jo(v.adler,d.pending_buf,d.pending-T,T)),s$(v),T=d.pending,d.pending===d.pending_buf_size)){S=1;break}S=d.gzindex<d.gzhead.comment.length?d.gzhead.comment.charCodeAt(d.gzindex++)&255:0;Vp(d,S)}while(S!==0);d.gzhead.hcrc&&d.pending>T&&(v.adler=Jo(v.adler,d.pending_buf,d.pending-T,T));S===0&&(d.status=103)}else d.status=103;d.status===103&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&s$(v),
d.pending+2<=d.pending_buf_size&&(Vp(d,v.adler&255),Vp(d,v.adler>>8&255),v.adler=0,d.status=113)):d.status=113);if(d.pending!==0){if(s$(v),v.avail_out===0)return d.last_flush=-1,0}else if(v.avail_in===0&&(e<<1)-(e>4?9:0)<=(E<<1)-(E>4?9:0)&&e!==4)return $e(v,-5);if(d.status===666&&v.avail_in!==0)return $e(v,-5);if(v.avail_in!==0||d.lookahead!==0||e!==0&&d.status!==666){E=d.strategy===2?Dd0(d,e):d.strategy===3?nE0(d,e):fU[d.level].func(d,e);if(E===3||E===4)d.status=666;if(E===1||E===3)return v.avail_out===
0&&(d.last_flush=-1),0;if(E===2&&(e===1?(Ye(d,2,3),mY(d,256,Nk),d.bi_valid===16?(bR(d,d.bi_buf),d.bi_buf=0,d.bi_valid=0):d.bi_valid>=8&&(d.pending_buf[d.pending++]=d.bi_buf&255,d.bi_buf>>=8,d.bi_valid-=8)):e!==5&&(Ye(d,0,3),PX0(d,0,0),e===3&&(ja(d.head),d.lookahead===0&&(d.strstart=0,d.block_start=0,d.insert=0))),s$(v),v.avail_out===0))return d.last_flush=-1,0}if(e!==4)return 0;if(d.wrap<=0)return 1;d.wrap===2?(Vp(d,v.adler&255),Vp(d,v.adler>>8&255),Vp(d,v.adler>>16&255),Vp(d,v.adler>>24&255),Vp(d,
v.total_in&255),Vp(d,v.total_in>>8&255),Vp(d,v.total_in>>16&255),Vp(d,v.total_in>>24&255)):(oM(d,v.adler>>>16),oM(d,v.adler&65535));s$(v);d.wrap>0&&(d.wrap=-d.wrap);return d.pending!==0?0:1};
vvs=function(v){if(!(this instanceof vvs))return new vvs(v);v=this.options=yp.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},v||{});v.raw&&v.windowBits>0?v.windowBits=-v.windowBits:v.gzip&&v.windowBits>0&&v.windowBits<16&&(v.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new eit;this.strm.avail_out=0;var e=this.strm;var d=v.level,E=v.method,T=v.windowBits,S=v.memLevel,O=v.strategy;if(e){var b=1;d===-1&&(d=6);T<0?(b=0,T=-T):T>15&&
(b=2,T-=16);if(S<1||S>9||E!==8||T<8||T>15||d<0||d>9||O<0||O>4)e=$e(e,-2);else{T===8&&(T=9);var Y=new UdU;e.state=Y;Y.strm=e;Y.wrap=b;Y.gzhead=null;Y.w_bits=T;Y.w_size=1<<Y.w_bits;Y.w_mask=Y.w_size-1;Y.hash_bits=S+7;Y.hash_size=1<<Y.hash_bits;Y.hash_mask=Y.hash_size-1;Y.hash_shift=~~((Y.hash_bits+3-1)/3);Y.window=new yp.Buf8(Y.w_size*2);Y.head=new yp.Buf16(Y.hash_size);Y.prev=new yp.Buf16(Y.w_size);Y.lit_bufsize=1<<S+6;Y.pending_buf_size=Y.lit_bufsize*4;Y.pending_buf=new yp.Buf8(Y.pending_buf_size);
Y.d_buf=Y.lit_bufsize;Y.l_buf=3*Y.lit_bufsize;Y.level=d;Y.strategy=O;Y.method=E;if(e&&e.state){e.total_in=e.total_out=0;e.data_type=2;d=e.state;d.pending=0;d.pending_out=0;d.wrap<0&&(d.wrap=-d.wrap);d.status=d.wrap?42:113;e.adler=d.wrap===2?0:1;d.last_flush=0;if(!dr$){E=Array(16);for(S=O=0;S<28;S++)for(Xv$[S]=O,T=0;T<1<<CXM[S];T++)qk[O++]=S;qk[O-1]=S;for(S=O=0;S<16;S++)for(lpS[S]=O,T=0;T<1<<zXM[S];T++)rt[O++]=S;for(O>>=7;S<30;S++)for(lpS[S]=O<<7,T=0;T<1<<zXM[S]-7;T++)rt[256+O++]=S;for(T=0;T<=15;T++)E[T]=
0;for(T=0;T<=143;)Nk[T*2+1]=8,T++,E[8]++;for(;T<=255;)Nk[T*2+1]=9,T++,E[9]++;for(;T<=279;)Nk[T*2+1]=7,T++,E[7]++;for(;T<=287;)Nk[T*2+1]=8,T++,E[8]++;tUM(Nk,287,E);for(T=0;T<30;T++)ke[T*2+1]=5,ke[T*2]=MU7(T,5);EvU=new JkU(Nk,CXM,257,286,15);TiS=new JkU(ke,zXM,0,30,15);SgS=new JkU([],WI$,0,19,7);dr$=!0}d.l_desc=new Go$(d.dyn_ltree,EvU);d.d_desc=new Go$(d.dyn_dtree,TiS);d.bl_desc=new Go$(d.bl_tree,SgS);d.bi_buf=0;d.bi_valid=0;fps(d);d=0}else d=$e(e,-2);d===0&&(e=e.state,e.window_size=2*e.w_size,ja(e.head),
e.max_lazy_match=fU[e.level].max_lazy,e.good_match=fU[e.level].good_length,e.nice_match=fU[e.level].nice_length,e.max_chain_length=fU[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0);e=d}}else e=-2;if(e!==0)throw Error(KU[e]);v.header&&(e=this.strm)&&e.state&&e.state.wrap===2&&(e.state.gzhead=v.header);if(v.dictionary){var q;typeof v.dictionary==="string"?q=aoW(v.dictionary):iqt.call(v.dictionary)==="[object ArrayBuffer]"?
q=new Uint8Array(v.dictionary):q=v.dictionary;v=this.strm;S=q;O=S.length;if(v&&v.state)if(q=v.state,e=q.wrap,e===2||e===1&&q.status!==42||q.lookahead)e=-2;else{e===1&&(v.adler=gE0(v.adler,S,O,0));q.wrap=0;O>=q.w_size&&(e===0&&(ja(q.head),q.strstart=0,q.block_start=0,q.insert=0),d=new yp.Buf8(q.w_size),yp.arraySet(d,S,O-q.w_size,q.w_size,0),S=d,O=q.w_size);d=v.avail_in;E=v.next_in;T=v.input;v.avail_in=O;v.next_in=0;v.input=S;for(Gd(q);q.lookahead>=3;){S=q.strstart;O=q.lookahead-2;do q.ins_h=(q.ins_h<<
q.hash_shift^q.window[S+3-1])&q.hash_mask,q.prev[S&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=S,S++;while(--O);q.strstart=S;q.lookahead=2;Gd(q)}q.strstart+=q.lookahead;q.block_start=q.strstart;q.insert=q.lookahead;q.lookahead=0;q.match_length=q.prev_length=2;q.match_available=0;v.next_in=E;v.input=T;v.avail_in=d;q.wrap=e;e=0}else e=-2;if(e!==0)throw Error(KU[e]);this._dict_set=!0}};
OqL=function(v,e){e=e||{};e.gzip=!0;e=new vvs(e);e.push(v,!0);if(e.err)throw e.msg||KU[e.err];return e.result};
bqW=function(v,e){var d=IoO();d&&d.publish.call(d,v.toString(),v,e)};
rGS=function(v,e,d){var E=IoO();if(!E)return 0;var T=E.subscribe(v.toString(),function(S,O){var b=_.AE("ytPubsub2Pubsub2SkipSubKey");b&&b==T||(b=function(){if(Ygj[T])try{if(O&&v instanceof mrj&&v!=S)try{var Y=v.dataClass,q=O;if(!q.args||!q.version)throw Error("Yc");try{if(!Y.version_){var r=new Y;Y.version_=r.version}var h=Y.version_}catch(K){}if(!h||q.version!=h)throw Error("Zc");try{O=Reflect.construct(Y,_.Zt(q.args))}catch(K){throw K.message="yt.pubsub2.Data.deserialize(): "+K.message,K;}}catch(K){throw K.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+v.toString()+": "+K.message,K;}e.call(d||window,O)}catch(K){_.lg(K)}},yGU[v.toString()]?_.AE("yt.scheduler.instance")?_.RM.addLowPriorityJob(b):_.IH(b,0):b())});
Ygj[T]=!0;qg0[v.toString()]||(qg0[v.toString()]=[]);qg0[v.toString()].push(T);return T};
jBs=function(){var v=hiH,e=rGS(KIt,function(d){v.apply(void 0,arguments);$r$(e)});
return e};
$r$=function(v){var e=IoO();e&&(typeof v==="number"&&(v=[v]),_.wZ(v,function(d){e.unsubscribeByKey(d);delete Ygj[d]}))};
IoO=function(){return _.AE("ytPubsub2Pubsub2Instance")};
sBL=function(v,e,d){d=d===void 0?{sampleRate:.1}:d;Math.random()<Math.min(.02,d.sampleRate/100)&&bqW("meta_logging_csi_event",{timerName:v,timelineData:e})};
_.Ni0=function(v){return v?(v=v.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.u6(v):null:null};
_.P8=function(v){return v?(v=v.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.km(v):null:null};
LIU=function(){kVM||(kVM=_.P8(_.Bb("WORKER_SERIALIZATION_URL")));return kVM||void 0};
_.ovt=function(){var v=LIU();Vw$||v===void 0||(Vw$=new Worker(_.LY(v),void 0));return Vw$};
_.JGL=function(){return typeof Worker==="function"&&LIU()?!0:!1};
_.fos=function(){if(_.JGL()&&!GV7){var v=function(d){d=d.data;if(d.op==="gzippedGelBatch"){var E=MwM.get(d.key);E&&(tw$(d.gzippedBatch,E.latencyPayload,E.url,E.options,E.sendFn),MwM.delete(d.key))}},e=_.ovt();
e&&(e.addEventListener("message",v),e.onerror=function(){MwM.clear()},GV7=!0)}};
ziU=function(v,e,d,E,T){T=T===void 0?!1:T;var S={startTime:(0,_.E$)(),ticks:{},infos:{}};if(xe)try{var O=RiW(e);if(O!=null&&(O>Phj||O<xrt))E(v,d);else{if(_.N("gzip_gel_with_worker")&&(_.N("initial_gzip_use_main_thread")&&!BiH||!_.N("initial_gzip_use_main_thread"))){GV7||_.fos();var b=_.ovt();if(b&&!T){MwM.set(Cht,{latencyPayload:S,url:v,options:d,sendFn:E});b.postMessage({op:"gelBatchToGzip",serializedBatch:e,key:Cht});Cht++;return}}var Y=OqL(XgM(e));tw$(Y,S,v,d,E)}}catch(q){_.ZV(q),E(v,d)}else E(v,
d)};
tw$=function(v,e,d,E,T){BiH=!1;var S=(0,_.E$)();e.ticks.gelc=S;B8++;_.N("disable_compression_due_to_performance_degredation")&&S-e.startTime>=loj&&(HqM++,_.N("abandon_compression_after_N_slow_zips")?B8===_.Wi("compression_disable_point")&&HqM>AGM&&(xe=!1):xe=!1);Zq0(e);E.headers||(E.headers={});E.headers["Content-Encoding"]="gzip";E.postBody=v;E.postParams=void 0;T(d,E)};
cG$=function(v){var e=e===void 0?!1:e;var d=d===void 0?!1:d;var E=(0,_.E$)(),T={startTime:E,ticks:{},infos:{}},S=e?_.AE("yt.logging.gzipForFetch",!1):!0;if(xe&&S){if(!v.body)return v;try{var O=d?v.body:typeof v.body==="string"?v.body:JSON.stringify(v.body);S=O;if(!d&&typeof O==="string"){var b=RiW(O);if(b!=null&&(b>Phj||b<xrt))return v;d=e?{level:1}:void 0;S=OqL(XgM(O),d);var Y=(0,_.E$)();T.ticks.gelc=Y;if(e){B8++;if((_.N("disable_compression_due_to_performance_degredation")||_.N("disable_compression_due_to_performance_degradation_lr"))&&
Y-E>=loj)if(HqM++,_.N("abandon_compression_after_N_slow_zips")||_.N("abandon_compression_after_N_slow_zips_lr")){e=HqM/B8;var q=AGM/_.Wi("compression_disable_point");B8>0&&B8%_.Wi("compression_disable_point")===0&&e>=q&&(xe=!1)}else xe=!1;Zq0(T)}}v.headers=Object.assign({},{"Content-Encoding":"gzip"},v.headers||{});v.body=S;return v}catch(r){return _.ZV(r),v}}else return v};
RiW=function(v){try{return(new Blob(v.split(""))).size}catch(e){return _.ZV(e),null}};
Zq0=function(v){_.N("gel_compression_csi_killswitch")||!_.N("log_gel_compression_latency")&&!_.N("log_gel_compression_latency_lr")||sBL("gel_compression",v,{sampleRate:.1})};
wg$=function(){this.blockSize=-1};
CU=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var v=1;v<this.blockSize;++v)this.pad_[v]=0;this.total_=this.inbuf_=0;this.reset()};
QBH=function(v){v=Object.assign({},v);delete v.Authorization;var e=_.FIt();if(e){var d=new CU;d.update(_.Bb("INNERTUBE_API_KEY"));d.update(e);v.hash=_.GQ(d.digest(),3)}return v};
zd=function(){gv0||(gv0=new _.Xn("yt.innertube"));return gv0};
ueU=function(v,e,d,E){if(E)return null;E=zd().get("nextId",!0)||1;var T=zd().get("requests",!0)||{};T[E]={method:v,request:e,authState:QBH(d),requestTime:Math.round((0,_.E$)())};zd().set("nextId",E+1,86400,!0);zd().set("requests",T,86400,!0);return E};
nvS=function(v){var e=zd().get("requests",!0)||{};delete e[v];zd().set("requests",e,86400,!0)};
Ur0=function(v){var e=zd().get("requests",!0);if(e){for(var d in e){var E=e[d];if(!(Math.round((0,_.E$)())-E.requestTime<6E4)){var T=E.authState,S=QBH(_.VU0(!1));_.f0.equals(T,S)&&(T=E.request,"requestTimeMs"in T&&(T.requestTimeMs=Math.round((0,_.E$)())),Dr3(v,E.method,T,{}));delete e[d]}}zd().set("requests",e,86400,!0)}};
pgU=function(v){var e;return(v=v==null?void 0:(e=v.error)==null?void 0:e.code)&&v>=400&&v<=599?!1:!0};
vJU=function(v){var e;v=v==null?void 0:(e=v.error)==null?void 0:e.code;return!(v!==400&&v!==415)};
dCU=function(){if(e40)return e40();var v={};e40=dt("LogsDatabaseV2",{objectStores:(v.LogsRequestsStore={addedAtVersion:2},v),shared:!1,upgrade:function(e,d,E){d(2)&&lR(e,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});d(3);d(5)&&(E=E.objectStore("LogsRequestsStore"),E.JSC$10661_wrapped.indexNames.contains("newRequest")&&E.JSC$10661_wrapped.deleteIndex("newRequest"),H8(E,"newRequestV2",["status","interface","timestamp"]));d(7)&&e.JSC$10646_wrapped.objectStoreNames.contains("sapisid")&&e.JSC$10646_wrapped.deleteObjectStore("sapisid");
d(9)&&e.JSC$10646_wrapped.objectStoreNames.contains("SWHealthLog")&&e.JSC$10646_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return e40()};
Ao=function(v){return _.Q8(dCU(),v)};
TCH=function(v,e){var d,E,T,S;return _.I(function(O){if(O.nextAddress==1)return d={startTime:(0,_.E$)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},O.yield(Ao(e),2);if(O.nextAddress!=3)return E=O.yieldResult,T=Object.assign({},v,{options:JSON.parse(JSON.stringify(v.options)),interface:_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),O.yield(E.put("LogsRequestsStore",T),3);S=O.yieldResult;d.ticks.tc=(0,_.E$)();EJ$(d);return O.return(S)})};
S_3=function(v,e){var d,E,T,S,O,b,Y,q,r;return _.I(function(h){if(h.nextAddress==1)return d={startTime:(0,_.E$)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},h.yield(Ao(e),2);if(h.nextAddress!=3)return E=h.yieldResult,T=_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME",0),S=[v,T,0],O=[v,T,(0,_.E$)()],b=IDBKeyRange.bound(S,O),Y="prev",_.N("use_fifo_for_networkless")&&(Y="next"),q=void 0,r=v==="NEW"?"readwrite":"readonly",_.N("use_readonly_for_get_most_recent_by_status_killswitch")&&(r="readwrite"),
h.yield(_.gk(E,["LogsRequestsStore"],{mode:r,enableRetries:!0},function(K){return _.Td(K.objectStore("LogsRequestsStore").index("newRequestV2"),{query:b,direction:Y},function(k){k.getValue()&&(q=k.getValue(),v==="NEW"&&(q.status="QUEUED",k.update(q)))})}),3);
d.ticks.tc=(0,_.E$)();EJ$(d);return h.return(q)})};
W5t=function(v,e){var d;return _.I(function(E){if(E.nextAddress==1)return E.yield(Ao(e),2);d=E.yieldResult;return E.return(_.gk(d,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(T){var S=T.objectStore("LogsRequestsStore");return S.get(v).then(function(O){if(O)return O.status="QUEUED",S.put(O).then(function(){return O})})}))})};
aI3=function(v,e,d,E){d=d===void 0?!0:d;var T;return _.I(function(S){if(S.nextAddress==1)return S.yield(Ao(e),2);T=S.yieldResult;return S.return(_.gk(T,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(O){var b=O.objectStore("LogsRequestsStore");return b.get(v).then(function(Y){return Y?(Y.status="NEW",d&&(Y.sendCount+=1),E!==void 0&&(Y.options.compress=E),b.put(Y).then(function(){return Y})):lY.resolve(void 0)})}))})};
i1s=function(v,e){var d;return _.I(function(E){if(E.nextAddress==1)return E.yield(Ao(e),2);d=E.yieldResult;return E.return(d.delete("LogsRequestsStore",v))})};
O1s=function(v){var e,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(Ao(v),2);e=E.yieldResult;d=(0,_.E$)()-2592E6;return E.yield(_.gk(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(T){return nw(T.objectStore("LogsRequestsStore"),{},function(S){if(S.getValue().timestamp<=d)return S.delete().then(function(){return S.continue()})})}),0)})};
IIO=function(){_.I(function(v){return v.yield(pKH("LogsDatabaseV2"),0)})};
EJ$=function(v){_.N("nwl_csi_killswitch")||sBL("networkless_performance",v,{sampleRate:1})};
_.Y_H=function(v){return _.Q8(b1O(),v)};
mC7=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return E.yield(_.Y_H(v),2);e=E.yieldResult;d=(0,_.E$)()-2592E6;return E.yield(_.gk(e,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(T){return nw(T.objectStore("SWHealthLog"),{},function(S){if(S.getValue().timestamp<=d)return S.delete().then(function(){return S.continue()})})}),0)})};
yg0=function(v){var e;return _.I(function(d){if(d.nextAddress==1)return d.yield(_.Y_H(v),2);e=d.yieldResult;return d.yield(e.clear("SWHealthLog"),0)})};
_.ZF=function(v,e,d,E,T,S,O){T=T===void 0?"":T;S=S===void 0?!1:S;O=O===void 0?!1:O;if(v)if(d&&!Bi("cobalt"))_.ZV(new _.kL("Legacy referrer-scrubbed ping detected")),v&&q_S(v,void 0,{scrubReferrer:!0});else if(T)AUS(v,e,"POST",T,E);else if(_.Bb("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||E||O)AUS(v,e,"GET","",E,void 0,S,O);else{b:{try{c:{var b=new rgW({url:v});if(b.urlParamValues_.dsh==="1")var Y=null;else{var q=b.urlParamValues_.ae;if(q==="1"){var r=b.urlParamValues_.adurl;if(r)try{Y={version:3,directUrl:decodeURIComponent(r),
asyncUrl:ocW(b.JSC$9467_url_,"act=1","ri=1",h4j(b))};break c}catch(J){}}Y=q==="2"?{version:4,directUrl:ocW(b.JSC$9467_url_,"dct=1","suid="+b.suid_,""),asyncUrl:ocW(b.JSC$9467_url_,"act=1","ri=1","suid="+b.suid_)}:null}}if(Y){var h=_.mq(v);var K=!(!h||!h.endsWith("/aclk")||_.lZ(v,"ri")!=="1");break b}}catch(J){}K=!1}if(K){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(v,"")){var k=!0;break b}}catch(J){}k=!1}k?(e&&e(),d=!0):d=!1}else d=!1;d||q_S(v,e)}};
q_S=function(v,e,d){d=d===void 0?{}:d;var E=new Image,T=""+K5W++;$Cs[T]=E;E.onload=E.onerror=function(){e&&$Cs[T]&&e();delete $Cs[T]};
d.scrubReferrer&&(E.referrerPolicy="no-referrer");E.src=v};
c8=function(v,e){j57(v,e==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
s5W=function(v){var e;return((e=document.featurePolicy)==null?0:e.allowedFeatures().includes("attribution-reporting"))?v+"&nis=6":v+"&nis=5"};
NCt=function(v){if(!v)return!1;try{var e;if(((e=_.Fy(v))==null?void 0:e.asm)==="4")return!0}catch(d){_.lg(d)}return!1};
j57=function(v,e){e?(v=s5W(v),_.ZF(v,void 0,void 0,void 0,"",!0,!0)):_.ZF(v)};
L50=function(){kj$||(kj$=new _.Xn("yt.offline"));return kj$};
V2L=function(v){if(_.N("offline_error_handling")){var e=L50().get("errors",!0)||{};e[v.message]={name:v.name,stack:v.stack};v.level&&(e[v.message].level=v.level);L50().set("errors",e,2592E3,!0)}};
Jg0=function(v,e,d,E){E=E===void 0?!1:E;e=_.N("web_fp_via_jspb")?Object.assign({},e):e;_.N("use_cfr_monitor")&&oJW(v,e);if(_.N("use_request_time_ms_header"))e.headers&&p4(v)&&(e.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.E$)())));else{var T;if((T=e.postParams)==null?0:T.requestTimeMs)e.postParams.requestTimeMs=Math.round((0,_.E$)())}d&&Object.keys(e).length===0?_.ZF(v):e.compress?e.postBody?(typeof e.postBody!=="string"&&(e.postBody=JSON.stringify(e.postBody)),ziU(v,e.postBody,
e,_.y8,E)):ziU(v,JSON.stringify(e.postParams),e,FNL,E):_.y8(v,e)};
Gjt=function(v,e){_.N("use_event_time_ms_header")&&p4(v)&&(e.headers||(e.headers={}),e.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.E$)())));return e};
_.t2M=function(){M20||(M20=new _.wt({logOfflineErrors:!0,enablePolling:!0}));return M20};
oJW=function(v,e){var d=e.onError?e.onError:function(){};
e.onError=function(T,S){Fn().requestComplete(v,!1);d(T,S)};
var E=e.onSuccess?e.onSuccess:function(){};
e.onSuccess=function(T,S){Fn().requestComplete(v,!0);E(T,S)}};
_.fIt=function(){return _.DV(document.location.toString())!=="www.youtube-nocookie.com"};
_.xCL=function(){return _.AE("ytNetworklessLoggingInitializationOptions")?_.R47.isNwlInitialized:_.PkU};
BCt=function(v,e){if(_.N("polymer_on_demand_shady_dom")){var d;var E=(d=v.__shady_native_firstElementChild)!=null?d:v.firstElementChild}else E=v.firstElementChild;for(;E;){if(v=e(E)?E:BCt(E,e))return v;E=E.nextElementSibling}return null};
XzM=function(){var v=document;if("visibilityState"in v)return v.visibilityState;var e=CkL+"VisibilityState";if(e in v)return v[e]};
_.z40=function(v,e){var d;Qp(v,function(E){d=e[E];return!!d});
return d};
_.nU=function(v){var e=lIO(v);e?e.focus(void 0):_.gt(v)};
lIO=function(v){return(v=BCt(v,function(e){return _.DF(e)?H1U(e)&&!!e.offsetParent:!1}))?v:null};
_.gt=function(v,e){v.hasAttribute("tabindex")||v.setAttribute("tabindex","-1");v.focus(e)};
AgU=function(v,e,d,E){E=E===void 0?{}:E;v.addEventListener&&(e!="mouseenter"||"onmouseenter"in document?e!="mouseleave"||"onmouseenter"in document?e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"):e="mouseout":e="mouseover");return _.f0.findKey(U$,function(T){var S=typeof T[4]==="boolean"&&T[4]==!!E,O=_.Qj(T[4])&&_.Qj(E)&&_.f0.equals(T[4],E);return!!T.length&&T[0]==v&&T[1]==e&&T[2]==d&&(S||O)})};
_.eh=function(v,e,d,E){E=E===void 0?{}:E;if(!v||!v.addEventListener&&!v.attachEvent)return"";var T=AgU(v,e,d,E);if(T)return T;T=++Z1j.count+"";var S=!(e!="mouseenter"&&e!="mouseleave"||!v.addEventListener||"onmouseenter"in document);var O=S?function(b){b=new pU(b);if(!_.Xv(b.relatedTarget,function(Y){return Y==v},!0))return b.currentTarget=v,b.type=e,d.call(v,b)}:function(b){b=new pU(b);
b.currentTarget=v;return d.call(v,b)};
O=_.Hb(O);v.addEventListener?(e=="mouseenter"&&S?e="mouseover":e=="mouseleave"&&S?e="mouseout":e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"),cgM()||typeof E==="boolean"?v.addEventListener(e,O,E):v.addEventListener(e,O,!!E.capture)):v.attachEvent("on"+e,O);U$[T]=[v,e,d,O,E];return T};
_.F5s=function(v,e,d){var E=E===void 0?{}:E;var T=_.eh(v,e,function(){_.wzH(T);d.apply(v,arguments)},E)};
_.wzH=function(v){v&&(typeof v=="string"&&(v=[v]),_.wZ(v,function(e){if(e in U$){var d=U$[e],E=d[0],T=d[1],S=d[3];d=d[4];E.removeEventListener?cgM()||typeof d==="boolean"?E.removeEventListener(T,S,d):E.removeEventListener(T,S,!!d.capture):E.detachEvent&&E.detachEvent("on"+T,S);delete U$[e]}}))};
db=function(v){this.callback_=v;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(v=0;v<4;v++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.eh(window,"mousemove",(0,_.LX)(this.onMouseMove_,this));this.timerId_=_.bY((0,_.LX)(this.checkPosition_,this),25)};
gJt=function(){var v={};var e=v.preferMobileEvents===void 0?!1:v.preferMobileEvents;v=v.enableScrollEventListener===void 0?!0:v.enableScrollEventListener;if(_.AE("_lact",window)==null){var d=parseInt(_.Bb("LACT"),10);d=isFinite(d)?Date.now()-Math.max(d,0):-1;_.pw("_lact",d,window);_.pw("_fact",d,window);d==-1&&_.EN();_.eh(document,"keydown",_.EN);_.eh(document,"keyup",_.EN);_.eh(document,"mousedown",_.EN);_.eh(document,"mouseup",_.EN);e?_.eh(window,"touchmove",function(){Q5H("touchmove",200)},{passive:!0}):
(_.eh(window,"resize",function(){Q5H("resize",200)}),v&&_.eh(window,"scroll",function(){Q5H("scroll",200)}));
new db(function(){Q5H("mouse",100)});
_.eh(document,"touchstart",_.EN,{passive:!0});_.eh(document,"touchend",_.EN,{passive:!0})}};
Q5H=function(v,e){u23[v]||(u23[v]=!0,_.RM.addLowPriorityJob(function(){_.EN();u23[v]=!1},e))};
_.EN=function(){_.AE("_lact",window)==null&&gJt();var v=Date.now();_.pw("_lact",v,window);_.AE("_fact",window)==-1&&_.pw("_fact",v,window);(v=_.AE("ytglobal.ytUtilActivityCallback_"))&&v()};
_.TN=function(){var v=_.AE("_lact",window);return v==null?-1:Math.max(Date.now()-v,0)};
_.il=function(v,e,d){var E=_.Sh();if(E&&e){var T=E.subscribe(v,function(){var S=arguments,O=function(){WV[T]&&e.apply&&typeof e.apply=="function"&&e.apply(d||window,S)};
try{_.nJs[v]?O():_.IH(O,0)}catch(b){_.lg(b)}},d);
WV[T]=!0;aI[v]||(aI[v]=[]);aI[v].push(T);return T}return 0};
_.DCM=function(v){var e=_.Sh();e&&(typeof v==="number"?v=[v]:typeof v==="string"&&(v=[parseInt(v,10)]),_.wZ(v,function(d){e.unsubscribeByKey(d);delete WV[d]}))};
_.UCt=function(v,e){var d=_.Sh();d&&d.publish.apply(d,arguments)};
_.vj0=function(v){var e=_.Sh();if(e)if(e.clear(v),v)pzM(v);else for(var d in aI)pzM(d)};
_.Sh=function(){return _.TO.ytPubsubPubsubInstance};
pzM=function(v){aI[v]&&(v=aI[v],_.wZ(v,function(e){WV[e]&&delete WV[e]}),v.length=0)};
egt=function(){var v,e;return"h5vcc"in ON&&((v=ON.h5vcc.traceEvent)==null?0:v.traceBegin)&&((e=ON.h5vcc.traceEvent)==null?0:e.traceEnd)?1:"performance"in ON&&ON.performance.mark&&ON.performance.measure?2:0};
deL=function(v){var e=egt();switch(e){case 1:ON.h5vcc.traceEvent.traceBegin("YTLR",v);break;case 2:ON.performance.mark(v+"-start");break;case 0:break;default:_.Z0(e,"unknown trace type")}};
Ej3=function(v){var e=egt();switch(e){case 1:ON.h5vcc.traceEvent.traceEnd("YTLR",v);break;case 2:e=v+"-start";var d=v+"-end";ON.performance.mark(d);ON.performance.measure(v,e,d);break;case 0:break;default:_.Z0(e,"unknown trace type")}};
Tq3=function(v){var e,d;(d=(e=window).onerror)==null||d.call(e,v.message,"",0,0,v)};
SGt=function(v){if(_.N("web_lifecycle_error_handling_killswitch"))return v();try{return v()}catch(e){Tq3(e)}};
W8H=function(v){return[v.auth===void 0?"undefined":v.auth,v.isJspb===void 0?"undefined":v.isJspb,v.cttAuthInfo===void 0?"undefined":v.cttAuthInfo,v.tier===void 0?"undefined":v.tier].join("/")};
_.L=function(v,e){if(v)return v[e.name]};
bl=function(){var v=_.AE("yt.logging.ims");v||(v=new II,_.pw("yt.logging.ims",v));return v};
qGW=function(v,e){if(v.endpoint==="log_event"){ay3(v);var d=iML(v),E=OMj(v.payload)||"",T=Iy0(E),S=200;if(T){if(T.enabled===!1&&!_.N("web_payload_policy_disabled_killswitch"))return;S=bMH(T.tier);if(S===400){YGS(v,e);return}}Yf[d]=!0;d={cttAuthInfo:d,isJspb:!1,tier:S};bl().storePayload(d,v.payload);meW(e,!1,d,y80(E))}};
hg0=function(v,e,d){if(e.endpoint==="log_event"){ay3(void 0,e);var E=iML(e,!0),T=Iy0(v),S=200;if(T){if(T.enabled===!1&&!_.N("web_payload_policy_disabled_killswitch"))return;S=bMH(T.tier);if(S===400){r8t(v,e,d);return}}Yf[E]=!0;E={cttAuthInfo:E,isJspb:!0,tier:S};bl().storePayload(E,RC(e.payload));meW(d,!0,E,y80(v))}};
meW=function(v,e,d,E){e=e===void 0?!1:e;E=E===void 0?!1:E;v&&(mH=new v);v=_.Wi("tvhtml5_logging_max_batch_ads_fork")||_.Wi("tvhtml5_logging_max_batch")||_.Wi("web_logging_max_batch")||100;var T=(0,_.E$)(),S=K80(e,d.tier),O=S.lastDebounceQueueFromLogTimeMs;E&&(S.useVideoStatsEndPoint=!0);E=0;d&&(E=bl().getSequenceCount(d));var b=function(){$eW({writeThenSend:!0},e,d.tier)};
E>=1E3?b():E>=v?jZj||(jZj=sZL(function(){b();jZj=void 0},0)):T-O>=10&&(NqU(e,d.tier),S.lastDebounceQueueFromLogTimeMs=T)};
YGS=function(v,e){if(v.endpoint==="log_event"){_.N("more_accurate_gel_parser")&&bl().storePayload({isJspb:!1},v.payload);ay3(v);var d=iML(v),E=new Map;E.set(d,[v.payload]);var T=OMj(v.payload)||"";e&&(mH=new e);return new _.yf(function(S,O){mH&&mH.isReady()?kIt(E,mH,S,O,{bypassNetworkless:!0},!0,y80(T)):S()})}};
r8t=function(v,e,d){if(e.endpoint==="log_event"){ay3(void 0,e);var E=iML(e,!0),T=new Map;T.set(E,[RC(e.payload)]);d&&(mH=new d);return new _.yf(function(S){mH&&mH.isReady()?L8S(T,mH,S,{bypassNetworkless:!0},!0,y80(v)):S()})}};
iML=function(v,e){var d="";if(v.dangerousLogToVisitorSession)d="visitorOnlyApprovedKey";else if(v.cttAuthInfo){if(e===void 0?0:e){e=v.cttAuthInfo.token;d=v.cttAuthInfo;var E=new VML;d.videoId?E.setVideoId(d.videoId):d.playlistId&&qG(E,2,oj0,yv(d.playlistId));J8j[e]=E}else e=v.cttAuthInfo,d={},e.videoId?d.videoId=e.videoId:e.playlistId&&(d.playlistId=e.playlistId),GIU[v.cttAuthInfo.token]=d;d=v.cttAuthInfo.token}return d};
$eW=function(v,e,d){v=v===void 0?{}:v;e=e===void 0?!1:e;new _.yf(function(E,T){var S=K80(e,d),O=S.useVideoStatsEndPoint;S.useVideoStatsEndPoint=!1;MMH(S.queueTimer);MMH(S.queueMaxTimer);S.queueMaxTimer=0;mH&&mH.isReady()?d===void 0&&_.N("enable_web_tiered_gel")?tMM(E,T,v,e,300,O):tMM(E,T,v,e,d,O):(NqU(e,d),E())})};
tMM=function(v,e,d,E,T,S){var O=mH;d=d===void 0?{}:d;E=E===void 0?!1:E;T=T===void 0?200:T;S=S===void 0?!1:S;var b=new Map,Y=new Map,q={isJspb:E,cttAuthInfo:void 0,tier:T},r={isJspb:E,cttAuthInfo:void 0};if(E){e=_.a(Object.keys(Yf));for(T=e.next();!T.done;T=e.next())T=T.value,Y=_.N("enable_web_tiered_gel")?bl().smartExtractMatchingEntries({keys:[q,r],sizeLimit:1E3}):bl().extractMatchingEntries({isJspb:!0,cttAuthInfo:T}),Y.length>0&&b.set(T,Y),(_.N("web_fp_via_jspb_and_json")&&d.writeThenSend||!_.N("web_fp_via_jspb_and_json"))&&
delete Yf[T];L8S(b,O,v,d,!1,S)}else{b=_.a(Object.keys(Yf));for(q=b.next();!q.done;q=b.next())q=q.value,r=_.N("enable_web_tiered_gel")?bl().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:q,tier:T},{isJspb:!1,cttAuthInfo:q}],sizeLimit:1E3}):bl().extractMatchingEntries({isJspb:!1,cttAuthInfo:q}),r.length>0&&Y.set(q,r),(_.N("web_fp_via_jspb_and_json")&&d.writeThenSend||!_.N("web_fp_via_jspb_and_json"))&&delete Yf[q];kIt(Y,O,v,e,d,!1,S)}};
NqU=function(v,e){v=v===void 0?!1:v;e=e===void 0?200:e;var d=function(){$eW({writeThenSend:!0},v,e)},E=K80(v,e),T=E===fyW||E===RgW?5E3:P2t;
_.N("web_gel_timeout_cap")&&!E.queueMaxTimer&&(T=sZL(function(){d()},T),E.queueMaxTimer=T);
MMH(E.queueTimer);T=_.Bb("LOGGING_BATCH_TIMEOUT",_.Wi("web_gel_debounce_ms",1E4));_.N("shorten_initial_gel_batch_timeout")&&xeH&&(T=BqH);T=sZL(function(){_.Wi("gel_min_batch_size")>0?bl().getSequenceCount({cttAuthInfo:void 0,isJspb:v,tier:e})>=C2t&&d():d()},T);
E.queueTimer=T};
kIt=function(v,e,d,E,T,S,O){T=T===void 0?{}:T;var b=Math.round((0,_.E$)()),Y=v.size,q=Xa0(O);v=_.a(v);var r=v.next();for(O={};!r.done;O={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},r=v.next()){var h=_.a(r.value);r=h.next().value;h=h.next().value;O.batchRequest=_.f0.unsafeClone({context:_.rkj(e.config_||_.Sa())});if(!_.c3(h)&&!_.N("throw_err_when_logevent_malformed_killswitch")){E();break}O.batchRequest.events=h;
(h=GIU[r])&&zgS(O.batchRequest,r,h);delete GIU[r];O.dangerousLogToVisitorSession=r==="visitorOnlyApprovedKey";lyS(O.batchRequest,b,O.dangerousLogToVisitorSession);HMt(T);O.onSuccess$jscomp$3=function(K){_.N("start_client_gcf")&&_.RM.addLowPriorityJob(function(){return _.I(function(k){return k.yield(A8W(K),0)})});
Y--;Y||d()};
O.networkFailures=0;O.onError$jscomp$5=function(K){return function(){K.networkFailures++;if(T.bypassNetworkless&&K.networkFailures===1)try{Dr3(e,q,K.batchRequest,ZMj({writeThenSend:!0},K.dangerousLogToVisitorSession,K.onSuccess$jscomp$3,K.onError$jscomp$5,S)),xeH=!1}catch(k){_.lg(k),E()}Y--;Y||d()}}(O);
try{Dr3(e,q,O.batchRequest,ZMj(T,O.dangerousLogToVisitorSession,O.onSuccess$jscomp$3,O.onError$jscomp$5,S)),xeH=!1}catch(K){_.lg(K),E()}}};
L8S=function(v,e,d,E,T,S){E=E===void 0?{}:E;var O=Math.round((0,_.E$)()),b={value:v.size},Y=new Map([].concat(_.t7(v)));Y=_.a(Y);for(var q=Y.next();!q.done;q=Y.next()){var r=_.a(q.value).next().value,h=v.get(r);q=new c80;var K=e.config_||_.Sa(),k=new rb,J=new wa0;_.L0(J,1,K.innertubeContextHostLanguage);_.L0(J,2,K.innertubeContextGeoLocation);_.aM(J,16,K.innertubeContextClientNameFieldNumber);_.L0(J,17,K.innertubeContextClientVersion);if(K.innertubeContextClientConfigInfo){var R=K.innertubeContextClientConfigInfo,
B=new O$;R.coldConfigData&&_.L0(B,1,R.coldConfigData);R.appInstallData&&_.L0(B,6,R.appInstallData);R.coldHashData&&_.L0(B,3,R.coldHashData);R.hotHashData&&B.setHotHashData(R.hotHashData);_.hr(J,62,B)}(R=_.TO.devicePixelRatio)&&R!=1&&_.iR(J,65,_.cc(R));R=Ra0();R!==""&&_.L0(J,54,R);R=P4$();if(R.length>0){B=new F8W;for(var X=0;X<R.length;X++){var Z=new hI;Z.setKey(R[X].key);qG(Z,2,QZM,yv(R[X].value));KI(B,15,hI,Z)}_.hr(k,5,B)}IpU(K,J);boM(k);Yj3(J);md0(K,J);ykH(J);_.N("start_client_gcf")&&qjM(J);_.Bb("DELEGATED_SESSION_ID")&&
!_.N("pageid_as_header_web")&&(K=new $f,_.L0(K,3,_.Bb("DELEGATED_SESSION_ID")));!_.N("fill_delegate_context_in_gel_killswitch")&&(R=_.Bb("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(B=_.W8(k,$f,3)||new $f,K=k,R=_.L0(B,18,R),_.hr(K,3,R));K=J;R=_.a(Object.entries(_.Fy(_.Bb("DEVICE",""))));for(B=R.next();!B.done;B=R.next())X=_.a(B.value),B=X.next().value,X=X.next().value,B==="cbrand"?_.L0(K,12,X):B==="cmodel"?_.L0(K,13,X):B==="cbr"?_.L0(K,87,X):B==="cbrver"?_.L0(K,88,X):B==="cos"?_.L0(K,18,
X):B==="cosver"?_.L0(K,19,X):B==="cplatform"&&_.aM(K,42,OQU(X));k.setClient(J);_.hr(q,1,k);if(J=J8j[r])a:{if(_.rf(J,jh(J,oj0,1)))k=1;else if(J.getPlaylistId())k=2;else break a;_.hr(q,4,J);J=q.getContext()||new rb;K=_.W8(J,$f,3)||new $f;R=new sN;R.setToken(r);_.aM(R,1,k);KI(K,12,sN,R);_.hr(J,3,K)}delete J8j[r];r=r==="visitorOnlyApprovedKey";gjt()||_.NG(q,2,O);!r&&(k=_.Bb("EVENT_ID"))&&(J=ujL(),K=new njt,_.L0(K,1,k),_.NG(K,2,J),_.hr(q,5,K));HMt(E);if(_.N("jspb_serialize_with_worker")&&(k=_.ovt())&&
E.writeThenSend){_.DeO.set(Uej,{client:e,resolve:d,networklessOptions:E,isIsolated:T,useVSSEndpoint:S,dangerousLogToVisitorSession:r,requestsOutstanding:b});k.postMessage({op:"gelBatchToSerialize",batchRequest:RC(q),clientEvents:h,key:Uej});Uej++;break}if(h){k=[];for(J=0;J<h.length;J++)try{k.push(new kf(h[J]))}catch(U){_.lg(new _.kL("Transport failed to deserialize "+String(h[J])))}h=k}else h=[];h=_.a(h);for(k=h.next();!k.done;k=h.next())KI(q,3,kf,k.value);h={startTime:(0,_.E$)(),ticks:{},infos:{}};
q=q.serialize();h.ticks.geljspc=(0,_.E$)();_.N("log_jspb_serialize_latency")&&sBL("gel_jspb_serialize",h,{sampleRate:.1});_.pa$(q,e,d,E,T,S,r,b)}};
_.pa$=function(v,e,d,E,T,S,O,b){E=E===void 0?{}:E;b=b===void 0?{value:0}:b;S=Xa0(S);E=ZMj(E,O,function(Y){_.N("start_client_gcf")&&_.RM.addLowPriorityJob(function(){return _.I(function(q){return q.yield(A8W(Y),0)})});
b.value--;b.value||d()},function(){b.value--;
b.value||d()},T);
E.headers["Content-Type"]="application/json+protobuf";E.postBodyFormat="JSPB";E.postBody=v;Dr3(e,S,"",E);xeH=!1};
HMt=function(v){_.N("always_send_and_write")&&(v.writeThenSend=!1)};
ZMj=function(v,e,d,E,T){v={retry:!0,onSuccess:d,onError:E,networklessOptions:v,dangerousLogToVisitorSession:e,bypassMonitoring:!!T,headers:{},postBodyFormat:"",postBody:"",compress:_.N("compress_gel")||_.N("compress_gel_lr")};gjt()&&(v.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.E$)())));return v};
lyS=function(v,e,d){gjt()||(v.requestTimeMs=String(e));_.N("unsplit_gel_payloads_in_logs")&&(v.unsplitGelPayloadsInLogs=!0);!d&&(e=_.Bb("EVENT_ID"))&&(d=ujL(),v.serializedClientEventId={serializedEventId:e,clientCounter:String(d)})};
ujL=function(){var v=_.Bb("BATCH_CLIENT_COUNTER")||0;v||(v=Math.floor(Math.random()*65535/2));v++;v>65535&&(v=1);_.xc("BATCH_CLIENT_COUNTER",v);return v};
zgS=function(v,e,d){if(d.videoId)var E="VIDEO";else if(d.playlistId)E="PLAYLIST";else return;v.credentialTransferTokenTargetId=d;v.context=v.context||{};v.context.user=v.context.user||{};v.context.user.credentialTransferTokens=[{token:e,scope:E}]};
ay3=function(v,e){var d=_.aH("il_payload_scraping")==="enable_il_payload_scraping";if(!_.AE("yt.logging.transport.enableScrapingForTest"))if(d)vzL=[],_.pw("yt.logging.transport.enableScrapingForTest",!0),_.pw("yt.logging.transport.scrapedPayloadsForTesting",vzL),_.pw("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.pw("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.pw("yt.logging.transport.scrapeClientEvent",!0);else return;d=_.AE("yt.logging.transport.scrapedPayloadsForTesting");var E=_.AE("yt.logging.transport.payloadToScrape");e&&(e=_.AE("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(e.payload)())&&d.push(e);e=_.AE("yt.logging.transport.scrapeClientEvent");if(E&&E.length>=1)for(var T=0;T<E.length;T++)if(v&&v.payload[E[T]])if(e)d.push(v.payload);else{var S=void 0;d.push(((S=v)==null?void 0:S.payload)[E[T]])}_.pw("yt.logging.transport.scrapedPayloadsForTesting",
d)};
gjt=function(){return _.N("use_request_time_ms_header")||_.N("lr_use_request_time_ms_header")};
sZL=function(v,e){return _.N("transport_use_scheduler")===!1?_.IH(v,e):_.N("logging_avoid_blocking_during_navigation")||_.N("lr_logging_avoid_blocking_during_navigation")?_.LI(_.RM,function(){if(_.e0U().currentState==="none")v();else{var d={};_.e0U().install((d.none={callback:v},d))}},e):_.LI(_.RM,v,e)};
MMH=function(v){_.N("transport_use_scheduler")?_.RM.cancelJob(v):_.YL(v)};
A8W=function(v){var e,d,E,T,S,O,b,Y,q,r;return _.I(function(h){return h.nextAddress==1?(E=(e=v)==null?void 0:(d=e.responseContext)==null?void 0:d.globalConfigGroup,T=_.L(E,dPL),O=(S=E)==null?void 0:S.hotHashData,b=_.L(E,Ezs),q=(Y=E)==null?void 0:Y.coldHashData,(r=_.dk().resolve(_.eG(Vf)))?O?T?h.yield(TBL(r,O,T),2):h.yield(TBL(r,O),2):h.jumpTo(2):h.return()):q?b?h.yield(SKU(r,q,b),0):h.yield(SKU(r,q),0):h.jumpTo(0)})};
K80=function(v,e){e=e===void 0?200:e;return v?e===300?fyW:WSU:e===300?RgW:axj};
Iy0=function(v){if(_.N("enable_web_tiered_gel")){v=ivt[v||""];var e,d,E,T=_.dk().resolve(_.eG(Vf))==null?void 0:(e=oI())==null?void 0:(d=e.loggingHotConfig)==null?void 0:(E=d.eventLoggingConfig)==null?void 0:E.payloadPolicies;if(T)for(e=0;e<T.length;e++)if(T[e].payloadNumber===v)return T[e]}};
OMj=function(v){v=Object.keys(v);v=_.a(v);for(var e=v.next();!e.done;e=v.next())if(e=e.value,ivt[e])return e};
bMH=function(v){switch(v){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}};
y80=function(v){return v==="gelDebuggingEvent"};
Xa0=function(v){return(v===void 0?0:v)&&_.N("vss_through_gel_video_stats")?"video_stats":"log_event"};
GN=function(v,e,d,E){E=E===void 0?{}:E;var T={},S=Math.round(E.timestamp||(0,_.E$)());T.eventTimeMs=S<Number.MAX_SAFE_INTEGER?S:0;T[v]=e;v=_.TN();T.context={lastActivityMs:String(E.timestamp||!isFinite(v)?-1:v)};E.sequenceGroup&&!_.N("web_gel_sequence_info_killswitch")&&(v=T.context,e=E.sequenceGroup,e={index:Ovj(e),groupKey:e},v.sequence=e,E.endOfSequence&&delete JI[E.sequenceGroup]);_.N("web_tag_automated_log_events")&&(T.context.automatedLogEventSource=E.automatedLogEventSource);(E.sendIsolatedPayload?
YGS:qGW)({endpoint:"log_event",payload:T,cttAuthInfo:E.cttAuthInfo,dangerousLogToVisitorSession:E.dangerousLogToVisitorSession},d)};
Ovj=function(v){JI[v]=v in JI?JI[v]+1:0;return JI[v]};
_.tI=function(v,e,d){d=d===void 0?{}:d;var E=MG;_.zr("ytLoggingEventsDefaultDisabled",!1)&&MG===MG&&(E=null);GN(v,e,E,d)};
_.fI=function(){if(_.N("web_fp_via_jspb")){var v=!0;v=v===void 0?!1:v;var e=IxS;IxS=[];if(e){e=_.a(e);for(var d=e.next();!d.done;d=e.next())d=d.value,v?GN(d.payloadName,d.payload,MG,d.options):_.tI(d.payloadName,d.payload,d.options)}$eW(void 0,!0);if(!_.N("web_fp_via_jspb_and_json"))return}$eW(void 0,!1)};
bvj=function(v,e){var d;if((d=e)==null?0:d.componentStack)return e;if(v=v.componentStack)e||(e={}),e.componentStack=v;return e};
YKj=function(){_.wZ(_.Bb("ERRORS")||[],function(v){_.RI.apply(null,v)});
_.xc("ERRORS",[])};
_.PV=function(v){_.RI(v)};
_.xf=function(v){_.RI(v,"WARNING")};
mPS=function(v){v instanceof Error?_.RI(v):(v=_.Qj(v)?JSON.stringify(v):String(v),v=new _.kL(v),v.name="RejectedPromiseError",_.xf(v))};
yX$=function(v,e,d,E,T,S){e=e===void 0?"Unknown file":e;d=d===void 0?0:d;var O=!1,b=bBL("log_window_onerror_fraction");if(b&&Math.random()<b)O=!0;else{b=document.getElementsByTagName("script");for(var Y=0,q=b.length;Y<q;Y++)if(b[Y].src.indexOf("/debug-")>0){O=!0;break}}O&&(O=!1,T?O=!0:(typeof v==="string"?b=v:ErrorEvent&&v instanceof ErrorEvent?(O=!0,b=v.message,e=v.filename,d=v.lineno,E=v.colno):(b="Unknown error",e="Unknown file",d=0),T=new _.kL(b),T.name="UnhandledWindowError",T.message=b,T.fileName=
e,T.lineNumber=d,isNaN(E)?delete T.columnNumber:T.columnNumber=E),_.N("wiz_enable_component_stack_propagation_killswitch")||(S=bvj(T,S)),S&&_.BV(T,S),O?_.RI(T):_.xf(T))};
_.RI=function(v,e,d,E,T,S,O,b){S=S===void 0?{}:S;S.name=d||_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME",1);S.version=E||_.Bb("INNERTUBE_CONTEXT_CLIENT_VERSION");d=S;e=e===void 0?"ERROR":e;O=O===void 0?!1:O;e=e===void 0?"ERROR":e;O=O===void 0?!1:O;if(v&&(v.hasOwnProperty("level")&&v.level&&(e=v.level),_.N("console_log_js_exceptions")&&(E=[],E.push("Name: "+v.name),E.push("Message: "+v.message),v.hasOwnProperty("params")&&E.push("Error Params: "+JSON.stringify(v.params)),v.hasOwnProperty("args")&&E.push("Error args: "+
JSON.stringify(v.args)),E.push("File name: "+v.fileName),E.push("Stacktrace: "+v.stack),E=E.join("\n"),window.console.log(E,v)),!(qK0>=5))){E=[];T=_.a(rXU);for(S=T.next();!S.done;S=T.next()){S=S.value;try{S()&&E.push(S())}catch(B){}}E=[].concat(_.t7(h03),_.t7(E));var Y=KSt(v);T=Y.message||"Unknown Error";S=Y.name||"UnknownError";var q=Y.stack||v.stacktrace||"Not available";if(q.startsWith(S+": "+T)){var r=q.split("\n");r.shift();q=r.join("\n")}r=Y.lineNumber||"Not available";Y=Y.fileName||"Not available";
var h=0;if(v.hasOwnProperty("args")&&v.args&&v.args.length)for(var K=0;K<v.args.length&&!(h=iQS(v.args[K],"params."+K,d,h),h>=500);K++);else if(v.hasOwnProperty("params")&&v.params){var k=v.params;if(typeof v.params==="object")for(K in k){if(k[K]){var J="params."+K,R=ha(k[K]);d[J]=R;h+=J.length+R.length;if(h>500)break}}else d.params=ha(k)}if(E.length)for(K=0;K<E.length&&!(h=iQS(E[K],"params.context."+K,d,h),h>=500);K++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);
K={message:T,name:S,lineNumber:r,fileName:Y,stack:q,params:d,sampleWeight:1};d=Number(v.columnNumber);isNaN(d)||(K.lineNumber=K.lineNumber+":"+d);if(v.level==="IGNORED")v=0;else a:{v=$PH();d=_.a(v.messageWeights);for(E=d.next();!E.done;E=d.next())if(E=E.value,K.message&&K.message.match(E.messageRegExp)){v=E.weight;break a}v=_.a(v.callbackWeights);for(d=v.next();!d.done;d=v.next())if(d=d.value,d.callback(K)){v=d.weight;break a}v=1}K.sampleWeight=v;v=_.a(j7j);for(d=v.next();!d.done;d=v.next())if(d=
d.value,d.patternsForType[K.name])for(T=_.a(d.patternsForType[K.name]),E=T.next();!E.done;E=T.next())if(S=E.value,E=K.message.match(S.regexp)){K.params["params.error.original"]=E[0];T=S.groups;S={};for(r=0;r<T.length;r++)S[T[r]]=E[r+1],K.params["params.error."+T[r]]=E[r+1];K.message=d.messageFn(S);break}K.params||(K.params={});v=$PH();K.params["params.errorServiceSignature"]="msg="+v.messageWeights.length+"&cb="+v.callbackWeights.length;K.params["params.serviceWorker"]="false";_.TO.document&&_.TO.document.querySelectorAll&&
(K.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new XT(s7H,"sample")).constructor!==XT&&(K.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(K);if(K.sampleWeight!==0&&!NBM.has(K.message)){if(O&&_.N("web_enable_error_204"))knH(e===void 0?"ERROR":e,K);else{e=e===void 0?"ERROR":e;e==="ERROR"?(LSt.publish("handleError",K),_.N("record_app_crashed_web")&&VKH===0&&K.sampleWeight===1&&(VKH++,O={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.N("report_client_error_with_app_crash_ks")||(O.systemHealth={crashData:{clientError:{logMessage:{message:K.message}}}}),_.tI("appCrashed",O)),oz$++):e==="WARNING"&&LSt.publish("handleWarning",K);if(_.N("kevlar_gel_error_routing")){O=e;b=b===void 0?{}:b;b:{v=_.a(JX0);for(d=v.next();!d.done;d=v.next())if(Bi(d.value.toLowerCase())){v=!0;break b}v=!1}if(v)b=void 0;else{d={stackTrace:K.stack};K.fileName&&(d.filename=K.fileName);v=K.lineNumber&&K.lineNumber.split?K.lineNumber.split(":"):[];v.length!==
0&&(v.length!==1||isNaN(Number(v[0]))?v.length!==2||isNaN(Number(v[0]))||isNaN(Number(v[1]))||(d.lineNumber=Number(v[0]),d.columnNumber=Number(v[1])):d.lineNumber=Number(v[0]));v={level:"ERROR_LEVEL_UNKNOWN",message:K.message,errorClassName:K.name,sampleWeight:K.sampleWeight};O==="ERROR"?v.level="ERROR_LEVEL_ERROR":O==="WARNING"&&(v.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:d};b.pageUrl=window.location.href;b.kvPairs=[];_.Bb("FEXP_EXPERIMENTS")&&(b.experimentIds=_.Bb("FEXP_EXPERIMENTS"));
E=_.Bb("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!bBL("web_disable_gel_stp_ecatcher_killswitch")&&E)for(T=_.a(Object.keys(E)),S=T.next();!S.done;S=T.next())S=S.value,b.kvPairs.push({key:S,value:String(E[S])});if(E=K.params)for(T=_.a(Object.keys(E)),S=T.next();!S.done;S=T.next())S=S.value,b.kvPairs.push({key:"client."+S,value:String(E[S])});E=_.Bb("SERVER_NAME");T=_.Bb("SERVER_VERSION");E&&T&&(b.kvPairs.push({key:"server.name",value:E}),b.kvPairs.push({key:"server.version",value:T}));b={errorMetadata:b,
stackTrace:d,logMessage:v}}b&&(_.tI("clientError",b),(O==="ERROR"||_.N("errors_flush_gel_always_killswitch"))&&_.fI())}_.N("suppress_error_204_logging")||knH(e,K)}try{NBM.add(K.message)}catch(B){}qK0++}}};
knH=function(v,e){var d=e.params||{};v={urlParams:{a:"logerror",t:"jserror",type:e.name,msg:e.message.substr(0,250),line:e.lineNumber,level:v,"client.name":d.name},postParams:{url:_.Bb("PAGE_NAME",window.location.href),file:e.fileName},method:"POST"};d.version&&(v["client.version"]=d.version);if(v.postParams){e.stack&&(v.postParams.stack=e.stack);e=_.a(Object.keys(d));for(var E=e.next();!E.done;E=e.next())E=E.value,v.postParams["client."+E]=d[E];if(d=_.Bb("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(e=
_.a(Object.keys(d)),E=e.next();!E.done;E=e.next())E=E.value,v.postParams[E]=d[E];(d=_.Bb("LAVA_VERSION"))&&(v.postParams["lava.version"]=d);d=_.Bb("SERVER_NAME");e=_.Bb("SERVER_VERSION");d&&e&&(v.postParams["server.name"]=d,v.postParams["server.version"]=e)}_.y8(_.Bb("ECATCHER_REPORT_HOST","")+"/error_204",v)};
_.Gn0=function(v,e){e=e===void 0?"ERROR":e;var d=d===void 0?{}:d;var E=_.AE("ytbin.polymer.shared.lib.tampering.info");E&&(E=E())&&(d["params.tamperingInfo"]=E.sort().join(","));_.RI(v,e,void 0,void 0,!0,d)};
_.BV=function(v){var e=_.Xa.apply(1,arguments);v.args||(v.args=[]);Array.isArray(v.args)&&v.args.push.apply(v.args,_.t7(e))};
MKj=function(v){v.level="IGNORED"};
tK$=function(v,e){h03.push(v);e();h03.pop()};
ll=function(v,e){for(var d in e)e.hasOwnProperty(d)&&(v=_.zN(v,d,e[d]));return v};
_.fxM=function(v,e,d){d=d===void 0?!1:d;if(!v)return null;if(v.adInfoDialogEndpoint||v.backstageImageUploadEndpoint||v.confirmDialogEndpoint||v.clientActionEndpoint||v.createBackstagePostDialogEndpoint||v.createCommentReplyDialogEndpoint||v.flowEndpoint||v.guideBuilderEndpoint||v.liveChatDialogEndpoint||v.modalEndpoint||v.openPopupAction||v.shareEndpoint||v.shareEntityEndpoint||v.showLiveChatItemEndpoint||v.subscriptionManagerEndpoint||v.unlimitedCreateFamilyEndpoint||v.unlimitedFamilyFlowEndpoint||
v.updateCommentDialogEndpoint||v.updateCommentReplyDialogEndpoint||v.userFeedbackEndpoint||v.videoEditorEndpoint||v.ypcCancelSurveyEndpoint)return e=_.Wi("polymer_report_client_url_requested_rate"),!d&&Math.random()<e&&_.xf(new _.kL("urlForEndpoint used on client endpoint",v)),null;var E=_.Wi("polymer_report_missing_web_navigation_endpoint_rate");if(v.liveChatEndpoint||v.liveChatReplayEndpoint)E=0;if(!v.commandMetadata&&!v.clickTrackingParams&&Math.random()<E){var T={},S;for(S in v)T[S]="1";_.xf(new _.kL("Missing navigation data",
T))}T="";if(v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.url)T=v.commandMetadata.webCommandMetadata.url;else if(v.searchEndpoint)Math.random()<E&&_.xf(new _.kL("Should not manually handle search",v)),T="/results?search_query="+encodeURIComponent(v.searchEndpoint.query).replace(/%20/g,"+"),v.searchEndpoint.params&&(T+="&sp="+v.searchEndpoint.params);else if(v.watchEndpoint)Math.random()<E&&_.xf(new _.kL("Should not manually handle watch",v)),T="/watch?v="+
v.watchEndpoint.videoId,v.watchEndpoint.playlistId&&(T+="&list="+v.watchEndpoint.playlistId),v.watchEndpoint.index&&(T+="&index="+v.watchEndpoint.index),v.watchEndpoint.startTimeSeconds&&(T+="&t="+v.watchEndpoint.startTimeSeconds);else if(v.browseEndpoint)E=v.browseEndpoint.browseId,(S=v.browseEndpoint.canonicalBaseUrl)?T=S:E&&(T=E.substr(0,2),T=T==="FE"?E==="FEwhat_to_watch"?"/":E==="FEmy_videos"?"/my_videos":"/feed/"+E.substr(2):T==="VL"?"/playlist?list="+E.substr(2):"/channel/"+E),T&&v.browseEndpoint.query&&
(T=ll(T+"/search",{query:v.browseEndpoint.query})),T&&v.browseEndpoint.params&&(T=ll(T,{params:v.browseEndpoint.params}));else{if(v.urlEndpoint)return v.urlEndpoint.url;v.signInEndpoint?(T="https://accounts.google.com/ServiceLogin",E={},_.f0.extend(E,e||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),e=E):v.uploadEndpoint?T="//www.youtube.com/upload":v.liveChatEndpoint?(T=v.liveChatEndpoint,E=_.f0.clone(T),_.Qj(T.continuation)&&(S=Object.keys(T.continuation)[0],
E.continuation=T.continuation[S].continuation),T=ll("/youtubei/v1/live_chat/get_live_chat",E)):v.liveChatReplayEndpoint?(T=_.f0.clone(v.liveChatReplayEndpoint),T.currentPlayerState&&(_.f0.extend(T,T.currentPlayerState),delete T.currentPlayerState),T=ll("/youtubei/v1/live_chat/get_live_chat_replay",T)):v.liveChatItemContextMenuEndpoint?T=ll("/youtubei/v1/live_chat/get_item_context_menu",v.liveChatItemContextMenuEndpoint):v.liveChatPurchaseMessageEndpoint?T=ll("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
v.liveChatPurchaseMessageEndpoint):v.openSuperStickerBuyFlowCommand?T=ll("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",v.openSuperStickerBuyFlowCommand):v.videoEditEndpoint?T=ll("/edit",{video_id:v.videoEditEndpoint.videoId}):v.liveDashboardEndpoint?T=v.liveDashboardEndpoint.videoId?ll("/live_dashboard",{v:v.liveDashboardEndpoint.videoId}):"/live_dashboard":v.signalNavigationEndpoint&&v.signalNavigationEndpoint.signal&&v.signalNavigationEndpoint.signal==="WEBCAM"?T="/webcam":v.getPdgBuyFlowCommand&&
(T=ll(v.getPdgBuyFlowCommand.buyflowApiPath,{params:v.getPdgBuyFlowCommand.params}))}return T||d?ll(T,e||{}):(_.xf(new _.kL("Error: Can't construct url for endpoint","keys:"+Object.keys(v).sort().join(","),v)),null)};
R07=function(v){if(v){if(v.browseEndpoint)return!!v.browseEndpoint.nofollow;if(v.watchEndpoint)return!!v.watchEndpoint.nofollow;if(v.urlEndpoint)return!!v.urlEndpoint.nofollow}return!1};
_.xPS=function(v,e){var d=e+v,E=PHj.get(d);if(E)return E;v=e+"-"+v.replace(/([A-Z])/g,"-$1").toLowerCase();PHj.set(d,v);return v};
BBt=function(v){var e=_.Rs(v,"action")||_.Rs(v,"command")||_.Rs(v,"endpoint");if(!e)return null;e=_.xPS(e,"yt");_.L(v,_.HV)&&(e+="-"+_.L(v,_.HV).signal.toLowerCase().replace(/_/g,"-"));return e};
lxj=function(v){try{var e=Object.keys(v)}catch(T){return[]}for(var d=0;d<e.length;d++){var E=e[d];if(CHM.test(E)||X5M.test(E))return z07(v[E])}return[]};
z07=function(v){return v.command?[v.command]:v.onExecutionAction?[v.onExecutionAction]:v.onResponseReceivedCommand?[v.onResponseReceivedCommand]:v.updateFlowCommand?[v.updateFlowCommand]:v.clientActions?v.clientActions:v.action?[v.action]:v.actions||v.commands||v.onResponseReceivedActions||v.onResponseReceivedCommands||v.onResponseReceivedEndpoints||[]};
AXL=function(v,e){e=e===void 0?!1:e;var d=_.dk().resolve(_.eG(cV));d||(d=new Hvt,_.dk().addProvider({provide:cV,useValue:d}));return d&&v&&!_.f0.isEmpty(v)?d.getUrl(v,e):""};
ZvM=function(v,e,d){d=d===void 0?"":d;if(e){v.data=e;var E=AXL(e);E?(l6(v,E),R07(e)||!p4(E)?v.rel="nofollow":v.removeAttribute("rel"),_.L(e,_.wb)&&_.L(e,_.wb).target==="TARGET_NEW_WINDOW"?v.target="_blank":d?v.target=d:v.removeAttribute("target")):(v.removeAttribute("href"),v.removeAttribute("rel"),v.removeAttribute("target"))}};
_.ul=function(v,e){var d=uZ;if(kG())cXU(v,function(){var S=_.Xa.apply(0,arguments);fD(d,function(){e.apply(null,_.t7(S))})});
else{var E=_.FT.getInstance(),T=f4(e);vBS(function(){T.value=e});
_.Gr(function(){var S={},O=_.Qf(E,(S[v]=function(){var b=_.Xa.apply(0,arguments);fD(d,function(){T.value.apply(T,_.t7(b))})},S));
return function(){var b={};_.gb(E,(b[v]="",b),O)}})}};
_.nI=function(v,e){return w50(v,!1,e)};
_.Dq=function(v,e){return w50(v,!0,e)};
w50=function(v,e,d){return kG()?FSS(v,e,d):Q7S(v,e,d)};
Q7S=function(v,e,d){return tE(function(){return FSS(v,e,d)})};
FSS=function(v,e,d){var E=nq$(function(T){E.value=T;var S=function(){var O=EE(null);try{return d==null?void 0:d(T)}finally{EE(O)}}();
return function(){S==null||S()}});
E.__expectedTagName=v;E.__optional=e;E.isIdom=!kG();return E};
gz$=function(v){var e=uZ,d=sE;return{getFn:function(){return function(E){e.isDisposed||Vl(function(){return i3(function(){return v(E)})},d)!==!0&&E.stopPropagation()}}}};
UN=function(v){if(typeof v.children==="function")return v.children(),null;v=_.a(v.children);for(var e=v.next();!e.done;e=v.next())e=e.value,e();return null};
ucU=function(v){var e;return((e=v.prototype)==null?void 0:e.render)===void 0};
nzO=function(v){return v.items.map(v.children)};
_.UP3=function(v,e,d){d=d===void 0?!1:d;Vl(function(){return DPt(v,e,d)})};
DPt=function(v,e,d){var E=null;hf++;d=(d===void 0?0:d)?p50:vpj;try{E=d(v,function(){pI(e)}),$G(!1)}catch(T){throw $G(!0),T;
}return E===null?v:E};
pI=function(v){if(v!==void 0&&v!==null)if(v instanceof mE)for(var e=Hx;Af()!=null&&Pnt in Af()&&e.contains(Af());)wh();else if(Array.isArray(v))for(e=_.a(v),v=e.next();!v.done;v=e.next())pI(v.value);else if(v instanceof Nf||v instanceof el||"function"==typeof _.UE&&v instanceof _.UE)Bmj(v.toString());else if(_.EW(v)){if(Af()!==v){var d,E;e=(E=(d=sE)==null?void 0:d.name)!=null?E:"unknown";throw Error("bc`"+v.tagName+"`"+e);}wh()}else if(v!=null&&v.contentKind===Wb||v instanceof H$||Dys(v))for(e=pY3(v),
e=Array.from(e.childNodes),e=_.a(e),v=e.next();!v.done;v=e.next())Hx.appendChild(v.value),wh();else if(GD(v)&&(v=v.toString()),d=typeof v,d==="boolean"||d==="number"||d==="string")Bmj(v);else if(typeof v==="function"){e=Hx;var T=Af();T&&(T._isSignalTextNode||T._isSafeOrSanitizedHtmlNode)||kzs(e,T,v);wh()}else if(v.type===nzO)pI(v.type(Object.assign({},v.props,{children:v.children[0]})));else{rZ.beforeVisit(v);if(typeof v.type==="string"){a:{v.__open||okS(v.type,v.props.idomKey);T=Hx;for(e in v.props)if(v.props[e]!==
eJM){var S=v.props[e];d=gh;d.push(e);d.push(S)}e=vx.attributes;e=e===void 0?vY:e;S=Hx;d=l3(S);xyU(S,d,e);N3U(T,v.props,!0);if((v.props.skip||v.props.skipchildren)&&Hx.hasChildNodes())GvW();else{if(v.type==="style"&&a_j(v.children)===null){GvW();e=void 0;break a}pI(v.children)}J0U();v.__open&&(v.__open=!1);c0O(T,v.props);e=T}return e}if(v.type===_.eI)pI(v.children);else if(!d0O(v)){e=v;try{Ep$(e)}catch(O){v=O,(S=vx.handleError)==null||S.call.apply(S,[vx].concat(_.t7(Px(v,(T=e.type)==null?void 0:T.TAG_NAME))))}e.__open&&
(J0U(),e.__open=!1)}}};
TpO=function(v,e){var d;ucU(v)?d=new K4(e,v):d=new v(e);d.__type=v;d.__updateContext={nextState:d.state,isForced:!1};return d};
Ep$=function(v){var e=v.type,d=e.TAG_NAME;if(e===UN)v.props.children=v.children,e(v.props);else{v.children.length>0&&(v.props.children=v.children);var E;(E=v.props).idomKey||(E.idomKey=e);if(d){var T=okS(d,v.props.idomKey);v.__open=!0;var S=T.__instance}S||(S=TpO(e,v.props),S.props=null,T&&(T.__instance=S,S.el=T));var O;d=((O=S.__updateContext)!=null?O:{nextState:S.state,isForced:!1}).nextState;S.__updateContext=void 0;e.getDerivedStateFromProps&&(d=e.getDerivedStateFromProps(v.props,d));S.props=
v.props;S.state=d;O=function(){var b=S;rZ.beforeRender(b);var Y=b.render(b.props);rZ.afterRender(b,Y);Y?(b.props.idomKey&&(Y.props.idomKey=b.props.idomKey),b=Y):b=void 0;if(Y=b)if(Y.__open=v.__open,b=pI(Y),v.__open=Y.__open,!e.TAG_NAME)if(b)e.TAG_NAME=b.tagName.toLowerCase(),b.__instance=S,S.el=b;else{var q;if((q=S.hooks)==null?0:q.length){var r;(r=vx.handleError)==null||r.call.apply(r,[vx].concat(_.t7(Px(Error("ld")))))}}S.didPatch();rZ.didPatch(S)};
(d=S.functionComponent)?FH0(d,O,S.props.debugInstance):O()}};
d0O=function(v){var e=v.type;if(!ucU(e)||e===UN||e.componentType===_.N4)return!1;v.props.children=v.children.length>1?v.children:v.children[0];var d,E=(d=v.props.idomKey)!=null?d:v.type,T;if(Af()&&((T=Af()[Is])==null?void 0:T.key)===E){var S=Af(),O=S[Is];if(!O)throw Error("ac`"+S.tagName);var b;(b=O.updateSignalsFromIdomProps)==null||b.call(O,v.props);SRt(O);return!0}if(WCt.has(e.name))throw b=e.name,e=(O=(S=sE)==null?void 0:S.name)!=null?O:"unknown",Error("$b`"+b+"`"+e);JW7(v.type,v.props,v.children);
v.props.renderedFromIdom=!0;(b=FH0(v.type,function(){return hbj(v.type,v.props)},v.props.debugInstance))&&a7t(b);
return!0};
irW=function(v){for(var e=0;e<Yc(v).length;e++)wh()};
SRt=function(v){var e=OrL();if(e)irW(e);else for(var d=0;d<v.numNodes;d++)(e=OrL())?irW(e):wh()};
OrL=function(){var v;return(v=Af()[Is])==null?void 0:v.sourceDynamicRange};
a7t=function(v){v=QOL(v);v=Array.isArray(v)?v:[v];v=_.a(v);for(var e=v.next();!e.done;e=v.next())Hx.insertBefore(e.value,Af()),wh()};
I7S=function(v){var e=$nO(),d=tE(function(){return{value:typeof v==="function"?v():v}});
return[d.value,function(E){if(hE!==null){var T;(T=vx.handleError)==null||T.call.apply(T,[vx].concat(_.t7(Px(Error("md")))))}d.value=typeof E==="function"?E(d.value):E;e.__updateContext={nextState:e.state,isForced:!0};E=_.nX(e.effectContext);T=dZ(!1);try{if(e.el){var S,O={},b=(O.props=e.props,O.type=e.__type,O.children=(S=e.props.children)!=null?S:[],O[vb]=!0,O);try{_.UP3(e.el,b,!0)}catch(r){var Y,q;(q=vx.handleError)==null||q.call.apply(q,[vx].concat(_.t7(Px(r,(Y=e.__type)==null?void 0:Y.TAG_NAME))))}}}finally{dZ(T),
_.nX(E)}}]};
eO=function(v,e){var d=uZ,E=function(T){fD(d,function(){e(T)})};
window.addEventListener(v,E,void 0);_.Jf(function(){window.removeEventListener(v,E,void 0)})};
_.Eh=function(v){var e=uZ;return function(d){var E,T=(E=v.observer)!=null?E:_.dk().resolve(dm);E=br$(d);var S=[];v.showOption&&S.push(T.observe(d,function(){fD(e,function(){v.visibilityCallback(!0,d)})},v.showOption));
v.hideOption&&S.push(T.observe(d,function(){fD(e,function(){v.visibilityCallback(!1,d)})},v.hideOption));
v.prescanOption&&v.prescanCallback&&S.push(T.observe(d,function(){fD(e,function(){v.prescanCallback()})},v.prescanOption));
var O;E.visibilityMonitorKeys=((O=E.visibilityMonitorKeys)!=null?O:[]).concat(S)}};
br$=function(v){var e;return(e=v.polymerController)!=null?e:v};
qRH=function(v,e){var d=YR0;return _.m(_.eI,null,KYL(vx.enableLazyTsx,function(){return _.m(m0$,{id:d,value:v,children:e})},function(){var E=y1M(d,v);
pX(E);E=_.nX(E);try{return e()}finally{_.nX(E)}}))};
m0$=function(v){var e=v.children;v=y1M(v.id,v.value);pX(v);v=_.nX(v);try{return _.m(_.eI,null,yU(e()))}finally{_.nX(v)}};
y1M=function(v,e){return Object.assign(Object.create(r1H),{id:v,contextValue:e})};
hJt=function(v){var e,d=uZ;_.tf(function(){var E=_.nX(d),T=dZ(!e);try{if(e)_.UP3(e,v.children(),!0);else if(e=yU(v.children()),!(e instanceof Element))throw Error("nd");}finally{dZ(T),_.nX(E)}});
return e};
_.KCt=function(v,e){var d;e=Gq(function(){var E=dZ(!0);hf++;try{d=Yc(v()),$G(!1)}catch(T){throw $G(!0),T;}finally{dZ(E)}},e===void 0?!1:e);
return[d,e]};
jt7=function(v){var e=new $0O;e.abort(v);return e.signal};
stL=function(){if(this.aborted){var v;throw(v=this.reason)!=null?v:new DOMException("signal is aborted without reason","AbortError");}};
LC0=function(v){var e=new $0O;v=_.a(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value,d.aborted){e.abort(d.reason);break}else Npj.set(e.signal,e),kUs.add(d,e.signal);return e.signal};
VBj=function(){for(var v=_.a(kUs.get(this)),e=v.next();!e.done;e=v.next())Npj.get(e.value).abort(this.reason)};
opW=function(v){var e=new $0O;setTimeout(function(){e.abort(new DOMException("signal timed out","TimeoutError"))},v);
return e.signal};
GUt=function(v){v=v.buf.charCodeAt(v.pos++);return J13[v]};
Tv=function(v){var e=0,d=0;do{var E=GUt(v);e|=(E&31)<<d;d+=5}while(E&32);return e<0?e+4294967296:e};
tBH=function(){var v=!0;v=v===void 0?!1:v;var e=e===void 0?!1:e;var d=d===void 0?{}:d;var E=d.cssRowKey||"",T=d.combinedSignature||"";!E&&window&&window._F_cssRowKey&&(E=window._F_cssRowKey,!T&&window._F_combinedSignature&&(T=window._F_combinedSignature));if(E&&typeof window._F_installCss!=="function")throw Error("wd");var S=d.loaderClass||_.SO,O=zNO("base-js");v=new S(bFj(HUs("",O)),E,T,v,e);e=d.useCors||O&&O.hasAttribute("crossorigin");O=d.corsMode||O&&O.getAttribute("crossorigin");e&&(v.useCors_=
e);O&&(v.corsMode_=O);d.urlMaxLength&&(v.urlMaxLength=d.urlMaxLength);d.fetchPriority&&(v.fetchPriority=d.fetchPriority);var b=Mu();b.JSC$10044_loader_=v;b.setBatchModeEnabled(!0);_.MB0=function(Y){return Promise.resolve(b.load(Y))}};
PwL=function(v,e,d){f7L(v,e);v[e][RJU].unshift(d)};
f7L=function(v,e){if(!v[e]||!v[e][RJU]){var d=v[e],E=d?[d]:[];v[e]=function(){for(var T=_.a(E),S=T.next();!S.done;S=T.next())S.value.apply(this,arguments)};
v[e][RJU]=E}};
x0U=function(v){if(!v)return[];var e=[];v=_.a(v);for(var d=v.next();!d.done;d=v.next())d=d.value,Array.isArray(d)?e.push.apply(e,_.t7(x0U(d))):e.push(d);return e};
_.aO=function(v,e){if(v&&Bpt.test(v)||v==="//")return v;if(CwW===void 0){CwW=!1;try{var d=new URL("b","http://a");d.pathname="c%20d";CwW=d.href==="http://a/c%20d"}catch(E){}}e||(e=document.baseURI||window.location.href);if(CwW)try{return(new URL(v,e)).href}catch(E){return v}WY||(WY=document.implementation.createHTMLDocument("temp"),WY.base=WY.createElement("base"),WY.head.appendChild(WY.base),WY.anchor=WY.createElement("a"),WY.body.appendChild(WY.anchor));WY.base.href=e;WY.anchor.href=v;return WY.anchor.href||
v};
zJO=function(v,e){return v.replace(XjL,function(d,E,T,S){return E+"'"+_.aO(T.replace(/["']/g,""),e)+"'"+S})};
l7H=function(v){return v.substring(0,v.lastIndexOf("/")+1)};
Zr0=function(){Hrj=!1;for(var v=iW.length,e=0;e<v;e++){var d=iW[e];if(d)try{d()}catch(E){setTimeout(function(){throw E;})}}iW.splice(0,v);
A1t+=v};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(v){console.log("["+v.is+"]: registered")};
wj$=function(v){c1U.push(v)};
Oh=function(v){return FC7[v]||(FC7[v]=v.indexOf("-")<0?v:v.replace(QtO,function(e){return e[1].toUpperCase()}))};
IO=function(v){return FC7[v]||(FC7[v]=v.replace(gp0,"-$1").toLowerCase())};
ubs=function(v,e){var d=e.parentInfo&&ubs(v,e.parentInfo);if(d)for(v=d.firstChild,d=0;v;v=v.nextSibling){if(e.parentIndex===d++)return v}else return v};
npS=function(v,e){v=v._methodHost||v;return function(d){if(v[e])v[e](d,d.detail);else console.warn("listener method `"+e+"` not defined")}};
bW=function(v){return v.indexOf(".")>=0};
Yk=function(v){var e=v.indexOf(".");return e===-1?v:v.slice(0,e)};
D0H=function(v,e){return v.indexOf(e+".")===0};
mh=function(v,e){return e.indexOf(v+".")===0};
yF=function(v,e,d){return e+d.slice(v.length)};
U03=function(v,e){return v===e||D0H(v,e)||mh(v,e)};
qy=function(v){if(Array.isArray(v)){for(var e=[],d=0;d<v.length;d++)for(var E=v[d].toString().split("."),T=0;T<E.length;T++)e.push(E[T]);return e.join(".")}return v};
pj3=function(v){return Array.isArray(v)?qy(v).split("."):v.toString().split(".")};
rm=function(v,e,d){e=pj3(e);for(var E=0;E<e.length;E++){if(!v)return;v=v[e[E]]}d&&(d.path=e.join("."));return v};
v57=function(v,e,d){var E=pj3(e),T=E[E.length-1];if(E.length>1){for(e=0;e<E.length-1;e++)if(v=v[E[e]],!v)return;v[T]=d}else v[e]=d;return E.join(".")};
eot=function(v,e,d){var E=v[e];if(!E)E=v[e]={};else if(!v.hasOwnProperty(e)&&(E=v[e]=Object.create(v[e]),d))for(var T in E)for(v=E[T],e=E[T]=Array(v.length),d=0;d<v.length;d++)e[d]=v[d];return E};
Kk=function(v,e,d,E,T,S){if(e){var O=!1,b=h0++,Y;for(Y in d){var q=T?Yk(Y):Y;if(q=e[q])for(var r=0,h=q.length,K=void 0;r<h&&(K=q[r]);r++)K.info&&K.info.lastRun===b||T&&!d3j(Y,K.trigger)||(K.info&&(K.info.lastRun=b),K.fn(v,Y,d,E,K.info,T,S),O=!0)}return O}return!1};
d3j=function(v,e){if(e){var d=e.name;return d==v||!(!e.structured||!D0H(d,v))||!(!e.wildcard||!mh(d,v))}return!0};
E5W=function(v,e,d,E,T){e=typeof T.method==="string"?v[T.method]:T.method;d=T.property;e?e.call(v,v.__data[d],E[d]):T.dynamicFn||console.warn("observer method `"+T.method+"` not defined")};
TQ$=function(v,e,d,E){d={value:d,queueProperty:!0};E&&(d.path=E);(0,_.$k)(v).dispatchEvent(new CustomEvent(e,{detail:d}))};
Skt=function(v,e,d,E,T,S){S=(E=(S?Yk(e):e)!=e?e:null)?rm(v,E):v.__data[e];E&&S===void 0&&(S=d[e]);TQ$(v,T.eventName,S,E)};
WXM=function(v,e,d,E,T){d=v.__data[e];jO&&(d=jO(d,T.attrName,"attribute",v));v._propertyToAttribute(e,T.attrName,d)};
iOt=function(v){var e=v.constructor.__orderedComputedDeps;if(!e){e=new Map;for(var d=v.__computeEffects,E=a9H(v),T=E.counts,S=E.ready,O=E.total;E=S.shift();)e.set(E,e.size),(E=d[E])&&E.forEach(function(b){b=b.info.methodInfo;--O;--T[b]===0&&S.push(b)});
O!==0&&console.warn("Computed graph for "+v.localName+" incomplete; circular?");v.constructor.__orderedComputedDeps=e}return e};
a9H=function(v){var e=v.__computeInfo,d={};v=v.__computeEffects;var E=[],T=0,S;for(S in e){var O=e[S];T+=d[S]=O.args.filter(function(Y){return!Y.literal}).length+(O.dynamicFn?1:0)}for(var b in v)e[b]||E.push(b);
return{counts:d,ready:E,total:T}};
I9S=function(v,e,d,E,T){e=OOt(v,e,d,E,T);if(e===sh)return!1;T=T.methodInfo;if(v.__dataHasAccessor&&v.__dataHasAccessor[T])return v._setPendingProperty(T,e,!0);v[T]=e;return!1};
m30=function(v,e,d,E,T,S,O){d.bindings=d.bindings||[];E={kind:E,target:T,parts:S,literal:O,isCompound:S.length!==1};d.bindings.push(E);E.target&&E.kind!="attribute"&&E.kind!="text"&&!E.isCompound&&E.parts[0].mode==="{"&&(d=E.parts[0],S=d.negate,E.listenerEvent=d.event||IO(T)+"-changed",E.listenerNegate=S);T=e.nodeInfoList.length;for(d=0;d<E.parts.length;d++){var b=E.parts[d];b.compoundIndex=d;S=v;O=e;var Y=E,q=b,r=T;if(!q.literal)if(Y.kind==="attribute"&&Y.target[0]==="-")console.warn("Cannot set attribute "+
Y.target+' because "-" is not a valid attribute starting character');else for(b=q.dependencies,Y={index:r,binding:Y,part:q,evaluator:S},q=0;q<b.length;q++)r=b[q],typeof r=="string"&&(r=bOU(r),r.wildcard=!0),S._addTemplatePropertyEffect(O,r.rootProperty,{fn:Yk0,info:Y,trigger:r})}};
Yk0=function(v,e,d,E,T,S,O){O=O[T.index];var b=T.binding,Y=T.part;S&&Y.source&&e.length>Y.source.length&&b.kind=="property"&&!b.isCompound&&O.__isPropertyEffectsClient&&O.__dataHasAccessor&&O.__dataHasAccessor[b.target]?(d=d[e],e=yF(Y.source,b.target,e),O._setPendingPropertyOrPath(e,d,!1,!0)&&v._enqueueClient(O)):(e=T.evaluator._evaluateBinding(v,Y,e,d,E,S),e!==sh&&(b.isCompound&&(d=O.__dataCompoundStorage[b.target],d[Y.compoundIndex]=e,e=d.join("")),b.kind==="attribute"||b.target!=="textContent"&&
(b.target!=="value"||O.localName!=="input"&&O.localName!=="textarea")||(e=e==void 0?"":e),Y=e,jO&&(Y=jO(Y,b.target,b.kind,O)),b.kind=="attribute"?v._valueToNodeAttribute(O,Y,b.target):(b=b.target,O.__isPropertyEffectsClient&&O.__dataHasAccessor&&O.__dataHasAccessor[b]?O.__readOnly&&O.__readOnly[b]||O._setPendingProperty(b,Y)&&v._enqueueClient(O):v._setUnmanagedPropertyToNode(O,b,Y))))};
yRt=function(v,e,d){if(d.listenerEvent){var E=d.parts[0];v.addEventListener(d.listenerEvent,function(T){var S=d.target,O=E.source,b=E.negate,Y=T.detail,q=Y&&Y.path;q?(O=yF(S,O,q),T=Y&&Y.value):T=T.currentTarget[S];e.__readOnly&&e.__readOnly[O]||!e._setPendingPropertyOrPath(O,b?!T:T,!0,!!q)||Y&&Y.queueProperty||e._invalidateProperties()})}};
qkH=function(v,e,d,E,T,S){S=e.static||S&&(typeof S!=="object"||S[e.methodName]);T={methodName:e.methodName,args:e.args,methodInfo:T,dynamicFn:S};for(var O=0,b=void 0;O<e.args.length&&(b=e.args[O]);O++)b.literal||v._addPropertyEffect(b.rootProperty,d,{fn:E,info:T,trigger:b});S&&v._addPropertyEffect(e.methodName,d,{fn:E,info:T});return T};
OOt=function(v,e,d,E,T){E=v._methodHost||v;var S=E[T.methodName];if(S)return v=v._marshalArgs(T.args,e,d),v===sh?sh:S.apply(E,v);T.dynamicFn||console.warn("method `"+T.methodName+"` not defined")};
rRs=function(v){for(var e="",d=0;d<v.length;d++)e+=v[d].literal||"";return e};
$3L=function(v){if(v=v.match(/([^\s]+?)\(([\s\S]*)\)/)){var e={methodName:v[1],static:!0,args:hoO};return v[2].trim()?KX3(v[2].replace(/\\,/g,"&comma;").split(","),e):e}return null};
KX3=function(v,e){e.args=v.map(function(d){d=bOU(d);d.literal||(e.static=!1);return d},this);
return e};
bOU=function(v){v=v.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var e={name:v,value:"",literal:!1},d=v[0];d==="-"&&(d=v[1]);d>="0"&&d<="9"&&(d="#");switch(d){case "'":case '"':e.value=v.slice(1,-1);e.literal=!0;break;case "#":e.value=Number(v),e.literal=!0}e.literal||(e.rootProperty=Yk(v),e.structured=bW(v),e.structured&&(e.wildcard=v.slice(-2)==".*",e.wildcard&&(e.name=v.slice(0,-2))));return e};
jat=function(v,e,d){v=rm(v,d);v===void 0&&(v=e[d]);return v};
sas=function(v,e,d,E){E={indexSplices:E};kk&&!v._overrideLegacyUndefined&&(e.splices=E);v.notifyPath(d+".splices",E);v.notifyPath(d+".length",e.length);kk&&!v._overrideLegacyUndefined&&(E.indexSplices=[])};
Lk=function(v,e,d,E,T,S){sas(v,e,d,[{index:E,addedCount:T,removed:S,object:e,type:"splice"}])};
NQs=function(v){v=zJO((v.body?v.body:v).textContent,v.baseURI);var e=document.createElement("style");e.textContent=v;return e};
LXH=function(v){v=v.trim().split(/\s+/);for(var e=[],d=0;d<v.length;d++)e.push.apply(e,_.t7(kp7(v[d])));return e};
kp7=function(v){var e=VF.import(v);if(!e)return console.warn("Could not find style data in module named",v),[];if(e._styles===void 0){v=[];v.push.apply(v,_.t7(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e)));var d=e.querySelector("template");d&&v.push.apply(v,_.t7(Vdt(d,e.assetpath)));e._styles=v}return e._styles};
Vdt=function(v,e){if(!v._styles){for(var d=[],E=v.content.querySelectorAll("style"),T=0;T<E.length;T++){var S=E[T],O=S.getAttribute("include");O&&d.push.apply(d,_.t7(LXH(O).filter(function(b,Y,q){return q.indexOf(b)===Y})));
e&&(S.textContent=zJO(S.textContent,e));d.push(S)}v._styles=d}return v._styles};
o50=function(v){return(v=VF.import(v))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(v){var e=[];v=v.querySelectorAll("link[rel=import][type~=css]");for(var d=0;d<v.length;d++){var E=v[d];if(E.import){var T=E.import;if((E=E.hasAttribute("shady-unscoped"))&&!T._unscopedStyle){var S=NQs(T);S.setAttribute("shady-unscoped","");T._unscopedStyle=S}else T._style||(T._style=NQs(T));e.push(E?T._unscopedStyle:T._style)}}return e};
GpO=function(v){v=v.trim().split(/\s+/);for(var e="",d=0;d<v.length;d++)e+=JRt(v[d]);return e};
JRt=function(v){var e=VF.import(v);if(e&&e._cssText===void 0){var d=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e),E=e.querySelector("template");E&&(d+=Mdj(E,e.assetpath));e._cssText=d||null}e||console.warn("Could not find style data in module named",v);return e&&e._cssText||""};
Mdj=function(v,e){var d="";v=Vdt(v,e);for(e=0;e<v.length;e++){var E=v[e];E.parentNode&&E.parentNode.removeChild(E);d+=E.textContent}return d};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(v){var e="";v=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v);for(var d=0;d<v.length;d++)e+=v[d].textContent;return e};
oO=function(v,e){return{index:v,removed:[],addedCount:e}};
f9s=function(v,e,d,E){var T=0,S=0,O=0,b=0,Y=Math.min(e-T,E-S);if(T==0&&S==0)a:{for(O=0;O<Y;O++)if(v[O]!==d[O])break a;O=Y}if(e==v.length&&E==d.length){b=v.length;for(var q=d.length,r=0;r<Y-O&&tdj(v[--b],d[--q]);)r++;b=r}T+=O;S+=O;e-=b;E-=b;if(e-T==0&&E-S==0)return[];if(T==e){for(e=oO(T,0);S<E;)e.removed.push(d[S++]);return[e]}if(S==E)return[oO(T,e-T)];Y=T;O=S;E=E-O+1;b=e-Y+1;e=Array(E);for(q=0;q<E;q++)e[q]=Array(b),e[q][0]=q;for(q=0;q<b;q++)e[0][q]=q;for(q=1;q<E;q++)for(r=1;r<b;r++)if(v[Y+r-1]===
d[O+q-1])e[q][r]=e[q-1][r-1];else{var h=e[q-1][r]+1,K=e[q][r-1]+1;e[q][r]=h<K?h:K}Y=e.length-1;O=e[0].length-1;E=e[Y][O];for(v=[];Y>0||O>0;)Y==0?(v.push(2),O--):O==0?(v.push(3),Y--):(b=e[Y-1][O-1],q=e[Y-1][O],r=e[Y][O-1],h=q<r?q<b?q:b:r<b?r:b,h==b?(b==E?v.push(0):(v.push(1),E=b),Y--,O--):h==q?(v.push(3),Y--,E=q):(v.push(2),O--,E=r));v.reverse();e=void 0;Y=[];for(O=0;O<v.length;O++)switch(v[O]){case 0:e&&(Y.push(e),e=void 0);T++;S++;break;case 1:e||(e=oO(T,0));e.addedCount++;T++;e.removed.push(d[S]);
S++;break;case 2:e||(e=oO(T,0));e.addedCount++;T++;break;case 3:e||(e=oO(T,0)),e.removed.push(d[S]),S++}e&&Y.push(e);return Y};
Ro0=function(v,e){return f9s(v,v.length,e,e.length)};
tdj=function(v,e){return v===e};
x3O=function(v){if(v instanceof Pz0)return v.value;throw Error("Ed`"+v);};
BQ0=function(v,e){for(var d in e)d===null?v.style.removeProperty(d):v.style.setProperty(d,e[d])};
Cz3=function(v,e){return(v=window.getComputedStyle(v).getPropertyValue(e))?v.trim():""};
HOH=function(v){requestAnimationFrame(function(){X0t?X0t(v):(zoW||(zoW=new Promise(function(e){l97=e}),document.readyState==="complete"?l97():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&l97()})),zoW.then(function(){v&&v()}))})};
cRO=function(v){AR$=v&&v.shimcssproperties?!1:ZOt||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
uAt=function(v){if(!(w0O.indexOf(v)>-1)&&v!=="touchend"&&FXS&&QaL&&g5M)return{passive:!0}};
p0O=function(v){for(var e=n5j?["click"]:w0O,d=0,E;d<e.length;d++)E=e[d],v?(D3t.length=0,document.addEventListener(E,U3t,!0)):document.removeEventListener(E,U3t,!0)};
J0=function(v){var e=v.type;return w0O.indexOf(e)>-1?e==="mousemove"?(e=v.buttons===void 0?1:v.buttons,v instanceof window.MouseEvent&&!vu$&&(e=eP7[v.which]||0),!!(e&1)):(v.button===void 0?0:v.button)===0:!1};
dTL=function(v){if(v.type==="click"){if(v.detail===0)return!0;var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;e=e.getBoundingClientRect();var d=v.pageX;v=v.pageY;return!(d>=e.left&&d<=e.right&&v>=e.top&&v<=e.bottom)}return!1};
Eut=function(v,e,d){v.movefn=e;v.upfn=d;document.addEventListener("mousemove",e);document.addEventListener("mouseup",d)};
Gv=function(v){document.removeEventListener("mousemove",v.movefn);document.removeEventListener("mouseup",v.upfn);v.movefn=null;v.upfn=null};
TNU=function(v,e){for(var d=document.elementFromPoint(v,e),E=d;E&&E.shadowRoot&&!window.ShadyDOM;){var T=E;E=E.shadowRoot.elementFromPoint(v,e);if(T===E)break;E&&(d=E)}return d};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){var e=SUU(v);return e.length>0?e[0]:v.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){var e=v.type,d=v.currentTarget.__polymerGestures;if(d&&(d=d[e])){if(!v.__polymerGesturesHandled&&(v.__polymerGesturesHandled={},e.slice(0,5)==="touch")){var E=v.changedTouches[0];e==="touchstart"&&v.touches.length===1&&(WLH=E.identifier);if(WLH!==E.identifier)return;FXS||(e==="touchstart"||e==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v)}E=
v.__polymerGesturesHandled;if(!E.skip){for(var T=0,S;T<My.length;T++)S=My[T],d[S.name]&&!E[S.name]&&S.flow&&S.flow.start.indexOf(v.type)>-1&&S.reset&&S.reset();for(T=0;T<My.length;T++)S=My[T],d[S.name]&&!E[S.name]&&(E[S.name]=!0,S[e](v))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){var e=v.changedTouches[0],d=v.type;if(d==="touchstart")akH=e.clientX,ipH=e.clientY,Op7=!1;else if(d==="touchmove"&&!Op7){Op7=!0;d="auto";for(var E=SUU(v),T=0,S;T<E.length;T++)if(S=E[T],S.__polymerGesturesTouchAction){d=S.__polymerGesturesTouchAction;break}E=!1;T=Math.abs(akH-e.clientX);e=Math.abs(ipH-e.clientY);v.cancelable&&(d==="none"?E=!0:d==="pan-x"?E=e>T:d==="pan-y"&&(E=T>e));E?v.preventDefault():
RO("track")}};
xk=function(v,e,d){return PY[e]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v,e,d),!0):!1};
BY=function(v,e,d){return PY[e]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v,e,d),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v,e,d){var E=PY[e],T=E.deps,S=E.name,O=v.__polymerGestures;O||(v.__polymerGestures=O={});for(var b=0,Y,q;b<T.length;b++)Y=T[b],n5j&&w0O.indexOf(Y)>-1&&Y!=="click"||((q=O[Y])||(O[Y]=q={_count:0}),q._count===0&&v.addEventListener(Y,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,uAt(Y)),q[S]=(q[S]||0)+1,q._count=(q._count||0)+1);v.addEventListener(e,d);E.touchAction&&_.Ck(v,E.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v,e,d){var E=PY[e],T=E.deps;E=E.name;var S=v.__polymerGestures;if(S)for(var O=0,b,Y;O<T.length;O++)b=T[O],(Y=S[b])&&Y[E]&&(Y[E]=(Y[E]||1)-1,Y._count=(Y._count||1)-1,Y._count===0&&v.removeEventListener(b,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,uAt(b)));v.removeEventListener(e,d)};
IkS=function(v){My.push(v);for(var e=0;e<v.emits.length;e++)PY[v.emits[e]]=v};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v){for(var e=0,d;e<My.length;e++){d=My[e];for(var E=0,T;E<d.emits.length;E++)if(T=d.emits[E],T===v)return d}return null};
_.Ck=function(v,e){FXS&&v instanceof HTMLElement&&Xk.run(function(){v.style.touchAction=e});
v.__polymerGesturesTouchAction=e};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(v,e,d){e=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});e.detail=d;(0,_.$k)(v).dispatchEvent(e);e.defaultPrevented&&(v=d.preventer||d.sourceEvent)&&v.preventDefault&&v.preventDefault()};
RO=function(v){v=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);v.info&&(v.info.prevent=!0)};
zv=function(v,e,d,E){e&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,v,{x:d.clientX,y:d.clientY,sourceEvent:d,preventer:E,prevent:function(T){return RO(T)}})};
bp$=function(v,e,d){if(v.prevent)return!1;if(v.started)return!0;d=Math.abs(v.y-d);return Math.abs(v.x-e)>=5||d>=5};
YUj=function(v,e,d){if(e){var E=v.moves[v.moves.length-2],T=v.moves[v.moves.length-1],S=T.x-v.x,O=T.y-v.y,b=0;if(E){var Y=T.x-E.x;b=T.y-E.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,"track",{state:v.state,x:d.clientX,y:d.clientY,dx:S,dy:O,ddx:Y,ddy:b,sourceEvent:d,hover:function(){return TNU(d.clientX,d.clientY)}})}};
ynH=function(v,e,d){var E=Math.abs(e.clientX-v.x),T=Math.abs(e.clientY-v.y),S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d||e);!S||mTU[S.localName]&&S.hasAttribute("disabled")||!(isNaN(E)||isNaN(T)||E<=25&&T<=25||dTL(e))||v.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:d})};
qUL=function(v,e,d,E,T){var S;T&&(S=typeof d==="object"&&d!==null)&&(E=v.__dataTemp[e]);E=E!==d&&(E===E||d===d);S&&E&&(v.__dataTemp[e]=d);return E};
hPj=function(){if(lW&&!HY){if(!rn0){rn0=!0;var v=document.createElement("style");v.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(v)}return!0}return!1};
$TO=function(){return KL3};
jW0=function(v,e){KL3=v;Object.setPrototypeOf(v,e.prototype);new e;KL3=null};
sWO=function(v,e){for(var d=0;d<e.length;d++){var E=e[d];if(!!v!=!!E.__hideTemplateChildren__)if(E.nodeType===Node.TEXT_NODE)v?(E.__polymerTextContent__=E.textContent,E.textContent=""):E.textContent=E.__polymerTextContent__;else if(E.localName==="slot")if(v)E.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.$k)((0,_.$k)(E).parentNode).replaceChild(E.__polymerReplaced__,E);else{var T=E.__polymerReplaced__;T&&(0,_.$k)((0,_.$k)(T).parentNode).replaceChild(E,T)}else E.style&&(v?(E.__polymerDisplay__=
E.style.display,E.style.display="none"):E.style.display=E.__polymerDisplay__);E.__hideTemplateChildren__=v;E._showHideChildren&&E._showHideChildren(v)}};
NN0=function(v){return(v=v.__dataHost)&&v._methodHost||v};
V1W=function(v,e,d){var E=d.mutableData?kw0:A0;Z8.mixin&&(E=Z8.mixin(E));var T=function(){return E.apply(this,arguments)||this};
_.V(T,E);T.prototype.__templatizeOptions=d;T.prototype._bindTemplate(v);LLS(T,v,e,d);return T};
t1W=function(v,e,d,E){var T=d.forwardHostProp;if(T&&e.hasHostProps){var S=v.localName=="template",O=e.templatizeTemplateClass;if(!O){if(S){var b=d.mutableData?ouS:Jn0;O=function(){return b.apply(this,arguments)||this};
_.V(O,b);O=e.templatizeTemplateClass=O}else{var Y=v.constructor;O=function(){return Y.apply(this,arguments)||this};
_.V(O,Y);O=e.templatizeTemplateClass=O}var q=e.hostProps,r;for(r in q)O.prototype._addPropertyEffect("_host_"+r,O.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:GwW(T)}),O.prototype._createNotifyingProperty("_host_"+r);cY&&E&&M1O(e,d,E)}v.__dataProto&&Object.assign(v.__data,v.__dataProto);if(S)jW0(v,O),v.__dataTemp={},v.__dataPending=null,v.__dataOld=null,v._enableProperties();else{Object.setPrototypeOf(v,O.prototype);e=e.hostProps;for(var h in e)h="_host_"+h,h in v&&(e=v[h],delete v[h],v.__data[h]=
e)}}};
GwW=function(v){return function(e,d,E){v.call(e.__templatizeOwner,d.substring(6),E[d])}};
LLS=function(v,e,d,E){var T=d.hostProps||{},S;for(S in E.instanceProps){delete T[S];var O=E.notifyInstanceProp;O&&v.prototype._addPropertyEffect(S,v.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:fk0(O)})}if(E.forwardHostProp&&e.__dataHost)for(var b in T)d.hasHostProps||(d.hasHostProps=!0),v.prototype._addPropertyEffect(b,v.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:RPs()})};
fk0=function(v){return function(e,d,E){v.call(e.__templatizeOwner,e,d,E[d])}};
RPs=function(){return function(v,e,d){v.__dataHost._setPendingPropertyOrPath("_host_"+e,d[e],!0,!0)}};
Z8=function(v,e,d){if(wm&&!NN0(v))throw Error("Kd");d=d||{};if(v.__templatizeOwner)throw Error("Ld");v.__templatizeOwner=e;var E=(e?e.constructor:A0)._parseTemplate(v),T=E.templatizeInstanceClass;T||(T=V1W(v,E,d),E.templatizeInstanceClass=T);var S=NN0(v);t1W(v,E,d,S);d=function(){return T.apply(this,arguments)||this};
_.V(d,T);d.prototype._methodHost=S;d.prototype.__dataHost=v;d.prototype.__templatizeOwner=e;d.prototype.__hostProps=E.hostProps;return d};
M1O=function(v,e,d){d=d.constructor._properties;v=v.propertyEffects;e=e.instanceProps;for(var E in v)if(!(d[E]||e&&e[E]))for(var T=v[E],S=0;S<T.length;S++){var O=T[S].info.part;if(!O.signature||!O.signature.static){console.warn("Property '"+E+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
P1L=function(v,e){for(var d;e;)if(d=e.__dataHost?e:e.__templatizeInstance)if(d.__dataHost!=v)e=d.__dataHost;else return d;else e=(0,_.$k)(e).parentNode;return null};
Fk=function(v){return v.localName==="slot"};
xTH=function(){for(var v=QF.prototype,e="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),d={},E=0;E<e.length;d={method$jscomp$33:void 0},E++)d.method$jscomp$33=e[E],v[d.method$jscomp$33]=function(T){return function(){return this.node[T.method$jscomp$33].apply(this.node,arguments)}}(d)};
BNO=function(v,e){for(var d={},E=0;E<e.length;d={name$jscomp$438:void 0},E++)d.name$jscomp$438=e[E],Object.defineProperty(v,d.name$jscomp$438,{get:function(T){return function(){return this.node[T.name$jscomp$438]}}(d),
configurable:!0})};
C13=function(){for(var v=QF.prototype,e=["textContent","innerHTML","className"],d={},E=0;E<e.length;d={name$jscomp$439:void 0},E++)d.name$jscomp$439=e[E],Object.defineProperty(v,d.name$jscomp$439,{get:function(T){return function(){return this.node[T.name$jscomp$439]}}(d),
set:function(T){return function(S){this.node[T.name$jscomp$439]=S}}(d),
configurable:!0})};
XMs=function(){gm=document.documentElement.getAttribute("dir");gm=document.documentElement.getAttribute("dir");for(var v=0;v<uW.length;v++){var e=uW[v];e.__autoDirOptOut||e.setAttribute("dir",gm)}};
Anj=function(){nk=!0;requestAnimationFrame(function(){nk=!1;zPW(lkS);setTimeout(function(){for(var v=0,e=D8.length;v<e;v++)Hps(D8.shift())})})};
zPW=function(v){for(;v.length;)Hps(v.shift())};
Hps=function(v){var e=v[0],d=v[1];v=v[2];try{d.apply(e,v)}catch(E){setTimeout(function(){throw E;})}};
_.Zpt=function(v,e,d){nk||Anj();lkS.push([v,e,d])};
_.Uh=function(v,e,d){nk||Anj();D8.push([v,e,d])};
FLW=function(v,e){e=e===void 0?!1:e;if(!cnS||!wM0||!cnS.handlesDynamicScoping)return null;var d=wM0.ScopingShim;if(!d)return null;var E=d.scopeForNode(v),T=(0,_.$k)(v).getRootNode(),S=function(O){if((0,_.$k)(O).getRootNode()===T){var b=Array.from(cnS.nativeMethods.querySelectorAll.call(O,"*"));b.push(O);for(O=0;O<b.length;O++){var Y=b[O];if((0,_.$k)(Y).getRootNode()===T){var q=d.currentScopeForNode(Y);q!==E&&(q!==""&&d.unscopeNode(Y,q),d.scopeNode(Y,E))}}}};
S(v);return e?(e=new MutationObserver(function(O){for(var b=0;b<O.length;b++)for(var Y=O[b],q=0;q<Y.addedNodes.length;q++){var r=Y.addedNodes[q];r.nodeType===Node.ELEMENT_NODE&&S(r)}}),e.observe(v,{childList:!0,
subtree:!0}),e):null};
QW$=function(){document.body.removeAttribute("unresolved")};
UT0=function(v){var e=v=v.replace(guU,"").replace(uZO,""),d=new nut;d.start=0;d.end=e.length;for(var E=d,T=0,S=e.length;T<S;T++)if(e[T]==="{"){E.rules||(E.rules=[]);var O=E,b=O.rules[O.rules.length-1]||null;E=new nut;E.start=T+1;E.parent=O;E.previous=b;O.rules.push(E)}else e[T]==="}"&&(E.end=T+1,E=E.parent||d);return DTS(d,v)};
DTS=function(v,e){var d=e.substring(v.start,v.end-1);v.parsedCssText=v.cssText=d.trim();v.parent&&(d=e.substring(v.previous?v.previous.end:v.parent.start,v.start-1),d=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(d),d=d.replace(pML," "),d=d.substring(d.lastIndexOf(";")+1),d=v.parsedSelector=v.selector=d.trim(),v.atRule=d.indexOf("@")===0,v.atRule?d.indexOf("@media")===0?v.type=4:d.match(v0t)&&(v.type=7,v.keyframesName=v.selector.split(pML).pop()):d.indexOf("--")===
0?v.type=1E3:v.type=1);if(d=v.rules)for(var E=0,T=d.length,S=void 0;E<T&&(S=d[E]);E++)DTS(S,e);return v};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(v){return v.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var e=arguments[1],d=6-e.length;d--;)e="0"+e;return"\\"+e})};
e3H=function(v,e,d){d=d===void 0?"":d;var E="";if(v.cssText||v.rules){var T=v.rules;if(T&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(T))for(var S=0,O=T.length,b=void 0;S<O&&(b=T[S]);S++)E=e3H(b,e,E);else e?e=v.cssText:(e=v.cssText,e=e.replace(dFj,"").replace(E0M,""),e=e.replace(TIM,"").replace(SSM,"")),(E=e.trim())&&(E="  "+E+"\n")}E&&(v.selector&&(d+=v.selector+" {\n"),d+=E,v.selector&&(d+="}\n\n"));return d};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(v){v=v[0];return!!v&&!!v.selector&&v.selector.indexOf("--")===0};
ai$=function(v){if(v=WvH[v])v._applyShimCurrentVersion=v._applyShimCurrentVersion||0,v._applyShimValidatingVersion=v._applyShimValidatingVersion||0,v._applyShimNextVersion=(v._applyShimNextVersion||0)+1};
ifU=function(v){return v._applyShimCurrentVersion===v._applyShimNextVersion};
IiO=function(v){v._applyShimValidatingVersion=v._applyShimNextVersion;v._validating||(v._validating=!0,Oft.then(function(){v._applyShimCurrentVersion=v._applyShimNextVersion;v._validating=!1}))};
YSO=function(v){if(!v)return"";typeof v==="string"&&(v=UT0(v));return e3H(v,bfL)};
mFH=function(v){!v.__cssRules&&v.textContent&&(v.__cssRules=UT0(v.textContent));return v.__cssRules||null};
qS0=function(v,e,d,E){if(v){var T=!1,S=v.type;if(E&&S===4){var O=v.selector.match(yZM);O&&(window.matchMedia(O[1]).matches||(T=!0))}S===1?e(v):d&&S===7?d(v):S===1E3&&(T=!0);if((v=v.rules)&&!T)for(T=0,S=v.length,O=void 0;T<S&&(O=v[T]);T++)qS0(O,e,d,E)}};
rZM=function(v,e){var d=v.indexOf("var(");if(d===-1)return e(v,"","","");a:{var E=0;var T=d+3;for(var S=v.length;T<S;T++)if(v[T]==="(")E++;else if(v[T]===")"&&--E===0)break a;T=-1}E=v.substring(d+4,T);d=v.substring(0,d);v=rZM(v.substring(T+1),e);S=E.indexOf(",");if(S===-1)return e(d,E.trim(),"",v);T=E.substring(0,S).trim();E=E.substring(S+1).trim();return e(d,T,E,v)};
h3j=function(v){if(pk!==void 0)return pk;if(v.__cssBuild===void 0){var e=v.getAttribute("css-build");if(e)v.__cssBuild=e;else{a:{e=v.localName==="template"?v.content.firstChild:v.firstChild;if(e instanceof Comment&&(e=e.textContent.trim().split(":"),e[0]==="css-build")){e=e[1];break a}e=""}if(e!==""){var d=v.localName==="template"?v.content.firstChild:v.firstChild;d.parentNode.removeChild(d)}v.__cssBuild=e}}return v.__cssBuild||""};
$FS=function(v,e,d,E){for(var T=e._noAccessors,S=Object.getOwnPropertyNames(e),O=0;O<S.length;O++){var b=S[O];if(!(b in E))if(T)v[b]=e[b];else{var Y=Object.getOwnPropertyDescriptor(e,b);Y&&(Y.configurable=!0,Object.defineProperty(v,b,Y))}}for(var q in KvL)e[q]&&(d[q]=d[q]||[],d[q].push(e[q]))};
jdL=function(v,e,d){e=e||[];for(var E=v.length-1;E>=0;E--){var T=v[E];T?Array.isArray(T)?jdL(T,e):e.indexOf(T)<0&&(!d||d.indexOf(T)<0)&&e.unshift(T):console.warn("behavior is null, check for missing or 404 import")}return e};
sds=function(v,e){for(var d in e){var E=v[d],T=e[d];v[d]=!("value"in T)&&E&&"value"in E?Object.assign({value:E.value},T):T}};
Lv$=function(v,e,d){var E={},T=function(){return e.apply(this,arguments)||this};
_.V(T,e);T._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(O)for(var Y=0,q;Y<O.length;Y++)q=O[Y],q.properties&&this.createProperties(q.properties),q.observers&&this.createObservers(q.observers,q.properties);v.properties&&this.createProperties(v.properties);v.observers&&this.createObservers(v.observers,v.properties);this._prepareTemplate()}else e._finalizeClass.call(this)};
T.prototype.created=function(){e.prototype.created.call(this);var Y=E.created;if(Y)for(var q=0;q<Y.length;q++)Y[q].call(this)};
T.prototype._registered=function(){var Y=T.prototype;if(!Y.hasOwnProperty("__hasRegisterFinished")){Y.__hasRegisterFinished=!0;e.prototype._registered.call(this);lW&&b(Y);Y=Object.getPrototypeOf(this);var q=E.beforeRegister;if(q)for(var r=0;r<q.length;r++)q[r].call(Y);if(q=E.registered)for(r=0;r<q.length;r++)q[r].call(Y)}};
T.prototype._applyListeners=function(){e.prototype._applyListeners.call(this);var Y=E.listeners;if(Y)for(var q=0;q<Y.length;q++){var r=Y[q];if(r)for(var h in r)this._addMethodEventListenerToNode(this,h,r[h])}};
T.prototype._ensureAttributes=function(){var Y=E.hostAttributes;if(Y)for(var q=Y.length-1;q>=0;q--){var r=Y[q],h;for(h in r)this._ensureAttribute(h,r[h])}e.prototype._ensureAttributes.call(this)};
T.prototype.ready=function(){e.prototype.ready.call(this);var Y=E.ready;if(Y)for(var q=0;q<Y.length;q++)Y[q].call(this)};
T.prototype.attached=function(){e.prototype.attached.call(this);var Y=E.attached;if(Y)for(var q=0;q<Y.length;q++)Y[q].call(this)};
T.prototype.detached=function(){e.prototype.detached.call(this);var Y=E.detached;if(Y)for(var q=0;q<Y.length;q++)Y[q].call(this)};
T.prototype.attributeChanged=function(Y,q,r){e.prototype.attributeChanged.call(this);var h=E.attributeChanged;if(h)for(var K=0;K<h.length;K++)h[K].call(this,Y,q,r)};
_.vP.Object.defineProperties(T,{properties:{configurable:!0,enumerable:!0,get:function(){var Y={};if(O)for(var q=0;q<O.length;q++)sds(Y,O[q].properties);sds(Y,v.properties);return Y}},
observers:{configurable:!0,enumerable:!0,get:function(){var Y=[];if(O)for(var q=0,r;q<O.length;q++)r=O[q],r.observers&&(Y=Y.concat(r.observers));v.observers&&(Y=Y.concat(v.observers));return Y}}});
if(d){Array.isArray(d)||(d=[d]);var S=e.prototype.behaviors;var O=jdL(d,null,S);T.prototype.behaviors=S?S.concat(d):O}var b=function(Y){if(O)for(var q=O,r=0;r<q.length;r++)$FS(Y,q[r],E,NIj);$FS(Y,v,E,k53)};
lW||b(T.prototype);T.generatedFrom=v;return T};
G5M=function(v){var e=typeof v!=="string"?v:{is:v,notifyObserversOnUndefined:!0};e.fastInit===void 0&&(e.fastInit=!0);return function(d){if(!e.disableInheritanceCheck&&Object.getPrototypeOf(d.prototype).constructor!==_.eo)throw Error("Pd");var E=d.prototype;E.is=e.is;PwL(E,"created",function(){this.hostElement=this;this.polymerController=this});
Vjt(E,d,e.fastInit);e.notifyObserversOnUndefined&&(E._overrideLegacyUndefined=!0);if(o0s)for(var T=_.a(Object.getOwnPropertyNames(E)),S=T.next();!S.done;S=T.next()){S=S.value;var O=Object.getOwnPropertyDescriptor(E,S);O.enumerable===!1&&(O.enumerable=!0,Object.defineProperty(E,S,O))}if("template"in d)var b=function(){return d.template};
else e.template!==void 0&&(b=e.template);if(b!==void 0){var Y;Object.defineProperty(E,"_template",{get:function(){Y===void 0&&(Y=b());return Y},
set:function(q){Y=q},
configurable:!0,enumerable:!0})}Polymer(E);d[JZH]=E}};
Mj3=function(v){v=v===void 0?{}:v;v.fastInit===void 0&&(v.fastInit=!0);return function(e){if(!v.disableInheritanceCheck&&Object.getPrototypeOf(e.prototype).constructor!==d3)throw Error("Qd");Vjt(e.prototype,e,v.fastInit)}};
Vjt=function(v,e,d){d=d===void 0?!1:d;tjW(e);d?PwL(v,"created",function(){this.disableEnforceFastDefaultValuesCheck||fiL(e,this)}):PwL(v,"ready",function(){for(var E={},T=_.a(x0U(this.behaviors)),S=T.next();!S.done;S=T.next())S=S.value,S.properties&&Object.assign(E,P_s(this,S.properties));
Object.assign(E,P_s(this,this.properties));fiL(e,this);T=_.a(Object.keys(E));for(S=T.next();!S.done;S=T.next())S=S.value,this[S]=E[S]})};
fiL=function(v,e){if(o0s){v=new v;for(var d=_.a(Object.getOwnPropertyNames(v)),E=d.next();!E.done;E=d.next())E=E.value,e[E]=v[E];for(d=e;d&&d!==Object.prototype;d=Object.getPrototypeOf(d)){E=_.a(Object.getOwnPropertyNames(d));for(var T=E.next();!T.done;T=E.next())T=T.value,v.hasOwnProperty(T)||Object.defineProperty(v,T,xFL(e,T))}}else v.apply(e)};
xFL=function(v,e){return{get:function(){var d=v[e];return d instanceof Function?d.bind(v):d},
set:function(d){v[e]=d}}};
P_s=function(v,e){if(!e)return{};for(var d={},E=_.a(Object.keys(e)),T=E.next();!T.done;T=E.next())if(T=T.value,!e[T].readOnly){var S=v[T];S!==void 0&&(d[T]=S)}return d};
tjW=function(v){var e=new v;v=v.prototype.properties||{};for(var d=_.a(Object.keys(v)),E=d.next();!E.done;E=d.next())if(E=E.value,e.hasOwnProperty(E)){var T=v[E];typeof T==="function"&&(v[E]=T={type:T});e[E]!=null&&T.type===Object&&(T.type=BIj(e[E].constructor))}};
BIj=function(v){for(var e=_.a(C_t),d=e.next();!d.done;d=e.next())if(d=d.value,v===d)return d;return Object};
XB0=function(v){return function(e,d){e.behaviors=e.behaviors||[];e.behaviors.push(v||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",e,d).prototype:void 0));Object.defineProperty(e,d,{get:function(){return this},
enumerable:!0,configurable:!0})}};
z3t=function(v){v=v===void 0?{}:v;return function(e,d){e.properties=e.properties||{};v.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?v.type=BIj(Reflect.getMetadata("design:type",e,d)):v.type=String);var E=v,T=e.properties[d];e.properties[d]=T?Object.assign({},T,E):E}};
li3=function(v){return function(e,d){e.listeners=e.listeners||{};e.listeners[v]=d}};
HfL=function(){var v=_.Xa.apply(0,arguments);if(v.length===0)throw Error("Rd");return function(e,d){e.observers=e.observers||[];e.observers.push(d+"("+v.join(",")+")")}};
AZ3=function(){var v=_.Xa.apply(0,arguments);return function(e,d,E){var T=Object.getOwnPropertyDescriptor(e,d).get,S="__compute__"+d;Object.defineProperty(e,S,{value:T,enumerable:!0});e.properties=e.properties||{};T=e.properties[d];T||(T={},e.properties[d]=T);T.computed=S+"("+v.join(",")+")";E.get=void 0}};
_.Ew=function(v,e,d){_.kh.call(this);this.JSC$11294_id_=null;this.usingListeners_=!1;this.JSC$11294_listener_=v;this.handler_=d;this.JSC$11294_win_=e||window;this.callback_=(0,_.LX)(this.JSC$11296_doAction_,this)};
Tz=function(v){this.range_=v};
So=function(v){this.range_=v};
bn=function(v,e,d){_.kh.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=v;this.scrollTimer_=new _.Ow(50);this.JSC$11373_eventHandler_=new _.Im(this);this.scrollDelta_=new _.Pn;this.containerIsActuallyContent_=v.tagName==="BODY"||v.tagName==="HTML";this.containerBounds_=Zf0(v);this.containerIsActuallyContent_&&(v=_.jy(),this.containerBounds_.height=v.height,this.containerBounds_.width=v.width);this.margin_=e||0;if(e){if(e=this.containerBounds_.clone(),v=this.margin_){var E=
Math.min(v,e.height*.25);e.top+=E;e.height-=2*E;v=Math.min(v,e.width*.25);e.left+=v;e.width-=2*v}}else e=this.containerBounds_;this.scrollBounds_=e;d||this.JSC$11373_eventHandler_.listen(_.Bn(this.containerNode_),"mousemove",this.JSC$11375_onMouseMove);this.JSC$11373_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11375_onTick_)};
_.Yq=function(v){this.mechanism=v};
m$=function(v,e){this.JSC$11471_key_=v;this.JSC$11471_value_=e};
wBL=function(v){if(v>=55296&&v<=57343||v>1114111)return"\ufffd";v in cZ0&&(v=cZ0[v]);var e="";v>65535&&(v-=65536,e+=String.fromCharCode(v>>>10&1023|55296),v=56320|v&1023);return e+=String.fromCharCode(v)};
FvL=function(v,e){return v<e?1:-1};
g0M=function(){return function(v){return v.charAt(1)==="#"?v.charAt(2)==="X"||v.charAt(2)==="x"?wBL(parseInt(v.substr(3),16)):wBL(parseInt(v.substr(2),10)):Qd0[v.slice(1,-1)]}};
DFL=function(v){return v.slice(1,v.length-1).trim().replace(urj,function(e){return n0L[e]||" "})};
yI=function(v){return v===32||v===9};
qn=function(v,e){return e<v.length?v.charCodeAt(e):-1};
UFM=function(v){for(;v;){if(v._lastLineBlank)return!0;var e=v.type;if(e==="list"||e==="item")v=v._lastChild;else break}return!1};
r3=function(v){if(pBL.test(v)){var e=1,d=0,E=0;for(v[d]=="|"&&d++;d<v.length;){switch(v[d]){case "|":E=1;break;case " ":break;case "\t":break;default:E&&(E=0,e++)}d++}return vNt.test(v)?-e:e}return 0};
ewt=function(v){return v=="table"||v=="row"||v=="cell"};
dsj=function(){return new hW("document",[[1,1],[0,0]])};
ENL=function(){};
K2=function(){var v={safe:!1};v=v||{};v.softbreak=v.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=v};
iy7=function(v,e){var d="";if(v)if(v=v.toLowerCase(),v===" "||T6t.test(v))d="space";else if(SdH.test(v))d="esc";else if(v.length==1){if(!e||WJ0.test(v))d=v}else d=aHW.test(v)?v.replace("arrow",""):v=="multiply"?"*":v;return d};
Yd0=function(v,e){var d=v.hasModifiers;if(e.key)d=iy7(e.key,d);else if(e.detail&&e.detail.key)d=iy7(e.detail.key,d);else{d=e.keyIdentifier;var E="";d&&(d in Oy3?E=Oy3[d]:IHs.test(d)?(d=parseInt(d.replace("U+","0x"),16),E=String.fromCharCode(d).toLowerCase()):E=d.toLowerCase());(d=E)||(d=e.keyCode,E="",Number(d)&&(d>=65&&d<=90?E=String.fromCharCode(32+d):d>=112&&d<=123?E="f"+(d-112+1):d>=48&&d<=57?E=String(d-48):d>=96&&d<=105?E=String(d-96):E=by3[d]),d=E);d=d||""}return d===v.key&&(!v.hasModifiers||
!!e.shiftKey===!!v.shiftKey&&!!e.ctrlKey===!!v.ctrlKey&&!!e.altKey===!!v.altKey&&!!e.metaKey===!!v.metaKey)};
ytM=function(v){return v.length===1?{combo:v,key:v,event:"keydown"}:v.split("+").reduce(function(e,d){var E=d.split(":");d=E[0];E=E[1];d in ms3?(e[ms3[d]]=!0,e.hasModifiers=!0):(e.key=d,e.event=E||"keydown");return e},{combo:v.split(":").shift()})};
qdU=function(v){return v.trim().split(" ").map(function(e){return ytM(e)})};
rtW=function(v,e){if(v&&v.fn){var d=v.fn;v.fn=function(){try{d.apply(this,arguments)}catch(E){if(E instanceof $q)console.warn("Argument '"+E.arg+"'"+(e?" for method '"+e+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw E;}}}return v};
hw0=function(){var v=_.Xa.apply(0,arguments);return v.length===0?function(e){return e}:v.length===1?v[0]:v.reduce(function(e,d){return function(){return e(d.apply(null,_.t7(_.Xa.apply(0,arguments))))}})};
KJL=function(){var v=_.Xa.apply(0,arguments);return function(e){return function(d,E){d=e(d,E);var T=function(){throw Error("Be");},S={getState:d.getState,
dispatch:function(O){return T.apply(null,[O].concat(_.t7(_.Xa.apply(1,arguments))))}};
E=v.map(function(O){return O(S)});
T=hw0.apply(null,_.t7(E))(d.dispatch);return Object.assign({},d,{dispatch:T})}}};
snU=function(v){Object.keys(v).forEach(function(e){var d=v[e];if(typeof d(void 0,{type:$sU})==="undefined")throw Error("Ce`"+e);if(typeof d(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+jnH()})==="undefined")throw Error("De`"+e+"`"+$sU);})};
jo=function(v){for(var e=Object.keys(v),d={},E=0;E<e.length;E++){var T=e[E];typeof v[T]==="function"&&(d[T]=v[T])}var S=Object.keys(d);try{snU(d)}catch(b){var O=b}return function(b,Y){b=b===void 0?{}:b;if(O)throw O;for(var q=!1,r={},h=0;h<S.length;h++){var K=S[h],k=b[K],J=(0,d[K])(k,Y);if(typeof J==="undefined")throw b=Y&&Y.type,Error("Ee`"+(b?'"'+String(b)+'"':"(unknown type)")+"`"+K);r[K]=J;q=q||J!==k}return(q=q||S.length!==Object.keys(b).length)?r:b}};
N60=function(v,e,d){function E(){if(r)throw Error("Fe");return b}
function T(k){if(typeof k!=="function")throw Error("Ge`"+typeof k);if(r)throw Error("He");var J=!0;q===Y&&(q=Y.slice());q.push(k);return function(){if(J){if(r)throw Error("Ie");J=!1;q===Y&&(q=Y.slice());var R=q.indexOf(k);q.splice(R,1);Y=null}}}
function S(k){if(typeof k!=="object"||k===null)var J=!1;else{for(J=k;Object.getPrototypeOf(J)!==null;)J=Object.getPrototypeOf(J);J=Object.getPrototypeOf(k)===J}if(!J)throw Error("Je`"+typeof k);if(typeof k.type==="undefined")throw Error("Ke");if(r)throw Error("Le");try{r=!0,b=O(b,k)}finally{r=!1}J=Y=q;for(var R=0;R<J.length;R++)(0,J[R])();return k}
if(typeof e==="function"&&typeof d==="function"||typeof d==="function"&&typeof arguments[3]==="function")throw Error("Me");typeof e==="function"&&typeof d==="undefined"&&(d=e,e=void 0);if(typeof d!=="undefined"){if(typeof d!=="function")throw Error("Ne`"+typeof d);return d(N60)(v,e)}if(typeof v!=="function")throw Error("Oe`"+typeof v);var O=v,b=e,Y=[],q=Y,r=!1;S({type:$sU});var h={},K=(h.dispatch=S,h.subscribe=T,h.getState=E,h.replaceReducer=function(k){if(typeof k!=="function")throw Error("Pe`"+
typeof k);O=k;S({type:kxM});return K},h[LJ$]=function(){var k={};
return k.subscribe=function(J){function R(){J.next&&J.next(E())}
if(typeof J!=="object"||J===null)throw new TypeError("Qe`"+typeof J);R();return{unsubscribe:T(R)}},k[LJ$]=function(){return this},k},h);
return K};
V9s=function(v){function e(){T&&(T=!1,v());S&&E()}
function d(){requestAnimationFrame(e)}
function E(){var b=Date.now();if(T){if(b-O<2)return;S=!0}else T=!0,S=!1,setTimeout(d,20);O=b}
var T=!1,S=!1,O=0;return E};
sw=function(v){return typeof v==="number"?v:parseFloat(v)||0};
oN7=function(v){return _.Xa.apply(1,arguments).reduce(function(e,d){return e+sw(v["border-"+d+"-width"])},0)};
_.G=function(v,e){e=ZB(Ar(e));v.innerHTML=e};
M9O=function(v){var e=Jtj;e||(e=Gxt(),e=Jtj=_.f0.transpose(e));e=e[v];return typeof e==="string"?e:_.Nn(v)};
t9M=function(v){v=String(v).toLowerCase();var e=Gxt()[v];return typeof e==="string"?e:_.kq(v)};
fHO=function(v){v=v.toLowerCase();v=Gxt()[v];return typeof v==="string"?v:null};
Gxt=function(){if(!Rw7){for(var v=Object.assign({},PIU),e=_.a(xsM),d=e.next();!d.done;d=e.next())d=d.value,v[d.toLowerCase()]=d;Rw7=v}return Rw7};
XJs=function(v,e){var d=window.customElements;return d&&d.get(v)||B6M[v]===!0?2:e.name==="HTMLUnknownElement"?1:e.name==="HTMLElement"&&CI3.test(v)?3:0};
HyW=function(v,e){switch(e){case "innerHTML":return zw$(v)===1?2:null;case "textContent":return v=zw$(v),v===1||v===6?1:null;default:var d,E;return(E=(d=lHM[v.localName])==null?void 0:d[e])!=null?E:null}};
zw$=function(v){var e=v.localName,d=XJs(e,v.constructor);switch(d){case 0:case 1:return At$(e,v);case 3:case 2:return 1;default:_.Z0(d,"got an unknown element classification")}};
At$=function(v,e){var d=Object.hasOwnProperty.call(Zy0,v)?Zy0[v]:null;return d!==null?d:Object.hasOwnProperty.call(ct3,v)&&e instanceof SVGElement?ct3[v]:null};
wJL=function(v,e){return e};
QnM=function(v){return(v=v.split(FJ0,2))?{url:v[0],metadata:v[1]}:null};
uhM=function(v){var e=String(v.url).replace(gNH,encodeURIComponent);if(v=v.metadata){gNH.lastIndex=0;if(gNH.test(v))return null;e+=" "+v}return e};
pJO=function(v){function e(q){var r=q.localName;if(!q.getAttribute("is")&&XJs(r,q.constructor)===2){var h;return(h=Y)!=null?h:Y=document.createElement("polyresinuncustomized")}(q=b[r])||(q=b[r]=document.createElement(r));return q}
var d=v.reportHandler||void 0,E=v.safeTypesBridge||nNS,T=/^$/;if(v=v.allowedIdentifierPrefixes){v=_.a(v);for(var S=v.next();!S.done;S=v.next())T=new RegExp(T.source+"|^"+_.Dsj(S.value))}d&&d(!1,"initResin",null);var O=Us0(T,E,d),b={},Y=null;return function(q,r,h){var K=q.nodeType;if(K!==Node.ELEMENT_NODE){if(K===Node.TEXT_NODE){r=q.parentElement;h=!r;if(r&&r.nodeType===Node.ELEMENT_NODE){K=r.localName;var k=XJs(K,r.constructor);switch(k){case 0:case 1:r=At$(K,r);h=r===1||r===6;break;case 3:case 2:h=
!0;break;default:_.Z0(k,"got an unknown element classification")}}if(h)return function(X){return""+E(X,"STRING",X)}}return function(X){if(!X&&X!==document.all)return X;
d&&d(!0,"Failed to sanitize "+(q.parentElement&&q.parentElement.nodeName)+" #text node to value "+X,q.parentElement);return L2}}var J=q.localName;
K=e(q);var R=null;switch(h){case "attribute":if(t9M(r)in K)break;return function(X){return X};
case "property":if(r in K){R=HyW(K,r);break}if((k=fHO(r))&&k in K)break;return function(X){return X};
default:_.Z0(h,"got an unknown resin type, expected either 'property' or 'attribute'")}var B=h==="attribute"?r.toLowerCase():M9O(r);R||(R=TmH(J,B,function(X){var Z=q.getAttribute(X);return!Z||/[\[\{]/.test(X)?null:Z}));
return function(X){var Z=VI,U=null;if(!X&&X!==document.all)return X;if(R!=null){var F=O[R],g=F.safeType;U=F.safeReplacement;g&&(Z=E(X,g,VI));Z===VI&&(F.filterString?(Z=String(E(X,"STRING",X)),Z=F.filterString(J,B,Z)):F.filterRaw&&(Z=F.filterRaw(J,B,X,q)),Z===U&&(Z=VI))}Z===VI&&(Z=U||L2,d&&d(!0,"Failed to sanitize attribute of <"+J+">: <"+J+" "+B+'="'+X+'">',q));return Z}}};
Us0=function(v,e,d){return[,{filterRaw:function(E,T,S){return S},
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:vT3,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:vT3,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:L2,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:eY7,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(E,T,S){S=
String(S).toLowerCase();return a8S(E,T,S)?S:L2},
safeReplacement:L2,safeType:void 0},,{filterRaw:void 0,filterString:function(E,T,S){return v.test(S)?S:L2},
safeReplacement:L2,safeType:"CONSTANT"},{filterRaw:function(E,T,S,O){if(typeof S==="string")var b=(b=S.match(dUH))?b.map(QnM).filter(Boolean):[];else if(Array.isArray(S))b=S;else return vT3;var Y=b;b=[];var q=[],r={};if(Array.isArray(Y))for(var h=0,K=Y.length;h<K;++h){var k=Y[h],J=k&&k.url;if(J){var R=e(J,"URL",r);if(R){var B=R!==r;(B?b:q).push({url:B?R:J,metadata:k.metadata})}}}else q.push(Y);Y=q.length?JSON.stringify(q):null;q=VI;if(b.length){if(!Array.isArray(b))throw Error();q=b.map(uhM).filter(Boolean).join(" , ")||
VI}Y&&d&&d(!0,"Failed to sanitize attribute value of <"+E+">: <"+E+" "+T+'="'+S+'">: '+Y,O);return q===VI?vT3:q},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
ETj=function(v){var e=pJO(v);return function(d,E,T,S){return S||S===document.all?e(d,E,T)(S):S}};
om=function(v,e){function d(){function T(b,Y,q){for(Y=Reflect.getMetadata("parameters",b)||[];Y.length<=q;)Y.push(null);Y[q]=Y[q]||[];Y[q].push(O);Reflect.defineMetadata(Y,b);return b}
var S=_.Xa.apply(0,arguments);if(this instanceof d)return E.apply(this,S),this;var O=new (Function.prototype.bind.apply(d,[null].concat(_.t7(S))));T.annotation=O;return T}
var E=TGM(e);d.prototype.toString=function(){return"@"+v};
return d.annotationCls=d};
TGM=function(v){return function(){var e=_.Xa.apply(0,arguments),d=this;v.forEach(function(E,T){T=e[T];if(Array.isArray(E))d[E[0]]=T&&T!==void 0?T:E[1];else for(var S in E)d[S]=T&&T[S]!==void 0?T[S]:E[S]})}};
S3t=function(v){return v!==void 0&&v!==null};
JW=function(v){if(typeof v==="string")return v;if(v===void 0||v===null)return""+v;if(v.overriddenName)return v.overriddenName;if(v.name)return v.name;v=v.toString();var e=v.indexOf("\n");return e===-1?v:v.substring(0,e)};
WWH=function(v){v.__forward_ref__=WWH;v.toString=function(){return JW(this())};
return v};
Gz=function(v){return typeof v==="function"&&v.hasOwnProperty("__forward_ref__")&&v.__forward_ref__===WWH?v():v};
aft=function(v){return v?v.map(function(e){return new (Function.prototype.bind.apply(e.type.annotationCls,[null].concat(_.t7(e.args?e.args:[]))))}):[]};
iCH=function(v){for(var e=[],d=0;d<v.length;++d){if(e.indexOf(v[d])>-1){e.push(v[d]);break}e.push(v[d])}return e};
OC$=function(v){return v.length>1?" ("+iCH(v.slice().reverse()).map(function(e){return JW(e.token)}).join(" -> ")+")":""};
bC7=function(v,e,d,E){if(E){var T=Error("Xe``"+(E instanceof Error?E.message:E));T.ngOriginalError=E}else T=Error();T.addKey=IfW;T.keys=[e];T.injectors=[v];T.constructResolvingMessage=d;T.message=T.constructResolvingMessage();T.ngOriginalError=E;return T};
IfW=function(v,e){this.injectors.push(v);this.keys.push(e);this.message=this.constructResolvingMessage()};
Y3U=function(v,e){return bC7(v,e,function(){return"No provider for "+JW(this.keys[0].token)+"!"+OC$(this.keys)})};
mU0=function(v,e){return bC7(v,e,function(){return"Cannot instantiate cyclic dependency!"+OC$(this.keys)})};
yM0=function(v,e,d){return bC7(v,d,function(){var E=JW(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+E+"!"+OC$(this.keys)+"."},e)};
q33=function(v,e){for(var d=[],E=0,T=e.length;E<T;E++){var S=e[E];S&&S.length!=0?d.push(S.map(JW).join(" ")):d.push("?")}return Error("af`"+JW(v)+"`"+d.join(", ")+"`"+JW(v))};
NG0=function(v){var e=void 0,d=void 0;if(v&&v.useClass!==void 0){e=v.useClass;var E=Gz(v.useClass);var T=rMt.factory(E);E=hY3(E)}else v&&v.useExisting!==void 0?(T=function(S){return S},E=[KWW(Mn.get(Gz(v.useExisting)))]):v&&v.useFactory!==void 0?(T=v.useFactory,E=$U$(v.useFactory,v.deps)):(d=v.useValue,T=function(){return v.useValue},E=j9U);
return new s9U(T,E,e,d)};
LWS=function(v){return new keL(Mn.get(Gz(v.provide)),[NG0(v)],v.multi)};
oTj=function(v){v=VPW(v,[]).map(LWS);for(var e=new Map,d=0;d<v.length;d++){var E=v[d],T=e.get(E.key.id);if(T){if(E.multiProvider!==T.multiProvider)throw Error("cf`"+T+"`"+E);if(E.multiProvider)for(var S=0;S<E.resolvedFactories.length;S++)T.resolvedFactories.push(E.resolvedFactories[S]);else e.set(E.key.id,E)}else T=void 0,E.multiProvider?T=new keL(E.key,E.resolvedFactories.slice(),E.multiProvider):T=E,e.set(E.key.id,T)}return Array.from(e.values())};
VPW=function(v,e){v.forEach(function(d){if(d instanceof JMS)e.push({provide:d,useClass:d});else if(d&&typeof d=="object"&&d.provide!==void 0)e.push(d);else if(d instanceof Array)VPW(d,e);else throw Error("$e`"+d);});
return e};
$U$=function(v,e){if(e){var d=e.map(function(E){return[E]});
return e.map(function(E){return GeS(v,E,d)})}return hY3(v)};
hY3=function(v){var e=rMt.parameters(v);if(!e)return[];if(e.some(function(d){return d==null}))throw q33(v,e);
return e.map(function(d){return GeS(v,d,e)})};
GeS=function(v,e,d){var E=null,T=!1;if(!Array.isArray(e))return e instanceof MP0?tPW(e.token,T,null):tPW(e,T,null);for(var S=null,O=0;O<e.length;++O){var b=e[O];if(b instanceof JMS)E=b;else if(b instanceof MP0)E=b.token;else if(b instanceof ffW)T=!0;else if(b instanceof RY0||b instanceof PaL)S=b}E=Gz(E);if(E!=null)return tPW(E,T,S);throw q33(v,d);};
tPW=function(v,e,d){return new xUj(Mn.get(Gz(v)),e,d)};
BG$=function(v,e){for(var d=Array(v.providers.length),E=0;E<v.providers.length;++E){var T=E;if(E<0||E>=v.providers.length)throw Error("bf`"+E);d[T]=e(v.providers[E])}return d};
CaW=function(v){return typeof v==="function"&&rMt.parameters(v).every(function(e){return!!e})};
lfS=function(v){var e=XrU;zYs.get(v)||zYs.set(v,new e);return zYs.get(v)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(v)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(v)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v,e){var d,E;if(v.contains(e))return!0;v=_.tW(v).querySelectorAll("content,slot");for(d=0;d<v.length;++d){var T=_.tW(v[d]).getDistributedNodes();for(E=0;E<T.length;++E)if(T[E].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(T[E],e))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){v.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(v)&&v.preventDefault();v.targetTouches&&(v=v.targetTouches[0],HCS=v.pageX,AML=v.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 v=0,e=f2.length;v<e;v++)document.addEventListener(f2[v],_._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 v=0,e=f2.length;v<e;v++)document.removeEventListener(f2[v],_._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(v){var e=_.tW(v).rootTarget;v.type!=="touchmove"&&ZC0!==e&&(ZC0=e,cMt=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.tW(v).path));if(!cMt.length)return!0;if(v.type==="touchstart")return!1;v=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(v);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(cMt,v.deltaX,v.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){for(var e=[],d=v.indexOf(wr0),E=0;E<=d;E++)if(v[E].nodeType===Node.ELEMENT_NODE){var T=v[E],S=T.style;S.overflow!=="scroll"&&S.overflow!=="auto"&&(S=window.getComputedStyle(T));S.overflow!=="scroll"&&S.overflow!=="auto"||e.push(T)}return e};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v,e,d){if(e||d)for(var E=Math.abs(d)>=Math.abs(e),T=0;T<v.length;T++){var S=v[T];if(E?d<0?S.scrollTop>0:S.scrollTop<S.scrollHeight-S.clientHeight:e<0?S.scrollLeft>0:S.scrollLeft<S.scrollWidth-S.clientWidth)return S}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(v){var e={deltaX:v.deltaX,deltaY:v.deltaY};"deltaX"in v||("wheelDeltaX"in v&&"wheelDeltaY"in v?(e.deltaX=-v.wheelDeltaX,e.deltaY=-v.wheelDeltaY):"wheelDelta"in v?(e.deltaX=0,e.deltaY=-v.wheelDelta):"axis"in v?(e.deltaX=v.axis===1?v.detail:0,e.deltaY=v.axis===2?v.detail:0):v.targetTouches&&(v=v.targetTouches[0],e.deltaX=HCS-v.pageX,e.deltaY=AML-v.pageY));return e};
FW3=function(v){this.element=v;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
gTU=function(v){this.element=v;this.color=window.getComputedStyle(v).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");_.tW(this.waveContainer).appendChild(this.wave);Q9O(this)};
Rm=function(v,e){for(var d in v)if(d.toLowerCase()===e.toLowerCase())return v[d]};
uxU=function(v,e){for(var d in v)if(d.toLowerCase()===e.toLowerCase()){delete v[d];break}};
DUs=function(v){v=_.f0.clone(v);for(var e=0;e<nT0.length;++e){var d=nT0[e],E=Rm(v,d);E&&(v["X-Goog-Upload-Header-"+d]=E,uxU(v,d))}return v};
UUO=function(v){v=_.f0.clone(v);uxU(v,"X-Goog-Upload-Status")};
viH=function(v){return prW.some(function(e){return e.test(v)})};
Ty0=function(v,e){var d;var E=(d=v.formContent)==null?void 0:d.locale;d=E==null?void 0:E.split("-")[0];E=E&&e80.includes(E)?E:d&&e80.includes(d)?d:void 0;E=(E!=null?E:"en").replaceAll("-","_").toLowerCase();var T;v=((T=v.initializationData)==null?0:T.useNightlyRelease)?"nightly":"live";var S;return(e==null?0:(S=e.getEnableAlohaBinarySplit)==null?0:S.call(e))?_.ie(dY$,v):_.ie(Ei3,v,E)};
acU=function(v,e,d,E){if(Ss3&&Wu3===e)return Ss3;Wu3=e;var T=Ty0(v,E);return Ss3=e.feedbackV2GlobalObject?Promise.resolve(e.feedbackV2GlobalObject):new Promise(function(S,O){var b=_.hz("SCRIPT");_.DB(b,T);b.onload=function(){e.feedbackV2GlobalObject?S(e.feedbackV2GlobalObject):O(Error("ff"))};
b.onerror=function(){O(Error("gf`"+T.toString()))};
d.body.appendChild(b)})};
Ics=function(v,e,d,E){if(ils&&Ol$===e)return ils;Ol$=e;var T=Ty0(v,E);return ils=e.feedbackV2GlobalObject?Promise.resolve(e.feedbackV2GlobalObject):new Promise(function(S,O){var b=_.hz("SCRIPT");_.DB(b,T);b.onload=function(){e.feedbackV2GlobalObject?S(e.feedbackV2GlobalObject):O(Error("ff"))};
b.onerror=function(){O(Error("gf`"+T.toString()))};
d.body.appendChild(b)})};
bl3=function(v,e,d,E,T){T=T===void 0?!0:T;var S,O,b,Y,q;return _.I(function(r){switch(r.nextAddress){case 1:return S=Date.now(),r.yield(acU(v,d,E,e),2);case 2:O=r.yieldResult;if(!(T||((Y=v.initializationData)==null?0:Y.useNightlyRelease)||((q=v.initializationData)==null?0:q.isLocalServer))){b=O.initializeFeedbackClient(v,S,e);r.jumpTo(3);break}return r.yield(O.initializeFeedbackClientAsync(v,S,e),4);case 4:b=r.yieldResult;case 3:return b.initiateAloha(),r.return(b)}})};
Ys$=function(v,e,d,E){var T,S,O;return _.I(function(b){if(b.nextAddress==1)return T=Date.now(),b.yield(Ics(v,d,E.document,e),2);if(b.nextAddress!=3)return S=b.yieldResult,b.yield(S.initializeFeedbackClientAsync(v,T,e,E),3);O=b.yieldResult;O.initiateAloha();return b.return(O)})};
mY0=function(v,e,d){var E=!0;E=E===void 0?!0:E;var T,S,O,b,Y,q,r,h,K,k;return _.I(function(J){T=d||_.TO;if((S=e)==null?0:(b=(O=S).getEnableAlohaBinarySplit)==null?0:b.call(O)){Y=T;if(Y.isFormOpened)throw q=Error("hf"),q.name="DuplicateFormError",q;Y.isFormOpened=!0;v.callbacks=v.callbacks||{};r=v.callbacks.onClose||function(){};
v.callbacks.onClose=function(R){Y.isFormOpened=!1;r(R)};
try{return J.return(Ys$(v,e,Y,T))}catch(R){throw Y.isFormOpened=!1,R;}}else{h=T;if(h.isFormOpened)throw K=Error("hf"),K.name="DuplicateFormError",K;h.isFormOpened=!0;v.callbacks=v.callbacks||{};k=v.callbacks.onClose||function(){};
v.callbacks.onClose=function(R){h.isFormOpened=!1;k(R)};
try{return J.return(bl3(v,e,h,T.document,E))}catch(R){throw h.isFormOpened=!1,R;}}_.s9(J)})};
Kuj=function(v,e){return _.I(function(d){return d.return(new Promise(function(E){var T=yCM(e!=null?e:"")+"/aloha_form_properties?productId="+v;qsW(T,function(S){S=S.target;var O=null;try{var b=JSON,Y=b.stringify;if(S.JSC$9787_xhr_){var q=S.JSC$9787_xhr_.responseText;q.indexOf(")]}'\n")==0&&(q=q.substring(5));var r=(0,_.PP)(q)}else r=void 0;O=zTj(rC0,Y.call(b,r))}catch(h){Y=new rC0,r=h8$(),r=_.xq(r,13,!1),r=_.xq(r,14,!0),r=_.xq(r,15,!0),r=_.xq(r,20,!1),O=_.hr(Y,1,r)}E(O)},"GET","",{},2E3,!0)}))})};
yCM=function(v){return viH(v)?v:"https://www.google.com/tools/feedback"};
Nyt=function(v){v=v.match(new RegExp($Yj,"gi"))||[];v=_.a(v);for(var e=v.next();!e.done;e=v.next()){e=e.value;a:{var d=_.a(j43);for(var E=d.next();!E.done;E=d.next())if(E.value.test(e)){d=!1;break a}d=!0}if(!d)a:{d=_.a(s4t);for(E=d.next();!E.done;E=d.next())if(E.value.test(e)){d=!0;break a}d=!1}if(d)return!0}return!1};
k3H=function(v,e){var d={},E=Object.keys(v);E=_.a(E);for(var T=E.next();!T.done;T=E.next())T=T.value,d[T]=e(T,v[T]);return d};
Lut=function(v){switch(v){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"}};
oiL=function(v){if(window.crypto&&window.crypto.getRandomValues)try{var e=Array(v),d=new Uint8Array(v);window.crypto.getRandomValues(d);for(var E=0;E<e.length;E++)e[E]=d[E];return e}catch(S){}e=Array(v);for(d=0;d<v;d++){E=Date.now();for(var T=0;T<E%23;T++)e[d]=Math.random();e[d]=Math.floor(Math.random()*256)}if(VTU)for(d=1,E=0;E<VTU.length;E++)e[d%v]^=e[(d-1)%v]/4^VTU.charCodeAt(E),d++;return e};
BP=function(v){v=oiL(v);for(var e=[],d=0;d<v.length;d++)e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(v[d]&63));return e.join("")};
JCM=function(){var v=_.TO.ytLoggingDocDocumentNonce_;v||(v=BP(16),_.pw("ytLoggingDocDocumentNonce_",v));return v};
MTL=function(v){v&&_.tI("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:G3U,clientScreenNonce:v})};
tT0=function(v){return _.Bb("client-screen-nonce-store",{})[v===void 0?0:v]};
fct=function(v,e){e=e===void 0?0:e;var d=_.Bb("client-screen-nonce-store");d||(d={},_.xc("client-screen-nonce-store",d));d[e]=v};
R8U=function(v){v=v===void 0?0:v;return v===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+v};
PPt=function(v){return _.Bb(R8U(v===void 0?0:v))};
_.Xf=function(v){return(v=PPt(v===void 0?0:v))?new C2({veType:v,youtubeData:void 0,jspbYoutubeData:void 0}):null};
xYO=function(){var v=_.Bb("csn-to-ctt-auth-info");v||(v={},_.xc("csn-to-ctt-auth-info",v));return v};
Bys=function(){return Object.values(_.Bb("client-screen-nonce-store",{})).filter(function(v){return v!==void 0})};
_.zz=function(v){v=tT0(v===void 0?0:v);if(!v&&!_.zr("USE_CSN_FALLBACK",!0))return null;v||(v="UNDEFINED_CSN");return v?v:null};
X6$=function(v){for(var e=_.a(Object.values(CP0)),d=e.next();!d.done;d=e.next())if(_.zz(d.value)===v)return!0;return!1};
z8S=function(v,e,d){var E=xYO();(d=_.zz(d))&&delete E[d];e&&(E[v]=e)};
ln=function(v){return xYO()[v]};
_.HP=function(v,e,d,E){d=d===void 0?0:d;if(v!==tT0(d)||e!==_.Bb(R8U(d)))if(z8S(v,E,d),fct(v,d),_.xc(R8U(d),e),e=function(){setTimeout(function(){MTL(v)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(e)}catch(T){e()}else e()};
lcH=function(v,e){e=e===void 0?"":e;var d=[],E;for(E in v)if(v.hasOwnProperty(E)){var T=e!==""?e+"."+E:E;typeof v[E]==="object"?d.push.apply(d,_.t7(lcH(v[E],T))):d.push([T,v[E]])}d.sort();return d};
_.Z_=function(v){var e=_.Xa.apply(1,arguments);if(!AW(v)||e.some(function(E){return!AW(E)}))throw Error("jf");
e=_.a(e);for(var d=e.next();!d.done;d=e.next())HlU(v,d.value)};
HlU=function(v,e){for(var d in e)if(AW(e[d])){if(d in v&&!AW(v[d]))throw Error("kf");d in v||(v[d]={});HlU(v[d],e[d])}else if(ACW(e[d])){if(d in v&&!ACW(v[d]))throw Error("lf");d in v||(v[d]=[]);Zls(v[d],e[d])}else v[d]=e[d];return v};
Zls=function(v,e){e=_.a(e);for(var d=e.next();!d.done;d=e.next())d=d.value,AW(d)?v.push(HlU({},d)):ACW(d)?v.push(Zls([],d)):v.push(d);return v};
AW=function(v){return typeof v==="object"&&!Array.isArray(v)};
ACW=function(v){return typeof v==="object"&&Array.isArray(v)};
w6t=function(v){for(var e=_.a(Object.entries(cC0)),d=e.next();!d.done;d=e.next())if(d=_.a(d.value),d.next(),d=d.next().value,d==="SLI_STATUS_"+v)return d;return"SLI_STATUS_UNKNOWN"};
_.cP=function(v,e,d,E){return Fu$(v,e,function(){return new _.Q4H(v,e,d,E)})};
_.git=function(){return _.cP("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
u8O=function(){return _.cP("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
w3=function(){return _.cP("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
nit=function(){return _.cP("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
DYH=function(){return _.cP("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
UYM=function(){return _.cP("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
eDO=function(v){v&&(v.dataset?v.dataset[p6$()]="true":_.pY([_.Ea(vZ$)],v,"data-loaded","true".toString()))};
d6H=function(v){return v?v.dataset?v.dataset[p6$()]:v.getAttribute("data-loaded"):null};
p6$=function(){return EZj.loaded||(EZj.loaded="loaded".replace(/\-([a-z])/g,function(v,e){return e.toUpperCase()}))};
_.Ff=function(v,e,d){TWS(v,e,d===void 0?null:d)};
_.Wj3=function(v,e){v&&e&&(v=""+_.gH(e),(v=SY0[v])&&_.DCM(v))};
TWS=function(v,e,d){d=d===void 0?null:d;var E=_.aXU(typeof v==="string"?v:v.toString()),T=document.getElementById(E),S=T&&d6H(T),O=T&&!S;S?e&&e():(e&&(S=_.il(E,e),e=""+_.gH(e),SY0[e]=S),O||(T=iP0(v,E,function(){d6H(T)||(eDO(T),_.UCt(E),_.IH(function(){_.vj0(E)},0))},d)))};
iP0=function(v,e,d,E){E=E===void 0?null:E;var T=_.hz("SCRIPT");T.id=e;T.onload=function(){d&&setTimeout(d,0)};
T.onreadystatechange=function(){switch(T.readyState){case "loaded":case "complete":T.onload()}};
E&&T.setAttribute("nonce",E);_.DB(T,typeof v==="string"?_.ou(v):v);v=document.getElementsByTagName("head")[0]||document.body;v.insertBefore(T,v.firstChild);return T};
_.aXU=function(v){var e=document.createElement("a");l6(e,v);return"js-"+QI(e.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
OPS=function(v){var e=_.Bb("INNERTUBE_HOST_OVERRIDE");e&&(v=String(e)+String(_.g3(v)));return v};
IXt=function(v){var e={};_.N("json_condensed_response")&&(e.prettyPrint="false");return v=jq3(v,e)};
_.un=function(v){return p4(v)?"same-origin":"include"};
_.n2=function(v){return p4(v)?"same-origin":"cors"};
D_=function(v,e,d){d=d===void 0?{}:d;v={method:e===void 0?"POST":e,mode:_.n2(v),credentials:_.un(v)};e={};for(var E=_.a(Object.keys(d)),T=E.next();!T.done;T=E.next())T=T.value,d[T]&&(e[T]=d[T]);Object.keys(e).length>0&&(v.headers=e);return v};
_.Uw=function(v,e){e=e===void 0?{}:e;return"service:"+v+"/"+Object.keys(e).sort().map(function(d){return d+":"+e[d]}).join("/")};
bP0=function(v){var e,d,E,T;v=(e=_.L(v,_.p2))==null?void 0:(d=e.watchEndpointSupportedOnesieConfig)==null?void 0:(E=d.html5PlaybackOnesieConfig)==null?void 0:(T=E.commonConfig)==null?void 0:T.url;if(!v)return[];e=new _.vF(v);return e.JSC$10022_domain_?["https://"+e.JSC$10022_domain_+"/generate_204"]:[]};
_.y4S=function(){return YYH()||oH3()||m60&&Bi("version/")?!0:_.Bb("EOM_VISITOR_DATA")?!1:!0};
qY0=function(v){var e=v.docid||v.video_id||v.videoId||v.id;if(e)return e;e=v.raw_player_response;e||(v=v.player_response)&&(e=JSON.parse(v));return e&&e.videoDetails&&e.videoDetails.videoId||null};
r4S=function(v){return v.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
eX=function(v){return!isNaN(Number(v))&&!_.IU(v)};
_.Ez=function(v,e,d,E){E=E===void 0?!0:E;var T=_.Bb("VALID_SESSION_TEMPDATA_DOMAINS",[]),S=_.DV(window.location.href);S&&T.push(S);S=_.DV(v);if(_.lL(T,S)||!S&&_.aU(v,"/"))if(T=document.createElement("a"),l6(T,v),v=T.href)if(v=_.g3(v),v=_.dV(v))E&&!e.csn&&(e.itct||e.ved)&&(e=Object.assign({csn:_.zz()},e)),d?(d=parseInt(d,10),isFinite(d)&&d>0&&hDt(v,e,d)):hDt(v,e)};
$6M=function(v){var e=_.Bb("VALID_SESSION_TEMPDATA_DOMAINS",[]),d=_.DV(window.location.href);d&&e.push(d);d=_.DV(v);if(!(_.lL(e,d)||!d&&_.aU(v,"/")))return null;v=_.g3(v);(v=_.dV(v))?(v=Kj7(v),v=(v=_.Kw.get(v,void 0)||null)?_.Fy(v):{}):v=null;return v};
hDt=function(v,e,d){v=Kj7(v);e=e?_.q_(e):"";d=d||5;_.y4S()&&_.$L(v,e,d)};
Kj7=function(v){for(var e=_.a(jA0),d=e.next();!d.done;d=e.next())v=_.TE(v,d.value);return"ST-"+QI(v).toString(36)};
_.sAt=function(v){if(v.requestFullscreen)v=v.requestFullscreen(void 0);else if(v.webkitRequestFullscreen)v=v.webkitRequestFullscreen();else if(v.mozRequestFullScreen)v=v.mozRequestFullScreen();else if(v.msRequestFullscreen)v=v.msRequestFullscreen();else if(v.webkitEnterFullscreen)v=v.webkitEnterFullscreen();else return Promise.reject(Error("uf"));return v instanceof Promise?v:Promise.resolve()};
_.WF=function(v){var e;_.z40(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.SX()==v&&(e=document):e=v;if(e&&(v=_.z40(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],e))){v.call(e)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.SX=function(){var v=v===void 0?!1:v;var e=_.z40(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(v)for(;e&&e.shadowRoot;)e=e.shadowRoot.fullscreenElement;return e?e:null};
_.aq=function(v,e){e=e===void 0?!0:e;v.addEventListener("wheel",NWM);v.overscrollConfig={cooldown:e}};
_.Oz=function(v){v.overscrollConfig=void 0;v.removeEventListener("wheel",NWM)};
NWM=function(v){var e=v.deltaY,d=v.target,E=null;if(window.Polymer&&window.Polymer.Element){if(d=v.path||v.composedPath&&v.composedPath()){d=_.a(d);for(var T=d.next();!T.done&&(T=T.value,!kk0(T,e));T=d.next())if(T.overscrollConfig){E=T;break}}}else for(;d&&!kk0(d,e);){if(d.overscrollConfig){E=d;break}d=d.parentElement}E&&(e=E.overscrollConfig,e.cooldown?(E=v.deltaY,d=e.lastDeltaY||0,e.lastDeltaY=E,T=e.lastStopped||0,d&&T&&d>0==E>0?Math.abs(d)>=Math.abs(E)?(E=T+1200,d=!1):(E=T+600,d=!0):(E=Date.now()+
600,d=!0),E>Date.now()&&(v.preventDefault(),d&&(e.lastStopped=Date.now()))):v.preventDefault())};
kk0=function(v,e){return e<0&&v.scrollTop>0||e>0&&v.scrollTop<v.scrollHeight-v.clientHeight-1?(v=getComputedStyle(v).overflowY,v=="auto"||v=="scroll"):!1};
_.Iq=function(v,e,d,E){E||(E={bubbles:!0,cancelable:!1,composed:!0});d!==null&&d!==void 0&&(E.detail=d);var T=new CustomEvent(e,E);_.N("untrack_fire_custom_event_killswitch")?v.dispatchEvent(T):i3(function(){return void v.dispatchEvent(T)});
return T};
LjW=function(v){var e=window,d=function(E){e.removeEventListener("yt-navigate-start",d);return v.call(e,E)};
e.addEventListener("yt-navigate-start",d,void 0)};
_.b4=function(v,e,d,E){e=new Vr0(e,!(E===void 0||!E),d);_.Iq(v,"yt-action",e);return e.returnValue};
_.YB=function(v,e,d){return _.b4(v,e,d,!0)};
_.ya=function(v,e,d,E){e&&e.length&&e.forEach(function(T){var S=BBt(T);S&&(_.N("handle_service_request_actions")&&T.commandMetadata&&T.commandMetadata.webCommandMetadata&&T.commandMetadata.webCommandMetadata.sendPost?_.mN(d?d:v,[T]):_.YB(v,S,[T,d,E]))})};
_.mN=function(v,e){var d=[v];e&&d.push.apply(d,e);e=_.b4(v,"yt-service-request",d);return e.length>0&&(e=e[0],_.Iq(v,"yt-service-request-sent",e),e&&e.ajaxPromise)?(e.ajaxPromise.then(function(E){_.Iq(v,"yt-service-request-completed",E)},function(E){_.Iq(v,"yt-service-request-error",{error:E,
params:d})},v),e.ajaxPromise):_.qg()};
_.hU=function(v,e){if(_.N("handle_service_request_actions"))_.ya(e,v,e);else{v=_.a(v);for(var d=v.next();!d.done;d=v.next()){d=d.value;var E=void 0;((E=_.L(d,_.rV))==null?0:E.commands)?_.hU(_.L(d,_.rV).commands,e):(E=void 0,((E=_.L(d,_.KB))==null?0:E.actions)?_.hU(_.L(d,_.KB).actions,e):(E=void 0,((E=_.L(d.commandMetadata,_.$B))==null?0:E.sendPost)?_.mN(e,[d]):_.ya(e,[d],e)))}}};
_.J4H=function(v,e,d){e=e===void 0?{}:e;typeof e==="function"&&(e={callback:e});d||e._c&&e._c.jsl&&e._c.jsl.h||_.f0.extend(e,{_c:{jsl:{h:_.Bb("GAPI_HINT_PARAMS")}}});(e.gapiHintOverride||_.Bb("GAPI_HINT_OVERRIDE"))&&(d=_.QU(document.location.href).gapi_jsh)&&_.f0.extend(e,{_c:{jsl:{h:d}}});oZM(v,e)};
_.sz=function(v,e,d){e=e===void 0?{}:e;v=(v=v in jX?jX[v]:d)||"";d={};for(var E in e){d={key$jscomp$836:d.key$jscomp$836};d.key$jscomp$836=E;var T=function(S){return function(){return String(e[S.key$jscomp$836])}}(d);
v=v.replace(new RegExp("\\$\\{"+d.key$jscomp$836+"\\}","gi"),T);v=v.replace(new RegExp("\\$"+d.key$jscomp$836,"gi"),T)}return v};
_.Ng=function(v,e){return Gk7(v in jX?jX[v]:{},e)};
Gk7=function(v,e){var d=_.Bb("I18N_PLURAL_RULES");d||(d=function(E){return E==1?"one":"other"});
return(v=v["case"+e]||v[d(e)])?v.replace("#",e.toString()):e+""};
fXS=function(v){var e=Mr7(v),d=document.getElementById(e),E=d&&d6H(d);E||d&&!E||(d=trU(v,e,function(){if(!d6H(d)){eDO(d);_.UCt(e);var T=_.kB(_.vj0,e);_.IH(T,0)}}))};
trU=function(v,e,d){var E=document.createElement("link");E.id=e;E.onload=function(){d&&setTimeout(d,0)};
v=_.ou(v);_.vu(E,v,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(E);return E};
Mr7=function(v){var e=_.hz("A");l6(e,Jr(v));return"css-"+QI(e.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.P0t=function(v){var e=RDj();v!==e&&(e=_.LB(),!_.N("web_autonav_allow_off_by_default")&&v||_.Va(0,141,!0),_.Va(0,140,!v),e.save())};
RDj=function(){var v=_.LB();return _.N("web_autonav_allow_off_by_default")&&!v.getFlag(141)&&_.Bb("AUTONAV_OFF_BY_DEFAULT")?!1:!v.getFlag(140)};
x60=function(v,e){var d,E;v=((d=v.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(E=d.videoAuthorizationToken)==null?void 0:E.credentialTransferTokens)||[];for(d=0;d<v.length;++d)if(v[d].scope===e)return v[d].token||void 0};
BWj=function(v){for(var e=0,d=0;d<v.length;d++)e=e*31+v.charCodeAt(d),d<v.length-1&&(e%=0x800000000000);return e%1E5};
_.oq=function(v){return _.AE("ytcsi."+(v||"")+"data_")||C0L(v)};
_.XXM=function(v){v=_.oq(v);v.metadata||(v.metadata={});return v.metadata};
_.zD3=function(v){v=_.oq(v);v.tick||(v.tick={});return v.tick};
_.JU=function(v){v=_.oq(v);if(v.gel){var e=v.gel;e.gelInfos||(e.gelInfos={});e.gelTicks||(e.gelTicks={})}else v.gel={gelTicks:{},gelInfos:{}};return v.gel};
_.lXH=function(v){v=_.JU(v);v.gelInfos||(v.gelInfos={});return v.gelInfos};
HPO=function(v){var e=_.oq(v).nonce;e||(e=BP(16),_.oq(v).nonce=e);return e};
C0L=function(v){var e={tick:{},info:{}};_.pw("ytcsi."+(v||"")+"data_",e);return e};
A4L=function(){var v=_.AE("ytcsi.debug");v||(v=[],_.pw("ytcsi.debug",v),_.pw("ytcsi.reference",{}));return v};
_.GE=function(v){v=v||"";var e=ZPj();if(e[v])return e[v];var d=A4L(),E={timerName:v,info:{},tick:{},span:{},jspbInfo:[]};d.push(E);return e[v]=E};
c4W=function(v){v=v||"";var e=ZPj();e[v]&&delete e[v];var d=A4L(),E={timerName:v,info:{},tick:{},span:{},jspbInfo:[]};d.push(E);e[v]=E};
ZPj=function(){var v=_.AE("ytcsi.reference");if(v)return v;A4L();return _.AE("ytcsi.reference")};
_.Fjj=function(v){return wX$[v]||"LATENCY_ACTION_UNKNOWN"};
nZM=function(v,e,d){d=d===void 0?{}:d;var E=!1;_.zr("ytLoggingEventsDefaultDisabled",!1)&&(E=!0);E=E?null:MG;d=d===void 0?{}:d;var T=Math.round(d.timestamp||(0,_.E$)());_.NG(e,1,T<Number.MAX_SAFE_INTEGER?T:0);T=new QAW;if(d.lact)_.NG(T,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)_.NG(T,1,-1);else{var S=_.TN();_.NG(T,1,isFinite(S)?S:-1)}if(d.sequenceGroup&&!_.N("web_gel_sequence_info_killswitch")){S=d.sequenceGroup;var O=Ovj(S),b=new gZH;_.NG(b,2,O);_.L0(b,1,S);_.hr(T,3,b);d.endOfSequence&&delete uPH[d.sequenceGroup]}_.hr(e,
33,T);(d.sendIsolatedPayload?r8t:hg0)(v,{endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},E)};
_.tU=function(){return(_.N("csi_use_time_origin")||_.N("csi_use_time_origin_tvhtml5"))&&_.Mg.timeOrigin?Math.floor(_.Mg.timeOrigin):_.Mg.timing.navigationStart};
_.D6L=function(v,e){_.fB("_start",v,e)};
_.Rq=function(v,e){if(!_.N("web_csi_action_sampling_enabled")||!_.oq(e).actionDisabled){var d=_.GE(e||"");_.Z_(d.info,v);v.loadType&&(d=v.loadType,_.XXM(e).loadType=d);_.Z_(_.lXH(e),v);d=HPO(e);e=_.oq(e).cttAuthInfo;U6U().info(v,d,e)}};
pXH=function(){var v,e,d,E;return((E=_.dk().resolve(_.eG(Vf))==null?void 0:(v=oI())==null?void 0:(e=v.loggingHotConfig)==null?void 0:(d=e.csiConfig)==null?void 0:d.debugTicks)!=null?E:[]).map(function(T){return Object.values(T)[0]})};
_.fB=function(v,e,d){if(!_.N("web_csi_action_sampling_enabled")||!_.oq(d).actionDisabled){var E=HPO(d),T;if(T=_.N("web_csi_debug_sample_enabled")&&E){(_.dk().resolve(_.eG(Vf))==null?0:oI())&&!vlH&&(vlH=!0,_.fB("gcfl",(0,_.E$)(),d));var S,O,b;T=(_.dk().resolve(_.eG(Vf))==null?void 0:(S=oI())==null?void 0:(O=S.loggingHotConfig)==null?void 0:(b=O.csiConfig)==null?void 0:b.debugSampleWeight)||0;if(S=T!==0)b:{S=pXH();if(S.length>0)for(O=0;O<S.length;O++)if(v===S[O]){S=!0;break b}S=!1}S?(T=BWj(E)%T!==0,
_.oq(d).debugTicksExcludedLogged||(S={},S.debugTicksExcluded=T,_.Rq(S,d)),_.oq(d).debugTicksExcludedLogged=!0):T=!1}if(!T){v[0]!=="_"&&evt(v,d,e);T=_.GE(d||"");T.tick[v]=e||(0,_.E$)();if(T.callback&&T.callback[v])for(T=_.a(T.callback[v]),S=T.next();!S.done;S=T.next())S=S.value,S();T=_.JU(d);T.gelTicks&&(T.gelTicks[v]=!0);S=_.zD3(d);T=e||(0,_.E$)();_.N("log_repeated_ytcsi_ticks")?v in S||(S[v]=T):S[v]=T;S=_.oq(d).cttAuthInfo;v==="_start"?U6U().baseline(E,e,S):U6U().tick(v,E,e,S);_.dSt(d);return T}}};
evt=function(v,e,d){if(_.Mg.mark)if(v.startsWith("mark_")||(v="mark_"+v),e&&(v+=" ("+e+")"),d===void 0||_.N("web_csi_disable_alt_time_performance_mark"))_.Mg.mark(v);else{d=_.N("csi_use_performance_navigation_timing")?d-_.Mg.timeOrigin:d-(_.Mg.timeOrigin||_.Mg.timing.navigationStart);try{_.Mg.mark(v,{startTime:d})}catch(E){}}};
Els=function(){var v,e=(v=_.Mg.getEntriesByType)==null?void 0:v.call(_.Mg,"mark");e&&e.forEach(function(d){if(d.name.startsWith("mark_")){var E;(E=_.Mg.clearMarks)==null||E.call(_.Mg,d.name)}})};
_.Tst=function(){switch(XzM()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.SQ$=function(v){var e={},d=function(S,O,b){O=O.match("_rid")?O.split("_rid")[0]:O;typeof b==="number"&&(b=JSON.stringify(b));S.requestIds?S.requestIds.push({endpoint:O,id:b}):S.requestIds=[{endpoint:O,id:b}]};
v=_.a(Object.entries(v));for(var E=v.next();!E.done;E=v.next()){var T=_.a(E.value);E=T.next().value;T=T.next().value;switch(E){case "GetBrowse_rid":d(e,E,T);break;case "GetGuide_rid":d(e,E,T);break;case "GetHome_rid":d(e,E,T);break;case "GetPlayer_rid":d(e,E,T);break;case "GetSearch_rid":d(e,E,T);break;case "GetSettings_rid":d(e,E,T);break;case "GetTrending_rid":d(e,E,T);break;case "GetWatchNext_rid":d(e,E,T);break;case "yt_red":e.isRedSubscriber=!!T;break;case "yt_ad":e.isMonetized=!!T}}return e};
aeM=function(v,e,d,E,T,S){if(!_.N("web_csi_action_sampling_enabled")||!_.oq(S).actionDisabled){var O=_.JU(S);if(O.gelSpans)O.gelSpans[v]=!0;else{var b={};O.gelSpans=(b[v]=!0,b)}Wkt++;v={spanName:v,spanLengthUsec:String(Math.round(e*1E3)),spanNonce:Wkt};E&&(v.spanInfo=E);T&&(v.parentSpanNonce=T);d&&(v.spanStartTimeUsec=String(Math.round(d*1E3)));_.GE(S||"").span[String(v.spanName)]=v;d=_.JU(S);d.gelSpans||(d.gelSpans={});_.Z_(d.gelSpans,v);d=HPO(S);S=_.oq(S).cttAuthInfo;U6U().span(v,d,S);return v.spanNonce}};
_.i$0=function(v){var e=_.PF("aft",v);if(e)return e;e=_.Bb((v||"")+"TIMING_AFT_KEYS",["ol"]);for(var d=e.length,E=0;E<d;E++){var T=_.PF(e[E],v);if(T)return T}return NaN};
_.O$7=function(v,e){_.pw("ytglobal.timing"+(e||"")+"ready_",v)};
_.PF=function(v,e){if(v=_.zD3(e)[v])return typeof v==="number"?v:v[v.length-1]};
_.dSt=function(v){var e=_.PF("_start",v),d=_.i$0(v),E=!Ie0;e&&d&&E&&(bqW(b$U,new YQj(Math.round(d-e),v)),Ie0=!0)};
y9t=function(v){C0L(v);mS7();Els();v||(_.Bb("TIMING_ACTION")&&_.xc("PREVIOUS_ACTION",_.Bb("TIMING_ACTION")),_.xc("TIMING_ACTION",""))};
_.qQj=function(v){v=v===void 0?{}:v;_.Hb(function(){xB();c4W();y9t();_.O$7(!1);v.cttAuthInfo&&(_.oq().cttAuthInfo=v.cttAuthInfo);_.xc("TIMING_AFT_KEYS",[]);v.isHot?_.BF({loadType:"hot"}):_.BF({loadType:"warm"});_.xc("TIMING_ACTION","");delete _.Bb("TIMING_INFO",{}).yt_lt;_.Hb(_.D6L)(v.startTime,void 0)})()};
_.Xq=function(v,e,d,E){e=e===void 0?{}:e;_.Hb(function(){var T=d?d:v;CB(T);var S=e.sampleRate;if(!_.N("web_csi_action_sampling_enabled")||S===void 0||S<=1)S=!1;else{var O=HPO(T);S=BWj(O)%S!==0}S&&(_.oq(T).actionDisabled=!0);_.GE(T||"").info.actionType=v;e.cttAuthInfo&&(_.oq(T).cttAuthInfo=e.cttAuthInfo);_.xc(T+"TIMING_ACTION",v);_.Hb(_.D6L)(e.startTime,T);S={actionType:E||_.Fjj(v)};e.logPreviousAction&&(S.previousAction=_.Fjj(_.Bb("TIMING_ACTION")));(O=_.zz())&&O!=="UNDEFINED_CSN"&&(S.clientScreenNonce=
O);_.BF(S,T);_.O$7(!0,T)})()};
CB=function(v){_.Hb(function(){xB(v);c4W(v);y9t(v)})()};
r90=function(){_.Hb(function(){var v=[],e;for(e in _.AE("ytcsi.".slice(0,-1)))e.endsWith("data_")&&v.push(e.slice(0,-5));v=_.a(v);for(e=v.next();!e.done;e=v.next())CB(e.value);xB()})()};
_.Kks=function(v){return _.Hb(function(){return _.hvH("_start",v)})()};
_.BF=function(v,e,d){_.Hb(_.Rq)(v,e,d===void 0?!1:d)};
_.zE=function(v,e,d){return _.Hb(_.fB)(v,e,d)};
_.hvH=function(v,e){return _.Hb(function(){var d=_.zD3(e);return v in d})()};
jx0=function(v){if(!_.N("universal_csi_network_ticks"))return"";v=_.mq(v)||"";for(var e=Object.keys($SU),d=0;d<e.length;d++){var E=e[d];if(v.includes(E))return E}return""};
NsO=function(v){if(!_.N("universal_csi_network_ticks"))return function(){};
var e=$SU[v];return e?(_.l4(e),function(){var d=_.N("universal_csi_network_ticks")?(d=sxH[v])?_.l4(d):!1:!1;return d}):function(){}};
_.l4=function(v,e,d){return _.Hb(function(){if(_.hvH(v,d))return!1;_.zE(v,e,d);return!0})()};
_.HF=function(v,e,d){_.Hb(function(){if(!_.Kks(d)||_.hvH(v,d))return!1;_.zE(v,e,d);return!0})()};
_.AU=function(v){return _.Hb(_.PF)(v,void 0)};
xB=function(v){_.Kks(v)&&_.zE("aa",void 0,v)};
_.J9O=function(v,e,d,E,T,S,O,b,Y){var q=kBM();b=new C2({veType:e,youtubeData:S,jspbYoutubeData:b});S=Zm({},q);T&&(S.cttAuthInfo=T);T={csn:q,pageVe:b.getAsJson()};_.N("expectation_logging")&&Y&&Y.screenCreatedLoggingExpectations&&(T.screenCreatedLoggingExpectations=Y.screenCreatedLoggingExpectations);d&&d.visualElement?(T.implicitGesture={parentCsn:d.clientScreenNonce,gesturedVe:d.visualElement.getAsJson()},O&&(T.implicitGesture.gestureType=O)):d&&_.xf(new _.kL("newScreen() parent element does not have a VE - rootVe",
e));E&&(T.cloneCsn=E);v?GN("screenCreated",T,v,S):_.tI("screenCreated",T,S);bqW(KIt,new LkU(q));cF.clear();V$j.clear();ol0.clear();return q};
wV=function(v,e,d,E,T,S){S=S===void 0?{}:S;GBO(v,e,d,[E],T===void 0?!1:T,S)};
GBO=function(v,e,d,E,T,S){T=T===void 0?!1:T;S=S===void 0?{}:S;Object.assign(S,Zm({cttAuthInfo:ln(e)||void 0},e));for(var O=_.a(E),b=O.next();!b.done;b=O.next()){b=b.value;var Y=b.getAsJson();(_.f0.isEmpty(Y)||!Y.trackingParams&&!Y.veType)&&_.xf(Error("vf"));if(_.N("no_client_ve_attach_unless_shown")){var q=M$3(b,e);if(Y.veType&&!V$j.has(q)&&!ol0.has(q)&&!T){if(!_.N("il_attach_cache_limit")||cF.size<1E3){cF.set(q,[v,e,d,b]);return}_.N("il_attach_cache_limit")&&cF.size>1E3&&_.xf(new _.kL("IL Attach cache exceeded limit"))}b=
M$3(d,e);cF.has(b)?t$O(d,e):ol0.set(b,!0)}}E=E.filter(function(r){r.csn!==e?(r.csn=e,r=!0):r=!1;return r});
d={csn:e,parentVe:d.getAsJson(),childVes:_.R2(E,function(r){return r.getAsJson()})};
e==="UNDEFINED_CSN"?Fq("visualElementAttached",S,d):v?GN("visualElementAttached",d,v,S):_.tI("visualElementAttached",d,S)};
Rv3=function(v,e,d,E,T){feO(v,e,d,T)};
feO=function(v,e,d,E){PyU(d,e);var T=Zm({cttAuthInfo:ln(e)||void 0},e);d={csn:e,ve:d.getAsJson(),eventType:1};E&&(d.clientData=E);e==="UNDEFINED_CSN"?Fq("visualElementShown",T,d):v?GN("visualElementShown",d,v,T):_.tI("visualElementShown",d,T)};
xSW=function(v,e,d,E){PyU(d,e);var T=Zm({cttAuthInfo:ln(e)||void 0},e);d={csn:e,ve:d.getAsJson(),eventType:4};E&&(d.clientData=E);e==="UNDEFINED_CSN"?Fq("visualElementShown",T,d):v?GN("visualElementShown",d,v,T):_.tI("visualElementShown",d,T)};
Bst=function(v,e,d,E,T){var S=(E=E===void 0?!1:E)?16:8;E=Zm({cttAuthInfo:ln(e)||void 0,endOfSequence:E},e);d={csn:e,ve:d.getAsJson(),eventType:S};T&&(d.clientData=T);e==="UNDEFINED_CSN"?Fq("visualElementHidden",E,d):v?GN("visualElementHidden",d,v,E):_.tI("visualElementHidden",d,E)};
XA$=function(v,e,d,E,T){Cy3(v,e,d,void 0,E,T)};
Cy3=function(v,e,d,E,T){PyU(d,e);E=E||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var S=Zm({cttAuthInfo:ln(e)||void 0},e);d={csn:e,ve:d.getAsJson(),gestureType:E};T&&(d.clientData=T);e==="UNDEFINED_CSN"?Fq("visualElementGestured",S,d):v?GN("visualElementGestured",d,v,S):_.tI("visualElementGestured",d,S)};
zvS=function(v,e,d,E){var T=Zm({cttAuthInfo:ln(e)||void 0},e);d={csn:e,ve:d.getAsJson(),clientData:E};e==="UNDEFINED_CSN"?Fq("visualElementStateChanged",T,d):v?GN("visualElementStateChanged",d,v,T):_.tI("visualElementStateChanged",d,T)};
le0=function(){var v=oiL(16);for(var e=[],d=0;d<v.length;d++)e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(v[d]&63));return e.join("")};
Fq=function(v,e,d){H$M.push({payloadName:v,payload:d,jspbPayload:void 0,options:e});A90||(A90=jBs())};
hiH=function(v){if(H$M){for(var e=_.a(H$M),d=e.next();!d.done;d=e.next())d=d.value,d.payload&&(d.payload.csn=v.csn,_.tI(d.payloadName,d.payload,d.options));H$M.length=0}A90=0};
M$3=function(v,e){return""+v.getAsJson().veType+v.getAsJson().veCounter+e};
PyU=function(v,e){if(_.N("no_client_ve_attach_unless_shown")){var d=M$3(v,e);V$j.set(d,!0);t$O(v,e)}};
t$O=function(v,e){v=M$3(v,e);cF.has(v)&&(e=cF.get(v)||[],wV(e[0],e[1],e[2],e[3],!0),cF.delete(v))};
Zm=function(v,e){_.N("log_sequence_info_on_gel_web")&&(v.sequenceGroup=e);return v};
_.Qa=function(v,e,d){_.Hb(wV)(void 0,v,e,d)};
_.gV=function(v,e,d){_.Hb(GBO)(void 0,v,e,d)};
_.u4=function(v,e){_.Hb(Rv3)(void 0,v,e,void 0,void 0,void 0)};
_.nB=function(v,e,d){_.Hb(function(){_.wZ(e,function(E){xSW(void 0,v,E,d)})})()};
_.Dm=function(v,e,d,E){_.Hb(function(){_.wZ(e,function(T){Bst(void 0,v,T,d,E)})})()};
_.Uz=function(v,e,d){_.Hb(XA$)(void 0,v,e,d,void 0)};
_.pB=function(v,e,d,E){_.Hb(Cy3)(void 0,v,e,d,E,void 0)};
_.vK=function(v,e,d){_.Hb(zvS)(void 0,v,e,d,void 0)};
Z$s=function(v,e){e7.set(v,e)};
c9$=function(v){return dg.initialized?dg.enabledSpans?dg.enabledSpans[v]:!0:!1};
wA7=function(v,e){if(v){e=e===void 0?1:e;if(v){v.endTime=(0,_.E$)();e&&(v.status=e);e=_.a(dg.processors);for(var d=e.next();!d.done;d=e.next()){var E=void 0,T=void 0;(T=(E=d.value).onSpanEnd)==null||T.call(E,v)}}v!==dg.stack[dg.stack.length-1]&&_.xf(Error("yf`"+v.name));dg.stack.pop()}};
Fkj=function(v,e,d){if(c9$(v)){var E=dg.nextSpanId++,T=dg.stack[dg.stack.length-1];v={id:E,parentId:T==null?void 0:T.id,name:v,attributes:e,traceId:T?T.traceId:E,sessionId:dg.sessionId,startTime:(0,_.E$)(),status:0};T&&(T.children||(T.children=[]),T.children.push(v));T=_.a(dg.processors);for(e=T.next();!e.done;e=T.next()){var S=E=void 0;(S=(E=e.value).onSpanStart)==null||S.call(E,v)}}else v=void 0;v?dg.stack.push(v):v=void 0;if(!v)return d();try{var O=d(v);wA7(v);return O}catch(b){throw wA7(v,2),
b;}};
Qx$=function(){};
glM=function(v,e){var d=Object.keys(v);v=new _.kL("[Command Handler] "+e,{filteredCommandNames:d,originalCommand:v});_.RI(v)};
uOS=function(v,e){glM(v,e+" was called but not set")};
nlt=function(v){return function(){return new v}};
Eo=function(v){return function(){return _.dk().resolve(v)}};
DS7=function(v,e){var d=_.L(v,_.HV);if(d&&(d=e[d.signal]))return d();v=_.a(Object.keys(v));for(d=v.next();!d.done;d=v.next())if(d=d.value,e[d]&&(d=e[d]))return d()};
_.Ta=function(v,e,d,E){return{browseEndpoint:{browseId:v},commandMetadata:{webCommandMetadata:{url:e,rootVe:d,webPageType:E===void 0?"WEB_PAGE_TYPE_BROWSE":E}}}};
USM=function(v,e,d){var E=e=e===void 0?0:e;d=d===void 0?0:d;var T=d-E;return _.S7(v,"PPSV",void 0,void 0,(T>600?0:T<60||d<=0||E/d>.9)?0:e)};
_.S7=function(v,e,d,E,T){var S="/watch?v="+v;v={videoId:v};e&&(v.playlistId=e,S+="&list="+e);E&&(S+="&pp="+E);T&&(v.startTimeSeconds=T,S+="&t="+T+"s");e={watchEndpoint:v,commandMetadata:{webCommandMetadata:{url:S,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};d&&(e.clickTrackingParams=d);E&&(_.L(e,_.p2).playerParams=E);return e};
pAt=function(v){return{browseEndpoint:{browseId:"VL"+v},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+v,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
vw$=function(v){if(v){var e;if(v){var d=(e=_.L(v.commandMetadata,_.$B))==null?void 0:e.url;e=!(!d||d==="/service_ajax")}else e=!1;if(e)return v;var E;if(v=(E=_.L(v,_.rV))==null?void 0:E.commands)for(E=_.a(v),v=E.next();!v.done;v=E.next())if(v=vw$(v.value))return v}};
_.WK=function(v){return{runs:[{text:v}]}};
eMH=function(v,e){return v&&e?{runs:[{text:v,navigationEndpoint:e}]}:void 0};
aG=function(v){return v?_.WK(v):void 0};
_.iq=function(v){return v?{simpleText:v}:void 0};
_.Oo=function(v){var e=v.type;v=v.payload;e={type:e};v!==void 0&&(e.payload=v);return e};
d50=function(v,e,d){for(var E=Object.assign({},v),T=_.a(Object.keys(e)),S=T.next();!S.done;S=T.next()){S=S.value;var O=v[S],b=e[S];if(b===void 0)delete E[S];else if(O===void 0)E[S]=b;else if(Array.isArray(b)&&Array.isArray(O))E[S]=d?[].concat(_.t7(O),_.t7(b)):b;else if(!Array.isArray(b)&&_.Qj(b)&&!Array.isArray(O)&&_.Qj(O))E[S]=d50(O,b,d);else if(typeof b===typeof O)E[S]=b;else return e=new _.kL("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:S,originalValue:O,updateValue:b}),
_.RI(e),v}return E};
SAt=function(v){if(!v.length)return"";try{if(EwO)return EwO.decode(v);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(v)}catch(O){}for(var e=0,d=[],E=v.length;e<E;){for(var T=0;T<1024&&e<E;){var S=v[e++];if(S<128)T$O[T++]=S;else{if(S<224)S=(S&31)<<6|v[e++]&63;else if(S<240)S=(S&15)<<12|(v[e++]&63)<<6|v[e++]&63;else{if(T+1===1024){--e;break}S=(S&7)<<18|(v[e++]&63)<<12|(v[e++]&63)<<6|v[e++]&63;S-=65536;T$O[T++]=55296|S>>10;S=56320|S&1023}T$O[T++]=S}}S=String.fromCharCode.apply(String,
T$O);T<1024&&(S=S.substring(0,T));d.push(S)}return d.join("")};
aGt=function(v,e){var d;if((d=W4W)==null?0:d.encodeInto)return e=W4W.encodeInto(v,e),e.read<v.length?v.length*4:e.written;for(var E=d=0;E<v.length;E++){var T=v.charCodeAt(E);T<128?e[d++]=T:(T<2048?e[d++]=T>>6|192:((T&64512)===55296&&E+1<v.length&&(v.charCodeAt(E+1)&64512)===56320?(T=65536+((T&1023)<<10)+(v.charCodeAt(++E)&1023),e[d++]=T>>18|240,e[d++]=T>>12&63|128):e[d++]=T>>12|224,e[d++]=T>>6&63|128),e[d++]=T&63|128)}return d};
i6M=function(v,e,d){if(e&&d&&d.buffer===e.exports.memory.buffer){var E=e.realloc(d.byteOffset,v);if(E)return new Uint8Array(e.exports.memory.buffer,E,v)}v=e?new Uint8Array(e.exports.memory.buffer,e.malloc(v),v):new Uint8Array(v);d&&v.set(d);return v};
_.bq=function(v){v=new O6L(new IG0([_.U0(decodeURIComponent(v))]));if(b63(v,2)){var e=IG(v);var d=v.pos;var E=v.arrayView;d=d===void 0?0:d;var T=e===void 0?-1:e;d=d===void 0?0:d;T=T===void 0?-1:T;if(E.totalLength&&T){T<0&&(T=E.totalLength-d);E.focus(d);if(!(d-E.arrayPos+T<=E.arrays[E.arrayIdx].length)){var S=E.arrayIdx,O=E.arrayPos;E.focus(d+T-1);O=new Uint8Array(E.arrayPos+E.arrays[E.arrayIdx].length-O);for(var b=0,Y=S;Y<=E.arrayIdx;Y++)O.set(E.arrays[Y],b),b+=E.arrays[Y].length;E.arrays.splice(S,
E.arrayIdx-S+1,O);E.arrayIdx=0;E.arrayPos=0;E.focus(d)}S=E.arrays[E.arrayIdx];E=new DataView(S.buffer,S.byteOffset+d-E.arrayPos,T)}else E=new DataView(new ArrayBuffer(0));E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength);v.pos+=e;e=E}else e=void 0;e=e?SAt(e):void 0;v=b63(v,4)?IG(v):void 0;E=YAt[v];if(typeof E==="undefined")throw v=new _.kL("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:v}),_.RI(v),v;return{entityTypeFieldNumber:v,entityType:E,entityId:e}};
_.rg=function(v,e,d){d=d===void 0?0:d;var E=new m5j;if(W4W)v=W4W.encode(v);else{var T=new Uint8Array(Math.ceil(v.length*1.2)),S=aGt(v,T);T.length<S&&(T=new Uint8Array(S),S=aGt(v,T));T.length>S&&(T=T.subarray(0,S));v=T}v!==void 0&&(yR(E,18),T=v.length,yR(E,T),qE(E,T),E.buf.set(v,E.pos),E.pos+=T);v=yyL[e];if(typeof v==="undefined")throw d=new _.kL("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:e}),_.RI(d),d;v!==void 0&&(yR(E,32),yR(E,v));yR(E,40);yR(E,1);e=new Uint8Array(E.buf.buffer,
E.buf.byteOffset,E.pos);return encodeURIComponent(_.GQ(e,d))};
qAt=function(v){v=v.key||v.id;if(!v)throw Error("Af");return v};
hM7=function(v,e){v=v===void 0?{}:v;return ryU(v,e)};
K4s=function(v,e,d,E){if(E===void 0)return E=Object.assign({},v[e]||{}),d=(delete E[d],E),E={},Object.assign({},v,(E[e]=d,E));var T={},S={};return Object.assign({},v,(S[e]=Object.assign({},v[e],(T[d]=E,T)),S))};
$5H=function(v,e,d,E,T){var S=v[e];if(S==null||!S[d])return v;E=d50(S[d],E,T==="REPEATED_FIELDS_MERGE_OPTION_APPEND");T={};S={};return Object.assign({},v,(S[e]=Object.assign({},v[e],(T[d]=E,T)),S))};
_.h_=function(v,e,d){return v[e]?v[e][d]||null:null};
siH=function(){if(jiW)return jiW();var v={};jiW=dt("PersistentEntityStoreDb",{objectStores:(v.EntityStore={addedAtVersion:1},v.EntityAssociationStore={addedAtVersion:2},v),shared:!1,upgrade:function(e,d){d(1)&&H8(lR(e,"EntityStore",{keyPath:"key"}),"entityType","entityType");d(2)&&(e=lR(e,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),H8(e,"byParentEntityKey","parentEntityKey"),H8(e,"byChildEntityKey","childEntityKey"))},
version:3});return jiW()};
N$0=function(v){return _.Q8(siH(),v)};
KQ=function(v){return window.Int32Array?new Int32Array(v):Array(v)};
L43=function(v){return _.Q8(k1s(),v)};
V6H=function(v){return new $H("WRONG_DATA_TYPE",{encoderVersion:v})};
owj=function(v){return v instanceof Error?new $H("UNKNOWN_ENCODE_ERROR",{originalMessage:v.message}):new $H("UNKNOWN_ENCODE_ERROR")};
Jy7=function(v){return v instanceof Error?new $H("UNKNOWN_DECODE_ERROR",{originalMessage:v.message}):new $H("UNKNOWN_DECODE_ERROR")};
G10=function(v,e){v=v instanceof $H?v:e(v);_.RI(v);throw v;};
M6W=function(v){v=(new TextEncoder).encode(v).subarray(0,16);var e=new Uint8Array(16);e.set(v);return e};
fG0=function(v){var e=t6U[v];if(e)return e;_.xf(new _.kL("Entity model not found.",{entityType:v}))};
_.j7=function(){RMO||(RMO=Px0());return RMO};
Px0=function(){var v,e,d;return _.I(function(E){if(E.nextAddress==1)return _.qq(E,2),E.yield(_.ea(),4);if(E.nextAddress!=2){v=E.yieldResult;if(!v||!_.N_()||typeof _.TO.BroadcastChannel==="undefined")return E.return();e=new x5H;return E.return(new so(v,e))}d=_.jl(E);d instanceof Error&&_.RI(d);return E.return()})};
_.NE=function(v,e){var d;return _.I(function(E){if(E.nextAddress==1){d=v.mutations;if(!d||d.length<=0)return E.return();e&&e.dispatch(_.Oo({type:"ENTITY_LOADED",payload:d}));return E.yield(B$L(d),2)}d.length=0;_.s9(E)})};
B$L=function(v){var e;return _.I(function(d){return d.nextAddress==1?d.yield(_.j7(),2):(e=d.yieldResult)?d.yield(_.kH(e,"readwrite",function(E){for(var T={},S=_.a(v),O=S.next(),b={};!O.done;b={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},O=S.next())b.mutation$jscomp$4=O.value,b.mutation$jscomp$4.entityKey&&Cx$(b.mutation$jscomp$4)&&(b.mutationEntityType$jscomp$3=(0,_.f0.getAnyKey)(b.mutation$jscomp$4.payload),O=void 0,b.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(O=function(Y){return function(){return _.XD7(E,
Y.mutation$jscomp$4.payload[Y.mutationEntityType$jscomp$3],Y.mutationEntityType$jscomp$3)}}(b)),b.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(O=function(Y){return function(){return zMS(E,Y.mutation$jscomp$4.entityKey)}}(b)),b.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(O=function(Y){return function(){return lG0(E,Y.mutation$jscomp$4.entityKey,Y.mutation$jscomp$4.payload[Y.mutationEntityType$jscomp$3],Y.mutationEntityType$jscomp$3)}}(b)),O&&(T[b.mutation$jscomp$4.entityKey]=
T[b.mutation$jscomp$4.entityKey]?T[b.mutation$jscomp$4.entityKey].then(O):O()));
return lY.all(Object.values(T))}),0):d.return()})};
Cx$=function(v){var e;v=(e=v.options)==null?void 0:e.persistenceOption;return v==="ENTITY_PERSISTENCE_OPTION_PERSIST"||v==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Z6j=function(v,e){var d,E;_.I(function(T){if(T.nextAddress==1)return T.yield(_.j7(),2);if(T.nextAddress!=3)return(d=T.yieldResult)?T.yield(_.kH(d,"readonly",function(S){var O={},b=Object.keys(e).map(function(Y){var q=e[Y]?[].concat(_.t7(e[Y])):[];return H6t(S,Y,q,O)});
return lY.all(b).then(function(){return O})}),3):T.return();
E=T.yieldResult;Object.keys(E).length>0&&v.dispatch(Ay3(E));_.s9(T)})};
H6t=function(v,e,d,E){return LQ(v,e,d).then(function(T){E[e]=cy3(d,T)})};
cy3=function(v,e){if(e.length!==v.length)throw Error("Df");return e.reduce(function(d,E,T){d[v[T]]=E;return d},{})};
QiS=function(v){var e=v.filter(function(T){var S;return(T==null?void 0:(S=T.transferEntity)==null?void 0:S.transferState)==="TRANSFER_STATE_COMPLETE"}).length,d=v.filter(function(T){var S;
return(T==null?void 0:(S=T.transferEntity)==null?void 0:S.transferState)==="TRANSFER_STATE_FAILED"}).length,E=v.filter(function(T){var S;
return(T==null?void 0:(S=T.transferEntity)==null?void 0:S.transferState)&&wD7.includes(T.transferEntity.transferState)});
if(!(e||E!=null&&E.length))return 0;e=_.F4O(E)+e;v=v.length-d;return v===0?0:Math.round(e*100/v)/100};
_.F4O=function(v){var e=[];e=e.concat.apply(e,_.t7(v.filter(function(S){return S.streamEntity}).map(function(S){var O=Object.assign({},S.streamEntity),b,Y=(b=S.transferEntity)==null?void 0:b.transferState;
O.streamsProgress=O.streamsProgress||[];O.streamsProgress=O.streamsProgress.map(function(q){var r=Object.assign({},q);r.numBytesDownloaded=Y==="TRANSFER_STATE_COMPLETE"?q.numTotalBytes:q.numBytesDownloaded;return r});
return O}).map(function(S){return S.streamsProgress})));
var d=v=0;e=_.a(e);for(var E=e.next();!E.done;E=e.next()){var T=E.value;E=Number(T.numBytesDownloaded);T=Number(T.numTotalBytes);d+=isNaN(E)?0:E;v+=isNaN(T)?0:T}return v===0?0:Math.round(d*100/v)/100};
gwW=function(v){if(!v||!v.expirationTimestamp||!v.action)return!1;var e=(0,_.E$)()/1E3;return Number(v.expirationTimestamp)>=e};
VR=function(v){return v&&v.expirationTimestamp&&v.action?gwW(v)&&v.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.oG=function(v){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(v||"TRANSFER_STATE_UNKNOWN")};
uYL=function(v){var e=new m5j;if(v!==void 0){var d=Math.ceil(Math.log2(v.length*4+2)/7);d=d===void 0?2:d;yR(e,10);e.submessagePosStack.push(e.pos);e.submessagePosStack.push(d);e.pos+=d;qE(e,v.length*1.2);d=aGt(v,e.buf.subarray(e.pos));e.pos+d>e.buf.length&&(qE(e,d),d=aGt(v,e.buf.subarray(e.pos)));e.pos+=d;v=e.submessagePosStack.pop();d=e.submessagePosStack.pop();for(var E=e.pos-d-v;v--;){var T=v?128:0;e.view.setUint8(d++,E&127|T);E>>=7}}e=new Uint8Array(e.buf.buffer,e.buf.byteOffset,e.pos);return(new TextDecoder("utf-8")).decode(e)};
_.J_=function(v){var e=0;v=_.a(v);for(var d=v.next(),E={};!d.done;E={transferState$jscomp$3:void 0},d=v.next()){var T=d.value,S=void 0;d=(S=T.streamEntity)!=null?S:{};S=void 0;E.transferState$jscomp$3=(S=T.transferEntity)==null?void 0:S.transferState;S=T=void 0;((T=d)==null?0:(S=T.streamsProgress)==null?0:S.length)&&d.streamsProgress.forEach(function(O){return function(b){b=Number(O.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?b.numTotalBytes:b.numBytesDownloaded);isFinite(b)&&(e+=b)}}(E))}return e};
nwH=function(v){return v.some(function(e){var d;if(!(e==null?0:(d=e.transferEntity)==null?0:d.transferState)){var E;return!(e==null?0:(E=e.policyEntity)==null?0:E.action)||e.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return wD7.includes(e.transferEntity.transferState)})};
D5W=function(v,e){if(!e)return!1;if(_.N("of_pb_en_po_ks"))return!0;var d;v=(d=_.h_(v,"offlineVideoPolicy",_.rg(e,"offlineVideoPolicy")))!=null?d:void 0;return!!v&&VR(v)};
_.pDj=function(v){var e=["TRANSFER_STATE_COMPLETE"];e=e===void 0?U53:e;return v.filter(function(d){var E,T;return e.includes((T=(E=d.transferEntity)==null?void 0:E.transferState)!=null?T:"TRANSFER_STATE_UNKNOWN")})};
v_t=function(v,e){if(e){var d,E=(d=_.h_(v,"playbackData",_.rg(e,"playbackData")))!=null?d:null,T;d=(T=_.h_(v,"transfer",_.rg(e,"transfer")))!=null?T:null;var S;T=(S=_.h_(v,"offlineVideoStreams",_.rg(e,"offlineVideoStreams")))!=null?S:null;var O;v=(O=_.h_(v,"offlineVideoPolicy",_.rg(e,"offlineVideoPolicy")))!=null?O:null;if(E||d||T||v)return{playbackDataEntity:E,transferEntity:d,streamEntity:T,policyEntity:v}}};
_.Ga=function(v){var e=v.playbackData;if(!e)return[];var d=[];e=_.a(Object.keys(e));for(var E=e.next();!E.done;E=e.next()){var T=E.value;if(!exL(v,_.bq(T).entityId)&&(E=v_t(v,_.bq(T).entityId))){var S=void 0,O=void 0;T=(O=Number((S=_.h_(v,"playbackData",T))==null?void 0:S.streamDownloadTimestampSeconds))!=null?O:(0,_.E$)();d.push({entity:E,streamDownloadTimestamp:T})}}return d.sort(function(b,Y){var q=b.streamDownloadTimestamp,r=Y.streamDownloadTimestamp;return r===q?b.entity.streamEntity&&!Y.entity.streamEntity?
1:-1:r-q}).map(function(b){return b.entity})};
dNM=function(v){return _.pDj(_.Ga(v))};
_.E_W=function(v){return _.Ga(v).filter(function(e){var d;if(((d=e.policyEntity)==null?0:d.action)&&e.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var E;if((E=e.transferEntity)==null?0:E.transferState){var T;return wD7.includes((T=e.transferEntity)==null?void 0:T.transferState)}return!0})};
exL=function(v,e){var d;return((d=_.h_(v,"downloadStatusEntity",_.rg(e,"downloadStatusEntity")))==null?void 0:d.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Tos=function(v){var e;if(v==null?0:(e=v.playbackDataEntity)==null?0:e.key)return _.bq(v.playbackDataEntity.key).entityId;var d;if(v==null?0:(d=v.transferEntity)==null?0:d.key)return _.bq(v.transferEntity.key).entityId;var E;if(v==null?0:(E=v.streamEntity)==null?0:E.key)return _.bq(v.streamEntity.key).entityId;var T;if(v==null?0:(T=v.policyEntity)==null?0:T.key)return _.bq(v.policyEntity.key).entityId};
W33=function(v){var e=new Set,d;v=(d=v.mainDownloadsListEntity)==null?void 0:d[STH];var E;if(!(v==null?0:(E=v.downloads)==null?0:E.length))return e;var T;v==null||(T=v.downloads)==null||T.forEach(function(S){(S==null?0:S.videoItem)&&e.add(S.videoItem)});
return e};
ME=function(v,e){if(e){var d=_.h_(v,"mainVideoEntity",_.rg(e,"mainVideoEntity")),E=_.h_(v,"downloadStatusEntity",_.rg(e,"downloadStatusEntity")),T=_.h_(v,"ytMainChannelEntity",_.rg(e,"ytMainChannelEntity")),S={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};v=v_t(v,e);E=(E==null?void 0:E.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.N("woffle_render_failed_download_state_ks")&&(E==null?void 0:E.downloadState)==="DOWNLOAD_STATE_FAILED";!v&&E&&(v=S);if(v&&d&&
T)return Object.assign({},{videoEntity:d,channelEntity:T},v)}};
ie7=function(v,e){return aS$(v,e)==="TRANSFER_STATE_COMPLETE"&&D5W(v,e)};
Oe7=function(v,e){if(!e)return!1;var d;v=(d=_.h_(v,"playbackData",_.rg(e,"playbackData")))!=null?d:void 0;return!!v&&!!v.playerResponseJson};
aS$=function(v,e){if(!e)return"TRANSFER_STATE_UNKNOWN";var d=_.h_(v,"transfer",_.rg(e,"transfer"));if(d){var E;return(E=d.transferState)!=null?E:"TRANSFER_STATE_UNKNOWN"}d=_.h_(v,"offlineOrchestrationActionWrapperEntity",_.rg(e,"offlineOrchestrationActionWrapperEntity"));v=_.h_(v,"mainVideoEntity",_.rg(e,"mainVideoEntity"));return d||v?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
ISS=function(v,e){if(!e)return"TRANSFER_STATE_UNKNOWN";if(v=_.h_(v,"transfer",_.rg(e,"transfer"))){var d;return(d=v.transferState)!=null?d:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
beH=function(v,e){return e&&(v=_.h_(v,"videoPlaybackPositionEntity",_.rg(e,"videoPlaybackPositionEntity")),v==null?0:v.lastPlaybackPositionSeconds)?Number(v.lastPlaybackPositionSeconds):0};
mNH=function(v,e){return YTW(v).some(function(d){var E;return(d==null?void 0:(E=d.mainPlaylistEntity)==null?void 0:E.playlistId)===e})};
qT0=function(v,e,d){var E=ydO(v,e);if(!E.length)return[];e=[];E=_.a(E);for(var T=E.next();!T.done;T=E.next()){T=T.value;var S=ME(v,T);d&&aS$(v,T)!=="TRANSFER_STATE_COMPLETE"||S&&e.push(S)}return e};
ydO=function(v,e){if(!e)return[];var d=_.rg(e,"mainPlaylistEntity"),E;e=(E=v.mainPlaylistEntity)==null?void 0:E[d];E=[];if(e==null||!e.videos)return E;e=_.a(e.videos);for(d=e.next();!d.done;d=e.next()){d=d.value;var T=void 0,S=void 0,O=void 0,b=(T=v)==null?void 0:(S=T.mainPlaylistVideoEntity)==null?void 0:(O=S[d])==null?void 0:O.video;b&&(d=_.bq(b).entityId)&&E.push(d)}return E};
rdH=function(v,e){if(e){var d=_.h_(v,"mainPlaylistEntity",_.rg(e,"mainPlaylistEntity")),E=_.h_(v,"mainPlaylistDownloadStateEntity",_.rg(e,"mainPlaylistDownloadStateEntity"));v=_.h_(v,"ytMainChannelEntity",_.rg(e,"ytMainChannelEntity"));if(E&&d)return Object.assign({},{mainPlaylistEntity:d,mainPlaylistDownloadStateEntity:E},!!v&&{channelEntity:v})}};
YTW=function(v){return hx0(v).sort(function(e,d){return d.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return e.downloadedPlaylistEntities})};
hx0=function(v){var e=v.mainPlaylistDownloadStateEntity,d=[];if(!e)return d;for(var E=_.a(Object.keys(e)),T=E.next();!T.done;T=E.next()){var S=T.value;T=rdH(v,_.bq(S).entityId);var O=void 0;S=Number((O=e[S])==null?void 0:O.addedTimestampMillis);O=isNaN(S)?(0,_.E$)():S;T!==void 0&&d.push({downloadedPlaylistEntities:T,addedTimestampMillis:O})}return d};
K3W=function(v){var e,d=(e=v.mainPlaylistVideoEntity)!=null?e:{};return new Set(YTW(v).reduce(function(E,T){E=E===void 0?[]:E;var S,O;T==null||(S=T.mainPlaylistEntity)==null||(O=S.videos)==null||O.forEach(function(b){var Y;(b=(Y=d[b])==null?void 0:Y.video)&&E.push(b)});
return E},[]))};
$Nj=function(v){return"downloadedMusicPlaylistEntities"in v};
jgM=function(v){return"mainPlaylistEntity"in v&&"mainPlaylistDownloadStateEntity"in v};
sg0=function(v){return"videoEntity"in v&&"channelEntity"in v};
NoU=function(v){var e=v.musicPlaylistDownloadMetadataEntity,d=[];if(!e)return d;for(var E=_.a(Object.keys(e)),T=E.next();!T.done;T=E.next()){T=T.value;a:{var S=v,O=_.bq(T).entityId;if(O){var b=_.h_(S,"musicPlaylist",_.rg(O,"musicPlaylist"));S=_.h_(S,"musicPlaylistDownloadMetadataEntity",_.rg(O,"musicPlaylistDownloadMetadataEntity"));if(b&&S){b={musicPlaylistEntity:b,musicPlaylistDownloadStateEntity:S};break a}}b=void 0}S=void 0;T=Number((S=e[T])==null?void 0:S.addedTimestampMillis);T=isNaN(T)?(0,_.E$)():
T;b!==void 0&&d.push({downloadedMusicPlaylistEntities:b,addedTimestampMillis:T})}return d};
kJ7=function(v){var e=new Set;v=_.a(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value,"musicPlaylistEntity"in d&&"musicPlaylistDownloadStateEntity"in d){d=_.a(d.musicPlaylistEntity.tracks);for(var E=d.next();!E.done;E=d.next())e.add(E.value)}return e};
L3L=function(v,e){if(e){var d=_.h_(v,"musicTrack",_.rg(e,"musicTrack")),E=_.h_(v,"musicArtist",_.rg(e,"musicArtist"))||{};if((v=v_t(v,e))&&d&&E)return Object.assign({},{musicTrackEntity:d,musicArtistEntity:E},v)}};
ViO=function(v){var e=v.musicTrackDownloadMetadataEntity,d=[];if(!e)return[];e=_.a(Object.keys(e));for(var E=e.next();!E.done;E=e.next()){var T=E.value;E=L3L(v,_.bq(T).entityId);var S=void 0;T=Number((S=_.h_(v,"musicTrackDownloadMetadataEntity",T))==null?void 0:S.addedTimestampMillis);S=isNaN(T)?(0,_.E$)():T;E!==void 0&&d.push({downloadedMusicEntities:E,addedTimestampMillis:S})}return d};
GJ7=function(v,e){if(!e)return[];if(Object.values(o_M).includes(e))return JdO(v,e);e=_.rg(e,"musicPlaylist");var d;v=(d=v.musicPlaylist)==null?void 0:d[e];d=[];if(v==null||!v.tracks)return d;v=_.a(v.tracks);for(e=v.next();!e.done;e=v.next())(e=_.bq(e.value).entityId)&&d.push(e);return d};
JdO=function(v,e){var d=new Set,E=NoU(v).map(function(S){return S.downloadedMusicPlaylistEntities});
E=kJ7(E);E=_.a(E);for(var T=E.next();!T.done;T=E.next())(T=_.bq(T.value).entityId)&&d.add(T);return Mi7(v).downloadedMusicEntities.filter(function(S){var O;if((O=S.musicTrackEntity)!=null&&O.videoId){S=S.musicTrackEntity;if(O=e==="PPOM"?!0:!d.has(S.videoId))b:switch(S=S.musicVideoType,e){case "PPSE":O=S==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:O=S!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}S=O}else S=!1;return S}).map(function(S){var O;
return(O=S.musicTrackEntity)==null?void 0:O.videoId})};
Mi7=function(v){var e=ViO(v).sort(function(d,E){return E.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return"downloadedMusicEntities"in d?d.downloadedMusicEntities:$Nj(d)?d.downloadedMusicPlaylistEntities:{}});
v=NoU(v).sort(function(d,E){return E.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return"downloadedMusicEntities"in d?d.downloadedMusicEntities:$Nj(d)?d.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:e,downloadedMusicPlaylistEntities:v}};
fSt=function(v,e){e=_.Bb("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?GJ7(v,e):ydO(v,e);if(!e.length)return"TRANSFER_STATE_UNKNOWN";e=e.map(function(d){return ISS(v,d)});
return ti0(e)};
ti0=function(v){var e=new Set(v);if(e.has("TRANSFER_STATE_FAILED")&&e.size===1)return"TRANSFER_STATE_FAILED";e.delete("TRANSFER_STATE_FAILED");if(e.has("TRANSFER_STATE_UNKNOWN")&&e.size===1)return"TRANSFER_STATE_PRE_TRANSFER";e.delete("TRANSFER_STATE_UNKNOWN");if(e.has("TRANSFER_STATE_PRE_TRANSFER")&&e.size===1||e.size===0)return"TRANSFER_STATE_PRE_TRANSFER";v=e.has("TRANSFER_STATE_TRANSFERRING");e=e.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return v||e?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
t_=function(v){var e=v.mainVideoDownloadStateEntity,d=[];if(!e)return[];e=_.a(Object.keys(e));for(var E=e.next();!E.done;E=e.next()){var T=E.value;if(!exL(v,_.bq(T).entityId)){E=ME(v,_.bq(T).entityId);var S=void 0,O=void 0;T=(O=Number((S=_.h_(v,"mainVideoDownloadStateEntity",T))==null?void 0:S.addedTimestampMillis))!=null?O:(0,_.E$)();E!==void 0&&d.push({downloadedVideoEntities:E,addedTimestampMillis:T})}}return d};
Rxj=function(v){return t_(v).sort(function(e,d){return d.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return e.downloadedVideoEntities})};
_.xNt=function(v){var e=K3W(v),d=_.fQ(v),E=W33(v),T=t_(v).filter(function(O){var b,Y;if((O==null?void 0:(b=O.downloadedVideoEntities)==null?void 0:(Y=b.transferEntity)==null?void 0:Y.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var q,r;O=O==null?void 0:(q=O.downloadedVideoEntities)==null?void 0:(r=q.videoEntity)==null?void 0:r.key;return _.N("kevlar_use_library_entity")?O&&(E.has(O)||d[O]):O&&!e.has(O)}),S=hx0(v).filter(function(O){return fSt(v,O.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.t7(T),_.t7(S)).sort(function(O,b){return b.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return PjW(O)})};
Bot=function(v,e){if(e&&D5W(v,e)){var d,E,T=(E=(d=_.h_(v,"playbackData",_.rg(e,"playbackData")))!=null?d:void 0)==null?void 0:E.playerResponseJson;if(T){try{var S=JSON.parse(T);var O=_.h_(v,"transfer",_.rg(e,"transfer")),b=beH(v,e);b&&(S=Object.assign({},S,{playerConfig:Object.assign({},S.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+b*1E3}}})}));S.cotn=O==null?void 0:O.cotn}catch(Y){}return S}}};
_.XH0=function(v){var e,d,E;v=(E=(d=((e=v.downloadsPageViewConfigurationEntity)!=null?e:{})[_.RG])==null?void 0:d.smartDownloadsOptInBannerVisibility)!=null?E:{};var T;return(T=_.L(v,CjS))!=null?T:{}};
_.fQ=function(v){var e,d,E;v=(E=(d=((e=v.mainDownloadsListEntity)!=null?e:{})[_.zx0])==null?void 0:d.downloads)!=null?E:[];e={};d=_.a(v);for(E=d.next();!E.done;E=d.next())v=void 0,e[(v=E.value.videoItem)!=null?v:""]=!0;return e};
lSs=function(v){var e=_.fQ(v);if(Object.keys(e).length===0)return!1;var d=v.mainVideoEntity;if(!d)return!0;d=_.a(Object.keys(d));for(var E=d.next();!E.done;E=d.next()){E=E.value;var T=_.bq(E).entityId;if(e[E]&&!exL(v,T))return!1}return!0};
_.PK=function(v){var e=_.fQ(v);return t_(v).sort(function(d,E){return d.addedTimestampMillis-E.addedTimestampMillis}).map(function(d){return d.downloadedVideoEntities}).filter(function(d){var E;
return(d=d==null?void 0:(E=d.videoEntity)==null?void 0:E.key)&&!!e[d]})};
_.AdW=function(v){var e,d,E;v=(E=(d=((e=v.downloadsPageViewConfigurationEntity)!=null?e:{})[_.RG])==null?void 0:d.downloadsUpsellBannerVisibility)!=null?E:{};var T;return(T=_.L(v,HeW))!=null?T:{}};
PjW=function(v){return"downloadedVideoEntities"in v?v.downloadedVideoEntities:"downloadedPlaylistEntities"in v?v.downloadedPlaylistEntities:{}};
Ze0=function(v){var e=_.fQ(v),d=K3W(v),E=t_(v).filter(function(T){var S,O;return(T=T==null?void 0:(S=T.downloadedVideoEntities)==null?void 0:(O=S.videoEntity)==null?void 0:O.key)&&!e[T]&&!d.has(T)});
v=hx0(v);return[].concat(_.t7(E),_.t7(v)).sort(function(T,S){return S.addedTimestampMillis-T.addedTimestampMillis}).map(function(T){return PjW(T)})};
_.xH=function(v){if(!_.N("kevlar_use_library_entity"))return Ze0(v);var e=t_(v).filter(function(E){var T,S;if(T=E=E==null?void 0:(T=E.downloadedVideoEntities)==null?void 0:(S=T.videoEntity)==null?void 0:S.key){var O,b,Y;T=((b=(O=v.mainDownloadsListEntity)==null?void 0:O[STH])==null?0:(Y=b.downloads)==null?0:Y.length)?W33(v).has(E):!1}return T}),d=hx0(v);
return[].concat(_.t7(e),_.t7(d)).sort(function(E,T){return T.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return PjW(E)})};
cdL=function(v){var e=_.fQ(v),d=K3W(v);return Rxj(v).filter(function(E){var T;return(E=E==null?void 0:(T=E.videoEntity)==null?void 0:T.key)&&!e[E]&&!d.has(E)})};
wHU=function(v){if(!_.N("kevlar_use_library_entity"))return cdL(v);var e=_.fQ(v),d=W33(v);return Rxj(v).filter(function(E){var T;return(E=E==null?void 0:(T=E.videoEntity)==null?void 0:T.key)&&!e[E]&&d.has(E)})};
F3O=function(v,e){e=_.rg(e,"settingEntity");var d,E,T;return!!((T=(E=((d=v.settingEntity)!=null?d:{})[e])==null?void 0:E.settingOptionValue)!=null?T:{}).boolValue};
_.BK=function(v){var e=_.PK(v);if(nwH(e))return 0;var d=[];e=_.a(e);for(var E=e.next();!E.done;E=e.next()){E=E.value;var T=void 0,S=void 0;if((T=E)==null?0:(S=T.videoEntity)==null?0:S.key)T=_.bq(E.videoEntity.key).entityId,E=v,T=_.rg(T,"mainVideoDownloadStateEntity"),E=_.h_(E,"mainVideoDownloadStateEntity",T),(E=Number(E==null?void 0:E.addedTimestampMillis))&&d.push(E)}return Math.max.apply(Math,_.t7(d))};
_.CQ=function(v){return v.ui.richGridMiniMode};
_.X1=function(v){return v.ui.richGridItemsPerRow};
_.Qg7=function(v){return v.ui.richGridSlimItemsPerRow};
_.g_M=function(v){return v.ui.guideIsExpanded};
_.za=function(v){return v.ui.miniplayerIsActive};
uBs=function(v){return v.ui.singleOptionSurveyIsActive};
_.lq=function(v){var e;return((e=v.ui)==null?void 0:e.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.n_j=function(v){return _.lq(v)==="WEB_PAGE_TYPE_WATCH"};
_.DNt=function(v){return _.lq(v)==="WEB_PAGE_TYPE_SHORTS"};
_.UNM=function(v){return v.ui.inlinePreviewIsActive};
_.pHH=function(v){return v.ui.inlinePreviewIsEnabled};
_.vKO=function(v){return v.ui.miniplayerPlaybackState};
_.HK=function(v){return v.ui.isOnline};
_.ert=function(v){return v.ui.frostedGlassMode};
_.A_=function(v,e){return aS$(v.entities,e)};
_.ZY=function(v,e){return fSt(v.entities,e)};
d$0=function(v,e){var d;if(e){var E;v=(E=_.h_(v.entities,"offlineVideoPolicy",_.rg(e,"offlineVideoPolicy")))==null?void 0:E.action}else v=void 0;return(d=v)!=null?d:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
EKU=function(v,e){var d;e?(v=_.h_(v.entities,"offlineVideoPolicy",_.rg(e,"offlineVideoPolicy")),v=Number(v==null?void 0:v.expirationTimestamp)):v=void 0;return(d=v)!=null?d:0};
_.TTH=function(v){return _.Ga(v.entities).length};
S1$=function(v,e){return ME(v.entities,e)};
WZ$=function(v,e){return rdH(v.entities,e)};
cK=function(v,e){return(v=ME(v.entities,e))?_.F4O([v]):0};
_.ahS=function(v,e){var d=_.Bb("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(d){var E=v.entities;var T=GJ7(E,e);if(T.length){var S=[];T=_.a(T);for(var O=T.next();!O.done;O=T.next())(O=L3L(E,O.value))&&S.push(O);E=S}else E=[]}else E=qT0(v.entities,e);var b;if(d){var Y=v.entities;e?(e=_.rg(e,"musicPlaylist"),Y=(b=Y.musicPlaylist)==null?void 0:b[e],b=Y!=null&&Y.tracks?Y.tracks.length:0):b=0}else b=v.entities,e?(e=_.rg(e,"mainPlaylistEntity"),b=(Y=b.mainPlaylistEntity)==null?void 0:Y[e],b=b!=null&&b.videos?
b.videos.length:0):b=0;return E.length!==b?0:E?QiS(E):0};
_.is3=function(v){return v.download.isLeaderTab};
_.Oss=function(v,e,d){if(!e&&d){var E=v.entities;if(d){var T=uYL(d),S,O;e=(O=(S=_.h_(E,"offlineabilityEntity",_.rg(T,"offlineabilityEntity")))==null?void 0:S.addToOfflineButtonState)!=null?O:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else e="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else S=v.entities,e?(O=uYL(e),e=(T=(E=_.h_(S,"offlineabilityEntity",_.rg(O,"offlineabilityEntity")))==null?void 0:E.addToOfflineButtonState)!=null?T:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):e="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return e};
Ih0=function(v,e){v=v.entities;if(e){e=uYL(e);var d,E;e=(E=(d=_.h_(v,"offlineabilityEntity",_.rg(e,"offlineabilityEntity")))==null?void 0:d.addToOfflineButtonState)!=null?E:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else e="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return e};
_.bst=function(v){var e=v.entities;v=_.HK(v);var d=F3O(e,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.N("kevlar_modern_downloads_page")&&d)var E=!1;else{var T,S;e=(S=(T=((E=e.downloadsPageViewConfigurationEntity)!=null?E:{})[_.RG])==null?void 0:T.smartDownloadsOptInBannerVisibility)!=null?S:{};E=v?!!e.visibleWithConnection:!!e.visibleWithoutConnection}return E};
_.Y1W=function(v){return F3O(v.entities,"SMART_DOWNLOADS_ENABLED")};
_.m$0=function(v){return lSs(v.entities)};
yb0=function(v){return _.PK(v.entities).every(function(e){var d;return(e==null?void 0:(d=e.transferEntity)==null?void 0:d.transferState)&&!wD7.includes(e.transferEntity.transferState)})};
_.q1W=function(v){var e,d,E,T=(E=(d=((e=v.entities.downloadsPageViewConfigurationEntity)!=null?e:{})[_.RG])==null?void 0:d.downloadsUpsellBannerVisibility)!=null?E:{};return _.HK(v)?!!T.visibleWithConnection:!!T.visibleWithoutConnection};
_.rb7=function(v,e){return exL(v.entities,e)};
hrS=function(v,e){if(e){var d,E;v=(E=(d=_.h_(v.entities,"downloadStatusEntity",_.rg(e,"downloadStatusEntity")))==null?void 0:d.downloadState)!=null?E:"DOWNLOAD_STATE_UNKNOWN"}else v="DOWNLOAD_STATE_UNKNOWN";return v};
wg=function(v,e){return beH(v.entities,e)};
scj=function(v){v=_.KZ0(v);var e=v.hours===void 0?0:v.hours,d=v.minutes===void 0?0:v.minutes,E=v.seconds===void 0?0:v.seconds,T=e>0;v=[];T&&(e=_.$$S(e),v.push(e));e=T;e=e===void 0?!1:e;d=(["af","be","lt"].includes(_.F1)||e)&&d<10?jcs().format(d):(new Intl.NumberFormat("en-u-nu-latn")).format(d);v.push(d);d=jcs().format(E);v.push(d);d=":";"da fi id si sr sr-Latn".split(" ").includes(_.F1)&&(d=".");return v.join(d)};
_.KZ0=function(v){var e=v.hours||0,d=v.minutes||0,E=v.seconds||0;e=E+d*60+e*3600+(v.days||0)*86400+(v.weeks||0)*604800+(v.months||0)*2629800+(v.years||0)*31557600;if(e<=0)return{hours:0,minutes:0,seconds:0};v=e;e=Math.floor(v/3600);v%=3600;d=Math.floor(v/60);E=Math.floor(v%60);return{hours:e,minutes:d,seconds:E}};
_.$$S=function(v){v=(new Intl.NumberFormat("en-u-nu-latn")).format(v);var e=["fr"],d="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(_.F1)?v.replace(",","\u00a0"):e.includes(_.F1)?v.replace(",","\u202f"):d.includes(_.F1)?v.replace(",","."):v};
jcs=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
NTt=function(v){try{return(new _.QR(5)).format(v)}catch(e){}};
gg=function(v){return{thumbnailOverlayDownloadingRenderer:{state:v}}};
kf0=function(v){if(v=NTt(v))return{thumbnailOverlaySidePanelRenderer:{text:_.WK(v),icon:{iconType:"PLAYLISTS"}}}};
LZO=function(){var v=_.sz("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.WK(v),icon:{iconType:"PLAY_ALL"}}}};
VN3=function(v){v=_.uq(v,2);return _.F1!=="ru"&&_.F1!=="es_419"&&_.F1!=="es-419"&&_.F1!=="es"&&_.F1!=="es_US"&&_.F1!=="es-US"&&_.F1!=="fr"&&_.F1!=="pl"&&_.F1!=="it"&&_.F1!=="nl"&&_.F1!=="uk"&&_.F1!=="fr_CA"&&_.F1!=="fr-CA"||v===""?v:v[0].toLocaleUpperCase()+v.substring(1)};
JbL=function(v){return function(e){var d=v(),E=_.uq(e,d.dateFormat);e=_.uq(e,d.timeFormat);var T=oK7.DATETIMEFORMATS[d.joinerStyle];T=T.replace(/'(?!')/g,"");T=T.replace("{0}",e);T=T.replace("{1}",E);return d.capitalize(T)}};
GfW=function(v){return v?typeof v.seconds==="string"&&(v.nanos===void 0||typeof v.nanos==="number"):!1};
MN7=function(v){return new Date(Number(v.seconds)*1E3+(v.nanos||0)*1E-6)};
_.uq=function(v,e){if(typeof v.getTime==="function")v={date:v};else if(GfW(v))v={date:MN7(v)};else if(typeof GfW(v.timestamp)&&typeof v.i18nInternalSecondsEastOfUtc==="number")v={date:MN7(v.timestamp),timeZone:nQ(-v.i18nInternalSecondsEastOfUtc/60)};else throw Error("Ef`"+JSON.stringify(v));var d=v;v=d.date;d=d.timeZone;e=tNj(e).format(v,d);_.F1==="zh-TW"&&(v=d?Number(tNj("H").format(v,d)):v.getHours(),e=v<5?e.replace("\u4e0a\u5348","\u51cc\u6668"):v<8?e.replace("\u4e0a\u5348","\u65e9\u4e0a"):v<12?
e.replace("\u4e0a\u5348","\u4e0a\u5348"):v<13?e.replace("\u4e0b\u5348","\u4e2d\u5348"):v<19?e.replace("\u4e0b\u5348","\u4e0b\u5348"):e.replace("\u4e0b\u5348","\u665a\u4e0a"));return e};
tNj=function(v){if(fh3.has(v))return fh3.get(v);var e=Rrs(v);e=PA$(e);x$3!==!0&&(x$3=!0);BTt=!0;BTt=!1;e=new DY(e,oK7);fh3.set(v,e);return e};
Rrs=function(v){return(new DY(v,oK7)).patternParts_.map(function(e){return e.type===0?"'"+e.text+"'":e.text}).join("")};
PA$=function(v){return _.F1==="en"||_.F1==="es_US"||_.F1==="es-US"?v:v.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(e,d,E){return"H".repeat(d.length)+E})};
set=function(v,e){CAO||(_.Uo=_.Xl0,CAO=new zrM);var d=CAO;a:if(v=lhH(v),e=lhH(e||new Date),v>e)d=v.getTime()-e.getTime()>6048E5?_.uq(v,1):HsM(v);else{for(var E=0;Ab0(v,12*(E+1))<e;)++E;if(E>0)d=d.format(-E,0);else{for(E=0;Ab0(v,E+1)<e;)++E;if(E>0)d=d.format(-E,2);else{v=e.getTime()-v.getTime();e=_.a(jeL);for(E=e.next();!E.done;E=e.next()){E=E.value;var T=E.unit,S=Math.floor(v/E.unitDuration);if(S>=(E.threshold===void 0?1:E.threshold)){d=d.format(-S,T);break a}}d=d.format(-0,7)}}}return d};
lhH=function(v){if(typeof v.getTime==="function")return v;if(GfW(v))return MN7(v);throw Error("Ff`"+JSON.stringify(v));};
Ab0=function(v,e){for(var d=0,E;;++d)if(E=new Date(v.getFullYear(),v.getMonth()+e,v.getDate()-d,v.getHours(),v.getMinutes(),v.getSeconds()),E.getMonth()===(v.getMonth()+e)%12)return E};
_.pQ=function(v){return{runs:[{text:v}]}};
_.vv=function(v){if(v&&v.simpleText)return v.simpleText;var e="";if(v&&v.runs)for(var d=0;d<v.runs.length;d++)v.runs[d].text&&(e+=v.runs[d].text);return e};
kX3=function(v,e,d,E){return v.videoEntity&&!v.policyEntity&&d!=="DOWNLOAD_STATE_FAILED"?[gg("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:VR(v.policyEntity)&&e!=="TRANSFER_STATE_FAILED"&&e!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?e==="TRANSFER_STATE_PAUSED_BY_USER"?[gg("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.oG(e)?[gg("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:v.videoEntity.lengthSeconds?ND0(v.videoEntity.lengthSeconds,E):[]:
[gg("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
ND0=function(v,e){var d=[{thumbnailOverlayTimeStatusRenderer:{text:_.WK(scj({seconds:v})),style:"DEFAULT"}}];e&&(v=e<=0||v<=0?0:e>=v?100:Math.ceil(e*100/v),v>0&&d.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:v}}));return d};
LOW=function(v,e,d,E,T){if(e==="TRANSFER_STATE_UNKNOWN"||!v)return{};if(_.oG(e)||e==="TRANSFER_STATE_PRE_TRANSFER")var S=[gg("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var O,b;if(e==="TRANSFER_STATE_COMPLETE"&&((O=v.mainPlaylistEntity)==null?0:(b=O.videos)==null?0:b.length)){if(_.N("web_modern_collections_v2")){var Y;var q=(S=v.mainPlaylistEntity)==null?void 0:(Y=S.videos)==null?void 0:Y.length;S=(S=NTt(q))?{thumbnailOverlayBottomPanelRenderer:{text:_.WK(S),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var r;S=kf0((q=v.mainPlaylistEntity)==null?void 0:(r=q.videos)==null?void 0:r.length)}var h;S=[LZO(),Object.assign({},(h=S)!=null?h:{})]}else S=[]}h=S;a:if(e==="TRANSFER_STATE_PRE_TRANSFER")d=aG(_.sz("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(e==="TRANSFER_STATE_TRANSFER_IN_QUEUE")d=aG(_.sz("WAITING_TO_DOWNLOAD"));else if(_.oG(e))d=Math.floor(d*100).toString(),d=aG(_.sz("DOWNLOADING_PERCENT",{percent:d},"Downloading... "+d+"%"));else{if(E&&(_.N("playlist_is_offline_selector_killswitch")&&
(T=_.dk().resolve(_.wt).isNetworkAvailable()),T)){d=eMH(_.sz("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),pAt(E));break a}d=void 0}e=e==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.sz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},h.length?{thumbnailOverlays:h}:{},d?{viewPlaylistText:d}:{viewPlaylistText:_.pQ("")},e.length?{badges:e}:{})};
VZs=function(v,e,d,E,T,S){if(e==="TRANSFER_STATE_UNKNOWN"||!v)return{};if(E==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var O=kX3(v,e,E);if(v.videoEntity&&!v.policyEntity&&E!=="DOWNLOAD_STATE_FAILED"){var b=_.sz("WAITING_TO_DOWNLOAD");if(b)return{shortViewCountText:_.pQ(b),publishedTimeText:void 0,thumbnailOverlays:O}}if(!VR(v.policyEntity)){S=v.policyEntity&&!gwW(v.policyEntity)?_.sz("DOWNLOAD_EXPIRED",{},"Download expired"):
_.sz("TRANSFER_FAILED",{},"Download failed");var Y;if((Y=v.policyEntity)==null?0:Y.shortMessageForDisabledAction)S=v.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:aG(S),publishedTimeText:void 0,thumbnailOverlays:O}}if(e==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.pQ(_.sz("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:O};if(e==="TRANSFER_STATE_FAILED"||e==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.pQ(_.sz("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:O};if(e==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(Y=_.sz("WAITING_TO_DOWNLOAD"),E==="DOWNLOAD_STATE_PAUSED"&&(Y=_.sz("DOWNLOAD_PAUSED",{},"Download paused")),Y))return{shortViewCountText:_.pQ(Y),publishedTimeText:void 0,thumbnailOverlays:O};if(_.oG(e))return v=Math.floor(d*100).toString(),{shortViewCountText:_.pQ(_.sz("DOWNLOADING_PERCENT",{percent:v},"Downloading... "+v+"%")),publishedTimeText:void 0,thumbnailOverlays:O};e=void 0;v.videoEntity.publishedTimestampMillis&&
(e=new Date,T&&(e=new Date(T)),e=aG(set(new Date(Number(v.videoEntity.publishedTimestampMillis)),e)));T=[];_.N("kevlar_woffle_badge_killswitch")||(T=[{metadataBadgeRenderer:{label:_.sz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var q;v=aG((q=v.videoEntity.localizedStrings)==null?void 0:q.viewCount);return Object.assign({},S?{shortViewCountText:void 0}:{shortViewCountText:v},S?{}:{publishedTimeText:e},{badges:T,thumbnailOverlays:O})};
J5O=function(v,e){v=v===void 0?oMM:v;switch(e.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:e.payload.playlistId,inviteLinkURL:e.payload.inviteLinkUrl};default:return v}};
MZt=function(v,e){v=v===void 0?GXW:v;switch(e.type){case "SET_CURRENT_FORM_ID":return e=e.payload.formId,v.currentFormId===e?v:{currentFormId:e,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var d=e.payload;e=d.groupId;d=d.command;if(v.currentFormId){var E=Object.assign({},v.commandsMap);E[e]=d;v=Object.assign({},v,{commandsMap:E})}return v;case "RESET_COMMAND_MAP":return Object.assign({},v,{commandsMap:{}});default:return v}};
fb0=function(v,e){v=v===void 0?tZ$:v;switch(e.type){case "UPDATE_CANVAS_MODE":return Object.assign({},v,{currentMode:e.payload.currentMode});default:return v}};
P$U=function(v,e){v=v===void 0?RsL:v;switch(e.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},v,{guideIsExpanded:e.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},v,{scrollAtTop:e.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},v,{guideIsVisibleButNotPersistent:e.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},v,{miniplayerIsActive:e.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},v,{singleOptionSurveyIsActive:e.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},v,{slimlineSurveyRatingSelectedIndex:e.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},v,{richGridMiniMode:e.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},v,{richGridItemsPerRow:e.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},v,{richGridSlimItemsPerRow:e.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},v,{richGridContainerWidth:e.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},v,{richGridStyle:e.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},v,{currentPageType:e.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},v,{inlinePreviewIsActive:e.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},v,{inlinePreviewIsEnabled:e.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},v,{darkModeIsEnabled:e.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
v,{miniplayerPlaybackState:e.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},v,{tabGesturesIsActive:e.payload});case "SET_ONLINE_STATUS":return Object.assign({},v,{isOnline:e.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},v,{chipBarIsSticky:e.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},v,{frostedGlassMode:e.payload});default:return v}};
BDj=function(v,e){v=v===void 0?xZj:v;switch(e.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},v,{transcription:e.payload});case "SET_OVERLAY_STATE":return Object.assign({},v,{overlay:e.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return v}};
FOt=function(){return jo(Object.assign({},{continuation:C$0,download:Xh0,canvas:fb0,reportChannelAbuse:zst,share:lb0,talkToRecs:HRH,ui:P$U,voiceSearch:BDj,watch:A5L,ypc:ZRL,shorts:c53,radioButtonGroup:MZt,collabInviteLink:J5O},whW))};
uWH=function(){return _.N("web_player_entities_middleware")?new eU(FOt(),[Qe7,gML]):new eU(FOt(),[Qe7])};
_.d1=function(){nM0||(nM0=uWH());return nM0};
DZU=function(v,e,d){if(v.length)return{titleText:_.WK(e!=null?e:_.sz("DOWNLOADS",void 0,"Downloads")),contents:v.map(function(E){var T=E.videoEntity;E={videoId:T.videoId,title:aG(T.title),shortBylineText:aG(E.channelEntity.title),thumbnail:T.thumbnail};var S=T.videoId?wg(_.d1().getState(),T.videoId):0;T.videoId&&d?E.navigationEndpoint=_.S7(T.videoId,d,void 0,void 0,S):T.videoId&&(E.navigationEndpoint=USM(T.videoId,S,T.lengthSeconds));T.lengthSeconds&&(E.thumbnailOverlays=ND0(T.lengthSeconds,S));return{playlistPanelVideoRenderer:E}}),
totalVideos:v.length}};
UZU=function(v){return(v=(0,_.f0.getValueByKeys)(v,"playlistId"))?{playlistId:v}:null};
pht=function(){return{}};
vXj=function(v,e){return new _.yf(function(d,E){v.then(function(T){if(T){if(T=e(T))return d(T);E()}},E)})};
eBt=function(v){var e,d,E,T=(e=v.contents)==null?void 0:(d=e.twoColumnWatchNextResults)==null?void 0:(E=d.autoplay)==null?void 0:E.autoplay,S,O,b;e=(S=v.contents)==null?void 0:(O=S.twoColumnWatchNextResults)==null?void 0:(b=O.playlist)==null?void 0:b.playlist;return T&&e&&e.playlistId?{rawResponse:v,autoplayRenderer:T,playlistPanelRenderer:e,playlistId:e.playlistId}:null};
EXM=function(v){var e=e===void 0?"UNKNOWN_INTERFACE":e;if(v.length===1)return v[0];var d=dJW[e];if(d){d=new RegExp(d);for(var E=_.a(v),T=E.next();!T.done;T=E.next())if(T=T.value,d.exec(T))return T}var S=[];Object.entries(dJW).forEach(function(O){var b=_.a(O);O=b.next().value;b=b.next().value;e!==O&&S.push(b)});
d=new RegExp(S.join("|"));v.sort(function(O,b){return O.length-b.length});
E=_.a(v);for(T=E.next();!T.done;T=E.next())if(T=T.value,!d.exec(T))return T;return v[0]};
_.Ej=function(v){return"/youtubei/v1/"+EXM(v)};
_.To=function(v){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:v}}}}};
_.SU=function(v){return _.To(_.pQ(v))};
TK0=function(v,e){var d={mode:"NORMAL"};v&&(d.autoplayVideo=v.navigationEndpoint,d.nextButtonVideo=v.navigationEndpoint);e&&(d.previousButtonVideo=e.navigationEndpoint);return d};
aKW=function(v,e,d){if(!d||!d.sets)return{sets:[TK0(v,e)]};var E=d.sets.find(function(O){return O.mode==="NORMAL"}),T=(0,_.f0.unsafeClone)(d);
if(!E)return T.sets.push(TK0(v,e)),T;if(!v)return d;E=_.f0.getValueByKeys.apply(null,[E].concat(_.t7(SFt)));var S=_.f0.getValueByKeys.apply(null,[v].concat(_.t7(WM3)));if(E===S)return d;T.sets=T.sets.filter(function(O){return O.mode!=="NORMAL"});
T.sets.push(TK0(v,e));return T};
igt=function(v){return!!v.playlistPanelVideoRenderer&&!v.playlistPanelVideoRenderer.unplayableText};
OgS=function(v){return!!v.playlistPanelVideoRenderer&&!!v.playlistPanelVideoRenderer.title};
IKS=function(v,e){if(e.contents&&!(v>=e.contents.length)&&(v=e.contents.slice(v).find(igt)))return v.playlistPanelVideoRenderer};
bg7=function(v,e){if(e.contents)return(e=e.contents.find(function(d){return!!d.playlistPanelVideoRenderer&&d.playlistPanelVideoRenderer.videoId===v}))?e.playlistPanelVideoRenderer:void 0};
YFW=function(v,e){return e.contents?e.contents.findIndex(function(d){return!!d.playlistPanelVideoRenderer&&d.playlistPanelVideoRenderer.videoId===v}):-1};
mJO=function(v,e){return e.contents?e.contents.findIndex(function(d){return!!d.playlistPanelVideoRenderer&&d.playlistPanelVideoRenderer.playlistSetVideoId===v}):-1};
yus=function(v,e){v.contents&&e!==-1&&v.contents.splice(e,1).length===1&&v.totalVideos!==void 0&&(--v.totalVideos,delete v.videoCountText)};
_.qF7=function(v){var e=[];if(!v||!v.contents)return e;v=_.a(v.contents);for(var d=v.next();!d.done;d=v.next())d=d.value,d.playlistPanelVideoRenderer&&d.playlistPanelVideoRenderer.videoId&&e.push(d.playlistPanelVideoRenderer.videoId);return e};
_.ru7=function(v){if(v&&v.contents)return(v=v.contents.find(function(e){return!!e.playlistPanelVideoRenderer&&!!e.playlistPanelVideoRenderer.selected})||v.contents[v.currentIndex])?v.playlistPanelVideoRenderer:void 0};
hB0=function(v,e,d,E,T,S,O){T=T===void 0?!1:T;S=S===void 0?!1:S;O=O===void 0?!1:O;if(v.contents&&v.contents.length!==0){E&&(v.contents=v.contents.filter(E));E=v.contents.length;for(var b=0;b<E;b++){var Y=v.contents[b].playlistPanelVideoRenderer;Y&&(b===e?(S&&delete Y.menu,Y.indexText=_.pQ("\u25b6")):T||v.isInfinite||Y.indexText===void 0?delete Y.indexText:Y.indexText=_.pQ((b+1+d).toString()))}v.currentIndex=e+d;O&&(delete v.videoCountText,v.totalVideos=E)}};
_.Wv=function(v){v=KM0(v);if(v){var e=v.length;var d=-42%e;d<0&&(d=e+d);v=v.slice(e-d)+v.slice(0,e-d)}else v="";d="";for(e=0;e<v.length&&v[e]!==$Js;e++)d+=v[e];return d};
_.jPU=function(v,e){var d=document.body;e=e===void 0?function(b){return b}:e;
var E,T=null;v=_.a(v);for(E=v.next();!E.done;E=v.next()){var S=E.value;E="div";S[2]&&(E=e(S[2]));E=document.createElement(E);T||(T=E);var O=S[0];S=S[1];O&&(E.id=e(O));if(S)for(S=_.a(S),O=S.next();!O.done;O=S.next())E.classList.add(e(O.value));d.appendChild(E);d=E}return[T,d]};
sPS=function(v,e){for(var d="",E=0;E<e;E++)d+=v.charAt(Math.floor(Math.random()*v.length));return d};
ab=function(v){return sPS("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",v)};
iX=function(v){return sPS("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",v)};
Oj=function(v){return sPS("0123456789",v)};
Ib=function(){var v=performance.now(),e=new Date;var d="2."+e.getFullYear()+String(e.getMonth()+1).padStart(2,"0")+String(e.getDate()).padStart(2,"0");for(var E,T=Math.floor(Math.random()*11)+15,S=[],O=0;O<T;O++)S.push(Math.floor(Math.random()*26476865)+24547720);E=S.join(",");var b=ab(10),Y=ab(100),q=ab(102),r=ab(106),h=ab(108),K=ab(11),k=ab(1140),J=ab(123),R=ab(14),B=ab(16),X=ab(1900),Z=ab(23),U=ab(26),F=ab(34),g=ab(397),Q=ab(44),v3=ab(5),q7=ab(72),m0=ab(74),$S=ab(75),kS=ab(88),N7=ab(91),As="rr4---sn-q4flrnld rr4---sn-q4fl6nzy rr1---sn-ntqe6nes rr4---sn-5hnednsz rr5---sn-q4flrnss rr4---sn-5hne6nsz rr4---sn-q4fzen7e rr3---sn-q4fl6nlz rr5---sn-q4fzen7r rr5---sn-ntqe6nel rr1---sn-5hne6n6e rr4---sn-5hneknee rr5---sn-4g5ednsy rr2---sn-q4flrnsd rr4---sn-q4fl6ndl rr1---sn-ntqe6n7k rr1---sn-q4fl6n6d rr1---sn-q4fl6nsk rr5---sn-q4flrnlz rr4---sn-q4fl6nds".split(" ");
var Ct=As[Math.floor(Math.random()*As.length)];var SA=(new Date("2010-01-01")).getTime();var xI=(new Date(SA+Math.random()*((new Date).getTime()-SA))).toISOString().split("T")[0];for(var mg,pt=[],he=0;he<4;he++)pt.push(Math.floor(Math.random()*100));mg=pt.join(".");var yB=Number(Oj(5)),te=Number(Oj(6)),oC=Number(Oj(7)),n7=Number(Oj(9)),SW=Oj(1),vc=Oj(10),jA=Oj(16),Ys=Oj(19),s6=Oj(2),es=Oj(20),TM=Oj(21),vO=Oj(3),IE=Oj(4),gn=Oj(5),hi=Oj(6),Je=Oj(7),G2=Oj(8),si=Oj(9);var Ya=sPS("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var r9=[iX(5),iX(5),iX(5)].join("%2C"),G8=[Oj(3),Oj(5),Oj(5)].join("%2C"),Ny=iX(0),Ae=iX(1),f9=iX(10),w9=iX(108),a$=iX(11),uR=iX(12),T8=iX(13),Pi=iX(14),M9=iX(15),Sy=iX(16),WP=iX(17),Js=iX(18),zO=iX(19),wH=iX(2),K7=iX(20),mf=iX(22),tr=iX(23),L9=iX(24),kI=iX(266),Ni=iX(3),xs=iX(30),qf=iX(34),rn=iX(35),kx=iX(36),jx=iX(4),CY=iX(40),R_=iX(43),CI=iX(47),np=iX(5),Wn=iX(6),am=iX(7),vt=iX(75),nt=iX(8),K9=iX(80),BO=iX(9),aC="https://www."+iX(12)+".com",be={},wr={},xh={},ZI={},jK={},IQ={},bF={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:E}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:d},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+iX(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:d},{key:"client.name",value:"WEB"},{key:"client.fexp",value:E}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:TM+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+iX(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:CY,ypcGetOfflineUpsellEndpoint:{params:K9}},trackingParams:rn+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&cnr="+s6+"&ratebypass=yes&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&c=WEB&txp="+Je+"&n="+B+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:te,width:640,height:360,lastModified:jA,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Je,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+G8+"&mn="+
r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&cnr="+s6+"&ratebypass=yes&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&c=WEB&txp="+Je+"&n="+B+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+w9+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:te,width:1280,
height:720,lastModified:jA,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Je,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+G8+"&mn="+r9+"&ms="+
r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+si+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:oC,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:si,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:oC,approxDurationMs:Je},{itag:248,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+G8+"&mn="+r9+"&ms="+r9+"&mv="+
Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fwebm&ns="+L9+"&gir="+Ni+"&clen="+si+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:oC,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:si,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:oC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:399,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+si+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:oC,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:si,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:oC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:136,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+si+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:oC,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:si,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:te,approxDurationMs:Je},{itag:247,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+G8+"&mn="+
r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fwebm&ns="+L9+"&gir="+Ni+"&clen="+si+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:oC,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:si,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:te,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:398,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+si+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:oC,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:si,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:te,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:135,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:te,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:te,approxDurationMs:Je},{itag:244,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+G8+"&mn="+
r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fwebm&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w9+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:te,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:te,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:397,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:te,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:te,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:134,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:te,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:te,highReplication:!0,approxDurationMs:Je},{itag:243,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fwebm&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:te,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:te,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:396,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:te,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:te,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:133,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:te,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:te,approxDurationMs:Je},{itag:242,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+G8+"&mn="+
r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fwebm&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:te,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:te,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:395,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:te,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:te,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:160,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:te,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:yB,approxDurationMs:Je},{itag:278,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+G8+"&mn="+
r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fwebm&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:te,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:yB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:394,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&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="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=video%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:yB,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:yB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Je},{itag:140,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=audio%2Fmp4&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:te,
initRange:{start:"0",end:"631"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:te,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Je,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+
s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=audio%2Fwebm&ns="+L9+"&gir="+Ni+"&clen="+Je+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'audio/webm; codecs="opus"',bitrate:yB,initRange:{start:"0",end:"265"},indexRange:{start:vO,
end:IE},lastModified:jA,contentLength:Je,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:yB,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Je,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=audio%2Fwebm&ns="+
L9+"&gir="+Ni+"&clen="+Je+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'audio/webm; codecs="opus"',bitrate:yB,initRange:{start:"0",end:"265"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:Je,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:yB,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Je,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Ct+".googlevideo.com/videoplayback?expire="+vc+"&ei="+Z+"&ip="+mg+"&id=o-AF"+R_+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+G8+"&mn="+r9+"&ms="+r9+"&mv="+Ae+"&mvi="+SW+"&pl="+s6+"&initcwndbps="+Je+"&siu="+SW+"&spc="+Q+"&vprv="+SW+"&svpuc="+SW+"&mime=audio%2Fwebm&ns="+L9+"&gir="+Ni+"&clen="+G2+"&dur="+G2+"&lmt="+jA+"&mt="+vc+"&fvip=3&keepalive="+Ni+"&c=WEB&txp="+
Je+"&n="+Sy+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'audio/webm; codecs="opus"',bitrate:te,initRange:{start:"0",end:"265"},indexRange:{start:vO,end:IE},lastModified:jA,contentLength:G2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:te,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Je,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="+si+"&docid="+K+"&ei="+Z+"&feature="+b+"&fexp="+Ny+"&ns="+wH+"&plid="+B+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ae+"&el="+f9+"&len="+IE+"&of="+mf+
"&uga="+s6+"&vm="+kI},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+si+"&docid="+K+"&ei="+Z+"&feature="+b+"&fexp="+Ny+"&ns="+wH+"&plid="+B+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ae+"&el="+f9+"&len="+IE+"&of="+mf+"&uga="+s6+"&vm="+kI},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+si+"&docid="+K+"&ei="+Z+"&feature="+b+"&fexp="+Ny+"&ns="+wH+"&plid="+B+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Ae+"&el="+f9+"&len="+IE+"&of="+mf+"&uga="+s6+"&vm="+kI},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+Z+"&m="+kS+"&oid="+mf+"&plid="+B+"&pltype="+am+"&ptchn="+mf+"&ptk="+R+"&video_id="+K},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+si+"&docid="+K+"&ei="+Z+"&event="+Pi+"&feature="+b+"&fexp="+Ny+"&ns="+wH+"&plid="+B+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ae},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+K+"&ei="+Z+"&feature="+
b+"&len="+IE+"&ns="+wH+"&plid="+B+"&ver="+SW,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+K+"&caps="+Ni+"&opi="+si+"&xoaf="+SW+"&hl="+wH+"&ip="+mg+"&ipbits="+SW+"&expire="+vc+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+mg+"&key="+Ni+"&lang="+v3,name:{simpleText:K7},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+K+"&caps="+Ni+"&opi="+si+"&xoaf="+SW+"&hl="+wH+"&ip="+mg+"&ipbits="+SW+"&expire="+vc+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+mg+"&key="+Ni+"&kind="+Ni+"&lang="+wH,name:{simpleText:np},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:a$,title:WP,lengthSeconds:"1155",keywords:[M9,WP,a$,M9],
channelId:L9,isOwnerViewing:!1,shortDescription:BO,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+kx+"G&rs="+qf,width:168,height:94},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+kx+"G&rs="+qf,width:196,height:110},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+kx+"G&rs="+F,width:246,height:138},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+kx+"G&rs="+F,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
K+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Je,author:T8,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Je,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+mf+"/featured_channel.jpg?v="+nt,width:40,height:40}]},trackingParams:rn+"=",navigationEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"/channel/"+L9,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:L9}},channelName:T8,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Sy}]},subscribed:!1,enabled:!0,type:"FREE",channelId:L9,showPreferences:!1,subscribedButtonText:{runs:[{text:f9}]},unsubscribedButtonText:{runs:[{text:T8}]},trackingParams:rn+"=",unsubscribeButtonText:{runs:[{text:zO}]},serviceEndpoints:[{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[L9],params:nt}},{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:CY,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:rn+"=",dialogMessages:[{runs:[{text:Js},{text:Js},{text:BO}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Wn}]},serviceEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[L9],params:nt}},accessibility:{label:nt},trackingParams:rn+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Wn}]},accessibility:{label:Sy},trackingParams:rn+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:K7}},unsubscribeAccessibility:{accessibilityData:{label:WP}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:G2},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[L9],params:nt}},unsubscribeCommand:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[L9],params:nt}},addToWatchLaterCommand:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:a$,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:a$}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+K+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+kx+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
K+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+a$,width:1280,height:720},title:{simpleText:f9},description:{simpleText:Wn},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Wn,externalChannelId:L9,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:Je,category:"Travel & Events",publishDate:xI,ownerChannelName:T8,uploadDate:xI}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:WP},trackingParams:rn+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:CY,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:rn+"="}}],headerText:{simpleText:Js},icon:{infoCardIconRenderer:{trackingParams:rn+"="}},closeButton:{infoCardIconRenderer:{trackingParams:rn+"="}},trackingParams:rn+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:rn+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+a$+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Ya,interpreterSafeUrl:(be.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+xs+".js",be),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:f9},{text:uR,bold:!0}]},endpoint:{clickTrackingParams:CY,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:rn+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:zO}]},actionButton:{buttonRenderer:{text:{runs:[{text:Sy}]},navigationEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+K,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
K,target:"TARGET_NEW_WINDOW"}},trackingParams:rn+"="}},trackingParams:rn+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+q7+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+q7+"=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:Je,endMs:Je,title:{accessibility:{accessibilityData:{label:WP}},simpleText:K7},metadata:{simpleText:K7},callToAction:{simpleText:BO},dismiss:{simpleText:am},endpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"/channel/"+L9,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:L9}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:a$}]},subscribed:!1,enabled:!0,type:"FREE",channelId:L9,showPreferences:!1,
subscribedButtonText:{runs:[{text:Wn}]},unsubscribedButtonText:{runs:[{text:Wn}]},trackingParams:rn+"=",unsubscribeButtonText:{runs:[{text:am}]},serviceEndpoints:[{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[L9],params:nt}},{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:CY,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:rn+
"=",dialogMessages:[{runs:[{text:np},{text:Js},{text:Js}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:f9}]},serviceEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[L9],params:nt}},accessibility:{label:np},trackingParams:rn+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Pi}]},
accessibility:{label:jx},trackingParams:rn+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:jx}},unsubscribeAccessibility:{accessibilityData:{label:uR}}}},trackingParams:rn+"=",isSubscribe:!0,id:es}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+kx+"G&rs="+F,width:168,height:94},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+kx+"G&rs="+qf,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+kx+"G&rs="+F,width:246,height:138},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+kx+"G&rs="+F,width:336,height:188},{url:"https://i.ytimg.com/vi/"+K+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Je,endMs:Je,title:{accessibility:{accessibilityData:{label:Pi}},simpleText:T8},metadata:{simpleText:zO},endpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
a$,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:a$,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Ct+".googlevideo.com/videoplayback?source=youtube&oeis="+SW+"&c=WEB&oad="+IE+"&ovd="+IE+"&oaad="+gn+"&oavd="+gn+"&ocs="+vO+"&oewis="+SW+"&oputc="+SW+"&ofpcc="+SW+"&siu="+SW+"&msp="+SW+"&odepv="+SW+
"&id=o-AF"+R_+"&ip="+mg+"&initcwndbps="+Je+"&mt="+vc+"&oweuc="+Ny}}}}},trackingParams:rn+"=",id:es,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Js}},simpleText:M9},style:"DEFAULT"}}]}}],startMs:Je,trackingParams:rn+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:SW,offsetEndMilliseconds:gn},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+si+";dc_trk_cid="+si+";dc_dbm_token="+h+";ord="+vc+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SW+";dc_rui="+SW+";dc_exteid="+es+";dc_av="+vO+";dc_sk="+SW+";dc_ctype="+s6+";dc_ref=http://www.youtube.com/video/"+a$+";dc_pubid="+SW+";dc_btype=23?gclid="+N7+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+SW+"&ns="+SW+"&event="+SW+"&device="+SW+"&content_v="+K+"&el="+f9+"&ei="+Z+"&devicever="+d+"&bti="+Je+"&format="+hi+"&break_type="+SW+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+SW+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+mg+"&slot_pos="+SW+"&slot_len="+SW+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+G8+"&ad_len="+gn+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
a$+"&aqi="+Z+"&ad_rmp="+SW+"&sli="+SW}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+
";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+hi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+Je+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&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+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&ctype="+vO+"&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+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_engaged_view&ctype="+vO+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+hi+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
si+";dc_trk_cid="+si+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SW+";ord="+si+";dc_rui="+SW+";dc_exteid="+Ys+";dc_av="+SW+";dc_sk="+SW+";dc_ctype="+s6+";dc_pubid="+SW+";dc_btype=3?gclid="+N7+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+tr+"&ad_cpn=[AD_CPN]&id="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&dc_pubid="+SW+"&dc_exteid="+es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+tr+"&ad_cpn=[AD_CPN]&id="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+SW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&avm="+SW+"&dc_pubid="+SW+"&dc_exteid="+
es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&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="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
q+"&sig="+tr+"&ad_cpn=[AD_CPN]&id="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+SW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&dc_pubid="+SW+"&dc_exteid="+es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+hi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+hi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:CY,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+
vO+"&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/"+K+"/mqdefault.jpg",width:320,height:180}]},trackingParams:rn+"="},trackingParams:rn+
"=",templatedCountdown:{templatedAdText:{text:zO,isTemplated:!0,trackingParams:rn+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Pi,isTemplated:!1,trackingParams:rn+"="},trackingParams:rn+"="}},trackingParams:rn+"=",skipOffsetMilliseconds:5E3}},trackingParams:rn+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Pi},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:rn+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Pi,isTemplated:!1,trackingParams:rn+"="},trackingParams:rn+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:am,isTemplated:!0,trackingParams:rn+"="}},trackingParams:rn+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:CY,openPopupAction:{popup:{aboutThisAdRenderer:{url:(wr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+X+"&hl="+wH+"&origin=www.youtube.com&ata_theme="+jx,wr),trackingParams:rn+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:rn+"="}},hoverText:{runs:[{text:K7}]},trackingParams:rn+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+CI+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:rn+"="},headline:{text:K7,isTemplated:!1,trackingParams:rn+"="},description:{text:T8,
trackingParams:rn+"="},actionButton:{buttonRenderer:{text:{simpleText:uR},navigationEndpoint:{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+si+";dc_trk_cid="+si+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SW+";ord="+si+";dc_rui="+SW+";dc_exteid="+es+";dc_av="+SW+";dc_sk="+SW+";dc_ctype="+s6+";dc_pubid="+SW+";dc_btype=3?gclid="+N7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:rn+"="}},startMs:SW,trackingParams:rn+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:M9},elementId:Wn}},elementId:f9,trackingParams:rn+"=",legacyInfoCardVastExtension:f9,sodarExtensionData:{siub:T8,bgub:K7,scs:np,bgp:T8},externalVideoId:a$,adLayoutLoggingData:{serializedAdServingDataEntry:np},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+CI+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:rn+"="},
headline:{text:BO,isTemplated:!1,trackingParams:rn+"="},description:{text:WP,isTemplated:!1,trackingParams:rn+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:am},navigationEndpoint:{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+si+";dc_trk_cid="+si+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SW+";ord="+si+";dc_rui="+SW+";dc_exteid="+
es+";dc_av="+SW+";dc_sk="+SW+";dc_ctype="+s6+";dc_pubid="+SW+";dc_btype=3?gclid="+N7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+
SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:rn+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:rn+"="}},navigationEndpoint:{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+si+";dc_trk_cid="+
si+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SW+";ord="+si+";dc_rui="+SW+";dc_exteid="+es+";dc_av="+SW+";dc_sk="+SW+";dc_ctype="+s6+";dc_pubid="+SW+";dc_btype=3?gclid="+N7+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+
J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:rn+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:rn+"="},abandonCommands:{commands:[{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&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="+SW+";dc_exteid="+es+";met="+SW+";ecn"+
SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:CY,commandExecutorCommand:{commands:[{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:jx,isTemplated:!1,trackingParams:rn+
"="},trackingParams:rn+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:a$},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+Je+";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="+si+";dc_trk_cid="+si+";ord="+vc+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SW+";dc_rui="+SW+";dc_exteid="+es+";dc_av="+vO+";dc_sk="+SW+";dc_ctype="+s6+";dc_ref=http://www.youtube.com/video/"+a$+";dc_pubid="+SW+";dc_btype=23?gclid="+N7+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+SW+"&ns="+SW+"&event="+SW+"&device="+SW+"&content_v="+K+"&el="+f9+"&ei="+Z+"&devicever="+d+"&bti="+Je+"&format="+hi+"&break_type="+SW+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+SW+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+mg+"&slot_pos="+SW+"&slot_len="+SW+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
G8+"&ad_len="+gn+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+a$+"&aqi="+Z+"&ad_rmp="+SW+"&sli="+SW}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+hi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+
U+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+Je+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&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+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&ctype="+vO+"&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+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_engaged_view&ctype="+vO+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+hi+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+tr+"&ad_cpn=[AD_CPN]&id="+
Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&dc_pubid="+SW+"&dc_exteid="+es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+
"&sig="+tr+"&ad_cpn=[AD_CPN]&id="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+SW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&avm="+SW+"&dc_pubid="+SW+"&dc_exteid="+es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&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="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+tr+"&ad_cpn=[AD_CPN]&id="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+SW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&dc_pubid="+SW+"&dc_exteid="+es+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+hi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+hi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+
vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&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/"+K+"/mqdefault.jpg",width:320,height:180}]},trackingParams:rn+"="},trackingParams:rn+"=",templatedCountdown:{templatedAdText:{text:T8,isTemplated:!0,trackingParams:rn+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:M9,isTemplated:!1,trackingParams:rn+"="},trackingParams:rn+"="}},
trackingParams:rn+"=",skipOffsetMilliseconds:5E3}},trackingParams:rn+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Pi},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:rn+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:am,isTemplated:!1,trackingParams:rn+"="},trackingParams:rn+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:a$,
isTemplated:!0,trackingParams:rn+"="}},trackingParams:rn+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:CY,openPopupAction:{popup:{aboutThisAdRenderer:{url:(xh.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+X+"&hl="+wH+"&origin=www.youtube.com&ata_theme="+jx,xh),trackingParams:rn+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:rn+"="}},hoverText:{runs:[{text:K7}]},trackingParams:rn+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+m0+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:rn+"="},headline:{text:M9,isTemplated:!1,trackingParams:rn+"="},description:{text:f9,trackingParams:rn+"="},actionButton:{buttonRenderer:{text:{simpleText:am},navigationEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:rn+"="}},startMs:SW,trackingParams:rn+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:jx},elementId:np}},elementId:Wn,trackingParams:rn+"=",legacyInfoCardVastExtension:am,sodarExtensionData:{siub:nt,bgub:M9,scs:Pi,bgp:a$},externalVideoId:a$,adLayoutLoggingData:{serializedAdServingDataEntry:M9},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+m0+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:rn+"="},headline:{text:Wn,
isTemplated:!1,trackingParams:rn+"="},description:{text:jx,isTemplated:!1,trackingParams:rn+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Sy},navigationEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:rn+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:rn+"="}},navigationEndpoint:{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+
SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:rn+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:rn+"="},abandonCommands:{commands:[{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&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="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+s6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:CY,commandExecutorCommand:{commands:[{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:am,isTemplated:!1,trackingParams:rn+"="},trackingParams:rn+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:am},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SW+";dc_exteid="+es+";met="+SW+";ecn"+SW+"="+SW+";etm1="+SW+";eid1="+
Je+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:jx}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:a$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:gn,offsetEndMilliseconds:hi},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+s6+"&token=ALHj"+g+"&index="+SW+"&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="+d+"&m_pos_ms="+gn}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Pi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:hi,offsetEndMilliseconds:hi},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+vO+"&token=ALHj"+g+"&index="+SW+"&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="+
d+"&m_pos_ms="+hi}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hi,offsetEndMilliseconds:hi},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+vO+"&token=ALHj"+g+"&index="+SW+"&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="+
d+"&m_pos_ms="+hi}},adSlotLoggingData:{serializedSlotAdServingDataEntry:am}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hi,offsetEndMilliseconds:hi},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+vO+"&token=ALHj"+g+"&index="+SW+"&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="+
d+"&m_pos_ms="+hi}},adSlotLoggingData:{serializedSlotAdServingDataEntry:f9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hi,offsetEndMilliseconds:s6},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+vO+"&token=ALHj"+g+"&index="+SW+"&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="+
d+"&m_pos_ms="+hi}},adSlotLoggingData:{serializedSlotAdServingDataEntry:jx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:s6,offsetEndMilliseconds:s6},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+s6+"&token=ALHj"+g+"&index="+SW+"&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="+
d+"&m_pos_ms="+s6}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nt}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:WP,isTemplated:!1,trackingParams:rn+"="},description:{text:jx,isTemplated:!1,trackingParams:rn+"="},actionButton:{buttonRenderer:{text:{simpleText:a$},navigationEndpoint:{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
si+";dc_trk_cid="+si+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SW+";ord="+si+";dc_rui="+SW+";dc_exteid="+es+";dc_av="+SW+";dc_sk="+SW+";dc_ctype="+s6+";dc_pubid="+SW+";dc_btype=3?gclid="+N7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:rn+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+CI+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:rn+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$S+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:rn+"="},navigationEndpoint:{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+si+";dc_trk_cid="+si+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SW+";ord="+si+
";dc_rui="+SW+";dc_exteid="+es+";dc_av="+SW+";dc_sk="+SW+";dc_ctype="+s6+";dc_pubid="+SW+";dc_btype=3?gclid="+N7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:rn+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:CY,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ZI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+X+"&hl="+wH+"&origin=www.youtube.com&ata_theme="+jx,ZI),trackingParams:rn+"="}},popupType:"DIALOG"}},trackingParams:rn+"="}},hoverText:{runs:[{text:f9}]},trackingParams:rn+"="}},adVideoId:a$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:am},associatedCompositePlayerBytesLayoutId:Sy}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:K7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:WP,isTemplated:!1,trackingParams:rn+"="},description:{text:am,isTemplated:!1,trackingParams:rn+"="},actionButton:{buttonRenderer:{text:{simpleText:am},navigationEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+
J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:rn+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+m0+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:rn+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vt+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:rn+"="},navigationEndpoint:{clickTrackingParams:CY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+
SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:rn+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:CY,openPopupAction:{popup:{aboutThisAdRenderer:{url:(jK.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+X+"&hl="+wH+"&origin=www.youtube.com&ata_theme="+jx,jK),trackingParams:rn+"="}},popupType:"DIALOG"}},trackingParams:rn+"="}},
hoverText:{runs:[{text:f9}]},trackingParams:rn+"="}},adVideoId:a$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+a$+"&cid="+U+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:T8},associatedCompositePlayerBytesLayoutId:Sy}},adSlotLoggingData:{serializedSlotAdServingDataEntry:M9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:f9,
isTemplated:!1,trackingParams:rn+"="},description:{text:Js,isTemplated:!1,trackingParams:rn+"="},actionButton:{buttonRenderer:{text:{simpleText:jx},navigationEndpoint:{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+si+";dc_trk_cid="+si+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SW+";ord="+si+";dc_rui="+SW+";dc_exteid="+es+";dc_av="+SW+";dc_sk="+SW+";dc_ctype="+
s6+";dc_pubid="+SW+";dc_btype=3?gclid="+N7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+
F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:rn+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+CI+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:rn+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$S+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:rn+
"="},navigationEndpoint:{clickTrackingParams:CY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+si+";dc_trk_cid="+si+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SW+";ord="+si+";dc_rui="+SW+";dc_exteid="+es+";dc_av="+SW+";dc_sk="+SW+";dc_ctype="+s6+";dc_pubid="+SW+";dc_btype=3?gclid="+N7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+J+"AxAA&ase=2&num="+SW+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+aC+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:rn+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:CY,openPopupAction:{popup:{aboutThisAdRenderer:{url:(IQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+X+"&hl="+wH+"&origin=www.youtube.com&ata_theme="+jx,IQ),trackingParams:rn+"="}},popupType:"DIALOG"}},trackingParams:rn+
"="}},hoverText:{runs:[{text:zO}]},trackingParams:rn+"="}},adVideoId:a$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+J+"AxAA&sigh="+K+"&cid="+U+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Sy},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Sy}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Sy}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:xs,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:xs,command:{innertubeCommand:{clickTrackingParams:CY,ypcGetOfflineUpsellEndpoint:{params:K9}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:rn+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:vc,nanos:n7}}}},R3O=JSON.stringify(bF),Yt=performance.now()-v;return{objectRepresentation:bF,jsonRepresentation:R3O,generationTime:Yt}};
NKL=function(v,e){if(v===e)return!0;if(!v||!e||typeof v!==typeof e)return!1;if(v instanceof Array&&e instanceof Array){if(v.length!==e.length)return!1;for(var d=0;d<v.length;d++)if(!NKL(v[d],e[d]))return!1;return!0}if(typeof v==="object"&&typeof e==="object"&&v&&e){for(d in v)if(!(d in e&&NKL(v[d],e[d])))return!1;for(var E in e)if(!(E in v))return!1;return!0}return!1};
_.YE=function(){if(!bX){bX=new mi(new kuL);var v=_.Wi("client_streamz_web_flush_count",-1);v!==-1&&(bX.invocationLimit=v)}return bX};
mx=function(v,e,d,E){if(v===e)return!0;if(Array.isArray(v)&&Array.isArray(e)){if(v.length!==e.length)return!1;for(var T=0;T<v.length;T++)if(!mx(v[T],e[T],d,E))return!1;return!0}if(v instanceof Set||e instanceof Set){if(v instanceof Set&&e instanceof Set){if(v.size!==e.size)return!1;E=_.a(v.values());for(T=E.next();!T.done;T=E.next())if(!e.has(T.value))return!1;return!0}return!1}if(v instanceof Function){if(E)return!0;v.name===""&&_.RI(Error("Jf"),"ERROR");return!1}if(v instanceof Date&&e instanceof
Date)return v.getTime()===e.getTime();if(v instanceof Object&&e instanceof Object){if(LM0(v)&&LM0(e))try{return v.equals(e)}catch(O){_.RI(Error("Kf`"+O),"ERROR")}T=Object.getOwnPropertyNames(v).filter(function(O){return d?v[O]!==void 0:!0});
var S=Object.getOwnPropertyNames(e).filter(function(O){return d?e[O]!==void 0:!0});
if(T.length!==S.length)return!1;T=_.a(T);for(S=T.next();!S.done;S=T.next())if(S=S.value,!mx(v[S],e[S],d,E))return!1;return!0}return!1};
LM0=function(v){v=Object.getPrototypeOf(v).equals;return v instanceof Function&&v.length===1};
_.JuL=function(){return _.I(function(v){if(v.nextAddress==1)return V47!==2?v.jumpTo(2):v.yield(oXM(),3);v.nextAddress!=2&&(V47=v.yieldResult);return v.return(V47)})};
_.t4$=function(){return _.I(function(v){if(v.nextAddress==1)return _.N("ab_pl_man")?Gu3!==2?v.jumpTo(2):v.yield(M40(),3):v.return(1);v.nextAddress!=2&&(Gu3=v.yieldResult);return v.return(Gu3)})};
PV0=function(){return _.I(function(v){if(v.nextAddress==1)return _.N("ab_fk_sk_cl")?fK7!==2?v.jumpTo(2):v.yield(RBO(),3):v.return(1);v.nextAddress!=2&&(fK7=v.yieldResult);return v.return(fK7)})};
_.CV3=function(){return _.I(function(v){if(v.nextAddress==1)return _.N("ab_det_apb_b")?xJO!==2?v.jumpTo(2):v.yield(BKU(),3):v.return(1);v.nextAddress!=2&&(xJO=v.yieldResult);return v.return(xJO)})};
lKH=function(){var v;return _.I(function(e){if(e.nextAddress==1)return e.yield(Promise.all([_.JuL(),_.CV3(),_.t4$(),PV0()]),2);if(e.nextAddress!=3)return XkO()?e.return(!0):e.yield(_.zBt(),3);v=e.yieldResult;return e.return(v===0)})};
XkO=function(){var v=!1,e=function(d,E){Hg3.increment(E,d);d===0&&(v=!0)};
e(_.Au0(),"j.s_");e(V47,"f.i_");e(xJO,"a.b_");e(Gu3,"p.m_");e(fK7,"i.f_");Zg$===2&&(Zg$=_.cuL(wkt));e(Zg$,"e.h_");_.N("ks_det_gpbl")||e(_.FM0(),"p.i_");_.N("ks_get_o_pp")||e(_.QP0(),"g.o_");_.N("ab_deg_unex_thr")||e(_.gXW(),"a.o_");e(uFS,"s.t_");_.N("ab_det_sc_inj_enf")&&e(_.nXU(),"s.i_");e(DJ0,"d.p_");e(_.UJ7(_.yd),"o.p_");e(_.pkM()===0?0:_.v10(),"o.a_");return _.N("debug_sk_em_precheck")?!0:v};
dpj=function(){var v=[].concat(_.t7(ens));try{var e=Ib();v.push({jsonRepresentation:e.jsonRepresentation,objectRepresentation:e.objectRepresentation})}catch(d){v=[].concat(_.t7(ens))}return v};
E1j=function(){var v=["adPlacements","adSlots"];try{return v.filter(function(){return!0}).length!==v.length?0:1}catch(e){return 0}};
_.QP0=function(){if(E1j()===0)return 0;var v=Ib(),e=v.objectRepresentation,d=(0,_.f0.unsafeClone)(e),E=[];if(e&&typeof e==="object")for(var T in e)E.push(T);else return 4;v=v.objectRepresentation.adPlacements;if(!(v&&v.length>0))return 4;try{if(!NKL(E,Object.getOwnPropertyNames(e)))return 0}catch(S){return 0}return NKL(d,e)?1:0};
_.UJ7=function(v){if(!v||!v.length||typeof v==="string")return 0;for(var e=Object.getOwnPropertyNames(Object.prototype),d=0;d<v.length;d++)for(var E=_.Wv(v[d]),T=_.a(e),S=T.next();!S.done;S=T.next())if(E===S.value)return 0;return 1};
TYs=function(v){var e=_.Wv(v[1]);if(v[0]===null)return e;v=v[0];for(var d={},E=0;E<v.length;E++){var T=_.Wv(v[E]);if(E===0)d[T]=e;else{var S={};S[T]=d;d=S}}return d};
_.pkM=function(){for(var v=_.qd,e=0;e<v.length;e++){var d=TYs(v[e]),E=[];E.push(d);if(E.length===0)return 0}return 1};
_.v10=function(){for(var v=_.qd,e={},d=0;d<v.length;e={rdX:void 0},d++){var E=[TYs(v[d])];e.rdX=[];E.forEach(function(T){return function(S){T.rdX[T.rdX.length]=S}}(e));
if(e.rdX.length===0)return 0}return 1};
_.Au0=function(){for(var v=_.a(dpj()),e=v.next();!e.done;e=v.next()){var d=e.value;e=d.jsonRepresentation;d=d.objectRepresentation;try{var E=JSON.parse(e);if(!mx(E,d,!1,!1))return 0}catch(T){return 0}}return 1};
_.nXU=function(){try{var v=_.iY("ab_det_sc_inj_val");v.length===1&&v[0]===""&&(v=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var e=document.querySelectorAll("script"),d=_.a(e),E=d.next();!E.done;E=d.next())for(var T=E.value,S=_.a(v),O=S.next();!O.done;O=S.next()){var b=O.value;e=void 0;if((e=T.textContent)==null?0:e.includes(b))return 0}}catch(Y){return 4}return 1};
_.zBt=function(){var v,e,d,E,T,S,O;return _.I(function(b){switch(b.nextAddress){case 1:_.qq(b,2),v=_.a(ens),e=v.next();case 4:if(e.done)return b.return(1);E=d=e.value;T=E.jsonRepresentation;S=E.objectRepresentation;return b.yield((new Response(T,{status:200})).json(),7);case 7:O=b.yieldResult;if(!mx(O,S,!1,!1))return b.return(0);e=v.next();b.jumpTo(4);break;case 2:return _.jl(b),b.return(4)}})};
_.gXW=function(){try{btoa("abc")}catch(v){return 0}return 1};
oXM=function(){var v,e,d,E,T,S,O,b,Y,q,r;return _.I(function(h){switch(h.nextAddress){case 1:_.qq(h,2),v=_.a(dpj()),e=v.next();case 4:if(e.done)return h.return(1);E=d=e.value;T=E.jsonRepresentation;S=E.objectRepresentation;O=btoa(T);b="data:application/json;base64,"+O;Y=new Request(b);Object.defineProperty(Y,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(Y,"method",{get:function(){return"POST"}});
Object.defineProperty(Y,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(Y,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(Y,"body",{get:function(){return new ReadableStream}});
return h.yield(fetch(Y),7);case 7:return q=h.yieldResult,h.yield(q.json(),8);case 8:r=h.yieldResult;if(!mx(r,S,!1,!1))return h.return(0);e=v.next();h.jumpTo(4);break;case 2:return _.jl(h),h.return(4)}})};
_.cuL=function(v){if(!v||!v.length||typeof v==="string")return 0;for(var e=function(T){return _.Wv(T)},d=2,E=0;E<v.length&&(d=_.SCW(_.jPU(v[E],e)),d!==0);E++);
return d};
_.SCW=function(v){var e=_.a(v);v=e.next().value;e=e.next().value;try{var d=document.createElement("div");document.body.appendChild(d);var E=getComputedStyle(d).display;document.body.removeChild(d);if(E==="none")return 4;var T=getComputedStyle(e).display==="none"?0:1;document.body.removeChild(v);return T}catch(S){return 4}};
RBO=function(){var v,e,d;return _.I(function(E){v=new _.r1;e=document.createElement("button");e.classList.add("ytp-ad-skip-button");e.style.opacity="0";e.style.height="0px";e.style.width="0px";e.style.padding="0px";e.style.border="none";d=function(){e.parentElement&&e.parentElement.removeChild(e)};
e.onclick=function(){v.resolve(0);d()};
document.body.appendChild(e);setTimeout(function(){d();v.resolve(1)},50);
return E.return(v.promise)})};
M40=function(){var v,e,d,E,T,S,O;return _.I(function(b){v=new _.r1;e=document.createElement("ytd-player");try{document.body.prepend(e)}catch(Y){return b.return(4)}d=function(){e.parentElement&&e.parentElement.removeChild(e)};
e.getElementsByTagName("div").length>0?E=e.getElementsByTagName("div")[0]:(E=document.createElement("div"),e.appendChild(E));T=document.createElement("div");E.appendChild(T);S=document.createElement("video");O=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"});S.src=_.Mf(_.B$(O));S.ontimeupdate=function(){d();v.resolve(0)};
T.appendChild(S);S.classList.add("html5-main-video");setTimeout(function(){T.classList.add("ad-interrupting")},200);
setTimeout(function(){d();v.resolve(1)},5E3);
return b.return(v.promise)})};
Wwt=function(v,e){var d,E;return _.I(function(T){switch(T.nextAddress){case 1:d=[],E=0;case 2:if(!(E<3)){T.jumpTo(4);break}return T.yield(fetch(v,{cache:"no-store",method:e}).then(function(S){d.push(S.status)}).catch(function(){d.push(-1)}),3);
case 3:E++;T.jumpTo(2);break;case 4:return T.return(d)}})};
adt=function(v){return v.domainLookupStart===0&&v.domainLookupEnd===0&&v.connectStart===0&&v.connectEnd===0};
iEU=function(v,e,d){d=d===void 0?"GET":d;var E,T,S,O,b,Y,q,r,h,K;return _.I(function(k){if(k.nextAddress==1)return k.yield(Promise.all([Wwt(v,d),Wwt(e,d)]),2);E=k.yieldResult;T=_.a(E);S=T.next().value;O=T.next().value;b=S;Y=O;if(Math.min.apply(Math,_.t7(Y))!==Math.max.apply(Math,_.t7(Y))||Math.min.apply(Math,_.t7(b))!==Math.max.apply(Math,_.t7(b)))return k.return(2);if(Math.min.apply(Math,_.t7(Y))===Math.min.apply(Math,_.t7(b)))return k.return(1);r=(q=performance.getEntriesByName(v))==null?void 0:
q[0];K=(h=performance.getEntriesByName(e))==null?void 0:h[0];return r&&K?adt(K)?k.return(1):adt(r)?k.return(0):k.return(1):k.return(2)})};
BKU=function(){var v;return _.I(function(e){var d=[];var E;var T,S,O;(T=E=(T=Ib().objectRepresentation.streamingData)==null?void 0:(S=T.formats)==null?void 0:(O=S[0])==null?void 0:O.url)&&T&&!E.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(T=T.replace("initcwndbps","ctier=L&initcwndbps"),T=T.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),E={testUrl:T,baseUrl:E,method:"GET"}):E=void 0;E&&d.push(E);_.N("ab_net_tp_e")&&d.push({testUrl:_.TO.location.origin+"/ad_companion",baseUrl:_.TO.location.origin+
"/generate_204",method:"OPTIONS"});if(_.N("ad_net_pb_ab")){var b;b:{E=/api\/stats\/ads/;var Y,q,r,h;T=(b=Ib().objectRepresentation.adPlacements)==null?void 0:(Y=b[0])==null?void 0:(q=Y.adPlacementRenderer)==null?void 0:(r=q.renderer)==null?void 0:(h=r.linearAdSequenceRenderer)==null?void 0:h.linearAds;if(T!=null&&T.length&&(b=_.L(T[0],OEH))&&(b=b.pings,b!=null&&b.impressionPings))for(Y=[].concat(_.t7(b.impressionPings)),b.progressPings&&(Y=[].concat(_.t7(Y),_.t7(b.progressPings))),b=_.a(Y),Y=b.next();!Y.done;Y=
b.next())if(Y=Y.value,Y.baseUrl&&E.test(Y.baseUrl)){b=Y.baseUrl.replace("https://www.youtube.com","");break b}b=void 0}b&&d.push({testUrl:_.TO.location.origin+b,baseUrl:_.TO.location.origin+"/feed/download",method:"GET"})}if(_.N("ad_net_pb_pbp")){var K;b:{b=/api\/stats\/qoe/;if(Y=Ib().objectRepresentation.playbackTracking){q=[];q.push(Y==null?void 0:(K=Y.videostatsPlaybackUrl)==null?void 0:K.baseUrl);var k;q.push(Y==null?void 0:(k=Y.videostatsDelayplayUrl)==null?void 0:k.baseUrl);var J;q.push(Y==
null?void 0:(J=Y.videostatsWatchtimeUrl)==null?void 0:J.baseUrl);var R;q.push(Y==null?void 0:(R=Y.ptrackingUrl)==null?void 0:R.baseUrl);var B;q.push(Y==null?void 0:(B=Y.qoeUrl)==null?void 0:B.baseUrl);var X;q.push(Y==null?void 0:(X=Y.atrUrl)==null?void 0:X.baseUrl);K=_.a(q);for(k=K.next();!k.done;k=K.next())if((k=k.value)&&b.test(k)){K=k.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}K=void 0}K&&d.push({testUrl:_.TO.location.origin+K,baseUrl:_.TO.location.origin+
"/feed/download",method:"GET"})}d=d.length!==0?d[Math.floor(Math.random()*d.length)]:void 0;return(v=d)?e.return(iEU(v.testUrl,v.baseUrl,v.method)):e.return(4)})};
_.FM0=function(){if(_.TO.deX===void 0||_.TO.deX===null||typeof _.TO.deX!=="function")return 2;try{return _.TO.deX()===!0?0:1}catch(v){return 0}};
IdS=function(v){switch(v){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Z0(v,"unknown result type")}};
_.bEt=function(v,e){var d=Number(_.Bb("CATSTAT",0));if(e.s69===void 0)return d;e=e.s69;v=IdS(v);return d&~(3<<e)|v<<e};
YC0=function(v){var e,d;if((v=(e=v.auxiliaryUi)==null?void 0:(d=e.messageRenderers)==null?void 0:d.bkaEnforcementMessageViewModel)&&v.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return v};
yxM=function(){for(var v=_.a(Object.values(_.mpj)),e=v.next();!e.done;e=v.next())e=e.value,e.isAsync&&e.s69&&_.xc("CATSTAT",_.bEt(2,e))};
_.sj=function(v,e){v=_.hk("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",v);(e===void 0?0:e)?_.qCH(v,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.$E(_.jU(),v,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
hnW=function(){if(!rxS){if(Polymer.Base){var v=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{v.apply(this,arguments)}catch(h){_.lg(h)}};
var e=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{e.apply(this,arguments)}catch(h){_.lg(h)}};
var d=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{d.apply(this,arguments)}catch(h){_.lg(h)}};
var E=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{E.apply(this,arguments)}catch(h){_.lg(h)}};
var T=Polymer.Base._listen,S=new WeakMap;Polymer.Base._listen=function(h,K,k){var J=function(){try{k.apply(this,arguments)}catch(R){_.lg(R)}};
S.set(k,J);T.call(this,h,K,J)};
var O=Polymer.Base._unlisten;Polymer.Base._unlisten=function(h,K,k){O.call(this,h,K,S.get(k))}}if(Polymer.Async){var b=Polymer.Async,Y=b._atEndOfMicrotask;
b._atEndOfMicrotask=function(){try{Y.apply(b,arguments)}catch(h){_.lg(h)}}}if(Polymer.RenderStatus){var q=Polymer.RenderStatus,r=q.afterNextRender;
q.afterNextRender=function(h,K,k){r.call(q,h,function(){try{K.apply(this,arguments)}catch(J){_.lg(J)}},k)}}rxS=!0}};
_.Nd=function(v){var e=v?_.mq(v):"";if(e){if(e.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(e.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(e.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(e.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(e.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.N("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(e.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";e=e.toLowerCase();if(e==="/")return"home";if(e==="/channel_memberships")return"channel-memberships-shopfront";if(e.indexOf("/feed/trending")===0)return"trending";if(e.indexOf("/feed/explore")===0)return"explore";if(e.indexOf("/live")===0)return"live";if(e.indexOf("/results")===0)return"search";if(e.indexOf("/sports")===0)return"sports";if(e.indexOf("/fashion")===0||e.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(e))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(e))return _.N("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(e.indexOf("/channel/")===0||e.indexOf("/user/")===0||e.indexOf("/gaming")===0||e.indexOf("/post/")===0)return"channel";if(Kw0(v))return"show";if(e==="/playlist"||e.indexOf("/playlist/")===0||e==="/view_play_list"||e.indexOf("/view_play_list/")===0||e.indexOf("/show/")===0)return"playlist";if(e==="/feed/history"||e.indexOf("/feed/history/")===0)return"history";if(e===
"/new")return"labs";if(e==="/feed/subscriptions")return"subscriptions";if(e.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(e==="/history_controls")return"standalone";if(e.indexOf("/account")===0||e==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(e.indexOf("/paid_memberships")===0||e.indexOf("/refund")===0||e.indexOf("/purchases")===0||e.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(e.indexOf("/product")===0)return"yts-products";if(e.indexOf("/premium")===
0||e.indexOf("/musicpremium")===0)return e.indexOf("/premium/offers")===0||e.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(e==="/cart/checkout"||e==="/cart")return"ypc-checkout";if(e.indexOf("/feed/downloads")===0||e.indexOf("/redeem")===0||e.indexOf("/reporthistory")===0)return"browse";if(e.indexOf("/hashtag")===0)return"hashtag-landing-page";if(e.indexOf("/handle")===0)return"handle";if(e.indexOf("/source")===0)return"audio-pivot";if(e.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(e.indexOf("/playables")===0)return"playables";if(e.indexOf("/create/live/join")===0)return"open-in-app";if(e.indexOf("/shorts")===0)return"shorts";if(e.indexOf("/feed/channels")===0)return"subscriptions-channels";(e=v?_.mq(v):"")&&e.indexOf("/watch")===0&&_.N("web_watch_enable_learning_journey")?(v=_.QU(v),v=!!v.list&&v.list.indexOf("LJPP")===0):v=!1;if(v)return"learning_journey_watch"}};
_.kE=function(v){var e,d;(v=(d=_.L(v==null?void 0:v.commandMetadata,_.$B))==null?void 0:d.url)&&(e=_.Nd(v));return e};
Kw0=function(v){var e=v?_.mq(v):"";if(!e)return!1;e=e.toLowerCase();return e.indexOf("/show/")===0||e.indexOf("/playlist")===0&&(v=_.QU(v),v.list&&v.list.indexOf("EL")===0)?!0:!1};
ob=function(v){var e="unknown",d;var E=((d=_.L(v==null?void 0:v.commandMetadata,_.$B))==null?void 0:d.webPageType)||"";E?(d=E.toLowerCase(),d.startsWith("web_page_type_")&&(d=d.slice(14))):d=E;d&&$pL[d.toUpperCase()]?e=$pL[d.toUpperCase()]:_.L(v,_.Lo)||_.L(v,jjL)?e="browse":_.L(v,_.Vd)?e="search":_.L(v,_.p2)&&(e="watch");e==="watch"&&_.kE(v||null)==="learning_journey_watch"&&(e="learning_journey_watch");e==="unknown"&&_.xf(Error("Mf`"+JSON.stringify({clickTrackingParams:v==null?void 0:v.clickTrackingParams,
commandMetadata:v==null?void 0:v.commandMetadata,allEndpointKeys:Object.keys(v||[])})));return e};
_.Jk=function(v){if(!_.sj0||v)_.sj0=_.jy();return _.sj0};
_.NYS=function(v){return!!_.L(v,_.p2)||!!_.L(v,_.Go)&&_.N("kevlar_enable_shorts_prefetch")};
_.kTO=function(v,e){v=_.L(v,_.p2)||_.L(v,_.Go);return"v"+v.videoId+(v.playlistId?"-pl"+v.playlistId:"")+(e?"-an1":"")+(v.params?"-pr"+v.params:"")};
Md=function(v){return function(){return new v}};
tk=function(v){var e=_.dk();return function(){return e.resolve(v)}};
Vq$=function(v){var e=_.Wi("web_pbj_log_warning_rate",0);e=e>0&&Math.random()<e;if(!_.L(v,_.Go))return e&&_.xf(Error("Pf")),!1;var d;return _.N("shorts_controller_retrieve_seedless_sequence_v2")&&((d=_.L(v,_.Go))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:Lw3(v)?!0:(e&&_.xf(Error("Qf")),!1)};
Lw3=function(v){var e=(_.L(v,_.p2)||_.L(v,_.Go)).videoId;if(!e||!o1j.test(e))return!1;var d;return(v=(d=_.L(v.commandMetadata,_.$B))==null?void 0:d.url)&&(v.includes(e)||v.startsWith("/clip"))?!0:!1};
_.GT0=function(){var v=_.LB();return v.getFlag(192)?v.getFlag(190):!(_.N("web_watch_cinematics_disabled_by_default")||_.N("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&JxO())};
_.fo=function(v,e,d){var E={};E.currentUrl=e;E.vis=v.vis!==void 0?v.vis:0;E.splay=!1;e=_.LB();E.autoCaptionsDefaultOn=e.getFlag(66);e.getFlag(141)?e.getFlag(140)?E.autonavState="STATE_OFF":E.autonavState="STATE_ON":E.autonavState="STATE_NONE";E.html5Preference="HTML5_PREF_WANTS";isNaN(_.Bb("STS"))||(E.signatureTimestamp=_.Bb("STS"));v.autonav&&(E.autoplay=!0,E.autonav=!0);v.mutedAutoplay&&(E.autoplay=!0,E.mutedAutoplay=!0);v.inlinePlayback&&(E.autoplay=!0,E.autonav=!1,E.isInlineUnmutedPlayback=!!v.inlineUnmuted);
E.referer=d;E.lactMilliseconds=v.lact!==void 0?v.lact.toString():"-1";_.N("enable_unknown_lact_fix_on_html5")&&E.lactMilliseconds==="-1"&&_.xf(new _.kL("Unknown LACT is set in playbackContext.",{"lact in tempData":v.lact||"undefined",autonav:v.autonav||"undefined"}));v={};e.getFlag(194)&&(v.hasShownAmbientMode=!0);e.getFlag(192)&&(v.hasToggledOffAmbientMode=!0);_.GT0()&&(v.watchAmbientModeEnabled=!0);E.watchAmbientModeContext=v;return E};
Mq$=function(v){var e={},d=v.pbis||0;d&&(e.playbackBeginsInSeconds=d);v.prefetch_reason&&v.prefetch_reason==="hc_pbis"&&(e.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return e};
_.Pv=function(v){v=v===void 0?!1:v;var e=_.LB(),d="USER_INTERFACE_THEME_LIGHT";e.getFlag(165)?d="USER_INTERFACE_THEME_DARK":e.getFlag(174)?d="USER_INTERFACE_THEME_LIGHT":_.Rb()&&(d="USER_INTERFACE_THEME_DARK");return v?d:tqt()||d};
_.fdO=function(){return!_.N("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Rb=function(){return _.fdO()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.xE=function(){var v=_.LB();return _.fdO()&&!v.getFlag(165)&&!v.getFlag(174)};
tqt=function(){var v=v===void 0?window.location.href:v;if(_.N("kevlar_disable_theme_param"))return null;var e=_.mq(v);if(_.Rns(e))return"USER_INTERFACE_THEME_DARK";try{var d=_.QU(v).theme;return POt.get(d)||null}catch(E){}return null};
_.Rns=function(v){return _.N("enable_dark_theme_only_on_shorts")?!(v==null||!v.startsWith("/shorts/")):!1};
_.COj=function(v,e,d,E,T){e=e===void 0?!1:e;d=d===void 0?!1:d;var S=_.Bb("INNERTUBE_CONTEXT");if(!S)return _.RI(Error("Tf")),{};S=(0,_.f0.unsafeClone)(S);_.N("web_no_tracking_params_in_shell_killswitch")||delete S.clickTracking;S.client||(S.client={});var O=S.client;O.clientName==="MWEB"&&O.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(O.clientFormFactor=_.Bb("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");O.screenWidthPoints=window.innerWidth;O.screenHeightPoints=window.innerHeight;O.screenPixelDensity=
Math.round(window.devicePixelRatio||1);O.screenDensityFloat=window.devicePixelRatio||1;O.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());O.userInterfaceTheme=_.Pv();if(!e){var b=_.y_H();b&&(O.connectionType=b);_.N("web_log_effective_connection_type")&&(b=r_j())&&(S.client.effectiveConnectionType=b)}var Y;if(_.N("web_log_memory_total_kbytes")&&((Y=_.TO.navigator)==null?0:Y.deviceMemory)){var q;Y=(q=_.TO.navigator)==null?void 0:q.deviceMemory;S.client.memoryTotalKbytes=""+Y*1E6}e&&E&&!_.N("web_it_context_set_original_url_ks")&&
(O.originalUrl=xp0(_.TO.location.href,E).toString());_.N("web_gcf_hashes_innertube")&&(b=oEs())&&(q=b.coldConfigData,Y=b.coldHashData,b=b.hotHashData,S.client.configInfo=S.client.configInfo||{},q&&(S.client.configInfo.coldConfigData=q),Y&&(S.client.configInfo.coldHashData=Y),b&&(S.client.configInfo.hotHashData=b));q=_.QU(_.TO.location.href);!_.N("web_populate_internal_geo_killswitch")&&q.internalcountrycode&&(O.internalGeo=q.internalcountrycode);!_.N("web_populate_client_screen_killswitch")&&T&&(O.clientScreen=
T);O.clientName==="MWEB"||O.clientName==="WEB"?(O.mainAppWebInfo||(O.mainAppWebInfo={}),O.mainAppWebInfo.graftUrl=E||_.TO.location.href,_.N("kevlar_woffle")&&_.Bv.instance&&(E=_.Bv.instance,O.mainAppWebInfo.pwaInstallabilityStatus=!E.appInstalledEventFired&&E.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),O.mainAppWebInfo.webDisplayMode=KxW(),O.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):O.clientName==="TVHTML5"&&
(!_.N("web_lr_app_quality_killswitch")&&(E=_.Bb("LIVING_ROOM_APP_QUALITY"))&&(O.tvAppInfo=Object.assign(O.tvAppInfo||{},{appQuality:E})),E=_.Bb("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(O.tvAppInfo=Object.assign(O.tvAppInfo||{},{certificationScope:E}));!_.N("web_populate_time_zone_itc_killswitch")&&(E=YoU())&&(O.timeZone=E);(E=Ra0())?O.experimentsToken=E:delete O.experimentsToken;O=P4$();E=_.BY7();E=(0,_.f0.getValues)(E.tokenJars);S.request=Object.assign({},S.request,{internalExperimentFlags:O,consistencyTokenJars:E});
!_.N("web_prequest_context_killswitch")&&(O=_.Bb("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(S.request.externalPrequestContext=O);E=_.LB();O=E.getFlag(58);E=E.get("gsml","");S.user=Object.assign({},S.user);O&&(S.user.enableSafetyMode=O);E&&(S.user.lockedSafetyMode=!0);_.N("warm_op_csn_cleanup")?d&&(e=_.zz())&&(S.clientScreenNonce=e):!e&&(e=_.zz())&&(S.clientScreenNonce=e);v&&(S.clickTracking={clickTrackingParams:v});if(v=_.AE("yt.mdx.remote.remoteClient_"))S.remoteClient=v;_.Co.getInstance().setLocationOnInnerTubeContext(S);
try{var r=cUO(),h=r.bid;delete r.bid;S.adSignalsInfo={params:[],bid:h};for(var K=_.a(Object.entries(r)),k=K.next();!k.done;k=K.next()){var J=_.a(k.value),R=J.next().value,B=J.next().value;r=R;h=B;v=void 0;(v=S.adSignalsInfo.params)==null||v.push({key:r,value:""+h})}var X,Z;if(((X=S.client)==null?void 0:X.clientName)==="TVHTML5"||((Z=S.client)==null?void 0:Z.clientName)==="TVHTML5_UNPLUGGED"){var U=_.Bb("INNERTUBE_CONTEXT");U.adSignalsInfo&&(S.adSignalsInfo.advertisingId=U.adSignalsInfo.advertisingId,
S.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",S.adSignalsInfo.limitAdTracking=U.adSignalsInfo.limitAdTracking)}}catch(F){_.RI(F)}return S};
_.X70=function(v){var e=new XD(_.Bb("ONE_PICK_URL",""));e.urlParamMap_.set("hostId",v);(v=_.Bb("GAPI_LOCALE"))&&e.urlParamMap_.set("hl",v);(v=_.Bb("SESSION_INDEX"))&&e.urlParamMap_.set("authuser",v);(v=_.Bb("DELEGATED_SESSION_ID"))&&e.urlParamMap_.set("groupId",v);return e};
ldO=function(){var v=_.dk(),e=v.resolve(_.zo);v=v.resolve(_.lX);return new znt(e,v)};
AxW=function(v){if(window.IntersectionObserver)return new HEj(v,400);throw new TypeError("$f");};
cx$=function(){var v=Hammer.TouchAction,e=v.prototype.preventDefaults;v.prototype.preventDefaults=function(d){var E=this.actions.indexOf("pan-down")>-1;if(!E)return e.call(this,d);if(!ZEt){var T=d.srcEvent;d=d.direction;var S;if((S=this.manager)==null?0:S.session.prevented)T.preventDefault();else if(E&&d&Hammer.DIRECTION_DOWN)return this.preventSrc(T)}}};
w7H=function(v){if(!v||v.size===0)return Hammer.DIRECTION_ALL;if(v.size===2){if(v.has("up")&&v.has("down"))return Hammer.DIRECTION_VERTICAL;if(v.has("right")&&v.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(v.size===1){if(v.has("up"))return Hammer.DIRECTION_UP;if(v.has("down"))return Hammer.DIRECTION_DOWN;if(v.has("right"))return Hammer.DIRECTION_RIGHT;if(v.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Qj3=function(){return FwW?Promise.resolve(FwW):new Promise(function(v,e){var d=self.indexedDB.open("swpushnotificationsdb");d.onerror=e;d.onsuccess=function(){var E=d.result;if(E.objectStoreNames.contains("swpushnotificationsstore"))FwW=E,v(FwW);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.Qj3()};
d.onupgradeneeded=g1t})};
g1t=function(v){v=v.target.result;v.objectStoreNames.contains("swpushnotificationsstore")&&v.deleteObjectStore("swpushnotificationsstore");v.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
n13=function(v){var e=uU7(),d;return _.I(function(E){switch(E.nextAddress){case 1:return _.qq(E,2),E.yield(v.match(e,{cacheName:"yt-appshell-assets"}),4);case 4:d=E.yieldResult;_.wk(E,3);break;case 2:_.jl(E);case 3:return E.return(d)}})};
uU7=function(){var v=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?DpO.registration.scope:Up3;v.endsWith("/")&&(v=v.slice(0,-1));return v+"/app_shell_home"};
p7S=function(v){v.map(function(e){return e.source}).join("|")};
_.v7W=function(v){return _.I(function(e){return e.return(n13(v))})};
e1U=function(){var v=window.caches,e;return _.I(function(d){if(d.nextAddress==1)return d.yield(_.v7W(v),2);e=d.yieldResult;return d.return(!!e)})};
ijU=function(){_.I(function(v){if(v.nextAddress==1){if(dwt)return v.jumpTo(0);dwt=!0;if(_.N("enable_system_health_primes_monitoring"))return _.bY(E7U,3E4),TvL(),v.return();if(!(Math.random()<_.Wi("web_system_health_fraction")))return v.jumpTo(0);S2O={heightPixels:screen.height,widthPixels:screen.width};Hv&&!isNaN(Hv.jsHeapSizeLimit)&&(S2O.memoryTotalKbytes=String(Math.round(Hv.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(S2O.devicePixelRatio=window.devicePixelRatio);return v.yield(Wm0(),4)}_.bY(E7U,
3E4);return v.yield(a30(),0)})};
Wm0=function(){return _.I(function(v){if(v.nextAddress==1)return Ak.intersectionObserverPresent="IntersectionObserver"in window,Ak.serviceWorkerPresent="serviceWorker"in navigator,Ak.webSharePresent="share"in navigator,Ak.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Ak.cacheStoragePresent="caches"in window,Ak.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Ak.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Ak.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Zp&&Zp.webkitTemporaryStorage&&"queryUsageAndQuota"in Zp.webkitTemporaryStorage,Ak.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",v.yield(FUj(),2);Ak.indexedDbPresent=v.yieldResult;Ak.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Ak.broadcastChannelPresent="BroadcastChannel"in window;Ak.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Ak.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Ak.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.s9(v)})};
E7U=function(){var v=9E4+Math.random()*2E3;_.TN()>v||(_.N("enable_system_health_primes_monitoring")?TvL():a30())};
a30=function(){var v;return _.I(function(e){if(e.nextAddress==1)return e.yield(Ojs(),2);v=e.yieldResult;_.tI("systemHealthCaptured",v);_.s9(e)})};
TvL=function(){var v={metric:{}},e=I3H();e.networkEvents.length&&(v.metric.networkEvents=bjH(e));_.tI("systemHealthCaptured",v)};
Ojs=function(){var v,e,d,E,T,S,O,b,Y,q;return _.I(function(r){switch(r.nextAddress){case 1:v={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};e=window.screen;_.N("enable_is_extended_monitoring")&&e&&"isExtended"in e&&(v.isExtended=!!e.isExtended);d={metric:{staticContext:S2O,dynamicContext:v,webMetric:Y20,webApiSupport:Ak}};
if(E=_.zz())d.csn=E;Hv&&(d.metric.webMetric.currentHeapKbytes=Math.round(Hv.usedJSHeapSize/1E3));window.matchMedia&&(d.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,d.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,d.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Zp&&typeof Zp.getBattery==="function")){r.jumpTo(2);break}return r.yield(Zp.getBattery(),3);case 3:if(T=
r.yieldResult)d.metric.dynamicContext.chargingStatus=T.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(d.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Ak.storageEstimatePresent)return r.yield(navigator.storage.estimate(),8);if(!Ak.webkitTemporaryStoragePresent){r.jumpTo(5);break}return r.yield(mwH(),7);case 7:S=r.yieldResult;r.jumpTo(5);break;case 8:S=r.yieldResult;case 5:return d.metric.dynamicContext.deviceStorageQuotaMbytes=((O=S)==null?0:O.quota)?String(Math.round(S.quota/
1048576/10)*10):"-1",d.metric.dynamicContext.deviceStorageUsageMbytes=((b=S)==null?0:b.usage)?String(Math.round(S.usage/1048576/10)*10):"-1",Y=d.metric.dynamicContext,r.yield(e1U(),9);case 9:return Y.hasAppShell=r.yieldResult,q=I3H(),q.networkEvents.length&&(d.metric.networkEvents=bjH(q)),r.return(d)}})};
mwH=function(){return new Promise(function(v){var e;Ak.webkitTemporaryStoragePresent&&(e=Zp.webkitTemporaryStorage)!=null&&e.queryUsageAndQuota?Zp.webkitTemporaryStorage.queryUsageAndQuota(function(d,E){v({usage:d,quota:E})}):v(void 0)})};
_.cv=function(v){v&=16777215;v=[(v&16711680)>>16,(v&65280)>>8,v&255];return yQt(v[0],v[1],v[2])};
_.w1=function(v){v=[(v&16711680)>>>16,(v&65280)>>>8,v&255,(v&4278190080)>>>24];var e=_.q2U(v,function(d){return d==(d&255)});
v[3]=(v[3]/255).toFixed(3);if(!e)throw Error("ag`"+v.join(","));return"rgba("+v.join(",")+")"};
_.rQW=function(v){return[(v&16711680)>>>16,(v&65280)>>>8,v&255]};
_.h1L=function(v){v=v.map(function(e){e/=255;return e<=.03928?e/12.92:Math.pow((e+.05)/1.05,2.4)});
return v[0]*.2126+v[1]*.7152+v[2]*.0722};
FD=function(v,e){v=_.rQW(v);return"rgba("+v[0]+", "+v[1]+", "+v[2]+", "+e+")"};
_.Kmt=function(){try{return!!self.localStorage}catch(v){return!1}};
Nvt=function(){if($wj())_.xf(Error("bg"));else{var v=document.createElement("iframe");v.style.display="none";var e=e===void 0?window.location.href:e;var d=_.P8(_.Bb("PERSIST_IDENTITY_IFRAME_URL"));e=d?d:(new URL(e)).host.indexOf("studio")===0?_.ie(j6L,"persist_identity"):_.ie(s6S,"persist_identity");_.T5j(v,1,e);v.id="persist_identity";var E;(E=document.body)==null||E.appendChild(v)}};
$wj=function(){var v=kyW;v||(v=document.querySelector("#persist_identity"));return v};
Lm$=function(){var v=!1;try{v=!!window.sessionStorage.getItem("session_logininfo")}catch(e){v=!0}return(_.Bb("INNERTUBE_CLIENT_NAME")==="WEB"||_.Bb("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&v};
VYL=function(v,e){if(!Lm$())return!1;e||(e=_.Bb("LOGIN_INFO"));return e?(v.session_logininfo=e,!0):!1};
JQt=function(v,e){v=v===void 0?!1:v;if((e===void 0||!e)&&o7M!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.zr("LOG_STICKINESS",!1)){e=_.zz();var d=_.Xf(),E={identityStickinessData:{initialState:o7M}};e&&d&&_.vK(e,d,E)}if(e=$wj())if(d=e.src?(new URL(e.src)).origin:"*",v){var T;(T=e.contentWindow)==null||T.postMessage({action:"clear"},d)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(v=window.sessionStorage.getItem("session_logininfo"))){var S;(S=e.contentWindow)==null||S.postMessage({loginInfo:v},d)}};
_.Qd=function(v){v=v===void 0?!0:v;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.xc("LOGIN_INFO",""),v&&window.sessionStorage.setItem("from_switch_account","1"),JQt(!0,v)}catch(e){}};
Gyt=function(v){v&&(v.startsWith("https://accounts.google.com/AddSession")?_.Qd():v.startsWith("https://accounts.google.com/ServiceLogin")?_.Qd():v.startsWith("https://myaccount.google.com")&&_.Az(v).getPath().endsWith("/youtubeoptions")&&_.Qd())};
g1=function(v,e){Gyt(v);if(_.zr("LOGGED_IN",!0)&&Lm$()){var d=$6M(v);d==null&&(d={});VYL(d,e)&&_.Ez(v,d)}};
MY$=function(){function v(e){for(e=e.target;e&&e.nodeName!=="A";)if(e=e.parentNode,!(e&&e instanceof HTMLElement))return;if(e&&!e.hasAttribute("download")&&e.getAttribute("rel")!=="external"&&e.href)return e.href}
document.addEventListener("mousedown",function(e){e.button!==0&&(e=v(e))&&g1(e)});
document.addEventListener("click",function(e){(e=v(e))&&g1(e)})};
R13=function(){var v=new tYs;try{if(_.zr("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(b){v.increment(5,!1);return}if(_.Bb("LOGIN_INFO")){var e=f30?f30:window.location;_.Bb("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Nvt();var d=$6M(e.href);d==null&&(d={});var E=d.session_logininfo,T=Number(window.sessionStorage.getItem("stickiness_reload")),S=E===_.Bb("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
T>=2||S)T>=2?v.increment(2,S):S?v.increment(7,S):window.sessionStorage.getItem("session_logininfo")||(v.increment(3,S),o7M="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Bb("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Bb("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))v.increment(4,S),window.sessionStorage.removeItem("stickiness_reload");
else if(T<2){window.sessionStorage.setItem("stickiness_reload",String(T+1));var O=e.href;O=_.TE(O,"sttick");g1(O,window.sessionStorage.getItem("session_logininfo"));O=_.gZ(O,{sttick:T});v.increment(T,S);_.I23(e,O)}}else v.increment(6,!1)}else _.Qd(!1)}catch(b){}};
_.uX=function(v,e,d,E,T){e=e===void 0?{}:e;d=d===void 0?"":d;E=E===void 0?window:E;v=_.ug(v,e);g1(v);d=_.xm(v+d,T);_.I23(E.location,d)};
_.PTL=function(v,e,d,E,T){T=T===void 0?!1:T;d&&_.Ez(v,d);d=_.xm(v);var S=_.Mf(d);v!=S&&_.ZV(Error("cg`"+v));v=S;e=e||QI(v).toString(36);try{if(T)return T=v,T=s5W(T),g1(T),_.Fa(window,T,e,"attributionsrc")}catch(O){_.lg(O)}g1(v);return _.Fa(window,d,e,E)};
xwS=function(v){if(v.urlEndpoint){if(v=_.QU(v.urlEndpoint.url),v.adurl)return vi(v.adurl)}else if(v.watchEndpoint)return"//www.youtube.com/watch?v="+v.watchEndpoint.videoId;return null};
Bvt=function(v){if(!v||!v.reportingPings)return null;var e={};v.reportingPings.forEach(function(d){d.pingType in e?e[d.pingType].push(d.url):e[d.pingType]=[d.url]});
return{adpings:KNt(e)}};
_.no=function(){return{isShellLoad:_.zr("IS_SHELL_LOAD",!1)}};
XyW=function(){navigator.serviceWorker.getRegistrations().then(function(v){v.forEach(CT0)})};
CT0=function(v){v&&_.z1t(l3S,v.scope)};
_.z1t=function(v,e){e={scope:e||_.aH("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.LY(v),e)};
Dp=function(v,e,d,E){if(e&&e.serializedYpcCujLoggingParams){if(d){var T={};T.transactionErrorType=d;E&&(T.errorMessage=E);e.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:T}}}d={};d.ypcCujContext=e;v=_.hk("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",v,d);_.$E(_.jU(),v,"FLOW_TYPE_YPC_ACQUISITION")}};
_.Hjs=function(v,e,d,E){var T={};T.serializedTransactionFlowLoggingParams=e;d&&(T.errorType=d);E&&(T.errorMessage=E);_.tI(v,T);_.fI()};
_.AQs=function(v){v&&_.Hjs("transactionFlowStarted",v)};
_.ZjM=function(v){v&&_.Hjs("transactionFlowCancelled",v)};
_.Uj=function(v,e,d){e&&_.Hjs("transactionFlowFailed",e,v,d)};
cQM=function(v){var e=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");e&&(e.inert=v)};
_.po=function(){this.megabloxUrl_=null};
_.vg=function(v){try{var e=wyM==null?void 0:wyM.composedPath(v)}catch(d){e=v.composedPath?v.composedPath():[]}return e&&e.length>0?e:v.composedPath?v.composedPath():[]};
_.ew=function(v){return _.vg(v)[0]};
_.di=function(v){if(!(v instanceof Element))return null;v=v.classList?Array.from(v.classList):void 0;if(!v)return null;var e=v.indexOf("style-scope");return e>-1&&e+1<v.length?v[e+1]:null};
Eg=function(v){if(!(v instanceof HTMLElement))return null;var e=v&&(v.$$||v.polymerController)?v.tagName.toLowerCase():null;return e?e:_.di(v)};
Fm0=function(v,e){return v.replace(/[^a-z]*[^\s]+/g,function(d){return d+".style-scope."+e})};
Q60=function(v,e){return e?v.split(",").map(function(d){return Fm0(d.trim(),e)}).join(", "):v};
_.TV=function(v){var e,d,E,T;return(T=(E=(d=(e=v.root)!=null?e:v.shadowRoot)!=null?d:v.__shady_native_shadowRoot)!=null?E:v.__shady_shadowRoot)!=null?T:v};
Sw=function(v){return v instanceof ShadowRoot?ShadowRoot:v instanceof DocumentFragment?DocumentFragment:v instanceof Document?Document:HTMLElement};
g7L=function(v){var e,d,E;return(E=(d=(e=v.parentElement)!=null?e:v.__shady_native_parentElement)!=null?d:v.__shady_parentElement)!=null?E:null};
umt=function(v){var e,d,E;return(E=(d=(e=v.parentNode)!=null?e:v.__shady_native_parentNode)!=null?d:v.__shady_parentNode)!=null?E:null};
n70=function(v){var e,d,E;return(E=(d=(e=v.__shady_parentNode)!=null?e:v.__shady_native_parentNode)!=null?d:v.parentNode)!=null?E:null};
DwW=function(v){var e,d;return(d=(e=umt(v))!=null?e:v.host)!=null?d:null};
UwO=function(v){var e,d,E;return(E=(d=(e=v.nextSibling)!=null?e:v.__shady_native_nextSibling)!=null?d:v.__shady_nextSibling)!=null?E:null};
pyt=function(v){var e,d,E;return(E=(d=(e=v.previousSibling)!=null?e:v.__shady_native_previousSibling)!=null?d:v.__shady_previousSibling)!=null?E:null};
v83=function(v){var e,d,E;return(E=(d=(e=v.nextElementSibling)!=null?e:v.__shady_native_nextElementSibling)!=null?d:v.__shady_nextElementSibling)!=null?E:null};
e5U=function(v){var e,d,E;return(E=(d=(e=v.previousElementSibling)!=null?e:v.__shady_native_previousElementSibling)!=null?d:v.__shady_previousElementSibling)!=null?E:null};
dx7=function(v){var e,d,E;return new Set([].concat(_.t7((e=v.children)!=null?e:[]),_.t7((d=v.__shady_native_children)!=null?d:[]),_.t7((E=v.__shady_children)!=null?E:[])))};
E8O=function(v){var e,d,E;return new Set([].concat(_.t7((e=v.childNodes)!=null?e:[]),_.t7((d=v.__shady_native_childNodes)!=null?d:[]),_.t7((E=v.__shady_childNodes)!=null?E:[])))};
TJO=function(v){if(!v)return null;var e=_.di(v);if(!e){var d;return(d=Node.prototype.getRootNode)==null?void 0:d.call(v)}e=e.toUpperCase();for(v=g7L(v);v&&v.tagName!==e;)v=g7L(v);return v?_.TV(v):null};
Sm$=function(v){for(;v&&!(v instanceof HTMLElement);)v=DwW(v);return v};
Wds=function(v){var e=Sm$(v);return v===e?_.di(v):e?Eg(e):null};
alL=function(v){return(v=Sm$(v))?Eg(v):null};
iGj=function(v){if(v instanceof Comment)return!1;if(v instanceof Text){var e,d;if(((d=(e=v.textContent)==null?void 0:e.trim())!=null?d:"")==="")return!1}return!0};
Wg=function(v,e,d){var E=e(v);for(d=d===void 0?alL(v):d;E&&(Wds(E)!==d||!iGj(E));)v=E,E=e(v);return E};
OGL=function(v,e,d){if(!e)return null;v=alL(v);return Wds(e)===v&&iGj(e)?e:Wg(e,d,v)};
Ilj=function(v){return Wg(v,n70,_.di(v))};
bGU=function(v){return Wg(v,v83)};
YmU=function(v){return Wg(v,UwO)};
mxj=function(v){return Wg(v,e5U)};
yTS=function(v){return Wg(v,pyt)};
qmj=function(v){return OGL(v,v.firstChild||v.__shady_native_firstChild||v.__shady_firstChild||null,UwO)};
rTj=function(v){var e,d,E;var T=(E=(d=(e=v.firstElementChild)!=null?e:v.__shady_native_firstElementChild)!=null?d:v.__shady_firstElementChild)!=null?E:null;return OGL(v,T,v83)};
h5j=function(v){var e,d,E;var T=(E=(d=(e=v.lastChild)!=null?e:v.__shady_native_lastChild)!=null?d:v.__shady_lastChild)!=null?E:null;return OGL(v,T,pyt)};
KdS=function(v){var e,d,E;var T=(E=(d=(e=v.lastElementChild)!=null?e:v.__shady_native_lastElementChild)!=null?d:v.__shady_lastElementChild)!=null?E:null;return OGL(v,T,e5U)};
$xM=function(v){var e=alL(v);return Array.from(E8O(v)).filter(function(d){return Wds(d)===e})};
j3H=function(v){var e=Eg(v);return Array.from(dx7(v)).filter(function(d){return _.di(d)===e})};
_.aB=function(v,e,d){if(v instanceof HTMLElement&&_.di(v)===d){var E=Array.from(v.classList).indexOf("style-scope");if(E===-1)v.classList.add("style-scope"),v.classList.add(e);else if(!(E+1>=v.classList.length)){E=v.classList[E+1];var T,S;v==null||(T=v.classList)==null||(S=T.replace)==null||S.call(T,E,e)}}if(v instanceof HTMLElement||v instanceof DocumentFragment)for(T=_.a(dx7(v)),S=T.next();!S.done;S=T.next())_.aB(S.value,e,d);return v};
ih=function(v,e){if(v instanceof HTMLElement&&_.di(v)===e){var d=Array.from(v.classList).indexOf("style-scope");d===-1||d+1>=v.classList.length||v.classList.remove("style-scope",v.classList[d+1])}if(v instanceof HTMLElement||v instanceof DocumentFragment){d=_.a(v.children);for(var E=d.next();!E.done;E=d.next())ih(E.value,e)}return v};
_.s3t=function(v,e){return Sw(v).prototype.appendChild.call(v,e)};
NJs=function(v,e){if(v===e)return!0;v=E8O(v);return Array.from(v).some(function(d){return NJs(d,e)})};
_.IB=function(v,e){if(v instanceof Og)return v;(e==null?0:e.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(v,"ownerDocument")&&Object.defineProperty(v,"ownerDocument",{get:function(){return window.document}});
return new Og(v)};
LdL=function(){var v=Og.prototype,e=[].concat(_.t7(kSj?[]:["getRootNode"]),["setAttribute","removeAttribute"]);e=_.a(e);for(var d=e.next(),E={};!d.done;E={method$jscomp$51:void 0},d=e.next())E.method$jscomp$51=d.value,v[E.method$jscomp$51]=function(T){return function(){return this.host[T.method$jscomp$51].apply(this.host,arguments)}}(E)};
o8L=function(){var v=Og.prototype,e=[].concat(_.t7(kSj?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.t7(VpU?[]:["querySelector","querySelectorAll"]));e=_.a(e);for(var d=e.next(),E={};!d.done;E={method$jscomp$52:void 0},d=e.next())E.method$jscomp$52=d.value,v[E.method$jscomp$52]=function(T){return function(){return this.root[T.method$jscomp$52].apply(this.root,arguments)}}(E)};
MpU=function(){var v=Og.prototype,e=[].concat(_.t7(JTL?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.t7(GS0?[]:["parentNode"]));e=_.a(e);for(var d=e.next(),E={};!d.done;E={prop$jscomp$63:void 0},d=e.next())E.prop$jscomp$63=d.value,Object.defineProperty(v,E.prop$jscomp$63,{get:function(T){return function(){return this.host[T.prop$jscomp$63]}}(E),
configurable:!0})};
R5j=function(){var v=Og.prototype,e=["activeElement"].concat(_.t7(JTL?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.t7(tpO?[]:["children"]),_.t7(flj?[]:["lastChild"]));e=_.a(e);for(var d=e.next(),E={};!d.done;E={prop$jscomp$64:void 0},d=e.next())E.prop$jscomp$64=d.value,Object.defineProperty(v,E.prop$jscomp$64,{get:function(T){return function(){return this.root[T.prop$jscomp$64]}}(E),
configurable:!0})};
P5L=function(){for(var v=Og.prototype,e=_.a(["innerHTML","textContent"]),d=e.next(),E={};!d.done;E={prop$jscomp$65:void 0},d=e.next())E.prop$jscomp$65=d.value,Object.defineProperty(v,E.prop$jscomp$65,{get:function(T){return function(){return this.root[T.prop$jscomp$65]}}(E),
set:function(T){return function(S){this.root[T.prop$jscomp$65]=S}}(E),
configurable:!0})};
xxj=function(v){var e=Og.prototype;v=_.a(Object.entries(v));for(var d=v.next(),E={};!d.done;E={fn$jscomp$400:void 0},d=v.next()){var T=_.a(d.value);d=T.next().value;T=T.next().value;E.fn$jscomp$400=T;e[d]=function(S){return function(){return S.fn$jscomp$400.apply(null,[this.host.node||this.host].concat(_.t7(arguments)))}}(E)}};
C5H=function(){for(var v=Og.prototype,e=_.a(Object.entries(BJt)),d=e.next(),E={};!d.done;E={fn$jscomp$401:void 0},d=e.next()){var T=_.a(d.value);d=T.next().value;T=T.next().value;E.fn$jscomp$401=T;Object.defineProperty(v,d,{get:function(S){return function(){return S.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.t7(arguments)))}}(E),
configurable:!0})}};
_.bh=function(v){return v instanceof X43||v instanceof Document?v:new X43(v)};
z5S=function(){for(var v=X43.prototype,e=_.a("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),d=e.next(),E={};!d.done;E={method$jscomp$53:void 0},d=e.next())E.method$jscomp$53=d.value,v[E.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(_.t7(arguments)))}}(E)};
llH=function(){for(var v=X43.prototype,e=_.a("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),d=e.next(),E={};!d.done;E={prop$jscomp$66:void 0},d=e.next())E.prop$jscomp$66=d.value,Object.defineProperty(v,E.prop$jscomp$66,{get:function(T){return function(){var S;return(S=this.node["__shady_native_"+T.prop$jscomp$66])!=null?S:this.node[T.prop$jscomp$66]}}(E),
configurable:!0})};
_.Yv=function(v,e,d){d===void 0&&(d=!v.classList.contains(e));d?v.classList.add(e):v.classList.remove(e)};
_.mI=function(v,e,d){d===void 0&&(d=!v.hasAttribute(e));if(e==="class")throw Error("gg");d?_.bh(v).setAttribute(e,""):_.bh(v).removeAttribute(e)};
HGt=function(v){return(v.localName!=="slot"?[]:(0,_.y1)(v).assignedNodes({flatten:!0})).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})};
_.AT3=function(v){return(v=_.IB(v).querySelector("slot"))&&v.localName==="slot"?HGt(v):[]};
_.qr=function(v,e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(v,e)};
ri=function(v,e){var d=e.bind(v);return function(E){d(E,E.detail)}};
_.hG=function(v,e){var d=ZG3.get(v);d||(d=new WeakMap,ZG3.set(v,d));if(d.has(e))return d.get(e);if(_.N("web_fi_listen_disable_bound_fn_helper")){var E=e.bind(v);v=function(T){E(T,T==null?void 0:T.detail)}}else v=ri(v,e);
d.set(e,v);return v};
Fd3=function(v,e){cTS(v);v.created[w4H].push(e)};
cTS=function(v){if(!v.created||!v.created[w4H]){var e=v.created,d=e?[e]:[];v.created=function(){for(var E=_.a(d),T=E.next();!T.done;T=E.next())T.value.apply(this)};
v.created[w4H]=d}};
Q3t=function(v){return function(){var e=_.Xa.apply(0,arguments);return function(d,E,T){v.apply(null,_.t7(e))(d,E,T)}}};
g8W=function(){return function(){var v=_.Xa.apply(0,arguments);return function(e,d,E){XB0.apply(null,_.t7(v))(e,d,E)}}};
_.M=function(v){return g8W()(v)};
_.t=function(){return Q3t(AZ3).apply(null,_.t7(_.Xa.apply(0,arguments)))};
_.Kq=function(v){return _.N("pbcm_fi_listen_decorators")?uLS(v):Q3t(li3)(v)};
uLS=function(v){return function(e,d){Fd3(e,function(){var E=this[d],T=_.N("web_fi_listen_disable_bound_fn_helper")?function(S){E(S,S.detail)}.bind(this):ri(this,E);
n8S.has(v)?xk(this.hostElement,v,T):this.hostElement.addEventListener(v,T)})}};
_.$v=function(){return Q3t(HfL).apply(null,_.t7(_.Xa.apply(0,arguments)))};
_.f=function(v){v=v===void 0?{}:v;return Q3t(z3t)(v)};
_.jw=function(v){if(v.hostElement&&v!==v.hostElement){var e=_.tW(v.hostElement);e=v.renderIdom?e:e.shadowRoot}e||(v=v.root,e=v instanceof Node?_.tW(v):null);return e};
_.sg=function(v){return Dx0?Uxj(v):function(e,d){Object.defineProperty(e,d,{get:function(){var E;return(E=_.jw(this))==null?void 0:E.querySelector(v)},
enumerable:!0,configurable:!0})}};
Uxj=function(v){return function(e,d){Object.defineProperty(e,d,{get:function(){var E,T=(E=_.IB(this.hostElement))==null?void 0:E.querySelector(v);if(T)return T;var S;return(S=_.jw(this))==null?void 0:S.querySelector(v)},
enumerable:!0,configurable:!0})}};
_.Nr=function(v){return Dx0?p4s(v):function(e,d){Object.defineProperty(e,d,{get:function(){var E;return(E=_.jw(this))==null?void 0:E.querySelectorAll(v)},
enumerable:!0,configurable:!0})}};
p4s=function(v){return function(e,d){Object.defineProperty(e,d,{get:function(){var E,T=(E=_.IB(this.hostElement))==null?void 0:E.querySelectorAll(v);if(T==null?0:T.length)return T;var S;return(S=_.jw(this))==null?void 0:S.querySelectorAll(v)},
enumerable:!0,configurable:!0})}};
vQU=function(v){return function(e){if(![_.eo,_.P].includes(Object.getPrototypeOf(e.prototype).constructor))throw Error("hg");G5M(Object.assign({},typeof v!=="string"?v:{is:v,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(e)}};
_.Lq=function(){var v=v===void 0?{}:v;return function(e){if(![d3,_.kv].includes(Object.getPrototypeOf(e.prototype).constructor))throw Error("ig");Mj3(Object.assign({},v,{disableInheritanceCheck:!0}))(e)}};
dh3=function(v,e){eA3[v]!=null||(eA3[v]=new Set);eA3[v].add(e)};
_.V1=function(){var v=_.$v.apply(null,_.t7(_.Xa.apply(0,arguments)));return function(e,d){dh3(e.is,d);v(e,d)}};
GV=function(v,e,d){if(oB(v)&&!EQ$.has(e)){e=e.replace(/^JSC\$[\d]+_/,"");e=e.replace(/\.\d+(\.|$)/g,function(S,O){return".#"+O});
JG[v]!=null||(JG[v]={});var E,T;(E=JG[v])[T=e]!=null||(E[T]=new Set);JG[v][e].has(d)||(JG[v][e].add(d),_.tI("polymerPropertyAccessEvent",{componentName:v,propertyName:e,accessType:d}))}};
TjU=function(){return _.N("polymer_property_access_logging_debug")||_.N("polymer_enable_property_access_logging")};
oB=function(v){if(_.N("polymer_property_access_logging_debug"))return!0;if(!_.N("polymer_enable_property_access_logging"))return!1;SP$||(SP$=Date.now());return(QI(v)+SP$)%100<_.Wi("polymer_property_access_logging_percent")};
WF0=function(v,e){return oB(e)&&v.hostElement.loggingStatus?new Proxy(v,{get:function(d,E,T){if(d.hostElement.loggingStatus.bypassProxyController)return d[E];d.hostElement.loggingStatus.isExternalGet=!0;var S=d[E];d.hostElement.loggingStatus.isExternalGet=!1;if(S instanceof Function)return function(){var O=_.Xa.apply(0,arguments);try{return d.hostElement.loggingStatus.currentExternalCall=E,GV(e,E,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),S.apply(this===T?d:this,O)}finally{d.hostElement.loggingStatus.currentExternalCall=
void 0}};
GV(e,E,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return S},
set:function(d,E,T){if(d.hostElement.loggingStatus.bypassProxyController)return d[E]=T,!0;d.hostElement.loggingStatus.isRendererStamper?GV(e,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):d.hostElement.loggingStatus.isDeclarativeExternal||GV(e,E,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{d.hostElement.loggingStatus.currentExternalSet=E,d[E]=T}finally{d.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):v};
aJ0=function(v,e){v&&v.loggingStatus&&!v.loggingStatus.isDeclarativeExternal&&!v.loggingStatus.isExternalGet&&v.loggingStatus.currentExternalSet!==e&&GV(v.tagName.toLowerCase(),e,"PROPERTY_ACCESS_GET_INTERNAL")};
Mr=function(v,e,d){v&&(d||v.loggingStatus&&!v.loggingStatus.isInitializing&&!v.loggingStatus.isDefiningPropertyAccessor&&v.loggingStatus.currentExternalSet!==e)&&GV(v.tagName.toLowerCase(),e,"PROPERTY_ACCESS_SET_INTERNAL")};
i5M=function(){return{_definePropertyAccessor:function(v,e){var d=this,E=d.hostElement.loggingStatus;E&&(E.isDefiningPropertyAccessor=!0);var T=d[v];T!==void 0&&(d.__data?d._setPendingProperty(v,T):(d.__dataProto!=null||(d.__dataProto={}),d.__dataProto[v]=T));E&&(E.isDefiningPropertyAccessor=!1);Object.defineProperty(this,v,{get:function(){aJ0(d.hostElement,v);return this.__data[v]},
set:function(S){e||this._setPendingProperty(v,S,!0)&&this._invalidateProperties()}})},
created:function(){var v=this._setPendingProperty.bind(this);this._setPendingProperty=function(e,d,E){Mr(this.hostElement,e);return v.apply(this,[e,d,E])}}}};
O5t=function(v){TjU()&&_.M(RB.prototype)(v.prototype,"__templateBindingLoggingBehavior")};
IJW=function(v,e){if(e.resolvedFactories.length!==v.resolvedFactories.length)return!0;e=_.a(e.resolvedFactories.entries());for(var d=e.next();!d.done;d=e.next()){var E=_.a(d.value);d=E.next().value;E=E.next().value;if(E.providerClass){if(E.providerClass!==v.resolvedFactories[d].providerClass)return!0}else if(E.providerValue){if(E.providerValue!==v.resolvedFactories[d].providerValue)return!0}else if(E.factory!==v.resolvedFactories[d].factory)return!0}return!1};
b5t=function(v,e){v=_.a(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value,d.constructor===Array)b5t(d,e);else{var E=e;E.has(d)||(d.inject&&E.add(d),d.behaviors&&b5t(d.behaviors,E))}};
Pg=function(v,e){var d=v[e];v[e]=function(){var E=_.Xa.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(d)return d.apply(this,E)}};
qP7=function(){_.xv.Class=function(d,E){d=YP$(d,E);Pg(d.prototype,"created");return d};
Pg(Bg.prototype,"_initializeProperties");Pg(_.Cq.prototype,"_initializeProperties");if(mh0)Pg(yhs,"created");else{var v=function(){Pg(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))v();else{var e=customElements.define;customElements.define=function(d,E,T){e.call(customElements,d,E,T);d==="tp-yt-iron-list"&&(v(),customElements.define=e)}}}};
hA7=function(v,e){v.prototype.behaviors=v.prototype.behaviors||[];v.prototype.behaviors.unshift(rh$.InjectBehavior);v.prototype.provide=e};
_.lh=function(v){return function(e){if(!v.disableElementRegistration){v.noInjection||hA7(e,v.providers);var d=e.prototype;d.__templateHelpers||XB0(Xe.prototype)(d,"__templateHelpers");d=v.is;KFH||(KFH=Date.now());(QI(d)+KFH)%100<_.Wi("polymer_log_prop_change_observer_percent")&&XB0(zV.prototype)(e.prototype,"__propertyObserverObserver");e.prototype.behaviors=e.prototype.behaviors||[];e.prototype.behaviors.unshift(_.$hM.YtHostElementBehavior);O5t(e);vQU({is:v.is,notifyObserversOnUndefined:v.notifyObserversOnUndefined!==
!1,fastInit:v.fastInit,template:v.template,disableEnforceFastDefaultValuesCheck:!0})(e)}}};
_.z=function(v){return _.lh({is:v.is,template:v.template,disableElementRegistration:v.disableElementRegistration,cssBuildOptOut:v.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Njt=function(v,e){if(jos){v=new v;for(var d=_.a(Object.getOwnPropertyNames(v)),E=d.next();!E.done;E=d.next())E=E.value,e[E]=v[E];for(d=e;d&&d!==Object.prototype;d=Object.getPrototypeOf(d)){E=_.a(Object.getOwnPropertyNames(d));for(var T=E.next();!T.done;T=E.next())T=T.value,v.hasOwnProperty(T)||Object.defineProperty(v,T,soO(e,T))}}else v.apply(e)};
soO=function(v,e){return{get:function(){var d=v[e];return d instanceof Function?d.bind(v):d},
set:function(d){v[e]=d}}};
LF7=function(v,e){for(var d=v._noAccessors,E=_.a(Object.getOwnPropertyNames(v)),T=E.next();!T.done;T=E.next())if(T=T.value,!kLU.has(T))if(d)e[T]=v[T];else{var S=Object.getOwnPropertyDescriptor(v,T);S&&(S.configurable=!0,Object.defineProperty(e,T,S))}};
VVM=function(v,e,d){return function(E){if(d){var T=d();E.model=T}if(v[e])v[e](E,E.detail)}};
Hg=function(v){var e=[];if(typeof v==="string")v.length>0&&e.push.apply(e,_.t7(v.split(".")));else{v=_.a(v);for(var d=v.next();!d.done;d=v.next())d=d.value,typeof d==="string"?e.push.apply(e,_.t7(d.split("."))):e.push(d)}return e};
oQS=function(v,e){if(e[e.length-1]!=="*"&&e[e.length-1]!=="splices"){for(var d=0;d<e.length;d++){if(!v)return;v=v[e[d]]}return v}};
JhH=function(v,e){if(v.length>e.length)return!1;for(var d=0;d<v.length;d++)if(v[d]!==e[d])return!1;return!0};
MVM=function(v,e,d){if(e.type==="compute"){var E=e.getter.bind(d);var T=e.args}else E=function(){return d[e.method.methodName].apply(d,_.t7(_.Xa.apply(0,arguments)))},T=e.method.args;
GLt(v,e.propertyKey,E,T,e.value)};
fJW=function(v,e){if(e.readOnly){var d=Object.getOwnPropertyDescriptor(v.model,e.propertyKey);Object.defineProperty(v.model,e.propertyKey,{get:d.get,set:function(){}});
v.model[tV$(e.propertyKey)]=d.set}};
RA0=function(v,e,d){if(d){var E=e.propertyKey,T=e.selector;e=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.t7(e.selectorArgs.map(function(S){return{type:"path",path:S}})));
GLt(v,E,function(S){var O=_.Xa.apply(1,arguments);return T.apply(null,[d.getState()].concat(_.t7(O)))},e)}};
xhO=function(v,e,d){var E=_.Nn(e.propertyKey)+"-changed";PmW(v,function(T){var S={value:T.value,queueProperty:!0};T.path.split(".").length>1&&(S.path=T.path);d.dispatchEvent(new CustomEvent(E,{detail:S}))},[{type:"wildcard",
path:e.propertyKey}])};
BjW=function(v,e,d){PmW(v,function(){d[e.method.methodName].apply(d,_.t7(_.Xa.apply(0,arguments)))},e.method.args)};
tV$=function(v){return"_set"+(v.charAt(0).toUpperCase()+v.slice(1))};
Cm7=function(){var v,e=Gq(function(d){v=d},!1);
return[v,e]};
Ahj=function(v){v=v.trim().replace(XWj,",").replace(zAS,"$1");var e=v[0];e==="-"&&(e=v[1]);if(e>="0"&&e<="9")return{type:"literal",value:Number(v)};if(e==="'"||e==='"')return{type:"literal",value:v.slice(1,-1)};if(e=v.match(lJS)){e=e[1];var d=H5L[e];if(d)return{type:d,path:v.slice(0,-(e.length+1))}}return{type:"path",path:v}};
FF7=function(v){var e=v.match(Z5U);if(e)return v={methodName:e[1],args:chs},e[2].trim()&&(e=e[2].replace(wWj,"&comma;").split(","),v.args=e.map(Ahj)),v};
Qo$=function(v,e,d,E){E=E===void 0?!1:E;e=_.Nn(e);var T=jO;T&&(d=T(d,e,"attribute",v));AG(v,d,e,E)};
AG=function(v,e,d,E){e=gQ0(e,E===void 0?!1:E);e===void 0?v.removeAttribute(d):v.setAttribute(d,e)};
gQ0=function(v,e){switch(typeof v){case "object":case "function":if(v instanceof Date)return v.toString();if(v){if((e===void 0?0:e)&&!_.N("polymer_reflect_objects_as_boolean_killswitch"))return v?"":void 0;e=window.trustedTypes?window.trustedTypes.isHTML(v)||window.trustedTypes.isScript(v)||window.trustedTypes.isScriptURL(v):void 0;if(e)return v;try{return JSON.stringify(v)}catch(d){_.xf(Error("Eg`"+v))}}break;case "boolean":return v?"":void 0;default:return v!==null&&v!==void 0?v.toString():void 0}};
ug$=function(v){if(v===void 0)throw Error("Fg");return v};
vOS=function(v,e,d,E){var T=nQ0(E);if(T.length){E=d;var S="property";DhL.test(d)?S="attribute":d[d.length-1]==="$"&&(d=d.slice(0,-1),S="attribute");var O=Uhj(T);O&&S==="attribute"&&(d==="class"&&v.hasAttribute("class")&&(O+=" "+v.getAttribute(d)),AG(v,O,d));S==="attribute"&&E==="disable-upgrade$"&&v.setAttribute("disable-upgrade","");v.localName==="input"&&E==="value"&&v.setAttribute("value","");v.removeAttribute(E);S==="property"&&(d=_.kq(d));e=ug$(e);pW$(e,S,d,T);return!0}return d.slice(0,3)===
"on-"?(v.removeAttribute(d),(S=e).events!=null||(S.events=[]),e.events.push({name:d.slice(3),value:E}),!0):d==="id"?(e.id=E,!0):!1};
nQ0=function(v){for(var e=[],d=0,E;(E=eK$.exec(v))!==null;){E.index>d&&e.push({type:"literal",value:v.slice(d,E.index)});var T=E[1][0];d=!!E[2];E=E[3].trim();if(T==="{")throw Error("Gg");(T=FF7(E))?e.push({type:"method",negate:d,signature:T}):e.push({type:"path",negate:d,path:E});d=eK$.lastIndex}d&&d<v.length&&(v=v.substring(d))&&e.push({type:"literal",value:v});return e};
Uhj=function(v){for(var e="",d=0;d<v.length;d++){var E=v[d];E.type==="literal"&&(e+=E.value)}return e};
pW$=function(v,e,d,E){v.bindings!=null||(v.bindings=[]);v.bindings.push({kind:e,target:d,parts:E})};
Wb$=function(v,e,d){var E=!1;if(v.localName==="template"){E=d;var T=e.stripWhitespace;T=djH(v,T===void 0?!1:T);var S=v.content.ownerDocument.createDocumentFragment();T.content=S;S.appendChild(v.content);E&&(E.templateInfo=T);E=!0}else v.localName==="slot"&&(e.hasInsertionPoint=!0);if(v.firstChild&&(T=d,v.localName!=="script"&&v.localName!=="style")){S=0;for(var O=v.firstChild;O;){var b=O;if(b.localName==="template"){var Y=b.getAttribute("is");if((O=Y==="dom-if")||Y==="dom-repeat"){b.removeAttribute("is");
Y=b.ownerDocument.createElement("ps-"+Y);b.parentNode.replaceChild(Y,b);Y.appendChild(b);var q=Array.from(b.attributes);q=_.a(q);for(var r=q.next();!r.done;r=q.next())r=r.value,O?EOM.has(r.name)&&AG(Y,r.value,r.name):TzH.has(r.name)?AG(Y,r.value,r.name):SD0.has(r.name),b.removeAttribute(r.name);O=Y}else O=b}if(O.nodeType===Node.TEXT_NODE){b=void 0;Y=v;for(q=O;((b=q.nextSibling)==null?void 0:b.nodeType)===Node.TEXT_NODE;)r=void 0,(r=q).textContent!=null||(r.textContent=""),q.nextSibling.textContent&&
(q.textContent+=q.nextSibling.textContent),Y.removeChild(q.nextSibling);if(e.stripWhitespace&&O.textContent&&!O.textContent.trim()){v.removeChild(O);O=O.nextSibling;continue}}Wb$(O,e,{parentIndex:S,parentInfo:T});O.parentNode&&S++;O=O.nextSibling}}var h;if((h=v.hasAttributes)==null?0:h.call(v)){h=d=ug$(d);T=!1;S=Array.from(v.attributes);S=_.a(S);for(b=S.next();!b.done;b=S.next())b=b.value,T=vOS(v,h,b.name,b.value)||T;E=T||E}v.nodeType===Node.TEXT_NODE&&(h=nQ0(v.textContent),h.length&&(v.textContent=
Uhj(h)||" ",d=ug$(d),pW$(d,"text","textContent",h),E=!0));d&&E&&(d.infoIndex=e.nodeInfoList.push(d)-1)};
djH=function(v,e){e={nodeInfoList:[],stripWhitespace:(e===void 0?!1:e)||v.hasAttribute("strip-whitespace")};Wb$(v.content,e);return e};
a60=function(v){Object.assign(v,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
OKt=function(v,e,d){e.signalCache!=null||(e.signalCache={});var E=e.signalCache[d];if(!E){var T=d.split(".");E=!iKW(v,T[0]);if(T.length>1&&E){var S=v.getPathMutationSignal(T);E=function(){var O=fD(v.owner,function(){return v.getWithPath([T[0]])}),b,Y=(b=S())==null?void 0:b.value;
return{rootWasDefined:O!==void 0,value:Y}}}else E=function(){var O=v.getWithPath(T);
return{rootWasDefined:O!==void 0,value:O}};
e.signalCache[d]=E}return E()};
bK3=function(v,e,d,E,T){e=e.parts.map(function(O,b){if(O.type==="literal"){d.partWasDefined!=null||(d.partWasDefined=[]);var Y;(Y=d.partWasDefined)[b]||(Y[b]=O.value!==void 0);return O.value}var q;if(O.type==="method"){var r,h=(r=(q=d.partWasDefined)==null?void 0:q[b])!=null?r:!1;h||(h=O.signature.args.every(function(J){return J.type==="literal"}));
var K=!1,k=!0;q=O.signature.args.map(function(J){if(J.type==="literal")return J.value;if(J.type!=="path")throw Error("Hg`"+J.type);var R=OKt(v,d,J.path);J=R.value;R=R.rootWasDefined;K||(K=R);k&&(k=R);return J});
h||(h=T===1?k:K);d.partWasDefined!=null||(d.partWasDefined={});d.partWasDefined[b]=h;if(!h)return;q=(b=OKt(v,d,O.signature.methodName).value)&&typeof b==="function"?b.apply(E,q):void 0}else r=OKt(v,d,O.path),q=r.value,d.partWasDefined!=null||(d.partWasDefined={}),(h=d.partWasDefined)[b]||(h[b]=q!==void 0||r.rootWasDefined);O.negate&&(q=!q);return q});
if(e.length===1){var S;return((S=d.partWasDefined)==null?0:S[0])?e[0]:I63}return e.join("")};
YD3=function(v){return typeof v==="object"&&!!v&&"notifyPath"in v&&"canNotifyPath"in v};
mjt=function(v){return typeof v==="object"&&!!v&&"notifyPath"in v};
yO3=function(v){return"polymerController"in v};
qD0=function(v,e){e=""+Hg(e)[0];if(YD3(v))return v.canNotifyPath(e);if(yO3(v)&&YD3(v.polymerController))return v.polymerController.canNotifyPath(e);if(mjt(v)){var d;return!((d=v.properties)==null||!d[e])}if(yO3(v)&&mjt(v.polymerController)){var E;return!((E=v.polymerController.properties)==null||!E[e])}return!1};
rOM=function(v,e,d){YD3(v)||mjt(v)?v.notifyPath(e,d):yO3(v)&&(YD3(v.polymerController)||mjt(v.polymerController))&&v.polymerController.notifyPath(e,d)};
Kb0=function(v,e,d){if(d!==I63){v.kind==="attribute"||v.target!=="textContent"&&(v.target!=="value"||e.localName!=="input"&&e.localName!=="textarea")||(d=d===void 0?"":d);var E,T=(E=hKH.Polymer)==null?void 0:E.sanitizeDOMValue;T&&(d=T(d,v.target,v.kind,e));if(v.kind==="attribute"){v=v.target;if(v==="class"||v==="name"||v==="slot")e=(0,_.y1)(e);AG(e,d,v)}else if(v=v.target,d!==e[v]||typeof d==="object")e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!0,GV(e.localName,v,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
e[v]=d,e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!1)}};
$j3=function(v,e,d,E){var T=e.parts[0];if(e.parts.length!==1||T.type!=="path"||!qD0(d,e.target))return!1;var S=_.a(T.path.split(".")),O=S.next().value,b=Q4(S);if(iKW(v,O))return!1;E.signalCache!=null||(E.signalCache={});S=E.signalCache[T.path];var Y;S=(Y=S)==null?void 0:Y().value;if((S==null?void 0:S.path)!==void 0){E=Hg(S.path);var q=Hg(T.path);E=[e.target].concat(_.t7(E.slice(q.length-1)));rOM(d,E,T.negate?!S.value:S.value);return!0}var r=Zo(v,O);var h=r.getChangeRecordSignal(b),K=!1;S=function(){if(!K){var J=
fD(v.owner,function(){return r.getWithPath([])});
K||(K=J!==void 0)}return{value:h(),rootWasDefined:K}};
E.signalCache[T.path]=S;E.partWasDefined!=null||(E.partWasDefined={});S=S();(q=E.partWasDefined)[0]||(q[0]=S.rootWasDefined);var k=fD(v.owner,function(){return r.getWithPath(b)});
E.partWasDefined[0]&&fD(v.owner,function(){return void Kb0(e,d,T.negate?!k:k)});
return!0};
jv$=function(v,e,d,E,T,S){if(!$j3(v,e,d,E)){var O=bK3(v,e,E,T,S);fD(v.owner,function(){return void Kb0(e,d,O)})}};
svS=function(v,e,d,E,T,S){d=_.a(d);for(var O=d.next(),b={};!O.done;b={infoIndex:void 0},O=d.next()){O=O.value;var Y=O.bindings;b.infoIndex=O.infoIndex;O=O.parentInfo;if(Y){Y=_.a(Y);for(var q=Y.next(),r={};!q.done;r={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},q=Y.next()){r.b$jscomp$253=q.value;if(b.infoIndex===void 0)throw Error("Ig");r.bindingCtx$jscomp$4={};v.effect(function(h,K){return function(){T&&!T()||jv$(v,h.b$jscomp$253,e[K.infoIndex],h.bindingCtx$jscomp$4,E,S)}}(r,b))}}O&&svS(v,e,[O],
E,T,S)}};
NzH=function(v,e){v=(e.parentInfo?NzH(v,e.parentInfo):v).firstChild;for(var d=0;v;v=v.nextSibling)if(e.parentIndex===d++)return v;throw Error("Jg");};
Lb0=function(v,e,d,E){v=document.importNode(v.content,!0);v.__noInsertionPoint=!(E==null?0:E.hasInsertionPoint);for(var T=Array(e.length),S={},O=0;O<e.length;O++){var b=e[O],Y=NzH(v,b);T[O]=Y;b.id&&(S[b.id]=Y);if(b.templateInfo){var q=Y.parentElement;q&&(q.templateInfo=b.templateInfo,q.parentSignalProxy=d,q.eventListenerHost=E.eventListenerHost,q.stampingEnabled=E.enabledSignal)}q=void 0;if((q=b.events)==null?0:q.length)for(q=0;q<b.events.length;q++){var r=b.events[q];kCL(E.eventListenerHost,Y,r.name,
r.value,E.getModel)}}svS(d,T,e,E.thisCtx,E.enabledSignal,E.methodInvocationRequirement);return{root:v,nodes:T,nodesById:S}};
oOL=function(v,e){v=v();var d;(d=VuO.ShadyCSS)==null||d.prepareTemplate(v,e);e=djH(v);return{template:v,nodeInfoList:e.nodeInfoList,hasInsertionPoint:e.hasInsertionPoint}};
MuU=function(){JO0=!1;for(var v=cg.length,e=0;e<v;e++){var d=cg[e];if(d)try{d()}catch(E){Promise.resolve().then(function(){throw E;})}}cg.splice(0,v);
GCS+=v};
Pd3=function(v){JO0||(JO0=!0,tut.textContent=(f6M++).toString());cg.push(v);return RK0++};
_.Q1=function(v,e,d){wi++;v=e?new xjj(wi,v,e,d):new Bzs(wi,v);Fe.set(wi,v);return wi};
Cdj=function(v){(v=Fe.get(v))&&v.cancel()};
zKO=function(v,e){v=X2H.get(v);return v?(e=v.get(e))?e:null:null};
_.gi=function(v,e,d,E){var T=zKO(v,e);if(!T){T=new l6U;var S=X2H.get(v);S||(S=new Map,X2H.set(v,S));S.set(e,T)}v=d.bind(v);T.run(v,E,void 0)};
_.HKs=function(v,e){var d;(d=zKO(v,e))==null||d.cancel()};
AO$=function(v){var e;(e=zKO(v,"doRender"))==null||e.flush()};
uh=function(v){var e;return(e=v.hostElement)!=null?e:v};
ZK3=function(v){var e=v.indexOf(".");return e===-1?v:v.slice(0,e)};
cO0=function(v,e,d,E,T,S){S=(T=(E=S?ZK3(e):e)?e:null)?v.get(T):v.__data[e];T&&S===void 0&&(S=d[e]);_.Iq(v.hostElement,r4S(E)+"-changed",{value:S,queueProperty:!0,path:T!=null?T:void 0},{bubbles:!1,composed:!1})};
w2S=function(v,e){v.__isReflecting=!0;Qo$(v.hostElement,e,v.__data[e]);v.__isReflecting=!1};
FbO=function(v){if(v._onIronRequestResizeNotifications){var e=v._onIronRequestResizeNotifications.bind(v);v._onIronRequestResizeNotifications=function(d){_.ew(d)!==v.hostElement&&e(d)}}v._ariaActiveAttributeChanged&&(v._ariaActiveAttributeChanged=v._ariaActiveAttributeChanged.bind(v.hostElement));
v._activeChanged&&(v._activeChanged=function(d){v.toggles?AG(v.hostElement,d?"true":"false",v.ariaActiveAttribute):v.hostElement.removeAttribute(v.ariaActiveAttribute);v._changedButtonState()});
v._asyncClick&&(v._asyncClick=function(){_.Q1(function(){v.hostElement.click()},1)});
!v.keyEventTarget||v.keyEventTarget instanceof EventTarget||(v.keyEventTarget=uh(v.keyEventTarget));v._disabledChanged&&(v._disabledChanged=v._disabledChanged.bind(v.hostElement));v._observeItems&&(v._observeItems=function(d){var E=uh(d);return _.tW(E).observeNodes(function(T){v._updateItems();v._updateSelected();_.Iq(E,"iron-items-changed",T,{bubbles:!1,cancelable:!1})})});
v._updateItems&&v._updateItems===_.nq._updateItems&&(v._updateItems=function(){var d=_.tW(v.hostElement).queryDistributedElements(v.selectable||"*");d=Array.prototype.filter.call(d,v._bindFilterItem);v._setItems(d)});
v._computeKeyboardClass&&(v._computeKeyboardClass=function(d){_.Yv(v.hostElement,"keyboard-focus",d)});
v.ensureRipple&&(v.ensureRipple=function(d){if(v.hasRipple&&!v.hasRipple()){if(!v._createRipple)return;v._ripple=v._createRipple();v._ripple.noink=v.noink;var E=v._rippleContainer||v.hostElement;E&&_.IB(E).appendChild(v._ripple)}var T;if(d&&((T=v._ripple)==null?0:T.uiDownAction)){E=_.IB(v._rippleContainer||v.hostElement);var S;T=(S=d.composedPath())==null?void 0:S[0];E.contains(T)&&v._ripple.uiDownAction(d)}});
v._updateMultiselectable&&(v._updateMultiselectable=function(d){d?v.hostElement.setAttribute("aria-multiselectable","true"):v.hostElement.removeAttribute("aria-multiselectable")})};
Qvs=function(v,e,d){d=_.a(d);for(var E=d.next();!E.done;E=d.next())Njt(E.value.constructor,v);Njt(e.constructor,v)};
uXO=function(v,e){v=_.a(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value,d.type==="signal"){var E=d.propertyKey;if(e.hasOwnProperty(E)&&e[E]!=null&&d.attributeType===Object){a:{E=e[E].constructor;for(var T=_.a(gOU),S=T.next();!S.done;S=T.next())if(S=S.value,E===S){E=S;break a}E=Object}d.attributeType=E}}};
nO$=function(){};
DjS=function(v){var e;return(e=v.hostElement)!=null?e:v};
Uj0=function(){throw Error("Ng");};
p2j=function(v,e){v.constructor.prototype.useSignals=!0;var d=new v.constructor;Qvs(d,v,e.behaviors);uXO(e.reactiveSchemas,d);d={};for(var E=_.a(e.reactiveSchemas),T=E.next();!T.done;T=E.next())T=T.value,T.type==="signal"&&(d[T.propertyKey]=T.attributeType);var S={copyPropertiesToProto:Uj0,didRegister:!1,typesForSignals:d},O=["disable-upgrade"].concat(_.t7(e.observedAttributes)),b=function(Y){Do.call(this,v,e,S,Y)};
_.V(b,Do);_.vP.Object.defineProperties(b,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return O}}});
S.copyPropertiesToProto=function(){for(var Y=0;Y<e.behaviors.length;Y++)LF7(e.behaviors[Y],b.prototype);LF7(v,b.prototype)};
e.legacyOptimizations||S.copyPropertiesToProto();b.prototype.is=v.is;return b};
v9S=function(v,e){if(Object.getPrototypeOf(e.prototype).constructor!==_.P)throw Error("Og");e.prototype.is=v.is;return p2j(e.prototype,v)};
eCW=function(v){return v.type==="compute"||v.type==="computeWithMethod"};
dAM=function(v){for(var e=v.reactiveSchemas.filter(eCW),d=new Map,E=new Map,T=new Map,S=_.a(e),O=S.next();!O.done;O=S.next())O=O.value,d.set(O.propertyKey,O),E.set(O.propertyKey,[]),T.set(O.propertyKey,0);S=0;e=_.a(e);for(O=e.next();!O.done;O=e.next()){O=O.value;for(var b=_.a(O.type==="computeWithMethod"?O.method.args:O.args),Y=b.next();!Y.done;Y=b.next())Y=Y.value,Y.type!=="literal"&&(Y=Y.path.split(".")[0],E.has(Y)&&(E.get(Y).push(O.propertyKey),T.set(O.propertyKey,T.get(O.propertyKey)+1),S++))}O=
[].concat(_.t7(E.keys())).filter(function(q){return T.get(q)===0});
for(e=[];O.length;)for(b=O.shift(),e.push(d.get(b)),b=_.a(E.get(b)),Y=b.next();!Y.done;Y=b.next())Y=Y.value,T.set(Y,T.get(Y)-1),S--,T.get(Y)===0&&O.push(Y);d=v.reactiveSchemas.filter(function(q){return!eCW(q)});
v.reactiveSchemas=[].concat(_.t7(d),_.t7(e))};
E9O=function(v,e){if(e.properties)for(var d=_.a(Object.entries(e.properties)),E=d.next();!E.done;E=d.next()){var T=_.a(E.value);E=T.next().value;T=T.next().value;v.properties[E]=typeof T==="function"?{type:T}:T}e.observers&&v.observers.push.apply(v.observers,_.t7(e.observers));e.disabledPolySiReactions&&v.disabledPolySiReactions.push.apply(v.disabledPolySiReactions,_.t7(e.disabledPolySiReactions))};
TPW=function(v,e){for(var d=e.length-1;d>=0;d--){var E=e[d];Array.isArray(E)?TPW(v,E):v.indexOf(E)<0&&v.unshift(E)}};
Sr0=function(v,e){v.reactiveSchemas=v.reactiveSchemas.filter(function(d){return d.type==="observe"&&e.includes(d.method.methodName)||eCW(d)&&e.includes(d.propertyKey)?!1:!0})};
an7=function(v,e){var d=e.prototype,E,T,S={is:v.is,reactiveSchemas:[],observedAttributes:[],behaviors:[rh$.InjectBehavior,Xe.prototype],disableElementRegistration:v.disableElementRegistration,provide:(E=v.providers)!=null?E:[],reactivityMode:v.reactivityMode,signalProperties:(T=d.signalProperties)!=null?T:[]};"template"in e?S.templateGetter=function(){return e.template}:v.getTemplate&&(S.templateGetter=v.getTemplate);
d.behaviors&&TPW(S.behaviors,d.behaviors);WrM(S,e);return S};
WrM=function(v,e){for(var d=e.prototype,E={properties:{},observers:[],disabledPolySiReactions:[]},T=_.a(v.behaviors),S=T.next();!S.done;S=T.next())E9O(E,S.value);E9O(E,d);if(v.signalProperties)for(d=_.a(v.signalProperties),T=d.next();!T.done;T=d.next())delete E.properties[T.value];d=_.a(Object.entries(E.properties));for(T=d.next();!T.done;T=d.next()){S=_.a(T.value);T=S.next().value;S=S.next().value;var O=void 0;if((O=v.signalProperties)==null||!O.includes(T)){O=void 0;var b=v,Y=S.type;if(!Y)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{Y=Reflect.getMetadata("design:type",e,T);for(var q=_.a(idt),r=q.next();!r.done;r=q.next())if(r=r.value,Y===r){Y=r;break a}Y=Object}else Y=String;S.computed||S.selector||(b.reactiveSchemas.push({type:"signal",propertyKey:T,value:S.value,attributeType:Y,readOnly:S.readOnly}),b.observedAttributes.push(_.Nn(T)));S.reflectToAttribute&&b.reactiveSchemas.push({type:"reflect",propertyKey:T});if(S.computed){Y=FF7(S.computed);if(!Y)throw Error("Pg");b.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:T,method:Y,value:S.value})}S.observer&&b.reactiveSchemas.push({type:"observe",method:{methodName:S.observer,args:[{type:"path",path:T}]}});S.notify&&b.reactiveSchemas.push({type:"notify",propertyKey:T});S.selector&&b.reactiveSchemas.push({type:"redux",propertyKey:T,selector:S.selector,selectorArgs:(O=S.selectorArgs)!=null?O:[]})}}Odt&&dAM(v);e=_.a(E.observers);for(T=e.next();!T.done;T=e.next())d=v,T=T.value,(S=FF7(T))?d.reactiveSchemas.push({type:"observe",method:S}):console.log('Warning: unable to parse observe declaration: "'+
T+'"');Sr0(v,E.disabledPolySiReactions)};
InU=function(v,e){for(var d=0;d<e.length;d++){var E=e[d],T=void 0;(T=E).showHideApi!=null||(T.showHideApi={});T=void 0;!!v!==!((T=E.showHideApi)==null||!T.hideTemplateChildren)&&(E.nodeType===Node.TEXT_NODE?v?(E.showHideApi.polymerTextContent=E.textContent,E.textContent=""):(T=void 0,E.textContent=(T=E.showHideApi.polymerTextContent)!=null?T:null):E instanceof Element&&E.localName==="slot"?v?(E.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.y1)((0,_.y1)(E).parentNode).replaceChild(E.showHideApi.polymerReplaced,
E)):(T=E.showHideApi.polymerReplaced)&&(0,_.y1)((0,_.y1)(T).parentNode).replaceChild(E,T):E instanceof HTMLElement&&E.style&&(v?(E.showHideApi.polymerDisplay=E.style.display,E.style.display="none"):E.style.display=E.showHideApi.polymerDisplay));E.showHideApi.hideTemplateChildren=v;E.showHideChildren&&E.showHideChildren(v)}};
YrH=function(){if(!bdj){var v=document.createElement("style");v.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(v);bdj=!0}};
Ug=function(){return _.N("disable_hidden_dom_if_using_stamper")};
mA0=function(v,e){var d=_.pq().getState();return e?v.apply(null,[d].concat(_.t7(e))):v(d)};
rYH=function(){if(yYt)return yYt;var v=_.a(_.OE(0,void 0,"MB1Hb")),e=v.next().value;v.next();var d=v.next().value;_.pq().subscribe(function(){qr0(d)});
return yYt=e};
qr0=function(v){hCL||(hCL=!0,Promise.resolve().then(function(){v(function(e){return e+1});
hCL=!1}))};
_.pq=function(){return KrO.getAppStore()};
$At=function(v,e){return KrO.getSelectFn()(v,e)};
_.vz=function(v){KrO.getDispatchFn()(v)};
jF$=function(v,e){var d={},E;for(E in v)d[E]=e(v[E],E);return d};
_.e2=function(v,e){return function(){var d;return(d=_.M4(v))!=null?d:e}};
_.dC=function(v,e){var d=Object.assign({},v),E;for(E in e)e.hasOwnProperty(E)&&(d[E]=_.e2(v[E],e[E]));return d};
sF$=function(v,e,d){v instanceof Element&&(d.debugName||(d.debugName="<"+v.tagName.toLowerCase()+(v.tagName.includes("-")?">":"."+v.className+">")),_.N("ytwiz_enable_debug_component_props")&&(v.debugProps||(v.debugProps=jF$(e,function(E){return function(){return E()}}))))};
kKL=function(v){var e;return NPS.value.traceAllComponents||((e=dg.stack[dg.stack.length-1])==null?void 0:e.name)!=="ytComponent"?Fkj("ytComponent",{},v):v()};
_.l=function(v,e){var d=function(E){return kKL(function(T){var S=Lrt={};var O;if(((O=d)==null?0:O.idomCompat)&&E.renderedFromIdom){var b;O=typeof d.idomCompat==="object"?(b=d)==null?void 0:b.idomCompat.callbacks:{};O=_.a(V_S(E,O,d.debugName));b=O.next().value;O.next();O=O.next().value;var Y=o9j(v,b);S.privateValue=Y;Lrt=void 0;sF$(Y,b,d);S={debugName:d.debugName};T&&S&&Object.assign(T.attributes,S);T=QOL(Y);T=Array.isArray(T)?T[0]:T;T[Is]||(T[Is]={});T[Is].updateSignalsFromIdomProps=O;JYO(b,Y);return Y}O=
jF$(E,GKt);b=o9j(v,O);S.privateValue=b;Lrt=void 0;sF$(b,O,d);S={debugName:d.debugName};T&&S&&Object.assign(T.attributes,S);JYO(O,b);return b})};
d.debugName=e===void 0?"":e;return d};
o9j=function(v,e){v=v(e);return yU(v)};
M_0=function(v,e){v[e]||(v=new _.kL("IDOM interop setter undefined. Key:",e),_.RI(v))};
GKt=function(v,e){return e==="children"||e==="ref"||typeof v==="function"||v===void 0?v:function(){return _.M4(v)}};
V_S=function(v,e,d){var E={},T={},S={},O={},b;for(b in v){O={key$jscomp$944:O.key$jscomp$944};O.key$jscomp$944=b;var Y=v[O.key$jscomp$944];if(O.key$jscomp$944==="children"||O.key$jscomp$944==="ref")E[O.key$jscomp$944]=Y;else if(typeof Y==="function")O.key$jscomp$944 in e||Y.length>0?(S[O.key$jscomp$944]=Y,E[O.key$jscomp$944]=function(r){return function(){return S[r.key$jscomp$944].apply(S,_.t7(_.Xa.apply(0,arguments)))}}(O)):E[O.key$jscomp$944]=Y;
else if(!(v[O.key$jscomp$944]===void 0&&O.key$jscomp$944 in e)){var q=_.a(_.OE(v[O.key$jscomp$944],{debugName:O.key$jscomp$944+":cwis:"+d},"rvrjQe"));Y=q.next().value;q=q.next().value;E[O.key$jscomp$944]=Y;T[O.key$jscomp$944]=q}}return[E,T,function(r){var h={},K;for(K in r)h={key$jscomp$945:h.key$jscomp$945,val$jscomp$123:void 0},h.key$jscomp$945=K,h.val$jscomp$123=r[h.key$jscomp$945],h.key$jscomp$945!=="children"&&h.key$jscomp$945!=="ref"&&(typeof h.val$jscomp$123==="function"?h.key$jscomp$945 in
e?S[h.key$jscomp$945]=h.val$jscomp$123:h.val$jscomp$123.length>0&&(S[h.key$jscomp$945]=h.val$jscomp$123,_.xf(new _.kL("Callback detected that was not set in the idomCompat callbacks map. Key:",h.key$jscomp$945))):h.key$jscomp$945 in e&&h.val$jscomp$123===void 0||(M_0(T,h.key$jscomp$945),q4(function(k){return function(){T[k.key$jscomp$945](k.val$jscomp$123)}}(h))))}]};
RCW=function(v,e,d){var E=Lv$(v.prototype,t_M,v.prototype.behaviors);E.prototype.is=e;E.prototype.localName=e;d&&fnj(E,d);return function(T){T&&(E.prototype.hostElement=T);var S=new E;S.root=S;S.hostElement=T;return S}};
fnj=function(v,e){var d;Object.defineProperty(v.prototype,"_template",{get:function(){d===void 0&&(d=e());return d},
set:function(E){d=E},
configurable:!0,enumerable:!0})};
X17=function(v,e,d,E){function T(){if(!k){for(var J=new Set,R=_.a(r),B=R.next();!B.done;B=R.next()){B=B.value;for(var X=_.a(Object.getOwnPropertyNames(B)),Z=X.next();!Z.done;Z=X.next()){Z=Z.value;var U=void 0,F=(U=Object.getOwnPropertyDescriptor(B,Z))==null?void 0:U.value;F&&F instanceof Function&&!E_(Z)&&(!b[Z]||_.N("polymer_forward_method_killswitch"))&&J.add(Z)}}R=_.a(Object.entries(Object.getOwnPropertyDescriptors(v.prototype)));for(B=R.next();!B.done;B=R.next())X=_.a(B.value),B=X.next().value,
X=X.next().value,X.value instanceof Function&&!E_(B)&&J.add(B);k=J}return k}
Prs(v,e,E==null?void 0:E.providers);Vjt(v.prototype,v,!0);var S=RCW(v,e,d),O,b=(O=v.prototype.properties)!=null?O:{},Y,q,r=(q=(Y=v.prototype.behaviors)==null?void 0:Y.flat(Infinity))!=null?q:[];d=_.a(r);for(O=d.next();!O.done;O=d.next())b=Object.assign({},O.value.properties,b);var h=[].concat(_.t7(xAs),_.t7(Object.keys(b).map(function(J){return _.Nn(J)}))),K=!1,k;
return{ctor:function(J,R){var B=S(J),X,Z;J=[].concat(_.t7((X=E==null?void 0:E.allowedProps)!=null?X:[]),_.t7((Z=E==null?void 0:E.allowedPropsFromBehaviors)!=null?Z:[]));B.allowedProps=J.length>0?J:void 0;X={};Z=_.a(h);for(J=Z.next();!J.done;J=Z.next())J=J.value,X[J]=_.kq(J);B.__dataAttributes=X;var U=B.ready.bind(B);B.ready=function(){R.beforeReady();U();if(oB(e)&&!K){var F=B.__templateInfo;if(F==null?0:F.hostProps){F=_.a(Object.keys(F.hostProps));for(var g=F.next();!g.done;g=F.next())GV(e,g.value,
"PROPERTY_ACCESS_GET_INTERNAL")}K=!0}};
B._overrideLegacyUndefined=!0;return B},
props:b,observedAttributes:h,getInitialMethods:T,getPropsToForwardBeforeRegister:function(){for(var J=[],R=new Set,B=_.a(Object.keys(b)),X=B.next();!X.done;X=B.next())X=X.value,J.push([X,b[X].readOnly]),R.add(X);B=T();X=_.a(Object.keys(Object.getOwnPropertyDescriptors(v.prototype)));for(var Z=X.next();!Z.done;Z=X.next())Z=Z.value,!BP0(Z)||B.has(Z)||R.has(Z)||(J.push([Z,!1]),R.add(Z));R=_.a(CrO);for(B=R.next();!B.done;B=R.next())J.push([B.value,!0]);return J},
getPropsToForwardBeforeReady:function(J){for(var R=[],B=_.a(Object.entries(J)),X=B.next();!X.done;X=B.next()){var Z=_.a(X.value);X=Z.next().value;Z=Z.next().value;if(BP0(X)&&!(Z instanceof Function)&&(R.push([X,!1]),oB(e))){var U=Z=void 0;(U=(Z=J)._createPropertyAccessor)==null||U.call(Z,X)}}return R},
shouldForwardProp:BP0,shouldLog:oB}};
Prs=function(v,e,d){hA7(v,d);v.prototype.behaviors.unshift(zC0);if(TjU()){if(oB(e)){var E;(E=v.prototype).behaviors!=null||(E.behaviors=[]);v.prototype.behaviors.unshift(i5M())}O5t(v)}_.M(Xe.prototype)(v.prototype,"__templateHelpers")};
E_=function(v){return lnt.has(v)||v.startsWith("__compute__")};
BP0=function(v){return!E_(v)&&!v.startsWith("_")&&!v.endsWith("_")};
w10=function(v,e){function d(){var K=Y();K=_.a(K);for(var k=K.next();!k.done;k=K.next()){var J=_.a(k.value);k=J.next().value;J=J.next().value;HdL(h.prototype,k,J)}E=!0}
var E=!1,T=v.ctor,S=v.getInitialMethods,O=v.observedAttributes,b=v.getPropsToForwardBeforeReady,Y=v.getPropsToForwardBeforeRegister,q=v.shouldForwardProp,r=v.shouldLog,h=function(){var K=HTMLElement.call(this)||this;K.didForwardDynamicProps=!1;K.loggingStatus={};E||d();K.inst=T(K,{beforeReady:function(){K.didForwardDynamicProps||(K.forwardDynamicProps(),K.didForwardDynamicProps=!0)}});
K.controllerProxy=WF0(K.inst,e);K.forwardMethods();return K};
_.V(h,HTMLElement);h.prototype.forwardMethods=function(){for(var K=this,k=_.a(this.inst.getExtraMethodsToForward()),J=k.next(),R={};!J.done;R={method$jscomp$63:void 0},J=k.next()){var B=_.a(J.value);J=B.next().value;B=B.next().value;R.method$jscomp$63=B;this[J]=function(X){return function(){return X.method$jscomp$63.call.apply(X.method$jscomp$63,[K.inst].concat(_.t7(_.Xa.apply(0,arguments))))}}(R)}k=_.a(S());
for(R=k.next();!R.done;R=k.next())R=R.value,q(R)&&AYL(this,R),r(e)&&!E_(R)&&ZdH(this.inst,R)};
h.prototype.forwardDynamicProps=function(){var K=b(this.inst);K=_.a(K);for(var k=K.next();!k.done;k=K.next()){var J=_.a(k.value);k=J.next().value;J=J.next().value;HdL(this,k,J);r(e)&&!E_(k)&&cY7(this.inst,k)}};
h.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
h.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
h.prototype.attributeChangedCallback=function(K,k,J){this.inst.attributeChangedCallbackWrapper(K,k,J)};
_.vP.Object.defineProperties(h.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return e}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.vP.Object.defineProperties(h,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return O}}});
customElements.define(e,h)};
HdL=function(v,e,d){v.hasOwnProperty(e)||Object.defineProperty(v,e,{get:function(){var E,T=((E=v.is)!=null?E:v.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||GV(T,e,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,E=this.polymerController[e],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,E},
set:function(E){if(!d){var T,S=((T=v.is)!=null?T:v.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||GV(S,e,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=e,this.loggingStatus.bypassProxyController=!0,this.polymerController[e]!==E&&(T={},this.polymerController.setProperties((T[e]=E,T)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
AYL=function(v,e,d){var E=v.polymerController;v[e]=function(){var T=_.Xa.apply(0,arguments);v.loggingStatus.currentExternalCall=e;v.loggingStatus.bypassProxyController=!0;var S,O=((S=v.is)!=null?S:v.tagName).toLowerCase();GV(O,e,"PROPERTY_ACCESS_CALL_EXTERNAL");var b;S=(b=d!=null?d:E[e])==null?void 0:b.call.apply(b,[E].concat(_.t7(T)));v.loggingStatus.currentExternalCall=void 0;v.loggingStatus.bypassProxyController=!1;return S}};
ZdH=function(v,e){var d=v.hostElement,E=v[e];v[e]=function(){var T=_.Xa.apply(0,arguments);if(d.loggingStatus.currentExternalCall!==e){var S,O=((S=d.is)!=null?S:d.tagName).toLowerCase();GV(O,e,"PROPERTY_ACCESS_CALL_INTERNAL")}return E==null?void 0:E.apply(v,T)}};
cY7=function(v,e){var d=Object.getOwnPropertyDescriptor(v,e);d&&!d.get&&Object.defineProperty(v,e,{get:function(){aJ0(v.hostElement,e);return d.value},
set:function(E){Mr(v.hostElement,e);d.value=E}})};
Fr$=function(v){return _.N("poly_si_dom_repeat_detached_fix_killswitch")||v.tagName!=="PS-DOM-REPEAT"?v.tagName==="DOM-REPEAT":!0};
g9s=function(v,e){var d=QF0(v);v instanceof Element&&d.unshift(v);v=_.a(d.filter(Fr$));for(var E=v.next();!E.done;E=v.next()){var T=void 0;E=_.a((T=E.value.__instances)!=null?T:[]);for(T=E.next();!T.done;T=E.next())if(T=T.value,T.root){T=Array.from(T.root.children);T=_.a(T);for(var S=T.next();!S.done;S=T.next())d.push.apply(d,_.t7(g9s(S.value,e)))}}return d.filter(function(O){return O.usePatchedLifecycles&&O.lifecycleIsConnected===e})};
QF0=function(v){var e=null;v instanceof Element?e=Element.prototype.querySelectorAll:v instanceof DocumentFragment&&(e=DocumentFragment.prototype.querySelectorAll);return e?Array.from(e.call(v,"*")):[]};
Tj=function(v){i3(function(){for(var e=_.a(g9s(v,!1)),d=e.next();!d.done;d=e.next()){d=d.value;d.lifecycleIsConnected=!0;try{var E=void 0,T=void 0,S=void 0,O=void 0;(E=(O=d.polymerController)!=null?O:d)==null||(S=(T=E).connectedCallback)==null||S.call(T)}catch(b){_.RI(b)}}})};
S2=function(v){i3(function(){for(var e=_.a(g9s(v,!0)),d=e.next();!d.done;d=e.next()){d=d.value;d.lifecycleIsConnected=!1;try{var E=void 0,T=void 0,S=void 0,O=void 0;(E=(O=d.polymerController)!=null?O:d)==null||(S=(T=E).disconnectedCallback)==null||S.call(T)}catch(b){_.RI(b)}}})};
ej0=function(){if(!u4O){u4O=!0;var v=[Node];Wz&&v.push(Wz.Wrapper);var e=Node.prototype.insertBefore,d=Node.prototype.removeChild;v=_.a(v);for(var E=v.next(),T={};!E.done;T={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},E=v.next())E=E.value,T.nativeInsertBefore=E.prototype.insertBefore,E.prototype.insertBefore=function(O){return function(b,Y){if(b instanceof DocumentFragment){var q=Array.from(b.children);b=O.nativeInsertBefore.call(this,b,Y);
if(this.isConnected&&O.nativeInsertBefore===e)for(Y=_.a(q),q=Y.next();!q.done;q=Y.next())Tj(q.value);return b}q=b instanceof Element&&b.isConnected;Y=O.nativeInsertBefore.call(this,b,Y);q&&S2(b);this.isConnected&&Tj(b);return Y}}(T),T.nativeAppendChild=E.prototype.appendChild,E.prototype.appendChild=function(O){return function(b){if(b instanceof DocumentFragment){var Y=Array.from(b.children);
b=O.nativeAppendChild.call(this,b);if(this.isConnected){Y=_.a(Y);for(var q=Y.next();!q.done;q=Y.next())Tj(q.value)}return b}Y=b instanceof Element&&b.isConnected;q=O.nativeAppendChild.call(this,b);Y&&S2(b);this.isConnected&&Tj(b);return q}}(T),T.nativeRemoveChild=E.prototype.removeChild,E.prototype.removeChild=function(O){return function(b){var Y=b instanceof Element&&b.isConnected,q=O.nativeRemoveChild.call(this,b);
Y&&d===O.nativeRemoveChild&&S2(b);return q}}(T),T.nativeReplaceChild=E.prototype.replaceChild,E.prototype.replaceChild=function(O){return function(b,Y){if(b instanceof DocumentFragment){var q=Array.from(b.children);
b=O.nativeReplaceChild.call(this,b,Y);if(this.isConnected)for(S2(Y),Y=_.a(q),q=Y.next();!q.done;q=Y.next())Tj(q.value);return b}q=b instanceof Element&&b.isConnected;var r=this.isConnected,h=O.nativeReplaceChild.call(this,b,Y);r&&S2(Y);q&&S2(b);r&&Tj(b);return h}}(T);
v=[Element];Wz&&v.push(Wz.Wrapper);v=_.a(v);E=v.next();for(T={};!E.done;T={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},E=v.next())E=E.value,E.prototype.before=n90(E.prototype.before),E.prototype.after=n90(E.prototype.after),T.nativeReplaceWith=E.prototype.replaceWith,E.prototype.replaceWith=function(O){return function(){var b=_.Xa.apply(0,arguments),Y=_.a(DAt(b)),q=Y.next().value,
r=Y.next().value;Y=this.isConnected;O.nativeReplaceWith.apply(this,b);b=_.a(r);for(r=b.next();!r.done;r=b.next())S2(r.value);if(Y)for(S2(this),q=_.a(q),Y=q.next();!Y.done;Y=q.next())Y=Y.value,Y instanceof Element&&Tj(Y)}}(T),T.nativeRemove=E.prototype.remove,E.prototype.remove=function(O){return function(){var b=this.isConnected;
O.nativeRemove.call(this);b&&S2(this)}}(T),T.nativeInsertAdjacentElement=E.prototype.insertAdjacentElement,E.prototype.insertAdjacentElement=function(O){return function(b,Y){var q=Y.isConnected;
b=O.nativeInsertAdjacentElement.call(this,b,Y);q&&S2(Y);b.isConnected&&Tj(b);return b}}(T),T.nativeSetAttribute=E.prototype.setAttribute,E.prototype.setAttribute=function(O){return function(b,Y){var q=UAM(this);
if(!q.usePatchedLifecycles)return O.nativeSetAttribute.call(this,b,Y);var r=this.getAttribute(b);O.nativeSetAttribute.call(this,b,Y);Y=this.getAttribute(b);p17(q,b,r,Y)}}(T),T.nativeRemoveAttribute=E.prototype.removeAttribute,E.prototype.removeAttribute=function(O){return function(b){var Y=UAM(this);
if(!Y.usePatchedLifecycles)return O.nativeRemoveAttribute.call(this,b);var q=this.getAttribute(b);O.nativeRemoveAttribute.call(this,b);q!==null&&p17(Y,b,q,null)}}(T),T.nativeToggleAttribute=E.prototype.toggleAttribute,E.prototype.toggleAttribute=function(O){return function(b,Y){var q=UAM(this);
if(!this.usePatchedLifecycles)return O.nativeToggleAttribute.call(this,b,Y);var r=this.getAttribute(b),h=r!==null;Y=O.nativeToggleAttribute.call(this,b,Y);Y!==h&&p17(q,b,r,Y?"":null);return Y}}(T);
v=[Document,DocumentFragment,Element,ShadowRoot];Wz&&v.push(Wz.Wrapper);v=_.a(v);for(T=v.next();!T.done;T=v.next())T=T.value,T.prototype.prepend=n90(T.prototype.prepend),T.prototype.append=n90(T.prototype.append);(Wz==null?void 0:Wz.noPatch)===!0&&v3s();document.readyState==="complete"?Tj(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Tj(document.body)});
var S=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");S&&S.get&&S.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:S.enumerable,configurable:!0,get:S.get,set:function(O){O||S2(this);S.set.call(this,O);return O}})}};
n90=function(v){return function(){var e=_.Xa.apply(0,arguments),d=_.a(DAt(e)),E=d.next().value;d=d.next().value;v.apply(this,e);e=_.a(d);for(d=e.next();!d.done;d=e.next())S2(d.value);if(this.isConnected)for(E=_.a(E),e=E.next();!e.done;e=E.next())e=e.value,e instanceof Element&&Tj(e)}};
v3s=function(){for(var v=_.a(dDO),e=v.next();!e.done;e=v.next()){e=e.value.prototype;for(var d=_.a(E3t),E=d.next();!E.done;E=d.next()){E=E.value;var T=Object.getOwnPropertyDescriptor(e,E);T&&Object.defineProperty(e,"__shady_native_"+E,T)}}};
p17=function(v,e,d,E){var T,S;if((T=v.polymerController)==null?0:(S=T.observedAttributes)==null?0:S.includes(e))if(v=v.polymerController,v.attributeChangedCallbackWrapper)v.attributeChangedCallbackWrapper.call(v,e,d,E);else{var O;(O=v.attributeChangedCallback)==null||O.call(v,e,d,E)}};
DAt=function(v){var e=[],d=[];v=_.a(v);for(var E=v.next();!E.done;E=v.next())E=E.value,E instanceof Element&&E.isConnected&&d.push(E),E instanceof DocumentFragment?e.push.apply(e,_.t7(Array.from(E.children))):e.push(E);return[e,d]};
UAM=function(v){return!(v instanceof Element)&&v.node instanceof Element?v.node:v};
Txt=function(v,e){var d=e?["children"].concat(_.t7(e)):["children"];e=[];d=_.a(d);for(var E=d.next();!E.done;E=d.next()){var T=E.value;if(v.hasOwnProperty(T)){E=v[T];E=typeof E==="function"?E():E;E=Array.isArray(E)?E:[E];E=yU(E).flat();if(T!=="children"){T=r4S(T);for(var S=_.a(E),O=S.next();!O.done;O=S.next())O=O.value,O instanceof Element&&O.setAttribute("slot",T)}e.push(E)}}e.length===0?v=[]:(v=yU(_.m("div",null,e)),v=Array.from(v.childNodes));return v};
WzO=function(v,e,d){var E={};_.tf(function(){var T={},S;for(S in e)if(e.hasOwnProperty(S)){var O=void 0,b=void 0;if(!(((O=d.slotProps)==null?0:O.includes(S))||S==="children"||((b=d.callbackProps)==null?0:b.includes(S))||S==="ref")&&(O=_.M4(e[S]),E[S]!==O)){E[S]=O;b=void 0;var Y=(b=v.hostElement)!=null?b:v;SZ0.has(S)&&(Y[S]=O);T[S]=O}}q4(function(){if(v.setProperties)v.setProperties(T);else for(var q=_.a(Object.entries(T)),r=q.next();!r.done;r=q.next()){var h=_.a(r.value);r=h.next().value;h=h.next().value;
v[r]=h}})})};
iaH=function(v,e,d,E){var T=Txt(d,E.slotProps),S=(0,_.y1)(v);T=_.a(T);for(var O=T.next();!O.done;O=T.next())S.appendChild(O.value);WzO(e,d,E);E=_.a(E.callbackProps||[]);T=E.next();for(S={};!T.done;S={kebabEventName:void 0,eventListener:void 0},T=E.next())O=T=T.value,String(T).substring(0,2)==="on"&&d[O]?(S.kebabEventName=r4S(String(T).substring(2)),S.eventListener=d[O],v.addEventListener(S.kebabEventName,S.eventListener),_.Jf(function(r){return function(){v.removeEventListener(r.kebabEventName,r.eventListener)}}(S))):
e[O]=d[O];
if(d.ref){d=_.a(aU$(d.ref));var b=d.next().value,Y=d.next().value,q=e.attached.bind(e);e.attached=function(){b(v);q()};
_.Jf(function(){Y()})}};
aU$=function(v){if(typeof v==="function"){var e;return[function(d){e=v(d)},
function(){var d;(d=e)==null||d()}]}if(!v.onRender||!v.onUnmount)throw Error("Tg");
return[v.onRender,v.onUnmount]};
YZt=function(v,e,d,E,T){E=E===void 0?{}:E;var S=Oat,O=!1;S?(O=!0,Oat=void 0):(IU0=e,S=document.createElement(e),IU0=void 0);var b=S;b.usePatchedLifecycles=!0;b.lifecycleIsConnected=!1;S.loggingStatus={};var Y=ba0(v,e,S,E,T);_.Jf(function(){b.lifecycleIsConnected&&(b.lifecycleIsConnected=!1,Y.disconnectedCallback())});
O||(S.__noInsertionPoint=!0,iaH(S,Y,d,E));return S};
ba0=function(v,e,d,E,T){T=T===void 0?X17:T;mDM[e]!=null||(mDM[e]=T(v,e,E==null?void 0:E.getTemplate,E));var S=mDM[e],O=S.ctor;T=S.getInitialMethods;var b=S.getPropsToForwardBeforeReady;v=S.getPropsToForwardBeforeRegister;E=S.shouldForwardProp;var Y=S.observedAttributes,q=S.shouldLog,r=O(d,{beforeReady:function(){var h=r;h._takeAttributes?h._takeAttributes():h.setPropertiesFromInitialAttributeValues&&h.setPropertiesFromInitialAttributeValues();h=_.a(b(d.polymerController));for(var K=h.next();!K.done;K=
h.next()){var k=_.a(K.value);K=k.next().value;k=k.next().value;HdL(d,K,k);q(e)&&!E_(K)&&cY7(d.polymerController,K)}d.polymerController=WF0(r,e)}});
d.polymerController=r;d.polymerController.observedAttributes=Y;S=_.a(r.getExtraMethodsToForward());for(O=S.next();!O.done;O=S.next())Y=_.a(O.value),O=Y.next().value,Y=Y.next().value,AYL(d,O,Y);T=_.a(T());for(S=T.next();!S.done;S=T.next())S=S.value,E(S)&&AYL(d,S),q(e)&&!E_(S)&&ZdH(r,S);v=_.a(v());for(E=v.next();!E.done;E=v.next())T=_.a(E.value),E=T.next().value,T=T.next().value,HdL(d,E,T);return r};
yHH=function(v){var e=a5;a5=v;return e};
hjt=function(v){if(_.ik.has(v))_.qZt=v;else if(O_.has(v)&&a5&&rHs(a5)===v){var e;(e=a5)._numRenders!=null||(e._numRenders=0);a5._numRenders++;if(a5._numRenders>1)throw Error("Ug");return a5}};
KzU=function(v){_.ik.has(rHs(v))?_.qZt=rHs(v):O_.has(rHs(v))&&a5!==v&&(v._isInert=!0)};
rHs=function(v){var e;return(e=v==null?void 0:v.tagName.toLowerCase())!=null?e:""};
$Dt=function(v,e){if(v.componentType===_.N4)throw Error("Vg");O_.add(e);var d=function(){var E=HTMLElement.call(this)||this;E.is=e;if(IU0===e)return E.isInert=!0,E;E.createElement();return E};
_.V(d,HTMLElement);d.prototype.createElement=function(){if(!this.isInert){Oat=this;var E=_.a(_.KCt(function(){return _.m(v,null)})).next().value;
Oat=void 0;a60(this);return E}};
customElements.define(e,d)};
sJM=function(v,e,d,E,T){v.prototype.is=e;(E==null?0:E.useSink)?jJ3(v,e,d,E,T):(d=X17(v,e,d,E),w10(d,e));return v};
jJ3=function(v,e,d,E,T){ej0();var S=_.l(function(O){return YZt(v,e,O,Object.assign({},E,{getTemplate:d}),T)},"a");
S.debugName=e+" (CoW wrapped)";$Dt(S,e);return S};
k0j=function(v){return!NxL.has(v)};
o3O=function(v,e,d,E){function T(){if(!h){for(var K=new Set(Lz7),k=_.a(S.behaviors),J=k.next();!J.done;J=k.next()){J=J.value;for(var R=_.a(Object.getOwnPropertyNames(J)),B=R.next();!B.done;B=R.next()){B=B.value;var X=void 0,Z=(X=Object.getOwnPropertyDescriptor(J,B))==null?void 0:X.value;Z&&Z instanceof Function&&(!q[B]||_.N("polymer_forward_method_killswitch"))&&K.add(B)}}k=_.a(Object.entries(Object.getOwnPropertyDescriptors(v.prototype)));for(J=k.next();!J.done;J=k.next())R=_.a(J.value),J=R.next().value,
R=R.next().value,R.value instanceof Function&&K.add(J);h=K}return h}
var S=an7({is:e,disableElementRegistration:!1,getTemplate:d,providers:E==null?void 0:E.providers,reactivityMode:E==null?void 0:E.reactivityMode},v);if((E==null?0:E.allowedProps)||(E==null?0:E.allowedPropsFromBehaviors)){var O,b;S.allowedProps=[].concat(_.t7((O=E.allowedProps)!=null?O:[]),_.t7((b=E.allowedPropsFromBehaviors)!=null?b:[]))}var Y=v9S(S,v);e=Y.observedAttributes;var q={};d=_.a(S.reactiveSchemas);for(E=d.next();!E.done;E=d.next())if(E=E.value,E.type==="signal")q[E.propertyKey]={readOnly:E.readOnly},
E.readOnly&&(q[tV$(E.propertyKey)]={readOnly:!0});else if(E.type==="compute"||E.type==="computeWithMethod"||E.type==="redux")q[E.propertyKey]={readOnly:!0};var r=S.reactiveSchemas.length,h;return{ctor:function(K,k){K=new Y(K);K.beforeReady=k.beforeReady;return K},
props:q,observedAttributes:e,getInitialMethods:T,getPropsToForwardBeforeRegister:function(){for(var K=[],k=new Set,J=_.a(V80),R=J.next();!R.done;R=J.next())R=R.value,K.push([R,R!=="observers"&&R!=="properties"]),k.add(R);J=_.a(Object.keys(q));for(R=J.next();!R.done;R=J.next())R=R.value,K.push([R,q[R].readOnly]),k.add(R);J=T();R=_.a(Object.keys(Object.getOwnPropertyDescriptors(v.prototype)));for(var B=R.next();!B.done;B=R.next())B=B.value,!k0j(B)||J.has(B)||k.has(B)||(K.push([B,!1]),k.add(B));K.push(["allowedProps",
!0]);return K},
getPropsToForwardBeforeReady:function(K){var k=[];K=_.a(Object.keys(K));for(var J=K.next();!J.done;J=K.next()){J=J.value;var R=T();k0j(J)&&!R.has(J)&&k.push([J,!1])}K=_.a(S.reactiveSchemas.slice(r));for(J=K.next();!J.done;J=K.next())J=J.value,J.type!=="compute"&&J.type!=="computeWithMethod"&&J.type!=="redux"&&J.type!=="signal"||k.push([J.propertyKey,J.type==="signal"?J.readOnly:!0]);return k},
shouldForwardProp:k0j,shouldLog:oB}};
_.A=function(v,e,d,E){var T,S,O=(S=(T=E)==null?void 0:T.mode)!=null?S:0;E!=null||(E={});var b;(b=E).reactivityMode!=null||(b.reactivityMode=0);O===1&&_.iY("creator_poly_si_disable_list").includes(e)&&(O=2);return O===1?sJM(v,e,d,Object.assign({},E,{useSink:!0}),o3O):sJM(v,e,d,Object.assign({},E,{useSink:O===2}))};
_.I5=function(){return function(v,e,d,E){var T,S,O=(S=(T=E)==null?void 0:T.mode)!=null?S:2;E!=null||(E={});var b;(b=E).reactivityMode!=null||(b.reactivityMode=0);if(O===0)throw Error("Wg`"+O);return jJ3(v,e,d,E,O===1?o3O:void 0)}};
_.bk=function(v){return _.N("creator_poly_si_killswitch")?!1:_.N("force_all_poly_si_batches")&&(v==="poly_si_all_on_test_check"||v==="creator_poly_si_batch_050"?0:v)||document.documentElement.hasAttribute("use-signals")?!0:!v||_.N(v+"_holdback_enabled")&&_.N("kevlar_polysi_holdback")?!1:_.N(v)};
YJ=function(v){return v?v.icon?v.icon.iconType.toLowerCase():v.customThumbnail?"member":"":""};
JHH=function(v){if(!v)return"";v=_.a(v);for(var e=v.next();!e.done;e=v.next())if((e=e.value)&&e.liveChatAuthorBadgeRenderer&&(e=YJ(e.liveChatAuthorBadgeRenderer))&&e!=="verified")return e;return""};
G0j=function(v,e){if(!v)return null;var d;return((d=v.find(function(E){return E&&E.liveChatAuthorBadgeRenderer?YJ(E.liveChatAuthorBadgeRenderer)===e:!1}))==null?void 0:d.liveChatAuthorBadgeRenderer)||null};
_.xD3=function(v){var e=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;v=M80(v);e=M80(e);var d=t8M(v.hex);e=t8M(e.hex);var E=e[0]/255;var T=e[1]/255,S=e[2]/255,O=Math.max(E,T,S),b=Math.min(E,T,S),Y=0,q=0,r=.5*(O+b);O!=b&&(O==E?Y=60*(T-S)/(O-b):O==T?Y=60*(S-E)/(O-b)+120:O==S&&(Y=60*(E-T)/(O-b)+240),q=0<r&&r<=.5?(O-b)/(2*r):(O-b)/(2-2*r));E=[Math.round(Y+360)%360,q,r];d=fUO(d,e);for(v=RjW(v.hex);d<4.5;){v=E[2]>=.5?v.darker((4.5-d)/2):v.brighter((4.5-d)/2);d=v.toString();
T=PD7(d);if(!T.length)throw Error("Td`"+d);d=T;d=fUO(d,e)}return v.hex()};
fUO=function(v,e){v=_.h1L(v);e=_.h1L(e);return(Math.max(v,e)+.05)/(Math.min(v,e)+.05)};
_.m5=function(v){return"#"+("000000"+(v&16777215).toString(16)).slice(-6)};
_.BxW=function(v){for(var e=0,d=0;d<v.length;d++)e=v.charCodeAt(d)+((e<<5)-e);v="#";for(d=0;d<3;d++)v+=("00"+(e>>d*8&255).toString(16)).slice(-2);return v};
CDH=function(v){v=(v||"").split(":");v.length===1&&v.unshift("yt-icons");v[1]=v[1].toLowerCase();return v};
ZaH=function(v,e){var d=(e=e===void 0?!1:e)?Xej:zjt,E=e?lUH:HaL;v.getIconNames().forEach(function(T){T=e?T:T.substring(T.indexOf(":")+1);v.name==="yt-icons"?AH0.add(T):T.includes("-filled")?d.add(T):E.add(T)})};
yK=function(v,e,d,E){d=d===void 0?!1:d;E=E===void 0?!1:E;var T,S,O;return _.I(function(b){if(b.nextAddress==1)return b.yield(cHj,2);if(E)return b.return(AH0.has(v));T=d?Xej:zjt;S=d?lUH:HaL;return e?(O=v.includes("-filled")?v:v.concat("-filled"),b.return(T.has(O))):b.return(S.has(v))})};
_.QJ0=function(v){if(weW(v))return v;var e=v=v.toLowerCase();(v=FzH.get(v))&&(e=v);return e};
_.qC=function(v){if(weW(v))return v.toString();var e=g3W.get(v);if(e)return e;e=v.toLowerCase();var d="yt-icons",E=e.replace(/_/g,"-");switch(v){case "MY_CHANNEL":e="account_circle";break;case "ADD_TO_LIBRARY":e="add";break;case "ALERT_WARN_RED":e="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":e="person_music";break;case "BLOCK_USER":e="block";break;case "CAPTIONS":e="closed_caption";break;case "CLOSED_CAPTION":d="av";e="closed-caption";break;case "COLLECTION":d="maps";e="layers";break;case "CONTACT":d=
"icons";e="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":d="ytcp-icons";e=E.split("creator-studio-")[1];break;case "DISMISSAL":e="close";break;case "DO_NOT_DISTURB":e="block";break;case "DOGFOOD":d="icons";e="pets";break;case "DRAFT":e="paper_corner_folded";break;
case "EMPTY_LIKE":e="like_outline";break;case "EXIT_APP":e="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":e=E;break;case "GAMES":d="ytg";e="my-games";break;case "GO_TO_PAGE":e="arrow-forward";break;case "GROUP":d="social";break;case "HIDE":e="not_interested";break;case "INPUT_COMPONENT":d="icons";e="settings-input-component";break;case "KIDS_BLOCK":e="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":d="ytg";e="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":d=
"ytg";e="membership-post-purchase";break;case "MULTIVIEW":e="screen_multi_view";break;case "MY_LOCATION":d="maps";e=E;break;case "NOTIFICATIONS_INBOX":e="NOTIFICATIONS";break;case "NEXT":e="chevron_right";break;case "OFFLINE":e="power-settings-new";break;case "PAUSE":d="miniplayer";break;case "PAYMENT":d="icons";break;case "PHONE_DOWNLOAD":e="phone_download";break;case "PREMIUM_STANDALONE":d="yt-logos";e="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":d="yt-logos";e="premium_standalone_cairo";
break;case "QUESTION_ANSWER":e="question_answer";break;case "REDEEM":d="icons";e="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":e="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":e="library_add";break;case "SCHOOL":d="yt-sys-icons";e="creator_academy";break;case "SETTINGS_LIGHT":e="settings_applications";break;case "SETTINGS_MATERIAL":e="settings";break;case "SEARCH_HISTORY":e="watch_history";break;case "SHOPPING_BAG":e="bag";break;case "SOCIAL":case "PEOPLE":d=
"yt-icons";e="people";break;case "STAFF_PICK":d="ytg";e="spotlight";break;case "START_DVR":e="add";break;case "STOP_DVR":d="av";e="stop";break;case "TAB_LIKED":e="like";break;case "TAB_INBOX":e="mail";break;case "TERMS_OF_SERVICE":d="icons";e="description";break;case "TRENDING":e="fire";break;case "UNBLOCK_USER":e="remove";break;case "UNPLUGGED_DARK_THEME":d="image";e="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":e="live";break;case "UNPLUGGED_SPORTS":d="ytu";e="visibility-off";break;
case "VIDEOS":d="av";e="play-circle-filled";break;case "YOUTUBE":d="yt-logos";e="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":d="yt-logos-ext";e="yt-logo-red-updated";break;case "YOUTUBE_LOGO":d="yt-logos-ext";e="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":d="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":d="shorts";e=E;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":d="yt-sys-icons";e="youtube_improve_tv";break;case "OUTLINE_BAG":d=
"yt-sys-icons";e="bag";break;case "QUEUE_PLAY_LAST":d="yt-sys-icons";e="list_queue_last";break;case "SLASH_CIRCLE_LEFT":e="slash_circle_left";break;case "SPEED_1_POINT_2X":e="1_point_2x";break;case "SPEED_1_POINT_5X":e="1_point_5x";break;case "SPEED_1_POINT_8X":e="1_point_8x";break;case "SPEED_POINT_2X":e="point_2x";break;case "SPEED_POINT_5X":e="point_5x";break;case "SPEED_POINT_8X":e="point_8x";break;case "SPEED_1X":e="1x";break;case "SPEED_2X":e="2x";break;case "TAB_BOOKMARK":e="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":d="yt-sys-icons";e="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":d="yt-sys-icons";e="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":d="yt-sys-icons",e="tic_tac_toe"}e=d+":"+e;g3W.set(v,e);return e};
weW=function(v){var e;_.N("kevlar_use_wil_icons")?e=!!_.dk().resolve(_.rC).resolveIcon({iconName:v.toString()}):e=!1;return e};
_.K1=function(v,e,d,E){d=d===void 0?{}:d;E=E===void 0?!1:E;d===null&&(d={});var T=_.iY("kevlar_command_handler_command_banlist");T=_.a(T);for(var S=T.next();!S.done;S=T.next())if(S=v?v.hasOwnProperty(S.value):void 0,S)return!1;T=_.L(v.commandMetadata,_.$B);return E&&T!=null&&T.url?!1:!e.disableCommandHandlerOverride&&_.hg.instance?(E=_.hg.instance,d.form||(d.form={element:e}),d.form.element||(d.form.element=e),!d.clickedVisualElement&&e.visualElement&&(d.clickedVisualElement=e.visualElement),E.resolveCommand(v,
d),!0):!1};
u60=function(v,e){v=$J(v);for(var d=_.a(v.visibilityMonitorKeys||[]),E=d.next();!E.done;E=d.next())e.unobserveByKey(E.value);v.visibilityMonitorKeys=void 0};
peW=function(v,e){if(_.zz()){if(_.N("kevlar_vimio_use_shared_monitor"))n3S(v,e.data);else if(!n3S(v,e.data))return;var d=e.data,E=DD3(d);if(_.N("enable_client_ve_spec_logging"))u60(v,e.observer);else{var T=$J(v);T.trackedParams&&T.trackedParams!==E&&u60(v,e.observer)}T=$J(v);!d||T.data&&T.data===d||(T.data=d);UDS(v,e);T.trackedParams=E}};
UDS=function(v,e){var d=e.observer;if(!d&&_.N("web_skip_missing_vimio_observer")){var E,T;_.xf(new _.kL("VisibilityObserver is not defined.",v.tagName,v.trackedParams,(E=e.data)==null?void 0:E.trackingParams,(T=e.data)==null?void 0:T.loggingDirectives))}else{var S=e.layer,O=e.visibilityCallback||function(){},b=e.prescanCallback,Y=$J(v);
E=[];e.showOption&&E.push(d.observe(v,function(){e.skipLogging&&e.skipLogging()||_.j2().reportShown(Y,void 0,S);O(!0)},e.showOption));
e.hideOption&&E.push(d.observe(v,function(){_.j2().reportHidden(Y,void 0,S);O(!1)},e.hideOption));
e.prescanOption&&b&&E.push(d.observe(v,function(){b()},e.prescanOption));
Y.visibilityMonitorKeys=E}};
n3S=function(v,e){v=$J(v);if(v.visualElement&&!e)return!0;if(!e)return!1;var d=!1;if(_.N("enable_client_ve_spec_logging")){var E,T;d=!!((E=e.loggingDirectives)==null?0:(T=E.clientVeSpec)==null?0:T.uiType)}E=DD3(e);if(!E&&!d)return!1;_.N("mweb_component_visibility_logging")&&(v.veContainer||(v.veContainer={}),v.veContainer.trackingParams=E);if(v.trackedParams&&v.trackedParams===E)return!1;var S;if(_.N("enable_client_ve_spec_logging")&&((S=v.visualElement)==null?0:S.isClientVe())){var O;S=(O=v.visualElement)==
null?void 0:O.getAsJspb();var b,Y,q,r;if(_.TZ(S,2)===((b=e.loggingDirectives)==null?void 0:(Y=b.clientVeSpec)==null?void 0:Y.uiType)&&_.TZ(S,3,-1)===((q=e.loggingDirectives)==null?void 0:(r=q.clientVeSpec)==null?void 0:r.elementIndex))return!1}if(_.N("enable_client_ve_spec_logging")){var h,K;!v.visualElement&&((h=e.loggingDirectives)==null?0:(K=h.clientVeSpec)==null?0:K.uiType)&&(b=e.loggingDirectives.clientVeSpec,e=b.uiType,O=b.elementIndex,b=b.clientYoutubeData,v.visualElement=_.s_(_.NC(),{veType:e,
elementIndex:O,clientYouTubeData:b}))}return!0};
DD3=function(v){if(v==null?0:v.rendererContext){var e=_.L(v.rendererContext,_.kJ);if(e==null?0:e.loggingDirectives)return e.loggingDirectives.trackingParams}return(v==null?0:v.loggingDirectives)?v.loggingDirectives.trackingParams:v==null?void 0:v.trackingParams};
$J=function(v){var e;return(e=v.polymerController)!=null?e:v};
Eo7=function(v){_.j2();if(_.Hb(L1().JSC$12545_elementShouldLogGesture).bind(L1())(v,4)){voj(v);var e=e7O(v);dHj.set(v,e)}};
voj=function(v){dHj.has(v)&&(dHj.get(v).cancel("untrack hover element"),dHj.delete(v))};
e7O=function(v){var e,d=[],E=!1,T=new _.yf(function(S,O){VK(v,"mouseenter",_.Hb(function(){var b,Y,q;return _.I(function(r){if(r.nextAddress==1)return e=(0,_.E$)(),b=TAt(v),d.push(b),Y=SuL(v,function(){E=!0;O(Error("Xg"))}),r.yield(b,2);
if(r.nextAddress!=3)return Y&&o5(Y),q=Wa0(v),d.push(q),r.yield(q,3);S();_.s9(r)})}))});
T.then(function(){var S=(0,_.E$)()-e;S=Math.round(S);if(!(500>S||6E5<=S)){var O=v.getScreenLayer?v.getScreenLayer():void 0;O=_.zz(O)||"";var b=aWH(_.j2(),v);_.pB(O,v.visualElement?v.visualElement:_.Jg(b),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:S}})}Eo7(v)},function(){Gj&&(Gj(),Gj=null);
E&&(voj(v),Eo7(v))});
return T};
TAt=function(v){var e;return(new _.yf(function(d,E){Gj=function(){E(Error("Yg"))};
e=_.RM.debounce(_.Hb(function(){o5(T);d()}),1,100);
var T=_.MC(v,"mousemove",e)})).thenCatch(function(){var d=_.RM.cancelDebouncedJobMap.get(e);
d&&_.RM.cancelJob(d)})};
Wa0=function(v){var e;return(new _.yf(function(d,E){Gj=function(){E(Error("Zg"))};
e=VK(v,"mouseleave",_.Hb(function(){d()}))})).thenCatch(function(){o5(e)})};
SuL=function(v,e){return VK(v,"mouseleave",_.Hb(e))};
OLt=function(v){iLL&&_.tg.cancel(iLL);iLL=_.tg.run(function(){_.Iq(v,"yt-visibility-refresh");iLL=0})};
IWt=function(v){v=Number(v);return"rgba("+[v>>16&255,v>>8&255,v&255,(v>>24&255)/255].join()+")"};
YuM=function(v){if(!v)return!1;if(_.L(v,_.bL0))return!0;var e;if(v=(e=_.L(v,_.rV))==null?void 0:e.commands)for(e=_.a(v),v=e.next();!v.done;v=e.next())if(_.L(v.value,_.bL0))return!0;return!1};
mHt=function(v){var e=!0;e=e===void 0?!0:e;if(!v.useSignals&&!v.experimentalPropertiesChanged||_.N("experimental_templating_behavior_nopatch_killswitch")){var d=v._propertiesChanged;v._propertiesChanged=function(E,T,S){e?v.debounceRender():v.doRender();d&&d.call(v,E,T,S)}}};
yPj=function(v,e){if(v.useSignals||v.experimentalPropertiesChanged)if(_.N("experimental_templating_behavior_nopatch_killswitch"))v.experimentalPropertiesChanged=function(){};
else return;var d=new Set,E=[v].concat(_.t7(v.behaviors));E=_.a(E);for(var T=E.next();!T.done;T=E.next()){T=T.value;for(var S in T.properties)d.has(S)||(v._addPropertyEffect(S,"function",e),d.add(S))}};
quj=function(){var v=Polymer.Element,e=v._prepareTemplate;v._prepareTemplate=function(){e.call(this);var d=this.prototype;if(d.experimentalTemplatingInUse&&d.experimentalTemplatingInUse()&&d.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.RI(Error("$g"));else{d=this.template.content.childNodes;for(var E=d.length-1;E>=0;E--){var T=d[E];T.nodeName!=="STYLE"&&T.nodeName!=="LINK"&&T.nodeName!=="SCRIPT"&&T.nodeName!=="#comment"&&T.remove()}}}};
rPM=function(v){var e=!0;e=e===void 0?!0:e;quj();var d=v.ready;v.ready=function(){this._template=null;d.call(this)};
yPj(v,e?v.debounceRender:v.doRender)};
KaS=function(v,e,d){if(d===null||d===void 0)return d;var E=TmH(v.tagName.toLowerCase(),e,function(){throw Error("Ob");});
if(E===null)return d;E=h7S[E];var T;if((T=E.isUnwrappable)==null?0:T.call(E,d)){if(E.unwrap)return E.unwrap(d);throw Error("ch");}return E.filterString?E.filterString(v.tagName,e,String(d)):d};
$Ht=function(v,e,d){var E=e[e.length-1]!=="$",T=KaS(v,e,d);if(E)if(typeof T==="function"&&e.startsWith("reactiveon")&&e===e.toLowerCase()){var S=uZ;my$(v,e.slice(8),function(O){fD(S,function(){T(O)})})}else v[e]=T;
else d=T==null?null:String(T),Bx(v,e.slice(0,-1),d)};
R5=function(v){jz3.length===0&&requestAnimationFrame(function(){setTimeout(function(){var e=jz3.slice();jz3.length=0;e=_.a(e);for(var d=e.next();!d.done;d=e.next()){d=d.value;try{d()}catch(E){_.f1(E)}}})});
jz3.push(v)};
sz0=function(v){if(v){var e=v.component;if(e){var d;e==null||(d=e.events)==null||d.publish("DISCONNECTED");var E;e==null||(E=e.onDisconnected)==null||E.call(e)}var T,S;(T=v.__spec)==null||(S=T.didUnmount)==null||S.call(T);for(e=0;e<v.childNodes.length;e++)sz0(v.childNodes[e])}};
NAS=function(v,e,d){var E=e&&e.key,T=Ql;T[0]=v;T[1]=E;T[2]=void 0;for(var S in e)e.hasOwnProperty(S)&&(v=e[S],E=gh,E.push(S),E.push(v));e=Ql;a:{if(S=Ql[2])for(v=0;v<S.length;v+=2)if(S[v]==="nonce"){S=S[v+1];break a}S=""}S=okS(e[0],e[1],S);v=l3(S);E=e[2];if(!v.staticsApplied&&(v.staticsApplied=!0,E&&E.length))if((T=v._attrsArr)&&T.length){for(T=0;T<E.length;T+=2)Pz[E[T]]=T+1;T=v._attrsArr||(v._attrsArr=Yh7(0));for(var O=0,b=0;b<T.length;b+=2){var Y=T[b],q=T[b+1],r=Pz[Y];r?E[r]===q&&delete Pz[Y]:(T[O]=
Y,T[O+1]=q,O+=2)}xG(T,O);for(var h in Pz)KhS(S,h,E[Pz[h]],vY),delete Pz[h]}else for(h=0;h<E.length;h+=2)KhS(S,E[h],E[h+1],vY);xyU(S,v,vY);xG(e,0);d&&d(Hx);J0U()};
_.xJ=function(v,e,d){d===void 0?delete v[e.name]:v[e.name]=d};
_.Bz=function(v){var e={androidIncludeFontPadding:!1},d=0,E=[],T=[],S=[];if(v.simpleText)return e.content=v.simpleText,e;if(v.runs===void 0)return e.content="",e;v=_.a(v.runs);for(var O=v.next();!O.done;O=v.next()){O=O.value;var b=O.text,Y=void 0,q=(Y=b)==null?void 0:Y.length;if(b&&q){E.push(b);if(O.bold||O.italics||O.strikethrough||O.underline||O.textColor!=null&&O.textColor!==0||O.deemphasize){b=T;Y=b.push;var r={startIndex:d,length:q};O.bold&&(r.weightLabel="FONT_WEIGHT_MEDIUM");O.italics&&(r.italic=
!0);O.strikethrough&&(r.strikethrough="LINE_STYLE_SINGLE");O.underline&&(r.underline="LINE_STYLE_SINGLE");O.textColor!=null&&O.textColor!==0?document.documentElement.hasAttribute("dark")?r.fontColor=O.darkModeTextColor||O.textColor:r.fontColor=O.textColor:O.deemphasize&&(document.documentElement.hasAttribute("dark")?r.fontColor=parseInt("ff"+kPH("#aaa").substring(1),16):r.fontColor=parseInt("ff"+kPH("#606060").substring(1),16));Y.call(b,r)}O.navigationEndpoint&&(b=S,Y=b.push,r={startIndex:d,length:q,
onTap:{innertubeCommand:O.navigationEndpoint}},O.loggingDirectives&&_.xJ(r,LaL,O.loggingDirectives),Y.call(b,r));d+=q}}e.content=E.join("");e.styleRuns=T.length?T:void 0;e.commandRuns=S.length?S:void 0;return e};
ooL=function(v){if(v==null||!v.runs)return!0;v=_.a(v.runs);for(var e=v.next();!e.done;e=v.next())if(e=e.value,e.bracket||e.errorUnderline||e.deemphasize||_.L(e,C1)||_.L(e,Vk0))return!1;return!0};
JP$=function(v,e){return function(d){var E=e.unit;if(E!==d)throw Error("fh`"+v+"`"+E+"`"+d);return e}};
X2=function(v){if(!((v==null?0:v.value)&&(v==null?0:v.unit)))return"";switch(v.unit){case "DIMENSION_UNIT_FRACTION":var e="%";break;default:e="px"}v=v.value;e==="%"&&(v*=100);return""+v+e};
GP$=function(v){try{return v()}catch(e){_.xf(e)}};
_.lk=function(v){var e=_.L(v,_.zj);if(e)return e;if((e=_.L(v,Mk$))&&e.commands)return tkt(e.commands);if((e=_.L(v,fW$))&&e.commands)return tkt(e.commands);if((v=_.L(v,R7W))&&v.identifier&&v.command&&(PfS||(PfS=[]),!PfS.includes(v.identifier)))return PfS.push(v.identifier),_.L(v.command,_.zj)};
tkt=function(v){if(v.length!==0){var e=[];v=_.a(v);for(var d=v.next();!d.done;d=v.next())(d=_.lk(d.value))&&e.push(d);return{commandExecutorCommand:{commands:e}}}};
_.Ag=function(v){var e=v.defaultTarget,d=v.elementConfig,E=v.elementsCommand,T=v.skipOnClick,S=v.forceNewState,O=v.additionalCommandArgs,b=v.innertubeCommand||_.lk(E);if(b){v={};var Y=xH$(b);E=Y.navigatingCommand;Y=Y.href;E&&Y?(v.href$=Y,BAW(v,E,Y,e),_.N("web_atagconfig_pointerdown")&&Cft(v,E),S&&(v["force-new-state$"]=!0)):(v.role$="button",v.href$="javascript:void(0);");_.L(b,XC0)&&(v["aria-haspopup$"]=!0);T||(v.onclick=function(q){var r={};if(z7W(q)){var h=(O==null?void 0:O.clickedVisualElement)||
(O==null?void 0:O.getClickedVisualElement)&&O.getClickedVisualElement();h&&(r={clickedVisualElement:h});r=Object.assign({},{form:{element:q.target,event:q,createScreenConfig:r}},O);q.preventDefault();_.Hz(b,r)}});
return Object.assign({},d,v)}};
lWt=function(v){if(v.length){if(v.length===1)return v[0];var e={};_.xJ(e,_.rV,{commands:v});return e}};
cz=function(v){return v&&v.href$!=="javascript:void(0);"};
xH$=function(v){var e,d=((e=_.L(v,_.rV))==null?void 0:e.commands)||[v];v=_.a(d);for(e=v.next();!e.done;e=v.next()){e=e.value;var E=void 0,T=void 0;d=(T=_.L((E=e)==null?void 0:E.commandMetadata,_.$B))==null?void 0:T.url;_.N("web_remove_web_navigation_endpoint_data")||(E=void 0,d=d||((E=_.L(e,HL0))==null?void 0:E.url));if(d&&d!=="/service_ajax"){if(E=_.R$(d,APS))return v=_.Mf(E),{navigatingCommand:e,href:v};_.xf(new _.kL("AttributedString URL could not be sanitized",d))}}return{}};
z7W=function(v){return v.button!==void 0?v.button===0&&!(v.shiftKey||v.altKey||v.metaKey||v.ctrlKey):!(v.shiftKey||v.altKey||v.metaKey||v.ctrlKey)};
BAW=function(v,e,d,E){d=!p4(d);var T,S,O;if((T=_.L(e,_.Lo))!=null&&T.nofollow||(S=_.L(e,_.p2))!=null&&S.nofollow||(O=_.L(e,_.wb))!=null&&O.nofollow||d)v.rel$="nofollow";var b;e=((b=_.L(e,_.wb))==null?void 0:b.target)==="TARGET_NEW_WINDOW"?"_blank":E===void 0?"":E;v.target$=e};
Cft=function(v,e){e.clickTrackingParams&&(v.params={itct:e.clickTrackingParams});v.onpointerdown=function(d){ZLH(d)};
v._data=e};
cPO=function(v){(v.loggingUrls||[]).forEach(function(e){c8(e.baseUrl,e.attributionSrcMode)})};
ZLH=function(v){var e=v.currentTarget;v=GP$(function(){return e.href});
var d=e.params;v&&_.Ez(v,d||{},8,!0)};
_.wC=function(v,e){(v=_.lk(v))&&_.Hz(v,e)};
_.Hz=function(v,e){tXW(function(d){e?d.resolveCommand(v,e):d.resolveCommand(v)})};
goM=function(v,e){var d=["yt-core-attributed-string__link"];e!=null&&e.noLinkColor||((e==null?0:e.isOverlay)?d.push("yt-core-attributed-string__link--overlay-call-to-action-color"):d.push("yt-core-attributed-string__link--call-to-action-color"),(e==null?0:e.linkInheritColor)&&d.push("yt-core-attributed-string--link-inherit-color"));d={className:d.join(" "),tabindex$:"0"};var E=v.onTap||v.onLongPress;if(!E)return d;var T=wCs(v);T&&(d["aria-label$"]=T);e=_.Ag({elementsCommand:E,elementConfig:d,skipOnClick:!(e==
null||!e.skipOnClick),forceNewState:!0});v.onLongPress&&(E=new Fa$(function(){var S=_.lk(v.onLongPress);S&&_.dk().resolve(_.EI).resolveCommand(S)}),e&&Qzt(E,e));
return e||d};
wCs=function(v){var e,d;return(e=v.onTapOptions)==null?void 0:(d=e.accessibilityInfo)==null?void 0:d.accessibilityLabel};
uij=function(v){var e=v;v<=16777215&&(e+=parseInt("ff000000",16));return _.w1(e)};
noH=function(v){var e=v.isDarkTheme;var d=v.extension;v=v.runColor;var E=void 0;if(d=d==null?void 0:d.colorMap){e=e?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";d=_.a(d);for(var T=d.next();!T.done;T=d.next())if(T=T.value,e===T.key){E=T.value;break}}E==null&&v&&(E=v);if(E)return uij(E)};
F2=function(v){var e=v.config;var d=v.image;var E=v.imageConfig;var T=v.imageWrapperConfig;var S=v.run;var O=v.tag;var b=v.textLength;var Y=v.startIndex===void 0?0:v.startIndex;v=v.length;Y===void 0&&(Y=0);S={run:S,startIndex:Y,endIndex:v!==void 0?Y+v:b,tag:O};d&&(S.image=d);E&&(S.imageConfig=E);T&&(S.imageWrapperConfig=T);e&&(S.config=e);return S};
UH$=function(v,e){var d=[];d.push("yt-core-attributed-string");(e==null?0:e.className)&&d.push(e==null?void 0:e.className);(e==null?0:e.ellipsisTruncate)?d.push("yt-core-attributed-string--ellipsis-truncate"):(e==null?0:e.noWrap)?d.push("yt-core-attributed-string--white-space-no-wrap"):(e==null?0:e.noPreWrap)||d.push("yt-core-attributed-string--white-space-pre-wrap");(e==null?0:e.linkInheritColor)&&d.push("yt-core-attributed-string--link-inherit-color");v.alignment&&d.push(DHt(v.alignment));v.lineBreakMode&&
d.push("yt-core-attributed-string--word-wrapping");return d.join(" ")};
pCO=function(v,e){if(v.weight)return v.weight;switch(v.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return e?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
v4L=function(v){switch(v){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"}};
DHt=function(v){switch(v){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"}};
uk=function(v,e,d){var E=e;v.content&&d&&(d=v.content.indexOf("\n"),d!==-1&&(E=Math.min(e,d)));if(!v.content||v.content.length<=E)e=v;else if(v.attachmentRuns||v.commandRuns||v.decorationRuns||v.styleRuns||v.paragraphStyleRuns){e=QK(v.content,E);d=E;var T=v.attachmentRuns;if(T){var S=[];T=_.a(T);for(var O=T.next();!O.done;O=T.next())O=Object.assign({},O.value),O.startIndex===void 0||O.startIndex>=d||(O.length||(O.length=0),O.length+O.startIndex>d&&(O.length=d-O.startIndex),S.push(O));d=S}else d=void 0;
S=eGL(E,v.commandRuns);T=E;var b=v.decorationRuns;if(b){O=[];b=_.a(b);for(var Y=b.next();!Y.done;Y=b.next()){Y=Y.value;var q=_.L(Y.textDecorator,gC);if(q&&q.startIndex!==void 0&&!(q.startIndex>=T)){Y=Object.assign({},Y,{textDecorator:{highlightTextDecorator:Object.assign({},q)}});q=_.L(Y.textDecorator,gC);if(!q.length||q.length+q.startIndex>T)q.length=T-q.startIndex;O.push(Y)}}T=O}else T=void 0;O=eGL(E,v.styleRuns);if(b=v.paragraphStyleRuns)for(v=[],b=_.a(b),Y=b.next();!Y.done;Y=b.next()){var r=Y.value;
Y=Object.assign({},r);if(!(Y.startIndex===void 0||Y.startIndex>=E)){if(!Y.length||Y.length+Y.startIndex>E)Y.length=E-Y.startIndex;q=[];var h=void 0,K=void 0;if((h=r)==null?0:(K=h.listGroup)==null?0:K.listItems)for(r=_.a(r.listGroup.listItems),h=r.next();!h.done;h=r.next())if(h=Object.assign({},h.value),!(h.startIndex===void 0||h.startIndex>=E)){if(!h.length||h.length+h.startIndex>E)h.length=E-h.startIndex;q.push(h)}q.length>0&&(Y.listGroup||(Y.listGroup={}),Y.listGroup=Object.assign({},Y.listGroup,
{listItems:q}));v.push(Y)}}else v=void 0;e={content:e,attachmentRuns:d,commandRuns:S,decorationRuns:T,styleRuns:O,paragraphStyleRuns:v}}else e=Object.assign({},v,{content:QK(v.content,E)});return e};
eGL=function(v,e){if(e){var d=[];e=_.a(e);for(var E=e.next();!E.done;E=e.next())if(E=Object.assign({},E.value),!(E.startIndex===void 0||E.startIndex>=v)){if(!E.length||E.length+E.startIndex>v)E.length=v-E.startIndex;d.push(E)}return d}};
QK=function(v,e){var d=e,E;if(E=d>0)E=v.charCodeAt(d-1),E=E>=55296&&E<=56319;E&&(d=v.charCodeAt(d),E=d>=56320&&d<=57343);E&&--e;return v.substring(0,e)};
SLj=function(v,e,d){d=d===void 0?dBM:d;if(v){var E=_.dk().resolve(dm);E||_.N("mweb_no_observer_killswitch")?peW(v,{data:e,observer:E,visibilityCallback:d,hideOption:E4O,showOption:TRt,layer:v.layer}):_.xf(new _.kL("Warning: monitorVisibility called with null observer",v.tagName,e==null?void 0:e.loggingDirectives,e==null?void 0:e.trackingParams))}else _.xf(new _.kL("Warning: monitorVisibility called with null element",e==null?void 0:e.loggingDirectives,e==null?void 0:e.trackingParams,e==null?void 0:
e.rendererContext))};
YLj=function(v,e){var d=[],E=v.content.length,T,S=(T=_.dk().resolve(_.eG(_.n1)))==null?void 0:T();if(v.paragraphStyleRuns){T=_.a(v.paragraphStyleRuns);for(var O=T.next();!O.done;O=T.next()){var b=d.push,Y=b.apply;var q=void 0;O=O.value;if((q=O.listGroup)!=null&&q.listItems){q=[];b:switch(O.listGroup.listType){case "LIST_TYPE_BULLET":var r="ul";break b;default:r="span"}q.push(F2({run:O,textLength:E,tag:r,config:{className:"yt-core-attributed-string__list-group"},startIndex:O.startIndex,length:O.length}));
r=_.a(O.listGroup.listItems);for(var h=r.next();!h.done;h=r.next()){h=h.value;b:switch(O.listGroup.listType){case "LIST_TYPE_BULLET":var K="li";break b;default:K="span"}q.push(F2({run:O,textLength:E,tag:K,startIndex:h.startIndex,length:h.length}))}O=q}else O=[];Y.call(b,d,_.t7(O))}}if(v.styleRuns&&(e==null||!e.noStyleRuns))for(T=_.a(v.styleRuns),b=T.next();!b.done;b=T.next()){O=b=b.value;q=S;Y=e;q=noH({extension:_.L(O.styleRunExtensions,WBj),isDarkTheme:q===void 0?!1:q,runColor:O.fontColor});h=O;
r=[];q&&r.push("yt-core-attributed-string--link-inherit-color");h.italic&&r.push("yt-core-attributed-string--italicized");h.underline&&h.strikethrough?r.push("yt-core-attributed-string--underline-strikethrough",v4L(h.underline)):h.underline?r.push("yt-core-attributed-string--underlined",v4L(h.underline)):h.strikethrough&&r.push("yt-core-attributed-string--strikethrough",v4L(h.strikethrough));if(h.baselineOffset){a:switch(h.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":h="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":h="yt-core-attributed-string--baseline-offset-superscript";break a;default:h="yt-core-attributed-string--baseline-offset-unknown"}r.push(h)}r=r.join(" ");h={};if(O.weight||O.weightLabel)h.fontWeight=pCO(O,Y==null?void 0:Y.isHeadline).toString();q&&(h.color=q);d.push(F2({run:b,textLength:E,tag:"span",config:{className:r,style:h},startIndex:b.startIndex,length:b.length}))}if(v.decorationRuns)for(T=_.a(v.decorationRuns),b=T.next();!b.done;b=T.next())b=b.value,
Y={},b.textDecorator&&(r=b.textDecorator,O=S===void 0?!1:S,h=[],q=_.L(r,gC),r=_.L(r,aMW),q?(r=h,h=r.concat,K=[],(O=noH({extension:_.L(q.highlightTextDecoratorExtensions,iTL),isDarkTheme:O,runColor:q.backgroundColor}))&&K.push("background-color: "+O+";"),q.backgroundCornerRadius!==void 0&&K.push("border-radius: "+q.backgroundCornerRadius+"px;"),q.leftPadding!==void 0&&K.push("padding-left: "+q.leftPadding+"px;"),q.rightPadding!==void 0&&K.push("padding-right: "+q.rightPadding+"px;"),q.topPadding!==
void 0&&K.push("padding-top: "+q.topPadding+"px;"),q.bottomPadding!==void 0&&K.push("padding-bottom: "+q.bottomPadding+"px;"),h=h.call(r,K)):r&&(q=h,h=q.concat,O=O?"#2ba640":"#107516",O=r.color?uij(r.color):O,O=["padding: 2px;","border-top: solid "+O+" 2px;","border-bottom: solid "+O+" 2px;","background: linear-gradient(135deg, "+O+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+O+" 3px, rgba(0, 0, 0, 0) 3px);"],h=h.call(q,O)),O=h.join(" "),Y.style$=O,O=b.textDecorator,q=[],r=_.L(O,
aMW),_.L(O,gC)?q.push("yt-core-attributed-string--highlight-text-decorator"):r&&q.push("yt-core-attributed-string--bracket-text-decorator"),O=q.join(" "),Y.className=O,Y.dir="auto"),O=_.L(b.textDecorator,gC),q=_.L(b.textDecorator,aMW),r=_.L(b.textDecorator,gC),h=_.L(b.textDecorator,aMW),d.push(F2({run:b,textLength:E,tag:"span",config:Y,startIndex:(O==null?void 0:O.startIndex)||(q==null?void 0:q.startIndex)||0,length:(r==null?void 0:r.length)||(h==null?void 0:h.length)||0}));if(v.commandRuns&&(e==
null||!e.noEndpoints))for(S=_.a(v.commandRuns),T=S.next();!T.done;T=S.next())T=T.value,b=goM(T,e),d.push(F2({run:T,textLength:E,tag:"a",config:b,startIndex:T.startIndex,length:T.length}));if(v.attachmentRuns)for(v=_.a(v.attachmentRuns),S=v.next();!S.done;S=v.next()){S=S.value;Y=b=void 0;T={className:"yt-core-attributed-string--inline-block-mod"};if((Y=S.element)==null?0:Y.properties){Y=(b=S.element)==null?void 0:b.properties;b=[];Y=_.L(Y,OTO);if(Y==null?0:Y.margin)Y=Y.margin,Y.left&&b.push("margin-left: "+
X2(Y.left)+";"),Y.right&&b.push("margin-right: "+X2(Y.right)+";"),Y.top&&b.push("margin-top: "+X2(Y.top)+";"),Y.bottom&&b.push("margin-bottom: "+X2(Y.bottom)+";");b=b.length!==0?b.join(" "):void 0;T.style$=b}O=void 0;b={alt:"",preserveHeight:!0,preserveWidth:!0};Y=["yt-core-attributed-string__image-element"];if(S.alignment){a:switch(S.alignment){case "ALIGNMENT_BASELINE":q="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":q="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:q="yt-core-attributed-string__image-element--image-alignment-bottom"}Y.push(q)}if((O=S.element)==null?0:O.properties)O=[],q=_.L(S.element.properties,OTO),(q==null?0:q.height)&&O.push("height: "+X2(q.height)+";"),(q==null?0:q.width)&&O.push("width: "+X2(q.width)+";"),O=O.length!==0?O.join(" "):void 0,b.style$=O,q=void 0,O=((q=_.L(S.element.properties,IMS))==null?void 0:q.label)||"",b.alt=O;b.className=Y.join(" ");Y=void 0;r=q=void 0;O=((r=S.element)==null?0:r.type)?(q=_.L(S.element.type,
bT0))==null?void 0:q.image:void 0;d.push(F2({run:S,textLength:E,tag:"img",image:O,imageConfig:b,imageWrapperConfig:T,startIndex:S.startIndex,length:(Y=S.length)!=null?Y:0}))}if(e==null?0:e.headerRuns)for(e=_.a(e.headerRuns),v=e.next();!v.done;v=e.next())if(v=v.value,v.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(v.headerMapping)){a:{switch(v.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":S=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":S="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":S="yt-core-attributed-string--heading-3";break a}S=void 0}d.push(F2({run:v,textLength:E,tag:"span",config:S?{className:S}:void 0,startIndex:v.startIndex,length:v.length}))}return d};
_.DI=function(v){return(v==null?void 0:v.content)!==void 0};
mBO=function(v){return _.DI(v)?v:_.Bz(v)};
ypO=function(v){return v.image!==void 0&&v.imageConfig!==void 0};
qL0=function(v,e){if(e==null?0:e.userInput)for(v=_.a(v),e=v.next();!e.done;e=v.next())if(e=e.value,e.tag!=="a"&&e.tag!=="li"){var d=void 0;(d=e).config||(d.config={});e.config.dir=e.tag==="ul"?_.dk().resolve(_.U_):"auto"}};
rpt=function(v){return function(e){var d=v.run;(d.onTap!==void 0||d.onLongPress!==void 0)&&_.L(d,LaL)&&SLj(e,{loggingDirectives:_.L(d,LaL)})}};
hG0=function(v){return function(e){for(var d in v)(vY[d]||vY[zq["default"]])(e,d,v[d])}};
sV3=function(v,e){KB$(e);var d={data:null,start:0,end:v.length,parts:[]};e=_.a(e);for(var E=e.next();!E.done;E=e.next())E=E.value,$Bs(d,E.startIndex,E.endIndex,E);jVt(v,d);return d};
$Bs=function(v,e,d,E){for(var T=_.a(v.parts),S=T.next();!S.done;S=T.next()){S=S.value;if(typeof S==="string")throw Error("hh");if(S.start<=e&&d<=S.end){$Bs(S,e,d,E);return}}v.parts.push({data:E,parts:[],start:e,end:d})};
jVt=function(v,e){for(var d=e.parts.length;d>=0;d--){var E=e.parts[d],T=e.parts[d-1],S=d===e.parts.length?e.end:E.start;T=d===0?e.start:T.end;S!==T&&e.parts.splice(d,0,v.slice(T,S));E&&jVt(v,E)}};
KB$=function(v){v.sort(function(e,d){if(e.startIndex<d.startIndex)return-1;if(d.startIndex<e.startIndex)return 1;e=e.endIndex-e.startIndex;d=d.endIndex-d.startIndex;return e>d?-1:d>e?1:0})};
_.NRt=function(v){var e=v.thumbnails;if(e){v={sources:[]};e=_.a(e);for(var d=e.next();!d.done;d=e.next()){d=d.value;var E={};E.url=d.url;E.width=d.width;E.height=d.height;v.sources.push(E)}return v}};
kgO=function(v,e,d,E){if(!e)return v.length>=1?v[v.length-1]:null;if(E)for(var T=_.a(v),S=T.next();!S.done;S=T.next()){S=S.value;var O=void 0,b=(O=S.url)==null?void 0:O.indexOf(E);if(b!==void 0&&b>=0)return S}E=_.a(v);for(T=E.next();!T.done;T=E.next())if(T=T.value,T.width&&T.height&&(d&&T.width>=e||!d&&T.height>=e))return T;for(e=v.length-1;e>=0;e--)if(d&&v[e].width||!d&&v[e].height)return v[e];return v[0]};
_.LBW=function(v){var e;return(v=(e=v.sources)==null?void 0:e[0])?v.width/v.height:0};
_.Vn7=function(v){if(v.sources){v=_.a(v.sources);for(var e=v.next();!e.done;e=v.next()){e=e.value;var d=void 0;if((d=e.clientResource)==null?0:d.imageName)return e}}};
o40=function(v){var e;if((e=v.clientResource)!=null&&e.imageColor)return _.w1(v.clientResource.imageColor)};
_.Gg$=function(v,e,d,E,T,S,O){if(!e||e.length===0||e[0].clientResource)return null;if(d&&e[0].url)return e[0].url;E===void 0&&(E=!0);if(E){var b;v=JpW*(T||(v==null?void 0:(b=v.getBoundingClientRect())==null?void 0:b.width)||0)}else{var Y;v=JpW*(S||(v==null?void 0:(Y=v.getBoundingClientRect())==null?void 0:Y.height)||0)}e=kgO(e,v,E,O);return(e==null?0:e.url)?e.url:(e==null?0:e.imageData)?e.imageData:null};
MnM=function(v,e,d){d=d?[d]:[];v.opacity&&d.push("opacity: "+v.opacity+";");e&&v.placeholderColor?(v=_.w1(v.placeholderColor),d.push("background-color: "+v+";")):d.push("background-color: transparent;");return d.join(" ")};
tnH=function(v,e,d,E,T){var S=["ytCoreImageHost"];e&&S.push(e);d||S.push("ytCoreImageFillParentHeight");E||S.push("ytCoreImageFillParentWidth");switch(v.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":S.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":S.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":S.push("ytCoreImageContentModeCenter");break;default:S.push("ytCoreImageContentModeScaleToFill")}v.flipForRtlLayout&&S.push("ytCoreImageFlipRtl");
switch(T){case "TOP_START":var O;S.push(((O=document.body)==null?void 0:O.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return S.join(" ")};
RGW=function(v){var e;if(v==null?0:(e=v.clientResource)==null?0:e.imageName){var d;v=(d=v.clientResource)==null?void 0:d.imageName;a:{switch(v){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":d="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":d="yt-logos-ext:yt-logo-updated";break a}d=void 0}return d||fMt.get(v)||v}};
BR7=function(v){return _.N("mweb_wiz_skip_render")?PoM(v):xBM(v)};
PoM=function(v){return function(e){var d=okS("wink-root");GvW();J0U();_.UP3(d,_.m(v,e))}};
xBM=function(v){var e=e===void 0?!1:e;return function(d){if(!e||!_.N("mweb_skip_keto_to_c3_if_no_data")||d.data!==void 0){var E=dZ(!1);try{var T=d.children;_.N("mweb_render_outside_patch_killswitch")||Hx?T?pI(_.m(v,d,T)):pI(_.m(v,d)):_.xf(new _.kL("ketoToC3 called outside of a patch",{tagName:v.TAG_NAME}))}finally{dZ(E)}}}};
Cos=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
zG3=function(v,e){v.onViewportEntered=e;XQL.observe(v)};
lMW=function(){var v={rootMargin:"10%",threshold:.01};_.N("mweb_enable_set_io_root_to_null_safari")?v.root=null:_.N("mweb_enable_set_io_root_to_body_safari")&&(v.root=document.body);return new IntersectionObserver(function(e,d){e.filter(function(E){return E.intersectionRect.height>0}).forEach(function(E){E=E.target;
if(!_.N("mweb_enable_only_update_image_when_connected")||E.isConnected!==!1){var T;(T=E.onViewportEntered)==null||T.call(E);d.unobserve(E)}})},v)};
HT3=function(v,e,d,E,T){function S(){if(E){var b=E.loadedClass,Y=E.notifyOnUnloaded;b&&_.p1(v,b);Y&&v.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function O(){var b=d(e,v);b&&v.getAttribute("src")!==b&&(_.N("mweb_enable_only_update_image_when_connected")&&v.isConnected===!1||b===v.src||(v.src=b),S())}
T=T===void 0?!0:T;v.removeAttribute("src");S();e&&(T?zG3(v,O):O())};
Apj=function(v,e,d){if(!e)return!1;e=d(e,v);d=v.getAttribute("src");return e&&e===d&&v.complete};
ZTW=function(v,e){for(var d in e)d==="className"?v.className=e[d]:(vY[d]||vY[zq.default])(v,d,e[d])};
cpt=function(v,e,d,E){BR7(_.va)({contentMode:e.contentMode,loadedClass:e.loadedClass,isPreloaded:e.isPreloaded,notifyOnLoaded:e.notifyOnLoaded,notifyOnUnloaded:e.notifyOnUnloaded,preferredThumbnail:e.preferredThumbnail,preserveHeight:e.preserveHeight,preserveWidth:e.preserveWidth,objectPosition:e.objectPosition,targetWidth:e.targetWidth,targetHeight:e.targetHeight,shouldShowPlaceholder:e.shouldShowPlaceholder,useWidth:e.useWidth,isToggled:e.isToggled,alt:e.alt,className:e.className,onerror:e.onerror,
onload:e.onload,style$:e.style$,color:e.color,width:e.width,height:e.height,"aria-hidden$":e["aria-hidden$"],draggable:e.draggable,"data-disabled$":e["data-disabled$"],data:v,callback:d,renderLazy:E===void 0?!0:E,hideOn404:!1})};
FBW=function(v,e,d){d=d===void 0?!1:d;var E=v.sources!==void 0?v:_.NRt(v);if(E){var T=e.onload;e.onload=function(Y){var q=Y.target;d&&q.naturalWidth===120||_.eM(q,"ytCoreImageLoaded");e.notifyOnLoaded&&q.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));T==null||T(Y)};
e.targetWidth&&e.preserveWidth&&(e.width=e.targetWidth);e.targetHeight&&e.preserveHeight&&(e.height=e.targetHeight);var S=_.Vn7(E),O=S&&RGW(S);if(O)return(v=o40(S))&&(e.color=v),{type:"icon",iconName:O,config:Object.assign({},e,e.alt?{}:{"aria-hidden$":"true"},{"aria-label$":e.alt,role:"img"})};if(v.sources===void 0){e.alt=v.accessibility&&v.accessibility.accessibilityData&&v.accessibility.accessibilityData.label||e.alt;e.style$=MnM(v,e.shouldShowPlaceholder,e.style$);var b;e.isPreloaded=!((b=_.L(v,
wQH))==null||!b.isPreloaded)}e.contentMode&&!E.contentMode&&(E.contentMode=e.contentMode);e.className=tnH(E,e.className,e.preserveHeight,e.preserveWidth,e.objectPosition);e.loadedClass="ytCoreImageLoaded";return{type:"image",image:E,config:e}}};
_.dq=function(){var v=_.Xa.apply(0,arguments);return _.Dq(QVM,function(e){var d=v.map(function(E){return E==null?void 0:E(e)});
return function(){return void d.forEach(function(E){return void(E==null?void 0:E())})}})};
EG=function(v,e){var d=e==null?void 0:e.initial;return _.yl(function(){_.M4(!0);return d=v(d)},{equals:e==null?void 0:e.isEqual},"rSlKsc")};
g4j=function(v,e){if(v===e)return!0;if(v===void 0||e===void 0)return!1;var d,E,T,S,O,b,Y,q;return v.content===e.content&&((d=v.styleRuns)==null?void 0:d.length)===((E=e.styleRuns)==null?void 0:E.length)&&((T=v.commandRuns)==null?void 0:T.length)===((S=e.commandRuns)==null?void 0:S.length)&&((O=v.attachmentRuns)==null?void 0:O.length)===((b=e.attachmentRuns)==null?void 0:b.length)&&((Y=v.decorationRuns)==null?void 0:Y.length)===((q=e.decorationRuns)==null?void 0:q.length)};
DB7=function(v,e){if(v){var d=mBO(v);if(d!=null&&d.content)if(_.N("attr_string_reactive"))BR7(u3L)({text:v,config:e});else{var E=!(e==null||!e.ariaLabel)||!(d.commandRuns&&d.commandRuns.length!==0||d.paragraphStyleRuns&&d.paragraphStyleRuns.length!==0);v=E?e==null?void 0:e.ariaLabel:null;E=E?"text":null;NAS("span",{className:UH$(d,e),dir$:(e==null?0:e.userInput)?"auto":void 0,"aria-label$":v,role$:E},function(){if(d.styleRuns||d.commandRuns||d.attachmentRuns||d.decorationRuns||d.paragraphStyleRuns){var T=
YLj(d,e);qL0(T,e);T=sV3(d.content,T);T=_.a(T.parts);for(var S=T.next();!S.done;S=T.next())n4t(S.value)}else Bmj(d.content)})}}};
n4t=function(v){typeof v==="string"?Bmj(v):ypO(v.data)?NAS("span",v.data.imageWrapperConfig,function(){cpt(v.data.image,v.data.imageConfig)}):NAS(v.data.tag,v.data.config,function(e){rpt(v.data)(e);
e=_.a(v.parts);for(var d=e.next();!d.done;d=e.next())n4t(d.value)})};
pQj=function(v){return v.parts.map(UBO)};
UBO=function(v){if(typeof v==="string")return v;v=ypO(v.data)?_.m("span",{el:_.dq(hG0(v.data.imageWrapperConfig))},_.m(_.va,Object.assign({},{data:v.data.image},v.data.imageConfig))):_.m(v.data.tag,{el:_.dq(rpt(v.data),hG0(v.data.config))},v.parts.map(UBO));return yU(v)};
v$M=function(v,e){return v===e?!0:v===void 0||e===void 0?!1:v.noStyleRuns===e.noStyleRuns&&v.noLinkColor===e.noLinkColor&&v.noEndpoints===e.noEndpoints&&v.headerRuns===e.headerRuns&&v.isOverlay===e.isOverlay&&v.linkInheritColor===e.linkInheritColor&&v.userInput===e.userInput&&v.isHeadline===e.isHeadline};
eyj=function(v){return function(){var e,d,E,T,S,O,b,Y,q,r,h,K,k,J,R;return{ariaLabel:(e=v.ariaLabel)==null?void 0:e.call(v),className:(d=v.className)==null?void 0:d.call(v),ellipsisTruncate:(E=v.ellipsisTruncate)==null?void 0:E.call(v),isOverlay:(T=v.isOverlay)==null?void 0:T.call(v),linkInheritColor:(S=v.linkInheritColor)==null?void 0:S.call(v),noEndpoints:(O=v.noEndpoints)==null?void 0:O.call(v),noStyleRuns:(b=v.noStyleRuns)==null?void 0:b.call(v),noLinkColor:(Y=v.noLinkColor)==null?void 0:Y.call(v),
noPreWrap:(q=v.noPreWrap)==null?void 0:q.call(v),noWrap:(r=v.noWrap)==null?void 0:r.call(v),skipOnClick:(h=v.skipOnClick)==null?void 0:h.call(v),stopPropagation:(K=v.stopPropagation)==null?void 0:K.call(v),userInput:(k=v.userInput)==null?void 0:k.call(v),headerRuns:(J=v.headerRuns)==null?void 0:J.call(v),isHeadline:(R=v.isHeadline)==null?void 0:R.call(v)}}};
_.dv7=function(v){return v.value===""||v.value==="true"?!0:v.value==="false"?!1:isNaN(Number(v.value))?v.value:Number(v.value)};
TI=function(v,e){v=new E$$(v,e);_.RI(v);throw v;};
Tw7=function(v,e,d){var E=yHH(v);v._numRenders=0;try{var T=_.KCt(function(){return _.m(e,Object.assign({},d))})}catch(O){var S=function(b){b.args||(b.args=[]);
b.args.push("Error in web component wrapper");b.args.push(v.tagName.toLowerCase());return b};
_.PV(O instanceof Error?S(O):new E$$("Wiz rendering error",v.tagName.toLowerCase()));throw O;}finally{yHH(E)}return T};
_.aZ=function(v,e,d){function E(r){var h={};r=_.a(r);for(var K=r.next();!K.done;K=r.next()){K=K.value;var k=void 0,J=void 0,R=void 0,B=_.kq((R=(J=(k=K).getAttribute)==null?void 0:J.call(k,"slot"))!=null?R:"children");if(k=h[B])k.push(K);else if(B in S||B==="children")h[B]=[K]}r=_.a(Object.keys(h));B=r.next();for(K={};!B.done;K={content$jscomp$57:void 0},B=r.next())B=B.value,B!=="children"&&(K.content$jscomp$57=h[B],h[B]=function(X){return function(){return X.content$jscomp$57}}(K));
return h}
d=d===void 0?{}:d;v.componentType!==_.N4||TI("Components must be marked reactive to be used from web component wrapper.",e);_.ik.has(e)&&TI("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",e);var T,S=(T=d.props)!=null?T:{};O_.add(e);var O=_.Spj();T=function(){var r=O.apply(this,arguments)||this;r.rawProps={};r.queuingRender=!1;r.dispose=function(){};
r.isWebComponentWrapper=!0;r.isReparenting=!1;r.hasRendered=!1;return r};
_.V(T,O);T.prototype.render=function(){this.hasRendered=!0;for(var r=_.a([].concat(_.t7(this.attributes))),h=r.next();!h.done;h=r.next())h=h.value,h.name!=="slot"&&h.name!=="hidden"&&this.removeAttribute(h.name);r=Object.assign({},this.componentProps,this.slotProps);h=_.a(Tw7(this,v,r));r=h.next().value;h=h.next().value;!(r[0]instanceof Element)||r.length>1?TI("Wrapped Wiz components must return a single root element.",e):(r=r[0].tagName.toLowerCase(),r!==e&&TI("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(r+" !== '"+e),e),this.dispose=h)};
T.prototype.setUpProps=function(){for(var r=this.rawProps,h=this.attributes,K=_.a(Object.keys(S)),k=K.next();!k.done;k=K.next()){k=k.value;var J=void 0;((J=this)==null?0:J[k])&&this[k]!==Wn0&&r[k]===void 0&&(r[k]=this[k],(J=Object.getOwnPropertyDescriptor(this.constructor.prototype,k))&&Object.defineProperty(this,k,J))}K=_.a(h);for(k=K.next();!k.done;k=K.next()){J=k.value;k=_.kq(J.name);var R=k==="class"&&!h.getNamedItem("class-name");if(k in S||R)J=_.dv7(J),k!=="class"||r.className?r[k]=J:r.className=
J}h={};for(var B in S)S[B]!==_.SM&&S[B]!==as3&&(r[B]instanceof Function&&TI("Function props must be configured as STATIC, not SIGNAL.",e),k=_.a(_.OE(r[B],void 0,"Ri8MSe")),K=k.next().value,k=k.next().value,h[B]=k,r[B]=K);r=_.a([r,h]);this.componentProps=r.next().value;this.setters=r.next().value;this.slotProps=E(this.childNodes)};
T.prototype.connectedCallback=function(){_.Wa===e&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in S&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
T.prototype.disconnectedCallback=function(){if(!this._isInert){var r;a:{if(_.icH)for(r=this;r;){if(_.OcO.has(r)){r=!0;break a}r=r.parentElement}r=!1}if(r)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){r=_.a([].concat(_.t7(this.attributes)));for(var h=r.next();!h.done;h=r.next()){h=h.value;var K=void 0;h.name==="slot"||h.name==="hidden"&&((K=d.unsafeExternallySettableAttributes)==null?0:K.has("hidden"))||this.removeAttribute(h.name)}}this.innerText="";a60(this)}}};
T.prototype._setPendingPropertyOrPath=function(){};
T.prototype.notifyPath=function(){};
_.vP.Object.defineProperties(T.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var b=_.a(Object.keys(S)),Y=b.next(),q={};!Y.done;q={prop$jscomp$105:void 0},Y=b.next())q.prop$jscomp$105=Y.value,Y=void 0,((Y=d.legacyPolymer)==null?0:Y.forwardHostProps)&&SZ0.has(q.prop$jscomp$105)||Object.defineProperty(T.prototype,q.prop$jscomp$105,{set:function(r){return function(h){var K=this;this._isInert||(this.setters?q4(function(){var k,J;return void((J=(k=K.setters)[r.prop$jscomp$105])==null?void 0:J.call(k,h))}):(this.rawProps[r.prop$jscomp$105]=h,this.queuingRender&&r.prop$jscomp$105===
"data"&&h!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(q),
get:IsH.has(q.prop$jscomp$105)?void 0:function(){return Wn0}});
customElements.define(e,T)};
_.bc0=function(v,e){return(v=_.i2(v,e))?_.Mf(_.xm(v)):null};
_.OG=function(v){if(v=_.i2(v,Number.MAX_VALUE,void 0,"width"))return _.xm(v)};
_.i2=function(v,e,d,E){E=E===void 0?"width":E;if(!v||!v.length)return null;if(_.N("kevlar_tuner_should_always_use_device_pixel_ratio")){var T=window.devicePixelRatio;_.N("kevlar_tuner_should_clamp_device_pixel_ratio")?T=Math.min(T,_.Wi("kevlar_tuner_clamp_device_pixel_ratio")):_.N("kevlar_tuner_should_use_thumbnail_factor")&&(T=_.Wi("kevlar_tuner_thumbnail_factor"));Yp0=T}else Yp0||(Yp0=window.devicePixelRatio);T=Yp0;_.N("kevlar_tuner_should_always_use_device_pixel_ratio")?e*=T:T>1&&(e*=T);if(_.N("kevlar_tuner_min_thumbnail_quality"))return v[0].url||
null;T=v.length;if(_.N("kevlar_tuner_max_thumbnail_quality"))return v[T-1].url||null;if(d)for(var S=0;S<T;S++)if(v[S].url.indexOf(d)>=0)return v[S].url||null;for(d=0;d<T;d++)if(v[d][E]>=e)return v[d].url||null;for(e=T-1;e>0;e--)if(v[e][E])return v[e].url||null;return v[0].url||null};
qpU=function(){IZ.size?setTimeout(function(){b2(mvj)},0):yjj=0};
mvj=function(){var v=(0,_.E$)(),e=null,d=!1;IZ.forEach(function(T){T.loaded=!0;T.loadTime=v;T.pendingPaint=!1;var S=rjj.get(T);S&&S.resolve(v);e=T;d||!T.ftlEligible&&T.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(d=!0)});
var E;((E=e)==null?0:E.markDirty)&&e.markDirty();IZ.clear();yjj=0;d&&hys(v)};
Knt=function(v){IZ.add(v);v.pendingPaint=!0;yjj||(yjj=_.Yj(_.RM,qpU))};
$vt=function(v){v.loaded=!1;v.loadTime=Infinity;var e=rjj.get(v);e&&(e.reject(Error("nh")),rjj.delete(v));v.pendingPaint&&(IZ.delete(v),v.pendingPaint=!1)};
_.jR3=function(v){var e=v.indexOf(":");return e===-1?{originalName:v}:{originalName:v.substring(0,e),datasyncId:v.substring(e+1)}};
_.Nwj=function(){return _.I(function(v){if(sRW!==void 0)return v.return(sRW);sRW=new Promise(function(e){var d;return _.I(function(E){switch(E.nextAddress){case 1:return _.qq(E,2),E.yield(_.m8.open("test-only"),4);case 4:return E.yield(_.m8.delete("test-only"),5);case 5:_.wk(E,3);break;case 2:if(d=_.jl(E),d instanceof Error&&d.name==="SecurityError")return e(!1),E.return();case 3:e("caches"in window),_.s9(E)}})});
return v.return(sRW)})};
V3j=function(){return _.I(function(v){if(v.nextAddress==1)return v.yield(_.Nwj(),2);if(!v.yieldResult)return v.return(void 0);kmj||(kmj=new Ln7);return v.return(kmj)})};
o$W=function(v){var e,d,E,T;return _.I(function(S){switch(S.nextAddress){case 1:return S.yield(V3j(),2);case 2:e=S.yieldResult;if(!e)throw Error("ph");return S.yield(e.open("yt-player-local-img"),3);case 3:return d=S.yieldResult,S.yield(d.match(v),4);case 4:E=S.yieldResult;if(!E)throw Error("qh");return S.yield(E.blob(),5);case 5:return T=S.yieldResult,S.return(T)}})};
JjS=function(v,e){for(var d in v)if(v.hasOwnProperty(d)&&e[d])return d;return null};
Gmj=function(v){return"stamp"+v.replace("-","_")+"_"};
M3L=function(v){var e=v.match(/\[\[([\w\.]+)\]\]/);if(e&&e.length>1)return e[1];_.RI(Error("sh`"+v));return null};
t3U=function(v){return v===void 0?_.zr("REUSE_COMPONENTS",!1):v||!1};
PNW=function(v,e,d){d&&(e.is?(fs0.has(e)&&(v=fs0.get(e),d=v.listener,delete e[v.property],d.type==="element"&&e.removeEventListener(d.eventName,d.handler),fs0.delete(e)),Rys(e)):e.__proto__==HTMLElement.prototype&&(e=new _.kL("Rendererstamper removed a non custom element","Stamper: "+v+" element: "+(e&&e.nodeName)),_.xf(e)))};
xvW=function(v,e,d,E){var T=e.node?e.node:e;_.IB(d).parentNode===T&&(e.removeChild(d),PNW(v,d,E));if(v=yw.get(d))yw.delete(d),_.RM.cancelJob(v);d.hidden=!1};
BwU=function(v,e,d,E){if(e&&e.children&&(d=e.children[d]))if(_.zr("DEFERRED_DETACH"))for(;d&&!yw.has(d);){var T=v,S=e,O=d,b=E;O.hidden=!0;T=_.LI(_.RM,xvW.bind(null,T,S,O,b),0);yw.set(O,T);d=d.nextElementSibling}else for(;(O=e.lastElementChild)&&(e.removeChild(O),PNW(v,O,E),O!=d););};
_.qe=function(){for(var v=_.Xa.apply(0,arguments),e=!0,d=_.a(v),E=d.next();!E.done;E=d.next())if(typeof E.value!=="string"){e=!1;break}return e?v.join(" ").trim()||void 0:function(){for(var T="",S=_.a(v),O=S.next();!O.done;O=S.next())if(O=O.value,typeof O==="function"&&(O=O()),O)if(typeof O==="string")T+=" "+O;else for(var b in O)if(O.hasOwnProperty(b)){var Y=O[b];typeof Y==="function"&&(Y=Y());Y&&(T+=" "+b)}T=T.trim()||void 0;return _.M4(T)}};
XtW=function(v){var e;return(e=CNL[v])!=null?e:"EVENT_SPAN_TYPE_UNKNOWN"};
zyt=function(v){var e=v.nodeName;if(v.id)return e+="#"+v.id;if(v.classList)for(var d=_.a(v.classList),E=d.next();!E.done;E=d.next())e+="."+E.value;v.parentElement&&(e=zyt(v.parentElement)+" > "+e);return e};
lst=function(v){return function(e){var d=XtW(e.type);return d==="EVENT_SPAN_TYPE_UNKNOWN"?v(e):Fkj("event",{type:d,nodepath:e.target instanceof Element?zyt(e.target):void 0},function(){return v(e)})}};
_.rq=function(v){v&&c9$("event")&&(v=lst(v));return gz$(function(e){var d,E=(d=v)==null?void 0:d(e);return typeof E==="boolean"?E:!0})};
h8=function(v){return function(){return v()?v():void 0}};
cjL=function(v){var e=_.nI("animated-rolling-character"),d=f4(),E=eX(v.character)||eX(v.previousCharacter);vBS(function(){if(v.marginMultiplier){var T;(T=d.value)==null||T.cancel();E?(T=v.previousCharacter?Number(v.previousCharacter)+10:v.rollUp?0:30,v.shouldAnimate||(T-=Hct(v,T))):(T=v.rollUp?0:2,v.shouldAnimate||(T-=v.rollUp?-1:1));e.value.style.marginTop="-"+T*v.marginMultiplier+"px";v.shouldAnimate?d.value=Aj$(e.value,v,T,E):e.value.style.display=v.character?"":"none"}});
return _.m("animated-rolling-character",{el:e,class:"animatedRollingCharacterHost"},KYL(E,function(){for(var T=[],S=1;S<30;S++)T.push(_.m("div",null,S%10));return _.m(_.eI,null,_.m("div",null,"\u00a0"),T,_.m("div",null,"\u00a0"))},function(){return ZcH(v.character)}))};
ZcH=function(v){return _.m(_.eI,null,_.m("div",null,"\u00a0"),_.m(_.eI,null,KYL(!v||_.IU(v),function(){return _.m("div",null,"\u00a0")},function(){return _.m("div",null,v)})),_.m("div",null,"\u00a0"))};
Aj$=function(v,e,d,E){d=new Animation(new KeyframeEffect(v,[{transform:"translateY(0px)"},{transform:"translateY("+(E?Hct(e,d):e.rollUp?-1:1)*e.marginMultiplier+"px)"}],wtO),document.timeline);e.character?(v.style.display="",d.onfinish=null):d.onfinish=function(){v.style.display="none"};
d.play();return d};
Hct=function(v,e){var d=Number(v.character)+10;if(v.previousCharacter)if(v.character){var E=Number(v.character),T=Number(v.previousCharacter);v=v.rollUp?T<E?d:d+10:T<E?d-10:d}else v=v.rollUp?30:0;else v=v.character==="0"?d:v.rollUp?d-10:d+10;return e-v};
Fn3=function(v){return function(e){var d={},E;for(E in e){var T=void 0,S=void 0;((T=void 0)==null?0:(S=T.callbacks)==null?0:S[E])||(d[E]=e[E])}return _.m(hJt,null,function(){for(var O in d)e[O]=_.M4(d[O]);e.disableReactiveLogging=!0;return _.m(v,Object.assign({},e))})}};
u0t=function(v,e,d,E,T,S,O){d=new Animation(new KeyframeEffect(v,[{transform:"translateY(0px)"},{transform:"translateY("+(S?QR$(e,d,E,T):E?-1:1)*O+"px)"}],g$0),document.timeline);e?(v.style.display="",d.onfinish=null):d.onfinish=function(){v.style.display="none"};
d.play();return d};
QR$=function(v,e,d,E){var T=Number(v)+10;e?v?(v=Number(v),e=Number(e),d=d?e<v?T:T+10:e<v?T-10:T):d=d?30:0:d=v==="0"?T:d?T-10:T+10;return E-d};
Dvs=function(v){var e=f4(),d=f4();WNW(function(){e.value=v.numberText;d.value=v.numberValue},[v.numberText]);
var E=v.fontSizeMultiplier?v.heightPx*v.fontSizeMultiplier:v.heightPx,T=Im7(function(){if(v.numberText){var O=v.numberText;var b=v.forceRollUp||!d.value||!v.numberValue||d.value<v.numberValue;var Y=!!v.shouldAnimate,q=e.value,r=[],h=0,K=0,k=(q?q.replace(/\D/g,"").length:0)-(O?O.replace(/\D/g,"").length:0);q=q?q.split(/(\d)/).filter(Boolean):[];for(O=O.split(/(\d)/).filter(Boolean);k<0;){var J=O[K];r.push({character:J,rollUp:b,marginMultiplier:E,shouldAnimate:Y});K++;eX(J)&&k++}for(;h<k;)J=q[h],r.push({previousCharacter:J,
rollUp:b,marginMultiplier:E,shouldAnimate:Y}),h++,eX(J)||k++;for(;K<O.length;)k=O[K],J=q[h],eX(k)===eX(J)?(K++,h++):eX(k)?(h++,k=void 0):eX(J)&&(K++,J=void 0),r.push({character:k,previousCharacter:J,rollUp:b,marginMultiplier:E,shouldAnimate:Y});b=r}else b=[];return b},[v.numberText]),S=v.numberText?["height: "+E+"px;",
"line-height: "+v.heightPx+"px;"].join(" "):"";return _.m("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:S,dir:"ltr","aria-hidden":"true"},T.map(function(O){return _.m(n$$,Object.assign({},O))}))};
UvS=function(v){return new KeyframeEffect(v,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
ptS=function(v){return new KeyframeEffect(v,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.KM=function(v){var e=EG(function(d){d=d?i3(d[0]):void 0;return _.OE(v(d),void 0,"AwTxXe")},{isEqual:function(d,E){return i3(d[0])===i3(E[0])}});
return[function(){return e()[0]()},
function(d){return void e()[1](d)}]};
_.jM=function(v){return function(){var e="",d;for(d in v){for(var E=v[d];typeof E==="function";)E=E();E!==void 0&&E!==null&&(e+="; "+d+": "+E)}return e.length>0?_.M4(e.slice(2)):_.M4()}};
vR0=function(v){switch(v){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"}};
St$=function(v,e,d,E,T,S,O){var b=eOH(v),Y=b.disabled,q=b.iconPosition,r=b.style,h=b.focused,K=function(){return!!R()&&q()==="icon-only"},k=function(){return!!R()&&q()==="icon-only-40"},J=function(){return!!R()&&q()==="icon-with-label"},R=function(){return!!e||!(E==null||!E())};
return{type:function(){return r()==="call-to-action-inverse"?"text":r()==="overlay-dark"&&v().type!=="filled"&&v().type!=="tonal"?"tonal":v().type},
shouldFocus:function(){return(h()||(S==null?void 0:S()))&&!Y()},
hasIconLeading:function(){return!!R()&&q()==="leading"},
hasIconTrailing:function(){return!!R()&&q()==="trailing"},
hasIconLeadingTrailing:function(){return!!R()&&!!(d||T!=null&&T())&&q()==="leading-trailing"},
hasIconOnly:K,hasIconOnly40:k,hasIconWithLabel:J,iconButton:function(){return K()||k()||J()},
visiblyDisabled:function(){return(Y()?"disabled":v().state)==="disabled"||Y()},
overrideSmallSizeIcon:function(){return!v().ignoreIconSizeOverride&&dIL(v(),R())},
iconToRender:e?e:function(){return _.m(_.sG,{icon:E,size:function(){return ER0(v(),!0,v().ignoreIconSizeOverride)},
active:function(){return v().toggled},
iconFilter:function(){return T7O(v())},
animateIcon:O})},
secondaryIconToRender:d?d:function(){return _.m(_.sG,{icon:T,size:function(){return ER0(v(),!0,v().ignoreIconSizeOverride)},
active:function(){return v().toggled},
iconFilter:function(){return T7O(v())}})}}};
eOH=function(v){return{size:function(){return v().size},
style:function(){return v().style},
focused:function(){return v().focused},
disabled:function(){return v().disabled},
onTap:function(e){var d,E;return(E=(d=v()).onTap)==null?void 0:E.call(d,e)},
alignByText:function(){return v().alignByText},
aTagConfig:function(){return v().aTagConfig},
customColors:function(){return v().customColors},
segmentedPosition:function(){return v().segmentedPosition},
toggled:function(){return v().toggled},
toggleable:function(){return v().toggleable},
accessibilityLabel:function(){return v().accessibilityLabel},
onToggle:function(e){var d,E;return(E=(d=v()).onToggle)==null?void 0:E.call(d,e)},
iconPosition:function(){return v().iconPosition},
oneOffCustomTextWrap:function(){return v().oneOffCustomTextWrap},
disableTextEllipsis:function(){return v().disableTextEllipsis},
disableBackdropFilter:function(){return v().disableBackdropFilter},
tooltipText:function(){return v().tooltipText},
ariaHidden:function(){return v().ariaHidden},
tabIndex:function(){return v().tabIndex},
buttonText:function(){return v().buttonText},
formattedButtonText:function(){return v().formattedButtonText},
animatedTextProps:function(){return v().animatedTextProps}}};
dIL=function(v,e){e=(v.iconPosition==="icon-only"||v.iconPosition==="icon-only-40"||v.iconPosition==="icon-with-label")&&e;return!v.segmentedPosition&&e&&v.size==="S"};
ER0=function(v,e,d){switch(v.size){case "XS":return 16;case "S":return!d&&dIL(v,e)?24:16;default:return 24}};
Wet=function(v){switch(v){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"}};
aOt=function(v){switch(v){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"}};
iZL=function(v){switch(v){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"}};
T7O=function(v){if(v.style==="overlay-dark"&&v.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Ne=function(v){return v&&v.endsWith("px")?Number(v.slice(0,-2)):0};
bZ0=function(v){var e=e===void 0?{}:e;v=_.a(_.KM(v));var d=v.next().value;return[function(E){var T=_.yl(function(){var b,Y,q,r;return{text:(b=d())!=null?b:"",location:(Y=e.location)!=null?Y:"bottom",offset:(q=e.offset)!=null?q:16,delay:(r=e.delay)!=null?r:1}},void 0,"MgTrkc");
_.o_(function(){var b=T();i3(function(){_.RM.addJob(function(){kj.notify(E,b)},4)})},"WlsgZc");
var S=function(){OZj(E,T())},O=function(){IO0()};
E.addEventListener("mouseenter",S);E.addEventListener("focus",S);E.addEventListener("mouseleave",O);E.addEventListener("blur",O);E.addEventListener("tap",O);_.Jf(function(){E.removeEventListener("mouseenter",S);E.removeEventListener("mouseleave",O);E.removeEventListener("focus",S);E.removeEventListener("blur",O);E.removeEventListener("tap",O);IO0()})},
v.next().value]};
mIO=function(v,e){if(!uZ){var d;eIt(function(){return d=qRH(v,e)});
return d}v.parent=YtH();return qRH(v,e)};
YtH=function(){var v=_.D4(uZ||void 0,YR0);return _.Nt$(v)?void 0:v};
LM=function(v,e){_.Hz(v,Object.assign({},e,{forceClickLogging:!0}))};
qtO=function(v,e){var d=_.lk(v==null?void 0:v.onTap),E={};d&&(E.getClickedVisualElement=function(){var T;return y3H(v,d,e==null?void 0:(T=e.value)==null?void 0:T.visualElement)});
E=_.Ag({elementsCommand:v.onTap,forceNewState:!0,additionalCommandArgs:E});return cz(E)?E:void 0};
r33=function(v,e,d,E){LM(v,Object.assign({},{form:{element:e,event:d}},E))};
hOt=function(v,e,d,E,T){var S=void 0;return function(O){var b=_.lk(d?v==null?void 0:v.onDisabledTap:v==null?void 0:v.onTap);if(b){var Y;S=(Y=S)!=null?Y:e==null?void 0:e.value;if(b)if(_.N("web_button_vm_click_client_ve_killswitch"))r33(b,S,O);else{var q;Y=y3H(v,b,(q=S)==null?void 0:q.visualElement);if(T){r33(b,T,O,{clickedVisualElement:Y,form:{element:T}});return}r33(b,S,O,{clickedVisualElement:Y})}}E&&E(O)}};
y3H=function(v,e,d){e=e==null?void 0:e.clickTrackingParams;var E,T;v=v==null?void 0:(E=v.loggingDirectives)==null?void 0:(T=E.clientVeSpec)==null?void 0:T.uiType;if(d&&v&&!e)return d};
KeU=function(v){switch(v){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"}};
$I$=function(v){switch(v){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"}};
jf0=function(v){switch(v){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"}};
sfS=function(v){switch(v){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"}};
N70=function(v,e){return _.h_(v.entities,"engagementToolbarStateEntityPayload",e)};
LeW=function(v){(v=_.Jg(v))&&_.k_s(v)};
_.k_s=function(v){var e=_.zz();e&&_.u4(e,v)};
Vz0=function(v,e,d){_.b4(v,"yt-open-popup-action",[e,d||v])};
oRt=function(v,e){var d=_.Rs(v,"endpoint"),E=_.Rs(v,"action");return(d=E?E:d)&&e&&(d=e.navigationEndpointPopupMap[d])&&(v=_.AE(d,v),(d=_.Rs(v,"renderer"))&&e.supportedPopups.hasOwnProperty(d))?{openPopupAction:{popupType:e.popupTypeMap[d],popup:v}}:null};
J3s=function(v,e,d,E){if(E){var T;d=d==null?void 0:(T=d.data)==null?void 0:T.contents;(T=d instanceof Array&&d.length?d[0]:d)&&(d=_.Rs(T,"renderer"))&&E.supportedPopups.hasOwnProperty(d)&&(e.stopPropagation(),Vz0(v,{openPopupAction:{popupType:E.popupTypeMap[d],popup:T}}))}};
tzt=function(v,e,d,E){E=E===void 0?!1:E;var T=G_H(e);if(T){T.href&&g1(T.href);var S=e.button;S=S!==void 0?S===0&&!Vw(e):!Vw(e);T.data&&S&&Mzs(v,T,e,d,E)}};
Mzs=function(v,e,d,E,T){T=T===void 0?!1:T;var S=_.Wi("pbj_navigate_limit",-1)===0;fOS(e);_.dk().resolve(_.eG(cV));var O=e.data;if(Object.keys(O).length!==0)if(!_.N("unplugged_web_disable_actions_for_cec_endpoint")&&_.L(O,_.rV))_.N("endpoint_behavior_command_executor_fix_killswitch")||(d.preventDefault(),d.stopPropagation()),_.ya(v,[O],v);else if(E=oRt(O,E))O.loggingUrls&&O.loggingUrls.forEach(function(Y){Y.baseUrl&&_.ZF(Y.baseUrl)}),d.preventDefault(),d.stopPropagation(),Vz0(v,E,e);
else{var b=ROt(0,e.data,d);if(v=e.getForm)v=v(),b.tempData=b.tempData||{},b.tempData=Object.assign({},b.tempData,v);v=_.vg(d);if(E=v.find(function(Y){return!!Y.visualElement}))b.createScreenConfig=b.createScreenConfig||{},b.createScreenConfig.clickedVisualElement=E.visualElement;
if(!S)if(d.preventDefault(),d.stopPropagation(),_.L(O,_.Pt0)&&!T&&_.hg.instance)_.hg.instance.resolveCommand(O,b);else if(_.N("kevlar_command_handler_formatted_string")&&!T&&_.hg.instance&&xI3(O))T=v.find(function(Y){return!!Y.is})||d.target,d={form:Object.assign({},b,{event:d,
element:T,originatingNode:e})},_.hg.instance.resolveCommand(O,d);else{O=_.vg(d);d=[];for(T=0;T<O.length;T++)(S=O[T].is)&&d.push(S);tK$({parents:d.join(","),text:e.innerText},function(){_.Iq(e,"yt-navigate",b)})}}};
B7O=function(v){if(v=G_H(v))fOS(v),Gyt(v.href)};
G_H=function(v){v=_.vg(v);for(var e,d=0;d<v.length;d++)if(e=v[d],e.tagName==="A"&&e.classList.contains("yt-simple-endpoint")){if(!e.data)break;return e}return null};
Vw=function(v){return v.shiftKey||v.altKey||v.metaKey||v.ctrlKey};
Ctj=function(v,e){var d={itct:e.clickTrackingParams};_.N("kevlar_client_side_screens")&&(!_.L(e,_.Go)||_.N("kevlar_exclude_endpoint_killswitch"))&&(d.endpoint=JSON.stringify(e));_.N("enable_unknown_lact_fix_on_html5")&&_.dk().resolve(_.eG(_.oZ))&&(d.lact=_.TN());VYL(d);_.Ez(v,d)};
fOS=function(v){v.href&&Object.keys(v.data).length!==0&&Ctj(v.href,v.data)};
xI3=function(v){for(var e=_.a(XL0),d=e.next();!d.done;d=e.next())if(v[d.value])return!1;return!0};
_.zO0=function(v,e){return _.h_(v.entities,"markersEngagementPanelSyncEntity",e)};
lO$=function(v,e){return _.h_(v.entities,"fantasyWinProbabilityEntity",e)};
HZM=function(v,e){return _.h_(v.entities,"fantasyTeamEntity",e)};
A3j=function(v,e){return _.h_(v.entities,"fantasyPlayerEntity",e)};
ZZH=function(v,e){return _.h_(v.entities,"booleanEntity",e)};
c3M=function(v,e){return _.h_(v.entities,"qrCodeEntity",e)};
wLW=function(v){return _.h_(v.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
FeL=function(){if(J8)return J8;if(window.lottie)return J8=Promise.resolve(window.lottie);var v=_.P8(_.Bb("LOTTIE_URL"));return v?J8=new Promise(function(e,d){var E=document.createElement("script");E.addEventListener("load",function(){e(lottie)});
E.addEventListener("error",function(T){var S="Lottie library failed to load.";T?T.message&&(S+=" Original description: "+T.message,_.BV(T,S)):T=Error(S);_.xf(T);d(T)});
E.setAttribute("async","");_.DB(E,v);document.head.appendChild(E)}):Promise.reject(Error("th"))};
Qft=function(){return J8?J8:FeL()};
gRO=function(v){if(v)switch(v){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.N("kevlar_use_wil_icons"))return v=(v=wLW(_.d1().getState()))&&v.animationLightUrl&&v.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:v.animationLightUrl,pathDarkTheme:v.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,v?v:GI.get("LIKE");break;case "LIKE_DELHI_PLAYER":return GI.get("LIKE_DELHI_PLAYER")}};
uw$=function(v){var e=gRO(v);if(e)return e;switch(v){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return GI.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return GI.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return GI.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return GI.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return GI.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return GI.get("NOTIFICATION_BELL")}};
nRt=function(v,e){if(!v.closest)return!1;e=!!gRO(e);return _.Bb("ID_TOKEN")&&e?!!v.closest("segmented-like-dislike-button-view-model")||!!v.closest("yt-player-quick-action-buttons"):!1};
UI3=function(v,e){if(!v||DIt)e=!1;else{var d;if(!(d=nRt(v,e)))if(v.closest)if(d=!_.Bb("ID_TOKEN"),v=v.closest("ytd-subscription-notification-toggle-button-renderer-next"),d||!v)d=!1;else{var E;d=((E=v.data)==null?void 0:E.targetId)==="notification-bell"&&e!=="EXPAND_MORE"}else d=!1;e=d}return e};
pLj=function(v){var e,d;return _.I(function(E){switch(E.nextAddress){case 1:return _.qq(E,2),E.yield(fetch(v),4);case 4:return e=E.yieldResult,E.yield(e.json(),5);case 5:return E.return(E.yieldResult);case 2:d=_.jl(E),_.xf(d),_.s9(E)}})};
vPj=function(v,e){var d,E,T;return _.I(function(S){if(S.nextAddress==1)return(d=e?v.pathDarkTheme:v.path)?S.yield(Promise.all([pLj(d),FeL()]),2):S.return();E=S.yieldResult;T=E[0];Me.set(d,T);_.s9(S)})};
doO=function(v,e,d,E){function T(O,b){if(e.value===b&&v!=null&&v.value){for(;v.value.firstChild;)v.value.removeChild(v.value.firstChild);v.value.classList.add("ytSpecIconShapeHost");O(v.value,E)}}
d=_.e67(_.dk().resolve(_.rC),d);if(typeof d==="function")e.value=null,T(d,null);else{var S=new _.yf(d.then,d);e.value=S;S.then(function(O){T(O,S)})}};
TO0=function(v,e){var d=document.createElement("div"),E=_.VU(d,function(){return _.m(_.y,{cond:v,then:function(T){return _.m(EPU,{data:T,options:e})}})},"D");
return[d,E]};
_.t8=function(v,e){if(e){var d={};S5S.forEach(function(E){E=WGs(e,E,"--yt-lightsource-");Object.assign(d,E)});
aR0.forEach(function(E){E=WGs(e,E,"--yt-basic-");Object.assign(d,E)});
_.qr(v,d)}};
WGs=function(v,e,d){var E={};E[d+_.Nn(e)]=v&&v[e]?_.w1(v[e]):"";return E};
_.RZ=function(v,e,d){fM[v]||(fM[v]={});fM[v][e]=d};
_.Pa=function(v){fM[v]||(fM[v]={});return fM[v]};
iSs=function(v){if(!v)return{};var e=v.foregroundTitleColor,d=v.backgroundColor;v=v.borderColor;var E="text";v?E="outline":d&&(E="filled");return{type:E,customColors:{color:e?_.w1(e):void 0,backgroundColor:d?_.w1(d):void 0,borderColor:v?_.w1(v):void 0}}};
moU=function(v){var e=v.renderer;var d=v.element;var E=v.commandController;var T=v.onTapCallback;var S=v.skipCommandHandling;var O=v.overrides;var b=v.forceIcon;var Y=v.forceModernIconButton;var q=v.forceDisabled;var r=v.isSubscribe===void 0?!1:v.isSubscribe;var h=v.isPressed===void 0?!1:v.isPressed;var K=v.useButtonSize===void 0?!1:v.useButtonSize;v=OS0(e);r&&(v.style="mono",v.type="filled");b=!e.icon||!b&&e.text?e.icon?e.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:Y?"icon-only":"icon-only-40";b==="icon-only-40"&&(v.type="text");var k;Y=Object;r=Y.assign;K=IRt(e,K);h=!!e.isSelected||!_.N("web_propagate_is_pressed_killswitch")&&!!h;var J=e.isSelected!==void 0;q=q===void 0?e.isDisabled:q;var R=e.text?_.Bz(e.text):void 0;var B,X,Z,U=((B=e.accessibilityData)==null?void 0:(X=B.accessibilityData)==null?void 0:X.label)||((Z=e.accessibility)==null?void 0:Z.label);B=U?U:_.vv(e.text);d=bS0(e,d,E,T,S);E=Y53(e);E!=null&&E.length?(E=_.Ag({innertubeCommand:lWt(E),
forceNewState:!0}),E=cz(E)?E:void 0):E=void 0;return r.call(Y,{},v,K,{iconPosition:b},O,{focused:!1,toggled:h,toggleable:J,disabled:q,formattedButtonText:R,accessibilityLabel:B,onTap:d,aTagConfig:E},iSs((k=e.colorData)==null?void 0:k.basicColorPaletteData),{oneOffCustomTextWrap:e.oneOffCustomTextWrap})};
bS0=function(v,e,d,E,T){return function(S){var O=Y53(v);E(O,S);if(!T){O=_.a(O);for(var b=O.next();!b.done;b=O.next())LM(b.value,{form:{element:e,event:S},commandController:d})}}};
Y53=function(v){var e=[];v.command&&e.push(v.command);v.serviceEndpoint&&e.push(v.serviceEndpoint);v.navigationEndpoint&&e.push(v.navigationEndpoint);return e};
IRt=function(v,e){if(e)switch(v.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(v.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
OS0=function(v){switch(v.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"}}};
yBj=function(v,e){return typeof v!=="object"||v===null?!1:Object.keys(e).every(function(d){return d in v})};
q5t=function(v){return Object.fromEntries(Object.keys(v).map(function(e){return[e,e]}))};
rBH=function(v,e,d){return k3H(d,function(E,T){return function(S){var O=_.Xa.apply(1,arguments);return yBj(S,v)?T.apply(null,[S[e]].concat(_.t7(O))):T.apply(null,[S].concat(_.t7(O)))}})};
h6L=function(v){return function(e,d){return rBH(v,e,d)}};
_.xj=function(v){return v!=null&&v.watch?v.watch.isTheaterMode:!1};
_.Ba=function(v){return v!=null&&v.watch?v.watch.isWatchFullscreen:!1};
_.CM=function(v){v=_.KGt(v);return _.N("web_watch_enable_single_column_grid_view")?v:!1};
_.KGt=function(v){return v.watch.isWatchNarrowWidth};
_.$ot=function(v){return v.watch.openEngagementPanels};
_.Xj=function(v){return _.yl(function(){rYH()();return $At(v)},{debugName:"d8B62c"},"wfRQAb")};
zI=function(v,e){return _.h_(v.entities,"likeStatusEntity",e)};
j1s=function(v,e){return _.h_(v.entities,"likeCountEntity",e)};
_.l2=function(v,e){return _.h_(v.entities,"stringEntity",e)};
s1H=function(v,e){if(!v)return!1;var d,E=(d=_.L(v,_.KB))==null?void 0:d.signal;if(E&&e.signalEndpointMap)return!!e.signalEndpointMap[E];var T;if((d=(T=_.L(v,_.Ha))==null?void 0:T.request)&&e.continuationEndpointMap)return!!e.continuationEndpointMap[d];for(var S in v)if(e.commandEndpointMap[S])return!0;return!1};
NOS=function(v,e){if(e.streamingEndpointMap)for(var d in v)if(e.streamingEndpointMap[d]&&(v=e.streamingEndpointMap[d]))return v()};
kGM=function(v,e){var d,E=(d=_.L(v,_.KB))==null?void 0:d.signal;if(E&&e.signalEndpointMap&&(d=e.signalEndpointMap[E]))return d();var T;if((d=(T=_.L(v,_.Ha))==null?void 0:T.request)&&e.continuationEndpointMap&&(T=e.continuationEndpointMap[d]))return T();for(var S in v)if(e.commandEndpointMap[S]&&(v=e.commandEndpointMap[S]))return v()};
LGt=function(v){var e={"Content-Type":"application/json"};_.Bb("EOM_VISITOR_DATA")?e["X-Goog-EOM-Visitor-Id"]=_.Bb("EOM_VISITOR_DATA"):_.Bb("VISITOR_DATA")&&(e["X-Goog-Visitor-Id"]=_.Bb("VISITOR_DATA"));e["X-Youtube-Bootstrap-Logged-In"]=_.Bb("LOGGED_IN",!1);_.Bb("DEBUG_SETTINGS_METADATA")&&(e["X-Debug-Settings-Metadata"]=_.Bb("DEBUG_SETTINGS_METADATA"));v!=="cors"&&((v=_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(e["X-Youtube-Client-Name"]=v),(v=_.Bb("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(e["X-Youtube-Client-Version"]=
v),(v=_.Bb("CHROME_CONNECTED_HEADER"))&&(e["X-Youtube-Chrome-Connected"]=v),(v=_.Bb("DOMAIN_ADMIN_STATE"))&&(e["X-Youtube-Domain-Admin-State"]=v),_.zr("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(v=_.Bb("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(e["X-YouTube-Lava-Device-Context"]=v));return e};
VJ7=function(v,e){e.watchNextResponse||e.reelItemWatchResponse?e.watchNextResponse?v.content=e.watchNextResponse:v.content=e.reelItemWatchResponse:e.playerResponse?v.player=e.playerResponse:e.reelWatchSequenceResponse&&(v.reelSequence=e.reelWatchSequenceResponse)};
_.A8=function(v){if(!v)return null;for(var e=[],d=0;d<v.textSegments.length;d++){var E=v.textSegments[d];E.text?e.push(E):E.emojiId&&e.push({emoji_id:E.emojiId})}return{text_segments:e}};
tJ0=function(v,e,d,E,T,S,O){S=S===void 0?[]:S;var b=new _.Zy;b.endpoint=d;if(!d)return _.PV(new _.kL("handle undefined endpoint",e.tagName)),b;var Y=lxj(d);Y.length&&(_.ya(v,Y,e,E),b.actions=Y);d.loggingUrls&&d.loggingUrls.forEach(function(r){r.baseUrl&&c8(r.baseUrl,r.attributionSrcMode)});
Y=!_.N("web_skip_impression_click_killswitch")&&E&&E.impression;if(d.clickTrackingParams&&!oPj(d)&&!JBt(e)&&!Y&&(Y=_.NC(),!_.ca(Y,e))){var q=e.getScreenLayer&&e.getScreenLayer();q?Y.clickCommand(d,null,q):Y.clickCommand(d,null)}Y=!1;for(q=0;q<S.length;q++)if((0,S[q])(e,d,E)){Y=!0;break}!Y&&GGL(d)&&(b.ajaxPromise=MJ7(v,e,d,E,T,O));return b};
JBt=function(v){var e;return(v=(e=v.data)==null?void 0:e.navigationEndpoint)&&!!v.clickTrackingParams};
oPj=function(v){var e=_.L(v,_.KB);if(e&&(e=e.signal)&&fRS.indexOf(e)>=0)return!0;for(var d in v)if(R6L.indexOf(d)>=0)return!0;return!1};
GGL=function(v){var e;if(((e=_.L(v,_.KB))==null?void 0:e.signal)==="CLIENT_SIGNAL")return!1;for(var d in v)if(P70.indexOf(d)>=0)return!1;v=Object.keys(v);return v.length===1&&v[0]==="loggingUrls"?!1:!0};
ABO=function(v,e,d,E,T,S,O){var b=_.wq.instance;if(b&&_.Fj(b,E))var Y=_.Qw(b,E,T).then(function(r){return(r==null?0:r.data)?r:{data:r}});
else Y=v.requestDataForServiceEndpoint(E,T),_.L(E,xo0)||_.L(E,BOH)||_.L(E,_.C7$)||_.L(E,XEO)||_.xf(new _.kL("No RequestBuilder for endpoint",E));var q=_.gq();q.promise.thenCatch(function(){var r=_.Rs(E,"action")||_.Rs(E,"command")||_.Rs(E,"endpoint");r&&(r=E[r],r.hasOwnProperty("onFailureAction")?_.ya(e,[r.onFailureAction],d):r.hasOwnProperty("onFailureCommand")&&_.ya(e,r.onFailureCommand,d));Y.cancel("Resolver promise rejected")});
Y.then(function(r){if(r){var h=r.error;if(h){if(S&&S.onServerError)S.onServerError(E,r);q.reject(new _.kL("Response error",E,h))}else if(r=r.data)if(h=r.error){if(S&&S.onServerError)S.onServerError(E,r);q.reject(new _.kL("Returned error",E,h))}else{z60(e,d,r,E);lRU(r);if(h=z07(r))for(var K=_.a(h),k=K.next();!k.done;k=K.next()){k=k.value;var J=_.dk().resolve(_.eG(HSU))||u2;if(!_.wq.instance||!J.some(function(B){return!!_.L(E,B)})||_.N("kevlar_response_processor_allowlist_killswitch")){var R=J=void 0;
((R=_.L((J=k)==null?void 0:J.commandMetadata,_.$B))==null?0:R.sendPost)?_.mN(e,[k]):_.ya(e,[k],d)}}(K=_.L(r==null?void 0:r.frameworkUpdates,nM))&&O&&O(K);if(S&&S.onSuccess)S.onSuccess(E,r);q.resolve(new _.Dy(r,h))}}else q.reject(new _.kL("Invalid service endpoint provided",E))},function(r){q.reject(r)});
return q.promise};
lRU=function(v){var e;(v=(e=_.L(v==null?void 0:v.onResponseReceivedCommand,_.ZSO))==null?void 0:e.continuationItems)&&(v==null?void 0:v.length)===1&&_.L(v[0],cB7)&&_.zE("so_r",void 0,"search_overview_answer")};
MJ7=function(v,e,d,E,T,S){var O;return(O=e.getNetworkManager&&e.getNetworkManager()?e.getNetworkManager():_.dk().resolve(_.eG(_.zo)))?ABO(O,v,e,d,E,T,S):_.f1("No network manager.")};
z60=function(v,e,d,E){if(d=d.trackingParams||d.loggingDirectives&&d.loggingDirectives.trackingParams){var T;(_.L(E,wE$)||_.L(E,FGL)||_.L(E,Q10))&&E.clickTrackingParams?T=_.Jg(E.clickTrackingParams):_.N("web_graft_to_parent_command")&&E.clickTrackingParams&&(T=_.Jg(E.clickTrackingParams));var S;E=(S=e.getScreenLayer)==null?void 0:S.call(e);e=_.NC().graftServerVe(d,T,E);_.YB(v,"yt-store-grafted-ve-action",[e])}};
_.gPL=function(v){var e=new Image;return new _.yf(function(d,E){e.addEventListener("load",function(){d()});
e.addEventListener("error",function(){E()});
e.src=v})};
uH$=function(v){return!!v};
nPW=function(v){return!!v};
DoS=function(v,e,d){var E=v.rowIndex;E!==void 0&&_.YB(v.hostElement,"yt-section-reactive-dismissal",[E,e,d])};
_.UG=function(v,e,d){v=_.a(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;if(E===e)break;for(var T=_.a(d),S=T.next();!S.done;S=T.next())if(S=S.value,E.tagName===S||!_.N("web_event_button_role_check_killswitch")&&E.role==="button"&&S==="BUTTON")return!0}return!1};
_.pM=function(v,e,d){v=_.a(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;if(E===e)break;for(var T=_.a(d),S=T.next();!S.done;S=T.next())if(E.id===S.value)return!0}return!1};
Uo7=function(v){switch(v){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}};
pEU=function(v,e){if(!v&&!e)return"medium";v=Math.max(v||0,e||0);return v>=256?"large":v>=96?"medium":"small"};
vy$=function(v){switch(v){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.dB=function(){var v=_.dk().resolve(_.eG(_.v5));return v?(v=v.getCurrentPage())?_.eK(v):null:null};
_.EK=function(){var v=_.dB();if(!v){var e=_.dk().resolve(_.eG(_.v5)),d=e?typeof e:"no page manager";e=e?e.getCurrentPage():null;d=new _.kL("Player is missing when requested.",d,e?e.tagName:"no page");_.RI(d)}return v};
_.eK=function(v){return v&&v.getPlayer?v.getPlayer():null};
eLM=function(v,e){v={args:{raw_player_response:v}};e&&(v.args=Object.assign({},v.args,e));return v};
dMt=function(v){if(v.args){if(v.args.raw_player_response)return v.args.raw_player_response;if(v.args.player_response)return JSON.parse(v.args.player_response)}};
_.EyS=function(v,e){var d={url:"/watch?v="+v.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};v.playlistId&&(d.url+="&list="+v.playlistId);v.playerParams&&(d.url+="&pp="+v.playerParams);v={watchEndpoint:v,commandMetadata:{webCommandMetadata:d}};e&&(v.clickTrackingParams=e);return v};
SM0=function(){return T8M||!!_.AE("yt.player.Application")};
a$7=function(){return W93||!!document.querySelector("link#player-css")};
OH0=function(){function v(){T8M=!0;iHs.resolve()}
var e,d;return _.I(function(E){iHs||(iHs=new _.r1,SM0()?v():(e=document.createElement("script"),e.addEventListener("load",v),d=_.ou(_.Bb("PLAYER_JS_URL")),_.DB(e,d),document.head.appendChild(e)));return E.return(iHs.promise)})};
bHs=function(){function v(){W93=!0;I$0.resolve()}
if(!I$0)if(I$0=new _.r1,a$7())v();else{var e=document.createElement("link");e.id="player-css";e.addEventListener("load",v);var d=_.ou(_.Bb("PLAYER_CSS_URL"));_.vu(e,d,"stylesheet");document.head.appendChild(e)}return I$0.promise};
YML=function(){return SM0()&&a$7()?Promise.resolve([]):Promise.all([OH0(),bHs()])};
mMs=function(v,e,d){var E={args:{}};v&&(E.args.raw_player_response=v);e&&(E.args.raw_watch_next_response=e);d&&(E.args=Object.assign({},E.args,d));return E};
hL3=function(v,e,d){var E=!1;E=E===void 0?!0:E;v=typeof v==="string"?_.Tn(document,v):v;var T=yqt+"_"+_.gH(v),S=qM$[T];if(S&&E)return rq3(e,d)?S.api.loadVideoByPlayerVars(e.args||null):S.loadNewVideoConfig(e),S.api;S=new SK(v,T,e,d,void 0);qM$[T]=S;S.addOnDisposeCallback(function(){delete qM$[S.getId()]});
return S.api};
rq3=function(v,e){return e&&e.serializedExperimentFlags?e.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):v&&v.args&&v.args.fflags?v.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
K9H=function(){var v=new _.r1;v.resolved=!1;var e=v.resolve;v.resolve=function(d){v.resolved=!0;e(d)};
return v};
jLj=function(v){var e={};$MO().install((e.document_disposed={callback:v},e))};
W5=function(v,e){if(!v&&Math.random()<=_.Wi("kevlar_unified_player_logging_threshold")){v=Error("vh`"+(e?e:"Unspecified error"));if(_.N("kevlar_unified_player_throw_errors"))throw v;_.xf(v)}};
_.sLO=function(){var v=_.AE("ytDebugData.callbacks");v||(v={},_.pw("ytDebugData.callbacks",v));return v};
k60=function(v,e){var d=_.sLO();if(_.N("web_dd_iu")||N83.includes(v))d[v]=e};
L9L=function(){return _.I(function(v){return v.return({isLeader:_.is3(_.d1().getState()),c:_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Bb("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Ve0=function(){var v;_.I(function(e){if(e.nextAddress==1)return k60("APP_STATE",L9L),e.yield(_.dk().resolve(_.a7),2);v=e.yieldResult;k60("PI",function(){return _.I(function(d){return d.return(v.getVideoStats())})});
_.s9(e)})};
oyM=function(v){var e=_.dV(_.g3(_.TO.location.href));v=_.dV(_.g3(v));return _.N("kevlar_clear_non_displayable_url_params")?e==iH(v):iH(e)==iH(v)};
iH=function(v){var e=_.Jq3(v);v=v.slice(0);var d=["frags"];_.N("kevlar_hide_pp_url_param")&&d.push("pp");_.N("kevlar_hide_time_continue_url_param")&&d.push("time_continue");d=_.a(d);for(var E=d.next();!E.done;E=d.next())E=E.value,v=_.TE(_.dV(v),E);return _.dV(v)+(e?"#"+e:"")};
OK=function(v,e){e=Number(e)*1E3;var d=Math.round((0,_.E$)()),E=d.toString();v={innertubeResponse:v,serverDateTimestampMs:E,lastModifiedTimestampMs:E,expireTimestampMs:(d+e).toString()};if(e=_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME"))v.clientName=e;return v};
MeW=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++G6S};
_.te3=function(){var v=_.Xf(),e=_.zz();e&&v&&_.Dm(e,[v],!0)};
RLt=function(v){return v&&f$H.some(function(e){return v.includes(e)})};
zL3=function(v){var e=_.L(v,_.wb);if(!e)return!1;var d=e.url,E=e.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!d)return _.RI(Error("Ah")),!1;if(e.target==="TARGET_NEW_WINDOW"){var T={};_.N("resolve_url_parent_tracking_params")&&(!_.DV(d)||UW(window.location.href,d))&&(T={endpoint:v,itct:v.clickTrackingParams});VYL(T);v=null;try{if(E)return v=_.PTL(d,"_blank",T,void 0,E),PQH(_.dk().resolve(xMW),v,d),!0}catch(K){_.RI(K)}_.Ez(d,T);e={target:"_blank",noopener:_.N("set_window_noopener_ks")&&
!e.allowOpener};v=window;E=GD(d)?d:_.xm(typeof d.href!="undefined"?d.href:String(d));T=self.crossOriginIsolated!==void 0;var S="strict-origin-when-cross-origin";window.Request&&(S=(new Request("/")).referrerPolicy);var O=e.noreferrer;if(T&&O&&S==="unsafe-url")throw Error("re");S=O&&!T;O=e.target||d.target;var b=[],Y=[],q=!1;for(h in e){var r=e[h];switch(h){case "width":case "height":case "top":case "left":b.push(h+"="+r);break;case "target":break;case "noopener":case "noreferrer":r?Y.push(h):(q=!0,
Y.push(h+"=false"));break;case "attributionsrc":b.push(h+(r?"="+r:""));break;default:b.push(h+"="+(r?1:0))}}var h=O!==void 0&&!["_blank","_self","_top","_parent",""].includes(O);h=GO()&&h;B87&&T&&b.length===0&&Y.length>0&&!h&&!q?(Y.length===2&&(Y=["noreferrer"]),_.Fa(v,E,O,Y[0]),v=CQU()):(h=b.join(","),_.ft()&&v.navigator&&v.navigator.standalone&&O&&O!="_self"?(h=_.hz("A"),l6(h,E),h.target=O,S&&(h.rel="noreferrer"),((e=e.attributionsrc)||e==="")&&h.setAttribute("attributionsrc",e),e=document.createEvent("MouseEvent"),
e.initMouseEvent("click",!0,!0,v,1),h.dispatchEvent(e),v=CQU()):S?(v=_.Fa(v,"",O,h),e=_.Mf(E),v&&(v.opener=null,e===""&&(e="javascript:''"),e='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+I7(e)+'">',e=Ar(e),(E=v.document)&&E.write&&(E.write(ZB(e)),E.close()))):((v=_.Fa(v,E,O,h))&&e.noopener&&(v.opener=null),v&&e.noreferrer&&(v.opener=null)));PQH(_.dk().resolve(xMW),v,d);return!0}e=_.mq(d);e=RLt(e)||d==="https://studio.youtube.com/";E=!(!_.DV(d)||UW(window.location.href,
d));h=d.indexOf("disable_polymer=1")>=0;if(E||h||e)g1(d),xB(),_.uX(d,void 0,void 0,window.top,XNs);else return _.xf(new _.kL("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",v)),!1;return!0};
_.Aqt=function(v,e){e=e===void 0?0:e;if(!(_.L(v,l$W)||_.L(v,HHO)||_.L(v,_.wb)&&_.L(v,_.wb).url))return!1;var d,E=(d=_.L(v,_.wb))==null?void 0:d.url;d=E?{externalLinkData:{url:E}}:null;return _.NC().clickCommand(v,d,e)};
ZHO=function(v,e){return _.h_(v.entities,"subscriptionStateEntity",e)};
cqL=function(v,e){return _.h_(v.entities,"subscriptionNotificationStateEntity",e)};
wNS=function(v,e){return _.h_(v.entities,"upcomingEventReminderStateEntity",e)};
F9W=function(v,e){return _.h_(v.entities,"engagementToolbarSurfaceEntityPayload",e)};
QLs=function(v,e){return _.h_(v.entities,"triStateButtonStateEntityPayload",e)};
gyt=function(v,e){return _.h_(v.entities,"commerceCartCheckoutButtonEntity",e)};
_.uNO=function(v,e){return _.h_(v.entities,"playlistLoopStateEntity",e)};
ny0=function(v,e){return _.h_(v.entities,"commandEntity",e)};
UM0=function(v,e,d,E,T){T=T===void 0?{}:T;return function(S){var O,b;var Y=((O=v.loggingDirectives)==null?0:(b=O.clientVeSpec)==null?0:b.uiType)?_.bH(v.loggingDirectives.clientVeSpec.uiType):void 0;T.clickedVisualElement||(T.clickedVisualElement=Y);Y=DMH(v,e);d(Y,S);Y=_.a(Y);for(O=Y.next();!O.done;O=Y.next()){O=O.value;b=E;var q=S,r=T;r.form?r.form.event=q:r.form={element:b,event:q};LM(O,r)}}};
DMH=function(v,e){var d=[];e?(v.toggledCommand&&d.push(v.toggledCommand),v.toggledServiceEndpoint&&d.push(v.toggledServiceEndpoint)):(v.defaultCommand&&d.push(v.defaultCommand),v.defaultServiceEndpoint&&d.push(v.defaultServiceEndpoint),v.defaultNavigationEndpoint&&d.push(v.defaultNavigationEndpoint));return d};
pNt=function(v,e){var d=v.toggledStyle||v.style,E;switch((E=e?d:v.style)==null?void 0:E.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"}}};
_.Yz=function(){return _.I(function(v){return v.nextAddress==1?v.yield(_.dk().resolve(_.a7),2):v.return(_.dk().resolve(vDt)())})};
_.mS=function(){return _.dk().resolve(vDt)()};
_.y0=function(){return tE(function(){return{lottieEl:void 0}})};
ecj=function(v,e){return v.startsWith(e.uniqueId)};
dV0=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return E.yield(_.Yz(),2);e=E.yieldResult;if((d=e)==null||!d.addEventListener)return qP(),E.return();e.addEventListener("onCueRangeEnter",v);_.s9(E)})};
EDj=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return E.yield(_.Yz(),2);e=E.yieldResult;if((d=e)==null||!d.removeEventListener)return qP(),E.return();e.removeEventListener("onCueRangeEnter",v);_.s9(E)})};
Tls=function(v){var e,d,E,T,S;_.I(function(O){if(O.nextAddress==1)return O.yield(_.Yz(),2);e=O.yieldResult;if((d=e)==null||!d.addCueRange)return qP(),O.return();E=_.a(v.timings);for(T=E.next();!T.done;T=E.next())S=T.value,e.addCueRange(v.uniqueId+"-"+S,S/1E3,(S+100)/1E3);_.s9(O)})};
Sv3=function(v){var e,d,E,T,S;_.I(function(O){if(O.nextAddress==1)return O.yield(_.Yz(),2);e=O.yieldResult;if((d=e)==null||!d.removeCueRange)return qP(),O.return();E=_.a(v.timings);for(T=E.next();!T.done;T=E.next())S=T.value,e.removeCueRange(v.uniqueId+"-"+S);_.s9(O)})};
WPU=function(){var v,e,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(_.Yz(),2);v=E.yieldResult;if((e=v)==null||!e.getPlayerState)return qP(),E.return();d=v.getPlayerState();return E.return(d===2)})};
qP=function(){_.xf(new _.kL("Smartimation player does not exist or is corrupted"))};
azU=function(){try{var v;return(v=window.CSS)!=null&&v.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(e){return _.xf(new _.kL("Smartimation CSS.supports threw an error")),!1}};
yls=function(v,e,d,E,T){var S=v.playlistId?i8W:O8$;e=e();d=d();T=!!v.videoId&&T()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.oG(e))return IzO({data:v,actionType:S,disabled:T},d);if(v.videoId&&E())return b8O({data:v,actionType:S,disabled:T});switch(e){case "TRANSFER_STATE_UNKNOWN":return b8O({data:v,actionType:S,disabled:T});case "TRANSFER_STATE_FAILED":return v.videoId?Yvt({data:v,actionType:S,disabled:T}):mV0({data:v,actionType:S,disabled:T});case "TRANSFER_STATE_COMPLETE":return mV0({data:v,
actionType:S,disabled:T});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return IzO({data:v,actionType:S,disabled:T},d);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return v.videoId?Yvt({data:v,actionType:S,disabled:T}):b8O({data:v,actionType:S,disabled:T});default:return b8O({data:v,actionType:S,disabled:T})}};
qvU=function(v,e){var d=v.onTapCommand,E=_.lk(d);if(v.videoId&&_.L(E,_.rB))return _.L(E,_.rB).action=e,d;v.playlistId&&_.L(E,_.hX)&&(_.L(E,_.hX).action=e);return d};
b8O=function(v){var e=v.data;var d=v.actionType;v=v.disabled;return{text:rlS,iconType:"OFFLINE_DOWNLOAD",onTap:qvU(e,d.ACTION_ADD),disabled:v}};
IzO=function(v,e){var d=v.data;var E=v.actionType;v=v.disabled;var T="OFFLINE_DOWNLOAD";e>=0&&e<=.1?T="OFFLINE_DOWNLOADING_ZERO":e>.1&&e<=.3?T="OFFLINE_DOWNLOADING_TWENTY":e>.3&&e<=.5?T="OFFLINE_DOWNLOADING_FORTY":e>.5&&e<=.7?T="OFFLINE_DOWNLOADING_SIXTY":e>.7&&e<1?T="OFFLINE_DOWNLOADING_EIGHTY":e===1&&(T="OFFLINE_PIN");return{text:hcO,iconType:T,onTap:qvU(d,E.ACTION_REMOVE_WITH_PROMPT),disabled:v}};
mV0=function(v){var e=v.data;var d=v.actionType;v=v.disabled;return{text:KP0,iconType:"OFFLINE_PIN",onTap:qvU(e,d.ACTION_REMOVE_WITH_PROMPT),disabled:v}};
Yvt=function(v){var e=v.data;var d=v.actionType;v=v.disabled;return{text:$V$,iconType:"OFFLINE_DOWNLOAD",onTap:qvU(e,d.ACTION_RETRY),disabled:v}};
k7H=function(v){var e=jDS;sDs.push(v);NlM||(e(function(){for(var d=_.a(sDs),E=d.next();!E.done;E=d.next())E=E.value,E();sDs.length=0;NlM=!1}),NlM=!0)};
jDS=function(v){Promise.resolve().then(v)};
LP3=function(v){v=_.a(I7S(v));var e=v.next().value,d=v.next().value,E=!1;_.Gr(function(){return function(){E=!0}});
return[e,function(T){k7H(function(){E&&!_.N("cow_prevent_state_setter_after_cleanup_killswitch")||d(T)})}]};
_.Kv=function(v,e){var d=rYH();return _.yl(function(){d();return $At(v,[_.M4(e)||""])},{debugName:"LUZslf"},"qYSKAc")};
VHL=function(v){var e=_.Kv(_.A_,function(){return v().videoId}),d=_.Kv(_.ZY,function(){return v().playlistId});
return function(){return v().videoId?e:v().playlistId?d:_.a(_.OE("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
oDO=function(v){var e=_.Kv(cK,function(){return v().videoId}),d=_.Kv(_.ahS,function(){return v().playlistId});
return function(){return v().videoId?e:v().playlistId?d:_.a(_.OE(0,void 0,"K4tgOc")).next().value}};
JlU=function(v){var e=_.Kv(_.rb7,function(){return v().videoId});
return function(){return v().videoId?e:_.a(_.OE(!1,void 0,"Oaxwcf")).next().value}};
G7W=function(v){var e=_.Kv(Ih0,function(){return v().videoId});
return function(){return v().videoId?e:_.a(_.OE("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
MH3=function(){return{}};
_.xVs=function(v,e,d){return{submitForm:function(){var E;return _.I(function(T){if(T.nextAddress==1){E=tHM(v());if(!E)return T.return();if(E.onSubmit)return E.onSubmit(),T.return();if(!E.submitConfig||!E.formData)return T.jumpTo(0);E.disableDuringSubmission&&fzU(v(),!0);Rcs(e);return T.yield(Pit(E.submitConfig,E.formData()),3)}Rcs(d);E.disableDuringSubmission&&fzU(v(),!1);return T.return()})},
isValid:function(){var E=tHM(v());if(E){var T;return!((T=E.isValid)==null||!T.call(E))}return!0},
isSubmitting:function(){var E,T;return!!((E=tHM(v()))==null?0:(T=E.isSubmitting)==null?0:T.call(E))}}};
_.Xf0=function(){if(!Blt){var v=_.a(_.OE(new Map,void 0,"yE61ae"));Blt=v.next().value;CiO=v.next().value}return Blt};
_.zc$=function(v){CiO(new Map(v))};
tHM=function(v){if(v)return _.Xf0()().get(v)};
Pit=function(v,e){var d;return _.I(function(E){return e?(d=_.dk().resolve(_.eG(lzO)))&&v.submitId?E.yield(d.submitForm(v.submitId,e,H8H,v.params,v.clickTrackingParams),0):E.return():E.return()})};
fzU=function(v,e){if(v){var d=_.Xf0();d().set(v,Object.assign({},d().get(v),{isSubmitting:function(){return e}}));
_.zc$(d())}};
Rcs=function(v){if(v){var e=_.dk().resolve(_.EI);e&&(v=_.lk(v()))&&e.resolveCommand(v)}};
Al3=function(v,e){e=e===void 0?{shouldPersist:!0}:e;return{useUpdatableData:function(d,E){var T=[],S=_.a(_.KM(function(){var q=d();if(E!=null&&E.length&&T){var r=T.length>0;for(var h=!1,K=0;K<E.length;K++){var k=E[K]();r&&k!==T[K]&&(h=!0);T[K]=k}r=h}else r=!1;if(r)_.$z.remove(Y());else if(r=_.$z.get(Y()))return r;return q})),O=S.next().value,b=S.next().value,Y=_.yl(function(){return v(d())},void 0,"VFraLb");
_.o_(function(){if(Y()!=null){sK.set(Y(),[O,b,!1]);var q=Y();_.Jf(function(){sK.delete(q)})}},"Fdafud");
return[O,function(q){b(q);e.shouldPersist&&_.$z.set(Y(),q)}]},
getData:function(d){var E;return(E=sK.get(v(d)))==null?void 0:E[0]()},
updateData:function(d,E){d=v(d);var T=sK.get(d);if(!T)return!1;var S=_.a(T);T=S.next().value;S=S.next().value;E=E(T());S(E);e.shouldPersist&&_.$z.set(d,E);return!0},
useUpdatableDataIdom:function(d,E){var T=v(d),S=_.$z.get(T),O=_.a(LP3(S!=null?S:d)),b=O.next().value,Y=O.next().value,q=f4(S!=null?S:d);WNW(function(){if(T!=null)return sK.set(T,[function(){return q.value},
function(r){Y(r);q.value=r},
sK.has(T)]),_.RM.addJob(function(){_.NP(_.RM,function(){var r=sK.get(T);r&&(r[2]=!1)},0)},8),function(){var r;
((r=sK.get(T))==null?0:r[2])||sK.delete(T)}},[T]);
WNW(function(){b!==d&&(Y(d),q.value=d)},E?[].concat(_.t7(E),[T]):[T]);
return[b,Y]}}};
Z8t=function(v){var e=_.a(_.OE(!0,void 0,"bKtO6d")),d=e.next().value;e.next();return function(){var E=yU(v.children());return _.m(_.y,{cond:d,then:function(){return E},
else:v.fallback})}()};
_.kz=function(v){var e=clj(v),d=e.data,E=e.mapping,T=e.wrapper;e=e.pendingFallback;var S=function(){return wfS(_.M4(d))},O=function(){var b=S(),Y=[];
b=_.a(b);for(var q=b.next();!q.done;q=b.next()){var r=void 0;q=q.value;var h=void 0;for(r in q)if(!(!q).hasOwnProperty(r)){h=r;break}(r=h)&&Y.push(r)}return Y};
return v.data?_.m(Z8t,{fallback:e},function(){return _.m(_.jI,{each:O},function(b,Y){var q=T?function(h){return T(function(){return E[b](h,Y)},r,Y)}:function(h){return E[b](h,Y)};
q.debugName||(q.debugName=String(b));if(!E[String(b)])return document.createComment("");q.componentType!==_.N4&&FP3(String(b));var r=QD0(S,b,Y);return _.m(q,{data:r})})}):_.m(_.eI,null)};
clj=function(v){var e=v.targetId||gDL(v.children);if(!v.data||!e||_.N("mweb_new_replaceables_killswitch"))return Object.assign({},v,{mapping:v.children,wrapper:void 0});var d="stamper-"+uC0++,E=function(){var b;return(b=typeof v.targetId==="function"?v.targetId(d):v.targetId)!=null?b:d};
e=_.a(nDj(function(){var b=wfS(v.data());b.targetId=E;return b})).next().value;
var T=Object.assign({},(_.dk().resolve(_.eG(DV7))||{}).replaceableMapping,v.children);if(v.replacementWrapper){var S=T.notificationTextRenderer,O=T.notificationMultiActionRenderer;S&&(T.notificationTextRenderer=function(b,Y){return v.replacementWrapper(S({data:b.data},Y))});
O&&(T.notificationMultiActionRenderer=function(b,Y){return v.replacementWrapper(O({data:b.data},Y))})}return Object.assign({},v,{data:e,
mapping:T,wrapper:function(b,Y,q){return mIO({targetId:E,stamperIndex:q},b)}})};
QD0=function(v,e,d){var E;return _.yl(function(){var T=v()[d()];if(T)E=T[e];else return _.xf(new _.kL("Stamper failed to find "+String(e)+" at index "+d()+" of data array of length "+(v().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),E;return T[e]},void 0,"wgRPHd")};
gDL=function(v){v=_.a(Object.keys(v));for(var e=v.next();!e.done;e=v.next())if(e=e.value,UVU.includes(e)||pfU.includes(e)||vAj.includes(e))return!0;return!1};
wfS=function(v){return v?Array.isArray(v)?v:[v]:[]};
FP3=function(v){if(_.N("web_enable_renderer_logger")){var e;(e=_.dk().resolve(_.eG(ekt)))!=null&&e.loggingEnabled&&!e.ids.has(v)&&e.ids.add(v)}};
dW$=function(){var v,e;return(e=(v=_.dk().resolve(_.eG(_.n1)))==null?void 0:v())!=null?e:!1};
TES=function(v,e){v=v===void 0?EAU:v;switch(e.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},v,{isOpen:e.payload});default:return v}};
WtH=function(v,e){v=v===void 0?SH7:v;switch(e.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},v,{isAllowed:e.payload});default:return v}};
ixH=function(v,e){v=v===void 0?a5H:v;switch(e.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},v,{errorMessage:e.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},v,{title:e.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},v,{privacy:e.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},v,{isDisabled:e.payload});default:return v}};
I5S=function(v,e){v=v===void 0?OxO:v;switch(e.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},v,{isOpen:e.payload});default:return v}};
YH7=function(v,e){v=v===void 0?bx0:v;switch(e.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},v,{isFullscreen:e.payload});case "SET_NAVIGATION_BUTTON":var d=e.payload.targetId,E=Object.assign({},v.navigationButtons);E[d]=e.payload.button;return Object.assign({},v,{navigationButtons:E});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},v,{topPanelId:e.payload});case "SET_SECONDARY_HEADER":return d=e.payload.panelId,E=Object.assign({},v.secondaryHeader),E[d]=e.payload.secondaryHeader,
Object.assign({},v,{secondaryHeader:E});default:return v}};
r60=function(){return jo(Object.assign({},{voiceSearch:BDj,engagementPanel:YH7,bottomSheet:TES,cinematicSetting:WtH,shorts:c53,drawerLayout:I5S,createPlaylist:ixH,locationCollection:mWj,reportChannel:y63,reportForm:qHt},whW))};
hkS=function(v,e){_.RM.addLowPriorityJob(function(){var d,E,T;return _.I(function(S){switch(S.nextAddress){case 1:return _.qq(S,2),S.yield(FeL(),4);case 4:return S.yield(fetch(v),5);case 5:return d=S.yieldResult,S.yield(d.json(),6);case 6:E=S.yieldResult;Me.set(v,E);requestAnimationFrame(function(){e(E)});
_.wk(S,0);break;case 2:T=_.jl(S),_.xf(T),_.s9(S)}})})};
KtL=function(v){var e={animationConfig:{},listeners:{}},d=function(){v(!0)};
e.listeners.data_failed=d;e.listeners.error=d;e.listeners.data_ready=function(){v(!1)};
return e};
sw7=function(v){var e=v.model;var d=v.subscribed;var E=v.isOverlay;var T=v.element;var S=v.commandController;var O=v.notificationState;if(d){var b,Y;var q=(e==null?void 0:(b=e.buttonStyle)==null?void 0:b.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:e==null?void 0:(Y=e.unsubscribeButtonContent)==null?void 0:Y.buttonText}else{var r;q=e==null?void 0:(r=e.subscribeButtonContent)==null?void 0:r.buttonText}a:{var h;switch(e==null?void 0:(h=e.buttonStyle)==
null?void 0:h.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":b="S";break a;default:b="M"}}a:if(E)E="overlay";else switch(e.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":E="overlay";break a;default:E="mono"}a:if(d)var K="tonal";else switch((K=e.buttonStyle)==
null?void 0:K.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":K="tonal";break a;default:K="filled"}return{style:E,type:K,state:e.disableSubscribeButton?"disabled":"active",size:b,focused:v.focused,toggled:d,accessibilityLabel:$Wt(e,d,O),buttonText:q,iconPosition:e.disableNotificationBell?"none":"leading-trailing",onTap:jwj(e,d,T,S),disableTextEllipsis:!!v.disableTextEllipsis}};
jwj=function(v,e,d,E){return function(T){if(e){var S;var O=v.disableNotificationBell?_.lk(v==null?void 0:(S=v.unsubscribeButtonContent)==null?void 0:S.onTapCommand):_.lk(v==null?void 0:v.onShowSubscriptionOptions)}else{var b;O=_.lk(v==null?void 0:(b=v.subscribeButtonContent)==null?void 0:b.onTapCommand)}O&&LM(O,{form:{element:d==null?void 0:d.value},commandController:E});T.stopPropagation()}};
$Wt=function(v,e,d){if(e){if(v==null?0:v.disableNotificationBell){var E;return v==null?void 0:(E=v.unsubscribeButtonContent)==null?void 0:E.accessibilityText}switch(d){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var T;return v==null?void 0:(T=v.bellAccessibilityData)==null?void 0:T.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var S;return v==null?void 0:(S=v.bellAccessibilityData)==null?void 0:S.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var O;return v==null?void 0:(O=
v.bellAccessibilityData)==null?void 0:O.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var b;return v==null?void 0:(b=v.bellAccessibilityData)==null?void 0:b.disabledLabel;default:var Y;return v==null?void 0:(Y=v.unsubscribeButtonContent)==null?void 0:Y.accessibilityText}}else{var q;return v==null?void 0:(q=v.subscribeButtonContent)==null?void 0:q.accessibilityText}};
NEH=function(v){if(v){switch(v){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":v="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":v="NOTIFICATIONS_OFF";break;default:v="NOTIFICATIONS_NONE"}return v}};
kWt=function(v,e,d){d.subscribed!==e&&((d=d.key)&&_.vz(_.Lv("subscriptionStateEntity",d,{key:d,subscribed:e})),v.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:e})),e||_.b4(v,"yt-unsubscribe-action"))};
Vg7=function(v){v=_.L(_.lk(v),_.V0);var e,d,E,T;return(T=_.L(v==null?void 0:(e=v.panelLoadingStrategy)==null?void 0:(d=e.inlineContent)==null?void 0:(E=d.sheetViewModel)==null?void 0:E.content,Lt0))==null?void 0:T.listItems};
oAt=function(v,e){if(v.onShowSubscriptionOptions&&e&&(v=Vg7(v.onShowSubscriptionOptions),v!=null&&v.length)){var d=NEH(e);v.forEach(function(E){E=_.L(E,_.o7);var T,S,O,b,Y=E==null?void 0:(T=E.leadingImage)==null?void 0:(S=T.sources)==null?void 0:(O=S[0])==null?void 0:(b=O.clientResource)==null?void 0:b.imageName;E&&Y&&(E.isSelected=Y===d)})}};
J6H=function(v,e,d,E){e&&d?v.style.width=d+"px":!e&&E&&(v.style.width=E+"px")};
GWO=function(v,e,d){var E;(E=v.lottieEl)==null||E.goToAndPlay(0);var T;(T=e.lottieEl)==null||T.goToAndPlay(0);_.JX(_.RM,function(){var S;(S=d.lottieEl)==null||S.goToAndPlay(0)},300)};
Mg$=function(v){return!(v==null||!v.iconName||(v==null?0:v.title))};
tgM=function(v,e,d,E){d&&_.RM.cancelJob(d);d=_.RM.addLowPriorityJob(function(){E(void 0)},5E3);
E(d);e&&v!==(e.likeStatus==="LIKE")&&e.key&&_.vz(_.Lv("likeStatusEntity",e.key,{key:e.key,likeStatus:v?"LIKE":"INDIFFERENT",hadUserInteraction:v}))};
_.f5L=function(v,e){return _.h_(v.entities,"accountLinkStatusEntity",e)};
Rk3=function(v,e){return _.h_(v.entities,"hatsSurveyEntity",e)};
PCS=function(v,e){return _.h_(v.entities,"hatsSurveyStateEntity",e)};
xW7=function(v,e){return _.h_(v.entities,"quantityIncrementerEntity",e)};
BEO=function(v){switch(v){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
CC$=function(v){switch(v){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}};
XR0=function(v){switch(v){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.l5W=function(v){var e=_.Wi("web_generic_client_event_wait_period ",0);e||(e=3E5);var d=zkW.get(v);!_.N("enable_web_client_experiment_event_timeout_killswitch")&&d&&(0,_.E$)()-d<e||(zkW.set(v,(0,_.E$)()),_.tI("genericClientExperimentEvent",{eventType:v}))};
HxH=function(v){switch(v){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""}};
A6j=function(v){if(!v)return"";var e,d=(e=_.dk().resolve(_.eG(_.n1)))==null?void 0:e(),E;if(!d&&((E=v.vibrantColorPalette)==null?0:E.iconInactiveColor))return FD(v.vibrantColorPalette.iconInactiveColor,"1");var T;return d&&((T=v.darkColorPalette)==null?0:T.iconInactiveColor)?FD(v.darkColorPalette.iconInactiveColor,"1"):v.color?FD(v.color,"1"):v.sampledThumbnailColor?(v=v.sampledThumbnailColor,"rgba("+v.red+","+v.green+","+v.blue+");"):""};
_.Gn=function(v,e){if(!v.includes("DATE_PLACEHOLDER"))return v;var d=new Date(0);d.setUTCSeconds(e);return v.replace("DATE_PLACEHOLDER",Zxj(d))};
c63=function(v,e,d){return function(E){var T=v.command;T&&(LM(T,{form:{element:d}}),e([T],E))}};
FtM=function(v,e,d,E,T){return function(S){var O=wR$(v,e);O&&LM(O,{form:{element:d},commandController:E});T&&S.stopPropagation()}};
wR$=function(v,e){if(v.signInEndpoint&&!_.N("web_subscribe_sign_in_endpoint_killswitch"))return v.signInEndpoint;if(e){if(v.serviceEndpoints)return v.serviceEndpoints[1];if(v.onUnsubscribeEndpoints)return v.onUnsubscribeEndpoints[0]}else{if(v.serviceEndpoints)return v.serviceEndpoints[0];if(v.onSubscribeEndpoints)return v.onSubscribeEndpoints[0]}};
Qw7=function(v,e){var d,E,T,S;e=e&&((d=v.unsubscribeAccessibility)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label)||((T=v.subscribeAccessibility)==null?void 0:(S=T.accessibilityData)==null?void 0:S.label);return v.longSubscriberCountText?[e,_.vv(v.longSubscriberCountText)].filter(function(O){return O}).join(" "):e};
MP=function(v,e){return e||(v==null?0:v.isChannelDelegate)?"disabled":"active"};
gA7=function(v,e){var d;switch((d=v.style)==null?void 0:d.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:MP(v)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:MP(v)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:MP(v,!0)};case "OVERLAY":return e?{style:"overlay",type:"tonal",state:MP(v)}:{style:"overlay",type:"filled",state:MP(v)};default:return e?{style:"mono",type:"tonal",state:MP(v)}:{style:"mono",type:"filled",state:MP(v)}}};
_.tX=function(){for(var v=[],e=_.a(_.Xa.apply(0,arguments)),d=e.next();!d.done;d=e.next())if(d=d.value)if(typeof d==="string")v.push(d);else{d=_.a(Object.entries(d));for(var E=d.next();!E.done;E=d.next()){var T=_.a(E.value);E=T.next().value;(T=T.next().value)&&v.push(E)}}return v.join(" ")};
u_t=function(v){switch(v){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
nAL=function(v){switch(v){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
DWO=function(v,e){var d=v.map(function(E){return E.toString()});
return _.rq(function(E){if(d.includes(E.key)){e&&E.preventDefault();var T;(T=E.currentTarget)==null||T.click()}})};
_.UWM=function(){return DWO(["Enter"])};
_.pRt=function(){return DWO(["Enter"," "],!0)};
_.fv=function(v){if(v.composedPath)return v.composedPath();if(!v.__composedPath){for(var e=[],d=v.target;d;)e.push(d),d=d.parentNode;e.push(window);v.__composedPath=e}return v.__composedPath};
_.R7=function(v,e,d){v=_.a(v);for(var E=v.next();!E.done;E=v.next()){E=E.value;if(E===e)break;for(var T=_.a(d),S=T.next();!S.done;S=T.next())if(S=S.value,E.tagName===S||E.role==="button"&&S==="BUTTON")return!0}return!1};
eFW=function(v,e){var d,E=(d=e.observer)!=null?d:_.dk().resolve(dm);if(v){d=vF$(v);var T=[];e.showOption&&T.push(E.observe(v,function(){e.visibilityCallback(!0,v)},e.showOption));
e.hideOption&&T.push(E.observe(v,function(){e.visibilityCallback(!1,v)},e.hideOption));
e.prescanOption&&e.prescanCallback&&T.push(E.observe(v,function(){e.prescanCallback()},e.prescanOption));
var S;d.visibilityMonitorKeys=((S=d.visibilityMonitorKeys)!=null?S:[]).concat(T)}};
vF$=function(v){var e;return(e=v.polymerController)!=null?e:v};
_.xz=function(v){return!!_.P5(v)};
_.B5=function(v,e,d,E,T){return function(S){var O=YtH();_.o_(function(){if(S){dX$(S,v(),T);var b=EFO(S,v(),e,d,E,O);_.Jf(b)}},"nr377e")}};
dX$=function(v,e,d){var E=T0W(e),T=S7j(e);e=E&&WcH;var S=T&&aA0;(E||T)&&eFW(v,{visibilityCallback:function(O){var b=_.dk().resolve(_.EI);O&&E?b.resolveCommand(E,{form:{element:d?v:void 0},disableClickTracking:!0}):!O&&T&&b.resolveCommand(T,{form:{element:d?v:void 0},disableClickTracking:!0})},
showOption:e,hideOption:S})};
EFO=function(v,e,d,E,T,S){var O=new Map;if(e=_.P5(e)){var b;v=(E==null?void 0:(b=E.onTap)==null?void 0:b.value)||v;d=iNL(e,v,d==null?void 0:d.onTap,T,S);v.addEventListener("click",d);O.set("click",d)}return function(){for(var Y=_.a(O),q=Y.next();!q.done;q=Y.next()){var r=_.a(q.value);q=r.next().value;r=r.next().value;v.removeEventListener(q,r)}}};
_.P5=function(v){var e;return(v=(e=_.L(v,ONW))==null?void 0:e.onTap)&&_.lk(v)};
T0W=function(v){var e;return(v=(e=_.L(v,ONW))==null?void 0:e.onVisible)&&_.lk(v)};
S7j=function(v){var e;return(v=(e=_.L(v,ONW))==null?void 0:e.onHidden)&&_.lk(v)};
iNL=function(v,e,d,E,T){var S=function(b){_.dk().resolve(_.EI).resolveCommand(v,b)},O=function(b){E&&_.R7(_.fv(b),e,E)||S(b.target?{form:{element:b.target,
sourceData:v,mutationContext:T}}:void 0)};
d&&(O=function(b){d(b,S)});
return O};
IAM=function(v){switch(v){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}};
bNW=function(v){var e=v.numAvatarsInCluster;switch(v.clusterSize){case "small":return e===2?22:18;case "40":return e===2?24:22;default:return e===2?24:20}};
Y77=function(v,e){return function(d){var E=Object.keys(e);_.o_(function(){if(v!=null&&v()){for(var T=_.a(E),S=T.next();!S.done;S=T.next())S=S.value,d.addEventListener(S,e[S]);_.Jf(function(){for(var O=_.a(E),b=O.next();!b.done;b=O.next())b=b.value,d.removeEventListener(b,e[b])})}},"bXZGfe")}};
mXO=function(v){switch(bNW(v)){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""}};
ySM=function(v){switch(v){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""}};
q7O=function(v){switch(bNW(v)){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""}};
rSM=function(v){switch(v){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""}};
hFj=function(v){switch(v){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}};
KcM=function(v){return v==="medium"||v==="48"||v==="large"||v==="extra-large"||v==="extra-extra-large"||v==="giant"};
$Xt=function(v){return!!((v==null?0:v.includes(3))||(v==null?0:v.includes(5)))};
sN3=function(v){return{size:jNj(v.data.avatarImageSize),onTap:v.onTap,decorations:v.decorations||[],badgeText:v.badgeText,accessibilityText:v.accessibilityText,avatarButtonCustomClassName:v.avatarButtonCustomClassName,clusterLayoutConfig:v.clusterLayoutConfig}};
jNj=function(v){switch(v){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"}};
N00=function(v){switch(v){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}};
kF0=function(v){switch(v){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""}};
Lct=function(v){var e=v.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",d,E=v.avatars&&v.avatars.length>0?(d=_.L(v.avatars[0],_.Cv))==null?void 0:d.avatarImageSize:"AVATAR_SIZE_UNKNOWN";d=N00(E)||0;if(e){var T,S=(T=v.avatarClusterSize)!=null?T:"AVATAR_SIZE_M";e=N00(S);var O,b,Y=Math.min((b=(O=v.avatars)==null?void 0:O.length)!=null?b:0,4),q;return{avatars:((q=v.avatars)==null?void 0:q.slice(0,4))||[],avatarSizeInPx:d,avatarStackStyle:{width:e+"px",height:e+"px",position:"relative"},avatarStyle:function(h){var K=
bNW({clusterSize:jNj(S),numAvatarsInCluster:Y,avatarIndex:h});var k=N00(S);Y===3&&h===2?(k=(k-K)/2,k=(_.Bb("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*k):k=void 0;return{position:"absolute",top:Y===2&&h===1||Y===3&&h===2||Y===4&&h>=2?"0":void 0,bottom:Y===2&&h===0||Y>2&&h<2?"0":void 0,left:Y===2&&h===1||Y>2&&(h===1||h===3)?"0":void 0,right:Y<=3&&h===0||Y===4&&(h===0||h===2)?"0":void 0,transform:k?"translateX("+k+"px)":void 0,width:K+"px",height:K+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(h){return{clusterSize:jNj(v.avatarClusterSize),numAvatarsInCluster:Y,avatarIndex:h}},
avatarButtonCustomClassName:void 0}}var r;return{avatars:((r=v.avatars)==null?void 0:r.slice())||[],avatarSizeInPx:d,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:kF0(E),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
VbM=function(v,e,d){return function(){LM(v,{form:{element:e},commandController:d})}};
oF3=function(v){switch(v){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
JSH=function(v){switch(v){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"}};
GFU=function(v){if("accessibilityText"in v)return v.accessibilityText||"";if("title"in v){var e,d,E;return((e=v.title)==null?void 0:(d=e.accessibility)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label)||""}if("accessibility"in v){var T,S;return((T=v.accessibility)==null?void 0:(S=T.accessibilityData)==null?void 0:S.label)||""}return""};
MbW=function(v){return"inlinePlayerData"in v};
Xc=function(v){return new tb3(v)};
fAt=function(v){return function(e){v&&(v.thumbnailElRef=e.thumbnailElRef,v.thumbnail=e.thumbnail,v.thumbnailOverlays=e.thumbnailOverlays,v.thumbnailSize=e.thumbnailSize)}};
RF$=function(v){switch(v){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"}};
xXU=function(v){var e=_.a(_.OE(!1,void 0,"RIOonf")),d=e.next().value,E=e.next().value;_.Gr(function(){var T=v==null?void 0:v();if(T){var S=_.dk().resolve(_.eG(PKS));if(S){var O={triggeringElement:T,onDwellTriggeredFn:function(){E(!0)},
onDwellEndFn:function(){E(!1)}};
S.registerElement(O);_.Jf(function(){_.zn(S,O)})}}});
return d};
B0j=function(v,e,d){d?d(e):_.wC(e,v.target?{form:{element:v.target}}:void 0)};
_.lH=function(v,e,d){return function(E){_.o_(function(){var T=new Map,S,O=(S=v())==null?void 0:S.onTap;O&&(S=function(b){a:{var Y=b.composedPath();Y=_.a(Y);for(var q=Y.next();!q.done;q=Y.next()){q=q.value;if(q===E)break;if(q.className.indexOf("HostIsClickableAdComponent")>=0||q.tagName==="A".toString()||q.tagName==="BUTTON".toString()){Y=!0;break a}}Y=!1}Y||B0j(b,O,e)},(d==null?0:d())||_.N("enable_web_home_top_landscape_image_layout_level_click")?(E.addEventListener("tap",S),T.set("tap",S)):(E.addEventListener("click",
S),T.set("click",S)));
_.Jf(function(){for(var b=_.a(T),Y=b.next();!Y.done;Y=b.next()){var q=_.a(Y.value);Y=q.next().value;q=q.next().value;E.removeEventListener(Y,q)}})},"NMyqj")}};
CKW=function(v,e){var d,E=(d=v.interaction)==null?void 0:d.onTap;if(v=_.Ag({elementsCommand:E,forceNewState:!0,skipOnClick:!0}))return v.onclick=function(T){z7W(T)&&(T.preventDefault(),E&&B0j(T,E,e))},cz(v)?v:void 0};
XpM=function(v){switch(v){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
zFs=function(v){switch(v){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"}};
lAt=function(v){switch(v){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"}};
_.HN3=function(v){return _.N("rich_grid_enable_dynamic_offset")&&v?Math.max(Math.round((v-_.Wi("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Wi("rich_grid_dynamic_offset_offset_per_100",10)),_.Wi("rich_grid_dynamic_offset_lower_bound",-60)):0};
ASL=function(v,e){switch(e){case 4:return 16;case 1:return v<528?16:v<1024?32:48;case 2:return(v>=528?16:8)/2;case 3:return(v<528?16:v<1024?32:48)+(v>=528?16:8)/2;default:return 0}};
ZNW=function(v){var e=v.originalContainerWidth;var d=v.sizing;var E=v.standardUnit;if(v.isCompactList&&e<528)return 1;switch(d){case "STANDARD":return E;case "COMPACT":return E+1;case "EXTRA_COMPACT":return _.N("web_responsive_extra_compact_2x")?E*2:_.N("web_responsive_current")?E===1?2:E%2===0?E/2*3:E+2:E<4?E*2:Math.ceil(E*3/2);case "MINI":return E>1?E*2:3;default:return E}};
wpt=function(v){var e=v.containerWidth;var d=v.peek;var E=v.gutter;var T=v.numItems;v=v.ignoreMaxWidthLimit;e=d?Math.max((e-d-E*T)/T,0):Math.max((e-E*(T-1))/T,0);return v?e:Math.min(e,cSS)};
_.AX=function(v){var e=v.containerWidth;var d=v.hasPeek;var E=v.sizing;var T=v.marginSettings;var S=v.isCompactList;var O=v.enableFullBleedForSingleCol;var b=v.standardUnitMinWidth;E=E||"STANDARD";d=!!d;v=e>=528?16:8;var Y=d?e>=528?48:24:0;T=ASL(e,T);var q=Math.max(e-T*2,0);b=_.N("kevlar_disable_min_width_override")?void 0:b;b=Math.min(Math.max(Math.floor((q-Y+v)/((b!=null?b:FcO)+_.HN3(e)+v)),1),6);var r=(O=!!O&&b===1)||b===1&&E!=="STANDARD";d=d||r?q:Math.min(q,(cSS+v)*b-v);E=ZNW({originalContainerWidth:e,
sizing:E,standardUnit:b,isCompactList:S});return{itemWidth:wpt({containerWidth:d,peek:Y,gutter:v,numItems:E,ignoreMaxWidthLimit:r}),gutter:v,maxContainerWidth:d,numItems:E,margin:O?0:T,contentMargin:ASL(e,1),typographyBump:wpt({containerWidth:d,peek:Y,gutter:v,numItems:b,ignoreMaxWidthLimit:r})>400&&!(S&&e<528),standardUnit:b}};
QNU=function(v){switch(v){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.gFt=function(v){if(v){var e;if((e=v.responsiveContainerConfiguration)==null?0:e.responsiveSize)return QNU(v.responsiveContainerConfiguration.responsiveSize);if(v.layoutSizing)switch(v.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"}}};
uQM=function(v){if(v.fullbleed)return 1;switch(v.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
pp0=function(v,e,d,E,T,S,O,b){a:if(v===4&&E==="LOCKUP_CONTENT_TYPE_SOURCE")var Y=1;else switch(v){case 3:Y=1;break a;default:Y=0}a:switch(v){case 4:S=!!(S&&S<100);break a;default:S=!1}a:switch(v){case 3:case 4:var q=E==="LOCKUP_CONTENT_TYPE_CHANNEL"||E==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:q=!1}a:switch(v){case 5:var r=!0;break a;case 4:r=!1;break a;default:r=!1}return{isOverlay:r,isCard:nF0(E,O),sizing:e!=null?e:"STANDARD",typographyBump:d!=null?d:!1,isTiny:S,isCentered:q,isCollection:DXS(E),
arrangement:Y,addMarginForFullbleed:v===1&&E!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:v===1&&E==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:UX3(E,T,b),disableRounding:v===5||nF0(E,O)||v===1&&E==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:DXS(E)?2:0,useLegacyTypography:!(b==null||!b.useLegacyTypography),useRichGridLegacyTypography:!(b==null||!b.useRichGridLegacyTypography)&&!_.N("web_enable_typography_bump"),compactMetadata:Y===0&&E==="LOCKUP_CONTENT_TYPE_VIDEO"}};
DXS=function(v){switch(v){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}};
nF0=function(v,e){if(e&&v==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(v){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
UX3=function(v,e,d){if(e&&(d==null||!d.alwaysRespectPodcastShowAspectRatio||v!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(v){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}};
vbs=function(v){switch(v){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"}};
e2L=function(v){switch(v){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
dzs=function(v){switch(v){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}};
_.Zx=function(v){if(v){var e;return((e=_.dk().resolve(_.eG(_.n1)))==null?0:e())?v.darkThemeImage:v.image}};
SX0=function(v,e,d,E,T,S){if(T&&S&&e==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:T,height:S};if(!d)return{};T=d.size;d=d.allowFullWidth;if(e==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&d)return{fullWidth:!0};if(T===void 0)return{};switch(v){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/EbS*T};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:T*
TS0,height:T};default:return(E==null?0:E.height)&&(E==null?0:E.width)?E.width/E.height>1?{maxWidth:T*TS0}:{maxWidth:T}:{maxWidth:T}}};
WAO=function(v){var e;return v&&((e=_.Zx(v.themedImage))!=null?e:v.image)};
auW=function(v){var e;return v==null?void 0:(e=v.sources)==null?void 0:e[0]};
i33=function(v){switch(v){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"}};
_.O3$=function(v){if(v)return"content-id-"+v};
IuU=function(v){switch(v.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"}}};
b3$=function(v){var e=_.c5.currentPageSubTypeSelector(_.pq().getState())||"";return v?v+e:""};
YX$=function(v){switch(v){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
yw0=function(v){var e=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],d=_.a(_.OE(void 0,void 0,"JrqNsb")),E=d.next().value,T=d.next().value,S=_.a(_.OE(void 0,void 0,"rWytse"));d=S.next().value;var O=S.next().value;S=_.a(_.OE(void 0,void 0,"DHRqxe"));var b=S.next().value,Y=S.next().value;return{touchFeedbackEvents:{pointerUpEvent:E,pointerDownEvent:d,pointerLeaveEvent:b},touchFeedbackOnPointerUp:_.rq(function(q){mzO(_.fv(q),e)||(T(q),O(void 0),Y(void 0))}),
touchFeedbackOnPointerDown:_.rq(function(q){v==null||v(q);mzO(_.fv(q),e)||(O(q),T(void 0),Y(void 0))}),
touchFeedbackOnPointerLeave:_.rq(function(q){mzO(_.fv(q),e)||(Y(q),O(void 0),T(void 0))})}};
mzO=function(v,e){e=e===void 0?[]:e;e=[].concat(_.t7(e),["BUTTON".toString()]);v=_.a(v);for(var d=v.next();!d.done;d=v.next()){d=d.value;for(var E=_.a(e),T=E.next();!T.done;T=E.next())if(d.tagName===T.value)return!0}return!1};
qX0=function(v){switch(v){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"}};
rwU=function(v){return v.scrollHeight-v.offsetHeight>1};
h20=function(v,e){var d;return uk(v,((d=v.content)==null?void 0:d.length)||0,!e)};
jKt=function(v,e,d,E,T,S){if(!e||KA7){var O;return uk(v,((O=v.content)==null?void 0:O.length)||0,!0)}e=E.value;if(!d.value||!e||!v.content)return v;d=0;E=v.content.length;O=0;$zS||($zS=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var b=$zS;for(T=T*S*b;d<=E;)S=Math.floor(d+(E-d)/2),b=uk(v,S)||v,e.firstChild&&(e.firstChild.textContent=b.content),e.scrollHeight>T?E=S-1:(O=S,d=S+1);return uk(v,O)};
sKs=function(v,e){var d,E;return(((d=v.content)==null?void 0:d.length)||0)>(((E=e.content)==null?void 0:E.length)||0)};
NS$=function(v,e,d,E,T,S){var O=_.nI("truncated-text-content"),b=_.nI("truncated-text-content"),Y=_.nI("button"),q=_.nI("button"),r=_.nI("button"),h=_.dk().resolve(_.U_),K=_.a(_.KM(function(){return h20(v(),T())})),k=K.next().value,J=K.next().value;
K=_.a(_.KM(function(){return sKs(v(),k())}));
var R=K.next().value,B=K.next().value,X=null;_.o_(function(){function Z(){if(O.value&&Y.value&&r.value){var g=S()?v():jKt(v(),T(),O,b,e(),d());J(g);requestAnimationFrame(function(){if(O.value&&Y.value&&r.value){var Q=rwU(O.value)||sKs(v(),g);B(Q);if(!E()){var v3=rwU(O.value),q7=d(),m0=O.value,$S=Y.value,kS=r.value,N7=h==="rtl";if(m0&&$S){var As=$S.offsetLeft;N7&&(As=m0.offsetWidth-$S.offsetWidth-$S.offsetLeft);if(Q){Q=$S.offsetWidth;$S=m0.offsetWidth;var Ct=v3?$S-Q-70:As-70;q7="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
q7+"rem,\n      #000 "+q7+"rem,\n      #000 100%), linear-gradient(\n      to "+((N7?"left":"right")+",\n      #000 0px,\n      #000 "+Ct+"px,\n      transparent "+(v3?$S-Q:Ct+70)+"px)");m0.style.setProperty("-webkit-mask-image",q7);m0.style.setProperty("mask-image",q7)}else m0.style.setProperty("-webkit-mask-image",""),m0.style.setProperty("mask-image","");v3?N7?(kS.style.setProperty("left","0"),kS.style.setProperty("right","unset")):(kS.style.setProperty("left",""),kS.style.setProperty("right",
"0")):N7?(kS.style.setProperty("left","unset"),kS.style.setProperty("right",As+"px")):(kS.style.setProperty("left",As+"px"),kS.style.setProperty("right","unset"))}}}})}}
var U,F;(U=X)==null||(F=U.stop)==null||F.call(U);U=new _.wB(Z,17);Z();X=U},"sZ7lhf");
_.Gr(function(){J(h20(v(),T()));B(sKs(v(),k()));var Z=function(){$zS=void 0;var F,g;(F=X)==null||(g=F.fire)==null||g.call(F)};
if(window.ResizeObserver){var U=new ResizeObserver(Z);U.observe(O.value);_.Jf(function(){var F,g;(F=X)==null||(g=F.stop)==null||g.call(F);U.disconnect()})}else window.addEventListener("resize",Z),_.Jf(function(){var F,g;
(F=X)==null||(g=F.stop)==null||g.call(F);window.removeEventListener("resize",Z)})});
return{isTruncated:R,displayText:k,contentRef:O,hiddenRef:b,placeholderTruncationTextRef:Y,hiddenTruncationTextRef:q,truncationTextRef:r}};
klO=function(v){return{content:v!=null?v:""}};
LA3=function(v){return _.lk(v.onTap)||_.P5(v.rendererContext)};
VF0=function(v){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:v.overflowMenuA11yLabel,onTap:function(e){e.preventDefault();e.stopPropagation();if(v.overflowMenuOnTap){var d=_.Ag({elementsCommand:v.overflowMenuOnTap,forceNewState:!0});if(d==null?0:d.onclick)d.onclick(e)}}}};
_.Fc=function(v,e,d,E,T){E=E===void 0?{}:E;if(!T||Math.random()<5E-4){e=e||null;d=d||null;v=v instanceof Error?v:new _.kL(v);if(v.args)for(var S=_.a(v.args),O=S.next();!O.done;O=S.next())O=O.value,O instanceof Object&&(E=Object.assign({},O,E));E.category="H5 Ads Control Flow";e&&(E.slot=e?"slot:  "+e.slotType:"");d&&(E.layout=d?"layout:  "+d.layoutType:"",E.layoutId=d.layoutId);T&&(E.known_error_aggressively_sampled=!0);v.args=[E];_.xf(v)}};
_.obL=function(v,e){_.b4(v,"yt-open-popup-action",[_.To(e),v])};
_.Q0=function(v,e){_.obL(v,_.pQ(e))};
Glt=function(v){if(!v)return"";if(Jw7[v])return Jw7[v];gB||(gB=_.hz("A"));gB.href!==v&&l6(gB,v);var e=gB.pathname;Jw7[v]=e.startsWith("/")?e:"/"+e;return Jw7[v]};
MFL=function(){var v=Glt(window.location.href);if(v==="/")return"home";if(v.startsWith("/results"))return"search";if(v.startsWith("/watch"))return"watch";if(v.startsWith("/shorts"))return"shorts";if(v.startsWith("/hashtag"))return"hashtag";if(v.startsWith("/create_channel"))return"create_channel";if(v.startsWith("/@")||v.startsWith("/user/")||v.startsWith("/channel/"))return"channel";if(v.startsWith("/experiments"))return"experiments";if(v.startsWith("/sponsor_channel"))return"sponsorship";if(v.startsWith("/select_site"))return"settings";
if(v.startsWith("/locate"))return"locate";if(v.startsWith("/redeem"))return"redeem";if(v.startsWith("/musicpremium")||v.startsWith("/premium")||v.startsWith("/red"))return"premium";if(v.startsWith("/paid_memberships"))return"paid_memberships";if(v.startsWith("/oops"))return"oops";if(v.startsWith("/clip"))return"clip";var e;return(uH==null?void 0:(e=uH.response)==null?void 0:e.page)==="404"?"404":v.startsWith("/feed/history")?"history":v.startsWith("/feed/library")?"library":v.startsWith("/feed/subscriptions")?
"subscriptions":v.startsWith("/feed/trending")?"trending":v.startsWith("/feed/news_destination")?"news":v.startsWith("/playlist")?"playlist":v.startsWith("/minor_moment")?"minor_moment":v.startsWith("/playable/")||v.match("^/playables/(?!saved).")?"mini_app":v.startsWith("/playables")?"playables":v.startsWith("/create/live/join")?"open_in_app":v.startsWith("/feed/explore")?"explore":"browse"};
_.Ppt=function(){var v=uH==null?void 0:uH.response,e=v==null?void 0:v.endpoint;if(!e)return(v==null?void 0:v.page)==="watch"?"watch":MFL();var d;v=(d=_.L(e==null?void 0:e.commandMetadata,_.$B))==null?void 0:d.webPageType;d=!1;if(v&&!tFL.includes(v))switch(v){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 E;return((E=_.L(e==null?void 0:e.commandMetadata,_.$B))==null?0:E.url)&&Glt(_.L(e.commandMetadata,_.$B).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var T;return(e=(T=_.L(e,_.Lo))==null?void 0:T.browseId)?fuS[e]||"browse":"browse";default:d=!0}if(_.L(e,_.nv)||_.L(e,R20))return"sponsorship";T=Glt(window.location.href);if(T.startsWith("/experiments"))return"experiments";if(T.startsWith("/create_channel"))return"create_channel";
if(_.L(e,_.wb)&&T.startsWith("/shorts"))return"shorts";if(_.L(e,_.wb)&&T.startsWith("/watch"))return"watch";d&&(e=new _.kL("Unsupported mWeb page type",{pathname:T,webPageType:v}),_.RI(e));return"browse"};
Dx=function(v,e,d,E){return v&&e?v!==d||e!==E?(_.Fc(Error("Jh"),void 0,void 0,{"stored-slot":v,"stored-layout":e,"latest-slot":d,"latest-layout":E}),!1):!0:!1};
BSt=function(v,e,d){return v({targetId:e},function(E){return d.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},E,{contents:[d.continuationItems?_.L(d.continuationItems[0],xzH):{}]}):d.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},E,{header:d.continuationItems?d.continuationItems[0]:void 0}):Object.assign({},E,{contents:d.continuationItems?d.continuationItems:[]})})};
Cp$=function(v,e,d,E){if(e=e.trackingParams){var T,S=(T=d.getScreenLayer)==null?void 0:T.call(d);d=_.zz(S);T=_.Xf(S);if(d&&T){var O=_.Jg(e);_.N("combine_ve_grafts")?v.graftServerVe(e,T,S):_.Qa(d,T,O);E==null||E(O)}}};
z2$=function(v){var e;return((e=XSM.get(v))==null?void 0:e.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
AwW=function(v,e){var d={type:e.slotType,controlFlowManagerLayer:lut.get(e.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};e.slotEntryTrigger&&(d.entryTriggerType=e.slotEntryTrigger.triggerType);e.slotPhysicalPosition!==1&&(d.slotPhysicalPosition=e.slotPhysicalPosition);if(v){d.debugData={slotId:e.slotId};if(v=e.slotEntryTrigger)d.debugData.slotEntryTriggerData=H3U(v);v=e.slotFulfillmentTriggers;d.debugData.fulfillmentTriggerData=[];v=_.a(v);for(var E=v.next();!E.done;E=v.next())d.debugData.fulfillmentTriggerData.push(H3U(E.value));
e=e.slotExpirationTriggers;d.debugData.expirationTriggerData=[];e=_.a(e);for(v=e.next();!v.done;v=e.next())d.debugData.expirationTriggerData.push(H3U(v.value))}return d};
H3U=function(v,e){var d={type:v.triggerType};e!=null&&(d.category=e);v.triggeringSlotId!=null&&(d.triggerSourceData||(d.triggerSourceData={}),d.triggerSourceData.associatedSlotId=v.triggeringSlotId);v.triggeringLayoutId!=null&&(d.triggerSourceData||(d.triggerSourceData={}),d.triggerSourceData.associatedLayoutId=v.triggeringLayoutId);return d};
Z3s=function(v,e,d,E){e={opportunityType:e};v&&(E||d)&&(E=_.R2(E||[],function(T){return AwW(v,T)}),e.debugData=Object.assign({},d&&d.length>0?{associatedSlotId:d}:{},E.length>0?{slots:E}:{}));
return e};
cw3=function(v){return UK(v.opportunityAdapterMap).concat(UK(v.triggerAdapterMap)).concat(UK(v.fulfillmentAdapterFactoryMap)).concat(UK(v.slotAdapterFactoryMap)).concat(UK(v.layoutRenderingAdapterFactoryMap))};
UK=function(v){var e=[];v=_.a(v.values());for(var d=v.next();!d.done;d=v.next())d=d.value,d.isAdsControlFlowEventListener&&e.push(d);return e};
vj=function(v){var e=v.slotId,d=v.slotType,E=v.slotPhysicalPosition;return e===void 0?new pv("Cannot construct a slot due to the missing id.",{adSlotMetadata:v}):d===void 0?new pv("Cannot construct a slot due to the missing type.",{adSlotMetadata:v}):E===void 0?new pv("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:v}):{slotId:e,slotType:d,slotPhysicalPosition:E,managerLayer:"external",adSlotLoggingData:v.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new wSW}};
FA0=function(v){var e=v.layoutId,d=v.layoutType;return e===void 0?new eB("Cannot construct a layout due to the missing id.",{adLayoutMetadata:v}):d===void 0?new eB("Cannot construct a layout due to the missing type.",{adLayoutMetadata:v}):{layoutId:e,layoutType:d,managerLayer:"external",adLayoutLoggingData:v.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new wSW,interactionLoggingAdsClientData:{}}};
QKL=function(v){if(v.querySelector("img")){var e=v.querySelector("img");e.addEventListener("error",function(){o$W(e.src).then(function(d){(d=_.B$(d).toString())?e.src=d:e.removeAttribute("src")}).catch(function(){e.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
ER=function(v,e){if(e&&(gbW(e.viewableCommand)||gbW(e.endOfSessionCommand))){var d=ud3(e==null?void 0:e.viewableCommand);e=ud3(e==null?void 0:e.endOfSessionCommand);if(!dp){var E=_.Wi("custom_active_view_tos_timeout_ms");dp=E>0&&E!==36E5?new nbL(Dzt(),E):new nbL(Dzt())}UzL(dp,v);pS0(dp,v,d,e)}};
TU=function(v){dp&&UzL(dp,v)};
Dzt=function(){var v=_.Bb("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(v==null?void 0:v.length)===2?v[1]:null};
gbW=function(v){v=_.lk(v);return!(v==null||!v.loggingUrls)&&v.loggingUrls.length>0};
ud3=function(v){if(!v)return[];var e=[],d,E;((E=(d=_.lk(v))==null?void 0:d.loggingUrls)!=null?E:[]).forEach(function(T){T.baseUrl&&e.push(T.baseUrl)});
return e};
v60=function(v){if(_.N("stop_av_measurement_on_detach"))return function(){TU(v)}};
eqt=function(v){return function(){_.N("stop_av_measurement_on_detach")&&TU(v)}};
db0=function(v){if(_.N("stop_av_measurement_on_detach"))return function(){TU(v)}};
E6s=function(v){return v.shorts.isDesktopSmallWidth};
_.TMU=function(v){return v.shorts.isShortsActive};
_.S87=function(v){return v.shorts.isWatchWhileMode};
_.SB=function(v){return v.shorts.isFullscreen};
_.Wj=function(v){return v.shorts.isShortsPipActive};
aE0=function(v){var e,d;if(v=(e=_.L(v.reelsAdCardButtoned,W6t))==null?void 0:(d=e.animatedRenderingConfig)==null?void 0:d.easeOutSeconds)return v+"s"};
OmS=function(v,e,d){return _.I(function(E){return E.return(new Promise(function(T){var S=new Image;S.onload=function(){T(new imH(v,e,d,S.naturalWidth,S.naturalHeight))};
S.src=d.toString()}))})};
IE$=function(v,e){return Math.round(v/1E-5)===Math.round(e/1E-5)};
bmM=function(v,e){return Math.round(v/1E-5)===Math.round(e/1E-5)};
Y8S=function(v,e){return v.year===e.year&&v.month===e.month&&v.day===e.day};
mb$=function(v,e){return v.year!==e.year?v.year<e.year:v.month!==e.month?v.month<e.month:v.day<e.day};
q8U=function(v){return v.day===yDt(v.year,v.month)?v.month===11?{year:v.year+1,month:0,day:1}:{year:v.year,month:v.month+1,day:1}:{year:v.year,month:v.month,day:v.day+1}};
rD3=function(){var v=new Date,e={year:v.getFullYear(),month:v.getMonth(),day:v.getDate()};return{start:e,end:{year:v.getFullYear()+2,month:v.getMonth(),day:v.getDate()},selectedDate:q8U(e)}};
hqM=function(v){return(new DY(2)).format(new Date(v.year,v.month,v.day))};
K6M=function(v){return{year:v.getFullYear(),month:v.getMonth(),day:v.getDate()}};
$b3=function(v,e){v=(v+(Number(e.utcOffsetSec)+(new Date(v*1E3)).getTimezoneOffset()*60))*1E3;e=K6M(new Date(v));return{date:e,secondsSinceMidnight:Math.floor((v-(new Date(e.year,e.month,e.day)).getTime())/1E3)}};
jT0=function(v,e){e=e.months.findIndex(function(d){return d.year===v.year&&d.month===v.month});
return e>=0?e:void 0};
sTO=function(v){if(!v)return!1;try{if(v.host&&v.host.tagName==="YT-FORMATTED-STRING"&&v.host.id==="contenteditable-textarea"||v.nodeType===Node.ELEMENT_NODE&&v.tagName==="YTD-COMMENTBOX")return!0}catch(e){return!1}return sTO(v.parentNode)};
at=function(v){return v?!(v.tagName!=="A"||!v.href||!v.classList.contains("yt-simple-endpoint")):!1};
NMW=function(v){return v?v.tagName==="IMG"&&v.classList.contains("emoji"):!1};
ki0=function(v,e,d){if(!v)return null;var E=at(v);if(E&&d)return e=v.pathname.substring(v.pathname.indexOf("/channel/")+9),document.createTextNode("@"+e);if(E&&!d)return document.createTextNode("");if(NMW(v))return d=v.alt,v=v.dataset.emojiId,!v&&e&&(e=_.iw(e,d))&&e.isCustomEmoji&&(v=e.emojiId),v?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+v+">"):document.createTextNode(d);E=v.cloneNode(!1);for(var T=0;T<v.childNodes.length;++T){var S=ki0(v.childNodes[T],e,d);S&&E.appendChild(S)}return E};
OR=function(v){return v?at(v)?v:OR(v.lastChild):null};
L6$=function(v){return v?at(v)?v:L6$(v.firstChild):null};
Vfs=function(v){if(!v)return null;for(var e=v.previousSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.previousSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.previousSibling;else break;(e=OR(e))?v=e:v=(v=v.parentNode)?OR(v.previousElementSibling):null;return v};
o60=function(v){if(!v)return null;for(var e=v.nextSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.nextSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.nextSibling;else break;return(e=L6$(e))?e:o60(v.parentNode)};
JDW=function(v){var e=_.It(),d=e.JSC$11327_getStartNode();if(!sTO(d.parentNode))return null;e=e.JSC$11327_getStartOffset();if(d.nodeType===Node.TEXT_NODE){var E=_.Xv(d,at);if(E){if(v&&e===0||!v&&e===d.length)return E}else{if(v&&e===d.length)return!d||d.nodeName==="BR"||d.nextElementSibling&&_.bw(d.nextElementSibling,"display")==="block"?null:L6$(d.nextElementSibling);if(!v&&e===0)return d?OR(d.previousElementSibling):null}}if(d.nodeType===Node.ELEMENT_NODE)if(v){if(0<=e&&e<d.childNodes.length)return L6$(d.childNodes[e])}else if(0<
e&&e<=d.childNodes.length)return OR(d.childNodes[e-1]);return null};
Gi$=function(v,e,d){if(!v)return null;if(v.nodeType===Node.TEXT_NODE)if(d){var E=Vfs(v);if(E&&!/^\s+\S/.test(v.wholeText.substr(0,e)))return E}else if((E=o60(v))&&!/\S\s+/.test(v.wholeText.substr(e,v.wholeText.length)))return E;return v.nodeType===Node.ELEMENT_NODE?d?Vfs(v.childNodes[e]):o60(v.childNodes[e]):Gi$(v.parentNode,e,d)};
Mf7=function(v){if(v.hasChildNodes())switch(v.tagName){case "DIV":case "A":case "SPAN":var e="";for(v=v.firstChild;v;v=v.nextSibling)e+=Mf7(v);return e;default:return""}else switch(v.nodeType){case 3:return v.textContent;default:return""}};
Yp=function(v,e){return v.year===e.year&&v.month===e.month&&v.day===e.day};
mC=function(v,e){return v.year!==e.year?v.year<e.year:v.month!==e.month?v.month<e.month:v.day<e.day};
tf7=function(v){return{year:v.getFullYear(),month:v.getMonth(),day:v.getDate()}};
fE0=function(v){var e=VN3;e=e===void 0?VN3:e;e(new Date(v.year,v.month,v.day))};
yZ=function(v){return tf7(new Date(Number(v.seconds)*1E3))};
RqS=function(v){return v.year!==void 0&&v.month!==void 0&&v.day!==void 0};
PuU=function(v){return v.start!==void 0&&v.end!==void 0};
xbj=function(v){return PuU(v)?v.start:v};
BM3=function(v){return PuU(v)?v.end:void 0};
XI3=function(v,e){for(var d=[],E=new Date(v.start.year,v.start.month);E.getFullYear()<v.end.year||E.getFullYear()===v.end.year&&E.getMonth()<=v.end.month;){var T=d,S=T.push,O=E.getFullYear(),b=E.getMonth(),Y=v,q=e,r=void 0,h=[],K=Object.freeze({extraCssClass:"invisible"}),k=new Date(O,b),J=tf7(k);k=k.getDay();for(var R=tf7(new Date);J.month===b;){k!==Cu0&&r||(r=Array.from({length:7}).fill(K),h.push(r));var B={date:{year:O,month:b,day:J.day},extraCssClass:"",debugClass:""};B.extraCssClass=q(B.date,
J,R,Y).trim();r[(k-Cu0+7)%7]=B;J=J.day===yDt(J.year,J.month)?J.month===11?{year:J.year+1,month:0,day:1}:{year:J.year,month:J.month+1,day:1}:{year:J.year,month:J.month,day:J.day+1};k=(k+1)%7}S.call(T,{weeks:h,monthLabel:q0.SHORTMONTHS[b]+" "+O,year:O,month:b,monthLabelExtraCssClass:h[0][2]===K?"shift-down-label":""});E.setMonth(E.getMonth()+1)}return d};
zq0=function(v,e){e=e.months.findIndex(function(d){return d.year===v.year&&d.month===v.month});
return e>=0?e:void 0};
Hm0=function(v,e){a:{var d=d===void 0?[2,3]:d;d=_.a(d);for(var E=d.next();!E.done;E=d.next()){var T=new Date;if((new lEO(E.value)).parse(e,T,{validate:!0})){T.setHours(0,0,0,0);e=T;break a}}e=null}if(!e)return{isValid:!1,value:void 0};e=tf7(e);d=v.end;return mC(e,v.start)||mC(d,e)?{isValid:!1,value:void 0}:{isValid:!0,value:e}};
F6M=function(v){var e=ADU;e=e===void 0?ZmM:e;var d=v.columnsToShow||[],E=cD0(v.columnDimensions,v.columnsToShow,v.leftFloatingColumns,e);return d.map(function(T,S){var O=v.columns[T];if(O===void 0)throw Error("Ph");var b=E?E[S]:"";var Y=v.getCustomTooltip?v.getCustomTooltip(T,O.headerTooltipParagraphs):O.headerTooltipParagraphs;var q=wIt(v,T);return{type:T,index:S,style:b,classes:q,headerName:O.headerName||"",headerIcon:O.headerIcon,headerTooltipParagraphs:Y||[],headerTooltipHelpContext:O.headerTooltipHelpContext,
sortOrders:O.sortOrders||[],selectionState:O.isSelectionCheckbox?v.selectionState:void 0}})};
wIt=function(v,e){var d=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],E=v.columns[e];if(E===void 0)return"";var T=d.includes("DEFAULTS")&&E.cssClass?[E.cssClass]:[];if(d.includes("SORTING")){E.sortOrders&&E.sortOrders.length&&T.push("sortable");if(v.sorting&&v.sorting.columnType===e)a:switch(v.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var S="column-sorted";break a;default:S=""}else S="";S&&T.push(S)}d.includes("FLOATING")&&(e=v.columnsToShow.indexOf(e),v.leftFloatingColumns&&e<v.leftFloatingColumns&&
T.push("floating-column"),v.leftFloatingColumns&&e===v.leftFloatingColumns-1&&T.push("last-floating-column"));d.includes("RIGHT_ALIGN")&&E.rightAlignHeader&&T.push("right-align");return T.filter(function(O){return O}).join(" ")};
cD0=function(v,e,d,E){d=d===void 0?0:d;E=E===void 0?ZmM:E;if(v){var T=[],S=0;QTM(v,e,E).forEach(function(O,b){var Y="min-width:"+O.minWidth+"px;padding-left:"+O.paddingLeft+"px;padding-right:"+O.paddingRight+"px;flex:"+O.flexGrow+" 0 "+O.minWidth+"px;";O.maxWidth!==Infinity&&(Y=[Y,"max-width:"+O.maxWidth+"px;"].join(""));S>0&&b<d&&(Y=[Y,"left:"+S+"px;"].join(""));T.push(Y);S+=O.minWidth+O.paddingLeft+O.paddingRight});
return T}};
QTM=function(v,e,d){d=d===void 0?ZmM:d;return e.map(function(E,T){E=v&&v[E]||{};var S=T===0?d.paddingLeftFirstColumn:d.padding;E.paddingLeft!==void 0&&(S=E.paddingLeft);T=T===e.length-1?d.paddingRightLastColumn:d.padding;E.paddingRight!==void 0&&(T=E.paddingRight);return{paddingLeft:S,paddingRight:T,minWidth:E.minWidth!==void 0?E.minWidth:d.minWidth,maxWidth:E.maxWidth!==void 0?E.maxWidth:d.maxWidth,flexGrow:E.flexGrow!==void 0?E.flexGrow:d.flexGrow}})};
g6W=function(v){var e=v.reduce(function(E,T){var S=T.columnId,O={};T.headerText&&(O.headerName=_.vv(T.headerText));T.rightAlignHeader&&(O.rightAlignHeader=T.rightAlignHeader);var b;if((b=T.headerIcon)==null?0:b.iconType)O.headerIcon=_.qC(T.headerIcon.iconType);E[S]=O;return E},{}),d=v.filter(function(E){return!E.hideColumn}).map(function(E){return E.columnId});
v=v.filter(function(E){return!!E.dimensions}).reduce(function(E,T){E[T.columnId]=T.dimensions;
return E},{});
return{columns:e,columnsToShow:d,columnDimensions:v}};
_.ulU=function(v){return v?v.simpleText?v.simpleText:v.runs?v.runs.map(function(e){return e.text}).join(""):"":""};
vdO=function(v){var e=v.data;var d=v.onTap;var E=v.isSelected;var T=v.onFocusIn;if(!e)return{};v=n6M(e);E===void 0&&(E=e==null?void 0:e.isSelected);var S;return{text:Dbj(e,v),startIcon:(S=e.icon)==null?void 0:S.iconType,state:E?0:2,type:0,onTap:Ub0(e,d),accessibilityLabel:pIS(e,v),onFocusIn:function(){return T==null?void 0:T()}}};
Dbj=function(v,e){if(!e)return v.text?_.ulU(v.text):void 0};
Ub0=function(v,e){return function(d){e==null||e(d,v)}};
n6M=function(v){v=v.style&&v.style.styleType;return!KA7&&v==="STYLE_EXPLORE_LAUNCHER_CHIP"};
pIS=function(v,e){if(e){var d,E,T;return(T=(d=v.accessibilityData)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label)!=null?T:Dbj(v,!1)}};
rp=function(v){return{signalAction:{signal:v}}};
Eds=function(){return _.Bb("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?e9t:_.dQ3};
T_U=function(v,e){v=v===void 0?"SOFT_RELOAD_PAGE":v;e=e===void 0?49504:e;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.WK(_.sz("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:e}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:v}}]}}}};
Sx7=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.WK(_.sz("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Eds()}};
WoM=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.WK(_.sz("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Eds()}};
av3=function(v,e){var d=_.WK(_.sz("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),E=_.WK(_.sz("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),T={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.WK(_.sz("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};T.serviceEndpoint=v?v:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[rp("SOFT_RELOAD_PAGE")]}};return{title:d,bodyText:E,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:T},
style:{value:e!=null?e:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
Obt=function(v){v=v===void 0?{}:v;return{title:_.WK(v.localizedZeroStateTitleText===void 0?"":v.localizedZeroStateTitleText),bodyText:_.WK(v.localizedZeroStateMessage===void 0?"":v.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.WK(v.localizedZeroStateButtonText===void 0?"":v.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[ibW]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
bb3=function(v){v=v===void 0?{}:v;return{title:_.WK(v.localizedOptInBannerTitleText===void 0?"":v.localizedOptInBannerTitleText),titleLength:19,subtitle:_.WK(v.localizedOptInMessage===void 0?"":v.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.WK(_.sz("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:_.WK(_.sz("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:[IvM]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
y$j=function(v,e){var d=e=e===void 0?{}:e;e=d.offlineTitleText===void 0?"":d.offlineTitleText;var E=d.offlineDescriptionText===void 0?"":d.offlineDescriptionText,T=d.formattedSupplementalText,S=d.actionButtonText===void 0?"":d.actionButtonText,O=d.titleText===void 0?"":d.titleText;d=d.descriptionText===void 0?"":d.descriptionText;var b={title:S,accessibilityText:S,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{urlEndpoint:{url:"https://www.youtube.com/premium"},commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",webPageType:"WEB_PAGE_TYPE_PROMO"}}}}};v||(O=e,d=E,b={title:S,accessibilityText:S,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.WK(O),
titleLength:O.length,overrideTitleMaxFontSize:30,subtitle:_.WK(d),supplementalText:T,primaryButton:{buttonViewModel:b},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[YxH]},darkTileImage:{thumbnails:[mQ0]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.h9S=function(v,e,d,E,T,S,O,b,Y,q,r){T=T===void 0?!1:T;S=S===void 0?!1:S;O=O===void 0?0:O;b=b===void 0?-Infinity:b;Y=Y===void 0?!1:Y;q=q===void 0?!1:q;r=r===void 0?!1:r;var h=[],K=_.WK(_.sz("SMART_DOWNLOADS",void 0,"Smart downloads")),k=_.WK(qxM(O,b,v.length));b=O=void 0;q?O={statementBannerRenderer:y$j(r,E)}:T?v.length>0?b=r$L(v,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.N("kevlar_manual_downloads_above"),K,k):Y?b={alertBannerViewModel:{heading:{content:d.localizedOptInBannerTitleText===
void 0?"":d.localizedOptInBannerTitleText},body:{content:d.localizedPromptMessage===void 0?"":d.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.sz("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.sz("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:_.zx0}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:S&&(b={backgroundPromoRenderer:{bodyText:_.WK(_.sz("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"}}}):
S&&(b={alertBannerViewModel:{heading:{content:d.localizedOptInBannerTitleText===void 0?"":d.localizedOptInBannerTitleText},body:{content:d.localizedOptInMessage===void 0?"":d.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.sz("TURN_ON",void 0,"Turn on"),accessibilityText:_.sz("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}}}}}});d=_.WK(_.sz("YOUR_DOWNLOADS",void 0,"Your downloads"));E=void 0;e.length>0?(E=void 0,_.N("kevlar_display_downloads_numbers")&&(E=_.WK(_.Ng("VIDEO_COUNT",e.length))),E=r$L(e,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,d,E)):T||v.length||
q||(E={backgroundPromoRenderer:{bodyText:_.WK(_.sz("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}}}});O?h.push({richSectionRenderer:{content:O}}):b&&!_.N("kevlar_manual_downloads_above")&&h.push({richSectionRenderer:{content:b,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
E&&h.push({richSectionRenderer:{content:E,loggingDirectives:{clientVeSpec:{uiType:51721}}}});b&&_.N("kevlar_manual_downloads_above")&&h.push({richSectionRenderer:{content:b,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(e.length>0||T&&v.length>0&&!q)&&h.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.WK(_.sz("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:h}};
_.$QL=function(v){return KoW(v,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.jXU=function(v){return KoW(v,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
KoW=function(v,e){var d=[];v=r$L(v,e,!0);d.push({richSectionRenderer:{content:v}});return{contents:d}};
r$L=function(v,e,d,E,T){d=d===void 0?!1:d;var S="RESPONSIVE_SIZE_STANDARD";_.N("kevlar_modern_downloads_compact")?S="RESPONSIVE_SIZE_COMPACT":_.N("kevlar_modern_downloads_extra_compact")&&(S="RESPONSIVE_SIZE_EXTRA_COMPACT");v={isExpanded:d,contents:h1(v),entitySelectorType:e,responsiveContainerConfiguration:{responsiveSize:S}};E&&(v.title=E);T&&(v.subtitle=T);d||(_.N("kevlar_smart_downloads_show_more_button")?(v.showMoreButton={buttonRenderer:{accessibility:{label:_.sz("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.WK(_.sz("SHOW_MORE",void 0,"Show more"))}},v.showLessButton={buttonRenderer:{accessibility:{label:_.sz("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.WK(_.sz("SHOW_LESS",void 0,"Show less"))}}):(v.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.sz("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}}}},v.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.sz("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}}}},v.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.sz("VIEW_ALL",void 0,"View all"),accessibilityText:_.sz("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:_.Ta("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:v}};
h1=function(v){var e=[];v=_.a(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value,sg0(d)){var E=e,T=E.push;var S=void 0;if(d==null?0:(S=d.videoEntity)==null?0:S.videoId){S=wg(_.d1().getState(),d.videoEntity.videoId);var O=_.d1().getState();var b=_.rg(d.videoEntity.videoId,"mainVideoEntity");O=!!_.fQ(O.entities)[b];O={videoId:d.videoEntity.videoId,title:aG(d.videoEntity.title),shortBylineText:aG(d.channelEntity.title),thumbnail:d.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:O&&_.N("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:USM(d.videoEntity.videoId,S,d.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.sz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};d.videoEntity.lengthSeconds&&(O.thumbnailOverlays=ND0(d.videoEntity.lengthSeconds,S));O.isWatched=S>0;_.N("kevlar_modern_downloads_page")&&(O.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:d.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.sz("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},O.badges=void 0);d=O}else d={};T.call(E,{richItemRenderer:{content:{videoRenderer:d},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(jgM(d)){E=e;T=E.push;var Y=b=S=void 0,q=void 0,r=void 0,h=void 0,K=void 0,k=void 0,J=void 0,R=void 0,B=void 0,X=void 0;O=d.mainPlaylistEntity.playlistId;var Z=d==null?void 0:(X=d.mainPlaylistEntity)==null?void 0:(B=X.thumbnailStyleData)==null?void 0:(R=B[0])==null?void 0:(J=R.value)==null?void 0:(k=J.collageThumbnail)==
null?void 0:k.coverThumbnail;if(O&&Z){k=pAt(O);!_.N("enable_offline_playlist_page")&&(d==null?0:(K=d.mainPlaylistEntity)==null?0:K.videos)&&(K=d==null?void 0:(h=d.mainPlaylistEntity)==null?void 0:(r=h.videos)==null?void 0:r[0],r=_.bq(K).entityId,r=JSON.parse(r).videoId,r!==void 0&&(h=wg(_.d1().getState(),r),k=_.S7(r,O,void 0,void 0,h)));r=[];if(d==null?0:(q=d.mainPlaylistEntity)==null?0:(Y=q.videos)==null?0:Y.length)r=[LZO(),Object.assign({},(b=kf0(d==null?void 0:d.mainPlaylistEntity.videos.length))!=
null?b:{})];d={playlistId:O,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Z}},navigationEndpoint:k,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:r,title:aG(d.mainPlaylistEntity.title),shortBylineText:aG(d==null?void 0:(S=d.channelEntity)==null?void 0:S.title),badges:[{metadataBadgeRenderer:{label:_.sz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.N("kevlar_modern_downloads_page")&&(d.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:sX0,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:O,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.sz("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},d.badges=void 0)}else d=void 0;T.call(E,{richItemRenderer:{content:{playlistRenderer:d},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return e};
qxM=function(v,e,d){v=v?N_M(v):"";e!==void 0&&isFinite(e)?e===0?e=_.sz("UPDATING",void 0,"Updating..."):(e=set(new Date(e),new Date),e=_.sz("UPDATED_TIME",{relative_time:e},"Updated "+e)):e="";var E="";v&&e&&(E=" \u2022 ");if(d&&_.N("kevlar_display_downloads_numbers")){d=_.Ng("VIDEO_COUNT",d);if(v||e)E=" \u2022 ";return d+E+v+E+e}return v+E+e};
k9s=function(v){return YTW(v.entities).length};
_.Lo0=function(v,e){var d=QNU(v.responsiveSize),E;v=!((E=v.responsiveMap)==null||!E.some(function(T){return T.containerSize==="CONTAINER_SIZE_NARROW"&&T.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:e,sizing:d,enableFullBleedForSingleCol:!1,isCompactList:d==="COMPACT"&&v}};
VD$=function(v,e){return _.h_(v.entities,"votingEntity",e)};
Kr=function(v){if(v){var e;return((e=_.dk().resolve(_.eG(_.n1)))==null?0:e())?v.darkTheme:v.lightTheme}};
od3=function(v,e){if(v.simpleText)return Object.assign({},v,{simpleText:QK(v.simpleText,e)});if(!v.runs)return v;for(var d=Object.assign({},v,{runs:[]}),E=0,T=_.a(v.runs),S=T.next();!S.done;S=T.next())if(S=S.value,S.text)if(E+S.text.length<=e)d.runs.push(S),E+=S.text.length;else return d.runs.push(Object.assign({},S,{text:QK(S.text,e-E)})),d;return v};
J$W=function(v,e){return _.h_(v.entities,"chipBarStateEntity",e)};
G90=function(v,e){return _.h_(v.entities,"chipEntity",e)};
tD$=function(v,e,d,E){return function(){var T=MDj.has(v.displayType)&&v.selected,S=T&&v.deselectCommand?v.deselectCommand:v.tapCommand;!S||T&&E||_.wC(S,{form:{element:e==null?void 0:e.value}});d==null||d()}};
fvs=function(v){switch(v){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
R9t=function(v,e){return{triggeringElement:v,onDwellTriggeredFn:function(){var d={triggeringElement:v,loadVideoPreviewEventData:e},E=document.querySelector(".video-preview");E&&E.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:d}))},
onDwellEndFn:function(){var d=document.querySelector(".video-preview");d&&d.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
PJ$=function(v,e){var d=_.dk().resolve(_.eG(PKS)),E=function(){var T=e();return d&&T?R9t(v.value,T):null};
_.o_(function(){var T=E();d&&T&&Promise.resolve().then(function(){d.registerElement(T)});
_.Jf(function(){d&&T&&Promise.resolve().then(function(){_.zn(d,T)})})},"csPUge")};
B_U=function(v){var e=v.dataset.resizeObserverId;if(e)return e;e=""+xQ0++;return v.dataset.resizeObserverId=e};
CJs=function(v,e){var d=B_U(v);$p.has(d)||$p.set(d,new Set);$p.get(d).add(e);jB.has(d)&&e(Object.assign({},{target:v},jB.get(d)))};
Xmt=function(v){v=_.a(v);for(var e=v.next();!e.done;e=v.next()){e=e.value;var d=B_U(e.target),E=Object.assign({},{target:e.target},jB.get(d));if(E!=null&&E.contentRect?E.contentRect.width!==e.contentRect.width||E.contentRect.height!==e.contentRect.height:1)for(jB.set(d,{borderBoxSize:e.borderBoxSize,contentBoxSize:e.contentBoxSize,contentRect:e.contentRect,devicePixelContentBoxSize:e.devicePixelContentBoxSize}),d=_.a($p.get(d)||[]),E=d.next();!E.done;E=d.next())E=E.value,E(e)}};
lv0=function(){return sR?sR:sR=new z9M(Xmt)};
Hb0=function(v,e){var d=B_U(v);$p.has(d)&&($p.get(d).delete(e),$p.get(d).size===0&&($p.delete(d),jB.delete(d),sR.unobserve(v),delete v.dataset.resizeObserverId));$p.size===0&&sR&&(sR.disconnect(),sR=void 0)};
ZbM=function(v,e){var d=_.dk().resolve(dm);return A$7.map(function(E){return d.observe(v,e,E)})};
c$t=function(v){var e=_.dk().resolve(dm);v.forEach(function(d){e.unobserveByKey(d)})};
_.QX0=function(v,e){var d=Object.assign({},wmH,e);e=_.a(JIO());var E=e.next().value,T=e.next().value,S=function(O){var b=O.contentRect.height;if((O=O.contentRect.width)||b||d.canHaveZeroSize)E.width()===O&&E.height()===b||T(E,{height:b,width:O})};
_.Gr(function(){var O=v instanceof HTMLElement?v:v.value,b=FoL(S,d.throttleMs),Y=[];d.useVisibilityObserver&&(Y=ZbM(O,function(q,r){requestAnimationFrame(function(){r==="visible"?(CJs(O,b),lv0().observe(O)):Hb0(O,b)})}));
Y.length||(CJs(O,b),lv0().observe(O));_.Jf(function(){Y.length&&(c$t(Y),Y.length=0);Hb0(O,b)})});
return E};
u9W=function(v,e,d,E,T){v=e?v.switchOffCommand:v.switchOnCommand;if(E&&T)gdt(v,d,T);else{var S,O;(S=_.Ag({elementsCommand:v}))==null||(O=S.onclick)==null||O.call(S,d)}};
gdt=function(v,e,d){v=_.Ag({elementsCommand:v,additionalCommandArgs:{commandController:{onSuccess:function(){d(!1)},
onServerError:function(){d(!1)}}}});
if(v==null?0:v.onclick)v.onclick(e),d(!0)};
DQ$=function(v){if(v)return _.L(v,nd$)};
UQ7=function(v,e){if(!((e==null?0:e.entitySelectorType)&&(e==null?0:e.entityKey)))return{};switch(e.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return v=_.l2(v,e.entityKey),v=v==null?void 0:v.value,e=!1,v==="CAPTIONS_UNAVAILABLE"&&(e=!0,v=""),Object.assign({},!!v&&{selectionText:{content:v}},!!v&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:e});case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":return _.N("web_shorts_audio_track_picker")?
(v=_.l2(v,e.entityKey),v=v==null?void 0:v.value,e=!1,v==="ALTERNATE_AUDIO_TRACK_UNAVAILABLE"&&(e=!0,v=""),Object.assign({},!e&&!!v&&{selectionText:{content:v}},!e&&!!v&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}},{isDisabled:e})):{};default:return{}}};
Etj=function(v,e,d){if(e)return[pmM];switch(v){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[N0];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return d?[N0]:[vtU,N0];case "TRANSFER_STATE_PAUSED_BY_USER":return[eE7,N0];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[dct,N0];default:return[pmM]}};
TUW=function(v,e,d,E){return Etj(v,e,E).map(function(T){var S=T.text,O=T.iconType,b=T.videoAction;T=T.playlistAction;S=S?{content:S}:void 0;O=O&&{sources:[{clientResource:{imageName:O}}]};var Y=(0,_.f0.unsafeClone)(d);if(Y){var q=_.L(Y,_.rB),r=_.L(Y,_.hX);q&&b?q.action=b:r&&T&&(r.action=T)}return{title:S,leadingImage:O,rendererContext:Y&&{commandContext:{onTap:{innertubeCommand:Y}}}}})};
SBS=function(v){v=_.P5(v.rendererContext);var e;return(e=_.L(v,_.hX))==null?void 0:e.playlistId};
Wyj=function(v){var e;return(e=v.listItems)==null?void 0:e.some(function(d){var E;return _.xz((E=_.L(d,_.o7))==null?void 0:E.rendererContext)})};
Ont=function(v){var e;return(e=v.listItems)==null?void 0:e.some(function(d){var E,T,S=(T=(E=_.L(d,aaL))==null?void 0:E.defaultListItem)!=null?T:d;d=_.L(S,_.o7);return!!_.L(d==null?void 0:d.leadingAccessory,in0)})};
YB7=function(v){var e=v.element;var d=v.veType;var E=v.storedVisualElement===void 0?null:v.storedVisualElement;var T=v.elementIndex===void 0?0:v.elementIndex;v=v.clientYouTubeData;var S=_.zz();S!==IaS&&(bnS.clear(),IaS=S);if(e.visualElement&&bnS.has(e.visualElement))return null;if(E&&bnS.has(E))return e.visualElement=E,null;d=_.s_(_.NC(),{veType:d,elementIndex:T,clientYouTubeData:v});if(!d)return null;e.visualElement=d;bnS.add(d);return d};
_.kp=function(v,e,d,E){d=d===void 0?null:d;E=E===void 0?dBM:E;var T=T===void 0?null:T;R5(function(){if(e){d instanceof Function&&(d=d());var S=YB7({element:e,veType:v,storedVisualElement:d,clientYouTubeData:void 0});S&&(SLj(e,T),E(S))}})};
Lr=function(v,e){if(v){switch(e){case 0:v=v.primaryTitleColor;break;case 1:v=v.secondaryTitleColor;break;case 2:v=v.surgeColor;break;case 3:v=v.section2Color;break;case 4:v=v.section3Color;break;default:return}if(v)return _.cv(v)}};
VZ=function(v,e){if(v){switch(e){case 0:v=v.primaryTitleColor;break;case 1:v=v.secondaryTitleColor;break;case 2:v=v.surgeColor;break;case 3:v=v.section2Color;break;case 4:v=v.section3Color;break;default:return}if(v)return _.cv(v)}};
mcH=function(v){return v?_.w1(v):""};
yVt=function(v){return(v==null?void 0:v.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
qBs=function(v,e){return _.h_(v.entities,"videoOverviewAsyncDataEntity",e)};
rV0=function(v,e){var d;return"linear-gradient(to bottom, "+((d=e==null?void 0:e.map(function(E){var T=v?E.darkThemeColor:E.lightThemeColor;return T?_.w1(T)+" "+((E==null?void 0:E.startLocation)||0)*100+"%":"transparent"}))==null?void 0:d.join(", "))+")"};
hE0=function(v,e,d,E,T){if(!((E==null?0:E.height)&&(E==null?0:E.width)))return{size:0};var S=E.width;E=E.height;if(T)return e==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||e==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&S>E?{size:312/TS0}:e==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(d!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||v!==1&&v!==2||e!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&e!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&e!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(e==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||e==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||E===S)switch(v){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(e==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||E>S)switch(v){case 1:case 3:return{size:240*EbS};default:return{size:360*EbS}}switch(v){case 1:case 2:return{size:1/TS0*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.KyH=function(v){if(!("matchMedia"in window))return _.ZV(Error("Qh")),function(){return!1};
var e=window.matchMedia(v);v=_.a(_.OE(e.matches,void 0,"jLJc8e"));var d=v.next().value,E=v.next().value,T=function(S){E(S.matches)};
e.addEventListener?(e.addEventListener("change",T),_.Jf(function(){e.removeEventListener("change",T)})):e.addListener&&(e.addListener(T),_.Jf(function(){e.removeListener(T)}));
return d};
$cL=function(v){return v==="IMAGE_BANNER_STYLE_INSET"||v==="IMAGE_BANNER_STYLE_UNKNOWN"};
jQO=function(){if(!("matchMedia"in window))return _.ZV(Error("Qh")),function(){return 0};
var v=tE(function(){return window.matchMedia("(max-width: 527.9px)")}),e=tE(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),d=tE(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),E=tE(function(){return window.matchMedia("(min-width: 1024px)")}),T=_.a(_.OE(v.matches,void 0,"og9kEc")),S=T.next().value,O=T.next().value;
T=_.a(_.OE(e.matches,void 0,"ybDWCb"));var b=T.next().value,Y=T.next().value;T=_.a(_.OE(d.matches,void 0,"o0Gfh"));var q=T.next().value,r=T.next().value;T=_.a(_.OE(E.matches,void 0,"yqUUgd"));var h=T.next().value,K=T.next().value,k=tE(function(){return function(X){O(X.matches)}}),J=tE(function(){return function(X){Y(X.matches)}}),R=tE(function(){return function(X){r(X.matches)}}),B=tE(function(){return function(X){K(X.matches)}});
_.Gr(function(){v.addEventListener?(v.addEventListener("change",k),e.addEventListener("change",J),d.addEventListener("change",R),E.addEventListener("change",B)):v.addListener&&(v.addListener(k),e.addListener(J),d.addListener(R),E.addListener(B));_.Jf(function(){v.removeEventListener?(v.removeEventListener("change",k),e.removeEventListener("change",J),d.removeEventListener("change",R),E.removeEventListener("change",B)):v.removeListener&&(v.removeListener(k),e.removeListener(J),d.removeListener(R),
E.removeListener(B))})});
return function(){return S()?1:b()?2:q()?3:h()?4:0}};
sQ$=function(v){var e=0;v=_.a([v.title,v.metadata,v.actions,v.description,v.attribution]);for(var d=v.next();!d.done;d=v.next())d.value&&e++;return e};
NUW=function(v){return v===1||v===2?1:0};
Lys=function(v){v=(new kcM).parse(v);return(new K2).render(v).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(e){var d=e.split(":").map(Number),E=0,T=0;if(d.length===3)d=_.a(d),E=d.next().value,T=d.next().value,d=d.next().value;else if(d.length===2)d=_.a(d),T=d.next().value,d=d.next().value;else if(d.length===1)d=_.a(d).next().value;else throw Error("Rh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(E*3600+T*60+d)+'" role="button">'+e+"</span>"})};
VRj=function(v){v=_.a(v.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var e=v.next(),d={};!e.done;d={clickHandler$jscomp$5:void 0},e=v.next()){e=e.value;d.clickHandler$jscomp$5=function(T){T=Number(T.target.getAttribute("data-time"));if(isNaN(T))throw Error("Sh");var S;(S=_.mS())==null||S.seekTo(T,!0)};
var E=function(T){return function(S){S.key!=="Enter"&&S.key!=="Space"||(0,T.clickHandler$jscomp$5)(S)}}(d);
e.setAttribute("tabindex","0");e.removeEventListener("click",d.clickHandler$jscomp$5);e.removeEventListener("keydown",E);e.addEventListener("click",d.clickHandler$jscomp$5);e.addEventListener("keydown",E)}};
ott=function(){return _.m("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.m(ot,{percentWidth:100}),_.m(ot,{animationDelay:200}),_.m(ot,{animationDelay:400}),_.m(ot,{animationDelay:600}),_.m(ot,{animationDelay:800,percentWidth:60}),_.m("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.m(ot,{percentWidth:100}),_.m(ot,{animationDelay:200}),_.m(ot,{animationDelay:400}),_.m(ot,{animationDelay:600,percentWidth:50}))};
ot=function(v){return _.m("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(v.percentWidth===void 0?100:v.percentWidth)+"%"},_.m("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(v.animationDelay===void 0?0:v.animationDelay)+"ms"}))};
JV0=function(){var v=_.a(_.OE(function(){return""},void 0,"v2wS5e")),e=v.next().value;
return[function(){return e()()},
v.next().value]};
GcU=function(v,e){v=v?N_M(v):"";e!==void 0&&isFinite(e)?e===0?e=_.sz("UPDATING",void 0,"Updating..."):(e=set(new Date(e),new Date),e=_.sz("UPDATED_TIME",{relative_time:e},"Updated "+e)):e="";var d="";v&&e&&(d=" \u2022 ");return _.WK(v+d+e)};
fas=function(v,e,d,E,T,S){e=e===void 0?0:e;var O=MRt[e],b=O.title,Y=O.iconType,q=O.topButtonRenderer,r=O.sectionClientVE;O=O.videoClientVE;var h;if(e!==1||v.length){d=[];v=_.a(v);for(E=v.next();!E.done;E=v.next()){var K=E.value;if(sg0(K))d.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:K.videoEntity.videoId,title:aG(K.videoEntity.title),shortBylineText:aG(K.channelEntity.title),thumbnail:K.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:K.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.sz("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:O}}}}}});else if(jgM(K)){E=d;var k=E.push;var J=void 0,R=void 0,B=void 0,X=void 0,Z=void 0,U=void 0,F=void 0,g=void 0,Q=K.mainPlaylistEntity.playlistId,v3=K==null?void 0:(g=K.mainPlaylistEntity)==null?void 0:(F=g.thumbnailStyleData)==null?void 0:(U=F[0])==null?void 0:(Z=U.value)==null?void 0:(X=Z.collageThumbnail)==null?void 0:X.coverThumbnail;X=pAt(Q);if(!_.N("enable_offline_playlist_page")&&
(K==null?0:(B=K.mainPlaylistEntity)==null?0:B.videos)){b:{B=K==null?void 0:(R=K.mainPlaylistEntity)==null?void 0:R.videos;R=_.d1().getState().entities;if(B!=null&&B.length&&R)for(B=_.a(B),Z=B.next();!Z.done;Z=B.next())if(Z=_.bq(Z.value).entityId,(Z=JSON.parse(Z).videoId)&&ISS(R,Z)==="TRANSFER_STATE_COMPLETE"){R=Z;break b}R=""}R!==void 0&&(X=wg(_.d1().getState(),R),X=_.S7(R,Q,void 0,void 0,X))}R=eMH(_.sz("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),pAt(Q));K=Q&&v3&&R?{playlistId:Q,navigationEndpoint:X,
viewPlaylistText:R,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:v3}},title:aG(K.mainPlaylistEntity.title),shortBylineText:aG(K==null?void 0:(J=K.channelEntity)==null?void 0:J.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:tRO,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Q,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.sz("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:O}}}:
void 0;k.call(E,{gridPlaylistRenderer:K})}}O={gridRenderer:{items:d}};e===1&&(h=GcU(T,S))}else if(E){var q7=_.WK((k=d==null?void 0:d.localizedPromptMessage)!=null?k:"");O={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.WK(_.sz("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.zx0}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.WK(_.sz("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};h=GcU(T,S)}else q7=_.WK(_.sz("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
O={};return{contents:[{shelfRenderer:{title:b,titleAnnotation:h,icon:{iconType:Y},subtitle:q7,content:O,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:q}]}}}}],loggingDirectives:{clientVeSpec:{uiType:r}}}};
REs=function(v,e,d,E,T,S,O,b,Y,q,r){d=d===void 0?{}:d;E=E===void 0?{}:E;T=T===void 0?!1:T;S=S===void 0?!1:S;O=O===void 0?!1:O;b=b===void 0?!1:b;Y=Y===void 0?!1:Y;q=q===void 0?0:q;r=r===void 0?-Infinity:r;if(!(e.length||v.length||T||b))return S?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Obt(d)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.WK(_.sz("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 h=[];v.length&&h.push(fas(v,0));b?h.push({contents:[{statementBannerRenderer:y$j(Y,E)}]}):T?h.push(fas(e,1,d,O,q,r)):S&&h.push({contents:[{statementBannerRenderer:bb3(d)}]});(T&&e.length||v.length)&&h.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.WK(_.sz("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 h.map(function(K){return{itemSectionRenderer:K}})};
J1=function(v,e){if(typeof v!=="object")return null;v=_.a(Object.entries(v));for(var d=v.next();!d.done;d=v.next()){var E=_.a(d.value);d=E.next().value;E=E.next().value;if(d===e)return d;if(E=J1(E,e))return d+"."+E}return null};
GU=function(v){var e=v.content;return(v=v.styleRuns)&&e?{runs:v.map(function(d){var E={text:e.slice(d.startIndex,d.startIndex+d.length)};d.fontColor&&(E.textColor=d.fontColor);return E})}:{simpleText:e}};
BUH=function(v,e,d,E){var T=PFM;E&&(v.quantity=E);if(!v.quantity||!v.maxQuantity)return{};E=v.minusButton;var S=v.plusButton,O,b,Y,q;return{value:v.quantity,maxValue:v.maxQuantity,onChangeCallback:function(r){T(v,r)},
minusLabel:(O=_.L(E,xcO))==null?void 0:O.label,minimumReachedLabel:(b=_.L(E,xcO))==null?void 0:b.limitReachedLabel,plusLabel:(Y=_.L(S,xcO))==null?void 0:Y.label,maximumReachedLabel:(q=_.L(S,xcO))==null?void 0:q.limitReachedLabel,disabled:e,onRemoveCommand:d}};
PFM=function(v,e){var d=v.quantityIncrementerEntityKey;if(d){var E={};E.quantity=e;_.vz(_.M0("quantityIncrementerEntity",d,E));v.onChangeCommand&&_.wC(v.onChangeCommand)}};
zEO=function(v,e){(v=CF3(v))&&((_.N("enable_mini_app_command_handler_mweb_fix")?0:e)?X_0.push({command:v,sourceData:{},commandContext:void 0}):_.dk().resolve(_.EI).resolveCommand(v))};
CF3=function(v){return _.L(v,_.zj)};
la0=function(){var v=window.performance.timeOrigin+window.performance.now(),e=(new _.t1).setSeconds(v/1E9);return _.n9(e,2,_.p7(v%1E9),0)};
AVO=function(v,e){var d;v=(d=_.L(_.L(v,_.zj),HnH))==null?void 0:d.methodName;var E,T;(d=window.youtubewebview||((E=window.webkit)==null?void 0:(T=E.messageHandlers)==null?void 0:T.youtubewebview))&&v&&(E=new fr,v=_.L0(E,1,v),v=_.GQ(v.JSC$12370_serializeBinary()),e=_.GQ(e),d.postMessage(v+","+e))};
Rt=function(v,e){var d=_.L(_.L(v,_.zj),HnH);d&&(e&&(d.serializedAdditionalMetadata=_.GQ(e)),zEO(v,!0))};
Zn7=function(v){switch(v){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"}};
cVH=function(){return!!_.Bb("ID_TOKEN")};
QQs=function(v){return v instanceof Error&&v.cause instanceof w_$&&v.cause.rpcErrorCode!==void 0?!FyM.includes(v.cause.rpcErrorCode):!0};
uE0=function(){return _.ug(gtj,{authuser:""+(_.Bb("SESSION_INDEX")||0)})};
Pj=function(v,e,d,E){d=d===void 0?"MINI_APP_SDK_API_UNSPECIFIED":d;E=E===void 0?"":E;var T=new _.kL;d={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:E,sdkApi:d};v instanceof Error&&(T.message=v.message,T.name=v.name,v.cause instanceof w_$&&v.cause.rpcErrorCode!==void 0&&(d.rpcErrorCode=v.cause.rpcErrorCode));var S;(S=e.onError)==null||S.call(e,{loggingError:T,metadata:d})};
Dct=function(v,e,d,E){switch(v){case "MINI_APP_SOURCE_GAMESNACKS":return new xp(e,d,E);default:return new ntS(e,d,E)}};
Ucs=function(v){switch(v){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"}};
p_H=function(v){switch(v){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"}};
vg0=function(v){switch(v){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"}};
eVW=function(){return Math.floor(Math.random()*4)+1};
dOj=function(v,e,d,E){v=_.a(Object.entries(v));for(var T=v.next(),S={};!T.done;S={message$jscomp$994:void 0},T=v.next()){var O=_.a(T.value);T=O.next().value;O=O.next().value;S.message$jscomp$994=O;e.push(setTimeout(function(b){return function(){E(!1);d(b.message$jscomp$994.text)}}(S),S.message$jscomp$994.delayMs));
Number(T)>0&&e.push(setTimeout(function(){E(!0)},S.message$jscomp$994.delayMs-400))}};
EgO=function(v,e){var d=d===void 0?dBM:d;_.N("mweb_fix_monitor_visibility_after_render")?v&&R5(function(){SLj(v,e,d)}):R5(function(){SLj(v,e,d)})};
aCj=function(v){TFH||(TFH=Sfj(new _.QR(1,void 0,void 0,WRL),0));var e=TFH.format(Math.floor(v));e=_.F1==="be"||_.F1==="bg"||_.F1==="es"||_.F1==="et"||_.F1==="hu"||_.F1==="ka"||_.F1==="lv"||_.F1==="pl"||_.F1==="pt-PT"||_.F1==="sq"?e.replace(new RegExp("^(\\d)"+WRL.GROUP_SEP.replace(".","\\.")+"(\\d+("+WRL.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):e;return v>=1E3&&v<=9999&&e[1]==="."&&(_.F1==="sl"||_.F1==="it")?e.replace(".",""):e};
iuO=function(v,e){NAS("ytd-button-renderer",{data:v,className:e?e.className:"",overrides:e==null?void 0:e.buttonOverrides},GvW)};
buj=function(v,e,d,E){if(v)return E=E||v.likeStatus,e?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:E==="LIKE",isDisabled:!v.likesAllowed,defaultIcon:{iconType:d},defaultText:E==="LIKE"?v.likeCountWithUnlikeText:v.likeCountText,toggledText:E==="LIKE"?v.likeCountText:v.likeCountWithLikeText,defaultNavigationEndpoint:OuH(v,"LIKE"),defaultServiceEndpoint:ICM(v,"LIKE"),toggledServiceEndpoint:ICM(v,"INDIFFERENT"),defaultTooltip:_.vv(v.likeCountTooltipText),toggledTooltip:_.vv(v.likeCountTooltipText),
targetId:v.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:E==="DISLIKE",isDisabled:!v.likesAllowed,defaultIcon:{iconType:d},defaultText:E==="DISLIKE"?v.dislikeCountWithUndislikeText:v.dislikeCountText,toggledText:E==="DISLIKE"?v.dislikeCountText:v.dislikeCountWithDislikeText,defaultNavigationEndpoint:OuH(v,"DISLIKE"),defaultServiceEndpoint:ICM(v,"DISLIKE"),toggledServiceEndpoint:ICM(v,"INDIFFERENT"),defaultTooltip:_.vv(v.dislikeCountTooltipText),
toggledTooltip:_.vv(v.dislikeCountTooltipText)}};
OuH=function(v,e){if(e==="LIKE")return v.likeCommand;if(e==="DISLIKE")return v.dislikeNavigationEndpoint};
ICM=function(v,e){var d;return(d=v.serviceEndpoints)==null?void 0:d.find(function(E){var T;return((T=_.L(E,_.Bj))==null?void 0:T.status)===e})};
_.yF3=function(v,e,d){return window.spf&&!_.N("web_disable_spfjs_client")?Yfs(v,e,d):mOt(v,e)};
Yfs=function(v,e,d){var E=null,T=(new _.yf(function(S,O){var b={};if(e){b.method=e.method;var Y=e.postParams||{};Qq$(v,e)&&(Y[_.Bb("XSRF_FIELD_NAME")]=_.Bb("XSRF_TOKEN"));b.postData=_.q_(Y);e.type&&(b.type=e.type);Y=e.headers}b.headers=HB0(v,Y);_.N("debug_forward_web_query_parameters")&&(v=_.wF3(v,window.location.search));b.experimental_headers=b.headers;b.onError=function(q){q.err&&q.xhr&&(q.err.params={url:q.xhr.responseURL,response:q.xhr.responseText.substr(0,64)});O(q.err)};
b.onPartDone=function(q){d&&d.call(null,q.part)};
b.onDone=function(q){var r=qf0(q.response,"xsrf_token");UW(window.location.href,v)&&r&&_.xc("XSRF_TOKEN",r);if(r=qf0(q.response,"service_worker_killswitch"))_.xc("SERVICE_WORKER_KILLSWITCH",r),XyW();S(q.response)};
E=spf.request(v,b)})).then(rFt);
T.thenCatch(function(S){var O=S instanceof _.Cr,b=S&&S.hasOwnProperty("params")&&S.params.response?S.params.response:"";S instanceof Error&&(b?O?MKj(S):b===')]}\'\n{"reload":"now"}'?MKj(S):(hVU(S,v,b),KRU(S,b)?_.xf(S):_.RI(S)):MKj(S));E&&E.abort()});
return T};
rFt=function(v){if(v.type==="multipart"){var e=v.timing;v=v.parts.reduce(function(d,E){Object.assign(d,E);return d},{});
v.timing=v.timing||{};Object.assign(v.timing,e);v.type="reduced"}return v};
mOt=function(v,e){e=e===void 0?{}:e;var d=null,E=new _.yf(function(T,S){e.onFinish=function(O){if(O.readyState===XMLHttpRequest.DONE)if(O.status===200){if(O.responseType!=="json"){var b=O.response;b.substring(0,5)===")]}'\n"&&(b=b.substring(5));try{var Y=JSON.parse(b)}catch(q){Y=q}}else Y=O.response;Y instanceof Error?S(Y):(b=qf0(Y,"xsrf_token"),UW(window.location.href,v)&&b&&_.xc("XSRF_TOKEN",b),O=O.responseURL,window.performance&&window.performance.getEntriesByName?(b=window.performance.getEntriesByName(O).pop())?
O={responseStart:(0,_.E$)()-(b.responseEnd-b.responseStart)}:(Math.random()<.01&&(b=Error("di"),b.params=O,_.xf(b)),O={responseStart:-1}):O={responseStart:0},Y.timing=Y.timing||{},Object.assign(Y.timing,O),T(Y))}else S(Error("ci`"+O.status))};
(d=_.y8(v,e))||S(Error("ci`"+d.status))});
E.thenCatch(function(T){T instanceof Error&&(hVU(T,v),KRU(T)&&(T.level="WARNING"))});
_.N("cancel_pending_navs")&&E.thenCatch(function(){d.abort()});
return E};
qf0=function(v,e){var d=v[e],E=v.parts;v.type==="multipart"&&E&&(d=(v=E.find(function(T){return e in T}))&&v[e]);
return d};
hVU=function(v,e,d){var E=v.message||"";e={original:E,url:e};if(d)if(E=E.match(/position:?\s*(\d+)/)){E=E&&Number(E[1])?Number(E[1]):0;var T=Math.max(E-25,0);e.position=E;e.response=d.substring(T,E+25)}else e.response=d.substring(0,50);_.BV(v,e);try{v.message="JSON parse error"}catch(S){}};
KRU=function(v,e){v=v.message||"";v=!!(v.indexOf("<")>=0||v.indexOf("end of ")>=0||v.indexOf("Unterminated string")>=0||v.indexOf("Unexpected EOF"));if(!v&&e)for(var d=e.length,E=!1,T=0;T<d;T++)if(E&&e[T]==="\\")T++;else if(e[T]==='"')E=!E;else if(e[T]==="<"&&!E){v=!0;break}return v};
$O3=function(){return document.documentElement.hasAttribute("dark")};
_.jYt=function(v,e){if(v!=="GFEEDBACK"&&v!=="GUIDED_HELP")_.lg(Error("ei`"+v));else{var d=_.dk().resolve(_.eG(_.v5));if(d&&(d=d.getCurrentPage())&&d.getServiceTrackingParams&&(d=d.getServiceTrackingParams()))for(var E=0,T;T=d[E++];)if(T.service===v){if(v=T.params)for(d=0;E=v[d++];)e[E.key]=E.value;break}}};
_.sYW=function(v){var e=_.dB();e&&(e=e.getPlayer())&&(e.pauseVideo(),v.playback_id=e.getVideoData().cpn,v.eid=e.getVideoData().eventId,Object.assign(v,e.getFeedbackProductData()))};
NFW=function(){var v={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Bb("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(v.enableAnonymousFeedback=!0);_.Bb("SESSION_INDEX")&&(v.authuser=String(_.Bb("SESSION_INDEX")));_.N("enable_pageid_for_feedback")&&_.Bb("DELEGATED_SESSION_ID")&&(v.pageId=String(_.Bb("DELEGATED_SESSION_ID")));return v};
_.Xb=function(v){_.N("enable_ypc_spinners")&&_.b4(v,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},v])};
_.zU=function(v){_.N("enable_ypc_spinners")&&_.b4(v,"yt-close-popup-action",["yt-loading-renderer"])};
kHH=function(v){return new Promise(function(e,d){_.Hz({verifyCommand:{recaptchaToken:v.recaptchaResponse}},{commandController:{onSuccess:function(E,T){T||d("ChallengeService did not return a response.");var S;e({challengeCompleted:(S=T.verified)!=null?S:!1})},
onServerError:function(E,T){d(T)}}})})};
LRS=function(v,e,d,E){e({recaptchaResponse:E}).then(function(T){T.challengeCompleted?_.jG()?(d(3),_.dk().resolve(_.EI).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:v}})):d(2):d(4)},function(){d(4)})};
ogS=function(v,e,d){_.Ff(_.ie(V5M,_.Bb("HL")),function(){var E;(E=window.grecaptcha)==null||E.ready(function(){var T=window.grecaptcha;T?(d(T.render(v,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:LRS.bind(null,v,kHH,e)})),e(1)):e(4)})})};
JF3=function(v,e){return function(){switch(e()){case 0:return v().captchaLoadingMessage;case 1:return v().challengeReason;case 3:return v().captchaSuccessfulMessage;case 2:return v().captchaCookieSetFailureMessage;case 4:return v().captchaFailedMessage;default:return v().challengeReason}}()};
_.lw=function(){if(!GHt){var v=document.querySelector("#player.skeleton");v&&(_.KX(v),GHt=!0)}};
_.t57=function(){return M57=XkO()};
Ps$=function(){return _.I(function(v){return fC0!==void 0?v.return():v.yield(RV0(),0)})};
RV0=function(){return _.I(function(v){if(v.nextAddress==1)return v.yield(lKH(),2);M57=v.yieldResult;fC0=_.RM.addLowPriorityJob(RV0,5E3);_.s9(v)})};
lCW=function(v){var e=e===void 0?xOs:e;var d,E,T=(d=v.responseContext)==null?void 0:(E=d.mainAppWebResponseContext)==null?void 0:E.trackingParam;if(!T){e.increment("MISSING");var S,O,b,Y,q,r;_.xf(new _.kL("282054944_a",{rRe:!!((S=v.responseContext)==null?0:(O=S.mainAppWebResponseContext)==null?0:O.loggedOut),vhA:((b=v.responseContext)==null?void 0:b.mainAppWebResponseContext)===void 0,coy:v.responseContext===void 0,cp:(Y=v.playabilityStatus)==null?void 0:Y.contextParams,jZI:(((q=v.streamingData)==
null?void 0:q.formats)||[]).length>0,hbI:(((r=v.streamingData)==null?void 0:r.adaptiveFormats)||[]).length>0,os:!!v.offlineState,cotn:v.cotn}));return 2}d="";try{d=BFt(T)}catch(k){return e.increment("C_ERROR"),_.RI(k),2}try{var h=_.CsU(d);var K=X9W(h)}catch(k){return e.increment("P_ERROR"),_.RI(k),2}K=_.df(K,zV7,1,_.El());T=[];K=_.a(K);for(h=K.next();!h.done;h=K.next())E=h.value,h=E.getPath(),d=(0,_.f0.getValueByKeys)(v,h.split(".")),d=String(d===void 0||d===null?"":d),E=E.getValue()||"",S=/[+\-\/_]/g,
d.replace(S,"")!==E.replace(S,"")&&(e.increment("MISMATCH"),_.N("ab_mis_log_err")&&(d=new _.kL("282054944_p",{mAT:h,g:String(d),e:String(E)}),_.RI(d)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(h)||(h.match(/enforcementMessageViewModel/i)?T.push(3):T.push(2)));if(T.length>0)return Math.max.apply(Math,_.t7(T));e.increment("SUCCESS");return 1};
Zut=function(v){var e=new Hj;if(v.interpreterJavascript){var d=_.Ni0(v.interpreterJavascript);d=S9O(d).toString();var E=new HuO;_.L0(E,6,d);_.hr(e,1,E,f7)}else v.interpreterUrl&&(d=_.P8(v.interpreterUrl),d=_.LY(d).toString(),E=new _.AF3,_.L0(E,4,d),_.hr(e,2,E,f7));v.interpreterHash&&_.A1(e,3,v.interpreterHash,f7);v.program&&_.A1(e,4,v.program,f7);v.globalName&&_.A1(e,5,v.globalName,f7);v.clientExperimentsStateBlob&&_.A1(e,7,v.clientExperimentsStateBlob,f7);return e};
Z7=function(v){var e={};v=_.a(v.split("&"));for(var d=v.next();!d.done;d=v.next())d=d.value.split("="),d.length===2&&(e[d[0]]=d[1]);return e};
cF3=function(v){return Number(v.t)||7200};
Grt=function(){if(_.N("bg_st_hr"))return"havuokmhhs-0";var v,e=((v=performance)==null?void 0:v.timeOrigin)||0;return"havuokmhhs-"+Math.floor(e)};
w9j=function(){return new Promise(function(v){var e=window;e.ntpevasrs!==void 0?v(new cj(e.ntpevasrs)):(e.ntpqfbel===void 0&&(e.ntpqfbel=[]),e.ntpqfbel.push(function(d){v(new cj(d))}))})};
FR7=function(v){var e=v.vgc.bind(v);_.pw("yt.aba.att",e);v=v.q2a.bind(v);_.pw("yt.aba.att2",v)};
ggt=function(v){switch(_.mq(v.input)){case _.Ej(QY$):var e={};return e.encryptedVideoId=v.innerTubeRequest.externalVideoId,e}return{}};
DO7=function(v){switch(_.mq(v.input)){case _.Ej(QY$):if(_.N("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Ej(uRH):if(_.N("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.Ej(wp):if(_.N("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&v.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Ej(ngM):var e,d;if(_.N("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((d=_.L((e=v.config)==null?void 0:e.command,wE$))==null?0:d.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.p9L=function(v){var e;if(v.playlistVideoRenderer&&((e=v.playlistVideoRenderer)==null?0:e.engagementBar))return UOs(v.playlistVideoRenderer.engagementBar);if(_.L(v,Fb)){var d;if(v=(d=_.L(v,Fb))==null?void 0:d.engagementBar)return UOs(v)}return""};
UOs=function(v){if(!v)return"";v=_.L(v,_.v2U);if(v==null||!v.actions)return"";v=_.a(v.actions);for(v=v.next();!v.done;v=v.next()){v=_.L(v.value,_.eQj);var e=void 0;if((e=v)==null||!e.itemId)break;return v.itemId}return""};
_.dLs=function(v){var e;if(v.playlistVideoRenderer&&((e=v.playlistVideoRenderer)==null?0:e.videoId))return v.playlistVideoRenderer.videoId;if(_.L(v,Fb)){var d,E;if(v=(d=_.L(v,Fb))==null?void 0:(E=d.playlistItemData)==null?void 0:E.videoId)return v}return""};
_.E2W=function(v){var e;if(v.playlistVideoRenderer&&((e=v.playlistVideoRenderer)==null?0:e.voteCount))return v.playlistVideoRenderer.voteCount;if(_.L(v,Fb)){var d,E;if(v=(d=_.L(v,Fb))==null?void 0:(E=d.playlistItemData)==null?void 0:E.voteCount)return v}return 0};
_.QZ=function(v,e){return _.h_(v.entities,"flowStateEntity",e)};
Sbt=function(v,e,d,E){var T=void 0;v=_.a(v[e.iconName]||[]);for(var S=v.next();!S.done;S=v.next()){S=S.value;var O=e.iconSize;var b=e.iconStyle;O=!O||O===S[2];var Y=TaL[S[0]];E&&E!==S[1]||!O||b&&b!==Y?b=!1:T?(b=TaL[S[0]],b=!!e.iconStyle||b==="youtube_outline",O=T.version<=S[1],b=(!!e.iconSize||S[2]===24)&&b&&O):b=!0;b&&(T={name:e.iconName,style:TaL[S[0]],size:S[2],version:S[1],allowMirroring:!!S[3],url:d(e.iconName,S)})}return T};
W_U=function(v,e,d,E){return v+(""+TaL[d[0]]+((E===void 0?0:E)?"_experimental":"")+"/"+e+"/v"+d[1]+"/")+(d[2]+"px.svg")};
a1W=function(v){return _.Bb("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":v};
i_O=function(v,e){return W_U("https://fonts.gstatic.com/s/i/",v,e)};
O_H=function(v,e){return W_U("https://fonts.gstatic.com/s/i/",v,e,!0)};
I1s=function(v,e){return W_U("https://www.gstatic.com/youtube/img/icons/web/",v,e)};
YbS=function(v){var e=v.enabled;var d=v.itemPlaybackModel;var E=v.thumbnailElRef;var T=v.containerElRef;var S=v.options;var O;_.o_(function(){var b=T==null?void 0:T.value;var Y,q=(Y=E())==null?void 0:Y.value;Y=d();var r=S();if(e&&Y&&b&&q&&(r==null?0:r.thumbnail)){var h={data:Y,hostElement:b},K,k,J=_.N("web_explore_hub_on_hover")||_.N("web_client_explore_hub_on_hover")?[].concat(_.t7((K=r.thumbnailOverlays)!=null?K:[]),_.t7((k=Y.overlays)!=null?k:[])):r.thumbnailOverlays||[],R,B;b={mediaRenderer:h,
lockupElement:b,thumbnailElement:q,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.lk((R=Y.inlinePlayerData)==null?void 0:R.onVisible),navigationEndpoint:_.lk((B=Y.inlinePlayerData)==null?void 0:B.onSelect),thumbnail:r.thumbnail,thumbnailOverlays:J,accessibilityText:r.accessibilityText||""},thumbnailSize:r.thumbnailSize,enableRounding:r.enableRounding}}}else b=void 0;if(R=b){var X;(X=O)==null||gp(X);O=Xc(R);var Z,U;((Z=d())==null?0:(U=Z.inlinePlayerData)==null?0:U.forceImpAutoplay)&&
b_U(O)}},"B33dEc");
_.Jf(function(){var b;(b=O)==null||gp(b)})};
mLS=function(v){v=atob(v);for(var e=[],d=0;d<v.length;d++)e.push(v.charCodeAt(d));return new Blob([new Uint8Array(e)],{type:"image/png"})};
qbU=function(v,e,d,E){E=E===void 0?"INSERTION_POSITION_UNSPECIFIED":E;return v({targetId:e},function(T){var S,O=(S=T.contents)!=null?S:[];S=d!=null?d:[];var b=yNW(O);switch(E){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},T,{contents:[].concat(_.t7(O.slice(0,b)),_.t7(S),_.t7(O.slice(b+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},T,{contents:[].concat(_.t7(S),_.t7(O))});case "INSERTION_POSITION_LAST":return Object.assign({},T,{contents:[].concat(_.t7(O),_.t7(S))});
default:return T}})};
hQL=function(v,e,d,E,T){T=T===void 0?"RELATIVE_INSERTION_POSITION_AFTER":T;return v({targetId:e},function(S){var O,b=(O=S.contents)!=null?O:[];O=rNL(b,d);if(O<0)return S;O=T==="RELATIVE_INSERTION_POSITION_BEFORE"?O:O+1;return Object.assign({},S,{contents:[].concat(_.t7(b.slice(0,O)),_.t7(E),_.t7(b.slice(O)))})})};
yNW=function(v){var e=v.findIndex(function(d){return _.L(d,_.uw)});
return e>=0?e:v.length};
rNL=function(v,e){return v.findIndex(function(d){a:{d=_.a(Object.values(d));for(var E=d.next();!E.done;E=d.next())if((E=E.value)&&E.targetId){d=E.targetId;break a}d=""}return d===e})};
$LU=function(v,e,d){return v({targetId:e},function(E){var T,S=(T=E.contents)!=null?T:[];return Object.assign({},E,{contents:K_S(S,d)})})};
K_S=function(v,e){return v.filter(function(d){var E=e.includes;a:{d=_.a(Object.values(d));for(var T=d.next();!T.done;T=d.next())if((T=T.value)&&T.targetId){d=T.targetId;break a}d=""}return!E.call(e,d||"")})};
_.jS3=function(v,e){return{engagementPanelSectionListRenderer:{panelIdentifier:v,identifier:e,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
sS0=function(v,e){v=v.getAvailableAudioTracks();if(v.length)return v==null?void 0:v.find(function(d){var E;return(d==null?void 0:(E=d.getLanguageInfo())==null?void 0:E.getId())===e})};
_.ks7=function(v){var e,d=(e=v.getOption("captions","tracklist",{includeAsr:!0}))!=null?e:[];return d=NaO(d,v)};
L_7=function(v){return v.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
NaO=function(v,e){e=L_7(e);if(e==null||!e.length)return v;var d=e.filter(function(O){return O});
e=v.filter(function(O){return O.languageCode.startsWith("en")});
d=_.a(d);for(var E=d.next();!E.done;E=d.next())if(E=E.value,e.length){var T=e[0],S=Object.assign({},T);T.languageCode!==E.languageCode&&(S.displayName=T.languageName+" >> "+E.languageName,S.translationLanguage=E,v.push(S))}return v};
VES=function(v,e,d){v=_.ks7(v);if(v.length)return d?v.find(function(E){if(typeof(E==null?void 0:E.translationLanguage)==="object"){var T;return((T=E.translationLanguage)==null?void 0:T.languageCode)===e}return!1}):v==null?void 0:v.find(function(E){return E.languageCode===e})};
o2j=function(v){return v.getOption("captions","tracklist",{includeAsr:!0})};
JNL=function(v){var e=v.getAvailableAudioTracks();if(e!=null&&e.length){var d=v.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.t7(e.map(function(E){return{listItemViewModel:{title:{content:E.getLanguageInfo().getName()},isSelected:E.getLanguageInfo().getId()===(d==null?void 0:d.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:E.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
GsW=function(v){return v.getOption("captions","tracklist",{includeAsr:!0})};
ME0=function(v){var e=GsW(v);if(e==null?0:e.length)return e;v.loadModule("captions");return GsW(v)};
tEL=function(v){var e=v.getOption("captions","track");if(e)return e;v.loadModule("captions");return v.getOption("captions","track")};
RQW=function(v){var e=ME0(v);if(e!=null&&e.length){var d=tEL(v),E;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.sz("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(d==null?0:d.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.t7(e.map(function(T){return{listItemViewModel:{title:{content:T.displayName},
isSelected:T.displayName===(d==null?void 0:d.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:_.sz("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!d.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!d.translationLanguage&&{selectionText:{content:(d==null?void 0:(E=d.translationLanguage)==null?void 0:E.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[f10(v)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
f10=function(v){var e=L_7(v);if(e==null||!e.length)throw Error("Di");var d=tEL(v);v=e.filter(function(E){return!E.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.t7(v.map(function(E){var T;return{listItemViewModel:{title:{content:E.languageName},isSelected:E.languageName===(d==null?void 0:(T=d.translationLanguage)==null?void 0:T.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:E.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
CvL=function(v){return new Promise(function(e,d){if(v===void 0)_.RI(Error("Hi"),"ERROR"),d(Error("Hi"));else{d=new _.Pv$;var E=_.xLt();d=d.init();var T=_.Ba7(_.Bb("YPC_MB_URL"),!0);Promise.all([d,T]).then(function(){var S=payments.business.integration.ClientTokenFactory.createClientToken(v,E);e(S)})}})};
l1S=function(v,e,d,E,T,S,O){var b=_.gq();d=d.replace(/-/g,"+").replace(/_/g,"/");var Y=_.LB().get("hl"),q=_.nr(_.po),r=e==null?void 0:e.element;r&&_.Xb(r);XZL(e,!0);_.zQ0(q,d,b.resolve,function(){r&&_.zU(r)},function(h){r&&_.zU(r);
b.reject(h)},Y,E?function(h){E&&_.Qw(v,E,{backend_analytics:h})}:void 0,b.resolve,T,S,O);
return b.promise};
XZL=function(v,e){!(v=v==null?void 0:v.element)||v.tagName!=="YT-BUTTON-RENDERER"&&v.tagName!=="YTD-BUTTON-RENDERER"||(v.disabled=e)};
H_W=function(){var v=_.sz("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.WK(v),actionButton:{buttonRenderer:WoM()}}},popupType:"TOAST"}};
ANU=function(){var v=_.sz("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.WK(v),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Z_U=function(v){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:v}]}}};
D7=function(v,e,d,E){var T;return _.I(function(S){if(S.nextAddress==1)return _.qq(S,2),S.yield(v,4);if(S.nextAddress!=2)return(T=_.Ga(e.getState().entities).length>0)?S.return({title:_.WK(_.sz("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.WK(_.sz("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Sx7()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
S.return(av3(d,E));_.jl(S);return S.return(av3(d,E))})};
cNO=function(v,e){return e?e==="PPSV"||mNH(v,e):!1};
wZU=function(v){v.responseContext||(v.responseContext={});v.responseContext.maxAgeSeconds=0;return v};
pr=function(v){var e;return _.I(function(d){return d.nextAddress==1?d.yield(F_W(v,"service:topbar:fallback"),2):(e=d.yieldResult)&&_.UR(e)?d.return(wZU(_.UR(e))):d.return()})};
QSL=function(v){var e;return _.I(function(d){return d.nextAddress==1?d.yield(F_W(v,"service:downloads_settings:fallback"),2):(e=d.yieldResult)&&_.UR(e)?d.return(e):d.return()})};
F_W=function(v,e){var d;return _.I(function(E){if(E.nextAddress==1)return v?E.yield(v.get(e),2):E.return();d=E.yieldResult;return!d||!_.UR(d)||!isNaN(Number(d.data.expireTimestampMs))&&d.isExpired()?E.return():E.return(d)})};
g2j=function(v){var e=_.dk().resolve(v0).getState().entities;return v.playlistId?cNO(e,v.playlistId):!1};
u5t=function(v,e){var d;if(e==null?0:(d=e.requestTemplate)==null?0:d.panelId)v.panelId=e.requestTemplate.panelId;var E;if(e==null?0:(E=e.requestTemplate)==null?0:E.params)v.params=e.requestTemplate.params};
DLO=function(){if(n20)return n20();var v=!_.N("idb_response_store_auth_killswitch"),e={};n20=dt("yt-it-response-store",{objectStores:(e.ResponseStore={addedAtVersion:1},e),shared:!v,upgrade:function(d,E){E(1)&&(d=lR(d,"ResponseStore",{keyPath:["key","clientName"]}),H8(d,"byExpiration","expireTimestampMs"),H8(d,"byInterface","clientName"))},
version:1});return n20()};
ULS=function(v){return _.Q8(DLO(),v)};
vUt=function(v,e){var d;return _.I(function(E){return E.nextAddress==1?E.yield(_.ea(),2):(d=E.yieldResult)?E.return(new pZ0(v,e,d)):E.return()})};
efs=function(v){var e=Object.keys(v)[0];if(e)return v.screenExit&&(e=e+";"+v.screenExit.screen),e};
dtt=function(v){var e=new Map;v=_.a(v);for(var d=v.next();!d.done;d=v.next())d=d.value,d!=null&&(e.has(d.taskType)||e.set(d.taskType,[]),e.get(d.taskType).push(d));return e};
EU0=function(v){return!isNaN(v)&&v>0};
T2H=function(v){v=[].concat(_.t7(v)).sort(function(d,E){return d-E});
var e=Math.floor(v.length/2);return v.length%2?v[e]:(v[e-1]+v[e])/2};
aL0=function(v,e){v=v===void 0?yX$:v;e=e===void 0?{}:e;_.pw("yt.logging.errors.log",_.RI);YKj();SyH($PH(),e);window.onerror=v;WQt=mPS;window.addEventListener("unhandledrejection",function(d){if(d.reason instanceof Error){var E=d.reason;_.BV(E,{source:"unhandledrejection"});E.name==="AbortError"&&(E.level="WARNING")}mPS(d.reason);d.preventDefault()})};
_.iz0=function(v){var e,d,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F,g,Q,v3,q7,m0,$S,kS,N7,As,Ct,SA,xI,mg,pt,he,yB,te,oC,n7,SW;return _.I(function(vc){if(vc.nextAddress==1)return vc.yield(_.kH(v,{mode:"readonly",enableRetries:!0},function(jA){return LQ(jA,"playbackData").then(function(Ys){var s6=Ys.map(function(IE){return IE.transfer}).filter(function(IE){return!!IE}),es=Ys.map(function(IE){return IE.offlineVideoPolicy}).filter(function(IE){return!!IE}),TM=Ys.filter(function(IE){return!!IE.key}).map(function(IE){return _.rg(_.bq(IE.key).entityId,
"downloadStatusEntity")});
s6=LQ(jA,"transfer",s6);es=LQ(jA,"offlineVideoPolicy",es);TM=LQ(jA,"downloadStatusEntity",TM);var vO=s6.then(function(IE){IE=IE.reduce(function(gn,hi){(hi==null?0:hi.offlineVideoStreams)&&gn.push.apply(gn,_.t7(hi.offlineVideoStreams));return gn},[]).filter(function(gn){return!!gn});
return LQ(jA,"offlineVideoStreams",IE)});
return lY.all([s6,es,vO,TM]).then(function(IE){var gn=_.a(IE);IE=gn.next().value;var hi=gn.next().value;var Je=gn.next().value;gn=gn.next().value;return[Ys,IE,hi,Je,gn]})})}),2);
if(vc.nextAddress!=3)return e=vc.yieldResult,vc.yield(_.kH(v,{mode:"readonly",enableRetries:!0},function(jA){return LQ(jA,"mainDownloadsListEntity").then(function(Ys){var s6,es;return(es=(s6=Ys[0])==null?void 0:s6.downloads)!=null?es:[]})}),3);
d=vc.yieldResult;E=_.a(e);T=E.next().value;S=E.next().value;O=E.next().value;b=E.next().value;Y=E.next().value;q=T;r=S;h=O;K=b;k=Y;J={};R={};B={};X={};Z={};U=[];F=_.a(r);for(g=F.next();!g.done;g=F.next())(Q=g.value)&&(J[Q.key]=Q);v3=_.a(h);for(q7=v3.next();!q7.done;q7=v3.next())(m0=q7.value)&&(R[m0.key]=m0);$S=_.a(k);for(kS=$S.next();!kS.done;kS=$S.next())(N7=kS.value)&&(B[N7.key]=N7);As=_.a(K);for(Ct=As.next();!Ct.done;Ct=As.next())(SA=Ct.value)&&(X[SA.key]=SA);xI=_.a(d);for(mg=xI.next();!mg.done;mg=
xI.next())pt=mg.value,he=void 0,Z[(he=pt.videoItem)!=null?he:""]=!0,pt.videoItem&&(te=yB=void 0,oC=(te=(yB=_.bq(pt.videoItem))==null?void 0:yB.entityId)!=null?te:"",U.push({externalVideoId:oC}));n7=q.filter(function(jA){if(!jA||!jA.key||!jA.offlineVideoPolicy)return!1;jA=_.bq(jA.key).entityId;jA=_.rg(jA,"downloadStatusEntity");var Ys;return!(jA&&((Ys=B[jA])==null?void 0:Ys.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
SW=n7.map(function(jA){var Ys=J[jA.transfer],s6=[];if(Ys==null?0:Ys.offlineVideoStreams)for(var es=_.a(Ys.offlineVideoStreams),TM=es.next();!TM.done;TM=es.next())(TM=X[TM.value])&&s6.push(TM);es=R[jA.offlineVideoPolicy];TM=Z;var vO=jA==null?void 0:jA.playerResponseTimestamp,IE=_.bq(es.key).entityId;jA=_.rg(IE,"mainVideoEntity");if(es.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var gn="OFFLINE_VIDEO_STATE_DISABLED";es.expirationTimestamp&&Number(es.expirationTimestamp)<Date.now()/1E3&&(gn="OFFLINE_VIDEO_STATE_EXPIRED")}else if(es.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")gn="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Ys==null?void 0:Ys.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":gn="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":gn="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":gn="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":gn="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":gn="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":gn="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:gn="OFFLINE_VIDEO_STATE_UNKNOWN"}if(gn==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Ys==null?void 0:Ys.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":gn="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":gn="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":gn=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}IE={id:IE,videoState:gn};if(Ys==null?0:Ys.cotn)IE.cotn=Ys.cotn;if(Ys==null?0:Ys.maximumDownloadQuality)IE.selectedVideoQuality=Ys==null?void 0:Ys.maximumDownloadQuality;if(Ys==null?0:Ys.lastProgressTimeMs)IE.lastProgressTimeMs=Ys.lastProgressTimeMs;vO&&(IE.playerResponseSavedTimeMs=String(Number(vO)*1E3));Ys=String;vO=0;s6=_.a(s6);for(gn=s6.next();!gn.done;gn=s6.next())if(gn=gn.value,gn.streamsProgress){gn=_.a(gn.streamsProgress);for(var hi=gn.next();!hi.done;hi=
gn.next()){var Je=void 0;vO+=Number((Je=hi.value.numBytesDownloaded)!=null?Je:0)}}IE.downloadedBytes=Ys(vO);IE.selectedOfflineMode=TM[jA]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";es.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(IE.offlinePlaybackDisabledReason=es.offlinePlaybackDisabledReason);return IE});
return vc.return({offlineVideos:SW,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:U}}})})};
Ozs=function(){var v;return _.I(function(e){return e.nextAddress==1?e.yield(_.j7(),2):(v=e.yieldResult)?e.return(_.iz0(v)):e.return({state:"PES Unavailable"})})};
Yy7=function(){var v,e,d,E;return _.I(function(T){if(T.nextAddress==1)return T.yield(_.j7(),2);if(T.nextAddress!=3)return(v=T.yieldResult)?T.yield(IL7(v),3):T.return({state:"PES Unavailable"});e=T.yieldResult;d={};E=e.reduce(function(S,O){S[O.key]=O;return S},d);
return T.return(bzt(E))})};
bzt=function(v){for(var e={},d=[],E=_.a(Object.keys(v)),T=E.next();!T.done;T=E.next()){var S=T.value;T=v[S];var O=void 0;if(((O=T)==null?void 0:O.entityType)==="mainVideoEntity"){delete v[S];var b=T.data;T={};if(b){var Y=void 0;O=(Y=b.videoId)!=null?Y:"vid-"+S;S=v;T.video=b;delete T.video.formattedDescription;delete T.video.thumbnail;b.owner&&(Y=S[b.owner],Y==null?0:Y.data)&&(delete S[Y.key],T.video.owner=Y.data,delete T.video.owner.avatar);if(b=b.downloadState)if(Y=S[b],Y==null?0:Y.data)if(delete S[b],
b=Y.data.playbackData)if(Y=S[b],Y!=null&&Y.data){delete S[b];b=Y.data;delete b.playerResponseJson;T.playbackData=b;if(b.transfer&&(Y=S[b.transfer],Y==null?0:Y.data)){delete S[Y.key];var q=Y.data;T.transfer=q;Y=[];q=_.a(q.offlineVideoStreams||[]);for(var r=q.next();!r.done;r=q.next())if(r=S[r.value])delete S[r.key],Y.push(r.data);Y&&(T.streams=Y)}(b=b.offlineVideoPolicy)&&(b=S[b])&&b.data&&(delete S[b.key],T.offlineVideoPolicy=b.data)}e[O]=T}}else T&&T.entityType==="offlineOrchestrationActionWrapperEntity"&&
T.data&&(delete v[T.key],O=T.data,S=void 0,d.push({id:O.rootActionId,type:((S=O.actionProto)==null?void 0:S.actionType)||"",entity:T}))}e.wrapperEntities=d;Object.keys(v).length>0&&(e.unknownKeys=v);return e};
mtL=function(){var v,e,d,E,T,S,O,b,Y;return _.I(function(q){if(q.nextAddress==1)return v=!!(new _.Xn("")).expiringStorage_,E=!!((e=_.TO.crypto)==null?0:(d=e.subtle)==null?0:d.importKey),T=!!_.TO.BroadcastChannel,S=!!_.TO.navigator.locks,q.yield(FUj(),2);O=q.yieldResult;b=v&&E&&T&&S&&O;Y={isSupported:b};if(b)return q.return(Y);Y.missingBrowserFeatures=[];O||Y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");v||Y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
E||Y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");T||Y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");S||Y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return q.return(Y)})};
yLt=function(){var v;return!((v=ed?ed:null)==null||!v.window)};
_.rL0=function(v){if(_.M7()&&_.ysL("Chromium")>=120){var e=_.qyj().mediaSession;try{e.setActionHandler("enterpictureinpicture",function(){v()})}catch(d){}}};
hfU=function(v){for(var e=[],d=_.a(document.styleSheets),E=d.next(),T={};!E.done;T={node$jscomp$727:void 0},E=d.next())T.node$jscomp$727=E.value.ownerNode,T.node$jscomp$727&&(T.node$jscomp$727 instanceof HTMLStyleElement||T.node$jscomp$727 instanceof HTMLLinkElement)&&e.push(new Promise(function(S){return function(O){var b=S.node$jscomp$727.cloneNode(!0);b.onload=function(){O()};
b.onerror=function(){_.xf(Error("jj"));O()};
v.document.head.appendChild(b)}}(T)));
return Promise.all(e)};
JL0=function(v){var e=[_.Ea(KQS),_.Ea($t$),_.Ea(j8S)];s8H(window.document.documentElement,v.document.documentElement,[_.Ea(N20),_.Ea(k4S),_.Ea(LQS),_.Ea(V0W),_.Ea(oUj)]);s8H(window.document.body,v.document.body,e)};
s8H=function(v,e,d){v=_.a(v.attributes);for(var E=v.next();!E.done;E=v.next())if(E=E.value)try{_.pY(d,e,E.name,E.value)}catch(T){}};
M0t=function(v,e){v=new _.dQ(v.document.documentElement);v.start(G40,e);return v};
t00=function(v){var e=v.document.documentElement;e.addEventListener("click",function(d){tzt(e,d)});
e.addEventListener("touchstart",function(d){B7O(d)});
e.addEventListener("mousedown",function(d){B7O(d)})};
RfU=function(v,e,d,E){E=E===void 0?!1:E;e=new fL$(e||v,d||v);return{x:v.x+((E===void 0?0:E)?e.lengthX*-1:e.lengthX)*.2,y:v.y+((E===void 0?0:E)?e.lengthY*-1:e.lengthY)*.2}};
PB0=function(v){if(!v)return!1;var e=v.status==="OK"||v.status==="LIVE_STREAM_OFFLINE",d,E,T,S=(T=(d=v.errorScreen)==null?void 0:d.playerLegacyDesktopYpcTrailerRenderer)!=null?T:(E=v.errorScreen)==null?void 0:E.ypcTrailerRenderer;return!!e||!!S};
_.xt$=function(v,e){if(!v)return!1;var d,E=(d=v.errorScreen)==null?void 0:d.playerLegacyDesktopYpcOfferRenderer,T;e=!!(e==null?0:(T=e.playerOverlayRenderer)==null?0:T.gatedActionsOverlayRenderer);return!!PB0(v)||!!E||!!e};
XGW=function(v){return B2j(v,0,"gclid",v.search(CB0))>=0||B2j(v,0,"gad_source",v.search(CB0))>=0};
zfs=function(v){var e=[],d=0;return{clear:function(){d=e.length=0},
push:function(E){e[d]=E;d=(d+1)%v},
iterate:function(){return function T(){var S,O,b,Y;return _.Ek(T,function(q){switch(q.nextAddress){case 1:_.KF(q,2),S=e.length,O=0;case 4:if(!(O<S)){q.jumpTo(2);break}b=d+O;Y=_.Tp;return q.yield(e[b%S],7);case 7:Y(q.yieldResult);O++;q.jumpTo(4);break;case 2:_.h7(q),_.$a(q,0)}})}()}}};
lLM=function(v){v.eventsToIgnore||(v.eventsToIgnore=[]);var e=v.eventsToIgnore.map(XtW),d=new Set(e),E=zfs(v.bufferSize);return{flush:function(){var T=Array.from(E.iterate());E.clear();T=T.map(function(S){return{name:S.name,timestamp:S.startTime,attributes:S.attributes}});
return JSON.stringify(T)},
onSpanStart:function(T){T.name==="event"&&d.has(T.attributes.type)||E.push(T)}}};
Hzs=function(v){v=lLM(v);var e=v.flush;dg.processors.push({onSpanStart:v.onSpanStart});LSt.subscribe("handleError",function(d){try{d.params.breadcrumbs=e()}catch(E){_.RI(E,"WARNING")}})};
ALU=function(){CB("web_tracing_action");_.Xq("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
Zz7=function(v,e,d){var E=v.endTime;if(E==null)throw Error("lj");var T=v.name,S={};E-=v.startTime;var O=v.startTime;S={webTracing:(S[T]=v.attributes,S)};d=_.Hb(aeM)(T,E,O,S,d,e);if(v.children)for(v=_.a(v.children),T=v.next();!T.done;T=v.next())Zz7(T.value,e,d)};
cL7=function(v){var e=Qx$.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(d){d.data&&typeof d.data==="object"&&(d=d.data,d.from==="extension"&&d.app==="yt.telemetry"&&(e("Received message from extension",d),v.onMessage(d)))});
return function(d,E){d={app:"yt.telemetry",from:"app",key:d,payload:E};e("Sending message to extension",d);window.postMessage(d,"*")}};
wGt=function(){var v=v===void 0?3E3:v;var e=cL7({onMessage:function(){}}),d=[];
return{onSpanEnd:function(E){E.parentId==null&&d.push(E)===1&&setTimeout(function(){var T=[].concat(_.t7(d));d.length=0;e("spansReported",{spans:T})},v)}}};
gUH=function(){for(var v=NPS.value,e={},d=_.a(v.enabledSpansArray),E=d.next();!E.done;E=d.next())e[E.value]=!0;if(v.exportToCsi||v.exportBreadcrumbs)d=JCM(),dg.initialized=!0,dg.sessionId=d||"",dg.enabledSpans=e;v.exportBreadcrumbs&&Hzs({eventsToIgnore:FQO,bufferSize:v.bufferSize});v.exportToCsi&&dg.processors.push(Q8L);v.exportToDevTools&&(v=wGt(),dg.processors.push(v))};
uIM=function(v){return new Promise(function(e){window.setTimeout(e,v)})};
nU0=function(v){var e={bicf:function(S){v.xIG=S},
blc:function(){return v.getLatestChallengeResponse()},
bcr:function(S){v.cvW.push(S)}},d=window;
d.ntpevasrs=e;if(d.ntpqfbel!==void 0)for(var E=_.a(d.ntpqfbel),T=E.next();!T.done;T=E.next())T=T.value,T(e);d.ntpqfbel=void 0};
DtU=function(v){return _.I(function(e){if(e.nextAddress==1)return _.qq(e,2),e.yield(v.pyS(),4);if(e.nextAddress!=2)return _.wk(e,0);_.jl(e);_.s9(e)})};
Ut$=function(v){var e,d;(e=v.ytcsi)==null||(d=e.tick)==null||d.call(e,"pot_ist")};
pGt=function(v){if(v instanceof Error){var e=_.AE("yt.logging.errors.log");e&&e(v,"WARNING")}};
vYj=function(v){try{var e=JSON.parse(v);if(e.bgChallenge)return e}catch(d){}};
dmM=function(){var v=window,e={networkStatusManagerPromise:_.dk().resolve(new MX0(_.wt)),initialChallengeSli:_.N("wpo_att_sli")?new _.Q4H("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};v=v===void 0?window:v;var d=v.ytAtR,E;e==null||(E=e.initialChallengeSli)==null||_.Sd(E);if(d){if(d=vYj(d)){var T;e==null||(T=e.initialChallengeSli)==null||_.W0(T,"SUCCESS");eSj(d,e)}v.ytAtR=void 0}else v.ytAtRC=function(S){if(S=vYj(S)){var O;e==null||(O=e.initialChallengeSli)==null||
_.W0(O,"SUCCESS");eSj(S,e);v.ytAtRC=void 0}}};
Sct=function(){if(EYt)return EYt;try{var v=_.hz("IFRAME");_.c$(v,_.ie(Tdj));v.sandbox.add("allow-same-origin");v.style.display="none";document.body.appendChild(v);return EYt=v}catch(e){v=new _.kL("Failed to create sandbox iframe"),_.RI(v)}};
WpL=function(v){var e,d;return(d=v==null?void 0:(e=v.contentWindow)==null?void 0:e.fetch)!=null?d:window.fetch};
aQ0=function(v){var e,d;return(d=v==null?void 0:(e=v.contentWindow)==null?void 0:e.JSON.parse)!=null?d:JSON.parse};
iVS=function(v){var e,d;return(d=v==null?void 0:(e=v.contentWindow)==null?void 0:e.Request)!=null?d:window.Request};
OVL=function(v){var e,d;return(d=v==null?void 0:(e=v.contentWindow)==null?void 0:e.TextDecoder)!=null?d:window.TextDecoder};
IQt=function(){return function(v,e){_.Bb("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[v]=e}};
bV7=function(){return function(v,e){var d={};d[v]=e;v=_.Hb(_.SQ$)(d);Object.keys(v).length>0&&_.BF(v)}};
yAt=function(){if(XzM()==="hidden")var v="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else XzM()==="visible"&&(v="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",Yct=null);v&&mmW(v)};
mmW=function(v){if(v==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||v==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(qcW===v)return;qcW=v}var e=9E4+Math.random()*2E3;if(v!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.TN()>e)&&XzM()==="visible"){e=-1;Yct&&(e=Math.round((0,_.E$)()-Yct));var d=String;var E=_.AE("_fact",window);E=E==null||E==-1?-1:Math.max(Date.now()-E,0);_.tI("foregroundHeartbeat",{firstActivityMs:d(E),clientDocumentNonce:G3U,index:String(rAO),lastEventDeltaMs:String(e),trigger:v});
_.pw("_fact",-1,window);rAO++;Yct=(0,_.E$)()}};
_.hSt=function(){try{return!!self.sessionStorage}catch(v){return!1}};
Kps=function(){var v=navigator;return new Promise(function(e,d){var E;(E=v.webkitTemporaryStorage)!=null&&E.queryUsageAndQuota?v.webkitTemporaryStorage.queryUsageAndQuota(function(T,S){e({usage:T,quota:S})},function(T){d(T)}):d(Error("uj"))})};
$mt=function(v,e){var d={errorSeverity:e.errorSeverity.toString(),wizFeatureFlags:Object.entries(e.featureFlags).join("\n")};bvj(e,d);e=e.errorSeverity;e===3?_.RI(v,"ERROR",void 0,void 0,void 0,d):e===2&&_.RI(v,"WARNING",void 0,void 0,void 0,d);_.N("cow_if_errors_in_popup")&&e===3&&v.message.indexOf("<If>")!==-1&&window.alert(v.message)};
jrS=function(v,e){var d=e7.get(v)||{layerNode:e};d.layerNode=e;Z$s(v,d);v.getScreenLayer=function(){return aa(d.layerNode)}};
srS=function(v){var e;v=v.parentNode;for(var d;v&&((e=e7.get(v))==null||!e.isRenderer)&&!((d=v.polymerController)!=null?d:v).isRenderer_;)v=v.parentNode||v.host;if(e=v)return e7.get(e)};
Nd0=function(v){if(v){e7.delete(v);var e=_.dk().resolve(dm);u60(v,e)}};
Lpj=function(v,e,d){if(d===void 0?0:d){if(d=v.getAttribute("client-ve-type"),e.data&&!e.disableReactiveLogging||d)_.tf(function(){ktW(v,_.M4(e.data))}),_.Jf(function(){return void Nd0(v)})}else typeof e.data!=="function"&&ktW(v,e.data)};
ktW=function(v,e){VSM++;oY$(v,e)&&_.RM.addJob(function(){_.NP(_.RM,function(){if(oY$(v,e)&&v.ownerDocument.documentElement===document.documentElement&&v){var d;if(v.getAttribute("layer")){var E=d=Number(v.getAttribute("layer")),T=e7.get(v);T?T.layerNode.layer=E:jrS(v,new JA0(E));(E=srS(v))&&(T=e7.get(v))!=null&&(T.layerNode.parent=E.layerNode)}else if(d=e7.get(v))d=aa(d.layerNode);else{d=aa;E=new JA0;if(T=srS(v))E.parent=T.layerNode;jrS(v,E);d=d(E)}d!=null||(d=0);E=v.getAttribute("client-ve-type");
T=Number(E);var S=!1;E=!1;var O=e7.get(v),b;if((b=O)&&!(b=O[Gt7]!==e)&&(b=T)){var Y;b=((Y=e7.get(v))==null?void 0:Y.clientVeType)===void 0}b&&(O[Gt7]=e,S=E=O.isRenderer=!0);e7.has(v)&&(e7.get(v).clientVeType=T);v.visualElement&&(E=!0);if(_.N("wiz_next_ld_fix_client_ve_spec")){var q;Y=((q=_.L(e==null?void 0:e.rendererContext,_.kJ))==null?void 0:q.loggingDirectives)||(e==null?void 0:e.loggingDirectives)}else Y=e==null?void 0:e.loggingDirectives;Y&&Y.clientVeSpec&&(q=MS$(_.j2(),v),q=_.tSS(_.NC(),Y,q||
void 0,d))&&(v.visualElement=q);!v.visualElement&&T&&S&&(v.veType=T,q=void 0,_.N("wiz_next_client_ve_parent_fix")&&(q=MS$(_.j2(),v)),q=_.s_(_.NC(),v,q,d),v.visualElement=q);E&&(q=_.dk().resolve(dm),peW(v,{data:e,observer:q,layer:d,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
oY$=function(v,e){return(e==null?0:e.trackingParams)||(e==null?0:e.loggingDirectives)||_.L(e==null?void 0:e.rendererContext,_.kJ)||v.getAttribute("client-ve-type")?!0:!1};
fQM=function(v,e,d){v.componentType!==_.N4&&d instanceof HTMLElement&&e&&!_.N("cow_logging_in_component_wrapper")&&Lpj(d,e,!0)};
CcM=function(){if(!RSU){RSU=!0;var v=Object.assign({},{flushRenderEffectsDuringRender:!0},{handleError:$mt,enableComponentStacksInErrorMessages:!1});Object.assign(vx,v);JW7=PcH;xmS();RbL=hjt;Mo$=KzU;_.N("ytwiz_enable_debug_component_props")&&(v=document.body.firstElementChild,window.ng||v.__ngContext__||(v.__ngContext__={},v.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=Bdt))}};
xmS=function(){_.N("cow_logging_in_component_wrapper")?(JYO=function(v,e){e instanceof HTMLElement&&Lpj(e,v,!0)},rW0=function(){}):(JYO=function(){},rW0=fQM)};
XqS=function(v,e,d){e=e===void 0?{}:e;var E,T=(E=_.L(v.commandMetadata,_.$B))==null?void 0:E.url;E=e.form||{};!d||E.element||E.skipDefaultElement||(e.form=e.form||{},e.form.element=d);if(T&&T!=="/service_ajax")return{type:0,command:v,form:e.form};if(_.N("kevlar_service_command_check")){if(_.Fj(_.dk().resolve(_.lX),v))return Object.assign({},{type:1,command:v},e)}else{var S;if((S=_.L(v.commandMetadata,_.$B))==null?0:S.apiUrl)return Object.assign({},{type:1,command:v},e)}return{type:2,command:v,form:e.form}};
zSS=function(v){if(v.form){var e=v.form,d=Object.assign({},e);e=e.element;d=(delete d.element,d);if(e)return[_.mN(e,[v.command,d,v.commandController])]}return[]};
lQM=function(v){if(v.form){var e=v.form,d=Object.assign({},e);e=e.element;d=(delete d.element,d);e&&_.ya(e,[v.command],e,d)}};
AA0=function(v,e,d){var E=new HVL(v,e),T=new iz(v,e,d);v={"/youtubei/v1/browse":new Ok(v,e,d),"/youtubei/v1/player":E,"/youtubei/v1/navigation/resolve_url":new Ia,"/youtubei/v1/next":T,"/youtubei/v1/guide":new bz(d),"/youtubei/v1/search":new Y5(v,e,d),"/youtubei/v1/reel/reel_item_watch":new mX(v,e,d),"/youtubei/v1/get_watch":new yu(E,T)};v["/youtubei/v1/account/account_menu"]=new q3;v["/youtubei/v1/notification/get_notification_menu"]=new rQ;return v};
KO=function(){var v=_.dk().resolve(hR);return Promise.resolve(ZVs(v,_.TO.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
cAW=function(v){return v&&(v=_.$5(_.Jq3(v)))?(new URLSearchParams(v)).get("service"):null};
N3=function(v,e){_.Yj(_.jd(),function(){_.zE("adl")});
_.dk().resolve(wqL)(e);v=v.root;v.loadData&&v.loadData(e);(e==null?0:e.response)?_.W0(nit(),"SUCCESS"):_.xf(new _.kL("Lifecycle: No response in data",_.zr("IS_SHELL_LOAD"),e?e.page:"NO_PAGE",e?e.endpoint:"NO_ENDPOINT"));v.polymerController.$["page-manager"].lazyPrepareCriticalPages((e==null?void 0:e.page)||"",e.endpoint);var d,E;((E=_.L(e==null?void 0:(d=e.endpoint)==null?void 0:d.commandMetadata,_.$B))==null?0:E.webPageType)&&_.d1().dispatch(_.sk(_.L(e.endpoint.commandMetadata,_.$B).webPageType))};
FpM=function(){var v,e;return _.I(function(d){switch(d.nextAddress){case 1:v=window;if(!v.getDataPromise){d.jumpTo(2);break}_.qq(d,3);return d.yield(v.getDataPromise(),5);case 5:return d.return(d.yieldResult);case 3:return _.jl(d),d.yield(KO(),6);case 6:return d.return(d.yieldResult);case 2:if(v.getInitialData)return e=v.getInitialData(),v.getInitialData=void 0,d.return(e);throw Error("wj`"+_.TO.location.href);}})};
gY3=function(){_.xc("CSI_SERVICE_NAME","youtube");_.BF({loadType:"cold"});_.N("kevlar_log_lcp")&&QrM(function(v){_.zE("lcp",v.value)})};
uGO=function(){var v=_.lZ(document.location.href,"enable");v&&v.indexOf("scraper")>-1&&_.xc("ADD_SCRAPER_ATTRIBUTES",!0)};
vC0=function(v){var e=v.root;v=[nYU,DmU,_.k5];_.N("web_feedback_endpoint_autolog_allowlist_killswitch")&&v.push(_.LO,UmL);pqt(function(d,E){return XqS(d,E,e)},function(d){if(!d.command)return[];
var E;((E=d.form)==null?0:E.element)?d.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},d.form,{endpoint:d.command})})):e.handleNavigate(d);return[]},v);
_.dk().addProvider({provide:_.EI,useValue:_.hg.instance})};
dl3=function(){var v={},e={},d;for(d in em0){var E=_.a(_.OE(em0[d],void 0,"IAtZ7"));v[d]=E.next().value;e[d]=E.next().value}return[v,function(T){for(var S in T){var O=void 0;(O=e[S])==null||O(T[S])}}]};
_.Gp=function(v,e,d){e=e===void 0?!1:e;var E=_.f0.getValueByKeys(v,"contents","twoColumnWatchNextResults","results","results","contents"),T=_.f0.getValueByKeys(v,"contents","twoColumnWatchNextResults","playlist","playlist")||null;e&&(T=null);var S=e=null;if(T)e=_.f0.getValueByKeys(T,"titleText"),S=_.f0.unsafeClone(_.f0.getValueByKeys(T,"longBylineText")),E="",S&&(E=_.vv(S)),S=_.pQ(E);else if(E){E=_.a(E);for(var O=E.next();!O.done;O=E.next())O=O.value,O.videoPrimaryInfoRenderer&&(e=_.f0.getValueByKeys.apply(_.f0,
[O].concat(_.t7(ECL)))),O.videoSecondaryInfoRenderer&&(S=_.f0.getValueByKeys.apply(_.f0,[O].concat(_.t7(TeO))))}else _.ZV(Error("Bj"));var b;v.currentVideoEndpoint?b=v.currentVideoEndpoint:_.ZV(Error("Cj"));var Y;d&&(Y=_.f0.getValueByKeys(d,"playabilityStatus","miniplayer","miniplayerRenderer"));v={miniplayerTitle:e,miniplayerSubtitle:S,watchEndpoint:b,playlistData:T};Y&&(v.miniplayerRenderer=Y);return v};
SVt=function(v){if(v)return _.Bz(v)};
_.WTM=function(){return{isFullscreen:function(){throw Error("Dj");},
toggleFullscreen:function(){throw Error("Ej");},
exitFullscreen:function(){throw Error("Fj");},
isAutonavEnabled:function(){throw Error("Gj");},
setAutonavEnabled:function(){throw Error("Hj");},
isAutoplaySetExplicitly:function(){throw Error("Ij");}}};
aDW=function(v){return v.videoDuration?v.numTaps>1&&v.tapDirection!==0?_.M3(v.draggedTime/v.videoDuration,0,1):_.M3((v.playedTime||0)/v.videoDuration,0,1):0};
iiL=function(v){return v.videoDuration?v.isDragging||v.numTaps>1&&v.tapDirection!==0?_.M3(v.draggedTime/v.videoDuration,0,1):_.M3((v.playedTime||0)/v.videoDuration,0,1):0};
IDM=function(v){var e,d,E;return _.L(v==null?void 0:(e=v.markersMap)==null?void 0:(d=e.find(function(T){return T.key==="HEATSEEKER"}))==null?void 0:(E=d.value)==null?void 0:E.heatmap,OiL)};
biW=function(v){var e,d;return(d=(e=IDM(v))==null?void 0:e.heatMarkersDecorations)!=null?d:[]};
YV0=function(v){if(_.N("mweb_supported_chapters_killswitch"))return!0;var e;return!!(v==null?0:(e=v.markersMap)==null?0:e.find(function(d){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(d.key)}))};
_.ml7=function(v){var e=Object,d=e.assign,E;v={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(E=v==null?void 0:v.getPlayerState())!=null?E:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return d.call(e,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},v,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
yKU=function(v){return function(e){var d=v(),E,T=(E=d.playerApi)==null?void 0:E.getPlayerState();e&&e!==d.playerState&&(e===1||e===2)&&d.setState({playerState:T})}};
rKH=function(v){return function(e){var d=v(),E=d.playerApi;E&&(e==null?void 0:e.type)==="newdata"&&(qV3&&(clearTimeout(qV3),qV3=void 0),_.N("web_shorts_use_progress_state_for_gapless")?(e=E==null?void 0:E.getProgressState(e==null?void 0:e.playertype),e=e.seekableEnd-e.seekableStart):e=E==null?void 0:E.getDuration(e==null?void 0:e.playertype),d.setState({playedTime:0,videoDuration:e}))}};
hm0=function(v){return function(e){var d=v(),E=d.playerApi;if(E){var T=E.getPresentingPlayerType();_.N("web_shorts_use_progress_state_for_gapless")?(E=E.getProgressState(T),E=E.seekableEnd-E.seekableStart):E=E.getDuration(T);d.setState({playedTime:e,videoDuration:E})}}};
$lj=function(v){_.kp(112394,v,function(){return KT7},function(e){KT7=e})};
NeS=function(v,e){if(!v)return[];var d,E,T;v=((d=v.markersMap)==null?void 0:(E=d.find(function(S){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(S.key)}))==null?void 0:(T=E.value)==null?void 0:T.chapters)||[];
!jps(v)||(e==null?0:e.ignoreStub)||(v=[spW()].concat(_.t7(v)));return v};
spW=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
jps=function(v){if(v.length===0)return!1;var e;return((e=_.L(v[0],tR))==null?void 0:e.timeRangeStartMillis)!==0};
fO=function(v){return v?v.timeRangeStartMillis||0:0};
LTO=function(v,e){if(v.isDragging&&e)return v=kAH(v,e),v===-1?spW():NeS(e)[v]};
kAH=function(v,e){return v.isDragging&&e?NeS(e,{ignoreStub:!0}).findIndex(function(d,E,T){d=VCS(v);return oCS(d,T,E).scrubberHovering}):-1};
VCS=function(v){return Object.assign({},v,{videoDuration:v.videoDuration*1E3,playedTime:v.playedTime*1E3,draggedTime:v.draggedTime*1E3})};
oCS=function(v,e,d){var E=fO(_.L(e[d],tR));e=fO(_.L(e[d+1],tR))||v.videoDuration;d=v.isDragging;var T;if(T=v.isDragging)T=v.draggedTime,T=T!==null&&T>=E&&T<e;var S=v.playedTime;return S!==null&&S>=E&&S<e?{videoPosition:"active",isScrubbing:d,scrubberHovering:T}:v.playedTime<E?{videoPosition:"pending",isScrubbing:d,scrubberHovering:T}:{videoPosition:"seen",isScrubbing:d,scrubberHovering:T}};
JKj=function(v,e){return v.videoPosition==="seen"||(e===void 0?0:e)>0};
GA0=function(v,e,d){e=v/e.storyboardInterval;var E=NeS(d);if(!E.length)return-e*72;d=0;E=_.a(E);for(var T=E.next();!T.done;T=E.next())if(fO(_.L(T.value,tR))/1E3<v)d++;else break;return-(e*72)-d*56};
MCO=function(v){return v?v.width/v.columns:0};
tCM=function(v){return v.isHovering?v.hoveredTime:v.draggedTime};
fD0=function(v,e){v=v.draggedTime*1E3;return v>=e.visibleTimeRangeStartMillis&&v<=e.visibleTimeRangeEndMillis};
_.Rmj=function(v){if(v===void 0||Number.isNaN(v))return"--:--";var e=Math.abs(Math.floor(v)),d=Math.floor(e/86400),E=Math.floor(e%86400/3600),T=Math.floor(e%3600/60);e=Math.floor(e%60);var S="";d>0&&(S+=d+":",E<10&&(S+="0"));if(d>0||E>0)S+=E+":",T<10&&(S+="0");S+=T+":";e<10&&(S+="0");S+=e;return v>=0?S:"-"+S};
P80=function(v,e){return function(){var d=tCM(v());var E=e();var T=v().playerApi;if(T&&T.getNumberOfStoryboardLevels()!==0){var S=T.getStoryboardFrameIndex(d,1);S!==-1?E=T.getStoryboardFrame(S,1):(d=T.getStoryboardFrameIndex(d,0),T=T.getStoryboardFrame(d,0),E&&T&&(T.height*=3,T.width*=3),E=T)}else E=null;if(!E)return null;e()&&(E.width=90*E.columns,E.height=160*E.rows);return E}};
_.Ra=function(v){if(!v||v.getVideoData)return v};
xl$=function(){var v;return{playerApi:(v=_.mS())!=null?v:void 0}};
Be0=function(v){var e;_.I(function(d){if(d.nextAddress==1)return d.yield(_.Yz(),2);if(e=d.yieldResult)e.unMute(!0),e.setVolume(v,!0);_.s9(d)})};
C8O=function(v,e){v&&(v.value=""+e,v.style.setProperty("--gradient-percent",e+"%"))};
XTS=function(v){var e;return(e=v==null?void 0:v.value)!=null?e:0};
zmH=function(){var v;_.I(function(e){if(e.nextAddress==1)return e.yield(_.Yz(),2);v=e.yieldResult;if(!v)return e.return();v.isMuted()?v.unMute(!0):v.mute(!0);_.s9(e)})};
lDL=function(v){var e=_.dk().resolve(_.P0).getPlayerElement();e&&v&&(v===1?e.pause():e.play())};
Hi0=function(v){_.YB(v,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
AKH=function(v){_.YB(v,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
cK$=function(v){return _.VU(v.document.body,function(){return _.m(ZiL,null)},"Af")};
wTL=function(){var v=window.performance.getEntriesByType("navigation");return v?v.map(function(e){return e.type}).includes("reload"):!1};
pTM=function(){x5(x5(x5(x5(x5(x5(x5(_.dk().resolve(_.B0),_.FTt),_.QpW),_.gCs),_.upS),_.nC0),_.DlW),_.UlU)};
vn$=function(v,e){e=e===void 0?!1:e;var d,E,T,S;return _.I(function(O){if(O.nextAddress==1)return e||!_.N("kevlar_shorts_seedless_retry_initial_load")||(d=window,E=!(!d.getDataPromise&&!d.getInitialData),E)?O.yield(FpM(),2):(setTimeout(vn$.bind(window,v,!0),1E3),O.return());if(O.nextAddress!=3)return T=O.yieldResult,O.yield(ez0(T),3);S=O.yieldResult;N3(v,S);_.s9(O)})};
ez0=function(v){var e;if((e=v.response)==null||!e.replacementEndpoint)return _.qg(v);e=_.dk().resolve(hR);v=v.response;_.L(v.replacementEndpoint,_.Go)&&v.sequenceContinuation&&(_.L(v.replacementEndpoint,_.Go).sequenceParams=v.sequenceContinuation);return CO(e,v.replacementEndpoint,{},_.TO.location.href,"shorts",function(){},function(){return!1})};
EnS=function(v){var e=_.dk().resolve(dKO);v.playerResponse&&e.handleResponse(v.playerResponse);v.response&&e.handleResponse(v.response)};
TX$=function(v){var e=_.d1(),d,E=_.L((d=v.response)==null?void 0:d.frameworkUpdates,nM),T;d=_.L((T=v.playerResponse)==null?void 0:T.frameworkUpdates,nM);var S;v=_.L((S=v.reelWatchSequenceResponse)==null?void 0:S.frameworkUpdates,nM);E&&_.NE(E,e);d&&_.NE(d,e);v&&_.NE(v,e)};
S4U=function(v){var e;_.N("enable_redirect_linking_for_desktop_web_client")&&((e=window.location.hash)==null?0:e.includes("redirect_state"))&&v.url&&(v.url=v.url.toString()+window.location.hash)};
iW0=function(v){var e=_.dk(),d=e.resolve(hR);e=e.resolve(_.WDU);v.endpoint&&(d=aj$(d,v.endpoint),d.content&&v.response&&_.XA(e,v.response,d.content),d.player&&v.playerResponse&&_.XA(e,v.playerResponse,d.player),d.reelSequence&&v.reelWatchSequenceResponse&&_.XA(e,v.reelWatchSequenceResponse,d.reelSequence))};
zp=function(v,e){_.N("web_service_params_response_processor")&&EnS(e);TX$(e);var d;(e==null?0:e.url)&&((d=window.location.hash)==null?0:d.includes("redirect_state"))&&(S4U(e),(d=cAW(e.url))&&_.b4(v.root,"yt-initialize-third-party",[d,e]));iW0(e);d=_.dk();var E=d.resolve(OWt);e.playerResponse&&d.resolve(Ijs).handleResponse(e.playerResponse);if(e.playerResponse){d=void 0;if(_.N("ab_v_vid_sig")&&e.endpoint){var T,S=(T=_.L(e.endpoint,_.p2))!=null?T:_.L(e.endpoint,_.Go);S&&(d=S.videoId)}bW3(E,e.playerResponse,
d)}e.playerResponse&&YC0(e.playerResponse)&&_.N("web_enable_ab_rsp_cl")?Ps$().then(function(){Y4U(E,e.playerResponse);N3(v,e)}):N3(v,e)};
yv0=function(v){if(v=v.root.data){var e=_.dk().resolve(mK$);v.endpoint&&(v.response&&e.handleResponse(v.response,void 0,document.querySelector("ytd-app")),v.playerResponse&&e.handleResponse(v.playerResponse),v.reelWatchSequenceResponse&&e.handleResponse(v.reelWatchSequenceResponse))}};
q4H=function(v){var e,d,E,T,S,O;return _.I(function(b){switch(b.nextAddress){case 1:e=window;if(!e.getDataPromise){b.jumpTo(2);break}_.qq(b,3);return b.yield(e.getDataPromise(),5);case 5:d=b.yieldResult;zp(v,d);_.wk(b,4);break;case 3:return _.jl(b),b.yield(KO(),6);case 6:E=b.yieldResult,N3(v,E);case 4:return b.return();case 2:if(!_.N("sw_nav_preload_pbj")){b.jumpTo(7);break}e.fetchInitialData=function(){var Y;return _.I(function(q){if(q.nextAddress==1)return q.yield(KO(),2);Y=q.yieldResult;N3(v,Y);
_.s9(q)})};
if(e.getInitialData){e.loadInitialData=function(Y){zp(v,Y)};
T=e.getInitialData();e.getInitialData=void 0;zp(v,T);b.jumpTo(8);break}e.fetchInitialData=void 0;return b.yield(KO(),9);case 9:S=b.yieldResult,N3(v,S);case 8:return b.return();case 7:e.getInitialData?(O=e.getInitialData(),e.getInitialData=void 0,zp(v,O)):e.loadInitialData=function(Y){zp(v,Y)},_.s9(b)}})};
rvM=function(v){var e=0;return function(){return e<v.length?{done:!1,value:v[e++]}:{done:!0}}};
hzj=typeof Object.defineProperties=="function"?Object.defineProperty:function(v,e,d){if(v==Array.prototype||v==Object.prototype)return v;v[e]=d.value;return v};
KDt=function(v){v=["object"==typeof globalThis&&globalThis,v,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<v.length;++e){var d=v[e];if(d&&d.Math==Math)return d}throw Error("a");};
_.vP=KDt(this);lz=function(v,e){if(e)a:{var d=_.vP;v=v.split(".");for(var E=0;E<v.length-1;E++){var T=v[E];if(!(T in d))break a;d=d[T]}v=v[v.length-1];E=d[v];e=e(E);e!=E&&e!=null&&hzj(d,v,{configurable:!0,writable:!0,value:e})}};
lz("Symbol",function(v){if(v)return v;var e=function(S,O){this.$jscomp$symbol$id_=S;hzj(this,"description",{configurable:!0,writable:!0,value:O})};
e.prototype.toString=function(){return this.$jscomp$symbol$id_};
var d="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",E=0,T=function(S){if(this instanceof T)throw new TypeError("b");return new e(d+(S||"")+"_"+E++,S)};
return T});
lz("Symbol.iterator",function(v){if(v)return v;v=Symbol("c");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),d=0;d<e.length;d++){var E=_.vP[e[d]];typeof E==="function"&&typeof E.prototype[v]!="function"&&hzj(E.prototype,v,{configurable:!0,writable:!0,value:function(){return $KS(rvM(this))}})}return v});
lz("Symbol.asyncIterator",function(v){return v?v:Symbol("d")});
var $KS=function(v){v={next:v};v[Symbol.iterator]=function(){return this};
return v},jkM=typeof Object.create=="function"?Object.create:function(v){var e=function(){};
e.prototype=v;return new e},sk0=function(){function v(){function d(){}
new d;Reflect.construct(d,[],function(){});
return new d instanceof d}
if(typeof Reflect!="undefined"&&Reflect.construct){if(v())return Reflect.construct;var e=Reflect.construct;return function(d,E,T){d=e(d,E);T&&Reflect.setPrototypeOf(d,T.prototype);return d}}return function(d,E,T){T===void 0&&(T=d);
T=jkM(T.prototype||Object.prototype);return Function.prototype.apply.call(d,T,E)||T}}(),NXM;
if(typeof Object.setPrototypeOf=="function")NXM=Object.setPrototypeOf;else{var kYj;a:{var LD3={a:!0},Vvt={};try{Vvt.__proto__=LD3;kYj=Vvt.a;break a}catch(v){}kYj=!1}NXM=kYj?function(v,e){v.__proto__=e;if(v.__proto__!==e)throw new TypeError("e`"+v);return v}:null}H0=NXM;
_.V=function(v,e){v.prototype=jkM(e.prototype);v.prototype.constructor=v;if(H0)H0(v,e);else for(var d in e)if(d!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(e,d);E&&Object.defineProperty(v,d,E)}else v[d]=e[d];v.superClass_=e.prototype};
_.a=function(v){var e=typeof Symbol!="undefined"&&Symbol.iterator&&v[Symbol.iterator];if(e)return e.call(v);if(typeof v.length=="number")return{next:rvM(v)};throw Error("f`"+String(v));};
Q4=function(v){for(var e,d=[];!(e=v.next()).done;)d.push(e.value);return d};
_.t7=function(v){return v instanceof Array?v:Q4(_.a(v))};
_.Z9=function(v){return AR(v,v)};
AR=function(v,e){v.raw=e;Object.freeze&&(Object.freeze(v),Object.freeze(e));return v};
c0=function(v,e){return Object.prototype.hasOwnProperty.call(v,e)};
onH=typeof Object.assign=="function"?Object.assign:function(v,e){for(var d=1;d<arguments.length;d++){var E=arguments[d];if(E)for(var T in E)c0(E,T)&&(v[T]=E[T])}return v};
lz("Object.assign",function(v){return v||onH});
var wQ=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Jv3=function(v){if(v.isRunning_)throw new TypeError("h");
v.isRunning_=!0};
wQ.prototype.JSC$8713_next_=function(v){this.yieldResult=v};
var GYt=function(v,e){v.abruptCompletion_={exception:e,isException:!0};v.nextAddress=v.catchAddress_||v.finallyAddress_};
wQ.prototype.return=function(v){this.abruptCompletion_={return:v};this.nextAddress=this.finallyAddress_};
wQ.prototype.yield=function(v,e){this.nextAddress=e;return{value:v}};
wQ.prototype.jumpTo=function(v){this.nextAddress=v};
_.s9=function(v){v.nextAddress=0};
_.qq=function(v,e,d){v.catchAddress_=e;d!=void 0&&(v.finallyAddress_=d)};
_.KF=function(v,e){v.catchAddress_=0;v.finallyAddress_=e||0};
_.wk=function(v,e,d){v.nextAddress=e;v.catchAddress_=d||0};
_.jl=function(v,e){v.catchAddress_=e||0;e=v.abruptCompletion_.exception;v.abruptCompletion_=null;return e};
_.h7=function(v,e,d,E){E?v.finallyContexts_[E]=v.abruptCompletion_:v.finallyContexts_=[v.abruptCompletion_];v.catchAddress_=e||0;v.finallyAddress_=d||0};
_.$a=function(v,e,d){d=v.finallyContexts_.splice(d||0)[0];(d=v.abruptCompletion_=v.abruptCompletion_||d)?d.isException?v.nextAddress=v.catchAddress_||v.finallyAddress_:d.jumpTo!=void 0&&v.finallyAddress_<d.jumpTo?(v.nextAddress=d.jumpTo,v.abruptCompletion_=null):v.nextAddress=v.finallyAddress_:v.nextAddress=e};
Mv0=function(v){this.JSC$8718_context_=new wQ;this.program_=v};
fjM=function(v,e){Jv3(v.JSC$8718_context_);var d=v.JSC$8718_context_.yieldAllIterator_;if(d)return tvs(v,"return"in d?d["return"]:function(E){return{value:E,done:!0}},e,v.JSC$8718_context_.return);
v.JSC$8718_context_.return(e);return FA(v)};
tvs=function(v,e,d,E){try{var T=e.call(v.JSC$8718_context_.yieldAllIterator_,d);if(!(T instanceof Object))throw new TypeError("g`"+T);if(!T.done)return v.JSC$8718_context_.isRunning_=!1,T;var S=T.value}catch(O){return v.JSC$8718_context_.yieldAllIterator_=null,GYt(v.JSC$8718_context_,O),FA(v)}v.JSC$8718_context_.yieldAllIterator_=null;E.call(v.JSC$8718_context_,S);return FA(v)};
FA=function(v){for(;v.JSC$8718_context_.nextAddress;)try{var e=v.program_(v.JSC$8718_context_);if(e)return v.JSC$8718_context_.isRunning_=!1,{value:e.value,done:!1}}catch(d){v.JSC$8718_context_.yieldResult=void 0,GYt(v.JSC$8718_context_,d)}v.JSC$8718_context_.isRunning_=!1;if(v.JSC$8718_context_.abruptCompletion_){e=v.JSC$8718_context_.abruptCompletion_;v.JSC$8718_context_.abruptCompletion_=null;if(e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};
Rz0=function(v){this.next=function(e){Jv3(v.JSC$8718_context_);v.JSC$8718_context_.yieldAllIterator_?e=tvs(v,v.JSC$8718_context_.yieldAllIterator_.next,e,v.JSC$8718_context_.JSC$8713_next_):(v.JSC$8718_context_.JSC$8713_next_(e),e=FA(v));return e};
this.throw=function(e){Jv3(v.JSC$8718_context_);v.JSC$8718_context_.yieldAllIterator_?e=tvs(v,v.JSC$8718_context_.yieldAllIterator_["throw"],e,v.JSC$8718_context_.JSC$8713_next_):(GYt(v.JSC$8718_context_,e),e=FA(v));return e};
this.return=function(e){return fjM(v,e)};
this[Symbol.iterator]=function(){return this}};
_.Ek=function(v,e){e=new Rz0(new Mv0(e));H0&&v.prototype&&H0(e,v.prototype);return e};
PUs=function(v){function e(E){return v.next(E)}
function d(E){return v.throw(E)}
return new Promise(function(E,T){function S(O){O.done?E(O.value):Promise.resolve(O.value).then(e,d).then(S,T)}
S(v.next())})};
_.I=function(v){return PUs(new Rz0(new Mv0(v)))};
_.r5=function(v){var e=v[Symbol.asyncIterator];return e!==void 0?e.call(v):new xKt(_.a(v))};
xKt=function(v){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return v};
this.next=function(e){return Promise.resolve(v.next(e))};
this["throw"]=function(e){return new Promise(function(d,E){var T=v["throw"];T!==void 0?d(T.call(v,e)):(d=v["return"],d!==void 0&&d.call(v),E(new TypeError("i")))})};
v["return"]!==void 0&&(this["return"]=function(e){return Promise.resolve(v["return"](e))})};
_.Xa=function(){for(var v=Number(this),e=[],d=v;d<arguments.length;d++)e[d-v]=arguments[d];return e};
_.Tp=function(v){return v};
lz("globalThis",function(v){return v||_.vP});
lz("Reflect",function(v){return v?v:{}});
lz("Reflect.construct",function(){return sk0});
lz("Reflect.setPrototypeOf",function(v){return v?v:H0?function(e,d){try{return H0(e,d),!0}catch(E){return!1}}:null});
lz("Promise",function(v){function e(){this.batch_=null}
function d(O){return O instanceof T?O:new T(function(b){b(O)})}
if(v&&(typeof _.vP.PromiseRejectionEvent!=="undefined"||!_.vP.Promise||_.vP.Promise.toString().indexOf("[native code]")===-1))return v;e.prototype.asyncExecute=function(O){if(this.batch_==null){this.batch_=[];var b=this;this.asyncExecuteFunction(function(){b.executeBatch_()})}this.batch_.push(O)};
var E=_.vP.setTimeout;e.prototype.asyncExecuteFunction=function(O){E(O,0)};
e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var O=this.batch_;this.batch_=[];for(var b=0;b<O.length;++b){var Y=O[b];O[b]=null;try{Y()}catch(q){this.asyncThrow_(q)}}}this.batch_=null};
e.prototype.asyncThrow_=function(O){this.asyncExecuteFunction(function(){throw O;})};
var T=function(O){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var b=this.createResolveAndReject_();try{O(b.resolve,b.reject)}catch(Y){b.reject(Y)}};
T.prototype.createResolveAndReject_=function(){function O(q){return function(r){Y||(Y=!0,q.call(b,r))}}
var b=this,Y=!1;return{resolve:O(this.resolveTo_),reject:O(this.JSC$8746_reject_)}};
T.prototype.resolveTo_=function(O){if(O===this)this.JSC$8746_reject_(new TypeError("m"));else if(O instanceof T)this.settleSameAsPromise_(O);else{a:switch(typeof O){case "object":var b=O!=null;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(O):this.fulfill_(O)}};
T.prototype.resolveToNonPromiseObj_=function(O){var b=void 0;try{b=O.then}catch(Y){this.JSC$8746_reject_(Y);return}typeof b=="function"?this.settleSameAsThenable_(b,O):this.fulfill_(O)};
T.prototype.JSC$8746_reject_=function(O){this.settle_(2,O)};
T.prototype.fulfill_=function(O){this.settle_(1,O)};
T.prototype.settle_=function(O,b){if(this.state_!=0)throw Error("n`"+O+"`"+b+"`"+this.state_);this.state_=O;this.result_=b;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
T.prototype.scheduleUnhandledRejectionCheck_=function(){var O=this;E(function(){if(O.notifyUnhandledRejection_()){var b=_.vP.console;typeof b!=="undefined"&&b.error(O.result_)}},1)};
T.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var O=_.vP.CustomEvent,b=_.vP.Event,Y=_.vP.dispatchEvent;if(typeof Y==="undefined")return!0;typeof O==="function"?O=new O("unhandledrejection",{cancelable:!0}):typeof b==="function"?O=new b("unhandledrejection",{cancelable:!0}):(O=_.vP.document.createEvent("CustomEvent"),O.initCustomEvent("unhandledrejection",!1,!0,O));O.promise=this;O.reason=this.result_;return Y(O)};
T.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var O=0;O<this.onSettledCallbacks_.length;++O)S.asyncExecute(this.onSettledCallbacks_[O]);this.onSettledCallbacks_=null}};
var S=new e;T.prototype.settleSameAsPromise_=function(O){var b=this.createResolveAndReject_();O.callWhenSettled_(b.resolve,b.reject)};
T.prototype.settleSameAsThenable_=function(O,b){var Y=this.createResolveAndReject_();try{O.call(b,Y.resolve,Y.reject)}catch(q){Y.reject(q)}};
T.prototype.then=function(O,b){function Y(K,k){return typeof K=="function"?function(J){try{q(K(J))}catch(R){r(R)}}:k}
var q,r,h=new T(function(K,k){q=K;r=k});
this.callWhenSettled_(Y(O,q),Y(b,r));return h};
T.prototype.catch=function(O){return this.then(void 0,O)};
T.prototype.callWhenSettled_=function(O,b){function Y(){switch(q.state_){case 1:O(q.result_);break;case 2:b(q.result_);break;default:throw Error("o`"+q.state_);}}
var q=this;this.onSettledCallbacks_==null?S.asyncExecute(Y):this.onSettledCallbacks_.push(Y);this.isRejectionHandled_=!0};
T.resolve=d;T.reject=function(O){return new T(function(b,Y){Y(O)})};
T.race=function(O){return new T(function(b,Y){for(var q=_.a(O),r=q.next();!r.done;r=q.next())d(r.value).callWhenSettled_(b,Y)})};
T.all=function(O){var b=_.a(O),Y=b.next();return Y.done?d([]):new T(function(q,r){function h(J){return function(R){K[J]=R;k--;k==0&&q(K)}}
var K=[],k=0;do K.push(void 0),k++,d(Y.value).callWhenSettled_(h(K.length-1),r),Y=b.next();while(!Y.done)})};
return T});
var Qu=function(v,e,d){if(v==null)throw new TypeError("p`"+d);if(e instanceof RegExp)throw new TypeError("q`"+d);return v+""};
lz("String.prototype.startsWith",function(v){return v?v:function(e,d){var E=Qu(this,e,"startsWith"),T=E.length,S=e.length;d=Math.max(0,Math.min(d|0,E.length));for(var O=0;O<S&&d<T;)if(E[d++]!=e[O++])return!1;return O>=S}});
lz("Object.setPrototypeOf",function(v){return v||H0});
lz("Symbol.dispose",function(v){return v?v:Symbol("r")});
lz("SuppressedError",function(v){function e(d,E,T){if(!(this instanceof e))return new e(d,E,T);T=Error(T);"stack"in T&&(this.stack=T.stack);this.message=T.message;this.error=d;this.suppressed=E}
if(v)return v;_.V(e,Error);e.prototype.name="SuppressedError";return e});
var BXt=function(v,e,d){v instanceof String&&(v=String(v));for(var E=v.length,T=0;T<E;T++){var S=v[T];if(e.call(d,S,T,v))return{i:T,v:S}}return{i:-1,v:void 0}};
lz("Array.prototype.find",function(v){return v?v:function(e,d){return BXt(this,e,d).v}});
lz("WeakMap",function(v){function e(){}
function d(Y){var q=typeof Y;return q==="object"&&Y!==null||q==="function"}
function E(Y){if(!c0(Y,S)){var q=new e;hzj(Y,S,{value:q})}}
function T(Y){var q=Object[Y];q&&(Object[Y]=function(r){if(r instanceof e)return r;Object.isExtensible(r)&&E(r);return q(r)})}
if(function(){if(!v||!Object.seal)return!1;try{var Y=Object.seal({}),q=Object.seal({}),r=new v([[Y,2],[q,3]]);if(r.get(Y)!=2||r.get(q)!=3)return!1;r.delete(Y);r.set(q,4);return!r.has(Y)&&r.get(q)==4}catch(h){return!1}}())return v;
var S="$jscomp_hidden_"+Math.random();T("freeze");T("preventExtensions");T("seal");var O=0,b=function(Y){this.JSC$8753_id_=(O+=Math.random()+1).toString();if(Y){Y=_.a(Y);for(var q;!(q=Y.next()).done;)q=q.value,this.set(q[0],q[1])}};
b.prototype.set=function(Y,q){if(!d(Y))throw Error("s");E(Y);if(!c0(Y,S))throw Error("t`"+Y);Y[S][this.JSC$8753_id_]=q;return this};
b.prototype.get=function(Y){return d(Y)&&c0(Y,S)?Y[S][this.JSC$8753_id_]:void 0};
b.prototype.has=function(Y){return d(Y)&&c0(Y,S)&&c0(Y[S],this.JSC$8753_id_)};
b.prototype.delete=function(Y){return d(Y)&&c0(Y,S)&&c0(Y[S],this.JSC$8753_id_)?delete Y[S][this.JSC$8753_id_]:!1};
return b});
lz("Map",function(v){if(function(){if(!v||typeof v!="function"||!v.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),Y=new v(_.a([[b,"s"]]));if(Y.get(b)!="s"||Y.size!=1||Y.get({x:4})||Y.set({x:4},"t")!=Y||Y.size!=2)return!1;var q=Y.entries(),r=q.next();if(r.done||r.value[0]!=b||r.value[1]!="s")return!1;r=q.next();return r.done||r.value[0].x!=4||r.value[1]!="t"||!q.next().done?!1:!0}catch(h){return!1}}())return v;
var e=new WeakMap,d=function(b){this[0]={};this[1]=S();this.size=0;if(b){b=_.a(b);for(var Y;!(Y=b.next()).done;)Y=Y.value,this.set(Y[0],Y[1])}};
d.prototype.set=function(b,Y){b=b===0?0:b;var q=E(this,b);q.list||(q.list=this[0][q.id]=[]);q.entry?q.entry.value=Y:(q.entry={next:this[1],previous:this[1].previous,head:this[1],key:b,value:Y},q.list.push(q.entry),this[1].previous.next=q.entry,this[1].previous=q.entry,this.size++);return this};
d.prototype.delete=function(b){b=E(this,b);return b.entry&&b.list?(b.list.splice(b.index,1),b.list.length||delete this[0][b.id],b.entry.previous.next=b.entry.next,b.entry.next.previous=b.entry.previous,b.entry.head=null,this.size--,!0):!1};
d.prototype.clear=function(){this[0]={};this[1]=this[1].previous=S();this.size=0};
d.prototype.has=function(b){return!!E(this,b).entry};
d.prototype.get=function(b){return(b=E(this,b).entry)&&b.value};
d.prototype.entries=function(){return T(this,function(b){return[b.key,b.value]})};
d.prototype.keys=function(){return T(this,function(b){return b.key})};
d.prototype.values=function(){return T(this,function(b){return b.value})};
d.prototype.forEach=function(b,Y){for(var q=this.entries(),r;!(r=q.next()).done;)r=r.value,b.call(Y,r[1],r[0],this)};
d.prototype[Symbol.iterator]=d.prototype.entries;var E=function(b,Y){var q=Y&&typeof Y;q=="object"||q=="function"?e.has(Y)?q=e.get(Y):(q=""+ ++O,e.set(Y,q)):q="p_"+Y;var r=b[0][q];if(r&&c0(b[0],q))for(b=0;b<r.length;b++){var h=r[b];if(Y!==Y&&h.key!==h.key||Y===h.key)return{id:q,list:r,index:b,entry:h}}return{id:q,list:r,index:-1,entry:void 0}},T=function(b,Y){var q=b[1];
return $KS(function(){if(q){for(;q.head!=b[1];)q=q.previous;for(;q.next!=q.head;)return q=q.next,{done:!1,value:Y(q)};q=null}return{done:!0,value:void 0}})},S=function(){var b={};
return b.previous=b.next=b.head=b},O=0;
return d});
lz("Set",function(v){if(function(){if(!v||typeof v!="function"||!v.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),E=new v(_.a([d]));if(!E.has(d)||E.size!=1||E.add(d)!=E||E.size!=1||E.add({x:4})!=E||E.size!=2)return!1;var T=E.entries(),S=T.next();if(S.done||S.value[0]!=d||S.value[1]!=d)return!1;S=T.next();return S.done||S.value[0]==d||S.value[0].x!=4||S.value[1]!=S.value[0]?!1:T.next().done}catch(O){return!1}}())return v;
var e=function(d){this.JSC$8767_map_=new Map;if(d){d=_.a(d);for(var E;!(E=d.next()).done;)this.add(E.value)}this.size=this.JSC$8767_map_.size};
e.prototype.add=function(d){d=d===0?0:d;this.JSC$8767_map_.set(d,d);this.size=this.JSC$8767_map_.size;return this};
e.prototype.delete=function(d){d=this.JSC$8767_map_.delete(d);this.size=this.JSC$8767_map_.size;return d};
e.prototype.clear=function(){this.JSC$8767_map_.clear();this.size=0};
e.prototype.has=function(d){return this.JSC$8767_map_.has(d)};
e.prototype.entries=function(){return this.JSC$8767_map_.entries()};
e.prototype.values=function(){return this.JSC$8767_map_.values()};
e.prototype.keys=e.prototype.values;e.prototype[Symbol.iterator]=e.prototype.values;e.prototype.forEach=function(d,E){var T=this;this.JSC$8767_map_.forEach(function(S){return d.call(E,S,S,T)})};
return e});
lz("Math.log2",function(v){return v?v:function(e){return Math.log(e)/Math.LN2}});
lz("Object.values",function(v){return v?v:function(e){var d=[],E;for(E in e)c0(e,E)&&d.push(e[E]);return d}});
lz("Object.is",function(v){return v?v:function(e,d){return e===d?e!==0||1/e===1/d:e!==e&&d!==d}});
lz("Array.prototype.includes",function(v){return v?v:function(e,d){var E=this;E instanceof String&&(E=String(E));var T=E.length;d=d||0;for(d<0&&(d=Math.max(d+T,0));d<T;d++){var S=E[d];if(S===e||Object.is(S,e))return!0}return!1}});
lz("String.prototype.includes",function(v){return v?v:function(e,d){return Qu(this,e,"includes").indexOf(e,d||0)!==-1}});
lz("Array.from",function(v){return v?v:function(e,d,E){d=d!=null?d:function(b){return b};
var T=[],S=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(typeof S=="function"){e=S.call(e);for(var O=0;!(S=e.next()).done;)T.push(d.call(E,S.value,O++))}else for(S=e.length,O=0;O<S;O++)T.push(d.call(E,e[O],O));return T}});
lz("Object.entries",function(v){return v?v:function(e){var d=[],E;for(E in e)c0(e,E)&&d.push([E,e[E]]);return d}});
lz("Number.isFinite",function(v){return v?v:function(e){return typeof e!=="number"?!1:!isNaN(e)&&e!==Infinity&&e!==-Infinity}});
lz("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
lz("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
lz("Number.isInteger",function(v){return v?v:function(e){return Number.isFinite(e)?e===Math.floor(e):!1}});
lz("Number.isSafeInteger",function(v){return v?v:function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER}});
lz("String.prototype.endsWith",function(v){return v?v:function(e,d){var E=Qu(this,e,"endsWith");d===void 0&&(d=E.length);d=Math.max(0,Math.min(d|0,E.length));for(var T=e.length;T>0&&d>0;)if(E[--d]!=e[--T])return!1;return T<=0}});
var CUS=function(v,e){v instanceof String&&(v+="");var d=0,E=!1,T={next:function(){if(!E&&d<v.length){var S=d++;return{value:e(S,v[S]),done:!1}}E=!0;return{done:!0,value:void 0}}};
T[Symbol.iterator]=function(){return T};
return T};
lz("Array.prototype.entries",function(v){return v?v:function(){return CUS(this,function(e,d){return[e,d]})}});
lz("Math.trunc",function(v){return v?v:function(e){e=Number(e);if(isNaN(e)||e===Infinity||e===-Infinity||e===0)return e;var d=Math.floor(Math.abs(e));return e<0?-d:d}});
lz("Number.isNaN",function(v){return v?v:function(e){return typeof e==="number"&&isNaN(e)}});
lz("Array.prototype.keys",function(v){return v?v:function(){return CUS(this,function(e){return e})}});
lz("Array.prototype.values",function(v){return v?v:function(){return CUS(this,function(e,d){return d})}});
lz("Array.prototype.fill",function(v){return v?v:function(e,d,E){var T=this.length||0;d<0&&(d=Math.max(0,T+d));if(E==null||E>T)E=T;E=Number(E);E<0&&(E=Math.max(0,T+E));for(d=Number(d||0);d<E;d++)this[d]=e;return this}});
var gQ=function(v){return v?v:Array.prototype.fill};
lz("Int8Array.prototype.fill",gQ);lz("Uint8Array.prototype.fill",gQ);lz("Uint8ClampedArray.prototype.fill",gQ);lz("Int16Array.prototype.fill",gQ);lz("Uint16Array.prototype.fill",gQ);lz("Int32Array.prototype.fill",gQ);lz("Uint32Array.prototype.fill",gQ);lz("Float32Array.prototype.fill",gQ);lz("Float64Array.prototype.fill",gQ);
lz("Object.fromEntries",function(v){return v?v:function(e){var d={};if(!(Symbol.iterator in e))throw new TypeError("u`"+e);e=e[Symbol.iterator].call(e);for(var E=e.next();!E.done;E=e.next()){E=E.value;if(Object(E)!==E)throw new TypeError("v");d[E[0]]=E[1]}return d}});
lz("String.prototype.replaceAll",function(v){return v?v:function(e,d){if(e instanceof RegExp&&!e.global)throw new TypeError("w");return e instanceof RegExp?this.replace(e,d):this.replace(new RegExp(String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),d)}});
lz("Object.getOwnPropertySymbols",function(v){return v?v:function(){return[]}});
lz("String.prototype.repeat",function(v){return v?v:function(e){var d=Qu(this,null,"repeat");if(e<0||e>1342177279)throw new RangeError("x");e|=0;for(var E="";e;)if(e&1&&(E+=d),e>>>=1)d+=d;return E}});
lz("Array.prototype.findIndex",function(v){return v?v:function(e,d){return BXt(this,e,d).i}});
lz("Array.prototype.flatMap",function(v){return v?v:function(e,d){var E=[];Array.prototype.forEach.call(this,function(T,S){T=e.call(d,T,S,this);Array.isArray(T)?E.push.apply(E,T):E.push(T)});
return E}});
lz("String.prototype.codePointAt",function(v){return v?v:function(e){var d=Qu(this,null,"codePointAt"),E=d.length;e=Number(e)||0;if(e>=0&&e<E){e|=0;var T=d.charCodeAt(e);if(T<55296||T>56319||e+1===E)return T;e=d.charCodeAt(e+1);return e<56320||e>57343?T:(T-55296)*1024+e+9216}}});
lz("String.fromCodePoint",function(v){return v?v:function(e){for(var d="",E=0;E<arguments.length;E++){var T=Number(arguments[E]);if(T<0||T>1114111||T!==Math.floor(T))throw new RangeError("y`"+T);T<=65535?d+=String.fromCharCode(T):(T-=65536,d+=String.fromCharCode(T>>>10&1023|55296),d+=String.fromCharCode(T&1023|56320))}return d}});
lz("String.prototype.trimLeft",function(v){function e(){return this.replace(/^[\s\xa0]+/,"")}
return v||e});
lz("String.prototype.trimStart",function(v){return v||String.prototype.trimLeft});
lz("String.prototype.padStart",function(v){return v?v:function(e,d){var E=Qu(this,null,"padStart");e-=E.length;d=d!==void 0?String(d):" ";return(e>0&&d?d.repeat(Math.ceil(e/d.length)).substring(0,e):"")+E}});
lz("Promise.prototype.finally",function(v){return v?v:function(e){return this.then(function(d){return Promise.resolve(e()).then(function(){return d})},function(d){return Promise.resolve(e()).then(function(){throw d;
})})}});
lz("Math.imul",function(v){return v?v:function(e,d){e=Number(e);d=Number(d);var E=e&65535,T=d&65535;return E*T+((e>>>16&65535)*T+E*(d>>>16&65535)<<16>>>0)|0}});
lz("Object.hasOwn",function(v){return v?v:function(e,d){return Object.prototype.hasOwnProperty.call(e,d)}});
lz("Math.sign",function(v){return v?v:function(e){e=Number(e);return e===0||isNaN(e)?e:e>0?1:-1}});
lz("Array.prototype.flat",function(v){return v?v:function(e){e=e===void 0?1:e;var d=[];Array.prototype.forEach.call(this,function(E){Array.isArray(E)&&e>0?(E=Array.prototype.flat.call(E,e-1),d.push.apply(d,E)):d.push(E)});
return d}});
lz("String.raw",function(v){return v?v:function(e,d){if(e==null)throw new TypeError("z");for(var E=e.raw,T=E.length,S="",O=0;O<T;++O)S+=E[O],O+1<T&&O+1<arguments.length&&(S+=String(arguments[O+1]));return S}});
lz("Reflect.ownKeys",function(v){return v?v:function(e){var d=[],E=Object.getOwnPropertyNames(e);e=Object.getOwnPropertySymbols(e);for(var T=0;T<E.length;T++)(E[T].substring(0,14)=="jscomp_symbol_"?e:d).push(E[T]);return d.concat(e)}});
lz("Object.getOwnPropertyDescriptors",function(v){return v?v:function(e){for(var d={},E=Reflect.ownKeys(e),T=0;T<E.length;T++)d[E[T]]=Object.getOwnPropertyDescriptor(e,E[T]);return d}});
lz("WeakSet",function(v){if(function(){if(!v||!Object.seal)return!1;try{var d=Object.seal({}),E=Object.seal({}),T=new v([d]);if(!T.has(d)||T.has(E))return!1;T.delete(d);T.add(E);return!T.has(d)&&T.has(E)}catch(S){return!1}}())return v;
var e=function(d){this.JSC$8780_map_=new WeakMap;if(d){d=_.a(d);for(var E;!(E=d.next()).done;)this.add(E.value)}};
e.prototype.add=function(d){this.JSC$8780_map_.set(d,!0);return this};
e.prototype.has=function(d){return this.JSC$8780_map_.has(d)};
e.prototype.delete=function(d){return this.JSC$8780_map_.delete(d)};
return e});
lz("Promise.allSettled",function(v){function e(E){return{status:"fulfilled",value:E}}
function d(E){return{status:"rejected",reason:E}}
return v?v:function(E){var T=this;E=Array.from(E,function(S){return T.resolve(S).then(e,d)});
return T.all(E)}});
lz("Number.parseInt",function(v){return v||parseInt});
_._DumpException=window._DumpException||function(v){throw v;};
window._DumpException=_._DumpException;var Xs7=window.ytcsi;Xs7&&typeof Xs7.tick==="function"&&Xs7.tick("rses_dpj");var zzs,uz,nO,D9,ljM,HWt,Avj,ZW0,ks,cvM;zzs=zzs||{};_.TO=this||self;_.pw=function(v,e,d){v=v.split(".");d=d||_.TO;for(var E;v.length&&(E=v.shift());)v.length||e===void 0?d[E]&&d[E]!==Object.prototype[E]?d=d[E]:d=d[E]={}:d[E]=e};
uz=function(v,e){var d=_.AE("WIZ_global_data.oxN3nb");v=d&&d[v];return v!=null?v:e};
nO=_.TO._F_toggles_default_kevlar_base||[];D9=function(){};
D9.get=function(){return null};
_.MB0=null;_.AE=function(v,e){v=v.split(".");e=e||_.TO;for(var d=0;d<v.length;d++)if(e=e[v[d]],e==null)return null;return e};
_.Uk=function(v){v.instance_=void 0;v.getInstance=function(){return v.instance_?v.instance_:v.instance_=new v}};
_.wn=function(v){var e=typeof v;return e!="object"?e:v?Array.isArray(v)?"array":e:"null"};
_.c3=function(v){var e=_.wn(v);return e=="array"||e=="object"&&typeof v.length=="number"};
_.Qj=function(v){var e=typeof v;return e=="object"&&v!=null||e=="function"};
_.gH=function(v){return Object.prototype.hasOwnProperty.call(v,ljM)&&v[ljM]||(v[ljM]=++HWt)};
ljM="closure_uid_"+(Math.random()*1E9>>>0);HWt=0;Avj=function(v,e,d){return v.call.apply(v.bind,arguments)};
ZW0=function(v,e,d){if(!v)throw Error();if(arguments.length>2){var E=Array.prototype.slice.call(arguments,2);return function(){var T=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(T,E);return v.apply(e,T)}}return function(){return v.apply(e,arguments)}};
_.LX=function(v,e,d){_.LX=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Avj:ZW0;return _.LX.apply(null,arguments)};
_.kB=function(v,e){var d=Array.prototype.slice.call(arguments,1);return function(){var E=d.slice();E.push.apply(E,arguments);return v.apply(this,E)}};
_.pO=function(){return Date.now()};
ks=function(v){return v};
_.vM=function(v,e){function d(){}
d.prototype=e.prototype;v.superClass_=e.prototype;v.prototype=new d;v.prototype.constructor=v;v.base=function(E,T,S){for(var O=Array(arguments.length-2),b=2;b<arguments.length;b++)O[b-2]=arguments[b];return e.prototype[T].apply(E,O)}};
cvM=function(v){return v};var wss,FDO;_.c=function(v,e,d,E){var T=arguments.length,S=T<3?e:E===null?E=Object.getOwnPropertyDescriptor(e,d):E,O;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")S=Reflect.decorate(v,e,d,E);else for(var b=v.length-1;b>=0;b--)if(O=v[b])S=(T<3?O(S):T>3?O(e,d,S):O(e,d))||S;T>3&&S&&Object.defineProperty(e,d,S)};
_.w=function(v,e){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(v,e)};
wss=function(v,e){if(e!==null&&e!==void 0){if(typeof e!=="object"&&typeof e!=="function")throw new TypeError("A");if(d===void 0){if(!Symbol.dispose)throw new TypeError("C");var d=e[Symbol.dispose]}if(typeof d!=="function")throw new TypeError("D");v.stack.push({value:e,dispose:d,async:!1})}return e};
FDO=function(v){function e(S){v.error=v.hasError?new SuppressedError(S,v.error,"An error was suppressed during disposal."):S;v.hasError=!0}
function d(){for(;E=v.stack.pop();)try{if(!E.async&&T===1)return T=0,v.stack.push(E),Promise.resolve().then(d);if(E.dispose){var S=E.dispose.call(E.value);if(E.async)return T|=2,Promise.resolve(S).then(d,function(O){e(O);return d()})}else T|=1}catch(O){e(O)}if(T===1)return v.hasError?Promise.reject(v.error):Promise.resolve();
if(v.hasError)throw v.error;}
var E,T=0;d()};_.vM(_.dH,Error);_.dH.prototype.name="CustomError";var QkO;var gn3=void 0,uVH,nnt=typeof TextDecoder!=="undefined",ESj,d7L=typeof String.prototype.isWellFormed==="function",e$L=typeof TextEncoder!=="undefined";var DKj;_.Nu=function(v){for(var e=[],d=0,E=0;E<v.length;E++){var T=v.charCodeAt(E);T<128?e[d++]=T:(T<2048?e[d++]=T>>6|192:((T&64512)==55296&&E+1<v.length&&(v.charCodeAt(E+1)&64512)==56320?(T=65536+((T&1023)<<10)+(v.charCodeAt(++E)&1023),e[d++]=T>>18|240,e[d++]=T>>12&63|128):e[d++]=T>>12|224,e[d++]=T>>6&63|128),e[d++]=T&63|128)}return e};
DKj=function(v){for(var e=[],d=0,E=0;d<v.length;){var T=v[d++];if(T<128)e[E++]=String.fromCharCode(T);else if(T>191&&T<224){var S=v[d++];e[E++]=String.fromCharCode((T&31)<<6|S&63)}else if(T>239&&T<365){S=v[d++];var O=v[d++],b=v[d++];T=((T&7)<<18|(S&63)<<12|(O&63)<<6|b&63)-65536;e[E++]=String.fromCharCode(55296+(T>>10));e[E++]=String.fromCharCode(56320+(T&1023))}else S=v[d++],O=v[d++],e[E++]=String.fromCharCode((T&15)<<12|(S&63)<<6|O&63)}return e.join("")};var yj=String.prototype.trim?function(v){return v.trim()}:function(v){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(v)[1]},UKL=/&/g,psH=/</g,vVS=/>/g,etS=/"/g,d8s=/'/g,EVO=/\x00/g,Tcs=/[\x00&<>"']/;var e1=!!(nO[0]>>15&1),SOS=!!(nO[0]&1024),Wlt=!!(nO[0]>>16&1),aN3=!!(nO[0]&8),ihU=!!(nO[0]&2),OhH=!!(nO[0]&4),IN0=!!(nO[0]&16),bht=!!(nO[0]&128);var YOL=uz(1,!0),jW=e1?Wlt:uz(610401301,!1),m8t=e1?aN3:uz(772657768,!1),ym7=e1?ihU:uz(513659523,!1),qO7=e1?SOS||!OhH:uz(568333945,!0),B87=e1?IN0:uz(1331761403,!1),qiL=e1?SOS||!bht:uz(748402147,YOL);var s0,rm$=_.TO.navigator;s0=rm$?rm$.userAgentData||null:null;var Qp;_.XM=function(v,e){return Array.prototype.indexOf.call(v,e,void 0)};
_.wZ=function(v,e,d){Array.prototype.forEach.call(v,e,d)};
_.dN=function(v,e,d){return Array.prototype.filter.call(v,e,d)};
_.R2=function(v,e,d){return Array.prototype.map.call(v,e,d)};
Qp=function(v,e,d){return Array.prototype.some.call(v,e,d)};
_.q2U=function(v,e,d){return Array.prototype.every.call(v,e,d)};var EU=function(v){EU[" "](v);return v};
EU[" "]=function(){};
var k87=function(v,e){try{return EU(v[e]),!0}catch(d){}return!1},roH=function(v,e,d,E){E=E?E(e):e;
return Object.prototype.hasOwnProperty.call(v,E)?v[E]:v[E]=d(e)};var hts,DT,Kls,$8L,sh3,Nc$,m60,kbt,LlS,Vct,KA7,JmL,Gbs,RtM,PbW,x8j;_.qyj=function(){return _.TO.navigator||null};
hts=att();_.Tw=itL();DT=Vj("Edge");Kls=DT||_.Tw;_.S1=Vj("Gecko")&&!(_.YS(_.Kt(),"WebKit")&&!Vj("Edge"))&&!(Vj("Trident")||Vj("MSIE"))&&!Vj("Edge");_.WM=_.YS(_.Kt(),"WebKit")&&!Vj("Edge");$8L=_.WM&&Vj("Mobile");_.jh$=_.h$0();sh3=_.K0H();Nc$=(ts()?s0.platform==="Linux":Vj("Linux"))||_.$77();m60=_.q0O();kbt=rs0();LlS=Vj("iPad");Vct=Vj("iPod");_.oVS=_.ft();KA7=_.YS(_.Kt(),"KaiOS");JmL=function(){var v=_.TO.document;return v?v.documentMode:void 0};
a:{var McU="",tcs=function(){var v=_.Kt();if(_.S1)return/rv:([^\);]+)(\)|;)/.exec(v);if(DT)return/Edge\/([\d\.]+)/.exec(v);if(_.Tw)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(v);if(_.WM)return/WebKit\/(\S+)/.exec(v);if(hts)return/(?:Version)[ \/]?(\S+)/.exec(v)}();
tcs&&(McU=tcs?tcs[1]:"");if(_.Tw){var fNS=JmL();if(fNS!=null&&fNS>parseFloat(McU)){Gbs=String(fNS);break a}}Gbs=McU}RtM=Gbs;PbW={};_.aW=function(v){return roH(PbW,v,function(){return _.rH(RtM,v)>=0})};
if(_.TO.document&&_.Tw){var Bct=JmL();x8j=Bct?Bct:parseInt(RtM,10)||void 0}else x8j=void 0;_.Cbt=x8j;var LUH,V70,XoO;_.i1=GO();LUH=rs0()||Vj("iPod");V70=Vj("iPad");XoO=_.bt0();_.OU=_.M7();_.Xo=_.It7()&&!_.ft();var ztL,IW,Ac3,KM0,Hh0,lNL;ztL={};IW=null;Ac3=_.S1||_.WM||typeof _.TO.btoa=="function";_.GQ=function(v,e){e===void 0&&(e=0);lNL();e=ztL[e];for(var d=Array(Math.floor(v.length/3)),E=e[64]||"",T=0,S=0;T<v.length-2;T+=3){var O=v[T],b=v[T+1],Y=v[T+2],q=e[O>>2];O=e[(O&3)<<4|b>>4];b=e[(b&15)<<2|Y>>6];Y=e[Y&63];d[S++]=q+O+b+Y}q=0;Y=E;switch(v.length-T){case 2:q=v[T+1],Y=e[(q&15)<<2]||E;case 1:v=v[T],d[S]=e[v>>2]+e[(v&3)<<4|q>>4]+Y+E}return d.join("")};
KM0=function(v){var e="";Hh0(v,function(d){e+=String.fromCharCode(d)});
return e};
_.CsU=function(v){var e=[];Hh0(v,function(d){e.push(d)});
return e};
_.U0=function(v){var e=v.length,d=e*3/4;d%3?d=Math.floor(d):_.bL("=.",v[e-1])&&(d=_.bL("=.",v[e-2])?d-2:d-1);var E=new Uint8Array(d),T=0;Hh0(v,function(S){E[T++]=S});
return T!==d?E.subarray(0,T):E};
Hh0=function(v,e){function d(Y){for(;E<v.length;){var q=v.charAt(E++),r=IW[q];if(r!=null)return r;if(!_.IU(q))throw Error("H`"+q);}return Y}
lNL();for(var E=0;;){var T=d(-1),S=d(0),O=d(64),b=d(64);if(b===64&&T===-1)break;e(T<<2|S>>4);O!=64&&(e(S<<4&240|O>>2),b!=64&&e(O<<6&192|b))}};
lNL=function(){if(!IW){IW={};for(var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],d=0;d<5;d++){var E=v.concat(e[d].split(""));ztL[d]=E;for(var T=0;T<E.length;T++){var S=E[T];IW[S]===void 0&&(IW[S]=T)}}}};var w37=typeof Uint8Array!=="undefined",PLH=!_.Tw&&typeof btoa==="function",x7t=/[-_.]/g,ft3={"-":"+",_:"/",".":"="},VB={};var L7,Zht;L7=function(v,e){if(e!==VB)throw Error("J");this.JSC$8810_value_=v;if(v!=null&&v.length===0)throw Error("I");};
_.oE=function(){return Amt||(Amt=new L7(null,VB))};
Zht=function(v){return new Uint8Array(XOO(v)||0)};
L7.prototype.isEmpty=function(){return this.JSC$8810_value_==null};
L7.prototype.sizeBytes=function(){var v=XOO(this);return v?v.length:0};
var XOO=function(v){if(VB!==VB)throw Error("J");var e=v.JSC$8810_value_;e==null||w37&&e!=null&&e instanceof Uint8Array||(typeof e==="string"?e=BHM(e):(_.wn(e),e=null));return e==null?e:v.JSC$8810_value_=e},Amt;var X30=void 0;var Wc=typeof Symbol==="function"&&typeof Symbol()==="symbol",cmO=T2("jas",void 0,!0),xi$=T2(void 0,"0di"),Dw=T2(void 0,"1oa"),Ji=T2(void 0,Symbol()),DiL=T2(void 0,"0ub"),pcH=T2(void 0,"0ubs"),hT0=T2(void 0,"0ubsb"),h_L=T2(void 0,"0actk"),$s=T2("m_m","messagePrototypeMarker",!0),O9j=T2(void 0,"vps"),gIS=T2();var HtW,ltO,Zw,woH;HtW={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};ltO=Object.defineProperties;_.aE=Wc?cmO:"internalArrayState";woH=[];iM(woH,7);Zw=Object.freeze(woH);var js={},YI={},FlL=function(v,e,d){this.iterable=v;this.mapper=e;this.thisArg=d};
FlL.prototype.next=function(){var v=this.iterable.next();v.done||(v.value=this.mapper.call(this.thisArg,v.value));return v};
FlL.prototype[Symbol.iterator]=function(){return this};
var Qh0=Object.freeze({}),f7={};_.gVM=Pc(function(v){return v!==null&&v!==void 0});var D77=Pc(function(v){return typeof v==="number"}),nSH=Pc(function(v){return typeof v==="string"}),p3$=Pc(function(v){return typeof v==="boolean"}),u7t=Pc(function(v){return v!=null&&typeof v==="object"&&typeof v.then==="function"}),cat=Pc(function(v){return typeof v==="function"}),ex=Pc(function(v){return!!v&&(typeof v==="object"||typeof v==="function")});var U70=typeof _.TO.BigInt==="function"&&typeof _.TO.BigInt(0)==="bigint";var G2t=Pc(function(v){return U70?v>=nVH&&v<=D8S:v[0]==="-"?vIO(v,U83):vIO(v,po7)}),U83=Number.MIN_SAFE_INTEGER.toString(),nVH=U70?BigInt(Number.MIN_SAFE_INTEGER):void 0,po7=Number.MAX_SAFE_INTEGER.toString(),D8S=U70?BigInt(Number.MAX_SAFE_INTEGER):void 0;var vr0=typeof Uint8Array.prototype.slice==="function",C7=0,XJ=0,j$L;var TQ,iS,FJ,Oi,b77;TQ=typeof BigInt==="function"?BigInt.asIntN:void 0;_.IC=typeof BigInt==="function"?BigInt.asUintN:void 0;iS=Number.isSafeInteger;FJ=Number.isFinite;Oi=Math.trunc;b77=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var IwL={};var wcU={},ep3=function(){try{var v=function(){return sk0(Map,[],this.constructor)};
_.V(v,Map);EU(new v);return!1}catch(e){return!0}}(),b1=function(){this.JSC$8829_map_=new Map};
_.W=b1.prototype;_.W.get=function(v){return this.JSC$8829_map_.get(v)};
_.W.set=function(v,e){this.JSC$8829_map_.set(v,e);this.size=this.JSC$8829_map_.size;return this};
_.W.delete=function(v){v=this.JSC$8829_map_.delete(v);this.size=this.JSC$8829_map_.size;return v};
_.W.clear=function(){this.JSC$8829_map_.clear();this.size=this.JSC$8829_map_.size};
_.W.has=function(v){return this.JSC$8829_map_.has(v)};
_.W.entries=function(){return this.JSC$8829_map_.entries()};
_.W.keys=function(){return this.JSC$8829_map_.keys()};
_.W.values=function(){return this.JSC$8829_map_.values()};
_.W.forEach=function(v,e){return this.JSC$8829_map_.forEach(v,e)};
b1.prototype[Symbol.iterator]=function(){return this.entries()};
var ti=function(){if(ep3)return Object.setPrototypeOf(b1.prototype,Map.prototype),Object.defineProperties(b1.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),b1;var v=function(){return sk0(Map,[],this.constructor)};
_.V(v,Map);return v}(),N1=function(v,e,d,E){d=d===void 0?l0M:d;
E=E===void 0?l0M:E;var T=ti.call(this)||this;T.arrayState=v[_.aE]|0;T.valueCtor=e;T.keyToApi=d;T.valueToApi=T.valueCtor?Aet:E;for(var S=0;S<v.length;S++){var O=v[S],b=d(O[0],!1,!0),Y=O[1];e?Y===void 0&&(Y=null):Y=E(O[1],!1,!0,void 0,void 0,T.arrayState);ti.prototype.set.call(T,b,Y)}return T};
_.V(N1,ti);var d2M=function(v){if(v.arrayState&2)throw Error("N");};
_.W=N1.prototype;_.W.clear=function(){d2M(this);ti.prototype.clear.call(this)};
_.W.delete=function(v){d2M(this);return ti.prototype.delete.call(this,this.keyToApi(v,!0,!1))};
_.W.entries=function(){if(this.valueCtor){var v=ti.prototype.keys.call(this);v=new FlL(v,Z7W,this)}else v=ti.prototype.entries.call(this);return v};
_.W.values=function(){if(this.valueCtor){var v=ti.prototype.keys.call(this);v=new FlL(v,N1.prototype.get,this)}else v=ti.prototype.values.call(this);return v};
_.W.forEach=function(v,e){this.valueCtor?ti.prototype.forEach.call(this,function(d,E,T){v.call(e,T.get(E),E,T)}):ti.prototype.forEach.call(this,v,e)};
_.W.set=function(v,e){d2M(this);v=this.keyToApi(v,!0,!1);return v==null?this:e==null?(ti.prototype.delete.call(this,v),this):ti.prototype.set.call(this,v,this.valueToApi(e,!0,!0,this.valueCtor,!1,this.arrayState))};
_.W.has=function(v){return ti.prototype.has.call(this,this.keyToApi(v,!1,!1))};
_.W.get=function(v){v=this.keyToApi(v,!1,!1);var e=ti.prototype.get.call(this,v);if(e!==void 0){var d=this.valueCtor;return d?(d=this.valueToApi(e,!1,!0,d,this.callToMutableOnAccess,this.arrayState),d!==e&&ti.prototype.set.call(this,v,d),d):e}};
N1.prototype[Symbol.iterator]=function(){return this.entries()};
N1.prototype.toJSON=void 0;var ceO;var Es3=function(){},e_0=function(v,e){for(var d in v)!isNaN(d)&&e(v,+d,v[d])},T90=function(v){var e=new Es3;
e_0(v,function(d,E,T){e[E]=Hc(T)});
e.reviveUnknownFields=v.reviveUnknownFields;return e},uJH={reviveIntoImmutable:!0};var d1S;var b9S,Yij;var Ers,g9,qG,jh,T4S,$u,KI,Snj,WK0,ku,arL,Lp,Jn,Gw;Ers=_.Bc(0);_.Yu={};_.mL=function(v,e,d,E,T){e=g9(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e,d,T);if(e!==null||E&&v.noLegacyNull!==YI)return e};
g9=function(v,e,d,E){if(e===-1)return null;var T=e+(d?0:-1),S=v.length-1;if(!(S<1+(d?0:-1))){if(T>=S){var O=v[S];if(O!=null&&typeof O==="object"&&O.constructor===Object){d=O[e];var b=!0}else if(T===S)d=O;else return}else d=v[T];if(E&&d!=null){E=E(d);if(E==null)return E;if(!Object.is(E,d))return b?O[e]=E:v[T]=E,E}return d}};
_.iR=function(v,e,d,E){zQ(v);var T=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Ai(T,T[_.aE]|0,e,d,E);return v};
_.ym=function(v,e,d){v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return R_$(v,v[_.aE]|0,e,d)!==void 0};
_.qT=function(v,e,d,E){var T=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return R_$(T,T[_.aE]|0,e,jh(v,E,d))!==void 0};
_.El=function(v){return v===Qh0?2:4};
_.rN=function(v,e){v=_.mL(v,e,void 0,void 0,oss);return v==null?_.oE():v};
qG=function(v,e,d,E){zQ(v);var T=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=T[_.aE]|0;if(E==null){var O=MsU(T);if(ts$(O,T,S,d)===e)O.set(d,0);else return v}else S=fwj(T,S,d,e);Ai(T,S,e,E);return v};
_.hn=function(v,e,d,E){var T=v[_.aE]|0,S=RE(T);T=fwj(v,T,d,e,S);Ai(v,T,e,E,S)};
jh=function(v,e,d){return _.Kp(v,e)===d?d:-1};
_.Kp=function(v,e){v=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ts$(MsU(v),v,void 0,e,void 0)};
T4S=function(v,e,d){var E=v[_.aE]|0,T=RE(E),S=g9(v,d,T);if(S!=null&&S[$s]===js){if(!$I(S))return Xt(S),S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var O=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(S)&&(O=S);if(O){var b=O[_.aE]|0;b&2&&(O=C9(O,b))}O=yit(O,e,!0);O!==S&&Ai(v,E,d,O,T);return O};
_.W8=function(v,e,d,E){var T=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=T[_.aE]|0;e=R_$(T,S,e,d,E);if(e==null)return e;S=T[_.aE]|0;if(!$I(v,S)){var O=H7j(e);O!==e&&(Xt(v)&&(T=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=T[_.aE]|0),e=O,S=Ai(T,S,d,e,E),HO(T,S))}return e};
_.df=function(v,e,d,E){var T=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return PSS(v,T,T[_.aE]|0,e,d,E,!1,!0)};
_.hr=function(v,e,d,E){d=x1W(d);_.iR(v,e,d,E);d&&!$I(d)&&HO(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return v};
_.$m=function(v,e,d,E){E=x1W(E);qG(v,e,d,E);E&&!$I(E)&&HO(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return v};
$u=function(v,e,d){zQ(v);var E=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=E[_.aE]|0;if(d==null)return Ai(E,T,e),v;for(var S=d===Zw?7:d[_.aE]|0,O=S,b=Qv(S),Y=b||Object.isFrozen(d),q=!0,r=!0,h=0;h<d.length;h++){var K=d[h];b||(K=$I(K),q&&(q=!K),r&&(r=K))}b||(S=q?13:5,S=r?S&-4097:S|4096);Y&&S===O||(d=Hc(d),O=0,S=cO(S,T));S!==O&&iM(d,S);T=Ai(E,T,e,d);2&S||!(4096&S||16&S)||HO(E,T);return v};
KI=function(v,e,d,E){CSj(v,e,d,E);return v};
Snj=function(v,e,d){CSj(v,e,j1,void 0,d,1,!0);return v};
_.sU=function(v,e,d){v=_.mL(v,e,void 0,d);e=typeof v;v=v==null?v:e==="bigint"?_.Bc((0,_.IC)(64,v)):_.QB(v)?e==="string"?_.Jet(v):_.VA0(v):void 0;return v};
_.NT=function(v,e){var d=d===void 0?!1:d;var E;return(E=_.I0W(_.mL(v,e)))!=null?E:d};
_.TZ=function(v,e,d){d=d===void 0?0:d;var E;return(E=_.d9(_.mL(v,e)))!=null?E:d};
WK0=function(v,e){var d=d===void 0?0:d;v=_.mit(_.mL(v,e));return v!=null?v:d};
ku=function(v,e,d){d=d===void 0?Ers:d;var E;return(E=_.f0$(_.mL(v,e)))!=null?E:d};
arL=function(v){var e=e===void 0?Ers:e;var d;return(d=_.sU(v,23))!=null?d:e};
Lp=function(v,e){var d=d===void 0?0:d;var E;return(E=_.mL(v,e,void 0,void 0,_.i7U))!=null?E:d};
_.Vm=function(v,e,d,E){d=d===void 0?"":d;var T;return(T=_.q1(_.mL(v,e,E)))!=null?T:d};
_.oW=function(v,e){var d=d===void 0?0:d;var E;return(E=_.U6(_.mL(v,e)))!=null?E:d};
Jn=function(v,e){var d=d===void 0?"0":d;v=tAU(_.mL(v,e),!0);return v!=null?v:d};
Gw=function(v,e,d){return _.Vm(v,jh(v,d,e))};
_.MT=function(v,e,d,E){return _.W8(v,e,jh(v,E,d),void 0)};
_.rf=function(v,e){return _.q1(_.mL(v,e,void 0,_.Yu))};
_.iZ=function(v,e,d){return _.iR(v,e,O7t(d))};
_.xq=function(v,e,d){return _.n9(v,e,O7t(d),!1)};
_.tn=function(v,e,d){return _.iR(v,e,_.p7(d))};
_.NG=function(v,e,d){return _.iR(v,e,WO(d))};
_.L0=function(v,e,d){return _.iR(v,e,yv(d))};
_.A1=function(v,e,d,E){return _.n9(v,e,yv(d),"",E)};
_.aM=function(v,e,d){return _.iR(v,e,d==null?d:_.D0(d))};
_.fp=function(v,e,d){return _.n9(v,e,d==null?d:_.D0(d),0)};var Ui=function(v,e,d){this.buffer=v;if(d&&!e)throw Error();this.JSC$8841_isImmutable=e};var iA0=function(v,e,d,E){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8844_start_=0;this.init(v,e,d,E)},RW,IrO,bAU,m27,WVH,OAj;
_.W=iA0.prototype;_.W.init=function(v,e,d,E){var T=E===void 0?{}:E;E=T.aliasBytesFields===void 0?!1:T.aliasBytesFields;T=T.treatNewDataAsImmutable===void 0?!1:T.treatNewDataAsImmutable;this.aliasBytesFields=E;this.treatNewDataAsImmutable=T;v&&(v=z_t(v,this.treatNewDataAsImmutable),this.bytes_=v.buffer,this.bytesAreImmutable_=v.JSC$8841_isImmutable,this.JSC$8844_start_=e||0,this.end_=d!==void 0?this.JSC$8844_start_+d:this.bytes_.length,this.cursor_=this.JSC$8844_start_)};
_.W.free=function(){this.clear();OAj.length<100&&OAj.push(this)};
_.W.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8844_start_=0;this.aliasBytesFields=!1};
_.W.reset=function(){this.cursor_=this.JSC$8844_start_};
_.W.atEnd=function(){return this.cursor_==this.end_};
_.PM=function(v,e){var d=0,E=0,T=0,S=v.bytes_,O=v.cursor_;do{var b=S[O++];d|=(b&127)<<T;T+=7}while(T<32&&b&128);if(T>32)for(E|=(b&127)>>4,T=3;T<32&&b&128;T+=7)b=S[O++],E|=(b&127)<<T;RW(v,O);if(!(b&128))return e(d>>>0,E>>>0);throw Error();};
RW=function(v,e){v.cursor_=e;if(e>v.end_)throw Error();};
_.xu=function(v){var e=v.bytes_,d=v.cursor_,E=e[d++],T=E&127;if(E&128&&(E=e[d++],T|=(E&127)<<7,E&128&&(E=e[d++],T|=(E&127)<<14,E&128&&(E=e[d++],T|=(E&127)<<21,E&128&&(E=e[d++],T|=E<<28,E&128&&e[d++]&128&&e[d++]&128&&e[d++]&128&&e[d++]&128&&e[d++]&128)))))throw Error();RW(v,d);return T};
_.BM=function(v){var e=v.bytes_,d=v.cursor_,E=e[d],T=e[d+1],S=e[d+2];e=e[d+3];RW(v,v.cursor_+4);return(E<<0|T<<8|S<<16|e<<24)>>>0};
IrO=function(v){var e=_.BM(v);v=_.BM(v);return EI0(e,v)};
bAU=function(v){var e=_.BM(v),d=_.BM(v);v=(d>>31)*2+1;var E=d>>>20&2047;e=4294967296*(d&1048575)+e;return E==2047?e?NaN:v*Infinity:E==0?v*4.9E-324*e:v*Math.pow(2,E-1075)*(e+4503599627370496)};
_.Yn$=function(v){for(var e=0,d=v.cursor_,E=d+10,T=v.bytes_;d<E;){var S=T[d++];e|=S;if((S&128)===0)return RW(v,d),!!(e&127)}throw Error();};
m27=function(v,e){if(e<0)throw Error();var d=v.cursor_;e=d+e;if(e>v.end_)throw Error();v.cursor_=e;return d};
WVH=function(v,e){if(e==0)return _.oE();var d=m27(v,e);v.aliasBytesFields&&v.bytesAreImmutable_?d=v.bytes_.subarray(d,d+e):(v=v.bytes_,e=d+e,d=d===e?new Uint8Array(0):vr0?v.slice(d,e):new Uint8Array(v.subarray(d,e)));return d.length==0?_.oE():new L7(d,VB)};
OAj=[];var qns=function(v,e,d,E){if(OAj.length){var T=OAj.pop();T.init(v,e,d,E);v=T}else v=new iA0(v,e,d,E);this.decoder_=v;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;yJ0(this,E)},yJ0=function(v,e){e=e===void 0?{}:e;
v.discardUnknownFields=e.discardUnknownFields===void 0?!1:e.discardUnknownFields},OYj=function(v,e,d,E){if(rJO.length){var T=rJO.pop();
yJ0(T,E);T.decoder_.init(v,e,d,E);return T}return new qns(v,e,d,E)},EmL,SJ3,hp0,rJO;
qns.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;rJO.length<100&&rJO.push(this)};
qns.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
EmL=function(v){if(v.decoder_.atEnd())return!1;v.fieldCursor_=v.decoder_.cursor_;var e=_.xu(v.decoder_)>>>0,d=e>>>3;e&=7;if(!(e>=0&&e<=5))throw Error();if(d<1)throw Error();v.nextField_=d;v.nextWireType_=e;return!0};
SJ3=function(v){switch(v.nextWireType_){case 0:v.nextWireType_!=0?SJ3(v):_.Yn$(v.decoder_);break;case 1:v=v.decoder_;RW(v,v.cursor_+8);break;case 2:if(v.nextWireType_!=2)SJ3(v);else{var e=_.xu(v.decoder_)>>>0;v=v.decoder_;RW(v,v.cursor_+e)}break;case 5:v=v.decoder_;RW(v,v.cursor_+4);break;case 3:e=v.nextField_;do{if(!EmL(v))throw Error();if(v.nextWireType_==4){if(v.nextField_!=e)throw Error();break}SJ3(v)}while(1);break;default:throw Error();}};
hp0=function(v,e,d){var E=v.decoder_.end_,T=_.xu(v.decoder_)>>>0;T=v.decoder_.cursor_+T;var S=T-E;S<=0&&(v.decoder_.end_=T,d(e,v,void 0,void 0,void 0),S=T-v.decoder_.cursor_);if(S)throw Error();v.decoder_.cursor_=T;v.decoder_.end_=E};
_.KKt=function(v){var e=_.xu(v.decoder_)>>>0;v=v.decoder_;var d=m27(v,e);v=v.bytes_;if(nnt){var E=v,T;(T=uVH)||(T=uVH=new TextDecoder("utf-8",{fatal:!0}));e=d+e;E=d===0&&e===E.length?E:E.subarray(d,e);try{var S=T.decode(E)}catch(q){if(gn3===void 0){try{T.decode(new Uint8Array([128]))}catch(r){}try{T.decode(new Uint8Array([97])),gn3=!0}catch(r){gn3=!1}}!gn3&&(uVH=void 0);throw q;}}else{S=d;e=S+e;d=[];for(var O=null,b,Y;S<e;)b=v[S++],b<128?d.push(b):b<224?S>=e?E0():(Y=v[S++],b<194||(Y&192)!==128?(S--,
E0()):d.push((b&31)<<6|Y&63)):b<240?S>=e-1?E0():(Y=v[S++],(Y&192)!==128||b===224&&Y<160||b===237&&Y>=160||((T=v[S++])&192)!==128?(S--,E0()):d.push((b&15)<<12|(Y&63)<<6|T&63)):b<=244?S>=e-2?E0():(Y=v[S++],(Y&192)!==128||(b<<28)+(Y-144)>>30!==0||((T=v[S++])&192)!==128||((E=v[S++])&192)!==128?(S--,E0()):(b=(b&7)<<18|(Y&63)<<12|(T&63)<<6|E&63,b-=65536,d.push((b>>10&1023)+55296,(b&1023)+56320))):E0(),d.length>=8192&&(O=vSt(O,d),d.length=0);S=vSt(O,d)}return S};
_.$2s=function(v){var e=_.xu(v.decoder_)>>>0;return WVH(v.decoder_,e)};
_.jyO=function(v,e,d){var E=_.xu(v.decoder_)>>>0;for(E=v.decoder_.cursor_+E;v.decoder_.cursor_<E;)d.push(e(v.decoder_))};
rJO=[];var syH=function(v,e){this.JSC$8851_lo=v>>>0;this.JSC$8851_hi=e>>>0},k$O=function(v){if(!v)return N4M||(N4M=new syH(0,0));
if(!/^\d+$/.test(v))return null;a00(v);return new syH(C7,XJ)},N4M,LVM=function(v,e){this.JSC$8853_lo=v>>>0;
this.JSC$8853_hi=e>>>0},NuU=function(v){if(!v)return LKW||(LKW=new LVM(0,0));
if(!/^-?\d+$/.test(v))return null;a00(v);return new LVM(C7,XJ)},LKW;var Cp=function(){this.JSC$8855_buffer_=[]},kD7,VL$;
Cp.prototype.length=function(){return this.JSC$8855_buffer_.length};
Cp.prototype.end=function(){var v=this.JSC$8855_buffer_;this.JSC$8855_buffer_=[];return v};
kD7=function(v,e,d){for(;d>0||e>127;)v.JSC$8855_buffer_.push(e&127|128),e=(e>>>7|d<<25)>>>0,d>>>=7;v.JSC$8855_buffer_.push(e)};
VL$=function(v,e){for(;e>127;)v.JSC$8855_buffer_.push(e&127|128),e>>>=7;v.JSC$8855_buffer_.push(e)};
_.Vmt=function(v,e){if(e>=0)VL$(v,e);else{for(var d=0;d<9;d++)v.JSC$8855_buffer_.push(e&127|128),e>>=7;v.JSC$8855_buffer_.push(1)}};
Cp.prototype.writeUint8=function(v){this.JSC$8855_buffer_.push(v>>>0&255)};
_.OJ=function(v,e){v.JSC$8855_buffer_.push(e>>>0&255);v.JSC$8855_buffer_.push(e>>>8&255);v.JSC$8855_buffer_.push(e>>>16&255);v.JSC$8855_buffer_.push(e>>>24&255)};
Cp.prototype.writeInt8=function(v){this.JSC$8855_buffer_.push(v>>>0&255)};var orH,EJ,Jr0,tm$;orH=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Cp};
EJ=function(v,e){e.length!==0&&(v.blocks_.push(e),v.totalLength_+=e.length)};
_.Z90=function(v,e){_.i6(v,e,2);e=v.encoder_.end();EJ(v,e);e.push(v.totalLength_);return e};
_.ciW=function(v,e){var d=e.pop();for(d=v.totalLength_+v.encoder_.length()-d;d>127;)e.push(d&127|128),d>>>=7,v.totalLength_++;e.push(d);v.totalLength_++};
_.i6=function(v,e,d){VL$(v.encoder_,e*8+d)};
Jr0=function(v,e,d){if(d!=null){switch(typeof d){case "string":k$O(d)}_.i6(v,e,1);switch(typeof d){case "number":v=v.encoder_;euS(d);_.OJ(v,C7);_.OJ(v,XJ);break;case "bigint":d=BigInt.asUintN(64,d);d=new syH(Number(d&BigInt(4294967295)),Number(d>>BigInt(32)));v=v.encoder_;e=d.JSC$8851_hi;_.OJ(v,d.JSC$8851_lo);_.OJ(v,e);break;default:d=k$O(d),v=v.encoder_,e=d.JSC$8851_hi,_.OJ(v,d.JSC$8851_lo),_.OJ(v,e)}}};
tm$=function(v,e,d){_.i6(v,e,2);VL$(v.encoder_,d.length);EJ(v,v.encoder_.end());EJ(v,d)};var lw3,MLO,tLL,PEt,x20;lw3=p9();_.JJt=p9();_.G$j=p9();MLO=p9();tLL=p9();_.frU=p9();_.XZ=p9();_.RpW=p9();PEt=p9();x20=p9();_.B4W=p9();_.CE$=p9();_.du=function(v,e,d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v,e,d)};
_.du.prototype.toJSON=function(){return RC(this)};
_.du.prototype.serialize=function(v){return JSON.stringify(RC(this,v))};
var zTj=function(v,e){if(e==null||e=="")return new v;e=JSON.parse(e);if(!Array.isArray(e))throw Error("V");return new v(csH(e))};
_.du.prototype.getExtension=function(v){Ui0(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v.fieldIndex);nIW(this,v.fieldIndex);return v.ctor?v.isRepeated?v.getExtensionFn(this,v.ctor,v.fieldIndex,_.El(),v.JSC$8866_hasMessageId):v.getExtensionFn(this,v.ctor,v.fieldIndex,v.JSC$8866_hasMessageId):v.isRepeated?v.getExtensionFn(this,v.fieldIndex,_.El(),v.JSC$8866_hasMessageId):v.getExtensionFn(this,v.fieldIndex,v.defaultValue,v.JSC$8866_hasMessageId)};
_.du.prototype.clone=function(){var v=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=v[_.aE]|0;return N9U(this,v,e)?sCM(this,v,!0):new this.constructor(C9(v,e,!1))};
_.du.prototype[$s]=js;_.du.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var v$=function(v,e,d){this.$$binaryReaderFn=v;this.$$binaryWriterFn=e;v=ks(lw3);this.$$isMsg=!!v&&d===v||!1},utS=H9U(function(v,e,d,E,T){if(v.nextWireType_!==2)return!1;
hp0(v,T4S(e,E,d),T);return!0},wO3),nsO=H9U(function(v,e,d,E,T){if(v.nextWireType_!==2)return!1;
hp0(v,T4S(e,E,d),T);return!0},wO3),bYH=Symbol(),pO7=Symbol(),dfS=Symbol(),yrM=Symbol(),aB0=Symbol(),FfU,QC7;var Buj,XU0,zps,lrS,HAt,AJs,ZAM,cJ3,wU$,FKU,QyW,uSt,nrU,U27,pUj;Buj=function(v,e){var d=new orH;qJS(v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d,em(bYH,IB7,YJO,e));EJ(d,d.encoder_.end());v=new Uint8Array(d.totalLength_);e=d.blocks_;for(var E=e.length,T=0,S=0;S<E;S++){var O=e[S];v.set(O,T);T+=O.length}d.blocks_=[v];return v};
XU0=_.TD(function(v,e,d){if(v.nextWireType_!==1)return!1;_.Sm(e,d,bAU(v.decoder_));return!0},s$S,x20);
zps=_.TD(function(v,e,d,E){if(v.nextWireType_!==1)return!1;_.hn(e,d,E,bAU(v.decoder_));return!0},s$S,x20);
lrS=_.TD(function(v,e,d,E){if(v.nextWireType_!==5)return!1;var T=_.BM(v.decoder_);v=(T>>31)*2+1;var S=T>>>23&255;T&=8388607;_.hn(e,d,E,S==255?T?NaN:v*Infinity:S==0?v*1.401298464324817E-45*T:v*Math.pow(2,S-150)*(T+8388608));return!0},function(v,e,d){e=_.i7U(e);
e!=null&&(_.i6(v,d,5),v=v.encoder_,d=j$L||(j$L=new DataView(new ArrayBuffer(8))),d.setFloat32(0,+e,!0),XJ=0,C7=d.getUint32(0,!0),_.OJ(v,C7))},PEt);
_.zw=_.TD(function(v,e,d){if(v.nextWireType_!==0)return!1;_.Sm(e,d,_.PM(v.decoder_,Tn7));return!0},_.I$,_.XZ);
HAt=_.TD(function(v,e,d){if(v.nextWireType_!==0)return!1;v=_.PM(v.decoder_,Tn7);_.Sm(e,d,v===0?void 0:v);return!0},_.I$,_.XZ);
AJs=_.TD(function(v,e,d,E){if(v.nextWireType_!==0)return!1;_.hn(e,d,E,_.PM(v.decoder_,Tn7));return!0},_.I$,_.XZ);
_.l1=_.TD(function(v,e,d){if(v.nextWireType_!==0)return!1;_.Sm(e,d,_.xu(v.decoder_));return!0},om$,MLO);
ZAM=_.TD(function(v,e,d){if(v.nextWireType_!==0)return!1;v=_.xu(v.decoder_);_.Sm(e,d,v===0?void 0:v);return!0},om$,MLO);
cJ3=_.TD(function(v,e,d,E){if(v.nextWireType_!==0)return!1;_.hn(e,d,E,_.xu(v.decoder_));return!0},om$,MLO);
wU$=_.TD(function(v,e,d){if(v.nextWireType_!==1)return!1;_.Sm(e,d,IrO(v.decoder_));return!0},_.GDO,_.RpW);
FKU=_.$fs(function(v,e,d){if(v.nextWireType_!==1&&v.nextWireType_!==2)return!1;e=_.GQO(e,e[_.aE]|0,d);v.nextWireType_==2?_.jyO(v,IrO,e):e.push(IrO(v.decoder_));return!0},function(v,e,d){e=_.KVj(PMj,e,!1);
if(e!=null)for(var E=0;E<e.length;E++)Jr0(v,d,e[E])},_.RpW);
_.HM=_.TD(function(v,e,d){if(v.nextWireType_!==0)return!1;_.Sm(e,d,_.Yn$(v.decoder_));return!0},_.MmU,_.JJt);
QyW=_.TD(function(v,e,d,E){if(v.nextWireType_!==0)return!1;_.hn(e,d,E,_.Yn$(v.decoder_));return!0},_.MmU,_.JJt);
_.An=_.TD(function(v,e,d){if(v.nextWireType_!==2)return!1;_.Sm(e,d,_.KKt(v));return!0},_.fBW,_.G$j);
_.grU=_.TD(function(v,e,d,E){if(v.nextWireType_!==2)return!1;_.hn(e,d,E,_.KKt(v));return!0},_.fBW,_.G$j);
uSt=_.$fs(function(v,e,d){if(v.nextWireType_!==2)return!1;v=_.KKt(v);_.GQO(e,e[_.aE]|0,d).push(v);return!0},function(v,e,d){e=_.KVj(_.q1,e,!0);
if(e!=null)for(var E=0;E<e.length;E++){var T=v,S=d,O=e[E];O!=null&&tm$(T,S,THt(O))}},_.G$j);
nrU=void 0;nrU=nrU===void 0?lw3:nrU;_.Zk=new v$(function(v,e,d,E,T){if(v.nextWireType_!==2)return!1;E=yit(void 0,E,!0);_.GQO(e,e[_.aE]|0,d).push(E);hp0(v,E,T);return!0},function(v,e,d,E,T){if(Array.isArray(e))for(var S=0;S<e.length;S++)RTM(v,e[S],d,E,T)},nrU);
_.cM=H9U(function(v,e,d,E,T,S){if(v.nextWireType_!==2)return!1;var O=e[_.aE]|0;fwj(e,O,S,d,RE(O));e=T4S(e,E,d);hp0(v,e,T);return!0},RTM);
_.D23=_.TD(function(v,e,d){if(v.nextWireType_!==2)return!1;_.Sm(e,d,_.$2s(v));return!0},_.P60,_.B4W);
U27=_.TD(function(v,e,d,E){if(v.nextWireType_!==2)return!1;_.hn(e,d,E,_.$2s(v));return!0},_.P60,_.B4W);
pUj=_.TD(function(v,e,d,E){if(v.nextWireType_!==0)return!1;_.hn(e,d,E,_.xu(v.decoder_)>>>0);return!0},function(v,e,d){e=_.mit(e);
e!=null&&e!=null&&(_.i6(v,d,0),VL$(v.encoder_,e))},tLL);
_.wN=_.TD(function(v,e,d){if(v.nextWireType_!==0)return!1;_.Sm(e,d,_.xu(v.decoder_));return!0},_.xf0,_.CE$);var dat=function(){var v=vWt,e=eR3;this.fieldIndex=175237375;this.ctor=e;this.isRepeated=0;this.getExtensionFn=_.W8;this.defaultValue=void 0;this.JSC$8866_hasMessageId=v.messageId!=null?f7:void 0};
dat.prototype.register=function(){EU(this)};var EW3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(EW3,_.du);var TL0=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(TL0,_.du);var ArO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(ArO,_.du);var Sq$=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Sq$,_.du);var W20=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(W20,_.du);var aZL=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(aZL,_.du);var iJU=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(iJU,_.du);iJU.prototype.getData=function(){return _.rN(this,2)};var OJS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(OJS,_.du);var IZO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(IZO,_.du);IZO.prototype.getStyle=function(){return _.W8(this,EW3,1)};var yk=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(yk,_.du);yk.prototype.getPayloadCase=function(){return _.Kp(this,jm)};
yk.prototype.getStyle=function(){return _.MT(this,IZO,6,jm)};
var bJj=function(){var v=new yk,e=new W20;return _.$m(v,7,jm,e)},Yqj=function(){var v=new yk,e=new aZL;
return _.$m(v,8,jm,e)},jm=[1,
2,3,4,5,6,7,8];var maW=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(maW,_.du);var y2O=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(y2O,_.du);var qq3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(qq3,_.du);var r2L=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(r2L,_.du);var hRj=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(hRj,_.du);var K2W=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(K2W,_.du);var $aH=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V($aH,_.du);var jlt=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(jlt,_.du);jlt.prototype.getData=function(){return _.rN(this,2)};var slS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(slS,_.du);var HYL=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(HYL,_.du);HYL.prototype.getPayloadCase=function(){return _.Kp(this,FZ)};
var FZ=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Qm=function(v,e){v=Error.call(this,v);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.code=e===void 0?2:e};
_.V(Qm,Error);var NLt=Promise;var kh0=function(v){this.channelPromise=v};
kh0.prototype.send=function(v,e,d){this.channelPromise.then(function(E){E.send(v,e,d)})};var L2$=function(v,e){this.data=v;this.channel=e};
L2$.prototype.reply=function(v,e,d){this.channel.send(v,e,d)};var VQ3=function(v){this.JSC$8932_port_=v};
VQ3.prototype.send=function(v,e,d){d=d===void 0?[]:d;var E=new MessageChannel;oWS(E.port1,e);this.JSC$8932_port_.postMessage(v,[E.port2].concat(d))};
var J20=function(v,e){oWS(v,e);return new VQ3(v)},oWS=function(v,e){e&&(v.onmessage=function(d){e(new L2$(d.data,J20(d.ports[0])))})};var Gh7=function(v){this.verifier_=v};
Gh7.prototype.verify=function(v){return this.verifier_(v)};
var MQ0=function(v){var e=Object.create(null);(typeof v==="string"?[v]:v).forEach(function(d){if(d==="null")throw Error("X");e[d]=!0});
return function(d){return e[d]===!0}};_.tQs=function(){if(!_.TO.addEventListener||!Object.defineProperty)return!1;var v=!1,e=Object.defineProperty({},"passive",{get:function(){v=!0}});
try{var d=function(){};
_.TO.addEventListener("test",d,e);_.TO.removeEventListener("test",d,e)}catch(E){}return v}();var fZO;_.gN=function(v){var e=v.destination;var d=v.iframe;var E=v.origin;var T=v.channelName===void 0?"ZNWN1d":v.channelName;var S=v.onMessage===void 0?void 0:v.onMessage;v=v.onEstablished===void 0?void 0:v.onEstablished;return fZO({destination:e,getSource:function(){return d.contentWindow},
originVerifier:E instanceof Gh7?E:typeof E==="function"?new Gh7(E):new Gh7(MQ0(E)),channelName:T,onMessage:S,onEstablished:v})};
fZO=function(v){var e=v.destination;var d=v.getSource;var E=v.originVerifier;var T=v.token===void 0?void 0:v.token;var S=v.channelName;var O=v.onMessage===void 0?void 0:v.onMessage;var b=v.onEstablished===void 0?void 0:v.onEstablished;return new kh0(new NLt(function(Y,q){var r=function(h){h.source&&h.source===d()&&E.verify(h.origin)&&(h.data.n||h.data)===S&&(e.removeEventListener("message",r,!1),T&&h.data.t!==T?q(Error("Y`"+S+"`"+T+"`"+h.data.t)):(Y(J20(h.ports[0],O)),b&&b(h)))};
e.addEventListener("message",r,!1)}))};var RRH=function(v){try{v()}catch(e){W3(e)}};var xas=function(v){var e=this;var d=v.getMessageType;var E=v.onUnregisteredMessage===void 0?function(){}:v.onUnregisteredMessage;
var T=v.onBeforeRegisteredMessage===void 0?function(){}:v.onBeforeRegisteredMessage;
v=v.onAfterRegisteredMessage===void 0?function(){}:v.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=d;this.onUnregisteredMessage_=E;this.onBeforeRegisteredMessage_=T;this.onAfterRegisteredMessage_=v;this.onMessage=function(S){return PGL(e,S)}};
xas.prototype.register=function(v,e){this.registry_.set(v,e);return this};
var PGL=function(v,e){var d=v.getMessageType_(e.data),E=v.registry_.get(d);E?(RRH(function(){return v.onBeforeRegisteredMessage_(e,d)}),RRH(function(){return E(e)}),RRH(function(){return v.onAfterRegisteredMessage_(e,d)})):RRH(function(){return v.onUnregisteredMessage_(e,d)})};var BL3=function(v){this.JSC$8949_channel_=v},XdS,zRS;
BL3.prototype.send=function(v,e,d){this.JSC$8949_channel_.send(RC(v),e,d)};
_.CGO=function(v,e){return function(d){var E=new v(d.data);return e(new L2$(E,d.channel))}};
XdS=function(v){return function(e){return v(new L2$(e.data,new BL3(e.channel)))}};
zRS=function(v,e){return XdS(_.CGO(v,e))};var lZs=function(v,e,d,E){this.registry=v;this.delegate=e;this.receiveMessageConstructor=d;this.createInitMessage=E;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},lBH=function(v){var e=new xas({getMessageType:v.getPayloadCase});
return new lZs(e,new BL3(_.gN({iframe:v.child,destination:window,origin:v.origin,channelName:v.channelName,onMessage:zRS(v.receiveMessageConstructor,e.onMessage)})),v.receiveMessageConstructor,v.createInitMessage)},HJ3=function(v,e){v.createInitMessage=e};
lZs.prototype.send=function(v){if(!this.initialised)throw new Qm("Attempted to send a message before initialisation.");this.delegate.send(v)};
var A2H=function(v,e){return _.I(function(d){if(!v.initialised)throw new Qm("Attempted to send a message before initialisation.");return d.return(new Promise(function(E){v.delegate.send(e,zRS(v.receiveMessageConstructor,E))}))})};
lZs.prototype.init=function(){var v=this;return _.I(function(e){if(v.initialised)throw new Qm("Attempted to initialise twice. The SDK can only be initialised once.");if(v.createInitMessage!==void 0){var d=v.delegate,E=d.send,T=v.createInitMessage;var S=new TL0;var O=[].concat(_.t7(v.features));S=_.uS(S,1,O,_.D0);E.call(d,T.call(v,S))}v.initialised=!0;_.s9(e)})};
var u1=function(v,e){if(v.initialised)throw new Qm('Attempted to set up API "'+e+'" after initialisation. All APIs must be set up before initialising the SDK.');v.features.add(e);return v.registry};
_.vP.Object.defineProperties(lZs.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var ZJ7=function(v){this.channel=v;this.registered=!1};
ZJ7.prototype.update=function(v){if(this.channel.isInitialised){if(!this.registered)throw new Qm("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var e=new yk;var d=new Sq$;d=_.iZ(d,1,v);e=_.$m(e,2,jm,d);this.channel.send(e)}else this.register();this.JSC$8963_audioEnabled=v};
ZJ7.prototype.register=function(){u1(this.channel,1);this.registered=!0};
ZJ7.prototype.isAudioEnabled=function(){return this.JSC$8963_audioEnabled};var c2W=function(v){this.channel=v};
_.W=c2W.prototype;_.W.onFirstFrameReady=function(v){u1(this.channel,2).register(11,function(e){e=_.MT(e.data,maW,11,FZ);if(!e)throw new Qm("Unexpectedly nonexistent GameFirstFrameReadyEvent");v(_.Vm(e,1))})};
_.W.onReady=function(v){u1(this.channel,2).register(4,function(e){e=_.MT(e.data,qq3,4,FZ);if(!e)throw new Qm("Unexpectedly nonexistent GameReadyEvent");v(_.Vm(e,1))})};
_.W.onLevelComplete=function(v){u1(this.channel,2).register(5,function(e){e=_.MT(e.data,r2L,5,FZ);if(!e)throw new Qm("Unexpectedly nonexistent LevelCompleteEvent");v(_.Vm(e,1),_.TZ(e,2))})};
_.W.onGameOver=function(v){u1(this.channel,2).register(6,function(e){e=_.MT(e.data,y2O,6,FZ);if(!e)throw new Qm("Unexpectedly nonexistent GameOverEvent");v(_.Vm(e,1))})};
_.W.pause=function(){var v=this;if(!this.channel.isInitialised)return u1(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Qm("Using unregistered Game Feature: pause.");var e=bJj();return new Promise(function(d){return _.I(function(E){if(E.nextAddress==1)return E.yield(A2H(v.channel,e),2);d();_.s9(E)})})};
_.W.resume=function(){var v=this;if(!this.channel.isInitialised)return u1(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Qm("Using unregistered Game Feature: resume.");var e=Yqj();return new Promise(function(d){return _.I(function(E){if(E.nextAddress==1)return E.yield(A2H(v.channel,e),2);d();_.s9(E)})})};var wdt=function(v){this.channel=v};
wdt.prototype.onReady=function(v){u1(this.channel,5).register(8,function(e){if(!_.MT(e.data,hRj,8,FZ))throw new Qm("Unexpectedly nonexistent PageReadyEvent");v()})};var F23=function(v){this.channel=v};
F23.prototype.onChange=function(v){u1(this.channel,3).register(7,function(e){e=_.MT(e.data,K2W,7,FZ);if(!e)throw new Qm("Unexpectedly nonexistent ScoreEvent");v(_.Vm(e,1),_.TZ(e,2))})};var Ql0={load:function(){throw new Qm("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Qm("Storage used, but storage.onSave() listener not set!");}},gWt=function(v){this.channel=v;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},uuO=function(v){u1(v.channel,4).register(2,Ql0.load).register(3,Ql0.save);
v.initialSetupDone=!0};
gWt.prototype.onLoad=function(v){this.initialSetupDone||uuO(this);this.loadRegistered||(this.loadRegistered=!0,u1(this.channel,4).register(2,function(e){var d,E,T;return _.I(function(S){if(S.nextAddress==1){d=_.MT(e.data,$aH,2,FZ);if(!d)throw new Qm("Unexpectedly nonexistent StorageLoad");E=_.Vm(d,1);return S.yield(v(E),2)}T=S.yieldResult;var O=e.reply,b=new yk;var Y=new iJU;Y=_.L0(Y,1,E);Y=_.iR(Y,2,_.Mi(T,!1));b=_.$m(b,3,jm,Y);O.call(e,b);_.s9(S)})}))};
gWt.prototype.onSave=function(v){this.initialSetupDone||uuO(this);this.saveRegistered||(this.saveRegistered=!0,u1(this.channel,4).register(3,function(e){var d,E,T;return _.I(function(S){if(S.nextAddress==1){d=_.MT(e.data,jlt,3,FZ);if(!d)throw new Qm("Unexpectedly nonexistent StorageSave");E=_.Vm(d,1);T=Zht(d.getData());return S.yield(v(E,T),2)}var O=e.reply,b=new yk;var Y=new OJS;Y=_.L0(Y,1,E);b=_.$m(b,4,jm,Y);O.call(e,b);_.s9(S)})}))};var nWS=function(v){this.channel=v};
nWS.prototype.update=function(v){if(!this.channel.features.has(6))throw new Qm("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var e=new yk,d=new IZO;v=_.hr(d,1,v);e=_.$m(e,6,jm,v);this.channel.send(e)};
nWS.prototype.register=function(){u1(this.channel,6)};var DaH=function(v){this.channel=v;this.userActivityLoggingIntervalMs=0};
DaH.prototype.onUserActivity=function(v,e){this.userActivityLoggingIntervalMs=e;u1(this.channel,7).register(9,function(d){if(!_.MT(d.data,slS,9,FZ))throw new Qm("Unexpectedly nonexistent ClickEvent");v()})};var UaM=function(v){var e=this;this.channel=v;this.init=this.channel.init.bind(this.channel);this.page=new wdt(this.channel);this.game=new c2W(this.channel);this.audio=new ZJ7(this.channel);this.score=new F23(this.channel);this.storage=new gWt(this.channel);this.style=new nWS(this.channel);this.userActivity=new DaH(this.channel);HJ3(this.channel,function(d){var E=new ArO;d=_.hr(E,1,d);d=_.tn(d,3,e.userActivity.userActivityLoggingIntervalMs);E=e.audio.isAudioEnabled();E!==void 0&&_.iZ(d,2,E);E=new yk;
return _.$m(E,5,jm,d)})};var pd0=function(){this.timedFunctionContext=0};
pd0.prototype.timeExecution=function(v,e){var d=this;return function(){var E=_.Xa.apply(0,arguments);d.timedFunctionContext=v;return e.apply(null,_.t7(E))}};var vS7=function(){var v={};this.priorityTasks=(v[3]=[],v[2]=[],v[1]=[],v);this.isFlushing=!1},rr=function(v,e,d){var E=e$M(v,d);
v.priorityTasks[d].push(e);E&&v.priorityTasks[d].length===1&&v.flush()},e$M=function(v,e){return Object.keys(v.priorityTasks).map(function(d){return Number(d)}).filter(function(d){return!isNaN(d)&&d>e}).every(function(d){return v.priorityTasks[d].length===0})};
vS7.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(v){return v.length>0});)d7M(this,3),d7M(this,2),d7M(this,1)}catch(v){throw Object.values(this.priorityTasks).forEach(function(e){return void e.splice(0,e.length)}),v;
}finally{this.isFlushing=!1}}};
var d7M=function(v,e){for(;e$M(v,e)&&v.priorityTasks[e].length>0;)v.priorityTasks[e][0](),v.priorityTasks[e].shift()};
_.vP.Object.defineProperties(vS7.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(v){return v.length>0})}}});var uaW={};var ESB=globalThis.trustedTypes,crM=ESB,FVW;var Nf=function(v){this.privateDoNotAccessOrElseWrappedResourceUrl=v};
Nf.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var TH0,S06,W00,at7,itM,Oti,Iti,btg;TH0=_.Z9([""]);S06=AR(["\x00"],["\\0"]);W00=AR(["\n"],["\\n"]);at7=AR(["\x00"],["\\u0000"]);itM=_.Z9([""]);Oti=AR(["\x00"],["\\0"]);Iti=AR(["\n"],["\\n"]);btg=AR(["\x00"],["\\u0000"]);_.Y0A=gmS(function(v){return v(TH0)})||gmS(function(v){return v(S06)})||gmS(function(v){return v(W00)})||gmS(function(v){return v(at7)});
_.m7E=_.Vk(itM)&&_.Vk(Oti)&&_.Vk(Iti)&&_.Vk(btg);var P$;_.o$=function(v,e){this.privateDoNotAccessOrElseWrappedUrl=e};
_.o$.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.ysM=Jr("about:blank");P$=Jr("about:invalid#zClosurez");var nmM=function(v){this.isValid=v},q02=new nmM(function(v){return/^[^:]*([/?#]|$)/.test(v)}),rs6=fY("data"),h$g=fY("http"),K0n=fY("https"),$7i=fY("ftp"),jUA=fY("mailto"),sUg=fY("intent"),NHE=fY("vnd.youtube"),Df0=[rs6,
h$g,K0n,jUA,$7i,q02],p$W=sJ(function(){return typeof URL==="function"}),kOi=["data:",
"http:","https:","mailto:","ftp:"],eUW=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var H$=function(v){this.privateDoNotAccessOrElseWrappedHtml=v};
H$.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var mkM=sJ(function(){return new H$(ESB?ESB.emptyHTML:"")});var L0e={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"},Eat=function(v,e){var d=Error.call(this,v+" cannot be used with intent "+L0e[e]);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.type=v;this.intent=e;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.V(Eat,Error);_.gu=function(v){this.privateDoNotAccessOrElseWrappedScript=v};
_.gu.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var a2S=function(v){this.privateDoNotAccessOrElseWrappedAttributePrefix=v};
a2S.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var iFW="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var el=function(v){this.privateDoNotAccessOrElseWrappedStyleSheet=v};
el.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var KSt=function(v){var e=_.AE("window.location.href");v==null&&(v='Unknown Error of type "null/undefined"');if(typeof v==="string")return{message:v,name:"Unknown error",lineNumber:"Not available",fileName:e,stack:"Not available"};var d=!1;try{var E=v.lineNumber||v.line||"Not available"}catch(O){E="Not available",d=!0}try{var T=v.fileName||v.filename||v.sourceURL||_.TO.$googDebugFname||e}catch(O){T="Not available",d=!0}e=VWM(v);if(!(!d&&v.lineNumber&&v.fileName&&v.stack&&v.message&&v.name)){d=v.message;
if(d==null){if(v.constructor&&v.constructor instanceof Function){if(v.constructor.name)d=v.constructor.name;else if(d=v.constructor,Dk[d])d=Dk[d];else{d=String(d);if(!Dk[d]){var S=/function\s+([^\(]+)/m.exec(d);Dk[d]=S?S[1]:"[Anonymous]"}d=Dk[d]}d='Unknown Error of type "'+d+'"'}else d="Unknown Error of unknown type";typeof v.toString==="function"&&Object.prototype.toString!==v.toString&&(d+=": "+v.toString())}return{message:d,name:v.name||"UnknownError",lineNumber:E,fileName:T,stack:e||"Not available"}}return{message:v.message,
name:v.name,lineNumber:v.lineNumber,fileName:v.fileName,stack:e}},VWM=function(v,e){e||(e={});
e[oSJ(v)]=!0;var d=v.stack||"",E=v.cause;E&&!e[oSJ(E)]&&(d+="\nCaused by: ",E.stack&&E.stack.indexOf(E.toString())==0||(d+=typeof E==="string"?E:E.message+"\n"),d+=VWM(E,e));v=v.errors;if(Array.isArray(v)){E=1;var T;for(T=0;T<v.length&&!(E>4);T++)e[oSJ(v[T])]||(d+="\nInner error "+E++ +": ",v[T].stack&&v[T].stack.indexOf(v[T].toString())==0||(d+=typeof v[T]==="string"?v[T]:v[T].message+"\n"),d+=VWM(v[T],e));T<v.length&&(d+="\n... "+(v.length-T)+" more inner errors")}return d},oSJ=function(v){var e=
"";
typeof v.toString==="function"&&(e=""+v);return e+v.stack},Dk={};var JsB,vi,I7,MW6,tW6,GO2,Hw,QI,R$E;JsB=function(v,e){for(var d=v.split("%s"),E="",T=Array.prototype.slice.call(arguments,1);T.length&&d.length>1;)E+=d.shift()+T.shift();return E+d.join("%s")};
_.cb=function(v){return encodeURIComponent(String(v))};
vi=function(v){return decodeURIComponent(v.replace(/\+/g," "))};
I7=function(v){Tcs.test(v)&&(v.indexOf("&")!=-1&&(v=v.replace(UKL,"&amp;")),v.indexOf("<")!=-1&&(v=v.replace(psH,"&lt;")),v.indexOf(">")!=-1&&(v=v.replace(vVS,"&gt;")),v.indexOf('"')!=-1&&(v=v.replace(etS,"&quot;")),v.indexOf("'")!=-1&&(v=v.replace(d8s,"&#39;")),v.indexOf("\x00")!=-1&&(v=v.replace(EVO,"&#0;")));return v};
MW6=function(v){var e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var d=_.TO.document.createElement("div");return v.replace(GO2,function(E,T){var S=e[E];if(S)return S;T.charAt(0)=="#"&&(T=Number("0"+T.slice(1)),isNaN(T)||(S=String.fromCharCode(T)));S||(_.UJ(d,Ar(E+" ")),S=d.firstChild.nodeValue.slice(0,-1));return e[E]=S})};
tW6=function(v){return v.replace(/&([^;]+);/g,function(e,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return d.charAt(0)!="#"||(d=Number("0"+d.slice(1)),isNaN(d))?e:String.fromCharCode(d)}})};
GO2=/&([^;\s<&]+);?/g;_.Dsj=function(v){return String(v).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.ftc=String.prototype.repeat?function(v,e){return v.repeat(e)}:function(v,e){return Array(e+1).join(v)};
_.UU=function(v,e){if(!Number.isFinite(v))return String(v);v=String(v);var d=v.indexOf(".");d===-1&&(d=v.length);var E=v[0]==="-"?"-":"";E&&(v=v.substring(1));return E+(0,_.ftc)("0",Math.max(0,e-d))+v};
Hw=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.pO()).toString(36)};
QI=function(v){for(var e=0,d=0;d<v.length;++d)e=31*e+v.charCodeAt(d)>>>0;return e};
_.kq=function(v){return String(v).replace(/\-([a-z])/g,function(e,d){return d.toUpperCase()})};
_.Nn=function(v){return String(v).replace(/([A-Z])/g,"-$1").toLowerCase()};
R$E=function(v){return v.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(e,d,E){return d+E.toUpperCase()})};var PLn=function(){this.names=new Map};
PLn.prototype.getName=function(v){var e=this.names.get(v);if(e)return e;var d;e=(d=v.description)!=null?d:Hw();this.names.set(v,e);return e};var x77=function(v){var e=Error.call(this,v?v.length+" errors occurred during unsubscription:\n"+v.map(function(d,E){return E+1+") "+d.toString()}).join("\n  "):"");
this.message=e.message;"stack"in e&&(this.stack=e.stack);this.errors=v;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.V(x77,Error);var E9=function(v){this.initialTeardown=v;this.closed=!1;this._teardowns=this._parentage=null};
_.W=E9.prototype;
_.W.unsubscribe=function(){if(!this.closed){this.closed=!0;var v=this._parentage;if(Array.isArray(v))for(var e=_.a(v),d=e.next();!d.done;d=e.next())d.value.remove(this);else v==null||v.remove(this);e=this.initialTeardown;if(d5(e))try{e()}catch(S){var E=S instanceof x77?S.errors:[S]}var T=this._teardowns;if(T)for(this._teardowns=null,e=_.a(T),d=e.next();!d.done;d=e.next()){d=d.value;try{d5(d)?d():d.unsubscribe()}catch(S){d=void 0,E=(d=E)!=null?d:[],S instanceof x77?E=[].concat(_.t7(E),_.t7(S.errors)):
E.push(S)}}if(E)throw new x77(E);}};
_.W.add=function(v){if(v&&v!==this)if(this.closed)d5(v)?v():v.unsubscribe();else{if(v instanceof E9){if(v.closed||v._hasParent(this))return;v._addParent(this)}var e;(this._teardowns=(e=this._teardowns)!=null?e:[]).push(v)}};
_.W._hasParent=function(v){var e=this._parentage;return e===v||Array.isArray(e)&&e.includes(v)};
_.W._addParent=function(v){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(v),e):e?[e,v]:v};
_.W._removeParent=function(v){var e=this._parentage;e===v?this._parentage=null:Array.isArray(e)&&Y90(e,v)};
_.W.remove=function(v){var e=this._teardowns;e&&Y90(e,v);v instanceof E9&&v._removeParent(this)};
var BHJ=new E9;BHJ.closed=!0;E9.JSC$9059_EMPTY=BHJ;var y7s=function(){setTimeout.apply(null,_.t7(_.Xa.apply(0,arguments)))};var pp=function(v){E9.call(this);this.JSC$9064_isStopped=!1;this.destination=v instanceof pp?v:new vB(!v||d5(v)?{next:v!=null?v:void 0}:v);mqS(v)&&v.add(this)};
_.V(pp,E9);pp.JSC$9059_EMPTY=E9.JSC$9059_EMPTY;pp.create=function(v,e,d){return new ej(v,e,d)};
_.W=pp.prototype;_.W.next=function(v){this.JSC$9064_isStopped||this._next(v)};
_.W.error=function(v){this.JSC$9064_isStopped||(this.JSC$9064_isStopped=!0,this._error(v))};
_.W.complete=function(){this.JSC$9064_isStopped||(this.JSC$9064_isStopped=!0,this._complete())};
_.W.unsubscribe=function(){this.closed||(this.JSC$9064_isStopped=!0,E9.prototype.unsubscribe.call(this))};
_.W._next=function(v){this.destination.next(v)};
_.W._error=function(v){this.destination.error(v);this.unsubscribe()};
_.W._complete=function(){this.destination.complete();this.unsubscribe()};
var vB=function(v){this.partialObserver=v};
vB.prototype.next=function(v){var e=this.partialObserver;if(e.next)try{e.next(v)}catch(d){Wu(d)}};
vB.prototype.error=function(v){var e=this.partialObserver;if(e.error)try{e.error(v)}catch(d){Wu(d)}else Wu(v)};
vB.prototype.complete=function(){var v=this.partialObserver;if(v.complete)try{v.complete()}catch(e){Wu(e)}};
var ej=function(v,e,d){pp.call(this);var E;d5(v)||!v?E={next:v!=null?v:void 0,error:e!=null?e:void 0,complete:d!=null?d:void 0}:E=v;this.destination=new vB(E)};
_.V(ej,pp);ej.JSC$9059_EMPTY=pp.JSC$9059_EMPTY;ej.create=pp.create;var I0=typeof Symbol==="function"&&Symbol.observable||"@@observable";var O9=function(v){v&&(this._subscribe=v)};
_.W=O9.prototype;_.W.lift=function(v){var e=new O9;e.source=this;e.operator=v;return e};
_.W.subscribe=function(v,e,d){v=v&&v instanceof pp||v&&d5(v.next)&&d5(v.error)&&d5(v.complete)&&mqS(v)?v:new ej(v,e,d);e=this.operator;d=this.source;v.add(e?e.call(v,d):d?this._subscribe(v):this._trySubscribe(v));return v};
_.W._trySubscribe=function(v){try{return this._subscribe(v)}catch(e){v.error(e)}};
_.W.forEach=function(v,e){var d=this;e=r7M(e);return new e(function(E,T){var S=d.subscribe(function(O){try{v(O)}catch(b){T(b),S==null||S.unsubscribe()}},T,E)})};
_.W._subscribe=function(v){var e;return(e=this.source)==null?void 0:e.subscribe(v)};
O9.prototype[I0]=function(){return this};
O9.prototype.pipe=function(){var v=_.Xa.apply(0,arguments);return v.length?q9t(v)(this):this};
O9.create=function(v){return new O9(v)};var CLi=function(){var v=Error.call(this,"object unsubscribed");this.message=v.message;"stack"in v&&(this.stack=v.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.V(CLi,Error);var Yx=function(){this.observers=[];this.hasError=this.JSC$9080_isStopped=this.closed=!1;this.thrownError=null};
_.V(Yx,O9);_.W=Yx.prototype;_.W.lift=function(v){var e=new dI(this,this);e.operator=v;return e};
_.W._throwIfClosed=function(){if(this.closed)throw new CLi;};
_.W.next=function(v){this._throwIfClosed();if(!this.JSC$9080_isStopped){var e=this.observers.slice();e=_.a(e);for(var d=e.next();!d.done;d=e.next())d.value.next(v)}};
_.W.error=function(v){this._throwIfClosed();if(!this.JSC$9080_isStopped){this.hasError=this.JSC$9080_isStopped=!0;this.thrownError=v;for(var e=this.observers;e.length;)e.shift().error(v)}};
_.W.complete=function(){this._throwIfClosed();if(!this.JSC$9080_isStopped){this.JSC$9080_isStopped=!0;for(var v=this.observers;v.length;)v.shift().complete()}};
_.W.unsubscribe=function(){this.JSC$9080_isStopped=this.closed=!0;this.observers=null};
_.W._trySubscribe=function(v){this._throwIfClosed();return O9.prototype._trySubscribe.call(this,v)};
_.W._subscribe=function(v){this._throwIfClosed();this._checkFinalizedStatuses(v);return this._innerSubscribe(v)};
_.W._innerSubscribe=function(v){var e=this,d=this.JSC$9080_isStopped,E=this.observers;return this.hasError||d?E9.JSC$9059_EMPTY:(E.push(v),new E9(function(){return Y90(e.observers,v)}))};
_.W._checkFinalizedStatuses=function(v){var e=this.thrownError,d=this.JSC$9080_isStopped;this.hasError?v.error(e):d&&v.complete()};
Yx.create=function(v,e){return new dI(v,e)};
var dI=function(v,e){Yx.call(this);this.destination=v;this.source=e};
_.V(dI,Yx);dI.create=Yx.create;dI.prototype.next=function(v){var e,d;(e=this.destination)==null||(d=e.next)==null||d.call(e,v)};
dI.prototype.error=function(v){var e,d;(e=this.destination)==null||(d=e.error)==null||d.call(e,v)};
dI.prototype.complete=function(){var v,e;(v=this.destination)==null||(e=v.complete)==null||e.call(v)};
dI.prototype._subscribe=function(v){var e,d;return(d=(e=this.source)==null?void 0:e.subscribe(v))!=null?d:E9.JSC$9059_EMPTY};var Ac=function(v){Yx.call(this);this._value=v};
_.V(Ac,Yx);Ac.create=Yx.create;Ac.prototype._subscribe=function(v){var e=Yx.prototype._subscribe.call(this,v);!e.closed&&v.next(this._value);return e};
Ac.prototype.getValue=function(){var v=this.thrownError,e=this._value;if(this.hasError)throw v;this._throwIfClosed();return e};
Ac.prototype.next=function(v){Yx.prototype.next.call(this,this._value=v)};
_.vP.Object.defineProperties(Ac.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Bu=new O9(function(v){return v.complete()});var j0L=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var VlW=function(v){return v&&typeof v.length==="number"&&typeof v!=="function"};var X3g={now:function(){return(X3g.delegate||Date).now()},
delegate:void 0};var D2=function(v,e,d){v=v===void 0?Infinity:v;e=e===void 0?Infinity:e;d=d===void 0?X3g:d;Yx.call(this);this.bufferSize=v;this.windowTime=e;this.timestampProvider=d;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=e===Infinity;this.bufferSize=Math.max(1,v);this.windowTime=Math.max(1,e)};
_.V(D2,Yx);D2.create=Yx.create;D2.prototype.next=function(v){var e=this.buffer,d=this.infiniteTimeWindow,E=this.timestampProvider,T=this.windowTime;this.JSC$9080_isStopped||(e.push(v),!d&&e.push(E.now()+T));z$g(this);Yx.prototype.next.call(this,v)};
D2.prototype._subscribe=function(v){this._throwIfClosed();z$g(this);for(var e=this._innerSubscribe(v),d=this.infiniteTimeWindow,E=this.buffer.slice(),T=0;T<E.length&&!v.closed;T+=d?1:2)v.next(E[T]);this._checkFinalizedStatuses(v);return e};
var z$g=function(v){var e=v.bufferSize,d=v.timestampProvider,E=v.buffer;v=v.infiniteTimeWindow;var T=(v?1:2)*e;e<Infinity&&T<E.length&&E.splice(0,E.length-T);if(!v){e=d.now();d=0;for(v=1;v<E.length&&E[v]<=e;v+=2)d=v;d&&E.splice(0,d+1)}};var HtA=function(v,e){e=e===void 0?lt2:e;this.schedulerActionCtor=v;this.now=e};
HtA.prototype.schedule=function(v,e,d){e=e===void 0?0:e;return(new this.schedulerActionCtor(this,v)).schedule(d,e)};
var lt2=X3g.now;var hWO=function(){var v=Error.call(this,"no elements in sequence");this.message=v.message;"stack"in v&&(this.stack=v.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.V(hWO,Error);var J7=function(v,e,d,E,T){pp.call(this,v);this.onUnsubscribe=T;e&&(this._next=function(S){try{e(S)}catch(O){this.destination.error(O)}});
d&&(this._error=function(S){try{d(S)}catch(O){this.destination.error(O)}this.unsubscribe()});
E&&(this._complete=function(){try{E()}catch(S){this.destination.error(S)}this.unsubscribe()})};
_.V(J7,pp);J7.JSC$9059_EMPTY=pp.JSC$9059_EMPTY;J7.create=pp.create;J7.prototype.unsubscribe=function(){var v;this.closed||(v=this.onUnsubscribe)!=null&&v.call(this);pp.prototype.unsubscribe.call(this)};var u9=function(v,e){this.source=v;this.subjectFactory=e;this._subject=null;this._refCount=0;this._connection=null};
_.V(u9,O9);u9.create=O9.create;u9.prototype._subscribe=function(v){return AsA(this).subscribe(v)};
var AsA=function(v){var e=v._subject;if(!e||e.JSC$9080_isStopped)v._subject=v.subjectFactory();return v._subject};
u9.prototype._teardown=function(){this._refCount=0;var v=this._connection;this._subject=this._connection=null;v==null||v.unsubscribe()};
u9.prototype.connect=function(){var v=this,e=this._connection;if(!e){e=this._connection=new E9;var d=AsA(this);e.add(this.source.subscribe(new J7(d,void 0,function(E){v._teardown();d.error(E)},function(){v._teardown();
d.complete()},function(){return v._teardown()})));
e.closed&&(this._connection=null,e=E9.JSC$9059_EMPTY)}return e};var Xuj=Array.isArray;var l2j=Array.isArray,Ztc=Object,HF3=Ztc.getPrototypeOf,A7L=Ztc.prototype,ZFt=Ztc.keys;var R0=function(v,e,d){pp.call(this,v);this._next=e;this.shouldComplete=d};
_.V(R0,pp);R0.JSC$9059_EMPTY=pp.JSC$9059_EMPTY;R0.create=pp.create;R0.prototype._complete=function(){this.shouldComplete()?pp.prototype._complete.call(this):this.unsubscribe()};var Uqs=["addListener","removeListener"],DqU=["addEventListener","removeEventListener"],vxL=["on","off"];var ES=function(){E9.call(this)};
_.V(ES,E9);ES.JSC$9059_EMPTY=E9.JSC$9059_EMPTY;ES.prototype.schedule=function(){return this};var csn=function(v,e){return setInterval.apply(null,[v,e].concat(_.t7(_.Xa.apply(2,arguments))))};var T5=function(v,e){E9.call(this);this.scheduler=v;this.work=e;this.pending=!1};
_.V(T5,ES);T5.JSC$9059_EMPTY=ES.JSC$9059_EMPTY;T5.prototype.schedule=function(v,e){e=e===void 0?0:e;if(this.closed)return this;this.state=v;v=this.id;var d=this.scheduler;v!=null&&(this.id=w3i(this,v,e));this.pending=!0;this.delay=e;this.id=this.id||this.requestAsyncId(d,this.id,e);return this};
T5.prototype.requestAsyncId=function(v,e,d){d=d===void 0?0:d;return csn(v.flush.bind(v,this),d)};
var w3i=function(v,e,d){d=d===void 0?0:d;if(d!=null&&v.delay===d&&v.pending===!1)return e;clearInterval(e)};
T5.prototype.execute=function(v,e){if(this.closed)return Error("ha");this.pending=!1;if(v=this._execute(v,e))return v;this.pending===!1&&this.id!=null&&(this.id=w3i(this,this.id,null))};
T5.prototype._execute=function(v){var e=!1;try{this.work(v)}catch(E){e=!0;var d=!!E&&E||Error(E)}if(e)return this.unsubscribe(),d};
T5.prototype.unsubscribe=function(){if(!this.closed){var v=this.id,e=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Y90(e,this);v!=null&&(this.id=w3i(this,v,null));this.delay=null;ES.prototype.unsubscribe.call(this)}};var F0u=function(v,e){e=e===void 0?lt2:e;HtA.call(this,v,e);this.actions=[];this.active=!1;this.scheduled=void 0};
_.V(F0u,HtA);F0u.prototype.flush=function(v){var e=this.actions;if(this.active)e.push(v);else{var d;this.active=!0;do if(d=v.execute(v.state,v.delay))break;while(v=e.shift());this.active=!1;if(d){for(;v=e.shift();)v.unsubscribe();throw d;}}};var Jc=new O9(Sl);var eW0=Array.isArray;var Sj=function(v,e){T5.call(this,v,e);this.scheduler=v;this.work=e};
_.V(Sj,T5);Sj.JSC$9059_EMPTY=T5.JSC$9059_EMPTY;Sj.prototype.schedule=function(v,e){e=e===void 0?0:e;if(e>0)return T5.prototype.schedule.call(this,v,e);this.delay=e;this.state=v;this.scheduler.flush(this);return this};
Sj.prototype.execute=function(v,e){return e>0||this.closed?T5.prototype.execute.call(this,v,e):this._execute(v,e)};
Sj.prototype.requestAsyncId=function(v,e,d){d=d===void 0?0:d;return d!=null&&d>0||d==null&&this.delay>0?T5.prototype.requestAsyncId.call(this,v,e,d):v.flush(this)};var QUc=function(){F0u.apply(this,arguments)};
_.V(QUc,F0u);var B50=new QUc(Sj);var gS6=function(){this.performanceMonitor=new pd0;this.queue=new vS7;this.internalSymbol=Symbol();this.debugNames=new PLn};
gS6.prototype.getOnBackgrounded=function(){return Jc};
_.vP.Object.defineProperties(gS6.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var WB=function(v,e){e=Error.call(this,e?v+": "+e:String(v));this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=v;this.__proto__=WB.prototype;this.name=String(v)};
_.V(WB,Error);var MR=function(v){WB.call(this,1E3,'sfr:"'+v+'"');this.measurementStrategyFailureReason=v;this.__proto__=MR.prototype};
_.V(MR,WB);var tc=function(){WB.call(this,1003);this.__proto__=tc.prototype};
_.V(tc,WB);var ad=function(){WB.call(this,1009);this.__proto__=ad.prototype};
_.V(ad,WB);var uMc=function(){WB.call(this,1011);this.__proto__=uMc.prototype};
_.V(uMc,WB);var nSn=function(){WB.call(this,1007);this.__proto__=tc.prototype};
_.V(nSn,WB);var VN=function(v){WB.call(this,1004,String(v));this.inputObservableIndex=v;this.__proto__=VN.prototype};
_.V(VN,WB);var RHs=function(v){WB.call(this,1010,v);this.__proto__=PZM.prototype};
_.V(RHs,WB);var PZM=function(v){WB.call(this,1005,v);this.__proto__=PZM.prototype};
_.V(PZM,WB);var D7i=function(v){var e=_.Xa.apply(1,arguments),d=this;this.orderedFactories=[];this.orderedFactories.push(v);e.forEach(function(E){d.orderedFactories.push(E)})};
D7i.prototype.isSupported=function(v){return this.orderedFactories.some(function(e){return e.isSupported(v)})};
D7i.prototype.makeBeacon=function(v,e){for(var d=0;d<this.orderedFactories.length;d++)if(this.orderedFactories[d].isSupported(e))return this.orderedFactories[d].makeBeacon(v,e);throw new ad;};var s_S=Symbol("ia"),U7g=Symbol("ja"),l9=function(v,e){this.value=v;this.timeline=e},zM=function(v,e){if(e.timeline!==v.timeline)throw new nSn;
return v.value-e.value};
_.W=l9.prototype;_.W.equals=function(v){return zM(this,v)===0};
_.W.maximum=function(v){if(v.timeline!==this.timeline)throw new nSn;return this.value>=v.value?this:v};
_.W.round=function(){return new l9(Math.round(this.value),this.timeline)};
_.W.add=function(v){return new l9(this.value+v,this.timeline)};
_.W.toString=function(){return String(this.value)};var i_=function(v,e){this.context=v;this.JSC$9186_pinger=e};
i_.prototype.isSupported=function(v){return this.JSC$9186_pinger.isSupported(v)};
i_.prototype.makeBeacon=function(v,e){if(!this.isSupported(e))throw new ad;return new OS(this.context,this.JSC$9186_pinger,e!=null?e:void 0,v)};
var OS=function(v,e,d,E){var T=this;this.JSC$9192_pinger=e;this.properties=d;this.url=E;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var S;this.method=(S=d==null?void 0:d.beaconMethod)!=null?S:"GET";this.backgroundedSubscription=v.getOnBackgrounded().subscribe(function(){T.sendNow()})};
OS.prototype.deactivate=function(){this.internalIsPending=!1};
OS.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9192_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var v,e;this.JSC$9192_pinger.pingWithHeadersAndBody((v=this.properties)!=null?v:{},this.customHeaders,(e=this.body)!=null?e:"",this.url)}else this.JSC$9192_pinger.ping(this.url);this.internalIsPending=!1}catch(d){}else this.internalIsPending=!1};
OS.prototype.setHeader=function(v,e){this.customHeaders.set(v,e)};
_.vP.Object.defineProperties(OS.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var vI2=function(){for(var v=_.a(_.Xa.apply(0,arguments)),e=v.next();!e.done;e=v.next())if(e=e.value,e.available()){this.timeProvider=e;return}this.timeProvider=new p3u};
_.W=vI2.prototype;_.W.available=function(){return this.timeProvider.available()};
_.W.now=function(){return this.timeProvider.now()};
_.W.setTimeout=function(v,e){return this.timeProvider.setTimeout(v,e)};
_.W.clearTimeout=function(v){this.timeProvider.clearTimeout(v)};
_.W.interval=function(v,e){var d=this.intervalObservable(v).subscribe(e);return function(){return void d.unsubscribe()}};
_.W.intervalObservable=function(v){return this.timeProvider.intervalObservable(v)};
_.vP.Object.defineProperties(vI2.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var p3u=function(){this.timeline=Symbol()};
_.W=p3u.prototype;_.W.available=function(){return!1};
_.W.now=function(){return new l9(0,this.timeline)};
_.W.setTimeout=function(){return 0};
_.W.clearTimeout=function(){};
_.W.interval=function(){return function(){}};
_.W.intervalObservable=function(){return Jc};var Id=function(v,e){this.intrinsicFunctionNamespace=v;this.performanceMonitor=e};
_.W=Id.prototype;_.W.setTimeout=function(v,e){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,v),e)};
_.W.clearTimeout=function(v){this.intrinsicFunctionNamespace.clearTimeout(v)};
_.W.interval=function(v,e){var d=this.intervalObservable(v).subscribe(e);return function(){return void d.unsubscribe()}};
_.W.intervalObservable=function(v){var e=this;return new O9(function(d){var E=0,T=e.intrinsicFunctionNamespace.setInterval(function(){d.next(E++)},v);
return function(){e.intrinsicFunctionNamespace.clearInterval(T)}})};
_.W.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var euI=function(v,e){Id.call(this,v,e);this.timeline=U7g};
_.V(euI,Id);euI.prototype.now=function(){return new l9(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
euI.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Id.prototype.available.call(this)};var diA=function(v,e){Id.call(this,v,e);this.timeline=s_S};
_.V(diA,Id);diA.prototype.now=function(){return new l9(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
diA.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Id.prototype.available.call(this)};var Tni=function(v){this.context=v;if(EI6===void 0)a:{var e,d,E=(e=v.global)==null?void 0:(d=e.document)==null?void 0:d.createElement("meta");if(E)try{E.httpEquiv="origin-trial";E.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";v.global.document.head.append(E);EI6=E;break a}catch(T){}EI6=void 0}},
EI6;
Tni.prototype.isSupported=function(v){return b0L(this.context)!==void 0&&!(v==null||!v.endOfSession)&&!b_(this.context)&&!(v==null?0:v.attributionEnabled)&&!(v==null?0:v.customHeaders)&&!(v==null?0:v.customBody)};
Tni.prototype.makeBeacon=function(v,e){if(!this.isSupported(e))throw new ad;return new Y0(this.context,v,e)};
var Y0=function(v,e,d){this.context=v;this.properties=d;this.JSC$9219_urlWithoutToken=e;var E;this.beaconMethod=(E=d==null?void 0:d.beaconMethod)!=null?E:"GET";v=b0L(this.context);if(v===void 0)throw Error();this.fetchLater=v;S6A(this,WgI(this))},S6A=function(v,e){v.beaconResult&&v.beaconResult.activated||(v.beaconAbort=new AbortController,v.beaconResult=v.fetchLater(e,{method:v.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:v.beaconAbort.signal,activateAfter:96E4}))},WgI=function(v){v=v.JSC$9219_urlWithoutToken;
return(v.slice(-1)[0]==="&"?v:v+"&")+"flapi=1"};
Y0.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Y0.prototype.sendNow=function(){};
Y0.prototype.setHeader=function(){};
_.vP.Object.defineProperties(Y0.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9219_urlWithoutToken},
set:function(v){this.JSC$9219_urlWithoutToken=v;v=WgI(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);S6A(this,v)}},
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 a06=function(v){this.context=v};
a06.prototype.isSupported=function(){return!b_(this.context)&&!!this.context.global.fetch};
a06.prototype.ping=function(){var v=this;return CF.apply(null,_.t7(_.Xa.apply(0,arguments).map(function(e){return m7(v.context.global.fetch(e,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(Mq(function(d){return d.status===200}))}))).pipe(K1W(function(e){return e}),j23())};
a06.prototype.pingWithHeadersAndBody=function(v,e,d){for(var E=_.Xa.apply(3,arguments),T=this,S=new Headers,O=_.a(e.entries()),b=O.next();!b.done;b=O.next()){var Y=_.a(b.value);b=Y.next().value;Y=Y.next().value;S.set(b,Y)}var q,r=(q=v.keepAlive)!=null?q:!1;CF.apply(null,_.t7(E.map(function(h){return m7(T.context.global.fetch(h,Object.assign({},{method:String(v.beaconMethod),cache:"no-cache"},r?{keepalive:!0}:{},{mode:"no-cors",headers:S,body:d}))).pipe(Mq(function(K){return K.status===200}))}))).pipe(K1W(function(h){return h}),
j23())};var i7E,FoL;_.mv=function(){};
_.B3=function(v){return v};
i7E=function(v){var e=e||0;return function(){return v.apply(this,Array.prototype.slice.call(arguments,0,e))}};
_.qF=function(v){var e=!1,d;return function(){e||(d=v(),e=!0);return d}};
_.rI=function(v,e){var d=0;return function(E){_.TO.clearTimeout(d);var T=arguments;d=_.TO.setTimeout(function(){v.apply(void 0,T)},e)}};
FoL=function(v,e){var d=0,E=!1,T=[],S=function(){d=0;E&&(E=!1,O())},O=function(){d=_.TO.setTimeout(S,e);
var b=T;T=[];v.apply(void 0,b)};
return function(b){T=arguments;d?E=!0:O()}};var I0A=function(){return jW&&s0?s0.mobile:!O70()&&(Vj("iPod")||Vj("iPhone")||Vj("Android")||Vj("IEMobile"))},O70=function(){return jW&&s0?!s0.mobile&&(Vj("iPad")||Vj("Android")||Vj("Silk")):Vj("iPad")||Vj("Android")&&!Vj("Mobile")||Vj("Silk")};var b7i;_.f0={};b7i="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.f0.add=function(v,e,d){if(v!==null&&e in v)throw Error("la`"+e);v[e]=d};
_.f0.clear=function(v){for(var e in v)delete v[e]};
_.f0.clone=function(v){var e={},d;for(d in v)e[d]=v[d];return e};
_.f0.contains=function(v,e){return oxM(v,e)};
_.f0.containsKey=function(v,e){return v!==null&&e in v};
_.f0.containsValue=oxM;_.f0.create=MyL;_.f0.createImmutableView=function(v){var e=v;Object.isFrozen&&!Object.isFrozen(v)&&(e=Object.create(v),Object.freeze(e));return e};
_.f0.createSet=tyS;_.f0.equals=function(v,e){for(var d in v)if(!(d in e)||v[d]!==e[d])return!1;for(var E in e)if(!(E in v))return!1;return!0};
_.f0.every=function(v,e,d){for(var E in v)if(!e.call(d,v[E],E,v))return!1;return!0};
_.f0.extend=function(v,e){for(var d,E,T=1;T<arguments.length;T++){E=arguments[T];for(d in E)v[d]=E[d];for(var S=0;S<b7i.length;S++)d=b7i[S],Object.prototype.hasOwnProperty.call(E,d)&&(v[d]=E[d])}};
_.f0.filter=function(v,e,d){var E={},T;for(T in v)e.call(d,v[T],T,v)&&(E[T]=v[T]);return E};
_.f0.findKey=JcO;_.f0.findValue=function(v,e,d){return(e=JcO(v,e,d))&&v[e]};
_.f0.forEach=function(v,e,d){for(var E in v)e.call(d,v[E],E,v)};
_.f0.get=function(v,e,d){return v!==null&&e in v?v[e]:d};
_.f0.getAllPropertyNames=function(v,e,d){if(!v)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return VyW(v);for(var E={};v&&(v!==Object.prototype||e)&&(v!==Function.prototype||d);){for(var T=Object.getOwnPropertyNames(v),S=0;S<T.length;S++)E[T[S]]=!0;v=Object.getPrototypeOf(v)}return VyW(E)};
_.f0.getAnyKey=function(v){for(var e in v)return e};
_.f0.getAnyValue=function(v){for(var e in v)return v[e]};
_.f0.getCount=function(v){var e=0,d;for(d in v)e++;return e};
_.f0.getKeys=VyW;_.f0.getSuperClass=function(v){return(v=Object.getPrototypeOf(v.prototype))&&v.constructor};
_.f0.getValueByKeys=function(v,e){var d=_.c3(e),E=d?e:arguments;for(d=d?0:1;d<E.length;d++){if(v==null)return;v=v[E[d]]}return v};
_.f0.getValues=function(v){var e=[],d=0,E;for(E in v)e[d++]=v[E];return e};
_.f0.isEmpty=function(v){for(var e in v)return!1;return!0};
_.f0.isImmutableView=function(v){return!!Object.isFrozen&&Object.isFrozen(v)};
_.f0.map=function(v,e,d){var E={},T;for(T in v)E[T]=e.call(d,v[T],T,v);return E};
_.f0.remove=function(v,e){var d;(d=e in v)&&delete v[e];return d};
_.f0.set=function(v,e,d){v[e]=d};
_.f0.setIfUndefined=function(v,e,d){return e in v?v[e]:v[e]=d};
_.f0.setWithReturnValueIfNotSet=function(v,e,d){if(e in v)return v[e];d=d();return v[e]=d};
_.f0.some=function(v,e,d){for(var E in v)if(e.call(d,v[E],E,v))return!0;return!1};
_.f0.transpose=function(v){var e={},d;for(d in v)e[v[d]]=d;return e};
_.f0.unsafeClone=G8M;var hZ=function(v,e,d,E,T){this.allowedElements=v;this.elementPolicies=e;this.allowedGlobalAttributes=d;this.globalAttributePolicies=E;this.globallyAllowedAttributePrefixes=T},Y6I=function(v,e,d){d=v.elementPolicies.get(d);
return(d==null?0:d.has(e))?d.get(e):v.allowedGlobalAttributes.has(e)?{policyAction:1}:(d=v.globalAttributePolicies.get(e))?d:v.globallyAllowedAttributePrefixes&&[].concat(_.t7(v.globallyAllowedAttributePrefixes)).some(function(E){return e.indexOf(E)===0})?{policyAction:1}:{policyAction:0}};var mi0="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(" "),
yee=[["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}]])]],q6M="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(" "),
reg=[["dir",{policyAction:3,conditions:sJ(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:sJ(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:sJ(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:sJ(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],hu6=new hZ(new Set(mi0),new Map(yee),new Set(q6M),new Map(reg)),KgM=new hZ(new Set(mi0.concat(["BUTTON",
"INPUT"])),new Map(yee),new Set(sJ(function(){return q6M.concat(["class","id","name"])})),new Map(sJ(function(){return reg.concat([["style",
{policyAction:1}]])})));var $iM,jE7,Nne;$iM=function(v,e,d,E,T){this.JSC$9280_sanitizerTable=v;this.styleElementSanitizer=e;this.styleAttributeSanitizer=d;this.JSC$9280_resourceUrlPolicy=E;this.JSC$9280_navigationUrlPolicy=T;this.changes=[]};
_.sEc=function(v,e){var d=document.implementation.createHTMLDocument("");v=jE7(v,e,d);d=d.body;d.appendChild(v);d=(new XMLSerializer).serializeToString(d);d=d.slice(d.indexOf(">")+1,d.lastIndexOf("</"));return Ar(d)};
jE7=function(v,e,d){e=Pe$(e,d);e=document.createTreeWalker(e,5,function(b){if(b.nodeType===3)b=1;else if(BrM(b))if(b=xR0(b),b===null)b=2;else{var Y=v.JSC$9280_sanitizerTable;b=b!=="FORM"&&(Y.allowedElements.has(b)||Y.elementPolicies.has(b))?1:2}else b=2;return b});
for(var E=e.nextNode(),T=d.createDocumentFragment(),S=T;E!==null;){var O=void 0;if(E.nodeType===3)v.styleElementSanitizer&&S.nodeName==="STYLE"?(E=v.styleElementSanitizer(E.data),O=v.createTextNode(E)):O=v.createTextNode(E.data);else if(BrM(E))O=Nne(v,E,d);else throw Error("Z");S.appendChild(O);if(E=e.firstChild())S=O;else for(;!(E=e.nextSibling())&&(E=e.parentNode());)S=S.parentNode}return T};
$iM.prototype.createTextNode=function(v){return document.createTextNode(v)};
Nne=function(v,e,d){var E,T=xR0(e);d=d.createElement(T);e=e.attributes;for(var S=_.a(e),O=S.next();!O.done;O=S.next()){var b=O.value;O=b.name;b=b.value;var Y=Y6I(v.JSC$9280_sanitizerTable,O,T);a:{if(E=Y.conditions){E=_.a(E);for(var q=E.next();!q.done;q=E.next()){var r=_.a(q.value);q=r.next().value;r=r.next().value;var h=void 0;if((q=(h=e.getNamedItem(q))==null?void 0:h.value)&&!r.has(q)){E=!1;break a}}}E=!0}if(E)switch(Y.policyAction){case 1:a2(d,O,b);break;case 2:throw Error();case 3:a2(d,O,b.toLowerCase());
break;case 4:v.styleAttributeSanitizer?(b=v.styleAttributeSanitizer(b),a2(d,O,b)):a2(d,O,b);break;case 5:v.JSC$9280_resourceUrlPolicy?(Y={type:2,attributeName:O,elementName:T},b=RWH(b),(b=v.JSC$9280_resourceUrlPolicy(b,Y))&&a2(d,O,b.toString())):a2(d,O,b);break;case 6:if(v.JSC$9280_resourceUrlPolicy){Y={type:2,attributeName:O,elementName:T};E=[];b=_.a(b.split(","));for(q=b.next();!q.done;q=b.next())r=_.a(q.value.trim().split(/\s+/,2)),q=r.next().value,r=r.next().value,E.push({url:q,descriptor:r});
b={parts:[]};E=_.a(E);for(q=E.next();!q.done;q=E.next())q=q.value,r=RWH(q.url),(r=v.JSC$9280_resourceUrlPolicy(r,Y))&&b.parts.push({url:r.toString(),descriptor:q.descriptor});a2(d,O,CeW(b))}else a2(d,O,b);break;case 7:Y=b;if(v.JSC$9280_navigationUrlPolicy){Y={type:2,attributeName:O,elementName:T};b=RWH(b);b=v.JSC$9280_navigationUrlPolicy(b,Y);if(b===null)break;Y=b.toString()}b=Y;Y=_.vaS(b);Y=Y!==void 0&&kOi.indexOf(Y.toLowerCase())!==-1?b:"about:invalid#zClosurez";a2(d,O,Y)}}return d};
_.k26=sJ(function(){return new $iM(hu6)});
_.Lg6=sJ(function(){return new $iM(KgM)});var VAg=function(){this.calledBuild=!1;this.JSC$9292_sanitizerTable=hu6},oIM=function(){VAg.apply(this,arguments)};
_.V(oIM,VAg);oIM.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new $iM(this.JSC$9292_sanitizerTable,void 0,void 0,this.JSC$9292_resourceUrlPolicy,this.JSC$9292_navigationUrlPolicy)};var Je0=/[^#]*/;var MAu=function(v){var e=G20;if(e)for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&v(e[d],d,e)},tAE=function(){var v=[];
MAu(function(e){v.push(e)});
return v},G20={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"},f0u=_.qF(function(){return tAE()}),PMB=function(){var v=Ru7("IFRAME"),
e={};
_.wZ(f0u(),function(d){v.sandbox&&v.sandbox.supports&&v.sandbox.supports(d)&&(e[d]=!0)});
return e},Ru7=function(v,e){e=e===void 0?document:e;
return e.createElement(String(v).toLowerCase())};var Kf;_.M3=function(v,e,d){return Math.min(Math.max(v,e),d)};
Kf=function(v,e,d){return v+d*(e-v)};_.Pn=function(v,e){this.x=v!==void 0?v:0;this.y=e!==void 0?e:0};
_.W=_.Pn.prototype;_.W.clone=function(){return new _.Pn(this.x,this.y)};
_.W.equals=function(v){return v instanceof _.Pn&&(this==v?!0:this&&v?this.x==v.x&&this.y==v.y:!1)};
_.W.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.W.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.W.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.W.translate=function(v,e){v instanceof _.Pn?(this.x+=v.x,this.y+=v.y):(this.x+=Number(v),typeof e==="number"&&(this.y+=e));return this};
_.W.scale=function(v,e){this.x*=v;this.y*=typeof e==="number"?e:v;return this};_.$x=function(v,e){this.width=v;this.height=e};
_.W=_.$x.prototype;_.W.clone=function(){return new _.$x(this.width,this.height)};
_.W.area=function(){return this.width*this.height};
_.W.aspectRatio=function(){return this.width/this.height};
_.W.isEmpty=function(){return!this.area()};
_.W.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.W.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.W.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.W.scale=function(v,e){this.width*=v;this.height*=typeof e==="number"?e:v;return this};var XT=function(v,e){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=v===s7H&&e||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=xiu};
XT.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var BnI=function(v){return v instanceof XT&&v.constructor===XT&&v.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===xiu?v.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},xiu={},s7H={};
new XT(s7H,"");var NR,$h,jj,CMM,l0J,zuM,xx,Ae7,ce2,Z7A,Lf,wcE,Ui6,DiM,nIA,pcn,vsB,e_6,d1I,H1U,Esc,SiJ,Wfg,T96,$0;NR=function(v){return v?new $0(_.Bn(v)):QkO||(QkO=new $0)};
_.Tn=function(v,e){return typeof e==="string"?v.getElementById(e):e};
$h=function(v,e){return(e||document).getElementsByTagName(String(v))};
_.Xcu=function(v){return CMM("yt-formatted-string","paper-input-input",v)};
jj=function(v,e,d,E){v=E||v;return(e=e&&e!="*"?String(e).toUpperCase():"")||d?v.querySelectorAll(e+(d?"."+d:"")):v.getElementsByTagName("*")};
CMM=function(v,e,d){var E=document,T=v&&v!="*"?String(v).toUpperCase():"";return T||e?(d||E).querySelector(T+(e?"."+e:"")):jj(E,v,e,d)[0]||null};
l0J=function(v,e){_.f0.forEach(e,function(d,E){E=="style"?v.style.cssText=d:E=="class"?v.className=d:E=="for"?v.htmlFor=d:zuM.hasOwnProperty(E)?v.setAttribute(zuM[E],d):_.aU(E,"aria-")||_.aU(E,"data-")?v.setAttribute(E,d):v[E]=d})};
zuM={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"};_.jy=function(v){v=(v||window).document;v=v.compatMode=="CSS1Compat"?v.documentElement:v.body;return new _.$x(v.clientWidth,v.clientHeight)};
_.H7B=function(v){var e=_.sS(v);v=v.defaultView;return new _.Pn(v.pageXOffset||e.scrollLeft,v.pageYOffset||e.scrollTop)};
_.sS=function(v){return v.scrollingElement?v.scrollingElement:_.WM||v.compatMode!="CSS1Compat"?v.body||v.documentElement:v.documentElement};
xx=function(v){return v?v.defaultView:window};
_.NF=function(v,e,d){return Ae7(document,arguments)};
Ae7=function(v,e){var d=e[1],E=Z7A(v,String(e[0]));d&&(typeof d==="string"?E.className=d:Array.isArray(d)?E.className=d.join(" "):l0J(E,d));e.length>2&&ce2(v,E,e,2);return E};
ce2=function(v,e,d,E){function T(b){b&&e.appendChild(typeof b==="string"?v.createTextNode(b):b)}
for(;E<d.length;E++){var S=d[E];if(!_.c3(S)||_.Qj(S)&&S.nodeType>0)T(S);else{a:{if(S&&typeof S.length=="number"){if(_.Qj(S)){var O=typeof S.item=="function"||typeof S.item=="string";break a}if(typeof S==="function"){O=typeof S.item=="function";break a}}O=!1}_.wZ(O?_.Zt(S):S,T)}}};
_.hz=function(v){return Z7A(document,v)};
Z7A=function(v,e){e=String(e);v.contentType==="application/xhtml+xml"&&(e=e.toLowerCase());return v.createElement(e)};
_.k0=function(){return document.createTextNode("\n")};
Lf=function(v){if(v.nodeType!=1)return!1;switch(v.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};
wcE=function(v,e){ce2(_.Bn(v),v,arguments,1)};
_.VE=function(v){for(var e;e=v.firstChild;)v.removeChild(e)};
_.od=function(v,e){e.parentNode&&e.parentNode.insertBefore(v,e)};
_.JZ=function(v,e){e.parentNode&&e.parentNode.insertBefore(v,e.nextSibling)};
_.KX=function(v){return v&&v.parentNode?v.parentNode.removeChild(v):null};
_.Fg2=function(v,e){var d=e.parentNode;d&&d.replaceChild(v,e)};
_.QE6=function(v){var e,d=v.parentNode;if(d&&d.nodeType!=11)if(v.removeNode)v.removeNode(!1);else{for(;e=v.firstChild;)d.insertBefore(e,v);_.KX(v)}};
_.G5=function(v){return v.children!=void 0?v.children:Array.prototype.filter.call(v.childNodes,function(e){return e.nodeType==1})};
_.uJn=function(v){return v.nextElementSibling!==void 0?v.nextElementSibling:_.gII(v.nextSibling,!0)};
_.gII=function(v,e){for(;v&&v.nodeType!=1;)v=e?v.nextSibling:v.previousSibling;return v};
_.DF=function(v){return _.Qj(v)&&v.nodeType==1};
_.zZ=function(v,e){if(!v||!e)return!1;if(v.contains&&e.nodeType==1)return v==e||v.contains(e);if(typeof v.compareDocumentPosition!="undefined")return v==e||!!(v.compareDocumentPosition(e)&16);for(;e&&v!=e;)e=e.parentNode;return e==v};
Ui6=function(v,e){if(v==e)return 0;if(v.compareDocumentPosition)return v.compareDocumentPosition(e)&2?1:-1;if("sourceIndex"in v||v.parentNode&&"sourceIndex"in v.parentNode){var d=v.nodeType==1,E=e.nodeType==1;if(d&&E)return v.sourceIndex-e.sourceIndex;var T=v.parentNode,S=e.parentNode;return T==S?nIA(v,e):!d&&_.zZ(T,e)?-1*DiM(v,e):!E&&_.zZ(S,v)?DiM(e,v):(d?v.sourceIndex:T.sourceIndex)-(E?e.sourceIndex:S.sourceIndex)}E=_.Bn(v);d=E.createRange();d.selectNode(v);d.collapse(!0);v=E.createRange();v.selectNode(e);
v.collapse(!0);return d.compareBoundaryPoints(_.TO.Range.START_TO_END,v)};
DiM=function(v,e){var d=v.parentNode;if(d==e)return-1;for(;e.parentNode!=d;)e=e.parentNode;return nIA(e,v)};
nIA=function(v,e){for(;e=e.previousSibling;)if(e==v)return-1;return 1};
pcn=function(v){var e,d=arguments.length;if(!d)return null;if(d==1)return arguments[0];var E=[],T=Infinity;for(e=0;e<d;e++){for(var S=[],O=arguments[e];O;)S.unshift(O),O=O.parentNode;E.push(S);T=Math.min(T,S.length)}S=null;for(e=0;e<T;e++){O=E[0][e];for(var b=1;b<d;b++)if(O!=E[b][e])return S;S=O}return S};
_.Bn=function(v){return v.nodeType==9?v:v.ownerDocument||v.document};
vsB=function(v){return v.contentDocument||v.contentWindow.document};
_.MF=function(v,e){if("textContent"in v)v.textContent=e;else if(v.nodeType==3)v.data=String(e);else if(v.firstChild&&v.firstChild.nodeType==3){for(;v.lastChild!=v.firstChild;)v.removeChild(v.lastChild);v.firstChild.data=String(e)}else _.VE(v),v.appendChild(_.Bn(v).createTextNode(String(e)))};
e_6={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};d1I={IMG:" ",BR:"\n"};H1U=function(v){var e;v.tagName=="A"&&v.hasAttribute("href")||v.tagName=="INPUT"||v.tagName=="TEXTAREA"||v.tagName=="SELECT"||v.tagName=="BUTTON"?e=!v.disabled&&(!v.hasAttribute("tabindex")||Esc(v)):e=v.hasAttribute("tabindex")&&Esc(v);return e};
Esc=function(v){v=v.tabIndex;return typeof v==="number"&&v>=0&&v<32768};
SiJ=function(v){var e=[];T96(v,e,!0);v=e.join("");v=v.replace(/ \xAD /g," ").replace(/\xAD/g,"");v=v.replace(/\u200B/g,"");v=v.replace(/ +/g," ");v!=" "&&(v=v.replace(/^\s*/,""));return v};
Wfg=function(v){var e=[];T96(v,e,!1);return e.join("")};
T96=function(v,e,d){if(!(v.nodeName in e_6))if(v.nodeType==3)d?e.push(String(v.nodeValue).replace(/(\r\n|\r|\n)/g,"")):e.push(v.nodeValue);else if(v.nodeName in d1I)e.push(d1I[v.nodeName]);else for(v=v.firstChild;v;)T96(v,e,d),v=v.nextSibling};
_.awg=function(v,e,d){if(!e&&!d)return null;var E=e?String(e).toUpperCase():null;return _.Xv(v,function(T){return(!E||T.nodeName==E)&&(!d||typeof T.className==="string"&&_.lL(T.className.split(/\s+/),d))},!0)};
_.Xv=function(v,e,d){v&&!d&&(v=v.parentNode);for(d=0;v;){if(e(v))return v;v=v.parentNode;d++}return null};
$0=function(v){this.JSC$9317_document_=v||_.TO.document||document};
_.W=$0.prototype;_.W.getElement=function(v){return _.Tn(this.JSC$9317_document_,v)};
_.W.$=$0.prototype.getElement;_.W.getElementsByTagName=function(v,e){return(e||this.JSC$9317_document_).getElementsByTagName(String(v))};
_.W.getElementsByTagNameAndClass=function(v,e,d){return jj(this.JSC$9317_document_,v,e,d)};
_.W.$$=$0.prototype.getElementsByTagNameAndClass;_.W.setProperties=l0J;_.W.JSC$9319_createDom=function(v,e,d){return Ae7(this.JSC$9317_document_,arguments)};
_.W.createElement=function(v){return Z7A(this.JSC$9317_document_,v)};
_.W.createTextNode=function(v){return this.JSC$9317_document_.createTextNode(String(v))};
_.W.getWindow=function(){return this.JSC$9317_document_.defaultView};
var sa=function(v){return _.H7B(v.JSC$9317_document_)};
_.W=$0.prototype;_.W.appendChild=function(v,e){v.appendChild(e)};
_.W.append=wcE;_.W.canHaveChildren=Lf;_.W.removeNode=_.KX;_.W.getChildren=_.G5;_.W.contains=_.zZ;_.W=I2.prototype;_.W.getWidth=function(){return this.right-this.left};
_.W.getHeight=function(){return this.bottom-this.top};
_.W.clone=function(){return new I2(this.top,this.right,this.bottom,this.left)};
_.W.contains=function(v){return this&&v?v instanceof I2?v.left>=this.left&&v.right<=this.right&&v.top>=this.top&&v.bottom<=this.bottom:v.x>=this.left&&v.x<=this.right&&v.y>=this.top&&v.y<=this.bottom:!1};
_.W.expand=function(v,e,d,E){_.Qj(v)?(this.top-=v.top,this.right+=v.right,this.bottom+=v.bottom,this.left-=v.left):(this.top-=v,this.right+=Number(e),this.bottom+=Number(d),this.left-=Number(E));return this};
_.W.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};
_.W.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};
_.W.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};
_.W.translate=function(v,e){v instanceof _.Pn?(this.left+=v.x,this.right+=v.x,this.top+=v.y,this.bottom+=v.y):(this.left+=v,this.right+=v,typeof e==="number"&&(this.top+=e,this.bottom+=e));return this};
_.W.scale=function(v,e){e=typeof e==="number"?e:v;this.left*=v;this.right*=v;this.top*=e;this.bottom*=e;return this};var tZ=function(v,e,d,E){this.left=v;this.top=e;this.width=d;this.height=E};
_.W=tZ.prototype;_.W.clone=function(){return new tZ(this.left,this.top,this.width,this.height)};
_.W.boundingRect=function(v){var e=Math.max(this.left+this.width,v.left+v.width),d=Math.max(this.top+this.height,v.top+v.height);this.left=Math.min(this.left,v.left);this.top=Math.min(this.top,v.top);this.width=e-this.left;this.height=d-this.top};
_.W.contains=function(v){return v instanceof _.Pn?v.x>=this.left&&v.x<=this.left+this.width&&v.y>=this.top&&v.y<=this.top+this.height:this.left<=v.left&&this.left+this.width>=v.left+v.width&&this.top<=v.top&&this.top+this.height>=v.top+v.height};
_.W.distance=function(v){var e=v.x<this.left?this.left-v.x:Math.max(v.x-(this.left+this.width),0);v=v.y<this.top?this.top-v.y:Math.max(v.y-(this.top+this.height),0);return Math.sqrt(e*e+v*v)};
_.W.getSize=function(){return new _.$x(this.width,this.height)};
_.W.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};
_.W.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};
_.W.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};
_.W.translate=function(v,e){v instanceof _.Pn?(this.left+=v.x,this.top+=v.y):(this.left+=v,typeof e==="number"&&(this.top+=e));return this};
_.W.scale=function(v,e){e=typeof e==="number"?e:v;this.left*=v;this.width*=v;this.top*=e;this.height*=e;return this};var O9B,PB,ODL,Rd,m1A,YiB,yi7,Zf0,qiM,h_M;_.ff=function(v,e,d){if(typeof e==="string")(e=_.i9M(v,e))&&(v.style[e]=d);else for(var E in e){d=v;var T=e[E],S=_.i9M(d,E);S&&(d.style[S]=T)}};
O9B={};_.i9M=function(v,e){var d=O9B[e];if(!d){var E=_.kq(e);d=E;v.style[E]===void 0&&(E=(_.WM?"Webkit":_.S1?"Moz":null)+R$E(E),v.style[E]!==void 0&&(d=E));O9B[e]=d}return d};
_.bw=function(v,e){var d=_.Bn(v);return d.defaultView&&d.defaultView.getComputedStyle&&(v=d.defaultView.getComputedStyle(v,null))?v[e]||v.getPropertyValue(e)||"":""};
_.X$=function(v,e){return _.bw(v,e)||(v.currentStyle?v.currentStyle[e]:null)||v.style&&v.style[e]};
_.IwM=function(v){return _.X$(v,"position")};
PB=function(v,e,d){if(e instanceof _.Pn){var E=e.x;e=e.y}else E=e,e=d;v.style.left=Rd(E,!1);v.style.top=Rd(e,!1)};
ODL=function(v){try{return v.getBoundingClientRect()}catch(e){return{left:0,top:0,right:0,bottom:0}}};
_.C0=function(v){var e=_.Bn(v),d=new _.Pn(0,0);if(v==(e?_.Bn(e):document).documentElement)return d;v=ODL(v);e=sa(NR(e));d.x=v.left+e.x;d.y=v.top+e.y;return d};
_.b9I=function(v,e,d){if(e instanceof _.$x)d=e.height,e=e.width;else if(d==void 0)throw Error("oa");v.style.width=Rd(e,!0);v.style.height=Rd(d,!0)};
Rd=function(v,e){typeof v=="number"&&(v=(e?Math.round(v):v)+"px");return v};
m1A=function(v){return YiB(v)};
YiB=function(v){var e=yi7;if(_.X$(v,"display")!="none")return e(v);var d=v.style,E=d.display,T=d.visibility,S=d.position;d.visibility="hidden";d.position="absolute";d.display="inline";v=e(v);d.display=E;d.position=S;d.visibility=T;return v};
yi7=function(v){var e=v.offsetWidth,d=v.offsetHeight,E=_.WM&&!e&&!d;return(e===void 0||E)&&v.getBoundingClientRect?(v=ODL(v),new _.$x(v.right-v.left,v.bottom-v.top)):new _.$x(e,d)};
Zf0=function(v){var e=_.C0(v);v=YiB(v);return new tZ(e.x,e.y,v.width,v.height)};
qiM=function(v,e){v=v.style;"opacity"in v?v.opacity=e:"MozOpacity"in v?v.MozOpacity=e:"filter"in v&&(v.filter=e===""?"":"alpha(opacity="+Number(e)*100+")")};
_.wf=function(v,e){v.style.display=e?"":"none"};
_.ri2=function(v){return"rtl"==_.X$(v,"direction")};
h_M=function(v){var e=_.bw(v,"marginLeft"),d=_.bw(v,"marginRight"),E=_.bw(v,"marginTop");v=_.bw(v,"marginBottom");return new I2(parseFloat(E),parseFloat(d),parseFloat(v),parseFloat(e))};
_.Kfu=function(v){var e=_.bw(v,"borderLeftWidth"),d=_.bw(v,"borderRightWidth"),E=_.bw(v,"borderTopWidth");v=_.bw(v,"borderBottomWidth");return new I2(parseFloat(E),parseFloat(d),parseFloat(v),parseFloat(e))};var x0=function(v){this.context=v};
x0.prototype.isSupported=function(v){return(v==null?0:v.attributionEnabled)||(v==null?void 0:v.beaconMethod)==="POST"||(v==null?0:v.customHeaders)||(v==null?0:v.customBody)||(v==null?0:v.keepAlive)?!1:!b_(this.context)};
x0.prototype.ping=function(){var v=this;return ka(_.Xa.apply(0,arguments).map(function(e){try{var d=v.context.global,E=!1;E=E===void 0?!1:E;d.google_image_requests||(d.google_image_requests=[]);var T=Ru7("IMG",d.document);E&&(T.attributionSrc="");T.src=e;d.google_image_requests.push(T);return!0}catch(S){return!1}}).every(function(e){return e}))};
x0.prototype.pingWithHeadersAndBody=function(v,e,d){this.ping.apply(this,_.t7(_.Xa.apply(3,arguments)))};var $1E=function(v){this.context=v};
$1E.prototype.isSupported=function(v){return jCJ&&!b_(this.context)&&zWt(this.context)!==void 0&&!(v==null?0:v.attributionEnabled)&&(v==null?void 0:v.beaconMethod)!=="POST"&&!(v==null?0:v.customHeaders)&&!(v==null?0:v.customBody)};
$1E.prototype.makeBeacon=function(v,e){if(!this.isSupported(e))throw new ad;return new BB(this.context,v)};
var jCJ=!1,BB=function(v,e){this.context=v;this.JSC$9338_urlWithoutToken=e;v=zWt(this.context);if(v===void 0)throw Error();this.wrappedBeacon=new v(sCJ(this),{})},sCJ=function(v){v=v.JSC$9338_urlWithoutToken;
return(v.slice(-1)[0]==="&"?v:v+"&")+"pbapi=1"};
BB.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
BB.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
BB.prototype.setHeader=function(){};
_.vP.Object.defineProperties(BB.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9338_urlWithoutToken},
set:function(v){this.JSC$9338_urlWithoutToken=v;this.wrappedBeacon.setURL(sCJ(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(v){if(v!=="GET")throw new ad;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var N9E=function(v){this.context=v};
N9E.prototype.isSupported=function(v){if((v==null?0:v.attributionEnabled)||(v==null?void 0:v.beaconMethod)==="GET"||(v==null?0:v.customHeaders)||(v==null?0:v.customBody)||(v==null?0:v.keepAlive))return!1;var e;return!b_(this.context)&&((e=this.context.global.navigator)==null?void 0:e.sendBeacon)!==void 0};
N9E.prototype.ping=function(){var v=this;return ka(_.Xa.apply(0,arguments).map(function(e){var d;return(d=v.context.global.navigator)==null?void 0:d.sendBeacon(e)}).every(function(e){return e}))};
N9E.prototype.pingWithHeadersAndBody=function(v,e,d){this.ping.apply(this,_.t7(_.Xa.apply(3,arguments)))};var hc=function(v){this.value=v},ue=function(v,e){return ka(v.value).pipe(qR(e))},DP=new hc(!1),ssU=new hc(!0);var z8=function(v){this.value=v;this.releasedSubject=new Yx};
z8.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.vP.Object.defineProperties(z8.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9351_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var UR3=["FRAME","IMG","IFRAME"],F10=/^[01](px)?$/,DR3=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},nx7=function(){var v=new DR3;
v.crossDomainLoadedDefault=!0;v.pendingImagesBlockLoad=!0;return v};var kQ6=function(v,e){var d=Sl$(v);if(d)if(d.onCreativeLoad)d.onCreativeLoad(e);else{var E=e?[e]:[],T=function(S){for(var O=0;O<E.length;++O)try{E[O](1,S)}catch(b){}E={push:function(b){b(1,S)}}};
d.onCreativeLoad=function(S){E.push(S)};
d.setAttribute("data-creative-load-listener","");d.addEventListener("creativeLoad",function(S){T(S.detail)});
_.TO.addEventListener("message",function(S){TfU(d,T,S)})}};var Cf=function(v,e){var d=this;this.global=v;this.parentContext=e;this.JSC$9362_onVisibilityChange=this.document?CF(ka(!0),xa(this.document,"visibilitychange")).pipe(Hu(this.parentContext.performanceMonitor,748),Mq(function(){return d.getVisibilityState()}),Qt()):ka("visible");
this.document?xa(this.document,"DOMContentLoaded").pipe(Hu(this.parentContext.performanceMonitor,739),Fs(1)):ka(cc3("DOMContentLoaded"))},js3=function(v){return v.document!==null&&v.document.visibilityState!==void 0};
Cf.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Cf.prototype.querySelector=function(v){return this.document?this.document.querySelector(v):null};
Cf.prototype.querySelectorAll=function(v){return this.document?_.Zt(this.document.querySelectorAll(v)):[]};
Cf.prototype.elementFromPoint=function(v,e){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;v=this.document.elementFromPoint(v,e);return v===null?null:new z8(v)};
var O4U=function(v,e,d){d=d===void 0?!1:d;if(e.ref===void 0||!v.document)return ka(e).pipe(Hu(v.parentContext.performanceMonitor,749));var E=new D2(1),T=function(){E.next(e)};
d||kQ6(e.ref,T);pnL(e.ref,T);return E.pipe(Hu(v.parentContext.performanceMonitor,749),Fs(1))};
_.vP.Object.defineProperties(Cf.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return k87(this.global,"document")?this.global.document||null:null}}});var Wi3=_.Z9(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),a4j=_.Z9(["./reach_worklet.js"]),iX0=_.Z9(["./reach_worklet.js"]),LfM=_.Z9(["./reach_worklet.html"]),VsE=_.Z9(["./reach_worklet.js"]),ose=_.Z9(["./reach_worklet.js"]);_.ie(LfM);_.ie(VsE);_.ie(ose);var ZP={left:0,top:0,width:0,height:0};var Jic,GQ2,MsE,tsu,UW,R_u,PSI,x1A,B2j,CB0,XO2,z_7;Jic=function(v,e,d,E,T,S,O){var b="";v&&(b+=v+":");d&&(b+="//",e&&(b+=e+"@"),b+=d,E&&(b+=":"+E));T&&(b+=T);S&&(b+="?"+S);O&&(b+="#"+O);return b};
GQ2=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.n4=function(v){return v.match(GQ2)};
_.$5=function(v,e){return v?e?decodeURI(v):decodeURIComponent(v):v};
MsE=function(v){v=_.n4(v)[1]||null;!v&&_.TO.self&&_.TO.self.location&&(v=_.TO.self.location.protocol.slice(0,-1));return v?v.toLowerCase():""};
_.DV=function(v){return _.$5(_.n4(v)[3]||null,!0)};
_.mq=function(v){return _.$5(_.n4(v)[5]||null,!0)};
_.Jq3=function(v){var e=v.indexOf("#");return e<0?null:v.slice(e+1)};
tsu=function(v){v=_.n4(v);return Jic(v[1],v[2],v[3],v[4])};
_.fwB=function(v){v=_.n4(v);return Jic(v[1],null,v[3],v[4])};
_.g3=function(v){v=_.n4(v);return Jic(null,null,null,null,v[5],v[6],v[7])};
_.dV=function(v){var e=v.indexOf("#");return e<0?v:v.slice(0,e)};
UW=function(v,e){v=_.n4(v);e=_.n4(e);return v[3]==e[3]&&v[1]==e[1]&&v[4]==e[4]};
R_u=function(v,e){if(v){v=v.split("&");for(var d=0;d<v.length;d++){var E=v[d].indexOf("="),T=null;if(E>=0){var S=v[d].substring(0,E);T=v[d].substring(E+1)}else S=v[d];e(S,T?vi(T):"")}}};
PSI=function(v){var e=v.indexOf("#");e<0&&(e=v.length);var d=v.indexOf("?");if(d<0||d>e){d=e;var E=""}else E=v.substring(d+1,e);return[v.slice(0,d),E,v.slice(e)]};
x1A=function(v,e){return e?v?v+"&"+e:e:v};
_.B92=function(v,e){if(!e)return v;v=PSI(v);v[1]=x1A(v[1],e);return v[0]+(v[1]?"?"+v[1]:"")+v[2]};
_.CSB=function(v,e,d){if(Array.isArray(e))for(var E=0;E<e.length;E++)_.CSB(v,String(e[E]),d);else e!=null&&d.push(v+(e===""?"":"="+_.cb(e)))};
_.q_=function(v){var e=[],d;for(d in v)_.CSB(d,v[d],e);return e.join("&")};
_.ug=function(v,e){e=_.q_(e);return _.B92(v,e)};
_.Xr=function(v,e,d){d=d!=null?"="+_.cb(d):"";return _.B92(v,e+d)};
B2j=function(v,e,d,E){for(var T=d.length;(e=v.indexOf(d,e))>=0&&e<E;){var S=v.charCodeAt(e-1);if(S==38||S==63)if(S=v.charCodeAt(e+T),!S||S==61||S==38||S==35)return e;e+=T+1}return-1};
CB0=/#|$/;_.lZ=function(v,e){var d=v.search(CB0),E=B2j(v,0,e,d);if(E<0)return null;var T=v.indexOf("&",E);if(T<0||T>d)T=d;E+=e.length+1;return vi(v.slice(E,T!==-1?T:0))};
XO2=/[?&]($|#)/;_.TE=function(v,e){for(var d=v.search(CB0),E=0,T,S=[];(T=B2j(v,E,e,d))>=0;)S.push(v.substring(E,T)),E=Math.min(v.indexOf("&",T)+1||d,d);S.push(v.slice(E));return S.join("").replace(XO2,"$1")};
_.zN=function(v,e,d){return _.Xr(_.TE(v,e),e,d)};
z_7=function(v){var e=PSI(window.location.href),d=e[1],E=[];d&&d.split("&").forEach(function(T){var S=T.indexOf("=");S=S>=0?T.slice(0,S):T;v.hasOwnProperty(S)||E.push(T)});
e[1]=x1A(E.join("&"),_.q_(v));return e[0]+(e[1]?"?"+e[1]:"")+e[2]};var GZL=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(GZL,_.du);GZL.prototype.getVersion=function(){return _.Vm(this,2)};var JzU=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(JzU,_.du);var suU=function(v,e){return _.L0(v,2,e)},ohO=function(v,e){return _.L0(v,3,e)};
JzU.prototype.getModel=function(){return _.Vm(this,4)};
var kZj=function(v,e){return _.L0(v,4,e)},ju0=function(v,e){return _.L0(v,5,e)},Vt7=function(v,e){return _.L0(v,9,e)},$uM=function(v,e){return $u(v,10,e)},Kij=function(v,e){return _.iZ(v,11,e)},Nfs=function(v,e){return _.L0(v,1,e)},LiW=function(v,e){return _.iZ(v,7,e)};var rz0="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var n0=function(v,e,d,E){v=v===void 0?window:v;e=e===void 0?null:e;d=d===void 0?new pd0:d;E=E===void 0?OXS():E;gS6.call(this);var T=this;this.global=v;this.debugChannel=e;this.performanceMonitor=d;this.onPageHide=naj(function(){return xa(T.global,"pagehide")}).pipe(Hu(this.performanceMonitor,941));
this.onLoad=naj(function(){return xa(T.global,"load")}).pipe(Hu(this.performanceMonitor,738),Fs(1));
this.onResize=naj(function(){return xa(T.global,"resize")}).pipe(Hu(this.performanceMonitor,741));
this.onMessage=naj(function(){return xa(T.global,"message")}).pipe(Hu(this.performanceMonitor,740));
this.document=new Cf(this.global,this);this.timeProvider=new vI2(new diA(this.intrinsicFunctionNamespace,this.performanceMonitor),new euI(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new D7i(new Tni(this),new $1E(this),new i_(this,new a06(this)),new i_(this,new N9E(this)),new i_(this,new x0(this)))};
_.V(n0,gS6);var b_=function(v){var e=v.global;return!!v.global.HTMLFencedFrameElement&&!!e.fence&&typeof e.fence.reportEvent==="function"};
_.W=n0.prototype;_.W.reportFencedFrameEvent=function(v){b_(this)&&this.global.fence.reportEvent(v)};
_.W.getOnBackgrounded=function(){return this.onPageHide.pipe(Hu(this.performanceMonitor,942),qR(this.queue),Mq(function(){}))};
_.W.postMessage=function(v,e,d){d=d===void 0?[]:d;this.global.postMessage(v,e,d)};
_.W.getWidth=function(){return L1O(this.global)?this.global.width:0};
_.W.getHeight=function(){return L1O(this.global)?this.global.height:0};
_.W.isMobile=function(){return O70()||I0A()};
var le=function(v,e){try{var d=muU(e,v.global,v.isMobile());return{left:d.left,top:d.top,width:d.getWidth(),height:d.getHeight()}}catch(E){return ZP}};
n0.prototype.validate=function(){var v=this.beaconFactory.isSupported()||b_(this);return this.global&&this.timeProvider.available()&&v};
var H0s=function(v){return(v=tt0(v.global))?m7(v):null};
_.vP.Object.defineProperties(n0.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(v){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!L1O(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}}});_.lwc=!_.Tw&&!_.It7();var NZs=function(v){return v};var LEH=function(v){return v.pipe(Xs(function(e){var d=e.endOfSessionReason;var E;return((E=e.viewable)==null?void 0:E.extrapolateToNow().value)||d!=void 0}),Fs(1),cu())};var XwW=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},zHs=function(v){var e=v.sequenceNumber.toString(10).padStart(2,"0");
e=""+v.startTime+e;v.sequenceNumber<99&&v.sequenceNumber++;return e};var $9j=i9(dr(function(v){return v.endOfSessionReason===void 0}),Mq(function(v){return Object.assign({},v,{timestamps:o2(v)})}),Xs(function(v){var e=v.viewable;
v=v.timestamps;var d;return(d=e==null?void 0:e.extrapolateUsingTimestampMap(v).value)!=null?d:!1}),Mq(function(v){var e=v.beaconFactory;
var d=v.timestampedExposureHistory;var E=v.timeOnScreen;var T=v.binaryContext;v=v.timestamps;if(e===void 0||d===void 0||E===void 0||T===void 0)return!1;if(E.extrapolateUsingTimestampMap(v).value.every(function(S){return S>=0}))return!0;
d=d.map(function(S){return S.timestamp+":"+S.value}).join(",");
E=l4j({bin:T,tos:E},v);e.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+E+("&eh="+d)).sendNow();return!0}),dr(function(v){return!v}),cu());var Az0=function(v){return{id:v.pingId,mcvt:v.maxConsecutiveViewTime,p:v.creativePosition,asp:v.adSpeedPosition,tm:v.totalMeasurementTime,tu:v.totalUnviewedTime,mtos:v.maxTimeOnScreen,tos:v.timeOnScreen,v:v.binaryVersion,bin:v.binaryContext,avms:v.measurementStrategy,bs:v.browserSize,mc:v.maximumExposure,"if":v.crossDomainIframeState,vu:v.delayedImpressionJsState,app:v.inApp,mse:v.mraidError,mtop:v.mraidSituation,itpl:v.injectedTemplateId,adk:v.adKey,exk:v.awbidKey,rs:v.requestSource,la:v.isLargeAd,
cr:v.isContentRecommendationAd,uach:v.userAgentClientHints,vs:v.viewState,r:v.reasonCode,pay:v.hasCpmavUrl,co:v.clientPingOrderCounter,rst:v.adRenderStartTime,rpt:v.adRenderPeriodTime,isd:v.initialScrollDepth,lsd:v.loadedScrollDepth,context:v.errorContext,msg:v.errorMessage,stack:v.errorStack,name:v.errorName,ec:v.hasElementChanged,sfr:v.strategyFailureReasons,met:v.creativeSearchResult,wmsd:v.webMeasurementStartDiagnostic,pv:v.pageVisible,epv:v.eosPageVisible,pbe:v.inStatefulBeaconExperiment,fle:v.inFetchLaterBeaconExperiment,
vae:v.inViewableAttributionExperiment,spb:v.supportsPendingBeacon,sfl:v.supportsFetchLater,ffslot:v.isFencedFrameSlotTurtlex,reach:v.sharedStorageReachMode,io2:v.v2VisibilityBitVector,rxdbg:v.rxDebugger,omida:v.omidAppId,omidp:v.omidPartner,omidpv:v.omidPartnerVersion,omidor:v.omidOcclusionReasons,omidv:v.omidVersion,omids:v.omidSessionType,omidam:v.omidAccessMode,omidct:v.omidCreativeType,omidia:v.omidInApp,omiddc:v.omidDeviceCategory,omidlat:v.omidLastActivity,omiddit:v.omidDeviceIdleTime,qid:v.errorEscapedQueryId}};var kr3=function(v){var e=[];return v.pipe(Mq(function(d){var E=d.beaconFactory,T=d.fetchBeaconFactory,S=d.timeOnScreen,O=d.timeOnScreenUrlPrefixes,b=d.payloadMapper,Y=d.timeOnScreenPingId,q=d.timeOnScreenReason,r=d.urlSerializer,h=d.viewable,K=d.hasImpressionFired,k=d.inStatefulBeaconExperiment,J=d.supportsPendingBeacon,R=d.supportsFetchLater,B=d.turtlexReportEventData;if(!d.geometryMeasurable||!K||d.maxTimeOnScreen===void 0||S===void 0||O===void 0||b===void 0||Y===void 0||r===void 0||E===void 0)return!1;
if(d.isTurtlex){if(q===void 0)return!1;O=d.reportFencedFrameEvent;if(!O)return!1;O({eventType:"active-view-time-on-screen",eventData:B!=null?B:"",destination:["buyer"]});return!0}if(!(k||R||q))return!1;B=o2(d);var X;h=(X=h==null?void 0:h.extrapolateUsingTimestampMap(B).value)!=null?X:!1;X=r(Object.assign({},d,{pingId:Y,viewState:h?4:3,reasonCode:q!=null?q:"u",payloadMapper:b,urlPrefixes:O}),B);if(k){for(;e.length>O.length;)d=void 0,(d=e.shift())==null||d.deactivate();X.forEach(function(U,F){F>=e.length?
e.push(E.makeBeacon(U)):e[F].url=U});
return J&&T&&q!==void 0?(X.forEach(function(U){T.makeBeacon(U).sendNow()}),!0):q!==void 0}if(J&&T&&q!==void 0)return X.forEach(function(U){T.makeBeacon(U).sendNow()}),!0;
if(R&&T){for(;e.length>O.length;)J=void 0,(J=e.shift())==null||J.deactivate();var Z=r(Object.assign({},d,{pingId:Y,viewState:h?4:3,reasonCode:q!=null?q:"u",payloadMapper:b,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),B)[0];X.forEach(function(U,F){F>=e.length?e.push(E.makeBeacon(Z,{endOfSession:!0})):e[F].url=Z});
return q!==void 0?(X.forEach(function(U){T.makeBeacon(U).sendNow()}),!0):q!==void 0}return q!==void 0?(X.forEach(function(U){E.makeBeacon(U).sendNow()}),!0):!1}),dr(function(d){return!d}),cu())};var VIj=i9(Xs(function(v){return v.immediateUrlPrefixes!==void 0&&v.payloadMapper!==void 0&&v.urlSerializer!==void 0&&v.inferredPingId!==void 0&&v.beaconFactory!==void 0}),Xs(function(v){return nhW(v)!==null}),gh3(function(v){return v.activeViewUnmeasurableEvent},function(v){return v.emit}),Mq(function(v){if(v.isTurtlex){var e=v.reportFencedFrameEvent;
if(e){var d;e({eventType:"active-view-unmeasurable",eventData:(d=v.turtlexReportEventData)!=null?d:"",destination:["buyer"]})}}else{d=void 0;var E=nhW(v);if(E==="x"){var T,S=(T=v.geometricMeasurementErrors)!=null?T:v.contextValidationErrors;S&&(e=S.stack,d=S.message)}v.urlSerializer(Object.assign({},v,{urlPrefixes:v.immediateUrlPrefixes,payloadMapper:v.payloadMapper,pingId:v.inferredPingId,viewState:2,reasonCode:E,errorMessage:d,errorStack:e}),o2(v)).forEach(function(O){v.beaconFactory.makeBeacon(O).sendNow()})}}),
Fs(1),cu());var DuM=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var KEM=i9(Xs(function(v){return v.payloadMapper!==void 0&&v.immediateUrlPrefixes!==void 0&&v.urlSerializer!==void 0&&v.inferredPingId!==void 0&&v.beaconFactory!==void 0}),Mq(function(v){return Object.assign({},v,{timestamps:o2(v)})}),Xs(function(v){var e=v.viewable;
var d=v.hasImpressionFired;v=v.timestamps;var E;return!!d&&((E=e==null?void 0:e.extrapolateUsingTimestampMap(v).value)!=null?E:!1)}),gh3(function(v){return v.activeViewViewableEvent},function(v){return v.emit}),Mq(function(v){var e=v.beaconFactory,d=v.turtlexReportEventData;
if(v.isTurtlex){var E=v.reportFencedFrameEvent;if(!E)return!1;E({eventType:"active-view-viewable",eventData:d!=null?d:"",destination:["buyer"]});return!0}d=v.urlSerializer(Object.assign({},v,{urlPrefixes:v.immediateUrlPrefixes,payloadMapper:v.payloadMapper,pingId:v.inferredPingId,viewState:4,reasonCode:"v"}),v.timestamps);(E=v.cpmavUrls)&&E.length>0&&v.viewUrlSerializer&&v.viewUrlSerializer(E,v).forEach(function(T){e.makeBeacon(T).sendNow()});
(E=v.viewableRelayUrls)&&E.length>0&&v.viewUrlSerializer&&v.viewUrlSerializer(E,v).forEach(function(T){e.makeBeacon(T).sendNow()});
d.forEach(function(T){e.makeBeacon(T,{attributionEnabled:v.isViewableAttributionEnabled}).sendNow()});
return!0}),dr(function(v){return!v}),cu());var Af0=Mq(function(v){return[v.value.topWindowViewportExternalGeometry.width,v.value.topWindowViewportExternalGeometry.height]});var Hn=function(v,e){this.callback=v;this.options=e;this.intersectionObserverV2=this.intersectionObserverV1=null},kq$=function(v,e){e?v.intersectionObserverV2||(e=Object.assign({},v.options,{delay:100,
trackVisibility:!0}),v.intersectionObserverV2=new IntersectionObserver(v.callback,e)):v.intersectionObserverV1||(v.intersectionObserverV1=new IntersectionObserver(v.callback,v.options))},H9E=function(v,e){v=e?v.intersectionObserverV2:v.intersectionObserverV1;
if(!v)throw new uMc;return v};
Hn.prototype.observe=function(v,e){H9E(this,v).observe(e)};
Hn.prototype.unobserve=function(v,e){H9E(this,v).unobserve(e)};
Hn.prototype.disconnect=function(v){H9E(this,v).disconnect()};
Hn.prototype.takeRecords=function(v){return H9E(this,v).takeRecords()};var bDU={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:ZP,topWindowViewportExternalGeometry:ZP,measurementRequests:new Yx,elementGeometrySourceName:"ns",elementGeometry:ZP,intersectionGeometry:ZP,viewportLocalAppOffset:{x:0,y:0}};var txj=cn(i9(Mq(function(v){var e;return(e=v.exposureOverride)!=null?e:VxO(v)}),Mq(function(v){return isFinite(v)?v:0}))),Xxt=cn(i9(Mq(function(v){var e;
return(e=v.exposureOverride)!=null?e:VxO(v)}),Mq(function(v){return isFinite(v)?v:-1})));var z5=function(v,e){this.a=v;this.b=e;if(v.clock.timeline!==e.clock.timeline)throw Error();};
z5.prototype.equivalentTo=function(v){return v instanceof z5?this.a.equivalentTo(v.a)&&this.b.equivalentTo(v.b):!1};
z5.prototype.extrapolateToTime=function(v){var e=this.a.extrapolateToTime(v).value,d=this.b.extrapolateToTime(v).value;return{timestamp:v,value:[e,d]}};
_.vP.Object.defineProperties(z5.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 v=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),e=this.a.lastMeasurement.timestamp.equals(v)?this.a.lastMeasurement.value:this.a.extrapolateToTime(v).value,d=this.b.lastMeasurement.timestamp.equals(v)?this.b.lastMeasurement.value:this.b.extrapolateToTime(v).value;return{timestamp:v,value:[e,d]}}}});var l_=function(v,e){this.input=v;this.mapFunction=e;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
l_.prototype.equivalentTo=function(v){return v instanceof l_?this.input.equivalentTo(v.input)&&this.mapFunction===v.mapFunction:!1};
l_.prototype.extrapolateToTime=function(v){v=this.input.extrapolateToTime(v);return{timestamp:v.timestamp,value:this.mapFunction(v.value)}};
_.vP.Object.defineProperties(l_.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var HB=function(){};
HB.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
HB.prototype.extrapolateUsingTimestampMap=function(v){var e=this.clock.timeline,d,E=(d=v.get(e))!=null?d:this.clock.now();v.set(e,E);return this.extrapolateToTime(E)};
HB.prototype.map=function(v){return new Ain(this,v)};
HB.prototype.joinWith=function(v){return new Z9g(this,v)};
var Z9g=function(){z5.apply(this,arguments);this.map=HB.prototype.map;this.joinWith=HB.prototype.joinWith;this.extrapolateToNow=HB.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=HB.prototype.extrapolateUsingTimestampMap};
_.V(Z9g,z5);var Ain=function(){l_.apply(this,arguments);this.map=HB.prototype.map;this.joinWith=HB.prototype.joinWith;this.extrapolateToNow=HB.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=HB.prototype.extrapolateUsingTimestampMap};
_.V(Ain,l_);var QN=function(v,e){this.lastMeasurement=e;this.extrapolateToNow=HB.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=HB.prototype.extrapolateUsingTimestampMap;this.map=HB.prototype.map;this.joinWith=HB.prototype.joinWith;this.clock=v};
QN.prototype.equivalentTo=function(v){return v.active};
QN.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.vP.Object.defineProperties(QN.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var HDM=Mq(function(v){if(v.value.viewportGeometrySourceName==="omid"){if(v.value.elementGeometrySourceName==="nio")return"omio";if(v.value.elementGeometrySourceName==="geo")return"omgeo"}return v.value.elementGeometrySourceName==="geo"||v.value.elementGeometrySourceName==="nio"?v.value.viewportGeometrySourceName:v.value.elementGeometrySourceName});var JfO=i9(Xs(function(v){return!isNaN(v)}),pF(function(v,e){return isNaN(v)?e:Math.min(v,e)},NaN),Qt());var fg3=cn(i9(Mq(function(v){return v.intersectionGeometry.width*v.intersectionGeometry.height/(v.exposedViewportLocalGeometry.width*v.exposedViewportLocalGeometry.height)}),Mq(function(v){return isFinite(v)?Math.min(1,v):0})));var lgO=i9(cn(Mq(function(v){v=v.exposureOverride?v.elementGeometry.width*v.elementGeometry.height*v.exposureOverride/(v.topWindowViewportExternalGeometry.width*v.topWindowViewportExternalGeometry.height):v.intersectionGeometry.width*v.intersectionGeometry.height/(v.topWindowViewportExternalGeometry.width*v.topWindowViewportExternalGeometry.height);return isFinite(v)?v:0})));var wx3=function(v,e){var d=this;this.timeProvider=v;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=e.pipe(Qt()).subscribe(function(E){Q_t(d);d.measurementRequestObserver=E})},gGH=function(v,e){Q_t(v);
v.lastMeasurementRequest=v.timeProvider.setTimeout(function(){var d;return void((d=v.measurementRequestObserver)==null?void 0:d.next())},e)},Q_t=function(v){v.lastMeasurementRequest!==null&&v.timeProvider.clearTimeout(v.lastMeasurementRequest);
v.lastMeasurementRequest=null};
wx3.prototype.dispose=function(){Q_t(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var ciA=function(){};var qWW=function(v,e){this.context=v;this.strategies=e};
_.V(qWW,ciA);qWW.prototype.buildGeometrySource=function(v,e){var d=this.strategies.map(function(S){return S.buildGeometrySource(v,e)}),E=px7(d.map(function(S){return S.geometrySource})),T=E.capturedErrors.pipe(wOc());
return{geometrySource:E.chain.pipe(qR(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:T,strategyErrors:E.capturedErrors}].concat(_.t7(d.map(function(S){return S.additionalOutputs}))))}};
var wOc=function(){return pF(function(v,e){e instanceof MR?v.push(e.measurementStrategyFailureReason):v.push(-1);return v},[])};var hZH=function(v,e){this.context=v;this.poller=e};
_.V(hZH,ciA);hZH.prototype.buildGeometrySource=function(v,e){var d=vc0(d9t(this.context,this.poller),YEj(this.context,e.requestSource));return{geometrySource:U4L(v.measurableCreative.pipe(d),e.inApp),additionalOutputs:{}}};var rE0=function(v,e,d){d=d===void 0?KsO(v,e):d;this.context=v;this.intersectionObserverStrategy=d};
_.V(rE0,ciA);rE0.prototype.buildGeometrySource=function(v,e){var d=this.intersectionObserverStrategy(e.useV2);return{geometrySource:U4L(v.measurableCreative.pipe(d,$47(this.context)),e.inApp),additionalOutputs:{}}};var FfE=function(v,e,d){var E=E===void 0?Symbol():E;this.element=v;this.immediateUrls=e;this.timeOnScreenUrls=d;this.symbol=E};var cfU=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),aV$=Object.freeze([1,.75,cfU.exposureThreshold,cfU.largeAdExposureThreshold,0]);var nbL=function(v,e){e=e===void 0?36E5:e;var d=d===void 0?!0:d;this.creatives=new Yx;this.elementsToUnregister=new Yx;this.elementMap=new Map;var E=new n0(window,null);E.beaconFactory=new i_(E,new x0(E));yES(E,this.creatives,this.elementsToUnregister,v,e,d).subscribe()},pS0=function(v,e,d,E){if(!v.elementMap.has(e)){var T=new z8(e);
v.elementMap.set(e,T);v.creatives.next(new FfE(T,d,E))}},UzL=function(v,e){v.elementsToUnregister.next(e);
var d=v.elementMap.get(e);d!==void 0&&(d.release(),v.elementMap.delete(e))};var rgW=function(v){var e=v.url;v=v.uaDataValues;this.JSC$9467_url_=e;this.uaDataValues_=v;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var d=/[?&]([^&=]+)=([^&]*)/g;v=d.exec(e);)this.urlParamValues_[v[1]]=v[2]},h4j=function(v){v=v.uaDataValues_;
if(!v)return"";var e=Ua("uap",v.platform)+Ua("uapv",v.platformVersion)+Ua("uafv",v.uaFullVersion)+Ua("uaa",v.architecture)+Ua("uam",v.model)+Ua("uab",v.bitness);v.fullVersionList&&(e+="&uafvl="+encodeURIComponent(v.fullVersionList.map(function(d){return encodeURIComponent(d.brand)+";"+encodeURIComponent(d.version)}).join("|")));
v.wow64!=null&&(e+="&uaw="+Number(v.wow64));return e.slice(1)};var QCi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(QCi,_.du);QCi.prototype.getId=function(){return _.Vm(this,1)};var AZ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(AZ,_.du);AZ.prototype.getSeconds=function(){return ku(this,1)};
AZ.prototype.setSeconds=function(v){return _.n9(this,1,WO(v),"0")};_.t1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(_.t1,_.du);_.t1.prototype.getSeconds=function(){return ku(this,1)};
_.t1.prototype.setSeconds=function(v){return _.n9(this,1,WO(v),"0")};
_.gsg=function(v){var e=Number(Jn(v,1));v=_.TZ(v,2);return new Date(e*1E3+v/1E6)};var Zi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Zi,_.du);Zi.prototype.getUrl=function(){return _.Vm(this,1)};
Zi.prototype.setUrl=function(v){return _.A1(this,1,v)};
Zi.prototype.getHeight=function(){return _.TZ(this,2)};
Zi.prototype.getWidth=function(){return _.TZ(this,3)};var cB=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(cB,_.du);cB.prototype.getAspectRatio=function(){return Lp(this,1)};
cB.prototype.getDuration=function(){return _.W8(this,AZ,2)};var utI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(utI,_.du);var ns2=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(ns2,_.du);var D17=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(D17,_.du);var U1i=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(U1i,_.du);var pOi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(pOi,_.du);var vme=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(vme,_.du);var eTJ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(eTJ,_.du);var dfI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(dfI,_.du);var EmM=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(EmM,_.du);var wI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(wI,_.du);var Fr=[2,4,5,6,7];var Tu0=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Tu0,_.du);var j1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(j1,_.du);_.W=j1.prototype;_.W.getId=function(){return _.W8(this,QCi,1)};
_.W.getName=function(){return _.Vm(this,2)};
_.W.setDescription=function(v){return _.A1(this,3,v)};
_.W.getUrl=function(){return _.Vm(this,8)};
_.W.setUrl=function(v){return _.A1(this,8,v)};
var QE=function(v){return _.df(v,Zi,10,_.El())};
j1.prototype.getOwner=function(v){var e=_.Ft(this,40,_.q1,3,!0);F0$(e,v);return e[v]};
j1.prototype.getVersion=function(){return ku(this,45)};
var gI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(gI,_.du);_.SJc=[0,HAt,ZAM];_.WVn=[0,HAt,ZAM];var aBg=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(aBg,_.du);var u_=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(u_,_.du);u_.prototype.getStatus=function(){return _.oW(this,1)};
u_.prototype.removeItem=function(v){return Snj(this,2,v)};var iYc=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(iYc,_.du);iYc.prototype.getName=function(){return _.Vm(this,8)};var nf=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(nf,_.du);nf.prototype.getCommand=function(){return _.oW(this,1)};
nf.prototype.getSource=function(){return _.W8(this,iYc,2)};
nf.prototype.setVisible=function(v){return _.xq(this,5,v)};
nf.prototype.removeItem=function(v){return Snj(this,7,v)};var OYB=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(OYB,_.du);OYB.prototype.getCommand=function(){return _.oW(this,1)};
OYB.prototype.removeItem=function(v){return Snj(this,4,v)};
var IBi=_.mV(OYB);var Di=function(v,e,d){d=d===void 0?Error():d;var E=Error.call(this);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=v;e+=":";d instanceof Error?(this.message=e+d.message,this.stack=d.stack||""):(this.message=e+String(d),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.V(Di,Error);_.kh=function(){this.JSC$9525_disposed_=this.JSC$9525_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.kh.prototype.JSC$9525_disposed_=!1;_.kh.prototype.isDisposed=function(){return this.JSC$9525_disposed_};
_.kh.prototype.dispose=function(){this.JSC$9525_disposed_||(this.JSC$9525_disposed_=!0,this.disposeInternal())};
_.kh.prototype[Symbol.dispose]=function(){this.dispose()};
_.Yh=function(v,e){v.addOnDisposeCallback(_.kB(_.p0,e))};
_.kh.prototype.addOnDisposeCallback=function(v,e){this.JSC$9525_disposed_?e!==void 0?v.call(e):v():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),e&&(v=v.bind(e)),this.onDisposeCallbacks_.push(v))};
_.kh.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var US=function(v){_.kh.call(this);this.wpc=v};
_.V(US,_.kh);US.prototype.pyS=function(){return this.wpc.f()};
US.prototype.n7s=function(v){return this.wpc.c(v)};
US.prototype.qN=function(v){return this.wpc.m(tIt(v))};
US.prototype.xdC=function(v){return this.wpc.mws(tIt(v))};
var et=function(v){_.kh.call(this);var e=this;this.vm=v;this.gk7="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.ovS=void 0;this.lsE=this.vm.p;this.mpU=this.odq.bind(this);this.addOnDisposeCallback(function(){return void bYn(e)})};
_.V(et,_.kh);var YJ2=function(v){var e;return _.I(function(d){if(d.nextAddress==1){if(!v.vm.wpc)throw new Di(30,"NWA");return v.wBA?d.return(v.wBA):d.yield(v.vm.wpc(),2)}e=d.yieldResult;v.wBA=new US(e);return d.return(v.wBA)})};
et.prototype.snapshot=function(v){return this.vm.s(Object.assign({},v.vp&&{c:v.vp},v.yYd&&{s:v.yYd},v.eap!==void 0&&{p:v.eap}))};
et.prototype.odq=function(v){this.vm.e(v)};
et.prototype.cgC=function(v,e){return this.vm.c(v,e,!1)};
var bYn=function(v){v.ovS!==void 0&&(v.gk7.forEach(function(e){var d;(d=v.ovS)==null||d.removeEventListener(e,v.mpU)}),v.ovS=void 0)};
et.prototype.r2A=function(){return this.vm.l()};var pf=function(){_.kh.apply(this,arguments);this.a5O=1};
_.V(pf,_.kh);pf.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.a5O++;return this};
pf.prototype.dispose=function(){--this.a5O||_.kh.prototype.dispose.call(this)};var mfg=function(v){this.xRl=v;v.addNewEventMetric("/client_streamz/bg/frs",_.au("mk"))};
mfg.prototype.record=function(v,e){this.xRl.record("/client_streamz/bg/frs",v,e)};
var yrJ=function(v){this.uv7=v;v.addNewEventMetric("/client_streamz/bg/wrl",_.au("mn"),Ww("ac"),Ww("sc"),_.au("rk"),_.au("mk"))};
yrJ.prototype.record=function(v,e,d,E,T,S){this.uv7.record("/client_streamz/bg/wrl",v,e,d,E,T,S)};
var qJI=function(v){this.yVV=v;v.addNewCounter("/client_streamz/bg/ec",_.au("en"),_.au("mk"))};
qJI.prototype.increment=function(v,e){this.yVV.JSC$9778_incrementCounter("/client_streamz/bg/ec",v,e)};
var rrc=function(v){this.po0=v;v.addNewEventMetric("/client_streamz/bg/el",_.au("en"),_.au("mk"))};
rrc.prototype.record=function(v,e,d){this.po0.record("/client_streamz/bg/el",v,e,d)};
var hTg=function(v){this.fL7=v;v.addNewCounter("/client_streamz/bg/cec",Ww("ec"),_.au("mk"))};
hTg.prototype.increment=function(v,e){this.fL7.JSC$9778_incrementCounter("/client_streamz/bg/cec",v,e)};
var KVB=function(v){this.bg0=v;v.addNewCounter("/client_streamz/bg/po/csc",Ww("cs"),_.au("mk"))};
KVB.prototype.increment=function(v,e){this.bg0.JSC$9778_incrementCounter("/client_streamz/bg/po/csc",v,e)};
var $fe=function(v){this.hX4=v;v.addNewCounter("/client_streamz/bg/po/ctav",_.au("av"),_.au("mk"))};
$fe.prototype.increment=function(v,e){this.hX4.JSC$9778_incrementCounter("/client_streamz/bg/po/ctav",v,e)};
var j$M=function(v){this.jBq=v;v.addNewCounter("/client_streamz/bg/po/cwsc",_.au("su"),_.au("mk"))};
j$M.prototype.increment=function(v,e){this.jBq.JSC$9778_incrementCounter("/client_streamz/bg/po/cwsc",v,e)};var SI3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(SI3,_.du);var Tk0=function(v,e){return _.uS(v,3,e,Y6S)};var s$I=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(s$I,_.du);var NuE=[1,2,3];var kDi=[0,NuE,_.grU,cJ3,QyW];var LVJ=[0,_.Zk,[0,XU0,_.zw]];var Vm7=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Vm7,_.du);var omu=[1,2,3];var Jr6=[0,omu,AJs,zps,_.cM,LVJ];var GD2=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(GD2,_.du);var MmE=[0,_.Zk,kDi,Jr6];var tmu=[0,_.An];var fBA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(fBA,_.du);var RTJ=[0,_.An,-1,_.HM];var P6g=[0,_.An,-1,_.l1,_.HM];var xfg=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(xfg,_.du);var BuB=[1,2,3];var C6A=[0,BuB,_.cM,RTJ,_.cM,P6g,_.cM,tmu];var X$I=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(X$I,_.du);X$I.prototype.JSC$9598_serializeBinary=C6W([0,_.An,C6A,uSt,_.Zk,MmE,wU$,FKU]);var zTB=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(zTB,_.du);var Ar2=function(v){var e=new X$I;e=_.L0(e,1,v.JSC$9714_metricName);var d=lBn(v);e=_.uS(e,3,d,_.bS);d=[];for(var E=[],T=_.a(v.cellMap.keys()),S=T.next();!S.done;S=T.next())E.push(S.value.split(","));for(T=0;T<E.length;T++){S=E[T];for(var O=v.cellType,b=v.getCells(S)||[],Y=[],q=0;q<b.length;q++){var r=b[q],h=r&&r.cellValue;r=new Vm7;switch(O){case 3:h=Number(h);Number.isFinite(h)&&qG(r,1,omu,WO(h));break;case 2:qG(r,2,omu,_.cc(Number(h)))}Y.push(r)}O=Y;for(b=0;b<O.length;b++){Y=O[b];q=new GD2;Y=_.hr(q,
2,Y);q=[];r=HYM(v);for(h=0;h<r.length;h++){var K=r[h],k=S[h],J=new s$I;switch(K){case 3:qG(J,1,NuE,yv(String(k)));break;case 2:K=Number(k);Number.isFinite(K)&&qG(J,2,NuE,_.p7(K));break;case 1:qG(J,3,NuE,O7t(k==="true"))}q.push(J)}$u(Y,1,q);d.push(Y)}}$u(e,4,d);return e};var ZYE=function(v){if(!v)return"";if(/^about:(?:blank|srcdoc)$/.test(v))return window.origin||"";v.indexOf("blob:")===0&&(v=v.substring(5));v=v.split("#")[0].split("?")[0];v=v.toLowerCase();v.indexOf("//")==0&&(v=window.location.protocol+v);/^[\w\-]*:\/\//.test(v)||(v=window.location.href);var e=v.substring(v.indexOf("://")+3),d=e.indexOf("/");d!=-1&&(e=e.substring(0,d));d=v.substring(0,v.indexOf("://"));if(!d)throw Error("qa`"+v);if(d!=="http"&&d!=="https"&&d!=="chrome-extension"&&d!=="moz-extension"&&
d!=="file"&&d!=="android-app"&&d!=="chrome-search"&&d!=="chrome-untrusted"&&d!=="chrome"&&d!=="app"&&d!=="devtools")throw Error("ra`"+d);v="";var E=e.indexOf(":");if(E!=-1){var T=e.substring(E+1);e=e.substring(0,E);if(d==="http"&&T!=="80"||d==="https"&&T!=="443")v=":"+T}return d+"://"+e+v};var w$2=function(v,e,d){var E=String(_.TO.location.href);return E&&v&&e?[e,crJ(ZYE(E),v,d||null)].join(" "):null},crJ=function(v,e,d){var E=[],T=[];
if((Array.isArray(d)?2:1)==1)return T=[e,v],_.wZ(E,function(b){T.push(b)}),FVA(T.join(" "));
var S=[],O=[];_.wZ(d,function(b){O.push(b.key);S.push(b.value)});
d=Math.floor((new Date).getTime()/1E3);T=S.length==0?[d,e,v]:[S.join(":"),d,e,v];_.wZ(E,function(b){T.push(b)});
v=FVA(T.join(" "));v=[d,v];O.length==0||v.push(O.join(""));return v.join("_")},FVA=function(v){var e=zZj();
e.update(v);return e.digestString().toLowerCase()};var vJ=function(v){this.JSC$9609_document_=v||{cookie:""}},Q$I;
_.W=vJ.prototype;_.W.isEnabled=function(){if(!_.TO.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};
_.W.set=function(v,e,d){var E=!1;if(typeof d==="object"){var T=d.sameSite;E=d.secure||!1;var S=d.domain||void 0;var O=d.path||void 0;var b=d.maxAge}if(/[;=\s]/.test(v))throw Error("sa`"+v);if(/[;\r\n]/.test(e))throw Error("ta`"+e);b===void 0&&(b=-1);d=S?";domain="+S:"";O=O?";path="+O:"";E=E?";secure":"";b=b<0?"":b==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+b*1E3)).toUTCString();this.JSC$9609_document_.cookie=v+"="+e+d+O+b+E+(T!=null?";samesite="+T:"")};
_.W.get=function(v,e){for(var d=v+"=",E=(this.JSC$9609_document_.cookie||"").split(";"),T=0,S;T<E.length;T++){S=yj(E[T]);if(S.lastIndexOf(d,0)==0)return S.slice(d.length);if(S==v)return""}return e};
_.W.remove=function(v,e,d){var E=this.containsKey(v);this.set(v,"",{maxAge:0,path:e,domain:d});return E};
_.W.getKeys=function(){return Q$I(this).keys};
_.W.getValues=function(){return Q$I(this).values};
_.W.isEmpty=function(){return!this.JSC$9609_document_.cookie};
_.W.getCount=function(){return this.JSC$9609_document_.cookie?(this.JSC$9609_document_.cookie||"").split(";").length:0};
_.W.containsKey=function(v){return this.get(v)!==void 0};
_.W.containsValue=function(v){for(var e=Q$I(this).values,d=0;d<e.length;d++)if(e[d]==v)return!0;return!1};
_.W.clear=function(){for(var v=Q$I(this).keys,e=v.length-1;e>=0;e--)this.remove(v[e])};
Q$I=function(v){v=(v.JSC$9609_document_.cookie||"").split(";");for(var e=[],d=[],E,T,S=0;S<v.length;S++)T=yj(v[S]),E=T.indexOf("="),E==-1?(e.push(""),d.push(T)):(e.push(T.substring(0,E)),d.push(T.substring(E+1)));return{keys:e,values:d}};
_.Kw=new vJ(typeof document=="undefined"?null:document);var YYH,gmI;YYH=function(){var v=_.TO.__SAPISID||_.TO.__APISID||_.TO.__3PSAPISID||_.TO.__1PSAPISID||_.TO.__OVERRIDE_SID;if(v)return!0;typeof document!=="undefined"&&(v=new vJ(document),v=v.get("SAPISID")||v.get("APISID")||v.get("__Secure-3PAPISID")||v.get("__Secure-1PAPISID"));return!!v};
gmI=function(v,e,d,E){(v=_.TO[v])||typeof document==="undefined"||(v=(new vJ(document)).get(e));return v?w$2(v,d,E):null};
_.FIt=function(v){var e=ZYE(_.TO==null?void 0:_.TO.location.href),d=[];if(YYH()){e=e.indexOf("https:")==0||e.indexOf("chrome-extension:")==0||e.indexOf("chrome-untrusted://new-tab-page")==0||e.indexOf("moz-extension:")==0;var E=e?_.TO.__SAPISID:_.TO.__APISID;E||typeof document==="undefined"||(E=new vJ(document),E=E.get(e?"SAPISID":"APISID")||E.get("__Secure-3PAPISID"));(E=E?w$2(E,e?"SAPISIDHASH":"APISIDHASH",v):null)&&d.push(E);e&&((e=gmI("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",v))&&d.push(e),
(v=gmI("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",v))&&d.push(v))}return d.length==0?null:d.join(" ")};var uaA=function(){this.minSize=1024};
uaA.prototype.compress=function(v){var e,d,E,T;return _.I(function(S){switch(S.nextAddress){case 1:return e=new CompressionStream("gzip"),d=(new Response(e.readable)).arrayBuffer(),E=e.writable.getWriter(),S.yield(E.write((new TextEncoder).encode(v)),2);case 2:return S.yield(E.close(),3);case 3:return T=Uint8Array,S.yield(d,4);case 4:return S.return(new T(S.yieldResult))}})};
uaA.prototype.isSupported=function(v){return v<this.minSize?!1:typeof CompressionStream!=="undefined"};var nmJ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(nmJ,_.du);var e9=function(v,e){this.intervalMs=v;this.callback=e;this.enabled=!1;this.nowFn=function(){return _.pO()};
this.lastTimeMs=this.nowFn()};
e9.prototype.setInterval=function(v){this.intervalMs=v;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
e9.prototype.start=function(){var v=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){v.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
e9.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
e9.prototype.tick=function(){var v=this;if(this.enabled){var e=Math.max(this.nowFn()-this.lastTimeMs,0);e<this.intervalMs*.8?this.timer=setTimeout(function(){v.tick()},this.intervalMs-e):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Dfg=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Dfg,_.du);var Ufc=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Ufc,_.du);var p$A=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(p$A,_.du);p$A.prototype.getTransmissionType=function(){return _.oW(this,1)};var Z4L=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Z4L,_.du);Z4L.prototype.getVersion=function(){return _.Vm(this,2)};var d6=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(d6,_.du);var AE7=function(v){$u(cEH,1,v)};
d6.prototype.getModel=function(){return _.Vm(this,6)};
var vaI=_.mV(d6);var eUA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(eUA,_.du);var lV0=["platform","platformVersion","architecture","model","uaFullVersion"],cEH=new d6,H4t=null;var Ed=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Ed,_.du);var dq7=function(v){return _.aM(v,1,1)};var Ea7=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v,4)};
_.V(Ea7,_.du);_.Tx=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v,36)};
_.V(_.Tx,_.du);_.Tx.prototype.getExperimentIds=function(){return _.W8(this,nmJ,16)};var T5B=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v,19)};
_.V(T5B,_.du);T5B.prototype.setLogSource=function(v){return _.aM(this,2,v)};
T5B.prototype.setScheduler=function(v){return _.aM(this,10,v)};var W7A=function(v,e){this.isServiceWorkerScope=e=e===void 0?!1:e;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new T5B;Number.isInteger(v)&&this.logRequest.setLogSource(v);e||(this.locale=document.documentElement.getAttribute("lang"));S92(this,new Ed)};
W7A.prototype.setLogSource=function(v){this.logRequest.setLogSource(v);return this};
var S92=function(v,e){_.hr(v.logRequest,1,e);_.oW(e,1)||dq7(e);v.isServiceWorkerScope||(e=S9(v),_.Vm(e,5)||_.L0(e,5,v.locale));v.uach&&(e=S9(v),_.W8(e,d6,9)||_.hr(e,9,v.uach))},a2I=function(v,e){v.transmissionType=e},iFA=function(v){var e=e===void 0?lV0:e;
var d=v.isServiceWorkerScope?void 0:xx();d?wb0(d,e).then(function(E){v.uach=vaI(E!=null?E:"[]");E=S9(v);_.hr(E,9,v.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},S9=function(v){var e=_.W8(v.logRequest,Ed,1);
e||(e=new Ed,S92(v,e));v=e;e=_.W8(v,eUA,11);e||(e=new eUA,_.hr(v,11,e));return e};
W7A.prototype.build=function(v,e,d,E,T,S){e=e===void 0?0:e;d=d===void 0?0:d;E=E===void 0?null:E;T=T===void 0?0:T;S=S===void 0?0:S;if(!this.isServiceWorkerScope){var O=S9(this);var b=new p$A;b=_.aM(b,1,this.transmissionType);b=_.iZ(b,2,this.isFinal);d=_.tn(b,3,d>0?d:void 0);d=_.tn(d,4,T>0?T:void 0);d=_.tn(d,5,S>0?S:void 0);T=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;S=T[_.aE]|0;d=$I(d,S)?d:N9U(d,T,S)?sCM(d,T):new d.constructor(C9(T,S,!0));_.hr(O,10,d)}O=this.logRequest.clone();d=Date.now().toString();
O=_.iR(O,4,WO(d));v=v.slice();v=$u(O,3,v);E&&(O=new Dfg,E=_.tn(O,13,E),O=new Ufc,E=_.hr(O,2,E),O=new Ea7,E=_.hr(O,1,E),E=_.aM(E,2,9),_.hr(v,18,E));e&&_.NG(v,14,e);return v};Ol.prototype.currBackoffCount_=0;Ol.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Ol.prototype.getValue=function(){return this.currValue_};
var OFE=function(v){v.currBaseValue_=Math.min(v.maxValue_,v.currBaseValue_*v.backoffFactor_);v.currValue_=Math.min(v.maxValue_,v.currBaseValue_+(v.randomFactor_?Math.round(v.randomFactor_*(Math.random()-.5)*2*v.currBaseValue_):0));v.currBackoffCount_++};var vWt=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v,8)};
_.V(vWt,_.du);var I2c=_.mV(vWt);var eR3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(eR3,_.du);var WJ;WJ=new dat;var an=function(v){_.kh.call(this);var e=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9687_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$9687_sendBeaconApiEnabled=!1;this.logSource=v.logSource;this.getAuthHeaderValue=
v.getAuthHeaderValue||function(){};
this.logRequestBuilder=new W7A(v.logSource,v.isServiceWorkerScope);this.network=v.network||null;this.productID=v.productID||null;this.bufferSize=1E3;this.clearcutUrl=v.urlOverride||null;this.sessionIndex=v.sessionIndex||null;this.disableAutomaticFlush=v.disableAutomaticFlush||!1;this.withCredentials=!v.disableWithCredentials;this.isServiceWorkerScope=v.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!xx()&&!!xx().navigator&&xx().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(bFB())).searchParams&&!!(new URL(bFB())).searchParams.set;var d=dq7(new Ed);S92(this.logRequestBuilder,d);this.flushBackoff=new Ol(1E4,3E5,.1);v=Y9g(this,v.backgroundJobDeferrer);this.JSC$9687_flushTimer=new e9(this.flushBackoff.getValue(),v);this.backupTimer=new e9(6E5,v);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){mqI(e);
var E;(E=e.metalogService)==null||E.flush()}}),document.addEventListener("pagehide",function(){mqI(e);
var E;(E=e.metalogService)==null||E.flush()}))};
_.V(an,_.kh);var Y9g=function(v,e){return v.isBrowserSupported?e?function(){e().then(function(){v.flush()})}:function(){v.flush()}:function(){}};
an.prototype.disposeInternal=function(){mqI(this);this.JSC$9687_flushTimer.stop();this.backupTimer.stop();_.kh.prototype.disposeInternal.call(this)};
var y7e=function(v){v.clearcutUrl||(v.clearcutUrl=bFB());try{return(new URL(v.clearcutUrl)).toString()}catch(e){return(new URL(v.clearcutUrl,xx().location.origin)).toString()}};
an.prototype.dispatch=function(v){if(v instanceof _.Tx)this.log(v);else try{var e=new _.Tx,d=v.serialize();var E=_.L0(e,8,d);this.log(E)}catch(T){iI(this,4,1)}};
var iI=function(v,e,d){v.metalogService&&v.metalogService.increment(e,d)};
an.prototype.log=function(v){iI(this,2,1);if(this.isBrowserSupported){v=v.clone();var e=this.sequencePosition++;v=_.NG(v,21,e);this.componentId&&_.L0(v,26,this.componentId);e=v;if(tAU(_.mL(e,1))==null){var d=Date.now();d=Number.isFinite(d)?d.toString():"0";_.iR(e,1,WO(d))}_.MA$(_.mL(e,15))!=null||_.NG(e,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(d=this.experimentIds.clone(),_.hr(e,16,d));iI(this,1,1);e=this.pendingEvents.length-this.bufferSize+1;e>0&&(this.pendingEvents.splice(0,e),
this.numLogsDroppedSinceLastFlush+=e,iI(this,3,e));this.pendingEvents.push(v);this.disableAutomaticFlush||this.JSC$9687_flushTimer.enabled||this.JSC$9687_flushTimer.start()}};
an.prototype.flush=function(v,e){var d=this;if(this.pendingEvents.length===0)v&&v();else if(this.JSC$9687_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,q90(this);else{var E=Date.now();if(this.noFlushUntilMs>E&&this.startWaitingMs<E)e&&e("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?a2I(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var T=this.pendingEvents.length,
S=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),O=this.getAuthHeaderValue();if(O&&this.lastFailedAuth===O)e&&e("stale-auth-token");else{this.pendingEvents=[];this.JSC$9687_flushTimer.enabled&&this.JSC$9687_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;E=S.serialize();var b;this.JSC$9687_compressor&&this.JSC$9687_compressor.isSupported(E.length)&&
(b=this.JSC$9687_compressor.compress(E));var Y=r7J(this,E,O),q=function(K){d.flushBackoff.reset();d.JSC$9687_flushTimer.setInterval(d.flushBackoff.getValue());if(K){var k=null;try{var J=JSON.stringify(JSON.parse(K.replace(")]}'\n","")));k=I2c(J)}catch(R){}k&&(K=Number(ku(k,1,_.Bc("-1"))),K>0&&(d.startWaitingMs=Date.now(),d.noFlushUntilMs=d.startWaitingMs+K),Ui0(k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,WJ.fieldIndex),nIW(k,WJ.fieldIndex),k=WJ.ctor?WJ.getExtensionFn(k,WJ.ctor,WJ.fieldIndex,
WJ.JSC$8866_hasMessageId):WJ.getExtensionFn(k,WJ.fieldIndex,null,WJ.JSC$8866_hasMessageId),k=k===null?void 0:k)&&(k=_.TZ(k,1,-1),k!==-1&&(d.flushBackoff=new Ol(k<1?1:k,3E5,.1),d.JSC$9687_flushTimer.setInterval(d.flushBackoff.getValue())))}v&&v();d.numRetriesSinceLastSuccessfulFlush=0},r=function(K,k){var J=_.df(S,_.Tx,3,_.El());
var R=Number(ku(S,14));OFE(d.flushBackoff);d.JSC$9687_flushTimer.setInterval(d.flushBackoff.getValue());K===401&&O&&(d.lastFailedAuth=O);R&&(d.numLogsDroppedSinceLastFlush+=R);k===void 0&&(k=d.isRetryable(K));k&&(d.pendingEvents=J.concat(d.pendingEvents),d.disableAutomaticFlush||d.JSC$9687_flushTimer.enabled||d.JSC$9687_flushTimer.start());iI(d,7,1);e&&e("net-send-failed",K);++d.numRetriesSinceLastSuccessfulFlush},h=function(){d.network&&d.network.send(Y,q,r)};
b?b.then(function(K){iI(d,5,T);Y.requestHeaders["Content-Encoding"]="gzip";Y.requestHeaders["Content-Type"]="application/binary";Y.body=K;Y.bodyType=2;h()},function(){iI(d,6,T);
h()}):h()}}}};
var r7J=function(v,e,d){d=d===void 0?null:d;var E=E===void 0?v.withCredentials:E;var T={},S=new URL(y7e(v));d&&(T.Authorization=d);v.sessionIndex&&(T["X-Goog-AuthUser"]=v.sessionIndex,S.searchParams.set("authuser",v.sessionIndex));v.pageId&&(Object.defineProperty(T,"X-Goog-PageId",{value:v.pageId}),S.searchParams.set("pageId",v.pageId));return{url:S.toString(),body:e,bodyType:1,requestHeaders:T,requestType:"POST",withCredentials:E,timeoutMillis:v.timeoutMillis}},mqI=function(v){v.logRequestBuilder.isFinal=
!0;
v.flush();v.logRequestBuilder.isFinal=!1},q90=function(v){hUi(v,function(e,d){e=new URL(e);
e.searchParams.set("format","json");var E=!1;try{E=xx().navigator.sendBeacon(e.toString(),d.serialize())}catch(T){}E||(v.isSendBeaconSupported=!1);return E})},hUi=function(v,e){if(v.pendingEvents.length!==0){var d=new URL(y7e(v));
d.searchParams.delete("format");var E=v.getAuthHeaderValue();E&&d.searchParams.set("auth",E);d.searchParams.set("authuser",v.sessionIndex||"0");for(E=0;E<10&&v.pendingEvents.length;++E){var T=v.pendingEvents.slice(0,32),S=v.logRequestBuilder.build(T,v.numLogsDroppedSinceLastFlush,v.numRetriesSinceLastSuccessfulFlush,v.productID,v.persistedLogRecoveredCount,v.persistedLogExpiredCount);if(!e(d.toString(),S)){++v.numRetriesSinceLastSuccessfulFlush;break}v.numLogsDroppedSinceLastFlush=0;v.numRetriesSinceLastSuccessfulFlush=
0;v.persistedLogRecoveredCount=0;v.persistedLogExpiredCount=0;v.pendingEvents=v.pendingEvents.slice(T.length)}v.JSC$9687_flushTimer.enabled&&v.JSC$9687_flushTimer.stop()}};
an.prototype.isRetryable=function(v){return 500<=v&&v<600||v===401||v===0};
var bFB=function(){return"https://play.google.com/log?format=json&hasfast=true"};var K7i=function(){this.abortSupported=typeof AbortController!=="undefined"};
K7i.prototype.send=function(v,e,d){var E=this,T,S,O,b,Y,q,r,h,K,k;return _.I(function(J){switch(J.nextAddress){case 1:return S=(T=E.abortSupported?new AbortController:void 0)?setTimeout(function(){T.abort()},v.timeoutMillis):void 0,_.qq(J,2,3),O=Object.assign({},{method:v.requestType,
headers:Object.assign({},v.requestHeaders)},v.body&&{body:v.body},v.withCredentials&&{credentials:"include"},{signal:v.timeoutMillis&&T?T.signal:null}),J.yield(fetch(v.url,O),5);case 5:b=J.yieldResult;if(b.status!==200){(Y=d)==null||Y(b.status);J.jumpTo(3);break}if((q=e)==null){J.jumpTo(7);break}return J.yield(b.text(),8);case 8:q(J.yieldResult);case 7:case 3:_.h7(J);clearTimeout(S);_.$a(J,0);break;case 2:r=_.jl(J);switch((h=r)==null?void 0:h.name){case "AbortError":(K=d)==null||K(408);break;default:(k=
d)==null||k(400)}J.jumpTo(3)}})};
K7i.prototype.getTransmissionType=function(){return 4};_.bZ=function(v,e){e=e===void 0?"0":e;_.kh.call(this);this.logSource=v;this.sessionIndex=e;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9705_clearExperimentIds=this.productID=null;this.JSC$9705_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.V(_.bZ,_.kh);var eh7=function(v,e){v.buildLabel=e;return v},vL0=function(v,e){v.network=e;
return v},ELM=function(v,e){v.JSC$9705_clearExperimentIds=e},pb$=function(v){v.JSC$9705_sendBeaconApiEnabled=!0;
return v};
_.bZ.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.bZ.prototype.build=function(){this.network||(this.network=new K7i);var v=new an({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.FIt,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Yh(this,v);if(this.buildLabel){var e=this.buildLabel,d=
S9(v.logRequestBuilder);_.L0(d,7,e)}v.JSC$9687_compressor=new uaA;this.componentId&&(v.componentId=this.componentId);this.productID&&(v.productID=this.productID);this.pageId&&(v.pageId=this.pageId);this.JSC$9705_clearExperimentIds&&((d=this.JSC$9705_clearExperimentIds)?(v.experimentIds||(v.experimentIds=new nmJ),e=v.experimentIds,d=d.serialize(),_.L0(e,4,d)):v.experimentIds&&_.iR(v.experimentIds,4));this.JSC$9705_sendBeaconApiEnabled&&(v.JSC$9687_sendBeaconApiEnabled=v.isSendBeaconSupported);iFA(v.logRequestBuilder);
this.bufferSize&&(v.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(v);return v};var WqL=function(v,e,d,E,T,S,O){v=v===void 0?-1:v;e=e===void 0?"":e;d=d===void 0?"":d;E=E===void 0?!1:E;T=T===void 0?"":T;_.kh.call(this);this.logSource=v;this.componentId=e;S?e=S:(v=new _.bZ(v,"0"),v.componentId=e,_.Yh(this,v),d!==""&&(v.destinationUrl=d),E&&(v.serviceWorkerScopeEnabled=!0),T&&eh7(v,T),O&&vL0(v,O),e=v.build());this.JSC$9709_transport=e};
_.V(WqL,_.kh);WqL.prototype.flush=function(v){v=v||[];if(v.length){for(var e=new zTB,d=[],E=0;E<v.length;E++){var T=v[E],S=Ar2(T);d.push(S);T.clear()}$u(e,1,d);this.JSC$9709_transport.dispatch(e);this.JSC$9709_transport.flush()}};var $qA=function(v){this.cellValue=v};var Od=function(v,e,d){this.JSC$9714_metricName=v;this.cellType=e;this.fields=d||[];this.cellMap=new Map},HYM=function(v){return v.fields.map(function(e){return e.fieldType})},lBn=function(v){return v.fields.map(function(e){return e.fieldName})};
_.W=Od.prototype;_.W.addCell=function(v){var e=_.Xa.apply(1,arguments),d=this.getCells(e);d?d.push(new $qA(v)):this.JSC$9714_setCell(v,e)};
_.W.JSC$9714_setCell=function(v){var e=this.JSC$9714_getKey(_.Xa.apply(1,arguments));this.cellMap.set(e,[new $qA(v)])};
_.W.getCells=function(){var v=this.JSC$9714_getKey(_.Xa.apply(0,arguments));return this.cellMap.has(v)?this.cellMap.get(v):void 0};
_.W.getCell=function(){var v=this.getCells(_.Xa.apply(0,arguments));return v&&v.length?v[0]:void 0};
_.W.clear=function(){this.cellMap.clear()};
_.W.JSC$9714_getKey=function(){var v=_.Xa.apply(0,arguments);return v?v.join(","):"key"};var j0M=function(v,e){Od.call(this,v,3,e)};
_.V(j0M,Od);j0M.prototype.JSC$9717_incrementCounterBy=function(v){var e=_.Xa.apply(1,arguments),d=0,E=this.getCell(e);E&&(d=E.cellValue);this.JSC$9714_setCell(d+v,e)};var s0n=function(v,e){Od.call(this,v,2,e)};
_.V(s0n,Od);s0n.prototype.record=function(v){this.addCell(v,_.Xa.apply(1,arguments))};_.In=function(v){this.id=v};
_.In.prototype.toString=function(){return this.id};_.bI=function(v,e){this.type=v instanceof _.In?String(v):v;this.currentTarget=this.target=e;this.defaultPrevented=this.propagationStopped_=!1};
_.bI.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.bI.prototype.preventDefault=function(){this.defaultPrevented=!0};_.YN=function(v,e){_.bI.call(this,v?v.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;v&&this.init(v,e)};
_.vM(_.YN,_.bI);
_.YN.prototype.init=function(v,e){var d=this.type=v.type,E=v.changedTouches&&v.changedTouches.length?v.changedTouches[0]:null;this.target=v.target||v.srcElement;this.currentTarget=e;e=v.relatedTarget;e||(d=="mouseover"?e=v.fromElement:d=="mouseout"&&(e=v.toElement));this.relatedTarget=e;E?(this.clientX=E.clientX!==void 0?E.clientX:E.pageX,this.clientY=E.clientY!==void 0?E.clientY:E.pageY,this.screenX=E.screenX||0,this.screenY=E.screenY||0):(this.offsetX=_.WM||v.offsetX!==void 0?v.offsetX:v.layerX,
this.offsetY=_.WM||v.offsetY!==void 0?v.offsetY:v.layerY,this.clientX=v.clientX!==void 0?v.clientX:v.pageX,this.clientY=v.clientY!==void 0?v.clientY:v.pageY,this.screenX=v.screenX||0,this.screenY=v.screenY||0);this.button=v.button;this.keyCode=v.keyCode||0;this.key=v.key||"";this.charCode=v.charCode||(d=="keypress"?v.keyCode:0);this.ctrlKey=v.ctrlKey;this.altKey=v.altKey;this.shiftKey=v.shiftKey;this.metaKey=v.metaKey;this.pointerId=v.pointerId||0;this.pointerType=v.pointerType;this.state=v.state;
this.timeStamp=v.timeStamp;this.event_=v;v.defaultPrevented&&_.YN.superClass_.preventDefault.call(this)};
_.YN.prototype.stopPropagation=function(){_.YN.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.YN.prototype.preventDefault=function(){_.YN.superClass_.preventDefault.call(this);var v=this.event_;v.preventDefault?v.preventDefault():v.returnValue=!1};var N5E="closure_listenable_"+(Math.random()*1E6|0),mJ=function(v){return!(!v||!v[N5E])};var kMu=0;var L7e=function(v,e,d,E,T){this.listener=v;this.proxy=null;this.src=e;this.type=d;this.capture=!!E;this.handler=T;this.key=++kMu;this.removed=this.callOnce=!1},VlA=function(v){v.removed=!0;
v.listener=null;v.proxy=null;v.src=null;v.handler=null};Iu.prototype.add=function(v,e,d,E,T){var S=v.toString();v=this.listeners[S];v||(v=this.listeners[S]=[],this.typeCount_++);var O=oa7(v,e,E,T);O>-1?(e=v[O],d||(e.callOnce=!1)):(e=new L7e(e,this.src,S,!!E,T),e.callOnce=d,v.push(e));return e};
Iu.prototype.remove=function(v,e,d,E){v=v.toString();if(!(v in this.listeners))return!1;var T=this.listeners[v];e=oa7(T,e,d,E);return e>-1?(VlA(T[e]),_.kO7(T,e),T.length==0&&(delete this.listeners[v],this.typeCount_--),!0):!1};
var J7i=function(v,e){var d=e.type;if(!(d in v.listeners))return!1;var E=_.H3(v.listeners[d],e);E&&(VlA(e),v.listeners[d].length==0&&(delete v.listeners[d],v.typeCount_--));return E};
Iu.prototype.removeAll=function(v){v=v&&v.toString();var e=0,d;for(d in this.listeners)if(!v||d==v){for(var E=this.listeners[d],T=0;T<E.length;T++)++e,VlA(E[T]);delete this.listeners[d];this.typeCount_--}return e};
Iu.prototype.getListener=function(v,e,d,E){v=this.listeners[v.toString()];var T=-1;v&&(T=oa7(v,e,d,E));return T>-1?v[T]:null};
Iu.prototype.hasListener=function(v,e){var d=v!==void 0,E=d?v.toString():"",T=e!==void 0;return _.f0.some(this.listeners,function(S){for(var O=0;O<S.length;++O)if(!(d&&S[O].type!=E||T&&S[O].capture!=e))return!0;return!1})};
var oa7=function(v,e,d,E){for(var T=0;T<v.length;++T){var S=v[T];if(!S.removed&&S.listener==e&&S.capture==!!d&&S.handler==E)return T}return-1};var GM7,MlJ,tl0,RUe,P9A,VK,o5,C9M,xqe,B5g,yQ,XuB,f2B;GM7="closure_lm_"+(Math.random()*1E6|0);MlJ={};tl0=0;_.MC=function(v,e,d,E,T){if(E&&E.once)return VK(v,e,d,E,T);if(Array.isArray(e)){for(var S=0;S<e.length;S++)_.MC(v,e[S],d,E,T);return null}d=f2B(d);return mJ(v)?v.listen(e,d,_.Qj(E)?!!E.capture:!!E,T):RUe(v,e,d,!1,E,T)};
RUe=function(v,e,d,E,T,S){if(!e)throw Error("va");var O=_.Qj(T)?!!T.capture:!!T,b=yQ(v);b||(v[GM7]=b=new Iu(v));d=b.add(e,d,E,O,S);if(d.proxy)return d;E=P9A();d.proxy=E;E.src=v;E.listener=d;if(v.addEventListener)_.tQs||(T=O),T===void 0&&(T=!1),v.addEventListener(e.toString(),E,T);else if(v.attachEvent)v.attachEvent(xqe(e.toString()),E);else if(v.addListener&&v.removeListener)v.addListener(E);else throw Error("wa");tl0++;return d};
P9A=function(){var v=B5g,e=function(d){return v.call(e.src,e.listener,d)};
return e};
VK=function(v,e,d,E,T){if(Array.isArray(e)){for(var S=0;S<e.length;S++)VK(v,e[S],d,E,T);return null}d=f2B(d);return mJ(v)?v.listenOnce(e,d,_.Qj(E)?!!E.capture:!!E,T):RUe(v,e,d,!0,E,T)};
_.qs=function(v,e,d,E,T){if(Array.isArray(e))for(var S=0;S<e.length;S++)_.qs(v,e[S],d,E,T);else E=_.Qj(E)?!!E.capture:!!E,d=f2B(d),mJ(v)?v.unlisten(e,d,E,T):v&&(v=yQ(v))&&(e=v.getListener(e,d,E,T))&&o5(e)};
o5=function(v){if(typeof v==="number"||!v||v.removed)return!1;var e=v.src;if(mJ(e))return J7i(e.eventTargetListeners_,v);var d=v.type,E=v.proxy;e.removeEventListener?e.removeEventListener(d,E,v.capture):e.detachEvent?e.detachEvent(xqe(d),E):e.addListener&&e.removeListener&&e.removeListener(E);tl0--;(d=yQ(e))?(J7i(d,v),d.typeCount_==0&&(d.src=null,e[GM7]=null)):VlA(v);return!0};
C9M=function(v,e,d,E,T){d=f2B(d);E=!!E;return mJ(v)?v.getListener(e,d,E,T):v?(v=yQ(v))?v.getListener(e,d,E,T):null:null};
xqe=function(v){return v in MlJ?MlJ[v]:MlJ[v]="on"+v};
B5g=function(v,e){if(v.removed)v=!0;else{e=new _.YN(e,this);var d=v.listener,E=v.handler||v.src;v.callOnce&&o5(v);v=d.call(E,e)}return v};
yQ=function(v){v=v[GM7];return v instanceof Iu?v:null};
XuB="__closure_events_fn_"+(Math.random()*1E9>>>0);f2B=function(v){if(typeof v==="function")return v;v[XuB]||(v[XuB]=function(e){return v.handleEvent(e)});
return v[XuB]};_.r6=function(){_.kh.call(this);this.eventTargetListeners_=new Iu(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.vM(_.r6,_.kh);_.r6.prototype[N5E]=!0;_.W=_.r6.prototype;_.W.setParentEventTarget=function(v){this.parentEventTarget_=v};
_.W.addEventListener=function(v,e,d,E){_.MC(this,v,e,d,E)};
_.W.removeEventListener=function(v,e,d,E){_.qs(this,v,e,d,E)};
_.W.dispatchEvent=function(v){var e,d=this.parentEventTarget_;if(d)for(e=[];d;d=d.parentEventTarget_)e.push(d);d=this.actualEventTarget_;var E=v.type||v;if(typeof v==="string")v=new _.bI(v,d);else if(v instanceof _.bI)v.target=v.target||d;else{var T=v;v=new _.bI(E,d);_.f0.extend(v,T)}T=!0;var S;if(e)for(S=e.length-1;!v.propagationStopped_&&S>=0;S--){var O=v.currentTarget=e[S];T=zUJ(O,E,!0,v)&&T}v.propagationStopped_||(O=v.currentTarget=d,T=zUJ(O,E,!0,v)&&T,v.propagationStopped_||(T=zUJ(O,E,!1,v)&&
T));if(e)for(S=0;!v.propagationStopped_&&S<e.length;S++)O=v.currentTarget=e[S],T=zUJ(O,E,!1,v)&&T;return T};
_.W.disposeInternal=function(){_.r6.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.W.listen=function(v,e,d,E){return this.eventTargetListeners_.add(String(v),e,!1,d,E)};
_.W.listenOnce=function(v,e,d,E){return this.eventTargetListeners_.add(String(v),e,!0,d,E)};
_.W.unlisten=function(v,e,d,E){return this.eventTargetListeners_.remove(String(v),e,d,E)};
_.W.removeAllListeners=function(v){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(v):0};
var zUJ=function(v,e,d,E){e=v.eventTargetListeners_.listeners[String(e)];if(!e)return!0;e=e.concat();for(var T=!0,S=0;S<e.length;++S){var O=e[S];if(O&&!O.removed&&O.capture==d){var b=O.listener,Y=O.handler||O.src;O.callOnce&&J7i(v.eventTargetListeners_,O);T=b.call(Y,E)!==!1&&T}}return T&&!E.defaultPrevented};
_.r6.prototype.getListener=function(v,e,d,E){return this.eventTargetListeners_.getListener(String(v),e,d,E)};
_.r6.prototype.hasListener=function(v,e){return this.eventTargetListeners_.hasListener(v!==void 0?String(v):void 0,e)};var ht=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(v){return v&&AsyncContext.Snapshot.wrap(v)}:function(v){return v};var l2B=function(v,e){this.create_=v;this.reset_=e;this.occupants_=0;this.JSC$9749_head_=null};
l2B.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var v=this.JSC$9749_head_;this.JSC$9749_head_=v.next;v.next=null}else v=this.create_();return v};
l2B.prototype.put=function(v){this.reset_(v);this.occupants_<100&&(this.occupants_++,v.next=this.JSC$9749_head_,this.JSC$9749_head_=v)};var HFc=function(){this.workTail_=this.workHead_=null};
HFc.prototype.add=function(v,e){var d=Qs0.get();d.set(v,e);this.workTail_?this.workTail_.next=d:this.workHead_=d;this.workTail_=d};
HFc.prototype.remove=function(){var v=null;this.workHead_&&(v=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),v.next=null);return v};
var Qs0=new l2B(function(){return new A7M},function(v){return v.reset()}),A7M=function(){this.next=this.scope=this.fn=null};
A7M.prototype.set=function(v,e){this.fn=v;this.scope=e;this.next=null};
A7M.prototype.reset=function(){this.next=this.scope=this.fn=null};var ZF7,gct,FE3,c7n;gct=!1;FE3=new HFc;_.Ky=function(v,e){ZF7||c7n();gct||(ZF7(),gct=!0);FE3.add(v,e)};
c7n=function(){var v=Promise.resolve(void 0);ZF7=function(){v.then(uy7)}};var wuM=function(v){v.prototype.$goog_Thenable=!0},F7i=function(v){if(!v)return!1;
try{return!!v.$goog_Thenable}catch(e){return!1}};var Q0g,gaI,usg,DqE,Uqe,puB,Exe,W1e,IPI,i02,WQt;_.yf=function(v,e){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(v!=_.mv)try{var d=this;v.call(e,function(E){d.resolve_(2,E)},function(E){d.resolve_(3,E)})}catch(E){this.resolve_(3,E)}};
Q0g=function(){this.next=this.context=this.JSC$9760_onRejected=this.JSC$9760_onFulfilled=this.child=null;this.always=!1};
Q0g.prototype.reset=function(){this.context=this.JSC$9760_onRejected=this.JSC$9760_onFulfilled=this.child=null;this.always=!1};
gaI=new l2B(function(){return new Q0g},function(v){v.reset()});
usg=function(v,e,d){var E=gaI.get();E.JSC$9760_onFulfilled=v;E.JSC$9760_onRejected=e;E.context=d;return E};
_.qg=function(v){if(v instanceof _.yf)return v;var e=new _.yf(_.mv);e.resolve_(2,v);return e};
_.f1=function(v){return new _.yf(function(e,d){d(v)})};
DqE=function(v,e,d){naB(v,e,d,null)||_.Ky(_.kB(e,v))};
_.$N=function(v){return new _.yf(function(e,d){var E=v.length,T=[];if(E)for(var S=function(q,r){E--;T[q]=r;E==0&&e(T)},O=function(q){d(q)},b,Y=0;Y<v.length;Y++)b=v[Y],DqE(b,_.kB(S,Y),O);
else e(T)})};
Uqe=function(v){return new _.yf(function(e){var d=v.length,E=[];if(d)for(var T=function(b,Y,q){d--;E[b]=Y?{fulfilled:!0,value:q}:{fulfilled:!1,reason:q};d==0&&e(E)},S,O=0;O<v.length;O++)S=v[O],DqE(S,_.kB(T,O,!0),_.kB(T,O,!1));
else e(E)})};
puB=function(v){return new _.yf(function(e,d){var E=v.length,T=[];if(E)for(var S=function(q){e(q)},O=function(q,r){E--;
T[q]=r;E==0&&d(T)},b,Y=0;Y<v.length;Y++)b=v[Y],DqE(b,S,_.kB(O,Y));
else e(void 0)})};
_.gq=function(){var v,e,d=new _.yf(function(E,T){v=E;e=T});
return new vxM(d,v,e)};
_.yf.prototype.then=function(v,e,d){return eW6(this,ht(typeof v==="function"?v:null),ht(typeof e==="function"?e:null),d)};
wuM(_.yf);Exe=function(v,e,d,E){dRB(v,usg(e||_.mv,d||null,E))};
_.j9=function(v,e){e=ht(e);e=usg(e,e);e.always=!0;dRB(v,e);return v};
_.yf.prototype.finally=function(v){var e=this;v=ht(v);return new _.yf(function(d,E){Exe(e,function(T){v();d(T)},function(T){v();
E(T)})})};
_.yf.prototype.thenCatch=function(v,e){return eW6(this,null,ht(v),e)};
_.yf.prototype.catch=_.yf.prototype.thenCatch;_.yf.prototype.cancel=function(v){if(this.state_==0){var e=new _.Cr(v);_.Ky(function(){Tr6(this,e)},this)}};
var Tr6=function(v,e){if(v.state_==0)if(v.parent_){var d=v.parent_;if(d.callbackEntries_){for(var E=0,T=null,S=null,O=d.callbackEntries_;O&&(O.always||(E++,O.child==v&&(T=O),!(T&&E>1)));O=O.next)T||(S=O);T&&(d.state_==0&&E==1?Tr6(d,e):(S?(E=S,E.next==d.callbackEntriesTail_&&(d.callbackEntriesTail_=E),E.next=E.next.next):Sau(d),W1e(d,T,3,e)))}v.parent_=null}else v.resolve_(3,e)},dRB=function(v,e){v.callbackEntries_||v.state_!=2&&v.state_!=3||aPe(v);
v.callbackEntriesTail_?v.callbackEntriesTail_.next=e:v.callbackEntries_=e;v.callbackEntriesTail_=e},eW6=function(v,e,d,E){var T=usg(null,null,null);
T.child=new _.yf(function(S,O){T.JSC$9760_onFulfilled=e?function(b){try{var Y=e.call(E,b);S(Y)}catch(q){O(q)}}:S;
T.JSC$9760_onRejected=d?function(b){try{var Y=d.call(E,b);Y===void 0&&b instanceof _.Cr?O(b):S(Y)}catch(q){O(q)}}:O});
T.child.parent_=v;dRB(v,T);return T.child};
_.yf.prototype.unblockAndFulfill_=function(v){this.state_=0;this.resolve_(2,v)};
_.yf.prototype.unblockAndReject_=function(v){this.state_=0;this.resolve_(3,v)};
_.yf.prototype.resolve_=function(v,e){this.state_==0&&(this===e&&(v=3,e=new TypeError("xa")),this.state_=1,naB(e,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=e,this.state_=v,this.parent_=null,aPe(this),v!=3||e instanceof _.Cr||i02(this,e)))};
var naB=function(v,e,d,E){if(v instanceof _.yf)return Exe(v,e,d,E),!0;if(F7i(v))return v.then(e,d,E),!0;if(_.Qj(v))try{var T=v.then;if(typeof T==="function")return O0e(v,T,e,d,E),!0}catch(S){return d.call(E,S),!0}return!1},O0e=function(v,e,d,E,T){var S=!1,O=function(Y){S||(S=!0,d.call(T,Y))},b=function(Y){S||(S=!0,E.call(T,Y))};
try{e.call(v,O,b)}catch(Y){b(Y)}},aPe=function(v){v.executing_||(v.executing_=!0,_.Ky(v.executeCallbacks_,v))},Sau=function(v){var e=null;
v.callbackEntries_&&(e=v.callbackEntries_,v.callbackEntries_=e.next,e.next=null);v.callbackEntries_||(v.callbackEntriesTail_=null);return e};
_.yf.prototype.executeCallbacks_=function(){for(var v;v=Sau(this);)W1e(this,v,this.state_,this.result_);this.executing_=!1};
W1e=function(v,e,d,E){if(d==3&&e.JSC$9760_onRejected&&!e.always)for(;v&&v.hadUnhandledRejection_;v=v.parent_)v.hadUnhandledRejection_=!1;if(e.child)e.child.parent_=null,IPI(e,d,E);else try{e.always?e.JSC$9760_onFulfilled.call(e.context):IPI(e,d,E)}catch(T){WQt.call(null,T)}gaI.put(e)};
IPI=function(v,e,d){e==2?v.JSC$9760_onFulfilled.call(v.context,d):v.JSC$9760_onRejected&&v.JSC$9760_onRejected.call(v.context,d)};
i02=function(v,e){v.hadUnhandledRejection_=!0;_.Ky(function(){v.hadUnhandledRejection_&&WQt.call(null,e)})};
WQt=W3;_.Cr=function(v){_.dH.call(this,v)};
_.vM(_.Cr,_.dH);_.Cr.prototype.name="cancel";var vxM=function(v,e,d){this.promise=v;this.resolve=e;this.reject=d};var sd;_.Ow=function(v,e){_.r6.call(this);this.JSC$9772_interval_=v||1;this.timerObject_=e||_.TO;this.boundTick_=(0,_.LX)(this.tick_,this);this.last_=_.pO()};
_.vM(_.Ow,_.r6);_.W=_.Ow.prototype;_.W.enabled=!1;_.W.JSC$9774_timer_=null;_.W.setInterval=function(v){this.JSC$9772_interval_=v;this.JSC$9774_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9774_timer_&&this.stop()};
_.W.tick_=function(){if(this.enabled){var v=_.pO()-this.last_;v>0&&v<this.JSC$9772_interval_*.8?this.JSC$9774_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9772_interval_-v):(this.JSC$9774_timer_&&(this.timerObject_.clearTimeout(this.JSC$9774_timer_),this.JSC$9774_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.W.start=function(){this.enabled=!0;this.JSC$9774_timer_||(this.JSC$9774_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9772_interval_),this.last_=_.pO())};
_.W.stop=function(){this.enabled=!1;this.JSC$9774_timer_&&(this.timerObject_.clearTimeout(this.JSC$9774_timer_),this.JSC$9774_timer_=null)};
_.W.disposeInternal=function(){_.Ow.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
sd=function(v,e,d){if(typeof v==="function")d&&(v=(0,_.LX)(v,d));else if(v&&typeof v.handleEvent=="function")v=(0,_.LX)(v.handleEvent,v);else throw Error("ya");return Number(e)>2147483647?-1:_.TO.setTimeout(v,e||0)};
_.b0M=function(v){var e=null;return(new _.yf(function(d,E){e=sd(function(){d(void 0)},v);
e==-1&&E(Error("za"))})).thenCatch(function(d){_.TO.clearTimeout(e);
throw d;})};var mi=function(v){_.kh.call(this);this.streamzLogger=v;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9778_flushTimer=new _.Ow(this.flushInterval);this.JSC$9778_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Yh(this,this.JSC$9778_flushTimer)};
_.V(mi,_.kh);mi.prototype.sendIsolatedPayload=function(v){this.shouldSendIsolatedPayload=v;this.invocationLimit=1};
var YaA=function(v){v.JSC$9778_flushTimer.enabled||v.JSC$9778_flushTimer.start();v.invocationCount++;v.invocationCount>=v.invocationLimit&&v.snapshotAndFlush()};
mi.prototype.snapshotAndFlush=function(){var v=this.metricMap.values();v=[].concat(_.t7(v)).filter(function(e){return e.cellMap.size});
v.length&&this.streamzLogger.flush(v,this.shouldSendIsolatedPayload);mRn(v);this.invocationCount=0;this.JSC$9778_flushTimer.enabled&&this.JSC$9778_flushTimer.stop()};
mi.prototype.addNewCounter=function(v){var e=_.Xa.apply(1,arguments);this.metricMap.has(v)||this.metricMap.set(v,new j0M(v,e))};
mi.prototype.addNewEventMetric=function(v){var e=_.Xa.apply(1,arguments);this.metricMap.has(v)||this.metricMap.set(v,new s0n(v,e))};
var ycI=function(v,e){return v.disabledMetrics.has(e)?void 0:v.metricMap.get(e)};
mi.prototype.JSC$9778_incrementCounter=function(v){this.JSC$9778_incrementCounterBy(v,1,_.Xa.apply(1,arguments))};
mi.prototype.JSC$9778_incrementCounterBy=function(v,e){var d=_.Xa.apply(2,arguments),E=ycI(this,v);E&&E instanceof j0M&&(E.JSC$9717_incrementCounterBy(e,d),YaA(this))};
mi.prototype.record=function(v,e){var d=_.Xa.apply(2,arguments),E=ycI(this,v);E&&E instanceof s0n&&(E.record(e,d),YaA(this))};
var mRn=function(v){for(var e=0;e<v.length;e++)v[e].clear()};_.Ns=function(v,e,d){d=d===void 0?{}:d;e=Error.call(this,e);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=v;this.metadata=d;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.V(_.Ns,Error);_.Ns.prototype.toString=function(){var v="RpcError("+(D90(this.code)||String(this.code))+")";this.message&&(v+=": "+this.message);return v};_.qaA=_.TO.JSON.parse;_.kN=_.TO.JSON.stringify;_.PP=_.TO.JSON.parse;_.rcI=function(v){switch(v){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 hW2=function(v){switch(v){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var K1A,$Re=function(){};
_.vM($Re,_.U90);$Re.prototype.createInstance=function(){return new XMLHttpRequest};
K1A=new $Re;_.Ly=function(v){_.r6.call(this);this.headers=new Map;this.JSC$9787_xmlHttpFactory_=v||null;this.JSC$9787_active_=!1;this.JSC$9787_xhr_=null;this.JSC$9787_lastUri_="";this.JSC$9787_lastErrorCode_=0;this.JSC$9787_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9787_timeoutId_=null;this.responseType_="";this.JSC$9787_withCredentials_=!1};
_.vM(_.Ly,_.r6);var j2c=/^https?$/i,s26=["POST","PUT"],NrJ=[],qsW=function(v,e,d,E,T,S,O){var b=new _.Ly;NrJ.push(b);e&&b.listen("complete",e);b.listenOnce("ready",b.cleanupSend_);S&&(b.timeoutInterval_=Math.max(0,S));O&&(b.JSC$9787_withCredentials_=O);b.send(v,d,E,T)};
_.Ly.prototype.cleanupSend_=function(){this.dispose();_.H3(NrJ,this)};
_.Ly.prototype.send=function(v,e,d,E){if(this.JSC$9787_xhr_)throw Error("Aa`"+this.JSC$9787_lastUri_+"`"+v);e=e?e.toUpperCase():"GET";this.JSC$9787_lastUri_=v;this.JSC$9787_lastError_="";this.JSC$9787_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9787_active_=!0;this.JSC$9787_xhr_=this.createXhr();this.JSC$9787_xhr_.onreadystatechange=ht((0,_.LX)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9787_xhr_.open(e,String(v),!0),this.inOpen_=!1}catch(O){k8i(this,O);return}v=d||"";d=new Map(this.headers);
if(E)if(Object.getPrototypeOf(E)===Object.prototype)for(var T in E)d.set(T,E[T]);else if(typeof E.keys==="function"&&typeof E.get==="function"){T=_.a(E.keys());for(var S=T.next();!S.done;S=T.next())S=S.value,d.set(S,E.get(S))}else throw Error("Ba`"+String(E));E=Array.from(d.keys()).find(function(O){return"content-type"==O.toLowerCase()});
T=_.TO.FormData&&v instanceof _.TO.FormData;!_.lL(s26,e)||E||T||d.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e=_.a(d);for(E=e.next();!E.done;E=e.next())d=_.a(E.value),E=d.next().value,d=d.next().value,this.JSC$9787_xhr_.setRequestHeader(E,d);this.responseType_&&(this.JSC$9787_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9787_xhr_&&this.JSC$9787_xhr_.withCredentials!==this.JSC$9787_withCredentials_&&(this.JSC$9787_xhr_.withCredentials=this.JSC$9787_withCredentials_);
try{this.JSC$9787_timeoutId_&&(clearTimeout(this.JSC$9787_timeoutId_),this.JSC$9787_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9787_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9787_xhr_.send(v),this.inSend_=!1}catch(O){k8i(this,O)}};
_.Ly.prototype.createXhr=function(){return this.JSC$9787_xmlHttpFactory_?this.JSC$9787_xmlHttpFactory_.createInstance():K1A.createInstance()};
_.Ly.prototype.timeout_=function(){typeof zzs!="undefined"&&this.JSC$9787_xhr_&&(this.JSC$9787_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9787_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var k8i=function(v,e){v.JSC$9787_active_=!1;v.JSC$9787_xhr_&&(v.inAbort_=!0,v.JSC$9787_xhr_.abort(),v.inAbort_=!1);v.JSC$9787_lastError_=e;v.JSC$9787_lastErrorCode_=5;L12(v);VyA(v)},L12=function(v){v.errorDispatched_||(v.errorDispatched_=!0,v.dispatchEvent("complete"),v.dispatchEvent("error"))};
_.Ly.prototype.abort=function(v){this.JSC$9787_xhr_&&this.JSC$9787_active_&&(this.JSC$9787_active_=!1,this.inAbort_=!0,this.JSC$9787_xhr_.abort(),this.inAbort_=!1,this.JSC$9787_lastErrorCode_=v||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),VyA(this))};
_.Ly.prototype.disposeInternal=function(){this.JSC$9787_xhr_&&(this.JSC$9787_active_&&(this.JSC$9787_active_=!1,this.inAbort_=!0,this.JSC$9787_xhr_.abort(),this.inAbort_=!1),VyA(this,!0));_.Ly.superClass_.disposeInternal.call(this)};
_.Ly.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)oxJ(this);else this.onReadyStateChangeEntryPoint_()};
_.Ly.prototype.onReadyStateChangeEntryPoint_=function(){oxJ(this)};
var oxJ=function(v){if(v.JSC$9787_active_&&typeof zzs!="undefined")if(v.inSend_&&_.VQ(v)==4)setTimeout(v.onReadyStateChange_.bind(v),0);else if(v.dispatchEvent("readystatechange"),v.isComplete()){v.JSC$9787_active_=!1;try{if(v.isSuccess())v.dispatchEvent("complete"),v.dispatchEvent("success");else{v.JSC$9787_lastErrorCode_=6;try{var e=_.VQ(v)>2?v.JSC$9787_xhr_.statusText:""}catch(d){e=""}v.JSC$9787_lastError_=e+" ["+v.getStatus()+"]";L12(v)}}finally{VyA(v)}}},VyA=function(v,e){if(v.JSC$9787_xhr_){v.JSC$9787_timeoutId_&&
(clearTimeout(v.JSC$9787_timeoutId_),v.JSC$9787_timeoutId_=null);
var d=v.JSC$9787_xhr_;v.JSC$9787_xhr_=null;e||v.dispatchEvent("ready");try{d.onreadystatechange=null}catch(E){}}};
_.Ly.prototype.isActive=function(){return!!this.JSC$9787_xhr_};
_.Ly.prototype.isComplete=function(){return _.VQ(this)==4};
_.Ly.prototype.isSuccess=function(){var v=this.getStatus(),e;if(!(e=hW2(v))){if(v=v===0)v=MsE(String(this.JSC$9787_lastUri_)),v=!j2c.test(v);e=v}return e};
_.VQ=function(v){return v.JSC$9787_xhr_?v.JSC$9787_xhr_.readyState:0};
_.W=_.Ly.prototype;_.W.getStatus=function(){try{return _.VQ(this)>2?this.JSC$9787_xhr_.status:-1}catch(v){return-1}};
_.W.getResponseText=function(){try{return this.JSC$9787_xhr_?this.JSC$9787_xhr_.responseText:""}catch(v){return""}};
_.W.getResponse=function(){try{if(!this.JSC$9787_xhr_)return null;if("response"in this.JSC$9787_xhr_)return this.JSC$9787_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9787_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9787_xhr_)return this.JSC$9787_xhr_.mozResponseArrayBuffer}return null}catch(v){return null}};
_.W.getAllResponseHeaders=function(){return this.JSC$9787_xhr_&&_.VQ(this)>=2?this.JSC$9787_xhr_.getAllResponseHeaders()||"":""};
_.W.getLastError=function(){return typeof this.JSC$9787_lastError_==="string"?this.JSC$9787_lastError_:String(this.JSC$9787_lastError_)};var d_$=function(){};
d_$.prototype.send=function(v,e,d){e=e===void 0?function(){}:e;
d=d===void 0?function(){}:d;
qsW(v.url,function(E){E=E.target;E.isSuccess()?e(E.getResponseText()):d(E.getStatus())},v.requestType,v.body,v.requestHeaders,v.timeoutMillis,v.withCredentials)};
d_$.prototype.getTransmissionType=function(){return 1};var Jc2=function(v,e){this.kq7=v;this.event=e;this.startTime=qu()},iw0;
Jc2.prototype.done=function(){this.kq7.eA(this.event,qu()-this.startTime)};
var on=function(){pf.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.V(on,pf);_.Jt=function(v,e,d){var E=qu();e=e();v.eA(d,qu()-E);return e};
iw0=function(){on.apply(this,arguments)};
_.V(iw0,on);_.W=iw0.prototype;_.W.htf=function(){};
_.W.tg=function(){};
_.W.eA=function(){};
_.W.logError=function(){};
_.W.tN=function(){};
_.W.hRn=function(){};
_.W.fe7=function(){};
_.W.bMX=function(){};
var G8J=function(v){on.call(this);var e=this;this.py=v;this.TEST_ONLY={iJU:function(){return e.py},
getExperimentIds:function(){return e.py.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void e.py.dispose()})};
_.V(G8J,on);_.W=G8J.prototype;_.W.update=function(v){this.py.dispose();this.py=v};
_.W.tg=function(v){this.py.tg(v)};
_.W.eA=function(v,e){this.py.eA(v,e)};
_.W.logError=function(v){this.py.logError(v)};
_.W.tN=function(){this.py.tN()};
_.W.hRn=function(v){this.py.hRn(v)};
_.W.fe7=function(v){this.py.fe7(v)};
_.W.bMX=function(v){this.py.bMX(v)};
_.W.htf=function(v){this.py.htf(v)};
var MyM=function(v,e){_.kh.call(this);var d=this;this.callback=v;this.yRD=e;this.tjp=-e;this.addOnDisposeCallback(function(){return void clearTimeout(d.timer)})};
_.V(MyM,_.kh);var tyI=function(v){if(v.timer===void 0){var e=Math.max(0,v.tjp+v.yRD-qu());v.timer=setTimeout(function(){try{v.callback()}finally{v.tjp=qu(),v.timer=void 0}},e)}},fPu=function(v,e){on.call(this);
this.metrics=v;this.jo=e};
_.V(fPu,on);_.W=fPu.prototype;_.W.htf=function(v){this.metrics.c0A.record(v,this.jo)};
_.W.tg=function(v){this.metrics.eventCount.increment(v,this.jo)};
_.W.eA=function(v,e){this.metrics.utL.record(e,v,this.jo)};
_.W.logError=function(v){this.metrics.errorCount.increment(v,this.jo)};
_.W.hRn=function(v){this.metrics.vfo.increment(v,this.jo)};
_.W.fe7=function(v){this.metrics.l4U.increment(v,this.jo)};
_.W.bMX=function(v){this.metrics.qVy.increment(v,this.jo)};
var OwH=function(v,e){e=e===void 0?[]:e;var d={jo:v.jo||"_",bpY:v.bpY||[],y6G:v.y6G|0,destinationUrl:v.destinationUrl,amX:v.amX||function(){},
nZC:v.nZC||function(S,O){return aTS(S,O,d.amX,d.destinationUrl)}},E=d.nZC("51",d.bpY.concat(e));
fPu.call(this,{c0A:new mfg(E),errorCount:new hTg(E),eventCount:new qJI(E),utL:new rrc(E),oIU:new yrJ(E),vfo:new KVB(E),l4U:new $fe(E),qVy:new j$M(E)},d.jo);var T=this;this.TEST_ONLY={getExperimentIds:function(){return T.options.bpY.concat(T.yUB).sort(function(S,O){return S-O})}};
this.options=d;this.service=E;this.msX=!v.nZC;this.flushDebouncer=new MyM(function(){return void T.service.snapshotAndFlush()},d.y6G);
this.addOnDisposeCallback(function(){T.flushDebouncer.dispose();T.msX&&T.service.dispose()});
(this.yUB=e.slice()).sort(_.Jsj)};
_.V(OwH,fPu);OwH.prototype.tN=function(){tyI(this.flushDebouncer)};var HuO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(HuO,_.du);_.AF3=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(_.AF3,_.du);var Hj=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v,0,Hj.messageId)};
_.V(Hj,_.du);var RWn=_.X$S(Hj);Hj.messageId="bfkj";var x9j=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(x9j,_.du);var Peu=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Peu,_.du);var xRg=_.mV(Peu);_.r1=function(){var v=this;this.promise=new Promise(function(e,d){v.resolve=e;v.reject=d})};_.Gx=function(v){_.kh.call(this);var e=this;this.gLG=Math.floor(Math.random()*200);this.niE=new Peu;if("challenge"in v&&RWn(v.challenge)){var d=_.Vm(v.challenge,4,void 0,f7);var E=_.Vm(v.challenge,5,void 0,f7);_.Vm(v.challenge,7,void 0,f7)&&(this.niE=xRg(_.Vm(v.challenge,7,void 0,f7)))}else d=v.program,E=v.globalName;this.addOnDisposeCallback(function(){var J,R,B;return _.I(function(X){if(X.nextAddress==1)return X.yield(e.pVY,2);J=X.yieldResult;R=J.kry;(B=R)==null||B();_.s9(X)})});
this.eS=ITt(v.ou9||{},this.niE);_.Yh(this,this.eS);var T=new _.r1;this.pVY=T.promise;this.eS.tg("t");var S=this.eS.share(),O=new Jc2(S,"t"),b=function(J,R,B,X){if(!e.eS.isDisposed()){var Z="k";R?Z="h":B&&(Z="u");Z!=="k"?X!==0&&(e.eS.tg(Z),e.eS.eA(Z,J)):e.gLG<=0?(e.eS.tg(Z),e.eS.eA(Z,J),e.gLG=Math.floor(Math.random()*200)):e.gLG--}},Y=function(J,R,B,X){Promise.resolve().then(function(){O.done();
S.tN();S.dispose();T.resolve({jxl:J,kry:R,ryU:B,yNx:X})})};
if(!_.TO[E])throw this.eS.logError(25),Error("Ca");if(!_.TO[E].a)throw this.eS.logError(26),Error("Da");try{var q=_.TO[E].a;E=[];for(var r=[],h=BZM(this.niE),K=0;K<h.length;K++)E.push(h[K]),r.push(1);var k=Cgt(this.niE);for(h=0;h<k.length;h++)E.push(k[h]),r.push(2);this.p1E=_.a(q(d,Y,!0,v.jGX,b,[E,r],_.Vm(this.niE,5))).next().value;this.lsE=T.promise.then(function(){})}catch(J){throw this.eS.logError(28),J;
}};
_.V(_.Gx,_.kh);_.Gx.prototype.snapshot=function(v){if(this.isDisposed())throw Error("Ea");this.eS.tg("n");var e=this.eS.share();return this.pVY.then(function(d){var E=d.jxl;return new Promise(function(T){var S=new Jc2(e,"n");E(function(O){S.done();e.htf(O.length);e.tN();e.dispose();T(O)},[v.vp,
v.yYd,v.onO,v.eap])})})};
_.Gx.prototype.odq=function(v){this.pVY.then(function(e){var d;(d=e.ryU)==null||d(v)})};
_.Gx.prototype.cgC=function(v,e){return this.pVY.then(function(d){var E;return(E=d.yNx)==null?void 0:E(v,e,!1)})};
_.Gx.prototype.r2A=function(){return this.eS.share()};var BrJ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(BrJ,_.du);var Dys=_.X$S(BrJ);var CeA=function(){this.promises={};this.h1X=null},XnE=function(){CeA.instance||(CeA.instance=new CeA);
return CeA.instance},lPE=function(v,e){return zW0(v,_.W8(e,HuO,1,f7),_.W8(e,_.AF3,2,f7),_.Vm(e,3,void 0,f7))},zW0=function(v,e,d,E){if(!e&&!d)return Promise.resolve();
if(!E)return Rh$(e,d);var T;(T=v.promises)[E]||(T[E]=new Promise(function(S,O){Rh$(e,d).then(function(){v.h1X=E;S()},function(b){delete v.promises[E];
O(b)})}));
return v.promises[E]};var H0e=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(H0e,_.du);var Acc=function(v,e){return _.A1(v,1,e)},Z06=function(v,e){return _.A1(v,2,e)};var Ms=function(v){_.kh.call(this);var e=this;this.options=v;this.aHa=new _.r1;this.lsE=this.aHa.promise;this.zN7=new _.r1;this.j8u=1;this.xUn=new _.r1;this.aaA=[];this.uKf=v.uKf||function(){};
this.u47=new G8J(ITt(v.ou9||{}));ccc(this,v.rq,v.bqx,v.fCR,v.mHs,Object.assign({},wnI,v.vJD||{}));this.addOnDisposeCallback(function(){return void F16(e)})};
_.V(Ms,_.kh);Ms.prototype.snapshot=function(v){var e=this;return _.I(function(d){switch(d.nextAddress){case 1:if(e.isDisposed())throw Error("Ea");if(e.qq||e.bvA){d.jumpTo(2);break}return d.yield(e.zN7.promise,2);case 2:if(!e.qq){d.jumpTo(4);break}return d.yield(e.qq.snapshot(v),5);case 5:return d.return(d.yieldResult);case 4:throw e.bvA;}})};
var Q2e=function(v){var e;return _.I(function(d){if(v.isDisposed())throw Error("Ea");(e=v.ho)!=null&&(e.endTimeMs=0,e.resolver(1));return d.yield(v.xUn.promise,0)})},F16=function(v){v.bvA=Error("Ga");
v.zN7.resolve();XbM(v.aHa.promise);v.aHa.reject(Error("Ga"));v.u47.dispose();Promise.all(v.aaA).then(function(){var d;return _.I(function(E){(d=v.qq)==null||d.dispose();v.qq=void 0;_.s9(E)})});
v.aaA=[];var e;(e=v.ho)!=null&&(e.endTimeMs=0,e.resolver(1));XbM(v.xUn.promise);v.xUn.reject(Error("Ga"))};
Ms.prototype.odq=function(v){var e,d;(e=this.qq)==null||(d=e.odq)==null||d.call(e,v)};
Ms.prototype.cgC=function(v,e){var d,E,T;return(T=(d=this.qq)==null?void 0:(E=d.cgC)==null?void 0:E.call(d,v,e))!=null?T:Promise.resolve()};
var gx7=function(v,e){var d=v.uKf;v.uKf=function(){d();e()}},uvu=function(v,e){v.isDisposed()||(v.qq=e,v.u47.update(e.r2A()),v.zN7.resolve(),v.aHa.resolve(void 0),v.uKf())};
Ms.prototype.handleError=function(v){if(!this.isDisposed()){this.bvA=v;this.zN7.resolve();var e,d;(d=(e=this.options).g9e)==null||d.call(e,v)}};
var nxi=function(v,e){e&&(Promise.all(v.aaA).then(function(){return void e.dispose()}),v.aaA=[])},tt=function(v,e){v.j8u=e;
var d,E;(E=(d=v.options).owI)==null||E.call(d,e)},DRc=function(v){v.isDisposed()||(v.xUn.resolve(),v.xUn=new _.r1)},ccc=function(v,e,d,E,T,S){E=E===void 0?XnE():E;
T=T===void 0?Promise.resolve(void 0):T;var O,b,Y,q,r,h,K,k,J,R,B,X;_.I(function(Z){switch(Z.nextAddress){case 1:return Z.yield(0,3);case 3:b=null;if(!O){Z.jumpTo(6);break}tt(v,7);_.qq(Z,7);return Z.yield(jt(O.snapshot({}),S.ekV,function(){return Promise.resolve("E:CTO")}),9);
case 9:b=Z.yieldResult;_.wk(Z,6);break;case 7:_.jl(Z),b="E:UCE";case 6:Y=void 0,q=O?S.e9V:S.n0u,r=new Ol(q,S.teX,S.miD,S.cnL),h=1;case 10:if(!(h<=S.maxAttempts)){Z.jumpTo(12);break}if(h===1){Z.jumpTo(13);break}tt(v,0);v.ho=new URc(r.getValue(),S.yb4,S.kHO);return Z.yield(v.ho.promise,14);case 14:K=Z.yieldResult,v.ho=void 0,K===1?(h=1,r.reset()):OFE(r);case 13:_.qq(Z,15);k=void 0;if(d){k=d;Z.jumpTo(17);break}tt(v,5);J=E.h1X;return Z.yield(jt(pnM(e,J,b),S.mnf,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:k=Z.yieldResult;case 17:return tt(v,3),Z.yield(jt(lPE(E,k),S.w4O,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return tt(v,8),Z.yield(T,20);case 20:return R=new _.Gx({challenge:k,ou9:v.options.ou9,jGX:v.options.jGX}),Z.yield(jt(R.lsE,S.bTR,function(){return Promise.reject(Error("Ja"))}),21);
case 21:Y=R;Z.jumpTo(12);break;case 15:B=_.jl(Z),v.handleError(B),DRc(v);case 11:h++;Z.jumpTo(10);break;case 12:if(v.isDisposed()){Z.jumpTo(5);break}Y&&(d=void 0,nxi(v,O),O=Y,uvu(v,Y),DRc(v));tt(v,2);v.ho=new URc(S.ctX,S.yb4,S.kHO);return Z.yield(v.ho.promise,22);case 22:v.ho=void 0;if(v.isDisposed()){Z.jumpTo(5);break}Z.jumpTo(3);break;case 5:(X=O)==null||X.dispose(),_.s9(Z)}})};
Ms.prototype.r2A=function(){return this.u47.share()};
var wnI={ctX:432E5,yb4:3E5,kHO:10,ekV:1E4,mnf:3E4,w4O:3E4,bTR:6E4,n0u:1E3,e9V:6E4,teX:6E5,miD:.25,cnL:2,maxAttempts:10},URc=function(v,e,d){var E=this;this.endTimeMs=Date.now()+v;this.promise=new Promise(function(S){E.resolver=S});
var T=function(){var S=E.endTimeMs-Date.now();S<=d?E.resolver(0):setTimeout(T,Math.min(S,e))};
T()};var vh2,Bk0=(vh2=Math.imul)!=null?vh2:function(v,e){return v*e|0},sl=[196,
200,224,18],fy=function(v,e,d){d=d===void 0?[]:d;this.maxItems=v;this.fp=e===void 0?0:e;this.zS=d},eHJ=function(v){var e=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!e)return new fy(v);var d=e.split(",");if(d.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new fy(v);e=d.slice(1);e.length===1&&e[0]===""&&(e=[]);d=Number(d[0]);return isNaN(d)||d<0||d>e.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new fy(v)):new fy(v,d,e)};
fy.prototype.serialize=function(){return String(this.fp)+","+this.zS.join()};
fy.prototype.insert=function(v,e){var d=void 0;if(this.zS[this.fp]!==v){var E=this.zS.indexOf(v);E!==-1?(this.zS.splice(E,1),E<this.fp&&this.fp--,this.zS.splice(this.fp,0,v)):(d=this.zS[this.fp],this.zS[this.fp]=v)}this.fp=(this.fp+1)%this.maxItems;v=PYW("iU5q-!O9@$",this.serialize());d&&v&&e(d);return v};
var duM=function(v,e){this.iek=e;try{var d=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(E){d=!1}d&&(this.index=eHJ(v))},Ehu=function(v,e,d,E,T){var S=v.index?_.Jt(v.iek,function(){return lTj(v.index,Xis(e),d,E,T)},"W"):"u";
v.iek.bMX(S)},TfE=function(v,e,d){var E=_.a(v.index?_.Jt(v.iek,function(){return HwO(Xis(e),d)},"R"):["u"]),T=E.next().value;
E=E.next().value;v.iek.fe7(T);return E};var Slu={toString:function(v){var e=[],d=0;v-=-2147483648;e[d++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(v%52);for(v=Math.floor(v/52);v>0;)e[d++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(v%62),v=Math.floor(v/62);return e.join("")}};var iXg=function(v){v=Wic(v);for(var e=2654435769,d=2654435769,E=314159265,T=v.length,S=T,O=0,b=function(){e-=d;e-=E;e^=E>>>13;d-=E;d-=e;d^=e<<8;E-=e;E-=d;E^=d>>>13;e-=d;e-=E;e^=E>>>12;d-=E;d-=e;d^=e<<16;E-=e;E-=d;E^=d>>>5;e-=d;e-=E;e^=E>>>3;d-=E;d-=e;d^=e<<10;E-=e;E-=d;E^=d>>>15};S>=12;S-=12,O+=12)e+=a4B(v,O),d+=a4B(v,O+4),E+=a4B(v,O+8),b();
E+=T;switch(S){case 11:E+=v[O+10]<<24;case 10:E+=v[O+9]<<16;case 9:E+=v[O+8]<<8;case 8:d+=v[O+7]<<24;case 7:d+=v[O+6]<<16;case 6:d+=v[O+5]<<8;case 5:d+=v[O+4];case 4:e+=v[O+3]<<24;case 3:e+=v[O+2]<<16;case 2:e+=v[O+1]<<8;case 1:e+=v[O]}b();return Slu.toString(E)},Wic=function(v){for(var e=[],d=0;d<v.length;d++)e.push(v.charCodeAt(d));
return e},a4B=function(v,e){return v[e]+(v[e+1]<<8)+(v[e+2]<<16)+(v[e+3]<<24)};var Rn=function(v){_.kh.call(this);this.x8=v;this.las=new _.r1};
_.V(Rn,_.kh);var OXI=function(v,e){var d=setTimeout(function(){v.las.resolve()},e);
v.addOnDisposeCallback(function(){return void clearTimeout(d)})};
Rn.prototype.xdC=function(v,e){var d=this.qN(v);e==null||e(d);return _.Jt(this.x8,function(){return _.GQ(d,2)},this.iTA)};
var I4g=function(v,e,d,E){return _.Jt(v.x8,function(){return d?v.xdC(e,E):v.qN(e,E)},v.uWX)},bX7=function(v,e,d,E){Rn.call(this,v);
this.bNx=e;this.jOq=d;this.uWX="m";this.iTA="x";this.hu4=0;OXI(this,E)};
_.V(bX7,Rn);bX7.prototype.qN=function(v,e){var d=this;this.x8.tg(this.uWX);++this.hu4>=this.jOq&&this.las.resolve();var E=v();v=_.Jt(this.x8,function(){return d.bNx(E)},"C");
if(v===void 0)throw new Di(17,"YNJ:Undefined");if(!(v instanceof Uint8Array))throw new Di(18,"ODM:Invalid");e==null||e(v);return v};
var Yl6=function(v,e,d){Rn.call(this,v);this.e84=e;this.uWX="f";this.iTA="z";OXI(this,d)};
_.V(Yl6,Rn);Yl6.prototype.qN=function(){return this.e84};
var muE=function(v,e,d){Rn.call(this,v);this.xhB=e;this.uWX="w";this.iTA="z";OXI(this,d)};
_.V(muE,Rn);muE.prototype.qN=function(){var v=this;return _.Jt(this.x8,function(){return _.U0(v.xhB)},"d")};
muE.prototype.xdC=function(){return this.xhB};
var yz2=function(v,e){Rn.call(this,v);this.error=e;this.uWX="e";this.iTA="y"};
_.V(yz2,Rn);var qlJ=function(v,e){var d=(e(v.error.message)+":"+e(v.error.stack)).substring(0,2048);e=d.length+1;d=AaS(d);var E=new Uint8Array(4+d.length);E.set([42,e&127|128,e>>7,v.error.code]);E.set(d,4);return E};
yz2.prototype.qN=function(){if(this.lcP)return this.lcP;this.lcP=qlJ(this,function(v){return"_"+iXg(v)});
return qlJ(this,function(v){return v})};
var rz6=function(v,e,d){Rn.call(this,v);this.d4f=e;this.clientState=d;this.uWX="S";this.iTA="q"};
_.V(rz6,Rn);rz6.prototype.qN=function(){var v=Math.floor(Date.now()/1E3),e=[Math.random()*255,Math.random()*255],d=e.concat([this.d4f&255,this.clientState],[v>>24&255,v>>16&255,v>>8&255,v&255]);v=new Uint8Array(2+d.length);v[0]=34;v[1]=d.length;v.set(d,2);d=v.subarray(2);for(var E=e=e.length;E<d.length;++E)d[E]^=d[E%e];this.x8.hRn(this.clientState);return v};var hHg={oz7:3E4,ene:2E4},PJ=function(v){_.kh.call(this);var e=this;this.aDa=new _.r1;this.hYG=0;this.qp=void 0;this.state=2;this.vm=v.vm;this.rq=v.rq;this.vJD=Object.assign({},hHg,v.vJD||{});this.fY=v.vm.r2A();var d;this.onError=(d=v.onError)!=null?d:function(){};
this.jP3=v.jP3||!1;if(KiB(v)){var E=this.vm;this.tis=function(){return Q2e(E).catch(function(O){O=e.reportError(new Di(e.xd?20:32,"TRG:Disposed",O));e.qp=O;var b;(b=e.xd)==null||b.dispose();e.xd=void 0;e.aDa.reject(O)})};
gx7(E,function(){return void $uJ(e)});
E.j8u===2&&$uJ(this)}else this.tis=v.cUA,$uJ(this);var T=this.fY.share();T.tg("o");var S=new Jc2(T,"o");this.aDa.promise.then(function(){S.done();T.tN();T.dispose()},function(){return void T.dispose()});
this.addOnDisposeCallback(function(){e.xd?(e.xd.dispose(),e.xd=void 0):e.qp?e.fY.tN():(e.qp=e.reportError(new Di(32,"TNP:Disposed")),e.fY.tN(),e.aDa.reject(e.qp))});
_.Yh(this,this.fY)};
_.V(PJ,_.kh);PJ.prototype.pyS=function(){return this.aDa.promise};
var jug=function(v,e){if(!(e instanceof Di))if(e instanceof _.Ns){var d=Error(e.toString());d.stack=e.stack;e=new Di(11,"EBH:Error",d)}else e=new Di(12,"BSO:Unknown",e);return v.reportError(e)},$uJ=function(v){var e,d,E,T,S,O,b,Y,q,r,h,K,k,J,R;
return _.I(function(B){switch(B.nextAddress){case 1:e=void 0;v.hYG++;d=new _.r1;v.vm instanceof Ms&&v.vm.aaA.push(d.promise);if(!v.jP3){B.jumpTo(2);break}E=new _.r1;setTimeout(function(){return void E.resolve()});
return B.yield(E.promise,2);case 2:return T=v.fY.share(),_.qq(B,4,5),v.state=5,S={},O=[],B.yield(jt(v.vm.snapshot({vp:S,onO:O}),v.vJD.ene,function(){return Promise.reject(new Di(15,"MDA:Timeout"))}),7);
case 7:b=B.yieldResult;if(v.isDisposed())throw new Di(v.xd?20:32,"MDA:Disposed");Y=O[0];v.state=6;return B.yield(jt(suE(v.rq,b),v.vJD.oz7,function(){return Promise.reject(new Di(10,"BWB:Timeout"))}),8);
case 8:q=B.yieldResult;if(v.isDisposed())throw new Di(v.xd?20:32,"BWB:Disposed");v.state=7;e=_.Jt(T,function(){var Z=Nfe(v,q,d,Y);Z.las.promise.then(function(){return void v.tis()});
return Z},"i");
case 5:_.h7(B);T.dispose();_.$a(B,6);break;case 4:r=_.jl(B);(h=e)==null||h.dispose();if(!v.qp){K=jug(v,r);d.resolve();var X;if(X=v.vm instanceof Ms&&v.hYG<2)a:if(r instanceof Di)X=r.code!==32&&r.code!==20&&r.code!==10;else{if(r instanceof _.Ns)switch(r.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)*(v.xd?6E4:1E3),J=setTimeout(function(){return void v.tis()},k),v.addOnDisposeCallback(function(){return void clearTimeout(J)}),B.return();
v.qp=K}T.logError(v.xd?13:14);v.aDa.reject(v.qp);return B.return();case 6:v.state=8,v.hYG=0,(R=v.xd)==null||R.dispose(),v.xd=e,v.aDa.resolve(),_.s9(B)}})},Nfe=function(v,e,d,E){var T=WK0(e,2)*1E3;
if(T<=0)throw new Di(31,"TTM:Invalid");if(_.Vm(e,4))return new muE(v.fY,_.Vm(e,4),T);if(!WK0(e,3))return new Yl6(v.fY,Zht(_.rN(e,1)),T);if(!E)throw new Di(4,"PMD:Undefined");E=E(Zht(_.rN(e,1)));if(!(E instanceof Function))throw new Di(16,"APF:Failed");v.m4X=Math.floor((Date.now()+T)/1E3);v=new bX7(v.fY,E,WK0(e,3),T);v.addOnDisposeCallback(function(){return void d.resolve()});
return v};
PJ.prototype.qN=function(v){return kZB(this,Object.assign({},v),!1)};
PJ.prototype.xdC=function(v){return kZB(this,Object.assign({},v),!0)};
PJ.prototype.n7s=function(v){if(v>150)return!1;try{return this.cache=new duM(v,this.fY),!0}catch(e){return this.reportError(new Di(22,"GBJ:init",e)),!1}};
PJ.prototype.reportError=function(v){this.fY.logError(v.code);this.onError(v);return v};
var LiA=function(v,e){e=e instanceof Di?e:new Di(5,"TVD:error",e);return v.reportError(e)},kZB=function(v,e,d){try{if(v.isDisposed())throw new Di(21,"BNT:disposed");
if(!v.xd&&v.qp)throw v.qp;var E,T;return(T=(E=Vti(v,e,d))!=null?E:oh2(v,e,d))!=null?T:JzE(v,e,d)}catch(S){if(!e.dFA)throw LiA(v,S);return GZM(v,d,S)}},Vti=function(v,e,d){var E;
return(E=v.xd)==null?void 0:I4g(E,function(){return Mt0(v,e)},d,function(T){var S;
if(v.xd instanceof bX7&&((S=e.wi)==null?0:S.e1a))try{var O;(O=v.cache)==null||Ehu(O,Mt0(v,e),T,e.wi.qFk,v.m4X-120)}catch(b){v.reportError(new Di(24,"ELX:write",b))}})},oh2=function(v,e,d){var E;
if((E=e.wi)!=null&&E.fgG)try{var T,S=(T=v.cache)==null?void 0:TfE(T,Mt0(v,e),e.wi.qFk);return S?d?_.Jt(v.fY,function(){return _.GQ(S,2)},"a"):S:void 0}catch(O){v.reportError(new Di(23,"RXO:read",O))}},JzE=function(v,e,d){var E={stack:[],
error:void 0,hasError:!1};try{if(!e.lQW)throw new Di(29,"SDF:notready");return I4g(wss(E,new rz6(v.fY,0,v.state)),function(){return Mt0(v,e)},d)}catch(T){E.error=T,E.hasError=!0}finally{FDO(E)}},GZM=function(v,e,d){var E={stack:[],
error:void 0,hasError:!1};try{var T=LiA(v,d);return I4g(wss(E,new yz2(v.fY,T)),function(){return[]},e)}catch(S){E.error=S,E.hasError=!0}finally{FDO(E)}},Mt0=function(v,e){return e.cEX?e.cEX:e.vp?_.Jt(v.fY,function(){return e.cEX=AaS(e.vp)},"c"):[]},KiB=function(v){return Pc(function(e){if(!ex(e))return!1;
for(var d=_.a(Object.entries(v)),E=d.next();!E.done;E=d.next()){var T=_.a(E.value);E=T.next().value;T=T.next().value;if(!(E in e)){if(T.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!T(e[E]))return!1}return!0})}({vm:function(v){return Pc(function(e){return e instanceof v})}(Ms)},"");var tt6=function(){var v=_.YE();this.JSC$9905_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",St("cookie_enabled"),St("cookie_3p_enabled"),_.au("browser"))};
tt6.prototype.increment=function(v,e,d){this.JSC$9905_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",v,e,d)};
var tYs=function(){var v=_.YE();this.JSC$9929_streamzService=v;v.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Ww("tick"),St("from_st_cookie"))};
tYs.prototype.increment=function(v,e){this.JSC$9929_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",v,e)};
var f4I=function(){var v=_.YE();this.JSC$9935_streamzService=v;v.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.au("status"))};
f4I.prototype.increment=function(v){this.JSC$9935_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",v)};
var RHe=function(){var v=_.YE();this.JSC$9938_streamzService=v;v.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.au("stage"),St("is_using_ytd_player"),St("has_expandable_tiles"))};
RHe.prototype.increment=function(v,e,d){this.JSC$9938_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",v,e,d)};
var PZJ=function(){var v=_.YE();this.JSC$9941_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/response_signature",_.au("check_status"))};
PZJ.prototype.increment=function(v){this.JSC$9941_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/web/response_signature",v)};
var xui=function(){var v=_.YE();this.JSC$9944_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.au("sig"),Ww("de"))};
xui.prototype.increment=function(v,e){this.JSC$9944_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/web/e_sig_log",v,e)};
var BfI=function(){var v=_.YE();this.JSC$9947_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.au("sig"),Ww("de"))};
BfI.prototype.increment=function(v,e){this.JSC$9947_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/web/e_sig_en",v,e)};
_.CZJ=function(){var v=_.YE();this.JSC$9950_streamzService=v;v.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.au("action"))};
_.CZJ.prototype.increment=function(v){this.JSC$9950_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/web/enforcement_intent",v)};var xN=window;var XwA=(new Date).getTime();_.f0.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.f0.createSet("action","cite","data","formaction","href","manifest","poster","src");var zHe=function(v){this.servicePromise_=v;v.then((0,_.LX)(function(){},this),function(){},this)},l4B=function(v,e,d){v.servicePromise_.then(function(E){var T=E[e];
if(!T)throw Error("Ka`"+e);return T.apply(E,d)})},ZXJ=function(v,e,d){for(var E=Array(arguments.length-2),T=2;T<arguments.length;T++)E[T-2]=arguments[T];
T=HXI(v,e).then(function(S){return S.apply(null,E)},function(S){S=Error("La`"+e+"`"+v,{cause:S});
delete Azg[e];return _.f1(S)});
return new zHe(T)},Azg={},HXI=function(v,e){var d=Azg[e];
if(d)return d;d=(d=_.AE(e))?_.qg(d):(new _.yf(function(E,T){var S=(new $0(document)).createElement("SCRIPT");S.async=!0;_.DB(S,_.km(BnI(v)));S.onload=S.onreadystatechange=function(){S.readyState&&S.readyState!="loaded"&&S.readyState!="complete"||E()};
S.onerror=function(O){T(Error("Ma`"+e+"`"+v,{cause:O}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(S)})).then(function(){var E=_.AE(e);
if(!E)throw Error("Na`"+e+"`"+v);return E});
return Azg[e]=d};var czM={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},FiB=function(){var v=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=ZwO(function(){return _.I(function(e){if(e.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?e.return(Promise.resolve()):e.yield(wwg(v),2);v.rsaForList.length>
0&&document.addEventListener("click",v.requestAccessForHelpPanel);_.s9(e)})});
this.requestAccessForHelpPanel=function(){if(!(v.rsaForPromises.length>0)){for(var e=_.a(v.rsaForList),d=e.next();!d.done;d=e.next()){d=d.value;try{v.rsaForPromises.push(document.requestStorageAccessFor(d))}catch(E){}}Promise.all(v.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){v.reset()})}}};
FiB.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var wwg=function(v){var e,d,E,T;return _.I(function(S){switch(S.nextAddress){case 1:e=_.a(Object.values(czM)),d=e.next();case 2:if(d.done){S.jumpTo(0);break}E=d.value;_.qq(S,5);return S.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:E}),7);case 7:T=S.yieldResult;T.state!=="granted"&&v.rsaForList.push(E);_.wk(S,3);break;case 5:_.jl(S);S.jumpTo(0);break;case 3:d=e.next(),S.jumpTo(2)}})};(new FiB).initialize();var QuB=function(v){this.JSC$9964_loader_=v};
QuB.prototype.startHelp=function(v){l4B(this.JSC$9964_loader_,"startHelp",arguments)};
QuB.prototype.JSC$9966_loadChatSupport=function(v){l4B(this.JSC$9964_loader_,"loadChatSupport",arguments)};
var u$n=function(v,e){e=e||{};v=ZXJ(ghc,"help.service.Lazy.create",v,{apiKey:e.apiKey||e.apiKey,asxUiUri:e.asxUiUri||e.asxUiUri,environment:e.environment||e.environment,flow:e.flow||e.flow,frdProductData:e.frdProductData||e.frdProductData,frdProductDataSerializedJspb:e.frdProductDataSerializedJspb||e.frdProductDataSerializedJspb,helpCenterPath:e.helpCenterPath||e.helpCenterPath,locale:e.locale||e.locale||"en-US".replace(/-/g,"_"),nonce:e.nonce||e.nonce,productData:e.productData||e.productData,receiverUri:e.receiverUri||
e.receiverUri,renderApiUri:e.renderApiUri||e.renderApiUri,theme:e.theme||e.theme,window:e.window||e.window});return new QuB(v)},ghc=new XT(s7H,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var nhA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(nhA,_.du);var DuJ=_.mV(nhA);_.UuJ=new function(v,e,d,E){this.configType=v;this.flagName=d;this.defaultValue=E;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 vGA=function(){this.retriever=_.dk().resolve(pwE)};wiS(Node);wiS(Element);var edg=wiS(HTMLElement);wiS(SVGElement);var d4J,EGE,Xh,The;d4J=function(v){return typeof v.className=="string"?v.className:v.getAttribute&&v.getAttribute("class")||""};
EGE=function(v){return v.classList?v.classList:d4J(v).match(/\S+/g)||[]};
_.BJ=function(v,e){typeof v.className=="string"?v.className=e:v.setAttribute&&v.setAttribute("class",e)};
_.Cy=function(v,e){return v.classList?v.classList.contains(e):_.lL(EGE(v),e)};
_.eM=function(v,e){if(v.classList)v.classList.add(e);else if(!_.Cy(v,e)){var d=d4J(v);_.BJ(v,d+(d.length>0?" "+e:e))}};
Xh=function(v,e){if(v.classList)Array.prototype.forEach.call(e,function(T){_.eM(v,T)});
else{var d={};Array.prototype.forEach.call(EGE(v),function(T){d[T]=!0});
Array.prototype.forEach.call(e,function(T){d[T]=!0});
e="";for(var E in d)e+=e.length>0?" "+E:E;_.BJ(v,e)}};
_.p1=function(v,e){v.classList?v.classList.remove(e):_.Cy(v,e)&&_.BJ(v,Array.prototype.filter.call(EGE(v),function(d){return d!=e}).join(" "))};
The=function(v,e){v.classList?Array.prototype.forEach.call(e,function(d){_.p1(v,d)}):_.BJ(v,Array.prototype.filter.call(EGE(v),function(d){return!_.lL(e,d)}).join(" "))};var SE6=function(v){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=v.document},iDg=function(v,e){Wsg(v);
var d=document.createElement("div"),E;(E=e.parentNode)==null||E.insertBefore(d,e);d.tabIndex=0;d.id="fc-focus-trap-pre-div";d=document.createElement("div");var T;(T=e.parentNode)==null||T.insertBefore(d,e.nextSibling);d.tabIndex=0;d.id="fc-focus-trap-post-div";var S=agI(v,e),O=agI(v,e,!0);S&&O&&(v.focusChangeHandler=function(){var b=v.document.activeElement;if(b)if(_.zZ(e,b))v.previouslyFocusedElement=b;else if(b===v.document.activeElement)switch(v.previouslyFocusedElement){case S:O.focus();v.previouslyFocusedElement=
O;break;default:S.focus(),v.previouslyFocusedElement=S}},v.document.addEventListener("focus",v.focusChangeHandler,!0),v.document.addEventListener("focusin",v.focusChangeHandler))},Wsg=function(v){v.focusChangeHandler&&(document.removeEventListener("focus",v.focusChangeHandler,!0),document.removeEventListener("focusin",v.focusChangeHandler),v.focusChangeHandler=null);
var e;(e=document.getElementById("fc-focus-trap-pre-div"))==null||e.remove();var d;(d=document.getElementById("fc-focus-trap-post-div"))==null||d.remove()},ODM=function(v,e,d,E,T){d=d===void 0?!0:d;
var S;T=(S=T===void 0?null:T)!=null?S:agI(v,e,E===void 0?!1:E);T!==null&&(T.focus(),d&&iDg(v,e))};
SE6.prototype.disableButton=function(v,e){e=e===void 0?null:e;v.disabled=!0;e&&_.eM(v,e)};
var agI=function(v,e,d){d=d===void 0?!1:d;if(H1U(e)&&!d)return e;var E=d?[].slice.call(e.children,0).reverse():e.children;E=_.a(E);for(var T=E.next();!T.done;T=E.next())if(T=T.value,edg(T)&&(T=agI(v,T,d)))return T;return H1U(e)&&d?e:null};var Ig0=function(v){this.originalBodyOverflow="";this.JSC$9990_domHelper=NR(v)};
Ig0.prototype.enableScrolling=function(){this.JSC$9990_domHelper.JSC$9317_document_.body.style.overflow=this.originalBodyOverflow};_.vM(_.V4,_.kh);_.W=_.V4.prototype;_.W.JSC$9993_id_=0;_.W.disposeInternal=function(){_.V4.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9991_listener_;delete this.handler_};
_.W.start=function(v){this.stop();this.JSC$9993_id_=sd(this.callback_,v!==void 0?v:this.JSC$9991_interval_)};
_.W.stop=function(){this.isActive()&&_.TO.clearTimeout(this.JSC$9993_id_);this.JSC$9993_id_=0};
_.W.fire=function(){this.stop();this.JSC$9993_doAction_()};
_.W.isActive=function(){return this.JSC$9993_id_!=0};
_.W.JSC$9993_doAction_=function(){this.JSC$9993_id_=0;this.JSC$9991_listener_&&this.JSC$9991_listener_.call(this.handler_)};_.Im=function(v){_.kh.call(this);this.handler_=v;this.JSC$9994_keys_={}};
_.vM(_.Im,_.kh);var bDE=[];_.Im.prototype.listen=function(v,e,d,E){Array.isArray(e)||(e&&(bDE[0]=e.toString()),e=bDE);for(var T=0;T<e.length;T++){var S=_.MC(v,e[T],d||this.handleEvent,E||!1,this.handler_||this);if(!S)break;this.JSC$9994_keys_[S.key]=S}return this};
_.Im.prototype.listenOnce=function(v,e,d,E){return YEB(this,v,e,d,E)};
var YEB=function(v,e,d,E,T,S){if(Array.isArray(d))for(var O=0;O<d.length;O++)YEB(v,e,d[O],E,T,S);else{e=VK(e,d,E||v.handleEvent,T,S||v.handler_||v);if(!e)return v;v.JSC$9994_keys_[e.key]=e}return v};
_.Im.prototype.unlisten=function(v,e,d,E,T){if(Array.isArray(e))for(var S=0;S<e.length;S++)this.unlisten(v,e[S],d,E,T);else if(v=C9M(v,e,d||this.handleEvent,_.Qj(E)?!!E.capture:!!E,T||this.handler_||this))o5(v),delete this.JSC$9994_keys_[v.key];return this};
_.Im.prototype.removeAll=function(){_.f0.forEach(this.JSC$9994_keys_,function(v,e){this.JSC$9994_keys_.hasOwnProperty(e)&&o5(v)},this);
this.JSC$9994_keys_={}};
_.Im.prototype.disposeInternal=function(){_.Im.superClass_.disposeInternal.call(this);this.removeAll()};
_.Im.prototype.handleEvent=function(){throw Error("Oa");};var zx=function(){_.kh.call(this);this.services_={}};
_.vM(zx,_.kh);zx.prototype.connect=function(v){v&&v()};
zx.prototype.isConnected=function(){return!0};
zx.prototype.registerService=function(v,e,d){this.services_[v]={callback:e,objectPayload:!!d}};
zx.prototype.getService=function(v,e){var d=this.services_[v];return d?d:this.defaultService_?{callback:_.kB(this.defaultService_,v),objectPayload:_.Qj(e)}:null};
var m4c=function(v,e){if(e&&typeof v==="string")try{return JSON.parse(v)}catch(d){return null}else if(!e&&typeof v!=="string")return(0,_.kN)(v);return v};
zx.prototype.disposeInternal=function(){zx.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 lI=function(v,e){this.sequence_=[];this.onCancelFunction_=v;this.defaultScope_=e||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
lI.prototype.cancel=function(v){if(this.fired_)this.result_ instanceof lI&&this.result_.cancel();else{if(this.parent_){var e=this.parent_;delete this.parent_;v?e.cancel(v):(e.branches_--,e.branches_<=0&&e.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new HJ(this))}};
lI.prototype.continue_=function(v,e){this.blocked_=!1;yf7(this,v,e)};
var yf7=function(v,e,d){v.fired_=!0;v.result_=d;v.hadError_=!e;qEM(v)},hd0=function(v){if(v.fired_){if(!v.silentlyCanceled_)throw new rfM(v);
v.silentlyCanceled_=!1}};
lI.prototype.callback=function(v){hd0(this);yf7(this,!0,v)};
lI.prototype.errback=function(v){hd0(this);yf7(this,!1,v)};
var Ks2=function(v,e,d){At(v,e,null,d)};
lI.prototype.finally=function(v){var e=this;return $4i(new Promise(function(d,E){At(e,function(T){v();d(T)},function(T){v();
E(T)})}))};
var At=function(v,e,d,E){var T=v.fired_;T||(e===d?e=d=ht(e):(e=ht(e),d=ht(d)));v.sequence_.push([e,d,E]);T&&qEM(v)};
lI.prototype.then=function(v,e,d){var E,T,S=new _.yf(function(O,b){T=O;E=b});
At(this,T,function(O){O instanceof HJ?S.cancel():E(O);return j_A},this);
return S.then(v,e,d)};
wuM(lI);var s_I=function(v,e){e instanceof lI?Ks2(v,(0,_.LX)(e.branch,e)):Ks2(v,function(){return e})};
lI.prototype.branch=function(v){var e=new lI;At(this,e.callback,e.errback,e);v&&(e.parent_=this,this.branches_++);return e};
lI.prototype.isError=function(v){return v instanceof Error};
var Nh0=function(v){return Qp(v.sequence_,function(e){return typeof e[1]==="function"})},j_A={},qEM=function(v){if(v.unhandledErrorId_&&v.fired_&&Nh0(v)){var e=v.unhandledErrorId_,d=kqu[e];
d&&(_.TO.clearTimeout(d.JSC$10011_id_),delete kqu[e]);v.unhandledErrorId_=0}v.parent_&&(v.parent_.branches_--,delete v.parent_);e=v.result_;for(var E=d=!1;v.sequence_.length&&!v.blocked_;){var T=v.sequence_.shift(),S=T[0],O=T[1];T=T[2];if(S=v.hadError_?O:S)try{var b=S.call(T||v.defaultScope_,e);b===j_A&&(b=void 0);b!==void 0&&(v.hadError_=v.hadError_&&(b==e||v.isError(b)),v.result_=e=b);if(F7i(e)||typeof _.TO.Promise==="function"&&e instanceof _.TO.Promise)E=!0,v.blocked_=!0}catch(Y){e=Y,v.hadError_=
!0,Nh0(v)||(d=!0)}}v.result_=e;E&&(b=(0,_.LX)(v.continue_,v,!0),E=(0,_.LX)(v.continue_,v,!1),e instanceof lI?(At(e,b,E),e.blocking_=!0):e.then(b,E));d&&(e=new LsJ(e),kqu[e.JSC$10011_id_]=e,v.unhandledErrorId_=e.JSC$10011_id_)},$4i=function(v){var e=new lI;
v.then(function(d){e.callback(d)},function(d){e.errback(d)});
return e},rfM=function(){_.dH.call(this)};
_.vM(rfM,_.dH);rfM.prototype.message="Deferred has already fired";rfM.prototype.name="AlreadyCalledError";var HJ=function(){_.dH.call(this)};
_.vM(HJ,_.dH);HJ.prototype.message="Deferred was canceled";HJ.prototype.name="CanceledError";var LsJ=function(v){this.JSC$10011_id_=_.TO.setTimeout((0,_.LX)(this.throwError,this),0);this.JSC$10011_error_=v};
LsJ.prototype.throwError=function(){delete kqu[this.JSC$10011_id_];throw this.JSC$10011_error_;};
var kqu={};var Vx2={1:"NativeMessagingTransport"},oG6=["pu","lru","pru","lpu","ppu"],Gqu=function(){for(var v=10,e=Jf2,d=e.length,E="";v-- >0;)E+=e.charAt(Math.floor(Math.random()*d));return E},Jf2="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var ZH=function(v){_.kh.call(this);this.JSC$10014_domHelper_=v||NR()};
_.vM(ZH,_.kh);ZH.prototype.transportType=0;ZH.prototype.getWindow=function(){return this.JSC$10014_domHelper_.getWindow()};
ZH.prototype.getName=function(){return Vx2[String(this.transportType)]||""};var cJ=function(v,e,d,E,T){ZH.call(this,d);this.JSC$10017_channel_=v;this.protocolVersion_=T||2;this.peerHostname_=e||"*";this.JSC$10017_eventHandler_=new _.Im(this);this.maybeAttemptToConnectTimer_=new _.Ow(100,this.getWindow());this.oneSidedHandshake_=!!E;this.setupAckReceived_=new lI;this.setupAckSent_=new lI;this.JSC$10017_connected_=new lI;this.endpointId_=Gqu();this.peerEndpointId_=null;this.oneSidedHandshake_?Mxg(this.JSC$10017_channel_)==1?s_I(this.JSC$10017_connected_,this.setupAckReceived_):
s_I(this.JSC$10017_connected_,this.setupAckSent_):(s_I(this.JSC$10017_connected_,this.setupAckReceived_),this.protocolVersion_==2&&s_I(this.JSC$10017_connected_,this.setupAckSent_));Ks2(this.JSC$10017_connected_,this.notifyConnected_,this);this.JSC$10017_connected_.callback(!0);this.JSC$10017_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.vM(cJ,ZH);cJ.prototype.peerProtocolVersion_=null;cJ.prototype.initialized_=!1;cJ.prototype.transportType=1;var txB={};cJ.prototype.sendTimerId_=0;
var P30=function(v){var e=v.event_.data;if(typeof e!=="string")return!1;var d=e.indexOf("|"),E=e.indexOf(":");if(d==-1||E==-1)return!1;var T=e.substring(0,d);d=e.substring(d+1,E);e=e.substring(E+1);if(E=w6[T])return E.xpcDeliver(d,e,v.event_.origin),!0;E=fgc(e)[0];for(var S in w6){var O=w6[S];if(Mxg(O)==1&&!O.isConnected()&&d=="tp"&&(E=="SETUP"||E=="SETUP_NTPV2")&&Rd2(O,v.event_.origin))return delete w6[O.name],O.name=T,w6[T]=O,O.xpcDeliver(d,e),!0}return!1},x4B=function(v){v.protocolVersion_!=2||
v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=2||v.send("tp","SETUP_NTPV2,"+v.endpointId_);
v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=1||v.send("tp","SETUP")},BhJ=function(v,e){if(v.protocolVersion_!=2||v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=2||e!=2){if(v.peerProtocolVersion_!=null&&v.peerProtocolVersion_!=1||e!=1)return;
v.send("tp","SETUP_ACK")}else v.send("tp","SETUP_ACK_NTPV2");v.setupAckSent_.fired_||v.setupAckSent_.callback(!0)},C3n=function(v,e){e>v.peerProtocolVersion_&&(v.peerProtocolVersion_=e);
v.peerProtocolVersion_==1&&(v.setupAckSent_.fired_||v.oneSidedHandshake_||v.setupAckSent_.callback(!0),v.peerEndpointId_=null)};
_.W=cJ.prototype;_.W.connect=function(){var v=this.getWindow(),e=_.gH(v),d=txB[e];typeof d!=="number"&&(d=0);d==0&&_.MC(v.postMessage?v:v.document,"message",P30,!1,cJ);txB[e]=d+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.W.maybeAttemptToConnect_=function(){var v=Mxg(this.JSC$10017_channel_)==0;this.oneSidedHandshake_&&v||this.JSC$10017_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),x4B(this))};
_.W.send=function(v,e){var d=this.JSC$10017_channel_.peerWindowObject_;d&&(this.send=function(E,T){var S=this,O=this.JSC$10017_channel_.name;this.sendTimerId_=sd(function(){S.sendTimerId_=0;try{var b=d.postMessage?d:d.document;b.postMessage&&b.postMessage(O+"|"+E+":"+T,S.peerHostname_)}catch(Y){}},0)},this.send(v,e))};
_.W.notifyConnected_=function(){var v=this.JSC$10017_channel_,e=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;v.isConnected()||v.connectionDelay_&&v.connectionDelay_.isActive()||(v.state_=2,_.p0(v.connectionDelay_),e!==void 0?(v.connectionDelay_=new _.V4(v.connectCb_,e),v.connectionDelay_.start()):(v.connectionDelay_=null,v.connectCb_()))};
_.W.disposeInternal=function(){if(this.initialized_){var v=this.getWindow(),e=_.gH(v),d=txB[e];txB[e]=d-1;d==1&&_.qs(v.postMessage?v:v.document,"message",P30,!1,cJ)}this.sendTimerId_&&(_.TO.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.p0(this.JSC$10017_eventHandler_);delete this.JSC$10017_eventHandler_;_.p0(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10017_connected_.cancel();delete this.JSC$10017_connected_;delete this.send;cJ.superClass_.disposeInternal.call(this)};
var fgc=function(v){v=v.split(",");v[1]=v[1]||null;return v};var zdA;_.Fh=function(v){if(v.getValues&&typeof v.getValues=="function")return v.getValues();if(typeof Map!=="undefined"&&v instanceof Map||typeof Set!=="undefined"&&v instanceof Set)return Array.from(v.values());if(typeof v==="string")return v.split("");if(_.c3(v)){for(var e=[],d=v.length,E=0;E<d;E++)e.push(v[E]);return e}return _.f0.getValues(v)};
_.Xx7=function(v){if(v.getKeys&&typeof v.getKeys=="function")return v.getKeys();if(!v.getValues||typeof v.getValues!="function"){if(typeof Map!=="undefined"&&v instanceof Map)return Array.from(v.keys());if(!(typeof Set!=="undefined"&&v instanceof Set)){if(_.c3(v)||typeof v==="string"){var e=[];v=v.length;for(var d=0;d<v;d++)e.push(d);return e}return _.f0.getKeys(v)}}};
zdA=function(v,e,d){if(v.forEach&&typeof v.forEach=="function")v.forEach(e,d);else if(_.c3(v)||typeof v==="string")Array.prototype.forEach.call(v,e,d);else for(var E=_.Xx7(v),T=_.Fh(v),S=T.length,O=0;O<S;O++)e.call(d,T[O],E&&E[O],v)};var xp0,py,eP,FsJ,lg2,Afg,HDJ,wxc,ZDu;
_.vF=function(v,e){this.JSC$10022_domain_=this.userInfo_=this.scheme_="";this.JSC$10022_port_=null;this.fragment_=this.JSC$10022_path_="";this.JSC$10022_ignoreCase_=!1;var d;v instanceof _.vF?(this.JSC$10022_ignoreCase_=e!==void 0?e:v.JSC$10022_ignoreCase_,_.QQ(this,v.scheme_),this.userInfo_=v.userInfo_,_.g6(this,v.JSC$10022_domain_),_.uI(this,v.JSC$10022_port_),_.ny(this,v.getPath()),_.DH(this,v.JSC$10022_queryData_.clone()),_.Ud(this,v.fragment_)):v&&(d=_.n4(String(v)))?(this.JSC$10022_ignoreCase_=
!!e,_.QQ(this,d[1]||"",!0),this.userInfo_=py(d[2]||""),_.g6(this,d[3]||"",!0),_.uI(this,d[4]),_.ny(this,d[5]||"",!0),_.DH(this,d[6]||"",!0),_.Ud(this,d[7]||"",!0)):(this.JSC$10022_ignoreCase_=!!e,this.JSC$10022_queryData_=new _.vr(null,this.JSC$10022_ignoreCase_))};
_.vF.prototype.toString=function(){var v=[],e=this.scheme_;e&&v.push(eP(e,lg2,!0),":");var d=this.JSC$10022_domain_;if(d||e=="file")v.push("//"),(e=this.userInfo_)&&v.push(eP(e,lg2,!0),"@"),v.push(_.cb(d).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),d=this.JSC$10022_port_,d!=null&&v.push(":",String(d));if(d=this.getPath())this.JSC$10022_domain_&&d.charAt(0)!="/"&&v.push("/"),v.push(eP(d,d.charAt(0)=="/"?HDJ:Afg,!0));(d=this.JSC$10022_queryData_.toString())&&v.push("?",d);(d=this.fragment_)&&v.push("#",
eP(d,ZDu));return v.join("")};
_.vF.prototype.resolve=function(v){var e=this.clone(),d=!!v.scheme_;d?_.QQ(e,v.scheme_):d=!!v.userInfo_;d?e.userInfo_=v.userInfo_:d=!!v.JSC$10022_domain_;d?_.g6(e,v.JSC$10022_domain_):d=v.JSC$10022_port_!=null;var E=v.getPath();if(d)_.uI(e,v.JSC$10022_port_);else if(d=!!v.JSC$10022_path_){if(E.charAt(0)!="/")if(this.JSC$10022_domain_&&!this.JSC$10022_path_)E="/"+E;else{var T=e.getPath().lastIndexOf("/");T!=-1&&(E=e.getPath().slice(0,T+1)+E)}T=E;if(T==".."||T==".")E="";else if(_.bL(T,"./")||_.bL(T,
"/.")){E=_.aU(T,"/");T=T.split("/");for(var S=[],O=0;O<T.length;){var b=T[O++];b=="."?E&&O==T.length&&S.push(""):b==".."?((S.length>1||S.length==1&&S[0]!="")&&S.pop(),E&&O==T.length&&S.push("")):(S.push(b),E=!0)}E=S.join("/")}else E=T}d?_.ny(e,E):d=v.JSC$10022_queryData_.toString()!=="";d?_.DH(e,v.JSC$10022_queryData_.clone()):d=!!v.fragment_;d&&_.Ud(e,v.fragment_);return e};
_.vF.prototype.clone=function(){return new _.vF(this)};
_.QQ=function(v,e,d){v.scheme_=d?py(e,!0):e;v.scheme_&&(v.scheme_=v.scheme_.replace(/:$/,""));return v};
_.g6=function(v,e,d){v.JSC$10022_domain_=d?py(e,!0):e;return v};
_.uI=function(v,e){if(e){e=Number(e);if(isNaN(e)||e<0)throw Error("Pa`"+e);v.JSC$10022_port_=e}else v.JSC$10022_port_=null;return v};
_.vF.prototype.getPath=function(){return this.JSC$10022_path_};
_.ny=function(v,e,d){v.JSC$10022_path_=d?py(e,!0):e;return v};
_.DH=function(v,e,d){e instanceof _.vr?(v.JSC$10022_queryData_=e,cfE(v.JSC$10022_queryData_,v.JSC$10022_ignoreCase_)):(d||(e=eP(e,wxc)),v.JSC$10022_queryData_=new _.vr(e,v.JSC$10022_ignoreCase_));return v};
_.cw=function(v,e,d){v.JSC$10022_queryData_.set(e,d);return v};
_.Z4=function(v,e){return v.JSC$10022_queryData_.get(e)};
_.Ud=function(v,e,d){v.fragment_=d?py(e):e;return v};
_.dG=function(v){_.cw(v,"zx",Hw());return v};
_.Az=function(v,e){return v instanceof _.vF?v.clone():new _.vF(v,e)};
xp0=function(v,e){v instanceof _.vF||(v=_.Az(v));e instanceof _.vF||(e=_.Az(e));return v.resolve(e)};
py=function(v,e){return v?e?decodeURI(v.replace(/%25/g,"%2525")):decodeURIComponent(v):""};
eP=function(v,e,d){return typeof v==="string"?(v=encodeURI(v).replace(e,FsJ),d&&(v=v.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),v):null};
FsJ=function(v){v=v.charCodeAt(0);return"%"+(v>>4&15).toString(16)+(v&15).toString(16)};
lg2=/[#\/\?@]/g;Afg=/[#\?:]/g;HDJ=/[#\?]/g;wxc=/[#\?@]/g;ZDu=/#/g;_.vr=function(v,e){this.count_=this.keyMap_=null;this.encodedQuery_=v||null;this.JSC$10023_ignoreCase_=!!e};
_.E3=function(v){v.keyMap_||(v.keyMap_=new Map,v.count_=0,v.encodedQuery_&&R_u(v.encodedQuery_,function(e,d){v.add(vi(e),d)}))};
_.W=_.vr.prototype;_.W.getCount=function(){_.E3(this);return this.count_};
_.W.add=function(v,e){_.E3(this);this.encodedQuery_=null;v=Te(this,v);var d=this.keyMap_.get(v);d||this.keyMap_.set(v,d=[]);d.push(e);this.count_+=1;return this};
_.W.remove=function(v){_.E3(this);v=Te(this,v);return this.keyMap_.has(v)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(v).length,this.keyMap_.delete(v)):!1};
_.W.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.W.isEmpty=function(){_.E3(this);return this.count_==0};
_.W.containsKey=function(v){_.E3(this);v=Te(this,v);return this.keyMap_.has(v)};
_.W.containsValue=function(v){var e=this.getValues();return _.lL(e,v)};
_.W.forEach=function(v,e){_.E3(this);this.keyMap_.forEach(function(d,E){d.forEach(function(T){v.call(e,T,E,this)},this)},this)};
_.W.getKeys=function(){_.E3(this);for(var v=Array.from(this.keyMap_.values()),e=Array.from(this.keyMap_.keys()),d=[],E=0;E<e.length;E++)for(var T=v[E],S=0;S<T.length;S++)d.push(e[E]);return d};
_.W.getValues=function(v){_.E3(this);var e=[];if(typeof v==="string")this.containsKey(v)&&(e=e.concat(this.keyMap_.get(Te(this,v))));else{v=Array.from(this.keyMap_.values());for(var d=0;d<v.length;d++)e=e.concat(v[d])}return e};
_.W.set=function(v,e){_.E3(this);this.encodedQuery_=null;v=Te(this,v);this.containsKey(v)&&(this.count_-=this.keyMap_.get(v).length);this.keyMap_.set(v,[e]);this.count_+=1;return this};
_.W.get=function(v,e){if(!v)return e;v=this.getValues(v);return v.length>0?String(v[0]):e};
_.Q_0=function(v,e,d){v.remove(e);d.length>0&&(v.encodedQuery_=null,v.keyMap_.set(Te(v,e),_.Zt(d)),v.count_+=d.length)};
_.vr.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var v=[],e=Array.from(this.keyMap_.keys()),d=0;d<e.length;d++){var E=e[d],T=_.cb(E);E=this.getValues(E);for(var S=0;S<E.length;S++){var O=T;E[S]!==""&&(O+="="+_.cb(E[S]));v.push(O)}}return this.encodedQuery_=v.join("&")};
_.vr.prototype.clone=function(){var v=new _.vr;v.encodedQuery_=this.encodedQuery_;this.keyMap_&&(v.keyMap_=new Map(this.keyMap_),v.count_=this.count_);return v};
var Te=function(v,e){e=String(e);v.JSC$10023_ignoreCase_&&(e=e.toLowerCase());return e},cfE=function(v,e){e&&!v.JSC$10023_ignoreCase_&&(_.E3(v),v.encodedQuery_=null,v.keyMap_.forEach(function(d,E){var T=E.toLowerCase();
E!=T&&(this.remove(E),_.Q_0(this,T,d))},v));
v.JSC$10023_ignoreCase_=e};
_.vr.prototype.extend=function(v){for(var e=0;e<arguments.length;e++)zdA(arguments[e],function(d,E){this.add(E,d)},this)};var SP=function(v,e){zx.call(this);for(var d=0,E;E=oG6[d];d++)if(E in v&&!/^https?:\/\//.test(v[E]))throw Error("Ra`"+v[E]+"`"+E);this.cfg_=v;this.name=this.cfg_.cn||Gqu();this.JSC$10018_domHelper_=e||NR();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Im(this);v.lpu=v.lpu||tsu(this.JSC$10018_domHelper_.getWindow().location.href)+"/robots.txt";v.ppu=v.ppu||tsu(v.pu||"")+"/robots.txt";w6[this.name]=this;C9M(window,"unload",gGn)||VK(window,"unload",gGn)};
_.vM(SP,zx);var uKe=RegExp("^%*tp$"),nGg=RegExp("^%+tp$");_.W=SP.prototype;_.W.connectionDelay_=null;_.W.peerWindowDeferred_=null;_.W.transport_=null;_.W.state_=1;_.W.isConnected=function(){return this.state_==2};
_.W.peerWindowObject_=null;_.W.iframeElement_=null;_.W.connect=function(v){this.connectCb_=v||_.mv;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Ks2(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.W.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10018_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var v=this.iframeElement_.contentWindow;v||(v=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=v}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10018_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new cJ(this,this.cfg_.ph,this.JSC$10018_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.W.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.p0(this.transport_);this.connectCb_=this.transport_=null;_.p0(this.connectionDelay_);this.connectionDelay_=null};
_.W.send=function(v,e){if(this.isConnected()){try{var d=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(T){d=!1}if(d){_.Qj(e)&&(e=(0,_.kN)(e));d=this.transport_;var E=d.send;uKe.test(v)&&(v="%"+v);v=v.replace(/[%:|]/g,encodeURIComponent);E.call(d,v,e)}else this.close()}};
_.W.xpcDeliver=function(v,e,d){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.LX)(this.xpcDeliver,this,v,e,d));else if(Rd2(this,d)&&!this.isDisposed()&&this.state_!=3)if(v&&v!="tp")this.isConnected()&&(v=v.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),v=nGg.test(v)?v.substring(1):v,v=this.getService(v,e))&&(e=m4c(e,v.objectPayload),e!=null&&v.callback(e));else switch(v=this.transport_,d=fgc(e),e=d[1],d[0]){case "SETUP_ACK":C3n(v,1);v.setupAckReceived_.fired_||v.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":v.protocolVersion_==2&&(C3n(v,2),v.setupAckReceived_.fired_||v.setupAckReceived_.callback(!0));break;case "SETUP":C3n(v,1);BhJ(v,1);break;case "SETUP_NTPV2":v.protocolVersion_==2&&(d=v.peerProtocolVersion_,C3n(v,2),BhJ(v,2),d!=1&&v.peerEndpointId_==null||v.peerEndpointId_==e||x4B(v),v.peerEndpointId_=e)}};
var Mxg=function(v){var e=v.cfg_.role;return typeof e==="number"?e:window.parent==v.peerWindowObject_?1:0},Rd2=function(v,e){var d=v.cfg_.ph;
return _.IU(e==null?"":String(e))||_.IU(d==null?"":String(d))||e==v.cfg_.ph};
SP.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete w6[this.name];_.p0(this.peerLoadHandler_);delete this.peerLoadHandler_;SP.superClass_.disposeInternal.call(this)};
var gGn=function(){for(var v in w6)_.p0(w6[v])},w6={};var U4M=function(v,e){this.JSC$10032_win=v;this.allowAdsHttpEndpoint=e;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10032_domHelper=NR(v);this.scrollManager=new Ig0(v);this.accessibilityManager=new SE6(v);D4e(this)},D4e=function(v){var e=function(){v.allowAdsPopup&&v.allowAdsPopup.style.setProperty("display","none","important");
v.wallElement.style.setProperty("display","","important");Wsg(v.accessibilityManager);ODM(v.accessibilityManager,v.wallElement.querySelector(".fc-dialog-container"),!1,!1,v.wallElement.querySelector(".fc-button-whitelist"));v.scrollManager.enableScrolling()};
v.allowAdsPopup=v.JSC$10032_domHelper.JSC$9319_createDom("DIV",{"class":"fc-whitelist-root"});v.allowAdsPopup.style.setProperty("display","none","important");v.JSC$10032_domHelper.appendChild(v.JSC$10032_domHelper.JSC$9317_document_.body,v.allowAdsPopup);var d=v.JSC$10032_domHelper.JSC$9319_createDom("DIV",{"class":"fc-dialog-overlay"});v.JSC$10032_domHelper.appendChild(v.allowAdsPopup,d);var E=v.JSC$10032_domHelper.JSC$9319_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:e});v.JSC$10032_domHelper.appendChild(v.allowAdsPopup,
E);d=v.JSC$10032_domHelper.JSC$9319_createDom("IFRAME");d.className="fc-whitelist-dialog";d.frameBorder="0";d.id="fc-whitelist-iframe";d.tabIndex="0";_.c$(d,v.allowAdsHttpEndpoint);v.JSC$10032_domHelper.appendChild(E,d);E={};E.pu=_.LY(v.allowAdsHttpEndpoint).toString();E.tp=1;E.cn="fc-whitelist-channel";E.ifrid=d.id;E.osh=!0;v.allowAdsCrossPageChannel=new SP(E);v.allowAdsCrossPageChannel.registerService("close",e);v.allowAdsCrossPageChannel.registerService("refresh",function(){v.JSC$10032_win.location.reload()});
v.allowAdsCrossPageChannel.registerService("resize",function(T){if(T){var S=v.allowAdsPopup.querySelector(".fc-whitelist-dialog");T.width&&S.style.setProperty("width",T.width,"important");T.height&&S.style.setProperty("height",T.height,"important")}},!0);
v.allowAdsCrossPageChannel.connect()};
U4M.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10032_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Wr=window,a9=document,pxi=Wr.location,vcg=function(){},eZ7=/\[native code\]/,ia=function(v,e,d){return v[e]=v[e]||d},d97=function(v){v=v.sort();
for(var e=[],d=void 0,E=0;E<v.length;E++){var T=v[E];T!=d&&e.push(T);d=T}return e},O3=function(){var v;
if((v=Object.create)&&eZ7.test(v))v=v(null);else{v={};for(var e in v)v[e]=void 0}return v},I9=ia(Wr,"gapi",{});var ba={};ba=ia(Wr,"___jsl",O3());ia(ba,"I",0);ia(ba,"hel",10);var Ecu=function(){var v=pxi.href;if(ba.dpo)var e=ba.h;else{e=ba.h;var d=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),E=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(v=v&&(d.exec(v)||E.exec(v)))try{e=decodeURIComponent(v[2])}catch(T){}}return e},TZB=function(v){var e=ia(ba,"PQ",[]);
ba.PQ=[];var d=e.length;if(d===0)v();else for(var E=0,T=function(){++E===d&&v()},S=0;S<d;S++)e[S](T)},SWJ=function(v){return ia(ia(ba,"H",O3()),v,O3())};var mW=function(v){this.JSC$10034_obj_=v};
mW.prototype.value=function(){return this.JSC$10034_obj_};
mW.prototype.getWidth=function(){return this.JSC$10034_obj_.width};
mW.prototype.getHeight=function(){return this.JSC$10034_obj_.height};
mW.prototype.getStyle=function(){return this.JSC$10034_obj_.style};var WEi=function(v){this.JSC$10037_obj_=v||{}};
_.W=WEi.prototype;_.W.value=function(){return this.JSC$10037_obj_};
_.W.setUrl=function(v){this.JSC$10037_obj_.url=v;return this};
_.W.getUrl=function(){return this.JSC$10037_obj_.url};
_.W.getStyle=function(){return this.JSC$10037_obj_.style};
_.W.getId=function(){return this.JSC$10037_obj_.id};
_.W.getContext=function(){return this.JSC$10037_obj_.context};
var aVu=function(v){v.JSC$10037_obj_.attributes=v.JSC$10037_obj_.attributes||{};return new mW(v.JSC$10037_obj_.attributes)};var i4A=function(){WEi.apply(this,arguments)};
_.V(i4A,WEi);var O4E=ia(ba,"perf",O3());ia(O4E,"g",O3());var IV6=ia(O4E,"i",O3());ia(O4E,"r",[]);O3();O3();var YWE=function(v,e,d){e&&e.length>0&&(e=b47(e),d&&d.length>0&&(e+="___"+b47(d)),e.length>28&&(e=e.substr(0,28)+(e.length-28)),d=e,e=ia(IV6,"_p",O3()),ia(e,d,O3())[v]=(new Date).getTime(),e=O4E.r,typeof e==="function"?e(v,"_p",d):e.push([v,"_p",d]))},b47=function(v){return v.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var m9M=O3(),yEI=[],yJ=function(v){throw Error("Ua`"+v);};
yEI.push(["jsl",function(v){for(var e in v)if(Object.prototype.hasOwnProperty.call(v,e)){var d=v[e];typeof d=="object"?ba[e]=ia(ba,e,[]).concat(d):ia(ba,e,d)}if(e=v.u)v=ia(ba,"us",[]),v.push(e),(e=/^https:(.*)$/.exec(e))&&v.push("http:"+e[1])}]);
var qWA=/^(\/[a-zA-Z0-9_\-]+)+$/,rEg=[/\/amp\//,/\/amp$/,/^\/amp$/],hZn=/^[a-zA-Z0-9\-_\.,!]+$/,KEJ=/^gapi\.loaded_[0-9]+$/,$9B=/^[a-zA-Z0-9,._-]+$/,krc=function(v,e,d,E,T){var S=v.split(";"),O=S.shift(),b=m9M[O],Y=null;b?Y=b(S,e,d,E):yJ("no hint processor for: "+O);Y||yJ("failed to generate load url");e=Y;d=e.match(jsc);(E=e.match(ssE))&&E.length===1&&NZe.test(e)&&d&&d.length===1||yJ("failed sanity: "+v);try{v="?";if(T&&T.length>0){oSM(T);var q=T.join(",");Y=Y+"?le="+q;v="&"}if(ba.rol){var r=ba.ol;
r&&r.length&&(Y=""+Y+v+"ol="+r.length)}}catch(h){}return Y},ocA=function(v,e,d,E){v=LEn(v);
KEJ.test(d)||yJ("invalid_callback");e=VIB(e);E=E&&E.length?VIB(E):null;var T=function(S){return encodeURIComponent(S).replace(/%2C/g,",")};
return[encodeURIComponent(v.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",T(v.version),"/m=",T(e),E?"/exm="+T(E):"","/rt=j/sv=1/d=1/ed=1",v.activeMods?"/am="+T(v.activeMods):"",v.resourceSig?"/rs="+T(v.resourceSig):"",v.zcms?"/t="+T(v.zcms):"","/cb=",T(d)].join("")},LEn=function(v){v.charAt(0)!=="/"&&yJ("relative path");
for(var e=v.substring(1).split("/"),d=[];e.length;){v=e.shift();if(!v.length||v.indexOf(".")==0)yJ("empty/relative directory");else if(v.indexOf("=")>0){e.unshift(v);break}d.push(v)}v={};for(var E=0,T=e.length;E<T;++E){var S=e[E].split("="),O=decodeURIComponent(S[0]),b=decodeURIComponent(S[1]);S.length==2&&O&&b&&(v[O]=v[O]||b)}e="/"+d.join("/");qWA.test(e)||yJ("invalid_prefix");d=0;for(E=rEg.length;d<E;++d)rEg[d].test(e)&&yJ("invalid_prefix");d=JE2(v,"k",!0);E=JE2(v,"am");T=JE2(v,"rs");v=JE2(v,"t");
return{pathPrefix:e,version:d,activeMods:E,resourceSig:T,zcms:v}},VIB=function(v){for(var e=[],d=0,E=v.length;d<E;++d){var T=v[d].replace(/\./g,"_").replace(/-/g,"_");
$9B.test(T)&&e.push(T)}return e.join(",")},JE2=function(v,e,d){v=v[e];
!v&&d&&yJ("missing: "+e);if(v){if(hZn.test(v))return v;yJ("invalid: "+e)}return null},NZe=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,ssE=/\/cb=/g,jsc=/\/\//g;
m9M.m=function(v,e,d,E){(v=v[0])||yJ("missing_hint");return"https://apis.google.com"+ocA(v,e,d,E)};
var Gr0=decodeURI("%73cript"),MIM=/^[-+_0-9\/A-Za-z]+={0,2}$/,tI7=function(v,e){for(var d=[],E=0;E<v.length;++E){var T=v[E],S;if(S=T){a:{for(S=0;S<e.length;S++)if(e[S]===T)break a;S=-1}S=S<0}S&&d.push(T)}return d},fVu=function(){var v=ba.nonce;
return v!==void 0?v&&v===String(v)&&v.match(MIM)?v:ba.nonce=null:a9.querySelector?(v=a9.querySelector("script[nonce]"))?(v=v.nonce||v.getAttribute("nonce")||"",v&&v===String(v)&&v.match(MIM)?ba.nonce=v:ba.nonce=null):null:null},x9B=function(v){if(a9.readyState!="loading")RZJ(v);
else{var e=fVu(),d="";e!==null&&(d=' nonce="'+e+'"');v="<"+Gr0+' src="'+encodeURI(v)+'"'+d+"></"+Gr0+">";a9.write(PgM?PgM.createHTML(v):v)}},RZJ=function(v){var e=a9.createElement(Gr0);
e.setAttribute("src",PgM?PgM.createScriptURL(v):v);v=fVu();v!==null&&e.setAttribute("nonce",v);e.async="true";(v=a9.getElementsByTagName(Gr0)[0])?v.parentNode.insertBefore(e,v):(a9.head||a9.body||a9.documentElement).appendChild(e)},Cg7=function(v,e,d){BZJ(function(){var E=e===Ecu()?ia(I9,"_",O3()):O3();
E=ia(SWJ(e),"_",E);v(E)},d)},oZM=function(v,e){var d=e||{};
typeof e=="function"&&(d={},d.callback=e);var E=(e=d)&&e._c;if(E)for(var T=0;T<yEI.length;T++){var S=yEI[T][0],O=yEI[T][1];O&&Object.prototype.hasOwnProperty.call(E,S)&&O(E[S],v,e)}e=[];v?e=v.split(":"):d.features&&(e=d.features);if(!(v=d.h)&&(v=Ecu(),!v))throw Error("Va");XbJ(e||[],d,v)},XbJ=function(v,e,d){v=d97(v)||[];
var E=e.callback,T=e.config,S=e.timeout,O=e.ontimeout,b=e.onerror,Y=void 0;typeof b=="function"&&(Y=b);var q=null,r=!1;if(S&&!O||!S&&O)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";b=ia(SWJ(d),"r",[]).sort();var h=ia(SWJ(d),"L",[]).sort(),K=ba.le||[],k=[].concat(b),J=function(U,F){if(r)return 0;Wr.clearTimeout(q);h.push.apply(h,R);var g=((I9||{}).config||{}).update;g?g(T):T&&ia(ba,"cu",[]).push(T);if(F){YWE("me0",U,k);try{Cg7(F,d,Y)}finally{YWE("me1",U,k)}}return 1};
S>0&&(q=Wr.setTimeout(function(){r=!0;O()},S));
var R=tI7(v,h);if(R.length){R=tI7(v,b);var B=ia(ba,"CP",[]),X=B.length;B[X]=function(U){if(!U)return 0;YWE("ml1",R,k);var F=function(Q){B[X]=null;J(R,U)&&TZB(function(){E&&E();Q()})},g=function(){var Q=B[X+1];
Q&&Q()};
X>0&&B[X-1]?B[X]=function(){F(g)}:F(g)};
if(R.length){var Z="loaded_"+ba.I++;I9[Z]=function(U){B[X](U);I9[Z]=null};
v=krc(d,R,"gapi."+Z,b,K);b.push.apply(b,R);YWE("ml0",R,k);e.sync||Wr.___gapisync?x9B(v):RZJ(v)}else B[X](vcg)}else J(R)&&E&&E()},zZB;
var lV6=null,H47=_.TO.trustedTypes;if(H47&&H47.createPolicy){try{lV6=H47.createPolicy("goog#gapi",{createHTML:cvM,createScript:cvM,createScriptURL:cvM})}catch(v){_.TO.console&&_.TO.console.error(v.message)}zZB=lV6}else zZB=lV6;var PgM=zZB,BZJ=function(v,e){if(ba.hee&&ba.hel>0)try{return v()}catch(d){e&&e(d),ba.hel--,oZM("debug_error",function(){try{window.___jsl.hefn(d)}catch(E){throw d;}})}else try{return v()}catch(d){throw e&&e(d),d;
}},AEi=I9.load;
AEi&&ia(ba,"ol",[]).push(AEi);I9.load=function(v,e){return BZJ(function(){return oZM(v,e)})};var nLs;var cEn=function(v,e){var d=d||[];this.serviceId_=v;this.moduleId_=e||null;this.dependencies_=[];Z4M(this,d)};
cEn.prototype.toString=function(){return this.serviceId_};
cEn.prototype.getModuleId=function(){return this.moduleId_};
var Z4M=function(v,e){var d=!1;d=d===void 0?!1:d;v.dependencies_=v.dependencies_.concat(e);if(d){if(!v.moduleId_)throw Error("Wa`"+v.serviceId_);e.map(function(E){return E.getModuleId()}).forEach(function(E){D_0(function(T){T.addExtraEdge(v.moduleId_,E)})})}};var dg0=new cEn("MpJwZc","MpJwZc");var TVM=new _.In("a"),EBU=function(v,e,d){_.bI.call(this,v,e);this.node=e;this.kind=d};
_.V(EBU,_.bI);var wbg=function(){this.JSC$10050_keys_={};this.urlPrefix_="";this.JSC$10050_queryData_={}};
wbg.prototype.toString=function(){var v=this.urlPrefix_+FEc(this),e=_.q_(this.JSC$10050_queryData_),d="";e!=""&&(d="?"+e);return v+d};
var Qsg=function(v){v=qU(v,"md");return!!v&&v!=="0"},FEc=function(v){var e=[],d=(0,_.LX)(function(E){this.JSC$10050_keys_[E]!==void 0&&e.push(E+"="+this.JSC$10050_keys_[E])},v);
Qsg(v)?(d("md"),d("k"),d("ck"),d("am"),d("rs"),d("gssmodulesetproto"),d("slk"),d("dti")):(d("sdch"),d("k"),d("ck"),d("am"),d("rt"),"d"in v.JSC$10050_keys_||rG(v,"d","0"),d("d"),d("exm"),d("excm"),(v.JSC$10050_keys_.excm||v.JSC$10050_keys_.exm)&&e.push("ed=1"),d("im"),d("dg"),d("sm"),qU(v,"br")!="1"&&qU(v,"br")!="0"||d("br"),d("br-d"),qU(v,"rb")=="1"&&d("rb"),qU(v,"zs")!=="0"&&d("zs"),gc7(v)!==""&&d("wt"),d("gssmodulesetproto"),d("ujg"),d("sp"),d("rs"),d("cb"),d("ee"),d("slk"),d("dti"),d("m"));return e.join("/")},
qU=function(v,e){return v.JSC$10050_keys_[e]?v.JSC$10050_keys_[e]:null},rG=function(v,e,d){d?v.JSC$10050_keys_[e]=d:delete v.JSC$10050_keys_[e]},uyi=function(v,e){v.urlPrefix_=e},ncB=function(v,e){e&&e.length>0?(e.sort(),rG(v,"exm",e.join(","))):rG(v,"exm",null)},D96=function(v,e){e&&e.length>0?(e.sort(),rG(v,"excm",e.join(","))):rG(v,"excm",null)},U9g=function(v){return(v=qU(v,"m"))?v.split(","):[]},gc7=function(v){switch(qU(v,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},pbu=function(v,e){var d=Object.keys(e).filter(function(E){return!!Object.keys(e[E]).length}).map(function(E){var T=Object.keys(e[E]);
T.length>1&&T.sort();return E+":"+T.join(",")});
d.sort();rG(v,"ee",d.join(";"))},ZUH=function(v){var e=qU(v,"ee");
if(!e)return{};v={};e=_.a(e.split(";"));for(var d=e.next();!d.done;d=e.next()){var E=_.a(d.value.split(":"));d=E.next().value;E=E.next().value;v[d]={};E=_.a(E.split(","));for(var T=E.next();!T.done;T=E.next())v[d][T.value]=!0}return v},vLg=function(v){delete v.JSC$10050_keys_.m;
delete v.JSC$10050_keys_.exm;delete v.JSC$10050_keys_.ed};
wbg.prototype.clone=function(){var v=new wbg;v.JSC$10050_keys_=Object.assign({},this.JSC$10050_keys_);v.urlPrefix_=this.urlPrefix_;v.JSC$10050_queryData_=Object.assign({},this.JSC$10050_queryData_);return v};
var co3=function(v,e){e=e===void 0?!0:e;var d=ehi(v),E=new wbg,T=_.n4(d)[5];_.f0.forEach(d_u,function(O){var b=T.match("/"+O+"=([^/]+)");b&&rG(E,O,b[1])});
var S="";S=v.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";uyi(E,v.substr(0,v.indexOf(S)+S.length));if(!e)return E;(v=_.n4(d)[6]||null)&&R_u(v,function(O,b){E.JSC$10050_queryData_[O]=b});
return E},lFj=function(v){v=_.mq(ehi(v));
return v===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(v)?/\/k=/.test(v):!1},ehi=function(v){return v.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?v.substr(65):v},d_u={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"},ELJ=RegExp("^loaded_(g|h)?[_\\d]+$");_.KC=function(v){this.JSC$10062_id_=v;this.opts={}};
_.KC.prototype.JSC$10064_setLabel=function(v){this.label_=v||void 0;return this};
_.KC.prototype.addUploadMetadata=function(v,e){var d=this.opts.data||{};d[v]=e;this.opts.data=d;return this};
var Tk6=function(v){var e=_.f0.filter(v.opts,function(d){return d!==null});
e=_.f0.isEmpty(e)?null:e;v=[v.JSC$10062_id_,v.label_,e];e=sU0(v);return v=v.slice(0,e+1)};
_.KC.prototype.toString=function(){var v=Tk6(this);return"("+_.R2(v,function(e){return JSON.stringify(e)}).join(",")+")"};
_.KC.prototype.getId=function(){return this.JSC$10062_id_};
_.KC.prototype.getOptions=function(){return _.f0.clone(this.opts)};var $T=function(){_.KC.call(this,"image-search")};
_.V($T,_.KC);$T.prototype.setSize=function(v){this.opts.imgsz=v;return this};
$T.prototype.JSC$10064_setLabel=function(v){_.KC.prototype.JSC$10064_setLabel.call(this,v);return this};
$T.prototype.addUploadMetadata=function(v,e){_.KC.prototype.addUploadMetadata.call(this,v,e);return this};var jP=function(){_.KC.call(this,"maps")};
_.V(jP,_.KC);jP.prototype.setZoom=function(v){this.opts.zoom=v;return this};
jP.prototype.JSC$10064_setLabel=function(v){_.KC.prototype.JSC$10064_setLabel.call(this,v);return this};
jP.prototype.addUploadMetadata=function(v,e){_.KC.prototype.addUploadMetadata.call(this,v,e);return this};_.s3=function(){_.KC.call(this,"photos")};
_.V(_.s3,_.KC);_.s3.prototype.JSC$10064_setLabel=function(v){_.KC.prototype.JSC$10064_setLabel.call(this,v);return this};
_.s3.prototype.addUploadMetadata=function(v,e){_.KC.prototype.addUploadMetadata.call(this,v,e);return this};var NU=function(){_.KC.call(this,"url")};
_.V(NU,_.KC);var SIc=function(){var v=new NU;v.opts.type="video";v.opts.site="youtube.com";return v};
NU.prototype.JSC$10064_setLabel=function(v){_.KC.prototype.JSC$10064_setLabel.call(this,v);return this};
NU.prototype.addUploadMetadata=function(v,e){_.KC.prototype.addUploadMetadata.call(this,v,e);return this};var kT=function(){_.KC.call(this,"video-search")};
_.V(kT,_.KC);var WqM=function(){var v=new kT;v.opts.site="youtube.com";return v};
kT.prototype.JSC$10064_setLabel=function(v){_.KC.prototype.JSC$10064_setLabel.call(this,v);return this};
kT.prototype.addUploadMetadata=function(v,e){_.KC.prototype.addUploadMetadata.call(this,v,e);return this};var aTI=function(){_.KC.call(this,"web")};
_.V(aTI,_.KC);aTI.prototype.JSC$10064_setLabel=function(v){_.KC.prototype.JSC$10064_setLabel.call(this,v);return this};
aTI.prototype.addUploadMetadata=function(v,e){_.KC.prototype.addUploadMetadata.call(this,v,e);return this};var LC=function(){this.items_=[];this.opts={}},iwg=function(v){switch(v){case "image-search":return new $T;
case "maps":return new jP;case "photos":return new _.s3;case "url":return new NU;case "video-search":return new kT;case "web":return new aTI}return new _.KC(v)};
LC.prototype.addView=function(v){this.items_.push(typeof v==="string"?iwg(v):v);return this};
var Own=function(v){return"("+_.R2(v.items_,function(e){return e.toString()}).join(",")+")"};
LC.prototype.toString=function(){return Own(this)};
LC.prototype.getViews=function(v,e){e=e===void 0?[]:e;for(var d=this.items_,E=0;E<d.length;E++){var T=d[E];T instanceof LC?T.getViews(v,e):T.getId()==v&&e.push(T)}return e};
LC.prototype.getOptions=function(){return _.f0.clone(this.opts)};var Bw=function(v){this.basePickerUrl_=v||"https://docs.google.com/picker";this.nav_=new LC};
Bw.prototype.nav_=null;Bw.prototype.addView=function(v){this.nav_.addView(v);return this};
Bw.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Bw.prototype.getViews=function(v){return this.nav_.getViews(v)};
_.IT7=function(v,e){v.callback_=e;return v};var bwE=new Map;bwE.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");bwE.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");bwE.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var YI0=new Set;YI0.add("application/vnd.google-apps.kix");YI0.add("application/vnd.google-apps.ritz");YI0.add("application/vnd.google-apps.punch");var LqE=function(v,e,d){var E=d&&_.Vm(d,1);d=m_e(d);var T=v[0].getId();switch(_.oW(T,2)){case 13:return yaB(v,e,E,d);case 3:return qI6(v,e,E,d);case 10:return raA(v,e,E,d);case 27:return raA(v,e,E,d);case 12:return hh2(v,e);case 2:return Kqn(v,e,E,d);case 5:return $_u(v,e,E,d);case 9:return jHe(v,e,E,d);case 6:return sHJ(v,e,E,d);case 25:return Nkg(v,e,E,d);case 1:return _.ym(v[0],utI,26)?kRg(v,e,E,d):raA(v,e,E,d);default:return{}}},sHJ=function(v,e,d,E){v=v.map(function(T){return{id:T.getId().getId(),
serviceId:"youtube",name:T.getName(),description:_.Vm(T,3),type:VJ(T),lastEditedUtc:_.gsg(_.W8(T,_.t1,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:T.getUrl(),embedUrl:_.Vm(T,13),thumbnails:o9(QE(T))}});
return{action:e,docs:v,viewToken:E,view:d||"youtube",v2Translated:!0}},Kqn=function(v,e,d,E){var T=v.map(function(S){var O=S.getId().getId(),b=_.Vm(S,7),Y=S.getName(),q=VJ(S),r=_.gsg(_.W8(S,_.t1,12)).getTime(),h=S.getUrl(),K=Number(arL(S)),k=_.Vm(S,3),J=_.Vm(S,11),R=o9(QE(S));
var B=_.W8(S,gI,21);B=_.NT(B,1);var X=_.W8(S,gI,21);X=_.Vm(X,10);var Z=_.Vm(S,13);var U=_.W8(S,gI,21);U=_.NT(U,9);var F=_.W8(S,gI,21);F=_.Vm(F,11);O={id:O,serviceId:"docs",mimeType:b,name:Y,type:q,lastEditedUtc:r,url:h,sizeBytes:K,description:k,iconUrl:J,thumbnails:R,isShared:B,downloadUrl:X,embedUrl:Z,copyable:U,resourceKey:F};b=_.W8(S,gI,21);_.NT(b,12)&&(O.uploadState="success",O.isNew=!0);b=_.W8(S,gI,21);_.ym(b,cB,3)&&(S=_.W8(S,gI,21),S=_.W8(S,cB,3),_.ym(S,AZ,2)&&(b=Ru(S.getDuration().getSeconds()),
Y=S.getDuration(),Y=_.TZ(Y,2),O.duration=b+Y/1E9),O.aspectRatio=S.getAspectRatio());return O});
return{action:e,docs:T,viewToken:E,view:d||"all",extraUserInputs:VGJ(v),v2Translated:!0}},$_u=function(v,e,d,E){v=v.map(function(T){var S=_.W8(T,Tu0,15);
S=_.W8(S,Zi,1);KI(T,10,Zi,S);return{id:T.getId().getId(),serviceId:"web",mimeType:_.Vm(T,7),name:T.getName(),type:VJ(T),url:T.getUrl(),description:_.Vm(T,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o9(QE(T))}});
return{action:e,docs:v,viewToken:E,view:d||"image-search",v2Translated:!0}},jHe=function(v,e,d,E){v=v.map(function(T){return{serviceId:"url",
name:QE(T)[0].getUrl().split("/").pop(),type:VJ(T),mimeType:_.Vm(T,7),url:T.getUrl(),description:_.Vm(T,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o9(QE(T))}});
return{action:e,docs:v,viewToken:E,view:d||"url",v2Translated:!0}},kRg=function(v,e,d,E){v=v.map(function(T){return{id:T.getId().getId(),
serviceId:"picasa",name:T.getName(),type:VJ(T),description:_.Vm(T,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o9(QE(T))}});
return{action:e,docs:v,viewToken:E,view:d||"webcam",v2Translated:!0}},raA=function(v,e,d,E){return{action:e,
docs:v.map(oLE),viewToken:E,view:Jae(d||"upload",v),extraUserInputs:VGJ(v),v2Translated:!0}},Jae=function(v,e){return e.some(function(d){var E;
return((E=_.W8(d,wI,30))==null?void 0:_.oW(E,3))===9})?v+"/gmailphotos":v},qI6=function(v,e,d,E){var T=v.map(function(S){var O={id:S.getId().getId(),
serviceId:"picasa",mimeType:_.Vm(S,7),name:S.getName(),type:VJ(S),lastEditedUtc:_.gsg(_.W8(S,_.t1,12)).getTime(),url:S.getUrl(),sizeBytes:Number(arL(S)),description:_.Vm(S,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o9(QE(S)),mediaKey:S.getId().getId(),parentId:_.Vm(S,4)},b,Y=(b=_.W8(S,U1i,18))==null?void 0:_.W8(b,D17,3);Y&&(O.latitude=Lp(Y,1),O.longitude=Lp(Y,2));var q;S=(q=_.W8(S,U1i,18))==null?void 0:ku(q,6);q=S!=null?Ru(S):void 0;q&&(O.version=
q);return O});
return{action:e,docs:T,viewToken:E,view:d||"photos",extraUserInputs:VGJ(v),v2Translated:!0}},yaB=function(v,e,d,E){v=v.map(function(T){return{id:T.getId().getId(),
serviceId:"et",name:QE(T)[0].getUrl().split("/").pop(),description:_.Vm(T,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o9(QE(T),"etjpg")}});
return{action:e,docs:v,viewToken:E,view:d||"et",v2Translated:!0}},Nkg=function(v,e,d,E){v=v.map(function(T){var S=T.getId().getId(),O=E["2"];
return{id:S,serviceId:O.type!=="gmail_themes"&&O.parent==="6226252643674576769"?"picasa":"static_themes",name:T.getName(),mimeType:_.Vm(T,7),type:VJ(T),description:_.Vm(T,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:T.getUrl(),embedUrl:T.getUrl(),thumbnails:o9(QE(T))}});
return{action:e,docs:v,viewToken:E,view:d||"photos",v2Translated:!0}},hh2=function(v,e){v=v.map(function(d){var E=_.W8(d,ns2,27);
E=_.Ft(E,1,_.q1,_.El())[0];return{id:d.getId().getId(),serviceId:"contacts",mimeType:_.Vm(d,7),name:d.getName(),description:_.Vm(d,3),url:"mailto:"+E,thumbnail:[{url:_.Vm(d,11)}],email:E}});
return{action:e,docs:v,view:"contacts",v2Translated:!0}},m_e=function(v){if(!v)return{};
var e=_.Vm(v,3);e=e&&JSON.parse(e)||{};return{0:_.Vm(v,1),1:_.Vm(v,2),2:e}},o9=function(v,e){e=e===void 0?"":e;
if(!v.length)return null;e=="etjpg"&&(v=v.filter(function(d){return d.getUrl().includes("w1200-h300")}));
return v.map(function(d){return{url:d.getUrl(),height:d.getHeight(),width:d.getWidth(),type:e}})},VGJ=function(v){return{isAttachment:v.some(function(e){return _.NT(e,31)})}},oLE=function(v){var e,d={id:(e=v.getId())==null?void 0:e.getId(),
serviceId:GRE(v),mimeType:_.Vm(v,7),name:v.getName(),type:VJ(v),sizeBytes:Number(arL(v)),description:_.Vm(v,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o9(QE(v)),isNew:!0};if(e=_.W8(v,wI,30)){d.dataUrl=_.Vm(e,1)||null;a:{var E=_.W8(v,wI,30);switch(_.oW(E,3)){case 9:E=_.MT(E,dfI,2,Fr);E={remoteRefs:E&&_.Vm(E,1)};break a;case 10:case 15:E=_.MT(E,eTJ,4,Fr);var T=QE(v);E={photo_id:E&&_.Vm(E,1),media_key:v.getId().getId(),media_type:_.oW(v,6)===1?1:2,image_url:T&&
T[0].getUrl(),width:T&&String(T[0].getWidth()),height:T&&String(T[0].getHeight())};break a}E=null}d.uploadMetadata=E;d.uploadId=_.Vm(e,9)||null;d.uploadState=MGg(e)||null}(E=e&&_.MT(e,eTJ,4,Fr))&&(d.id=_.Vm(E,1));(E=e&&_.MT(e,EmM,5,Fr))&&(d.contentId=_.Vm(E,1));(E=e&&_.MT(e,pOi,7,Fr))&&(d.contentId=_.Vm(E,1));(E=e&&_.MT(e,vme,6,Fr))&&(d.contentId=_.Vm(E,1));(e==null?void 0:_.oW(e,3))===1&&(d.mediaKey=v.getId().getId());return d},GRE=function(v){var e;
switch(((e=_.W8(v,wI,30))==null?void 0:_.oW(e,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},VJ=function(v){switch(_.oW(v,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 _.Vm(v,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},MGg=function(v){switch(v==null?void 0:_.oW(v,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 PYA,tG7,fT7,Rhu;_.x_E=function(v,e){var d=e||{};e=d.document||document;var E=_.LY(v).toString(),T=(new $0(e)).createElement("SCRIPT"),S={script_:T,timeout_:void 0},O=new lI(tG7,S),b=null,Y=d.timeout!=null?d.timeout:5E3;Y>0&&(b=window.setTimeout(function(){fT7(T,!0);O.errback(new Rhu(1,"Timeout reached for loading script "+E))},Y),S.timeout_=b);
T.onload=T.onreadystatechange=function(){T.readyState&&T.readyState!="loaded"&&T.readyState!="complete"||(fT7(T,d.cleanupWhenDone||!1,b),O.callback(null))};
T.onerror=function(){fT7(T,!0,b);O.errback(new Rhu(0,"Error while loading script "+E))};
S=d.attributes||{};_.f0.extend(S,{type:"text/javascript",charset:"UTF-8"});l0J(T,S);_.DB(T,v);PYA(e).appendChild(T);return O};
PYA=function(v){var e=$h("HEAD",v);return e&&e.length!==0?e[0]:v.documentElement};
tG7=function(){if(this&&this.script_){var v=this.script_;v&&v.tagName=="SCRIPT"&&fT7(v,!0,this.timeout_)}};
fT7=function(v,e,d){d!=null&&_.TO.clearTimeout(d);v.onload=function(){};
v.onerror=function(){};
v.onreadystatechange=function(){};
e&&window.setTimeout(function(){_.KX(v)},0)};
Rhu=function(v,e){var d="Jsloader error (code #"+v+")";e&&(d+=": "+e);_.dH.call(this,d);this.code=v};
_.vM(Rhu,_.dH);var Bk6=_.Z9(["https://apis.google.com/js/api.js"]),CYe=_.ie(Bk6),Hw2=function(v,e,d){d=d===void 0?{}:d;var E=!1,T=Xie(v,e,d).then(function(O){E=!0;return O}),S=_.b0M(5E3).then(function(){return E?Xie(v,e,d):zhe(e,d).then(function(O){return lTB(O,v)})});
return puB([T,S])},Xie=function(v,e,d){d=d===void 0?{}:d;
return AaI(e,d).then(function(E){return lTB(E,v)})},lTB=function(v,e){var d=_.aU(e,"gapi.")?e.slice(5):e;
return v[d]?_.qg(v[d]):new _.yf(function(E,T){var S=sd(function(){T(Error("Ya"))},3E4);
v.load(e,{callback:function(){_.TO.clearTimeout(S);E(v[d])},
onerror:function(O){_.TO.clearTimeout(S);T(O)}})})},AaI=function(v,e){e=e===void 0?{}:e;
return v.gapi&&v.gapi.load?_.qg(v.gapi):zhe(v,e)},zhe=function(v,e){e=e===void 0?{}:e;
return _.x_E(CYe,{document:v.document,attributes:e}).then(function(){return v.gapi})},Zw2=function(){};
Zw2.prototype.load=function(v,e,d){e=e===void 0?window:e;d=d===void 0?{}:d;var E=Date.now();return Hw2(v,e,d).then(function(T){var S=Date.now();return{library:T,loadStartMs:E,loadEndMs:S}},function(T){throw T instanceof Error?T:Error(String(T));
})};var OUM=function(){_.kh.call(this);this.gapiLoader_=new Zw2;this.origin_=null;this.gapiPickerIframeResolver_=_.gq();this.gapiIframesResolver_=_.gq();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.V(OUM,_.kh);var ca7=function(v,e){var d=_.AE("gapi.iframes",e);return d?(v=Date.now(),_.qg({library:d,loadStartMs:v,loadEndMs:v})):v.gapiLoader_.load("gapi.iframes",e)},wiI=function(v,e,d,E,T,S){var O=!1;
O=O===void 0?!1:O;ca7(v,xx(e.ownerDocument)).then(function(b){var Y=b.library;v.gapiIframesResolver_.resolve(Y);b=v.gapiPickerIframeResolver_;var q=b.resolve,r=O;r=r===void 0?!1:r;var h={};h["host-message-handler"]=d;v.hostMessageHandlerInternal_=h;var K=_.Az(E);K=_.Az(K);K=_.uI(_.g6(_.QQ(new _.vF,K.scheme_),K.JSC$10022_domain_),K.JSC$10022_port_).toString();v.origin_=K;K=(new i4A).setUrl(E);K.JSC$10037_obj_.where=e;K.JSC$10037_obj_.allowPost=r;K.JSC$10037_obj_.messageHandlers=h;r=_.AE("makeWhiteListIframesFilter",
Y)([v.origin_]);K.JSC$10037_obj_.messageHandlersFilter=r;T!=null&&(K.JSC$10037_obj_.id=T);S!=null&&(K.JSC$10037_obj_.rpctoken=S);r=aVu(K);r.JSC$10034_obj_.style={display:"block","min-width":"100%",width:"1px"};r.JSC$10034_obj_.height="100%";aVu(K).value().allow="camera 'src' "+v.origin_;Y=Y.getContext().openChild(K.value());q.call(b,Y)},function(b){v.gapiIframesResolver_.reject(b);
v.gapiPickerIframeResolver_.reject(b)});
return v.gapiPickerIframeResolver_.promise},Fqu=function(v,e){return _.$N([v.gapiIframesResolver_.promise,
v.gapiPickerIframeResolver_.promise]).then(function(d){var E=_.a(d);d=E.next().value;return(E=E.next().value)?E.send("picker-message-handler",e,void 0,_.AE("makeWhiteListIframesFilter",d)([v.origin_])):_.f1(Error("Za"))})};
OUM.prototype.disposeInternal=function(){QHJ(this);_.kh.prototype.disposeInternal.call(this)};
var QHJ=function(v){v.gapiPickerIframeResolver_.promise.then(function(e){e&&(e.unregister("host-message-handler"),delete v.hostMessageHandlerInternal_["host-message-handler"])})};var gLc=function(){this.JSC$10124_nextId=0};var nLe=function(v,e){switch(v.action){case "select-contacts":v=uoc(v.contacts);break;case "visibility":v=v.visible;var d=new nf;v=_.fp(d,1,7).setVisible(v);d={};d["iframe-command"]=v.serialize();v=d;break;default:v=null}return v?Fqu(e,v):_.qg()},uoc=function(v){if(!v||v.length==0)return null;
var e=new nf;_.fp(e,1,11);var d=new gLc;v.forEach(function(E){if(E.email){var T=new j1;T=_.A1(T,2,E.name?E.name:E.email);var S=new ns2;E=_.B9O(S,1,_.bS,E.email,_.q1);E=_.hr(T,27,E);T=new QCi;S=":"+(d.JSC$10124_nextId++).toString(36);T=_.A1(T,1,S);T=_.fp(T,2,12);E=_.hr(E,1,T)}else E=null;E&&KI(e,7,j1,E)});
v={};v["iframe-command"]=e.serialize();return v};_.D_6=function(){if(sh3){var v=/Windows NT ([0-9.]+)/;return(v=v.exec(_.Kt()))?v[1]:"0"}return _.jh$?(v=/1[0|1][_.][0-9_.]+/,(v=v.exec(_.Kt()))?v[0].replace(/_/g,"."):"10"):m60?(v=/Android\s+([^\);]+)(\)|;)/,(v=v.exec(_.Kt()))?v[1]:""):kbt||LlS||Vct?(v=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(v=v.exec(_.Kt()))?v[1].replace(/_/g,"."):""):""}();var JM;JM=function(v){return(v=v.exec(_.Kt()))?v[1]:""};
_.U_M=function(){if(_.i1)return JM(/Firefox\/([0-9.]+)/);if(_.Tw||DT||hts)return RtM;if(_.OU){if(_.ft()||_.h$0()){var v=JM(/CriOS\/([0-9.]+)/);if(v)return v}return JM(/Chrome\/([0-9.]+)/)}if(_.Xo&&!_.ft())return JM(/Version\/([0-9.]+)/);if(LUH||V70){if(v=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Kt()))return v[1]+"."+v[2]}else if(XoO)return(v=JM(/Android\s+([0-9.]+)/))?v:JM(/Version\/([0-9.]+)/);return""}();var pic=function(){};
_.Uk(pic);pic.prototype.nextId_=0;_.Ge=function(v){return":"+(v.nextId_++).toString(36)};var MU=function(v){_.r6.call(this);this.JSC$10132_dom_=v||NR();this.JSC$10132_id_=null;this.inDocument_=!1;this.JSC$10132_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.vM(MU,_.r6);MU.prototype.idGenerator_=pic.getInstance();MU.prototype.getId=function(){return this.JSC$10132_id_||(this.JSC$10132_id_=_.Ge(this.idGenerator_))};
MU.prototype.getElement=function(){return this.JSC$10132_element_};
var tM=function(v){v.googUiComponentHandler_||(v.googUiComponentHandler_=new _.Im(v));return v.googUiComponentHandler_},vei=function(v,e){if(v==e)throw Error("$a");
var d;if(d=e&&v.parent_&&v.JSC$10132_id_){d=v.parent_;var E=v.JSC$10132_id_;d=d.childIndex_&&E?_.f0.get(d.childIndex_,E)||null:null}if(d&&v.parent_!=e)throw Error("$a");v.parent_=e;MU.superClass_.setParentEventTarget.call(v,e)};
MU.prototype.setParentEventTarget=function(v){if(this.parent_&&this.parent_!=v)throw Error("ab");MU.superClass_.setParentEventTarget.call(this,v)};
MU.prototype.JSC$10134_createDom=function(){this.JSC$10132_element_=this.JSC$10132_dom_.createElement("DIV")};
MU.prototype.render=function(v){eN7(this,v)};
var eN7=function(v,e,d){if(v.inDocument_)throw Error("bb");v.JSC$10132_element_||v.JSC$10134_createDom();e?e.insertBefore(v.JSC$10132_element_,d||null):v.JSC$10132_dom_.JSC$9317_document_.body.appendChild(v.JSC$10132_element_);v.parent_&&!v.parent_.inDocument_||v.enterDocument()};
_.W=MU.prototype;_.W.decorate=function(v){if(this.inDocument_)throw Error("bb");if(v&&this.canDecorate(v)){this.wasDecorated_=!0;var e=_.Bn(v);this.JSC$10132_dom_&&this.JSC$10132_dom_.JSC$9317_document_==e||(this.JSC$10132_dom_=NR(v));this.decorateInternal(v);this.enterDocument()}else throw Error("cb");};
_.W.canDecorate=function(){return!0};
_.W.decorateInternal=function(v){this.JSC$10132_element_=v};
_.W.enterDocument=function(){this.inDocument_=!0;dk7(this,function(v){!v.inDocument_&&v.getElement()&&v.enterDocument()})};
_.W.exitDocument=function(){dk7(this,function(v){v.inDocument_&&v.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.W.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);dk7(this,function(v){v.dispose()});
!this.wasDecorated_&&this.JSC$10132_element_&&_.KX(this.JSC$10132_element_);this.parent_=this.model_=this.JSC$10132_element_=this.childIndex_=this.children_=null;MU.superClass_.disposeInternal.call(this)};
_.W.getModel=function(){return this.model_};
_.W.addChild=function(v,e){var d=this.children_?this.children_.length:0;if(v.inDocument_&&(e||!this.inDocument_))throw Error("bb");if(d<0||d>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);v.parent_==this?(_.f0.set(this.childIndex_,v.getId(),v),_.H3(this.children_,v)):_.f0.add(this.childIndex_,v.getId(),v);vei(v,this);_.VWL(this.children_,d,0,v);v.inDocument_&&this.inDocument_&&v.parent_==this?(e=this.getContentElement(),
(e.childNodes[d]||null)!=v.getElement()&&(v.getElement().parentElement==e&&e.removeChild(v.getElement()),d=e.childNodes[d]||null,e.insertBefore(v.getElement(),d))):e?(this.JSC$10132_element_||this.JSC$10134_createDom(),d=this.children_?this.children_[d+1]||null:null,eN7(v,this.getContentElement(),d?d.JSC$10132_element_:null)):this.inDocument_&&!v.inDocument_&&v.JSC$10132_element_&&v.JSC$10132_element_.parentNode&&v.JSC$10132_element_.parentNode.nodeType==1&&v.enterDocument()};
_.W.getContentElement=function(){return this.JSC$10132_element_};
var dk7=function(v,e){v.children_&&v.children_.forEach(e,void 0)};
MU.prototype.removeChild=function(v,e){if(v){var d=typeof v==="string"?v:v.getId();v=this.childIndex_&&d?_.f0.get(this.childIndex_,d)||null:null;d&&v&&(_.f0.remove(this.childIndex_,d),_.H3(this.children_,v),e&&(v.exitDocument(),v.JSC$10132_element_&&_.KX(v.JSC$10132_element_)),vei(v,null))}if(!v)throw Error("eb");return v};_.vM(ve7,pi3);_.vM(eNt,pi3);var Eee;_.f0.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var Tte=function(v,e){e?v.setAttribute("role",e):v.removeAttribute("role")},fC=function(v,e,d){Array.isArray(d)&&(d=d.join(" "));
var E="aria-"+e;d===""||d==void 0?(Eee||(d={},Eee=(d.atomic=!1,d.autocomplete="none",d.dropeffect="none",d.haspopup=!1,d.live="off",d.multiline=!1,d.multiselectable=!1,d.orientation="vertical",d.readonly=!1,d.relevant="additions text",d.required=!1,d.sort="none",d.busy=!1,d.disabled=!1,d.hidden=!1,d.invalid="false",d)),d=Eee,e in d?v.setAttribute(E,d[e]):v.removeAttribute(E)):v.setAttribute(E,d)};var S$J;_.R9=function(v,e,d){_.r6.call(this);this.target=v;this.handle=e||v;this.limits=d||new tZ(NaN,NaN,NaN,NaN);this.JSC$10137_document_=_.Bn(v);this.JSC$10137_eventHandler_=new _.Im(this);_.Yh(this,this.JSC$10137_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;_.MC(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=S$J};
_.vM(_.R9,_.r6);S$J=_.TO.document&&_.TO.document.documentElement&&!!_.TO.document.documentElement.setCapture&&!!_.TO.document.releaseCapture;_.WYJ=function(v,e){v.hysteresisDistanceSquared_=Math.pow(e,2)};
_.W=_.R9.prototype;_.W.setEnabled=function(v){this.enabled_=v};
_.W.disposeInternal=function(){_.R9.superClass_.disposeInternal.call(this);_.qs(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10137_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10137_document_.releaseCapture();this.handle=this.target=null};
_.W.startDrag=function(v){var e=v.type=="mousedown";if(!this.enabled_||this.dragging_||e&&(v.event_.button!=0||_.jh$&&v.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Pr("start",this,v.clientX,v.clientY,v)))this.dragging_=!0,e&&v.preventDefault();else return;else e&&v.preventDefault();e=this.JSC$10137_document_;var d=e.documentElement,E=!this.useSetCapture_;this.JSC$10137_eventHandler_.listen(e,["touchmove","mousemove"],this.handleMove_,
{capture:E,passive:!1});this.JSC$10137_eventHandler_.listen(e,["touchend","mouseup"],this.endDrag,E);this.useSetCapture_?(d.setCapture(!1),this.JSC$10137_eventHandler_.listen(d,"losecapture",this.endDrag)):this.JSC$10137_eventHandler_.listen(xx(e),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10137_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,E);this.clientX=this.startX=v.clientX;this.clientY=this.startY=v.clientY;this.screenX=v.screenX;this.screenY=v.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=sa(NR(this.JSC$10137_document_))}};
_.W.endDrag=function(v,e){this.JSC$10137_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10137_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Pr("end",this,v.clientX,v.clientY,v,aF2(this,this.deltaX),iU7(this,this.deltaY),e||v.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.W.handleMove_=function(v){if(this.enabled_){var e=v.clientX-this.clientX,d=v.clientY-this.clientY;this.clientX=v.clientX;this.clientY=v.clientY;this.screenX=v.screenX;this.screenY=v.screenY;if(!this.dragging_){var E=this.startX-this.clientX,T=this.startY-this.clientY;if(E*E+T*T>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Pr("start",this,v.clientX,v.clientY,v)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(v);return}}d=OUJ(this,e,d);e=d.x;d=d.y;this.dragging_&&this.dispatchEvent(new Pr("beforedrag",
this,v.clientX,v.clientY,v,e,d))&&(IF6(this,v,e,d),v.preventDefault())}};
var OUJ=function(v,e,d){var E=sa(NR(v.JSC$10137_document_));e+=E.x-v.pageScroll.x;d+=E.y-v.pageScroll.y;v.pageScroll=E;v.deltaX+=e;v.deltaY+=d;return new _.Pn(aF2(v,v.deltaX),iU7(v,v.deltaY))};
_.R9.prototype.onScroll_=function(v){var e=OUJ(this,0,0);v.clientX=this.clientX;v.clientY=this.clientY;IF6(this,v,e.x,e.y)};
var IF6=function(v,e,d,E){v.target.style.left=d+"px";v.target.style.top=E+"px";v.dispatchEvent(new Pr("drag",v,e.clientX,e.clientY,e,d,E))},aF2=function(v,e){var d=v.limits;
v=isNaN(d.left)?null:d.left;d=isNaN(d.width)?0:d.width;return Math.min(v!=null?v+d:Infinity,Math.max(v!=null?v:-Infinity,e))},iU7=function(v,e){var d=v.limits;
v=isNaN(d.top)?null:d.top;d=isNaN(d.height)?0:d.height;return Math.min(v!=null?v+d:Infinity,Math.max(v!=null?v:-Infinity,e))};
_.R9.prototype.isDragging=function(){return this.dragging_};
var Pr=function(v,e,d,E,T,S,O){_.bI.call(this,v);this.clientX=d;this.clientY=E;this.browserEvent=T;this.left=S!==void 0?S:e.deltaX;this.top=O!==void 0?O:e.deltaY};
_.vM(Pr,_.bI);var xT=function(v){this.JSC$10144_map_=new Map;var e=arguments.length;if(e>1){if(e%2)throw Error("ka");for(var d=0;d<e;d+=2)this.set(arguments[d],arguments[d+1])}else v&&this.addAll(v)};
_.W=xT.prototype;_.W.getCount=function(){return this.JSC$10144_map_.size};
_.W.getValues=function(){return Array.from(this.JSC$10144_map_.values())};
_.W.getKeys=function(){return Array.from(this.JSC$10144_map_.keys())};
_.W.containsKey=function(v){return this.JSC$10144_map_.has(v)};
_.W.containsValue=function(v){return this.getValues().some(function(e){return e==v})};
_.W.equals=function(v,e){var d=this;e=e===void 0?function(E,T){return E===T}:e;
return this===v?!0:this.JSC$10144_map_.size!=v.getCount()?!1:this.getKeys().every(function(E){return e(d.JSC$10144_map_.get(E),v.get(E))})};
_.W.isEmpty=function(){return this.JSC$10144_map_.size==0};
_.W.clear=function(){this.JSC$10144_map_.clear()};
_.W.remove=function(v){return this.JSC$10144_map_.delete(v)};
_.W.get=function(v,e){return this.JSC$10144_map_.has(v)?this.JSC$10144_map_.get(v):e};
_.W.set=function(v,e){this.JSC$10144_map_.set(v,e);return this};
_.W.addAll=function(v){if(v instanceof xT){v=_.a(v.JSC$10144_map_);for(var e=v.next();!e.done;e=v.next()){var d=_.a(e.value);e=d.next().value;d=d.next().value;this.JSC$10144_map_.set(e,d)}}else if(v)for(v=_.a(Object.entries(v)),e=v.next();!e.done;e=v.next())d=_.a(e.value),e=d.next().value,d=d.next().value,this.JSC$10144_map_.set(e,d)};
_.W.forEach=function(v,e){var d=this;e=e===void 0?this:e;this.JSC$10144_map_.forEach(function(E,T){return v.call(e,E,T,d)})};
_.W.clone=function(){return new xT(this)};(function(){for(var v=["ms","moz","webkit","o"],e,d=0;e=v[d]&&!_.TO.requestAnimationFrame;++d)_.TO.requestAnimationFrame=_.TO[e+"RequestAnimationFrame"],_.TO.cancelAnimationFrame=_.TO[e+"CancelAnimationFrame"]||_.TO[e+"CancelRequestAnimationFrame"];if(!_.TO.requestAnimationFrame){var E=0;_.TO.requestAnimationFrame=function(T){var S=(new Date).getTime(),O=Math.max(0,16-(S-E));E=S+O;return _.TO.setTimeout(function(){T(S+O)},O)};
_.TO.cancelAnimationFrame||(_.TO.cancelAnimationFrame=function(T){clearTimeout(T)})}})();
var bUA=[[],[]],Y$E=0,mkJ=!1,yo7=0,ron=function(v,e){var d=yo7++,E={measureTask:{id:d,fn:v.measure,context:e},mutateTask:{id:d,fn:v.mutate,context:e},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(E.args||(E.args=[]),E.args.length=0,E.args.push.apply(E.args,arguments),E.args.push(E.state)):E.args&&E.args.length!=0?(E.args[0]=E.state,E.args.length=1):E.args=[E.state];E.isScheduled||(E.isScheduled=!0,bUA[Y$E].push(E));mkJ||(mkJ=!0,window.requestAnimationFrame(q$I))}},q$I=
function(){mkJ=!1;
var v=bUA[Y$E],e=v.length;Y$E=(Y$E+1)%2;for(var d,E=0;E<e;++E){d=v[E];var T=d.measureTask;d.isScheduled=!1;T.fn&&T.fn.apply(T.context,d.args)}for(E=0;E<e;++E)d=v[E],T=d.mutateTask,d.isScheduled=!1,T.fn&&T.fn.apply(T.context,d.args),d.state={};v.length=0};var hN7=_.Z9(["about:blank"]),KYM=_.Z9(["javascript:undefined"]),$k2=_.ie(hN7);_.LY($k2);var jMJ=_.ie(KYM);_.LY(jMJ);var Br=function(v){_.r6.call(this);this.JSC$10150_element_=v;this.listenKeyIn_=_.MC(this.JSC$10150_element_,"focus",this,!0);this.listenKeyOut_=_.MC(this.JSC$10150_element_,"blur",this,!0)};
_.vM(Br,_.r6);Br.prototype.handleEvent=function(v){var e=new _.YN(v.event_);e.type=v.type=="focusin"||v.type=="focus"?"focusin":"focusout";this.dispatchEvent(e)};
Br.prototype.disposeInternal=function(){Br.superClass_.disposeInternal.call(this);o5(this.listenKeyIn_);o5(this.listenKeyOut_);delete this.JSC$10150_element_};var sMI=function(v,e){this.JSC$10153_element_=v;this.JSC$10153_dom_=e};var CC=function(v,e){MU.call(this,e);this.useIframeMask_=!!v;this.lastFocus_=null;this.resizeBackgroundTask_=ron({mutate:this.resizeBackground_},this);ron({mutate:this.updateModalAndBackground_},this)};
_.vM(CC,MU);_.W=CC.prototype;_.W.focusHandler_=null;_.W.visible_=!1;_.W.bgEl_=null;_.W.bgIframeEl_=null;_.W.tabCatcherElement_=null;_.W.backwardTabWrapInProgress_=!1;_.W.getCssClass=function(){return"goog-modalpopup"};
_.W.getBackgroundElement=function(){return this.bgEl_};
_.W.JSC$10134_createDom=function(){CC.superClass_.JSC$10134_createDom.call(this);var v=this.getElement(),e=yj(this.getCssClass()).split(" ");Xh(v,e);v.tabIndex=0;_.wf(v,!1);Ntu(this);kdA(this)};
var Ntu=function(v){if(v.useIframeMask_&&!v.bgIframeEl_){var e=v.JSC$10132_dom_.JSC$9319_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.c$(e,$k2);v.bgIframeEl_=e;v.bgIframeEl_.className=v.getCssClass()+"-bg";_.wf(v.bgIframeEl_,!1);qiM(v.bgIframeEl_,0)}v.bgEl_||(v.bgEl_=v.JSC$10132_dom_.JSC$9319_createDom("DIV",v.getCssClass()+"-bg"),_.wf(v.bgEl_,!1))},kdA=function(v){v.tabCatcherElement_||(v.tabCatcherElement_=v.JSC$10132_dom_.createElement("SPAN"),_.wf(v.tabCatcherElement_,
!1),v.tabCatcherElement_.tabIndex=0,v.tabCatcherElement_.style.position="absolute")};
_.W=CC.prototype;_.W.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.W.canDecorate=function(v){return!!v&&v.tagName=="DIV"};
_.W.decorateInternal=function(v){CC.superClass_.decorateInternal.call(this,v);v=yj(this.getCssClass()).split(" ");Xh(this.getElement(),v);Ntu(this);kdA(this);this.getElement().tabIndex=0;_.wf(this.getElement(),!1)};
_.W.enterDocument=function(){this.bgIframeEl_&&_.od(this.bgIframeEl_,this.getElement());_.od(this.bgEl_,this.getElement());CC.superClass_.enterDocument.call(this);_.JZ(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Br(this.JSC$10132_dom_.JSC$9317_document_);tM(this).listen(this.focusHandler_,"focusin",this.onFocus);LYI(this,!1)};
_.W.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.p0(this.focusHandler_);CC.superClass_.exitDocument.call(this);_.KX(this.bgIframeEl_);_.KX(this.bgEl_);_.KX(this.tabCatcherElement_)};
_.W.setVisible=function(v){if(v!=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_&&LYI(this,v),v){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10132_dom_.JSC$9317_document_.activeElement}catch(T){}this.updateModalAndBackground_();tM(this).listen(this.JSC$10132_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10132_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);VaM(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)VK(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){tM(this).unlisten(this.JSC$10132_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10132_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)VK(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var e=this.JSC$10132_dom_,d=e.JSC$9317_document_.body,E=e.JSC$9317_document_.activeElement||d;if(!this.lastFocus_||this.lastFocus_==d){this.lastFocus_=null;break a}(E==d||e.contains(this.getElement(),E))&&this.lastFocus_.focus()}catch(T){}this.lastFocus_=
null}}};
var LYI=function(v,e){v.modalAriaVisibilityHelper_||(v.modalAriaVisibilityHelper_=new sMI(v.JSC$10132_element_,v.JSC$10132_dom_));v=v.modalAriaVisibilityHelper_;if(e){v.hiddenElements_||(v.hiddenElements_=[]);e=v.JSC$10153_dom_.getChildren(v.JSC$10153_dom_.JSC$9317_document_.body);for(var d=0;d<e.length;d++){var E=e[d],T;if(T=E!=v.JSC$10153_element_)T=E.getAttribute("aria-hidden"),T=!(T==null||T==void 0?0:String(T));T&&(fC(E,"hidden",!0),v.hiddenElements_.push(E))}}else if(v.hiddenElements_){for(e=
0;e<v.hiddenElements_.length;e++)v.hiddenElements_[e].removeAttribute("aria-hidden");v.hiddenElements_=null}};
CC.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var VaM=function(v,e){v.bgIframeEl_&&_.wf(v.bgIframeEl_,e);v.bgEl_&&_.wf(v.bgEl_,e);_.wf(v.getElement(),e);_.wf(v.tabCatcherElement_,e)};
_.W=CC.prototype;_.W.onShow=function(){this.dispatchEvent("show")};
_.W.onHide=function(){VaM(this,!1);this.dispatchEvent("hide")};
_.W.isVisible=function(){return this.visible_};
_.W.focus=function(){this.focusElement_()};
_.W.resizeBackground_=function(){this.bgIframeEl_&&_.wf(this.bgIframeEl_,!1);this.bgEl_&&_.wf(this.bgEl_,!1);var v=this.JSC$10132_dom_.JSC$9317_document_;var e=_.jy(xx(this.JSC$10132_dom_.JSC$9317_document_)||window);var d=Math.max(e.width,Math.max(v.body.scrollWidth,v.documentElement.scrollWidth));v=Math.max(e.height,Math.max(v.body.scrollHeight,v.documentElement.scrollHeight));this.bgIframeEl_&&(_.wf(this.bgIframeEl_,!0),_.b9I(this.bgIframeEl_,d,v));this.bgEl_&&(_.wf(this.bgEl_,!0),_.b9I(this.bgEl_,
d,v))};
_.W.reposition=function(){var v;if(_.IwM(this.getElement())=="fixed")var e=v=0;else e=sa(this.JSC$10132_dom_),v=e.x,e=e.y;var d=m1A(this.getElement());var E=_.jy(xx(this.JSC$10132_dom_.JSC$9317_document_)||window);v=Math.max(v+E.width/2-d.width/2,0);e=Math.max(e+E.height/2-d.height/2,0);PB(this.getElement(),v,e);PB(this.tabCatcherElement_,v,e)};
_.W.onFocus=function(v){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():v.target==this.tabCatcherElement_&&sd(this.focusElement_,0,this)};
_.W.focusElement_=function(){try{this.getElement().focus()}catch(v){}};
_.W.disposeInternal=function(){_.p0(this.popupShowTransition_);this.popupShowTransition_=null;_.p0(this.popupHideTransition_);this.popupHideTransition_=null;_.p0(this.bgShowTransition_);this.bgShowTransition_=null;_.p0(this.bgHideTransition_);this.bgHideTransition_=null;CC.superClass_.disposeInternal.call(this)};var Pw=function(v,e,d){CC.call(this,e,d);this.JSC$10163_class_=v||"modal-dialog";this.buttons_=(new Xx).addButton(oe7,!0).addButton(Jo0,!1,!0)};
_.vM(Pw,CC);_.W=Pw.prototype;_.W.escapeToCancel_=!0;_.W.hasTitleCloseButton_=!0;_.W.modal_=!0;_.W.draggable_=!0;_.W.backgroundElementOpacity_=.5;_.W.title_="";_.W.JSC$10165_dragger_=null;_.W.JSC$10165_disposeOnHide_=!1;_.W.titleEl_=null;_.W.titleTextEl_=null;_.W.titleTextId_=null;_.W.titleCloseEl_=null;_.W.contentEl_=null;_.W.buttonEl_=null;_.W.getCssClass=function(){return this.JSC$10163_class_};
_.W.setTitle=function(v){this.title_=v;this.titleTextEl_&&_.MF(this.titleTextEl_,v)};
_.W.getTitle=function(){return this.title_};
_.W.getContent=function(){return""};
_.W.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Gdc=function(v){v.getElement()||v.render();return v.getElement()};
Pw.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Pw.superClass_.getBackgroundElement.call(this)};
var Ma6=function(v,e){v.backgroundElementOpacity_=e;v.getElement()&&(e=v.getBackgroundElement())&&qiM(e,v.backgroundElementOpacity_)};
Pw.prototype.setDraggable=function(v){this.draggable_=v;taE(this,v&&this.inDocument_)};
Pw.prototype.handleDrag=function(){};
var taE=function(v,e){var d=yj(v.JSC$10163_class_+"-title-draggable").split(" ");v.getElement()&&(e?Xh(v.titleEl_,d):The(v.titleEl_,d));e&&!v.JSC$10165_dragger_?(e=new _.R9(v.getElement(),v.titleEl_),v.JSC$10165_dragger_=e,Xh(v.titleEl_,d),_.MC(v.JSC$10165_dragger_,"start",v.setDraggerLimits_,!1,v),_.MC(v.JSC$10165_dragger_,"drag",v.handleDrag,!1,v)):!e&&v.JSC$10165_dragger_&&(v.JSC$10165_dragger_.dispose(),v.JSC$10165_dragger_=null)};
_.W=Pw.prototype;
_.W.JSC$10134_createDom=function(){Pw.superClass_.JSC$10134_createDom.call(this);var v=this.getElement(),e=this.JSC$10132_dom_;this.titleTextId_=this.getId();var d=this.getId()+".contentEl";this.titleEl_=e.JSC$9319_createDom("DIV",this.JSC$10163_class_+"-title",this.titleTextEl_=e.JSC$9319_createDom("SPAN",{className:this.JSC$10163_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=e.JSC$9319_createDom("SPAN",this.JSC$10163_class_+"-title-close"));wcE(v,this.titleEl_,this.contentEl_=
e.JSC$9319_createDom("DIV",{className:this.JSC$10163_class_+"-content",id:d}),this.buttonEl_=e.JSC$9319_createDom("DIV",this.JSC$10163_class_+"-buttons"));Tte(this.titleTextEl_,"heading");Tte(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;fC(this.titleCloseEl_,"label","Close");Tte(v,"dialog");fC(v,"labelledby",this.titleTextId_||"");_.wf(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(v=this.buttons_,v.JSC$10166_element_=this.buttonEl_,v.render());_.wf(this.buttonEl_,!!this.buttons_);
Ma6(this,this.backgroundElementOpacity_)};
_.W.decorateInternal=function(v){Pw.superClass_.decorateInternal.call(this,v);v=this.getElement();var e=this.JSC$10163_class_+"-content";this.contentEl_=jj(document,null,e,v)[0];this.contentEl_||(this.contentEl_=this.JSC$10132_dom_.JSC$9319_createDom("DIV",e),v.appendChild(this.contentEl_));e=this.JSC$10163_class_+"-title";var d=this.JSC$10163_class_+"-title-text",E=this.JSC$10163_class_+"-title-close";(this.titleEl_=jj(document,null,e,v)[0])?(this.titleTextEl_=jj(document,null,d,this.titleEl_)[0],
this.titleCloseEl_=jj(document,null,E,this.titleEl_)[0]):(this.titleEl_=this.JSC$10132_dom_.JSC$9319_createDom("DIV",e),v.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=SiJ(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.NF("SPAN",{className:d,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;fC(v,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10132_dom_.JSC$9319_createDom("SPAN",E),this.titleEl_.appendChild(this.titleCloseEl_));_.wf(this.titleCloseEl_,this.hasTitleCloseButton_);e=this.JSC$10163_class_+"-buttons";(this.buttonEl_=jj(document,null,e,v)[0])?(this.buttons_=new Xx(this.JSC$10132_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10132_dom_.JSC$9319_createDom("DIV",e),v.appendChild(this.buttonEl_),this.buttons_&&(v=this.buttons_,v.JSC$10166_element_=this.buttonEl_,v.render()),_.wf(this.buttonEl_,
!!this.buttons_));Ma6(this,this.backgroundElementOpacity_)};
_.W.enterDocument=function(){Pw.superClass_.enterDocument.call(this);tM(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);tM(this).listen(this.buttonEl_,"click",this.onButtonClick_);taE(this,this.draggable_);tM(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var v=this.getElement();Tte(v,"dialog");this.titleTextEl_.id!==""&&fC(v,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){v=this.JSC$10132_dom_;
var e=this.getBackgroundElement();v.removeNode(this.bgIframeEl_);v.removeNode(e)}this.isVisible()&&LYI(this,!1)}};
_.W.exitDocument=function(){this.isVisible()&&this.setVisible(!1);taE(this,!1);Pw.superClass_.exitDocument.call(this)};
_.W.setVisible=function(v){v!=this.isVisible()&&(this.inDocument_||this.render(),Pw.superClass_.setVisible.call(this,v))};
_.W.onShow=function(){Pw.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.W.onHide=function(){Pw.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10165_disposeOnHide_&&this.dispose()};
_.W.setDraggerLimits_=function(){var v=this.JSC$10132_dom_.JSC$9317_document_,e=_.jy(xx(v)||window),d=Math.max(v.body.scrollWidth,e.width);v=Math.max(v.body.scrollHeight,e.height);var E=m1A(this.getElement());_.IwM(this.getElement())=="fixed"?this.JSC$10165_dragger_.limits=new tZ(0,0,Math.max(0,e.width-E.width),Math.max(0,e.height-E.height)):this.JSC$10165_dragger_.limits=new tZ(0,0,d-E.width,v-E.height)};
_.W.onTitleCloseClick_=function(){fFi(this)};
var fFi=function(v){if(v.hasTitleCloseButton_){var e=v.buttons_,d=e&&e.cancelButton_;d?(e=e.get(d),v.dispatchEvent(new ze(d,e))&&v.setVisible(!1)):v.setVisible(!1)}},RN2=function(v){v.hasTitleCloseButton_=!1;
v.titleCloseEl_&&_.wf(v.titleCloseEl_,v.hasTitleCloseButton_)};
Pw.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Pw.superClass_.disposeInternal.call(this)};
Pw.prototype.onButtonClick_=function(v){a:{for(v=v.target;v!=null&&v!=this.buttonEl_;){if(v.tagName=="BUTTON")break a;v=v.parentNode}v=null}if(v&&!v.disabled){v=v.name;var e=this.buttons_.get(v);this.dispatchEvent(new ze(v,e))&&this.setVisible(!1)}};
Pw.prototype.onKey_=function(v){var e=!1,d=!1,E=this.buttons_,T=v.target;if(v.type=="keydown")if(this.escapeToCancel_&&v.keyCode==27){var S=E&&E.cancelButton_;T=T.tagName=="SELECT"&&!T.disabled;S&&!T?(d=!0,e=E.get(S),e=this.dispatchEvent(new ze(S,e))):T||(e=!0)}else{if(v.keyCode==9&&v.shiftKey&&T==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(r){}sd(this.resetBackwardTabWrap_,0,this)}}else if(v.keyCode==13){if(T.tagName=="BUTTON"&&!T.disabled)S=T.name;
else if(T==this.titleCloseEl_)fFi(this);else if(E){var O=E.defaultButton_,b;if(b=O)a:{b=$h("BUTTON",E.JSC$10166_element_);for(var Y,q=0;Y=b[q];q++)if(Y.name==O||Y.id==O){b=Y;break a}b=null}T=(T.tagName=="TEXTAREA"||T.tagName=="SELECT"||T.tagName=="A")&&!T.disabled;!b||b.disabled||T||(S=O)}S&&E&&(d=!0,e=this.dispatchEvent(new ze(S,String(E.get(S)))))}else T!=this.titleCloseEl_||v.keyCode!=32&&v.key!=" "||fFi(this);if(e||d)v.stopPropagation(),v.preventDefault();e&&this.setVisible(!1)};
var ze=function(v,e){this.type="dialogselect";this.key=v;this.caption=e};
_.vM(ze,_.bI);var Xx=function(v){xT.call(this);v||NR();this.cancelButton_=this.JSC$10166_element_=this.defaultButton_=null};
_.vM(Xx,xT);_.W=Xx.prototype;_.W.clear=function(){xT.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.W.set=function(v,e,d,E){xT.prototype.set.call(this,v,e);d&&(this.defaultButton_=v);E&&(this.cancelButton_=v);return this};
_.W.addButton=function(v,e,d){return this.set(v.key,v.caption,e,d)};
_.W.render=function(){if(this.JSC$10166_element_){_.UJ(this.JSC$10166_element_,mkM);var v=NR(this.JSC$10166_element_);this.forEach(function(e,d){e=v.JSC$9319_createDom("BUTTON",{name:d},e);d==this.defaultButton_&&(e.className="goog-buttonset-default");this.JSC$10166_element_.appendChild(e)},this)}};
_.W.decorate=function(v){if(v&&v.nodeType==1){this.JSC$10166_element_=v;v=$h("BUTTON",this.JSC$10166_element_);for(var e,d,E,T=0;e=v[T];T++)if(d=e.name||e.id,E=SiJ(e)||e.value,d){var S=T==0;this.set(d,E,S,e.name=="cancel");S&&_.eM(e,"goog-buttonset-default")}}};
_.W.getElement=function(){return this.JSC$10166_element_};
var oe7={key:"ok",caption:"OK"},Jo0={key:"cancel",caption:"Cancel"},PR2={key:"yes",caption:"Yes"},xk7={key:"no",caption:"No"},Bti={key:"save",caption:"Save"},CRe={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Xx).addButton(oe7,!0,!0),(new Xx).addButton(oe7,!0).addButton(Jo0,!1,!0),(new Xx).addButton(PR2,!0).addButton(xk7,!1,!0),(new Xx).addButton(PR2).addButton(xk7,!0).addButton(Jo0,!1,!0),(new Xx).addButton(CRe).addButton(Bti).addButton(Jo0,!0,!0));_.vM(dkt,Pw);_.vM(Ees,Bw);var X8I=_.Z9(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),zN2=_.Z9(["//apis.google.com/js/rpc.js"]),Y$U=_.ie(X8I),bUW=_.ie(zN2),S$M=null;var CX=function(v,e){_.r6.call(this);this.JSC$10175_element_=v;v=_.DF(this.JSC$10175_element_)?this.JSC$10175_element_:this.JSC$10175_element_?this.JSC$10175_element_.body:null;this.isRtl_=!!v&&_.ri2(v);this.listenKey_=_.MC(this.JSC$10175_element_,_.S1?"DOMMouseScroll":"mousewheel",this,e)};
_.vM(CX,_.r6);CX.prototype.handleEvent=function(v){var e=0,d=0,E=v.event_;E.type=="mousewheel"?(v=lFB(-E.wheelDelta),E.wheelDeltaX!==void 0?(e=lFB(-E.wheelDeltaX),d=lFB(-E.wheelDeltaY)):d=v):(v=E.detail,v>100?v=3:v<-100&&(v=-3),E.axis!==void 0&&E.axis===E.HORIZONTAL_AXIS?e=v:d=v);typeof this.maxDeltaX_==="number"&&(e=_.M3(e,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(d=_.M3(d,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(e=-e);e=new HUe(v,E,e,d);this.dispatchEvent(e)};
var lFB=function(v){return _.WM&&(_.jh$||Nc$)&&v%40!=0?v:v/40};
CX.prototype.disposeInternal=function(){CX.superClass_.disposeInternal.call(this);o5(this.listenKey_);this.listenKey_=null};
var HUe=function(v,e,d,E){_.YN.call(this,e);this.type="mousewheel";this.detail=v;this.deltaX=d;this.deltaY=E};
_.vM(HUe,_.YN);_.nr=function(v){var e="instance_";if(v.instance_&&v.hasOwnProperty(e))return v.instance_;e=new v;return v.instance_=e};var IF0;var Ao7=_.Z9(["https://about:blank"]),ZUn=_.Z9(['javascript:""']),coc=_.Z9(["about:blank"]);_.vM(F$,dkt);_.W=F$.prototype;_.W.JSC$10183_url_="";_.W.JSC$10183_iframe_=null;_.W.iframeLoaded_=!1;_.W.loadedFired_=!1;_.W.callback_=function(){};
_.W.enterDocument=function(){F$.superClass_.enterDocument.call(this);iUt(this.getBackgroundElement(),tM(this))};
_.W.render=function(v){var e=this;F$.superClass_.render.call(this,v);this.useGapi_?ca7(this.iframeManager_,window).then(function(){return w8E(e)}).then(null,function(){e.callback_({action:"error"})}):FYE(this)};
var w8E=function(v){var e=v.JSC$10132_dom_.JSC$9319_createDom("div",["picker-dialog-content","picker-frame"]);_.wf(e,!1);v.getContentElement().appendChild(e);return wiI(v.iframeManager_,e,function(d){var E=IBi(d["iframe-command"]);switch(E.getCommand()){case 1:d=v.callback_;E=_.W8(E,u_,2);var T="";switch(E.getStatus()){case 2:T="cancel";break;case 1:T="picked";break;case 3:T="error"}var S=_.df(E,j1,2,_.El(Qh0));E=S.length===0?{action:T}:LqE(S,T,_.W8(E,aBg,7));d.call(v,E);v.setVisible(!1);break;case 4:RN2(v);
v.callback_({action:"loaded"});break;case 7:case 8:d=v.callback_;a:{T=E.getCommand();S=_.W8(E,u_,2);switch(T){case 7:T="uploadScheduled";break;case 8:T="uploadStateChange";break;default:E={};break a}E=_.df(S,j1,2,_.El(Qh0));if(E.length===0)E={action:T};else{var O=_.W8(S,aBg,7);S=O&&_.Vm(O,1);O=m_e(O);E=raA(E,T,S,O)}}d.call(v,E)}},v.JSC$10183_url_,v.targetId_,v.rpcToken_).then(function(d){v.JSC$10183_iframe_=d.getIframeEl();
QMA(v);_.wf(v.JSC$10183_iframe_.parentElement,!0);_.eM(v.getElement(),"picker-dialog");geJ(v);return d})},FYE=function(v){v.JSC$10183_iframe_=v.JSC$10132_dom_.JSC$9319_createDom("IFRAME",{id:v.targetId_,
name:v.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.c$(v.JSC$10183_iframe_,unA(v));_.eM(v.getElement(),"picker-dialog");v.getContentElement().appendChild(v.JSC$10183_iframe_);tM(v).listen(v.JSC$10183_iframe_,"load",function(){return void QMA(v)});
v.JSC$10183_iframe_.src=v.JSC$10183_url_;geJ(v)},Dkc=function(v){neg(v,(0,_.LX)(function(e){e.setAuthToken(this.targetId_,this.rpcToken_)},v))},geJ=function(v){var e=_.Z4(_.Az(v.JSC$10183_url_),"title");
e&&v.setTitle(e)},unA=function(v){return _.ysL("Internet Explorer")>=7&&_.aU(v.JSC$10183_url_,"https")?_.ie(Ao7):_.Tw?_.ie(ZUn):_.ie(coc)},QMA=function(v){Dkc(v);
v.iframeLoaded_=!0;v.JSC$10183_iframe_.tabIndex=0;v.isVisible()&&v.focus()};
F$.prototype.handleKeydown_=function(v){v.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),v.stopPropagation(),v.preventDefault())};
var neg=function(v,e){var d=v.JSC$10181_gadgetsDomHelper_;WYM(function(){e(d.getWindow().gadgets.rpc)},d)};
F$.prototype.setUrl=function(v){v=_.cw(new _.vF(v),"rpcService",this.targetId_);_.cw(v,"rpctoken",this.rpcToken_);_.Ud(v,"rpctoken="+this.rpcToken_);_.QQ(v,"https");this.JSC$10183_url_=v.toString();this.JSC$10183_iframe_&&(this.JSC$10183_iframe_.src=this.JSC$10183_url_)};
var Ukn=function(v,e){v.callback_=e;neg(v,(0,_.LX)(function(d){d.register(this.targetId_,(0,_.LX)(this.handlePickerAction_,this))},v))};
F$.prototype.handlePickerAction_=function(v){var e=v.action;e=="loaded"&&(this.loadedFired_=!0,p86(this,new eNt(this.isVisible())),vf7(this),RN2(this),tM(this).unlisten(this.JSC$10132_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10183_iframe_.tabIndex=0);e!="picked"&&e!="cancel"||this.setVisible(!1);this.callback_(v)};
var vf7=function(v){v.JSC$10183_appId_&&p86(v,new ve7(v.JSC$10183_appId_,window.location.protocol+"//"+window.location.host))};
F$.prototype.setRelayUrl=function(v){neg(this,(0,_.LX)(function(e){e.setRelayUrl(this.targetId_,v)},this))};
var p86=function(v,e){v.useGapi_&&nLe(e,v.iframeManager_).then(null,function(){v.callback_({action:"error"})});
neg(v,(0,_.LX)(function(d){d.call(this.targetId_,"picker",null,e)},v))};
F$.prototype.resizePicker_=function(){var v=xx(this.JSC$10132_dom_.JSC$9317_document_)||window;if(_.Z4(_.Az(this.JSC$10183_url_),"ignoreLimits")=="true")v=new _.$x(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Z4(_.Az(this.JSC$10183_url_),"shadeDialog")=="true"){var e=Gdc(this);e=h_M(e);var d=_.jy(v);v=d.width-80;d=d.height-40;e&&(v-=e.left?e.left:0,v-=e.right?e.right:0,d-=e.top?e.top:0,d-=e.bottom?e.bottom:0);v=new _.$x(v>0?v:0,d>0?d:0)}else(e=this.preferredDialogWidth_)?(e=Math.max(320,
Math.min(1051,e)),(d=this.preferredDialogHeight_)||(d=_.jy(v).height*.85),d=Math.max(480,Math.min(650,d))):(e=_.jy(v),d=e.width*.618,d=d<e.height?Math.round(Math.max(480,Math.min(650,d*.85))):Math.round(Math.max(480,Math.min(650,e.height*.85))),e=Math.round(d/.618)),v=_.jy(v),e=Math.min(e,Math.max(v.width,320)),d=Math.min(d,Math.max(v.height,480)),v=new _.$x(e,d);_.b9I(this.getContentElement(),v);this.reposition()};
F$.prototype.reposition=function(){if(_.Z4(_.Az(this.JSC$10183_url_),"shadeDialog")=="true"){var v=m1A(this.getElement()),e=_.jy(this.JSC$10132_dom_.getWindow());v=Math.floor(e.width/2-v.width/2);e=Gdc(this);if(e=h_M(e)){var d=e.left?e.left:0;d+=e.right?e.right:0;v=Math.floor(v-d/2)}v=v>0?v:0;e=sa(this.JSC$10132_dom_).y;PB(this.getElement(),v,e)}else F$.superClass_.reposition.call(this)};
F$.prototype.setVisible=function(v){if(v!=this.isVisible()&&this.autoSizeDialog_){var e=this.JSC$10132_dom_.getWindow();v?(this.resizePicker_(),tM(this).listen(e,"resize",this.resizePicker_),this.iframeLoaded_||tM(this).listen(e,"keydown",this.handleKeydown_)):(tM(this).unlisten(e,"resize",this.resizePicker_),this.iframeLoaded_||tM(this).unlisten(e,"keydown",this.handleKeydown_))}F$.superClass_.setVisible.call(this,v);p86(this,new eNt(v))};
F$.prototype.focus=function(){F$.superClass_.focus.call(this);if(this.JSC$10183_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10183_iframe_.focus()}catch(v){}};var XD=function(v,e){e=e===void 0?F$:e;Bw.call(this,v);this.pickerConstructor=e;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(v=window.location.origin)||(v=window.location.protocol+"//"+window.location.host);v&&this.urlParamMap_.set("origin",v);this.postProcessors_=[]};
_.V(XD,Ees);XD.prototype.JSC$10188_disposeOnHide_=!1;
XD.prototype.build=function(){this.JSC$10089_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10089_appId_);this.getRelayUrl()||this.setRelayUrl(_.ny(_.Ud(_.DH(_.Az(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var v=new this.pickerConstructor(eeE(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);v.JSC$10165_disposeOnHide_=this.JSC$10188_disposeOnHide_;
v.JSC$10183_appId_=this.JSC$10089_appId_;v.loadedFired_&&vf7(v);Ukn(v,this.callback_);return v};
var dG7=function(v){v.urlParamMap_.set("multiselectEnabled","true");return v};
_.W=XD.prototype;_.W.getHeight=function(){return this.dialogHeight_};
_.W.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.W.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.W.getTitle=function(){return this.urlParamMap_.get("title")};
_.W.getWidth=function(){return this.dialogWidth_};
var Ef6=function(v){v.JSC$10188_disposeOnHide_=void 0;return v};
XD.prototype.setRelayUrl=function(v){this.urlParamMap_.set("parent",v);return this};
var Tbi=function(v,e){v.urlParamMap_.set("selectButtonLabel",e);return v};
XD.prototype.setSize=function(v,e){this.dialogWidth_=v;this.dialogHeight_=e;return this};
XD.prototype.setTitle=function(v){this.urlParamMap_.set("title",v);return this};
var eeE=function(v){v.postProcessors_.length&&v.urlParamMap_.set("pp",JSON.stringify(v.postProcessors_));v.urlParamMap_.set("nav",Own(v.nav_));var e=new _.vF(v.getBaseUrl());v.urlParamMap_.forEach(function(d,E){_.cw(e,E,d)});
return e};var aqI=function(v,e){v.name!==void 0?(this.name=v.name,this.code=SNM[v.name]):(this.code=v=v.code,this.name=WHg(v));_.dH.call(this,JsB("%s %s",this.name,e))};
_.vM(aqI,_.dH);var WHg=function(v){var e=_.f0.findKey(SNM,function(d){return v==d});
if(e===void 0)throw Error("hb`"+v);return e},la={},SNM=(la.AbortError=3,la.EncodingError=5,la.InvalidModificationError=9,la.InvalidStateError=7,la.NotFoundError=1,la.NotReadableError=4,la.NoModificationAllowedError=6,la.PathExistsError=12,la.QuotaExceededError=10,la.SecurityError=2,la.SyntaxError=8,la.TypeMismatchError=11,la);var iI7=function(v,e){_.bI.call(this,v.type,e);this.event_=v};
_.vM(iI7,_.bI);var OIB=function(v,e,d){d===void 0&&(d=v.size);return v.slice?v.slice(e,d):null};var q$S=new WeakMap,yot=function(v,e){v=[v];for(var d=e.length-1;d>=0;--d)v.push(typeof e[d],e[d]);return v.join("\v")};_.hNt(function(){if(!_.TO.Blob)return!1;var v=new Uint8Array(100);try{var e=new Blob([v])}catch(d){return!1}return e.size!=100?!1:!0});
var IqB=_.hNt(function(){if(!_.TO.Blob)return!1;var v=new Uint8Array(100);try{var e=new Blob([v])}catch(d){return!1}return OIB(e,0,1)===null?!1:!0});_.TO.U3bHHf!=null||(_.TO.U3bHHf=0);_.TO.U3bHHf++;_.bIA=new WeakMap;_.YNc=new WeakMap;var $kO={};var uZ=void 0;var sMS=Symbol("pb");var xkt=Ul("WizInjectionContext_Dispatcher");var vb=Symbol("qb");var mE,$c;mE=function(){this.afterRenderCallbacks=null};
_.uf$=Symbol("rb");$c=function(v){this.props=v;this.__unmounted=!1};
$c.prototype.didPatch=function(){};
$c.prototype.didMount=function(){};
$c.prototype.didUnmount=function(){};
$c.prototype.didUpdate=function(){};_.Ma0=Ul("WizInjectionContext_RootElement");var fF7=Ul("WizInjectionContext_AppContext"),taU=Ul("WizInjectionContext_ModelRootElement"),RNO=Ul("WizInjectionContext_RendererData"),PRO=Ul("WizInjectionContext_InjectingConstructor"),Gd3=Ul("WizInjectionContext_AsyncDeps"),Bt7={};var Aot=!1;var FYU={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:ym7,enableLazyTsx:qO7,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:m8t,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var vx=Object.assign({},{attributes:{},handleError:function(v){throw v;}},FYU);var mGc=Symbol("vb"),rh=Symbol("wb"),BbM=Symbol("xb"),PlO=Symbol("yb"),ZI3=Pc(function(v){return ex(v)&&mGc in v});var p80=Symbol("zb"),Hr={},Dk3=(Hr[p80]=!0,Hr.debugName="[component]",Hr.getComponentStack=function(){for(var v=[],e=this;e;)vft(e)&&v.push(e.debugName),e=e.parent;return v},Hr.registerSignal=function(){},Hr.registerEffect=function(){},Hr);var dh=null,Tq=!1,Tb7=1,a_=Symbol("Ab"),ms={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var AM=Symbol("Bb"),Zf=Symbol("Cb"),Wx=Symbol("Db"),YN3=Object.assign({},ms,{value:AM,dirty:!0,error:null,equal:eeU,kind:"computed",producerMustRecompute:function(v){return v.value===AM||v.value===Zf},
producerRecomputeValue:function(v){if(v.value===Zf)throw Error("Z");var e=v.value;v.value=Zf;var d=OIj(v),E=!1;try{var T=v.computation();EE(null);E=e!==AM&&e!==Wx&&T!==Wx&&v.equal(e,T)}catch(S){T=Wx,v.error=S}finally{bIW(v,d)}E?v.value=e:(v.value=T,v.version++)}});var rIt=function(){throw Error();};var KH0=null,yIH=Object.assign({},ms,{equal:eeU,value:void 0,kind:"signal"});Object.assign({},ms,{value:AM,dirty:!0,error:null,equal:eeU,kind:"linkedSignal",producerMustRecompute:function(v){return v.value===AM||v.value===Zf},
producerRecomputeValue:function(v){if(v.value===Zf)throw Error("Z");var e=v.value;v.value=Zf;var d=OIj(v);try{var E=v.source();var T=v.computation(E,e===AM||e===Wx?void 0:{source:v.sourceValue,value:e});v.sourceValue=E}catch(S){T=Wx,v.error=S}finally{bIW(v,d)}e!==AM&&T!==Wx&&v.equal(e,T)?v.value=e:(v.value=T,v.version++)}});Object.assign({},ms,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(v){v.schedule!==null&&v.schedule(v.ref)},
hasRun:!1,cleanupFn:function(){}});var jIj=Symbol("Eb"),I_=Symbol("Fb");var b3=Array.isArray;var MhU;var yIn={},fq0=GNM(Object.assign({},{consumerAllowSignalWrites:!0},yIn)),q9=GNM(Object.assign({},{consumerAllowSignalWrites:!0},yIn));var hf=0,KD=!1,cr=function(){this.queue=new Set};
cr.prototype.remove=function(v){this.queue.delete(v)};
cr.prototype.clear=function(){this.queue.clear()};
var qNc=function(){cr.apply(this,arguments)};
_.V(qNc,cr);qNc.prototype.schedule=function(v){this.queue.add(v)};
qNc.prototype.flush=function(){if(this.queue.size){KD=!0;try{for(var v=_.a(this.queue),e=v.next();!e.done;e=v.next()){var d=e.value;this.queue.delete(d);try{d.run()}catch(E){rI0(E)}}}finally{KD=!1}}};
var heE=new qNc,wG=function(){cr.apply(this,arguments)};
_.V(wG,cr);var KHg=function(){wG.apply(this,arguments)};
_.V(KHg,wG);KHg.prototype.schedule=function(v){v.hasRun?this.queue.add(v):v.run()};
KHg.prototype.flush=function(){if(this.queue.size)if(vx.flushRenderEffectsDuringRender){var v=this.queue;this.queue=new Set;cIj(v)}else cIj(this.queue)};
var ReM=new KHg,$G0=function(){wG.apply(this,arguments)};
_.V($G0,wG);$G0.prototype.schedule=function(v){var e=this;return _.I(function(d){if(d.nextAddress==1)return v.hasRun?d.jumpTo(2):d.yield(Promise.resolve(),3);if(d.nextAddress!=2)return v.run(),d.return();e.queue.add(v);_.s9(d)})};
$G0.prototype.flush=function(){var v=this;return _.I(function(e){if(e.nextAddress==1)return v.queue.size?e.yield(Promise.resolve(),2):e.return();cIj(v.queue);_.s9(e)})};
var Clt=new $G0,jIB=function(){wG.apply(this,arguments)};
_.V(jIB,wG);jIB.prototype.schedule=function(v){this.queue.add(v)};
jIB.prototype.flush=function(){this.queue.size&&cIj(this.queue)};
var xGj=new jIB,HI0=[ReM,heE,xGj,Clt],sIu=[ReM,xGj,Clt],zeL=[];KH0=function(){AI$();for(var v=_.a(zeL),e=v.next();!e.done;e=v.next())e=e.value,e()};
var rI0=W3;_.N4=Symbol("Kb");var sE=null,QI0,gf3=null,uTs;var Fx={},Nb2=Object.assign({},ms,(Fx[mGc]=!0,Fx.effectType=rh,Fx.isResettableContext=!0,Fx.hasRun=!1,Fx.effectFn=null,Fx.consumerIsAlwaysLive=!0,Fx.consumerAllowSignalWrites=!0,Fx.consumerMarkedDirty=XVt,Fx.kind="effect",Fx.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Tq)throw Error("Lb");this.dirty=!1;if(!this.hasRun||SNL(this)){this.hasRun=!0;Jot(this);var v=_.nX(this),e=OIj(this);geM("effectRun",this.debugName);try{Vl(this.effectFn,this.componentStack,this)}catch(d){throw vx.enableContextBasedComponentStacks&&
LD(d),d;}finally{unW("effectRun",this.debugName),bIW(this,e),_.nX(v)}}}},Fx.componentStack=void 0,Fx.debugName="[effect]",Fx[Symbol.dispose]=function(){if(Sx(this))for(var v=this.producers;v!==void 0;)v=Iqj(v);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;v=_.a(sIu);for(var e=v.next();!e.done;e=v.next())e.value.remove(this);oet(this)},Fx));var UGU=Object.assign({},Nb2,{effectType:BbM});var pV$=Symbol("Mb");var vk0=Object.assign({},Nb2,{effectType:rh});var CWs=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 Ekt={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},dy7=
{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}]}},Zy0={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},Wh3=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],ShW={"*":{async:1,dir:0,loading:2,target:3}};var kNB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,QJ={},ik3=(QJ[1]=null,QJ[2]=function(v,e){return e instanceof H$?ZB(e):P$.toString()},QJ[3]=function(v,e){return GD(e)?_.Mf(e):kNB.test(String(e))?String(e):P$.toString()},QJ[4]=function(v,e){return e instanceof Nf?_.LY(e):P$.toString()},QJ[5]=function(v,e){return String(e)},QJ[7]=null,QJ[8]=null,QJ[10]=null,QJ);var eJM=Symbol("Pb");var N_M=function(v){var e=LHn,d=v,E="",T="",S=1;v<0&&(v=-v);if(v===Infinity)v=(Infinity*Math.sign(d)).toString();else{for(var O=0;O<VhA.length;O++){var b=VhA[O];S=e[b];if(v>=S||S<=1&&v>.1*S){E=b;break}}E?(E+="B",T=" "):S=1;v=Math.round(d/S*10)/10+T+E}return v},VhA="Y Z E P T G M K  m u n".split(" "),LHn={"":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};_.ofg=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 Wb={};RegExp.prototype.hasOwnProperty("sticky");var zI7=function(v){v=String(v);for(var e=function(E,T,S){for(var O=Math.min(T.length-S,E.length),b=0;b<O;b++){var Y=T[S+b];if(E[b]!==("A"<=Y&&Y<="Z"?Y.toLowerCase():Y))return!1}return!0},d=0;(d=v.indexOf("<",d))!=-1;){if(e("\x3c/script",v,d)||e("\x3c!--",v,d))return"zSoyz";
d+=1}return v};var zq={default:"__default"};var y0M=Object.prototype.hasOwnProperty;bks.prototype=Object.create(null);var vY=hIL();var u3=null;var MO7=function(v){this.created=[];this.deleted=[];this.node=v};var tO3=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var v=this,e=v;v;)e=v,v=v.parentNode;return e};var $y0=function(v,e){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=v;this.key=e;this.text=void 0};var Zg=null,cx=null,Hx=null,FK=null,Lht=[],kv$=sO$,Ql=[],gh=[],vpj=function(v){return f8U(function(e,d,E){Hx=cx=e;cx=null;d(E);Nmt(null);cx=Hx;Hx=Hx.parentNode;return e},v)}(),p50=function(v){return f8U(function(e,d,E){var T={nextSibling:e};
cx=T;d(E);Hx&&Nmt(e.nextSibling);return T===cx?null:cx},v)}();var nD=[],PWt=0;var Dg=new bks;var Pz=new bks;var JI2=hIL(),A0j=JI2[zq.default],HkU=JI2.style,XYM=["focusin","focusout"],wY3="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var JW7=function(){},rW0=function(){},RbL=function(){},Mo$=function(){};var pD=Symbol("Wb");var nkH,ukM=gk$;var Is=Symbol("Xb");var f_L=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(" ")),
to3=new Set(["a","font","script","style","title"]);var OW={setUp:O2t,tearDown:O2t,log:O2t,logNodeRange:O2t,graft:function(v,e){e()}};var rZ={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var hE=null,K4=function(v,e){$c.call(this,v);var d=this;this.functionComponent=e;this.hooks=[];this.hookCounter=0;this.disposeEffects=Gq(function(E){d.effectContext=E;_.Jf(function(){jmM(d,d.el)})},vx.alwaysTrackContexts||!!uZ)};
_.V(K4,$c);K4.prototype.render=function(v){var e=hE;hE=this;this.hookCounter=0;var d=EE(q9),E=_.nX(this.effectContext);try{return geM("render",this.componentName),this.functionComponent(v)}finally{unW("render",this.componentName),_.nX(E),EE(d),hE=e}};
_.vP.Object.defineProperties(K4.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return wV3(this.functionComponent)}}});var Pnt=Symbol("kc"),Vo0=function(v,e,d){this.afterRenderCallbacks=null;this.kind=v;this.props=e;this.children=d};
_.V(Vo0,mE);Vo0.prototype.render=function(){var v=L$S(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var e=_.a(this.afterRenderCallbacks),d=e.next();!d.done;d=e.next())d=d.value,v=d(v);return v};
Vo0.prototype.getChildren=function(){return this.children};var B3L=[];rIt=function(v){throw Error("ob`"+v.debugName);};
(function(){var v=u3;u3=function(e){v==null||v(e);Cn7(e)}})();var GNJ=new WeakMap,MhE=0;var thu=void 0,fq6={},ReJ=new WeakMap,Bdt={getComponent:function(v){if(v.hasAttribute("ng-version"))return fq6;if(!v.__wizComponent)return null;v=v.__wizComponent;ReJ.set(v.propsAndState,v);return v.propsAndState},
getDirectiveMetadata:function(v){if(v===fq6)return{framework:"wiz",name:"<Root>",props:{}};v=ReJ.get(v);if(!v)throw Error("lc");return{framework:"wiz",name:v.name,props:Object.fromEntries(Object.keys(v.props).map(function(e){return[e,e]}))}},
"\u0275setProfiler":function(v){var e;(e=thu)==null||e();thu=lqt(function(){v(2)})},
getInjector:function(v){return v.__wizComponent},
"\u0275getSignalGraph":function(v){var e;v=(e=v.effects)!=null?e:[];var d=XPs(v),E=Array.from(d.keys());e=[];v=[];for(var T=new Map,S=0;S<E.length;S++)T.set(E[S],S);d=_.a(d.entries());for(E=d.next();!E.done;E=d.next()){S=_.a(E.value);E=S.next().value;var O=S.next().value;S=E;E=T.get(S);var b=GNJ.get(S);b||(b=MhE.toString(),GNJ.set(S,b),MhE++);var Y=void 0,q=((Y=S.debugName)!=null?Y:"").replace(/@.+/,"");if(S.kind==="computed"){Y=S.computation;var r=void 0;e.push({label:q,value:S.value,kind:S.kind,
epoch:S.version,debuggableFn:(r=Y.userFn)!=null?r:Y,id:b})}else if(S.kind==="signal")e.push({label:q,value:S.value,kind:S.kind,epoch:S.version,debuggableFn:S.debugFn,id:b});else if(S.kind==="effect"){r=void 0;Y=(r=S.effectFn)!=null?r:void 0;var h=r=void 0;e.push({label:q,kind:S.kind,epoch:S.version,debuggableFn:(h=(r=Y)==null?void 0:r.userFn)!=null?h:Y,id:b})}else e.push({label:q,kind:S.kind,epoch:S.version,id:b});S=_.a(O);for(O=S.next();!O.done;O=S.next())v.push({consumer:E,producer:T.get(O.value)})}return{nodes:e,
edges:v}},
isSignal:function(v){return typeof v==="function"&&v[a_]!==void 0}};Object.assign({},Nb2,{effectType:rh,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var v=this.elementRef;var e;v.element!=null||(v.element=(e=v.document.getElementById(v.value))!=null?e:void 0);v=v.element;for(e=this.attributes;e;){var d=e.signal();d!==e.prevValue&&(e.prevValue=d,e.namespace===1?v[e.name]=d:CWs.has(e.name)?Bx(v,e.name,d?"":null):Bx(v,e.name,d));e=e.next}}});Object.assign({},Nb2,{effectType:rh,hasRun:!0});_.y.debugName="RlDudd";var zbH={nonNullableCondIsNull:function(){return Error("pc")}};var wPt=function(){this.map=new Map};
wPt.prototype.push=function(v,e){var d=this.map;d.has(v)&&(this.multi||(this.multi=new Map),this.multi.set(e,d.get(v)));d.set(v,e)};
wPt.prototype.pop=function(v){var e=this.map,d=e.get(v),E;d!==void 0&&((E=this.multi)==null?0:E.has(d))?(e.set(v,this.multi.get(d)),this.multi.delete(d)):e.delete(v);return d};_.jI.debugName="nsTGHd";_.sW.debugName="tbhMcf";_.N9.debugName="zyMFzb";_.kc.debugName="vI1rtf";_.Dn$={OUT_OF_ORDER_HOOK_CALL:function(v){return Error("qc`"+v)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("rc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("sc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("tc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(v,e){return Error("uc`"+((e===void 0?0:e)?"IDOM":"Reactive")+"`"+(L4(v)?v.description:v))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(v,e){return Error("vc`"+(L4(v)?v.description:v)+"`"+e)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(v){return Error("wc`"+(L4(v)?v.description:v))},
USE_ELEMENT_NOT_ASSIGNED:function(v){return Error("xc`"+(L4(v)?v.description:v))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(v){return Error("yc`"+(L4(v)?v.description:v))}};nkH=oqt;var Sz$=Symbol("Cc");K$j({beforeRender:function(v){var e=_.nX(v.effectContext);try{var d;((d=v.__syncEffects)==null?0:d.length)&&iB0(v.__syncEffects)}finally{_.nX(e)}},
didPatch:function(v){var e=_.nX(v.effectContext);try{var d;((d=v.__syncEffects)==null?0:d.length)&&iB0(v.__syncEffects)}finally{_.nX(e)}},
didUnmount:function(v){var e;((e=v.hooks)==null?0:e.length)&&v.hooks.forEach(amH)}});var Pl2,xGB,BbJ;Pl2=_.TO.window;_.Pb=(Pl2==null?void 0:(xGB=Pl2.yt)==null?void 0:xGB.config_)||(Pl2==null?void 0:(BbJ=Pl2.ytcfg)==null?void 0:BbJ.data_)||{};_.pw("yt.config_",_.Pb);var Cl0={},Yz7=[];_.kL=function(v){var e=_.Xa.apply(1,arguments);var d=Error.call(this,v);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(_.t7(e));Object.setPrototypeOf(this,this.constructor.prototype)};
_.V(_.kL,Error);var Vr0=function(v,e,d){this.actionName=v;this.optionalAction=e===void 0?!1:e;this.args=d===void 0?null:d;this.returnValue=[]};_.gG=function(v){this.name=v};_.HV=new _.gG("signalAction");var kEs=/^[\w.]*$/,ha0={q:!0,search_query:!0},rUL=String(qzM);var ua;ua=Symbol("Dc");_.nC=function(v){this.name=v};
_.nC.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var LNU=function(v){this.key=v},MX0=function(v){this.deferredKey=v},oBH=function(){var v=this;
this.providers=new Map;this.JSC$10470_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(v.providers)}}};
oBH.prototype.addProvider=function(v){this.providers.set(v.provide,v);var e=this.JSC$10470_deferred.get(v.provide);if(e)try{e.resolver(this.resolve(v.provide))}catch(d){e.rejector(d)}};
oBH.prototype.resolve=function(v){return v instanceof MX0?XV0(this,v):v instanceof LNU?zeM(this,v.key,[],!0):zeM(this,v,[])};
var XV0=function(v,e){e=e.deferredKey;if(v.JSC$10470_deferred.has(e))return v.JSC$10470_deferred.get(e).promise;var d={};d.promise=new Promise(function(E,T){d.resolver=E;d.rejector=T});
v.JSC$10470_deferred.set(e,d);return d.promise},zeM=function(v,e,d,E){E=E===void 0?!1:E;
if(d.indexOf(e)>-1)throw Error("Ec`"+e);if(v.cachedValues.has(e))return v.cachedValues.get(e);if(!v.providers.has(e)){if(E)return;throw Error("Fc`"+e);}E=v.providers.get(e);d.push(e);if(E.useValue!==void 0)var T=E.useValue;else if(E.useFactory)T=E[ua]?lq7(v,E[ua],d):[],T=E.useFactory.apply(E,_.t7(T));else if(E.useClass){T=E.useClass;var S=T[ua]?lq7(v,T[ua],d):[];T=new (Function.prototype.bind.apply(T,[null].concat(_.t7(S))))}else throw Error("Gc`"+e);d.pop();E.skipCache||v.cachedValues.set(e,T);return T},
lq7=function(v,e,d){return e?e.map(function(E){return E instanceof LNU?zeM(v,E.key,d,!0):zeM(v,E,d)}):[]};var VXS;var cV=new _.nC("ENDPOINT_HANDLER_TOKEN");_.wb=new _.gG("urlEndpoint");var HIg=function(){this.data=[];this.cachedPackedInt52=-1};
HIg.prototype.set=function(v,e){e=e===void 0?!0:e;0<=v&&v<52&&Number.isInteger(v)&&this.data[v]!==e&&(this.data[v]=e,this.cachedPackedInt52=-1)};
HIg.prototype.get=function(v){return!!this.data[v]};
var AIu=function(v){v.cachedPackedInt52===-1&&(v.cachedPackedInt52=v.data.reduce(function(e,d,E){return e+(d?Math.pow(2,E):0)},0));
return v.cachedPackedInt52};var cUO=function(v){var e=ZIc;v=v===void 0?_.AE("yt.ads.biscotti.lastId_")||"":v;var d=Object,E=d.assign,T={};T.dt=XwA;T.flash="0";a:{try{var S=e.JSC$10476_win_.top.location.href}catch(v3){S=2;break a}S=S?S===e.doc_.location.href?0:1:2}T=(T.frm=S,T);try{T.u_tz=-(new Date).getTimezoneOffset();try{var O=xN.history.length}catch(v3){O=0}T.u_his=O;var b;T.u_h=(b=xN.screen)==null?void 0:b.height;var Y;T.u_w=(Y=xN.screen)==null?void 0:Y.width;var q;T.u_ah=(q=xN.screen)==null?void 0:q.availHeight;var r;T.u_aw=
(r=xN.screen)==null?void 0:r.availWidth;var h;T.u_cd=(h=xN.screen)==null?void 0:h.colorDepth}catch(v3){}O=e.JSC$10476_win_;try{var K=O.screenX;var k=O.screenY}catch(v3){}try{var J=O.outerWidth;var R=O.outerHeight}catch(v3){}try{var B=O.innerWidth;var X=O.innerHeight}catch(v3){}try{var Z=O.screenLeft;var U=O.screenTop}catch(v3){}try{B=O.innerWidth,X=O.innerHeight}catch(v3){}try{var F=O.screen.availWidth;var g=O.screen.availTop}catch(v3){}K=[Z,U,K,k,F,g,J,R,B,X];k=Yl0(!1,e.JSC$10476_win_.top);J={};
var Q=Q===void 0?_.TO:Q;R=new HIg;"SVGElement"in Q&&"createElementNS"in Q.document&&R.set(0);B=PMB();B["allow-top-navigation-by-user-activation"]&&R.set(1);B["allow-popups-to-escape-sandbox"]&&R.set(2);Q.crypto&&Q.crypto.subtle&&R.set(3);"TextDecoder"in Q&&"TextEncoder"in Q&&R.set(4);Q=AIu(R);e=(J.bc=Q,J.bih=k.height,J.biw=k.width,J.brdim=K.join(),J.vis=Ec$(e.doc_),J.wgl=!!xN.WebGLRenderingContext,J);d=E.call(d,T,e);d.ca_type="image";v&&(d.bid=v);return d},ZIc=new function(){var v=window.document;
this.JSC$10476_win_=window;this.doc_=v};
_.pw("yt.ads_.signals_.getAdSignalsString",function(v){return KNt(cUO(v))});_.pO();navigator.userAgent.indexOf(" (CrKey ");var xg3="XMLHttpRequest"in _.TO?function(){return new XMLHttpRequest}:null;var cIB="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),wVc=[].concat(_.t7(cIB),["client_dev_set_cookie"]);var ZBj={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"},XFt="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(_.t7(cIB)),pFs=!1,lmW=_.wF3,nBU=AUS;var j7j=[{messageFn:function(v){return"Cannot read property '"+v.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(v){return"Cannot call '"+v.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(v){return v.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var FH6={messageWeights:[],callbackWeights:[{callback:EHM,weight:500},{callback:Tgs,weight:500}]};var QIg=function(){this.callbackWeights=[];this.messageWeights=[]},gfc,$PH=function(){if(!gfc){var v=gfc=new QIg;
v.messageWeights.length=0;v.callbackWeights.length=0;SyH(v,FH6)}return gfc},SyH=function(v,e){e.messageWeights&&v.messageWeights.push.apply(v.messageWeights,e.messageWeights);
e.callbackWeights&&v.callbackWeights.push.apply(v.callbackWeights,e.callbackWeights)};_.vM(_.rk,_.kh);_.rk.prototype.subscribe=function(v,e,d){var E=this.topics_[v];E||(E=this.topics_[v]=[]);var T=this.JSC$10500_key_;this.subscriptions_[T]=v;this.subscriptions_[T+1]=e;this.subscriptions_[T+2]=d;this.JSC$10500_key_=T+3;E.push(T);return T};
var uTe=function(v){var e=LSt,d=!1,E=e.subscribe("handleError",function(T){d||(d=!0,this.unsubscribeByKey(E),v.apply(void 0,arguments))},e)};
_.rk.prototype.unsubscribe=function(v,e,d){if(v=this.topics_[v]){var E=this.subscriptions_;if(v=v.find(function(T){return E[T+1]==e&&E[T+2]==d}))return this.unsubscribeByKey(v)}return!1};
_.rk.prototype.unsubscribeByKey=function(v){var e=this.subscriptions_[v];if(e){var d=this.topics_[e];this.publishDepth_!=0?(this.pendingKeys_.push(v),this.subscriptions_[v+1]=function(){}):(d&&_.H3(d,v),delete this.subscriptions_[v],delete this.subscriptions_[v+1],delete this.subscriptions_[v+2])}return!!e};
_.rk.prototype.publish=function(v,e){var d=this.topics_[v];if(d){var E=Array(arguments.length-1),T=arguments.length,S;for(S=1;S<T;S++)E[S-1]=arguments[S];if(this.async_)for(S=0;S<d.length;S++)T=d[S],nfM(this.subscriptions_[T+1],this.subscriptions_[T+2],E);else{this.publishDepth_++;try{for(S=0,T=d.length;S<T&&!this.isDisposed();S++){var O=d[S];this.subscriptions_[O+1].apply(this.subscriptions_[O+2],E)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;d=this.pendingKeys_.pop();)this.unsubscribeByKey(d)}}return S!=
0}return!1};
var nfM=function(v,e,d){_.Ky(function(){v.apply(e,d)})};
_.rk.prototype.clear=function(v){if(v){var e=this.topics_[v];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics_[v])}else this.subscriptions_.length=0,this.topics_={}};
_.rk.prototype.getCount=function(v){if(v){var e=this.topics_[v];return e?e.length:0}v=0;for(e in this.topics_)v+=this.getCount(e);return v};
_.rk.prototype.disposeInternal=function(){_.rk.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var LSt=new _.rk;var O$=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(O$,_.du);O$.prototype.getColdHashData=function(){return _.Vm(this,3)};
O$.prototype.getHotHashData=function(){return _.Vm(this,5)};
O$.prototype.setHotHashData=function(v){return _.L0(this,5,v)};var hX0=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(hX0,_.du);var wa0=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(wa0,_.du);_.W=wa0.prototype;_.W.getDeviceId=function(){return _.Vm(this,6)};
_.W.getExperimentIds=function(v){var e=_.Ft(this,9,_.d9,3,!0);F0$(e,v);return e[v]};
_.W.getPlayerType=function(){return _.oW(this,36)};
_.W.setHomeGroupInfo=function(v){return _.hr(this,81,v)};
_.W.clearLocationPlayabilityToken=function(){return _.iR(this,89)};var hI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(hI,_.du);hI.prototype.setKey=function(v){return _.L0(this,1,v)};
hI.prototype.getValue=function(){return Gw(this,2,QZM)};
var QZM=[2,3,4,5,6];var DGg=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(DGg,_.du);DGg.prototype.setTrackingParams=function(v){return _.iR(this,1,_.Mi(v,!1))};var F8W=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(F8W,_.du);var jbS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(jbS,_.du);jbS.prototype.getExperimentIds=function(v){var e=_.Ft(this,5,_.mit,3,!0);F0$(e,v);return e[v]};var sN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(sN,_.du);sN.prototype.getToken=function(){return _.rf(this,2)};
sN.prototype.setToken=function(v){return _.L0(this,2,v)};var $f=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V($f,_.du);$f.prototype.setSafetyMode=function(v){return _.aM(this,5,v)};var rb=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(rb,_.du);rb.prototype.setClient=function(v){return _.hr(this,1,v)};var $dS={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 KxW;_.Bv=function(){var v=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.TO.addEventListener("beforeinstallprompt",function(e){e.preventDefault();v.deferredInstallPrompt=e});
_.TO.addEventListener("appinstalled",function(){v.appInstalledEventFired=!0},{once:!0})};
KxW=function(){if(!_.TO.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.TO.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.TO.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.TO.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.TO.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(v){return"WEB_DISPLAY_MODE_UNKNOWN"}};var koH=function(){this.syncHeaders=!0},Lx7=function(v){var e={},d=[];
"USER_SESSION_ID"in _.Pb&&d.push({key:"u",value:_.Bb("USER_SESSION_ID")});if(d=_.FIt(d))e.Authorization=d,d=v=v==null?void 0:v.sessionIndex,d===void 0&&(d=Number(_.Bb("SESSION_INDEX",0)),d=isNaN(d)?0:d),_.N("voice_search_auth_header_removal")||(e["X-Goog-AuthUser"]=d.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Pb||(e["X-Origin"]=window.location.origin),v===void 0&&"DELEGATED_SESSION_ID"in _.Pb&&(e["X-Goog-PageId"]=_.Bb("DELEGATED_SESSION_ID"));return e};var UGE={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Df=_.AE("ytglobal.prefsUserPrefsPrefs_")||{},pVu;_.pw("ytglobal.prefsUserPrefsPrefs_",Df);_.U3=function(){this.cookieName=_.Bb("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Bb("ALT_PREF_COOKIE_DOMAIN","youtube.com");var v=_.Kw.get(this.cookieName,void 0);v&&this.parse(v)};
_.LB=function(){pVu||(pVu=new _.U3);return pVu};
_.U3.prototype.get=function(v,e){vk6(v);eI7(v);v=Df[v]!==void 0?Df[v].toString():null;return v!=null?v:e?e:""};
_.U3.prototype.set=function(v,e){vk6(v);eI7(v);if(e==null)throw Error("Jc");Df[v]=e.toString()};
_.U3.prototype.getFlag=function(v){return!!((dyi("f"+(Math.floor(v/31)+1))||0)&1<<v%31)};
_.Va=function(v,e,d){v="f"+(Math.floor(e/31)+1);e=1<<e%31;var E=dyi(v)||0;E=d?E|e:E&~e;E===0?delete Df[v]:(d=E.toString(16),Df[v]=d.toString())};
_.U3.prototype.remove=function(v){vk6(v);eI7(v);delete Df[v]};
_.U3.prototype.save=function(){var v=!0;_.N("web_secure_pref_cookie_killswitch")&&(v=!1);_.$L(this.cookieName,this.dump(),63072E3,this.cookieDomain,v)};
_.U3.prototype.clear=function(){_.f0.clear(Df)};
_.U3.prototype.dump=function(){var v=[],e;for(e in Df)Df.hasOwnProperty(e)&&v.push(e+"="+encodeURIComponent(String(Df[e])));return v.join("&")};
var eI7=function(v){if(/^f([1-9][0-9]*)$/.test(v))throw Error("Kc`"+v);},vk6=function(v){if(!/^\w+$/.test(v))throw Error("Lc`"+v);
},dyi=function(v){v=Df[v]!==void 0?Df[v].toString():null;
return v!=null&&/^[A-Fa-f0-9]+$/.test(v)?parseInt(v,16):null};
_.U3.prototype.parse=function(v){v=decodeURIComponent(v).split("&");for(var e=0;e<v.length;e++){var d=v[e].split("="),E=d[0];(d=d[1])&&(Df[E]=d.toString())}};var mE0={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"},sbH={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},N1O={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},qoS={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var b2;_.pC=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.LI=function(v,e,d){return v.addJob(e,0,d)};
_.pC.prototype.addLowPriorityJob=function(v,e){return this.addJob(v,1,e)};
_.JX=function(v,e,d){return v.addJob(e,2,d)};
_.NP=function(v,e,d){return v.addJob(e,3,d)};
_.Yj=function(v,e,d){return v.addJob(e,4,d)};
b2=function(v){var e=_.AE("yt.scheduler.instance.addImmediateJob");e?e(v):v()};
_.pC.prototype.debounce=function(v,e,d){var E=this,T=0,S=function(){T&&E.cancelJob(T);T=E.addJob(v,e,d);E.cancelDebouncedJobMap.set(S,T)};
return S};
_.pC.prototype.cancelThrottle=function(v){(v=this.cancelThrottledJobMap.get(v))&&v()};var v6=function(){_.pC.apply(this,arguments)};
_.V(v6,_.pC);_.jd=function(){v6.instance||(v6.instance=new v6);return v6.instance};
v6.prototype.addJob=function(v,e,d){d!==void 0&&Number.isNaN(Number(d))&&(d=void 0);var E=_.AE("yt.scheduler.instance.addJob");return E?E(v,e,d):d===void 0?(v(),NaN):_.IH(v,d||0)};
v6.prototype.cancelJob=function(v){if(v===void 0||!Number.isNaN(Number(v))){var e=_.AE("yt.scheduler.instance.cancelJob");e?e(v):_.YL(v)}};
v6.prototype.start=function(){var v=_.AE("yt.scheduler.instance.start");v&&v()};
v6.prototype.pause=function(){var v=_.AE("yt.scheduler.instance.pause");v&&v()};
_.RM=_.jd();_.Lw.prototype.set=function(v,e){e===void 0?this.mechanism.remove(v):this.mechanism.set(v,(0,_.kN)(e))};
_.Lw.prototype.get=function(v){try{var e=this.mechanism.get(v)}catch(d){return}if(e!==null)try{return JSON.parse(e)}catch(d){throw"Storage: Invalid value was encountered";}};
_.Lw.prototype.remove=function(v){this.mechanism.remove(v)};var eT=function(v){this.mechanism=v};
_.vM(eT,_.Lw);var Ek7=function(v){this.data=v},Tmn=function(v){return v===void 0||v instanceof Ek7?v:new Ek7(v)};
eT.prototype.set=function(v,e){eT.superClass_.set.call(this,v,Tmn(e))};
eT.prototype.getWrapper=function(v){v=eT.superClass_.get.call(this,v);if(v===void 0||v instanceof Object)return v;throw"Storage: Invalid value was encountered";};
eT.prototype.get=function(v){if(v=this.getWrapper(v)){if(v=v.data,v===void 0)throw"Storage: Invalid value was encountered";}else v=void 0;return v};_.vM(V8,eT);_.ShA=function(v){var e=v.creation;v=v.expiration;return!!v&&v<_.pO()||!!e&&e>_.pO()};
V8.prototype.set=function(v,e,d){if(e=Tmn(e)){if(d){if(d<_.pO()){V8.prototype.remove.call(this,v);return}e.expiration=d}e.creation=_.pO()}V8.superClass_.set.call(this,v,e)};
V8.prototype.getWrapper=function(v,e){var d=V8.superClass_.getWrapper.call(this,v);if(d)if(!e&&_.ShA(d))V8.prototype.remove.call(this,v);else return d};var dy=function(){};
dy.prototype.next=function(){return Es};
var Es={done:!0,value:void 0},T3=function(v){return{value:v,done:!1}};
dy.prototype.__iterator__=function(){return this};
_.Whc=function(v){if(v instanceof dy)return v;if(typeof v.__iterator__=="function")return v.__iterator__(!1);if(_.c3(v)){var e=0,d=new dy;d.next=function(){for(;;){if(e>=v.length)return Es;if(e in v)return T3(v[e++]);e++}};
return d}throw Error("Mc");};var a8I=function(v){if(v instanceof ST||v instanceof W6||v instanceof a4)return v;if(typeof v.next=="function")return new ST(function(){return v});
if(typeof v[Symbol.iterator]=="function")return new ST(function(){return v[Symbol.iterator]()});
if(typeof v.__iterator__=="function")return new ST(function(){return v.__iterator__()});
throw Error("Nc");},ST=function(v){this.func_=v};
ST.prototype.__iterator__=function(){return new W6(this.func_())};
ST.prototype[Symbol.iterator]=function(){return new a4(this.func_())};
ST.prototype.toEs6=function(){return new a4(this.func_())};
var W6=function(v){this.JSC$10584_iter_=v};
_.V(W6,dy);W6.prototype.next=function(){return this.JSC$10584_iter_.next()};
W6.prototype[Symbol.iterator]=function(){return new a4(this.JSC$10584_iter_)};
W6.prototype.toEs6=function(){return new a4(this.JSC$10584_iter_)};
var a4=function(v){ST.call(this,function(){return v});
this.JSC$10587_iter_=v};
_.V(a4,ST);a4.prototype.next=function(){return this.JSC$10587_iter_.next()};var ikc=function(){};var iP=function(){};
_.vM(iP,ikc);iP.prototype.getCount=function(){for(var v=0,e=_.a(this),d=e.next();!d.done;d=e.next())v++;return v};
iP.prototype[Symbol.iterator]=function(){return a8I(this.__iterator__(!0)).toEs6()};
iP.prototype.clear=function(){var v=Array.from(this);v=_.a(v);for(var e=v.next();!e.done;e=v.next())this.remove(e.value)};_.vM(oH,iP);_.W=oH.prototype;_.W.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var v=this.storage_;if(v)try{v.setItem("__sak","1");v.removeItem("__sak");var e=!0}catch(d){e=d instanceof DOMException&&(d.name==="QuotaExceededError"||d.code===22||d.code===1014||d.name==="NS_ERROR_DOM_QUOTA_REACHED")&&v&&v.length!==0}else e=!1;this.cachedIsStorageAvailable_=e}return this.cachedIsStorageAvailable_};
_.W.set=function(v,e){Os(this);try{this.storage_.setItem(v,e)}catch(d){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.W.get=function(v){Os(this);v=this.storage_.getItem(v);if(typeof v!=="string"&&v!==null)throw"Storage mechanism: Invalid value was encountered";return v};
_.W.remove=function(v){Os(this);this.storage_.removeItem(v)};
_.W.getCount=function(){Os(this);return this.storage_.length};
_.W.__iterator__=function(v){Os(this);var e=0,d=this.storage_,E=new dy;E.next=function(){if(e>=d.length)return Es;var T=d.key(e++);if(v)return T3(T);T=d.getItem(T);if(typeof T!=="string")throw"Storage mechanism: Invalid value was encountered";return T3(T)};
return E};
_.W.clear=function(){Os(this);this.storage_.clear()};
_.W.key=function(v){Os(this);return this.storage_.key(v)};
var Os=function(v){if(v.storage_==null)throw Error("Oc");v.isAvailable()||W3(Error("Oc"))};_.vM(hls,oH);_.vM(KUU,oH);_.vM(Ja,iP);Ja.prototype.set=function(v,e){this.mechanism_.set(this.JSC$10602_prefix_+v,e)};
Ja.prototype.get=function(v){return this.mechanism_.get(this.JSC$10602_prefix_+v)};
Ja.prototype.remove=function(v){this.mechanism_.remove(this.JSC$10602_prefix_+v)};
Ja.prototype.__iterator__=function(v){var e=this.mechanism_[Symbol.iterator](),d=this,E=new dy;E.next=function(){var T=e.next();if(T.done)return T;for(T=T.value;T.slice(0,d.JSC$10602_prefix_.length)!=d.JSC$10602_prefix_;){T=e.next();if(T.done)return T;T=T.value}return T3(v?T.slice(d.JSC$10602_prefix_.length):d.mechanism_.get(T))};
return E};_.Xn=function(v){this.expiringStorage_=(v=_.$Et(v))?new V8(v):null;this.JSC$10606_domain_=document.domain||window.location.hostname};
_.Xn.prototype.set=function(v,e,d,E){d=d||31104E3;this.remove(v);if(this.expiringStorage_)try{this.expiringStorage_.set(v,e,Date.now()+d*1E3);return}catch(S){}var T="";if(E)try{T=escape((0,_.kN)(e))}catch(S){return}else T=escape(e);_.$L(v,T,d,this.JSC$10606_domain_)};
_.Xn.prototype.get=function(v,e){var d=void 0,E=!this.expiringStorage_;if(!E)try{d=this.expiringStorage_.get(v)}catch(T){E=!0}if(E&&(d=_.Kw.get(v,void 0))&&(d=unescape(d),e))try{d=JSON.parse(d)}catch(T){this.remove(v),d=void 0}return d};
_.Xn.prototype.remove=function(v){this.expiringStorage_&&this.expiringStorage_.remove(v);_.IYs(v,"/",this.JSC$10606_domain_)};
_.Xn.prototype.getCreationTime=function(v){return this.expiringStorage_&&(v=(this.expiringStorage_.getWrapper(v)||{}).creation,typeof v==="number")?v:null};var sGs=function(){var v;return function(){v||(v=new _.Xn("ytidb"));return v}}();var kas;_.M_=[];kas=!1;var A_H=LUH||V70;var I4={},OkA=(I4.AUTH_INVALID="No user identifier specified.",I4.EXPLICIT_ABORT="Transaction was explicitly aborted.",I4.IDB_NOT_SUPPORTED="IndexedDB is not supported.",I4.MISSING_INDEX="Index not created.",I4.MISSING_OBJECT_STORES="Object stores not created.",I4.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",I4.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",I4.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",I4.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",I4.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",I4.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",I4.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",I4),bP={},I8B=(bP.AUTH_INVALID="ERROR",bP.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",bP.EXPLICIT_ABORT="IGNORED",
bP.IDB_NOT_SUPPORTED="ERROR",bP.MISSING_INDEX="WARNING",bP.MISSING_OBJECT_STORES="ERROR",bP.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",bP.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",bP.QUOTA_EXCEEDED="WARNING",bP.QUOTA_MAYBE_EXCEEDED="WARNING",bP.UNKNOWN_ABORT="WARNING",bP.INCOMPATIBLE_DB_VERSION="WARNING",bP),Yi={},bke=(Yi.AUTH_INVALID=!1,Yi.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Yi.EXPLICIT_ABORT=!1,Yi.IDB_NOT_SUPPORTED=!1,Yi.MISSING_INDEX=!1,Yi.MISSING_OBJECT_STORES=!1,Yi.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Yi.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Yi.QUOTA_EXCEEDED=!1,Yi.QUOTA_MAYBE_EXCEEDED=!0,Yi.UNKNOWN_ABORT=!0,Yi.INCOMPATIBLE_DB_VERSION=!1,Yi),Cw=function(v,e,d,E,T){e=e===void 0?{}:e;d=d===void 0?OkA[v]:d;E=E===void 0?I8B[v]:E;T=T===void 0?bke[v]:T;_.kL.call(this,d,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:v},e));this.type=v;this.message=d;this.level=E;this.retryable=T;Object.setPrototypeOf(this,Cw.prototype)};
_.V(Cw,_.kL);var Yhi=function(v,e){Cw.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:e,foundObjectStores:v},OkA.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Yhi.prototype)};
_.V(Yhi,Cw);var J_S=function(v,e){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.index=v;this.objectStore=e;Object.setPrototypeOf(this,J_S.prototype)};
_.V(J_S,Error);var GaW=["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 Hi=function(v){this.executor=v},lY=function(v){var e=this;
this.state={status:"PENDING"};this.JSC$10634_onFulfilled=[];this.JSC$10634_onRejected=[];v=v.executor;var d=function(T){if(e.state.status==="PENDING"){e.state={status:"FULFILLED",value:T};T=_.a(e.JSC$10634_onFulfilled);for(var S=T.next();!S.done;S=T.next())S=S.value,S()}},E=function(T){if(e.state.status==="PENDING"){e.state={status:"REJECTED",
reason:T};T=_.a(e.JSC$10634_onRejected);for(var S=T.next();!S.done;S=T.next())S=S.value,S()}};
try{v(d,E)}catch(T){E(T)}};
lY.all=function(v){return new lY(new Hi(function(e,d){var E=[],T=v.length;T===0&&e(E);for(var S={i$jscomp$468:0};S.i$jscomp$468<v.length;S={i$jscomp$468:S.i$jscomp$468},++S.i$jscomp$468)lY.resolve(v[S.i$jscomp$468]).then(function(O){return function(b){E[O.i$jscomp$468]=b;T--;T===0&&e(E)}}(S)).catch(function(O){d(O)})}))};
lY.resolve=function(v){return new lY(new Hi(function(e,d){v instanceof lY?v.then(e,d):e(v)}))};
lY.reject=function(v){return new lY(new Hi(function(e,d){d(v)}))};
lY.prototype.then=function(v,e){var d=this,E=v!=null?v:fYM,T=e!=null?e:t70;return new lY(new Hi(function(S,O){d.state.status==="PENDING"?(d.JSC$10634_onFulfilled.push(function(){myu(d,d,E,S,O)}),d.JSC$10634_onRejected.push(function(){y0J(d,d,T,S,O)})):d.state.status==="FULFILLED"?myu(d,d,E,S,O):d.state.status==="REJECTED"&&y0J(d,d,T,S,O)}))};
lY.prototype.catch=function(v){return this.then(void 0,v)};
var myu=function(v,e,d,E,T){try{if(v.state.status!=="FULFILLED")throw Error("Rc");var S=d(v.state.value);S instanceof lY?qhg(v,e,S,E,T):E(S)}catch(O){T(O)}},y0J=function(v,e,d,E,T){try{if(v.state.status!=="REJECTED")throw Error("Sc");
var S=d(v.state.reason);S instanceof lY?qhg(v,e,S,E,T):E(S)}catch(O){T(O)}},qhg=function(v,e,d,E,T){e===d?T(new TypeError("Tc")):d.then(function(S){S instanceof lY?qhg(v,e,S,E,T):E(S)},function(S){T(S)})};var mu;mu=window;_.E$=mu.ytcsi&&mu.ytcsi.now?mu.ytcsi.now:mu.performance&&mu.performance.timing&&mu.performance.now&&mu.performance.timing.navigationStart?function(){return mu.performance.timing.navigationStart+mu.performance.now()}:function(){return(new Date).getTime()};var ZT=function(v,e){this.JSC$10646_wrapped=v;this.options=e;this.transactionCount=0;this.startedMs=Math.round((0,_.E$)());this.hasUnknownAbortedTransaction=!1},yP=function(){return _.N("idb_immediate_commit")},KhI,$yg,hC,Nm7;
ZT.prototype.add=function(v,e,d){return _.gk(this,[v],{mode:"readwrite",enableRetries:!0,commit:yP()},function(E){return E.objectStore(v).add(e,d)})};
ZT.prototype.clear=function(v){return _.gk(this,[v],{mode:"readwrite",enableRetries:!0},function(e){return e.objectStore(v).clear()})};
ZT.prototype.close=function(){this.JSC$10646_wrapped.close();var v;((v=this.options)==null?0:v.closed)&&this.options.closed()};
ZT.prototype.count=function(v,e){return _.gk(this,[v],{mode:"readonly",enableRetries:!0,commit:yP()},function(d){return d.objectStore(v).count(e)})};
var lR=function(v,e,d){v=v.JSC$10646_wrapped.createObjectStore(e,d);return new qY(v)};
ZT.prototype.delete=function(v,e){return _.gk(this,[v],{mode:"readwrite",enableRetries:!0,commit:yP()&&!(e instanceof IDBKeyRange)},function(d){return d.objectStore(v).delete(e)})};
var r0I=function(v,e){return _.gk(v,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(d){return d.objectStore("ResponseStore").index("byInterface").delete(e)})};
ZT.prototype.get=function(v,e){return _.gk(this,[v],{mode:"readonly",enableRetries:!0,commit:yP()},function(d){return d.objectStore(v).get(e)})};
ZT.prototype.getAll=function(v,e,d){return _.gk(this,[v],{mode:"readonly",enableRetries:!0},function(E){return E.objectStore(v).getAll(e,d)})};
ZT.prototype.put=function(v,e,d){return _.gk(this,[v],{mode:"readwrite",enableRetries:!0,commit:yP()},function(E){return E.objectStore(v).put(e,d)})};
ZT.prototype.objectStoreNames=function(){return Array.from(this.JSC$10646_wrapped.objectStoreNames)};
_.gk=function(v,e,d,E){var T,S,O,b,Y,q,r,h,K,k,J,R;return _.I(function(B){switch(B.nextAddress){case 1:var X={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof d==="string"?X.mode=d:Object.assign(X,d);T=X;v.transactionCount++;S=T.enableRetries?3:1;O=0;case 2:if(b){B.jumpTo(4);break}O++;Y=Math.round((0,_.E$)());_.qq(B,5);q=v.JSC$10646_wrapped.transaction(e,T.mode);X=B.yield;var Z=!!T.commit;var U=new ci(q);Z=hIM(U,E,Z);return X.call(B,Z,7);case 7:return r=B.yieldResult,h=Math.round((0,_.E$)()),
KhI(v,Y,h,O,void 0,e.join(),T),B.return(r);case 5:K=_.jl(B);k=Math.round((0,_.E$)());J=M7t(K,v.JSC$10646_wrapped.name,e.join(),v.JSC$10646_wrapped.version);if((R=J instanceof Cw&&!J.retryable)||O>=S)KhI(v,Y,k,O,J,e.join(),T),b=J;B.jumpTo(2);break;case 4:return B.return(Promise.reject(b))}})};
KhI=function(v,e,d,E,T,S,O){e=d-e;T?(T instanceof Cw&&(T.type==="QUOTA_EXCEEDED"||T.type==="QUOTA_MAYBE_EXCEEDED")&&fw("QUOTA_EXCEEDED",{dbName:xL(v.JSC$10646_wrapped.name),objectStoreNames:S,transactionCount:v.transactionCount,transactionMode:O.mode}),T instanceof Cw&&T.type==="UNKNOWN_ABORT"&&(d-=v.startedMs,d<0&&d>=2147483648&&(d=0),fw("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:S,transactionDuration:e,transactionCount:v.transactionCount,dbDuration:d}),v.hasUnknownAbortedTransaction=!0),
$yg(v,!1,E,S,e,O.tag),_.ta(T)):$yg(v,!0,E,S,e,O.tag)};
$yg=function(v,e,d,E,T,S){fw("TRANSACTION_ENDED",{objectStoreNames:E,connectionHasUnknownAbortedTransaction:v.hasUnknownAbortedTransaction,duration:T,isSuccessful:e,tryCount:d,tag:S===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":S})};
ZT.prototype.getVersion=function(){return this.JSC$10646_wrapped.version};
ZT.prototype.getName=function(){return this.JSC$10646_wrapped.name};
var qY=function(v){this.JSC$10661_wrapped=v};
qY.prototype.add=function(v,e){return Aa(this.JSC$10661_wrapped.add(v,e))};
qY.prototype.autoIncrement=function(){return this.JSC$10661_wrapped.autoIncrement};
qY.prototype.clear=function(){return Aa(this.JSC$10661_wrapped.clear()).then(function(){})};
var H8=function(v,e,d){v.JSC$10661_wrapped.createIndex(e,d,{unique:!1})};
qY.prototype.count=function(v){return Aa(this.JSC$10661_wrapped.count(v))};
var jOe=function(v,e){return nw(v,{query:e},function(d){return d.delete().then(function(){return d.continue()})}).then(function(){})};
qY.prototype.delete=function(v){return v instanceof IDBKeyRange?jOe(this,v):Aa(this.JSC$10661_wrapped.delete(v))};
qY.prototype.get=function(v){return Aa(this.JSC$10661_wrapped.get(v))};
qY.prototype.getAll=function(v,e){return"getAll"in IDBObjectStore.prototype?Aa(this.JSC$10661_wrapped.getAll(v,e)):sOu(this,v,e)};
var sOu=function(v,e,d){var E=[];return nw(v,{query:e},function(T){if(!(d!==void 0&&E.length>=d))return E.push(T.getValue()),T.continue()}).then(function(){return E})};
qY.prototype.index=function(v){try{return new ry(this.JSC$10661_wrapped.index(v))}catch(e){if(e instanceof Error&&e.name==="NotFoundError")throw new J_S(v,this.JSC$10661_wrapped.name);throw e;}};
qY.prototype.getName=function(){return this.JSC$10661_wrapped.name};
qY.prototype.keyPath=function(){return this.JSC$10661_wrapped.keyPath};
qY.prototype.put=function(v,e){return Aa(this.JSC$10661_wrapped.put(v,e))};
var nw=function(v,e,d){v=v.JSC$10661_wrapped.openCursor(e.query,e.direction);return Nm7(v).then(function(E){return xE0(E,d)})},ci=function(v){var e=this;
this.JSC$10669_wrapped=v;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(d,E){e.JSC$10669_wrapped.addEventListener("complete",function(){d()});
e.JSC$10669_wrapped.addEventListener("error",function(T){T.currentTarget===T.target&&E(e.JSC$10669_wrapped.error)});
e.JSC$10669_wrapped.addEventListener("abort",function(){var T=e.JSC$10669_wrapped.error;if(T)E(T);else if(!e.aborted){T=Cw;for(var S=e.JSC$10669_wrapped.objectStoreNames,O=[],b=0;b<S.length;b++){var Y=S.item(b);if(Y===null)throw Error("Uc");O.push(Y)}T=new T("UNKNOWN_ABORT",{objectStoreNames:O.join(),dbName:e.JSC$10669_wrapped.db.name,mode:e.JSC$10669_wrapped.mode});E(T)}})})},hIM=function(v,e,d){var E=new Promise(function(T,S){try{var O=e(v);
d&&v.commit();O.then(function(b){T(b)}).catch(S)}catch(b){S(b),v.abort()}});
return Promise.all([E,v.done]).then(function(T){return _.a(T).next().value})};
ci.prototype.abort=function(){this.JSC$10669_wrapped.abort();this.aborted=!0;throw new Cw("EXPLICIT_ABORT");};
ci.prototype.commit=function(){if(!this.aborted){var v,e;(e=(v=this.JSC$10669_wrapped).commit)==null||e.call(v)}};
ci.prototype.objectStore=function(v){v=this.JSC$10669_wrapped.objectStore(v);var e=this.objectStoreCache.get(v);e||(e=new qY(v),this.objectStoreCache.set(v,e));return e};
var ry=function(v){this.JSC$10671_wrapped=v};
ry.prototype.count=function(v){return Aa(this.JSC$10671_wrapped.count(v))};
ry.prototype.delete=function(v){return _.Td(this,{query:v},function(e){return e.delete().then(function(){return e.continue()})})};
ry.prototype.get=function(v){return Aa(this.JSC$10671_wrapped.get(v))};
ry.prototype.getAll=function(v,e){return"getAll"in IDBIndex.prototype?Aa(this.JSC$10671_wrapped.getAll(v,e)):kvu(this,v,e)};
var kvu=function(v,e,d){var E=[];return _.Td(v,{query:e},function(T){if(!(d!==void 0&&E.length>=d))return E.push(T.getValue()),T.continue()}).then(function(){return E})};
ry.prototype.keyPath=function(){return this.JSC$10671_wrapped.keyPath};
ry.prototype.unique=function(){return this.JSC$10671_wrapped.unique};
_.Td=function(v,e,d){v=v.JSC$10671_wrapped.openCursor(e.query===void 0?null:e.query,e.direction===void 0?"next":e.direction);return Nm7(v).then(function(E){return xE0(E,d)})};
hC=function(v,e){this.request=v;this.cursor=e};
Nm7=function(v){return Aa(v).then(function(e){return e?new hC(v,e):null})};
hC.prototype.continue=function(v){this.cursor.continue(v);return Nm7(this.request)};
hC.prototype.delete=function(){return Aa(this.cursor.delete()).then(function(){})};
hC.prototype.getValue=function(){return this.cursor.value};
hC.prototype.update=function(v){return Aa(this.cursor.update(v))};var Kl=function(v,e){this.name=v;this.options=e;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Lh7;
Kl.prototype.openDb=function(v,e,d){d=d===void 0?{}:d;return CqM(v,e,d)};
Kl.prototype.delete=function(v){v=v===void 0?{}:v;return _.Fo(this.name,v)};
Lh7=function(v,e){return new Cw("INCOMPATIBLE_DB_VERSION",{dbName:v.name,oldVersion:v.options.version,newVersion:e})};
_.Q8=function(v,e){if(!e)throw zR("openWithToken",xL(v.name));return v.open()};
Kl.prototype.open=function(){var v=this;if(!this.isCompatible)throw Lh7(this);if(this.connectionPromise)return this.connectionPromise;var e,d=function(){v.connectionPromise===e&&(v.connectionPromise=void 0)},E={blocking:function(S){S.close()},
closed:d,terminated:d,upgrade:this.options.upgrade},T=function(){var S,O,b,Y,q,r,h,K,k,J;return _.I(function(R){switch(R.nextAddress){case 1:return O=(S=Error().stack)!=null?S:"",_.qq(R,2),R.yield(v.openDb(v.name,v.options.version,E),4);case 4:for(var B=b=R.yieldResult,X=v.options,Z=[],U=_.a(Object.keys(X.objectStores)),F=U.next();!F.done;F=U.next()){F=F.value;var g=X.objectStores[F],Q=g.removedAtVersion===void 0?Number.MAX_VALUE:g.removedAtVersion;!(B.JSC$10646_wrapped.version>=g.addedAtVersion)||
B.JSC$10646_wrapped.version>=Q||B.JSC$10646_wrapped.objectStoreNames.contains(F)||Z.push(F)}Y=Z;if(Y.length===0){R.jumpTo(5);break}q=Object.keys(v.options.objectStores);r=b.objectStoreNames();if(v.timesReopenedToFixMissingObjectStore<_.Wi("ytidb_reopen_db_retries",0))return v.timesReopenedToFixMissingObjectStore++,b.close(),_.ta(new Cw("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:v.name,expectedObjectStores:q,foundObjectStores:r})),R.return(T());if(!(v.timesDeletedToFixMissingObjectStore<_.Wi("ytidb_remake_db_retries",
1))){R.jumpTo(6);break}v.timesDeletedToFixMissingObjectStore++;return R.yield(v.delete(),7);case 7:return _.ta(new Cw("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:v.name,expectedObjectStores:q,foundObjectStores:r})),R.return(T());case 6:throw new Yhi(r,q);case 5:return R.return(b);case 2:h=_.jl(R);if(h instanceof DOMException?h.name!=="VersionError":"DOMError"in self&&h instanceof DOMError?h.name!=="VersionError":!(h instanceof Object&&"message"in h)||h.message!=="An attempt was made to open a database using a lower version than the existing version."){R.jumpTo(8);
break}return R.yield(v.openDb(v.name,void 0,Object.assign({},E,{upgrade:void 0})),9);case 9:K=R.yieldResult;k=K.getVersion();if(v.options.version!==void 0&&k>v.options.version+1)throw K.close(),v.isCompatible=!1,Lh7(v,k);return R.return(K);case 8:throw d(),h instanceof Error&&!_.N("ytidb_async_stack_killswitch")&&(h.stack=h.stack+"\n"+O.substring(O.indexOf("\n")+1)),M7t(h,v.name,"",(J=v.options.version)!=null?J:-1);}})};
return this.connectionPromise=e=T()};var XKS=new Kl("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(v,e){e(1)&&lR(v,"databases",{keyPath:"actualName"})}});var wKj,ZQt=new function(){}(new function(){});new _.r1;var VOn=function(v,e){Kl.call(this,v,e);this.options=e;RH(v)};
_.V(VOn,Kl);var eX3=function(v,e){var d;return function(){d||(d=new VOn(v,e));return d}};
VOn.prototype.openDb=function(v,e,d){d=d===void 0?{}:d;return(this.options.shared?nHL:u1H)(v,e,Object.assign({},d))};
VOn.prototype.delete=function(v){v=v===void 0?{}:v;return(this.options.shared?vEM:DEL)(this.name,v)};var okI={},dd0=dt("ytGcfConfig",{objectStores:(okI.coldConfigStore={addedAtVersion:1},okI.hotConfigStore={addedAtVersion:1},okI),shared:!1,upgrade:function(v,e){e(1)&&(H8(lR(v,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),H8(lR(v,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var J0E=function(){_.kh.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var v=_.AE("yt.gcf.config.hotUpdateCallbacks");v?(this.localHotConfigJobQueue=[].concat(_.t7(v)),this.sharedHotConfigJobQueue=v):(this.sharedHotConfigJobQueue=[],_.pw("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.V(J0E,_.kh);J0E.prototype.disposeInternal=function(){for(var v=_.a(this.localHotConfigJobQueue),e=v.next();!e.done;e=v.next()){var d=this.sharedHotConfigJobQueue;e=d.indexOf(e.value);e>=0&&d.splice(e,1)}this.localHotConfigJobQueue.length=0;_.kh.prototype.disposeInternal.call(this)};var Vf=function(){var v=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new J0E;this.TEST_ONLY={initializeConfigDb:function(){v.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return v.coldGlobalConfigGroup},
setHotConfigGroup:function(e){GvA(v,e)},
setHotHashData:function(e){v.setHotHashData(e)},
setColdConfigGroup:function(e){MOi(v,e)},
getColdHashData:function(){return v.coldHashData},
getHotHashData:function(){return v.hotHashData},
getHotConfigGroup:function(){return v.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return tOc()},
getExportedHotConfigGroup:function(){return $i()},
getExportedColdHashData:function(){return _.AE("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.AE("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){f8E(v)},
resetInstance:function(){v.setHotHashData(void 0);RIu(v);delete Vf.instance},
setDebounceTimer:function(e){v.debounceTimer=e},
getDebounceTimer:function(){return v.debounceTimer}}},PW0=function(){if(!Vf.instance){var v=new Vf;
Vf.instance=v}return Vf.instance},CWe=function(v){var e;
_.I(function(d){if(d.nextAddress==1)return _.N("start_client_gcf")||_.N("delete_gcf_config_db")?_.N("start_client_gcf")?d.yield(_.ea(),3):d.jumpTo(2):d.return();d.nextAddress!=2&&((e=d.yieldResult)&&_.N_()&&!_.N("delete_gcf_config_db")?(v.isConfigDbInitialized=!0,f8E(v)):(xyE(v),BmB(v)));return _.N("delete_gcf_config_db")?d.yield(io$(),0):d.jumpTo(0)})},oI=function(){var v;
return(v=$i())!=null?v:_.Bb("RAW_HOT_CONFIG_GROUP")},XYJ=function(v){var e,d,E,T,S,O;
return _.I(function(b){switch(b.nextAddress){case 1:if(v.hotGlobalConfigGroup)return b.return($i());if(!v.isConfigDbInitialized)return e=zR("getHotConfig IDB not initialized"),_.ZV(e),b.return(Promise.reject(e));d=UI();E=_.Bb("TIME_CREATED_MS");if(!d){T=zR("getHotConfig token error");_.ZV(T);b.jumpTo(2);break}return b.yield(apL(d),3);case 3:if((S=b.yieldResult)&&S.timestamp>E)return GvA(v,S.config),v.setHotHashData(S.hashData),b.return($i());case 2:BmB(v);if(!(d&&v.hotGlobalConfigGroup&&v.hotHashData)){b.jumpTo(4);
break}return b.yield(T13(v.hotGlobalConfigGroup,v.hotHashData,d,E),4);case 4:return v.hotGlobalConfigGroup?b.return($i()):(O=new _.kL("Config not available in ytConfig"),_.ZV(O),b.return(Promise.reject(O)))}})},l87=function(v){var e,d,E,T,S,O;
return _.I(function(b){switch(b.nextAddress){case 1:if(v.coldGlobalConfigGroup)return b.return(tOc());if(!v.isConfigDbInitialized)return e=zR("getColdConfig IDB not initialized"),_.ZV(e),b.return(Promise.reject(e));d=UI();E=_.Bb("TIME_CREATED_MS");if(!d){T=zR("getColdConfig");_.ZV(T);b.jumpTo(2);break}return b.yield(WxM(d),3);case 3:if((S=b.yieldResult)&&S.timestamp>E)return MOi(v,S.config),zIi(v,S.configData),RIu(v,S.hashData),b.return(tOc());case 2:xyE(v);if(!(d&&v.coldGlobalConfigGroup&&v.coldHashData&&
v.configData)){b.jumpTo(4);break}return b.yield(SjW(v.coldGlobalConfigGroup,v.coldHashData,v.configData,d,E),4);case 4:return v.coldGlobalConfigGroup?b.return(tOc()):(O=new _.kL("Config not available in ytConfig"),_.ZV(O),b.return(Promise.reject(O)))}})},f8E=function(v){if(!v.hotGlobalConfigGroup||!v.coldGlobalConfigGroup){if(!UI()){var e=zR("scheduleGetConfigs");
_.ZV(e)}v.initJob||(v.initJob=_.RM.addLowPriorityJob(function(){return _.I(function(d){switch(d.nextAddress){case 1:return _.qq(d,2),d.yield(XYJ(v),4);case 4:_.wk(d,3);break;case 2:_.jl(d);case 3:return _.qq(d,5),d.yield(l87(v),7);case 7:_.wk(d,6);break;case 5:_.jl(d);case 6:v.initJob&&(v.initJob=0),_.s9(d)}})},100))}},TBL=function(v,e,d){var E,T,S;
return _.I(function(O){switch(O.nextAddress){case 1:if(!_.N("start_client_gcf")){O.jumpTo(0);break}d&&GvA(v,d);v.setHotHashData(e);E=UI();if(!E){O.jumpTo(3);break}if(d){O.jumpTo(4);break}return O.yield(apL(E),5);case 5:T=O.yieldResult,d=(S=T)==null?void 0:S.config;case 4:return O.yield(T13(d,e,E),3);case 3:if(d)for(var b=d,Y=_.a(v.configUpdateService.sharedHotConfigJobQueue),q=Y.next();!q.done;q=Y.next())q=q.value,q(b);_.s9(O)}})},SKU=function(v,e,d){var E,T,S,O;
return _.I(function(b){if(b.nextAddress==1){if(!_.N("start_client_gcf"))return b.jumpTo(0);RIu(v,e);return(E=UI())?d?b.jumpTo(4):b.yield(WxM(E),5):b.jumpTo(0)}b.nextAddress!=4&&(T=b.yieldResult,d=(S=T)==null?void 0:S.config);if(!d)return b.jumpTo(0);O=d.configData;return b.yield(SjW(d,e,O,E),0)})},oEs=function(){var v=PW0(),e=(0,_.E$)()-v.debounceTimer;
if(!(v.debounceTimer!==0&&e<_.Wi("send_config_hash_timer"))){e=_.AE("yt.gcf.config.coldConfigData");var d=_.AE("yt.gcf.config.hotHashData"),E=_.AE("yt.gcf.config.coldHashData");e&&d&&E&&(v.debounceTimer=(0,_.E$)());return{coldConfigData:e,hotHashData:d,coldHashData:E}}},xyE=function(v){MOi(v,_.Bb("RAW_COLD_CONFIG_GROUP"));
RIu(v,_.Bb("SERIALIZED_COLD_HASH_DATA"));var e;zIi(v,(e=v.coldGlobalConfigGroup)==null?void 0:e.configData)},BmB=function(v){GvA(v,_.Bb("RAW_HOT_CONFIG_GROUP"));
v.setHotHashData(_.Bb("SERIALIZED_HOT_HASH_DATA"))},GvA=function(v,e){v.hotGlobalConfigGroup=e;
_.pw("yt.gcf.config.hotConfigGroup",v.hotGlobalConfigGroup||null)},MOi=function(v,e){v.coldGlobalConfigGroup=e;
_.pw("yt.gcf.config.coldConfigGroup",v.coldGlobalConfigGroup||null)};
Vf.prototype.setHotHashData=function(v){this.hotHashData=v;_.pw("yt.gcf.config.hotHashData",this.hotHashData||null)};
var RIu=function(v,e){v.coldHashData=e;_.pw("yt.gcf.config.coldHashData",v.coldHashData||null)},zIi=function(v,e){v.configData=e;
_.pw("yt.gcf.config.coldConfigData",v.configData||null)},$i=function(){return _.AE("yt.gcf.config.hotConfigGroup")},tOc=function(){return _.AE("yt.gcf.config.coldConfigGroup")};var yp={},HkE=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";yp.assign=function(v){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var d=e.shift();if(d){if(typeof d!=="object")throw new TypeError("Xc`"+d);for(var E in d)Object.prototype.hasOwnProperty.call(d,E)&&(v[E]=d[E])}}return v};
yp.shrinkBuf=function(v,e){if(v.length===e)return v;if(v.subarray)return v.subarray(0,e);v.length=e;return v};
var A0B={arraySet:function(v,e,d,E,T){if(e.subarray&&v.subarray)v.set(e.subarray(d,d+E),T);else for(var S=0;S<E;S++)v[T+S]=e[d+S]},
flattenChunks:function(v){var e,d;var E=d=0;for(e=v.length;E<e;E++)d+=v[E].length;var T=new Uint8Array(d);E=d=0;for(e=v.length;E<e;E++){var S=v[E];T.set(S,d);d+=S.length}return T}},Zk2={arraySet:function(v,e,d,E,T){for(var S=0;S<E;S++)v[T+S]=e[d+S]},
flattenChunks:function(v){return[].concat.apply([],v)}};
yp.setTyped=function(){HkE?(yp.Buf8=Uint8Array,yp.Buf16=Uint16Array,yp.Buf32=Int32Array,yp.assign(yp,A0B)):(yp.Buf8=Array,yp.Buf16=Array,yp.Buf32=Array,yp.assign(yp,Zk2))};
yp.setTyped();var c02=!0;try{new Uint8Array(1)}catch(v){c02=!1}
var aoW=function(v){var e,d,E=v.length,T=0;for(e=0;e<E;e++){var S=v.charCodeAt(e);if((S&64512)===55296&&e+1<E){var O=v.charCodeAt(e+1);(O&64512)===56320&&(S=65536+(S-55296<<10)+(O-56320),e++)}T+=S<128?1:S<2048?2:S<65536?3:4}var b=new yp.Buf8(T);for(e=d=0;d<T;e++)S=v.charCodeAt(e),(S&64512)===55296&&e+1<E&&(O=v.charCodeAt(e+1),(O&64512)===56320&&(S=65536+(S-55296<<10)+(O-56320),e++)),S<128?b[d++]=S:(S<2048?b[d++]=192|S>>>6:(S<65536?b[d++]=224|S>>>12:(b[d++]=240|S>>>18,b[d++]=128|S>>>12&63),b[d++]=
128|S>>>6&63),b[d++]=128|S&63);return b};var gE0={};gE0=function(v,e,d,E){var T=v&65535|0;v=v>>>16&65535|0;for(var S;d!==0;){S=d>2E3?2E3:d;d-=S;do T=T+e[E++]|0,v=v+T|0;while(--S);T%=65521;v%=65521}return T|v<<16|0};for(var Jo={},jT,wYc=[],Fhi=0;Fhi<256;Fhi++){jT=Fhi;for(var QOM=0;QOM<8;QOM++)jT=jT&1?3988292384^jT>>>1:jT>>>1;wYc[Fhi]=jT}Jo=function(v,e,d,E){d=E+d;for(v^=-1;E<d;E++)v=v>>>8^wYc[(v^e[E])&255];return v^-1};var KU={};KU={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 CXM=[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],zXM=[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],WI$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Fxt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Nk=Array(576);IM(Nk);var ke=Array(60);IM(ke);var rt=Array(512);IM(rt);var qk=Array(256);IM(qk);var Xv$=Array(29);IM(Xv$);var lpS=Array(30);IM(lpS);var EvU,TiS,SgS,dr$=!1;var fU;
fU=[new to(0,0,0,0,function(v,e){var d=65535;for(d>v.pending_buf_size-5&&(d=v.pending_buf_size-5);;){if(v.lookahead<=1){Gd(v);if(v.lookahead===0&&e===0)return 1;if(v.lookahead===0)break}v.strstart+=v.lookahead;v.lookahead=0;var E=v.block_start+d;if(v.strstart===0||v.strstart>=E)if(v.lookahead=v.strstart-E,v.strstart=E,LU(v,!1),v.strm.avail_out===0)return 1;if(v.strstart-v.block_start>=v.w_size-262&&(LU(v,!1),v.strm.avail_out===0))return 1}v.insert=0;if(e===4)return LU(v,!0),v.strm.avail_out===0?3:
4;v.strstart>v.block_start&&LU(v,!1);return 1}),
new to(4,4,8,4,uDL),new to(4,5,16,8,uDL),new to(4,6,32,32,uDL),new to(4,4,16,16,Mk),new to(8,16,32,32,Mk),new to(8,16,128,128,Mk),new to(8,32,128,256,Mk),new to(32,128,258,1024,Mk),new to(32,258,258,4096,Mk)];var eit={};eit=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 iqt=Object.prototype.toString;
vvs.prototype.push=function(v,e){var d=this.strm,E=this.options.chunkSize;if(this.ended)return!1;var T=e===~~e?e:e===!0?4:0;typeof v==="string"?d.input=aoW(v):iqt.call(v)==="[object ArrayBuffer]"?d.input=new Uint8Array(v):d.input=v;d.next_in=0;d.avail_in=d.input.length;do{d.avail_out===0&&(d.output=new yp.Buf8(E),d.next_out=0,d.avail_out=E);v=pv7(d,T);if(v!==1&&v!==0)return gku(this,v),this.ended=!0,!1;if(d.avail_out===0||d.avail_in===0&&(T===4||T===2))if(this.options.to==="string"){var S=yp.shrinkBuf(d.output,
d.next_out);e=S;S=S.length;if(S<65537&&(e.subarray&&c02||!e.subarray))e=String.fromCharCode.apply(null,yp.shrinkBuf(e,S));else{for(var O="",b=0;b<S;b++)O+=String.fromCharCode(e[b]);e=O}this.chunks.push(e)}else e=yp.shrinkBuf(d.output,d.next_out),this.chunks.push(e)}while((d.avail_in>0||d.avail_out===0)&&v!==1);if(T===4)return(d=this.strm)&&d.state?(E=d.state.status,E!==42&&E!==69&&E!==73&&E!==91&&E!==103&&E!==113&&E!==666?v=$e(d,-2):(d.state=null,v=E===113?$e(d,-3):0)):v=-2,gku(this,v),this.ended=
!0,v===0;T===2&&(gku(this,0),d.avail_out=0);return!0};
var gku=function(v,e){e===0&&(v.result=v.options.to==="string"?v.chunks.join(""):yp.flattenChunks(v.chunks));v.chunks=[];v.err=e;v.msg=v.strm.msg};var ukJ=typeof TextEncoder!=="undefined"?new TextEncoder:null,XgM=ukJ?function(v){return ukJ.encode(v)}:function(v){v=_.Nu(v);
for(var e=new Uint8Array(v.length),d=0;d<e.length;d++)e[d]=v[d];return e};var $SU={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},sxH={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var ss=function(v,e){this.version=v;this.args=e};
ss.prototype.serialize=function(){return{version:this.version,args:this.args}};var mrj=function(v,e){this.topic=v;this.dataClass=e};
mrj.prototype.toString=function(){return this.topic};var nkn=_.AE("ytPubsub2Pubsub2Instance")||new _.rk;_.rk.prototype.subscribe=_.rk.prototype.subscribe;_.rk.prototype.unsubscribeByKey=_.rk.prototype.unsubscribeByKey;_.rk.prototype.publish=_.rk.prototype.publish;_.rk.prototype.clear=_.rk.prototype.clear;_.pw("ytPubsub2Pubsub2Instance",nkn);var Ygj=_.AE("ytPubsub2Pubsub2SubscribedKeys")||{};_.pw("ytPubsub2Pubsub2SubscribedKeys",Ygj);var qg0=_.AE("ytPubsub2Pubsub2TopicToKeys")||{};_.pw("ytPubsub2Pubsub2TopicToKeys",qg0);
var yGU=_.AE("ytPubsub2Pubsub2IsAsync")||{};_.pw("ytPubsub2Pubsub2IsAsync",yGU);_.pw("ytPubsub2Pubsub2SkipSubKey",null);var Vw$=void 0,kVM=void 0;var Phj=_.Wi("max_body_size_to_compress",5E5),xrt=_.Wi("min_body_size_to_compress",500),xe=!0,HqM=0,B8=0,loj=_.Wi("compression_performance_threshold_lr",250),AGM=_.Wi("slow_compressions_before_abandon_count",4),GV7=!1,MwM=new Map,Cht=1,BiH=!0;_.vM(CU,wg$);CU.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 Dye=function(v,e,d){d||(d=0);var E=v.W_;if(typeof e==="string")for(var T=0;T<16;T++)E[T]=e.charCodeAt(d)<<24|e.charCodeAt(d+1)<<16|e.charCodeAt(d+2)<<8|e.charCodeAt(d+3),d+=4;else for(T=0;T<16;T++)E[T]=e[d]<<24|e[d+1]<<16|e[d+2]<<8|e[d+3],d+=4;for(e=16;e<80;e++)d=E[e-3]^E[e-8]^E[e-14]^E[e-16],E[e]=(d<<1|d>>>31)&4294967295;e=v.chain_[0];d=v.chain_[1];T=v.chain_[2];for(var S=v.chain_[3],O=v.chain_[4],b,Y,q=0;q<80;q++)q<40?q<20?(b=S^d&(T^S),Y=1518500249):(b=d^T^S,Y=1859775393):q<60?(b=d&T|S&(d|T),
Y=2400959708):(b=d^T^S,Y=3395469782),b=(e<<5|e>>>27)+b+O+Y+E[q]&4294967295,O=S,S=T,T=(d<<30|d>>>2)&4294967295,d=e,e=b;v.chain_[0]=v.chain_[0]+e&4294967295;v.chain_[1]=v.chain_[1]+d&4294967295;v.chain_[2]=v.chain_[2]+T&4294967295;v.chain_[3]=v.chain_[3]+S&4294967295;v.chain_[4]=v.chain_[4]+O&4294967295};
CU.prototype.update=function(v,e){if(v!=null){e===void 0&&(e=v.length);for(var d=e-this.blockSize,E=0,T=this.buf_,S=this.inbuf_;E<e;){if(S==0)for(;E<=d;)Dye(this,v,E),E+=this.blockSize;if(typeof v==="string")for(;E<e;){if(T[S]=v.charCodeAt(E),++S,++E,S==this.blockSize){Dye(this,T);S=0;break}}else for(;E<e;)if(T[S]=v[E],++S,++E,S==this.blockSize){Dye(this,T);S=0;break}}this.inbuf_=S;this.total_+=e}};
CU.prototype.digest=function(){var v=[],e=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var d=this.blockSize-1;d>=56;d--)this.buf_[d]=e&255,e/=256;Dye(this,this.buf_);for(d=e=0;d<5;d++)for(var E=24;E>=0;E-=8)v[e]=this.chain_[d]>>E&255,++e;return v};var gv0;var ki=function(v){var e=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(r){e.databaseToken=r},
triggerThrottle:function(){e.throttledSend()},
cancelThrottle:function(){e.cancelThrottledSend()},
immediateSend:function(r){return _.I(function(h){return h.yield(e.immediateSend(r),0)})},
requestWithinAgeLimit:function(r,h){return e.requestWithinAgeLimit(r,h)},
retryQueuedRequests:function(){e.retryQueuedRequests()}};
var d;this.throttleTimeout=(d=v.throttleTimeout)!=null?d:100;var E;this.retryMaxAttempts=(E=v.retryMaxAttempts)!=null?E:1;var T;this.requestAgeLimitMs=(T=v.requestAgeLimitMs)!=null?T:2592E6;var S;this.queuedRequestAgeLimitMs=(S=v.queuedRequestAgeLimitMs)!=null?S:12E4;var O;this.retryDelayMs=(O=v.retryDelayMs)!=null?O:5E3;var b;this.databaseToken=(b=v.databaseToken)!=null?b:void 0;this.enableCleaning=!!v.enableCleaning;var Y;this.cleaningRate=(Y=v.cleaningRate)!=null?Y:.1;var q;this.potentialEsfErrorLimit=
(q=v.potentialEsfErrorLimit)!=null?q:10;v.handleError&&(this.handleError=v.handleError);v.handleWarning&&(this.handleWarning=v.handleWarning);v.disableYtIdbTransactions&&(this.disableYtIdbTransactions=v.disableYtIdbTransactions);v.bypassDbTokenDependency&&(this.bypassDbTokenDependency=v.bypassDbTokenDependency);this.getBooleanFlag=v.getBooleanFlag;this.jobManager=v.jobManager;this.logsStore=v.logsStore;this.networkManager=v.networkManager;this.sendFn=v.sendFn;this.onlineEvent=v.onlineEvent;this.offlineEvent=
v.offlineEvent;NY(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Uy2(this)},Uy2=function(v){NY(v)&&!v.disableYtIdbTransactions&&(v.initialized=!0,v.enableCleaning&&Math.random()<=v.cleaningRate&&v.logsStore.cleanLogsStore(v.databaseToken),v.retryQueuedRequests(),v.networkManager.isNetworkAvailable()&&v.throttledSend(),v.networkManager.listen(v.onlineEvent,v.throttledSend.bind(v)),v.networkManager.listen(v.offlineEvent,v.cancelThrottledSend.bind(v)))};
_.W=ki.prototype;_.W.writeThenSend=function(v,e){var d=this;e=e===void 0?{}:e;if(NY(this)&&this.initialized){var E={url:v,options:e,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(E,this.databaseToken).then(function(T){E.id=T;d.networkManager.isNetworkAvailable()&&d.immediateSend(E)}).catch(function(T){d.immediateSend(E);
pYc(d,T)})}else this.sendFn(v,e)};
_.W.sendThenWrite=function(v,e,d){var E=this;e=e===void 0?{}:e;if(NY(this)&&this.initialized){var T={url:v,options:e,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(T.skipRetry=d);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!T.skipRetry){if(!T.skipRetry){var S=e.onError?e.onError:function(){};
e.onError=function(O,b){return _.I(function(Y){if(Y.nextAddress==1)return Y.yield(E.logsStore.set(T,E.databaseToken).catch(function(q){pYc(E,q)}),2);
S(O,b);_.s9(Y)})}}this.sendFn(v,e,T.skipRetry)}else this.logsStore.set(T,this.databaseToken).catch(function(O){E.sendFn(v,e,T.skipRetry);
pYc(E,O)})}else this.sendFn(v,e,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&d)};
_.W.sendAndWrite=function(v,e){var d=this;e=e===void 0?{}:e;if(NY(this)&&this.initialized){var E={url:v,options:e,timestamp:this.now(),status:"NEW",sendCount:0},T=!1,S=e.onSuccess?e.onSuccess:function(){};
E.options.onSuccess=function(O,b){E.id!==void 0?d.logsStore.deleteRequest(E.id,d.databaseToken):T=!0;d.networkManager.networkStatusHint&&d.getBooleanFlag&&d.getBooleanFlag("vss_network_hint")&&d.networkManager.networkStatusHint(!0);S(O,b)};
this.sendFn(E.url,E.options,void 0,!0);this.logsStore.set(E,this.databaseToken).then(function(O){E.id=O;T&&d.logsStore.deleteRequest(E.id,d.databaseToken)}).catch(function(O){pYc(d,O)})}else this.sendFn(v,e,void 0,!0)};
_.W.throttledSend=function(){var v=this;if(!NY(this))throw Error("$c");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var e;return _.I(function(d){if(d.nextAddress==1)return d.yield(v.logsStore.getMostRecentByStatus("NEW",v.databaseToken),2);if(d.nextAddress!=3)return e=d.yieldResult,e?d.yield(v.immediateSend(e),3):(v.cancelThrottledSend(),d.return());v.intervalJob&&(v.intervalJob=0,v.throttledSend());_.s9(d)})},this.throttleTimeout))};
_.W.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.W.immediateSend=function(v){var e=this,d;return _.I(function(E){switch(E.nextAddress){case 1:if(!NY(e))throw Error("ad");if(v.id===void 0){E.jumpTo(2);break}return E.yield(e.logsStore.markAsQueued(v.id,e.databaseToken),3);case 3:(d=E.yieldResult)||e.handleWarning(Error("bd"));case 2:if(e.requestWithinAgeLimit(v,e.requestAgeLimitMs)){E.jumpTo(4);break}e.handleWarning(Error("cd"));if(v.id===void 0){E.jumpTo(5);break}return E.yield(e.logsStore.deleteRequest(v.id,e.databaseToken),5);case 5:return E.return();
case 4:v.skipRetry||(v=vq7(e,v));if(!v){E.jumpTo(0);break}if(!v.skipRetry||v.id===void 0){E.jumpTo(8);break}return E.yield(e.logsStore.deleteRequest(v.id,e.databaseToken),8);case 8:e.sendFn(v.url,v.options,!!v.skipRetry),_.s9(E)}})};
var vq7=function(v,e){if(!NY(v))throw Error("dd");var d=e.options.onError?e.options.onError:function(){};
e.options.onError=function(T,S){var O,b,Y,q;return _.I(function(r){switch(r.nextAddress){case 1:O=pgU(S);(b=vJU(S))&&v.getBooleanFlag&&v.getBooleanFlag("web_enable_error_204")&&v.handleError(Error("ed"),e.url,S);if(!(v.getBooleanFlag&&v.getBooleanFlag("nwl_consider_error_code")&&O||v.getBooleanFlag&&!v.getBooleanFlag("nwl_consider_error_code")&&v.potentialEsfErrorCounter<=v.potentialEsfErrorLimit)){r.jumpTo(2);break}if(!v.networkManager.sendNetworkCheckRequest){r.jumpTo(3);break}return r.yield(v.networkManager.sendNetworkCheckRequest(),
3);case 3:if(v.networkManager.isNetworkAvailable()){r.jumpTo(2);break}d(T,S);if(!v.getBooleanFlag||!v.getBooleanFlag("nwl_consider_error_code")||((Y=e)==null?void 0:Y.id)===void 0){r.jumpTo(6);break}return r.yield(v.logsStore.resetRequest(e.id,v.databaseToken,!1),6);case 6:return r.return();case 2:if(v.getBooleanFlag&&v.getBooleanFlag("nwl_consider_error_code")&&!O&&v.potentialEsfErrorCounter>v.potentialEsfErrorLimit)return r.return();v.potentialEsfErrorCounter++;if(((q=e)==null?void 0:q.id)===void 0){r.jumpTo(8);
break}return e.sendCount<v.retryMaxAttempts?r.yield(v.logsStore.resetRequest(e.id,v.databaseToken,!0,b?!1:void 0),12):r.yield(v.logsStore.deleteRequest(e.id,v.databaseToken),8);case 12:v.jobManager.addLowPriorityJob(function(){v.networkManager.isNetworkAvailable()&&v.throttledSend()},v.retryDelayMs);
case 8:d(T,S),_.s9(r)}})};
var E=e.options.onSuccess?e.options.onSuccess:function(){};
e.options.onSuccess=function(T,S){var O;return _.I(function(b){if(b.nextAddress==1)return((O=e)==null?void 0:O.id)===void 0?b.jumpTo(2):b.yield(v.logsStore.deleteRequest(e.id,v.databaseToken),2);v.networkManager.networkStatusHint&&v.getBooleanFlag&&v.getBooleanFlag("vss_network_hint")&&v.networkManager.networkStatusHint(!0);E(T,S);_.s9(b)})};
return e};
ki.prototype.requestWithinAgeLimit=function(v,e){v=v.timestamp;return this.now()-v>=e?!1:!0};
ki.prototype.retryQueuedRequests=function(){var v=this;if(!NY(this))throw Error("fd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(e){e&&!v.requestWithinAgeLimit(e,v.queuedRequestAgeLimitMs)?v.jobManager.addLowPriorityJob(function(){return _.I(function(d){if(d.nextAddress==1)return e.id===void 0?d.jumpTo(2):d.yield(v.logsStore.resetRequest(e.id,v.databaseToken),2);v.retryQueuedRequests();_.s9(d)})}):v.networkManager.isNetworkAvailable()&&v.throttledSend()})};
var pYc=function(v,e){v.writeError&&!v.networkManager.isNetworkAvailable()?v.writeError(e):v.handleError(e)},NY=function(v){return!!v.databaseToken||v.bypassDbTokenDependency};var e40;var ivt={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,reelsSequenceMutationEvent:527};var ebn={},b1O=dt("ServiceWorkerLogsDatabase",{objectStores:(ebn.SWHealthLog={addedAtVersion:1},ebn),shared:!0,upgrade:function(v,e){e(1)&&H8(lR(v,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var $Cs={},K5W=0;var kj$;var Ll=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Fn=function(){if(!Ll.instance){var v=_.AE("yt.networkRequestMonitor.instance")||new Ll;
_.pw("yt.networkRequestMonitor.instance",v);Ll.instance=v}return Ll.instance};
Ll.prototype.requestComplete=function(v,e){e&&(this.anyRequestHasSucceeded=!0);v=this.removeParams(v);this.requestMap.get(v)||this.requestMap.set(v,e)};
Ll.prototype.isEndpointCFR=function(v){v=this.removeParams(v);return(v=this.requestMap.get(v))?!1:v===!1&&this.anyRequestHasSucceeded?!0:null};
Ll.prototype.removeParams=function(v){return v.split("?")[0]};
Ll.prototype.removeParams=Ll.prototype.removeParams;Ll.prototype.isEndpointCFR=Ll.prototype.isEndpointCFR;Ll.prototype.requestComplete=Ll.prototype.requestComplete;Ll.getInstance=Fn;var VP=function(v){_.r6.call(this);var e=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=v!=null?v:{addLowPriorityJob:function(T,S){return setTimeout(T,S)},
cancelJob:function(T){clearTimeout(T)}};
var d,E;this.isOnline=(E=(d=window.navigator)==null?void 0:d.onLine)!=null?E:!0;this.onNavigatorChange=function(){return _.I(function(T){return T.yield(dng(e),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||EqJ(this)};
_.V(VP,_.r6);VP.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete VP.instance};
VP.prototype.isNetworkAvailable=function(){return this.isOnline};
var EqJ=function(v){v.pollingJob=v.jobManager.addLowPriorityJob(function(){var e;return _.I(function(d){if(d.nextAddress==1)return v.isOnline?((e=window.navigator)==null?0:e.onLine)?d.jumpTo(3):d.yield(dng(v),3):d.yield(dng(v),3);EqJ(v);_.s9(d)})},3E4)},dng=function(v,e){return v.networkRequestPromise?v.networkRequestPromise:v.networkRequestPromise=new Promise(function(d){var E,T,S,O;
return _.I(function(b){switch(b.nextAddress){case 1:return E=window.AbortController?new window.AbortController:void 0,S=(T=E)==null?void 0:T.signal,O=!1,_.qq(b,2,3),E&&(v.abortTimeoutKey=v.jobManager.addLowPriorityJob(function(){E.abort()},e||2E4)),b.yield(fetch("/generate_204",{method:"HEAD",
signal:S}),5);case 5:O=!0;case 3:_.h7(b);v.networkRequestPromise=void 0;v.abortTimeoutKey&&(v.jobManager.cancelJob(v.abortTimeoutKey),v.abortTimeoutKey=0);O!==v.isOnline&&(v.isOnline=O,v.isOnline?v.dispatchEvent("networkstatus-online"):v.dispatchEvent("networkstatus-offline"));d(O);_.$a(b,0);break;case 2:_.jl(b),O=!1,b.jumpTo(3)}})})};var o4=function(){_.r6.call(this);var v=this;this.shouldFlushErrors=!1;VP.instance||(VP.instance=new VP(_.RM));this.sharedNetworkStatusManager=VP.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(v.shouldFlushErrors&&_.N("offline_error_handling")){var e=L50().get("errors",!0);if(e){for(var d in e)if(e[d]){var E=new _.kL(d,"sent via offline_errors");E.name=e[d].name;E.stack=e[d].stack;E.level=e[d].level;_.lg(E)}L50().set("errors",{},2592E3,!0)}}})};
_.V(o4,_.r6);var T3J=function(){if(!o4.instance){var v=_.AE("yt.networkStatusManager.instance")||new o4;_.pw("yt.networkStatusManager.instance",v);o4.instance=v}return o4.instance};
_.W=o4.prototype;_.W.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.W.networkStatusHint=function(v){this.sharedNetworkStatusManager.isOnline=v};
_.W.getWindowStatus=function(){var v=window.navigator.onLine;return v===void 0?!0:v};
_.W.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.W.listen=function(v,e){return this.sharedNetworkStatusManager.listen(v,e)};
_.W.sendNetworkCheckRequest=function(v){v=dng(this.sharedNetworkStatusManager,v);v.then(function(e){_.N("use_cfr_monitor")&&Fn().requestComplete("generate_204",e)});
return v};
o4.prototype.sendNetworkCheckRequest=o4.prototype.sendNetworkCheckRequest;o4.prototype.listen=o4.prototype.listen;o4.prototype.enableErrorFlushing=o4.prototype.enableErrorFlushing;o4.prototype.getWindowStatus=o4.prototype.getWindowStatus;o4.prototype.networkStatusHint=o4.prototype.networkStatusHint;o4.prototype.isNetworkAvailable=o4.prototype.isNetworkAvailable;o4.getInstance=T3J;_.wt=function(v){v=v===void 0?{}:v;_.r6.call(this);var e=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=T3J();var d=_.AE("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);d&&(v.rateLimit?(this.rateLimit=v.rateLimit,d("networkstatus-online",function(){SwJ(e,"publicytnetworkstatus-online")}),d("networkstatus-offline",function(){SwJ(e,"publicytnetworkstatus-offline")})):(d("networkstatus-online",function(){e.dispatchEvent("publicytnetworkstatus-online")}),d("networkstatus-offline",
function(){e.dispatchEvent("publicytnetworkstatus-offline")})))};
_.V(_.wt,_.r6);_.wt.prototype.isNetworkAvailable=function(){var v=_.AE("yt.networkStatusManager.instance.isNetworkAvailable");return v?v.bind(this.nsmInstance)():!0};
_.wt.prototype.networkStatusHint=function(v){var e=_.AE("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);e&&e(v)};
_.wt.prototype.sendNetworkCheckRequest=function(v){var e=this,d;return _.I(function(E){d=_.AE("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(e.nsmInstance);return _.N("skip_network_check_if_cfr")&&Fn().isEndpointCFR("generate_204")?E.return(new Promise(function(T){var S;e.networkStatusHint(((S=window.navigator)==null?void 0:S.onLine)||!0);T(e.isNetworkAvailable())})):d?E.return(d(v)):E.return(!0)})};
var SwJ=function(v,e){v.rateLimit?v.lastJobTime?(_.RM.cancelJob(v.schedulerJob),v.schedulerJob=_.RM.addLowPriorityJob(function(){v.lastPublicSignalSent!==e&&(v.dispatchEvent(e),v.lastPublicSignalSent=e,v.lastJobTime=(0,_.E$)())},v.rateLimit-((0,_.E$)()-v.lastJobTime))):(v.dispatchEvent(e),v.lastPublicSignalSent=e,v.lastJobTime=(0,_.E$)()):v.dispatchEvent(e)};var M20,JC=function(){ki.call(this,{logsStore:{cleanLogsStore:O1s,deleteRequest:i1s,getMostRecentByStatus:S_3,markAsQueued:W5t,resetRequest:aI3,set:TCH},networkManager:_.t2M(),handleError:function(v,e,d){var E,T=d==null?void 0:(E=d.error)==null?void 0:E.code;if(T===400||T===415){var S;v=new _.kL(v.message,e,d==null?void 0:(S=d.error)==null?void 0:S.code);_.ZV(v,void 0,void 0,void 0,!0)}else _.lg(v)},
handleWarning:_.ZV,sendFn:Jg0,now:_.E$,writeError:V2L,jobManager:_.jd(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Wi("potential_esf_error_limit",10),getBooleanFlag:_.N,disableYtIdbTransactions:!(_.N_()&&_.fIt())});this.initializationPromise=new _.r1;_.N("networkless_immediately_drop_all_requests")&&IIO();vEM("LogsDatabaseV2")};
_.V(JC,ki);_.a_B=function(){var v=_.AE("yt.networklessRequestController.instance");v||(v=new JC,_.pw("yt.networklessRequestController.instance",v),_.N("networkless_logging")&&_.ea().then(function(e){v.databaseToken=e;Uy2(v);v.initializationPromise.resolve();v.enableCleaning&&Math.random()<=v.cleaningRate&&v.databaseToken&&mC7(v.databaseToken);_.N("networkless_immediately_drop_sw_health_store")&&W$B(v)}));
return v};
JC.prototype.writeThenSend=function(v,e){e||(e={});e=Gjt(v,e);_.N_()||(this.initialized=!1);ki.prototype.writeThenSend.call(this,v,e)};
JC.prototype.sendThenWrite=function(v,e,d){e||(e={});e=Gjt(v,e);_.N_()||(this.initialized=!1);ki.prototype.sendThenWrite.call(this,v,e,d)};
JC.prototype.sendAndWrite=function(v,e){e||(e={});e=Gjt(v,e);_.N_()||(this.initialized=!1);ki.prototype.sendAndWrite.call(this,v,e)};
JC.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var W$B=function(v){var e;_.I(function(d){if(!v.databaseToken)throw e=zR("clearSWHealthLogsDb"),e;return d.return(yg0(v.databaseToken).catch(function(E){v.handleError(E)}))})};_.PkU=!1;_.R47=_.TO.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.PkU};_.pw("ytNetworklessLoggingInitializationOptions",_.R47);var MG=function(v){var e=this;this.config_=null;v?this.config_=v:OoU()&&(this.config_=_.Sa());_.LI(_.RM,function(){Ur0(e)},5E3)};
MG.prototype.isReady=function(){!this.config_&&OoU()&&(this.config_=_.Sa());return!!this.config_};
var Dr3=function(v,e,d,E){!_.Bb("VISITOR_DATA")&&e!=="visitor_id"&&Math.random()<.01&&_.ZV(new _.kL("Missing VISITOR_DATA when sending innertube request.",e,d,E));if(!v.isReady()){var T=new _.kL("innertube xhrclient not ready",e,d,E);_.lg(T);throw T;}var S={headers:E.headers||{},method:"POST",postParams:d,postBody:E.postBody,postBodyFormat:E.postBodyFormat||"JSON",onTimeout:function(){E.onTimeout()},
onFetchTimeout:E.onTimeout,onSuccess:function(h,K){if(E.onSuccess)E.onSuccess(K)},
onFetchSuccess:function(h){if(E.onSuccess)E.onSuccess(h)},
onProgress:function(h){if(E.onProgress)E.onProgress(h)},
onError:function(h,K){if(E.onError)E.onError(K)},
onFetchError:function(h){if(E.onError)E.onError(h)},
timeout:E.timeout,withCredentials:!0,compress:E.compress};S.headers["Content-Type"]||(S.headers["Content-Type"]="application/json");var O="";(T=v.config_.innertubeHostOverride)&&(O=T);var b=v.config_.innertubeUseThirdPartyAuth||!1,Y=_.VU0(b,O,E);Object.assign(S.headers,Y);S.headers.Authorization&&!O&&b&&(S.headers["x-origin"]=window.location.origin);var q=_.gZ(O+("/youtubei/"+v.config_.innertubeApiVersion+"/"+e),{alt:"json"}),r=function(h){h=h===void 0?!1:h;var K;if(E.retry&&O!="www.youtube-nocookie.com"&&
(h||_.N("skip_ls_gel_retry")||S.headers["Content-Type"]!=="application/json"||(K=ueU(e,d,Y,b)),K)){var k=S.onSuccess,J=S.onFetchSuccess;S.onSuccess=function(X,Z){nvS(K);k(X,Z)};
d.onFetchSuccess=function(X,Z){nvS(K);J(X,Z)}}try{if(h&&E.retry&&!E.networklessOptions.bypassNetworkless)S.method="POST",E.networklessOptions.writeThenSend?_.a_B().writeThenSend(q,S):_.a_B().sendAndWrite(q,S);
else if(E.compress){var R=!E.networklessOptions.writeThenSend;if(S.postBody){var B=S.postBody;typeof B!=="string"&&(B=JSON.stringify(S.postBody));ziU(q,B,S,_.y8,R)}else ziU(q,JSON.stringify(S.postParams),S,FNL,R)}else _.N("web_all_payloads_via_jspb")?_.y8(q,S):FNL(q,S)}catch(X){if(X.name==="InvalidAccessError")K&&(nvS(K),K=0),_.ZV(Error("gd"));else throw X;}K&&_.LI(_.RM,function(){Ur0(v)},5E3)};
_.xCL()?FUj().then(function(h){r(h)}):r(!1)};var gZH=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(gZH,_.du);var i2J=0,CkL=_.WM?"webkit":_.S1?"moz":_.Tw?"ms":hts?"o":"";_.pw("ytDomDomGetNextId",_.AE("ytDomDomGetNextId")||function(){return++i2J});var O27={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},pU=function(v){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(v=
v||window.event){this.event=v;for(var e in v)e in O27||(this[e]=v[e]);this.scale=v.scale;this.rotation=v.rotation;var d=v.target||v.srcElement;d&&d.nodeType==3&&(d=d.parentNode);this.target=d;var E=v.relatedTarget;if(E)try{E=E.nodeName?E:null}catch(T){E=null}else this.type=="mouseover"?E=v.fromElement:this.type=="mouseout"&&(E=v.toElement);this.relatedTarget=E;this.clientX=v.clientX!=void 0?v.clientX:v.pageX;this.clientY=v.clientY!=void 0?v.clientY:v.pageY;this.keyCode=v.keyCode?v.keyCode:v.which;
this.charCode=v.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=v.altKey;this.ctrlKey=v.ctrlKey;this.shiftKey=v.shiftKey;this.metaKey=v.metaKey;this.pageX_=v.pageX;this.pageY_=v.pageY}}catch(T){}},I_6=function(v){if(document.body&&document.documentElement){var e=document.body.scrollTop+document.documentElement.scrollTop;
v.pageX_=v.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);v.pageY_=v.clientY+e}};
pU.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
pU.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
pU.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var U$=_.TO.ytEventsEventsListeners||{};_.pw("ytEventsEventsListeners",U$);var Z1j=_.TO.ytEventsEventsCounter||{count:0};_.pw("ytEventsEventsCounter",Z1j);var cgM=_.qF(function(){var v=!1;try{var e=Object.defineProperty({},"capture",{get:function(){v=!0}});
window.addEventListener("test",null,e)}catch(d){}return v});_.vM(db,_.kh);db.prototype.onMouseMove_=function(v){v.pageX_===void 0&&I_6(v);var e=v.pageX_;v.pageY_===void 0&&I_6(v);this.position_=new _.Pn(e,v.pageY_)};
db.prototype.checkPosition_=function(){if(this.position_){var v=(0,_.E$)();if(this.previousTime_!=0){var e=this.previousPosition_,d=this.position_,E=e.x-d.x;e=e.y-d.y;E=Math.sqrt(E*E+e*e)/(v-this.previousTime_);this.cycles_[this.index_]=Math.abs((E-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(d=e=0;d<4;d++)e+=this.cycles_[d]||0;e>=3&&this.callback_();this.previousVelocity_=E}this.previousTime_=v;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
db.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.wzH(this.mouseListenerKey_)};var u23={};var Ezs=new _.gG("rawColdConfigGroup");var dPL=new _.gG("rawHotConfigGroup");var b2e=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(b2e,_.du);var QAW=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(QAW,_.du);var kf=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v,500)};
_.V(kf,_.du);kf.prototype.getPayloadCase=function(){return _.Kp(this,Ywi)};
kf.prototype.getContext=function(){return _.W8(this,QAW,33)};
var Ywi=[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,527];var njt=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(njt,_.du);var VML=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(VML,_.du);VML.prototype.setVideoId=function(v){return qG(this,1,oj0,yv(v))};
VML.prototype.getPlaylistId=function(){return _.rf(this,jh(this,oj0,2))};
var oj0=[1,2];var c80=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(c80,_.du);c80.prototype.getContext=function(){return _.W8(this,rb,1)};
c80.prototype.getTier=function(){return _.oW(this,7)};var mnJ,WV,aI;mnJ=_.TO.ytPubsubPubsubInstance||new _.rk;WV=_.TO.ytPubsubPubsubSubscribedKeys||{};aI=_.TO.ytPubsubPubsubTopicToKeys||{};_.nJs=_.TO.ytPubsubPubsubIsSynchronous||{};_.rk.prototype.subscribe=_.rk.prototype.subscribe;_.rk.prototype.unsubscribeByKey=_.rk.prototype.unsubscribeByKey;_.rk.prototype.publish=_.rk.prototype.publish;_.rk.prototype.clear=_.rk.prototype.clear;_.pw("ytPubsubPubsubInstance",mnJ);_.pw("ytPubsubPubsubTopicToKeys",aI);_.pw("ytPubsubPubsubIsSynchronous",_.nJs);
_.pw("ytPubsubPubsubSubscribedKeys",WV);var ON=window;var G3=_.N("web_enable_lifecycle_monitoring")&&egt()!==0,yWu=_.N("web_enable_lifecycle_monitoring");var qw7=function(v){var e=this;var d=d===void 0?0:d;var E=E===void 0?_.jd():E;this.JSC$10868_defaultPriority=d;this.scheduler=E;this.completedResolver=new _.r1;this.scheduledPayloads=v;for(v={i$jscomp$492:0};v.i$jscomp$492<this.scheduledPayloads.length;v={payload$jscomp$20:void 0,i$jscomp$492:v.i$jscomp$492},v.i$jscomp$492++)v.payload$jscomp$20=this.scheduledPayloads[v.i$jscomp$492],d=function(T){return function(){T.payload$jscomp$20.job();e.scheduledPayloads[T.i$jscomp$492].processed=!0;e.scheduledPayloads.every(function(S){return S.processed===
!0})&&e.completedResolver.resolve()}}(v),E=this.getPriority(v.payload$jscomp$20),E=this.scheduler.addJob(d,E),this.scheduledPayloads[v.i$jscomp$492]=Object.assign({},v.payload$jscomp$20,{job:d,
jobId:E})};
qw7.prototype.flushJobs=function(){var v=this,e=Array.from(this.scheduledPayloads.keys()).sort(function(E,T){return v.getPriority(v.scheduledPayloads[T])-v.getPriority(v.scheduledPayloads[E])});
e=_.a(e);for(var d=e.next();!d.done;d=e.next())d=this.scheduledPayloads[d.value],d.jobId===void 0||d.processed||(this.scheduler.cancelJob(d.jobId),this.scheduler.addJob(d.job,10))};
qw7.prototype.cancel=function(){for(var v=_.a(this.scheduledPayloads),e=v.next();!e.done;e=v.next())e=e.value,e.jobId===void 0||e.processed||this.scheduler.cancelJob(e.jobId),e.processed=!0;this.completedResolver.resolve()};
qw7.prototype.getPriority=function(v){var e;return(e=v.priority)!=null?e:this.JSC$10868_defaultPriority};var MY=function(v){this.state=v;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};G3&&deL(this.state)};
MY.prototype.install=function(v){this.plugins.push(v);return this};
MY.prototype.uninstall=function(){var v=this;_.Xa.apply(0,arguments).forEach(function(e){e=v.plugins.indexOf(e);e>-1&&v.plugins.splice(e,1)})};
MY.prototype.transition=function(v,e){var d=this;G3&&Ej3(this.state);var E=this.transitions.find(function(S){return Array.isArray(S.from)?S.from.find(function(O){return O===d.state&&S.to===v}):S.from===d.state&&S.to===v});
if(E){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);rWg(this,v,e);this.state=v;G3&&deL(this.state);E=E.action.bind(this);var T=this.plugins.filter(function(S){return S[v]}).map(function(S){return S[v]});
E(hbB(this,T),e)}else throw Error("hd`"+this.state+"`"+v);};
var hbB=function(v,e){var d=e.filter(function(T){return K$B(v,T)===10}),E=e.filter(function(T){return K$B(v,T)!==10});
return v.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var T=_.Xa.apply(0,arguments);return _.I(function(S){if(S.nextAddress==1)return S.yield(v.runImmediateJobsAsync.apply(v,[d].concat(_.t7(T))),2);v.setJobSetWithScheduledJobs.apply(v,[E].concat(_.t7(T)));_.s9(S)})}:function(){var T=_.Xa.apply(0,arguments);
v.runImmediateJobsSync.apply(v,[d].concat(_.t7(T)));v.setJobSetWithScheduledJobs.apply(v,[E].concat(_.t7(T)))}};
MY.prototype.runImmediateJobsSync=function(v){var e=_.Xa.apply(1,arguments);_.jd();for(var d=_.a(v),E=d.next(),T={};!E.done;T={lifecycle$jscomp$2:void 0},E=d.next())T.lifecycle$jscomp$2=E.value,b2(function(S){return function(){$n2(S.lifecycle$jscomp$2.name);SGt(function(){return S.lifecycle$jscomp$2.callback.apply(S.lifecycle$jscomp$2,_.t7(e))});
tC(S.lifecycle$jscomp$2.name)}}(T))};
MY.prototype.runImmediateJobsAsync=function(v){var e=_.Xa.apply(1,arguments),d,E,T,S;return _.I(function(O){O.nextAddress==1&&(_.jd(),d=_.a(v),E=d.next(),T={});if(O.nextAddress!=3){if(E.done)return O.jumpTo(0);T.lifecycle$jscomp$3=E.value;T.asyncJobCompletion=void 0;S=function(b){return function(){$n2(b.lifecycle$jscomp$3.name);var Y=SGt(function(){return b.lifecycle$jscomp$3.callback.apply(b.lifecycle$jscomp$3,_.t7(e))});
u7t(Y)?b.asyncJobCompletion=_.N("web_lifecycle_error_handling_killswitch")?Y.then(function(){tC(b.lifecycle$jscomp$3.name)}):Y.then(function(){tC(b.lifecycle$jscomp$3.name)},function(q){Tq3(q);
tC(b.lifecycle$jscomp$3.name)}):tC(b.lifecycle$jscomp$3.name)}}(T);
b2(S);return T.asyncJobCompletion?O.yield(T.asyncJobCompletion,3):O.jumpTo(3)}T={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};E=d.next();return O.jumpTo(2)})};
MY.prototype.setJobSetWithScheduledJobs=function(v){var e=_.Xa.apply(1,arguments),d=this,E=v.map(function(T){return{job:function(){$n2(T.name);SGt(function(){return T.callback.apply(T,_.t7(e))});
tC(T.name)},
priority:K$B(d,T)}});
E.length&&(this.jobSet=new qw7(E))};
var K$B=function(v,e){var d,E;return(E=(d=v.overridePriority)!=null?d:e.priority)!=null?E:0},$n2=function(v){G3&&v&&deL(v)},tC=function(v){G3&&v&&Ej3(v)},rWg=function(v,e,d){yWu&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+v.constructor.name+"] '"+v.state+"' to '"+e+"'"),console.log("with message: ",d),console.groupEnd())};
_.vP.Object.defineProperties(MY.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var jmJ=function(v){MY.call(this,v===void 0?"none":v);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(){}}]},smM;
_.V(jmJ,MY);jmJ.prototype.runApplicationNavigationBegin=function(v,e){var d=this;this.navigationTimer=_.LI(_.RM,function(){d.currentState==="application_navigating"&&d.transition("none")},5E3);
v(e==null?void 0:e.event)};
jmJ.prototype.runApplicationNavigationEnd=function(v,e){this.navigationTimer&&(_.RM.cancelJob(this.navigationTimer),this.navigationTimer=null);v(e==null?void 0:e.event)};
_.e0U=function(){smM||(smM=new jmJ);return smM};var vzL=[];_.pw("yt.logging.transport.getScrapedGelPayloads",function(){return vzL});var II=function(){var v=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return v.totalEntries}}};
II.prototype.storePayload=function(v,e){v=W8H(v);this.store[v]?this.store[v].push(e):(this.memoizedKeySequences={},this.store[v]=[e]);this.totalEntries++;_.N("more_accurate_gel_parser")&&(e=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(e));return v};
II.prototype.smartExtractMatchingEntries=function(v){if(!v.keys.length)return[];for(var e=N3E(this,v.keys.splice(0,1)[0]),d=[],E=0;E<e.length;E++)this.store[e[E]]&&v.sizeLimit&&(this.store[e[E]].length<=v.sizeLimit?(d.push.apply(d,_.t7(this.store[e[E]])),delete this.store[e[E]]):d.push.apply(d,_.t7(this.store[e[E]].splice(0,v.sizeLimit))));this.totalEntries-=d.length;(v==null?0:v.sizeLimit)&&d.length<(v==null?void 0:v.sizeLimit)&&(v.sizeLimit-=d.length,d.push.apply(d,_.t7(this.smartExtractMatchingEntries(v))));
return d};
II.prototype.extractMatchingEntries=function(v){v=N3E(this,v);for(var e=[],d=0;d<v.length;d++)this.store[v[d]]&&(e.push.apply(e,_.t7(this.store[v[d]])),delete this.store[v[d]]);this.totalEntries-=e.length;return e};
II.prototype.getSequenceCount=function(v){v=N3E(this,v);for(var e=0,d=0;d<v.length;d++){var E=void 0;e+=((E=this.store[v[d]])==null?void 0:E.length)||0}return e};
var N3E=function(v,e){var d=W8H(e);if(v.memoizedKeySequences[d])return v.memoizedKeySequences[d];var E=Object.keys(v.store)||[];if(E.length<=1&&W8H(e)===E[0])return E;for(var T=[],S=0;S<E.length;S++){var O=E[S].split("/");if(kze(e.auth,O[0])){var b=e.isJspb;kze(b===void 0?"undefined":b?"true":"false",O[1])&&kze(e.cttAuthInfo,O[2])&&(b=e.tier,b=b===void 0?"undefined":JSON.stringify(b),kze(b,O[3])&&T.push(E[S]))}}return v.memoizedKeySequences[d]=T},kze=function(v,e){return v===void 0||v==="undefined"?
!0:v===e};
II.prototype.getSequenceCount=II.prototype.getSequenceCount;II.prototype.extractMatchingEntries=II.prototype.extractMatchingEntries;II.prototype.smartExtractMatchingEntries=II.prototype.smartExtractMatchingEntries;II.prototype.storePayload=II.prototype.storePayload;var BqH,P2t,C2t,mH,L$I,axj,WSU,RgW,fyW,jZj,xeH,Uej,GIU;BqH=_.Wi("initial_gel_batch_timeout",2E3);P2t=_.Wi("gel_queue_timeout_max_ms",6E4);C2t=_.Wi("gel_min_batch_size",5);mH=void 0;L$I=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
axj=new L$I;WSU=new L$I;RgW=new L$I;fyW=new L$I;xeH=!0;Uej=1;_.DeO=new Map;GIU=_.TO.ytLoggingTransportTokensToCttTargetIds_||{};_.pw("ytLoggingTransportTokensToCttTargetIds_",GIU);var J8j=_.TO.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.pw("ytLoggingTransportTokensToJspbCttTargetIds_",J8j);var Yf={};var JI=_.TO.ytLoggingGelSequenceIdObj_||{};_.pw("ytLoggingGelSequenceIdObj_",JI);var IxS=[];var NBM=new Set,qK0=0,oz$=0,VKH=0,h03=[],rXU=[],JX0=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Hvt=function(){};
Hvt.prototype.getUrl=function(v,e){e=e===void 0?!1:e;return v.hasOwnProperty("shareEndpoint")?null:_.fxM(v,null,e)};
var ROt=function(v,e,d){v={endpoint:e,actions:[]};d=(d.path?d.path[0]:d.target).icon||"";e=d.indexOf(":");e>0&&(d=d.substr(e+1));d&&v.actions.push(d);return v};var X5M=/Command$/,CHM=/Endpoint$/,PHj=new Map;var Vog,oq0;Vog=1;_.FT=function(){this.actionRoutingMap=new Map};
_.FT.prototype.triggerAction=function(v){var e=new Vr0(v,!1,_.Xa.apply(1,arguments));this.handleAction(e);return e.returnValue};
_.FT.prototype.triggerOptionalAction=function(v){var e=new Vr0(v,!0,_.Xa.apply(1,arguments));this.handleAction(e);return e.returnValue};
_.fl=function(v,e,d){e.forEach(function(E){var T=BBt(E);T&&v.triggerOptionalAction(T,E,d,void 0)})};
_.FT.prototype.handleAction=function(v){var e=this.actionRoutingMap.get(v.actionName);e&&oq0(v,e);v.optionalAction||v.returnValue.length!==0||(v=new _.kL("Unhandled action",v.actionName),_.ZV(v))};
oq0=function(v,e){e.forEach(function(d){var E=null;d?E=d.apply(null,v.args):(d=Error("id"),d.params=v.actionName,_.lg(d));v.returnValue.push(E)})};
_.Qf=function(v,e,d){d||(d=Vog++);for(var E=_.a(Object.keys(e)),T=E.next();!T.done;T=E.next()){T=T.value;var S=v.actionRoutingMap.get(T);S||(S=new Map,v.actionRoutingMap.set(T,S));v.registerActionHandler(d,T,e[T],S)}return d};
_.FT.prototype.registerActionHandler=function(v,e,d,E){E.set(v,_.Hb(d))};
_.gb=function(v,e,d){e=_.a(Object.keys(e));for(var E=e.next();!E.done;E=e.next())(E=v.actionRoutingMap.get(E.value))&&E.delete(d)};
_.Uk(_.FT);var cXU=function(v,e){var d=_.FT.getInstance();_.Gr(function(){var E={},T=_.Qf(d,(E[v]=e,E));_.Jf(function(){var S={};_.gb(d,(S[v]="",S),T)})})};var QVM=Symbol("kd");nkH=oqt;var WCt=new Set(["For","If","Match","Watch"]),JWi={},GzJ=(JWi[zq.default]=function(){return ZkO},JWi.style=function(){return ZkO},JWi),Mou;
for(Mou in GzJ)vx.attributes[Mou]=GzJ[Mou](vx.attributes[Mou]);var dm=new _.nC("VISIBILITY_OBSERVER");var r1H={retrieve:function(v){return this.id.\u0275prov.token===v.\u0275prov.token?this.contextValue:this?_.D4(this,this.id):sMS}};var PcH=function(v,e,d){if(v!==UN)return!1;v=vpj(document.createElement("div"),function(){var E=dZ(!1);try{d[0]()}finally{dZ(E)}});
v=Array.from(v.childNodes);v.length===1&&(v=v[0]);return v};var toc=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(v){}var f_M=typeof WeakRef==="function";var RbM=function(v){this.value=v};
RbM.prototype.deref=function(){return this.value};
var Pn0=f_M?WeakRef:RbM,xnB=function(v){this.newKeyHandler=v;this.map=new WeakMap};
xnB.prototype.add=function(v,e){this.map.has(v)||(this.newKeyHandler(v),this.map.set(v,[]));this.map.get(v).push(new Pn0(e))};
xnB.prototype.get=function(v){var e=this;return function E(){var T,S,O,b,Y,q,r,h,K,k,J;return _.Ek(E,function(R){switch(R.nextAddress){case 1:_.KF(R,2);T=e.map.get(v);if(!T)return R.return();S=0;O=_.a(T);b=O.next();case 4:if(b.done){R.jumpTo(6);break}Y=b.value;q=Y.deref();if(!q){R.jumpTo(5);break}S++;r=_.Tp;return R.yield(q,8);case 8:r(R.yieldResult);case 5:b=O.next();R.jumpTo(4);break;case 6:if(2*S<T.length){h=0;K=_.a(T);for(k=K.next();!k.done;k=K.next())J=k.value,J.deref()&&(T[h++]=J);T.length=
h}case 2:_.h7(R),_.$a(R,0)}})}()};var B3M=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},kUs=new xnB(function(v){v.addEventListener("abort",VBj,{once:!0})}),Npj=new WeakMap,Cni=function(v){v=v===void 0?R4:v;
this.signal=new v};
Cni.prototype.abort=function(v){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=v,v=new Event("abort"),this.signal.dispatchEvent(v))};
var R4=function(){this.target=B3M();this.aborted=!1;this.onabort=null};
R4.prototype.throwIfAborted=function(){stL.call(this)};
R4.prototype.addEventListener=function(v,e,d){this.target.addEventListener(v,e,d)};
R4.prototype.removeEventListener=function(v,e,d){this.target.removeEventListener(v,e,d)};
R4.prototype.dispatchEvent=function(v){if(this.onabort&&v.type==="abort")this.onabort(v);return this.target.dispatchEvent(v)};
R4.abort=jt7;R4.timeout=opW;R4.any=LC0;var $0O=toc?AbortController:Cni,P6=toc?AbortSignal:R4;typeof P6.abort!=="function"&&(P6.abort=jt7);typeof P6.prototype.throwIfAborted!=="function"&&(P6.prototype.throwIfAborted=stL);typeof P6.any!=="function"&&(P6.any=LC0);typeof P6.timeout!=="function"&&(P6.timeout=opW);var XPe=function(v){v=v.clone();vLg(v);rG(v,"dg",null);rG(v,"d","0");ncB(v,null);D96(v,null);return v},zbn=!0,l_c=function(v,e,d){var E=d===void 0?{}:d;
d=E.cssRowKey===void 0?void 0:E.cssRowKey;var T=E.combinedSignature===void 0?void 0:E.combinedSignature;var S=E.extraEdges===void 0?void 0:E.extraEdges;E=E.callback===void 0?void 0:E.callback;rG(v,"m",e.join(","));S&&pbu(v,S);d&&(rG(v,"ck",d),T?rG(v,"rs",T):zbn&&(zbn=!1));if(E){if(E!=null&&!ELJ.test(E))throw Error("Xa`"+E);rG(v,"cb",E)}v=v.toString();_.aU(v,"/")&&(v=tsu(document.location.href)+v);return _.km(v)};var AWJ=function(v){return H2n(v).then(function(e){return JSON.parse(e.responseText)})},H2n=function(v){var e={},d=e.xmlHttpFactory?e.xmlHttpFactory.createInstance():K1A.createInstance();
return(new _.yf(function(E,T){var S;try{d.open("GET",v,!0)}catch(Y){T(new xi("Error opening XHR: "+Y.message,v,d))}d.onreadystatechange=function(){if(d.readyState==4){_.TO.clearTimeout(S);var Y;!(Y=hW2(d.status))&&(Y=d.status===0)&&(Y=MsE(v),Y=!(Y=="http"||Y=="https"||Y==""));Y?E(d):T(new Z26(d.status,v,d))}};
d.onerror=function(){T(new xi("Network error",v,d))};
if(e.headers)for(var O in e.headers){var b=e.headers[O];b!=null&&d.setRequestHeader(O,b)}e.withCredentials&&(d.withCredentials=e.withCredentials);e.responseType&&(d.responseType=e.responseType);e.mimeType&&d.overrideMimeType(e.mimeType);e.timeoutMs>0&&(S=_.TO.setTimeout(function(){d.onreadystatechange=function(){};
d.abort();T(new cWB(v,d))},e.timeoutMs));
try{d.send(null)}catch(Y){d.onreadystatechange=function(){},_.TO.clearTimeout(S),T(new xi("Error sending XHR: "+Y.message,v,d))}})).thenCatch(function(E){E instanceof _.Cr&&d.abort();
throw E;})},xi=function(v,e,d){_.dH.call(this,v+", url="+e);
this.url=e;this.xhr=d};
_.vM(xi,_.dH);xi.prototype.name="XhrError";var Z26=function(v,e,d){xi.call(this,"Request Failed, status="+v,e,d);this.status=v};
_.vM(Z26,xi);Z26.prototype.name="XhrHttpError";var cWB=function(v,e){xi.call(this,"Request timed out",v,e)};
_.vM(cWB,xi);cWB.prototype.name="XhrTimeoutError";D9=D9||{};var B6=function(){_.kh.call(this)};
_.vM(B6,_.kh);B6.prototype.initialize=function(){};var wP0=function(v,e){this.fn_=v;this.handler_=e};
wP0.prototype.execute=function(v){this.fn_&&(this.fn_.call(this.handler_||null,v),this.fn_=this.handler_=null)};
wP0.prototype.abort=function(){this.handler_=this.fn_=null};var Cl=function(v,e){_.kh.call(this);this.deps_=v;this.JSC$11022_id_=e;this.onloadCallbacks_=[];this.JSC$11022_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.vM(Cl,_.kh);Cl.prototype.moduleConstructor_=B6;Cl.prototype.module_=null;Cl.prototype.getId=function(){return this.JSC$11022_id_};
Cl.prototype.registerCallback=function(v,e){return F$M(this.onloadCallbacks_,v,e)};
var Qmu=function(v,e){F$M(v.JSC$11022_onErrorCallbacks_,e)},F$M=function(v,e,d){e=new wP0(e,d);
v.push(e);return e};
Cl.prototype.isLoaded=function(){return!!this.module_};
Cl.prototype.onLoad=function(v){var e=new this.moduleConstructor_;e.initialize(v());this.module_=e;e=(e=gqc(this.earlyOnloadCallbacks_,v()))||gqc(this.onloadCallbacks_,v());e||(this.JSC$11022_onErrorCallbacks_.length=0);return e};
Cl.prototype.onError=function(v){(v=gqc(this.JSC$11022_onErrorCallbacks_,v))&&W3(Error("od`"+v));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var gqc=function(v,e){for(var d=[],E=0;E<v.length;E++)try{v[E].execute(e)}catch(T){W3(T),d.push(T)}v.length=0;return d.length?d:null};
Cl.prototype.disposeInternal=function(){Cl.superClass_.disposeInternal.call(this);_.p0(this.module_)};var ufu,eaA,pPB,vBI,Dnu,UnJ,WNA,TVJ,Szu;
_.SO=function(v,e,d,E,T){E=E===void 0?!1:E;T=T===void 0?!1:T;var S=S===void 0?!0:S;this.scsReferenceUrl_=co3(_.LY(v).toString(),S);this.cssRowKey_=e;this.combinedSignature_=d;this.useNegativeLoading_=E;this.requestedModuleMap_={};this.JSC$11025_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(v=qU(this.scsReferenceUrl_,"excm"))?v.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;w8U();_.X8(this,U9g(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
ufu=function(v,e){if(e.href||e.getAttribute("data-href"))if(e=e.href||e.getAttribute("data-href"),lFj(e)&&!co3(e).urlPrefix_.endsWith("_/js/")){e=U9g(co3(e));e=_.a(e);for(var d=e.next();!d.done;d=e.next())d=d.value,v.loadedCssModuleList_.includes(d)||v.loadedCssModuleList_.push(d)}};
_.SO.prototype.JSC$11027_loadModules=function(v,e,d){var E=d===void 0?{}:d;d=E.extraEdges;var T=E.onError;var S=E.onSuccess;E=E.forceReload;this.JSC$11025_moduleInfoMap_=e;if(!v)throw Error("pd");if(this.shouldScanForCss_){e=_.a(document.getElementsByTagName("style"));for(var O=e.next();!O.done;O=e.next())ufu(this,O.value);e=_.a(document.getElementsByTagName("link"));for(O=e.next();!O.done;O=e.next())ufu(this,O.value)}nqu(this,Dnu(this,v),d,T,S,E)};
var nqu=function(v,e,d,E,T,S){E=E===void 0?function(){}:E;
T=T===void 0?function(){}:T;
S=S===void 0?!1:S;UnJ(v,e,function(O,b,Y){Y=Y===void 0?b:Y;v.enableFallbackFetch&&S?v.loadWithFetch(O,b,E,T,Y):v.load(O,b,E,T,Y,d)},d)||E(-1)};
_.SO.prototype.loadWithFetch=function(){_.I(function(){throw Error("qd");})};
_.SO.prototype.maybeSetAdditionalFields=function(){};
eaA=function(v,e,d){if(v.useNegativeLoading_){var E=v.scsReferenceUrl_;v={cssRowKey:v.cssRowKey_,combinedSignature:v.combinedSignature_,extraEdges:d,requestedModuleIds:pPB(v),requestedCssModuleIds:vBI(v)};var T=v===void 0?{}:v;v=T.requestedModuleIds===void 0?[]:T.requestedModuleIds;d=T.requestedCssModuleIds===void 0?[]:T.requestedCssModuleIds;var S=T.cssRowKey===void 0?void 0:T.cssRowKey;var O=T.combinedSignature===void 0?void 0:T.combinedSignature;var b=T.extraEdges===void 0?void 0:T.extraEdges;
T=T.callback===void 0?void 0:T.callback;E=XPe(E);rG(E,"d","1");ncB(E,v);D96(E,d);e=l_c(E,e,{cssRowKey:S,combinedSignature:O,extraEdges:b,callback:T})}else E=v.scsReferenceUrl_,v={cssRowKey:v.cssRowKey_,combinedSignature:v.combinedSignature_,requestedModuleIds:pPB(v),requestedCssModuleIds:vBI(v)},b=v===void 0?{}:v,v=b.requestedCssModuleIds===void 0?[]:b.requestedCssModuleIds,d=b.cssRowKey===void 0?void 0:b.cssRowKey,S=b.combinedSignature===void 0?void 0:b.combinedSignature,O=b.extraEdges===void 0?
void 0:b.extraEdges,b=b.callback===void 0?void 0:b.callback,E=XPe(E),D96(E,v),e=l_c(E,e,{cssRowKey:d,combinedSignature:S,extraEdges:O,callback:b});return e};
_.X8=function(v,e){for(var d=!1,E=[],T=0;T<e.length;++T){var S=e[T];v.requestedModuleMap_[S]||(v.requestedModuleMap_[S]=!0,v.requestedModuleList_.push(S),d=!0,E.push(S))}d&&(v.requestedModuleListSorted_=!1)};
_.z3=function(v,e){for(var d=[],E=0;E<e.length;++E){var T=e[E];v.requestedModuleMap_[T]&&(delete v.requestedModuleMap_[T],_.H3(v.requestedModuleList_,T),d.push(T))}};
_.SO.prototype.load=function(v,e,d,E,T){T=T===void 0?e:T;_.LY(v);var S=this.useCors_,O=this.corsMode_,b=this.fetchPriority,Y=_.hz("SCRIPT");_.DB(Y,v);S&&(Y.crossOrigin=O);Y.async=!1;b&&Y.setAttribute("fetchpriority",b);_.X8(this,e);_.dg6(this,v,Y,e,d,E,T)};
_.dg6=function(v,e,d,E,T,S,O){O=O===void 0?E:O;v.lastScript_=d;v.insertPos.insertBefore(d,v.insertPos.firstChild);_.EBE(d,E,function(){d.parentElement.removeChild(d);v.lastScript_==d&&(v.lastScript_=null);var b=new Set;E.map(function(q){return b.add(q)});
for(var Y in v.JSC$11025_moduleInfoMap_)v.JSC$11025_moduleInfoMap_[Y].isLoaded()&&b.add(Y);Array.from(b);S()},function(b){d.parentElement.removeChild(d);
v.lastScript_==d&&(v.lastScript_=null);_.z3(v,b);v.pendingModuleGraphUpdate_?v.pendingModuleGraphUpdate_.then(function(){T(-1,e)}):T(-1,e)},O)};
_.EBE=function(v,e,d,E,T){T=T===void 0?e:T;var S=e.length,O=function(){S=0;v.onload=null;v.onerror=null;b=function(){}},b=function(){O();
var q=T.filter(function(r){return!Mu().getModuleInfo(r).isLoaded()});
q.length!==0?E(q,"Response was successful but was missing module(s) "+q+"."):d()},Y=function(){S--;
S==0&&b()};
e.forEach(function(q){q=Mu().getModuleInfo(q);q.isLoaded()?Y():(F$M(q.earlyOnloadCallbacks_,Y),Qmu(q,Y))});
v.onload=function(){return b()};
v.onerror=function(){O();E(e)}};
pPB=function(v){v.requestedModuleListSorted_||(v.requestedModuleListSorted_=!0,v.requestedModuleList_.sort());return v.requestedModuleList_};
vBI=function(v){v=v.loadedCssModuleList_;v.sort();return v};
Dnu=function(v,e){return e.filter(function(d){return!v.requestedModuleMap_[d]})};
UnJ=function(v,e,d,E){if(v.pendingModuleGraphUpdate_)return v.pendingModuleGraphUpdate_.then(function(){UnJ(v,e,d,E)}),!0;
if(!v.useNegativeLoading_){var T=[],S=Object.assign({},v.requestedModuleMap_);TVJ(v,e,function(r){T.push(r.getId())},E,function(r){return!r.isLoaded()},S);
e=T}for(S=0;S<e.length;){for(var O=e.length-S,b=S==0?e:e.slice(S,e.length),Y=eaA(v,b,E),q=_.LY(Y).toString();q.length>v.urlMaxLength;)if(O>1)O-=Math.ceil((q.length-v.urlMaxLength)/6),O=Math.max(O,1),b=e.slice(S,S+O),Y=eaA(v,b,E),q=_.LY(Y).toString();else return v.useNegativeLoading_?(v.useNegativeLoading_=!1,v.pendingModuleGraphUpdate_=Szu(v).then(function(r){WNA(v,r,E)}),UnJ(v,e.slice(S),d,E)):!1;
S+=O;v.useNegativeLoading_?d(Y,b):d(Y,b,S===e.length?e:[])}return!0};
WNA=function(v,e,d){Mu().setAllModuleInfoString((e||{}).moduleGraph);TVJ(v,pPB(v),function(E){_.X8(v,[E.getId()])},d);
v.pendingModuleGraphUpdate_=null};
TVJ=function(v,e,d,E,T,S){S=S===void 0?{}:S;var O=Mu();e=_.a(e);for(var b=e.next();!b.done;b=e.next()){b=b.value;var Y=O.getModuleInfo(b);if(!(S[b]||T&&!T(Y))){S[b]=!0;var q=Y.deps_||[];if(E){var r=[];E[b]&&(r=Object.keys(E[b]));q=q.concat(r)}TVJ(v,q,d,E,T,S);d(Y)}}};
Szu=function(v){v=v.scsReferenceUrl_.clone();vLg(v);rG(v,"dg",null);rG(v,"md","1");return AWJ(v.toString())};var J13=new Uint8Array(123);var amn=[];var iBg=function(){this.JSC$10044_loader_=null};
_.W=iBg.prototype;_.W.setBatchModeEnabled=function(){};
_.W.setAllModuleInfoString=function(){};
_.W.addExtraEdge=function(){throw Error("rd");};
_.W.removeExtraEdge=function(){throw Error("sd");};
_.W.getModuleContext=function(){return null};
_.W.isActive=function(){return!1};
_.W.isUserActive=function(){return!1};
_.W.registerCallback=function(){};var lP=function(v,e,d,E,T){var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.name="ModuleLoadFailure";this.type=v;this.status=e;this.requestedModuleIds=d;this.url=E;this.cause=T;this.message=this.toString()};
_.V(lP,Error);lP.prototype.toString=function(){return OBu(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var OBu=function(v){switch(v.type){case lP.Type.UNAUTHORIZED:return"Unauthorized";case lP.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case lP.Type.TIMEOUT:return"Timed out";case lP.Type.OLD_CODE_GONE:return"Out of date module id";case lP.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+v.type}};
D9.ModuleLoadFailure=lP;D9.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var H6=function(){this.moduleIds_=this.JSC$10044_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11040_extraEdges_={};this.JSC$11040_callbackMap_={};this.JSC$11040_currentlyLoadingModule_=this.baseModuleInfo_=new Cl([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new lI;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.vM(H6,iBg);var Imi=function(v,e){_.dH.call(this,"Error loading "+v+": "+e)};
_.vM(Imi,_.dH);H6.prototype.setBatchModeEnabled=function(v){this.batchModeEnabled_=v};
H6.prototype.setAllModuleInfoString=function(v,e){if(!(this instanceof H6))this.setAllModuleInfoString(v,e);else if(typeof v==="string"){if(v.startsWith("d$")){v=v.substring(2);for(var d=[],E=0,T=v.indexOf("/"),S=0,O=!1,b=0;;){var Y=O?v.substring(S):v.substring(S,T);if(Y.length===0)E++,S="sy"+E.toString(36),Y=[];else{var q=Y.indexOf(":");if(q<0)S=Y,Y=[];else if(q===Y.length-1)S=Y.substring(0,q),Y=Array(d[b-1]);else{S=Y.substring(0,q);Y=Y.substring(q+1).split(",");q=b;for(var r=0;r<Y.length;r++)q-=
Y[r].length===0?1:Number(Y[r]),Y[r]=d[q]}q=0;if(S.length===0)q=1;else if(S.charAt(0)==="+"||S.charAt(0)==="-")q=Number(S);q!==0&&(E+=q,S="sy"+E.toString(36))}d.push(S);bBM(this,S,Y);if(O)break;S=T+1;T=v.indexOf("/",S);T===-1&&(O=!0);b++}this.moduleIds_=d}else if(v.startsWith("p$"))Yzi(this,v);else{v=v.split("/");d=[];for(E=0;E<v.length;E++){b=v[E].split(":");T=b[0];O=[];if(b[1])for(O=b[1].split(","),b=0;b<O.length;b++)O[b]=d[parseInt(O[b],36)];d.push(T);bBM(this,T,O)}this.moduleIds_=d}e&&e.length?
(_.FM(this.loadingModuleIds_,e),this.lastInitialModuleId_=_.P3(e)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11040_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11040_currentlyLoadingModule_=null,(e=this.baseModuleInfo_.onLoad((0,_.LX)(this.getModuleContext,this)))&&e.length&&mgJ(this,new D9.ModuleLoadFailure(D9.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,e[0])),AC(this))}};
var Yzi=function(v,e){var d=e.substring(2);for(e=0;e<64;e++)J13["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(e)]=e;var E={buf:d,pos:0};Tv(E);var T=Tv(E),S=Tv(E)+1;e=Array(T);var O=Array(T),b=Array(T);S=Array(S);var Y=0,q=0,r=E.pos,h=E.buf.indexOf("|",E.pos);E.pos=h+1;for(h=0;h<T;h++){var K=Tv(E),k=K&2,J=K&1;K>>>=2;J?(Y+=K>>>1^-(K&1),K="sy"+Y.toString(36)):(J=r,r+=K,K=d.substring(J,r));e[h]=K;k&&(S[q++]=K)}S[q]="";E.pos++;q=T&-2;d=T&1;for(Y=0;Y<q;Y+=2)r=GUt(E),b[Y]=
r&7,b[Y+1]=r>>>3&7;d&&(d=GUt(E),b[q]=d&7);E.pos++;for(q=0;q<T;q++)b[q]===7&&(b[q]=Tv(E));E.pos++;for(d=q=0;d<T;d++){Y=b[d];r=Y===0?amn:Array(Y);O[d]=r;h=q;for(k=0;k<Y;k++)h-=Tv(E),r[k]=S[h];S[q]===e[d]&&q++}for(E=0;E<e.length;E++)bBM(v,e[E],O[E]);v.moduleIds_=e};
_.W=H6.prototype;_.W.getModuleInfo=function(v){return this.moduleInfoMap[v]};
_.W.addExtraEdge=function(v,e){var d=this.getModuleInfo(v);d&&d.isLoaded()?this.load(e):(this.JSC$11040_extraEdges_[v]||(this.JSC$11040_extraEdges_[v]={}),this.JSC$11040_extraEdges_[v][e]=!0)};
_.W.removeExtraEdge=function(v,e){if(this.JSC$11040_extraEdges_[v]){delete this.JSC$11040_extraEdges_[v][e];for(var d in this.JSC$11040_extraEdges_[v])return;delete this.JSC$11040_extraEdges_[v]}};
_.W.isActive=function(){return this.loadingModuleIds_.length>0};
_.W.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var AC=function(v){var e=v.lastActive_,d=v.isActive();d!=e&&(v.executeCallbacks_(d?"active":"idle"),v.lastActive_=d);e=v.isUserActive();e!=v.userLastActive_&&(v.executeCallbacks_(e?"userActive":"userIdle"),v.userLastActive_=e)},bBM=function(v,e,d){v.moduleInfoMap[e]?(v=v.moduleInfoMap[e].deps_,v!=d&&v.splice.apply(v,[0,
v.length].concat(_.t7(d)))):v.moduleInfoMap[e]=new Cl(d,e)},qzJ=function(v,e,d){var E=[];
oSM(e,E);e=[];for(var T={},S=0;S<E.length;S++){var O=E[S],b=v.getModuleInfo(O);if(!b)throw Error("td`"+O);var Y=new lI;T[O]=Y;b.isLoaded()?Y.callback(null):(yU2(v,O,b,!!d,Y),v.isModuleLoading(O)||e.push(O))}e.length>0&&(v.loadingModuleIds_.length===0?v.loadModules_(e):(v.requestedModuleIdsQueue_.push(e),AC(v)));return T},yU2=function(v,e,d,E,T){d.registerCallback(T.callback,T);
Qmu(d,function(S){T.errback(new Imi(e,S))});
v.isModuleLoading(e)?E&&(rUM(v,e),AC(v)):E&&rUM(v,e)};
H6.prototype.loadModules_=function(v,e,d){var E=this;e||(this.consecutiveFailures_=0);var T=ha6(this,v);this.loadingModuleIds_=T;this.requestedLoadingModuleIds_=this.batchModeEnabled_?v:_.Zt(T);AC(this);if(T.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,T);if(Object.keys(this.JSC$11040_extraEdges_).length>0&&!this.JSC$10044_loader_.supportsExtraEdges)throw Error("ud");v=(0,_.LX)(this.JSC$10044_loader_.JSC$11027_loadModules,this.JSC$10044_loader_,_.Zt(T),this.moduleInfoMap,
{extraEdges:this.JSC$11040_extraEdges_,forceReload:!!d,onError:function(S,O){var b=E.requestedLoadingModuleIds_;S=S!=null?S:void 0;E.consecutiveFailures_++;var Y=_.Zt(T);E.requestedLoadingModuleIds_=b;T.forEach(_.kB(_.H3,E.requestedModuleIds_),E);S==401?(mgJ(E,new D9.ModuleLoadFailure(D9.ModuleLoadFailure.Type.UNAUTHORIZED,S)),E.requestedModuleIdsQueue_.length=0):S==410?(KN7(E,new D9.ModuleLoadFailure(D9.ModuleLoadFailure.Type.OLD_CODE_GONE,S)),$gE(E)):E.consecutiveFailures_>=3?(KN7(E,new D9.ModuleLoadFailure(D9.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
S,Y,O)),$gE(E)):E.loadModules_(E.requestedLoadingModuleIds_,!0,S==8001||!1)},
onTimeout:(0,_.LX)(this.handleLoadTimeout_,this)});(e=Math.pow(this.consecutiveFailures_,2)*5E3)?_.TO.setTimeout(v,e):v()}};
var ha6=function(v,e){e=e.filter(function(T){return v.moduleInfoMap[T].isLoaded()?(_.TO.setTimeout(function(){return Error("vd`"+T)},0),!1):!0});
for(var d=[],E=0;E<e.length;E++)d=d.concat(jqc(v,e[E]));oSM(d);return!v.batchModeEnabled_&&d.length>1?(e=d.shift(),v.requestedModuleIdsQueue_=d.map(function(T){return[T]}).concat(v.requestedModuleIdsQueue_),[e]):d},jqc=function(v,e){var d=_.f0.createSet(v.requestedModuleIds_),E=[];
d[e]||E.push(e);e=[e];for(var T=0;T<e.length;T++)for(var S=v.getModuleInfo(e[T]).deps_,O=S.length-1;O>=0;O--){var b=S[O];v.getModuleInfo(b).isLoaded()||d[b]||(E.push(b),e.push(b))}E.reverse();oSM(E);return E};
H6.prototype.JSC$11035_setLoaded=function(){if(this.JSC$11040_currentlyLoadingModule_){var v=this.JSC$11040_currentlyLoadingModule_.getId(),e=[];if(this.JSC$11040_extraEdges_[v]){for(var d=_.a(Object.keys(this.JSC$11040_extraEdges_[v])),E=d.next();!E.done;E=d.next()){E=E.value;var T=this.getModuleInfo(E);T&&!T.isLoaded()&&(this.removeExtraEdge(v,E),e.push(E))}this.loadMultiple(e)}this.isDisposed()||((e=this.moduleInfoMap[v].onLoad((0,_.LX)(this.getModuleContext,this)))&&e.length&&mgJ(this,new D9.ModuleLoadFailure(D9.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,e[0])),_.H3(this.userInitiatedLoadingModuleIds_,v),_.H3(this.loadingModuleIds_,v),this.loadingModuleIds_.length===0&&$gE(this),this.lastInitialModuleId_&&v==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),AC(this),this.JSC$11040_currentlyLoadingModule_=null)}};
H6.prototype.isModuleLoading=function(v){if(_.lL(this.loadingModuleIds_,v))return!0;for(var e=0;e<this.requestedModuleIdsQueue_.length;e++)if(_.lL(this.requestedModuleIdsQueue_[e],v))return!0;return!1};
H6.prototype.load=function(v,e){return qzJ(this,[v],e)[v]};
H6.prototype.loadMultiple=function(v){return qzJ(this,v)};
var rUM=function(v,e){_.lL(v.userInitiatedLoadingModuleIds_,e)||v.userInitiatedLoadingModuleIds_.push(e)};
H6.prototype.beforeLoadModuleCode=function(v){var e=this;this.JSC$11040_currentlyLoadingModule_&&this.JSC$11040_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11035_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[v]&&sqA(this,this.moduleInfoMap[v].deps_||[],function(d){d.module_=new B6;_.H3(e.loadingModuleIds_,d.getId())},function(d){return!d.isLoaded()});
this.JSC$11040_currentlyLoadingModule_=this.getModuleInfo(v)};
H6.prototype.handleLoadTimeout_=function(){KN7(this,new D9.ModuleLoadFailure(D9.ModuleLoadFailure.Type.TIMEOUT));$gE(this)};
var KN7=function(v,e){v.requestedLoadingModuleIds_.length>1?v.requestedModuleIdsQueue_=v.requestedLoadingModuleIds_.map(function(d){return[d]}).concat(v.requestedModuleIdsQueue_):mgJ(v,e)},mgJ=function(v,e){var d=v.requestedLoadingModuleIds_;
v.loadingModuleIds_.length=0;for(var E=[],T=0;T<v.requestedModuleIdsQueue_.length;T++){var S=v.requestedModuleIdsQueue_[T].filter(function(Y){var q=jqc(this,Y);return Qp(d,function(r){return _.lL(q,r)})},v);
_.FM(E,S)}for(T=0;T<d.length;T++)_.NHU(E,d[T]);for(T=0;T<E.length;T++){for(S=0;S<v.requestedModuleIdsQueue_.length;S++)_.H3(v.requestedModuleIdsQueue_[S],E[T]);_.H3(v.userInitiatedLoadingModuleIds_,E[T])}if(T=v.JSC$11040_callbackMap_.error)for(S=0;S<T.length;S++)for(var O=T[S],b=0;b<E.length;b++)O("error",E[b],e);for(E=0;E<d.length;E++)if(v.moduleInfoMap[d[E]])v.moduleInfoMap[d[E]].onError(e);v.requestedLoadingModuleIds_.length=0;AC(v)},$gE=function(v){for(;v.requestedModuleIdsQueue_.length;){var e=
v.requestedModuleIdsQueue_.shift().filter(function(d){return!this.getModuleInfo(d).isLoaded()},v);
if(e.length>0){v.loadModules_(e);return}}AC(v)};
H6.prototype.registerCallback=function(v,e){Array.isArray(v)||(v=[v]);for(var d=0;d<v.length;d++){var E=v[d],T=e,S=this.JSC$11040_callbackMap_;S[E]||(S[E]=[]);S[E].push(T)}};
H6.prototype.executeCallbacks_=function(v){for(var e=this.JSC$11040_callbackMap_[v],d=0;e&&d<e.length;d++)e[d](v)};
var sqA=function(v,e,d,E,T){E=E===void 0?function(){return!0}:E;
T=T===void 0?{}:T;e=_.a(e);for(var S=e.next();!S.done;S=e.next()){S=S.value;var O=v.getModuleInfo(S);!T[S]&&E(O)&&(T[S]=!0,sqA(v,O.deps_||[],d,E,T),d(O))}};
H6.prototype.dispose=function(){_.vw(_.f0.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11040_callbackMap_={};this.isDisposed_=!0};
H6.prototype.isDisposed=function(){return this.isDisposed_};
_.GZ=function(){return new H6};var NV0=[5E3,2E4],kEe=function(){this.JSC$10044_loader_=null;this.JSC$11048_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11048_queue_=[];this.JSC$11048_extraEdges_=Object.create(null);this.JSC$11048_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.V(kEe,iBg);_.W=kEe.prototype;_.W.setAllModuleInfoString=function(){this.JSC$11048_currentlyLoadingModule_&&this.JSC$11048_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11035_setLoaded()};
_.W.getModuleInfo=function(v){var e=this.JSC$11048_moduleInfoMap_[v];e||(e=new Cl([],v),this.JSC$11048_moduleInfoMap_[v]=e);return e};
_.W.addExtraEdge=function(v,e){this.getModuleInfo(v).isLoaded()?this.load(e):(this.JSC$11048_extraEdges_[v]||(this.JSC$11048_extraEdges_[v]={}),this.JSC$11048_extraEdges_[v][e]=!0)};
_.W.removeExtraEdge=function(v,e){if(this.JSC$11048_extraEdges_[v]){delete this.JSC$11048_extraEdges_[v][e];for(var d in this.JSC$11048_extraEdges_[v])return;delete this.JSC$11048_extraEdges_[v]}};
_.W.isModuleLoading=function(v){return!!this.loadingModules_[v]};
_.W.load=function(v){LNE(this,[v]);return VXI(this,v)};
_.W.loadMultiple=function(v){var e=this,d=Object.create(null),E=[];v.forEach(function(T){d[T]||(d[T]=VXI(e,T),E.push(T))});
LNE(this,E);return d};
_.W.beforeLoadModuleCode=function(v){var e;((e=this.JSC$11048_currentlyLoadingModule_)==null?void 0:e.getId())==="synthetic_module_overhead"&&this.JSC$11035_setLoaded();var d,E;oBn(this,(E=(d=this.JSC$11048_moduleInfoMap_[v])==null?void 0:d.deps_)!=null?E:[],function(T){T.module_=new B6},function(T){return!T.isLoaded()});
this.JSC$11048_currentlyLoadingModule_=this.getModuleInfo(v)};
_.W.JSC$11035_setLoaded=function(){if(this.JSC$11048_currentlyLoadingModule_){var v=this.JSC$11048_currentlyLoadingModule_.getId(),e=[];if(this.JSC$11048_extraEdges_[v]){for(var d=_.a(Object.keys(this.JSC$11048_extraEdges_[v])),E=d.next();!E.done;E=d.next())E=E.value,this.getModuleInfo(E).isLoaded()||(this.removeExtraEdge(v,E),e.push(E));this.loadMultiple(e)}this.JSC$11048_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11048_currentlyLoadingModule_=null;(!this.isModuleLoading(v)&&/^sy[0-9a-z]{0,4}$/.test(v)||v==="synthetic_module_overhead")&&delete this.JSC$11048_moduleInfoMap_[v];this.unsetModulesAsLoading(v)}};
_.W.setModulesAsLoading=function(){var v=this;_.Xa.apply(0,arguments).forEach(function(e){v.loadingModules_[e]=!0})};
_.W.unsetModulesAsLoading=function(){var v=this;_.Xa.apply(0,arguments).forEach(function(e){delete v.loadingModules_[e]})};
var VXI=function(v,e){return new _.yf(function(d,E){var T=v.getModuleInfo(e);T.isLoaded()?d(null):(T.registerCallback(function(){d(null)}),Qmu(T,function(S){var O="Error loading "+e+": "+S;
S instanceof D9.ModuleLoadFailure&&S.url&&(O=O+", requested url: "+S.url.toString());E(Error(O))}))})},LNE=function(v,e){e=e.filter(function(d){return!v.isModuleLoading(d)&&!v.getModuleInfo(d).isLoaded()});
e.length>0&&(v.setModulesAsLoading.apply(v,_.t7(e)),v.JSC$11048_queue_.push(e),JUu(v))},JUu=function(v){for(var e={};v.activeLoads_<Infinity&&v.JSC$11048_queue_.length>0;e={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})e.ids$jscomp$36=v.JSC$11048_queue_.shift().filter(function(d){return!v.getModuleInfo(d).isLoaded()}),e.ids$jscomp$36.length>0&&(v.activeLoads_++,e.finishLoad=function(d){return function(){v.activeLoads_--;
JUu(v);d.finishLoad=function(){}}}(e),_.$N(e.ids$jscomp$36.map(function(d){return VXI(v,d)})).then(function(d){return function(){(0,d.finishLoad)()}}(e)),e.attempt$jscomp$6=0,e.load$jscomp$1=function(d){return function(){if(Object.keys(v.JSC$11048_extraEdges_).length>0&&!v.JSC$10044_loader_.supportsExtraEdges)throw Error("ud");
v.JSC$10044_loader_.JSC$11027_loadModules(d.ids$jscomp$36,v.JSC$11048_moduleInfoMap_,{extraEdges:v.JSC$11048_extraEdges_,onError:function(E,T){var S=NV0[d.attempt$jscomp$6++];S!==void 0?setTimeout(function(){(0,d.load$jscomp$1)()},S):(v.unsetModulesAsLoading.apply(v,_.t7(d.ids$jscomp$36)),(0,d.finishLoad)(),d.ids$jscomp$36.forEach(function(O){O=v.getModuleInfo(O);
if(!O.isLoaded())O.onError(new D9.ModuleLoadFailure(D9.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,E,d.ids$jscomp$36,T))}))}})}}(e),(0,e.load$jscomp$1)())},oBn=function(v,e,d,E,T){E=E===void 0?function(){return!0}:E;
T=T===void 0?{}:T;e=_.a(e);for(var S=e.next();!S.done;S=e.next()){S=S.value;var O=v.getModuleInfo(S);!T[S]&&E(O)&&(T[S]=!0,oBn(v,O.deps_||[],d,E,T),d(O))}};var GEI=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var RJU=Symbol("xd");window.JSCompiler_renameProperty=function(v){return v};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var MXg,tXA,fmM;MXg=!GEI||HTMLElement.es5Shimmed||_.TO.Reflect===void 0||_.TO.customElements===void 0||_.TO.customElements.polyfillWrapFlushCallback||!1;_.Spj=function(){var v=HTMLElement;if(MXg)return v;if(tXA!==void 0)return tXA;var e=_.TO.Reflect,d=function(){return e.construct(v,[],this.constructor)};
d.prototype=v.prototype;d.prototype.constructor=d;d.es5Shimmed=!0;Object.setPrototypeOf(d,v);return tXA=d};
fmM=!1;MXg||fmM||(fmM=!0,_.TO.HTMLElement=_.Spj());/*

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 XjL=/(url\()([^)]*)(\))/g,Bpt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,CwW,WY;var HY=!window.ShadyDOM||!window.ShadyDOM.inUse,Rag=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),P4u=!window.customElements.polyfillWrapFlushCallback,xgc;if(xgc=HY&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var BVA=new CSSStyleSheet;BVA.replaceSync("");var C46=document.createElement("div");C46.attachShadow({mode:"open"});C46.shadowRoot.adoptedStyleSheets=[BVA];xgc=C46.shadowRoot.adoptedStyleSheets[0]===BVA}catch(v){xgc=!1}
var XF7=xgc,zae=window.Polymer&&window.Polymer.rootPath||l7H(document.baseURI||window.location.href),jO=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,g5M=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,wm=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,lmA=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,lW=window.Polymer&&window.Polymer.legacyOptimizations||!1,cY=window.Polymer&&window.Polymer.legacyWarnings||!1,HB6=window.Polymer&&window.Polymer.syncInitialRender||
!1,kk=window.Polymer&&window.Polymer.legacyUndefined||!1,AUI=window.Polymer&&window.Polymer.orderedComputed||!1,Zc=window.Polymer&&window.Polymer.removeNestedTemplates||!1,c6=window.Polymer&&window.Polymer.fastDomIf||!1,wy=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,ZBB=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,cU2=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var F8={},wFc={},VF=function(){return HTMLElement.apply(this,arguments)||this};
_.V(VF,HTMLElement);VF.import=function(v,e){return v?(v=F8[v]||wFc[v.toLowerCase()])&&e?v.querySelector(e):v:null};
VF.prototype.attributeChangedCallback=function(v,e,d){e!==d&&this.register()};
VF.prototype.register=function(v){if(v=v||this.id){if(wm&&(F8[v]||wFc[v.toLowerCase()])!==void 0)throw F8[v]=wFc[v.toLowerCase()]=null,Error("yd`"+v);this.id=v;F8[v]=wFc[v.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.vP.Object.defineProperties(VF.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var v=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;v=_.aO(this.getAttribute("assetpath")||"",v.baseURI);this.__assetpath=l7H(v)}return this.__assetpath}}});
_.vP.Object.defineProperties(VF,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
VF["import"]=VF.import;VF.prototype.modules=F8;customElements.define("dom-module",VF);var FNM=0,A1t=0,iW=[],Qqu=0,Hrj=!1,gBn=document.createTextNode(""),uq7,Xk;(new window.MutationObserver(Zr0)).observe(gBn,{characterData:!0});_.QP={after:function(v){return{run:function(e){return window.setTimeout(e,v)},
cancel:function(e){window.clearTimeout(e)}}},
run:function(v,e){return window.setTimeout(v,e)},
cancel:function(v){window.clearTimeout(v)}};
_.tg={run:function(v){return window.requestAnimationFrame(v)},
cancel:function(v){window.cancelAnimationFrame(v)}};
uq7={run:function(v){return window.requestIdleCallback?window.requestIdleCallback(v):window.setTimeout(v,16)},
cancel:function(v){window.cancelIdleCallback?window.cancelIdleCallback(v):window.clearTimeout(v)}};
Xk={run:function(v){Hrj||(Hrj=!0,gBn.textContent=Qqu++);iW.push(v);return FNM++},
cancel:function(v){var e=v-A1t;if(e>=0){if(!iW[e])throw Error("zd`"+v);iW[e]=null}}};var nBE=0,gy=function(v){var e=v.__mixinApplications;e||(e=new WeakMap,v.__mixinApplications=e);var d=nBE++;return function(E){var T=E.__mixinSet;if(T&&T[d])return E;var S=e,O=S.get(E);O||(O=v(E),S.set(E,O),E=Object.create(O.__mixinSet||T||null),E[d]=!0,O.__mixinSet=E);return O}};_.$k=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(v){return ShadyDOM.patch(v)}:function(v){return v};var DgE=gy(function(v){var e=function(){var d=v.call(this)||this;d.__dataEnabled=!1;d.__dataReady=!1;d.__dataInvalid=!1;d.__data={};d.__dataPending=null;d.__dataOld=null;d.__dataInstanceProps=null;d.__dataCounter=0;d.__serializing=!1;d._initializeProperties();return d};
_.V(e,v);e.createProperties=function(d){var E=this.prototype,T;for(T in d)T in E||E._createPropertyAccessor(T)};
e.attributeNameForProperty=function(d){return d.toLowerCase()};
e.typeForProperty=function(){};
e.prototype._createPropertyAccessor=function(d,E){this._addPropertyToAttributeMap(d);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[d]||(this.__dataHasAccessor[d]=!0,this._definePropertyAccessor(d,E))};
e.prototype._addPropertyToAttributeMap=function(d){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var E=this.__dataAttributes[d];E||(E=this.constructor.attributeNameForProperty(d),this.__dataAttributes[E]=d);return E};
e.prototype._definePropertyAccessor=function(d,E){Object.defineProperty(this,d,{get:function(){return this.__data[d]},
set:E?function(){}:function(T){this._setPendingProperty(d,T,!0)&&this._invalidateProperties()}})};
e.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
e.prototype._initializeProperties=function(){for(var d in this.__dataHasAccessor)this.hasOwnProperty(d)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[d]=this[d],delete this[d])};
e.prototype._initializeInstanceProperties=function(d){Object.assign(this,d)};
e.prototype._setProperty=function(d,E){this._setPendingProperty(d,E)&&this._invalidateProperties()};
e.prototype._getProperty=function(d){return this.__data[d]};
e.prototype._setPendingProperty=function(d,E){var T=this.__data[d],S=this._shouldPropertyChange(d,E,T);S&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||d in this.__dataOld||(this.__dataOld[d]=T),this.__data[d]=E,this.__dataPending[d]=E);return S};
e.prototype._isPropertyPending=function(d){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(d))};
e.prototype._invalidateProperties=function(){var d=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Xk.run(function(){d.__dataInvalid&&(d.__dataInvalid=!1,d._flushProperties())}))};
e.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
e.prototype._flushProperties=function(){this.__dataCounter++;var d=this.__data,E=this.__dataPending,T=this.__dataOld;this._shouldPropertiesChange(d,E,T)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(d,E,T));this.__dataCounter--};
e.prototype._shouldPropertiesChange=function(d,E){return!!E};
e.prototype._propertiesChanged=function(){};
e.prototype._shouldPropertyChange=function(d,E,T){return T!==E&&(T===T||E===E)};
e.prototype.attributeChangedCallback=function(d,E,T,S){E!==T&&this._attributeToProperty(d,T);v.prototype.attributeChangedCallback&&v.prototype.attributeChangedCallback.call(this,d,E,T,S)};
e.prototype._attributeToProperty=function(d,E,T){if(!this.__serializing){var S=this.__dataAttributes;d=S&&S[d]||d;this[d]=this._deserializeValue(E,T||this.constructor.typeForProperty(d))}};
e.prototype._propertyToAttribute=function(d,E,T){this.__serializing=!0;T=arguments.length<3?this[d]:T;this._valueToNodeAttribute(this,T,E||this.constructor.attributeNameForProperty(d));this.__serializing=!1};
e.prototype._valueToNodeAttribute=function(d,E,T){E=this._serializeValue(E);if(T==="class"||T==="name"||T==="slot")d=(0,_.$k)(d);E===void 0?d.removeAttribute(T):d.setAttribute(T,E===""&&window.trustedTypes?window.trustedTypes.emptyScript:E)};
e.prototype._serializeValue=function(d){switch(typeof d){case "boolean":return d?"":void 0;default:return d!=null?d.toString():void 0}};
e.prototype._deserializeValue=function(d,E){switch(E){case Boolean:return d!==null;case Number:return Number(d);default:return d}};
return e});var UgI=0,c1U=[];var pFe=gy(function(v){function e(S){S=Object.getPrototypeOf(S);return S.prototype instanceof T?S:null}
function d(S){if(!S.hasOwnProperty("__ownProperties")){var O=null;if(S.hasOwnProperty("properties")){var b=S.properties;if(b){O={};for(var Y in b){var q=b[Y];O[Y]=typeof q==="function"?{type:q}:q}}}S.__ownProperties=O}return S.__ownProperties}
var E=DgE(v),T=function(){return E.apply(this,arguments)||this};
_.V(T,E);T.finalize=function(){if(!this.hasOwnProperty("__finalized")){var S=e(this);S&&S.finalize();this.__finalized=!0;this._finalizeClass()}};
T._finalizeClass=function(){var S=d(this);S&&this.createProperties(S)};
T.typeForProperty=function(S){return(S=this._properties[S])&&S.type};
T.prototype._initializeProperties=function(){UgI++;this.constructor.finalize();E.prototype._initializeProperties.call(this)};
T.prototype.connectedCallback=function(){E.prototype.connectedCallback&&E.prototype.connectedCallback.call(this);this._enableProperties()};
T.prototype.disconnectedCallback=function(){E.prototype.disconnectedCallback&&E.prototype.disconnectedCallback.call(this)};
_.vP.Object.defineProperties(T,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var S=this;if(!this.hasOwnProperty("__observedAttributes")){wj$(this.prototype);var O=this._properties;this.__observedAttributes=O?Object.keys(O).map(function(b){return S.prototype._addPropertyToAttributeMap(b)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var S=e(this);this.__properties=Object.assign({},S&&S._properties,d(this))}return this.__properties}}});
return T});var FC7={},QtO=/-[a-z]/g,gp0=/([A-Z])/g;for(var vH2={},elB=HTMLElement.prototype;elB;){for(var dEI=Object.getOwnPropertyNames(elB),EHJ=0;EHJ<dEI.length;EHJ++)vH2[dEI[EHJ]]=!0;elB=Object.getPrototypeOf(elB)}var Tge=window.trustedTypes?function(v){return trustedTypes.isHTML(v)||trustedTypes.isScript(v)||trustedTypes.isScriptURL(v)}:function(){return!1},Sog=gy(function(v){var e=DgE(v);
v=function(){return e.apply(this,arguments)||this};
_.V(v,e);v.createPropertiesForAttributes=function(){for(var d=this.observedAttributes,E=0;E<d.length;E++)this.prototype._createPropertyAccessor(Oh(d[E]))};
v.attributeNameForProperty=function(d){return IO(d)};
v.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);e.prototype._initializeProperties.call(this)};
v.prototype._initializeProtoProperties=function(d){for(var E in d)this._setProperty(E,d[E])};
v.prototype._ensureAttribute=function(d,E){this.hasAttribute(d)||this._valueToNodeAttribute(this,E,d)};
v.prototype._serializeValue=function(d){switch(typeof d){case "object":if(d instanceof Date)return d.toString();if(d){if(Tge(d))return d;try{return JSON.stringify(d)}catch(E){return""}}default:return e.prototype._serializeValue.call(this,d)}};
v.prototype._deserializeValue=function(d,E){switch(E){case Object:try{var T=JSON.parse(d)}catch(S){T=d}break;case Array:try{T=JSON.parse(d)}catch(S){T=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+d)}break;case Date:T=isNaN(d)?String(d):Number(d);T=new Date(T);break;default:T=e.prototype._deserializeValue.call(this,d,E)}return T};
v.prototype._definePropertyAccessor=function(d,E){if(!vH2[d]){var T=this[d];T!==void 0&&(this.__data?this._setPendingProperty(d,T):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[d]=T))}e.prototype._definePropertyAccessor.call(this,d,E)};
v.prototype._hasAccessor=function(d){return this.__dataHasAccessor&&this.__dataHasAccessor[d]};
v.prototype._isPropertyPending=function(d){return!!(this.__dataPending&&d in this.__dataPending)};
return v});var WUc={"dom-if":!0,"dom-repeat":!0},aYM=!1,iQI=!1,OQE=function(){var v=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(e){return e}});
return function(e,d,E){d=d.getAttribute(E);v&&E.startsWith("on-")?e.setAttribute(E,v.createScript(d,E)):e.setAttribute(E,d)}}(),IYe=gy(function(v){var e=function(){return v.apply(this,arguments)||this};
_.V(e,v);e._parseTemplate=function(d,E){if(!d._templateInfo){var T=d._templateInfo={};T.nodeInfoList=[];T.nestedTemplate=!!E;T.stripWhiteSpace=E&&E.stripWhiteSpace||d.hasAttribute&&d.hasAttribute("strip-whitespace");this._parseTemplateContent(d,T,{parent:null})}return d._templateInfo};
e._parseTemplateContent=function(d,E,T){return this._parseTemplateNode(d.content,E,T)};
e._parseTemplateNode=function(d,E,T){var S=!1;d.localName!="template"||d.hasAttribute("preserve-content")?d.localName==="slot"&&(E.hasInsertionPoint=!0):S=this._parseTemplateNestedTemplate(d,E,T)||S;if(!aYM){aYM=!0;var O=document.createElement("textarea");O.placeholder="a";iQI=O.placeholder===O.textContent}iQI&&d.localName==="textarea"&&d.placeholder&&d.placeholder===d.textContent&&(d.textContent=null);d.firstChild&&this._parseTemplateChildNodes(d,E,T);d.hasAttributes&&d.hasAttributes()&&(S=this._parseTemplateNodeAttributes(d,
E,T)||S);return S||T.noted};
e._parseTemplateChildNodes=function(d,E,T){if(d.localName!=="script"&&d.localName!=="style")for(var S=d.firstChild,O=0,b;S;S=b){if(S.localName=="template"){var Y=S.getAttribute("is");if(Y&&WUc[Y])for(b=S,b.removeAttribute("is"),S=b.ownerDocument.createElement(Y),b.parentNode.replaceChild(S,b),S.appendChild(b);b.attributes.length;)Y=b.attributes[0].name,OQE(S,b,Y),b.removeAttribute(Y)}b=S.nextSibling;if(S.nodeType===Node.TEXT_NODE){for(Y=b;Y&&Y.nodeType===Node.TEXT_NODE;)S.textContent+=Y.textContent,
b=Y.nextSibling,d.removeChild(Y),Y=b;if(E.stripWhiteSpace&&!S.textContent.trim()){d.removeChild(S);continue}}Y={parentIndex:O,parentInfo:T};this._parseTemplateNode(S,E,Y)&&(Y.infoIndex=E.nodeInfoList.push(Y)-1);S.parentNode&&O++}};
e._parseTemplateNestedTemplate=function(d,E,T){E=this._parseTemplate(d,E);(E.content=d.content.ownerDocument.createDocumentFragment()).appendChild(d.content);T.templateInfo=E;return!0};
e._parseTemplateNodeAttributes=function(d,E,T){for(var S=!1,O=Array.from(d.attributes),b=O.length-1,Y;Y=O[b];b--)S=this._parseTemplateNodeAttribute(d,E,T,Y.name,Y.value)||S;return S};
e._parseTemplateNodeAttribute=function(d,E,T,S,O){return S.slice(0,3)==="on-"?(d.removeAttribute(S),T.events=T.events||[],T.events.push({name:S.slice(3),value:O}),!0):S==="id"?(T.id=O,!0):!1};
e._contentForTemplate=function(d){var E=d._templateInfo;return E&&E.content||d.content};
e.prototype._stampTemplate=function(d,E){d&&!d.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(d);E=E||this.constructor._parseTemplate(d);var T=E.nodeInfoList;d=document.importNode(E.content||d.content,!0);d.__noInsertionPoint=!E.hasInsertionPoint;var S=d.nodeList=Array(T.length);d.$={};for(var O=0,b=T.length,Y=void 0;O<b&&(Y=T[O]);O++){var q=S[O]=ubs(d,Y);Y.id&&(d.$[Y.id]=q);var r=q,h=Y,K=E;h.templateInfo&&(r._templateInfo=h.templateInfo,r._parentTemplateInfo=
K);if(Y.events&&Y.events.length)for(r=0,h=Y.events,K=void 0;r<h.length&&(K=h[r]);r++)this._addMethodEventListenerToNode(q,K.name,K.value,this)}return d};
e.prototype._addMethodEventListenerToNode=function(d,E,T,S){T=npS(S||d,T);this._addEventListenerToNode(d,E,T);return T};
e.prototype._addEventListenerToNode=function(d,E,T){d.addEventListener(E,T)};
e.prototype._removeEventListenerFromNode=function(d,E,T){d.removeEventListener(E,T)};
return e});var h0=0,sh=[],bQi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},YoE=/[A-Z]/,mE6=function(v,e,d,E,T){var S=T?Yk(v):v;if(e=e[S])for(S=0;S<e.length;S++){var O=e[S];if(O.info.lastRun!==h0&&(!T||d3j(v,O.trigger))){O.info.lastRun=h0;O=O.info;for(var b=d,Y=E,q=0,r=b.length-1,h=-1;q<=r;){var K=q+r>>1,k=Y.get(b[K].methodInfo)-Y.get(O.methodInfo);if(k<0)q=K+1;else if(k>0)r=K-1;else{h=K;break}}h<
0&&(h=r+1);b.splice(h,0,O)}}},hoO=[],y_n=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"),nl=gy(function(v){var e=IYe(Sog(v));
v=function(){var d=e.call(this)||this;d.__isPropertyEffectsClient=!0;return d};
_.V(v,e);v.prototype._initializeProperties=function(){e.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
v.prototype._registerHost=function(){if(uP.length){var d=uP[uP.length-1];d._enqueueClient(this);this.__dataHost=d}};
v.prototype._initializeProtoProperties=function(d){this.__data=Object.create(d);this.__dataPending=Object.create(d);this.__dataOld={}};
v.prototype._initializeInstanceProperties=function(d){var E=this.__readOnly,T;for(T in d)E&&E[T]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[T]=this.__dataPending[T]=d[T])};
v.prototype._addPropertyEffect=function(d,E,T){this._createPropertyAccessor(d,E=="__readOnly");var S=eot(this,E,!0)[d];S||(S=this[E][d]=[]);S.push(T)};
v.prototype._removePropertyEffect=function(d,E,T){d=eot(this,E,!0)[d];T=d.indexOf(T);T>=0&&d.splice(T,1)};
v.prototype._hasPropertyEffect=function(d,E){E=this[E];return!(!E||!E[d])};
v.prototype._hasReadOnlyEffect=function(d){return this._hasPropertyEffect(d,"__readOnly")};
v.prototype._hasNotifyEffect=function(d){return this._hasPropertyEffect(d,"__notifyEffects")};
v.prototype._hasReflectEffect=function(d){return this._hasPropertyEffect(d,"__reflectEffects")};
v.prototype._hasComputedEffect=function(d){return this._hasPropertyEffect(d,"__computeEffects")};
v.prototype._setPendingPropertyOrPath=function(d,E,T,S){if(S||Yk(Array.isArray(d)?d[0]:d)!==d){if(!S&&(S=rm(this,d),d=v57(this,d,E),!d||!e.prototype._shouldPropertyChange.call(this,d,E,S)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(d,E,T)){if(T=this.__dataLinkedPaths)for(var O in T)S=T[O],mh(O,d)?(S=yF(O,S,d),this._setPendingPropertyOrPath(S,E,!0,!0)):mh(S,d)&&(S=yF(S,O,d),this._setPendingPropertyOrPath(S,E,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[d])return this._setPendingProperty(d,
E,T);this[d]=E}return!1};
v.prototype._setUnmanagedPropertyToNode=function(d,E,T){if(T!==d[E]||typeof T=="object")E==="className"&&(d=(0,_.$k)(d)),d[E]=T};
v.prototype._setPendingProperty=function(d,E,T){var S=this.__dataHasPaths&&bW(d);if(this._shouldPropertyChange(d,E,(S?this.__dataTemp:this.__data)[d])){this.__dataPending||(this.__dataPending={},this.__dataOld={});d in this.__dataOld||(this.__dataOld[d]=this.__data[d]);S?this.__dataTemp[d]=E:this.__data[d]=E;this.__dataPending[d]=E;if(S||this.__notifyEffects&&this.__notifyEffects[d])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[d]=T;return!0}return!1};
v.prototype._setProperty=function(d,E){this._setPendingProperty(d,E,!0)&&this._invalidateProperties()};
v.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
v.prototype._enqueueClient=function(d){this.__dataPendingClients=this.__dataPendingClients||[];d!==this&&this.__dataPendingClients.push(d)};
v.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
v.prototype.__enableOrFlushClients=function(){var d=this.__dataPendingClients;if(d){this.__dataPendingClients=null;for(var E=0;E<d.length;E++){var T=d[E];T.__dataEnabled?T.__dataPending&&T._flushProperties():T._enableProperties()}}};
v.prototype._readyClients=function(){this.__enableOrFlushClients()};
v.prototype.setProperties=function(d,E){for(var T in d)!E&&this.__readOnly&&this.__readOnly[T]||this._setPendingPropertyOrPath(T,d[T],!0);this._invalidateProperties()};
v.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
v.prototype._propertiesChanged=function(d,E,T){d=this.__dataHasPaths;this.__dataHasPaths=!1;var S;if(S=this.__computeEffects)if(AUI){h0++;var O=iOt(this),b=[],Y;for(Y in E)mE6(Y,S,b,O,d);for(;Y=b.shift();)I9S(this,"",E,T,Y)&&mE6(Y.methodInfo,S,b,O,d);Object.assign(T,this.__dataOld);Object.assign(E,this.__dataPending);this.__dataPending=null}else for(O=E;Kk(this,S,O,T,d);)Object.assign(T,this.__dataOld),Object.assign(E,this.__dataPending),O=this.__dataPending,this.__dataPending=null;S=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(E,T,d);this._flushClients();Kk(this,this.__reflectEffects,E,T,d);Kk(this,this.__observeEffects,E,T,d);if(S){O=this.__notifyEffects;b=h0++;for(var q in S)if(S[q]){if(Y=O){var r=O;Y=b;var h=q,K=E,k=T,J=d,R=!1,B=J?Yk(h):h;if(r=r[B]){B=0;for(var X=r.length,Z=void 0;B<X&&(Z=r[B]);B++)Z.info&&Z.info.lastRun===Y||J&&!d3j(h,Z.trigger)||(Z.info&&(Z.info.lastRun=Y),Z.fn(this,h,K,k,Z.info,J,void 0),R=!0)}Y=R}if(Y)var U=!0;else{if(Y=d)Y=q,h=E,K=Yk(Y),K!==
Y?(K=IO(K)+"-changed",TQ$(this,K,h[Y],Y),Y=!0):Y=!1;Y&&(U=!0)}}var F;U&&(F=this.__dataHost)&&F._invalidateProperties&&F._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
v.prototype._propagatePropertyChanges=function(d,E,T){this.__propagateEffects&&Kk(this,this.__propagateEffects,d,E,T);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,d,E,T)};
v.prototype._runEffectsForTemplate=function(d,E,T,S){var O=this,b=function(Y,q){Kk(O,d.propertyEffects,Y,T,q,d.nodeList);for(var r=d.firstChild;r;r=r.nextSibling)O._runEffectsForTemplate(r,Y,T,q)};
d.runEffects?d.runEffects(b,E,S):b(E,S)};
v.prototype.linkPaths=function(d,E){d=qy(d);E=qy(E);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[d]=E};
v.prototype.unlinkPaths=function(d){d=qy(d);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[d]};
v.prototype.notifySplices=function(d,E){var T={path:""};d=rm(this,d,T);sas(this,d,T.path,E)};
v.prototype.get=function(d,E){return rm(E||this,d)};
v.prototype.set=function(d,E,T){T?v57(T,d,E):this.__readOnly&&this.__readOnly[d]||this._setPendingPropertyOrPath(d,E,!0)&&this._invalidateProperties()};
v.prototype.push=function(d){var E=_.Xa.apply(1,arguments),T={path:""},S=rm(this,d,T),O=S.length,b=S.push.apply(S,_.t7(E));E.length&&Lk(this,S,T.path,O,E.length,[]);return b};
v.prototype.pop=function(d){var E={path:""};d=rm(this,d,E);var T=!!d.length,S=d.pop();T&&Lk(this,d,E.path,d.length,0,[S]);return S};
v.prototype.splice=function(d,E,T){var S=_.Xa.apply(3,arguments),O={path:""},b=rm(this,d,O);E<0?E=b.length-Math.floor(-E):E&&(E=Math.floor(E));var Y=arguments.length===2?b.splice(E):b.splice.apply(b,[E,T].concat(_.t7(S)));(S.length||Y.length)&&Lk(this,b,O.path,E,S.length,Y);return Y};
v.prototype.shift=function(d){var E={path:""};d=rm(this,d,E);var T=!!d.length,S=d.shift();T&&Lk(this,d,E.path,0,0,[S]);return S};
v.prototype.unshift=function(d){var E=_.Xa.apply(1,arguments),T={path:""},S=rm(this,d,T),O=S.unshift.apply(S,_.t7(E));E.length&&Lk(this,S,T.path,0,E.length,[]);return O};
v.prototype.notifyPath=function(d,E){if(arguments.length==1){var T={path:""};E=rm(this,d,T);T=T.path}else T=Array.isArray(d)?qy(d):d;this._setPendingPropertyOrPath(T,E,!0,!0)&&this._invalidateProperties()};
v.prototype._createReadOnlyProperty=function(d,E){this._addPropertyEffect(d,"__readOnly");E&&(this["_set"+(d[0].toUpperCase()+d.substring(1))]=function(T){this._setProperty(d,T)})};
v.prototype._createPropertyObserver=function(d,E,T){var S={property:d,method:E,dynamicFn:!!T};this._addPropertyEffect(d,"__observeEffects",{fn:E5W,info:S,trigger:{name:d}});T&&this._addPropertyEffect(E,"__observeEffects",{fn:E5W,info:S,trigger:{name:E}})};
v.prototype._createMethodObserver=function(d,E){var T=$3L(d);if(!T)throw Error("Ad`"+d);qkH(this,T,"__observeEffects",OOt,null,E)};
v.prototype._createNotifyingProperty=function(d){this._addPropertyEffect(d,"__notifyEffects",{fn:Skt,info:{eventName:IO(d)+"-changed",property:d}})};
v.prototype._createReflectedProperty=function(d){var E=this.constructor.attributeNameForProperty(d);E[0]==="-"?console.warn("Property "+d+" cannot be reflected to attribute "+E+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(d,"__reflectEffects",{fn:WXM,info:{attrName:E}})};
v.prototype._createComputedProperty=function(d,E,T){var S=$3L(E);if(!S)throw Error("Bd`"+E);E=qkH(this,S,"__computeEffects",I9S,d,T);eot(this,"__computeInfo")[d]=E};
v.prototype._marshalArgs=function(d,E,T){for(var S=this.__data,O=[],b=0,Y=d.length;b<Y;b++){var q=d[b],r=q.name,h=q.structured,K=q.wildcard,k=q.value;q.literal||(K?(q=mh(r,E),h=jat(S,T,q?E:r),k={path:q?E:r,value:h,base:q?rm(S,r):h}):k=h?jat(S,T,r):S[r]);if(kk&&!this._overrideLegacyUndefined&&k===void 0&&d.length>1)return sh;O[b]=k}return O};
v.addPropertyEffect=function(d,E,T){this.prototype._addPropertyEffect(d,E,T)};
v.createPropertyObserver=function(d,E,T){this.prototype._createPropertyObserver(d,E,T)};
v.createMethodObserver=function(d,E){this.prototype._createMethodObserver(d,E)};
v.createNotifyingProperty=function(d){this.prototype._createNotifyingProperty(d)};
v.createReadOnlyProperty=function(d,E){this.prototype._createReadOnlyProperty(d,E)};
v.createReflectedProperty=function(d){this.prototype._createReflectedProperty(d)};
v.createComputedProperty=function(d,E,T){this.prototype._createComputedProperty(d,E,T)};
v.bindTemplate=function(d){return this.prototype._bindTemplate(d)};
v.prototype._bindTemplate=function(d,E){var T=this.constructor._parseTemplate(d),S=this.__preBoundTemplateInfo==T;if(!S)for(var O in T.propertyEffects)this._createPropertyAccessor(O);E?(T=Object.create(T),T.wasPreBound=S,this.__templateInfo?(d=d._parentTemplateInfo||this.__templateInfo,E=d.lastChild,T.parent=d,d.lastChild=T,(T.previousSibling=E)?E.nextSibling=T:d.firstChild=T):this.__templateInfo=T):this.__preBoundTemplateInfo=T;return T};
v._addTemplatePropertyEffect=function(d,E,T){(d.hostProps=d.hostProps||{})[E]=!0;d=d.propertyEffects=d.propertyEffects||{};(d[E]=d[E]||[]).push(T)};
v.prototype._stampTemplate=function(d,E){E=E||this._bindTemplate(d,!0);uP.push(this);d=e.prototype._stampTemplate.call(this,d,E);uP.pop();E.nodeList=d.nodeList;if(!E.wasPreBound)for(var T=E.childNodes=[],S=d.firstChild;S;S=S.nextSibling)T.push(S);d.templateInfo=E;T=E.nodeList;S=E.nodeInfoList;if(S.length)for(var O=0;O<S.length;O++){var b=T[O],Y=S[O].bindings;if(Y)for(var q=0;q<Y.length;q++){var r=Y[q],h=b,K=r;if(K.isCompound){for(var k=h.__dataCompoundStorage||(h.__dataCompoundStorage={}),J=K.parts,
R=Array(J.length),B=0;B<J.length;B++)R[B]=J[B].literal;J=K.target;k[J]=R;K.literal&&K.kind=="property"&&(J==="className"&&(h=(0,_.$k)(h)),h[J]=K.literal)}yRt(b,this,r)}b.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(E,this.__data,null,!1),this._flushClients());return d};
v.prototype._removeBoundDom=function(d){d=d.templateInfo;var E=d.previousSibling,T=d.nextSibling,S=d.parent;E?E.nextSibling=T:S&&(S.firstChild=T);T?T.previousSibling=E:S&&(S.lastChild=E);d.nextSibling=d.previousSibling=null;d=d.childNodes;for(E=0;E<d.length;E++)T=d[E],(0,_.$k)((0,_.$k)(T).parentNode).removeChild(T)};
v._parseTemplateNode=function(d,E,T){var S=e._parseTemplateNode.call(this,d,E,T);if(d.nodeType===Node.TEXT_NODE){var O=this._parseBindings(d.textContent,E);O&&(d.textContent=rRs(O)||" ",m30(this,E,T,"text","textContent",O),S=!0)}return S};
v._parseTemplateNodeAttribute=function(d,E,T,S,O){var b=this._parseBindings(O,E);if(b){O=S;var Y="property";YoE.test(S)?Y="attribute":S[S.length-1]=="$"&&(S=S.slice(0,-1),Y="attribute");var q=rRs(b);q&&Y=="attribute"&&(S=="class"&&d.hasAttribute("class")&&(q+=" "+d.getAttribute(S)),d.setAttribute(S,q));Y=="attribute"&&O=="disable-upgrade$"&&d.setAttribute(S,"");d.localName==="input"&&O==="value"&&d.setAttribute(O,"");d.removeAttribute(O);Y==="property"&&(S=Oh(S));m30(this,E,T,Y,S,b,q);return!0}return e._parseTemplateNodeAttribute.call(this,
d,E,T,S,O)};
v._parseTemplateNestedTemplate=function(d,E,T){var S=e._parseTemplateNestedTemplate.call(this,d,E,T),O=d.parentNode,b=T.templateInfo,Y=O.localName==="dom-if",q=O.localName==="dom-repeat";Zc&&(Y||q)&&(O.removeChild(d),T=T.parentInfo,T.templateInfo=b,T.noted=!0,S=!1);d=b.hostProps;if(c6&&Y)d&&(E.hostProps=Object.assign(E.hostProps||{},d),Zc||(T.parentInfo.noted=!0));else for(var r in d)m30(this,E,T,"property","_host_"+r,[{mode:"{",source:r,dependencies:[r],hostProp:!0}]);return S};
v._parseBindings=function(d,E){for(var T=[],S=0,O;(O=y_n.exec(d))!==null;){O.index>S&&T.push({literal:d.slice(S,O.index)});S=O[1][0];var b=!!O[2];O=O[3].trim();var Y=!1,q="",r=-1;S=="{"&&(r=O.indexOf("::"))>0&&(q=O.substring(r+2),O=O.substring(0,r),Y=!0);r=$3L(O);var h=[];if(r){var K=r,k=K.args;K=K.methodName;for(var J=0;J<k.length;J++){var R=k[J];R.literal||h.push(R)}if((k=E.dynamicFns)&&k[K]||r.static)h.push(K),r.dynamicFn=!0}else h.push(O);T.push({source:O,mode:S,negate:b,customEvent:Y,signature:r,
dependencies:h,event:q});S=y_n.lastIndex}S&&S<d.length&&(d=d.substring(S))&&T.push({literal:d});return T.length?T:null};
v._evaluateBinding=function(d,E,T,S,O,b){d=E.signature?OOt(d,T,S,O,E.signature):T!=E.source?rm(d,E.source):b&&bW(T)?rm(d,T):d.__data[T];E.negate&&(d=!d);return d};
_.vP.Object.defineProperties(v.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return bQi}}});
return v}),uP=[];var qoI=window.ShadyCSS&&window.ShadyCSS.cssBuild,Dc=gy(function(v){function e(E,T,S,O){if(!qoI){for(var b=T.content.querySelectorAll("style"),Y=Vdt(T),q=o50(S),r=T.content.firstElementChild,h=0;h<q.length;h++){var K=q[h];K.textContent=E._processStyleText(K.textContent,O);T.content.insertBefore(K,r)}for(r=q=0;r<Y.length;r++)h=Y[r],K=b[q],K!==h?(h=h.cloneNode(!0),K.parentNode.insertBefore(h,K)):q++,h.textContent=E._processStyleText(h.textContent,O)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(T,
S);if(cU2&&qoI&&XF7&&(T=T.content.querySelectorAll("style"))){var k="";Array.from(T).forEach(function(J){k+=J.textContent;J.parentNode.removeChild(J)});
E._styleSheet=new CSSStyleSheet;E._styleSheet.replaceSync(k)}}
var d=pFe(nl(v));v=function(){return d.call(this)||this};
_.V(v,d);v._finalizeClass=function(){d._finalizeClass.call(this);var E;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(E=this.__ownObservers)&&this.createObservers(E,this._properties);this._prepareTemplate()};
v._prepareTemplate=function(){var E=this.template;E&&(typeof E==="string"?(console.error("template getter must return HTMLTemplateElement"),E=null):lW||(E=E.cloneNode(!0)));this.prototype._template=E};
v.createProperties=function(E){for(var T in E){var S=this.prototype,O=T,b=E[T],Y=E;b.computed&&(b.readOnly=!0);b.computed&&(S._hasReadOnlyEffect(O)?console.warn("Cannot redefine computed property '"+O+"'."):S._createComputedProperty(O,b.computed,Y));b.readOnly&&!S._hasReadOnlyEffect(O)?S._createReadOnlyProperty(O,!b.computed):b.readOnly===!1&&S._hasReadOnlyEffect(O)&&console.warn("Cannot make readOnly property '"+O+"' non-readOnly.");b.reflectToAttribute&&!S._hasReflectEffect(O)?S._createReflectedProperty(O):
b.reflectToAttribute===!1&&S._hasReflectEffect(O)&&console.warn("Cannot make reflected property '"+O+"' non-reflected.");b.notify&&!S._hasNotifyEffect(O)?S._createNotifyingProperty(O):b.notify===!1&&S._hasNotifyEffect(O)&&console.warn("Cannot make notify property '"+O+"' non-notify.");b.observer&&S._createPropertyObserver(O,b.observer,Y[b.observer]);S._addPropertyToAttributeMap(O)}};
v.createObservers=function(E,T){for(var S=this.prototype,O=0;O<E.length;O++)S._createMethodObserver(E[O],T)};
v.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);d.prototype._initializeProperties.call(this);this.rootPath=zae;this.importPath=this.constructor.importPath;var E=this.constructor;if(!E.hasOwnProperty("__propertyDefaults")){E.__propertyDefaults=null;var T=E._properties,S;for(S in T){var O=T[S];"value"in O&&(E.__propertyDefaults=E.__propertyDefaults||{},E.__propertyDefaults[S]=O)}}if(E=E.__propertyDefaults)for(var b in E)T=E[b],
this._canApplyPropertyDefault(b)&&(T=typeof T.value=="function"?T.value.call(this):T.value,this._hasAccessor(b)?this._setPendingProperty(b,T,!0):this[b]=T)};
v.prototype._canApplyPropertyDefault=function(E){return!this.hasOwnProperty(E)};
v._processStyleText=function(E,T){return zJO(E,T)};
v._finalizeTemplate=function(E){var T=this.prototype._template;if(T&&!T.__polymerFinalized){T.__polymerFinalized=!0;var S=this.importPath;S=S?_.aO(S):"";e(this,T,E,S);this.prototype._bindTemplate(T)}};
v.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);d.prototype.connectedCallback.call(this)};
v.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);d.prototype.ready.call(this)};
v.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));d.prototype._readyClients.call(this)};
v.prototype._attachDom=function(E){var T=(0,_.$k)(this);if(T.attachShadow)return E?(T.shadowRoot||(T.attachShadow({mode:"open",shadyUpgradeFragment:E}),T.shadowRoot.appendChild(E),this.constructor._styleSheet&&(T.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),HB6&&window.ShadyDOM&&window.ShadyDOM.flushInitial(T.shadowRoot),T.shadowRoot):null;throw Error("Dd");};
v.prototype.updateStyles=function(E){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,E)};
v.prototype.resolveUrl=function(E,T){!T&&this.importPath&&(T=_.aO(this.importPath));return _.aO(E,T)};
v._parseTemplateContent=function(E,T,S){T.dynamicFns=T.dynamicFns||this._properties;return d._parseTemplateContent.call(this,E,T,S)};
v._addTemplatePropertyEffect=function(E,T,S){!cY||T in this._properties||S.info.part.signature&&S.info.part.signature.static||S.info.part.hostProp||E.nestedTemplate||console.warn("Property '"+T+"' used in template but not declared in 'properties'; attribute will not be observed.");return d._addTemplatePropertyEffect.call(this,E,T,S)};
_.vP.Object.defineProperties(v,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var E=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof E==="function"&&(E=E());if(E===void 0){if(E=this.hasOwnProperty("is")){E=this.is;var T=null;if(E&&(!wm||lmA)&&(T=VF.import(E,"template"),wm&&!T))throw Error("Cd`"+E);E=T}E=E||Object.getPrototypeOf(this.prototype).constructor.template}this._template=E}return this._template},
set:function(E){this._template=E}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var E=this.importMeta;E?this._importPath=l7H(E.url):this._importPath=(E=VF.import(this.is))&&E.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return v});var r_B=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(v){return v}}),Pz0=function(v,e){hle(v,e);
this.value=e.reduce(function(d,E,T){return d+x3O(E)+v[T+1]},v[0]).toString()},hle;
Pz0.prototype.toString=function(){return this.value};
_.KUE=function(v){var e=_.Xa.apply(1,arguments);hle(v,e);var d=document.createElement("template");e=e.reduce(function(E,T,S){if(T instanceof HTMLTemplateElement)T=T.innerHTML;else if(T instanceof Pz0)T=x3O(T);else throw Error("Fd`"+T);return E+T+v[S+1]},v[0]);
r_B&&(e=r_B.createHTML(e));d.innerHTML=e;return d};
hle=function(v,e){if(!Array.isArray(v)||!Array.isArray(v.raw)||e.length!==v.length-1)throw new TypeError("Gd");};var Us=Dc(HTMLElement);var $E7=gy(function(v){var e=Dc(v);v=function(){var d=e.call(this)||this;d.__lastItems=null;d.__lastMulti=null;d.__selectedMap=null;return d};
_.V(v,e);v.prototype.__updateSelection=function(d,E){var T=E.path;T=="items"?(E=E.base||[],T=this.__lastItems,d!==this.__lastMulti&&this.clearSelection(),T&&(T=Ro0(E,T),this.__applySplices(T)),this.__lastItems=E,this.__lastMulti=d):E.path=="items.splices"?this.__applySplices(E.value.indexSplices):(d=T.slice(6),E=parseInt(d,10),d.indexOf(".")<0&&d==E&&this.__deselectChangedIdx(E))};
v.prototype.__applySplices=function(d){for(var E=this,T=this.__selectedMap,S={},O=0;O<d.length;S={s$jscomp$109:void 0},O++){S.s$jscomp$109=d[O];T.forEach(function(r){return function(h,K){h<r.s$jscomp$109.index||(h>=r.s$jscomp$109.index+r.s$jscomp$109.removed.length?T.set(K,h+r.s$jscomp$109.addedCount-r.s$jscomp$109.removed.length):T.set(K,-1))}}(S));
for(var b=0;b<S.s$jscomp$109.addedCount;b++){var Y=S.s$jscomp$109.index+b;T.has(this.items[Y])&&T.set(this.items[Y],Y)}}this.__updateLinks();var q=0;T.forEach(function(r,h){r<0?(E.multi?E.splice("selected",q,1):E.selected=E.selectedItem=null,T.delete(h)):q++})};
v.prototype.__updateLinks=function(){var d=this;this.__dataLinkedPaths={};if(this.multi){var E=0;this.__selectedMap.forEach(function(T){T>=0&&d.linkPaths("items."+T,"selected."+E++)})}else this.__selectedMap.forEach(function(T){d.linkPaths("selected","items."+T);
d.linkPaths("selectedItem","items."+T)})};
v.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
v.prototype.isSelected=function(d){return this.__selectedMap.has(d)};
v.prototype.isIndexSelected=function(d){return this.isSelected(this.items[d])};
v.prototype.__deselectChangedIdx=function(d){var E=this,T=this.__selectedIndexForItemIndex(d);if(T>=0){var S=0;this.__selectedMap.forEach(function(O,b){T==S++&&E.deselect(b)})}};
v.prototype.__selectedIndexForItemIndex=function(d){if(d=this.__dataLinkedPaths["items."+d])return parseInt(d.slice(9),10)};
v.prototype.deselect=function(d){var E=this.__selectedMap.get(d);if(E>=0){this.__selectedMap.delete(d);var T;this.multi&&(T=this.__selectedIndexForItemIndex(E));this.__updateLinks();this.multi?this.splice("selected",T,1):this.selected=this.selectedItem=null}};
v.prototype.deselectIndex=function(d){this.deselect(this.items[d])};
v.prototype.select=function(d){this.selectIndex(this.items.indexOf(d))};
v.prototype.selectIndex=function(d){var E=this.items[d];this.isSelected(E)?this.toggle&&this.deselectIndex(d):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(E,d),this.__updateLinks(),this.multi?this.push("selected",E):this.selected=this.selectedItem=E)};
_.vP.Object.defineProperties(v,{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 v}),jGc=$E7(Us),pl=function(){return jGc.apply(this,arguments)||this};
_.V(pl,jGc);_.vP.Object.defineProperties(pl,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(pl.is,pl);var sGe=window.Polymer;window.Polymer=function(v){return window.Polymer._polymerFn(v)};
sGe&&Object.assign(Polymer,sGe);Polymer._polymerFn=function(){throw Error("Hd");};/*

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:zJO,resolveUrl:_.aO,pathFromUrl:l7H};Polymer.DomModule=VF;Polymer.Async={timeOut:_.QP,animationFrame:_.tg,idlePeriod:uq7,microTask:Xk};Polymer.dedupingMixin=gy;Polymer.wrap=_.$k;Polymer.PropertiesChanged=DgE;Polymer.telemetry={instanceCount:UgI,incrementInstanceCount:function(){UgI++},
registrations:c1U,register:wj$,dumpRegistrations:function(){c1U.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=pFe;Polymer.CaseMap={dashToCamelCase:Oh,camelToDashCase:IO};Polymer.PropertyAccessors=Sog;Polymer.TemplateStamp=IYe;Polymer.Path={isPath:bW,root:Yk,isAncestor:D0H,isDescendant:mh,translate:yF,matches:U03,normalize:qy,split:pj3,get:rm,set:v57,isDeep:bW};Polymer.Settings={useShadow:HY,useNativeCSSProperties:Rag,useNativeCustomElements:P4u,get rootPath(){return zae},setRootPath:function(v){zae=v},
get sanitizeDOMValue(){return jO},setSanitizeDOMValue:function(v){jO=v},
get passiveTouchGestures(){return g5M},setPassiveTouchGestures:function(v){g5M=v},
get strictTemplatePolicy(){return wm},setStrictTemplatePolicy:function(v){wm=v},
get allowTemplateFromDomModule(){return lmA},setAllowTemplateFromDomModule:function(v){lmA=v},
get legacyOptimizations(){return lW},setLegacyOptimizations:function(v){lW=v},
get syncInitialRender(){return HB6},setSyncInitialRender:function(v){HB6=v},
get legacyUndefined(){return kk},setLegacyUndefined:function(v){kk=v},
get legacyWarnings(){return cY},setLegacyWarnings:function(v){cY=v},
get orderedComputed(){return AUI},setOrderedComputed:function(v){AUI=v},
get fastDomIf(){return c6},setFastDomIf:function(v){c6=v},
get removeNestedTemplates(){return Zc},setRemoveNestedTemplates:function(v){Zc=v},
get suppressTemplateNotifications(){return wy},setSuppressTemplateNotifications:wy};Polymer.rootPath!==void 0&&(zae=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(jO=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(g5M=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(wm=Polymer.strictTemplatePolicy);lmA=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(lW=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(HB6=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(kk=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(cY=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(AUI=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(c6=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Zc=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(wy=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return jO},
set:function(v){jO=v}});Polymer.PropertyEffects=nl;Polymer.StyleGather={stylesFromModules:LXH,stylesFromModule:kp7,stylesFromTemplate:Vdt,stylesFromModuleImports:o50,cssFromModules:GpO,cssFromModule:JRt,cssFromTemplate:Mdj,cssFromModuleImports:function(v){return(v=VF.import(v))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v):""}};Polymer.ElementMixin=Dc;Polymer.updateStyles=function(v){window.ShadyCSS&&window.ShadyCSS.styleDocument(v)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Ro0};Polymer.html=_.KUE;Polymer.htmlLiteral=function(v){return new Pz0(v,_.Xa.apply(1,arguments))};Polymer.Element=Us;Polymer.ArraySelectorMixin=$E7;Polymer.ArraySelector=pl;var Ng6=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,kae=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,yZM=/@media\s(.*)/;var zoW=null,X0t=window.HTMLImports&&window.HTMLImports.whenReady||null,l97;var LUn=null,vX=null,er=function(){this.customStyles=[];this.enqueued=!1;HOH(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},V7g=function(v){!v.enqueued&&vX&&(v.enqueued=!0,HOH(vX))};
er.prototype.addCustomStyle=function(v){v.__seenByShadyCSS||(v.__seenByShadyCSS=!0,this.customStyles.push(v),V7g(this))};
er.prototype.getStyleForCustomStyle=function(v){if(v.__shadyCSSCachedStyle)return v.__shadyCSSCachedStyle;var e;v.getStyle?e=v.getStyle():e=v;return e};
er.prototype.processStyles=function(){for(var v=this.customStyles,e=0;e<v.length;e++){var d=v[e];if(!d.__shadyCSSCachedStyle){var E=this.getStyleForCustomStyle(d);E&&(E=E.__appliedElement||E,LUn&&LUn(E),d.__shadyCSSCachedStyle=E)}}return v};
er.prototype.addCustomStyle=er.prototype.addCustomStyle;er.prototype.getStyleForCustomStyle=er.prototype.getStyleForCustomStyle;er.prototype.processStyles=er.prototype.processStyles;Object.defineProperties(er.prototype,{transformCallback:{get:function(){return LUn},
set:function(v){LUn=v}},
validateCallback:{get:function(){return vX},
set:function(v){var e=!1;vX||(e=!0);vX=v;e&&V7g(this)}}});var ZOt=!(window.ShadyDOM&&window.ShadyDOM.inUse),AR$,pk;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(pk=window.ShadyCSS.cssBuild);var oHc=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?AR$=window.ShadyCSS.nativeCss:window.ShadyCSS?(cRO(window.ShadyCSS),window.ShadyCSS=void 0):cRO(window.WebComponents&&window.WebComponents.flags);var bfL=AR$;var J_I=new er;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(v,e){J_I.processStyles();BQ0(v,e)},
styleElement:function(){J_I.processStyles()},
styleDocument:function(v){J_I.processStyles();BQ0(document.body,v)},
getComputedStyleValue:function(v,e){return Cz3(v,e)},
flushCustomStyles:function(){},
nativeCss:bfL,nativeShadow:ZOt,cssBuild:pk,disableRuntime:oHc});window.ShadyCSS.CustomStyleInterface=J_I;var GaA=window.ShadyCSS.CustomStyleInterface,dW=function(){var v=HTMLElement.call(this)||this;v._style=null;GaA.addCustomStyle(v);return v};
_.V(dW,HTMLElement);dW.prototype.getStyle=function(){if(this._style)return this._style;var v=this.querySelector("style");if(!v)return null;this._style=v;var e=v.getAttribute("include");e&&(v.removeAttribute("include"),v.textContent=GpO(e)+v.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
dW.prototype.getStyle=dW.prototype.getStyle;window.customElements.define("custom-style",dW);Polymer.CustomStyle=dW;var EY=function(){this._timer=this._callback=this._asyncModule=null},Tk,t7g;
EY.prototype.setConfig=function(v,e){var d=this;this._asyncModule=v;this._callback=e;this._timer=this._asyncModule.run(function(){d._timer=null;Tk.delete(d);d._callback()})};
EY.prototype.cancel=function(){this.isActive()&&(M77(this),Tk.delete(this))};
var M77=function(v){v.isActive()&&(v._asyncModule.cancel(v._timer),v._timer=null)};
EY.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
EY.prototype.isActive=function(){return this._timer!=null};
_.Sr=function(v,e,d){v instanceof EY?M77(v):v=new EY;v.setConfig(e,d);return v};
Tk=new Set;_.WX=function(v){Tk.add(v)};
t7g=function(){var v=!!Tk.size;Tk.forEach(function(e){try{e.flush()}catch(d){setTimeout(function(){throw d;})}});
return v};var FXS=typeof document.head.style.touchAction==="string",w0O=["mousedown","mousemove","mouseup","click"],eP7=[0,1,4,2],fYJ;try{fYJ=(new MouseEvent("test",{buttons:1})).buttons===1}catch(v){fYJ=!1}var vu$=fYJ,QaL=!1;(function(){try{var v=Object.defineProperty({},"passive",{get:function(){QaL=!0}});
window.addEventListener("test",null,v);window.removeEventListener("test",null,v)}catch(e){}})();
var n5j=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),D3t=[],Rle={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},mTU={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},U3t=function(v){var e=v.sourceCapabilities;if(!e||e.firesTouchEvents)if(v.__polymerGesturesHandled={skip:!0},v.type==="click"){e=!1;for(var d=SUU(v),E=0;E<d.length;E++){if(d[E].nodeType===Node.ELEMENT_NODE)if(d[E].localName==="label")D3t.push(d[E]);
else if(Rle[d[E].localName]){var T=d[E];var S=Array.prototype.slice.call(T.labels||[]);if(!S.length){S=[];try{var O=T.getRootNode();if(T.id){var b=O.querySelectorAll("label[for = '"+T.id+"']");for(T=0;T<b.length;T++)S.push(b[T])}}catch(Y){}}for(T=0;T<S.length;T++)e=e||D3t.indexOf(S[T])>-1}if(d[E]===PqJ)return}e||(v.preventDefault(),v.stopPropagation())}},PqJ=null,aA=null,akH=0,ipH=0,WLH=-1,Op7=!1;
document.addEventListener("touchend",function(v){aA||p0O(!0);PqJ=SUU(v)[0];aA=_.Sr(aA,_.QP.after(2500),function(){p0O();aA=PqJ=null})},QaL?{passive:!0}:!1);
var SUU=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(v){return v.composedPath&&v.composedPath()||[]},PY={},My=[];
IkS({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Gv(this.info)},
mousedown:function(v){if(J0(v)){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),d=this;Eut(this.info,function(E){J0(E)||(zv("up",e,E),Gv(d.info))},function(E){J0(E)&&zv("up",e,E);
Gv(d.info)});
zv("down",e,v)}},
touchstart:function(v){zv("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),v.changedTouches[0],v)},
touchend:function(v){zv("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),v.changedTouches[0],v)}});
IkS({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(v){this.moves.length>2&&this.moves.shift();this.moves.push(v)},
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;Gv(this.info)},
mousedown:function(v){if(J0(v)){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v),d=this,E=function(T){var S=T.clientX,O=T.clientY;bp$(d.info,S,O)&&(d.info.state=d.info.started?T.type==="mouseup"?"end":"track":"start",d.info.state==="start"&&RO("tap"),d.info.addMove({x:S,y:O}),J0(T)||(d.info.state="end",Gv(d.info)),e&&YUj(d.info,e,T),d.info.started=!0)};
Eut(this.info,E,function(T){d.info.started&&E(T);Gv(d.info)});
this.info.x=v.clientX;this.info.y=v.clientY}},
touchstart:function(v){v=v.changedTouches[0];this.info.x=v.clientX;this.info.y=v.clientY},
touchmove:function(v){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);v=v.changedTouches[0];var d=v.clientX,E=v.clientY;bp$(this.info,d,E)&&(this.info.state==="start"&&RO("tap"),this.info.addMove({x:d,y:E}),YUj(this.info,e,v),this.info.state="track",this.info.started=!0)},
touchend:function(v){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v);v=v.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:v.clientX,y:v.clientY}),YUj(this.info,e,v))}});
IkS({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(v){J0(v)&&(this.info.x=v.clientX,this.info.y=v.clientY)},
click:function(v){J0(v)&&ynH(this.info,v)},
touchstart:function(v){v=v.changedTouches[0];this.info.x=v.clientX;this.info.y=v.clientY},
touchend:function(v){ynH(this.info,v.changedTouches[0],v)}});var xE6=gy(function(v){var e=function(){return v.apply(this,arguments)||this};
_.V(e,v);e.prototype._addEventListenerToNode=function(d,E,T){xk(d,E,T)||v.prototype._addEventListenerToNode.call(this,d,E,T)};
e.prototype._removeEventListenerFromNode=function(d,E,T){BY(d,E,T)||v.prototype._removeEventListenerFromNode.call(this,d,E,T)};
return e});var i0=gy(function(v){var e=function(){return v.apply(this,arguments)||this};
_.V(e,v);e.prototype._shouldPropertyChange=function(d,E,T){return qUL(this,d,E,T,!0)};
return e}),Bgn=gy(function(v){var e=function(){return v.apply(this,arguments)||this};
_.V(e,v);e.prototype._shouldPropertyChange=function(d,E,T){return qUL(this,d,E,T,this.mutableData)};
_.vP.Object.defineProperties(e,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return e});
i0._mutablePropertyChange=qUL;var rn0=!1;var CqJ=xE6(Bgn(nl(HTMLElement))),OY=function(){var v=CqJ.call(this)||this;if(wm)throw Error("Id");v.root=null;v.$=null;v.__children=null;return v};
_.V(OY,CqJ);_.W=OY.prototype;_.W.attributeChangedCallback=function(){this.mutableData=!0};
_.W.connectedCallback=function(){hPj()||(this.style.display="none");this.render()};
_.W.disconnectedCallback=function(){this.__removeChildren()};
_.W.__insertChildren=function(){(0,_.$k)((0,_.$k)(this).parentNode).insertBefore(this.root,this)};
_.W.__removeChildren=function(){if(this.__children)for(var v=0;v<this.__children.length;v++)this.root.appendChild(this.__children[v])};
_.W.render=function(){var v=this;if(!this.__children){var e=e||this.querySelector("template");if(!e){var d=new MutationObserver(function(){if(e=v.querySelector("template"))d.disconnect(),v.render();else throw Error("Jd");});
d.observe(this,{childList:!0});return}this.root=this._stampTemplate(e);this.$=this.root.$;this.__children=[];for(var E=this.root.firstChild;E;E=E.nextSibling)this.__children[this.__children.length]=E;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.vP.Object.defineProperties(OY,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",OY);Polymer.Debouncer=EY;Polymer.Gestures={gestures:PY,recognizers:My,deepTargetFind:TNU,addListener:xk,removeListener:BY,register:IkS,setTouchAction:_.Ck,prevent:RO,resetMouseCanceller:function(){aA&&aA.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:xk,remove:BY};Polymer.GestureEventListeners=xE6;Polymer.MutableData=i0;Polymer.OptionalMutableData=Bgn;Polymer.DomBind=OY;_.IA=function(){do{var v=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var e=t7g()}while(v||e)};var KL3=null;$TO.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:$TO,writable:!0}});var Jn0=nl($TO),ouS=i0(Jn0),XKI=nl(function(){}),A0=function(v){var e=XKI.call(this)||this;
e._configureProperties(v);e.root=e._stampTemplate(e.__dataHost);var d=[];e.children=d;for(var E=e.root.firstChild;E;E=E.nextSibling)d.push(E),E.__templatizeInstance=e;e.__templatizeOwner&&e.__templatizeOwner.__hideTemplateChildren__&&e._showHideChildren(!0);d=e.__templatizeOptions;(v&&d.instanceProps||!d.instanceProps)&&e._enableProperties();return e};
_.V(A0,XKI);_.W=A0.prototype;_.W._configureProperties=function(v){if(this.__templatizeOptions.forwardHostProp)for(var e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(var d in v)this._setPendingProperty(d,v[d])};
_.W.forwardHostProp=function(v,e){this._setPendingPropertyOrPath(v,e,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.W._addEventListenerToNode=function(v,e,d){var E=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(v,e,function(S){S.model=E;d(S)});
else{var T=this.__dataHost.__dataHost;T&&T._addEventListenerToNode(v,e,d)}};
_.W._showHideChildren=function(v){sWO(v,this.children)};
_.W._setUnmanagedPropertyToNode=function(v,e,d){v.__hideTemplateChildren__&&v.nodeType==Node.TEXT_NODE&&e=="textContent"?v.__polymerTextContent__=d:XKI.prototype._setUnmanagedPropertyToNode.call(this,v,e,d)};
_.W.dispatchEvent=function(){return!0};
_.vP.Object.defineProperties(A0.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var v=this.__parentModel;if(!v){var e;v=this;do v=v.__dataHost.__dataHost;while((e=v.__templatizeOptions)&&!e.parentModel);this.__parentModel=v}return v}}});
var kw0=i0(A0);var b0=function(){var v=Us.call(this)||this;v.__renderDebouncer=null;v._lastIf=!1;v.__hideTemplateChildren__=!1;return v};
_.V(b0,Us);_.W=b0.prototype;_.W.__debounceRender=function(){var v=this;this.__renderDebouncer=_.Sr(this.__renderDebouncer,Xk,function(){return v.__render()});
_.WX(this.__renderDebouncer)};
_.W.disconnectedCallback=function(){Us.prototype.disconnectedCallback.call(this);var v=(0,_.$k)(this).parentNode;v&&(v.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.$k)(v).host)||this.__teardownInstance()};
_.W.connectedCallback=function(){Us.prototype.connectedCallback.call(this);hPj()||(this.style.display="none");this.if&&this.__debounceRender()};
_.W.__ensureTemplate=function(){var v=this;if(!this.__template){var e=this._templateInfo?this:(0,_.$k)(this).querySelector("template");if(!e){var d=new MutationObserver(function(){if((0,_.$k)(v).querySelector("template"))d.disconnect(),v.__render();else throw Error("Md");});
d.observe(this,{childList:!0});return!1}this.__template=e}return!0};
_.W.__ensureInstance=function(){var v=(0,_.$k)(this).parentNode;if(this.__hasInstance()){var e=this.__getInstanceNodes();if(e&&e.length&&(0,_.$k)(this).previousSibling!==e[e.length-1])for(var d=0,E=void 0;d<e.length&&(E=e[d]);d++)(0,_.$k)(v).insertBefore(E,this)}else{if(!v||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(v)}return!0};
_.W.render=function(){_.IA()};
_.W.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();wy&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.W.__hasInstance=function(){};
_.W.__getInstanceNodes=function(){};
_.W.__createAndInsertInstance=function(){};
_.W.__teardownInstance=function(){};
_.W._showHideChildren=function(){};
_.vP.Object.defineProperties(b0,{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:b0.prototype.__debounceRender},restamp:{type:Boolean,observer:b0.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var zln=function(){var v=b0.call(this)||this;v.__instance=null;v.__syncInfo=null;return v};
_.V(zln,b0);_.W=zln.prototype;_.W.__hasInstance=function(){return!!this.__instance};
_.W.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.W.__createAndInsertInstance=function(v){var e=this,d=this.__dataHost||this;if(wm&&!this.__dataHost)throw Error("Kd");var E=d._bindTemplate(this.__template,!0);E.runEffects=function(T,S,O){var b=e.__syncInfo;if(e.if)b&&(e.__syncInfo=null,e._showHideChildren(),S=Object.assign(b.changedProps,S)),T(S,O);else if(e.__instance)if(b||(b=e.__syncInfo={runEffects:T,changedProps:{}}),O)for(var Y in S)T=Yk(Y),b.changedProps[T]=e.__dataHost[T];else Object.assign(b.changedProps,S)};
this.__instance=d._stampTemplate(this.__template,E);(0,_.$k)(v).insertBefore(this.__instance,this)};
_.W.__syncHostProperties=function(){var v=this.__syncInfo;v&&(this.__syncInfo=null,v.runEffects(v.changedProps,!1))};
_.W.__teardownInstance=function(){var v=this.__dataHost||this;this.__instance&&(v._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.W._showHideChildren=function(){var v=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==v&&(this.__instance.__hidden=v,sWO(v,this.__instance.templateInfo.childNodes));v||this.__syncHostProperties()};
var lYJ=function(){var v=b0.call(this)||this;v.__ctor=null;v.__instance=null;v.__invalidProps=null;return v};
_.V(lYJ,b0);_.W=lYJ.prototype;_.W.__hasInstance=function(){return!!this.__instance};
_.W.__getInstanceNodes=function(){return this.__instance.children};
_.W.__createAndInsertInstance=function(v){this.__ctor||(this.__ctor=Z8(this.__template,this,{mutableData:!0,forwardHostProp:function(e,d){this.__instance&&(this.if?this.__instance.forwardHostProp(e,d):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Yk(e)]=!0))}}));
this.__instance=new this.__ctor;(0,_.$k)(v).insertBefore(this.__instance.root,this)};
_.W.__teardownInstance=function(){if(this.__instance){var v=this.__instance.children;if(v&&v.length){var e=(0,_.$k)(v[0]).parentNode;if(e){e=(0,_.$k)(e);for(var d=0,E=void 0;d<v.length&&(E=v[d]);d++)e.removeChild(E)}}this.__instance=this.__invalidProps=null}};
_.W.__syncHostProperties=function(){var v=this.__invalidProps;if(v){this.__invalidProps=null;for(var e in v)this.__instance._setPendingProperty(e,this.__dataHost[e]);this.__instance._flushProperties()}};
_.W._showHideChildren=function(){var v=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==v&&(this.__instance.__hidden=v,this.__instance._showHideChildren(v));v||this.__syncHostProperties()};
_.Cq=c6?zln:lYJ;customElements.define(_.Cq.is,_.Cq);Polymer.enqueueDebouncer=_.WX;Polymer.flush=_.IA;Polymer.Templatize={templatize:Z8,modelForElement:P1L};Polymer.TemplateInstanceBase=A0;Polymer.DomIf=_.Cq;var HQ6=Bgn(Us),Bg=function(){var v=HQ6.call(this)||this;v.__instances=[];v.__renderDebouncer=null;v.__itemsIdxToInstIdx={};v.__chunkCount=null;v.__renderStartTime=null;v.__itemsArrayChanged=!1;v.__shouldMeasureChunk=!1;v.__shouldContinueChunking=!1;v.__chunkingId=0;v.__sortFn=null;v.__filterFn=null;v.__observePaths=null;v.__ctor=null;v.__isDetached=!0;v.template=null;return v};
_.V(Bg,HQ6);_.W=Bg.prototype;_.W.disconnectedCallback=function(){HQ6.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var v=0;v<this.__instances.length;v++)this.__detachInstance(v);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.W.connectedCallback=function(){HQ6.prototype.connectedCallback.call(this);hPj()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var v=(0,_.$k)((0,_.$k)(this).parentNode),e=0;e<this.__instances.length;e++)this.__attachInstance(e,v);this.__chunkingId&&this.__render()}};
_.W.__ensureTemplatized=function(){var v=this;if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){var d=new MutationObserver(function(){if(v.querySelector("template"))d.disconnect(),v.__render();else throw Error("Nd");});
d.observe(this,{childList:!0});return!1}var E={};E[this.as]=!0;E[this.indexAs]=!0;E[this.itemsIndexAs]=!0;this.__ctor=Z8(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:E,forwardHostProp:function(T,S){for(var O=this.__instances,b=0,Y=void 0;b<O.length&&(Y=O[b]);b++)Y.forwardHostProp(T,S)},
notifyInstanceProp:function(T,S,O){U03(this.as,S)&&(T=T[this.itemsIndexAs],S==this.as&&(this.items[T]=O),S=yF(this.as,"items."+T,S),this.notifyPath(S,O))}})}return!0};
_.W.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.W.__functionFromPropertyValue=function(v){if(typeof v==="string"){var e=this.__getMethodHost();return function(){return e[v].apply(e,arguments)}}return v};
_.W.__sortChanged=function(v){this.__sortFn=this.__functionFromPropertyValue(v);this.items&&this.__debounceRender(this.__render)};
_.W.__filterChanged=function(v){this.__filterFn=this.__functionFromPropertyValue(v);this.items&&this.__debounceRender(this.__render)};
_.W.__computeFrameTime=function(v){return Math.ceil(1E3/v)};
_.W.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.W.__handleObservedPaths=function(v){if(this.__sortFn||this.__filterFn)if(!v)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var e=this.__observePaths,d=0;d<e.length;d++)v.indexOf(e[d])===0&&this.__debounceRender(this.__render,this.delay)};
_.W.__itemsChanged=function(v){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(v.path,v.value)||(v.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.W.__debounceRender=function(v,e){e=e===void 0?0:e;this.__renderDebouncer=_.Sr(this.__renderDebouncer,e>0?_.QP.after(e):Xk,v.bind(this));_.WX(this.__renderDebouncer)};
_.W.render=function(){this.__debounceRender(this.__render);_.IA()};
_.W.__render=function(){var v=this;if(this.__ensureTemplatized()){var e=this.items||[],d=this.__sortAndFilterItems(e),E=this.__calculateLimit(d.length);this.__updateInstances(e,E,d);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){v.__chunkingId=null;v.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);wy&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.W.__sortAndFilterItems=function(v){for(var e=this,d=Array(v.length),E=0;E<v.length;E++)d[E]=E;this.__filterFn&&(d=d.filter(function(T,S,O){return e.__filterFn(v[T],S,O)}));
this.__sortFn&&d.sort(function(T,S){return e.__sortFn(v[T],v[S])});
return d};
_.W.__calculateLimit=function(v){var e=v,d=this.__instances.length;if(this.initialCount){var E;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(v,this.initialCount),this.__chunkCount=(E=Math.max(e-d,0))||1):(E=Math.min(Math.max(v-d,0),this.__chunkCount),e=Math.min(d+E,v));this.__shouldMeasureChunk=E===this.__chunkCount;this.__shouldContinueChunking=e<v;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return e};
_.W.__continueChunking=function(){if(this.__shouldMeasureChunk){var v=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/v*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.W.__updateInstances=function(v,e,d){var E=this.__itemsIdxToInstIdx={},T;for(T=0;T<e;T++){var S=this.__instances[T],O=d[T],b=v[O];E[O]=T;S?(S._setPendingProperty(this.as,b),S._setPendingProperty(this.indexAs,T),S._setPendingProperty(this.itemsIndexAs,O),S._flushProperties()):this.__insertInstance(b,T,O)}for(v=this.__instances.length-1;v>=T;v--)this.__detachAndRemoveInstance(v)};
_.W.__detachInstance=function(v){v=this.__instances[v];for(var e=(0,_.$k)(v.root),d=0;d<v.children.length;d++)e.appendChild(v.children[d]);return v};
_.W.__attachInstance=function(v,e){e.insertBefore(this.__instances[v].root,this)};
_.W.__detachAndRemoveInstance=function(v){this.__detachInstance(v);this.__instances.splice(v,1)};
_.W.__stampInstance=function(v,e,d){var E={};E[this.as]=v;E[this.indexAs]=e;E[this.itemsIndexAs]=d;return new this.__ctor(E)};
_.W.__insertInstance=function(v,e,d){v=this.__stampInstance(v,e,d);d=(d=this.__instances[e+1])?d.children[0]:this;(0,_.$k)((0,_.$k)(this).parentNode).insertBefore(v.root,d);return this.__instances[e]=v};
_.W._showHideChildren=function(v){for(var e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(v)};
_.W.__handleItemPath=function(v,e){var d=v.slice(6),E=d.indexOf(".");v=E<0?d:d.substring(0,E);if(v==parseInt(v,10)){d=E<0?"":d.substring(E+1);this.__handleObservedPaths(d);if(v=this.__instances[this.__itemsIdxToInstIdx[v]])v._setPendingPropertyOrPath(this.as+(d?"."+d:""),e,!1,!0),v._flushProperties();return!0}};
_.W.itemForElement=function(v){return(v=this.modelForElement(v))&&v[this.as]};
_.W.indexForElement=function(v){return(v=this.modelForElement(v))&&v[this.indexAs]};
_.W.modelForElement=function(v){return P1L(this.template,v)};
_.vP.Object.defineProperties(Bg,{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:Bg.prototype.__sortChanged},filter:{type:Function,observer:Bg.prototype.__filterChanged},observe:{type:String,observer:Bg.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!wy,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.*)"]}}});
Bg.prototype._setRenderedItemCount=function(){};
customElements.define(Bg.is,Bg);Polymer.DomRepeat=Bg;var A_n=function(v,e){var d=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=v;this.callback=e;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){d._schedule()};
this.connect();this._schedule()},ZQ7=function(v){var e=(0,_.$k)(v);
if(Fk(v))return e.assignedNodes({flatten:!0});v=[];for(var d=0;d<e.childNodes.length;d++){var E=e.childNodes[d];Fk(E)?v.push.apply(v,_.t7((0,_.$k)(E).assignedNodes({flatten:!0}))):v.push(E)}return v};
_.W=A_n.prototype;_.W.connect=function(){var v=this;Fk(this._target)?this._listenSlots([this._target]):(0,_.$k)(this._target).children&&(this._listenSlots((0,_.$k)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(e){v._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(function(e){v._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.W.disconnect=function(){Fk(this._target)?this._unlistenSlots([this._target]):(0,_.$k)(this._target).children&&(this._unlistenSlots((0,_.$k)(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};
_.W._schedule=function(){var v=this;this._scheduled||(this._scheduled=!0,Xk.run(function(){return v.flush()}))};
_.W._processMutations=function(v){this._processSlotMutations(v);this.flush()};
_.W._processSlotMutations=function(v){if(v)for(var e=0;e<v.length;e++){var d=v[e];d.addedNodes&&this._listenSlots(d.addedNodes);d.removedNodes&&this._unlistenSlots(d.removedNodes)}};
_.W.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 v={target:this._target,addedNodes:[],removedNodes:[]},e=ZQ7(this._target),d=Ro0(e,this._effectiveNodes),E=0,T=void 0;E<d.length&&(T=d[E]);E++)for(var S=0,O=void 0;S<T.removed.length&&(O=T.removed[S]);S++)v.removedNodes.push(O);
E=0;for(T=void 0;E<d.length&&(T=d[E]);E++)for(S=T.index;S<T.index+T.addedCount;S++)v.addedNodes.push(e[S]);this._effectiveNodes=e;e=!1;if(v.addedNodes.length||v.removedNodes.length)e=!0,this.callback.call(this._target,v);return e};
_.W._listenSlots=function(v){for(var e=0;e<v.length;e++){var d=v[e];Fk(d)&&d.addEventListener("slotchange",this._boundSchedule)}};
_.W._unlistenSlots=function(v){for(var e=0;e<v.length;e++){var d=v[e];Fk(d)&&d.removeEventListener("slotchange",this._boundSchedule)}};var YZ=Element.prototype,c_c=YZ.matches||YZ.matchesSelector||YZ.mozMatchesSelector||YZ.msMatchesSelector||YZ.oMatchesSelector||YZ.webkitMatchesSelector,wKB=function(v,e){return c_c.call(v,e)},QF=function(v){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(v);
this.node=v},u1n;
_.W=QF.prototype;_.W.observeNodes=function(v){return new A_n(this.node,v)};
_.W.unobserveNodes=function(v){v.disconnect()};
_.W.notifyObserver=function(){};
_.W.deepContains=function(v){if((0,_.$k)(this.node).contains(v))return!0;var e=v;for(v=v.ownerDocument;e&&e!==v&&e!==this.node;)e=(0,_.$k)(e).parentNode||(0,_.$k)(e).host;return e===this.node};
_.W.getOwnerRoot=function(){return(0,_.$k)(this.node).getRootNode()};
_.W.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.$k)(this.node).assignedNodes({flatten:!0}):[]};
_.W.getDestinationInsertionPoints=function(){for(var v=[],e=(0,_.$k)(this.node).assignedSlot;e;)v.push(e),e=(0,_.$k)(e).assignedSlot;return v};
_.W.importNode=function(v,e){return(0,_.$k)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(v,e)};
_.W.getEffectiveChildNodes=function(){return ZQ7(this.node)};
_.W.queryDistributedElements=function(v){for(var e=this.getEffectiveChildNodes(),d=[],E=0,T=e.length,S=void 0;E<T&&(S=e[E]);E++)S.nodeType===Node.ELEMENT_NODE&&wKB(S,v)&&d.push(S);return d};
_.vP.Object.defineProperties(QF.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var v=this.node;return v._activeElement!==void 0?v._activeElement:v.activeElement}}});
var mj=function(v){this.event=v};
_.vP.Object.defineProperties(mj.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 FUB=QF;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var QGc=window.ShadyDOM.Wrapper,gH7=function(){return QGc.apply(this,arguments)||this};
_.V(gH7,QGc);Object.getOwnPropertyNames(QF.prototype).forEach(function(v){v!="activeElement"&&v!="constructor"&&(gH7.prototype[v]=QF.prototype[v])});
BNO(gH7.prototype,["classList"]);FUB=gH7;Object.defineProperties(mj.prototype,{localTarget:{get:function(){var v=this.event.currentTarget;v=v&&_.tW(v).getOwnerRoot();for(var e=this.path,d=0;d<e.length;d++){var E=e[d];if(_.tW(E).getOwnerRoot()===v)return E}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else xTH(),BNO(QF.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),C13();u1n=FUB;_.tW=function(v){v=v||document;if(v instanceof FUB)return v;if(v instanceof mj)return v;var e=v.__domApi;e||(v instanceof Event?e=new mj(v):e=new FUB(v),v.__domApi=e);return e};var nHM=/:host\(:dir\((ltr|rtl)\)\)/g,DEM=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,UE6=/:dir\((?:ltr|rtl)\)/,pKn=!(!window.ShadyDOM||!window.ShadyDOM.inUse),uW=[],ye=null,gm="",vEJ=gy(function(v){pKn||ye||(gm=document.documentElement.getAttribute("dir"),ye=new MutationObserver(XMs),ye.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var e=Sog(v);v=function(){var d=e.call(this)||this;d.__autoDirOptOut=!1;return d};
_.V(v,e);v._processStyleText=function(d,E){d=e._processStyleText.call(this,d,E);!pKn&&UE6.test(d)&&(d=this._replaceDirInCssText(d),this.__activateDir=!0);return d};
v._replaceDirInCssText=function(d){d=d.replace(nHM,':host([dir="$1"])');return d=d.replace(DEM,':host([dir="$2"]) $1')};
v.prototype.ready=function(){e.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
v.prototype.connectedCallback=function(){e.prototype.connectedCallback&&e.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(ye&&ye.takeRecords().length&&XMs(),uW.push(this),this.__autoDirOptOut||this.setAttribute("dir",gm))};
v.prototype.disconnectedCallback=function(){e.prototype.disconnectedCallback&&e.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var d=uW.indexOf(this);d>-1&&uW.splice(d,1)}};
v.__activateDir=!1;return v});var eXc=function(v){for(;v;){var e=Object.getOwnPropertyDescriptor(v,"observedAttributes");if(e)return e.get;v=Object.getPrototypeOf(v.prototype).constructor}return function(){return[]}};
gy(function(v){var e=Dc(v),d=eXc(e);v=function(){return e.call(this)||this};
_.V(v,e);v.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:e.prototype._initializeProperties.call(this)};
v.prototype._enableProperties=function(){this.__isUpgradeDisabled||e.prototype._enableProperties.call(this)};
v.prototype._canApplyPropertyDefault=function(E){return e.prototype._canApplyPropertyDefault.call(this,E)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(E))};
v.prototype.attributeChangedCallback=function(E,T,S,O){E=="disable-upgrade"?this.__isUpgradeDisabled&&S==null&&(e.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.$k)(this).isConnected&&e.prototype.connectedCallback.call(this)):e.prototype.attributeChangedCallback.call(this,E,T,S,O)};
v.prototype.connectedCallback=function(){this.__isUpgradeDisabled||e.prototype.connectedCallback.call(this)};
v.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||e.prototype.disconnectedCallback.call(this)};
_.vP.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return d.call(this).concat("disable-upgrade")}}});
return v});var nk=!1,lkS=[],D8=[];var cnS=window.ShadyDOM,wM0=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",QW$):document.readyState==="interactive"||document.readyState==="complete"?QW$():window.addEventListener("DOMContentLoaded",QW$);var nut=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=""},guU=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,uZO=/@import[^;]*;/gim,dFj=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,E0M=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,TIM=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,SSM=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,v0t=/^@[^\s]*keyframes/,
pML=/\s+/g;var WvH={};var Oft=Promise.resolve();var ddg=new Set;var EEc=/;\s*/m,T1c=/^\s*(initial)|(inherit)\s*$/,SjA=/\s*!important/,WxJ=function(){this._map={}};
WxJ.prototype.set=function(v,e){v=v.trim();this._map[v]={properties:e,dependants:{}}};
WxJ.prototype.get=function(v){v=v.trim();return this._map[v]||null};
var apM=null,q6=function(){this._measureElement=this._currentElement=null;this._map=new WxJ};
_.W=q6.prototype;_.W.detectMixin=function(v){v=kae.test(v)||Ng6.test(v);kae.lastIndex=0;Ng6.lastIndex=0;return v};
_.W.transformTemplate=function(v,e){if(v._gatheredStyle===void 0){var d=[];for(var E=v.content.querySelectorAll("style"),T=0;T<E.length;T++){var S=E[T];if(S.hasAttribute("shady-unscoped")){if(!ZOt){var O=S.textContent;if(!ddg.has(O)){ddg.add(O);var b=document.createElement("style");b.setAttribute("shady-unscoped","");b.textContent=O;document.head.appendChild(b)}S.parentNode.removeChild(S)}}else d.push(S.textContent),S.parentNode.removeChild(S)}(d=d.join("").trim())?(E=document.createElement("style"),
E.textContent=d,v.content.insertBefore(E,v.content.firstChild),d=E):d=null;v._gatheredStyle=d}return(v=v._gatheredStyle)?this.JSC$11251_transformStyle(v,e):null};
_.W.JSC$11251_transformStyle=function(v,e){e=e===void 0?"":e;var d=mFH(v);this.transformRules(d,e);v.textContent=YSO(d);return d};
_.W.transformCustomStyle=function(v){var e=this,d=mFH(v);qS0(d,function(E){E.selector===":root"&&(E.selector="html");e.transformRule(E)});
v.textContent=YSO(d);return d};
_.W.transformRules=function(v,e){var d=this;this._currentElement=e;qS0(v,function(E){d.transformRule(E)});
this._currentElement=null};
_.W.transformRule=function(v){v.cssText=iou(this,v.parsedCssText,v);v.selector===":root"&&(v.selector=":host > *")};
var iou=function(v,e,d){e=e.replace(Ng6,function(E,T,S,O){return v._produceCssProperties(E,T,S,O,d)});
return v._consumeCssProperties(e,d)};
_.W=q6.prototype;_.W._getInitialValueForProperty=function(v){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(v)};
_.W._fallbacksFromPreviousRules=function(v){for(var e=this,d=v;d.parent;)d=d.parent;var E={},T=!1;qS0(d,function(S){(T=T||S===v)||S.selector===v.selector&&Object.assign(E,e._cssTextToMap(S.parsedCssText))});
return E};
_.W._consumeCssProperties=function(v,e){for(var d;d=kae.exec(v);){var E=d[0],T=d[1];d=d.index;var S=d+E.indexOf("@apply"),O=d+E.length;E=v.slice(0,S);v=v.slice(O);S=e?this._fallbacksFromPreviousRules(e):{};Object.assign(S,this._cssTextToMap(E));T=this._atApplyToCssProperties(T,S);v=E+T+v;kae.lastIndex=d+T.length}return v};
_.W._atApplyToCssProperties=function(v,e){v=v.replace(EEc,"");var d=[],E=this._map.get(v);E||(this._map.set(v,{}),E=this._map.get(v));if(E){this._currentElement&&(E.dependants[this._currentElement]=!0);var T,S=E.properties;for(T in S){var O=e&&e[T];E=[T,": var(",v,"_-_",T];O&&E.push(",",O.replace(SjA,""));E.push(")");SjA.test(S[T])&&E.push(" !important");d.push(E.join(""))}}return d.join("; ")};
_.W._replaceInitialOrInherit=function(v,e){var d=T1c.exec(e);d&&(e=d[1]?this._getInitialValueForProperty(v):"apply-shim-inherit");return e};
_.W._cssTextToMap=function(v,e){e=e===void 0?!1:e;v=v.split(";");for(var d,E,T={},S=0;S<v.length;S++)if(d=v[S])E=d.split(":"),E.length>1&&(d=E[0].trim(),E=E.slice(1).join(":"),e&&(E=this._replaceInitialOrInherit(d,E)),T[d]=E);return T};
_.W._invalidateMixinEntry=function(v){if(apM)for(var e in v.dependants)e!==this._currentElement&&apM(e)};
_.W._produceCssProperties=function(v,e,d,E,T){var S=this;d&&rZM(d,function(J,R){R&&S._map.get(R)&&(E="@apply "+R+";")});
if(!E)return v;var O=this._consumeCssProperties(""+E,T);T=v.slice(0,v.indexOf("--"));var b=O=this._cssTextToMap(O,!0),Y=this._map.get(e),q=Y&&Y.properties;q?b=Object.assign(Object.create(q),O):this._map.set(e,b);var r=[],h,K=!1;for(h in b){var k=O[h];k===void 0&&(k="initial");!q||h in q||(K=!0);r.push(e+"_-_"+h+": "+k)}K&&this._invalidateMixinEntry(Y);Y&&(Y.properties=b);d&&(T=v+";"+T);return T+r.join("; ")+";"};
q6.prototype.detectMixin=q6.prototype.detectMixin;q6.prototype.transformStyle=q6.prototype.JSC$11251_transformStyle;q6.prototype.transformCustomStyle=q6.prototype.transformCustomStyle;q6.prototype.transformRules=q6.prototype.transformRules;q6.prototype.transformRule=q6.prototype.transformRule;q6.prototype.transformTemplate=q6.prototype.transformTemplate;q6.prototype._separator="_-_";Object.defineProperty(q6.prototype,"invalidCallback",{get:function(){return apM},
set:function(v){apM=v}});var rW=new q6,OoE=function(){this.customStyleInterface=null;rW.invalidCallback=ai$},h4=function(v){!v.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(v.customStyleInterface=window.ShadyCSS.CustomStyleInterface,v.customStyleInterface.transformCallback=function(e){rW.transformCustomStyle(e)},v.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){v.customStyleInterface.enqueued&&v.flushCustomStyles()})})};
_.W=OoE.prototype;_.W.prepareTemplate=function(v,e){h4(this);h3j(v)===""&&(WvH[e]=v,e=rW.transformTemplate(v,e),v._styleAst=e)};
_.W.flushCustomStyles=function(){h4(this);if(this.customStyleInterface){var v=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var e=0;e<v.length;e++){var d=this.customStyleInterface.getStyleForCustomStyle(v[e]);d&&rW.transformCustomStyle(d)}this.customStyleInterface.enqueued=!1}}};
_.W.styleSubtree=function(v,e){h4(this);e&&BQ0(v,e);if(v.shadowRoot)for(this.styleElement(v),v=v.shadowRoot.children||v.shadowRoot.childNodes,e=0;e<v.length;e++)this.styleSubtree(v[e]);else for(v=v.children||v.childNodes,e=0;e<v.length;e++)this.styleSubtree(v[e])};
_.W.styleElement=function(v){h4(this);var e=v.localName,d;e?e.indexOf("-")>-1?d=e:d=v.getAttribute&&v.getAttribute("is")||"":d=v.is;e=WvH[d];if(!(e&&h3j(e)!==""||!e||ifU(e))){if(ifU(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)this.prepareTemplate(e,d),IiO(e);if(v=v.shadowRoot)if(v=v.querySelector("style"))v.__cssRules=e._styleAst,v.textContent=YSO(e._styleAst)}};
_.W.styleDocument=function(v){h4(this);this.styleSubtree(document.body,v)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var KP=new OoE,IpE=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(v,e){KP.flushCustomStyles();KP.prepareTemplate(v,e)},
prepareTemplateStyles:function(v,e,d){window.ShadyCSS.prepareTemplate(v,e,d)},
prepareTemplateDom:function(){},
styleSubtree:function(v,e){KP.flushCustomStyles();KP.styleSubtree(v,e)},
styleElement:function(v){KP.flushCustomStyles();KP.styleElement(v)},
styleDocument:function(v){KP.flushCustomStyles();KP.styleDocument(v)},
getComputedStyleValue:function(v,e){return Cz3(v,e)},
flushCustomStyles:function(){KP.flushCustomStyles()},
nativeCss:bfL,nativeShadow:ZOt,cssBuild:pk,disableRuntime:oHc};IpE&&(window.ShadyCSS.CustomStyleInterface=IpE)}window.ShadyCSS.ApplyShim=rW;var boJ;boJ=window.ShadyCSS;_.$Z=gy(function(v){v=xE6(Dc(v));var e=qoI?v:vEJ(v),d=eXc(e),E={x:"pan-x",y:"pan-y",none:"none",all:"auto"};v=function(){return e.call(this)||this};
_.V(v,e);v.prototype.created=function(){};
v.prototype.__attributeReaction=function(T,S,O){(this.__dataAttributes&&this.__dataAttributes[T]||T==="disable-upgrade")&&this.attributeChangedCallback(T,S,O,null)};
v.prototype.setAttribute=function(T,S){if(ZBB&&!this._legacyForceObservedAttributes){var O=this.getAttribute(T);e.prototype.setAttribute.call(this,T,S);this.__attributeReaction(T,O,String(S))}else e.prototype.setAttribute.call(this,T,S)};
v.prototype.removeAttribute=function(T){if(ZBB&&!this._legacyForceObservedAttributes){var S=this.getAttribute(T);e.prototype.removeAttribute.call(this,T);this.__attributeReaction(T,S,null)}else e.prototype.removeAttribute.call(this,T)};
v.prototype._enableProperties=function(){this.__isUpgradeDisabled||e.prototype._enableProperties.call(this)};
v.prototype._canApplyPropertyDefault=function(T){return e.prototype._canApplyPropertyDefault.call(this,T)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(T))};
v.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(e.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
v.prototype.attached=function(){};
v.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(e.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
v.prototype.detached=function(){};
v.prototype.attributeChangedCallback=function(T,S,O,b){S!==O&&(T=="disable-upgrade"?this.__isUpgradeDisabled&&O==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.$k)(this).isConnected&&this.connectedCallback()):(e.prototype.attributeChangedCallback.call(this,T,S,O,b),this.attributeChanged(T,S,O)))};
v.prototype.attributeChanged=function(){};
v.prototype._initializeProperties=function(){if(lW&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var T=Object.getPrototypeOf(this);T.hasOwnProperty("__hasRegisterFinished")||(this._registered(),T.__hasRegisterFinished=!0);e.prototype._initializeProperties.call(this);this.root=this;this.created();ZBB&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
v.prototype._takeAttributes=function(){for(var T=this.attributes,S=0,O=T.length;S<O;S++){var b=T[S];this.__attributeReaction(b.name,null,b.value)}};
v.prototype._registered=function(){};
v.prototype.ready=function(){this._ensureAttributes();e.prototype.ready.call(this)};
v.prototype._ensureAttributes=function(){};
v.prototype._applyListeners=function(){};
v.prototype.serialize=function(T){return this._serializeValue(T)};
v.prototype.deserialize=function(T,S){return this._deserializeValue(T,S)};
v.prototype.reflectPropertyToAttribute=function(T,S,O){this._propertyToAttribute(T,S,O)};
v.prototype.serializeValueToAttribute=function(T,S,O){this._valueToNodeAttribute(O||this,T,S)};
v.prototype.extend=function(T,S){if(!T||!S)return T||S;for(var O=Object.getOwnPropertyNames(S),b=0,Y=void 0;b<O.length&&(Y=O[b]);b++){var q=Object.getOwnPropertyDescriptor(S,Y);q&&Object.defineProperty(T,Y,q)}return T};
v.prototype.mixin=function(T,S){for(var O in S)T[O]=S[O];return T};
v.prototype.chainObject=function(T,S){T&&S&&T!==S&&(T.__proto__=S);return T};
v.prototype.instanceTemplate=function(T){T=this.constructor._contentForTemplate(T);return document.importNode(T,!0)};
v.prototype.fire=function(T,S,O){O=O||{};S=S===null||S===void 0?{}:S;T=new Event(T,{bubbles:O.bubbles===void 0?!0:O.bubbles,cancelable:!!O.cancelable,composed:O.composed===void 0?!0:O.composed});T.detail=S;(0,_.$k)(O.node||this).dispatchEvent(T);return T};
v.prototype.listen=function(T,S,O){T=T||this;var b=this.__boundListeners||(this.__boundListeners=new WeakMap),Y=b.get(T);Y||(Y={},b.set(T,Y));b=S+O;Y[b]||(Y[b]=this._addMethodEventListenerToNode(T,S,O,this))};
v.prototype.unlisten=function(T,S,O){T=T||this;var b=this.__boundListeners&&this.__boundListeners.get(T);O=S+O;var Y=b&&b[O];Y&&(this._removeEventListenerFromNode(T,S,Y),b[O]=null)};
v.prototype.setScrollDirection=function(T,S){_.Ck(S||this,E[T]||"auto")};
v.prototype.$$=function(T){return this.root.querySelector(T)};
v.prototype.distributeContent=function(){var T=_.tW(this);window.ShadyDOM&&T.shadowRoot&&ShadyDOM.flush()};
v.prototype.getEffectiveChildNodes=function(){return _.tW(this).getEffectiveChildNodes()};
v.prototype.queryDistributedElements=function(T){return _.tW(this).queryDistributedElements(T)};
v.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(T){return T.nodeType===Node.ELEMENT_NODE})};
v.prototype.getEffectiveTextContent=function(){for(var T=this.getEffectiveChildNodes(),S=[],O=0,b;b=T[O];O++)b.nodeType!==Node.COMMENT_NODE&&S.push(b.textContent);return S.join("")};
v.prototype.queryEffectiveChildren=function(T){return(T=this.queryDistributedElements(T))&&T[0]};
v.prototype.queryAllEffectiveChildren=function(T){return this.queryDistributedElements(T)};
v.prototype.getContentChildNodes=function(T){return(T=this.root.querySelector(T||"slot"))?_.tW(T).getDistributedNodes():[]};
v.prototype.getContentChildren=function(T){return this.getContentChildNodes(T).filter(function(S){return S.nodeType===Node.ELEMENT_NODE})};
v.prototype.isLightDescendant=function(T){return this!==T&&(0,_.$k)(this).contains(T)&&(0,_.$k)(this).getRootNode()===(0,_.$k)(T).getRootNode()};
v.prototype.isLocalDescendant=function(T){return this.root===(0,_.$k)(T).getRootNode()};
v.prototype.scopeSubtree=function(T,S){return FLW(T,S===void 0?!1:S)};
v.prototype.getComputedStyleValue=function(T){return boJ.getComputedStyleValue(this,T)};
v.prototype.debounce=function(T,S,O){this._debouncers=this._debouncers||{};return this._debouncers[T]=_.Sr(this._debouncers[T],O>0?_.QP.after(O):Xk,S.bind(this))};
v.prototype.isDebouncerActive=function(T){this._debouncers=this._debouncers||{};T=this._debouncers[T];return!(!T||!T.isActive())};
v.prototype.flushDebouncer=function(T){this._debouncers=this._debouncers||{};(T=this._debouncers[T])&&T.flush()};
v.prototype.cancelDebouncer=function(T){this._debouncers=this._debouncers||{};(T=this._debouncers[T])&&T.cancel()};
v.prototype.async=function(T,S){return S>0?_.QP.run(T.bind(this),S):~Xk.run(T.bind(this))};
v.prototype.cancelAsync=function(T){T<0?Xk.cancel(~T):_.QP.cancel(T)};
v.prototype.create=function(T,S){T=document.createElement(T);if(S)if(T.setProperties)T.setProperties(S);else for(var O in S)T[O]=S[O];return T};
v.prototype.elementMatches=function(T,S){return wKB(S||this,T)};
v.prototype.toggleAttribute=function(T,S){var O=this;arguments.length===3&&(O=arguments[2]);arguments.length==1&&(S=!O.hasAttribute(T));if(S)return(0,_.$k)(O).setAttribute(T,""),!0;(0,_.$k)(O).removeAttribute(T);return!1};
v.prototype.toggleClass=function(T,S,O){O=O||this;arguments.length==1&&(S=!O.classList.contains(T));S?O.classList.add(T):O.classList.remove(T)};
v.prototype.transform=function(T,S){S=S||this;S.style.webkitTransform=T;S.style.transform=T};
v.prototype.translate3d=function(T,S,O,b){this.transform("translate3d("+T+","+S+","+O+")",b||this)};
v.prototype.arrayDelete=function(T,S){if(Array.isArray(T)){if(S=T.indexOf(S),S>=0)return T.splice(S,1)}else if(S=rm(this,T).indexOf(S),S>=0)return this.splice(T,S,1);return null};
v.prototype._logger=function(T,S){Array.isArray(S)&&S.length===1&&Array.isArray(S[0])&&(S=S[0]);switch(T){case "log":case "warn":case "error":console[T].apply(console,_.t7(S))}};
v.prototype._log=function(){this._logger("log",_.Xa.apply(0,arguments))};
v.prototype._warn=function(){this._logger("warn",_.Xa.apply(0,arguments))};
v.prototype._error=function(){this._logger("error",_.Xa.apply(0,arguments))};
v.prototype._logf=function(T){return["[%s::%s]",this.is,T].concat(_.t7(_.Xa.apply(1,arguments)))};
_.vP.Object.defineProperties(v.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var T=(0,_.$k)(this).getRootNode();return T instanceof DocumentFragment?T.host:T}}});
_.vP.Object.defineProperties(v,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return ZBB&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],wj$(this.prototype)),this.__observedAttributes):d.call(this).concat("disable-upgrade")}}});
v.prototype.is="";return v});Polymer.FlattenedNodesObserver=A_n;Polymer.DomApi=u1n;Polymer.EventApi=mj;Polymer.dom=_.tW;Polymer.dom.matchesSelector=wKB;Polymer.dom.flush=_.IA;Polymer.dom.addDebouncer=_.WX;Polymer.DirMixin=vEJ;Polymer.RenderStatus={beforeNextRender:_.Zpt,afterNextRender:_.Uh,flush:function(){for(;lkS.length||D8.length;)zPW(lkS),zPW(D8);nk=!1}};Polymer.LegacyElementMixin=_.$Z;var Yjc;Yjc=i0._mutablePropertyChange;var md6={properties:{mutableData:Boolean},_shouldPropertyChange:function(v,e,d){return Yjc(this,v,e,d,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(v,e,d){return Yjc(this,v,e,d,!0)}};
Polymer.OptionalMutableDataBehavior=md6;var KvL={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},k53={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},NIj=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},k53),ykn=(0,_.$Z)(HTMLElement),YP$=function(v,e){v||console.warn("Polymer.Class requires `info` argument");e=e?e(ykn):ykn;e=Lv$(v,e,v.behaviors);e.is=e.prototype.is=
v.is;return e};Polymer.Class=YP$;Polymer.mixinBehaviors=function(v,e){return Lv$({},(0,_.$Z)(e),v)};
Polymer.GenerateClassFromInfo=Lv$;_.xv=function(v){var e=typeof v==="function"?v:_.xv.Class(v);v._legacyForceObservedAttributes&&(e.prototype._legacyForceObservedAttributes=v._legacyForceObservedAttributes);customElements.define(e.is,e);return e};
_.xv.Class=YP$;Polymer._polymerFn=_.xv;var qjJ=window.onLegacyPolymerFunctionDefinedCallback;qjJ&&qjJ();var yhs={templatize:function(v,e){this._templatizerTemplate=v;this.ctor=Z8(v,this,{mutableData:!!e,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(v){return new this.ctor(v)},
modelForElement:function(v){return P1L(this._templatizerTemplate,v)}};Polymer.Templatizer=yhs;_.jr=(0,_.$Z)(HTMLElement).prototype;Polymer.Base=_.jr;var o0s=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.eo=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.V(_.eo,PolymerFakeBaseClass);var d3=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.V(d3,PolymerFakeBaseClass);var JZH=Symbol("Od"),C_t=[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 rkB=rkB||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},hX6;(function(v){function e(F,g,Q){var v3=U.get(F);if(!v3){if(!Q)return;v3=new X;U.set(F,v3)}F=v3.get(g);if(!F){if(!Q)return;F=new X;v3.set(g,F)}return F}
function d(F,g,Q){if(E(F,g,Q))return!0;g=K(g);return g!==null?d(F,g,Q):!1}
function E(F,g,Q){g=e(g,Q,!1);return g===void 0?!1:!!g.has(F)}
function T(F,g,Q){if(E(F,g,Q))return S(F,g,Q);g=K(g);if(g!==null)return T(F,g,Q)}
function S(F,g,Q){g=e(g,Q,!1);if(g!==void 0)return g.get(F)}
function O(F,g){var Q=b(F,g);F=K(F);if(F===null)return Q;var v3=O(F,g);if(v3.length<=0)return Q;if(Q.length<=0)return v3;g=new Z;F=[];Q=_.a(Q);for(var q7=Q.next();!q7.done;q7=Q.next())q7=q7.value,g.has(q7)||(g.add(q7),F.push(q7));Q=_.a(v3);for(v3=Q.next();!v3.done;v3=Q.next())v3=v3.value,g.has(v3)||(g.add(v3),F.push(v3));return F}
function b(F,g){F=e(F,g,!1);var Q=[];F&&F.forEach(function(v3,q7){return Q.push(q7)});
return Q}
function Y(F){return F===void 0}
function q(F){return typeof F==="object"?F!==null:typeof F==="function"}
function r(F){return typeof F==="function"}
function h(F){return typeof F==="symbol"?F:String(F)}
function K(F){var g=Object.getPrototypeOf(F);if(typeof F!=="function"||F===B||g!==B)return g;var Q=Object.getPrototypeOf(F.prototype);if(Q==null||Q===Object.prototype)return g;Q=Q.constructor;return typeof Q!=="function"||Q===F?g:Q}
function k(){function F(){this._keys=[];this._values=[];this._cache=g}
var g={};F.prototype={get size(){return this._keys.length},has:function(Q){return Q===this._cache?!0:this._find(Q)>=0?(this._cache=Q,!0):!1},
get:function(Q){var v3=this._find(Q);if(v3>=0)return this._cache=Q,this._values[v3]},
set:function(Q,v3){this.delete(Q);this._keys.push(Q);this._values.push(v3);this._cache=Q;return this},
delete:function(Q){Q=this._find(Q);return Q>=0?(this._keys.splice(Q,1),this._values.splice(Q,1),this._cache=g,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=g},
forEach:function(Q){for(var v3=this.size,q7=0;q7<v3;++q7){var m0=this._keys[q7],$S=this._values[q7];this._cache=m0;Q.call(this,$S,m0,this)}},
_find:function(Q){for(var v3=this._keys,q7=v3.length,m0=0;m0<q7;++m0)if(v3[m0]===Q)return m0;return-1}};
return F}
function J(){function F(){this._map=new X}
F.prototype={get size(){return this._map.length},has:function(g){return this._map.has(g)},
add:function(g){this._map.set(g,g);return this},
delete:function(g){return this._map.delete(g)},
clear:function(){this._map.clear()},
forEach:function(g,Q){this._map.forEach(g,Q)}};
return F}
function R(){function F(){this._key=Q()}
function g(N7,As){for(var Ct=0;Ct<As;++Ct)N7[Ct]=Math.random()*255|0}
function Q(){do{if(q7)var N7=q7.randomBytes(16);else typeof Uint8Array==="function"?(N7=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(N7):g(N7,16)):(N7=Array(16),g(N7,16));N7[6]=N7[6]&79|64;N7[8]=N7[8]&191|128;for(var As="",Ct=0;Ct<16;++Ct){var SA=N7[Ct];if(Ct===4||Ct===6||Ct===8)As+="-";SA<16&&(As+="0");As+=SA.toString(16).toLowerCase()}N7="@@WeakMap@@"+As}while(m0.call($S,N7));$S[N7]=!0;return N7}
function v3(N7,As){if(!m0.call(N7,kS)){if(!As)return;Object.defineProperty(N7,kS,{value:Object.create(null)})}return N7[kS]}
var q7=typeof global!=="undefined"&&typeof rkB==="object"&&typeof require==="function"&&require("crypto"),m0=Object.prototype.hasOwnProperty,$S={},kS=Q();F.prototype={has:function(N7){return(N7=v3(N7,!1))?this._key in N7:!1},
get:function(N7){if(N7=v3(N7,!1))return N7[this._key]},
set:function(N7,As){v3(N7,!0)[this._key]=As;return this},
delete:function(N7){return(N7=v3(N7,!1))&&this._key in N7?delete N7[this._key]:!1},
clear:function(){this._key=Q()}};
return F}
var B=Object.getPrototypeOf(Function),X=typeof Map==="function"?Map:k(),Z=typeof Set==="function"?Set:J(),U=new (typeof WeakMap==="function"?WeakMap:R());v.decorate=function(F,g,Q,v3){if(Y(v3)){if(Y(Q)){if(!Array.isArray(F))throw new TypeError;if(!r(g))throw new TypeError;for(Q=F.length-1;Q>=0;--Q)if(v3=(0,F[Q])(g),!Y(v3)){if(!r(v3))throw new TypeError;g=v3}return g}if(!Array.isArray(F))throw new TypeError;if(!q(g))throw new TypeError;Q=h(Q);for(v3=F.length-1;v3>=0;--v3)(0,F[v3])(g,Q)}else{if(Array.isArray(F))if(q(g)){if(Y(Q))throw new TypeError;
if(!q(v3))throw new TypeError;}else throw new TypeError;else throw new TypeError;Q=h(Q);for(var q7=F.length-1;q7>=0;--q7){var m0=(0,F[q7])(g,Q,v3);if(!Y(m0)){if(!q(m0))throw new TypeError;v3=m0}}return v3}};
v.metadata=function(F,g){return function(Q,v3){if(Y(v3)){if(!r(Q))throw new TypeError;e(Q,void 0,!0).set(F,g)}else{if(!q(Q))throw new TypeError;v3=h(v3);e(Q,v3,!0).set(F,g)}}};
v.defineMetadata=function(F,g){var Q;if(q(g))Y(Q)||(Q=h(Q));else throw new TypeError;e(g,Q,!0).set("parameters",F)};
v.hasMetadata=function(F,g,Q){if(q(g))Y(Q)||(Q=h(Q));else throw new TypeError;return d(F,g,Q)};
v.hasOwnMetadata=function(F,g,Q){if(q(g))Y(Q)||(Q=h(Q));else throw new TypeError;return E(F,g,Q)};
v.getMetadata=function(F,g,Q){if(q(g))Y(Q)||(Q=h(Q));else throw new TypeError;return T(F,g,Q)};
v.getOwnMetadata=function(F,g,Q){if(q(g))Y(Q)||(Q=h(Q));else throw new TypeError;return S(F,g,Q)};
v.getMetadataKeys=function(F,g){if(q(F))Y(g)||(g=h(g));else throw new TypeError;return O(F,g)};
v.getOwnMetadataKeys=function(F,g){if(q(F))Y(g)||(g=h(g));else throw new TypeError;return b(F,g)};
v.deleteMetadata=function(F,g,Q){if(q(g))Y(Q)||(Q=h(Q));else throw new TypeError;var v3=e(g,Q,!1);if(!Y(v3)){if(!v3.delete(F))return!1;if(v3.size>0)return!0;F=U.get(g);F.delete(Q);if(F.size>0)return!0;U.delete(g);return!0}};
(function(F){if(typeof F.Reflect!=="undefined"){if(F.Reflect!==v)for(var g in v)F.Reflect[g]=v[g]}else F.Reflect=v})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(hX6||(hX6={}));var DpO=self;var KxA=[0,_.l1,_.An,_.l1];var $dI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V($dI,_.du);var jbI=_.b6($dI,[0,_.D23,_.Zk,KxA,_.An,_.wN]);_.vM(_.Ew,_.kh);_.W=_.Ew.prototype;_.W.start=function(){this.stop();this.usingListeners_=!1;var v=sbn(this),e=N12(this);v&&!e&&this.JSC$11294_win_.mozRequestAnimationFrame?(this.JSC$11294_id_=_.MC(this.JSC$11294_win_,"MozBeforePaint",this.callback_),this.JSC$11294_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11294_id_=v&&e?v.call(this.JSC$11294_win_,this.callback_):this.JSC$11294_win_.setTimeout(i7E(this.callback_),20)};
_.W.stop=function(){if(this.isActive()){var v=sbn(this),e=N12(this);v&&!e&&this.JSC$11294_win_.mozRequestAnimationFrame?o5(this.JSC$11294_id_):v&&e?e.call(this.JSC$11294_win_,this.JSC$11294_id_):this.JSC$11294_win_.clearTimeout(this.JSC$11294_id_)}this.JSC$11294_id_=null};
_.W.fire=function(){this.stop();this.JSC$11296_doAction_()};
_.W.isActive=function(){return this.JSC$11294_id_!=null};
_.W.JSC$11296_doAction_=function(){this.usingListeners_&&this.JSC$11294_id_&&o5(this.JSC$11294_id_);this.JSC$11294_id_=null;this.JSC$11294_listener_.call(this.handler_,_.pO())};
_.W.disposeInternal=function(){this.stop();_.Ew.superClass_.disposeInternal.call(this)};
var sbn=function(v){v=v.JSC$11294_win_;return v.requestAnimationFrame||v.webkitRequestAnimationFrame||v.mozRequestAnimationFrame||v.oRequestAnimationFrame||v.msRequestAnimationFrame||null},N12=function(v){v=v.JSC$11294_win_;
return v.cancelAnimationFrame||v.cancelRequestAnimationFrame||v.webkitCancelRequestAnimationFrame||v.mozCancelRequestAnimationFrame||v.oCancelRequestAnimationFrame||v.msCancelRequestAnimationFrame||null};_.wB=function(v,e,d){_.kh.call(this);this.JSC$11297_listener_=d!=null?v.bind(d):v;this.JSC$11297_interval_=e;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11297_timer_=null};
_.V(_.wB,_.kh);_.W=_.wB.prototype;_.W.fire=function(v){this.args_=arguments;this.JSC$11297_timer_||this.pauseCount_?this.shouldFire_=!0:kon(this)};
_.W.stop=function(){this.JSC$11297_timer_&&(_.TO.clearTimeout(this.JSC$11297_timer_),this.JSC$11297_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.W.pause=function(){this.pauseCount_++};
_.W.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11297_timer_||(this.shouldFire_=!1,kon(this))};
_.W.disposeInternal=function(){_.kh.prototype.disposeInternal.call(this);this.stop()};
var kon=function(v){v.JSC$11297_timer_=sd(function(){v.JSC$11297_timer_=null;v.shouldFire_&&!v.pauseCount_&&(v.shouldFire_=!1,kon(v))},v.JSC$11297_interval_);
var e=v.args_;v.args_=null;v.JSC$11297_listener_.apply(null,e)};var Lxi=function(v,e){this.childIterator_=v[_.TO.Symbol.iterator]();this.mapFn_=e};
Lxi.prototype[Symbol.iterator]=function(){return this};
Lxi.prototype.next=function(){var v=this.childIterator_.next();return{value:v.done?void 0:this.mapFn_.call(void 0,v.value),done:v.done}};
var VUg=function(v,e){return new Lxi(v,e)};var oEe={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 M80=function(v){var e=JkE(v);if(!e)throw Error("Sd`"+v);return e},JkE=function(v){var e={};
v=String(v);var d=v.charAt(0)=="#"?v:"#"+v;if(Gou.test(d))return e.hex=kPH(d),e.type="hex",e;d=PD7(v);return d.length?(e.hex=yQt(d[0],d[1],d[2]),e.type="rgb",e):oEe&&(v=oEe[v.toLowerCase()])?(e.hex=v,e.type="named",e):null},MUi=/#(.)(.)(.)/,kPH=function(v){if(!Gou.test(v))throw Error("Ud`"+v);
v.length==4&&(v=v.replace(MUi,"#$1$1$2$2$3$3"));return v.toLowerCase()},t8M=function(v){v=kPH(v);
v=parseInt(v.slice(1),16);return[v>>16,v>>8&255,v&255]},yQt=function(v,e,d){v=Number(v);
e=Number(e);d=Number(d);if(v!=(v&255)||e!=(e&255)||d!=(d&255))throw Error("Vd`"+v+"`"+e+"`"+d);e=v<<16|e<<8|d;return v<16?"#"+(16777216|e).toString(16).slice(1):"#"+e.toString(16)},Gou=/^#(?:[0-9a-f]{3}){1,2}$/i,tUJ=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,PD7=function(v){var e=v.match(tUJ);
if(e){v=Number(e[1]);var d=Number(e[2]);e=Number(e[3]);if(v>=0&&v<=255&&d>=0&&d<=255&&e>=0&&e<=255)return[v,d,e]}return[]};var fpe={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},q0=fpe;q0=fpe;var yDt,RXn,PX6;yDt=function(v,e){switch(e){case 1:return v%4!=0||v%100==0&&v%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
RXn=function(v,e,d,E,T){v=new Date(v,e,d);T=T||0;return v.valueOf()+(((E!==void 0?E:3)-T+7)%7-((v.getDay()+6)%7-T+7)%7)*864E5};
_.sY=function(v,e,d){typeof v==="number"?(this.date=PX6(v,e||0,d||1),xdJ(this,d||1)):_.Qj(v)?(this.date=PX6(v.getFullYear(),v.getMonth(),v.getDate()),xdJ(this,v.getDate())):(this.date=new Date(_.pO()),v=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),xdJ(this,v))};
PX6=function(v,e,d){e=new Date(v,e,d);v>=0&&v<100&&e.setFullYear(e.getFullYear()-1900);return e};
_.W=_.sY.prototype;_.W.firstDayOfWeek_=q0.FIRSTDAYOFWEEK;_.W.firstWeekCutOffDay_=q0.FIRSTWEEKCUTOFFDAY;_.W.clone=function(){var v=new _.sY(this.date);v.firstDayOfWeek_=this.firstDayOfWeek_;v.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return v};
_.W.getFullYear=function(){return this.date.getFullYear()};
_.W.getYear=function(){return this.getFullYear()};
_.W.getMonth=function(){return this.date.getMonth()};
_.W.getDate=function(){return this.date.getDate()};
_.W.getTime=function(){return this.date.getTime()};
_.W.getDay=function(){return this.date.getDay()};
_.W.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.W.getUTCMonth=function(){return this.date.getUTCMonth()};
_.W.getUTCDate=function(){return this.date.getUTCDate()};
_.W.getUTCDay=function(){return this.date.getDay()};
_.W.getUTCHours=function(){return this.date.getUTCHours()};
_.W.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.W.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.W.set=function(v){this.date=new Date(v.getFullYear(),v.getMonth(),v.getDate())};
_.W.setFullYear=function(v){this.date.setFullYear(v)};
_.W.setYear=function(v){this.setFullYear(v)};
_.W.setMonth=function(v){this.date.setMonth(v)};
_.W.setDate=function(v){this.date.setDate(v)};
_.W.setTime=function(v){this.date.setTime(v)};
_.W.setUTCFullYear=function(v){this.date.setUTCFullYear(v)};
_.W.setUTCMonth=function(v){this.date.setUTCMonth(v)};
_.W.setUTCDate=function(v){this.date.setUTCDate(v)};
_.W.add=function(v){if(v.years||v.months){var e=this.getMonth()+v.months+v.years*12,d=this.getYear()+Math.floor(e/12);e%=12;e<0&&(e+=12);var E=Math.min(yDt(d,e),this.getDate());this.setDate(1);this.setFullYear(d);this.setMonth(e);this.setDate(E)}v.days&&(d=this.getYear(),e=d>=0&&d<=99?-1900:0,v=new Date((new Date(d,this.getMonth(),this.getDate(),12)).getTime()+v.days*864E5),this.setDate(1),this.setFullYear(v.getFullYear()+e),this.setMonth(v.getMonth()),this.setDate(v.getDate()),xdJ(this,v.getDate()))};
_.W.JSC$11310_toIsoString=function(v){var e=this.getFullYear(),d=e<0?"-":e>=1E4?"+":"";return[d+_.UU(Math.abs(e),d?6:4),_.UU(this.getMonth()+1,2),_.UU(this.getDate(),2)].join(v?"-":"")};
_.W.equals=function(v){return!(!v||this.getYear()!=v.getYear()||this.getMonth()!=v.getMonth()||this.getDate()!=v.getDate())};
_.W.toString=function(){return this.JSC$11310_toIsoString()};
var xdJ=function(v,e){v.getDate()!=e&&v.date.setUTCHours(v.date.getUTCHours()+(v.getDate()<e?1:-1))};
_.sY.prototype.valueOf=function(){return this.date.valueOf()};var kZ=function(v,e,d,E,T){this.reversed=!!e;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!d;v&&N6(this,v,E);this.depth=T!=void 0?T:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.vM(kZ,dy);var N6=function(v,e,d,E){if(v.node=e)v.tagType=typeof d==="number"?d:v.node.nodeType!=1?0:v.reversed?-1:1;typeof E==="number"&&(v.depth=E)};
_.W=kZ.prototype;_.W.JSC$11325_copyFrom=function(v){this.node=v.node;this.tagType=v.tagType;this.depth=v.depth;this.reversed=v.reversed;this.constrained=v.constrained};
_.W.clone=function(){return new kZ(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.W.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Es;var v=this.node;var e=this.reversed?-1:1;if(this.tagType==e){var d=this.reversed?v.lastChild:v.firstChild;d?N6(this,d):N6(this,v,e*-1)}else(d=this.reversed?v.previousSibling:v.nextSibling)?N6(this,d):N6(this,v.parentNode,e*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(v=this.node)?T3(v):Es};
_.W.equals=function(v){return v.node==this.node&&(!this.node||v.tagType==this.tagType)};
_.W.splice=function(v){var e=this.node,d=this.reversed?1:-1;this.tagType==d&&(this.tagType=d*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;kZ.prototype.next.call(this);this.reversed=!this.reversed;d=_.c3(arguments[0])?arguments[0]:arguments;for(var E=d.length-1;E>=0;E--)_.JZ(d[E],e);_.KX(e)};var B1I=function(){},LP=function(v){for(var e=[],d=v.getTextRangeCount(),E=0;E<d;E++)e.push(v.getTextRange(E));
return e};
B1I.prototype.isReversed=function(){return!1};
B1I.prototype.getWindow=function(){return xx(_.Bn(this.JSC$11327_getStartNode()))};
var CXJ=function(v,e){kZ.call(this,v,e,!0)};
_.vM(CXJ,kZ);var Ve=function(v,e,d,E,T){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!T;if(v){this.startNode_=v;this.startOffset_=e;this.endNode_=d;this.endOffset_=E;if(v.nodeType==1&&v.tagName!="BR")if(v=v.childNodes,e=v[e])this.startNode_=e,this.startOffset_=0;else{v.length&&(this.startNode_=_.P3(v));var S=!0}d.nodeType==1&&((this.endNode_=d.childNodes[E])?this.endOffset_=0:this.endNode_=d)}kZ.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);S&&this.next()};
_.vM(Ve,CXJ);_.W=Ve.prototype;_.W.JSC$11333_getStartNode=function(){return this.startNode_};
_.W.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)};
_.W.next=function(){return this.isLast()?Es:Ve.superClass_.next.call(this)};
_.W.JSC$11325_copyFrom=function(v){this.startNode_=v.startNode_;this.endNode_=v.endNode_;this.startOffset_=v.startOffset_;this.endOffset_=v.endOffset_;this.isReversed_=v.isReversed_;Ve.superClass_.JSC$11325_copyFrom.call(this,v)};
_.W.clone=function(){var v=new Ve(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);v.JSC$11325_copyFrom(this);return v};var Xvu=function(){};
Xvu.prototype.__iterator__=function(){return new Ve(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var oA=function(v){this.range_=v};
_.vM(oA,Xvu);var zXJ=function(v){var e=_.Bn(v).createRange();if(v.nodeType==3)e.setStart(v,0),e.setEnd(v,v.length);else if(Lf(v)||v.nodeType==3){for(var d,E=v;(d=E.firstChild)&&(Lf(d)||d.nodeType==3);)E=d;e.setStart(E,0);for(E=v;(d=E.lastChild)&&(Lf(d)||d.nodeType==3);)E=d;e.setEnd(E,E.nodeType==1?E.childNodes.length:E.length)}else d=v.parentNode,v=Array.prototype.indexOf.call(d.childNodes,v),e.setStart(d,v),e.setEnd(d,v+1);return e},lpI=function(v,e,d,E){var T=_.Bn(v).createRange();
T.setStart(v,e);T.setEnd(d,E);return T};
_.W=oA.prototype;_.W.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.W.getContainer=function(){return this.range_.commonAncestorContainer};
_.W.compareBrowserRangeEndpoints=function(v,e,d){return this.range_.compareBoundaryPoints(d==1?e==1?_.TO.Range.START_TO_START:_.TO.Range.START_TO_END:e==1?_.TO.Range.END_TO_START:_.TO.Range.END_TO_END,v)};
_.W.isCollapsed=function(){return this.range_.collapsed};
_.W.select=function(v){this.selectInternal(xx(_.Bn(this.range_.startContainer)).getSelection(),v)};
_.W.selectInternal=function(v){v.removeAllRanges();v.addRange(this.range_)};
_.W.insertNode=function(v,e){var d=this.range_.cloneRange();d.collapse(e);d.insertNode(v);d.detach();return v};
_.W.collapse=function(v){this.range_.collapse(v)};_.vM(Tz,oA);Tz.prototype.selectInternal=function(v,e){!e||this.isCollapsed()?Tz.superClass_.selectInternal.call(this,v,e):(v.collapse(this.range_.endContainer,this.range_.endOffset),v.extend(this.range_.startContainer,this.range_.startOffset))};_.vM(So,oA);So.prototype.compareBrowserRangeEndpoints=function(v,e,d){return So.superClass_.compareBrowserRangeEndpoints.call(this,v,e,d)};
So.prototype.selectInternal=function(v,e){e?v.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):v.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Hog=function(v){return _.WM?new So(v):_.S1?new Tz(v):new oA(v)};var J4=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Aku;
_.vM(J4,B1I);Aku=function(v,e){var d=new J4;d.browserRangeWrapper_=v;d.isReversed_=!!e;return d};
_.ZoJ=function(v){v=_.WM?new So(zXJ(v)):_.S1?new Tz(zXJ(v)):new oA(zXJ(v));return Aku(v)};
_.Gk=function(v,e,d,E){var T=new J4;T.isReversed_=ckB(v,e,d,E);if(_.DF(v)&&!Lf(v)){var S=v.parentNode;e=Array.prototype.indexOf.call(S.childNodes,v);v=S}_.DF(d)&&!Lf(d)&&(S=d.parentNode,E=Array.prototype.indexOf.call(S.childNodes,d),d=S);T.isReversed_?(T.startNode_=d,T.startOffset_=E,T.endNode_=v,T.endOffset_=e):(T.startNode_=v,T.startOffset_=e,T.endNode_=d,T.endOffset_=E);return T};
_.W=J4.prototype;_.W.clone=function(){var v=new J4;v.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();v.startNode_=this.startNode_;v.startOffset_=this.startOffset_;v.endNode_=this.endNode_;v.endOffset_=this.endOffset_;v.isReversed_=this.isReversed_;return v};
_.W.JSC$11327_getType=function(){return"text"};
_.W.getBrowserRangeObject=function(){return M6(this).range_};
_.W.getTextRangeCount=function(){return 1};
_.W.getTextRange=function(){return this};
var M6=function(v){var e;if(!(e=v.browserRangeWrapper_)){e=v.JSC$11327_getStartNode();var d=v.JSC$11327_getStartOffset(),E=v.JSC$11327_getEndNode(),T=v.JSC$11327_getEndOffset();e=_.WM?new So(lpI(e,d,E,T)):_.S1?new Tz(lpI(e,d,E,T)):new oA(lpI(e,d,E,T));e=v.browserRangeWrapper_=e}return e};
_.W=J4.prototype;_.W.getContainer=function(){return M6(this).getContainer()};
_.W.JSC$11327_getStartNode=function(){return this.startNode_||(this.startNode_=M6(this).range_.startContainer)};
_.W.JSC$11327_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=M6(this).range_.startOffset};
_.W.JSC$11327_getEndNode=function(){return this.endNode_||(this.endNode_=M6(this).range_.endContainer)};
_.W.JSC$11327_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=M6(this).range_.endOffset};
_.W.isReversed=function(){return this.isReversed_};
_.W.JSC$11327_containsRange=function(v,e){if(v.JSC$11327_getType()=="text"){var d=M6(this);v=M6(v);e=e&&!v.isCollapsed();v=v.range_;d=e?d.compareBrowserRangeEndpoints(v,0,1)>=0&&d.compareBrowserRangeEndpoints(v,1,0)<=0:d.compareBrowserRangeEndpoints(v,0,0)>=0&&d.compareBrowserRangeEndpoints(v,1,1)<=0}else d=!1;return d};
_.W.isCollapsed=function(){return M6(this).isCollapsed()};
_.W.JSC$11327_getText=function(){return M6(this).range_.toString()};
_.W.__iterator__=function(){return new Ve(this.JSC$11327_getStartNode(),this.JSC$11327_getStartOffset(),this.JSC$11327_getEndNode(),this.JSC$11327_getEndOffset())};
_.W.select=function(){M6(this).select(this.isReversed_)};
_.W.JSC$11327_removeContents=function(){var v=M6(this).range_;v.extractContents();if(v.startContainer.hasChildNodes()&&(v=v.startContainer.childNodes[v.startOffset])){var e=v.previousSibling;Wfg(v)==""&&_.KX(v);e&&Wfg(e)==""&&_.KX(e)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.W.insertNode=function(v,e){v=M6(this).insertNode(v,e);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return v};
_.W.collapse=function(v){v=this.isReversed()?!v:v;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(v);v?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var wvJ=function(){};
_.vM(wvJ,B1I);wvJ.prototype.JSC$11327_containsRange=function(v,e){var d=LP(this);v=LP(v);return(e?Qp:_.q2U)(v,function(E){return Qp(d,function(T){return T.JSC$11327_containsRange(E,e)})})};
wvJ.prototype.insertNode=function(v,e){e?_.od(v,this.JSC$11327_getStartNode()):_.JZ(v,this.JSC$11327_getEndNode());return v};var Fx0,Qb6=NR().JSC$9317_document_.documentElement;Fx0=Qb6.requestFullscreen?"fullscreenchange":Qb6.webkitRequestFullscreen?"webkitfullscreenchange":Qb6.mozRequestFullScreen?"mozfullscreenchange":Qb6.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var gE6=function(){var v=NR().JSC$9317_document_;return!!(v.webkitIsFullScreen||v.mozFullScreen||v.msFullscreenElement||v.fullscreenElement)};var t4=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.vM(t4,wvJ);_.W=t4.prototype;_.W.clone=function(){var v=new t4;v.browserRanges_=_.Zt(this.browserRanges_);return v};
_.W.JSC$11327_getType=function(){return"mutli"};
_.W.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.W.getTextRangeCount=function(){return this.browserRanges_.length};
_.W.getTextRange=function(v){this.ranges_[v]||(this.ranges_[v]=Aku(Hog(this.browserRanges_[v])));return this.ranges_[v]};
_.W.getContainer=function(){if(!this.container_){for(var v=[],e=this.getTextRangeCount(),d=0;d<e;d++)v.push(this.getTextRange(d).getContainer());this.container_=pcn.apply(null,v)}return this.container_};
var fP=function(v){v.sortedRanges_||(v.sortedRanges_=LP(v),v.sortedRanges_.sort(function(e,d){var E=e.JSC$11327_getStartNode();e=e.JSC$11327_getStartOffset();var T=d.JSC$11327_getStartNode();d=d.JSC$11327_getStartOffset();return E==T&&e==d?0:ckB(E,e,T,d)?1:-1}));
return v.sortedRanges_};
_.W=t4.prototype;_.W.JSC$11327_getStartNode=function(){return fP(this)[0].JSC$11327_getStartNode()};
_.W.JSC$11327_getStartOffset=function(){return fP(this)[0].JSC$11327_getStartOffset()};
_.W.JSC$11327_getEndNode=function(){return _.P3(fP(this)).JSC$11327_getEndNode()};
_.W.JSC$11327_getEndOffset=function(){return _.P3(fP(this)).JSC$11327_getEndOffset()};
_.W.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.W.JSC$11327_getText=function(){return LP(this).map(function(v){return v.JSC$11327_getText()}).join("")};
_.W.__iterator__=function(){return new RA(this)};
_.W.select=function(){var v=this.getWindow().getSelection();v.removeAllRanges();for(var e=this.getTextRangeCount(),d=0;d<e;d++)v.addRange(this.getTextRange(d).getBrowserRangeObject())};
_.W.JSC$11327_removeContents=function(){LP(this).forEach(function(v){v.JSC$11327_removeContents()})};
_.W.collapse=function(v){if(!this.isCollapsed()){var e=v?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;e.collapse(v);this.ranges_=[e];this.sortedRanges_=[e];this.browserRanges_=[e.getBrowserRangeObject()]}};
var RA=function(v){this.iterators_=null;this.currentIdx_=0;v&&(this.iterators_=fP(v).map(function(e){return _.Whc(e)}));
kZ.call(this,v?this.JSC$11333_getStartNode():null,!1,!0)};
_.vM(RA,CXJ);_.W=RA.prototype;_.W.JSC$11333_getStartNode=function(){return this.iterators_[0].JSC$11333_getStartNode()};
_.W.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.W.next=function(){for(;this.currentIdx_<this.iterators_.length;){var v=this.iterators_[this.currentIdx_],e=v.next();if(e.done)this.currentIdx_++;else return N6(this,v.node,v.tagType,v.depth),e}return Es};
_.W.JSC$11325_copyFrom=function(v){this.iterators_=_.Zt(v.iterators_);RA.superClass_.JSC$11325_copyFrom.call(this,v)};
_.W.clone=function(){var v=new RA(null);v.JSC$11325_copyFrom(this);return v};var uDM,ckB;_.It=function(){var v=window.getSelection();return v&&uDM(v)};
uDM=function(v){var e=!1;if(v.createRange)try{var d=v.createRange()}catch(T){return null}else if(v.rangeCount){if(v.rangeCount>1){d=new t4;e=v.rangeCount;for(var E=0;E<e;E++)d.browserRanges_.push(v.getRangeAt(E));return d}d=v.getRangeAt(0);e=ckB(v.anchorNode,v.anchorOffset,v.focusNode,v.focusOffset)}else return null;return Aku(Hog(d),e)};
_.PX=function(v,e){return _.Gk(v,e,v,e)};
_.xZ=function(v,e,d,E){return _.Gk(v,e,d,E)};
ckB=function(v,e,d,E){if(v==d)return E<e;var T;if(v.nodeType==1&&e)if(T=v.childNodes[e])v=T,e=0;else if(_.zZ(v,d))return!0;if(d.nodeType==1&&E)if(T=d.childNodes[E])d=T,E=0;else if(_.zZ(d,v))return!1;return(Ui6(v,d)||e-E)>0};var BX=function(){_.r6.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.LX)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.LX)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.LX)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.LX)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.LX)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.LX)(this.dispatchProgressEvent_,this)};
_.vM(BX,_.r6);BX.prototype.abort=function(){try{this.reader_.abort()}catch(v){throw new aqI(v,"aborting read");}};
BX.prototype.getError=function(){return this.reader_.error&&new aqI(this.reader_.error,"reading file")};
BX.prototype.dispatchProgressEvent_=function(v){this.dispatchEvent(new iI7(v,this))};
BX.prototype.disposeInternal=function(){BX.superClass_.disposeInternal.call(this);delete this.reader_};
var Ddg=function(v){var e=new BX,d=nE6(e);e.reader_.readAsArrayBuffer(v);return d},UdE=function(v){var e=new BX,d=nE6(e);
e.reader_.readAsDataURL(v);return d},nE6=function(v){var e=new lI;
v.listen("loadend",_.kB(function(d,E){var T=E.reader_.result,S=E.getError();T==null||S?d.errback(S):d.callback(T);E.dispose()},e,v));
return e};var CP=function(){_.r6.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11367_eventHandler_=new _.Im(this);this.JSC$11367_isInitialized_=!1};
_.vM(CP,_.r6);var pvi=new _.In("d"),vve=new _.In("beforedragstart"),ei7=new _.In("dragstart"),dru=new _.In("beforedragmove"),EvE=new _.In("dragmove"),TiI=new _.In("beforedragend"),SgI=new _.In("dragend"),WIu=new _.In("e");CP.prototype.isDragging=function(){return!!this.JSC$11367_dragger_};
var aoA=function(v,e){e.dlgGrowthDirection_=0;e.dlgDragHoverClass_=void 0;e.dlgDragPermission=0;v.dragLists_.push(e)},iq7=function(v,e){v.getHandleForDragItem_=e};
CP.prototype.init=function(){if(!this.JSC$11367_isInitialized_){for(var v=this.dragLists_.length,e=0;e<v;e++)for(var d=_.G5(this.dragLists_[e]),E=d.length,T=0;T<E;++T){var S=d[T],O=this.getHandleForDragItem_(S),b=_.gH(O);this.dragItemForHandle_[b]=S;this.dragItemHoverClasses_&&(this.JSC$11367_eventHandler_.listen(S,"mouseover",this.handleDragItemMouseover_),this.JSC$11367_eventHandler_.listen(S,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11367_eventHandler_.listen(O,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11367_eventHandler_.listen(O,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(S);this.JSC$11367_eventHandler_.listen(O,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11367_isInitialized_=!0}};
CP.prototype.disposeInternal=function(){this.JSC$11367_eventHandler_.dispose();for(var v=this.dragLists_.length,e=0;e<v;e++){var d=this.dragLists_[e];d.dlgGrowthDirection_=void 0;d.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;OqM(this);CP.superClass_.disposeInternal.call(this)};
var Io2=function(v,e){for(var d=v.dragLists_.length,E=0;E<d;E++){var T=v.dragLists_[E];T.dlgBounds_=Zf0(T)}d=v.dragItems_.length;for(E=0;E<d;E++)T=v.dragItems_[E],T!=e&&(T.dlgBounds_=Zf0(T))};
_.W=CP.prototype;
_.W.handlePotentialDragStart_=function(v){var e=_.gH(v.currentTarget);e=this.dragItemForHandle_[e];if(e.parentElement.dlgDragPermission!=2){this.currDragItem_=e;a:{e=this.currDragItem_;for(var d=e.cloneNode(!0),E=$h("TEXTAREA",e),T=$h("TEXTAREA",d),S=0;S<E.length;S++)T[S].value=E[S].value;switch(e.tagName){case "TR":e=_.NF("TABLE",null,_.NF("TBODY",null,d));break a;case "TD":case "TH":e=_.NF("TABLE",null,_.NF("TBODY",null,_.NF("TR",null,d)));break a;case "TEXTAREA":d.value=e.value;default:e=d;break a}e=
void 0}this.draggerEl_=e;this.draggerElClasses_&&Xh(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Bn(this.currDragItem_).body.appendChild(this.draggerEl_);d=_.C0(this.currDragItem_);e=this.draggerEl_;E=_.C0(e);if(d instanceof _.Pn){var O=d.y;d=d.x}PB(e,e.offsetLeft+(d-E.x),e.offsetTop+(Number(O)-E.y));this.JSC$11367_dragger_=new _.R9(this.draggerEl_);_.WYJ(this.JSC$11367_dragger_,this.hysteresisDistance_);
_.MC(this.JSC$11367_dragger_,"start",this.handleDragStart_,!1,this);_.MC(this.JSC$11367_dragger_,"end",this.handleDragEnd_,!1,this);_.MC(this.JSC$11367_dragger_,"earlycancel",this.JSC$11369_cleanup_,!1,this);this.dispatchEvent(new XP(pvi,this,v,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_));this.JSC$11367_dragger_.startDrag(v)}};
_.W.handleDragStart_=function(v){if(this.dispatchEvent(new XP(vve,this,v.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.uJn(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Xh(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var e=YiB(this.draggerEl_);this.draggerEl_.halfWidth=e.width/2;this.draggerEl_.halfHeight=e.height/2;e=this.draggerEl_.getBoundingClientRect();
var d=v.clientY,E=aF2(this.JSC$11367_dragger_,v.clientX);if(E>e.right){var T=this.currDragItem_.getBoundingClientRect();this.JSC$11367_dragger_.deltaX=E-(E-T.left)/T.width*e.width}d=iU7(this.JSC$11367_dragger_,d);d>e.bottom&&(this.JSC$11367_dragger_.deltaY+=d-e.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Io2(this,this.currDragItem_);this.currDragItem_.style.display="";_.MC(this.JSC$11367_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new XP(ei7,
this,v.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_))}else v.preventDefault(),this.JSC$11369_cleanup_()};
_.W.handleDragMove_=function(v){var e=_.C0(this.draggerEl_);e=new _.Pn(e.x+this.draggerEl_.halfWidth,e.y+this.draggerEl_.halfHeight);a:{var d=null;if(this.currDragItem_.style.display!="none"){d=this.currDragItem_.parentNode;var E=Zf0(d);if(bqA(e,E))break a}E=this.dragLists_.length;for(var T=0;T<E;T++){var S=this.dragLists_[T];if(S!=d&&bqA(e,S.dlgBounds_)){d=S;break a}}d=null}if(d){if(d==null)throw Error("Wd");E=0;T=!1;S=void 0;switch(d.dlgGrowthDirection_){case 0:E=e.y;var O=YgB;var b=mrB;break;case 4:T=
!0;case 2:E=e.x;O=yGE;b=mrB;break;case 5:T=!0;case 3:E=e.x,O=qg6,b=rGI}for(var Y=null,q,r=_.G5(d),h=r.length,K=0;K<h;K++){var k=r[K];if(k!=this.currDragItem_){var J=O(k.dlgBounds_);if(T){var R=hin(k,e);S===void 0&&(S=R);b(E,J)&&(q==void 0||R<S||R==S&&(b(J,q)||J==q))&&(Y=k,q=J);R<S&&(S=R)}else b(E,J)&&(q==void 0||b(J,q))&&(Y=k,q=J)}}O=Y!==null&&hin(Y,e)>S?null:Y}else O=null;if(!this.dispatchEvent(new XP(dru,this,v,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_,e,d,O)))return!1;if(d&&d.dlgDragPermission!=
1)this.currDragItem_.parentNode==d&&_.uJn(this.currDragItem_)==O||d.insertBefore(this.currDragItem_,O),this.currDragItem_.style.display="",d.dlgDragHoverClass_&&_.eM(d,d.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",b=this.dragLists_.length,q=0;q<b;q++)E=this.dragLists_[q],E.dlgDragHoverClass_&&_.p1(E,E.dlgDragHoverClass_);d!=this.currHoverList_&&(this.currHoverList_=d,Io2(this,this.currDragItem_));this.dispatchEvent(new XP(EvE,this,v,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_,
e,d,O));return!1};
_.W.JSC$11369_cleanup_=function(){OqM(this);this.JSC$11367_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var v=this.dragLists_.length,e=0;e<v;e++)this.dragLists_[e].dlgBounds_=null;v=this.dragItems_.length;for(e=0;e<v;e++)this.dragItems_[e].dlgBounds_=null};
_.W.handleDragEnd_=function(v){if(!this.dispatchEvent(new XP(TiI,this,v,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_)))return!1;OqM(this);this.dispatchEvent(new XP(SgI,this,v,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_));this.JSC$11369_cleanup_();return!0};
var OqM=function(v){_.p0(v.JSC$11367_dragger_);var e=v.draggerEl_&&v.draggerEl_.parentElement;v.draggerEl_&&_.KX(v.draggerEl_);v.currDragItem_&&v.currDragItem_.style.display=="none"&&(v.origList_.insertBefore(v.currDragItem_,v.origNextItem_),v.currDragItem_.style.display="");v.currDragItemClasses_&&v.currDragItem_?The(v.currDragItem_,v.currDragItemClasses_||[]):v.currDragItem_&&(v.currDragItem_.style.visibility="");for(var d=v.dragLists_.length,E=0;E<d;E++){var T=v.dragLists_[E];T.dlgDragHoverClass_&&
_.p1(T,T.dlgDragHoverClass_)}e&&v.dispatchEvent(new XP(WIu,v,null,v.currDragItem_,v.draggerEl_,v.JSC$11367_dragger_))};
_.W=CP.prototype;_.W.getHandleForDragItem_=function(v){return v};
_.W.handleDragItemMouseover_=function(v){Xh(v.currentTarget,this.dragItemHoverClasses_||[])};
_.W.handleDragItemMouseout_=function(v){The(v.currentTarget,this.dragItemHoverClasses_||[])};
_.W.handleDragItemHandleMouseover_=function(v){Xh(v.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.W.handleDragItemHandleMouseout_=function(v){The(v.currentTarget,this.dragItemHandleHoverClasses_||[])};
var bqA=function(v,e){return v.x>e.left&&v.x<e.left+e.width&&v.y>e.top&&v.y<e.top+e.height},hin=function(v,e){v=v.dlgBounds_;
return Math.abs(e.y-(v.top+(v.height-1)/2))},YgB=function(v){return v.top+v.height-1},yGE=function(v){return v.left+v.width-1},qg6=function(v){return v.left||0},mrB=function(v,e){return v<e},rGI=function(v,e){return v>e},XP=function(v,e,d,E,T,S){_.bI.call(this,v);
this.event=d;this.currDragItem=E;this.draggerEl=T;this.JSC$11371_dragger=S};
_.vM(XP,_.bI);_.vM(bn,_.kh);var KI0=new _.Pn(0,0);bn.prototype.JSC$11375_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
bn.prototype.JSC$11375_onMouseMove=function(v){var e=this.containerIsActuallyContent_?KI0:sa(NR(this.containerNode_)),d=this.horizontalScrolling_?this.calculateScrollDelta(v.clientX+e.x,this.scrollBounds_.left,this.scrollBounds_.width):0,E=this.calculateScrollDelta(v.clientY+e.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=d;this.scrollDelta_.y=E;!(d=!d&&!E)&&(d=this.constrainScroll_)&&(d=v.clientX+e.x,v=v.clientY+e.y,e=this.containerBounds_,d=!(e.left<=d&&e.left+e.width>=
d&&e.top<=v&&e.top+e.height>=v));d?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
bn.prototype.calculateScrollDelta=function(v,e,d){var E=0;v<e?E=-8:v>e+d&&(E=8);return E};
bn.prototype.disposeInternal=function(){bn.superClass_.disposeInternal.call(this);this.JSC$11373_eventHandler_.dispose();this.scrollTimer_.dispose()};var $ru={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"}}},zk=$ru;zk=$ru;var l0={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 jBe=function(){},nQ=function(v){if(typeof v=="number"){var e=new jBe;
e.standardOffset_=v;var d=v;if(d==0)d="Etc/GMT";else{var E=["Etc/GMT",d<0?"-":"+"];d=Math.abs(d);E.push(Math.floor(d/60)%100);d%=60;d!=0&&E.push(":",_.UU(d,2));d=E.join("")}e.timeZoneId_=d;d=v;d==0?d="UTC":(E=["UTC",d<0?"+":"-"],d=Math.abs(d),E.push(Math.floor(d/60)%100),d%=60,d!=0&&E.push(":",d),d=E.join(""));v=sBM(v);e.tzNames_=[d,d];e.tzNamesExt_={STD_LONG_NAME_GMT:v,STD_GENERIC_LOCATION:v};e.transitions_=[];return e}e=new jBe;e.timeZoneId_=v.id;e.standardOffset_=-v.std_offset;e.tzNames_=v.names;
e.tzNamesExt_=v.names_ext;e.transitions_=v.transitions;return e},sBM=function(v){var e=["GMT"];
e.push(v<=0?"+":"-");v=Math.abs(v);e.push(_.UU(Math.floor(v/60)%100,2),":",_.UU(v%60,2));return e.join("")},Nig=function(v,e){e=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes())/36E5;
for(var d=0;d<v.transitions_.length&&e>=v.transitions_[d];)d+=2;return d==0?0:v.transitions_[d-1]},kVJ=function(v,e){v=v.standardOffset_-Nig(v,e);
return v===-1440?0:v};var DY=function(v,e){this.patternParts_=[];this.JSC$11386_dateTimeSymbols_=e||q0;typeof v=="number"?LIE(this,v):Vwu(this,v)},ov7=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],HX=function(v){return v.getHours?v.getHours():0},Vwu=function(v,e){for(BTt&&(e=e.replace(/\u200f/g,""));e;){for(var d=e,E=0;E<ov7.length;++E){var T=e.match(ov7[E]);
if(T){var S=T[0];e=e.substring(S.length);E==0&&(S=="''"?S="'":(S=S.substring(1,T[1]=="'"?S.length-1:S.length),S=S.replace(/''/g,"'")));v.patternParts_.push({text:S,type:E});break}}if(d===e)throw Error("Xd`"+e);}};
DY.prototype.format=function(v,e){if(!v)throw Error("Yd");var d=e?(v.getTimezoneOffset()-kVJ(e,v))*6E4:0,E=d?new Date(v.getTime()+d):v,T=E;e&&E.getTimezoneOffset()!=v.getTimezoneOffset()&&(E=new Date(E.getTime()+(E.getTimezoneOffset()-v.getTimezoneOffset())*6E4),T=new Date(v.getTime()+(d+(d>0?-864E5:864E5))));d=[];for(var S=0;S<this.patternParts_.length;++S){var O=this.patternParts_[S].text;1==this.patternParts_[S].type?d.push(JGM(this,O,v,E,T,e)):d.push(O)}return d.join("")};
var LIE=function(v,e){if(e<4)var d=v.JSC$11386_dateTimeSymbols_.DATEFORMATS[e];else if(e<8)d=v.JSC$11386_dateTimeSymbols_.TIMEFORMATS[e-4];else if(e<12)d=v.JSC$11386_dateTimeSymbols_.DATETIMEFORMATS[e-8],d=d.replace("{1}",v.JSC$11386_dateTimeSymbols_.DATEFORMATS[e-8]),d=d.replace("{0}",v.JSC$11386_dateTimeSymbols_.TIMEFORMATS[e-8]);else if(e===12)d=v.JSC$11386_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(e===13)d=v.JSC$11386_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{LIE(v,10);return}Vwu(v,d)},A4=function(v,e){e=String(e);
v=v.JSC$11386_dateTimeSymbols_||q0;if(v.ZERODIGIT!==void 0&&!x$3){for(var d=[],E=0;E<e.length;E++){var T=e.charCodeAt(E);d.push(48<=T&&T<=57?String.fromCharCode(v.ZERODIGIT+T-48):e.charAt(E))}e=d.join("")}return e},x$3=!1,BTt=!1,MwJ=function(v,e,d,E){d=d.getFullYear();
d<=0&&E&&(d=1-d);return A4(v,GVi(d,e))},GVi=function(v,e){e==2&&(v%=100);
v<0&&e++;return _.UU(v,e)},ZX=function(v){if(!(v.getHours&&v.getSeconds&&v.getMinutes))throw Error("Zd");
},twu=function(v,e){ZX(e);
e=HX(e);return v.JSC$11386_dateTimeSymbols_.AMPMS[e>=12&&e<24?1:0]},JGM=function(v,e,d,E,T,S){var O=e.length;
switch(e.charAt(0)){case "G":return d=E.getFullYear()>0?1:0,O>=4?v.JSC$11386_dateTimeSymbols_.ERANAMES[d]:v.JSC$11386_dateTimeSymbols_.ERAS[d];case "y":return MwJ(v,O,E,!0);case "Y":return d=(new Date(RXn(E.getFullYear(),E.getMonth(),E.getDate(),v.JSC$11386_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,v.JSC$11386_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),O==2&&(d%=100),A4(v,GVi(d,O));case "u":return MwJ(v,O,E,!1);case "M":a:switch(d=E.getMonth(),O){case 5:O=v.JSC$11386_dateTimeSymbols_.NARROWMONTHS[d];
break a;case 4:O=v.JSC$11386_dateTimeSymbols_.MONTHS[d];break a;case 3:O=v.JSC$11386_dateTimeSymbols_.SHORTMONTHS[d];break a;default:O=A4(v,_.UU(d+1,O))}return O;case "k":return ZX(T),A4(v,_.UU(HX(T)||24,O));case "S":return A4(v,(T.getMilliseconds()/1E3).toFixed(Math.min(3,O)).slice(2)+(O>3?_.UU(0,O-3):""));case "E":return d=E.getDay(),O>=4?v.JSC$11386_dateTimeSymbols_.WEEKDAYS[d]:v.JSC$11386_dateTimeSymbols_.SHORTWEEKDAYS[d];case "a":return twu(v,T);case "b":return twu(v,T);case "B":return twu(v,
T);case "h":return ZX(T),A4(v,_.UU(HX(T)%12||12,O));case "K":return ZX(T),A4(v,_.UU(HX(T)%12,O));case "H":return ZX(T),A4(v,_.UU(HX(T),O));case "c":a:switch(d=E.getDay(),O){case 5:O=v.JSC$11386_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[d];break a;case 4:O=v.JSC$11386_dateTimeSymbols_.STANDALONEWEEKDAYS[d];break a;case 3:O=v.JSC$11386_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[d];break a;default:O=A4(v,_.UU(d,1))}return O;case "L":a:switch(d=E.getMonth(),O){case 5:O=v.JSC$11386_dateTimeSymbols_.STANDALONENARROWMONTHS[d];
break a;case 4:O=v.JSC$11386_dateTimeSymbols_.STANDALONEMONTHS[d];break a;case 3:O=v.JSC$11386_dateTimeSymbols_.STANDALONESHORTMONTHS[d];break a;default:O=A4(v,_.UU(d+1,O))}return O;case "Q":return d=Math.floor(E.getMonth()/3),O<4?v.JSC$11386_dateTimeSymbols_.SHORTQUARTERS[d]:v.JSC$11386_dateTimeSymbols_.QUARTERS[d];case "d":return A4(v,_.UU(E.getDate(),O));case "m":return ZX(T),A4(v,_.UU(T.getMinutes?T.getMinutes():0,O));case "s":return ZX(T),A4(v,_.UU(T.getSeconds(),O));case "v":return(S||nQ(d.getTimezoneOffset())).timeZoneId_;
case "V":return v=S||nQ(d.getTimezoneOffset()),O<=2?v.timeZoneId_:Nig(v,d)>0?v.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?v.tzNamesExt_.DST_GENERIC_LOCATION:v.tzNamesExt_.DST_GENERIC_LOCATION:v.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?v.tzNamesExt_.STD_GENERIC_LOCATION:v.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return d=RXn(T.getFullYear(),T.getMonth(),T.getDate(),v.JSC$11386_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,v.JSC$11386_dateTimeSymbols_.FIRSTDAYOFWEEK),A4(v,_.UU(Math.floor(Math.round((d-(new Date((new Date(d)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,O));case "z":return v=S||nQ(d.getTimezoneOffset()),O<4?v.tzNames_[Nig(v,d)>0?2:0]:v.tzNames_[Nig(v,d)>0?3:1];case "Z":return e=S||nQ(d.getTimezoneOffset()),O<4?(O=-kVJ(e,d),v=[O<0?"-":"+"],O=Math.abs(O),v.push(_.UU(Math.floor(O/60)%100,2),_.UU(O%60,2)),O=v.join("")):O=A4(v,sBM(kVJ(e,d))),O;default:return""}};var foe=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,RiA=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,lEO=function(v){this.patternParts_=[];this.JSC$11395_dateTimeSymbols_=q0;if(typeof v=="number"){v>11&&(v=10);if(v<4)var e=this.JSC$11395_dateTimeSymbols_.DATEFORMATS[v];else v<8?e=this.JSC$11395_dateTimeSymbols_.TIMEFORMATS[v-4]:(e=this.JSC$11395_dateTimeSymbols_.DATETIMEFORMATS[v-8],e=e.replace("{1}",this.JSC$11395_dateTimeSymbols_.DATEFORMATS[v-8]),e=e.replace("{0}",this.JSC$11395_dateTimeSymbols_.TIMEFORMATS[v-
8]));PhB(this,e)}else PhB(this,v)},PhB=function(v,e){for(var d=!1,E="",T=0;T<e.length;T++){var S=e.charAt(T);
if(foe.test(S))for(E.length>0&&(v.patternParts_.push({text:E,count:0,abutStart:!1,numeric:!1}),E=""),v.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});T<e.length-1&&e.charAt(T+1)==" ";)T++;else if(d)S=="'"?T+1<e.length&&e.charAt(T+1)=="'"?(E+="'",T++):d=!1:E+=S;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(S)>=0){E.length>0&&(v.patternParts_.push({text:E,count:0,abutStart:!1,numeric:!1}),E="");for(var O=e.charAt(T),b=T+1;b<e.length&&e.charAt(b)==O;)b++;O=b-T;O<=0?b=!1:(b="MydhHmsSDkK".indexOf(S),
b=b>0||b==0&&O<3);v.patternParts_.push({text:S,count:O,abutStart:!1,numeric:b});T+=O-1}else S=="'"?T+1<e.length&&e.charAt(T+1)=="'"?(E+="'",T++):d=!0:E+=S}E.length>0&&v.patternParts_.push({text:E,count:0,abutStart:!1,numeric:!1});e=!1;for(d=0;d<v.patternParts_.length;d++)v.patternParts_[d].numeric?!e&&d+1<v.patternParts_.length&&v.patternParts_[d+1].numeric&&(e=!0,v.patternParts_[d].abutStart=!0):e=!1};
lEO.prototype.parse=function(v,e,d){var E=!1,T=!1;d&&(E=d.predictive||!1,T=d.validate||!1);if(E)for(d=0;d<this.patternParts_.length;d++){var S=this.patternParts_[d];if(S.count>0&&("abBhHkKm".indexOf(S.text.charAt(0))<0||S.count>2||S.abutStart))throw Error("$d`"+S.text.charAt(0));}S=new xr7;d=[0];S.dayPeriodIndex=-1;for(var O=0;O<this.patternParts_.length&&!(E&&d[0]>=v.length);O++){if(this.patternParts_[O].count==0){a:{var b=v;var Y=d,q=this.patternParts_[O],r=E;if(q.text.match(foe)!=null){if(q=Y[0],
Bin(b,Y),Y[0]>q){b=!0;break a}}else{if(b.indexOf(q.text,Y[0])==Y[0]){Y[0]+=q.text.length;b=!0;break a}if(r&&q.text.indexOf(b.substring(Y[0]))==0){Y[0]+=b.length-Y[0];b=!0;break a}}b=!1}if(b)continue;return 0}if(this.patternParts_[O].abutStart){a:{Y=v;q=d;r=O;var h=q[0],K=0;for(b=r;b<this.patternParts_.length;b++){var k=this.patternParts_[b],J=k.count;if(J===0)break;if(b==r&&(J-=K,K++,J==0)){b=0;break a}var R=b>r&&k.numeric,B=q[0];if(!Ch0(this,Y,q,k,J,S,!1)||R&&q[0]-B<J)b=r-1,q[0]=h}b-=r}if(b<=0)return 0;
O+=b-1}else if(!Ch0(this,v,d,this.patternParts_[O],0,S,E))return 0}a:{v=T;if(e==null)throw Error("ae");S.era!=void 0&&S.year!=void 0&&S.era==0&&S.year>0&&(S.year=-(S.year-1));S.year!=void 0&&e.setFullYear(S.year);E=e.getDate();e.setDate(1);S.month!=void 0&&e.setMonth(S.month);S.day!=void 0?e.setDate(S.day):(T=yDt(e.getFullYear(),e.getMonth()),e.setDate(E>T?T:E));typeof e.setHours==="function"&&(S.hours==void 0&&(S.hours=e.getHours()),S.hours<12&&(S.ampm!=void 0&&S.ampm>0?S.hours+=12:S.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(S.dayPeriodName)||["night1","night2"].includes(S.dayPeriodName)&&S.hours>=6)&&(S.hours+=12)),e.setHours(S.hours));typeof e.setMinutes==="function"&&S.minutes!=void 0&&e.setMinutes(S.minutes);typeof e.setSeconds==="function"&&S.seconds!=void 0&&e.setSeconds(S.seconds);typeof e.setMilliseconds==="function"&&S.milliseconds!=void 0&&e.setMilliseconds(S.milliseconds);if(v&&(S.year&&S.year!=e.getFullYear()||S.month&&S.month!=
e.getMonth()||S.day&&S.day!=e.getDate()||S.hours&&S.hours>=24||S.minutes&&S.minutes>=60||S.seconds&&S.seconds>=60||S.milliseconds&&S.milliseconds>=1E3))e=!1;else{S.tzOffset!=void 0&&e.setTime(e.getTime()+(S.tzOffset-e.getTimezoneOffset())*60*1E3);S.ambiguousYear&&(v=new Date,v.setFullYear(v.getFullYear()-80),e.getTime()<v.getTime()&&e.setFullYear(v.getFullYear()+100));if(S.dayOfWeek!=void 0)if(S.day==void 0)S=(7+S.dayOfWeek-e.getDay())%7,S>3&&(S-=7),v=e.getMonth(),e.setDate(e.getDate()+S),e.getMonth()!=
v&&e.setDate(e.getDate()+(S>0?-7:7));else if(S.dayOfWeek!=e.getDay()){e=!1;break a}e=!0}}return e?d[0]:0};
var Ch0=function(v,e,d,E,T,S,O){Bin(e,d);if(E.numeric&&T>0&&d[0]+T>e.length)return!1;switch(E.text.charAt(0)){case "G":return cX(e,d,[v.JSC$11395_dateTimeSymbols_.ERAS],function(b){return S.era=b}),!0;
case "M":case "L":return XgJ(v,e,d,T,E,S);case "E":return cX(e,d,[v.JSC$11395_dateTimeSymbols_.WEEKDAYS,v.JSC$11395_dateTimeSymbols_.SHORTWEEKDAYS],function(b){return S.dayOfWeek=b});
case "B":case "b":return T=[],v=[[].concat(v.JSC$11395_dateTimeSymbols_.AMPMS)],T.push("isAm"),T.push("isPm"),e=cX(e,d,v,function(b){return S.dayPeriodIndex=b},O),S.dayPeriodName=T[S.dayPeriodIndex],O?e:!0;
case "a":return e=cX(e,d,[v.JSC$11395_dateTimeSymbols_.AMPMS],function(b){return S.ampm=b},O),O?e:!0;
case "y":return ziE(v,e,d,E,T,S);case "Q":return cX(e,d,[v.JSC$11395_dateTimeSymbols_.QUARTERS,v.JSC$11395_dateTimeSymbols_.SHORTQUARTERS],function(b){S.month=b*3;S.day=1});
case "d":return wW(v,e,d,E,T,function(b){S.day=b}),!0;
case "S":return loB(v,e,d,T,S);case "h":case "K":case "H":case "k":return e=wW(v,e,d,E,T,function(b){S.hours=E.text.charAt(0)==="h"&&b===12?0:b},O),O?e:!0;
case "m":return e=wW(v,e,d,E,T,function(b){S.minutes=b},O),O?e:!0;
case "s":return wW(v,e,d,E,T,function(b){S.seconds=b}),!0;
case "z":case "Z":case "v":return HqJ(v,e,d,S);default:return!1}},ziE=function(v,e,d,E,T,S){var O=d[0];
T=FP(v,e,d,T);T===null&&(T=FP(v,e,d,0,!0));if(T===null)return!1;T>=0&&d[0]-O==2&&E.count==2?(v=T,e=(new Date).getFullYear()-80,d=e%100,S.ambiguousYear=v==d,v+=Math.floor(e/100)*100+(v<d?100:0),S.year=v):S.year=T;return!0},XgJ=function(v,e,d,E,T,S){return T.numeric&&wW(v,e,d,T,E,function(O){S.month=O-1})?!0:cX(e,d,[v.JSC$11395_dateTimeSymbols_.MONTHS,
v.JSC$11395_dateTimeSymbols_.STANDALONEMONTHS,v.JSC$11395_dateTimeSymbols_.SHORTMONTHS,v.JSC$11395_dateTimeSymbols_.STANDALONESHORTMONTHS],function(O){S.month=O})},loB=function(v,e,d,E,T){var S=d[0];
v=FP(v,e,d,E);if(v===null)return!1;d=d[0]-S;T.milliseconds=d<3?v*Math.pow(10,3-d):Math.round(v/Math.pow(10,d-3));return!0},HqJ=function(v,e,d,E){e.indexOf("GMT",d[0])==d[0]&&(d[0]+=3);
if(d[0]>=e.length)return E.tzOffset=0,!0;var T=d[0],S=FP(v,e,d,0,!0);if(S===null)return!1;if(d[0]<e.length&&e.charAt(d[0])==":"){var O=S*60;d[0]++;S=FP(v,e,d,0);if(S===null)return!1;O+=S}else O=S,O=O<24&&d[0]-T<=3?O*60:O%100+O/100*60;E.tzOffset=-O;return!0},wW=function(v,e,d,E,T,S,O){O=O||!1;
var b=d[0];v=FP(v,e,d,T);if(v===null)return!1;if(O&&d[0]-b<E.count){if(d[0]<e.length)return!1;v*=Math.pow(10,E.count-(d[0]-b))}S(v);return!0},cX=function(v,e,d,E,T){T=T||!1;
for(var S,O=0;O<d.length;O++){S=e;for(var b=d[O],Y=T,q=0,r=null,h=v.substring(S[0]).toLowerCase(),K=0;K<b.length;K++){var k=b[K].toLowerCase();if(Y&&k.indexOf(h)==0){q=h.length;r=K;break}b[K].length>q&&h.indexOf(k)==0&&(q=b[K].length,r=K)}r!==null&&(S[0]+=q);S=r;if(S!==null)return E(S),!0}return!1},Bin=function(v,e){(v=v.substring(e[0]).match(RiA))&&(e[0]+=v[0].length)},FP=function(v,e,d,E,T){e=E>0?e.substring(0,d[0]+E):e;
T=T||!1;if(v.JSC$11395_dateTimeSymbols_.ZERODIGIT){E=[];for(var S=d[0];S<e.length;S++){var O=e.charCodeAt(S)-v.JSC$11395_dateTimeSymbols_.ZERODIGIT;E.push(0<=O&&O<=9?String.fromCharCode(O+48):e.charAt(S))}e=E.join("")}else e=e.substring(d[0]);v=e.match(new RegExp("^"+(T?"[+-]?":"")+"\\d+"));if(!v)return null;d[0]+=v[0].length;return parseInt(v[0],10)},xr7=function(){};
xr7.prototype.ambiguousYear=!1;_.AGJ={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 Zqg={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"},cGu=Zqg,wgu=Zqg;wgu=cGu=Zqg;var QBn,Qe,u0,Sfj,gW,FI0;
_.QR=function(v,e,d,E){var T;if(T=e){a:if(e&&e.length===3){for(T=0;T<3;T++){var S=e[T];if(S<"A"||S>"Z"&&S<"a"||S>"z"){T=!1;break a}}T=!0}else T=!1;T=!T}if(T)throw new TypeError("be");this.intlCurrencyCode_=e?e.toUpperCase():null;this.currencyStyle_=d||0;this.overrideNumberFormatSymbols_=E||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_=Qe(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof v==="number")switch(v){case 1:gW(this,Qe(this).DECIMAL_PATTERN);break;case 2:gW(this,Qe(this).SCIENTIFIC_PATTERN);break;case 3:gW(this,Qe(this).PERCENT_PATTERN);break;case 4:v=Qe(this).CURRENCY_PATTERN;e=["0"];if(d=
l0[u0(this)]){d=d[0]&7;if(d>0)for(e.push("."),E=0;E<d;E++)e.push("0");v=v.replace(/0.00/g,e.join(""))}gW(this,v);break;case 5:FI0(this,1);break;case 6:FI0(this,2);break;default:throw Error("ee");}else gW(this,v)};
QBn=!1;Qe=function(v){return v.overrideNumberFormatSymbols_||(QBn?wgu:cGu)};
u0=function(v){return v.intlCurrencyCode_||Qe(v).DEF_CURRENCY_CODE};
Sfj=function(v,e){if(e>308)throw Error("de`"+e);v.maximumFractionDigits_=e;return v};
gW=function(v,e){var d=[0];v.positivePrefix_=gv6(v,e,d);for(var E=d[0],T=-1,S=0,O=0,b=0,Y=-1,q=e.length,r=!0;d[0]<q&&r;d[0]++)switch(e.charAt(d[0])){case "#":O>0?b++:S++;Y>=0&&T<0&&Y++;break;case "0":if(b>0)throw Error("ke`"+e);O++;Y>=0&&T<0&&Y++;break;case ",":Y>0&&v.groupingArray_.push(Y);Y=0;break;case ".":if(T>=0)throw Error("le`"+e);T=S+O+b;break;case "E":if(v.useExponentialNotation_)throw Error("me`"+e);v.useExponentialNotation_=!0;v.minExponentDigits_=0;d[0]+1<q&&e.charAt(d[0]+1)=="+"&&(d[0]++,
v.useSignForPositiveExponent_=!0);for(;d[0]+1<q&&e.charAt(d[0]+1)=="0";)d[0]++,v.minExponentDigits_++;if(S+O<1||v.minExponentDigits_<1)throw Error("ne`"+e);r=!1;break;default:d[0]--,r=!1}O==0&&S>0&&T>=0&&(O=T,O==0&&O++,b=S-O,S=O-1,O=1);if(T<0&&b>0||T>=0&&(T<S||T>S+O)||Y==0)throw Error("oe`"+e);b=S+O+b;v.maximumFractionDigits_=T>=0?b-T:0;T>=0&&(v.minimumFractionDigits_=S+O-T,v.minimumFractionDigits_<0&&(v.minimumFractionDigits_=0));v.minimumIntegerDigits_=(T>=0?T:b)-S;v.useExponentialNotation_&&(v.maximumIntegerDigits_=
S+v.minimumIntegerDigits_,v.maximumFractionDigits_==0&&v.minimumIntegerDigits_==0&&(v.minimumIntegerDigits_=1));v.groupingArray_.push(Math.max(0,Y));v.decimalSeparatorAlwaysShown_=T==0||T==b;E=d[0]-E;v.positiveSuffix_=gv6(v,e,d);d[0]<e.length&&e.charAt(d[0])==";"?(d[0]++,v.multiplier_!=1&&(v.negativePercentSignExpected_=!0),v.negativePrefix_=gv6(v,e,d),d[0]+=E,v.negativeSuffix_=gv6(v,e,d)):(v.negativePrefix_+=v.positivePrefix_,v.negativeSuffix_+=v.positiveSuffix_)};
FI0=function(v,e){v.compactStyle_=e;gW(v,Qe(v).DECIMAL_PATTERN);v.minimumFractionDigits_=0;Sfj(v,2);if(v.minimumFractionDigits_>0)throw Error("ce");v.significantDigits_=2};
_.QR.prototype.parse=function(v,e){e=e||[0];if(this.compactStyle_!==0)throw Error("fe");v=v.replace(/ |\u202f/g,"\u00a0");var d=v.indexOf(this.positivePrefix_,e[0])==e[0],E=v.indexOf(this.negativePrefix_,e[0])==e[0];d&&E&&(this.positivePrefix_.length>this.negativePrefix_.length?E=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(d=!1));d?e[0]+=this.positivePrefix_.length:E&&(e[0]+=this.negativePrefix_.length);if(v.indexOf(Qe(this).INFINITY,e[0])==e[0]){e[0]+=Qe(this).INFINITY.length;var T=
Infinity}else{T=v;var S=!1,O=!1,b=!1,Y=-1,q=1,r=Qe(this).DECIMAL_SEP,h=Qe(this).GROUP_SEP,K=Qe(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ge");h=h.replace(/\u202f/g,"\u00a0");for(var k="";e[0]<T.length;e[0]++){var J=T.charAt(e[0]),R=ueE(this,J);if(R>=0&&R<=9)k+=R,b=!0;else if(J==r.charAt(0)){if(S||O)break;k+=".";S=!0}else if(J==h.charAt(0)&&("\u00a0"!=h.charAt(0)||e[0]+1<T.length&&ueE(this,T.charAt(e[0]+1))>=0)){if(S||O)break}else if(J==K.charAt(0)){if(O)break;k+="E";O=!0;Y=e[0]}else if(J==
"+"||J=="-"){if(b&&Y!=e[0]-1)break;k+=J}else if(this.multiplier_==1&&J==Qe(this).PERCENT.charAt(0)){if(q!=1)break;q=100;if(b){e[0]++;break}}else if(this.multiplier_==1&&J==Qe(this).PERMILL.charAt(0)){if(q!=1)break;q=1E3;if(b){e[0]++;break}}else break}this.multiplier_!=1&&(q=this.multiplier_);T=parseFloat(k)/q}if(d){if(v.indexOf(this.positiveSuffix_,e[0])!=e[0])return NaN;e[0]+=this.positiveSuffix_.length}else if(E){if(v.indexOf(this.negativeSuffix_,e[0])!=e[0])return NaN;e[0]+=this.negativeSuffix_.length}return E?
-T:T};
_.QR.prototype.format=function(v){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("he");if(isNaN(v))return Qe(this).NAN;var e=[];var d=v;if(this.compactStyle_==0)d=nP;else{d=Math.abs(d);var E=nvI(this,d<=1?0:Drc(d)).divisorBase;d=nvI(this,E+Drc(Ur6(this,DX(d,-E)).intValue))}v=DX(v,-d.divisorBase);(E=v<0||v==0&&1/v<0)?d.negative_prefix?e.push(d.negative_prefix):(e.push(d.prefix),e.push(this.negativePrefix_)):(e.push(d.prefix),e.push(this.positivePrefix_));if(isFinite(v))if(v*=
E?-1:1,v*=this.multiplier_,this.useExponentialNotation_){var T=v;if(T==0)pgE(this,T,this.minimumIntegerDigits_,e),vJE(this,0,e);else{var S=Math.floor(Math.log(T)/Math.log(10)+2E-15);T=DX(T,-S);var O=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(O=S%this.maximumIntegerDigits_,O<0&&(O=this.maximumIntegerDigits_+O),T=DX(T,O),S-=O,O=1):this.minimumIntegerDigits_<1?(S++,T=DX(T,-1)):(S-=this.minimumIntegerDigits_-1,T=DX(T,this.minimumIntegerDigits_-
1));pgE(this,T,O,e);vJE(this,S,e)}}else pgE(this,v,this.minimumIntegerDigits_,e);else e.push(Qe(this).INFINITY);E?d.negative_suffix?e.push(d.negative_suffix):(isFinite(v)&&e.push(d.suffix),e.push(this.negativeSuffix_)):(isFinite(v)&&e.push(d.suffix),e.push(this.positiveSuffix_));return e.join("")};
var Ur6=function(v,e){var d=DX(e,v.maximumFractionDigits_);v.significantDigits_>0&&(d=e46(d,v.significantDigits_,v.maximumFractionDigits_));d=Math.round(d);if(isFinite(d)){var E=Math.floor(DX(d,-v.maximumFractionDigits_));d=Math.floor(d-DX(E,v.maximumFractionDigits_));if(d<0||d>=DX(1,v.maximumFractionDigits_))E=Math.round(e),d=0}else E=e,d=0;return{intValue:E,fracValue:d}},pgE=function(v,e,d,E){if(v.minimumFractionDigits_>v.maximumFractionDigits_)throw Error("he");
E||(E=[]);e=Ur6(v,e);var T=e.intValue,S=e.fracValue,O=v.minimumFractionDigits_>0||S>0||!1;e=v.minimumFractionDigits_;O&&(e=v.minimumFractionDigits_);for(var b="",Y=T;Y>1E20;)b="0"+b,Y=Math.round(DX(Y,-1));b=Y+b;var q=Qe(v).DECIMAL_SEP;Y=Qe(v).ZERO_DIGIT.codePointAt(0);var r=b.length,h=0;if(T>0||d>0){for(T=r;T<d;T++)E.push(String.fromCodePoint(Y));if(v.groupingArray_.length>=2)for(d=1;d<v.groupingArray_.length;d++)h+=v.groupingArray_[d];d=r-h;if(d>0){T=v.groupingArray_;h=r=0;for(var K,k=Qe(v).GROUP_SEP,
J=b.length,R=0;R<J;R++)if(E.push(String.fromCodePoint(Y+Number(b.charAt(R)))),J-R>1)if(K=T[h],R<d){var B=d-R;(K===1||K>0&&B%K===1)&&E.push(k)}else h<T.length&&(R===d?h+=1:K===R-d-r+1&&(E.push(k),r+=K,h+=1))}else{d=b;b=v.groupingArray_;T=Qe(v).GROUP_SEP;K=d.length;k=[];for(r=b.length-1;r>=0&&K>0;r--){h=b[r];for(J=0;J<h&&K-J-1>=0;J++)k.push(String.fromCodePoint(Y+Number(d.charAt(K-J-1))));K-=h;K>0&&k.push(T)}E.push.apply(E,k.reverse())}}else O||E.push(String.fromCodePoint(Y));(v.decimalSeparatorAlwaysShown_||
O)&&E.push(q);S=String(S);O=S.split("e+");O.length==2&&(S=String(e46(parseFloat(O[0]),v.significantDigits_,1)),S=S.replace(".",""),S+=(0,_.ftc)("0",parseInt(O[1],10)-S.length+1));v.maximumFractionDigits_+1>S.length&&(S="1"+(0,_.ftc)("0",v.maximumFractionDigits_-S.length)+S);for(v=S.length;S.charAt(v-1)=="0"&&v>e+1;)v--;for(e=1;e<v;e++)E.push(String.fromCodePoint(Y+Number(S.charAt(e))))},vJE=function(v,e,d){d.push(Qe(v).EXP_SYMBOL);
e<0?(e=-e,d.push(Qe(v).MINUS_SIGN)):v.useSignForPositiveExponent_&&d.push(Qe(v).PLUS_SIGN);e=""+e;for(var E=Qe(v).ZERO_DIGIT,T=e.length;T<v.minExponentDigits_;T++)d.push(E);v=E.codePointAt(0)-dCE;for(E=0;E<e.length;E++)d.push(String.fromCodePoint(v+e.codePointAt(E)))},ueE=function(v,e){e=e.codePointAt(0);
if(48<=e&&e<58)return e-48;v=Qe(v).ZERO_DIGIT.codePointAt(0);return v<=e&&e<v+10?e-v:-1},dCE="0".codePointAt(0),gv6=function(v,e,d){for(var E="",T=!1,S=e.length;d[0]<S;d[0]++){var O=e.charAt(d[0]);
if(O=="'")d[0]+1<S&&e.charAt(d[0]+1)=="'"?(d[0]++,E+="'"):T=!T;else if(T)E+=O;else switch(O){case "#":case "0":case ",":case ".":case ";":return E;case "\u00a4":if(d[0]+1<S&&e.charAt(d[0]+1)=="\u00a4")d[0]++,E+=u0(v);else switch(v.currencyStyle_){case 0:O=u0(v);E+=O in l0?l0[O][1]:O;break;case 2:O=u0(v);var b=l0[O];E+=b?O==b[1]?O:O+" "+b[1]:O;break;case 1:O=u0(v),E+=O in l0?l0[O][2]:O}break;case "%":if(!v.negativePercentSignExpected_&&v.multiplier_!=1)throw Error("ie");if(v.negativePercentSignExpected_&&
v.multiplier_!=100)throw Error("je");v.multiplier_=100;v.negativePercentSignExpected_=!1;E+=Qe(v).PERCENT;break;case "\u2030":if(!v.negativePercentSignExpected_&&v.multiplier_!=1)throw Error("ie");if(v.negativePercentSignExpected_&&v.multiplier_!=1E3)throw Error("je");v.multiplier_=1E3;v.negativePercentSignExpected_=!1;E+=Qe(v).PERMILL;break;default:E+=O}}return E},nP={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},nvI=function(v,e){v=v.compactStyle_==1?zk.COMPACT_DECIMAL_SHORT_PATTERN:zk.COMPACT_DECIMAL_LONG_PATTERN;v==null&&(v=zk.COMPACT_DECIMAL_SHORT_PATTERN);if(e<3)return nP;e=Math.min(14,e);var d=v[DX(1,e)];for(--e;!d&&e>=3;)d=v[DX(1,e)],e--;if(!d)return nP;d=d.other;var E=v="",T=d.indexOf(";");T>=0&&(d=d.substring(0,T),T=d.substring(T+1))&&(E=/([^0]*)(0+)(.*)/.exec(T),v=E[1],E=E[3]);return d&&d!="0"?(d=/([^0]*)(0+)(.*)/.exec(d))?{divisorBase:e+
1-(d[2].length-1),negative_prefix:v,negative_suffix:E,prefix:d[1],suffix:d[3]}:nP:nP},Drc=function(v){if(!isFinite(v))return v>0?v:0;
for(var e=0;(v/=10)>=1;)e++;return e},DX=function(v,e){if(!v||!isFinite(v)||e==0)return v;
v=String(v).split("e");return parseFloat(v[0]+"e"+(parseInt(v[1]||0,10)+e))},EJu=function(v,e){return v&&isFinite(v)?DX(Math.round(DX(v,e)),-e):v},e46=function(v,e,d){if(!v)return v;
e=e-Drc(v)-1;return e<-d?EJu(v,-d):EJu(v,e)};var TCn=function(v){return v%10==1&&v%100!=11?"one":v%10==2&&v%100!=12?"two":v%10==3&&v%100!=13?"few":"other"},S_c=TCn;
S_c=TCn;var W50;W50=function(v,e){var d=v|0;if(void 0===e){e=Math;var E=e.min,T=v+"",S=T.indexOf(".");e=E.call(e,S===-1?0:T.length-S-1,3)}E=Math.pow(10,e);v={v:e,f:(v*E|0)%E};return d==1&&v.v==0?"one":"other"};
_.Uo=W50;_.Uo=W50;var aIc,i1e,O1e,b12,Y_n;_.II2=function(v){this.JSC$11438_pattern_=v;this.parsedPattern_=this.literals_=this.initialLiterals_=null;v=cGu;var e=zk;if(aIc!==v||i1e!==e)aIc=v,i1e=e,O1e=new _.QR(1);this.numberFormatter_=O1e};
aIc=null;i1e=null;O1e=null;b12=RegExp("'([{}#].*?)'","g");Y_n=RegExp("''","g");
_.II2.prototype.format=function(v){if(this.JSC$11438_pattern_){this.initialLiterals_=[];var e=mCi(this,this.JSC$11438_pattern_);this.parsedPattern_=yg6(this,e);this.JSC$11438_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Zt(this.initialLiterals_),e=[],q_I(this,this.parsedPattern_,v,!1,e),v=e.join("");this.literals_.length>0;)v=v.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else v="";return v};
var q_I=function(v,e,d,E,T){for(var S=0;S<e.length;S++)switch(e[S].type){case 4:T.push(e[S].value);break;case 3:var O=e[S].value;var b=v,Y=T,q=d[O];q===void 0?Y.push("Undefined parameter - "+O):(b.literals_.push(q),Y.push(b.buildPlaceholder_(b.literals_)));break;case 2:O=e[S].value;b=v;Y=d;q=E;var r=T,h=O.argumentIndex;Y[h]===void 0?r.push("Undefined parameter - "+h):(h=O[Y[h]],h===void 0&&(h=O.other),q_I(b,h,Y,q,r));break;case 0:O=e[S].value;rgA(v,O,d,_.Uo,E,T);break;case 1:O=e[S].value,rgA(v,O,
d,S_c,E,T)}},rgA=function(v,e,d,E,T,S){var O=e.argumentIndex,b=e.argumentOffset,Y=+d[O];
isNaN(Y)?S.push("Undefined or invalid parameter - "+O):(b=Y-b,O=e[d[O]],O===void 0&&(E=E(Math.abs(b)),O=e[E],O===void 0&&(O=e.other)),e=[],q_I(v,O,d,T,e),d=e.join(""),T?S.push(d):(v=v.numberFormatter_.format(b),S.push(d.replace(/#/g,v))))},mCi=function(v,e){var d=v.initialLiterals_,E=v.buildPlaceholder_.bind(v);
e=e.replace(Y_n,function(){d.push("'");return E(d)});
return e=e.replace(b12,function(T,S){d.push(S);return E(d)})},h4B=function(v){var e=0,d=[],E=[],T=/[{}]/g;
T.lastIndex=0;for(var S;S=T.exec(v);){var O=S.index;S[0]=="}"?(d.pop(),d.length==0&&(S={type:1},S.value=v.substring(e,O),E.push(S),e=O+1)):(d.length==0&&(e=v.substring(e,O),e!=""&&E.push({type:0,value:e}),e=O+1),d.push("{"))}v=v.substring(e);v!=""&&E.push({type:0,value:v});return E},K5A=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,$Ce=/^\s*(\w+)\s*,\s*selectordinal\s*,/,j5i=/^\s*(\w+)\s*,\s*select\s*,/,yg6=function(v,e){var d=[];
e=h4B(e);for(var E=0;E<e.length;E++){var T={};if(0==e[E].type)T.type=4,T.value=e[E].value;else if(1==e[E].type){var S=e[E].value;switch(K5A.test(S)?0:$Ce.test(S)?1:j5i.test(S)?2:/^\s*\w+\s*/.test(S)?3:5){case 2:T.type=2;T.value=s5A(v,e[E].value);break;case 0:T.type=0;T.value=NC7(v,e[E].value);break;case 1:T.type=1;T.value=kju(v,e[E].value);break;case 3:T.type=3,T.value=e[E].value}}d.push(T)}return d},s5A=function(v,e){var d="";
e=e.replace(j5i,function(b,Y){d=Y;return""});
var E={};E.argumentIndex=d;e=h4B(e);for(var T=0;T<e.length;){var S=e[T].value;T++;var O=void 0;1==e[T].type&&(O=yg6(v,e[T].value));E[S.replace(/\s/g,"")]=O;T++}return E},NC7=function(v,e){var d="",E=0;
e=e.replace(K5A,function(Y,q,r){d=q;r&&(E=parseInt(r,10));return""});
var T={};T.argumentIndex=d;T.argumentOffset=E;e=h4B(e);for(var S=0;S<e.length;){var O=e[S].value;S++;var b=void 0;1==e[S].type&&(b=yg6(v,e[S].value));T[O.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=b;S++}return T},kju=function(v,e){var d="";
e=e.replace($Ce,function(b,Y){d=Y;return""});
var E={};E.argumentIndex=d;E.argumentOffset=0;e=h4B(e);for(var T=0;T<e.length;){var S=e[T].value;T++;var O=void 0;1==e[T].type&&(O=yg6(v,e[T].value));E[S.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=O;T++}return E};
_.II2.prototype.buildPlaceholder_=function(v){return"\ufddf_"+(v.length-1).toString(10)+"_"};var L5g;
L5g={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 zrM=function(){this.rdtfSymbols_=V2M||L5g;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
zrM.prototype.format=function(v,e){a:{e=oJA(this,e);switch(this.style_){case 2:if(e.NARROW!=void 0){e=e.NARROW;break a}case 1:if(e.SHORT!=void 0){e=e.SHORT;break a}default:e=e.LONG;break a}e=void 0}if(!this.alwaysNumeric_&&e&&e.R&&e.R[""+v])v=e.R[""+v];else if(e){var d=Math.abs(v);v=(new _.II2("{N,plural,"+(v>0||v==0&&1/v==Infinity?e.F:e.P)+"}")).format({N:d})}else v="";return v};
var oJA=function(v,e){switch(e){default:case 0:return v.rdtfSymbols_.YEAR;case 1:return v.rdtfSymbols_.QUARTER;case 2:return v.rdtfSymbols_.MONTH;case 3:return v.rdtfSymbols_.WEEK;case 4:return v.rdtfSymbols_.DAY;case 5:return v.rdtfSymbols_.HOUR;case 6:return v.rdtfSymbols_.MINUTE;case 7:return v.rdtfSymbols_.SECOND}};var Jg6=function(v,e,d,E,T,S,O,b){this.x0=v;this.y0=e;this.x1=d;this.y1=E;this.x2=T;this.y2=S;this.x3=O;this.y3=b};
Jg6.prototype.clone=function(){return new Jg6(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Jg6.prototype.equals=function(v){return this.x0==v.x0&&this.y0==v.y0&&this.x1==v.x1&&this.y1==v.y1&&this.x2==v.x2&&this.y2==v.y2&&this.x3==v.x3&&this.y3==v.y3};
var Gj0=function(v,e){if(e==0)return v.x0;if(e==1)return v.x3;var d=Kf(v.x0,v.x1,e),E=Kf(v.x1,v.x2,e);v=Kf(v.x2,v.x3,e);d=Kf(d,E,e);E=Kf(E,v,e);return Kf(d,E,e)},M2g=function(v,e){var d=(e-v.x0)/(v.x3-v.x0);
if(d<=0)return 0;if(d>=1)return 1;for(var E=0,T=1,S=0,O=0;O<8;O++){S=Gj0(v,d);var b=(Gj0(v,d+1E-6)-S)/1E-6;if(Math.abs(S-e)<1E-6)return d;if(Math.abs(b)<1E-6)break;else S<e?E=d:T=d,d-=(S-e)/b}for(O=0;Math.abs(S-e)>1E-6&&O<8;O++)S<e?(E=d,d=(d+T)/2):(T=d,d=(d+E)/2),S=Gj0(v,d);return d};var UY=function(){_.r6.call(this);this.JSC$11459_name_="closure_frame"+t2J++;this.iframesForDisposal_=[];fI7[this.JSC$11459_name_]=this},pP;
_.vM(UY,_.r6);var fI7={},t2J=0,R4i=function(v,e){var d=NR(v);zdA(e,function(E,T){Array.isArray(E)||(E=[E]);_.wZ(E,function(S){S=d.JSC$9319_createDom("INPUT",{type:"hidden",name:T,value:S});v.appendChild(S)})})};
_.W=UY.prototype;_.W.JSC$11461_form_=null;_.W.JSC$11461_iframe_=null;_.W.iframeName_=null;_.W.nextIframeId_=0;_.W.JSC$11461_active_=!1;_.W.complete_=!1;_.W.success_=!1;_.W.lastContent_=null;_.W.JSC$11461_lastErrorCode_=0;_.W.iframeDisposalTimer_=null;
_.W.send=function(v,e,d,E){if(this.JSC$11461_active_)throw Error("pe");v=new _.vF(v);e=e?e.toUpperCase():"GET";d&&_.dG(v);pP||(pP=_.NF("FORM"),pP.acceptCharset="utf-8",d=pP.style,d.position="absolute",d.visibility="hidden",d.top=d.left="-10px",d.width=d.height="10px",d.overflow="hidden",document.body.appendChild(pP));this.JSC$11461_form_=pP;e=="GET"&&R4i(this.JSC$11461_form_,v.JSC$10022_queryData_);E&&R4i(this.JSC$11461_form_,E);d=v.toString();d=Fq$(d);E=this.JSC$11461_form_;d=_.zD(Jr(d));d!==void 0&&
(E.action=d);this.JSC$11461_form_.method=e;PkE(this);xCM(this)};
_.W.abort=function(v){if(this.JSC$11461_active_){var e=vA(this);if(e)if(mJ(e))e.removeAllListeners(void 0);else if(e=yQ(e)){var d=0,E;for(E in e.listeners)for(var T=e.listeners[E].concat(),S=0;S<T.length;++S)o5(T[S])&&++d}this.success_=this.JSC$11461_active_=this.complete_=!1;this.JSC$11461_lastErrorCode_=v||7;this.dispatchEvent("abort");BC0(this)}};
_.W.disposeInternal=function(){this.JSC$11461_active_&&this.abort();UY.superClass_.disposeInternal.call(this);this.JSC$11461_iframe_&&CkM(this);xCM(this);this.JSC$11461_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11461_form_=null;this.JSC$11461_lastErrorCode_=0;delete fI7[this.JSC$11459_name_]};
_.W.isComplete=function(){return this.complete_};
_.W.isSuccess=function(){return this.success_};
_.W.isActive=function(){return this.JSC$11461_active_};
_.W.getResponseText=function(){return this.lastContent_};
_.W.getLastError=function(){return _.rcI(this.JSC$11461_lastErrorCode_)};
var PkE=function(v){v.JSC$11461_active_=!0;v.complete_=!1;v.JSC$11461_lastErrorCode_=0;v.iframeName_=v.JSC$11459_name_+"_"+(v.nextIframeId_++).toString(36);v.JSC$11461_iframe_=NR(v.JSC$11461_form_).JSC$9319_createDom("IFRAME",{name:v.iframeName_,id:v.iframeName_});var e=v.JSC$11461_iframe_.style;e.visibility="hidden";e.width=e.height="10px";e.display="none";_.WM?e.marginTop=e.marginLeft="-10px":(e.position="absolute",e.top=e.left="-10px");NR(v.JSC$11461_form_).JSC$9317_document_.body.appendChild(v.JSC$11461_iframe_);
e=v.iframeName_+"_inner";var d=vsB(v.JSC$11461_iframe_);if(document.baseURI){var E=I7(e);E='<head><base href="'+I7(document.baseURI)+'"></head><body><iframe id="'+E+'" name="'+E+'"></iframe>';E=Ar(E)}else E=I7(e),E=Ar('<body><iframe id="'+E+'" name="'+E+'"></iframe>');d.write(ZB(E));_.MC(d.getElementById(e),"load",v.onIframeLoaded_,!1,v);E=$h("TEXTAREA",v.JSC$11461_form_);for(var T=0,S=E.length;T<S;T++){var O=E[T].value;Wfg(E[T])!=O&&(_.MF(E[T],O),E[T].value=O)}E=d.importNode(v.JSC$11461_form_,!0);
E.target=e;E.action=v.JSC$11461_form_.action;d.body.appendChild(E);T=$h("SELECT",v.JSC$11461_form_);S=$h("SELECT",E);O=0;for(var b=T.length;O<b;O++)for(var Y=$h("OPTION",T[O]),q=$h("OPTION",S[O]),r=0,h=Y.length;r<h;r++)q[r].selected=Y[r].selected;T=$h("INPUT",v.JSC$11461_form_);S=$h("INPUT",E);O=0;for(b=T.length;O<b;O++)if(T[O].type=="file"&&T[O].value!=S[O].value){v.JSC$11461_form_.target=e;E=v.JSC$11461_form_;break}try{v.errorHandled_=!1,E.submit(),d.close(),_.S1&&setTimeout(v.testForFirefoxSilentError_.bind(v),
250)}catch(K){_.qs(d.getElementById(e),"load",v.onIframeLoaded_,!1,v),d.close(),e$(v,2)}};
UY.prototype.onIframeLoaded_=function(){_.qs(vA(this),"load",this.onIframeLoaded_,!1,this);try{var v=this.JSC$11461_iframe_?vsB(vA(this)):null;this.complete_=!0;this.JSC$11461_active_=!1;try{var e=v.body;this.lastContent_=e.textContent||e.innerText}catch(T){var d=1}var E;d||typeof this.errorChecker_!="function"||(E=this.errorChecker_(v))&&(d=4);d?e$(this,d):(this.success_=!0,this.JSC$11461_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),BC0(this))}catch(T){e$(this,1)}};
var e$=function(v,e){v.errorHandled_||(v.success_=!1,v.JSC$11461_active_=!1,v.complete_=!0,v.JSC$11461_lastErrorCode_=e,v.dispatchEvent("complete"),v.dispatchEvent("error"),BC0(v),v.errorHandled_=!0)},BC0=function(v){CkM(v);
xCM(v);v.JSC$11461_form_=null;v.dispatchEvent("ready")},CkM=function(v){var e=v.JSC$11461_iframe_;
e&&(e.onreadystatechange=null,e.onload=null,e.onerror=null,v.iframesForDisposal_.push(e));v.iframeDisposalTimer_&&(clearTimeout(v.iframeDisposalTimer_),v.iframeDisposalTimer_=null);_.S1?v.iframeDisposalTimer_=setTimeout(v.disposeIframes_.bind(v),2E3):v.disposeIframes_();v.JSC$11461_iframe_=null;v.iframeName_=null};
UY.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var v=this.iframesForDisposal_.pop();_.KX(v)}};
var xCM=function(v){v.JSC$11461_form_&&v.JSC$11461_form_==pP&&_.VE(v.JSC$11461_form_)},vA=function(v){return v.JSC$11461_iframe_?vsB(v.JSC$11461_iframe_).getElementById(v.iframeName_+"_inner"):null};
UY.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11461_active_){var v=this.JSC$11461_iframe_?vsB(vA(this)):null;v&&!k87(v,"documentUri")?(_.qs(vA(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?e$(this,3):e$(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.ds=function(v){return v=="\r"||v=="\n"||v==" "||v=="\t"};var XzJ;_.EQ=function(v){this.errorMessage_=null;this.result_=[];this.JSC$11463_buffer_="";this.stack_=[];this.JSC$11463_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!v||!v.deliverMessageAsRawString)};
XzJ={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};_.EQ.prototype.isInputValid=function(){return this.streamState_!=3};
_.EQ.prototype.done=function(){return this.streamState_===2};
var TB=function(v,e,d){v.streamState_=3;v.errorMessage_="The stream is broken @"+v.JSC$11463_pos_+"/"+d+". With input:\n"+e;throw Error(v.errorMessage_);};
_.EQ.prototype.acceptsBinaryInput=function(){return!1};
_.EQ.prototype.parse=function(v){function e(){for(;K<v.length;)if(_.ds(v[K]))K++,S.JSC$11463_pos_++;else break;return K<q}
function d(){for(var J;;){J=v[K++];if(!J)break;S.JSC$11463_pos_++;switch(S.state_){case Y.INIT:J==="{"?S.state_=Y.OBJECT_OPEN:J==="["?S.state_=Y.ARRAY_OPEN:_.ds(J)||TB(S,v,K);continue;case Y.KEY_START:case Y.OBJECT_OPEN:if(_.ds(J))continue;if(S.state_===Y.KEY_START)O.push(Y.KEY_END);else if(J==="}"){T("{}");S.state_=E();continue}else O.push(Y.OBJECT_END);J==='"'?S.state_=Y.STRING:TB(S,v,K);continue;case Y.KEY_END:case Y.OBJECT_END:if(_.ds(J))continue;J===":"?(S.state_===Y.OBJECT_END&&(O.push(Y.OBJECT_END),
S.depth_++),S.state_=Y.VALUE):J==="}"?(S.depth_--,T(),S.state_=E()):J===","?(S.state_===Y.OBJECT_END&&O.push(Y.OBJECT_END),S.state_=Y.KEY_START):TB(S,v,K);continue;case Y.ARRAY_OPEN:case Y.VALUE:if(_.ds(J))continue;if(S.state_===Y.ARRAY_OPEN)if(S.depth_++,S.state_=Y.VALUE,J==="]"){S.depth_--;if(S.depth_===0){S.state_=Y.ARRAY_END;return}T("[]");S.state_=E();continue}else O.push(Y.ARRAY_END);J==='"'?S.state_=Y.STRING:J==="{"?S.state_=Y.OBJECT_OPEN:J==="["?S.state_=Y.ARRAY_OPEN:J==="t"?S.state_=Y.TRUE1:
J==="f"?S.state_=Y.FALSE1:J==="n"?S.state_=Y.NULL1:J!=="-"&&("0123456789".indexOf(J)!==-1?S.state_=Y.NUM_DIGIT:TB(S,v,K));continue;case Y.ARRAY_END:if(J===",")O.push(Y.ARRAY_END),S.state_=Y.VALUE,S.depth_===1&&(h=K);else if(J==="]"){S.depth_--;if(S.depth_===0)return;T();S.state_=E()}else if(_.ds(J))continue;else TB(S,v,K);continue;case Y.STRING:var R=K;a:for(;;){for(;S.unicodeCount_>0;)if(J=v[K++],S.unicodeCount_===4?S.unicodeCount_=0:S.unicodeCount_++,!J)break a;if(J==='"'&&!S.slashed_){S.state_=
E();break}if(J==="\\"&&!S.slashed_&&(S.slashed_=!0,J=v[K++],!J))break;if(S.slashed_)if(S.slashed_=!1,J==="u"&&(S.unicodeCount_=1),J=v[K++])continue;else break;b.lastIndex=K;J=b.exec(v);if(!J){K=v.length+1;break}K=J.index+1;J=v[J.index];if(!J)break}S.JSC$11463_pos_+=K-R;continue;case Y.TRUE1:if(!J)continue;J==="r"?S.state_=Y.TRUE2:TB(S,v,K);continue;case Y.TRUE2:if(!J)continue;J==="u"?S.state_=Y.TRUE3:TB(S,v,K);continue;case Y.TRUE3:if(!J)continue;J==="e"?S.state_=E():TB(S,v,K);continue;case Y.FALSE1:if(!J)continue;
J==="a"?S.state_=Y.FALSE2:TB(S,v,K);continue;case Y.FALSE2:if(!J)continue;J==="l"?S.state_=Y.FALSE3:TB(S,v,K);continue;case Y.FALSE3:if(!J)continue;J==="s"?S.state_=Y.FALSE4:TB(S,v,K);continue;case Y.FALSE4:if(!J)continue;J==="e"?S.state_=E():TB(S,v,K);continue;case Y.NULL1:if(!J)continue;J==="u"?S.state_=Y.NULL2:TB(S,v,K);continue;case Y.NULL2:if(!J)continue;J==="l"?S.state_=Y.NULL3:TB(S,v,K);continue;case Y.NULL3:if(!J)continue;J==="l"?S.state_=E():TB(S,v,K);continue;case Y.NUM_DECIMAL_POINT:J===
"."?S.state_=Y.NUM_DIGIT:TB(S,v,K);continue;case Y.NUM_DIGIT:if("0123456789.eE+-".indexOf(J)!==-1)continue;else K--,S.JSC$11463_pos_--,S.state_=E();continue;default:TB(S,v,K)}}}
function E(){var J=O.pop();return J!=null?J:Y.VALUE}
function T(J){S.depth_>1||(J||(J=h===-1?S.JSC$11463_buffer_+v.substring(r,K):v.substring(h,K)),S.deliverMessageAsRawString_?S.result_.push(J):S.result_.push(JSON.parse(J)),h=K)}
for(var S=this,O=S.stack_,b=S.stringInputPattern_,Y=XzJ,q=v.length,r=0,h=-1,K=0;K<q;)switch(S.streamState_){case 3:return TB(S,v,K),null;case 2:return e()&&TB(S,v,K),null;case 0:if(e()){var k=v[K++];S.JSC$11463_pos_++;if(k==="["){S.streamState_=1;r=K;S.state_=Y.ARRAY_OPEN;continue}else TB(S,v,K)}return null;case 1:return d(),S.depth_===0&&S.state_==Y.ARRAY_END?(S.streamState_=2,S.JSC$11463_buffer_=v.substring(K)):S.JSC$11463_buffer_=h===-1?S.JSC$11463_buffer_+v.substring(r):v.substring(h),S.result_.length>
0?(k=S.result_,S.result_=[],k):null}return null};_.vM(_.Yq,V8);m$.prototype.getValue=function(){return this.JSC$11471_value_};
m$.prototype.clone=function(){return new m$(this.JSC$11471_key_,this.JSC$11471_value_)};var S$=function(v){this.nodes_=[];if(v)a:{if(v instanceof S$){var e=v.getKeys();v=v.getValues();if(this.getCount()<=0){for(var d=this.nodes_,E=0;E<e.length;E++)d.push(new m$(e[E],v[E]));break a}}else e=_.f0.getKeys(v),v=_.f0.getValues(v);for(d=0;d<e.length;d++)this.insert(e[d],v[d])}};
_.W=S$.prototype;_.W.insert=function(v,e){var d=this.nodes_;d.push(new m$(v,e));v=d.length-1;e=this.nodes_;for(d=e[v];v>0;){var E=v-1>>1;if(e[E].JSC$11471_key_>d.JSC$11471_key_)e[v]=e[E],v=E;else break}e[v]=d};
_.W.remove=function(){var v=this.nodes_,e=v.length,d=v[0];if(!(e<=0)){if(e==1)v.length=0;else{v[0]=v.pop();v=0;e=this.nodes_;for(var E=e.length,T=e[v];v<E>>1;){var S=v*2+1,O=v*2+2;S=O<E&&e[O].JSC$11471_key_<e[S].JSC$11471_key_?O:S;if(e[S].JSC$11471_key_>T.JSC$11471_key_)break;e[v]=e[S];v=S}e[v]=T}return d.getValue()}};
_.W.peek=function(){var v=this.nodes_;if(v.length!=0)return v[0].getValue()};
_.W.getValues=function(){for(var v=this.nodes_,e=[],d=v.length,E=0;E<d;E++)e.push(v[E].getValue());return e};
_.W.getKeys=function(){for(var v=this.nodes_,e=[],d=v.length,E=0;E<d;E++)e.push(v[E].JSC$11471_key_);return e};
_.W.containsValue=function(v){return this.nodes_.some(function(e){return e.getValue()==v})};
_.W.containsKey=function(v){return this.nodes_.some(function(e){return e.JSC$11471_key_==v})};
_.W.clone=function(){return new S$(this)};
_.W.getCount=function(){return this.nodes_.length};
_.W.isEmpty=function(){return this.nodes_.length===0};
_.W.clear=function(){this.nodes_.length=0};_.WA=function(v,e){this.JSC$11477_map_={};this.JSC$11477_keys_=[];this.version_=this.size=0;var d=arguments.length;if(d>1){if(d%2)throw Error("ka");for(var E=0;E<d;E+=2)this.set(arguments[E],arguments[E+1])}else v&&this.addAll(v)};
_.W=_.WA.prototype;_.W.getCount=function(){return this.size};
_.W.getValues=function(){ax(this);for(var v=[],e=0;e<this.JSC$11477_keys_.length;e++)v.push(this.JSC$11477_map_[this.JSC$11477_keys_[e]]);return v};
_.W.getKeys=function(){ax(this);return this.JSC$11477_keys_.concat()};
_.W.containsKey=function(v){return this.has(v)};
_.W.has=function(v){return iy(this.JSC$11477_map_,v)};
_.W.containsValue=function(v){for(var e=0;e<this.JSC$11477_keys_.length;e++){var d=this.JSC$11477_keys_[e];if(iy(this.JSC$11477_map_,d)&&this.JSC$11477_map_[d]==v)return!0}return!1};
_.W.equals=function(v,e){if(this===v)return!0;if(this.size!=v.getCount())return!1;e=e||z46;ax(this);for(var d,E=0;d=this.JSC$11477_keys_[E];E++)if(!e(this.get(d),v.get(d)))return!1;return!0};
var z46=function(v,e){return v===e};
_.WA.prototype.isEmpty=function(){return this.size==0};
_.WA.prototype.clear=function(){this.JSC$11477_map_={};this.version_=this.size=this.JSC$11477_keys_.length=0};
_.WA.prototype.remove=function(v){return this.delete(v)};
_.WA.prototype.delete=function(v){return iy(this.JSC$11477_map_,v)?(delete this.JSC$11477_map_[v],--this.size,this.version_++,this.JSC$11477_keys_.length>2*this.size&&ax(this),!0):!1};
var ax=function(v){if(v.size!=v.JSC$11477_keys_.length){for(var e=0,d=0;e<v.JSC$11477_keys_.length;){var E=v.JSC$11477_keys_[e];iy(v.JSC$11477_map_,E)&&(v.JSC$11477_keys_[d++]=E);e++}v.JSC$11477_keys_.length=d}if(v.size!=v.JSC$11477_keys_.length){e={};for(E=d=0;d<v.JSC$11477_keys_.length;){var T=v.JSC$11477_keys_[d];iy(e,T)||(v.JSC$11477_keys_[E++]=T,e[T]=1);d++}v.JSC$11477_keys_.length=E}};
_.W=_.WA.prototype;_.W.get=function(v,e){return iy(this.JSC$11477_map_,v)?this.JSC$11477_map_[v]:e};
_.W.set=function(v,e){iy(this.JSC$11477_map_,v)||(this.size+=1,this.JSC$11477_keys_.push(v),this.version_++);this.JSC$11477_map_[v]=e};
_.W.addAll=function(v){if(v instanceof _.WA)for(var e=v.getKeys(),d=0;d<e.length;d++)this.set(e[d],v.get(e[d]));else for(e in v)this.set(e,v[e])};
_.W.forEach=function(v,e){for(var d=this.getKeys(),E=0;E<d.length;E++){var T=d[E],S=this.get(T);v.call(e,S,T,this)}};
_.W.clone=function(){return new _.WA(this)};
_.W.transpose=function(){for(var v=new _.WA,e=0;e<this.JSC$11477_keys_.length;e++){var d=this.JSC$11477_keys_[e];v.set(this.JSC$11477_map_[d],d)}return v};
_.W.keys=function(){return a8I(this.__iterator__(!0)).toEs6()};
_.W.values=function(){return a8I(this.__iterator__(!1)).toEs6()};
_.W.entries=function(){var v=this;return VUg(this.keys(),function(e){return[e,v.get(e)]})};
_.W.__iterator__=function(v){ax(this);var e=0,d=this.version_,E=this,T=new dy;T.next=function(){if(d!=E.version_)throw Error("qe");if(e>=E.JSC$11477_keys_.length)return Es;var S=E.JSC$11477_keys_[e++];return T3(v?S:E.JSC$11477_map_[S])};
return T};
var iy=function(v,e){return Object.prototype.hasOwnProperty.call(v,e)};var H1E=function(){this.JSC$11480_map_=new _.WA;this.JSC$11480_head_=new lI2("");this.JSC$11480_head_.next=this.JSC$11480_head_.prev=this.JSC$11480_head_},AgE=function(v,e){if(e=v.JSC$11480_map_.get(e))e.remove(),v.insert_(e);
return e};
_.W=H1E.prototype;_.W.get=function(v,e){return(v=AgE(this,v))?v.value:e};
_.W.set=function(v,e){var d=AgE(this,v);d?d.value=e:(d=new lI2(v,e),this.JSC$11480_map_.set(v,d),this.insert_(d))};
_.W.peek=function(){return this.JSC$11480_head_.next.value};
_.W.shift=function(){return Z1B(this,this.JSC$11480_head_.next)};
_.W.pop=function(){return Z1B(this,this.JSC$11480_head_.prev)};
_.W.remove=function(v){return(v=this.JSC$11480_map_.get(v))?(this.removeNode(v),!0):!1};
_.W.removeNode=function(v){v.remove();this.JSC$11480_map_.remove(v.key)};
_.W.getCount=function(){return this.JSC$11480_map_.getCount()};
_.W.isEmpty=function(){return this.JSC$11480_map_.isEmpty()};
_.W.getKeys=function(){return this.map(function(v,e){return e})};
_.W.getValues=function(){return this.map(function(v){return v})};
_.W.contains=function(v){return this.some(function(e){return e==v})};
_.W.containsKey=function(v){return this.JSC$11480_map_.containsKey(v)};
_.W.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11480_head_.prev)};
_.W.forEach=function(v,e){for(var d=this.JSC$11480_head_.next;d!=this.JSC$11480_head_;d=d.next)v.call(e,d.value,d.key,this)};
_.W.map=function(v,e){for(var d=[],E=this.JSC$11480_head_.next;E!=this.JSC$11480_head_;E=E.next)d.push(v.call(e,E.value,E.key,this));return d};
_.W.some=function(v,e){for(var d=this.JSC$11480_head_.next;d!=this.JSC$11480_head_;d=d.next)if(v.call(e,d.value,d.key,this))return!0;return!1};
_.W.every=function(v,e){for(var d=this.JSC$11480_head_.next;d!=this.JSC$11480_head_;d=d.next)if(!v.call(e,d.value,d.key,this))return!1;return!0};
_.W.insert_=function(v){v.next=this.JSC$11480_head_.next;v.prev=this.JSC$11480_head_;this.JSC$11480_head_.next=v;for(v.next.prev=v;this.getCount()>100;)this.removeNode(this.JSC$11480_head_.prev)};
var Z1B=function(v,e){v.JSC$11480_head_!=e&&v.removeNode(e);return e.value},lI2=function(v,e){this.key=v;
this.value=e};
lI2.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var cgJ=function(){S$.apply(this,arguments)};
_.V(cgJ,S$);cgJ.prototype.enqueue=function(v,e){this.insert(v,e)};var wzn=function(){var v=Error();v.name="SecurityError";throw v;},CQU=function(){return{get opener(){return null},
get closed(){return!0},get location(){wzn()},get document(){wzn()},postMessage:function(){},
close:function(){},
focus:function(){}}};var cZ0={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 Qd0={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 F5e={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(Qd0).join("|");var Q5n=function(){function v(b){b.substr(-1)!==";"&&(b+=";");return O(b)}
for(var e=Object.keys(F5e).sort(FvL),d=Object.keys(Qd0).sort(FvL),E=0,T=0;E<d.length;E++)e[T]===d[E]?(d[E]+=";?",T++):d[E]+=";";var S=new RegExp("&(?:"+d.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),O=g0M();return function(b){return String(b).replace(S,v)}}();/*

 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 gJ0={};var u2c=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"),nJe=/[\\&]/,DCJ=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),UC7=RegExp('[&<>"]',"g"),pzJ=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),vj6=function(v){return v.charCodeAt(0)===92?v.charAt(1):Q5n(v)},eg0=function(v){return nJe.test(v)?v.replace(DCJ,vj6):v},deM=function(v){try{var e,d="";
if(typeof T!=="string"){var E=T;var T=";/?:@&=+$,-_.!~*'()#"}typeof E==="undefined"&&(E=!0);var S,O=gJ0[T];if(O)var b=O;else{O=gJ0[T]=[];for(S=0;S<128;S++){var Y=String.fromCharCode(S);/^[0-9a-z]$/i.test(Y)?O.push(Y):O.push("%"+("0"+S.toString(16).toUpperCase()).slice(-2))}for(S=0;S<T.length;S++)O[T.charCodeAt(S)]=T[S];b=O}var q=0;for(e=v.length;q<e;q++){var r=v.charCodeAt(q);if(E&&r===37&&q+2<e&&/^[0-9a-f]{2}$/i.test(v.slice(q+1,q+3)))d+=v.slice(q,q+3),q+=2;else if(r<128)d+=b[r];else if(r>=55296&&
r<=57343){if(r>=55296&&r<=56319&&q+1<e){var h=v.charCodeAt(q+1);if(h>=56320&&h<=57343){d+=encodeURIComponent(v[q]+v[q+1]);q++;continue}}d+="%EF%BF%BD"}else d+=encodeURIComponent(v[q])}return d}catch(K){return v}},Ejc=function(v){switch(v){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return v}},OQ=function(v,e){return UC7.test(v)?e?v.replace(pzJ,Ejc):v.replace(UC7,Ejc):v};/*

 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 Ix;if(String.fromCodePoint)Ix=function(v){try{return String.fromCodePoint(v)}catch(e){if(e instanceof RangeError)return String.fromCharCode(65533);throw e;}};
else{var Tqc=String.fromCharCode,SG0=Math.floor;Ix=function(){var v=[],e=-1,d=arguments.length;if(!d)return"";for(var E="";++e<d;){var T=Number(arguments[e]);if(!isFinite(T)||T<0||T>1114111||SG0(T)!==T)return String.fromCharCode(65533);if(T<=65535)v.push(T);else{T-=65536;var S=(T>>10)+55296;T=T%1024+56320;v.push(S,T)}if(e+1===d||v.length>16384)E+=Tqc.apply(null,v),v.length=0}return E}};var W8n=function(v){this.root=this.current=v;this.entering=!0};
W8n.prototype.next=function(){var v=this.current,e=this.entering;if(v===null)return null;a:switch(v._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 d=!0;break a;default:d=!1}e&&d?v._firstChild?(this.current=v._firstChild,this.entering=!0):this.entering=!1:v===this.root?this.current=null:v._next===null?(this.current=
v._parent,this.entering=!1):(this.current=v._next,this.entering=!0);return{entering:e,node:v}};
var hW=function(v,e){this._type=v;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=e;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
hW.prototype.appendChild=function(v){v.unlink();v._parent=this;this._lastChild?(this._lastChild._next=v,v._prev=this._lastChild):this._firstChild=v;this._lastChild=v};
hW.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 ayc=function(v,e){e.unlink();e._next=v._next;e._next&&(e._next._prev=e);e._prev=v;v._next=e;e._parent=v._parent;e._next||(e._parent._lastChild=e)};
hW.prototype.insertBefore=function(v){v.unlink();v._prev=this._prev;v._prev&&(v._prev._next=v);v._next=this;this._prev=v;v._parent=this._parent;v._prev||(v._parent._firstChild=v)};
_.vP.Object.defineProperties(hW.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(v){this._literal=v}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(v){this._destination=v}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(v){this._title=v}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(v){this._info=v}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(v){this._level=v}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(v){this._listData.type=v}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(v){this._listData.tight=v}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(v){this._listData.start=v}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(v){this._onEnter=v}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(v){this._onExit=v}}});var urj=/[ \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,
n0L={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 iMM=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]/),
OMB=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Iy6=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),bMn=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),YGI=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),meA=/`+/,y86=/^`+/,qGA=/\.\.\./g,r87=/--+/g,hgg=/^<([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])?)*)>/,
K86=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,$eA=/^ *(?:\n *)?/,jZB=/^[ \t\n\x0b\x0c\x0d]/,sZM=/[ \t\n\x0b\x0c\x0d]+/g,NqE=/^\s/,kI7=/ *$/,L8I=/^ */,VMM=/^ *(?:\n|$)/,oj6=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),J8B=/^[^\n`\[\]\\!<&*_'"]+/m,by=function(v){var e=new hW("text");e._literal=v;return e},Yl=function(v){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=v||{}};
Yl.prototype.match=function(v){v=v.exec(this.subject.slice(this.pos));if(v===null)return null;this.pos+=v.index+v[0].length;return v[0]};
Yl.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var mk=function(v){v.match($eA);return!0},GIE=function(v,e,d){var E=0;
var T=v.pos;if(e===39||e===34)E++,v.pos++;else for(;v.peek()===e;)E++,v.pos++;if(E===0)E=null;else{var S=T===0?"\n":v.subject.charAt(T-1);var O=v.peek();O=O===-1?"\n":Ix(O);var b=NqE.test(O);O=iMM.test(O);var Y=NqE.test(S);var q=iMM.test(S);S=!b&&!(O&&!Y&&!q);b=!Y&&!(q&&!b&&!O);e===95?(Y=S&&(!b||q),O=b&&(!S||O)):(Y=e===39||e===34?S&&!b:S,O=b);v.pos=T;E={numdelims:E,can_open:Y,can_close:O}}if(!E)return!1;T=E.numdelims;O=v.pos;v.pos+=T;O=e===39?"\u2019":e===34?"\u201c":v.subject.slice(O,v.pos);O=by(O);
d.appendChild(O);v.delimiters={cc:e,numdelims:T,origdelims:T,node:O,previous:v.delimiters,next:null,can_open:E.can_open,can_close:E.can_close};v.delimiters.previous!==null&&(v.delimiters.previous.next=v.delimiters);return!0},MMn=function(v,e){e.previous!==null&&(e.previous.next=e.next);
e.next===null?v.delimiters=e.previous:e.next.previous=e.previous},tMJ=function(v,e){var d,E,T=[],S=!1;
T[95]=e;T[42]=e;T[39]=e;T[34]=e;for(d=v.delimiters;d!==null&&d.previous!==e;)d=d.previous;for(;d!==null;){var O=d.cc;if(d.can_close){var b=d.previous;for(E=!1;b!==null&&b!==e&&b!==T[O];){S=(d.can_open||b.can_close)&&(b.origdelims+d.origdelims)%3===0;if(b.cc===d.cc&&b.can_open&&!S){E=!0;break}b=b.previous}var Y=d;if(O===42||O===95)if(E){var q=d.numdelims>=2&&b.numdelims>=2?2:1;var r=b.node;var h=d.node;b.numdelims-=q;d.numdelims-=q;r._literal=r._literal.slice(0,r._literal.length-q);h._literal=h._literal.slice(0,
h._literal.length-q);var K=new hW(q===1?"emph":"strong");for(q=r._next;q&&q!==h;){var k=q._next;q.unlink();K.appendChild(q);q=k}ayc(r,K);q=b;k=d;q.next!==k&&(q.next=k,k.previous=q);b.numdelims===0&&(r.unlink(),MMn(v,b));d.numdelims===0&&(h.unlink(),b=d.next,MMn(v,d),d=b)}else d=d.next;else O===39?(d.node._literal="\u2019",E&&(b.node._literal="\u2018"),d=d.next):O===34&&(d.node._literal="\u201d",E&&(b.node.literal="\u201c"),d=d.next);E||S||(T[O]=Y.previous,Y.can_open||MMn(v,Y))}else d=d.next}for(;v.delimiters!==
null&&v.delimiters!==e;)MMn(v,v.delimiters)},fyA=function(v){v=v.match(OMB);
return v===null?null:eg0(v.substr(1,v.length-2))},RgA=function(v){var e=v.match(Iy6);
if(e===null){e=v.pos;for(var d=0,E;(E=v.peek())!==-1;)if(E===92)v.pos+=1,v.peek()!==-1&&(v.pos+=1);else if(E===40)v.pos+=1,d+=1;else if(E===41)if(d<1)break;else v.pos+=1,--d;else if(jZB.exec(Ix(E))!==null)break;else v.pos+=1;e=v.subject.substr(e,v.pos-e);return deM(eg0(e))}return deM(eg0(e.substr(1,e.length-2)))},P27=function(v){v=v.match(oj6);
return v===null||v.length>1001?0:v.length},xen=function(v,e,d,E){v.brackets!==null&&(v.brackets.bracketAfter=!0);
v.brackets={node:e,previous:v.brackets,previousDelimiter:v.delimiters,index:d,image:E,active:!0}},Bqn=function(v,e){var d;
return(d=v.match(J8B))?(v.options.smart?e.appendChild(by(d.replace(qGA,"\u2026").replace(r87,function(E){var T=0,S=0;E.length%3===0?S=E.length/3:E.length%2===0?T=E.length/2:E.length%3===2?(T=1,S=(E.length-2)/3):(T=2,S=(E.length-4)/3);E="";var O;for(O=0;O<S;O++)E+="\u2014";for(O=0;O<T;O++)E+="\u2013";return E}))):e.appendChild(by(d)),!0):!1},C20=function(v,e,d){v.subject=e;
v.pos=0;e=v.pos;var E=P27(v);if(E===0)return 0;var T=v.subject.substr(0,E);if(v.peek()===58)v.pos++;else return v.pos=e,0;mk(v);E=RgA(v);if(E===null||E.length===0)return v.pos=e,0;var S=v.pos;mk(v);var O=fyA(v);O===null&&(O="",v.pos=S);var b=!0;v.match(VMM)===null&&(O===""?b=!1:(O="",v.pos=S,b=v.match(VMM)!==null));if(!b)return v.pos=e,0;T=DFL(T);if(T==="")return v.pos=e,0;d[T]||(d[T]={destination:E,title:O});return v.pos-e},Xag=function(v,e){var d,E=v.peek();
if(E===-1)return!1;switch(E){case 10:v.pos+=1;if((d=e._lastChild)&&d.type==="text"&&d._literal[d._literal.length-1]===" "){var T=d._literal[d._literal.length-2]===" ";d._literal=d._literal.replace(kI7,"");e.appendChild(new hW(T?"linebreak":"softbreak"))}else e.appendChild(new hW("softbreak"));v.match(L8I);d=!0;break;case 92:d=v.subject;v.pos+=1;v.peek()===10?(v.pos+=1,d=new hW("linebreak"),e.appendChild(d)):bMn.test(d.charAt(v.pos))?(e.appendChild(by(d.charAt(v.pos))),v.pos+=1):e.appendChild(by("\\"));
d=!0;break;case 96:a:if(d=v.match(y86),d===null)d=!1;else{T=v.pos;for(var S;(S=v.match(meA))!==null;)if(S===d){S=new hW("code");S._literal=v.subject.slice(T,v.pos-d.length).trim().replace(sZM," ");e.appendChild(S);d=!0;break a}v.pos=T;e.appendChild(by(d));d=!0}break;case 42:case 95:d=GIE(v,E,e);break;case 39:case 34:d=v.options.smart&&GIE(v,E,e);break;case 91:d=v.pos;v.pos+=1;T=by("[");e.appendChild(T);xen(v,T,d,!1);d=!0;break;case 33:d=v.pos;v.pos+=1;v.peek()===91?(v.pos+=1,T=by("!["),e.appendChild(T),
xen(v,T,d+1,!0)):e.appendChild(by("!"));d=!0;break;case 93:var O,b=!1,Y;v.pos+=1;var q=v.pos;T=v.brackets;if(T===null)e.appendChild(by("]"));else if(T.active){d=T.image;var r=v.pos;v.peek()===40&&(v.pos++,mk(v)&&(S=RgA(v))!==null&&mk(v)&&(jZB.test(v.subject.charAt(v.pos-1))&&(O=fyA(v)),1)&&mk(v)&&v.peek()===41?(v.pos+=1,b=!0):v.pos=r);if(!b){var h=v.pos,K=P27(v);K>2?Y=v.subject.slice(h,h+K):T.bracketAfter||(Y=v.subject.slice(T.index,q));K===0&&(v.pos=r);Y&&(Y=v.refmap[DFL(Y)])&&(S=Y.destination,O=
Y.title,b=!0)}if(b){q=new hW(d?"image":"link");q._destination=S;q._title=O||"";for(S=T.node._next;S;)O=S._next,S.unlink(),q.appendChild(S),S=O;e.appendChild(q);tMJ(v,T.previousDelimiter);v.brackets=v.brackets.previous;T.node.unlink();if(!d)for(T=v.brackets;T!==null;)T.image||(T.active=!1),T=T.previous}else v.brackets=v.brackets.previous,v.pos=q,e.appendChild(by("]"))}else e.appendChild(by("]")),v.brackets=v.brackets.previous;d=!0;break;case 60:(d=v.match(hgg))?(d=d.slice(1,d.length-1),T=new hW("link"),
T._destination=deM("mailto:"+d),T._title="",T.appendChild(by(d)),e.appendChild(T),d=!0):(d=v.match(K86))?(d=d.slice(1,d.length-1),T=new hW("link"),T._destination=deM(d),T._title="",T.appendChild(by(d)),e.appendChild(T),d=!0):d=!1;d||(d=v.match(u2c),d===null?d=!1:(T=new hW("html_inline"),T._literal=d,e.appendChild(T),d=!0));break;case 38:(d=v.match(YGI))?(e.appendChild(by(Q5n(d))),d=!0):d=!1;break;default:d=Bqn(v,e)}d||(v.pos+=1,e.appendChild(by(Ix(E))));return!0};
Yl.prototype.parseInlines=function(v){this.subject=v._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Xag(this,v););v._string_content=null;tMJ(this,null)};
Yl.prototype.parse=Yl.prototype.parseInlines;var zgI=[/./,/^<(?: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")],lyI=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],HM7=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,A8A=/^[#`~*+_=<>0-9-\|]|\|/,ZMB=/[^ \t\f\v\r\n]/,c8g=/^[*+-]/,wag=/^(\d{1,9})([.)])/,F8A=/^#{1,6}(?:[ \t]+|$)/,QZJ=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,gj0=/^(?:`{3,}|~{3,})(?= *$)/,ujM=/^(?:=+|-+)[ \t]*$/,nj0=/\r\n|\n|\r/,pBL=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,vNt=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,De2={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(v){return v!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(v,e){for(v=e._firstChild;v;){if(UFM(v)&&v._next){e._listData.tight=!1;break}for(var d=v._firstChild;d;){if(UFM(d)&&(v._next||d._next)){e._listData.tight=!1;break}d=d._next}v=v._next}},
canContain:function(v){return v==="item"},
acceptsLines:!1},block_quote:{continue:function(v){var e=v.currentLine;if(v.indented||qn(e,v.nextNonspace)!==62)return 1;yO(v);qS(v,1,!1);yI(qn(e,v.offset))&&qS(v,1,!0);return 0},
finalize:function(){},
canContain:function(v){return v!=="item"},
acceptsLines:!1},item:{continue:function(v,e){if(v.blank){if(e._firstChild==null)return 1;yO(v)}else if(v.indent>=e._listData.markerOffset+e._listData.padding)qS(v,e._listData.markerOffset+e._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(v){return v!=="item"&&!ewt(v)},
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(v,e){var d=v.currentLine,E=v.indent;if(e._isFenced){if((E=E<=3&&d.charAt(v.nextNonspace)===e._fenceChar&&d.slice(v.nextNonspace).match(gj0))&&E[0].length>=e._fenceLength)return v.finalize(e,v.lineNumber),2;for(e=e._fenceOffset;e>0&&yI(qn(d,v.offset));)qS(v,1,!0),e--}else if(E>=4)qS(v,4,!0);else if(v.blank)yO(v);else return 1;return 0},
finalize:function(v,e){if(e._isFenced){var d=e._string_content,E=d.indexOf("\n");v=d.slice(0,E);d=d.slice(E+1);e.info=eg0(v.trim());e._literal=d}else e._literal=e._string_content.replace(/(\n *)+$/,"\n");e._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(v,e){return!v.blank||e._htmlBlockType!==6&&e._htmlBlockType!==7?0:1},
finalize:function(v,e){e._literal=e._string_content.replace(/(\n *)+$/,"");e._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(v){return v.blank?1:0},
finalize:function(v,e){for(var d,E=!1;qn(e._string_content,0)===91&&(d=C20(v.inlineParser,e._string_content,v.refmap));)e._string_content=e._string_content.slice(d),E=!0;E&&!ZMB.test(e._string_content)&&e.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(v){return r3(v.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(v){return v=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(v,e){if(!e._rowIsDelimiter){v=e._isHeader?"th":"td";for(var d=e._parent._tableColumns,E=e._string_content,T=0,S="",O,b=e._sourcepos[0][0];T<E.length;){switch(E[T]){case "|":O&&(O._string_content=S.trim(),S="",O=null,d--,d<=0&&(T=E.length));break;default:if(!O){O=new hW(v,[[b,T],[b,T]]);var Y=e._parent._columnAlignment,q=e._parent._tableColumns-d;Y&&q<=Y.length&&q>=0&&(O._alignment=Y[q]);e.appendChild(O)}S+=E[T];O._sourcepos[1][1]=T}T++}O&&(O._string_content=S.trim());e._string_content=
""}},
canContain:function(v){return v!=="row"},
acceptsLines:!1}},UeB=[function(v){if(v.indented||qn(v.currentLine,v.nextNonspace)!==62)return 0;yO(v);qS(v,1,!1);yI(qn(v.currentLine,v.offset))&&qS(v,1,!0);rs(v);v.addChild("block_quote",v.nextNonspace);return 1},
function(v){var e;if(!v.indented&&(e=v.currentLine.slice(v.nextNonspace).match(F8A))){yO(v);qS(v,e[0].length,!1);rs(v);var d=v.addChild("heading",v.nextNonspace);d.level=e[0].trim().length;d._string_content=v.currentLine.slice(v.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");qS(v,v.currentLine.length-v.offset);return 2}return 0},
function(v){var e;if(!v.indented&&(e=v.currentLine.slice(v.nextNonspace).match(QZJ))){var d=e[0].length;rs(v);var E=v.addChild("code_block",v.nextNonspace);E._isFenced=!0;E._fenceLength=d;E._fenceChar=e[0][0];E._fenceOffset=v.indent;yO(v);qS(v,d,!1);return 2}return 0},
function(v,e){if(!v.indented&&qn(v.currentLine,v.nextNonspace)===60){var d=v.currentLine.slice(v.nextNonspace),E;for(E=1;E<=7;E++)if(zgI[E].test(d)&&(E<7||e.type!=="paragraph"))return rs(v),v.addChild("html_block",v.offset)._htmlBlockType=E,2}return 0},
function(v,e){var d;if(!v.indented&&e.type==="paragraph"&&(d=v.currentLine.slice(v.nextNonspace).match(ujM))){rs(v);var E=new hW("heading",e.sourcepos);E.level=d[0][0]==="="?1:2;E._string_content=e._string_content;ayc(e,E);e.unlink();v.tip=E;qS(v,v.currentLine.length-v.offset,!1);return 2}return 0},
function(v){return!v.indented&&HM7.test(v.currentLine.slice(v.nextNonspace))?(rs(v),v.addChild("thematic_break",v.nextNonspace),qS(v,v.currentLine.length-v.offset,!1),2):0},
function(v,e){var d,E;if(!(E=v.indented&&e.type!=="list")){a:{var T=e,S=v.currentLine.slice(v.nextNonspace);E={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:v.indent};if(d=S.match(c8g))E.type="bullet",E.bulletChar=d[0][0];else{if(!(d=S.match(wag))||T.type==="paragraph"&&d[1]!=="1"){d=null;break a}E.type="ordered";E.start=parseInt(d[1],10);E.delimiter=d[2]}var O=qn(v.currentLine,v.nextNonspace+d[0].length);if(O!==-1&&O!==9&&O!==32||T.type==="paragraph"&&!v.currentLine.slice(v.nextNonspace+
d[0].length).match(ZMB))d=null;else{yO(v);qS(v,d[0].length,!0);T=v.column;S=v.offset;do qS(v,1,!0),O=qn(v.currentLine,v.offset);while(v.column-T<5&&yI(O));O=qn(v.currentLine,v.offset)===-1;var b=v.column-T;b>=5||b<1||O?(E.padding=d[0].length+1,v.column=T,v.offset=S,yI(qn(v.currentLine,v.offset))&&qS(v,1,!0)):E.padding=d[0].length+b;d=E}}E=!d}if(E)return 0;rs(v);(E=v.tip.type!=="list")||(e=e._listData,E=!(e.type===d.type&&e.delimiter===d.delimiter&&e.bulletChar===d.bulletChar));E&&(e=v.addChild("list",
v.nextNonspace),e._listData=d);e=v.addChild("item",v.nextNonspace);e._listData=d;return 1},
function(v){var e;return((e=v.options.shouldParseIndentAsCodeBlock)!=null?e:1)&&v.indented&&v.tip.type!=="paragraph"&&!v.blank?(qS(v,4,!0),rs(v),v.addChild("code_block",v.offset),2):0},
function(v,e){var d=r3(v.currentLine),E=r3(v.lookahead);if(d!==0&&E<0&&Math.abs(d)==Math.abs(E)&&!ewt(e.type)){rs(v);e=v.addChild("table",v.nextNonspace);e._tableRows=1;e._tableColumns=Math.abs(d);d=v.lookahead;if(vNt.test(d)){E=[];for(var T=0,S=!1,O=0,b=void 0;T<d.length;){var Y=O>=3;switch(d[T]){case "-":O++;break;case "|":S&&(E.push(b),b=void 0,O=0);S=!0;break;case ":":b||Y||(b="left"),!b&&Y&&(b="right"),b==="left"&&Y&&(b="center")}T++}d=E}else d=void 0;e._columnAlignment=d;e=v.addChild("row",
v.nextNonspace);e._isHeader=!0;qS(v,v.currentLine.length-v.offset,!1);e._string_content=v.currentLine;return 1}return 0},
function(v,e){if(e.type=="table"&&r3(v.currentLine)!==0){rs(v);var d=e;e=v.addChild("row",v.nextNonspace);r3(v.currentLine)<0?e._rowIsDelimiter=!0:d._tableRows+=1;qS(v,v.currentLine.length-v.offset,!1);e._string_content=v.currentLine;return 2}return 0}],kcM=function(){var v={shouldParseIndentAsCodeBlock:!1};
v=v===void 0?{}:v;this.lastMatchedContainer=this.doc=dsj();this.refmap={};this.lastLineLength=0;this.inlineParser=new Yl(v);this.options=v;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=De2;this.blockStarts=UeB},pau=function(v){v.partiallyConsumedTab&&(v.offset+=1,v.tip._string_content+=" ".repeat(4-v.column%
4));
v.tip._string_content+=v.currentLine.slice(v.offset)+"\n"};
kcM.prototype.addChild=function(v,e){for(;!this.blocks[this.tip.type].canContain(v);)this.finalize(this.tip,this.lineNumber-1);v=new hW(v,[[this.lineNumber,e+1],[0,0]]);v._string_content="";this.tip.appendChild(v);return this.tip=v};
var rs=function(v){if(!v.allClosed){for(;v.oldtip!==v.lastMatchedContainer;){var e=v.oldtip._parent;v.finalize(v.oldtip,v.lineNumber-1);v.oldtip=e}v.allClosed=!0}},qS=function(v,e,d){for(var E=v.currentLine,T,S;e>0&&(S=E[v.offset]);)S==="\t"?(T=4-v.column%4,d?(v.partiallyConsumedTab=T>e,T=T>e?e:T,v.column+=T,v.offset+=v.partiallyConsumedTab?0:1,e-=T):(v.partiallyConsumedTab=!1,v.column+=T,v.offset+=1,--e)):(v.partiallyConsumedTab=!1,v.offset+=1,v.column+=1,--e)},yO=function(v){v.offset=v.nextNonspace;
v.column=v.nextNonspaceColumn;v.partiallyConsumedTab=!1},vzM=function(v){for(var e=v.currentLine,d=v.offset,E=v.column,T;(T=e.charAt(d))!=="";)if(T===" ")d++,E++;
else if(T==="\t")d++,E+=4-E%4;else break;v.blank=T==="\n"||T==="\r"||T==="";v.nextNonspace=d;v.nextNonspaceColumn=E;v.indent=v.nextNonspaceColumn-v.column;v.indented=v.indent>=4};
kcM.prototype.finalize=function(v,e){var d=v._parent;v._open=!1;v.sourcepos[1]=[e,this.lastLineLength];this.blocks[v.type].finalize(this,v);this.tip=d};
kcM.prototype.parse=function(v){this.tip=this.doc=dsj();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!v)return this.doc;this.options.time&&console.time("preparing input");var e=v.split(nj0),d=e.length;v.charCodeAt(v.length-1)===10&&--d;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(v=0;v<d;v++)a:{var E=void 0,T=e[v],S=e[v+1],O=!0,b=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=S;(E=b._lastChild)&&E._open;){b=E;vzM(this);switch(this.blocks[b.type].continue(this,b)){case 0:break;case 1:O=!1;break;case 2:this.lastLineLength=T.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!O){b=b._parent;break}}this.allClosed=b===this.oldtip;this.lastMatchedContainer=
b;E=b.type!=="paragraph"&&De2[b.type].acceptsLines;S=this.blockStarts;for(O=S.length;!E;){vzM(this);if(!this.indented&&!A8A.test(T.slice(this.nextNonspace))){yO(this);break}for(var Y=0;Y<O;){var q=S[Y](this,b);if(q===1){b=this.tip;break}else if(q===2){b=this.tip;E=!0;break}else Y++}if(Y===O){yO(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){rs(this);this.blank&&b.lastChild&&(b.lastChild._lastLineBlank=!0);E=b.type;S=this.blank&&!(E==="block_quote"||E==="code_block"&&b._isFenced||
E==="item"&&!b._firstChild&&b.sourcepos[0][0]===this.lineNumber);for(O=b;O;)O._lastLineBlank=S,O=O._parent;this.blocks[E].acceptsLines?(pau(this),E==="html_block"&&b._htmlBlockType>=1&&b._htmlBlockType<=5&&lyI[b._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(b,this.lineNumber)):this.offset<T.length&&!this.blank&&(this.addChild("paragraph",this.offset),yO(this),pau(this))}else pau(this);this.lastLineLength=T.length}for(;this.tip;)this.finalize(this.tip,d);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");T=new W8n(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;d=T.next();)e=d.node,v=e.type,d.entering||v!=="paragraph"&&v!=="heading"&&v!=="th"&&v!="td"||this.inlineParser.parse(e);this.options.time&&console.timeEnd("inline parsing");return this.doc};ENL.prototype.render=function(v){v=new W8n(v);var e;this.buffer="";for(this.lastOut="\n";e=v.next();){var d=e.node.type;if(this[d])this[d](e.node,e.entering)}return this.buffer};
ENL.prototype.out=function(v){h9(this,v)};
var h9=function(v,e){v.buffer+=e;v.lastOut=e};
ENL.prototype.cr=function(){this.lastOut!=="\n"&&h9(this,"\n")};var e0E=/^javascript:|vbscript:|file:|data:/i,dPM=/^data:image\/(?:png|gif|jpeg|webp)/i,Eze=function(v){return e0E.test(v)&&!dPM.test(v)};
K2.prototype=Object.create(ENL.prototype);_.W=K2.prototype;_.W.text=function(v){this.out(v.literal)};
_.W.html_inline=function(v){this.options.safe?h9(this,"\x3c!-- raw HTML omitted --\x3e"):h9(this,v.literal)};
_.W.html_block=function(v){this.cr();this.options.safe?h9(this,"\x3c!-- raw HTML omitted --\x3e"):h9(this,v.literal);this.cr()};
_.W.softbreak=function(){h9(this,this.options.softbreak)};
_.W.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.W.link=function(v,e){var d=this.attrs(v);e?(this.options.safe&&Eze(v.destination)||d.push(["href",OQ(v.destination,!0)]),v.title&&d.push(["title",OQ(v.title,!0)]),this.tag("a",d)):this.tag("/a")};
_.W.image=function(v,e){e?(this.disableTags===0&&(this.options.safe&&Eze(v.destination)?h9(this,'<img src="" alt="'):h9(this,'<img src="'+OQ(v.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(v.title&&h9(this,'" title="'+OQ(v.title,!0)),h9(this,'" />')))};
_.W.emph=function(v,e){this.tag(e?"em":"/em")};
_.W.strong=function(v,e){this.tag(e?"strong":"/strong")};
_.W.paragraph=function(v,e){var d=v.parent.parent;v=this.attrs(v);d!==null&&d.type==="list"&&d.listTight||(e?(this.cr(),this.tag("p",v)):(this.tag("/p"),this.cr()))};
_.W.heading=function(v,e){var d="h"+v.level;v=this.attrs(v);e?(this.cr(),this.tag(d,v)):(this.tag("/"+d),this.cr())};
_.W.code=function(v){this.tag("code");this.out(v.literal);this.tag("/code")};
_.W.code_block=function(v){var e=v.info?v.info.split(/\s+/):[],d=this.attrs(v);e.length>0&&e[0].length>0&&d.push(["class","language-"+OQ(e[0],!0)]);this.cr();this.tag("pre");this.tag("code",d);this.out(v.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.W.thematic_break=function(v){v=this.attrs(v);this.cr();this.tag("hr",v,!0);this.cr()};
_.W.block_quote=function(v,e){v=this.attrs(v);e?(this.cr(),this.tag("blockquote",v)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.W.list=function(v,e){var d=v.listType==="bullet"?"ul":"ol",E=this.attrs(v);e?(v=v.listStart,v!==null&&v!==1&&E.push(["start",v.toString()]),this.cr(),this.tag(d,E)):(this.cr(),this.tag("/"+d));this.cr()};
_.W.item=function(v,e){v=this.attrs(v);e?this.tag("li",v):(this.tag("/li"),this.cr())};
_.W.custom_inline=function(v,e){e&&v.onEnter?h9(this,v.onEnter):!e&&v.onExit&&h9(this,v.onExit)};
_.W.custom_block=function(v,e){this.cr();e&&v.onEnter?h9(this,v.onEnter):!e&&v.onExit&&h9(this,v.onExit);this.cr()};
_.W.table=function(v,e){v=this.attrs(v);e?(this.cr(),this.tag("table",v)):(this.tag("/table"),this.cr())};
_.W.row=function(v,e){v._rowIsDelimiter||(v=this.attrs(v),e?this.tag("tr",v):this.tag("/tr"))};
_.W.td=function(v,e){var d=this.attrs(v);v._alignment&&d.push(["align",v._alignment]);e?this.tag("td",d):this.tag("/td")};
_.W.th=function(v,e){var d=this.attrs(v);v._alignment&&d.push(["align",v._alignment]);e?this.tag("th",d):this.tag("/th")};
_.W.out=function(v){h9(this,OQ(v,!1))};
_.W.tag=function(v,e,d){if(!(this.disableTags>0)){this.buffer+="<"+v;if(e&&e.length>0){v=0;for(var E;(E=e[v])!==void 0;)this.buffer+=" "+E[0]+'="'+E[1]+'"',v++}d&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.W.attrs=function(v){var e=[];this.options.sourcepos&&(v=v.sourcepos)&&e.push(["data-sourcepos",String(v[0][0])+":"+String(v[0][1])+"-"+String(v[1][0])+":"+String(v[1][1])]);return e};
K2.prototype.text=K2.prototype.text;K2.prototype.html_inline=K2.prototype.html_inline;K2.prototype.html_block=K2.prototype.html_block;K2.prototype.softbreak=K2.prototype.softbreak;K2.prototype.linebreak=K2.prototype.linebreak;K2.prototype.link=K2.prototype.link;K2.prototype.image=K2.prototype.image;K2.prototype.emph=K2.prototype.emph;K2.prototype.strong=K2.prototype.strong;K2.prototype.paragraph=K2.prototype.paragraph;K2.prototype.heading=K2.prototype.heading;K2.prototype.code=K2.prototype.code;
K2.prototype.code_block=K2.prototype.code_block;K2.prototype.thematic_break=K2.prototype.thematic_break;K2.prototype.block_quote=K2.prototype.block_quote;K2.prototype.list=K2.prototype.list;K2.prototype.item=K2.prototype.item;K2.prototype.custom_inline=K2.prototype.custom_inline;K2.prototype.custom_block=K2.prototype.custom_block;K2.prototype.table=K2.prototype.table;K2.prototype.row=K2.prototype.row;K2.prototype.td=K2.prototype.td;K2.prototype.th=K2.prototype.th;K2.prototype.out=K2.prototype.out;
K2.prototype.tag=K2.prototype.tag;K2.prototype.attrs=K2.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 TBM,SKE,RjW;(function(){function v(C,x){return C<x?-1:C>x?1:C>=x?0:NaN}
function e(C){return function(x,H){return v(C(x),H)}}
function d(){for(var C=0,x=arguments.length,H={},eW;C<x;++C){if(!(eW=arguments[C]+"")||eW in H)throw Error("se`"+eW);H[eW]=[]}return new E(H)}
function E(C){this._=C}
function T(C,x){return C.trim().split(/^|\s+/).map(function(H){var eW="",iL=H.indexOf(".");iL>=0&&(eW=H.slice(iL+1),H=H.slice(0,iL));if(H&&!x.hasOwnProperty(H))throw Error("te`"+H);return{type:H,name:eW}})}
function S(C,x,H){for(var eW=0,iL=C.length;eW<iL;++eW)if(C[eW].name===x){C[eW]=Iei;C=C.slice(0,eW).concat(C.slice(eW+1));break}H!=null&&C.push({name:x,value:H});return C}
function O(C){var x=C,H=x.indexOf(":");H>=0&&(x=C.slice(0,H))!=="xmlns"&&(C=C.slice(H+1));return Vu.hasOwnProperty(x)?{space:Vu[x],local:C}:C}
function b(C){return function(){var x=this.ownerDocument,H=this.namespaceURI;return H==="http://www.w3.org/1999/xhtml"&&x.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?x.createElement(C):x.createElementNS(H,C)}}
function Y(C){return function(){return this.ownerDocument.createElementNS(C.space,C.local)}}
function q(C){C=O(C);return(C.local?Y:b)(C)}
function r(){}
function h(C){return C==null?r:function(){return this.querySelector(C)}}
function K(C){return Array(C.length)}
function k(C,x){this.ownerDocument=C.ownerDocument;this.namespaceURI=C.namespaceURI;this._next=null;this._parent=C;this.__data__=x}
function J(C){return function(){return C}}
function R(C,x,H,eW,iL,hs){for(var Lt=0,RU,dn=x.length,Dt=hs.length;Lt<Dt;++Lt)(RU=x[Lt])?(RU.__data__=hs[Lt],eW[Lt]=RU):H[Lt]=new k(C,hs[Lt]);for(;Lt<dn;++Lt)if(RU=x[Lt])iL[Lt]=RU}
function B(C,x,H,eW,iL,hs,Lt){var RU,dn,Dt={},E6=x.length,qi=hs.length,uM=Array(E6),Vv;for(RU=0;RU<E6;++RU)if(dn=x[RU])uM[RU]=Vv="$"+Lt.call(dn,dn.__data__,RU,x),Vv in Dt?iL[RU]=dn:Dt[Vv]=dn;for(RU=0;RU<qi;++RU)Vv="$"+Lt.call(C,hs[RU],RU,hs),(dn=Dt[Vv])?(eW[RU]=dn,dn.__data__=hs[RU],Dt[Vv]=null):H[RU]=new k(C,hs[RU]);for(RU=0;RU<E6;++RU)(dn=x[RU])&&Dt[uM[RU]]===dn&&(iL[RU]=dn)}
function X(C,x){return C<x?-1:C>x?1:C>=x?0:NaN}
function Z(C){return function(){this.removeAttribute(C)}}
function U(C){return function(){this.removeAttributeNS(C.space,C.local)}}
function F(C,x){return function(){this.setAttribute(C,x)}}
function g(C,x){return function(){this.setAttributeNS(C.space,C.local,x)}}
function Q(C,x){return function(){var H=x.apply(this,arguments);H==null?this.removeAttribute(C):this.setAttribute(C,H)}}
function v3(C,x){return function(){var H=x.apply(this,arguments);H==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,H)}}
function q7(C){return function(){this.style.removeProperty(C)}}
function m0(C,x,H){return function(){this.style.setProperty(C,x,H)}}
function $S(C,x,H){return function(){var eW=x.apply(this,arguments);eW==null?this.style.removeProperty(C):this.style.setProperty(C,eW,H)}}
function kS(C,x){return C.style.getPropertyValue(x)||(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView).getComputedStyle(C,null).getPropertyValue(x)}
function N7(C){return function(){delete this[C]}}
function As(C,x){return function(){this[C]=x}}
function Ct(C,x){return function(){var H=x.apply(this,arguments);H==null?delete this[C]:this[C]=H}}
function SA(){this.textContent=""}
function xI(C){return function(){this.textContent=C}}
function mg(C){return function(){var x=C.apply(this,arguments);this.textContent=x==null?"":x}}
function pt(){this.innerHTML=""}
function he(C){return function(){this.innerHTML=C}}
function yB(C){return function(){var x=C.apply(this,arguments);this.innerHTML=x==null?"":x}}
function te(){return null}
function oC(){var C=this.parentNode;C&&C.removeChild(this)}
function n7(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function SW(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function vc(C,x,H){C=jA(C,x,H);return function(eW){var iL=eW.relatedTarget;iL&&(iL===this||iL.compareDocumentPosition(this)&8)||C.call(this,eW)}}
function jA(C,x,H){return function(){C.call(this,this.__data__,x,H)}}
function Ys(C){return C.trim().split(/^|\s+/).map(function(x){var H="",eW=x.indexOf(".");eW>=0&&(H=x.slice(eW+1),x=x.slice(0,eW));return{type:x,name:H}})}
function s6(C){return function(){var x=this.__on;if(x){for(var H=0,eW=-1,iL=x.length,hs;H<iL;++H)(hs=x[H],C.type&&hs.type!==C.type||hs.name!==C.name)?x[++eW]=hs:this.removeEventListener(hs.type,hs.listener,hs.capture);++eW?x.length=eW:delete this.__on}}}
function es(C,x,H){var eW=rdn.hasOwnProperty(C.type)?vc:jA;return function(iL,hs,Lt){iL=this.__on;var RU;hs=eW(x,hs,Lt);if(iL){Lt=0;for(var dn=iL.length;Lt<dn;++Lt)if((RU=iL[Lt]).type===C.type&&RU.name===C.name){this.removeEventListener(RU.type,RU.listener,RU.capture);this.addEventListener(RU.type,RU.listener=hs,RU.capture=H);RU.value=x;return}}this.addEventListener(C.type,hs,H);RU={type:C.type,name:C.name,value:x,listener:hs,capture:H};iL?iL.push(RU):this.__on=[RU]}}
function TM(C,x,H){var eW=C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView,iL=eW.CustomEvent;typeof iL==="function"?iL=new iL(x,H):(iL=eW.document.createEvent("Event"),H?(iL.initEvent(x,H.bubbles,H.cancelable),iL.detail=H.detail):iL.initEvent(x,!1,!1));C.dispatchEvent(iL)}
function vO(C,x){return function(){return TM(this,C,x)}}
function IE(C,x){return function(){return TM(this,C,x.apply(this,arguments))}}
function gn(C,x){this._groups=C;this._parents=x}
function hi(){return new gn([[document.documentElement]],b$C)}
function Je(){this._="@"+(++YQv).toString(36)}
function G2(C,x,H){C.prototype=x.prototype=H;H.constructor=C}
function si(C,x){C=Object.create(C.prototype);for(var H in x)C[H]=x[H];return C}
function Ya(){}
function r9(C){var x;C=(C+"").trim().toLowerCase();return(x=mS1.exec(C))?(x=parseInt(x[1],16),new w9(x>>8&15|x>>4&240,x>>4&15|x&240,(x&15)<<4|x&15,1)):(x=y99.exec(C))?G8(parseInt(x[1],16)):(x=qQv.exec(C))?new w9(x[1],x[2],x[3],1):(x=r9f.exec(C))?new w9(x[1]*255/100,x[2]*255/100,x[3]*255/100,1):(x=hv9.exec(C))?Ny(x[1],x[2],x[3],x[4]):(x=Kki.exec(C))?Ny(x[1]*255/100,x[2]*255/100,x[3]*255/100,x[4]):(x=$SC.exec(C))?uR(x[1],x[2]/100,x[3]/100,1):(x=jxf.exec(C))?uR(x[1],x[2]/100,x[3]/100,x[4]):hx6.hasOwnProperty(C)?
G8(hx6[C]):C==="transparent"?new w9(NaN,NaN,NaN,0):null}
function G8(C){return new w9(C>>16&255,C>>8&255,C&255,1)}
function Ny(C,x,H,eW){eW<=0&&(C=x=H=NaN);return new w9(C,x,H,eW)}
function Ae(C){C instanceof Ya||(C=r9(C));if(!C)return new w9;C=C.rgb();return new w9(C.r,C.g,C.b,C.opacity)}
function f9(C,x,H,eW){return arguments.length===1?Ae(C):new w9(C,x,H,eW==null?1:eW)}
function w9(C,x,H,eW){this.r=+C;this.g=+x;this.b=+H;this.opacity=+eW}
function a$(C){C=Math.max(0,Math.min(255,Math.round(C)||0));return(C<16?"0":"")+C.toString(16)}
function uR(C,x,H,eW){eW<=0?C=x=H=NaN:H<=0||H>=1?C=x=NaN:x<=0&&(C=NaN);return new M9(C,x,H,eW)}
function T8(C){if(C instanceof M9)return new M9(C.h,C.s,C.l,C.opacity);C instanceof Ya||(C=r9(C));if(!C)return new M9;if(C instanceof M9)return C;C=C.rgb();var x=C.r/255,H=C.g/255,eW=C.b/255,iL=Math.min(x,H,eW),hs=Math.max(x,H,eW),Lt=NaN,RU=hs-iL,dn=(hs+iL)/2;RU?(Lt=x===hs?(H-eW)/RU+(H<eW)*6:H===hs?(eW-x)/RU+2:(x-H)/RU+4,RU/=dn<.5?hs+iL:2-hs-iL,Lt*=60):RU=dn>0&&dn<1?0:Lt;return new M9(Lt,RU,dn,C.opacity)}
function Pi(C,x,H,eW){return arguments.length===1?T8(C):new M9(C,x,H,eW==null?1:eW)}
function M9(C,x,H,eW){this.h=+C;this.s=+x;this.l=+H;this.opacity=+eW}
function Sy(C,x,H){return(C<60?x+(H-x)*C/60:C<180?H:C<240?x+(H-x)*(240-C)/60:x)*255}
function WP(C){if(C instanceof Js)return new Js(C.l,C.a,C.b,C.opacity);if(C instanceof kI){if(isNaN(C.h))return new Js(C.l,0,0,C.opacity);var x=C.h*K3A;return new Js(C.l,Math.cos(x)*C.c,Math.sin(x)*C.c,C.opacity)}C instanceof w9||(C=Ae(C));var H=mf(C.r),eW=mf(C.g),iL=mf(C.b);x=zO(.2225045*H+.7168786*eW+.0606169*iL);if(H===eW&&eW===iL)var hs=H=x;else hs=zO((.4360747*H+.3850649*eW+.1430804*iL)/.96422),H=zO((.0139322*H+.0971045*eW+.7141733*iL)/.82521);return new Js(116*x-16,500*(hs-x),200*(x-H),C.opacity)}
function Js(C,x,H,eW){this.l=+C;this.a=+x;this.b=+H;this.opacity=+eW}
function zO(C){return C>sx9?Math.pow(C,1/3):C/$NB+jgJ}
function wH(C){return C>dO?C*C*C:$NB*(C-jgJ)}
function K7(C){return 255*(C<=.0031308?12.92*C:1.055*Math.pow(C,1/2.4)-.055)}
function mf(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}
function tr(C){if(C instanceof kI)return new kI(C.h,C.c,C.l,C.opacity);C instanceof Js||(C=WP(C));if(C.a===0&&C.b===0)return new kI(NaN,0,C.l,C.opacity);var x=Math.atan2(C.b,C.a)*sg6;return new kI(x<0?x+360:x,Math.sqrt(C.a*C.a+C.b*C.b),C.l,C.opacity)}
function L9(C,x,H,eW){return arguments.length===1?tr(C):new kI(C,x,H,eW==null?1:eW)}
function kI(C,x,H,eW){this.h=+C;this.c=+x;this.l=+H;this.opacity=+eW}
function Ni(C,x,H,eW){if(arguments.length===1){var iL=C;if(iL instanceof xs)iL=new xs(iL.h,iL.s,iL.l,iL.opacity);else{iL instanceof w9||(iL=Ae(iL));var hs=iL.g/255,Lt=iL.b/255,RU=(NoE*Lt+iL.r/255*-1.7884503806-3.5172982438*hs)/(NoE+-1.7884503806-3.5172982438);Lt-=RU;var dn=(1.97294*(hs-RU)- -.29227*Lt)/-.90649;Lt=(hs=Math.sqrt(dn*dn+Lt*Lt)/(1.97294*RU*(1-RU)))?Math.atan2(dn,Lt)*sg6-120:NaN;iL=new xs(Lt<0?Lt+360:Lt,hs,RU,iL.opacity)}}else iL=new xs(C,x,H,eW==null?1:eW);return iL}
function xs(C,x,H,eW){this.h=+C;this.s=+x;this.l=+H;this.opacity=+eW}
function qf(C,x,H,eW,iL){var hs=C*C,Lt=hs*C;return((1-3*C+3*hs-Lt)*x+(4-6*hs+3*Lt)*H+(1+3*C+3*hs-3*Lt)*eW+Lt*iL)/6}
function rn(C){return function(){return C}}
function kx(C,x){return function(H){return C+H*x}}
function jx(C,x,H){return C=Math.pow(C,H),x=Math.pow(x,H)-C,H=1/H,function(eW){return Math.pow(C+eW*x,H)}}
function CY(C,x){var H=x-C;return H?kx(C,H>180||H<-180?H-360*Math.round(H/360):H):rn(isNaN(C)?x:C)}
function R_(C){return(C=+C)===1?CI:function(x,H){return H-x?jx(x,H,C):rn(isNaN(x)?H:x)}}
function CI(C,x){var H=x-C;return H?kx(C,H):rn(isNaN(C)?x:C)}
function np(C){return function(x){var H=x.length,eW=Array(H),iL=Array(H),hs=Array(H),Lt;for(Lt=0;Lt<H;++Lt){var RU=f9(x[Lt]);eW[Lt]=RU.r||0;iL[Lt]=RU.g||0;hs[Lt]=RU.b||0}eW=C(eW);iL=C(iL);hs=C(hs);RU.opacity=1;return function(dn){RU.r=eW(dn);RU.g=iL(dn);RU.b=hs(dn);return RU+""}}}
function Wn(C,x){return C=+C,x-=C,function(H){return C+x*H}}
function am(C){return function(){return C}}
function vt(C){return function(x){return C(x)+""}}
function nt(C,x){var H=ZsH.lastIndex=cb3.lastIndex=0,eW,iL,hs,Lt=-1,RU=[],dn=[];C+="";for(x+="";(eW=ZsH.exec(C))&&(iL=cb3.exec(x));)(hs=iL.index)>H&&(hs=x.slice(H,hs),RU[Lt]?RU[Lt]+=hs:RU[++Lt]=hs),(eW=eW[0])===(iL=iL[0])?RU[Lt]?RU[Lt]+=iL:RU[++Lt]=iL:(RU[++Lt]=null,dn.push({i:Lt,x:Wn(eW,iL)})),H=cb3.lastIndex;H<x.length&&(hs=x.slice(H),RU[Lt]?RU[Lt]+=hs:RU[++Lt]=hs);return RU.length<2?dn[0]?vt(dn[0].x):am(x):(x=dn.length,function(Dt){for(var E6=0,qi;E6<x;++E6)RU[(qi=dn[E6]).i]=qi.x(Dt);return RU.join("")})}
function K9(C,x,H,eW,iL,hs){var Lt,RU,dn;if(Lt=Math.sqrt(C*C+x*x))C/=Lt,x/=Lt;if(dn=C*H+x*eW)H-=C*dn,eW-=x*dn;if(RU=Math.sqrt(H*H+eW*eW))H/=RU,eW/=RU,dn/=RU;C*eW<x*H&&(C=-C,x=-x,dn=-dn,Lt=-Lt);return{translateX:iL,translateY:hs,rotate:Math.atan2(x,C)*kJi,skewX:Math.atan(dn)*kJi,scaleX:Lt,scaleY:RU}}
function BO(C,x,H,eW){function iL(Dt){return Dt.length?Dt.pop()+" ":""}
function hs(Dt,E6,qi,uM,Vv,KY){Dt!==qi||E6!==uM?(Vv=Vv.push("translate(",null,x,null,H),KY.push({i:Vv-4,x:Wn(Dt,qi)},{i:Vv-2,x:Wn(E6,uM)})):(qi||uM)&&Vv.push("translate("+qi+x+uM+H)}
function Lt(Dt,E6,qi,uM){Dt!==E6?(Dt-E6>180?E6+=360:E6-Dt>180&&(Dt+=360),uM.push({i:qi.push(iL(qi)+"rotate(",null,eW)-2,x:Wn(Dt,E6)})):E6&&qi.push(iL(qi)+"rotate("+E6+eW)}
function RU(Dt,E6,qi,uM){Dt!==E6?uM.push({i:qi.push(iL(qi)+"skewX(",null,eW)-2,x:Wn(Dt,E6)}):E6&&qi.push(iL(qi)+"skewX("+E6+eW)}
function dn(Dt,E6,qi,uM,Vv,KY){Dt!==qi||E6!==uM?(Vv=Vv.push(iL(Vv)+"scale(",null,",",null,")"),KY.push({i:Vv-4,x:Wn(Dt,qi)},{i:Vv-2,x:Wn(E6,uM)})):qi===1&&uM===1||Vv.push(iL(Vv)+"scale("+qi+","+uM+")")}
return function(Dt,E6){var qi=[],uM=[];Dt=C(Dt);E6=C(E6);hs(Dt.translateX,Dt.translateY,E6.translateX,E6.translateY,qi,uM);Lt(Dt.rotate,E6.rotate,qi,uM);RU(Dt.skewX,E6.skewX,qi,uM);dn(Dt.scaleX,Dt.scaleY,E6.scaleX,E6.scaleY,qi,uM);Dt=E6=null;return function(Vv){for(var KY=-1,A7=uM.length,Vt;++KY<A7;)qi[(Vt=uM[KY]).i]=Vt.x(Vv);return qi.join("")}}}
function aC(C){return function(x,H){var eW=C((x=Pi(x)).h,(H=Pi(H)).h),iL=CI(x.s,H.s),hs=CI(x.l,H.l),Lt=CI(x.opacity,H.opacity);return function(RU){x.h=eW(RU);x.s=iL(RU);x.l=hs(RU);x.opacity=Lt(RU);return x+""}}}
function be(C){return function(x,H){var eW=C((x=L9(x)).h,(H=L9(H)).h),iL=CI(x.c,H.c),hs=CI(x.l,H.l),Lt=CI(x.opacity,H.opacity);return function(RU){x.h=eW(RU);x.c=iL(RU);x.l=hs(RU);x.opacity=Lt(RU);return x+""}}}
function wr(C){return function eW(H){function iL(hs,Lt){var RU=C((hs=Ni(hs)).h,(Lt=Ni(Lt)).h),dn=CI(hs.s,Lt.s),Dt=CI(hs.l,Lt.l),E6=CI(hs.opacity,Lt.opacity);return function(qi){hs.h=RU(qi);hs.s=dn(qi);hs.l=Dt(Math.pow(qi,H));hs.opacity=E6(qi);return hs+""}}
H=+H;iL.gamma=eW;return iL}(1)}
function xh(){return Ro||(L3M(ZI),Ro=mQ.now()+yaj)}
function ZI(){Ro=0}
function jK(){this._call=this._time=this._next=null}
function IQ(C,x,H){var eW=new jK;eW.restart(C,x,H);return eW}
function bF(){Ro=(qI0=mQ.now())+yaj;E5=ys=0;try{xh();++E5;for(var C=raW,x;C;)(x=Ro-C._time)>=0&&C._call.call(null,x),C=C._next;--E5}finally{E5=0;C=raW;for(var H=Infinity;C;)if(C._call){H>C._time&&(H=C._time);var eW=C;C=C._next}else x=C._next,C._next=null,C=eW?eW._next=x:raW=x;qt=eW;Yt(H);Ro=0}}
function R3O(){var C=mQ.now(),x=C-qI0;x>1E3&&(yaj-=x,qI0=C)}
function Yt(C){E5||(ys&&(ys=clearTimeout(ys)),C-Ro>24?(C<Infinity&&(ys=setTimeout(bF,C-mQ.now()-yaj)),r2&&(r2=clearInterval(r2))):(r2||(qI0=mQ.now(),r2=setInterval(R3O,1E3)),E5=1,L3M(bF)))}
function Vi2(C,x,H){var eW=new jK;x=x==null?0:+x;eW.restart(function(iL){eW.stop();C(iL+x)},x,H);
return eW}
function wl$(C,x,H,eW,iL,hs){var Lt=C.__transition;if(!Lt)C.__transition={};else if(H in Lt)return;NsQ(C,H,{name:x,index:eW,group:iL,on:kBt,tween:LkC,time:hs.time,delay:hs.delay,duration:hs.duration,ease:hs.ease,timer:null,state:0})}
function FZt(C,x){C=hM(C,x);if(C.state>0)throw Error("ue");return C}
function PW(C,x){C=hM(C,x);if(C.state>2)throw Error("ve");return C}
function hM(C,x){C=C.__transition;if(!C||!(C=C[x]))throw Error("we");return C}
function NsQ(C,x,H){function eW(dn){var Dt,E6;if(H.state!==1)return hs();for(uM in Lt){var qi=Lt[uM];if(qi.name===H.name){if(qi.state===3)return Vi2(eW);qi.state===4?(qi.state=6,qi.timer.stop(),qi.on.call("interrupt",C,C.__data__,qi.index,qi.group),delete Lt[uM]):+uM<x&&(qi.state=6,qi.timer.stop(),delete Lt[uM])}}Vi2(function(){H.state===3&&(H.state=4,H.timer.restart(iL,H.delay,H.time),iL(dn))});
H.state=2;H.on.call("start",C,C.__data__,H.index,H.group);if(H.state===2){H.state=3;RU=Array(E6=H.tween.length);var uM=0;for(Dt=-1;uM<E6;++uM)if(qi=H.tween[uM].value.call(C,C.__data__,H.index,H.group))RU[++Dt]=qi;RU.length=Dt+1}}
function iL(dn){dn=dn<H.duration?H.ease.call(null,dn/H.duration):(H.timer.restart(hs),H.state=5,1);for(var Dt=-1,E6=RU.length;++Dt<E6;)RU[Dt].call(null,dn);H.state===5&&(H.on.call("end",C,C.__data__,H.index,H.group),hs())}
function hs(){H.state=6;H.timer.stop();delete Lt[x];for(var dn in Lt)return;delete C.__transition}
var Lt=C.__transition,RU;Lt[x]=H;H.timer=IQ(function(dn){H.state=1;H.timer.restart(eW,H.delay,H.time);H.delay<=dn&&eW(dn-H.delay)},0,H.time)}
function V$v(C,x){var H,eW;return function(){var iL=PW(this,C),hs=iL.tween;if(hs!==H){eW=H=hs;hs=0;for(var Lt=eW.length;hs<Lt;++hs)if(eW[hs].name===x){eW=eW.slice();eW.splice(hs,1);break}}iL.tween=eW}}
function oli(C,x,H){var eW,iL;if(typeof H!=="function")throw Error();return function(){var hs=PW(this,C),Lt=hs.tween;if(Lt!==eW){iL=(eW=Lt).slice();Lt={name:x,value:H};for(var RU=0,dn=iL.length;RU<dn;++RU)if(iL[RU].name===x){iL[RU]=Lt;break}RU===dn&&iL.push(Lt)}hs.tween=iL}}
function QcO(C,x,H){var eW=C._id;C.each(function(){var iL=PW(this,eW);(iL.value||(iL.value={}))[x]=H.apply(this,arguments)});
return function(iL){return hM(iL,eW).value[x]}}
function o_J(C,x){var H;return(typeof x==="number"?Wn:x instanceof r9?Jd2:(H=r9(x))?(x=H,Jd2):nt)(C,x)}
function J9Q(C){return function(){this.removeAttribute(C)}}
function GBQ(C){return function(){this.removeAttributeNS(C.space,C.local)}}
function M$O(C,x,H){var eW,iL;return function(){var hs=this.getAttribute(C);return hs===H?null:hs===eW?iL:iL=x(eW=hs,H)}}
function t$Q(C,x,H){var eW,iL;return function(){var hs=this.getAttributeNS(C.space,C.local);return hs===H?null:hs===eW?iL:iL=x(eW=hs,H)}}
function feQ(C,x,H){var eW,iL,hs;return function(){var Lt=H(this);if(Lt==null)return void this.removeAttribute(C);var RU=this.getAttribute(C);return RU===Lt?null:RU===eW&&Lt===iL?hs:hs=x(eW=RU,iL=Lt)}}
function RvO(C,x,H){var eW,iL,hs;return function(){var Lt=H(this);if(Lt==null)return void this.removeAttributeNS(C.space,C.local);var RU=this.getAttributeNS(C.space,C.local);return RU===Lt?null:RU===eW&&Lt===iL?hs:hs=x(eW=RU,iL=Lt)}}
function PyC(C,x){function H(){var eW=this,iL=x.apply(eW,arguments);return iL&&function(hs){eW.setAttributeNS(C.space,C.local,iL(hs))}}
H._value=x;return H}
function xSs(C,x){function H(){var eW=this,iL=x.apply(eW,arguments);return iL&&function(hs){eW.setAttribute(C,iL(hs))}}
H._value=x;return H}
function Bs9(C,x){return function(){FZt(this,C).delay=+x.apply(this,arguments)}}
function CyO(C,x){return x=+x,function(){FZt(this,C).delay=x}}
function XA_(C,x){return function(){PW(this,C).duration=+x.apply(this,arguments)}}
function zvs(C,x){return x=+x,function(){PW(this,C).duration=x}}
function lef(C,x){if(typeof x!=="function")throw Error();return function(){PW(this,C).ease=x}}
function H$t(C){return(C+"").trim().split(/^|\s+/).every(function(x){var H=x.indexOf(".");H>=0&&(x=x.slice(0,H));return!x||x==="start"})}
function A9f(C,x,H){var eW,iL,hs=H$t(x)?FZt:PW;return function(){var Lt=hs(this,C),RU=Lt.on;if(RU!==eW)(iL=(eW=RU).copy()).on(x,H);Lt.on=iL}}
function Z$i(C){return function(){var x=this.parentNode,H;for(H in this.__transition)if(+H!==C)return;x&&x.removeChild(this)}}
function c9_(C,x){var H,eW,iL;return function(){var hs=kS(this,C),Lt=(this.style.removeProperty(C),kS(this,C));return hs===Lt?null:hs===H&&Lt===eW?iL:iL=x(H=hs,eW=Lt)}}
function wA1(C){return function(){this.style.removeProperty(C)}}
function Fkv(C,x,H){var eW,iL;return function(){var hs=kS(this,C);return hs===H?null:hs===eW?iL:iL=x(eW=hs,H)}}
function Qx_(C,x,H){var eW,iL,hs;return function(){var Lt=kS(this,C),RU=H(this);RU==null&&(RU=(this.style.removeProperty(C),kS(this,C)));return Lt===RU?null:Lt===eW&&RU===iL?hs:hs=x(eW=Lt,iL=RU)}}
function glt(C,x,H){function eW(){var iL=this,hs=x.apply(iL,arguments);return hs&&function(Lt){iL.style.setProperty(C,hs(Lt),H)}}
eW._value=x;return eW}
function uOs(C){return function(){this.textContent=C}}
function nlw(C){return function(){var x=C(this);this.textContent=x==null?"":x}}
function l$(C,x,H,eW){this._groups=C;this._parents=x;this._name=H;this._id=eW}
function gKt(C){return{type:C}}
function uzL(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function hhO(){}
function GJi(C,x){var H=new hhO;if(C instanceof hhO)C.each(function(Lt,RU){H.set(RU,Lt)});
else if(Array.isArray(C)){var eW=-1,iL=C.length,hs;if(x==null)for(;++eW<iL;)H.set(eW,C[eW]);else for(;++eW<iL;)H.set(x(hs=C[eW],eW,C),hs)}else if(C)for(eW in C)H.set(eW,C[eW]);return H}
function KqH(){}
function Mii(C){return function(x){for(var H={},eW=0;eW<C.length;eW++)H[C[eW]]=x[eW]||"";return H}}
function DS1(C,x){var H=Mii(C);return function(eW,iL){return x(H(eW),iL,C)}}
function USt(C){var x=Object.create(null),H=[];C.forEach(function(eW){for(var iL in eW)iL in x||H.push(x[iL]=iL)});
return H}
function tig(C){function x(Lt,RU){function dn(){if(KY)return nK7;if(A7)return A7=!1,fS0;var AI,CD=qi,YH;if(Lt.charCodeAt(CD)===34){for(;qi++<E6&&Lt.charCodeAt(qi)!==34||Lt.charCodeAt(++qi)===34;);(AI=qi)>=E6?KY=!0:(YH=Lt.charCodeAt(qi++))===10?A7=!0:YH===13&&(A7=!0,Lt.charCodeAt(qi)===10&&++qi);return Lt.slice(CD+1,AI-1).replace(/""/g,'"')}for(;qi<E6;){if((YH=Lt.charCodeAt(AI=qi++))===10)A7=!0;else if(YH===13)A7=!0,Lt.charCodeAt(qi)===10&&++qi;else if(YH!==hs)continue;return Lt.slice(CD,AI)}return KY=
!0,Lt.slice(CD,E6)}
var Dt=[],E6=Lt.length,qi=0,uM=0,Vv,KY=E6<=0,A7=!1;Lt.charCodeAt(E6-1)===10&&--E6;for(Lt.charCodeAt(E6-1)===13&&--E6;(Vv=dn())!==nK7;){for(var Vt=[];Vv!==fS0&&Vv!==nK7;)Vt.push(Vv),Vv=dn();RU&&(Vt=RU(Vt,uM++))==null||Dt.push(Vt)}return Dt}
function H(Lt){return Lt.map(eW).join(C)}
function eW(Lt){return Lt==null?"":iL.test(Lt)?'"'+Lt.replace(/"/g,'""')+'"':Lt}
var iL=new RegExp('["'+C+"\n\r]"),hs=C.charCodeAt(0);return{parse:function(Lt,RU){var dn,Dt;Lt=x(Lt,function(E6,qi){if(dn)return dn(E6,qi-1);Dt=E6;dn=RU?DS1(E6,RU):Mii(E6)});
Lt.columns=Dt||[];return Lt},
parseRows:x,format:function(Lt,RU){RU==null&&(RU=USt(Lt));return[RU.map(eW).join(C)].concat(Lt.map(function(dn){return RU.map(function(Dt){return eW(dn[Dt])}).join(C)})).join("\n")},
formatRows:function(Lt){return Lt.map(H).join("\n")}}}
function pA9(C){if(!C.ok)throw Error("xe`"+C.status+"`"+C.statusText);return C.text()}
function RxB(C){return function(x,H,eW){arguments.length===2&&typeof H==="function"&&(eW=H,H=void 0);return fetch(x,H).then(pA9).then(function(iL){return C(iL,eW)})}}
function PjA(C,x,H,eW){if(isNaN(x)||isNaN(H))return C;var iL,hs=C._root;eW={data:eW};var Lt=C._x0,RU=C._y0,dn=C._x1,Dt=C._y1,E6,qi,uM,Vv,KY;if(!hs)return C._root=eW,C;for(;hs.length;)if((uM=x>=(E6=(Lt+dn)/2))?Lt=E6:dn=E6,(Vv=H>=(qi=(RU+Dt)/2))?RU=qi:Dt=qi,iL=hs,!(hs=hs[KY=Vv<<1|uM]))return iL[KY]=eW,C;var A7=+C._x.call(null,hs.data);var Vt=+C._y.call(null,hs.data);if(x===A7&&H===Vt)return eW.next=hs,iL?iL[KY]=eW:C._root=eW,C;do iL=iL?iL[KY]=Array(4):C._root=Array(4),(uM=x>=(E6=(Lt+dn)/2))?Lt=E6:dn=
E6,(Vv=H>=(qi=(RU+Dt)/2))?RU=qi:Dt=qi;while((KY=Vv<<1|uM)===(uM=(Vt>=qi)<<1|A7>=E6));return iL[uM]=hs,iL[KY]=eW,C}
function tG(C,x,H,eW,iL){this.node=C;this.x0=x;this.y0=H;this.x1=eW;this.y1=iL}
function vw_(C){return C[0]}
function eM9(C){return C[1]}
function D$H(C,x,H,eW,iL,hs){this._x=C;this._y=x;this._x0=H;this._y0=eW;this._x1=iL;this._y1=hs;this._root=void 0}
function xN7(C){for(var x={data:C.data},H=x;C=C.next;)H=H.next={data:C.data};return x}
function $_$(C,x){if((x=(C=x?C.toExponential(x-1):C.toExponential()).indexOf("e"))<0)return null;var H=C.slice(0,x);return[H.length>1?H[0]+H.slice(2):H,+C.slice(x+1)]}
function d5i(C){return C=$_$(Math.abs(C)),C?C[1]:NaN}
function EwQ(C,x){return function(H,eW){for(var iL=H.length,hs=[],Lt=0,RU=C[0],dn=0;iL>0&&RU>0;){dn+RU+1>eW&&(RU=Math.max(1,eW-dn));hs.push(H.substring(iL-=RU,iL+RU));if((dn+=RU+1)>eW)break;RU=C[Lt=(Lt+1)%C.length]}return hs.reverse().join(x)}}
function T$Q(C){return function(x){return x.replace(/[0-9]/g,function(H){return C[+H]})}}
function U$W(C){return new pl7(C)}
function pl7(C){if(!(x=SAw.exec(C)))throw Error("ye`"+C);var x;this.fill=x[1]||" ";this.align=x[2]||">";this.sign=x[3]||"-";this.symbol=x[4]||"";this.zero=!!x[5];this.width=x[6]&&+x[6];this.comma=!!x[7];this.precision=x[8]&&+x[8].slice(1);this.trim=!!x[9];this.type=x[10]||""}
function Bo7(C,x){x=$_$(C,x);if(!x)return C+"";C=x[0];x=x[1];return x<0?"0."+Array(-x).join("0")+C:C.length>x+1?C.slice(0,x+1)+"."+C.slice(x+1):C+Array(x-C.length+2).join("0")}
function CjI(C){return C}
function W4s(C){function x(RU){function dn(wu){var vV=YH,lS=H5,ru,W$;if(CD==="c")lS=XK(wu)+lS,wu="";else{wu=+wu;var M1=wu<0;wu=XK(Math.abs(wu),Vt);if(AI){var C4=wu.length,t0=1,Zq=-1;a:for(;t0<C4;++t0)switch(wu[t0]){case ".":Zq=ru=t0;break;case "0":Zq===0&&(Zq=t0);ru=t0;break;default:if(!+wu[t0])break a;Zq>0&&(Zq=0)}wu=Zq>0?wu.slice(0,Zq)+wu.slice(ru+1):wu}M1&&+wu===0&&(M1=!1);vV=(M1?qi==="("?qi:"-":qi==="-"||qi==="("?"":qi)+vV;lS=(CD==="s"?XH6[8+zxg/3]:"")+lS+(M1&&qi==="("?")":"");if(y4)for(M1=-1,
ru=wu.length;++M1<ru;)if(W$=wu.charCodeAt(M1),48>W$||W$>57){lS=(W$===46?iL+wu.slice(M1+1):wu.slice(M1))+lS;wu=wu.slice(0,M1);break}}A7&&!Vv&&(wu=H(wu,Infinity));W$=vV.length+wu.length+lS.length;M1=W$<KY?Array(KY-W$+1).join(Dt):"";A7&&Vv&&(wu=H(M1+wu,M1.length?KY-lS.length:Infinity),M1="");switch(E6){case "<":wu=vV+wu+lS+M1;break;case "=":wu=vV+M1+wu+lS;break;case "^":wu=M1.slice(0,W$=M1.length>>1)+vV+wu+lS+M1.slice(W$);break;default:wu=M1+vV+wu+lS}return hs(wu)}
RU=U$W(RU);var Dt=RU.fill,E6=RU.align,qi=RU.sign,uM=RU.symbol,Vv=RU.zero,KY=RU.width,A7=RU.comma,Vt=RU.precision,AI=RU.trim,CD=RU.type;CD==="n"?(A7=!0,CD="g"):lSe[CD]||(Vt==null&&(Vt=12),AI=!0,CD="g");if(Vv||Dt==="0"&&E6==="=")Vv=!0,Dt="0",E6="=";var YH=uM==="$"?eW[0]:uM==="#"&&/[boxX]/.test(CD)?"0"+CD.toLowerCase():"",H5=uM==="$"?eW[1]:/[%p]/.test(CD)?Lt:"",XK=lSe[CD],y4=/[defgprs%]/.test(CD);Vt=Vt==null?6:/[gprs]/.test(CD)?Math.max(1,Math.min(21,Vt)):Math.max(0,Math.min(20,Vt));dn.toString=function(){return RU+
""};
return dn}
var H=C.grouping&&C.thousands?EwQ(C.grouping,C.thousands):CjI,eW=C.currency,iL=C.decimal,hs=C.numerals?T$Q(C.numerals):CjI,Lt=C.percent||"%";return{format:x,formatPrefix:function(RU,dn){var Dt=x((RU=U$W(RU),RU.type="f",RU));RU=Math.max(-8,Math.min(8,Math.floor(d5i(dn)/3)))*3;var E6=Math.pow(10,-RU),qi=XH6[8+RU/3];return function(uM){return Dt(E6*uM)+qi}}}}
function yE(){this.reset()}
function HeA(C,x,H){var eW=C.s=x+H,iL=eW-x;C.t=x-(eW-iL)+(H-iL)}
function jHs(C){return C>1?oa:C<-1?-oa:Math.asin(C)}
function aGw(){}
function AdA(C){var x=C[0];C=C[1];var H=JR(C);return[H*JR(x),H*Ko(x),Ko(C)]}
function Ze6(C,x){return[C[1]*x[2]-C[2]*x[1],C[2]*x[0]-C[0]*x[2],C[0]*x[1]-C[1]*x[0]]}
function cdM(C){var x=sHM(C[0]*C[0]+C[1]*C[1]+C[2]*C[2]);C[0]/=x;C[1]/=x;C[2]/=x}
function i6t(){var C=[],x;return{point:function(H,eW){x.push([H,eW])},
lineStart:function(){C.push(x=[])},
lineEnd:aGw,rejoin:function(){C.length>1&&C.push(C.pop().concat(C.shift()))},
result:function(){var H=C;C=[];x=null;return H}}}
function Nk0(C,x,H,eW){this.x=C;this.z=x;this.o=H;this.e=eW;this.v=!1;this.n=this.p=null}
function O6S(C,x,H,eW,iL){var hs=[],Lt=[];C.forEach(function(qi){if(!((uM=qi.length-1)<=0)){var uM,Vv=qi[0],KY=qi[uM],A7=Vv;if(Hh(A7[0]-KY[0])<1E-6&&Hh(A7[1]-KY[1])<1E-6){iL.lineStart();for(RU=0;RU<uM;++RU)iL.point((Vv=qi[RU])[0],Vv[1]);iL.lineEnd()}else hs.push(uM=new Nk0(Vv,qi,null,!0)),Lt.push(uM.o=new Nk0(Vv,null,uM,!1)),hs.push(uM=new Nk0(KY,qi,null,!1)),Lt.push(uM.o=new Nk0(KY,null,uM,!0))}});
if(hs.length){Lt.sort(x);wHE(hs);wHE(Lt);var RU=0;for(C=Lt.length;RU<C;++RU)Lt[RU].e=H=!H;H=hs[0];for(var dn;;){for(var Dt=H,E6=!0;Dt.v;)if((Dt=Dt.n)===H)return;x=Dt.z;iL.lineStart();do{Dt.v=Dt.o.v=!0;if(Dt.e){if(E6)for(RU=0,C=x.length;RU<C;++RU)iL.point((dn=x[RU])[0],dn[1]);else eW(Dt.x,Dt.n.x,1,iL);Dt=Dt.n}else{if(E6)for(x=Dt.p.z,RU=x.length-1;RU>=0;--RU)iL.point((dn=x[RU])[0],dn[1]);else eW(Dt.x,Dt.p.x,-1,iL);Dt=Dt.p}Dt=Dt.o;x=Dt.z;E6=!E6}while(!Dt.v);iL.lineEnd()}}}
function wHE(C){if(x=C.length){for(var x,H=0,eW=C[0],iL;++H<x;)eW.n=iL=C[H],iL.p=eW,eW=iL;eW.n=iL=C[0];iL.p=eW}}
function IGi(C){return C.length>1}
function b6O(C,x){return((C=C.x)[0]<0?C[1]-oa-1E-6:oa-C[1])-((x=x.x)[0]<0?x[1]-oa-1E-6:oa-x[1])}
function vM0(){}
function F32(C){return function(x,H){var eW=JR(x),iL=JR(H);eW=C(eW*iL);return[eW*iL*Ko(x),eW*Ko(H)]}}
function hL(C){return function(x,H){var eW=sHM(x*x+H*H),iL=C(eW),hs=Ko(iL);iL=JR(iL);return[Qgi(x*hs,eW*iL),jHs(eW&&H*hs/eW)]}}
function YAw(C){var x=0,H=C.children,eW=H&&H.length;if(eW)for(;--eW>=0;)x+=H[eW].value;else x=1;C.value=x}
function g_J(C,x){var H=new Kz(C);C=+C.value&&(H.value=C.value);var eW,iL=[H],hs,Lt,RU,dn;for(x==null&&(x=m5v);eW=iL.pop();)if(C&&(eW.value=+eW.data.value),(Lt=x(eW.data))&&(dn=Lt.length))for(eW.children=Array(dn),RU=dn-1;RU>=0;--RU)iL.push(hs=eW.children[RU]=new Kz(Lt[RU])),hs.parent=eW,hs.depth=eW.depth+1;return H.eachBefore(yyS)}
function m5v(C){return C.children}
function qA9(C){C.data=C.data.data}
function yyS(C){var x=0;do C.height=x;while((C=C.parent)&&C.height<++x)}
function Kz(C){this.data=C;this.depth=this.height=0;this.parent=null}
function i4(C,x,H,eW){function iL(hs){return C(hs=new Date(+hs)),hs}
iL.floor=iL;iL.ceil=function(hs){return C(hs=new Date(hs-1)),x(hs,1),C(hs),hs};
iL.round=function(hs){var Lt=iL(hs),RU=iL.ceil(hs);return hs-Lt<RU-hs?Lt:RU};
iL.offset=function(hs,Lt){return x(hs=new Date(+hs),Lt==null?1:Math.floor(Lt)),hs};
iL.range=function(hs,Lt,RU){var dn=[],Dt;hs=iL.ceil(hs);RU=RU==null?1:Math.floor(RU);if(!(hs<Lt&&RU>0))return dn;do dn.push(Dt=new Date(+hs)),x(hs,RU),C(hs);while(Dt<hs&&hs<Lt);return dn};
iL.filter=function(hs){return i4(function(Lt){if(Lt>=Lt)for(;C(Lt),!hs(Lt);)Lt.setTime(Lt-1)},function(Lt,RU){if(Lt>=Lt)if(RU<0)for(;++RU<=0;)for(;x(Lt,-1),!hs(Lt););
else for(;--RU>=0;)for(;x(Lt,1),!hs(Lt););})};
H&&(iL.count=function(hs,Lt){esj.setTime(+hs);dZt.setTime(+Lt);C(esj);C(dZt);return Math.floor(H(esj,dZt))},iL.every=function(hs){hs=Math.floor(hs);
return isFinite(hs)&&hs>0?hs>1?iL.filter(eW?function(Lt){return eW(Lt)%hs===0}:function(Lt){return iL.count(0,Lt)%hs===0}):iL:null});
return iL}
function xQ(C){return i4(function(x){x.setDate(x.getDate()-(x.getDay()+7-C)%7);x.setHours(0,0,0,0)},function(x,H){x.setDate(x.getDate()+H*7)},function(x,H){return(H-x-(H.getTimezoneOffset()-x.getTimezoneOffset())*6E4)/6048E5})}
function BW(C){return i4(function(x){x.setUTCDate(x.getUTCDate()-(x.getUTCDay()+7-C)%7);x.setUTCHours(0,0,0,0)},function(x,H){x.setUTCDate(x.getUTCDate()+H*7)},function(x,H){return(H-x)/6048E5})}
function ryC(C){if(0<=C.y&&C.y<100){var x=new Date(-1,C.m,C.d,C.H,C.M,C.S,C.L);x.setFullYear(C.y);return x}return new Date(C.y,C.m,C.d,C.H,C.M,C.S,C.L)}
function kR0(C){if(0<=C.y&&C.y<100){var x=new Date(Date.UTC(-1,C.m,C.d,C.H,C.M,C.S,C.L));x.setUTCFullYear(C.y);return x}return new Date(Date.UTC(C.y,C.m,C.d,C.H,C.M,C.S,C.L))}
function $U(C){return{y:C,m:0,d:1,H:0,M:0,S:0,L:0}}
function hM1(C){function x(lS,ru){return function(W$){var M1=[],C4=-1,t0=0,Zq=lS.length,SG,gs;for(W$ instanceof Date||(W$=new Date(+W$));++C4<Zq;)if(lS.charCodeAt(C4)===37){M1.push(lS.slice(t0,C4));(t0=uBe[SG=lS.charAt(++C4)])!=null?SG=lS.charAt(++C4):t0=SG==="e"?" ":"0";if(gs=ru[SG])SG=gs(W$,t0);M1.push(SG);t0=C4+1}M1.push(lS.slice(t0,C4));return M1.join("")}}
function H(lS,ru){return function(W$){var M1=$U(1900);if(eW(M1,lS,W$,0)!=W$.length)return null;if("Q"in M1)return new Date(M1.Q);"p"in M1&&(M1.H=M1.H%12+M1.p*12);if("V"in M1){if(M1.V<1||M1.V>53)return null;"w"in M1||(M1.w=1);if("Z"in M1){W$=kR0($U(M1.y));var C4=W$.getUTCDay();W$=C4>4||C4===0?EM$.ceil(W$):EM$(W$);W$=n_B.offset(W$,(M1.V-1)*7);M1.y=W$.getUTCFullYear();M1.m=W$.getUTCMonth();M1.d=W$.getUTCDate()+(M1.w+6)%7}else W$=ru($U(M1.y)),C4=W$.getDay(),W$=C4>4||C4===0?TDt.ceil(W$):TDt(W$),W$=DN0.offset(W$,
(M1.V-1)*7),M1.y=W$.getFullYear(),M1.m=W$.getMonth(),M1.d=W$.getDate()+(M1.w+6)%7}else if("W"in M1||"U"in M1)"w"in M1||(M1.w="u"in M1?M1.u%7:"W"in M1?1:0),C4="Z"in M1?kR0($U(M1.y)).getUTCDay():ru($U(M1.y)).getDay(),M1.m=0,M1.d="W"in M1?(M1.w+6)%7+M1.W*7-(C4+5)%7:M1.w+M1.U*7-(C4+6)%7;return"Z"in M1?(M1.H+=M1.Z/100|0,M1.M+=M1.Z%100,kR0(M1)):ru(M1)}}
function eW(lS,ru,W$,M1){for(var C4=0,t0=ru.length,Zq=W$.length,SG;C4<t0;){if(M1>=Zq)return-1;SG=ru.charCodeAt(C4++);if(SG===37){if(SG=ru.charAt(C4++),SG=vV[SG in uBe?ru.charAt(C4++):SG],!SG||(M1=SG(lS,W$,M1))<0)return-1}else if(SG!=W$.charCodeAt(M1++))return-1}return M1}
var iL=C.dateTime,hs=C.date,Lt=C.time,RU=C.periods,dn=C.days,Dt=C.shortDays,E6=C.months,qi=C.shortMonths,uM=j0(RU),Vv=sy(RU),KY=j0(dn),A7=sy(dn),Vt=j0(Dt),AI=sy(Dt),CD=j0(E6),YH=sy(E6),H5=j0(qi),XK=sy(qi),y4={a:function(lS){return Dt[lS.getDay()]},
A:function(lS){return dn[lS.getDay()]},
b:function(lS){return qi[lS.getMonth()]},
B:function(lS){return E6[lS.getMonth()]},
c:null,d:UNJ,e:UNJ,f:K4i,H:$59,I:jis,j:si9,L:pHn,m:N$i,M:k1i,p:function(lS){return RU[+(lS.getHours()>=12)]},
Q:vK2,s:er0,S:L4O,u:V69,U:owv,V:Jy1,w:G1f,W:M6s,x:null,X:null,y:t6C,Y:fGf,Z:RMQ,"%":d$g},wu={a:function(lS){return Dt[lS.getUTCDay()]},
A:function(lS){return dn[lS.getUTCDay()]},
b:function(lS){return qi[lS.getUTCMonth()]},
B:function(lS){return E6[lS.getUTCMonth()]},
c:null,d:EKE,e:EKE,f:Pxf,H:x59,I:B$S,j:Cx_,L:TTn,m:XD1,M:zMs,p:function(lS){return RU[+(lS.getUTCHours()>=12)]},
Q:vK2,s:er0,S:lGi,u:H69,U:AyO,V:Z6v,w:cyO,W:wD1,x:null,X:null,y:F4Q,Y:Qis,Z:gws,"%":d$g},vV={a:function(lS,ru,W$){return(ru=Vt.exec(ru.slice(W$)))?(lS.w=AI[ru[0].toLowerCase()],W$+ru[0].length):-1},
A:function(lS,ru,W$){return(ru=KY.exec(ru.slice(W$)))?(lS.w=A7[ru[0].toLowerCase()],W$+ru[0].length):-1},
b:function(lS,ru,W$){return(ru=H5.exec(ru.slice(W$)))?(lS.m=XK[ru[0].toLowerCase()],W$+ru[0].length):-1},
B:function(lS,ru,W$){return(ru=CD.exec(ru.slice(W$)))?(lS.m=YH[ru[0].toLowerCase()],W$+ru[0].length):-1},
c:function(lS,ru,W$){return eW(lS,iL,ru,W$)},
d:S1u,e:S1u,f:uYS,H:WZu,I:WZu,j:nw9,L:D5s,m:U5O,M:pDv,p:function(lS,ru,W$){return(ru=uM.exec(ru.slice(W$)))?(lS.p=Vv[ru[0].toLowerCase()],W$+ru[0].length):-1},
Q:v_w,s:exS,S:dNt,u:E_s,U:Toi,V:ST9,w:W3O,W:aS_,x:function(lS,ru,W$){return eW(lS,hs,ru,W$)},
X:function(lS,ru,W$){return eW(lS,Lt,ru,W$)},
y:ie1,Y:Oe1,Z:ISs,"%":be9};y4.x=x(hs,y4);y4.X=x(Lt,y4);y4.c=x(iL,y4);wu.x=x(hs,wu);wu.X=x(Lt,wu);wu.c=x(iL,wu);return{format:function(lS){var ru=x(lS,y4);ru.toString=function(){return lS};
return ru},
parse:function(lS){var ru=H(lS,ryC);ru.toString=function(){return lS};
return ru},
utcFormat:function(lS){var ru=x(lS,wu);ru.toString=function(){return lS};
return ru},
utcParse:function(lS){var ru=H(lS,kR0);ru.toString=function(){return lS};
return ru}}}
function ig(C,x,H){var eW=C<0?"-":"";C=(eW?-C:C)+"";var iL=C.length;return eW+(iL<H?Array(H-iL+1).join(x)+C:C)}
function YTs(C){return C.replace(mN9,"\\$&")}
function j0(C){return new RegExp("^(?:"+C.map(YTs).join("|")+")","i")}
function sy(C){for(var x={},H=-1,eW=C.length;++H<eW;)x[C[H].toLowerCase()]=H;return x}
function W3O(C,x,H){return(x=mU.exec(x.slice(H,H+1)))?(C.w=+x[0],H+x[0].length):-1}
function E_s(C,x,H){return(x=mU.exec(x.slice(H,H+1)))?(C.u=+x[0],H+x[0].length):-1}
function Toi(C,x,H){return(x=mU.exec(x.slice(H,H+2)))?(C.U=+x[0],H+x[0].length):-1}
function ST9(C,x,H){return(x=mU.exec(x.slice(H,H+2)))?(C.V=+x[0],H+x[0].length):-1}
function aS_(C,x,H){return(x=mU.exec(x.slice(H,H+2)))?(C.W=+x[0],H+x[0].length):-1}
function Oe1(C,x,H){return(x=mU.exec(x.slice(H,H+4)))?(C.y=+x[0],H+x[0].length):-1}
function ie1(C,x,H){return(x=mU.exec(x.slice(H,H+2)))?(C.y=+x[0]+(+x[0]>68?1900:2E3),H+x[0].length):-1}
function ISs(C,x,H){return(x=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(x.slice(H,H+6)))?(C.Z=x[1]?0:-(x[2]+(x[3]||"00")),H+x[0].length):-1}
function U5O(C,x,H){return(x=mU.exec(x.slice(H,H+2)))?(C.m=x[0]-1,H+x[0].length):-1}
function S1u(C,x,H){return(x=mU.exec(x.slice(H,H+2)))?(C.d=+x[0],H+x[0].length):-1}
function nw9(C,x,H){return(x=mU.exec(x.slice(H,H+3)))?(C.m=0,C.d=+x[0],H+x[0].length):-1}
function WZu(C,x,H){return(x=mU.exec(x.slice(H,H+2)))?(C.H=+x[0],H+x[0].length):-1}
function pDv(C,x,H){return(x=mU.exec(x.slice(H,H+2)))?(C.M=+x[0],H+x[0].length):-1}
function dNt(C,x,H){return(x=mU.exec(x.slice(H,H+2)))?(C.S=+x[0],H+x[0].length):-1}
function D5s(C,x,H){return(x=mU.exec(x.slice(H,H+3)))?(C.L=+x[0],H+x[0].length):-1}
function uYS(C,x,H){return(x=mU.exec(x.slice(H,H+6)))?(C.L=Math.floor(x[0]/1E3),H+x[0].length):-1}
function be9(C,x,H){return(C=ydQ.exec(x.slice(H,H+1)))?H+C[0].length:-1}
function v_w(C,x,H){return(x=mU.exec(x.slice(H)))?(C.Q=+x[0],H+x[0].length):-1}
function exS(C,x,H){return(x=mU.exec(x.slice(H)))?(C.Q=+x[0]*1E3,H+x[0].length):-1}
function UNJ(C,x){return ig(C.getDate(),x,2)}
function $59(C,x){return ig(C.getHours(),x,2)}
function jis(C,x){return ig(C.getHours()%12||12,x,2)}
function si9(C,x){return ig(1+DN0.count(TG(C),C),x,3)}
function pHn(C,x){return ig(C.getMilliseconds(),x,3)}
function K4i(C,x){return pHn(C,x)+"000"}
function N$i(C,x){return ig(C.getMonth()+1,x,2)}
function k1i(C,x){return ig(C.getMinutes(),x,2)}
function L4O(C,x){return ig(C.getSeconds(),x,2)}
function V69(C){C=C.getDay();return C===0?7:C}
function owv(C,x){return ig(qTf.count(TG(C),C),x,2)}
function Jy1(C,x){var H=C.getDay();C=H>=4||H===0?WO$(C):WO$.ceil(C);return ig(WO$.count(TG(C),C)+(TG(C).getDay()===4),x,2)}
function G1f(C){return C.getDay()}
function M6s(C,x){return ig(TDt.count(TG(C),C),x,2)}
function t6C(C,x){return ig(C.getFullYear()%100,x,2)}
function fGf(C,x){return ig(C.getFullYear()%1E4,x,4)}
function RMQ(C){C=C.getTimezoneOffset();return(C>0?"-":(C*=-1,"+"))+ig(C/60|0,"0",2)+ig(C%60,"0",2)}
function EKE(C,x){return ig(C.getUTCDate(),x,2)}
function x59(C,x){return ig(C.getUTCHours(),x,2)}
function B$S(C,x){return ig(C.getUTCHours()%12||12,x,2)}
function Cx_(C,x){return ig(1+n_B.count(SJ(C),C),x,3)}
function TTn(C,x){return ig(C.getUTCMilliseconds(),x,3)}
function Pxf(C,x){return TTn(C,x)+"000"}
function XD1(C,x){return ig(C.getUTCMonth()+1,x,2)}
function zMs(C,x){return ig(C.getUTCMinutes(),x,2)}
function lGi(C,x){return ig(C.getUTCSeconds(),x,2)}
function H69(C){C=C.getUTCDay();return C===0?7:C}
function AyO(C,x){return ig(rd9.count(SJ(C),C),x,2)}
function Z6v(C,x){var H=C.getUTCDay();C=H>=4||H===0?ab0(C):ab0.ceil(C);return ig(ab0.count(SJ(C),C)+(SJ(C).getUTCDay()===4),x,2)}
function cyO(C){return C.getUTCDay()}
function wD1(C,x){return ig(EM$.count(SJ(C),C),x,2)}
function F4Q(C,x){return ig(C.getUTCFullYear()%100,x,2)}
function Qis(C,x){return ig(C.getUTCFullYear()%1E4,x,4)}
function gws(){return"+0000"}
function d$g(){return"%"}
function vK2(C){return+C}
function er0(C){return Math.floor(+C/1E3)}
function m1(C){for(var x=C.length/6|0,H=Array(x),eW=0;eW<x;)H[eW]="#"+C.slice(eW*6,++eW*6);return H}
function Xy(C){return hxi(C[C.length-1])}
function LqU(C){var x=C.length;return function(H){return C[Math.max(0,Math.min(x-1,Math.floor(H*x)))]}}
function ahI(C){this._context=C}
function isc(C){this._curve=C}
function Ose(C,x,H){var eW=C._x1-C._x0;x-=C._x1;var iL=(C._y1-C._y0)/(eW||x<0&&-0);C=(H-C._y1)/(x||eW<0&&-0);return((iL<0?-1:1)+(C<0?-1:1))*Math.min(Math.abs(iL),Math.abs(C),.5*Math.abs((iL*x+C*eW)/(eW+x)))||0}
function Ihg(C,x){var H=C._x1-C._x0;return H?(3*(C._y1-C._y0)/H-x)/2:x}
function iR3(C,x,H){var eW=C._x0,iL=C._x1,hs=C._y1,Lt=(iL-eW)/3;C._context.bezierCurveTo(eW+Lt,C._y0+Lt*x,iL-Lt,hs-Lt*H,iL,hs)}
function ORW(C){this._context=C}
function bs7(C){this._context=C}
function Nt(C,x,H){this.k=C;this.x=x;this.y=H}
(function(C){C.length===1&&(C=e(C));return{left:function(x,H,eW,iL){eW==null&&(eW=0);iL==null&&(iL=x.length);for(;eW<iL;){var hs=eW+iL>>>1;C(x[hs],H)<0?eW=hs+1:iL=hs}return eW},
right:function(x,H,eW,iL){eW==null&&(eW=0);iL==null&&(iL=x.length);for(;eW<iL;){var hs=eW+iL>>>1;C(x[hs],H)>0?iL=hs:eW=hs+1}return eW}}})(v);
var Iei={value:function(){}};
E.prototype=d.prototype={constructor:E,on:function(C,x){var H=this._,eW=T(C+"",H),iL,hs=-1,Lt=eW.length;if(arguments.length<2)for(;++hs<Lt;){var RU;if(RU=iL=(C=eW[hs]).type){a:{RU=H[iL];for(var dn=0,Dt=RU.length;dn<Dt;++dn)if((iL=RU[dn]).name===C.name){iL=iL.value;break a}iL=void 0}RU=iL}if(RU)return iL}else{if(x!=null&&typeof x!=="function")throw Error("ze`"+x);for(;++hs<Lt;)if(iL=(C=eW[hs]).type)H[iL]=S(H[iL],C.name,x);else if(x==null)for(iL in H)H[iL]=S(H[iL],C.name,null);return this}},
copy:function(){var C={},x=this._,H;for(H in x)C[H]=x[H].slice();return new E(C)},
call:function(C,x){if((iL=arguments.length-2)>0)for(var H=Array(iL),eW=0,iL,hs;eW<iL;++eW)H[eW]=arguments[eW+2];if(!this._.hasOwnProperty(C))throw Error("te`"+C);hs=this._[C];eW=0;for(iL=hs.length;eW<iL;++eW)hs[eW].value.apply(x,H)},
apply:function(C,x,H){if(!this._.hasOwnProperty(C))throw Error("te`"+C);C=this._[C];for(var eW=0,iL=C.length;eW<iL;++eW)C[eW].value.apply(x,H)}};
var Vu={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/"},Y1A=function(C){return function(){return this.matches(C)}};
if(typeof document!=="undefined"){var kU=document.documentElement;if(!kU.matches){var K3s=kU.webkitMatchesSelector||kU.msMatchesSelector||kU.mozMatchesSelector||kU.oMatchesSelector;Y1A=function(C){return function(){return K3s.call(this,C)}}}}var m$g=Y1A;
k.prototype={constructor:k,appendChild:function(C){return this._parent.insertBefore(C,this._next)},
insertBefore:function(C,x){return this._parent.insertBefore(C,x)},
querySelector:function(C){return this._parent.querySelector(C)},
querySelectorAll:function(C){return this._parent.querySelectorAll(C)}};
var rdn={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(rdn={mouseenter:"mouseover",mouseleave:"mouseout"}));var b$C=[null];gn.prototype=hi.prototype={constructor:gn,select:function(C){typeof C!=="function"&&(C=h(C));for(var x=this._groups,H=x.length,eW=Array(H),iL=0;iL<H;++iL)for(var hs=x[iL],Lt=hs.length,RU=eW[iL]=Array(Lt),dn,Dt,E6=0;E6<Lt;++E6)(dn=hs[E6])&&(Dt=C.call(dn,dn.__data__,E6,hs))&&("__data__"in dn&&(Dt.__data__=dn.__data__),RU[E6]=Dt);return new gn(eW,
this._parents)},
filter:function(C){typeof C!=="function"&&(C=m$g(C));for(var x=this._groups,H=x.length,eW=Array(H),iL=0;iL<H;++iL)for(var hs=x[iL],Lt=hs.length,RU=eW[iL]=[],dn,Dt=0;Dt<Lt;++Dt)(dn=hs[Dt])&&C.call(dn,dn.__data__,Dt,hs)&&RU.push(dn);return new gn(eW,this._parents)},
data:function(C,x){if(!C)return Vv=Array(this.size()),Dt=-1,this.each(function(CD){Vv[++Dt]=CD}),Vv;
var H=x?B:R,eW=this._parents,iL=this._groups;typeof C!=="function"&&(C=J(C));for(var hs=iL.length,Lt=Array(hs),RU=Array(hs),dn=Array(hs),Dt=0;Dt<hs;++Dt){var E6=eW[Dt],qi=iL[Dt],uM=qi.length,Vv=C.call(E6,E6&&E6.__data__,Dt,eW),KY=Vv.length,A7=RU[Dt]=Array(KY),Vt=Lt[Dt]=Array(KY);uM=dn[Dt]=Array(uM);H(E6,qi,A7,Vt,uM,Vv,x);qi=E6=0;for(var AI;E6<KY;++E6)if(uM=A7[E6]){for(E6>=qi&&(qi=E6+1);!(AI=Vt[qi])&&++qi<KY;);uM._next=AI||null}}Lt=new gn(Lt,eW);Lt._enter=RU;Lt._exit=dn;return Lt},
enter:function(){return new gn(this._enter||this._groups.map(K),this._parents)},
exit:function(){return new gn(this._exit||this._groups.map(K),this._parents)},
merge:function(C){var x=this._groups;C=C._groups;for(var H=x.length,eW=Math.min(H,C.length),iL=Array(H),hs=0;hs<eW;++hs)for(var Lt=x[hs],RU=C[hs],dn=Lt.length,Dt=iL[hs]=Array(dn),E6,qi=0;qi<dn;++qi)if(E6=Lt[qi]||RU[qi])Dt[qi]=E6;for(;hs<H;++hs)iL[hs]=x[hs];return new gn(iL,this._parents)},
order:function(){for(var C=this._groups,x=-1,H=C.length;++x<H;)for(var eW=C[x],iL=eW.length-1,hs=eW[iL],Lt;--iL>=0;)if(Lt=eW[iL])hs&&hs!==Lt.nextSibling&&hs.parentNode.insertBefore(Lt,hs),hs=Lt;return this},
sort:function(C){function x(qi,uM){return qi&&uM?C(qi.__data__,uM.__data__):!qi-!uM}
C||(C=X);for(var H=this._groups,eW=H.length,iL=Array(eW),hs=0;hs<eW;++hs){for(var Lt=H[hs],RU=Lt.length,dn=iL[hs]=Array(RU),Dt,E6=0;E6<RU;++E6)if(Dt=Lt[E6])dn[E6]=Dt;dn.sort(x)}return(new gn(iL,this._parents)).order()},
call:function(){var C=arguments[0];arguments[0]=this;C.apply(null,arguments);return this},
nodes:function(){var C=Array(this.size()),x=-1;this.each(function(){C[++x]=this});
return C},
node:function(){for(var C=this._groups,x=0,H=C.length;x<H;++x)for(var eW=C[x],iL=0,hs=eW.length;iL<hs;++iL){var Lt=eW[iL];if(Lt)return Lt}return null},
size:function(){var C=0;this.each(function(){++C});
return C},
empty:function(){return!this.node()},
each:function(C){for(var x=this._groups,H=0,eW=x.length;H<eW;++H)for(var iL=x[H],hs=0,Lt=iL.length,RU;hs<Lt;++hs)(RU=iL[hs])&&C.call(RU,RU.__data__,hs,iL);return this},
attr:function(C,x){var H=O(C);if(arguments.length<2){var eW=this.node();return H.local?eW.getAttributeNS(H.space,H.local):eW.getAttribute(H)}return this.each((x==null?H.local?U:Z:typeof x==="function"?H.local?v3:Q:H.local?g:F)(H,x))},
style:function(C,x,H){return arguments.length>1?this.each((x==null?q7:typeof x==="function"?$S:m0)(C,x,H==null?"":H)):kS(this.node(),C)},
property:function(C,x){return arguments.length>1?this.each((x==null?N7:typeof x==="function"?Ct:As)(C,x)):this.node()[C]},
text:function(C){return arguments.length?this.each(C==null?SA:(typeof C==="function"?mg:xI)(C)):this.node().textContent},
html:function(C){return arguments.length?this.each(C==null?pt:(typeof C==="function"?yB:he)(C)):this.node().innerHTML},
append:function(C){var x=typeof C==="function"?C:q(C);return this.select(function(){return this.appendChild(x.apply(this,arguments))})},
insert:function(C,x){var H=typeof C==="function"?C:q(C),eW=x==null?te:typeof x==="function"?x:h(x);return this.select(function(){return this.insertBefore(H.apply(this,arguments),eW.apply(this,arguments)||null)})},
remove:function(){return this.each(oC)},
clone:function(C){return this.select(C?SW:n7)},
datum:function(C){return arguments.length?this.property("__data__",C):this.node().__data__},
on:function(C,x,H){var eW=Ys(C+""),iL=eW.length,hs;if(arguments.length<2){var Lt=this.node().__on;if(Lt)for(var RU=0,dn=Lt.length,Dt;RU<dn;++RU){var E6=0;for(Dt=Lt[RU];E6<iL;++E6)if((hs=eW[E6]).type===Dt.type&&hs.name===Dt.name)return Dt.value}}else{Lt=x?es:s6;H==null&&(H=!1);for(E6=0;E6<iL;++E6)this.each(Lt(eW[E6],x,H));return this}},
dispatch:function(C,x){return this.each((typeof x==="function"?IE:vO)(C,x))}};
var YQv=0;Je.prototype=function(){return new Je}.prototype={constructor:Je,
get:function(C){for(var x=this._;!(x in C);)if(!(C=C.parentNode))return;return C[x]},
set:function(C,x){return C[this._]=x},
remove:function(C){return this._ in C&&delete C[this._]},
toString:function(){return this._}};
var WE=1/.7,mS1=/^#([0-9a-f]{3})$/,y99=/^#([0-9a-f]{6})$/,qQv=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),r9f=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),hv9=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),Kki=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*\\)$"),
$SC=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),jxf=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*\\)$"),hx6={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};
G2(Ya,r9,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
G2(w9,f9,si(Ya,{brighter:function(C){C=C==null?WE:Math.pow(WE,C);return new w9(this.r*C,this.g*C,this.b*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new w9(this.r*C,this.g*C,this.b*C,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"#"+a$(this.r)+a$(this.g)+a$(this.b)},
toString:function(){var C=this.opacity;C=isNaN(C)?1:Math.max(0,Math.min(1,C));return(C===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))+(C===1?")":", "+C+")")}}));
G2(M9,Pi,si(Ya,{brighter:function(C){C=C==null?WE:Math.pow(WE,C);return new M9(this.h,this.s,this.l*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new M9(this.h,this.s,this.l*C,this.opacity)},
rgb:function(){var C=this.h%360+(this.h<0)*360,x=this.l,H=x+(x<.5?x:1-x)*(isNaN(C)||isNaN(this.s)?0:this.s);x=2*x-H;return new w9(Sy(C>=240?C-240:C+120,x,H),Sy(C,x,H),Sy(C<120?C+240:C-120,x,H),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 K3A=Math.PI/180,sg6=180/Math.PI,jgJ=4/29,dO=6/29,$NB=3*dO*dO,sx9=dO*dO*dO;G2(Js,function(C,x,H,eW){return arguments.length===1?WP(C):new Js(C,x,H,eW==null?1:eW)},si(Ya,{brighter:function(C){return new Js(this.l+18*(C==null?1:C),this.a,this.b,this.opacity)},
darker:function(C){return new Js(this.l-18*(C==null?1:C),this.a,this.b,this.opacity)},
rgb:function(){var C=(this.l+16)/116,x=isNaN(this.a)?C:C+this.a/500,H=isNaN(this.b)?C:C-this.b/200;x=.96422*wH(x);C=1*wH(C);H=.82521*wH(H);return new w9(K7(3.1338561*x-1.6168667*C-.4906146*H),K7(-.9787684*x+1.9161415*C+.033454*H),K7(.0719453*x-.2289914*C+1.4052427*H),this.opacity)}}));
G2(kI,L9,si(Ya,{brighter:function(C){return new kI(this.h,this.c,this.l+18*(C==null?1:C),this.opacity)},
darker:function(C){return new kI(this.h,this.c,this.l-18*(C==null?1:C),this.opacity)},
rgb:function(){return WP(this).rgb()}}));
var NoE=1.78277*-.29227-.1347134789;G2(xs,Ni,si(Ya,{brighter:function(C){C=C==null?WE:Math.pow(WE,C);return new xs(this.h,this.s,this.l*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new xs(this.h,this.s,this.l*C,this.opacity)},
rgb:function(){var C=isNaN(this.h)?0:(this.h+120)*K3A,x=+this.l,H=isNaN(this.s)?0:this.s*x*(1-x),eW=Math.cos(C);C=Math.sin(C);return new w9(255*(x+H*(-.14861*eW+1.78277*C)),255*(x+H*(-.29227*eW+-.90649*C)),255*(x+1.97294*eW*H),this.opacity)}}));
var Jd2=function H(x){function eW(hs,Lt){var RU=iL((hs=f9(hs)).r,(Lt=f9(Lt)).r),dn=iL(hs.g,Lt.g),Dt=iL(hs.b,Lt.b),E6=CI(hs.opacity,Lt.opacity);return function(qi){hs.r=RU(qi);hs.g=dn(qi);hs.b=Dt(qi);hs.opacity=E6(qi);return hs+""}}
var iL=R_(x);eW.gamma=H;return eW}(1),hxi=np(function(x){var H=x.length-1;
return function(eW){var iL=eW<=0?eW=0:eW>=1?(eW=1,H-1):Math.floor(eW*H),hs=x[iL],Lt=x[iL+1];return qf((eW-iL/H)*H,iL>0?x[iL-1]:2*hs-Lt,hs,Lt,iL<H-1?x[iL+2]:2*Lt-hs)}});
np(function(x){var H=x.length;return function(eW){var iL=Math.floor(((eW%=1)<0?++eW:eW)*H);return qf((eW-iL/H)*H,x[(iL+H-1)%H],x[iL%H],x[(iL+1)%H],x[(iL+2)%H])}});
var ZsH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cb3=new RegExp(ZsH.source,"g"),kJi=180/Math.PI,Ibt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Lz,bR0,yb6,VGM,$Nv=BO(function(x){if(x==="none")return Ibt;Lz||(Lz=document.createElement("DIV"),bR0=document.documentElement,yb6=document.defaultView);Lz.style.transform=x;x=yb6.getComputedStyle(bR0.appendChild(Lz),null).getPropertyValue("transform");bR0.removeChild(Lz);x=x.slice(7,-1).split(",");return K9(+x[0],+x[1],+x[2],+x[3],
+x[4],+x[5])},"px, ","px)","deg)"),jgt=BO(function(x){if(x==null)return Ibt;
VGM||(VGM=document.createElementNS("http://www.w3.org/2000/svg","g"));VGM.setAttribute("transform",x);if(!(x=VGM.transform.baseVal.consolidate()))return Ibt;x=x.matrix;return K9(x.a,x.b,x.c,x.d,x.e,x.f)},", ",")",")");
aC(CY);aC(CI);be(CY);be(CI);wr(CY);var Yes=wr(CI),E5=0,ys=0,r2=0,raW,qt,qI0=0,Ro=0,yaj=0,mQ=typeof performance==="object"&&performance.now?performance:Date,L3M=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(x){setTimeout(x,17)};
jK.prototype=IQ.prototype={constructor:jK,restart:function(x,H,eW){if(typeof x!=="function")throw new TypeError("Ae");eW=(eW==null?xh():+eW)+(H==null?0:+H);this._next||qt===this||(qt?qt._next=this:raW=this,qt=this);this._call=x;this._time=eW;Yt()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Yt())}};
var kBt=d("start","end","interrupt"),LkC=[],sgi=hi.prototype.constructor,q1A=0,a1=hi.prototype;l$.prototype=function(x){return hi().transition(x)}.prototype={constructor:l$,
select:function(x){var H=this._name,eW=this._id;typeof x!=="function"&&(x=h(x));for(var iL=this._groups,hs=iL.length,Lt=Array(hs),RU=0;RU<hs;++RU)for(var dn=iL[RU],Dt=dn.length,E6=Lt[RU]=Array(Dt),qi,uM,Vv=0;Vv<Dt;++Vv)(qi=dn[Vv])&&(uM=x.call(qi,qi.__data__,Vv,dn))&&("__data__"in qi&&(uM.__data__=qi.__data__),E6[Vv]=uM,wl$(E6[Vv],H,eW,Vv,E6,hM(qi,eW)));return new l$(Lt,this._parents,H,eW)},
filter:function(x){typeof x!=="function"&&(x=m$g(x));for(var H=this._groups,eW=H.length,iL=Array(eW),hs=0;hs<eW;++hs)for(var Lt=H[hs],RU=Lt.length,dn=iL[hs]=[],Dt,E6=0;E6<RU;++E6)(Dt=Lt[E6])&&x.call(Dt,Dt.__data__,E6,Lt)&&dn.push(Dt);return new l$(iL,this._parents,this._name,this._id)},
merge:function(x){if(x._id!==this._id)throw Error();var H=this._groups;x=x._groups;for(var eW=H.length,iL=Math.min(eW,x.length),hs=Array(eW),Lt=0;Lt<iL;++Lt)for(var RU=H[Lt],dn=x[Lt],Dt=RU.length,E6=hs[Lt]=Array(Dt),qi,uM=0;uM<Dt;++uM)if(qi=RU[uM]||dn[uM])E6[uM]=qi;for(;Lt<eW;++Lt)hs[Lt]=H[Lt];return new l$(hs,this._parents,this._name,this._id)},
selection:function(){return new sgi(this._groups,this._parents)},
transition:function(){for(var x=this._name,H=this._id,eW=++q1A,iL=this._groups,hs=iL.length,Lt=0;Lt<hs;++Lt)for(var RU=iL[Lt],dn=RU.length,Dt,E6=0;E6<dn;++E6)if(Dt=RU[E6]){var qi=hM(Dt,H);wl$(Dt,x,eW,E6,RU,{time:qi.time+qi.delay+qi.duration,delay:0,duration:qi.duration,ease:qi.ease})}return new l$(iL,this._parents,x,eW)},
call:a1.call,nodes:a1.nodes,node:a1.node,size:a1.size,empty:a1.empty,each:a1.each,on:function(x,H){var eW=this._id;return arguments.length<2?hM(this.node(),eW).on.on(x):this.each(A9f(eW,x,H))},
attr:function(x,H){var eW=O(x),iL=eW==="transform"?jgt:o_J;return this.attrTween(x,typeof H==="function"?(eW.local?RvO:feQ)(eW,iL,QcO(this,"attr."+x,H)):H==null?(eW.local?GBQ:J9Q)(eW):(eW.local?t$Q:M$O)(eW,iL,H+""))},
attrTween:function(x,H){var eW="attr."+x;if(arguments.length<2)return(eW=this.tween(eW))&&eW._value;if(H==null)return this.tween(eW,null);if(typeof H!=="function")throw Error();var iL=O(x);return this.tween(eW,(iL.local?PyC:xSs)(iL,H))},
style:function(x,H,eW){var iL=x==="transform"?$Nv:o_J;return H==null?this.styleTween(x,c9_(x,iL)).on("end.style."+x,wA1(x)):this.styleTween(x,typeof H==="function"?Qx_(x,iL,QcO(this,"style."+x,H)):Fkv(x,iL,H+""),eW)},
styleTween:function(x,H,eW){var iL="style."+x;if(arguments.length<2)return(iL=this.tween(iL))&&iL._value;if(H==null)return this.tween(iL,null);if(typeof H!=="function")throw Error();return this.tween(iL,glt(x,H,eW==null?"":eW))},
text:function(x){return this.tween("text",typeof x==="function"?nlw(QcO(this,"text",x)):uOs(x==null?"":x+""))},
remove:function(){return this.on("end.remove",Z$i(this._id))},
tween:function(x,H){var eW=this._id;if(arguments.length<2){eW=hM(this.node(),eW).tween;for(var iL=0,hs=eW.length,Lt;iL<hs;++iL)if((Lt=eW[iL]).name===x)return Lt.value;return null}return this.each((H==null?V$v:oli)(eW,x,H))},
delay:function(x){var H=this._id;return arguments.length?this.each((typeof x==="function"?Bs9:CyO)(H,x)):hM(this.node(),H).delay},
duration:function(x){var H=this._id;return arguments.length?this.each((typeof x==="function"?XA_:zvs)(H,x)):hM(this.node(),H).duration},
ease:function(x){var H=this._id;return arguments.length?this.each(lef(H,x)):hM(this.node(),H).ease}};
var mZO={time:null,delay:0,duration:250,ease:function(x){return((x*=2)<=1?x*x*x:(x-=2)*x*x+2)/2}};
hi.prototype.transition=function(x){var H;if(x instanceof l$){var eW=x._id;x=x._name}else eW=++q1A,(H=mZO).time=xh(),x=x==null?null:x+"";for(var iL=this._groups,hs=iL.length,Lt=0;Lt<hs;++Lt)for(var RU=iL[Lt],dn=RU.length,Dt,E6=0;E6<dn;++E6)if(Dt=RU[E6]){var qi=Dt,uM=x,Vv=eW,KY=E6,A7=RU,Vt;if(!(Vt=H))a:{Vt=void 0;for(var AI=eW;!(Vt=Dt.__transition)||!(Vt=Vt[AI]);)if(!(Dt=Dt.parentNode)){Vt=(mZO.time=xh(),mZO);break a}}wl$(qi,uM,Vv,KY,A7,Vt)}return new l$(iL,this._parents,x,eW)};
["e","w"].map(gKt);["n","s"].map(gKt);"n e s w nw ne se sw".split(" ").map(gKt);uzL.prototype=function(){return new uzL}.prototype={constructor:uzL,
moveTo:function(x,H){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+H)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(x,H){this._+="L"+(this._x1=+x)+","+(this._y1=+H)},
bezierCurveTo:function(x,H,eW,iL,hs,Lt){this._+="C"+ +x+","+ +H+","+ +eW+","+ +iL+","+(this._x1=+hs)+","+(this._y1=+Lt)},
rect:function(x,H,eW,iL){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+H)+"h"+ +eW+"v"+ +iL+"h"+-eW+"Z"},
toString:function(){return this._}};
hhO.prototype=GJi.prototype={constructor:hhO,has:function(x){return" "+x in this},
get:function(x){return this[" "+x]},
set:function(x,H){this[" "+x]=H;return this},
remove:function(x){x=" "+x;return x in this&&delete this[x]},
clear:function(){for(var x in this)x[0]===" "&&delete this[x]},
keys:function(){var x=[],H;for(H in this)H[0]===" "&&x.push(H.slice(1));return x},
values:function(){var x=[],H;for(H in this)H[0]===" "&&x.push(this[H]);return x},
entries:function(){var x=[],H;for(H in this)H[0]===" "&&x.push({key:H.slice(1),value:this[H]});return x},
size:function(){var x=0,H;for(H in this)H[0]===" "&&++x;return x},
empty:function(){for(var x in this)if(x[0]===" ")return!1;return!0},
each:function(x){for(var H in this)H[0]===" "&&x(this[H],H.slice(1),this)}};
var C5=GJi.prototype;KqH.prototype=function(x,H){var eW=new KqH;if(x instanceof KqH)x.each(function(Lt){eW.add(Lt)});
else if(x){var iL=-1,hs=x.length;if(H==null)for(;++iL<hs;)eW.add(x[iL]);else for(;++iL<hs;)eW.add(H(x[iL],iL,x))}return eW}.prototype={constructor:KqH,
has:C5.has,add:function(x){this[" "+x]=x;return this},
remove:C5.remove,clear:C5.clear,values:C5.keys,size:C5.size,empty:C5.empty,each:C5.each};var fS0={},nK7={},NoC=tig(",").parse,kJ1=tig("\t").parse;RxB(NoC);RxB(kJ1);var fq=function(x,H,eW){H=new D$H(H==null?vw_:H,eW==null?eM9:eW,NaN,NaN,NaN,NaN);return x==null?H:H.addAll(x)}.prototype=D$H.prototype;
fq.copy=function(){var x=new D$H(this._x,this._y,this._x0,this._y0,this._x1,this._y1),H=this._root,eW,iL;if(!H)return x;if(!H.length)return x._root=xN7(H),x;for(eW=[{source:H,target:x._root=Array(4)}];H=eW.pop();)for(var hs=0;hs<4;++hs)if(iL=H.source[hs])iL.length?eW.push({source:iL,target:H.target[hs]=Array(4)}):H.target[hs]=xN7(iL);return x};
fq.add=function(x){var H=+this._x.call(null,x),eW=+this._y.call(null,x);return PjA(this.cover(H,eW),H,eW,x)};
fq.addAll=function(x){var H,eW,iL=x.length,hs,Lt,RU=Array(iL),dn=Array(iL),Dt=Infinity,E6=Infinity,qi=-Infinity,uM=-Infinity;for(eW=0;eW<iL;++eW)isNaN(hs=+this._x.call(null,H=x[eW]))||isNaN(Lt=+this._y.call(null,H))||(RU[eW]=hs,dn[eW]=Lt,hs<Dt&&(Dt=hs),hs>qi&&(qi=hs),Lt<E6&&(E6=Lt),Lt>uM&&(uM=Lt));qi<Dt&&(Dt=this._x0,qi=this._x1);uM<E6&&(E6=this._y0,uM=this._y1);this.cover(Dt,E6).cover(qi,uM);for(eW=0;eW<iL;++eW)PjA(this,RU[eW],dn[eW],x[eW]);return this};
fq.cover=function(x,H){if(isNaN(x=+x)||isNaN(H=+H))return this;var eW=this._x0,iL=this._y0,hs=this._x1,Lt=this._y1;if(isNaN(eW))hs=(eW=Math.floor(x))+1,Lt=(iL=Math.floor(H))+1;else if(eW>x||x>hs||iL>H||H>Lt){var RU=hs-eW,dn=this._root,Dt;switch(Dt=(H<(iL+Lt)/2)<<1|x<(eW+hs)/2){case 0:do{var E6=Array(4);E6[Dt]=dn;dn=E6}while(RU*=2,hs=eW+RU,Lt=iL+RU,x>hs||H>Lt);break;case 1:do E6=Array(4),E6[Dt]=dn,dn=E6;while(RU*=2,eW=hs-RU,Lt=iL+RU,eW>x||H>Lt);break;case 2:do E6=Array(4),E6[Dt]=dn,dn=E6;while(RU*=
2,hs=eW+RU,iL=Lt-RU,x>hs||iL>H);break;case 3:do E6=Array(4),E6[Dt]=dn,dn=E6;while(RU*=2,eW=hs-RU,iL=Lt-RU,eW>x||iL>H)}this._root&&this._root.length&&(this._root=dn)}else return this;this._x0=eW;this._y0=iL;this._x1=hs;this._y1=Lt;return this};
fq.data=function(){var x=[];this.visit(function(H){if(!H.length){do x.push(H.data);while(H=H.next)}});
return x};
fq.extent=function(x){return arguments.length?this.cover(+x[0][0],+x[0][1]).cover(+x[1][0],+x[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
fq.find=function(x,H,eW){var iL=this._x0,hs=this._y0,Lt,RU,dn,Dt,E6=this._x1,qi=this._y1,uM=[],Vv=this._root,KY;Vv&&uM.push(new tG(Vv,iL,hs,E6,qi));eW==null?eW=Infinity:(iL=x-eW,hs=H-eW,E6=x+eW,qi=H+eW,eW*=eW);for(;KY=uM.pop();)if(!(!(Vv=KY.node)||(Lt=KY.x0)>E6||(RU=KY.y0)>qi||(dn=KY.x1)<iL||(Dt=KY.y1)<hs))if(Vv.length){KY=(Lt+dn)/2;var A7=(RU+Dt)/2;uM.push(new tG(Vv[3],KY,A7,dn,Dt),new tG(Vv[2],Lt,A7,KY,Dt),new tG(Vv[1],KY,RU,dn,A7),new tG(Vv[0],Lt,RU,KY,A7));if(Vv=(H>=A7)<<1|x>=KY)KY=uM[uM.length-
1],uM[uM.length-1]=uM[uM.length-1-Vv],uM[uM.length-1-Vv]=KY}else if(KY=x-+this._x.call(null,Vv.data),A7=H-+this._y.call(null,Vv.data),KY=KY*KY+A7*A7,KY<eW){var Vt=Math.sqrt(eW=KY);iL=x-Vt;hs=H-Vt;E6=x+Vt;qi=H+Vt;Vt=Vv.data}return Vt};
fq.remove=function(x){if(isNaN(Dt=+this._x.call(null,x))||isNaN(E6=+this._y.call(null,x)))return this;var H,eW=this._root,iL,hs=this._x0,Lt=this._y0,RU=this._x1,dn=this._y1,Dt,E6,qi,uM,Vv,KY,A7;if(!eW)return this;if(eW.length)for(;;){(Vv=Dt>=(qi=(hs+RU)/2))?hs=qi:RU=qi;(KY=E6>=(uM=(Lt+dn)/2))?Lt=uM:dn=uM;if(!(H=eW,eW=eW[A7=KY<<1|Vv]))return this;if(!eW.length)break;if(H[A7+1&3]||H[A7+2&3]||H[A7+3&3]){var Vt=H;var AI=A7}}for(;eW.data!==x;)if(!(iL=eW,eW=eW.next))return this;(x=eW.next)&&delete eW.next;
if(iL)return x?iL.next=x:delete iL.next,this;if(!H)return this._root=x,this;x?H[A7]=x:delete H[A7];(eW=H[0]||H[1]||H[2]||H[3])&&eW===(H[3]||H[2]||H[1]||H[0])&&!eW.length&&(Vt?Vt[AI]=eW:this._root=eW);return this};
fq.removeAll=function(x){for(var H=0,eW=x.length;H<eW;++H)this.remove(x[H]);return this};
fq.root=function(){return this._root};
fq.size=function(){var x=0;this.visit(function(H){if(!H.length){do++x;while(H=H.next)}});
return x};
fq.visit=function(x){var H=[],eW,iL=this._root,hs,Lt,RU,dn,Dt;for(iL&&H.push(new tG(iL,this._x0,this._y0,this._x1,this._y1));eW=H.pop();)if(!x(iL=eW.node,Lt=eW.x0,RU=eW.y0,dn=eW.x1,Dt=eW.y1)&&iL.length){eW=(Lt+dn)/2;var E6=(RU+Dt)/2;(hs=iL[3])&&H.push(new tG(hs,eW,E6,dn,Dt));(hs=iL[2])&&H.push(new tG(hs,Lt,E6,eW,Dt));(hs=iL[1])&&H.push(new tG(hs,eW,RU,dn,E6));(hs=iL[0])&&H.push(new tG(hs,Lt,RU,eW,E6))}};
fq.visitAfter=function(x){var H=[],eW=[],iL;for(this._root&&H.push(new tG(this._root,this._x0,this._y0,this._x1,this._y1));iL=H.pop();){var hs=iL.node;if(hs.length){var Lt,RU=iL.x0,dn=iL.y0,Dt=iL.x1,E6=iL.y1,qi=(RU+Dt)/2,uM=(dn+E6)/2;(Lt=hs[0])&&H.push(new tG(Lt,RU,dn,qi,uM));(Lt=hs[1])&&H.push(new tG(Lt,qi,dn,Dt,uM));(Lt=hs[2])&&H.push(new tG(Lt,RU,uM,qi,E6));(Lt=hs[3])&&H.push(new tG(Lt,qi,uM,Dt,E6))}eW.push(iL)}for(;iL=eW.pop();)x(iL.node,iL.x0,iL.y0,iL.x1,iL.y1);return this};
fq.x=function(x){return arguments.length?(this._x=x,this):this._x};
fq.y=function(x){return arguments.length?(this._y=x,this):this._y};
var SAw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;U$W.prototype=pl7.prototype;pl7.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 zxg,lSe={"%":function(x,H){return(x*100).toFixed(H)},
b:function(x){return Math.round(x).toString(2)},
c:function(x){return x+""},
d:function(x){return Math.round(x).toString(10)},
e:function(x,H){return x.toExponential(H)},
f:function(x,H){return x.toFixed(H)},
g:function(x,H){return x.toPrecision(H)},
o:function(x){return Math.round(x).toString(8)},
p:function(x,H){return Bo7(x*100,H)},
r:Bo7,s:function(x,H){var eW=$_$(x,H);if(!eW)return x+"";var iL=eW[0];eW=eW[1];eW=eW-(zxg=Math.max(-8,Math.min(8,Math.floor(eW/3)))*3)+1;var hs=iL.length;return eW===hs?iL:eW>hs?iL+Array(eW-hs+1).join("0"):eW>0?iL.slice(0,eW)+"."+iL.slice(eW):"0."+Array(1-eW).join("0")+$_$(x,Math.max(0,H+eW-1))[0]},
X:function(x){return Math.round(x).toString(16).toUpperCase()},
x:function(x){return Math.round(x).toString(16)}},XH6="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),L3S;
(function(x){return L3S=W4s(x)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});yE.prototype={constructor:yE,reset:function(){this.s=this.t=0},
add:function(x){HeA(oLU,x,this.t);HeA(this,oLU.s,this.s);this.s?this.t+=oLU.t:this.s=oLU.t},
valueOf:function(){return this.s}};
var oLU=new yE,fk=Math.PI,oa=fk/2,rbi=fk/4,ViQ=fk*2,y5t=fk/180,Hh=Math.abs,qe7=Math.atan,Qgi=Math.atan2,JR=Math.cos,Ko=Math.sin,sHM=Math.sqrt;new yE;new yE;new yE;var r5L=new yE;(function(x,H,eW,iL){return function(hs){function Lt(XK,y4){x(XK,y4)&&hs.point(XK,y4)}
function RU(XK,y4){Vv.point(XK,y4)}
function dn(){H5.point=RU;Vv.lineStart()}
function Dt(){H5.point=Lt;Vv.lineEnd()}
function E6(XK,y4){YH.push([XK,y4]);A7.point(XK,y4)}
function qi(){A7.lineStart();YH=[]}
function uM(){E6(YH[0][0],YH[0][1]);A7.lineEnd();var XK=A7.clean(),y4=KY.result(),wu=y4.length,vV;YH.pop();AI.push(YH);YH=null;if(wu)if(XK&1){if(wu=y4[0],(y4=wu.length-1)>0){Vt||(hs.polygonStart(),Vt=!0);hs.lineStart();for(XK=0;XK<y4;++XK)hs.point((vV=wu[XK])[0],vV[1]);hs.lineEnd()}}else wu>1&&XK&2&&y4.push(y4.pop().concat(y4.shift())),CD.push(y4.filter(IGi))}
var Vv=H(hs),KY=i6t(),A7=H(KY),Vt=!1,AI,CD,YH,H5={point:Lt,lineStart:dn,lineEnd:Dt,polygonStart:function(){H5.point=E6;H5.lineStart=qi;H5.lineEnd=uM;CD=[];AI=[]},
polygonEnd:function(){H5.point=Lt;H5.lineStart=dn;H5.lineEnd=Dt;var XK=CD,y4=XK.length;var wu=-1;for(var vV=0,lS,ru;++wu<y4;)vV+=XK[wu].length;for(lS=Array(vV);--y4>=0;)for(ru=XK[y4],wu=ru.length;--wu>=0;)lS[--vV]=ru[wu];CD=lS;XK=AI;y4=iL[0];vV=iL[1];var W$=Ko(vV);wu=[Ko(y4),-JR(y4),0];ru=lS=0;r5L.reset();W$===1?vV=oa+1E-6:W$===-1&&(vV=-oa-1E-6);W$=0;for(var M1=XK.length;W$<M1;++W$)if(t0=(C4=XK[W$]).length){var C4,t0,Zq=C4[t0-1],SG=Zq[0],gs=Zq[1]/2+rbi,Jas=Ko(gs),hrI=JR(gs);for(gs=0;gs<t0;++gs,SG=
hs0,Jas=KZ6,hrI=Vs,Zq=GRU){var GRU=C4[gs],hs0=GRU[0];Vs=GRU[1]/2+rbi;var KZ6=Ko(Vs),Vs=JR(Vs),i7=hs0-SG,KO3=i7>=0?1:-1,$Z$=KO3*i7,MG0=$Z$>fk;Jas*=KZ6;r5L.add(Qgi(Jas*KO3*Ko($Z$),hrI*Vs+Jas*JR($Z$)));lS+=MG0?i7+KO3*ViQ:i7;MG0^SG>=y4^hs0>=y4&&(Zq=Ze6(AdA(Zq),AdA(GRU)),cdM(Zq),SG=Ze6(wu,Zq),cdM(SG),SG=(MG0^i7>=0?-1:1)*jHs(SG[2]),vV>SG||vV===SG&&(Zq[0]||Zq[1]))&&(ru+=MG0^i7>=0?1:-1)}}XK=(lS<-1E-6||lS<1E-6&&r5L<-1E-6)^ru&1;CD.length?(Vt||(hs.polygonStart(),Vt=!0),O6S(CD,b6O,XK,eW,hs)):XK&&(Vt||(hs.polygonStart(),
Vt=!0),hs.lineStart(),eW(null,null,1,hs),hs.lineEnd());Vt&&(hs.polygonEnd(),Vt=!1);CD=AI=null},
sphere:function(){hs.polygonStart();hs.lineStart();eW(null,null,1,hs);hs.lineEnd();hs.polygonEnd()}};
return H5}})(function(){return!0},function(x){var H=NaN,eW=NaN,iL=NaN,hs;
return{lineStart:function(){x.lineStart();hs=1},
point:function(Lt,RU){var dn=Lt>0?fk:-fk,Dt=Hh(Lt-H);if(Hh(Dt-fk)<1E-6)x.point(H,eW=(eW+RU)/2>0?oa:-oa),x.point(iL,eW),x.lineEnd(),x.lineStart(),x.point(dn,eW),x.point(Lt,eW),hs=0;else if(iL!==dn&&Dt>=fk){Hh(H-iL)<1E-6&&(H-=iL*1E-6);Hh(Lt-dn)<1E-6&&(Lt-=dn*1E-6);Dt=H;var E6=eW,qi=Lt,uM,Vv,KY=Ko(Dt-qi);eW=Hh(KY)>1E-6?qe7((Ko(E6)*(Vv=JR(RU))*Ko(qi)-Ko(RU)*(uM=JR(E6))*Ko(Dt))/(uM*Vv*KY)):(E6+RU)/2;x.point(iL,eW);x.lineEnd();x.lineStart();x.point(dn,eW);hs=0}x.point(H=Lt,eW=RU);iL=dn},
lineEnd:function(){x.lineEnd();H=eW=NaN},
clean:function(){return 2-hs}}},function(x,H,eW,iL){x==null?(eW*=oa,iL.point(-fk,eW),iL.point(0,eW),iL.point(fk,eW),iL.point(fk,0),iL.point(fk,-eW),iL.point(0,-eW),iL.point(-fk,-eW),iL.point(-fk,0),iL.point(-fk,eW)):Hh(x[0]-H[0])>1E-6?(x=x[0]<H[0]?fk:-fk,eW=eW*x/2,iL.point(-x,eW),iL.point(0,eW),iL.point(x,eW)):iL.point(H[0],H[1])},[-fk,
-oa]);new yE;new yE;new yE;new yE;vM0.prototype={constructor:vM0,point:function(x,H){this.stream.point(x,H)},
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()}};
JR(30*y5t);(function(x){return function(H){var eW=new vM0,iL;for(iL in x)eW[iL]=x[iL];eW.stream=H;return eW}})({point:function(x,H){this.stream.point(x*y5t,H*y5t)}});
F32(function(x){return sHM(2/(1+x))}).invert=hL(function(x){return 2*jHs(x/2)});
F32(function(x){return(x=x>1?0:x<-1?fk:Math.acos(x))&&x/Ko(x)}).invert=hL(function(x){return x});
sHM(3);hL(qe7);hL(jHs);hL(function(x){return 2*qe7(x)});
Kz.prototype=g_J.prototype={constructor:Kz,count:function(){return this.eachAfter(YAw)},
each:function(x){var H,eW=[this],iL;do{var hs=eW.reverse();for(eW=[];H=hs.pop();)if(x(H),H=H.children){var Lt=0;for(iL=H.length;Lt<iL;++Lt)eW.push(H[Lt])}}while(eW.length);return this},
eachAfter:function(x){for(var H,eW=[this],iL=[],hs,Lt;H=eW.pop();)if(iL.push(H),H=H.children)for(hs=0,Lt=H.length;hs<Lt;++hs)eW.push(H[hs]);for(;H=iL.pop();)x(H);return this},
eachBefore:function(x){for(var H,eW=[this],iL;H=eW.pop();)if(x(H),H=H.children)for(iL=H.length-1;iL>=0;--iL)eW.push(H[iL]);return this},
sum:function(x){return this.eachAfter(function(H){for(var eW=+x(H.data)||0,iL=H.children,hs=iL&&iL.length;--hs>=0;)eW+=iL[hs].value;H.value=eW})},
sort:function(x){return this.eachBefore(function(H){H.children&&H.children.sort(x)})},
path:function(x){var H=this;var eW=H;var iL=x;if(eW!==iL){var hs=eW.ancestors(),Lt=iL.ancestors(),RU=null;eW=hs.pop();for(iL=Lt.pop();eW===iL;)RU=eW,eW=hs.pop(),iL=Lt.pop();eW=RU}for(iL=[H];H!==eW;)H=H.parent,iL.push(H);for(H=iL.length;x!==eW;)iL.splice(H,0,x),x=x.parent;return iL},
ancestors:function(){for(var x=this,H=[x];x=x.parent;)H.push(x);return H},
links:function(){var x=this,H=[];x.each(function(eW){eW!==x&&H.push({source:eW.parent,target:eW})});
return H},
copy:function(){return g_J(this).eachBefore(qA9)}};
(function(x,H){this._=x;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=H}).prototype=Object.create(Kz.prototype);
var esj=new Date,dZt=new Date,$$I=i4(function(){},function(x,H){x.setTime(+x+H)},function(x,H){return H-x});
$$I.every=function(x){x=Math.floor(x);return isFinite(x)&&x>0?x>1?i4(function(H){H.setTime(Math.floor(H/x)*x)},function(H,eW){H.setTime(+H+eW*x)},function(H,eW){return(eW-H)/x}):$$I:null};
i4(function(x){x.setTime(Math.floor(x/1E3)*1E3)},function(x,H){x.setTime(+x+H*1E3)},function(x,H){return(H-x)/1E3},function(x){return x.getUTCSeconds()});
i4(function(x){x.setTime(Math.floor(x/6E4)*6E4)},function(x,H){x.setTime(+x+H*6E4)},function(x,H){return(H-x)/6E4},function(x){return x.getMinutes()});
i4(function(x){var H=x.getTimezoneOffset()*6E4%36E5;H<0&&(H+=36E5);x.setTime(Math.floor((+x-H)/36E5)*36E5+H)},function(x,H){x.setTime(+x+H*36E5)},function(x,H){return(H-x)/36E5},function(x){return x.getHours()});
var DN0=i4(function(x){x.setHours(0,0,0,0)},function(x,H){x.setDate(x.getDate()+H)},function(x,H){return(H-x-(H.getTimezoneOffset()-x.getTimezoneOffset())*6E4)/864E5},function(x){return x.getDate()-1}),qTf=xQ(0),TDt=xQ(1);
xQ(2);xQ(3);var WO$=xQ(4);xQ(5);xQ(6);i4(function(x){x.setDate(1);x.setHours(0,0,0,0)},function(x,H){x.setMonth(x.getMonth()+H)},function(x,H){return H.getMonth()-x.getMonth()+(H.getFullYear()-x.getFullYear())*12},function(x){return x.getMonth()});
var TG=i4(function(x){x.setMonth(0,1);x.setHours(0,0,0,0)},function(x,H){x.setFullYear(x.getFullYear()+H)},function(x,H){return H.getFullYear()-x.getFullYear()},function(x){return x.getFullYear()});
TG.every=function(x){return isFinite(x=Math.floor(x))&&x>0?i4(function(H){H.setFullYear(Math.floor(H.getFullYear()/x)*x);H.setMonth(0,1);H.setHours(0,0,0,0)},function(H,eW){H.setFullYear(H.getFullYear()+eW*x)}):null};
i4(function(x){x.setUTCSeconds(0,0)},function(x,H){x.setTime(+x+H*6E4)},function(x,H){return(H-x)/6E4},function(x){return x.getUTCMinutes()});
i4(function(x){x.setUTCMinutes(0,0,0)},function(x,H){x.setTime(+x+H*36E5)},function(x,H){return(H-x)/36E5},function(x){return x.getUTCHours()});
var n_B=i4(function(x){x.setUTCHours(0,0,0,0)},function(x,H){x.setUTCDate(x.getUTCDate()+H)},function(x,H){return(H-x)/864E5},function(x){return x.getUTCDate()-1}),rd9=BW(0),EM$=BW(1);
BW(2);BW(3);var ab0=BW(4);BW(5);BW(6);i4(function(x){x.setUTCDate(1);x.setUTCHours(0,0,0,0)},function(x,H){x.setUTCMonth(x.getUTCMonth()+H)},function(x,H){return H.getUTCMonth()-x.getUTCMonth()+(H.getUTCFullYear()-x.getUTCFullYear())*12},function(x){return x.getUTCMonth()});
var SJ=i4(function(x){x.setUTCMonth(0,1);x.setUTCHours(0,0,0,0)},function(x,H){x.setUTCFullYear(x.getUTCFullYear()+H)},function(x,H){return H.getUTCFullYear()-x.getUTCFullYear()},function(x){return x.getUTCFullYear()});
SJ.every=function(x){return isFinite(x=Math.floor(x))&&x>0?i4(function(H){H.setUTCFullYear(Math.floor(H.getUTCFullYear()/x)*x);H.setUTCMonth(0,1);H.setUTCHours(0,0,0,0)},function(H,eW){H.setUTCFullYear(H.getUTCFullYear()+eW*x)}):null};
var uBe={"-":"",_:" ",0:"0"},mU=/^\s*\d+/,ydQ=/^%/,mN9=/[\\^$*+?|[\]().{}]/g,tGt;(function(x){tGt=hM1(x);TBM=tGt.utcFormat;SKE=tGt.utcParse;return tGt})({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||TBM("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||SKE("%Y-%m-%dT%H:%M:%S.%LZ");m1("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
m1("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");m1("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");m1("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");m1("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");m1("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");m1("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
m1("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");m1("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");m1("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");m1("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");m1("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var o_t=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(m1);Xy(o_t);var JdQ=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(m1);Xy(JdQ);var GJ1=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(m1);Xy(GJ1);var Mi1=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(m1);
Xy(Mi1);var tif=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(m1);Xy(tif);var fSw=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(m1);Xy(fSw);var Rxv=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(m1);Xy(Rxv);var Pjs=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(m1);Xy(Pjs);var xN9=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(m1);Xy(xN9);var Bo9=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(m1);Xy(Bo9);var Cjs=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(m1);Xy(Cjs);var XHi=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(m1);Xy(XHi);var zxf=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(m1);Xy(zxf);var lSi=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(m1);Xy(lSi);var Hes=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(m1);Xy(Hes);var Ads=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(m1);Xy(Ads);var Zei=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(m1);Xy(Zei);var cdS=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(m1);Xy(cdS);var wHC=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(m1);Xy(wHC);var F3Q=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(m1);Xy(F3Q);var Qg1=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(m1);Xy(Qg1);var g_t=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(m1);Xy(g_t);var uBi=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(m1);Xy(uBi);var n_v=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(m1);Xy(n_v);var DNw=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(m1);Xy(DNw);var UNt=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(m1);Xy(UNt);var pH9=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(m1);Xy(pH9);Yes(Ni(300,.5,0),Ni(-240,.5,1));Yes(Ni(-100,.75,.35),Ni(80,1.5,.8));Yes(Ni(260,.75,.35),Ni(80,1.5,.8));Ni();f9();LqU(m1("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
LqU(m1("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
LqU(m1("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
LqU(m1("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
ahI.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(x,H){x=+x;H=+H;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(x,H):this._context.moveTo(x,H);break;case 1:this._point=2;default:this._context.lineTo(x,H)}}};
(function(x){function H(eW){return new isc(x(eW))}
H._curve=x;return H})(function(x){return new ahI(x)});
isc.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(x,H){this._curve.point(H*Math.sin(x),H*-Math.cos(x))}};
ORW.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:iR3(this,this._t0,Ihg(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(x,H){var eW=NaN;x=+x;H=+H;if(x!==this._x1||H!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(x,H):this._context.moveTo(x,H);break;case 1:this._point=2;break;case 2:this._point=3;iR3(this,Ihg(this,eW=Ose(this,x,H)),eW);break;default:iR3(this,this._t0,eW=Ose(this,x,H))}this._x0=this._x1;this._x1=x;this._y0=this._y1;this._y1=H;this._t0=eW}}};
(function(x){this._context=new bs7(x)}.prototype=Object.create(ORW.prototype)).point=function(x,H){ORW.prototype.point.call(this,H,x)};
bs7.prototype={moveTo:function(x,H){this._context.moveTo(H,x)},
closePath:function(){this._context.closePath()},
lineTo:function(x,H){this._context.lineTo(H,x)},
bezierCurveTo:function(x,H,eW,iL,hs,Lt){this._context.bezierCurveTo(H,x,iL,eW,Lt,hs)}};
Nt.prototype={constructor:Nt,scale:function(x){return x===1?this:new Nt(this.k*x,this.x,this.y)},
translate:function(x,H){return x===0&H===0?this:new Nt(this.k,this.x+this.k*x,this.y+this.k*H)},
apply:function(x){return[x[0]*this.k+this.x,x[1]*this.k+this.y]},
invert:function(x){return[(x[0]-this.x)/this.k,(x[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Nt(1,0,0);RjW=r9;Vu.svg=Vu.svg;Vu.xhtml=Vu.xhtml;Vu.xlink=Vu.xlink;Vu.xml=Vu.xml;Vu.xmlns=Vu.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 WSE="hammer_"+(Math.random()*1E6|0),axB=function(){var v=document||document;if(!v[WSE]){var e=function(){(function(d,E,T,S){function O(Js,zO,wH){return setTimeout(K(Js,wH),zO)}
function b(Js,zO,wH){return Array.isArray(Js)?(Y(Js,wH[zO],wH),!0):!1}
function Y(Js,zO,wH){var K7;if(Js)if(Js.forEach)Js.forEach(zO,wH);else if(Js.length!==S){var mf=0;for(K7=Js.length;mf<K7;mf++)zO.call(wH,Js[mf],mf,Js)}else for(mf in Js)Js.hasOwnProperty(mf)&&zO.call(wH,Js[mf],mf,Js)}
function q(Js,zO,wH){for(var K7=Object.keys(zO),mf=0,tr=K7.length;mf<tr;mf++)if(!wH||wH&&Js[K7[mf]]===S)Js[K7[mf]]=zO[K7[mf]];return Js}
function r(Js,zO){return q(Js,zO,!0)}
function h(Js,zO,wH){zO=zO.prototype;var K7=Js.prototype=Object.create(zO);K7.constructor=Js;K7._super=zO;wH&&q(K7,wH)}
function K(Js,zO){return function(){return Js.apply(zO,arguments)}}
function k(Js,zO){return typeof Js=="function"?Js.apply(zO?zO[0]||S:S,zO):Js}
function J(Js,zO,wH){Y(B(zO),function(K7){Js.addEventListener(K7,wH,!1)})}
function R(Js,zO,wH){Y(B(zO),function(K7){Js.removeEventListener(K7,wH,!1)})}
function B(Js){return Js.trim().split(/\s+/g)}
function X(Js,zO,wH){if(Js.indexOf&&!wH)return Js.indexOf(zO);for(var K7=0,mf=Js.length;K7<mf;K7++)if(wH&&Js[K7][wH]==zO||!wH&&Js[K7]===zO)return K7;return-1}
function Z(Js,zO,wH){for(var K7=[],mf=[],tr=0,L9=Js.length;tr<L9;tr++){var kI=zO?Js[tr][zO]:Js[tr];X(mf,kI)<0&&K7.push(Js[tr]);mf[tr]=kI}wH&&(K7=zO?K7.sort(function(Ni,xs){return Ni[zO]>xs[zO]}):K7.sort());
return K7}
function U(Js,zO){for(var wH,K7=zO[0].toUpperCase()+zO.slice(1),mf=0,tr=IE.length;mf<tr;mf++)if(wH=(wH=IE[mf])?wH+K7:zO,wH in Js)return wH;return S}
function F(Js,zO){var wH=this;this.manager=Js;this.callback=zO;this.element=Js.element;this.target=Js.options.inputTarget;this.domHandler=function(K7){k(Js.options.enable,[Js])&&wH.handler(K7)};
this.evEl&&J(this.element,this.evEl,this.domHandler);this.evTarget&&J(this.target,this.evTarget,this.domHandler);this.evWin&&J(d,this.evWin,this.domHandler)}
function g(Js){var zO;G8?zO=As:Ny?zO=Ct:r9?zO=SA:zO=N7;return new zO(Js,Q)}
function Q(Js,zO,wH){var K7=wH.pointers.length,mf=wH.changedPointers.length,tr=zO&1&&K7-mf===0;wH.isFirst=!!tr;wH.isFinal=!!(zO&12&&K7-mf===0);tr&&(Js.session={});wH.eventType=zO;zO=Js.session;K7=wH.pointers;mf=K7.length;zO.firstInput||(zO.firstInput=v3(wH));mf>1&&!zO.firstMultiple?zO.firstMultiple=v3(wH):mf===1&&(zO.firstMultiple=!1);tr=zO.firstInput;var L9=(mf=zO.firstMultiple)?mf.center:tr.center,kI=wH.center=q7(K7);wH.timeStamp=G2();wH.deltaTime=wH.timeStamp-tr.timeStamp;wH.angle=kS(L9,kI);wH.distance=
$S(L9,kI);tr=wH.center;L9=zO.offsetDelta||{};kI=zO.prevDelta||{};var Ni=zO.prevInput||{};if(wH.eventType===1||Ni.eventType===4)kI=zO.prevDelta={x:Ni.deltaX||0,y:Ni.deltaY||0},L9=zO.offsetDelta={x:tr.x,y:tr.y};wH.deltaX=kI.x+(tr.x-L9.x);wH.deltaY=kI.y+(tr.y-L9.y);wH.offsetDirection=m0(wH.deltaX,wH.deltaY);mf?(tr=mf.pointers,tr=$S(K7[0],K7[1],f9)/$S(tr[0],tr[1],f9)):tr=1;wH.scale=tr;mf?(mf=mf.pointers,K7=kS(K7[1],K7[0],f9)-kS(mf[1],mf[0],f9)):K7=0;wH.rotation=K7;L9=zO.lastInterval||wH;K7=wH.timeStamp-
L9.timeStamp;wH.eventType!=8&&(K7>25||L9.velocity===S)?(tr=L9.deltaX-wH.deltaX,L9=L9.deltaY-wH.deltaY,kI=tr/K7||0,Ni=L9/K7||0,K7=kI,mf=Ni,kI=Je(kI)>Je(Ni)?kI:Ni,tr=m0(tr,L9),zO.lastInterval=wH):(kI=L9.velocity,K7=L9.velocityX,mf=L9.velocityY,tr=L9.direction);wH.velocity=kI;wH.velocityX=K7;wH.velocityY=mf;wH.direction=tr;zO=Js.element;a:{for(K7=wH.srcEvent.target;K7;){if(K7==zO){K7=!0;break a}K7=K7.parentNode}K7=!1}K7&&(zO=wH.srcEvent.target);wH.target=zO;Js.emit("hammer.input",wH);Js.recognize(wH);
Js.session.prevInput=wH}
function v3(Js){for(var zO=[],wH=0;wH<Js.pointers.length;wH++)zO[wH]={clientX:hi(Js.pointers[wH].clientX),clientY:hi(Js.pointers[wH].clientY)};return{timeStamp:G2(),pointers:zO,center:q7(zO),deltaX:Js.deltaX,deltaY:Js.deltaY}}
function q7(Js){var zO=Js.length;if(zO===1)return{x:hi(Js[0].clientX),y:hi(Js[0].clientY)};for(var wH=0,K7=0,mf=0;mf<zO;mf++)wH+=Js[mf].clientX,K7+=Js[mf].clientY;return{x:hi(wH/zO),y:hi(K7/zO)}}
function m0(Js,zO){return Js===zO?1:Je(Js)>=Je(zO)?Js>0?2:4:zO>0?8:16}
function $S(Js,zO,wH){wH||(wH=Ae);var K7=zO[wH[0]]-Js[wH[0]];Js=zO[wH[1]]-Js[wH[1]];return Math.sqrt(K7*K7+Js*Js)}
function kS(Js,zO,wH){wH||(wH=Ae);return Math.atan2(zO[wH[1]]-Js[wH[1]],zO[wH[0]]-Js[wH[0]])*180/Math.PI}
function N7(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;F.apply(this,arguments)}
function As(){this.evEl=T8;this.evWin=Pi;F.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Ct(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};F.apply(this,arguments)}
function SA(){F.apply(this,arguments);var Js=K(this.handler,this);this.touch=new Ct(this.manager,Js);this.mouse=new N7(this.manager,Js)}
function xI(Js,zO){this.manager=Js;this.set(zO)}
function mg(Js){if(Js.indexOf("none")>-1)return"none";var zO=Js.indexOf("pan-x")>-1,wH=Js.indexOf("pan-y")>-1;return zO&&wH?"pan-x pan-y":zO||wH?zO?"pan-x":"pan-y":Js.indexOf("manipulation")>-1?"manipulation":"auto"}
function pt(Js){this.id=si++;this.manager=null;this.options=r(Js||{},this.defaults);Js=this.options.enable;this.options.enable=Js===S?!0:Js;this.state=1;this.simultaneous={};this.requireFail=[]}
function he(Js){return Js==16?"down":Js==8?"up":Js==2?"left":Js==4?"right":""}
function yB(Js,zO){return(zO=zO.manager)?zO.get(Js):Js}
function te(){pt.apply(this,arguments)}
function oC(){te.apply(this,arguments);this.pY=this.pX=null}
function n7(){te.apply(this,arguments)}
function SW(){pt.apply(this,arguments);this._input=this._timer=null}
function vc(){te.apply(this,arguments)}
function jA(){te.apply(this,arguments)}
function Ys(){pt.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function s6(Js,zO){zO=zO||{};var wH=zO.recognizers;zO.recognizers=wH===S?s6.defaults.preset:wH;return new es(Js,zO)}
function es(Js,zO){zO=zO||{};this.options=r(zO,s6.defaults);this.options.inputTarget=this.options.inputTarget||Js;this.handlers={};this.session={};this.recognizers=[];this.element=Js;this.input=g(this);this.touchAction=new xI(this,this.options.touchAction);TM(this,!0);Y(zO.recognizers,function(wH){var K7=this.add(new wH[0](wH[1]));wH[2]&&K7.recognizeWith(wH[2]);wH[3]&&K7.requireFailure(wH[2])},this)}
function TM(Js,zO){var wH=Js.element;Y(Js.options.cssProps,function(K7,mf){wH.style[U(wH.style,mf)]=zO?K7:""})}
function vO(Js,zO){var wH=E.createEvent("Event");wH.initEvent(Js,!0,!0);wH.gesture=zO;zO.target.dispatchEvent(wH)}
var IE=" webkit moz MS ms o".split(" "),gn=E.createElement("div"),hi=Math.round,Je=Math.abs,G2=Date.now,si=1,Ya=/mobile|tablet|ip(ad|hone|od)|android/i,r9="ontouchstart"in d,G8=U(d,"PointerEvent")!==S,Ny=r9&&Ya.test(navigator.userAgent),Ae=["x","y"],f9=["clientX","clientY"];F.prototype={handler:function(){},
destroy:function(){this.evEl&&R(this.element,this.evEl,this.domHandler);this.evTarget&&R(this.target,this.evTarget,this.domHandler);this.evWin&&R(d,this.evWin,this.domHandler)}};
var w9={mousedown:1,mousemove:2,mouseup:4};h(N7,F,{handler:function(Js){var zO=w9[Js.type];zO&1&&Js.button===0&&(this.pressed=!0);zO&2&&Js.which!==1&&(zO=4);this.pressed&&this.allow&&(zO&4&&(this.pressed=!1),this.callback(this.manager,zO,{pointers:[Js],changedPointers:[Js],pointerType:"mouse",srcEvent:Js}))}});
var a$={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},uR={2:"touch",3:"pen",4:"mouse",5:"kinect"},T8="pointerdown",Pi="pointermove pointerup pointercancel";d.MSPointerEvent&&(T8="MSPointerDown",Pi="MSPointerMove MSPointerUp MSPointerCancel");h(As,F,{handler:function(Js){var zO=this.store,wH=!1,K7=Js.type.toLowerCase().replace("ms","");K7=a$[K7];var mf=uR[Js.pointerType]||Js.pointerType;K7&1&&(Js.button===0||mf=="touch")?zO.push(Js):K7&12&&(wH=!0);var tr=X(zO,Js.pointerId,"pointerId");
tr<0||(zO[tr]=Js,this.callback(this.manager,K7,{pointers:zO,changedPointers:[Js],pointerType:mf,srcEvent:Js}),wH&&zO.splice(tr,1))}});
var M9={touchstart:1,touchmove:2,touchend:4,touchcancel:8};h(Ct,F,{handler:function(Js){var zO=M9[Js.type];var wH=Array.prototype.slice.call(Js.touches,0);var K7=this.targetIds;if(zO&3&&wH.length===1)K7[wH[0].identifier]=!0,K7=[wH,wH];else{var mf,tr=Array.prototype.slice.call(Js.targetTouches,0),L9=Array.prototype.slice.call(Js.changedTouches,0),kI=[];if(zO===1)for(wH=0,mf=tr.length;wH<mf;wH++)K7[tr[wH].identifier]=!0;wH=0;for(mf=L9.length;wH<mf;wH++)K7[L9[wH].identifier]&&kI.push(L9[wH]),zO&12&&
delete K7[L9[wH].identifier];K7=kI.length?[Z(tr.concat(kI),"identifier",!0),kI]:void 0}K7&&this.callback(this.manager,zO,{pointers:K7[0],changedPointers:K7[1],pointerType:"touch",srcEvent:Js})}});
h(SA,F,{handler:function(Js,zO,wH){var K7=wH.pointerType=="mouse";if(wH.pointerType=="touch")this.mouse.allow=!1;else if(K7&&!this.mouse.allow)return;zO&12&&(this.mouse.allow=!0);this.callback(Js,zO,wH)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Sy=U(gn.style,"touchAction"),WP=Sy!==S;xI.prototype={set:function(Js){Js=="compute"&&(Js=this.compute());WP&&(this.manager.element.style[Sy]=Js);this.actions=Js.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Js=[];Y(this.manager.recognizers,function(zO){k(zO.options.enable,[zO])&&(Js=Js.concat(zO.getTouchAction()))});
return mg(Js.join(" "))},
preventDefaults:function(Js){if(!WP){var zO=Js.srcEvent;Js=Js.offsetDirection;if(this.manager.session.prevented)zO.preventDefault();else{var wH=this.actions,K7=wH.indexOf("none")>-1,mf=wH.indexOf("pan-y")>-1;wH=wH.indexOf("pan-x")>-1;if(K7||mf&&wH||mf&&Js&6||wH&&Js&24)return this.preventSrc(zO)}}},
preventSrc:function(Js){this.manager.session.prevented=!0;Js.preventDefault()}};
pt.prototype={defaults:{},set:function(Js){q(this.options,Js);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Js){if(b(Js,"recognizeWith",this))return this;var zO=this.simultaneous;Js=yB(Js,this);zO[Js.id]||(zO[Js.id]=Js,Js.recognizeWith(this));return this},
dropRecognizeWith:function(Js){if(b(Js,"dropRecognizeWith",this))return this;Js=yB(Js,this);delete this.simultaneous[Js.id];return this},
requireFailure:function(Js){if(b(Js,"requireFailure",this))return this;var zO=this.requireFail;Js=yB(Js,this);X(zO,Js)===-1&&(zO.push(Js),Js.requireFailure(this));return this},
dropRequireFailure:function(Js){if(b(Js,"dropRequireFailure",this))return this;Js=yB(Js,this);Js=X(this.requireFail,Js);Js>-1&&this.requireFail.splice(Js,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Js){return!!this.simultaneous[Js.id]},
emit:function(Js){function zO(mf){wH.manager.emit(wH.options.event+(mf?K7&16?"cancel":K7&8?"end":K7&4?"move":K7&2?"start":"":""),Js)}
var wH=this,K7=this.state;K7<8&&zO(!0);zO();K7>=8&&zO(!0)},
tryEmit:function(Js){if(this.canEmit())return this.emit(Js);this.state=32},
canEmit:function(){for(var Js=0;Js<this.requireFail.length;Js++)if(!(this.requireFail[Js].state&33))return!1;return!0},
recognize:function(Js){Js=q({},Js);k(this.options.enable,[this,Js])?(this.state&56&&(this.state=1),this.state=this.process(Js),this.state&30&&this.tryEmit(Js)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
h(te,pt,{defaults:{pointers:1},attrTest:function(Js){var zO=this.options.pointers;return zO===0||Js.pointers.length===zO},
process:function(Js){var zO=this.state,wH=Js.eventType,K7=zO&6;Js=this.attrTest(Js);return K7&&(wH&8||!Js)?zO|16:K7||Js?wH&4?zO|8:zO&2?zO|4:2:32}});
h(oC,te,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Js=this.options.direction;if(Js===30)return["none"];var zO=[];Js&6&&zO.push("pan-y");Js&24&&zO.push("pan-x");return zO},
directionTest:function(Js){var zO=this.options,wH=!0,K7=Js.distance,mf=Js.direction,tr=Js.deltaX,L9=Js.deltaY;mf&zO.direction||(zO.direction&6?(mf=tr===0?1:tr<0?2:4,wH=tr!=this.pX,K7=Math.abs(Js.deltaX)):(mf=L9===0?1:L9<0?8:16,wH=L9!=this.pY,K7=Math.abs(Js.deltaY)));Js.direction=mf;return wH&&K7>zO.threshold&&mf&zO.direction},
attrTest:function(Js){return te.prototype.attrTest.call(this,Js)&&(this.state&2||!(this.state&2)&&this.directionTest(Js))},
emit:function(Js){this.pX=Js.deltaX;this.pY=Js.deltaY;var zO=he(Js.direction);zO&&this.manager.emit(this.options.event+zO,Js);this._super.emit.call(this,Js)}});
h(n7,te,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Js){return this._super.attrTest.call(this,Js)&&(Math.abs(Js.scale-1)>this.options.threshold||this.state&2)},
emit:function(Js){this._super.emit.call(this,Js);Js.scale!==1&&this.manager.emit(this.options.event+(Js.scale<1?"in":"out"),Js)}});
h(SW,pt,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Js){var zO=this.options,wH=Js.pointers.length===zO.pointers,K7=Js.distance<zO.threshold,mf=Js.deltaTime>zO.time;this._input=Js;if(!K7||!wH||Js.eventType&12&&!mf)this.reset();else if(Js.eventType&1)this.reset(),this._timer=O(function(){this.state=8;this.tryEmit()},zO.time,this);
else if(Js.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Js){this.state===8&&(Js&&Js.eventType&4?this.manager.emit(this.options.event+"up",Js):(this._input.timeStamp=G2(),this.manager.emit(this.options.event,this._input)))}});
h(vc,te,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Js){return this._super.attrTest.call(this,Js)&&(Math.abs(Js.rotation)>this.options.threshold||this.state&2)}});
h(jA,te,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return oC.prototype.getTouchAction.call(this)},
attrTest:function(Js){var zO=this.options.direction;if(zO&30)var wH=Js.velocity;else zO&6?wH=Js.velocityX:zO&24&&(wH=Js.velocityY);return this._super.attrTest.call(this,Js)&&zO&Js.direction&&Je(wH)>this.options.velocity&&Js.eventType&4},
emit:function(Js){var zO=he(Js.direction);zO&&this.manager.emit(this.options.event+zO,Js);this.manager.emit(this.options.event,Js)}});
h(Ys,pt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Js){var zO=this.options,wH=Js.pointers.length===zO.pointers,K7=Js.distance<zO.threshold,mf=Js.deltaTime<zO.time;this.reset();if(Js.eventType&1&&this.count===0)return this.failTimeout();if(K7&&mf&&wH){if(Js.eventType!=4)return this.failTimeout();wH=this.pTime?Js.timeStamp-this.pTime<zO.interval:!0;K7=!this.pCenter||$S(this.pCenter,Js.center)<zO.posThreshold;this.pTime=Js.timeStamp;this.pCenter=Js.center;K7&&wH?this.count+=1:this.count=1;this._input=Js;if(this.count%zO.taps===0)return this.hasRequireFailures()?
(this._timer=O(function(){this.state=8;this.tryEmit()},zO.interval,this),2):8}return 32},
failTimeout:function(){this._timer=O(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))}});
s6.VERSION="2.0.2";s6.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[vc,{enable:!1}],[n7,{enable:!1},["rotate"]],[jA,{direction:6}],[oC,{direction:6},["swipe"]],[Ys],[Ys,{event:"doubletap",taps:2},["tap"]],[SW]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};es.prototype={set:function(Js){q(this.options,Js);return this},
stop:function(Js){this.session.stopped=Js?2:1},
recognize:function(Js){var zO=this.session;if(!zO.stopped){this.touchAction.preventDefaults(Js);var wH=this.recognizers,K7=zO.curRecognizer;if(!K7||K7&&K7.state&8)K7=zO.curRecognizer=null;for(var mf=0,tr=wH.length;mf<tr;mf++){var L9=wH[mf];zO.stopped===2||K7&&L9!=K7&&!L9.canRecognizeWith(K7)?L9.reset():L9.recognize(Js);!K7&&L9.state&14&&(K7=zO.curRecognizer=L9)}}},
get:function(Js){if(Js instanceof pt)return Js;for(var zO=this.recognizers,wH=0;wH<zO.length;wH++)if(zO[wH].options.event==Js)return zO[wH];return null},
add:function(Js){if(b(Js,"add",this))return this;var zO=this.get(Js.options.event);zO&&this.remove(zO);this.recognizers.push(Js);Js.manager=this;this.touchAction.update();return Js},
remove:function(Js){if(b(Js,"remove",this))return this;var zO=this.recognizers;Js=this.get(Js);zO.splice(X(zO,Js),1);this.touchAction.update();return this},
on:function(Js,zO){var wH=this.handlers;Y(B(Js),function(K7){wH[K7]=wH[K7]||[];wH[K7].push(zO)});
return this},
off:function(Js,zO){var wH=this.handlers;Y(B(Js),function(K7){zO?wH[K7].splice(X(wH[K7],zO),1):delete wH[K7]});
return this},
emit:function(Js,zO){this.options.domEvents&&vO(Js,zO);var wH=this.handlers[Js]&&this.handlers[Js].slice();if(wH&&wH.length){zO.type=Js;zO.preventDefault=function(){zO.srcEvent.preventDefault()};
Js=0;for(var K7=wH.length;Js<K7;Js++)wH[Js](zO)}},
destroy:function(){this.element&&TM(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
q(s6,{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:es,Input:F,TouchAction:xI,Recognizer:pt,AttrRecognizer:te,Tap:Ys,Pan:oC,Swipe:jA,Pinch:n7,Rotate:vc,Press:SW,on:J,off:R,each:Y,merge:r,extend:q,inherit:h,bindFn:K,prefixed:U});
d[T]=s6})(window,document,"Hammer");
return window.Hammer}.call({});
e.DOCUMENT=v;v[WSE]=e}return v[WSE]};/*

 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 iv0=function(v,e){if(v.length!==e.length)return!1;for(var d=0;d<v.length;++d)if(v[d]!==e[d])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var OvB=_.a(["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"]),IxI=OvB.next();!IxI.done;IxI=OvB.next()){var bvB=IxI.value,YKB=document.createElement("link");YKB.rel="stylesheet";YKB.href=bvB;document.head.appendChild(YKB)};var Oy3,by3,ms3,WJ0,IHs,aHW,T6t,SdH;Oy3={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};by3={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:"*"};ms3={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};WJ0=/[a-z0-9*]/;IHs=/U\+/;aHW=/^arrow/;T6t=/^space(bar)?/;SdH=/^escape$/;_.K$={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(v,e){this._imperativeKeyBindings[v]=e;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(v,e){e=qdU(e);for(var d=0;d<e.length;++d)if(Yd0(e[d],v))return!0;return!1},
_collectKeyBindings:function(){var v=this.behaviors.map(function(e){return e.keyBindings});
v.indexOf(this.keyBindings)===-1&&v.push(this.keyBindings);return v},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(d){for(var E in d)this._addKeyBinding(E,d[E])},this);
for(var v in this._imperativeKeyBindings)this._addKeyBinding(v,this._imperativeKeyBindings[v]);for(var e in this._keyBindings)this._keyBindings[e].sort(function(d,E){d=d[0].hasModifiers;return d===E[0].hasModifiers?0:d?-1:1})},
_addKeyBinding:function(v,e){qdU(v).forEach(function(d){this._keyBindings[d.event]=this._keyBindings[d.event]||[];this._keyBindings[d.event].push([d,e])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(v){var e=this._onKeyBindingEvent.bind(this,this._keyBindings[v]);this._boundKeyHandlers.push([this.keyEventTarget,v,e]);this.keyEventTarget.addEventListener(v,e)},this)},
_unlistenKeyEventListeners:function(){for(var v,e,d;this._boundKeyHandlers.length;)v=this._boundKeyHandlers.pop(),e=v[0],d=v[1],v=v[2],e.removeEventListener(d,v)},
_onKeyBindingEvent:function(v,e){this.stopKeyboardEventPropagation&&e.stopPropagation();if(!e.defaultPrevented)for(var d=0;d<v.length;d++){var E=v[d][0],T=v[d][1];if(Yd0(E,e)&&(this._triggerKeyHandler(E,T,e),e.defaultPrevented))break}},
_triggerKeyHandler:function(v,e,d){var E=Object.create(v);E.keyboardEvent=d;v=new CustomEvent(v.event,{detail:E,cancelable:!0});this[e].call(this,v);v.defaultPrevented&&d.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
*/
_.xv({is:"iron-a11y-keys",_template:null,behaviors:[_.K$],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(v){this.keyEventTarget=v},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(v){this.fire("keys-pressed",v.detail,{})}});_.$l={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(v){this._setFocused(v.type==="focus")},
_disabledChanged:function(v){this.setAttribute("aria-disabled",v?"true":"false");this.style.pointerEvents=v?"none":"";v?(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 j$={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(v){this._detectKeyboardFocus(v);v||this._setPressed(!1)},
_detectKeyboardFocus:function(v){this._setReceivedFocusFromKeyboard(!this.pointerDown&&v)},
_userActivate:function(v){this.active!==v&&(this.active=v,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(v){v=v.detail.keyboardEvent;var e=_.tW(v).localTarget;this.isLightDescendant(e)||(v.preventDefault(),v.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(v){v=_.tW(v.detail.keyboardEvent).localTarget;this.isLightDescendant(v)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(v,e){e&&e!=v&&this.hasAttribute(e)&&this.removeAttribute(e)},
_activeChanged:function(v){this.toggles?this.setAttribute(this.ariaActiveAttribute,v?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},mPI=[_.K$,
j$];_.sQ={IronButtonState:mPI,IronButtonStateImpl:j$};_.NS={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.kl=function(v){_.kl[" "](v);this.type=v&&v.type||"default";this.key=v&&v.key;v&&"value"in v&&(this.value=v.value)};
_.kl.prototype.byKey=function(v){this.key=v;return this.value};
_.vP.Object.defineProperties(_.kl.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var v=this.type,e=this.key;if(v&&e)return L$[v]&&L$[v][e]},
set:function(v){var e=this.type,d=this.key;e&&d&&(e=L$[e]=L$[e]||{},v==null?delete e[d]:e[d]=v)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var v=L$[this.type];return v?Object.keys(v).map(function(e){return L$[this.type][e]},this):[]}}});
_.kl[" "]=function(){};
var L$={};_.xv({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(v,e,d){v=new _.kl({type:v,key:e});d!==void 0&&d!==v.value?v.value=d:this.value!==v.value&&(this.value=v.value);return v},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(v){v&&(this.value=this)},
byKey:function(v){return(new _.kl({type:this.type,key:v})).value}});var yXu;yXu=null;_.VO={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){yXu=new _.kl({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return yXu&&yXu.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(v){this.invalid=v===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(v);return!this.invalid},
_getValidity:function(v){return this.hasValidator()?this._validator.validate(v):!0}};var qK6={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"}},rXE=[_.NS,
_.VO,qK6];_.xv({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 _.kl({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(v){return this.name+":"+v},this)},
applyIcon:function(v,e){this.removeIcon(v);if(e=this._cloneIcon(e,this.rtlMirroring&&this._targetIsRTL(v))){var d=_.tW(v.root||v);d.insertBefore(e,d.childNodes[0]);return v._svgIcon=e}return null},
removeIcon:function(v){v._svgIcon&&(_.tW(v.root||v).removeChild(v._svgIcon),v._svgIcon=null)},
_targetIsRTL:function(v){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(v&&v.nodeType!==Node.ELEMENT_NODE&&(v=v.host),this.__targetIsRTL=v&&window.getComputedStyle(v).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 v=Object.create(null);_.tW(this).querySelectorAll("[id]").forEach(function(e){v[e.id]=e});
return v},
_cloneIcon:function(v,e){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[v],this.size,e)},
_prepareSvgClone:function(v,e,d){if(v){v=v.cloneNode(!0);var E=document.createElementNS("http://www.w3.org/2000/svg","svg");e=v.getAttribute("viewBox")||"0 0 "+e+" "+e;var T="pointer-events: none; display: block; width: 100%; height: 100%;";d&&v.hasAttribute("mirror-in-rtl")&&(T+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");E.setAttribute("viewBox",e);E.setAttribute("preserveAspectRatio","xMidYMid meet");E.setAttribute("focusable","false");E.style&&(E.style.cssText=
T);E.appendChild(v).removeAttribute("id");return E}return null}});var h0c=function(v){this.multi=!1;this.selection=[];this.selectCallback=v};
_.W=h0c.prototype;_.W.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.W.clear=function(v){this.selection.slice().forEach(function(e){(!v||v.indexOf(e)<0)&&this.setItemSelected(e,!1)},this)};
_.W.isSelected=function(v){return this.selection.indexOf(v)>=0};
_.W.setItemSelected=function(v,e){if(v!=null&&e!==this.isSelected(v)){if(e)this.selection.push(v);else{var d=this.selection.indexOf(v);d>=0&&this.selection.splice(d,1)}this.selectCallback&&this.selectCallback(v,e)}};
_.W.select=function(v){this.multi?this.toggle(v):this.get()!==v&&(this.setItemSelected(this.get(),!1),this.setItemSelected(v,!0))};
_.W.toggle=function(v){this.setItemSelected(v,!this.isSelected(v))};_.nq={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 h0c(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.tW(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(v){return this.items?this.items.indexOf(v):-1},
select:function(v){this.selected=v},
selectPrevious:function(){var v=this.items.length,e=v-1;this.selected!==void 0&&(e=(Number(this._valueToIndex(this.selected))-1+v)%v);this.selected=this._indexToValue(e)},
selectNext:function(){var v=0;this.selected!==void 0&&(v=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(v)},
selectIndex:function(v){this.select(this._indexToValue(v))},
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(v){this.listen(this,v,"_activateHandler")},
_removeListener:function(v){this.unlisten(this,v,"_activateHandler")},
_activateEventChanged:function(v,e){this._removeListener(e);this._addListener(v)},
_updateItems:function(){var v=_.tW(this).queryDistributedElements(this.selectable||"*");v=Array.prototype.filter.call(v,this._bindFilterItem);this._setItems(v)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var v=this._valueToItem(this.selected);v?this._selection.select(v):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(v){return!this._excludedLocalNames[v.localName]},
_valueToItem:function(v){return v==null?null:this.items[this._valueToIndex(v)]},
_valueToIndex:function(v){if(this.attrForSelected)for(var e=0,d;d=this.items[e];e++){if(this._valueForItem(d)==v)return e}else return Number(v)},
_indexToValue:function(v){if(this.attrForSelected){if(v=this.items[v])return this._valueForItem(v)}else return v},
_valueForItem:function(v){if(!v)return null;if(!this.attrForSelected)return v=this.indexOf(v),v===-1?null:v;var e=v[Oh(this.attrForSelected)];return e!=void 0?e:v.getAttribute(this.attrForSelected)},
_applySelection:function(v,e){this.selectedClass&&this.toggleClass(this.selectedClass,e,v);this.selectedAttribute&&this.toggleAttribute.call(v,this.selectedAttribute,e);this._selectionChange();this.fire("iron-"+(e?"select":"deselect"),{item:v})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(v){return _.tW(v).observeNodes(function(e){this._updateItems();this._updateSelected();this.fire("iron-items-changed",e,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(v){v=v.target;for(var e=this.items;v&&v!=this;){var d=e.indexOf(v);if(d>=0){e=this._indexToValue(d);this._itemActivate(e,v);break}v=v.parentNode}},
_itemActivate:function(v,e){this.fire("iron-activate",{selected:v,item:e},{cancelable:!0}).defaultPrevented||this.select(v)}};var KS0={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(v){this.multi?this._toggleSelected(v):this.selected=v},
multiChanged:function(v){this._selection.multi=v;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(v){return this._indexToValue(this.indexOf(v))},this).filter(function(v){return v!=null},this)):_.nq._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(v){v=v||[];v=(this._valuesToItems(v)||[]).filter(function(d){return d!==null&&d!==void 0});
this._selection.clear(v);for(var e=0;e<v.length;e++)this._selection.setItemSelected(v[e],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var v=this._selection.get();this.multi?(this._setSelectedItems(v),this._setSelectedItem(v.length?v[0]:null)):v!==null&&v!==void 0?(this._setSelectedItems([v]),this._setSelectedItem(v)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(v){var e=this.selectedValues.indexOf(v);e<0?this.push("selectedValues",v):this.splice("selectedValues",e,1)},
_valuesToItems:function(v){return v==null?null:v.map(function(e){return this._valueToItem(e)},this)}},$Pn=[_.nq,
KS0];var j7B;
_.ox={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(v){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var e=this._valueToItem(v);e&&e.hasAttribute("disabled")||(this._setFocusedItem(e),KS0.select.apply(this,arguments))},
_resetTabindices:function(){var v=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(e){e.setAttribute("tabindex",e===v?"0":"-1");e.setAttribute("aria-selected",this._selection.isSelected(e))},this)},
_updateMultiselectable:function(v){v?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(v){if(this._MODIFIER_KEYS.indexOf(v.key)===-1){this.cancelDebouncer("_clearSearchText");var e=this._searchText||"";e+=(v.key&&v.key.length==1?v.key:String.fromCharCode(v.keyCode)).toLocaleLowerCase();v=e.length;for(var d=0,E;E=this.items[d];d++)if(!E.hasAttribute("disabled")){var T=this.attrForItemTitle||"textContent";T=(E[T]||E.getAttribute(T)||"").trim();if(!(T.length<v)&&T.slice(0,v).toLocaleLowerCase()==e){this._setFocusedItem(E);break}}this._searchText=e;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var v=this.items.length,e=Number(this.indexOf(this.focusedItem)),d=1;d<v+1;d++){var E=this.items[(e-d+v)%v];if(!E.hasAttribute("disabled")){var T=_.tW(E).getOwnerRoot()||document;this._setFocusedItem(E);if(_.tW(T).activeElement==E)break}}},
_focusNext:function(){for(var v=this.items.length,e=Number(this.indexOf(this.focusedItem)),d=1;d<v+1;d++){var E=this.items[(e+d)%v];if(!E.hasAttribute("disabled")){var T=_.tW(E).getOwnerRoot()||document;this._setFocusedItem(E);if(_.tW(T).activeElement==E)break}}},
_applySelection:function(v,e){e?v.setAttribute("aria-selected","true"):v.setAttribute("aria-selected","false");_.nq._applySelection.apply(this,arguments)},
_focusedItemChanged:function(v,e){e&&e.setAttribute("tabindex","-1");!v||v.hasAttribute("disabled")||this.disabled||(v.setAttribute("tabindex","0"),v.focus())},
_onIronItemsChanged:function(v){v.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var v=this.getAttribute("tabindex");_.ox._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",v);_.ox._shiftTabPressed=!1},1)},
_onFocus:function(v){!_.ox._shiftTabPressed&&(v=_.tW(v).rootTarget,v===this||typeof v.tabIndex==="undefined"||this.isLightDescendant(v))&&(this._defaultFocusAsync=this.async(function(){var e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);e?this._setFocusedItem(e):this.items[0]&&this._focusNext()}))},
_onUpKey:function(v){this._focusPrevious();v.detail.keyboardEvent.preventDefault()},
_onDownKey:function(v){this._focusNext();v.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var v=this.focusedItem;v&&v.blur()},
_onKeydown:function(v){this.keyboardEventMatchesKeys(v,"up down esc")||this._focusWithKeyboardEvent(v);v.stopPropagation()},
_activateHandler:function(v){_.nq._activateHandler.call(this,v);v.stopPropagation()},
_disabledChanged:function(v){v?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};j7B=[$Pn,_.K$,_.ox];_.s7n={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(v){this.focusedItem&&(this.focusedItem.click(),v.detail.keyboardEvent.preventDefault())},
_onDownKey:function(v){this.focusedItem&&(this.focusedItem.click(),v.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(v){return v.ctrlKey||v.shiftKey||v.altKey||v.metaKey},
_onLeftKey:function(v){this._isSpecialKey(v.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),v.detail.keyboardEvent.preventDefault())},
_onRightKey:function(v){this._isSpecialKey(v.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),v.detail.keyboardEvent.preventDefault())},
_onKeydown:function(v){this.keyboardEventMatchesKeys(v,"up down left right esc")||this._focusWithKeyboardEvent(v)}};
_.NBJ=[j7B,_.s7n];var knn;knn=new Set;_.J9={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):(knn.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(v){this.resizerShouldNotify(v)&&this._notifyDescendant(v)},this),this._fireResize())},
assignParentResizable:function(v){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=v)&&v._interestedResizables.indexOf(this)===-1&&(v._interestedResizables.push(this),v._subscribeIronResize(this))},
stopResizeNotificationsFor:function(v){var e=this._interestedResizables.indexOf(v);e>-1&&(this._interestedResizables.splice(e,1),this._unsubscribeIronResize(v))},
_subscribeIronResize:function(v){v.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(v){v.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(v){this._notifyingDescendant?v.stopPropagation():HY||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(v){var e=_.tW(v).rootTarget;e!==this&&(e.assignParentResizable(this),this._notifyDescendant(e),v.stopPropagation())},
_parentResizableChanged:function(v){v&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(v){this.isAttached&&(this._notifyingDescendant=!0,v.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var v=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function d(){document.removeEventListener("readystatechange",d);v()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(knn.forEach(function(e){e!==this&&e._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?knn.delete(this):knn.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
*/
_.LS0={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(v,e){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);e&&(v==="document"?this.scrollTarget=this._doc:typeof v==="string"?this.scrollTarget=(e=this.domHost)&&e.$?e.$[v]:_.tW(this.ownerDocument).querySelector("#"+v):this._isValidScrollTarget()&&(this._oldScrollTarget=v,this._toggleScrollListener(this._shouldHaveListener,v)))},
_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(v){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,v):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
v)},set _scrollLeft(v){this.scrollTarget===this._doc?window.scrollTo(v,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=v)},scroll:function(v,e){if(typeof v==="object"){var d=v.left;e=v.top}else d=v;d=d||0;e=e||0;this.scrollTarget===this._doc?window.scrollTo(d,e):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=d,this.scrollTarget.scrollTop=e)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(v,e){e=e===this._doc?window:e;v?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),e.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(e.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(v){this._shouldHaveListener=v;this._toggleScrollListener(v,this.scrollTarget)}};_.xv({is:"iron-selector",_template:null,behaviors:[$Pn]});var GB={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(v){if(v.timing)for(var e in v.timing)this.animationTiming[e]=v.timing[e];return this.animationTiming},
setPrefixedProperty:function(v,e,d){for(var E={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[e],T,S=0;T=E[S];S++)v.style[T]=d;v.style[e]=d},
complete:function(){}};_.xv({is:"fade-in-animation",_template:null,behaviors:[GB],configure:function(v){return this._effect=new KeyframeEffect(v.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(v))}});_.xv({is:"fade-out-animation",_template:null,behaviors:[GB],configure:function(v){return this._effect=new KeyframeEffect(v.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(v))}});var VKn=[{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(v,e){for(var d in e)v[d]=e[d]},
_cloneConfig:function(v){var e={isClone:!0};this._copyProperties(e,v);return e},
_getAnimationConfigRecursive:function(v,e,d){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 E=v?this.animationConfig[v]:this.animationConfig;Array.isArray(E)||(E=[E]);if(E)for(var T,S=0;T=E[S];S++)if(T.animatable)T.animatable._getAnimationConfigRecursive(T.type||v,e,d);else if(T.id){var O=e[T.id];
O?(O.isClone||(e[T.id]=this._cloneConfig(O),O=e[T.id]),this._copyProperties(O,T)):e[T.id]=T}else d.push(T)}},
getAnimationConfig:function(v){var e={},d=[];this._getAnimationConfigRecursive(v,e,d);for(var E in e)d.push(e[E]);return d}},
{_configureAnimations:function(v){var e=[],d=[];if(v.length>0)for(var E,T=0;E=v[T];T++){var S=document.createElement(E.name);if(S.isNeonAnimation){var O=null;S.configure||(S.configure=function(){return null});
O=S.configure(E);d.push({result:O,config:E})}else console.warn(this.is+":",E.name,"not found!")}for(v=0;v<d.length;v++){O=d[v].result;E=d[v].config;try{typeof O.cancel!="function"&&(O=document.timeline.play(O))}catch(b){O=null,console.warn("Couldnt play","(",E.name,").",b)}O&&e.push({neonAnimation:S,config:E,animation:O})}return e},
_shouldComplete:function(v){for(var e=!0,d=0;d<v.length;d++)if(v[d].animation.playState!="finished"){e=!1;break}return e},
_complete:function(v){for(var e=0;e<v.length;e++)v[e].neonAnimation.complete(v[e].config);for(e=0;e<v.length;e++)v[e].animation.cancel()},
playAnimation:function(v,e){var d=this.getAnimationConfig(v);if(d){this._active=this._active||{};this._active[v]&&(this._complete(this._active[v]),delete this._active[v]);var E=this._configureAnimations(d);if(E.length==0)this.fire("neon-animation-finish",e,{bubbles:!1});else for(this._active[v]=E,d=0;d<E.length;d++)E[d].animation.onfinish=function(){this._shouldComplete(E)&&(this._complete(E),delete this._active[v],this.fire("neon-animation-finish",e,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var v in this._active){var e=this._active[v],d;for(d in e)e[d].animation&&e[d].animation.cancel&&e[d].animation.cancel()}this._active={}}}];var $q=function(v,e){v=Error.call(this,v);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.arg=e;this.name=this.constructor.name;this.constructor=$q;this.__proto__=$q.prototype};
_.V($q,Error);var ozu=gy(function(v){var e=function(){return v.apply(this,arguments)||this};
_.V(e,v);e.prototype._marshalArgs=function(d,E,T){E=v.prototype._marshalArgs.call(this,d,E,T);if(this._legacyUndefinedCheck&&E.length>1)for(T=0;T<E.length;T++)if(E[T]===void 0||d[T].wildcard&&E[T].base===void 0)throw d=d[T].name,new $q("Argument '"+d+"' is undefined.",d);return E};
e.prototype._addPropertyEffect=function(d,E,T){return v.prototype._addPropertyEffect.call(this,d,E,rtW(T,T&&T.info&&T.info.methodName))};
e._addTemplatePropertyEffect=function(d,E,T){return v._addTemplatePropertyEffect.call(this,d,E,rtW(T))};
return e}),JXg=_.xv.Class;
_.xv.Class=function(v,e){return JXg(v,function(d){return e?e(ozu(d)):ozu(d)})};
var Gn6=gy(function(v){var e=ozu(v);v=function(){return e.apply(this,arguments)||this};
_.V(v,e);_.vP.Object.defineProperties(v.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return v}),MKB=Z8.mixin;
Z8.mixin=MKB?function(v){return Gn6(MKB(v))}:Gn6;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.MS=_.sQ.IronButtonState;var mh0=lW;/*

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 fxJ;_.tKu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");fxJ=function(){var v=[],e;var d=d||_.tKu.length;for(e=0;e<8;e++)v[e]=_.tKu[0|Math.random()*d];return v.join("")};var jnH=function(){return Math.random().toString(36).substring(7).split("").join(".")},$sU="@@redux/INIT"+jnH(),kxM="@@redux/REPLACE"+jnH();var LJ$=typeof Symbol==="function"&&Symbol.observable||"@@observable";var R0i=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var PHB="top right bottom left width height size weight".split(" "),xPI=typeof MutationObserver!=="undefined",BB7=R0i&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,CHJ=function(){this.mutationEventsAdded_=this.JSC$11736_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=V9s(this.refresh.bind(this))},X5J=function(v,
e){var d=v.observers_;
e=d.indexOf(e);~e&&d.splice(e,1);!d.length&&v.JSC$11736_connected_&&R0i&&v.JSC$11736_connected_&&(document.removeEventListener("transitionend",v.onTransitionEnd_),window.removeEventListener("resize",v.refresh),v.mutationsObserver_&&(v.mutationsObserver_.disconnect(),BB7&&(HTMLElement.prototype.attachShadow=BB7)),v.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",v.refresh),v.mutationsObserver_=null,v.mutationEventsAdded_=!1,v.JSC$11736_connected_=!1)};
CHJ.prototype.refresh=function(){z0i(this)&&this.refresh()};
var z0i=function(v){v=v.observers_.filter(function(e){return lxB(e),e.activeObservations_.length>0});
v.forEach(function(e){return Hv0(e)});
return v.length>0},AXM=function(v){if(R0i&&!v.JSC$11736_connected_){document.addEventListener("transitionend",v.onTransitionEnd_);
window.addEventListener("resize",v.refresh);if(xPI){v.mutationsObserver_=new MutationObserver(v.refresh);var e={attributes:!0,childList:!0,characterData:!0,subtree:!0};v.mutationsObserver_.observe(document,e);BB7&&(function T(E){var S=E.shadowRoot;S&&(v.mutationsObserver_.observe(S,e),T(S));for(E=E.firstElementChild;E;)T(E),E=E.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var E=BB7.apply(this,_.Xa.apply(0,arguments));
v.mutationsObserver_.observe(E,e);return E})}else document.addEventListener("DOMSubtreeModified",v.refresh),v.mutationEventsAdded_=!0;
v.JSC$11736_connected_=!0}};
CHJ.prototype.onTransitionEnd_=function(v){var e=v.propertyName===void 0?"":v.propertyName;PHB.some(function(d){return!!~e.indexOf(d)})&&this.refresh()};
var ZvJ=null;var cXE=function(v,e){for(var d=_.a(Object.keys(e)),E=d.next();!E.done;E=d.next())E=E.value,Object.defineProperty(v,E,{value:e[E],enumerable:!1,writable:!1,configurable:!0})};var t9=function(v){var e;return(v==null?void 0:(e=v.ownerDocument)==null?void 0:e.defaultView)||globalThis};var w5g={x:0,y:0,width:0,height:0},FSI=typeof SVGGraphicsElement!=="undefined"?function(v){return v instanceof t9(v).SVGGraphicsElement}:function(v){return v instanceof t9(v).SVGElement&&typeof v.getBBox==="function"};var Q7I=function(v){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=v};
Q7I.prototype.isActive=function(){var v=this.target;if(R0i)if(FSI(v)){var e=v.getBBox();e={x:0,y:0,width:e.width,height:e.height}}else{var d=v.clientWidth,E=v.clientHeight;if(d||E){var T=t9(v).getComputedStyle(v);e=sw(T["padding-top"]);var S=sw(T["padding-left"]),O=S+sw(T["padding-right"]),b=e+sw(T["padding-bottom"]),Y=sw(T.width),q=sw(T.height);T.boxSizing==="border-box"&&(Math.round(Y+O)!==d&&(Y-=oN7(T,"left","right")+O),Math.round(q+b)!==E&&(q-=oN7(T,"top","bottom")+b));v!==t9(v).document.documentElement&&
(v=Math.round(Y+O)-d,E=Math.round(q+b)-E,Math.abs(v)!==1&&(Y-=v),Math.abs(E)!==1&&(q-=E));e={x:S,y:e,width:Y,height:q}}else e=w5g}else e=w5g;this.contentRect_=e;return e.width!==this.broadcastWidth||e.height!==this.broadcastHeight};var gzu=function(v,e){var d=e.x;var E=e.y;var T=e.width;e=e.height;var S=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);cXE(S,{x:d,y:E,width:T,height:e,top:E,right:d+T,bottom:e+E,left:d});cXE(this,{target:v,contentRect:S})};var ucE=function(v,e){var d=ZvJ;this.activeObservations_=[];this.observations_=new Map;if(typeof v!=="function")throw new TypeError("Re");this.callback_=v;this.controller_=d;this.callbackCtx_=e};
ucE.prototype.observe=function(v){if(v===void 0)throw new TypeError("Se");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(v instanceof t9(v).Element))throw new TypeError("Te");var e=this.observations_;e.has(v)||(e.set(v,new Q7I(v)),v=this.controller_,~v.observers_.indexOf(this)||v.observers_.push(this),v.JSC$11736_connected_||AXM(v),this.controller_.refresh())}};
ucE.prototype.unobserve=function(v){if(v===void 0)throw new TypeError("Se");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(v instanceof t9(v).Element))throw new TypeError("Te");var e=this.observations_;e.has(v)&&(e.delete(v),e.size||X5J(this.controller_,this))}};
ucE.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();X5J(this.controller_,this)};
var lxB=function(v){v.activeObservations_.splice(0);v.observations_.forEach(function(e){e.isActive()&&v.activeObservations_.push(e)})},Hv0=function(v){if(v.activeObservations_.length>0){var e=v.callbackCtx_,d=v.activeObservations_.map(function(E){var T=E.target,S=E.contentRect_;
E.broadcastWidth=S.width;E.broadcastHeight=S.height;return new gzu(T,S)});
v.callback_.call(e,d,e);v.activeObservations_.splice(0)}};var f$=function(v){if(!(this instanceof f$))throw new TypeError("Ue");if(!arguments.length)throw new TypeError("Se");ZvJ||(ZvJ=new CHJ);this.observer_=new ucE(v,this)};
f$.prototype.observe=function(v){this.observer_.observe(v)};
f$.prototype.unobserve=function(v){this.observer_.unobserve(v)};
f$.prototype.disconnect=function(){this.observer_.disconnect()};var z9M=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:f$;var xsM="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(" "),PIU={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},Rw7=null,Jtj=null;var B6M={},CI3=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 ct3={text:1},lHM={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var nz2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,DP0={CONSTANT:{isUnwrappable:function(v){return v instanceof XT},
unwrap:BnI},JAVASCRIPT:{isUnwrappable:function(v){return v instanceof _.gu},
unwrap:S9O},HTML:{isUnwrappable:function(v){return v instanceof H$},
unwrap:function(v){return ZB(v)}},
RESOURCE_URL:{isUnwrappable:function(v){return v instanceof Nf},
unwrap:_.LY},STRING:{isUnwrappable:function(v){return v instanceof Object},
unwrap:function(v){return String(v)}},
STYLE:{isUnwrappable:function(v){return typeof v==="string"},
unwrap:function(v){return v}},
URL:{isUnwrappable:function(v){return GD(v)},
unwrap:_.Mf}},UPc={CONSTANT:wJL,JAVASCRIPT:wJL,HTML:function(v){v=v instanceof H$?v:Ar(String(v).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return ZB(v)},
RESOURCE_URL:wJL,STRING:String,STYLE:wJL,URL:function(v,e){v=nz2.test(v)?v:void 0;return v===void 0?e:v}};var dUH=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,FJ0=/[\t\n\f\r ]+/,gNH=/[\t\n\f\r ,]+/g,nNS=function(v,e,d){return d},VI={},p56=function(){var v=function(){var E={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",E):E}(),e=v.createHTML(""),d=v.createScript("");
v=v.createScriptURL("");return{INNOCUOUS_STRING:e,INNOCUOUS_SCRIPT:d,INNOCUOUS_URL:v}}(),L2=p56.INNOCUOUS_STRING,eY7=p56.INNOCUOUS_SCRIPT,vT3=p56.INNOCUOUS_URL;var vpB=function(v){var e=ETj(v);return function(d,E,T,S){return S?e(S,E,T,d):L2}}({reportHandler:function(v,e){if(v)try{throw Error(e);
}catch(d){_.RI(d)}},
safeTypesBridge:function(v,e,d){var E=DP0[e];return E.isUnwrappable(v)&&(E=E.unwrap(v,d),E!==d)?E:(0,UPc[e])(String(v),d)},
allowedIdentifierPrefixes:[""]});if(jO!==void 0)throw Error("Ve");jO=vpB;if(jO!==vpB)throw Error("We");om("Injectable",[]);var MP0=om("Inject",[["token",void 0]]),ffW=om("Optional",[]);om("Injectable",[]);var RY0=om("Self",[]),PaL=om("SkipSelf",[]);om("Host",[]);var eJJ={},d02=function(){};
d02.prototype.resolve=function(){throw Error("Ye");};
d02.prototype.addProvider=function(){throw Error("Ye");};var JMS=Function;var Epu=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Tp2=function(){this._reflect=window.Reflect};
_.W=Tp2.prototype;_.W.factory=function(v){return function(){return new (Function.prototype.bind.apply(v,[null].concat(_.t7(_.Xa.apply(0,arguments)))))}};
_.W._zipTypesAndAnnotations=function(v,e){var d=typeof v==="undefined"?Array(e.length):Array(v.length);for(var E=0;E<d.length;E++)d[E]=typeof v==="undefined"?[]:v[E]!=Object?[v[E]]:[],e&&S3t(e[E])&&(d[E]=d[E].concat(e[E]));return d};
_.W._ownParameters=function(v,e){if(Epu.exec(v.toString()))return null;if(v.parameters&&v.parameters!==e.parameters)return v.parameters;var d=v.ctorParameters;return d&&d!==e.ctorParameters?(e=typeof d==="function"?d():d,v=e.map(function(E){return E&&E.type}),e=e.map(function(E){return E&&aft(E.decorators)}),this._zipTypesAndAnnotations(v,e)):S3t(this._reflect)&&S3t(this._reflect.getOwnMetadata)&&(e=this._reflect.getOwnMetadata("parameters",v),(d=this._reflect.getOwnMetadata("design:paramtypes",v))||
e)?this._zipTypesAndAnnotations(d,e):Array(v.length).fill(void 0)};
_.W.parameters=function(v){if(!v.prototype)return[];var e=Object.getPrototypeOf(v.prototype).constructor;(v=this._ownParameters(v,e))||e===Object||(v=this.parameters(e));return v||[]};
_.W._ownAnnotations=function(v,e){if(v.annotations&&v.annotations!==e.annotations)return v=v.annotations,typeof v==="function"&&v.annotations&&(v=v.annotations),v;if(v.decorators&&v.decorators!==e.decorators)return aft(v.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",v)};
_.W.annotations=function(v){var e=Object.getPrototypeOf(v.prototype).constructor;v=this._ownAnnotations(v,e)||[];return(e!==Object?this.annotations(e):[]).concat(v)};
_.W._ownPropMetadata=function(v,e){if(v.propMetadata&&v.propMetadata!==e.propMetadata)return v=v.propMetadata,typeof v==="function"&&v.propMetadata&&(v=v.propMetadata),v;if(v.propDecorators&&v.propDecorators!==e.propDecorators){var d=v.propDecorators,E={};Object.keys(d).forEach(function(T){E[T]=aft(d[T])});
return E}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",v)};
_.W.propMetadata=function(v){var e=Object.getPrototypeOf(v.prototype).constructor,d={};if(e!==Object){var E=this.propMetadata(e);Object.keys(E).forEach(function(S){d[S]=E[S]})}var T=this._ownPropMetadata(v,e);
T&&Object.keys(T).forEach(function(S){var O=[];d.hasOwnProperty(S)&&O.push.apply(O,_.t7(d[S]));O.push.apply(O,_.t7(T[S]));d[S]=O});
return d};
_.W.getter=function(v){return function(e){return e[v]}};
_.W.setter=function(v){return function(e,d){return e[v]=d}};
_.W.method=function(v){return function(e,d){if(!e[v])throw Error("Ze`"+v);return e[v].apply(e,d)}};var SR7=function(){};var WC0=function(v){this.reflectionCapabilities=v};
_.V(WC0,SR7);_.W=WC0.prototype;_.W.factory=function(v){return this.reflectionCapabilities.factory(v)};
_.W.parameters=function(v){return this.reflectionCapabilities.parameters(v)};
_.W.annotations=function(v){return this.reflectionCapabilities.annotations(v)};
_.W.propMetadata=function(v){return this.reflectionCapabilities.propMetadata(v)};
_.W.getter=function(v){return this.reflectionCapabilities.getter(v)};
_.W.setter=function(v){return this.reflectionCapabilities.setter(v)};
_.W.method=function(v){return this.reflectionCapabilities.method(v)};var rMt=new WC0(new Tp2);var Rx=function(v,e){this.token=v;this.id=e;if(v===void 0||v===null)throw Error("df");};
_.vP.Object.defineProperties(Rx.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return JW(this.token)}}});
_.vP.Object.defineProperties(Rx,{JSC$11778_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Mn.JSC$11782_numberOfKeys}}});
var a77=function(){this._allKeys=new Map};
a77.prototype.get=function(v){if(v instanceof Rx)return v;if(this._allKeys.has(v))return this._allKeys.get(v);var e=new Rx(v,Rx.JSC$11778_numberOfKeys);this._allKeys.set(v,e);return e};
_.vP.Object.defineProperties(a77.prototype,{JSC$11782_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Mn=new a77;var xUj=function(v,e,d){this.key=v;this.optional=e;this.visibility=d},KWW=function(v){return new xUj(v,!1,null)},j9U=[],keL=function(v,e,d){this.key=v;
this.resolvedFactories=e;this.multiProvider=d},s9U=function(v,e,d,E){this.factory=v;
this.dependencies=e;this.providerClass=d;this.providerValue=E};var PA={},xl=function(v,e){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=e===void 0?null:e;v=_.a(v);for(e=v.next();!e.done;e=v.next())this.addProvider(e.value)};
_.W=xl.prototype;_.W.addProvider=function(v){this.keyIdToIndex.set(v.key.id,this.keyIds.length);this.providers.push(v);this.keyIds.push(v.key.id);this.objs.push(PA)};
_.W.resolve=function(v,e){e=e===void 0?eJJ:e;return this._getByKey(Mn.get(Gz(v)),null,e)};
_.W._new=function(v){if(this.constructedKeyIds[v.key.id])throw mU0(this,v.key);this.constructedKeyIds[v.key.id]=!0;return this._instantiateProvider(v)};
_.W._instantiateProvider=function(v){if(v.multiProvider){for(var e=Array(v.resolvedFactories.length),d=0;d<v.resolvedFactories.length;++d)e[d]=this._instantiate(v,v.resolvedFactories[d]);return e}return this._instantiate(v,v.resolvedFactories[0])};
_.W._instantiate=function(v,e){var d=this,E=e.factory;try{var T=e.dependencies.map(function(O){return d._getByReflectiveDependency(O)})}catch(O){throw O.addKey&&O.addKey(this,v.key),O;
}try{var S=E.apply(null,_.t7(T))}catch(O){throw yM0(this,O,v.key);}return S};
_.W._getByReflectiveDependency=function(v){return this._getByKey(v.key,v.visibility,v.optional?null:eJJ)};
_.W._getByKey=function(v,e,d){return v===irA?this:e instanceof RY0?this._getByKeySelf(v,d):this._getByKeyDefault(v,d,e)};
_.W._getObjByKeyId=function(v){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===v)return this.objs[e]===PA&&(this.objs[e]=this._new(this.providers[e])),this.objs[e];return PA};
_.W._throwOrNull=function(v,e){if(e!==eJJ)return e;throw Y3U(this,v);};
_.W._getByKeySelf=function(v,e){var d=this._getObjByKeyId(v.id);return d!==PA?d:this._throwOrNull(v,e)};
_.W._getByKeyDefault=function(v,e,d){for(var E=d=d instanceof PaL?this.parent:this;d instanceof xl;){var T=d._getObjByKeyId(v.id);if(T!==PA)return T;d=d.parent}T=void 0;if(d!==null)try{var S=d.resolve(v.token,e);if(S!==PA)return S}catch(O){T=O}if(!(E instanceof xl&&CaW(v.token))){if(T)throw T;return this._throwOrNull(v,e)}for(S=E;S.parent instanceof xl;)S=S.parent;S.addProvider(LWS({provide:v.token,useClass:v.token}));return S.resolve(v.token,e)};
_.W.toString=function(){return this.displayName};
_.vP.Object.defineProperties(xl.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+BG$(this,function(v){return' "'+v.key.displayName+'" '}).join(", ")+"])"}}});
var irA=Mn.get(Gz(d02));(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 OrM=window.XRegExp;var I7I=-1,bru=function(v){addEventListener("pageshow",function(e){e.persisted&&(I7I=e.timeStamp,v(e))},!0)};var m0u=function(v,e,d){var E=YR6,T,S;return function(O){if(e.value>=0&&(O||d)){var b;if((S=e.value-((b=T)!=null?b:0))||T===void 0)T=e.value,e.delta=S,O=e.value,e.rating=O>E[1]?"poor":O>E[0]?"needs-improvement":"good",v(e)}}};var y1J=function(v){requestAnimationFrame(function(){return requestAnimationFrame(function(){return v()})})};var qRn=function(){var v=performance.getEntriesByType("navigation")[0];if(v&&v.responseStart>0&&v.responseStart<performance.now())return v};var r1n=function(){var v,e;return(e=(v=qRn())==null?void 0:v.activationStart)!=null?e:0};var hJ7=function(){var v=v===void 0?-1:v;var e=qRn(),d="navigate";I7I>=0?d="back-forward-cache":e&&(document.prerendering||r1n()>0?d="prerender":document.wasDiscarded?d="restore":e.type&&(d=e.type.replace(/_/g,"-")));return{name:"LCP",value:v,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:d}};var zYs=new WeakMap;var KC0=function(v){var e=e===void 0?{}:e;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var d=new PerformanceObserver(function(E){Promise.resolve().then(function(){v(E.getEntries())})});
d.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},e));return d}}catch(E){}};var $02=function(v){var e=!1;return function(){e||(v(),e=!0)}};var BA=-1,jti=function(v){document.visibilityState==="hidden"&&BA>-1&&(BA=v.type==="visibilitychange"?v.timeStamp:0,removeEventListener("visibilitychange",jti,!0),removeEventListener("prerenderingchange",jti,!0))},stM=function(){addEventListener("visibilitychange",jti,!0);
addEventListener("prerenderingchange",jti,!0)},NpB=function(){if(BA<0){var v=r1n(),e,d;
BA=(d=document.prerendering?void 0:(e=globalThis.performance.getEntriesByType("visibility-state").filter(function(E){return E.name==="hidden"&&E.startTime>v})[0])==null?void 0:e.startTime)!=null?d:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
stM();bru(function(){setTimeout(function(){BA=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;stM()})})}return{get firstHiddenTime(){return BA}}};var kUe=function(v){document.prerendering?addEventListener("prerenderingchange",function(){return v()},!0):v()};var LC6=function(v){var e=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?v():(v=$02(v),document.addEventListener("visibilitychange",v,{once:!0}),e(function(){v();document.removeEventListener("visibilitychange",v)}))};var XrU=function(){};
XrU.prototype._processEntry=function(v){var e;(e=this._onBeforeProcessingEntry)==null||e.call(this,v)};var YR6=[2500,4E3],QrM=function(v){var e=e===void 0?{}:e;kUe(function(){var d=NpB(),E=hJ7(),T=lfS(e),S=function(h){e.reportAllChanges||(h=h.slice(-1));h=_.a(h);for(var K=h.next();!K.done;K=h.next())K=K.value,T._processEntry(K),K.startTime<d.firstHiddenTime&&(E.value=Math.max(K.startTime-r1n(),0),E.entries=[K],b())},O=KC0(S);
if(O){var b=m0u(v,E,e.reportAllChanges);for(var Y=$02(function(){S(O.takeRecords());O.disconnect();b(!0)}),q=_.a(["keydown",
"click","visibilitychange"]),r=q.next();!r.done;r=q.next())addEventListener(r.value,function(){return LC6(Y)},{capture:!0,
once:!0});bru(function(h){E=hJ7();b=m0u(v,E,e.reportAllChanges);y1J(function(){E.value=performance.now()-h.timeStamp;b(!0)})})}})};var VBB;var opA;_.u=function(){return opA!==void 0?opA:opA=document.createElement("template")};
document.head.appendChild(_.u().content);var J1c;_.xv({_template:function(){if(J1c!==void 0)return J1c;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
var e=v.content,d=e.insertBefore;VBB===void 0&&(VBB=document.createElement("template"));var E=VBB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return J1c=v},
is:"tp-yt-app-toolbar"});var GU0;var MB6;_.C$=function(){};
_.C$=_.xv({_template:function(){if(MB6!==void 0)return MB6;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;GU0===void 0&&(GU0=document.createElement("template"));var E=GU0;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return MB6=v},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.C$.instance||(_.C$.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(v){this._text===v&&(v+="\u00a0");this._text="";this.async(function(){this._text=v},this.timeout)},
_onIronAnnounce:function(v){v.detail&&v.detail.text&&this.announce(v.detail.text)}});
_.C$.instance=null;_.C$.requestAvailability=function(){_.C$.instance||(_.C$.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.C$.instance):document.addEventListener("load",function(){document.body.appendChild(_.C$.instance)})};var tBn;var f7M;/*

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

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 XO,zJ2,l7n;XO=Element.prototype;zJ2=XO.matches||XO.matchesSelector||XO.mozMatchesSelector||XO.msMatchesSelector||XO.oMatchesSelector||XO.webkitMatchesSelector;l7n=function(){};
_.A10=function(v){var e=HrB,d=[];return e._collectTabbableNodes(v,d)?e._sortByTabIndex(d):d};
_.W=l7n.prototype;_.W._normalizedTabIndex=function(v){return(zJ2.call(v,"input, select, textarea, button, object")?zJ2.call(v,":not([disabled])"):zJ2.call(v,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(v=v.getAttribute("tabindex")||0,Number(v)):-1};
_.W._collectTabbableNodes=function(v,e){if(v.nodeType!==Node.ELEMENT_NODE||!this._isVisible(v))return!1;var d=this._normalizedTabIndex(v),E=d>0;d>=0&&e.push(v);if(v.localName==="content"||v.localName==="slot")d=_.tW(v).getDistributedNodes();else{var T;d=((T=_.tW(v).shadowRoot)!=null?T:_.tW(v.root||v)).children}for(v=0;v<d.length;v++)E=this._collectTabbableNodes(d[v],e)||E;return E};
_.W._isVisible=function(v){var e=v.style;return e.visibility!=="hidden"&&e.display!=="none"?(e=window.getComputedStyle(v),e.visibility!=="hidden"&&e.display!=="none"):!1};
_.W._sortByTabIndex=function(v){var e=v.length;if(e<2)return v;var d=Math.ceil(e/2);e=this._sortByTabIndex(v.slice(0,d));v=this._sortByTabIndex(v.slice(d));return this._mergeSortByTabIndex(e,v)};
_.W._mergeSortByTabIndex=function(v,e){for(var d=[];v.length>0&&e.length>0;)this._hasLowerTabOrder(v[0],e[0])?d.push(e.shift()):d.push(v.shift());return d.concat(v,e)};
_.W._hasLowerTabOrder=function(v,e){v=Math.max(v.tabIndex,0);e=Math.max(e.tabIndex,0);return v===0||e===0?e>v:v>e};
var HrB=new l7n;var Zrg;var c1E;_.xv({_template:function(){if(c1E!==void 0)return c1E;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Zrg===void 0&&(Zrg=document.createElement("template"));var E=Zrg;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return c1E=v},
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&&_.tW(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.tW(this.parentNode).removeChild(this)},
_onTransitionend:function(v){v&&v.target===this&&this.complete()},
_openedChanged:function(v){v?this.prepare():(v=window.getComputedStyle(this),v.transitionDuration!=="0s"&&v.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 zB=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;xk(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)};
zB.prototype._bringOverlayAtIndexToFront=function(v){var e=this._overlays[v];if(e){var d=this._overlays.length-1,E=this._overlays[d];E&&this._shouldBeBehindOverlay(e,E)&&d--;if(!(v>=d)){E=Math.max(this._getZ(_.wju(this)),this._minimumZ);for(this._getZ(e)<=E&&this._applyOverlayZ(e,E);v<d;)this._overlays[v]=this._overlays[v+1],v++;this._overlays[d]=e}}};
zB.prototype.addOverlay=function(v){var e=this._overlays.indexOf(v);if(e>=0)this._bringOverlayAtIndexToFront(e);else{e=this._overlays.length;var d=this._overlays[e-1],E=Math.max(this._getZ(d),this._minimumZ),T=this._getZ(v);d&&this._shouldBeBehindOverlay(v,d)&&(this._applyOverlayZ(d,E),e--,E=Math.max(this._getZ(this._overlays[e-1]),this._minimumZ));T<=E&&this._applyOverlayZ(v,E);this._overlays.splice(e,0,v)}this.trackBackdrop()};
zB.prototype.removeOverlay=function(v){v=this._overlays.indexOf(v);v!==-1&&(this._overlays.splice(v,1),this.trackBackdrop())};
_.wju=function(v){return v._overlays[v._overlays.length-1]};
_.W=zB.prototype;_.W.trackBackdrop=function(){var v=this._overlayWithBackdrop();if(v||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(v)-1,this.backdropElement.opened=!!v,this.backdropElement.prepare()};
_.W._overlayWithBackdrop=function(){for(var v=this._overlays.length-1;v>=0;v--)if(this._overlays[v].withBackdrop)return this._overlays[v]};
_.W._getZ=function(v){var e=this._minimumZ;if(v){var d,E,T=Number(((d=v.hostElement)!=null?d:v).style.zIndex||window.getComputedStyle((E=v.hostElement)!=null?E:v).zIndex);T===T&&(e=T)}return e};
_.W._setZ=function(v,e){var d;((d=v.hostElement)!=null?d:v).style.zIndex=e};
_.W._applyOverlayZ=function(v,e){this._setZ(v,e+2)};
_.W._overlayInPath=function(v){v=v||[];for(var e=0;e<v.length;e++){var d=void 0;if(((d=v[e].polymerController)!=null?d:v[e])._manager===this)return v[e]}};
_.W._onCaptureClick=function(v){var e=this._overlays.length-1;if(e!==-1)for(var d=_.tW(v).path,E,T;(E=this._overlays[e])&&this._overlayInPath(d)!==((T=E.hostElement)!=null?T:E);)if(E._onCaptureClick(v),E.allowClickThrough)e--;else break};
_.W._onCaptureFocus=function(v){var e=_.wju(this);e&&e._onCaptureFocus(v)};
_.W._onCaptureKeyDown=function(v){var e=_.wju(this);e&&(_.K$.keyboardEventMatchesKeys(v,"esc")?e._onCaptureEsc(v):_.K$.keyboardEventMatchesKeys(v,"tab")&&e._onCaptureTab(v))};
_.W._shouldBeBehindOverlay=function(v,e){return!v.alwaysOnTop&&e.alwaysOnTop&&!e.contains(v)};
_.vP.Object.defineProperties(zB.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 v=document.activeElement;v&&v instanceof Element!==!1||(v=document.body);for(;v.root&&_.tW(v.root).activeElement;)v=_.tW(v.root).activeElement;return v}}});
_.ly=new zB;var HCS=0,AML=0,ZC0=null,cMt=[],f2=["wheel","mousewheel","DOMMouseScroll"],wr0;_.N("web_no_lock_on_touchstart_killswitch")&&(f2.push("touchstart"),f2.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;_.HA={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:_.ly},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var v;return this._focusedChild||_.tW((v=this.hostElement)!=null?v:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var v;return _.A10((v=this.hostElement)!=null?v: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 v;this._observer=_.tW((v=this.hostElement)!=null?v:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var v;_.tW((v=this.hostElement)!=null?v:this).unobserveNodes(this._observer)}this._observer=null;for(var e in this.__rafs)this.__rafs[e]!==null&&cancelAnimationFrame(this.__rafs[e]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(v){this.fire("iron-overlay-canceled",v,{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 v;((v=this.hostElement)!=null?v:this).style.outline="none";var e;((e=this.hostElement)!=null?e:this).style.display="none"}},
_openedChanged:function(v){if(v){var e;((e=this.hostElement)!=null?e:this).removeAttribute("aria-hidden")}else{var d;((d=this.hostElement)!=null?d: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 v;if(this.withBackdrop&&!((v=this.hostElement)!=null?v:this).hasAttribute("tabindex")){var e;((e=this.hostElement)!=null?e:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var d;((d=this.hostElement)!=null?d: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 v;((v=this.hostElement)!=null?v:this).style.display="none";var e;((e=this.hostElement)!=null?e:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var v,e;((v=this.hostElement)!=null?v:this).style.transition=((e=this.hostElement)!=null?e:this).style.webkitTransition="none";var d,E;((d=this.hostElement)!=null?d:this).style.transform=((E=this.hostElement)!=null?E:this).style.webkitTransform="none";var T;((T=this.hostElement)!=null?T:this).style.display=""},
_finishPositioning:function(){var v;((v=this.hostElement)!=null?v:this).style.display="none";this.scrollTop=this.scrollTop;var e,d;((e=this.hostElement)!=null?e:this).style.transition=((d=this.hostElement)!=null?d:this).style.webkitTransition="";var E,T;((E=this.hostElement)!=null?E:this).style.transform=((T=this.hostElement)!=null?T:this).style.webkitTransform="";var S;((S=this.hostElement)!=null?S:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var v=this._manager.deepActiveElement,e;if(!(e=v===document.body))a:{for(;v;v=v.assignedSlot||v.parentNode||v.host)if(v===this){e=!0;break a}e=!1}e&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(v){this.noCancelOnOutsideClick||this.cancel(v)},
_onCaptureFocus:function(v){if(this.withBackdrop){var e=_.tW(v).path;e.indexOf(this)===-1?(v.stopPropagation(),this._applyFocus()):this._focusedChild=e[0]}},
_onCaptureEsc:function(v){this.noCancelOnEscKey||this.cancel(v)},
_onCaptureTab:function(v){if(this.withBackdrop){this.__ensureFirstLastFocusables();var e=v.shiftKey,d=e?this.__firstFocusableNode:this.__lastFocusableNode;e=e?this.__lastFocusableNode:this.__firstFocusableNode;if(d===e)d=!0;else{var E=this._manager.deepActiveElement;d=E===d||E===this}d&&(v.preventDefault(),this._focusedChild=e,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var v=this._focusableNodes;this.__firstFocusableNode=v[0];this.__lastFocusableNode=v[v.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(v,e){var d=this.__rafs;d[v]!==null&&cancelAnimationFrame(d[v]);d[v]=requestAnimationFrame(function(){d[v]=null;e.call(this)}.bind(this))},
__updateScrollObservers:function(v,e,d){v&&e&&this.__isValidScrollAction(d)?(d==="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),wr0=_._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()):(v=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),v!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(v,1),wr0=_._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(HY)for(var v=this;v;)v.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&v.host&&this.__rootNodes.push(v),v=v.host||v.assignedSlot||v.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(e){e.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(v){v.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(v){return v==="lock"||v==="refit"||v==="cancel"},
__onCaptureScroll:function(v){if(!(this.__isAnimating||_.tW(v).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(v)}},
__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)}};
_.A9=[XjM,_.J9,_.HA];_.xv({_template:function(){if(Bp7!==void 0)return Bp7;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;x0E===void 0&&(x0E=document.createElement("template"));var E=x0E;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return Bp7=v},
is:"tp-yt-iron-dropdown",behaviors:[_.$l,_.K$,_.A9,VKn],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 v=_.tW(this.$.content).getDistributedNodes(),e=0,d=v.length;e<d;e++)if(v[e].nodeType===Node.ELEMENT_NODE)return v[e]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.HA._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.HA._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.HA._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var v=this.containedElement,e=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),d=0;d<e.length;d++)e[d].node=v;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(v){this._readied&&(v?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var v=this.focusTarget||this.containedElement;v&&this.opened&&!this.noAutoFocus?v.focus():_.HA._applyFocus.apply(this,arguments)}});var FCi;var Qt2;/*

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 gp6=new _.kl({type:"iconset"});
_.xv({_template:function(){if(Qt2!==void 0)return Qt2;var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;FCi===void 0&&(FCi=document.createElement("template"));
var E=FCi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return Qt2=v},
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(v){v=(v||"").split(":");this._iconName=v.pop();this._iconsetName=v.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&&_.tW(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=gp6.byKey(this._iconsetName)){var v=this._iconset.applyIcon(this,this._iconName,this.theme);v&&v.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,_.tW(this.root).appendChild(this._img)}});var ube;var npI;_.xv({_template:function(){if(npI!==void 0)return npI;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
var e=v.content,d=e.insertBefore;ube===void 0&&(ube=document.createElement("template"));var E=ube;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return npI=v},
is:"tp-yt-iron-input",behaviors:[_.VO],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(){_.C$.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.tW(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.tW(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 v=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":v=/[0-9.,e-]/}return v},_bindValueChanged:function(v,e){e&&(v===void 0?e.value=null:v!==e.value&&(this.inputElement.value=v),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:v}))},
_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(v){var e=v.keyCode==19||v.keyCode==20||v.keyCode==45||v.keyCode==46||v.keyCode==144||v.keyCode==145||v.keyCode>32&&v.keyCode<41||v.keyCode>111&&v.keyCode<124;return!(v.keyCode==8||v.keyCode==9||v.keyCode==13||v.keyCode==27)&&!(v.charCode==0&&e)},
_onKeypress:function(v){if(this.allowedPattern||this.inputElement.type==="number"){var e=this._patternRegExp;if(e&&!(v.metaKey||v.ctrlKey||v.altKey)){this._patternAlreadyChecked=!0;var d=String.fromCharCode(v.charCode);this._isPrintable(v)&&!e.test(d)&&(v.preventDefault(),this._announceInvalidCharacter("Invalid character "+d+" not entered."))}}},
_checkPatternValidity:function(){var v=this._patternRegExp;if(!v)return!0;for(var e=0;e<this.inputElement.value.length;e++)if(!v.test(this.inputElement.value[e]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var v=this.inputElement.checkValidity();v&&(this.required&&this.bindValue===""?v=!1:this.hasValidator()&&(v=_.VO.validate.call(this,this.bindValue)));this.invalid=!v;this.fire("iron-input-validate");return v},
_announceInvalidCharacter:function(v){this.fire("iron-announce",{text:v})},
_computeValue:function(v){return v}});var D0n;var U0c;var pjc=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),v5i=pjc&&pjc[1]>=8;
_.xv({_template:function(){if(U0c!==void 0)return U0c;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;D0n===void 0&&(D0n=document.createElement("template"));var E=D0n;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return U0c=v},
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:[yhs,_.J9,_.LS0,md6],_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 _.tW(_.tW(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var v=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,v-this._physicalCount)},set _virtualStart(v){v=this._clamp(v,0,this._maxVirtualStart);this.grid&&(v-=v%this._itemsPerRow);this._virtualStartVal=v},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(v){v%=this._physicalCount;v<0&&(v=this._physicalCount+v);this.grid&&(v-=v%this._itemsPerRow);this._physicalStartVal=v},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(v){this._physicalCountVal=v},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 v=this._firstVisibleIndexVal;if(v==null){var e=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
v=this._iterateItems(function(d,E){e+=this._getPhysicalSizeIncrement(d);if(e>this._scrollPosition)return this.grid?E-E%this._itemsPerRow:E;if(this.grid&&this._virtualCount-1===E)return E-E%this._itemsPerRow})||0}return v},
get lastVisibleIndex(){var v=this._lastVisibleIndexVal;if(v==null){if(this.grid)v=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var e=this._physicalTop+this._scrollOffset;this._iterateItems(function(d,E){e<this._scrollBottom&&(v=E);e+=this._getPhysicalSizeIncrement(d)})}this._lastVisibleIndexVal=v}return v},
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,_.tg);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(v){this.style.webkitOverflowScrolling=v===this?"touch":"";this.style.overflowY=v===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.tg)},
updateViewportBoundaries:function(){var v=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(v["padding-top"],10);this._isRTL=v.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var v=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),e=v-this._scrollPosition,d=e>=0;this._scrollPosition=v;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(e)>this._physicalSize&&this._physicalSize>0?(e-=this._scrollOffset,d=Math.round(e/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=d,this._physicalStart+=d,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(v=this._getReusables(d),d?(this._physicalTop=v.physicalTop,this._virtualStart+=v.indexes.length,this._physicalStart+=v.indexes.length):(this._virtualStart=this._virtualStart-v.indexes.length,this._physicalStart=this._physicalStart-v.indexes.length),this._update(v.indexes,d?null:v.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Xk))},
_getReusables:function(v){var e=[],d=this._hiddenContentSize*this._ratio,E=this._virtualStart,T=this._virtualEnd,S=this._physicalCount,O=this._physicalTop+this._scrollOffset;var b=this._physicalBottom+this._scrollOffset;var Y=this._scrollPosition,q=this._scrollBottom;if(v){var r=this._physicalStart;b=Y-O}else r=this._physicalEnd,b-=q;for(;;){var h=this._getPhysicalSizeIncrement(r);b-=h;if(e.length>=S||b<=d)break;if(v){if(T+e.length+1>=this._virtualCount)break;if(O+h>=Y-this._scrollOffset)break;e.push(r);
O+=h;r=(r+1)%S}else{if(E-e.length<=0)break;if(O+this._physicalSize-h<=q)break;e.push(r);O-=h;r=r===0?S-1:r-1}}return{indexes:e,physicalTop:O-this._scrollOffset}},
_update:function(v,e){if(!(v&&v.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(v);this._updateMetrics(v);if(e)for(;e.length;)v=e.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(v);this._positionItems();this._updateScrollerSize()}},
_createPool:function(v){this._ensureTemplatized();var e,d=Array(v);for(e=0;e<v;e++){var E=this.stamp(null);d[e]=E.root.querySelector("*");this._itemsParent.appendChild(E.root)}return d},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(v){v=this._clamp(this._physicalCount+v,3,this._virtualCount-this._virtualStart);v=this._convertIndexToCompleteRow(v);if(this.grid){var e=v%this._itemsPerRow;e&&v-e<=this._physicalCount&&(v+=this._itemsPerRow);v-=e}v-=this._physicalCount;e=Math.round(this._physicalCount*.5);if(!(v<0)){if(v>0){e=window.performance.now();[].push.apply(this._physicalItems,this._createPool(v));for(var d=0;d<v;d++)this._physicalSizes.push(0);this._physicalCount+=v;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=v);this._update();this._templateCost=(window.performance.now()-e)/v;e=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||e===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,e)),uq7):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,e),Xk))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var v=this._getReusables(!0);this._physicalTop=v.physicalTop;this._virtualStart+=v.indexes.length;this._physicalStart+=v.indexes.length;this._update(v.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 v={__key__:!0};v[this.as]=!0;v[this.indexAs]=!0;v[this.selectedAs]=!0;v.tabIndex=!0;this._instanceProps=v;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(v,e){typeof e!=="undefined"&&(this.notifyResize(),_.IA(),v&&this._updateGridMetrics())},
_itemsChanged:function(v){if(v.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,
_.tg);else if(v.path==="items.splices"){this._adjustVirtualIndex(v.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(v.value.indexSplices.some(function(d){return d.addedCount>0||d.removed.length>0})){var e=this._getActiveElement();
this.contains(e)&&e.blur()}v=v.value.indexSplices.some(function(d){return d.index+d.addedCount>=this._virtualStart&&d.index<=this._virtualEnd},this);
this._isClientFull()&&!v||this._debounce("_render",this._render,_.tg)}else v.path!=="items.length"&&this._forwardItemPath(v.path,v.value)},
_forwardItemPath:function(v,e){v=v.slice(6);var d=v.indexOf(".");d===-1&&(d=v.length);var E,T=this.modelForElement(this._offscreenFocusedItem),S=parseInt(v.substring(0,d),10);if(E=this._isIndexRendered(S)){var O=this._getPhysicalIndex(S);var b=this.modelForElement(this._physicalItems[O])}else T&&(b=T);b&&b[this.indexAs]===S&&(v=v.substring(d+1),v=this.as+(v?"."+v:""),b._setPendingPropertyOrPath(v,e,!1,!0),b._flushProperties&&b._flushProperties(),E&&(this._updateMetrics([O]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(v){v.forEach(function(e){e.removed.forEach(this._removeItem,this);e.index<this._virtualStart&&(e=Math.max(e.addedCount-e.removed.length,e.index-this._virtualStart),this._virtualStart+=e,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=e))},this)},
_removeItem:function(v){this.$.selector.deselect(v);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===v&&this._removeFocusedItem()},
_iterateItems:function(v,e){var d,E;if(arguments.length===2&&e)for(E=0;E<e.length;E++){var T=e[E];var S=this._computeVidx(T);if((d=v.call(this,T,S))!=null)return d}else{T=this._physicalStart;for(S=this._virtualStart;T<this._physicalCount;T++,S++)if((d=v.call(this,T,S))!=null)return d;for(T=0;T<this._physicalStart;T++,S++)if((d=v.call(this,T,S))!=null)return d}},
_computeVidx:function(v){return v>=this._physicalStart?this._virtualStart+(v-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+v},
_assignModels:function(v){this._iterateItems(function(e,d){var E=this._physicalItems[e],T=this.items&&this.items[d];if(T!=null){var S=this.modelForElement(E);S.__key__=null;this._forwardProperty(S,this.as,T);this._forwardProperty(S,this.selectedAs,this.$.selector.isSelected(T));this._forwardProperty(S,this.indexAs,d);this._forwardProperty(S,"tabIndex",this._focusedVirtualIndex===d?0:-1);this._physicalIndexForKey[S.__key__]=e;S._flushProperties&&S._flushProperties(!0);E.removeAttribute("hidden")}else E.setAttribute("hidden",
"")},v)},
_updateMetrics:function(v){_.IA();var e=0,d=0,E=this._physicalAverageCount,T=this._physicalAverage;this._iterateItems(function(S){d+=this._physicalSizes[S];this._physicalSizes[S]=this._physicalItems[S].offsetHeight;e+=this._physicalSizes[S];this._physicalAverageCount+=this._physicalSizes[S]?1:0},v);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(d=this._itemsPerRow===1?d:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+e-d,this._itemsPerRow=1);this._physicalAverageCount!==E&&(this._physicalAverage=Math.round((T*E+e)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var v=this._physicalTop;if(this.grid){var e=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(d,E){var T=Math.floor(E%this._itemsPerRow*this._itemWidth+e);this._isRTL&&(T*=-1);this.translate3d(T+"px",v+"px",0,this._physicalItems[d]);this._shouldRenderNextRow(E)&&(v+=this._rowHeight)})}else this._iterateItems(function(d){this.translate3d(0,v+"px",0,this._physicalItems[d]);
v+=this._physicalSizes[d]})},
_getPhysicalSizeIncrement:function(v){return this.grid?this._computeVidx(v)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[v]},
_shouldRenderNextRow:function(v){return v%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var v=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(v!==0){this._physicalTop=this._physicalTop-v;var e=this._scrollPosition;!v5i&&e>0&&this._resetScrollPosition(e-v)}},
_resetScrollPosition:function(v){this.scrollTarget&&v>=0&&(this._scrollPosition=this._scrollTop=v)},
_updateScrollerSize:function(v){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((v=(v=(v=v||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(v){return this.scrollToIndex(this.items.indexOf(v))},
scrollToIndex:function(v){if(!(typeof v!=="number"||v<0||v>this.items.length-1)&&(_.IA(),this._physicalCount!==0)){v=this._clamp(v,0,this._virtualCount-1);if(!this._isIndexRendered(v)||v>=this._maxVirtualStart)this._virtualStart=this.grid?v-this._itemsPerRow*2:v-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var e=this._physicalStart,d=this._virtualStart,E=0,T=this._hiddenContentSize;d<v&&
E<=T;)E+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,d++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+E);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)},_.tg)},
selectItem:function(v){return this.selectIndex(this.items.indexOf(v))},
selectIndex:function(v){if(!(v<0||v>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(v)){var e=this.modelForElement(this._physicalItems[this._getPhysicalIndex(v)]);e&&(e[this.selectedAs]=!0);this.updateSizeForIndex(v)}this.$.selector.selectIndex(v)}},
deselectItem:function(v){return this.deselectIndex(this.items.indexOf(v))},
deselectIndex:function(v){v<0||v>=this._virtualCount||(this._isIndexRendered(v)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(v)])[this.selectedAs]=!1,this.updateSizeForIndex(v)),this.$.selector.deselectIndex(v))},
toggleSelectionForItem:function(v){return this.toggleSelectionForIndex(this.items.indexOf(v))},
toggleSelectionForIndex:function(v){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(v):this.$.selector.isSelected(this.items[v]))?this.deselectIndex(v):this.selectIndex(v)},
clearSelection:function(){this._iterateItems(function(v){this.modelForElement(this._physicalItems[v])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(v){(v?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(v){var e=this.modelForElement(v.target);if(e){var d=_.tW(v).path[0];v=this._getActiveElement();var E=this._physicalItems[this._getPhysicalIndex(e[this.indexAs])];if(d.localName!=="input"&&d.localName!=="button"&&d.localName!=="select"){d=e.tabIndex;e.tabIndex=-100;var T=v?v.tabIndex:-1;e.tabIndex=d;v&&E!==v&&E.contains(v)&&T!==-100||this.toggleSelectionForItem(e[this.as])}}},
_multiSelectionChanged:function(v){this.clearSelection();this.$.selector.multi=v},
updateSizeForItem:function(v){return this.updateSizeForIndex(this.items.indexOf(v))},
updateSizeForIndex:function(v){if(!this._isIndexRendered(v))return null;this._updateMetrics([this._getPhysicalIndex(v)]);this._positionItems();return null},
_manageFocus:function(){var v=this._focusedVirtualIndex;v>=0&&v<this._virtualCount?this._isIndexRendered(v)?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(v){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(v/this._itemsPerRow)*this._itemsPerRow:v},
_isIndexRendered:function(v){return v>=this._virtualStart&&v<=this._virtualEnd},
_isIndexVisible:function(v){return v>=this.firstVisibleIndex&&v<=this.lastVisibleIndex},
_getPhysicalIndex:function(v){return(this._physicalStart+(v-this._virtualStart))%this._physicalCount},
focusItem:function(v){this._focusPhysicalItem(v)},
_focusPhysicalItem:function(v){if(!(v<0||v>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(v)||this.scrollToIndex(v);var e=this._physicalItems[this._getPhysicalIndex(v)],d=this.modelForElement(e),E;d.tabIndex=-100;e.tabIndex===-100&&(E=e);E||(E=_.tW(e).querySelector('[tabindex="-100"]'));d.tabIndex=0;this._focusedVirtualIndex=v;E&&E.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 v=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var e=this.stamp(null);this._focusBackfillItem=e.root.querySelector("*");this._itemsParent.appendChild(e.root)}this._offscreenFocusedItem=this._physicalItems[v];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[v]=this._focusBackfillItem;this._focusedPhysicalIndex=v;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var v=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),e=this._physicalItems[v];if(e){var d=this.modelForElement(e),E=this.modelForElement(this._offscreenFocusedItem);d[this.as]===E[this.as]?(this._focusBackfillItem=e,d.tabIndex=-1,this._physicalItems[v]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(v){v=this.modelForElement(v.target);var e=this.modelForElement(this._focusedItem),d=this._offscreenFocusedItem!==null,E=this._focusedVirtualIndex;v&&(e===v?this._isIndexVisible(E)||this.scrollToIndex(E):(this._restoreFocusedItem(),e&&(e.tabIndex=-1),v.tabIndex=0,this._focusedVirtualIndex=E=v[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(E),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],d&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(v){switch(v.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&v.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&&v.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(v)}},
_clamp:function(v,e,d){return Math.min(d,Math.max(e,v))},
_debounce:function(v,e,d){this._debouncers=this._debouncers||{};this._debouncers[v]=_.Sr(this._debouncers[v],d,e.bind(this));_.WX(this._debouncers[v])},
_forwardProperty:function(v,e,d){v._setPendingProperty(e,d)},
_forwardHostPropV2:function(v,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(d){d&&this.modelForElement(d).forwardHostProp(v,e)},this)},
_notifyInstancePropV2:function(v,e,d){U03(this.as,e)&&(v=v[this.indexAs],e==this.as&&(this.items[v]=d),this.notifyPath(yF(this.as,"items."+v,e),d))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(v,e,d){e.indexOf(this.as+".")===0&&this.notifyPath("items."+v.__key__+"."+e.slice(this.as.length+1),d)},
_forwardParentPath:function(v,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(d){d&&this.modelForElement(d).notifyPath(v,e)},this)},
_forwardParentProp:function(v,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(d){d&&(this.modelForElement(d)[v]=e)},this)},
_getActiveElement:function(){var v=this._itemsParent.node.domHost;return _.tW(v?v.root:document).activeElement},
_scrollTargetChanged:function(v,e){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(e)if(v==="document")this.scrollTarget=this._doc;else if(typeof v==="string"){var d,E;this.scrollTarget=(e=(E=(d=this.domHost)==null?void 0:d.polymerController)!=null?E:this.domHost)&&e.$?e.$[v]:_.tW(this.ownerDocument).querySelector("#"+v)}else this._isValidScrollTarget()&&(this._oldScrollTarget=v,this._toggleScrollListener(this._shouldHaveListener,v))}});var eo0;var d3B;var E5A=function(v,e,d,E){v-=d;e-=E;return Math.sqrt(v*v+e*e)},TQu=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
FW3.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Q9O=function(v){v.maxRadius=0;v.mouseDownStart=0;v.mouseUpStart=0;v.xStart=0;v.yStart=0;v.xEnd=0;v.yEnd=0;v.containerMetrics=new FW3(v.element)};
gTU.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var v=TQu()-this.mouseDownStart;this.mouseUpStart&&(v-=this.mouseUpElapsed);return v},get mouseUpElapsed(){return this.mouseUpStart?TQu()-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 v=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(v*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-v/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var v=this.radius/(this.containerMetrics.size/2);var e=this.xNow-this.containerMetrics.width/2;var d=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+e+"px, "+d+"px)";this.waveContainer.style.transform="translate3d("+e+"px, "+d+"px, 0)";this.wave.style.webkitTransform="scale("+v+","+v+")";this.wave.style.transform="scale3d("+v+","+v+",1)"},
downAction:function(v){var e=this.containerMetrics.width/2,d=this.containerMetrics.height/2;Q9O(this);this.mouseDownStart=TQu();this.center?(this.xStart=e,this.yStart=d):(this.xStart=v?v.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=v?v.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=e,this.yEnd=d);v=this.containerMetrics;e=this.xStart;d=this.yStart;this.maxRadius=Math.max(E5A(e,d,0,0),E5A(e,d,
v.width,0),E5A(e,d,0,v.height),E5A(e,d,v.width,v.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=TQu())},
remove:function(){_.tW(_.tW(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.xv({_template:function(){if(d3B!==void 0)return d3B;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;eo0===void 0&&(eo0=document.createElement("template"));var E=eo0;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return d3B=v},
is:"tp-yt-paper-ripple",behaviors:[_.K$],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(){_.tW(this).parentNode.nodeType==11?this.keyEventTarget=_.tW(this).getOwnerRoot().host:this.keyEventTarget=_.tW(this).parentNode;var v=this.keyEventTarget;this.listen(v,"up","uiUpAction");this.listen(v,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(v){v.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var v=0;v<this.ripples.length;++v)if(!this.ripples[v].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(v){this.noink||this.downAction(v)},
downAction:function(v){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(v),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(v){this.noink||this.upAction(v)},
upAction:function(v){this.holdDown||(this.ripples.forEach(function(e){e.upAction(v)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var v=0;v<this.ripples.length;++v){var e=this.ripples[v];e.isOpacityFullyDecayed&&!e.isRestingAtMaxRadius&&this.removeRipple(e)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var v=new gTU(this);_.tW(this.$.waves).appendChild(v.waveContainer);this.$.background.style.backgroundColor=v.color;this.ripples.push(v);this._setAnimating(!0);return v},
removeRipple:function(v){var e=this.ripples.indexOf(v);e<0||(this.ripples.splice(e,1),v.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var v;for(v=0;v<this.ripples.length;++v){var e=this.ripples[v];e.draw();this.$.background.style.opacity=e.outerOpacity;e.isOpacityFullyDecayed&&!e.isRestingAtMaxRadius&&this.removeRipple(e)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(v,e){e!==void 0&&(v?this.downAction():this.upAction())}});var Ze={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(v){j$._downHandler.call(this,v);this.pressed&&this.ensureRipple(v)},
ensureRipple:function(v){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var e=this._rippleContainer||this.root;e&&_.tW(e).appendChild(this._ripple);if(v){e=_.tW(this._rippleContainer||this);var d=_.tW(v).rootTarget;e.deepContains(d)&&this._ripple.uiDownAction(v)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(v){this.hasRipple()&&(this._ripple.noink=v)}};var Sk7={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 v=1;this.disabled?v=0:this.active||this.pressed?v=4:this.receivedFocusFromKeyboard&&(v=3);this._setElevation(v)},
_computeKeyboardClass:function(v){this.toggleClass("keyboard-focus",v)},
_spaceKeyDownHandler:function(v){j$._spaceKeyDownHandler.call(this,v);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(v){j$._spaceKeyUpHandler.call(this,v);this.hasRipple()&&this._ripple.uiUpAction()}},WXJ=[mPI,
_.$l,Ze,Sk7];_.a9n={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(v){v&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=v)},
_createRipple:function(){var v=Ze._createRipple();v.id="ink";v.setAttribute("center","");v.classList.add("circle");return v}};
_.iO0=[mPI,_.$l,Ze,_.a9n];_.OO7=[_.iO0,rXE,{_checkedChanged:function(){qK6._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){Ze._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var I9I;var bOE;var Ykg=function(){};
_.W=Ykg.prototype;_.W.registered=function(){};
_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W._tapHandler=function(){};
_.W._focusChanged=function(){};
_.W._detectKeyboardFocus=function(){};
_.W._userActivate=function(){};
_.W._upHandler=function(){};
_.W._asyncClick=function(){};
_.W._pressedChanged=function(){};
_.W._ariaActiveAttributeChanged=function(){};
_.W._activeChanged=function(){};
_.W._controlStateChanged=function(){};
_.W._changedButtonState=function(){};
_.W._focusBlurHandler=function(){};
_.W._disabledChanged=function(){};
_.W._changedControlState=function(){};
_.W._buttonStateChanged=function(){};
_.W._downHandler=function(){};
_.W.ensureRipple=function(){};
_.W.getRipple=function(){};
_.W.hasRipple=function(){};
_.W._createRipple=function(){};
_.W._noinkChanged=function(){};
_.W._computeKeyboardClass=function(){};
_.W._spaceKeyDownHandler=function(){};
_.W._spaceKeyUpHandler=function(){};
_.W._setPressed=function(){};
_.W._setPointerDown=function(){};
_.W._setReceivedFocusFromKeyboard=function(){};
_.W._setFocused=function(){};
_.W._setElevation=function(){};
Ykg=_.xv({_template:function(){if(bOE!==void 0)return bOE;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
var e=v.content,d=e.insertBefore;I9I===void 0&&(I9I=document.createElement("template"));var E=I9I;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return bOE=v},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[WXJ],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Sk7._calculateElevation.apply(this):this._setElevation(0)}});var m36;var yR0;var qkn={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(v){_.N("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(v)},
_onDialogClickWrapped:function(v){_.N("dialog_behavior_no_tap_killswitch")||this._onDialogClick(v)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(v,e){e&&(v?(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(v){if(v){var e;((e=this.hostElement)!=null?e:this).setAttribute("aria-modal","true")}else{var d;((d=this.hostElement)!=null?d:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(v){this.closingReason=this.closingReason||{};this.closingReason.confirmed=v},
_onDialogClick:function(v){for(var e=_.tW(v).path,d=0,E,T=e.indexOf((E=this.hostElement)!=null?E:this);d<T;d++)if(E=e[d],E.hasAttribute&&(E.hasAttribute("dialog-dismiss")||E.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(E.hasAttribute("dialog-confirm"));this.close();v.stopPropagation();break}}},rRe=[_.A9,
qkn];var ho2=document.createElement("template");_.G(ho2,'<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(ho2.content);var KXc=document.createElement("template");_.G(KXc,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(KXc.content);_.xv({_template:function(){if(yR0!==void 0)return yR0;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
var e=v.content,d=e.insertBefore;m36===void 0&&(m36=document.createElement("template"));var E=m36;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return yR0=v},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[rRe,VKn],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 $3M;var ja0;_.xv({_template:function(){if(ja0!==void 0)return ja0;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;$3M===void 0&&($3M=document.createElement("template"));var E=$3M;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return ja0=v},
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 v,e,d;if(((v=window.ShadyDOM)==null?void 0:v.noPatch)!==!0&&((e=window.ShadyDOM)==null?void 0:e.noPatch)!=="on-demand"||((d=this.__shady_parentNode)==null?void 0:d.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(qkn)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var sae=_.Z9(['<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>']),NQe=_.KUE(sae);NQe.setAttribute("style","display: none;");document.head.appendChild(NQe.content);var kpi;var LXn;var Vd7;var o56;_.xv({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[GB],configure:function(v){var e=v.node,d=e.getBoundingClientRect().height;return this._effect=new KeyframeEffect(e,[{height:d/2+"px"},{height:d+"px"}],this.timingFromConfig(v))}});
_.xv({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[GB],configure:function(v){var e=v.node,d=e.getBoundingClientRect().width;return this._effect=new KeyframeEffect(e,[{width:d/2+"px"},{width:d+"px"}],this.timingFromConfig(v))}});
_.xv({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[GB],configure:function(v){var e=v.node,d=e.getBoundingClientRect().width;return this._effect=new KeyframeEffect(e,[{width:d+"px"},{width:d-d/20+"px"}],this.timingFromConfig(v))}});
_.xv({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[GB],configure:function(v){var e=v.node,d=e.getBoundingClientRect().height;this.setPrefixedProperty(e,"transformOrigin","0 0");return this._effect=new KeyframeEffect(e,[{height:d+"px",transform:"translateY(0)"},{height:d/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(v))}});var cA={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},JR0=function(){};
_.W=JR0.prototype;_.W.registered=function(){};
_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W._focusBlurHandler=function(){};
_.W._changedControlState=function(){};
_.W._setFocused=function(){};
JR0=_.xv({_template:function(){if(o56!==void 0)return o56;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Vd7===void 0&&(Vd7=document.createElement("template"));var E=Vd7;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return o56=v},
is:"tp-yt-paper-menu-button",behaviors:[_.K$,_.$l],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:cA.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:cA.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:cA.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 v=_.tW(this.$.content).getDistributedNodes(),e=0,d=v.length;e<d;e++)if(v[e].nodeType===Node.ELEMENT_NODE)return v[e]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(v,e){v?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):e!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(v){_.$l._disabledChanged.apply(this,arguments);v&&this.opened&&this.close()},
__onIronOverlayCanceled:function(v){var e=this.$.trigger;_.tW(v.detail).path.indexOf(e)>-1&&v.preventDefault()}});
Object.keys(cA).forEach(function(v){JR0[v]=cA[v]});var Gp2=_.sQ.IronButtonState,MdB=(0,_.$Z)(HTMLElement);
_.xv({_template:function(){if(LXn!==void 0)return LXn;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;kpi===void 0&&(kpi=document.createElement("template"));var E=kpi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return LXn=v},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Gp2,_.$l,Ze,_.NS,_.VO],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(v){var e=(0,_.$k)(this);e.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:v});e.shadowRoot.appendChild(v);return MdB.prototype._attachDom.call(this,v)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var v=this.contentElement;v&&v.selectedItem&&this._setSelectedItem(v.selectedItem)},
get contentElement(){for(var v=_.tW(this.$.content).getDistributedNodes(),e=0,d=v.length;e<d;e++)if(v[e].nodeType===Node.ELEMENT_NODE)return v[e]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(v){this._setSelectedItem(v.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(v){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v)===this&&this.open()},
_selectedItemChanged:function(v){var e="";v?e=v.label||v.getAttribute("label")||v.textContent.trim():e="";this.value=e;this._setSelectedItemLabel(e)},
_computeMenuVerticalOffset:function(v,e){return e?e:v?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var v=this.opened?"true":"false",e=this.contentElement;e&&e.setAttribute("aria-expanded",v)},
_computeLabelClass:function(v,e,d){var E="label";if(v)d&&(E+=" label-is-hidden");else if(d||e)E+=" label-is-floating";return E},
_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 tdB;var f9e;_.xv({is:"tp-yt-paper-icon-button",_template:function(){if(f9e!==void 0)return f9e;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;tdB===void 0&&(tdB=document.createElement("template"));var E=tdB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return f9e=v},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.iO0],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(v,e){var d=this.getAttribute("aria-label");d&&e!=d||this.setAttribute("aria-label",v)}});var Rog;var Pzg;_.ws=[mPI,_.$l,{hostAttributes:{role:"option",tabindex:"0"}}];_.xv({_template:function(){if(Pzg!==void 0)return Pzg;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Rog===void 0&&(Rog=document.createElement("template"));var E=Rog;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return Pzg=v},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.ws]});var x32;var BQ6;var Czc={attached:function(){this.fire("addon-attached")},
update:function(){}};var X07=1,zoA=1,l9i=1,HOn=[_.$l,_.K$,{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();!Us&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(v,e){v?v=v+" "+e:v=e;return v},
_onAddonAttached:function(v){v=_.tW(v).rootTarget;if(v.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,v.id);else{var e="paper-input-add-on-"+zoA++;v.id=e;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,e)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(v){_.$l._focusBlurHandler.call(this,v);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var v=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",v);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(v){try{var e=this.inputElement.selectionStart;this.value=v;this.inputElement.selectionStart=e;this.inputElement.selectionEnd=e}catch(d){this.value=v}},
_computeAlwaysFloatLabel:function(v,e){return e||v},
_updateAriaLabelledBy:function(){var v=_.tW(this.root).querySelector("label");if(v){if(v.id)var e=v.id;else e="paper-input-label-"+X07++,v.id=e;this._ariaLabelledBy=e}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+l9i++)},
_onChange:function(v){this.shadowRoot&&this.fire(v.type,{sourceEvent:v},{node:this,bubbles:v.bubbles,cancelable:v.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var v=document.activeElement;v instanceof HTMLElement&&v!==document.body&&v!==document.documentElement||this._focusableElement.focus()}}}];var ARu;var ZO0;_.xv({_template:function(){if(ZO0!==void 0)return ZO0;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;ARu===void 0&&(ARu=document.createElement("template"));var E=ARu;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return ZO0=v},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Czc],properties:{_charCounterStr:{type:String,value:"0"}},update:function(v){if(v.inputElement){v.value=v.value||"";var e=v.value.toString().length.toString();v.inputElement.hasAttribute("maxlength")&&(e+="/"+v.inputElement.getAttribute("maxlength"));this._charCounterStr=e}}});var cR2;var w02;_.xv({_template:function(){if(w02!==void 0)return w02;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;cR2===void 0&&(cR2=document.createElement("template"));var E=cR2;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return w02=v},
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 Oh(this.attrForValue)},get _inputElement(){return _.tW(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(v){this._addons||(this._addons=[]);v=v.target;this._addons.indexOf(v)===-1&&(this._addons.push(v),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(v){this._handleValueAndAutoValidate(v.target)},
_onValueChanged:function(v){var e=v.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,e.value===void 0||e.value===""))return;this._handleValueAndAutoValidate(v.target)},
_handleValue:function(v){var e=this._inputElementValue;e||e===0||v.type==="number"&&!v.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:v,value:e,invalid:this.invalid})},
_handleValueAndAutoValidate:function(v){this.autoValidate&&v&&(this.invalid=!(v.validate?v.validate(this._inputElementValue):v.checkValidity()));this._handleValue(v)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(v){if(this._addons)for(var e,d=0;e=this._addons[d];d++)e.update(v)},
_computeInputContentClass:function(v,e,d,E,T){var S="input-content";v?(T&&(S+=" label-is-hidden"),E&&!this.noUnfloatedLabelError&&(S+=" is-invalid")):(v=this.querySelector("label"),e||T?(S+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",E?S+=" is-invalid":d&&(S+=" label-is-highlighted")):(v&&(this.$.labelAndInputContainer.style.position="relative"),E&&!this.noUnfloatedLabelError&&(S+=" is-invalid")));d&&(S+=" focused");return S},
_computeUnderlineClass:function(v,e){var d="underline";e?d+=" is-invalid":v&&(d+=" is-highlighted");return d},
_computeAddOnContentClass:function(v,e){var d="add-on-content";e?d+=" is-invalid":v&&(d+=" is-highlighted");return d}});var FXI;var QaM;_.xv({_template:function(){if(QaM!==void 0)return QaM;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;FXI===void 0&&(FXI=document.createElement("template"));var E=FXI;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return QaM=v},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Czc],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(v){this._setInvalid(v.invalid)}});_.xv({is:"tp-yt-paper-input",_template:function(){if(BQ6!==void 0)return BQ6;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;x32===void 0&&(x32=document.createElement("template"));var E=x32;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return BQ6=v},
behaviors:[HOn,_.NS],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 g5J;var uA7;_.xv({_template:function(){if(uA7!==void 0)return uA7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=
v.content,d=e.insertBefore;g5J===void 0&&(g5J=document.createElement("template"));var E=g5J;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return uA7=v},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.ws]});var n5B;var D30;_.xv({_template:function(){if(D30!==void 0)return D30;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
var e=v.content,d=e.insertBefore;n5B===void 0&&(n5B=document.createElement("template"));var E=n5B;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return D30=v},
is:"tp-yt-paper-item-body"});var U37;var p02;var vuu=function(){};
_.W=vuu.prototype;_.W.indexOf=function(){};
_.W.selectPrevious=function(){};
_.W.selectNext=function(){};
_.W.selectIndex=function(){};
_.W.forceSynchronousItemUpdate=function(){};
_.W._checkFallback=function(){};
_.W._addListener=function(){};
_.W._removeListener=function(){};
_.W._activateEventChanged=function(){};
_.W._updateItems=function(){};
_.W._selectSelected=function(){};
_.W._filterItem=function(){};
_.W._valueToItem=function(){};
_.W._valueToIndex=function(){};
_.W._indexToValue=function(){};
_.W._valueForItem=function(){};
_.W._observeItems=function(){};
_.W._itemActivate=function(){};
_.W.multiChanged=function(){};
_.W._updateAttrForSelected=function(){};
_.W._updateSelected=function(){};
_.W._selectMulti=function(){};
_.W._selectionChange=function(){};
_.W._toggleSelected=function(){};
_.W._valuesToItems=function(){};
_.W.registered=function(){};
_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W.select=function(){};
_.W._resetTabindices=function(){};
_.W._updateMultiselectable=function(){};
_.W._focusWithKeyboardEvent=function(){};
_.W._clearSearchText=function(){};
_.W._focusPrevious=function(){};
_.W._focusNext=function(){};
_.W._applySelection=function(){};
_.W._focusedItemChanged=function(){};
_.W._onIronItemsChanged=function(){};
_.W._onShiftTabDown=function(){};
_.W._onFocus=function(){};
_.W._onUpKey=function(){};
_.W._onDownKey=function(){};
_.W._onEscKey=function(){};
_.W._onKeydown=function(){};
_.W._activateHandler=function(){};
_.W._disabledChanged=function(){};
_.W._setSelectedItem=function(){};
_.W._setItems=function(){};
_.W._setSelectedItems=function(){};
_.W._setFocusedItem=function(){};
vuu=_.xv({_template:function(){if(p02!==void 0)return p02;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
var e=v.content,d=e.insertBefore;U37===void 0&&(U37=document.createElement("template"));var E=U37;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return p02=v},
is:"tp-yt-paper-listbox",behaviors:[j7B],hostAttributes:{role:"listbox"}});var ePi;var dTM;var Eu7={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(v,e){return[v||e?"active":"",e?"cooldown":""].join(" ")},
__activeChanged:function(v,e){this.__setAriaHidden(!v);this.__coolingDown=!v&&e},
__altChanged:function(v){this.setAttribute("aria-label",v||"loading")},
__setAriaHidden:function(v){v?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.xv({_template:function(){if(dTM!==void 0)return dTM;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;ePi===void 0&&(ePi=document.createElement("template"));var E=ePi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return dTM=v},
is:"tp-yt-paper-spinner",behaviors:[Eu7]});var TNE;var SUE;_.xv({_template:function(){if(SUE!==void 0)return SUE;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;TNE===void 0&&(TNE=document.createElement("template"));var E=TNE;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return SUE=v},
is:"tp-yt-paper-spinner-lite",behaviors:[Eu7]});var WLn;var akn;_.xv({_template:function(){if(akn!==void 0)return akn;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;WLn===void 0&&(WLn=document.createElement("template"));var E=WLn;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return akn=v},
is:"tp-yt-paper-tab",behaviors:[_.$l,_.sQ.IronButtonState,Ze],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 v=_.tW(this).parentNode;return!!v&&!!v.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(v){if(this.link){var e=this.queryEffectiveChildren("a");e&&v.target!==e&&e.click()}}});var ipn;var Opi;var IkI=_.Z9(['<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>']),bpu=_.KUE(IkI);document.head.appendChild(bpu.content);_.xv({_template:function(){if(Opi!==void 0)return Opi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;ipn===void 0&&(ipn=document.createElement("template"));var E=ipn;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return Opi=v},
is:"tp-yt-paper-tabs",behaviors:[_.J9,_.NBJ],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(v){_.tW(this).querySelectorAll("tp-yt-paper-tab").forEach(v?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(v){v.setAttribute("noink","")},
_removeNoinkAttribute:function(v){v.removeAttribute("noink")},
_computeScrollButtonClass:function(v,e,d,E){return!e||d?"hidden":v?E?"hidden":"not-visible":""},
_computeTabsContentClass:function(v,e){var d="tabs-content";v&&(d+=" scrollable");if(!v||e)d+=" fit-container";return d},
_computeSelectionBarClass:function(v,e){var d="selection-bar";v?d+=" hidden":e&&(d+=" align-bottom");return d},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(v){return""+v},
_onIronSelect:function(v){this._tabChanged(v.detail.item,this._previousTab);this._previousTab=v.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();_.ox._activateHandler.apply(this,arguments)},
_scheduleActivation:function(v,e){this._pendingActivationItem=v;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,e)},
_delayedActivationHandler:function(){var v=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;v.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(v){v.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(v,e){this.scrollable&&this._affectScroll(e&&-e.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(v){this.$.tabsContainer.scrollLeft+=v;v=this.$.tabsContainer.scrollLeft;this._leftHidden=v===0||this.hideScrollButtons;this._rightHidden=v===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(v,e){if(v){var d=this.$.tabsContent.getBoundingClientRect(),E=d.width,T=v.getBoundingClientRect();d=T.left-d.left;this._pos={width:this._calcPercent(T.width,E),left:this._calcPercent(d,E)};if(this.noSlide||e==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var S=e.getBoundingClientRect();e=this.items.indexOf(e);v=this.items.indexOf(v);this.$.selectionBar.classList.add("expand");
v=e<v;this._isRTL&&(v=!v);v?this._positionBar(this._calcPercent(T.left+T.width-S.left,E)-5,this._left):this._positionBar(this._calcPercent(S.left+S.width-T.left,E)-5,this._calcPercent(d,E)+5);this.scrollable&&this._scrollToSelectedIfNeeded(T.width,d)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(v,e){e-=this.$.tabsContainer.scrollLeft;e<0?this.$.tabsContainer.scrollLeft+=e:(e+=v-this.$.tabsContainer.offsetWidth,e>0&&(this.$.tabsContainer.scrollLeft+=e))},
_calcPercent:function(v,e){return 100*v/e},
_positionBar:function(v,e){v=v||0;e=e||0;this._width=v;this._left=e;this.transform("translateX("+e+"%) scaleX("+v/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var v=this.$.selectionBar.classList;v.contains("expand")?(v.remove("expand"),v.add("contract"),this._positionBar(this._pos.width,this._pos.left)):v.contains("contract")&&v.remove("contract")}});var YUB;var mTE;_.xv({_template:function(){if(mTE!==void 0)return mTE;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;YUB===void 0&&(YUB=document.createElement("template"));var E=YUB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return mTE=v},
is:"tp-yt-paper-textarea",behaviors:[HOn,_.NS],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(v){this.$.input.textarea.selectionStart=v},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(v){this.$.input.textarea.selectionEnd=v},_ariaLabelledByChanged:function(v){this._focusableElement.setAttribute("aria-labelledby",v)},
_ariaDescribedByChanged:function(v){this._focusableElement.setAttribute("aria-describedby",v)},
get _focusableElement(){return this.inputElement.textarea}});var ynn;var qUM;/*

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 rn6=function(){};
_.W=rn6.prototype;_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W._tapHandler=function(){};
_.W._focusChanged=function(){};
_.W._detectKeyboardFocus=function(){};
_.W._userActivate=function(){};
_.W._upHandler=function(){};
_.W._spaceKeyDownHandler=function(){};
_.W._spaceKeyUpHandler=function(){};
_.W._asyncClick=function(){};
_.W._pressedChanged=function(){};
_.W._ariaActiveAttributeChanged=function(){};
_.W._activeChanged=function(){};
_.W._controlStateChanged=function(){};
_.W._changedButtonState=function(){};
_.W._focusBlurHandler=function(){};
_.W._disabledChanged=function(){};
_.W._changedControlState=function(){};
_.W._downHandler=function(){};
_.W.ensureRipple=function(){};
_.W.getRipple=function(){};
_.W.hasRipple=function(){};
_.W._noinkChanged=function(){};
_.W._focusedChanged=function(){};
_.W.registered=function(){};
_.W._invalidChanged=function(){};
_.W.hasValidator=function(){};
_.W.validate=function(){};
_.W._getValidity=function(){};
_.W._requiredChanged=function(){};
_.W._valueChanged=function(){};
_.W._checkedChanged=function(){};
_.W._buttonStateChanged=function(){};
_.W._setPressed=function(){};
_.W._setPointerDown=function(){};
_.W._setReceivedFocusFromKeyboard=function(){};
_.W._setFocused=function(){};
rn6=_.xv({is:"tp-yt-paper-toggle-button",_template:function(){if(qUM!==void 0)return qUM;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;ynn===void 0&&(ynn=document.createElement("template"));var E=ynn;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return qUM=v},
behaviors:[_.OO7],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");_.Uh(this,function(){_.Ck(this,"pan-y")})},
_ontrack:function(v){v=v.detail;v.state==="start"?this._trackStart(v):v.state==="track"?this._trackMove(v):v.state==="end"&&this._trackEnd(v)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(v){v=v.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+v:v)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+v:v));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 v=Ze._createRipple();v.id="ink";v.setAttribute("recenters","");v.classList.add("circle","toggle-ink");return v}});var hPB;var KLc;_.xv({_template:function(){if(KLc!==void 0)return KLc;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;hPB===void 0&&(hPB=document.createElement("template"));var E=hPB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return KLc=v},
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 v=_.tW(this).parentNode,e=_.tW(this).getOwnerRoot(),d;this.for?d=_.tW(e).querySelector("#"+this.for):d=v.nodeType==Node.DOCUMENT_FRAGMENT_NODE?e.host:v;return d},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(v){v==="entry"?this.show():v==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.tW(this).textContent.trim()===""){for(var v=!0,e=_.tW(this).getEffectiveChildNodes(),d=0;d<e.length;d++)if(e[d].textContent.trim()!==""){v=!1;break}if(v)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 v=this.offset;this.marginTop!=14&&this.offset==14&&(v=this.marginTop);var e=this.offsetParent.getBoundingClientRect(),d=this._target.getBoundingClientRect(),E=this.getBoundingClientRect(),T=(d.width-E.width)/2,S=(d.height-E.height)/2,O=d.left-e.left,b=d.top-e.top;switch(this.position){case "top":var Y=O+T;var q=b-E.height-v;break;case "bottom":Y=O+T;q=b+d.height+v;break;case "left":Y=O-E.width-v;q=b+S;break;case "right":Y=O+d.width+
v,q=b+S}this.fitToVisibleBounds?(e.left+Y+E.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,Y)+"px",this.style.right="auto"),e.top+q+E.height>window.innerHeight?(this.style.bottom=e.height+"px",this.style.top="auto"):(this.style.top=Math.max(-e.top,q)+"px",this.style.bottom="auto")):(this.style.left=Y+"px",this.style.top=q+"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(v){v!==500&&this.updateStyles({"--paper-tooltip-delay-in":v+"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(v){if(v==="entry"&&this.animationEntry!=="")return this.animationEntry;if(v==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[v]&&typeof this.animationConfig[v][0].name==="string"){if(this.animationConfig[v][0].timing&&this.animationConfig[v][0].timing.delay&&this.animationConfig[v][0].timing.delay!==0){var e=this.animationConfig[v][0].timing.delay;v==="entry"?this.updateStyles({"--paper-tooltip-delay-in":e+"ms"}):v==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":e+
"ms"})}return this.animationConfig[v][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 $T2=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V($T2,_.du);var jWg=_.b6($T2,[0,_.wN]);var FO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(FO,_.du);var sW2=[3,4],NN6=[5,6];var kw6=[0,sW2,NN6,_.SJc,-1,_.cM,_.WVn,-1,U27,pUj];var LLI=_.b6(FO,kw6),V1A=_.Ym(kw6);var ouI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(ouI,_.du);var Jng=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Jng,_.du);var GwA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(GwA,_.du);var M12=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(M12,_.du);var t1A=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(t1A,_.du);var QO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(QO,_.du);QO.prototype.getSource=function(){return _.oW(this,1)};
QO.prototype.getMessage=function(){return _.Vm(this,4)};
QO.prototype.getData=function(){return _.W8(this,t1A,8)};var fk6=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(fk6,_.du);var uy=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(uy,_.du);var n$=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(n$,_.du);var De=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(De,_.du);De.prototype.getUrl=function(){return _.Vm(this,1)};
De.prototype.setUrl=function(v){return _.L0(this,1,v)};
De.prototype.hasUrl=function(){return _.q1(_.mL(this,1))!=null};var RPe=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(RPe,_.du);var P1M=[3];var xTn=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(xTn,_.du);var UQ=function(v){var e=new xTn;return _.aM(e,2,v)};
xTn.prototype.getLanguage=function(){return Gw(this,4,p$)};
var BN2=function(v){var e=UQ(1);return _.$m(e,6,p$,v)},p$=[3,
4,5,6];var C1c=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(C1c,_.du);var vD=function(v){var e=new C1c;return _.aM(e,1,v)},e6=function(v,e){return _.$m(v,2,XMe,e)},XMe=[2,
3,4,5];var zPA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(zPA,_.du);var d$=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(d$,_.du);var lkI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(lkI,_.du);var Hpe=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Hpe,_.du);var AnB=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(AnB,_.du);var Zp7=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Zp7,_.du);var cnI=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(cnI,_.du);var EA=function(v){return _.W8(v,n$,5)};var wMg=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(wMg,_.du);wMg.prototype.getValue=function(){return ku(this,1)};var FLA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(FLA,_.du);var T1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(T1,_.du);T1.prototype.getMetadata=function(){return _.MT(this,AnB,7,S6)};
T1.prototype.hasMetadata=function(){return _.qT(this,AnB,7,S6)};
var QWu=_.X$S(T1),S6=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var WD=function(v){this.JSC$12002_name_=v;this.files_=[];this.directories_=[];this.directoryMap_={}};
WD.prototype.getName=function(){return this.JSC$12002_name_};var ix=function(v,e){this.callback_=e;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new WD("");guE(this,v,this.rootDirectory_);ai(this)},guE=function(v,e,d){for(var E=0;E<e.length;E++){var T=e[E];
T.isFile?(v.fileOps_++,T.file((0,_.LX)(v.handleFileSuccess_,v,d),(0,_.LX)(v.handleFileError_,v))):v.unscannedDirectories_.push(new uZ2(T,d))}},ai=function(v){if(v.unscannedDirectories_.length>0&&v.directoryOps_<5&&!v.hasError_){v.directoryOps_++;
var e=v.unscannedDirectories_.shift(),d=e.entry,E=new WD(d.name);e=e.parent;e.directoryMap_[E.getName()]=E;e.directories_.push(E);d=d.createReader();d.readEntries((0,_.LX)(v.handleDirectorySuccess_,v,d,E),(0,_.LX)(v.handleDirectoryError_,v))}v.directoryOps_!=0||v.fileOps_!=0||v.unscannedDirectories_.length!=0&&!v.hasError_||v.callback_(v.rootDirectory_.files_,v.rootDirectory_.directories_,v.hasError_)};
ix.prototype.handleDirectorySuccess_=function(v,e,d){guE(this,d,e);d.length==0?(this.directoryOps_--,ai(this)):v.readEntries((0,_.LX)(this.handleDirectorySuccess_,this,v,e),(0,_.LX)(this.handleDirectoryError_,this))};
ix.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;ai(this)};
ix.prototype.handleFileSuccess_=function(v,e){v.files_.push(e);this.fileOps_--;ai(this)};
ix.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;ai(this)};
var uZ2=function(v,e){this.entry=v;this.parent=e};var OA=function(v){_.r6.call(this);_.MC(v,"drop",this.onObjectsDropped_,!1,this);_.MC(v,"dragenter",this.onFilesDragged_,!1,this);_.MC(v,"dragover",this.onFilesDragged_,!1,this);_.MC(v,"dragleave",this.onDragLeave_,!1,this);_.MC(v,"dragend",this.onDragLeave_,!1,this)};
_.vM(OA,_.r6);var nu0=function(v,e){_.bI.call(this,"f");this.files=v;this.directories=e};
_.vM(nu0,_.bI);var DTI=function(){_.bI.call(this,"h")};
_.vM(DTI,_.bI);var UT6=function(){_.bI.call(this,"i")};
_.vM(UT6,_.bI);var pMM=function(){_.bI.call(this,"g")};
_.vM(pMM,_.bI);OA.prototype.onObjectsDropped_=function(v){var e=this;v.preventDefault();var d=v.event_.dataTransfer;if((v=d&&d.items)&&v.length>0&&v[0].webkitGetAsEntry){d=[];for(var E=[],T=0;T<v.length;T++){var S=v[T].webkitGetAsEntry();S?d.push(S):E.push(v[T])}new ix(d,function(O,b,Y){Y?e.dispatchEvent(new pMM("Error occurred while reading from the file system.")):e.dispatchEvent(new nu0(O,b,E))})}else(v=d&&d.files)&&this.dispatchEvent(new nu0(Array.from(v),[]))};
OA.prototype.onFilesDragged_=function(v){v.type==="dragenter"&&this.dispatchEvent(new DTI);v.preventDefault()};
OA.prototype.onDragLeave_=function(){this.dispatchEvent(new UT6)};var v00=function(v,e){this.JSC$12025_name_=v;this.inputElement_=e};
v00.prototype.getName=function(){return this.JSC$12025_name_};
v00.prototype.getInputElement=function(){return this.inputElement_};var Ii=function(v,e,d){e=e===void 0?"single_file":e;d=d===void 0?[]:d;_.r6.call(this);this.overlayTarget_=v;this.parentOverlay_=v!=null?v.parentNode:_.hz("scotty-overlay-parent");this.selectorType_=e;this.acceptTypes_=d;this.overlay_=e3n(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.V(Ii,_.r6);
var e3n=function(v,e,d,E){var T=document.createElement("input");T.setAttribute("type","file");T.setAttribute("name","Filedata");_.MC(T,"change",v.onFilesSelected_,!1,v);d==="multiple_file"&&(T.multiple="true");d==="single_directory"&&(T.webkitdirectory="true");E.length>0&&T.setAttribute("accept",E.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(v.overlayTarget_!=
null)return T.style.height=e.offsetHeight+"px",T.style.width=e.offsetWidth+"px",v.parentOverlay_&&(v.parentOverlay_.style.position="relative"),_.JZ(T,e),PB(T,new _.Pn(e.offsetLeft,e.offsetTop)),T;v.parentOverlay_.appendChild(T);return T};
Ii.prototype.click=function(){this.overlay_.click()};
Ii.prototype.onFilesSelected_=function(v){a:{try{var e=(new XMLHttpRequest).upload!==void 0;break a}catch(q){}e=!1}if(e){var d;v=Array.from((d=v.target.files)!=null?d:[]);d=[];if(this.selectorType_==="single_directory"&&(_.WM||DT||_.S1)){d=new WD("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(e=0;e<v.length;e++)for(var E=v[e],T=E.webkitRelativePath.split("/"),S=d,O=0;O<T.length;O++){var b=T[O];if(O==T.length-1){b!="."&&S.files_.push(E);break}var Y=S.directoryMap_[b];Y==void 0&&(b=
Y=new WD(b),S.directoryMap_[b.getName()]=b,S.directories_.push(b));S=Y}d=d.directories_}this.dispatchEvent(new dFB(v,d,null))}else v=v.target.value,v.match(/^c:\\fakepath\\/i)&&(v=v.substring(12)),this.dispatchEvent(new dFB([],[],new v00(v,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=e3n(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var dFB=function(v,e){_.bI.call(this,"j");this.files=v;this.directories=e};
_.V(dFB,_.bI);var E0J=function(v){this.uploadUrl_=v};var TIJ=function(){_.r6.call(this)};
_.vM(TIJ,_.r6);var bx=function(v){_.bI.call(this,v)};
_.vM(bx,_.bI);var Yw=function(v){_.bI.call(this,v)};
_.vM(Yw,_.bI);var SSJ=function(v,e,d,E,T){_.r6.call(this);d=document.createElement("form");d.setAttribute("method",e);d.setAttribute("enctype","multipart/form-data");d.setAttribute("encoding","multipart/form-data");e=document.createElement("input");e.setAttribute("type","hidden");e.setAttribute("name","metadata");e.setAttribute("value",T);d.appendChild(e);d.appendChild(E);this.JSC$12042_form_=d;v=new _.vF(v);_.cw(v,"upload_protocol","multipart");this.JSC$12042_url_=v.toString();this.JSC$12042_request_=new UY;this.state_=
"Ready";this.JSC$12042_errorDescription_=null;this.JSC$12042_eventHandler_=new _.Im(this);_.Yh(this,this.JSC$12042_eventHandler_);this.JSC$12042_eventHandler_.listen(this.JSC$12042_request_,"success",this.onTransferSuccess_);this.JSC$12042_eventHandler_.listen(this.JSC$12042_request_,"error",this.onTransferError_)};
_.V(SSJ,TIJ);_.W=SSJ.prototype;_.W.run=function(){this.state_="Transferring";var v=this.JSC$12042_request_,e=this.JSC$12042_form_;if(v.JSC$11461_active_)throw Error("pe");var d=new _.vF(this.JSC$12042_url_||e.action);v.JSC$11461_form_=e;e=v.JSC$11461_form_;d=_.zD(d.toString());d!==void 0&&(e.action=d);PkE(v)};
_.W.getResponseCode=function(){return null};
_.W.getResponseText=function(){return this.JSC$12042_request_&&this.JSC$12042_request_.getResponseText()||null};
_.W.JSC$29412_getErrorDescription=function(){return this.JSC$12042_errorDescription_};
_.W.cancel=function(){this.JSC$12042_request_&&this.JSC$12042_request_.abort();this.state_="Cancelled";this.dispatchEvent(new bx("o"))};
_.W.pause=function(){};
_.W.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new bx("l"))};
_.W.onTransferError_=function(){this.JSC$12042_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new bx("n"))};var m4=function(){_.Ly.call(this)};
_.V(m4,_.Ly);m4.prototype.createXhr=function(){var v=_.Ly.prototype.createXhr.call(this);v.upload&&(v.upload.onprogress=(0,_.LX)(this.onProgress_,this));return v};
m4.prototype.onProgress_=function(v){this.dispatchEvent(v)};var Wvn=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},ifE=function(v,e){var d=v.attempt_+1;
if(v.maxAttempts_>0&&d>v.maxAttempts_)return!1;d==0?e():v.delayCallId_=sd(function(){v.delayCallId_=null;e()},aiu(v),v);
v.attempt_=d;return!0};
Wvn.prototype.reset=function(){this.delayCallId_&&_.TO.clearTimeout(this.delayCallId_);this.attempt_=-1};
var aiu=function(v){var e=250*Math.pow(2,v.attempt_);v.maxDelayMs_>=0&&(e=Math.min(e,v.maxDelayMs_));return e};var nT0=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var yM=function(){_.r6.call(this);this.JSC$12052_request_=this.state_=null;this.JSC$12052_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12052_bytesTransferred_=0;this.retryIterator_=new Wvn;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12052_errorDescription_=null;this.JSC$12052_eventHandler_=new _.Im(this);_.Yh(this,this.JSC$12052_eventHandler_);this.JSC$12052_url_=this.blob_=null;this.JSC$12052_method_=void 0;this.chunkSize_=this.JSC$12052_metadata_=
this.JSC$12052_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12052_responseText_=this.JSC$12052_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.vM(yM,TIJ);_.W=yM.prototype;_.W.run=function(){q5(this)};
_.W.getResponseCode=function(){return this.JSC$12052_responseCode_};
_.W.getResponseText=function(){return this.JSC$12052_responseText_};
_.W.JSC$29412_getErrorDescription=function(){return this.JSC$12052_errorDescription_};
_.W.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12052_eventHandler_.removeAll();this.JSC$12052_request_&&this.JSC$12052_request_.abort();this.retryIterator_.reset();var v=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(v==="Upload"||v==="Query")v=new m4,v.JSC$9787_withCredentials_=this.JSC$12052_withCredentials_,v.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12052_bytesTransferred_=
0;this.dispatchEvent(new bx("o"))}};
_.W.pause=function(){this.pauseRequested_=!0};
var q5=function(v){var e=v.state_;v.pauseRequested_?(v.pauseRequested_=!1,v.stateAfterUnpausing_=e,v.state_="Paused"):ifE(v.retryIterator_,function(){switch(v.state_){case "Start":v.JSC$12052_request_=new m4;var d=_.f0.clone(v.JSC$12052_headers_);v.blob_.size!=null&&(d["Content-Length"]=v.blob_.size);d=DUs(d);d["X-Goog-Upload-Protocol"]="resumable";d["X-Goog-Upload-Command"]="start";v.JSC$12052_eventHandler_.removeAll();v.JSC$12052_eventHandler_.listen(v.JSC$12052_request_,"complete",v.onStartComplete_);
v.JSC$12052_request_.JSC$9787_withCredentials_=v.JSC$12052_withCredentials_;v.JSC$12052_request_.send(v.JSC$12052_url_,v.JSC$12052_method_,v.JSC$12052_metadata_,d);v.lastCommandResponseCode_=null;v.dispatchEvent(new Yw("q"));break;case "Upload":d=v.transferHandle_.uploadUrl_;var E=v.blob_.size;if(IqB()){var T=v.chunkSize_;var S=v.offset_+T>=E;E=OIB(v.blob_,v.offset_,S?E:v.offset_+T)}else v.offset_=0,E=v.blob_,S=!0;v.JSC$12052_request_=new m4;v.JSC$12052_request_.JSC$9787_withCredentials_=v.JSC$12052_withCredentials_;
v.JSC$12052_eventHandler_.removeAll();v.JSC$12052_eventHandler_.listen(v.JSC$12052_request_,"progress",v.onUploadProgress_);T=(0,_.LX)(v.JSC$12054_onUploadComplete_,v,v.offset_+E.size,S);v.JSC$12052_eventHandler_.listen(v.JSC$12052_request_,"complete",T);v.lastCommandResponseCode_=null;v.dispatchEvent(new Yw("q"));S=Object.assign({},v.JSC$12052_headers_||{},{"X-Goog-Upload-Command":"upload"+(S?", finalize":""),"X-Goog-Upload-Offset":v.offset_});v.JSC$12052_request_.send(d,"POST",E,S);break;case "Query":v.JSC$12052_request_=
new m4;v.JSC$12052_eventHandler_.removeAll();v.JSC$12052_eventHandler_.listen(v.JSC$12052_request_,"complete",v.onQueryComplete_);d=Object.assign({},v.JSC$12052_headers_||{},{"X-Goog-Upload-Command":"query"});v.JSC$12052_request_.send(v.transferHandle_.uploadUrl_,"POST","",d);v.lastCommandResponseCode_=null;v.dispatchEvent(new Yw("q"));break;default:throw Error("ef");}})||r$(v,"Transfer encountered too many consecutive failures.")},r$=function(v,e){v.state_="Error";
v.JSC$12052_errorDescription_=e;v.dispatchEvent(new bx("n"))};
yM.prototype.onStartComplete_=function(v){var e=v.target;this.lastCommandResponseCode_=e.getStatus();this.dispatchEvent(new Yw("r"));if(Of7(e))Ii2(this,e);else if(bfM(e)){v=gf(v.target.getAllResponseHeaders());for(var d in v)_.aU(d.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new bx("m"));d=Rm(v,"X-Goog-Upload-URL");v=(v=Rm(v,"X-Goog-Upload-Chunk-Granularity"))?parseInt(v,10):1;d===void 0||isNaN(v)||v<=0?r$(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
v)*v,this.transferHandle_=new E0J(d),this.dispatchEvent(new bx("p")),this.state_="Upload",this.retryIterator_.reset(),q5(this))}else q5(this)};
yM.prototype.onUploadProgress_=function(v){this.JSC$12052_bytesTransferred_=this.offset_+v.loaded;this.dispatchEvent(new bx("k"))};
yM.prototype.JSC$12054_onUploadComplete_=function(v,e,d){var E=this,T,S;return _.I(function(O){switch(O.nextAddress){case 1:T=d.target;E.lastCommandResponseCode_=T.getStatus();E.dispatchEvent(new Yw("r"));if(YS2(T)||T.getStatus()==404)return E.JSC$12052_bytesTransferred_=v,Ii2(E,T),O.return();if(bfM(T)){O.jumpTo(2);break}if(!(S=E.detectCorruptedBlobEnabled_)){O.jumpTo(3);break}return O.yield(mFn(E),4);case 4:S=O.yieldResult;case 3:if(S)return r$(E,"Blob has been modified or corrupted."),O.return();
E.requireUploadRequestModification_=T.getStatus()==400;E.state_="Query";q5(E);return O.return();case 2:if(e)return r$(E,"Got a non-final success response after issuing a finalize command."),O.return();E.JSC$12052_bytesTransferred_=v;E.offset_=v;E.retryIterator_.reset();q5(E);return O.return()}})};
yM.prototype.onQueryComplete_=function(v){var e=v.target;this.lastCommandResponseCode_=e.getStatus();this.dispatchEvent(new Yw("r"));Of7(e)?(e.getStatus()===200&&(this.JSC$12052_bytesTransferred_=this.blob_.size),Ii2(this,e)):bfM(e)?(v=gf(v.target.getAllResponseHeaders()),v=parseInt(Rm(v,"X-Goog-Upload-Size-Received"),10),isNaN(v)?r$(this,"Server did not respond with current offset."):v<this.offset_?r$(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
v+"."):this.requireUploadRequestModification_&&this.offset_===v?r$(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<v&&this.retryIterator_.reset(),this.offset_=this.JSC$12052_bytesTransferred_=v,this.state_="Upload",q5(this))):q5(this)};
var Ii2=function(v,e){v.JSC$12052_responseCode_=e.getStatus();var d=gf(e.getAllResponseHeaders());UUO(d);v.JSC$12052_responseText_=e.getResponseText();v.state_="Response received";v.dispatchEvent(new bx("l"))},bfM=function(v){var e=v.getStatus();
v=gf(v.getAllResponseHeaders());v=Rm(v,"X-Goog-Upload-Status");return e===200&&v==="active"},YS2=function(v){v=gf(v.getAllResponseHeaders());
return Rm(v,"X-Goog-Upload-Status")==="final"},Of7=function(v){if(YS2(v))return!0;
v=v.getStatus();return v>=400&&v<500},mFn=function(v){var e;
return _.I(function(d){if(d.nextAddress==1){if(!v.blob_||v.originalBlobSize_<=0)return d.return(!1);if(v.blob_.size!==v.originalBlobSize_)return d.return(!0);_.qq(d,2);if(e=OIB(v.blob_,0,1)){var E=d.yield,T=new BX,S=nE6(T);T.reader_.readAsBinaryString(e);d=E.call(d,S,4)}else d=d.return(!0);return d}if(d.nextAddress!=2)return d.return(v.blob_.size!==v.originalBlobSize_);_.jl(d);return d.return(!0)})};var yZJ=function(v,e,d,E,T,S){_.r6.call(this);this.payload_=E;this.JSC$12055_url_=v;this.JSC$12055_method_=e;this.JSC$12055_headers_=d;this.JSC$12055_metadata_=T;this.encoding_=S||"binary";v=new _.sY;this.boundary_="uploader-"+Hw()+"-"+v.JSC$11310_toIsoString();this.JSC$12055_responseText_=this.JSC$12055_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12055_errorDescription_=null;this.JSC$12055_eventHandler_=new _.Im(this);_.Yh(this,this.JSC$12055_eventHandler_)};
_.V(yZJ,TIJ);_.W=yZJ.prototype;
_.W.run=function(){var v=_.f0.clone(this.JSC$12055_headers_);this.payload_.length!=null&&(v["Content-Length"]=this.payload_.length);v=DUs(v);v["X-Goog-Upload-Protocol"]="multipart";v["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new m4;this.JSC$12055_eventHandler_.removeAll();this.JSC$12055_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12055_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12055_url_,this.JSC$12055_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12055_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",v)};
_.W.getResponseCode=function(){return this.JSC$12055_responseCode_};
_.W.getResponseText=function(){return this.JSC$12055_responseText_};
_.W.JSC$29412_getErrorDescription=function(){return this.JSC$12055_errorDescription_};
_.W.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12055_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new bx("o")))};
_.W.pause=function(){};
_.W.onTransferProgress_=function(){this.dispatchEvent(new bx("k"))};
_.W.onTransferComplete_=function(v){var e=v.target.getStatus();e===void 0||e===-1?(this.JSC$12055_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new bx("n"))):(this.JSC$12055_responseCode_=e,v=v.target,e=gf(v.getAllResponseHeaders()),UUO(e),this.JSC$12055_responseText_=v.getResponseText(),this.state_="Complete",this.dispatchEvent(new bx("l")))};_.qS6=function(v,e,d,E){E=E===void 0?!1:E;if(d instanceof v00)return new SSJ(v,"POST",e,d.getInputElement(),"");if(typeof d==="string"||d instanceof String)return new yZJ(v,"POST",e,d,"");var T=new yM(void 0);T.JSC$12052_url_=v;T.JSC$12052_method_="POST";T.JSC$12052_headers_=e;T.blob_=d;T.originalBlobSize_=d.size;T.JSC$12052_metadata_="";E&&(T.JSC$12052_withCredentials_=E);T.state_="Start";return T};var hy=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(hy,_.du);_.W=hy.prototype;_.W.getEnableSsEngine=function(){return _.NT(this,2)};
_.W.getEnableAwr=function(){return _.NT(this,3)};
_.W.getAlohaAutoGaRollout=function(){return _.NT(this,5)};
_.W.getEnableConfigurator=function(){return _.NT(this,6)};
_.W.getEnableMweb=function(){return _.NT(this,7)};
var h3B=function(){var v=rZJ();return _.xq(v,7,!0)};
hy.prototype.getEnableCtlConsentCheckbox=function(){return _.NT(this,8)};
hy.prototype.getEnableIframe=function(){return _.NT(this,9)};
var rZJ=function(){var v=new hy;v=_.xq(v,5,!0);v=_.xq(v,2,!0);v=_.xq(v,4,!1);v=_.xq(v,8,!0);return _.xq(v,9,!0)};
hy.prototype.getEnableScreenshotNudge=function(){return _.NT(this,10)};
var KvM=function(){var v=h3B();return _.xq(v,10,!0)};
hy.prototype.getEnableWebStartupConfigEndpoint=function(){return _.NT(this,11)};
hy.prototype.getEnableJunkNudge=function(){return _.NT(this,12)};
var h8$=function(){var v=KvM();return _.xq(v,12,!0)};
_.W=hy.prototype;_.W.getEnableConfiguratorLocale=function(){return _.NT(this,13)};
_.W.getEnableTinyNoPointer=function(){return _.NT(this,14)};
_.W.getEnableSupportSessionLogging=function(){return _.NT(this,15)};
_.W.getEnableFileUploadForScreenshot=function(){return _.NT(this,16)};
_.W.getEnableDirectDeflectionForSingleCategory=function(){return _.NT(this,17)};
_.W.getEnableImageSanitization=function(){return _.NT(this,18)};
_.W.getEnableAlohaBinarySplit=function(){return _.NT(this,19)};
_.W.getEnableDbFeedbackIntents=function(){return _.NT(this,20)};
_.W.getEnableMarkMandatoryFieldsWithRequired=function(){return _.NT(this,21)};
_.W.getEnableFeedbackCategoryCustomUi=function(){return _.NT(this,22)};
_.W.getEnableRealtimeCtl=function(){return _.NT(this,23)};var rC0=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(rC0,_.du);var prW=[/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 e80="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 dY$=_.Z9(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Ei3=_.Z9(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Ss3,ils,Wu3,Ol$;var $FI,jdM;
$FI=function(v,e,d){v.timeOfStartCall=(new Date).getTime();var E=d||_.TO,T=E.document,S=v.nonce||_.Qk(E.document);S&&!v.nonce&&(v.nonce=S);if(v.flow=="help"){var O=_.AE("document.location.href",E);!v.helpCenterContext&&O&&(v.helpCenterContext=O.substring(0,1200));O=!0;if(e&&JSON&&JSON.stringify){var b=JSON.stringify(e);(O=b.length<=1200)&&(v.psdJson=b)}O||(e={invalidPsd:!0})}e=[v,e,d];E.GOOGLE_FEEDBACK_START_ARGUMENTS=e;d=v.feedbackServerUri||"//www.google.com/tools/feedback";if(O=E.GOOGLE_FEEDBACK_START)O.apply(E,e);
else{E=d+"/load.js?";for(var Y in v)e=v[Y],e==null||_.Qj(e)||(E+=encodeURIComponent(Y)+"="+encodeURIComponent(e)+"&");v=NR(T).createElement("SCRIPT");S&&v.setAttribute("nonce",S);_.DB(v,_.km(E));T.body.appendChild(v)}};
jdM=function(v,e,d,E){var T,S;_.I(function(O){T=d||_.TO;var b=v.serverEnvironment==="DEV",Y=d||_.TO;Y=v.nonce||_.Qk(Y.document);b={integrationKeys:{productId:v.productId,feedbackBucket:v.bucket,triggerId:v.triggerId},callbacks:{onClose:v.callback,onLoad:v.onLoadCallback},formContent:{locale:v.locale,disableScreenshot:v.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:v.abuseLink,additionalDataConsent:v.additionalDataConsent},initializationData:{isLocalServer:b,nonce:Y,useNightlyRelease:b,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:v.feedbackServerUri,colorScheme:v.colorScheme},extraData:{productVersion:v.productVersion,authUser:v.authuser,configuratorId:v.configuratorId,customZIndex:v.customZIndex,tinyNoPointer:v.tinyNoPointer,
allowNonLoggedInFeedback:v.allowNonLoggedInFeedback,enableAnonymousFeedback:v.enableAnonymousFeedback}};e&&(Y=new Map(Object.entries(e)),b.extraData.productSpecificData=Y);S=b;return O.yield(mY0(S,E,T),0)})};
_.sde=function(v,e,d){try{if(v.flow==="help"){var E=v.helpCenterPath.replace(/^\//,"");_.Fa(d||window,"https://support.google.com/"+E)}else v.flow==="submit"?$FI(v,e,d):Kuj(v.productId,v.feedbackServerUri).then(function(T){T=_.W8(T,hy,1);var S=!$8L||(T==null?void 0:T.getEnableMweb()),O=!v.tinyNoPointer||(T==null?void 0:T.getEnableTinyNoPointer());!T||T.getAlohaAutoGaRollout()&&S&&O?jdM(v,e,d,T):$FI(v,e,d)},function(T){T&&T.name!=="DuplicateFormError"&&$FI(v,e,d)})}catch(T){jdM(v,e,d,null)}};
_.pw("userfeedback.api.startFeedback",_.sde);var $Yj=/https?:\/\/\S+\.\S+/,j43=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],s4t=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var BFt=function(v){var e=v.split(""),d=[-263237435,15,e,function(E,T,S){var O=T.length;S.forEach(function(b,Y,q){this.push(q[Y]=T[(T.indexOf(b)-T.indexOf(this[Y])+Y+O--)%T.length])},E.split(""))},
function(E,T){E=(E%T.length+T.length)%T.length;T.splice(-E).reverse().forEach(function(S){T.unshift(S)})},
"response",function(){for(var E=64,T=[];++E-T.length-32;){switch(E){case 58:E-=14;case 91:case 92:case 93:continue;case 123:E=47;case 94:case 95:case 96:continue;case 46:E=95}T.push(String.fromCharCode(E))}return T},
null,12,1540023973,65941107,null,e,function(E,T){for(E=(E%T.length+T.length)%T.length;E--;)T.unshift(T.pop())},
695603893,function(E){for(var T=E.length;T;)E.push(E.splice(--T,1)[0])},
"'[;'[(",function(E,T){E.push(T)},
null,function(E,T,S,O,b){return T(S,O,b)},
"continuation",e,function(E,T){if(E.length!=0){T=(T%E.length+E.length)%E.length;var S=E[0];E[0]=E[T];E[T]=S}},
function(){for(var E=64,T=[];++E-T.length-32;){switch(E){case 91:E=44;continue;case 123:E=65;break;case 65:E-=18;continue;case 58:E=96;continue;case 46:E=95}T.push(String.fromCharCode(E))}return T},
'"),/]];'];d[7]=d;d[11]=d;d[18]=d;try{(((0,d[15])(d[21]),d[22])(d[11],d[9]),d[22])(d[new Date("1970-01-01T04:30:12.000+04:30")/1E3],d[1]),((0,d[22])(d[11],d[23]),d[4])(d[10],d[18]),(0,d[20])(d[21],d[14])<<(0,d[17])(d[18],d[1]),(0,d[4])(d[8],d[21]),(0,d[19])((0,d[19])((0,d[17])(d[7],d[9]),d[3],d[20],(0,d[6])(),d[2]),d[3],d[5],(0,d[15])(),d[2])}catch(E){return"aTlOUOubTO4AP____8P_"+v}return e.join("")};_.NIB=new _.gG("runAttestationCommand");var k5c=new _.gG("verifyCommand");_.K6=new _.gG("accessibilityContext");var Lvu=new _.gG("accessibilityData");var Vj7=new _.gG("profileCardCommand");var HHO=new _.gG("signInEndpoint");var l$W=new _.gG("signOutEndpoint");var JZn;_.o0e=new _.gG("accountItemSectionRenderer");JZn=new _.gG("accountItemRenderer");_.G5J=new _.gG("saveCommandToSessionStorageAction");var Mjc=new _.gG("crossAccountChannelTransferEndpoint");var BOH=new _.gG("getAccountMenuEndpoint");_.C7$=new _.gG("getAccountSwitcherEndpoint");var xo0=new _.gG("getAccountsListEndpoint");var tjA=new _.gG("getAccountsListInnertubeEndpoint");_.$w=new _.gG("addToToastAction");var fiM=new _.gG("hideEnclosingAction");_.j6=new _.gG("replaceEnclosingAction");var R32=new _.gG("buttonRefreshAction");var P_e=new _.gG("adsControlFlowOpportunityReceivedCommand");var xFM=new _.gG("openAdAllowlistInstructionCommand");var BIB=new _.gG("videoMastheadAdPrimaryVideoRenderer");var C_0=new _.gG("displayAdRenderer");var OEH=new _.gG("instreamVideoAdRenderer");_.XB6=new _.gG("inFeedAdLayoutRenderer");var z37=new _.gG("sequenceItemInPlayerAdLayoutRenderer");_.lic=new _.gG("adSlotRenderer");var HfM=new _.gG("adAvatarViewModel");var AZc=new _.gG("adBadgeViewModel");var Zf6=new _.gG("adButtonViewModel");var cZg=new _.gG("adImageViewModel");var W6t=new _.gG("reelsAdCardButtonedViewModel");var wBM=new _.gG("reelsPlayerOverlayLayoutViewModel");var FvM=new _.gG("showSchedulingPanelCommand");var Qdg=new _.gG("backstageCommentsRenderer");var g0J=new _.gG("backstageImageRenderer");var urB=new _.gG("backstagePostRenderer");var n0M=new _.gG("backstageZeroStateRenderer");var DFM=new _.gG("postRenderer");var UFJ=new _.gG("sharedPostRenderer");var pBM=new _.gG("createBackstagePostEndpoint");var vN7=new _.gG("getPostVideoPreviewEndpoint");var ew7=new _.gG("updateBackstagePostEndpoint");var dsB=new _.gG("filterChipTransformCommand");var ENM=new _.gG("insertRichSectionCommand");var DmU=new _.gG("talkToRecsDeselectCommand");var T60=new _.gG("talkToRecsNextCommand");var nYU=new _.gG("talkToRecsSelectCommand");var Sdn=new _.gG("talkToRecsUpdateTextCommand");_.Lo=new _.gG("browseEndpoint");_.WJg=new _.gG("confirmDialogEndpoint");var aHA=new _.gG("expandOnHoverCardRenderer");var iyi=new _.gG("lumiereShelfDetailsRenderer");var Oyc=new _.gG("revealBusinessEmailCommand");var IHe=new _.gG("validateChannelHandleCommand");var byc=new _.gG("channelCreationFormEndpoint");var Yd6=new _.gG("aboutChannelViewModel");var msc=new _.gG("channelThumbnailWithLinkRenderer");var ytJ=new _.gG("channelCreationServiceEndpoint");var qdE=new _.gG("updateChannelPageSettingsEndpoint");var sA=function(v){this.delegate=v},N5=function(){sA.apply(this,arguments)};
_.V(N5,sA);_.vP.Object.defineProperties(N5.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(v){this.delegate.entityMetadata=v}}});var rtA=function(){N5.apply(this,arguments)};
_.V(rtA,N5);rtA.prototype.getAssociations=function(){return[]};
rtA.prototype.getTypeName=function(){return"channelHandle"};var wQH=new _.gG("webThumbnailDetailsExtensionData");var ONW=new _.gG("commandContext");var hw6=new _.gG("addVideoLinkAction");var KJM=new _.gG("banAuthorAction");var $sE=new _.gG("createCommentAction");var jnn=new _.gG("createCommentReplyAction");var snE=new _.gG("createPollAction");var N66=new _.gG("hideIdentityChipAction");var kxJ=new _.gG("openUpdateCommentDialogAction");var LJu=new _.gG("pinCommentAction");var V9e=new _.gG("removeCommentAction");var oNi=new _.gG("unpinCommentAction");var kw=new _.gG("updateBackstagePollAction");var JtB=new _.gG("updateCommentVoteAction");var Gx7=new _.gG("commentThreadRenderer");var M92=function(){N5.apply(this,arguments)};
_.V(M92,N5);M92.prototype.getAssociations=function(){return[]};
M92.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var t9J=function(){N5.apply(this,arguments)};
_.V(t9J,N5);t9J.prototype.getAssociations=function(){return[]};
t9J.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.fH2=new _.gG("commentDialogRenderer");var Rwi=new _.gG("reloadCommentsCommand");var PIE=new _.gG("updateCommentsSettingsEndpoint");var xsJ=new _.gG("commentViewModel");var B6J=new _.gG("triStateButtonViewModel");var CIc=new _.gG("voiceReplyContainerViewModel");_.rV=new _.gG("commandExecutorCommand");var C1=new _.gG("emoji");var XJe=new _.gG("updateCreatorChannelInnertubeCommand");_.zwu=new _.gG("appendContinuationItemsAction");_.lHJ=new _.gG("changeEngagementPanelVisibilityAction");_.Ha=new _.gG("continuationCommand");var HyA=new _.gG("hideReportedCommentAction");var Atu=new _.gG("listMutationCommand");_.L6=new _.gG("openPopupAction");var Zyg=new _.gG("persistSubscriptionsDisplayPreferencesCommand");var DsB;_.ctc=new _.gG("playlistRemoveVideosAction");_.wJM=new _.gG("updatePlaylistAction");_.FJ6=new _.gG("addToPlaylistCommand");_.QnJ=new _.gG("endPlaylistCommand");_.gNn=new _.gG("recoverPlaylistCommand");_.uhJ=new _.gG("refreshPlaylistCommand");_.nNI=new _.gG("refreshFormCommand");DsB=new _.gG("openOnePickAddVideoModalCommand");_.ZSO=new _.gG("reloadContinuationItemsCommand");_.Usg=new _.gG("scrollToEngagementPanelCommand");var pJ2=new _.gG("selectCountryCommand");var vTc=new _.gG("showReloadUiCommand");var eYi=new _.gG("undoFeedbackAction");var dUn=new _.gG("updateButtonAction");var ETB=new _.gG("updateSubscribeButtonAction");var TGJ=new _.gG("updateToggleAction");var S30=new _.gG("webNativeShareCommand");_.$B=new _.gG("webCommandMetadata");_.VM=new _.gG("webHandleServiceEndpointExtension");var HL0=new _.gG("webNavigationEndpointData");var WWn=new _.gG("backgroundAudioPlaybackCommand");var af7=new _.gG("copyLinkCommand");var iCn=new _.gG("playlistVotingRefreshPopupCommand");var OCu=new _.gG("selectChipCommand");var IfA=new _.gG("setCookieCommand");var bCi=new _.gG("setLocalStorageCommand");var Y3E=new _.gG("setPrefStorageEntryCommand");var rM0;_.mU6=new _.gG("settingsUpdateCheckboxCommand");_.yMg=new _.gG("settingsUpdateTextCommand");_.q3c=new _.gG("settingsUpdateOptionsCommand");rM0=new _.gG("settingsUpdateSwitchCommand");_.hYc=new _.gG("settingsUpdateConnectedAppRendererCommand");var KWA=new _.gG("updateTextInputFormFieldRendererCommand");var $Uu=new _.gG("updateToggleButtonStateCommand");var j9E=new _.gG("updateUrlParamCommand");var s9E=new _.gG("webSubmitFormCommand");var NG6=new _.gG("channelSwitcherPageRenderer"),keM=new _.gG("updateChannelSwitcherPageAction");_.uw=new _.gG("continuationItemRenderer");_.oi=new _.gG("richItemRenderer");var LWI=new _.gG("richSectionRenderer");_.VPA=new _.gG("richShelfRenderer");_.oTB=new _.gG("metadataBadgeRenderer");_.JMI=new _.gG("multiPageMenuNotificationSectionRenderer");_.GeI=new _.gG("playlistLoopButtonStateRenderer");var MP6=new _.gG("claimLegacyYoutubeChannelEndpoint");var tPA=new _.gG("getNotificationMenuEndpoint");var ffA=new _.gG("getSearchInVideoCommand");_.RY6=new _.gG("getTranscriptEndpoint");_.KB=new _.gG("signalServiceEndpoint");var PaM=new _.gG("verifyAgeEndpoint");var zV7=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(zV7,_.du);zV7.prototype.getPath=function(){return _.Vm(this,1)};
zV7.prototype.getValue=function(){return _.Vm(this,2)};var xUB=[0,_.An,-1];var BGu=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(BGu,_.du);var X9W=_.b6(BGu,[0,_.Zk,xUB]);var CaA=new _.gG("dismissalEndpoint");var XrE=new _.gG("elementsCommand");_.zj=new _.gG("innertubeCommand");var zYe=new _.gG("multipleInlinePlaybackCommand");var LaL=new _.gG("loggingDirectives");var lfI=new _.gG("acknowledgeChannelTouStrikeCommand");var HCI=function(){N5.apply(this,arguments)};
_.V(HCI,N5);HCI.prototype.getAssociations=function(){return[]};
HCI.prototype.getTypeName=function(){return"booleanEntity"};var AMM=function(){N5.apply(this,arguments)};
_.V(AMM,N5);AMM.prototype.getAssociations=function(){return[]};
AMM.prototype.getTypeName=function(){return"stringEntity"};var nM=new _.gG("entityBatchUpdate");_.ZC6=new _.gG("entityUpdateCommand");var cM0=function(){N5.apply(this,arguments)};
_.V(cM0,N5);cM0.prototype.getAssociations=function(){var v=[];this.delegate.alternateChannel&&v.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&v.push.apply(v,_.t7(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&v.push(this.delegate.oneofChannelEntity);return[].concat(_.t7(new Set(v)))};
cM0.prototype.getTypeName=function(){return"fakeChannel"};var wrg=function(){N5.apply(this,arguments)};
_.V(wrg,N5);wrg.prototype.getAssociations=function(){var v=[];this.delegate.entryCollection&&v.push(this.delegate.entryCollection);return[].concat(_.t7(new Set(v)))};
wrg.prototype.getTypeName=function(){return"fakePlaylist"};
var FWc=function(){N5.apply(this,arguments)};
_.V(FWc,N5);FWc.prototype.getAssociations=function(){var v=[];this.delegate.parentPlaylist&&v.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var e=_.a(this.delegate.entries),d=e.next();!d.done;d=e.next())v.push.apply(v,_.t7((new Q92(d.value)).getAssociations()));return[].concat(_.t7(new Set(v)))};
FWc.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var Q92=function(){sA.apply(this,arguments)};
_.V(Q92,sA);Q92.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);return[].concat(_.t7(new Set(v)))};var gTE=function(){N5.apply(this,arguments)};
_.V(gTE,N5);gTE.prototype.getAssociations=function(){var v=[];this.delegate.descriptionEntity&&v.push(this.delegate.descriptionEntity);this.delegate.creators&&v.push.apply(v,_.t7(this.delegate.creators));this.delegate.theBiggestFan&&v.push(this.delegate.theBiggestFan);return[].concat(_.t7(new Set(v)))};
gTE.prototype.getTypeName=function(){return"fakeVideo"};
var uxE=function(){N5.apply(this,arguments)};
_.V(uxE,N5);uxE.prototype.getAssociations=function(){return[]};
uxE.prototype.getTypeName=function(){return"fakeVideoDescription"};var nT6=new _.gG("fantasyRosterViewModel");var DUe=new _.gG("addFollowUpSurveyCommand");var UU2=new _.gG("getSurveyCommand");var prA=new _.gG("ratingSurveyOptionRenderer");_.LO=new _.gG("feedbackEndpoint");var vin=new _.gG("reportHistoryTableCellRenderer"),e86=new _.gG("reportHistoryTableTextCellRenderer"),dYu=new _.gG("reportHistoryTableReasonCellRenderer");_.Eic=new _.gG("flagEndpoint");var Ty6=new _.gG("getFlowCommand");var Ssc=new _.gG("submitFormWithValidationFlowCommand");var Wuc=function(){N5.apply(this,arguments)};
_.V(Wuc,N5);Wuc.prototype.getAssociations=function(){return[]};
Wuc.prototype.getTypeName=function(){return"flowStateEntity"};var acE=new _.gG("flowFormState");var ile=new _.gG("gameCardRenderer");var Olu=new _.gG("accountLinkingStateChangedCommand");var Ice=function(){N5.apply(this,arguments)};
_.V(Ice,N5);Ice.prototype.getAssociations=function(){return[]};
Ice.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var blc=new _.gG("changeMiniAppPlayStateCommand");var Ysu=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Ysu,_.du);var Jy=[1,2,3];var mY6=[0,Jy,QyW,_.grU,lrS];var yCJ=_.b6(Ysu,mY6),qsA=_.Ym(mY6);var rCg=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(rCg,_.du);var h8u=[0,_.zw,_.An];var KuB=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(KuB,_.du);var $YB=[0,_.An,_.zw,-1];var G1=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(G1,_.du);var j4c=_.Ym([0,1,h8u,_.wN,$YB]);var s47=new _.gG("miniAppScoreChallengeViewModel");var Ny0=new _.gG("miniGameCardViewModel");var k3n=new _.gG("teaserCardViewModel");var Lu0=function(){N5.apply(this,arguments)};
_.V(Lu0,N5);Lu0.prototype.getAssociations=function(){return[]};
Lu0.prototype.getTypeName=function(){return"logoEntity"};_.VTE=new _.gG("feedbackItemRenderer");var oiM=function(){N5.apply(this,arguments)};
_.V(oiM,N5);oiM.prototype.getAssociations=function(){return[]};
oiM.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.JCJ=new _.gG("playerInterstitialRenderer");var G3E=new _.gG("getKidsBlocklistPickerCommand");_.MTM=new _.gG("updateKidsBlacklistEndpoint");_.Bj=new _.gG("likeEndpoint");var tT6,fc7,R8E;tT6=new _.gG("addChatItemAction");fc7=new _.gG("removeChatItemAction");R8E=new _.gG("markChatItemAsDeletedAction");_.PP0=new _.gG("setLiveChatCollapsedStateAction");var xY2=function(){N5.apply(this,arguments)};
_.V(xY2,N5);xY2.prototype.getAssociations=function(){return[]};
xY2.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var Bye=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Bye,_.du);var CP6=_.b6(Bye,[0,1,_.zw]);var X6u=new _.gG("liveChatEndpoint");var z8I=new _.gG("liveChatItemContextMenuEndpoint");var lcn=new _.gG("liveChatReplayEndpoint");_.HlE=new _.gG("emojiPickerRenderer");var ACA=new _.gG("liveChatAuthorBadgeViewModel");var Zle=new _.gG("deleteLiveChatMessageCommand");var cCg=new _.gG("liveChatActionEndpoint");var w67=new _.gG("createLiveChatPollEndpoint");var Fuu=new _.gG("manageLiveChatUserEndpoint");var Q4n=new _.gG("moderateLiveChatEndpoint");_.gi7=new _.gG("sendLiveChatMessageEndpoint");var u82=new _.gG("sendLiveChatVoteEndpoint");var ni7=new _.gG("clearLocationCommand");var DYn=new _.gG("resolveLocationCommand");var UYJ=new _.gG("interactionLoggingCommandMetadata");var p6u=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(p6u,_.du);var vZu=function(v,e){return _.iZ(v,1,e)};var eD2=[0,_.HM];var d6n=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(d6n,_.du);var EZB=function(v,e){return KI(v,1,p6u,e)};d6n.prototype.JSC$12149_serializeBinary=C6W([0,_.Zk,eD2]);var cC0={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 TWI={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"},
SY6={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 gS0={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND"};_.bL0=new _.gG("logFlowLoggingEventCommand");_.kJ=new _.gG("loggingContext");var Wjc=new _.gG("audioTrackSelectActionCommand");var aXE=new _.gG("captionLanguageSelectActionCommand");var iPg=new _.gG("showAudioTrackPickerActionCommand");var OPI=new _.gG("showCaptionLanguageSelectActionCommand");var IX0=new _.gG("dismissDialogEndpoint");var bPg=new _.gG("dismissPlayerOverlayCommand");var YYn=new _.gG("hideItemSectionVideosByIdCommand");var m66=new _.gG("showMiniplayerCommand");var y4I=function(){N5.apply(this,arguments)};
_.V(y4I,N5);y4I.prototype.getAssociations=function(){return[]};
y4I.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var qYg=function(){N5.apply(this,arguments)};
_.V(qYg,N5);qYg.prototype.getAssociations=function(){return[]};
qYg.prototype.getTypeName=function(){return"downloadStatusEntity"};var r4I=function(){N5.apply(this,arguments)};
_.V(r4I,N5);r4I.prototype.getAssociations=function(){return[]};
r4I.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var hD0=function(){N5.apply(this,arguments)};
_.V(hD0,N5);hD0.prototype.getAssociations=function(){var v=[];this.delegate.downloadsList&&v.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&v.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&v.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&v.push(this.delegate.refresh);return[].concat(_.t7(new Set(v)))};
hD0.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var Kji=function(){N5.apply(this,arguments)};
_.V(Kji,N5);Kji.prototype.getAssociations=function(){var v=[];this.delegate.refresh&&v.push(this.delegate.refresh);if(this.delegate.downloads)for(var e=_.a(this.delegate.downloads),d=e.next();!d.done;d=e.next())v.push.apply(v,_.t7((new $6J(d.value)).getAssociations()));return[].concat(_.t7(new Set(v)))};
Kji.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var $6J=function(){sA.apply(this,arguments)};
_.V($6J,sA);$6J.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);this.delegate.playlist&&v.push(this.delegate.playlist);this.delegate.videoItem&&v.push(this.delegate.videoItem);this.delegate.playlistItem&&v.push(this.delegate.playlistItem);return[].concat(_.t7(new Set(v)))};var jAg=function(){N5.apply(this,arguments)};
_.V(jAg,N5);jAg.prototype.getAssociations=function(){var v=[];this.delegate.localImageEntities&&v.push.apply(v,_.t7(this.delegate.localImageEntities));return[].concat(_.t7(new Set(v)))};
jAg.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var sA0=function(){N5.apply(this,arguments)};
_.V(sA0,N5);sA0.prototype.getAssociations=function(){var v=[];this.delegate.playbackData&&v.push(this.delegate.playbackData);this.delegate.localImageEntities&&v.push.apply(v,_.t7(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.t7(new Set(v)))};
sA0.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var NWJ=function(){N5.apply(this,arguments)};
_.V(NWJ,N5);NWJ.prototype.getAssociations=function(){return[]};
NWJ.prototype.getTypeName=function(){return"offlineabilityEntity"};var kk6=function(){N5.apply(this,arguments)};
_.V(kk6,N5);kk6.prototype.getAssociations=function(){var v=[];this.delegate.fakeChildren&&v.push.apply(v,_.t7(this.delegate.fakeChildren));return[].concat(_.t7(new Set(v)))};
kk6.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var LjA=function(){N5.apply(this,arguments)};
_.V(LjA,N5);LjA.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);this.delegate.playbackData&&v.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&v.push(this.delegate.offlineVideoPolicy);return[].concat(_.t7(new Set(v)))};
LjA.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var Vrg=function(){N5.apply(this,arguments)};
_.V(Vrg,N5);Vrg.prototype.getAssociations=function(){return[]};
Vrg.prototype.getTypeName=function(){return"continuationTokenEntity"};var oZJ=function(){N5.apply(this,arguments)};
_.V(oZJ,N5);oZJ.prototype.getAssociations=function(){var v=[];this.delegate.channelOwner&&v.push(this.delegate.channelOwner);this.delegate.videos&&v.push.apply(v,_.t7(this.delegate.videos));this.delegate.collaboratorChannels&&v.push.apply(v,_.t7(this.delegate.collaboratorChannels));this.delegate.downloadState&&v.push(this.delegate.downloadState);this.delegate.refresh&&v.push(this.delegate.refresh);return[].concat(_.t7(new Set(v)))};
oZJ.prototype.getTypeName=function(){return"mainPlaylistEntity"};var J4n=function(){N5.apply(this,arguments)};
_.V(J4n,N5);J4n.prototype.getAssociations=function(){var v=[];this.delegate.video&&v.push(this.delegate.video);this.delegate.channelContributor&&v.push(this.delegate.channelContributor);return[].concat(_.t7(new Set(v)))};
J4n.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var Gki=function(){sA.apply(this,arguments)};
_.V(Gki,sA);Gki.prototype.getAssociations=function(){var v=[];this.delegate.recommendedVideoMetadata&&v.push.apply(v,_.t7((new Mri(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.t7(new Set(v)))};
var Mri=function(){sA.apply(this,arguments)};
_.V(Mri,sA);Mri.prototype.getAssociations=function(){var v=[];this.delegate.localImageEntities&&v.push.apply(v,_.t7(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.t7(new Set(v)))};var trE=function(){sA.apply(this,arguments)};
_.V(trE,sA);trE.prototype.getAssociations=function(){var v=[];this.delegate.playbackPosition&&v.push(this.delegate.playbackPosition);return[].concat(_.t7(new Set(v)))};var fXI=function(){N5.apply(this,arguments)};
_.V(fXI,N5);fXI.prototype.getAssociations=function(){var v=[];this.delegate.owner&&v.push(this.delegate.owner);this.delegate.downloadState&&v.push(this.delegate.downloadState);this.delegate.userState&&v.push.apply(v,_.t7((new trE(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&v.push.apply(v,_.t7((new Gki(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.t7(new Set(v)))};
fXI.prototype.getTypeName=function(){return"mainVideoEntity"};var RDB=function(){N5.apply(this,arguments)};
_.V(RDB,N5);RDB.prototype.getAssociations=function(){var v=[];this.delegate.userChannelDetails&&v.push(this.delegate.userChannelDetails);return[].concat(_.t7(new Set(v)))};
RDB.prototype.getTypeName=function(){return"ytMainChannelEntity"};var P07=function(){N5.apply(this,arguments)};
_.V(P07,N5);P07.prototype.getAssociations=function(){var v=[];this.delegate.channelOwner&&v.push(this.delegate.channelOwner);this.delegate.playbackPosition&&v.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&v.push.apply(v,_.t7(this.delegate.localImageEntities));this.delegate.downloadStatus&&v.push(this.delegate.downloadStatus);return[].concat(_.t7(new Set(v)))};
P07.prototype.getTypeName=function(){return"ytMainVideoEntity"};var CjS=new _.gG("downloadsPageSmartDownloadsOptInBannerParams");var HeW=new _.gG("downloadsPageUpsellBannerParams");var x66=function(){N5.apply(this,arguments)};
_.V(x66,N5);x66.prototype.getAssociations=function(){return[]};
x66.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var BWB=function(){N5.apply(this,arguments)};
_.V(BWB,N5);BWB.prototype.getAssociations=function(){return[]};
BWB.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var C0M=function(){N5.apply(this,arguments)};
_.V(C0M,N5);C0M.prototype.getAssociations=function(){return[]};
C0M.prototype.getTypeName=function(){return"macroMarkerEntity"};var XXJ=function(){N5.apply(this,arguments)};
_.V(XXJ,N5);XXJ.prototype.getAssociations=function(){return[]};
XXJ.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var zDc=function(){N5.apply(this,arguments)};
_.V(zDc,N5);zDc.prototype.getAssociations=function(){return[]};
zDc.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var lXn=function(){N5.apply(this,arguments)};
_.V(lXn,N5);lXn.prototype.getAssociations=function(){return[]};
lXn.prototype.getTypeName=function(){return"playerStateEntity"};var HP2=function(){N5.apply(this,arguments)};
_.V(HP2,N5);HP2.prototype.getAssociations=function(){return[]};
HP2.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var A4M=function(){N5.apply(this,arguments)};
_.V(A4M,N5);A4M.prototype.getAssociations=function(){return[]};
A4M.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var ZPB=function(){N5.apply(this,arguments)};
_.V(ZPB,N5);ZPB.prototype.getAssociations=function(){return[]};
ZPB.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.M5=new _.gG("dislikeButtonViewModel");_.ty=new _.gG("likeButtonViewModel");var c4A=new _.gG("videoSummaryContentViewModel");var wXu=new _.gG("videoSummaryParagraphViewModel");var FjB=new _.gG("changeTimelyActionVisibilityCommand");var QAA=new _.gG("hideEngagementPanelEndpoint");var gZn=new _.gG("refreshPanelEndpoint");var uPn=new _.gG("scrollToSectionEndpoint");var nZJ=new _.gG("seekToVideoTimestampCommand");_.k5=new _.gG("showEngagementPanelEndpoint");var D6M=new _.gG("showTransientPlayerScrimOverlayCommand");var U6E=new _.gG("toggleEngagementPanelCommand");_.pXn=new _.gG("createBroadcastCommand");var vln=new _.gG("metadataUpdateCommand");var ev7=function(){N5.apply(this,arguments)};
_.V(ev7,N5);ev7.prototype.getAssociations=function(){return[]};
ev7.prototype.getTypeName=function(){return"featuredProductsEntity"};var dS7=function(){N5.apply(this,arguments)};
_.V(dS7,N5);dS7.prototype.getAssociations=function(){return[]};
dS7.prototype.getTypeName=function(){return"pinnedProductEntity"};var Ele=function(){N5.apply(this,arguments)};
_.V(Ele,N5);Ele.prototype.getAssociations=function(){return[]};
Ele.prototype.getTypeName=function(){return"trendingOfferEntity"};_.Ts7=new _.gG("merchandiseShelfRenderer");var SQu=new _.gG("gridMovieRenderer");_.Wk7=new _.gG("movieRenderer");var aeJ=function(){N5.apply(this,arguments)};
_.V(aeJ,N5);aeJ.prototype.getAssociations=function(){var v=[];this.delegate.trackDownloadMetadatas&&v.push.apply(v,_.t7(this.delegate.trackDownloadMetadatas));return[].concat(_.t7(new Set(v)))};
aeJ.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var i$g=function(){N5.apply(this,arguments)};
_.V(i$g,N5);
i$g.prototype.getAssociations=function(){var v=[];this.delegate.downloadedTracks&&v.push.apply(v,_.t7(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&v.push.apply(v,_.t7(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&v.push.apply(v,_.t7(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&v.push.apply(v,_.t7(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&v.push.apply(v,_.t7(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
v.push.apply(v,_.t7(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&v.push.apply(v,_.t7(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&v.push.apply(v,_.t7(this.delegate.metadataOnlyTracks));return[].concat(_.t7(new Set(v)))};
i$g.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var O$i=function(){N5.apply(this,arguments)};
_.V(O$i,N5);O$i.prototype.getAssociations=function(){var v=[];this.delegate.trackDownloadMetadatas&&v.push.apply(v,_.t7(this.delegate.trackDownloadMetadatas));return[].concat(_.t7(new Set(v)))};
O$i.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var Ie6=function(){N5.apply(this,arguments)};
_.V(Ie6,N5);Ie6.prototype.getAssociations=function(){var v=[];this.delegate.playbackData&&v.push(this.delegate.playbackData);this.delegate.localImageEntities&&v.push.apply(v,_.t7(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.t7(new Set(v)))};
Ie6.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var b$E=function(){N5.apply(this,arguments)};
_.V(b$E,N5);
b$E.prototype.getAssociations=function(){var v=[];this.delegate.musicLibraryStatusEntity&&v.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&v.push.apply(v,_.t7(this.delegate.primaryArtists));this.delegate.details&&v.push(this.delegate.details);this.delegate.userDetails&&v.push(this.delegate.userDetails);this.delegate.tracks&&v.push.apply(v,_.t7(this.delegate.tracks));this.delegate.share&&v.push(this.delegate.share);this.delegate.downloadMetadata&&v.push(this.delegate.downloadMetadata);this.delegate.refresh&&
v.push(this.delegate.refresh);return[].concat(_.t7(new Set(v)))};
b$E.prototype.getTypeName=function(){return"musicAlbumRelease"};
var YQB=function(){N5.apply(this,arguments)};
_.V(YQB,N5);YQB.prototype.getAssociations=function(){var v=[];this.delegate.albumRelease&&v.push(this.delegate.albumRelease);this.delegate.tracks&&v.push.apply(v,_.t7(this.delegate.tracks));return[].concat(_.t7(new Set(v)))};
YQB.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var mSi=function(){N5.apply(this,arguments)};
_.V(mSi,N5);mSi.prototype.getAssociations=function(){var v=[];this.delegate.albumRelease&&v.push(this.delegate.albumRelease);return[].concat(_.t7(new Set(v)))};
mSi.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var y97=function(){N5.apply(this,arguments)};
_.V(y97,N5);y97.prototype.getAssociations=function(){var v=[];this.delegate.details&&v.push(this.delegate.details);this.delegate.userDetails&&v.push(this.delegate.userDetails);return[].concat(_.t7(new Set(v)))};
y97.prototype.getTypeName=function(){return"musicArtist"};
var qQB=function(){N5.apply(this,arguments)};
_.V(qQB,N5);qQB.prototype.getAssociations=function(){var v=[];this.delegate.parentArtist&&v.push(this.delegate.parentArtist);return[].concat(_.t7(new Set(v)))};
qQB.prototype.getTypeName=function(){return"musicArtistDetail"};
var r9g=function(){N5.apply(this,arguments)};
_.V(r9g,N5);r9g.prototype.getAssociations=function(){var v=[];this.delegate.parentArtist&&v.push(this.delegate.parentArtist);return[].concat(_.t7(new Set(v)))};
r9g.prototype.getTypeName=function(){return"musicArtistUserDetail"};var hvn=function(){N5.apply(this,arguments)};
_.V(hvn,N5);hvn.prototype.getAssociations=function(){return[]};
hvn.prototype.getTypeName=function(){return"musicLibraryEdit"};var Kke=function(){N5.apply(this,arguments)};
_.V(Kke,N5);Kke.prototype.getAssociations=function(){return[]};
Kke.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var $SE=function(){N5.apply(this,arguments)};
_.V($SE,N5);
$SE.prototype.getAssociations=function(){var v=[];this.delegate.tracks&&v.push.apply(v,_.t7(this.delegate.tracks));this.delegate.refresh&&v.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&v.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&v.push(this.delegate.details);this.delegate.downloadMetadata&&v.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&v.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&v.push(this.delegate.userDetails);this.delegate.entryCollection&&
v.push(this.delegate.entryCollection);this.delegate.share&&v.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&v.push.apply(v,_.t7((new jxg(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.t7(new Set(v)))};
$SE.prototype.getTypeName=function(){return"musicPlaylist"};
var jxg=function(){sA.apply(this,arguments)};
_.V(jxg,sA);jxg.prototype.getAssociations=function(){var v=[];this.delegate.creatorEntity&&v.push(this.delegate.creatorEntity);return[].concat(_.t7(new Set(v)))};var sxn=function(){N5.apply(this,arguments)};
_.V(sxn,N5);sxn.prototype.getAssociations=function(){return[]};
sxn.prototype.getTypeName=function(){return"musicShare"};var Ns2=function(){N5.apply(this,arguments)};
_.V(Ns2,N5);
Ns2.prototype.getAssociations=function(){var v=[];this.delegate.musicLibraryStatusEntity&&v.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&v.push.apply(v,_.t7(this.delegate.artists));this.delegate.audioModeVersion&&v.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&v.push(this.delegate.videoModeVersion);this.delegate.userDetails&&v.push(this.delegate.userDetails);this.delegate.details&&v.push(this.delegate.details);this.delegate.albumRelease&&v.push(this.delegate.albumRelease);this.delegate.share&&
v.push(this.delegate.share);this.delegate.libraryEdit&&v.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&v.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&v.push(this.delegate.playbackPosition);this.delegate.lyrics&&v.push(this.delegate.lyrics);return[].concat(_.t7(new Set(v)))};
Ns2.prototype.getTypeName=function(){return"musicTrack"};
var kBJ=function(){N5.apply(this,arguments)};
_.V(kBJ,N5);kBJ.prototype.getAssociations=function(){var v=[];this.delegate.parentTrack&&v.push(this.delegate.parentTrack);return[].concat(_.t7(new Set(v)))};
kBJ.prototype.getTypeName=function(){return"musicTrackDetail"};
var LkE=function(){N5.apply(this,arguments)};
_.V(LkE,N5);LkE.prototype.getAssociations=function(){var v=[];this.delegate.parentTrack&&v.push(this.delegate.parentTrack);return[].concat(_.t7(new Set(v)))};
LkE.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Fb=new _.gG("musicResponsiveListItemRenderer");var Q10=new _.gG("addToPlaylistEndpoint");var V$B=new _.gG("captionPickerEndpoint");var ol6=new _.gG("suggestStats");var J92=new _.gG("backstageImageUploadEndpoint");var GB2=new _.gG("createBackstagePostDialogEndpoint");_.M$c=new _.gG("createCommentReplyDialogEndpoint");_.t$2=new _.gG("updateCommentDialogEndpoint");_.fe2=new _.gG("updateCommentReplyDialogEndpoint");var Rvc=new _.gG("menuEndpoint");var XC0=new _.gG("modalEndpoint");var PyE=new _.gG("playlistEditorEndpoint");var xSA=new _.gG("copyTextEndpoint");var Bs7,Cyc;Bs7=new _.gG("shareEndpoint");Cyc=new _.gG("shareEntityEndpoint");_.XAu=new _.gG("shareEntityServiceEndpoint");_.Pt0=new _.gG("userFeedbackEndpoint");_.p2=new _.gG("watchEndpoint");var jjL=new _.gG("watchPlaylistEndpoint");var zvI=new _.gG("addUpcomingEventReminderEndpoint");_.f6=new _.gG("getCommentsFromInboxCommand");var leg=new _.gG("notificationOptOutEndpoint");var H$J=new _.gG("recordNotificationInteractionsEndpoint");var A9g=new _.gG("removeUpcomingEventReminderEndpoint");var wE$=new _.gG("getDownloadActionCommand");_.Z$e=new _.gG("offlineOrchestrationActionCommand");var c9u=function(){N5.apply(this,arguments)};
_.V(c9u,N5);c9u.prototype.getAssociations=function(){return[]};
c9u.prototype.getTypeName=function(){return"captionTrack"};var wAi=function(){N5.apply(this,arguments)};
_.V(wAi,N5);wAi.prototype.getAssociations=function(){return[]};
wAi.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var FkB=function(){N5.apply(this,arguments)};
_.V(FkB,N5);FkB.prototype.getAssociations=function(){return[]};
FkB.prototype.getTypeName=function(){return"offlineVideoPolicy"};var Qxu=function(){N5.apply(this,arguments)};
_.V(Qxu,N5);Qxu.prototype.getAssociations=function(){return[]};
Qxu.prototype.getTypeName=function(){return"offlineVideoStreams"};var glJ=function(){N5.apply(this,arguments)};
_.V(glJ,N5);glJ.prototype.getAssociations=function(){var v=[];this.delegate.transfer&&v.push(this.delegate.transfer);this.delegate.adsPlaybackData&&v.push.apply(v,_.t7(this.delegate.adsPlaybackData));this.delegate.drmLicense&&v.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&v.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&v.push(this.delegate.videoDownloadContextEntity);return[].concat(_.t7(new Set(v)))};
glJ.prototype.getTypeName=function(){return"playbackData"};var uOI=function(){N5.apply(this,arguments)};
_.V(uOI,N5);uOI.prototype.getAssociations=function(){return[]};
uOI.prototype.getTypeName=function(){return"refresh"};var nl0=function(){N5.apply(this,arguments)};
_.V(nl0,N5);nl0.prototype.getAssociations=function(){var v=[];this.delegate.offlineVideoStreams&&v.push.apply(v,_.t7(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&v.push.apply(v,_.t7(this.delegate.captionTrack));return[].concat(_.t7(new Set(v)))};
nl0.prototype.getTypeName=function(){return"transfer"};var DSi=function(){N5.apply(this,arguments)};
_.V(DSi,N5);DSi.prototype.getAssociations=function(){return[]};
DSi.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var USJ=new _.gG("showMoreDrawerCommand");var pA7=new _.gG("updateEngagementPanelContentCommand");var vwu=new _.gG("getPdgBuyFlowCommand");var eMn=new _.gG("liveChatPurchaseMessageEndpoint");var d56=new _.gG("openSuperStickerBuyFlowCommand");var Ew2=new _.gG("updatePdgFeatureEnablementCommand");var T$2=function(){N5.apply(this,arguments)};
_.V(T$2,N5);T$2.prototype.getAssociations=function(){return[]};
T$2.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var SA0=function(){N5.apply(this,arguments)};
_.V(SA0,N5);SA0.prototype.getAssociations=function(){return[]};
SA0.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.W4A=new _.gG("pdgCommentChipRenderer");_.aG0=new _.gG("permissionRoleBottomBarRenderer");_.i6J=new _.gG("updatePermissionRoleCommand");var O6M=new _.gG("prefetchWatchCommand");var IG6=new _.gG("updatePlayerErrorMessageCommand");var XEO=new _.gG("toggleCaptionsVisibilityCommand");_.b6c=new _.gG("quickActionsViewModel");var YA0=new _.gG("playerResponse");var m5B=new _.gG("playlistRenderer");_.yyM=new _.gG("playlistVideoListRenderer");_.Ri=new _.gG("playlistEditEndpoint");var qA7=new _.gG("createImagePollCommand");var ryE=new _.gG("createQuizCommand");var hMi=new _.gG("quizRenderer");var K4e=new _.gG("uploadedVideoRenderer");var $5n=new _.gG("decorateMessageEndpoint");var jiA=new _.gG("lpOfferCardOptionViewModel");var sin=new _.gG("sfvAudioItemPlaybackCommand");var N$6=function(){N5.apply(this,arguments)};
_.V(N$6,N5);N$6.prototype.getAssociations=function(){return[]};
N$6.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.PD=new _.gG("reelNonVideoContentEndpoint");_.Go=new _.gG("reelWatchEndpoint");_.xw=new _.gG("reelItemRenderer");_.k1e=new _.gG("reelMetapanelViewModel");_.L4c=new _.gG("reelNonVideoContentRenderer");_.V6n=new _.gG("reelPlayerOverlayRenderer");var owB=new _.gG("shortsLockupViewModel");var Jyi=new _.gG("sponsorButtonViewModel");var G1g=new _.gG("reelItemWatchResponse");var M6A=new _.gG("textBadgeRenderer");_.BD=new _.gG("buttonRenderer");_.C6=new _.gG("toggleButtonRenderer");var nd$=new _.gG("switchButtonViewModel");_.t6E=new _.gG("confirmDialogRenderer");var fGg;fGg=new _.gG("menuRenderer");_.RM2=new _.gG("menuFlexibleItemRenderer");var Pxg=new _.gG("pollRenderer");_.x5n=new _.gG("backgroundPromoRenderer");var Cxu;_.B$M=new _.gG("chipCloudRenderer");Cxu=new _.gG("chipCloudChipRenderer");var XDi=new _.gG("dropdownRenderer");var zMI=new _.gG("gridVideoRenderer");_.lG6=new _.gG("itemSectionRenderer");_.H67=new _.gG("messageRenderer");var Ayc=new _.gG("sortFilterHeaderRenderer");_.XY=new _.gG("videoRenderer");var Z6B=new _.gG("resolveUrlCommandMetadata");var cyc=function(){N5.apply(this,arguments)};
_.V(cyc,N5);cyc.prototype.getAssociations=function(){return[]};
cyc.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.wDi=new _.gG("getAnswerCommand");_.Vd=new _.gG("searchEndpoint");var F42=new _.gG("genAiRichTextViewModel");var cB7=new _.gG("overviewAnswerViewModel");var QiI=new _.gG("videoOverviewViewModel");var gwA=new _.gG("addToPlaylistServiceEndpoint");var uYM=new _.gG("clearSearchHistoryEndpoint");var nwn=new _.gG("clearWatchHistoryEndpoint");var D5A=new _.gG("webSerializedServiceEndpointExtension");_.U5c=new _.gG("createCommentEndpoint");var pDB=new _.gG("createCommentReplyEndpoint");var v_0=new _.gG("performCommentActionEndpoint");var exM=new _.gG("updateCommentEndpoint");var dNJ=new _.gG("updateCommentReplyEndpoint");_.z1=new _.gG("createPlaylistServiceEndpoint");var E_A=new _.gG("deletePlaylistEndpoint");var Toe=new _.gG("deleteVideoEndpoint");var FGL=new _.gG("getReportFormEndpoint");var STn=new _.gG("modifyChannelNotificationPreferenceEndpoint");var i8W;_.hX=new _.gG("offlinePlaylistEndpoint");i8W={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 O8$;_.rB=new _.gG("offlineVideoEndpoint");O8$={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 W3c=new _.gG("pingingEndpoint");_.aSu=new _.gG("selectActiveIdentityEndpoint");var iei=new _.gG("setSettingEndpoint");var UmL=new _.gG("undoFeedbackEndpoint");var Oei=new _.gG("unsubscribeEndpoint");_.ISI=new _.gG("updatedMetadataEndpoint");var ben=function(){N5.apply(this,arguments)};
_.V(ben,N5);ben.prototype.getAssociations=function(){return[]};
ben.prototype.getTypeName=function(){return"settingEntity"};_.YTA=new _.gG("updateLocalAppSettingCommand");var mNn=new _.gG("saveImageToDeviceEndpoint");var yd2=new _.gG("shareImageCommand");var qTg=new _.gG("sharingProviderDataCommand");var jce=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(jce,_.du);var scB=[0,_.An,-1];jce.prototype.JSC$12350_serializeBinary=C6W(scB);var NT7=_.Ym(scB);var kf6=new _.gG("userMentionSuggestionRenderer");var LZ2=new _.gG("liveChatTunnelCommand");var VNc=new _.gG("showSponsorshipsGiftOfferDialogCommand");var oKi=new _.gG("sponsorshipsScrollableShelfViewModel");var JbM=new _.gG("updateUpcomingEventReminderButtonStateCommand");var GfA=new _.gG("upcomingEventReminderButtonStateRenderer");var MNi=new _.gG("subscribeEndpoint");var tNB=new _.gG("registerTasksCommand");var fhc=new _.gG("hideSnackbarCommand");var Rre=new _.gG("showDialogCommand");_.V0=new _.gG("showSheetCommand");var PAu=new _.gG("showSnackbarCommand");var x$c=function(){N5.apply(this,arguments)};
_.V(x$c,N5);x$c.prototype.getAssociations=function(){return[]};
x$c.prototype.getTypeName=function(){return"chipEntity"};var BT7=function(){N5.apply(this,arguments)};
_.V(BT7,N5);BT7.prototype.getAssociations=function(){return[]};
BT7.prototype.getTypeName=function(){return"dismissState"};_.Cv=new _.gG("avatarViewModel");var CA2=new _.gG("badgeViewModel");_.lx=new _.gG("buttonViewModel");_.HD=new _.gG("chipViewModel");var in0=new _.gG("collectionThumbnailViewModel");var Xl6=new _.gG("contentPreviewImageViewModel");var zrJ=new _.gG("decoratedAvatarViewModel");_.v2U=new _.gG("engagementBarViewModel");_.lhn=new _.gG("imageBannerViewModel");var HsJ=new _.gG("lockupContentMetadataRowExtension");_.Abg=new _.gG("lockupMetadataViewModel");_.Zsn=new _.gG("lockupViewModel");var cbc=new _.gG("avatarStackViewModel");_.wlu=new _.gG("contentMetadataViewModel");var FZ0=function(){N5.apply(this,arguments)};
_.V(FZ0,N5);FZ0.prototype.getAssociations=function(){return[]};
FZ0.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Qc2=new _.gG("pageHeaderViewModel");var gK7=new _.gG("snackbarViewModel");var uzM=new _.gG("thumbnailHoverOverlayToggleActionsViewModel");_.Ay=new _.gG("toggleButtonViewModel");var nKi=function(){N5.apply(this,arguments)};
_.V(nKi,N5);nKi.prototype.getAssociations=function(){return[]};
nKi.prototype.getTypeName=function(){return"votingEntity"};_.eQj=new _.gG("votingViewModel");var D$n=new _.gG("sectionHeaderViewModel");var U$A=new _.gG("notifyDropdownOptionSelectedCommand");var Lt0=new _.gG("listViewModel");_.o7=new _.gG("listItemViewModel");var aaL=new _.gG("toggleableListItemViewModel");var pli=new _.gG("dialogHeaderViewModel");var xzH=new _.gG("suspenseViewModel");var vMg=function(){N5.apply(this,arguments)};
_.V(vMg,N5);vMg.prototype.getAssociations=function(){return[]};
vMg.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var esB=function(){N5.apply(this,arguments)};
_.V(esB,N5);esB.prototype.getAssociations=function(){return[]};
esB.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var dZ0=function(){N5.apply(this,arguments)};
_.V(dZ0,N5);dZ0.prototype.getAssociations=function(){return[]};
dZ0.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.EMu=new _.gG("transcriptSubmitCaptionCorrectionCommand");var TD0=function(){N5.apply(this,arguments)};
_.V(TD0,N5);TD0.prototype.getAssociations=function(){return[]};
TD0.prototype.getTypeName=function(){return"buttonEntity"};var Vk0=new _.gG("unpluggedStringRunImage");var Se0=new _.gG("tabViewModel");var WOu=new _.gG("tabbedViewModel");var abg=function(){N5.apply(this,arguments)};
_.V(abg,N5);abg.prototype.getAssociations=function(){return[]};
abg.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.iRc=new _.gG("updateDescriptionAction");var ORA=new _.gG("updateToggleButtonTextAction");_.Ib7=new _.gG("autoplaySwitchButtonRenderer");var tR;_.bR6=new _.gG("multiMarkersPlayerBarRenderer");tR=new _.gG("chapterRenderer");var Yee=new _.gG("heatMarkerRenderer");var OiL=new _.gG("heatmapRenderer");var mZ2=new _.gG("smartSkipPlayerScrimOverlayRenderer");var y57=new _.gG("timedMarkerDecorationRenderer");var HnH=new _.gG("postWebToNativeMessageCommand");var fr=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(fr,_.du);fr.prototype.getMethodName=function(){return _.Vm(this,1)};var qei=[0,_.An,-2];fr.prototype.JSC$12370_serializeBinary=C6W(qei);var r5M=_.b6(fr,qei);var hs6=new _.gG("whitelistEditEndpoint");var KOc=new _.gG("clearUrlParamCommand");var $Zu=new _.gG("commerceActionCommand");_.jeM=new _.gG("getPaymentInstrumentsParamsCommand");var se0=new _.gG("getPaymentsClientTokenCommand");var NDg=new _.gG("googlePaymentBillingCommand");var kXc=new _.gG("googlePaymentPurchaseManagerCommand");_.LOA=new _.gG("logGtmCommand");var VZe=new _.gG("updateCardItemOnClickCommand");_.oMJ=new _.gG("ypcPauseSubscriptionCommand");_.J52=new _.gG("ypcResumeSubscriptionCommand");var GXA=function(){N5.apply(this,arguments)};
_.V(GXA,N5);GXA.prototype.getAssociations=function(){return[]};
GXA.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var MZ0=function(){N5.apply(this,arguments)};
_.V(MZ0,N5);MZ0.prototype.getAssociations=function(){return[]};
MZ0.prototype.getTypeName=function(){return"commerceCartListEntity"};var tZu=function(){N5.apply(this,arguments)};
_.V(tZu,N5);tZu.prototype.getAssociations=function(){return[]};
tZu.prototype.getTypeName=function(){return"iconBadgeEntity"};var fb6=function(){N5.apply(this,arguments)};
_.V(fb6,N5);fb6.prototype.getAssociations=function(){return[]};
fb6.prototype.getTypeName=function(){return"pdpStateEntity"};var RsM=function(){N5.apply(this,arguments)};
_.V(RsM,N5);RsM.prototype.getAssociations=function(){return[]};
RsM.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var R20=new _.gG("ypcOffersEndpoint");var P$E=new _.gG("cardItemRenderer"),xZB=new _.gG("cardItemTextRenderer");var BDB=new _.gG("commerceCartItemQuantityPickerRenderer");var C$6=new _.gG("linkCardRenderer");var xcO=new _.gG("quantityIncrementerButtonViewModel");var Xhg=new _.gG("quantityIncrementerViewModel");var zs0=new _.gG("themedImageViewModel");_.lbg=new _.gG("ypcCancelRecurrenceEndpoint");var HRn=new _.gG("ypcCompleteTransactionEndpoint");_.A5M=new _.gG("ypcGetCartEndpoint");_.nv=new _.gG("ypcGetOffersEndpoint");_.ZG=new _.gG("ypcHandleTransactionEndpoint");var ZRM=new _.gG("ypcLogWalletAnalyticDataEndpoint");_.c5c=new _.gG("ypcRedeemCodeEndpoint");var whA=new _.gG("ypcUpdateFopEndpoint");e6(vD(1),UQ(4));J20((new MessageChannel).port2);var FO7=function(){this.register=new Map},Fu$=function(v,e,d){v=v+"_"+e;
cD.register.has(v)?d=cD.register.get(v):(d=d(),cD.register.set(v,d));return d},Qei=function(v){v=_.a(v.register.values());
for(var e=v.next();!e.done;e=v.next())_.W0(e.value,"ABORTED")};
FO7.prototype.clear=function(){Qei(this);this.register.clear()};
var cD=new FO7;var VTU=Date.now().toString();var G3U=JCM();var CP0={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 gMM,C2;gMM=1;C2=function(v){this.veData=v};
_.Jg=function(v){return new C2({trackingParams:v})};
_.bH=function(v,e,d,E,T,S){var O=gMM++;return new C2({veType:v,veCounter:O,elementIndex:d,dataElement:e,youtubeData:E,jspbYoutubeData:T,loggingDirectives:S})};
_.W=C2.prototype;
_.W.getAsJson=function(){var v={};this.veData.trackingParams!==void 0?v.trackingParams=this.veData.trackingParams:(v.veType=this.veData.veType,this.veData.veCounter!==void 0&&(v.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(v.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(v.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(v.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(v.isCounterfactual=!0);
return v};
_.W.getAsJspb=function(){var v=new DGg;this.veData.trackingParams!==void 0?v.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.tn(v,2,this.veData.veType),this.veData.veCounter!==void 0&&_.tn(v,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.tn(v,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.iZ(v,5,!0));if(this.veData.dataElement!==void 0){var e=this.veData.dataElement.getAsJspb();_.hr(v,7,e)}this.veData.youtubeData!==void 0&&_.hr(v,8,this.veData.jspbYoutubeData);
return v};
_.W.toString=function(){return JSON.stringify(this.getAsJson())};
_.W.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.W.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.pw("yt_logging_screen.getRootVeType",PPt);_.pw("yt_logging_screen.getCurrentCsn",_.zz);_.pw("yt_logging_screen.getCttAuthInfo",ln);_.pw("yt_logging_screen.setCurrentScreen",_.HP);var uWn=function(){this.events=new Map},nM6=function(v){var e=[];
v=_.a(v.events.values());for(var d=v.next();!d.done;d=v.next())e.push(d.value);return e};
uWn.prototype.clear=function(){this.events.clear()};var UZE=function(){this.logTransport=new DZE;this.loggedEventRegister=new uWn;this.unloggedEventRegister=new uWn;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12407_flushTimer=new _.Ow(this.flushInterval);this.JSC$12407_flushTimer.listen("tick",this.flush,!1,this)};
UZE.prototype.flush=function(){if(this.eventsCount){var v={loggedEvents:nM6(this.loggedEventRegister),unloggedEvents:nM6(this.unloggedEventRegister)};if(_.N("export_player_version_to_ytconfig")){var e;(e=_.Bb("PLAYER_CLIENT_VERSION"))?(e=e.split("-")[0].replace(/\./g,""),e=isNaN(Number(e))?"0":e):e="";var d=_.Bb("PLAYER_CLIENT_VERSION");if(d){d=d.split("-");var E="";d.length>1&&(E=d[d.length-1]);d=Lut(E.startsWith("canary_experiment")?"canary":E.startsWith("canary_control")?"control":"none")}else d=
"CLIENT_CANARY_STATE_UNKNOWN";v.dimensions={playerClientVersion:e,playerCanaryState:d}}this.logTransport.flush(v);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12407_flushTimer.enabled&&this.JSC$12407_flushTimer.stop()}};
var ph7=function(v){w$==null&&(w$=new UZE);var e=w$;var d=e.loggedEventRegister;v.dimensions=v.dimensions||{};v.dimensions.csn=_.zz()||"";var E=lcH(v.dimensions).join(";");if(v.records!=null)if(d.events.has(E)){var T;(T=d.events.get(E).records)==null||T.push.apply(T,_.t7(v.records))}else d.events.set(E,v);e.JSC$12407_flushTimer.enabled||e.JSC$12407_flushTimer.start();e.eventsCount++;e.eventsCount>=100&&e.flush()};var DZE=function(){};
DZE.prototype.flush=function(v,e){_.N("enable_client_sli_logging")&&_.tI("sliEventBatch",v,{sendIsolatedPayload:!!e})};var w$;var eB7;eB7=function(v){var e=vXB;v=v===void 0?{}:v;e=e.name;var d=w6t("SUCCESS");ph7({dimensions:v,records:[{name:e,state:"SLI_STATE_END",status:d}]})};
_.Q4H=function(v,e,d,E){this.name=v;this.sliId=e;this.timeoutMs=d;this.statusOnTimeout=E;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Q4H.prototype.getId=function(){return this.sliId};
_.Sd=function(v,e){e=e===void 0?{}:e;v.ongoing||(v.ongoing=!0,v.dimensions=e,v.logSliId=fxJ(),ph7({dimensions:v.dimensions,records:[{name:v.name,state:"SLI_STATE_START",sliId:v.logSliId}]}),v.timeoutMs>0&&(v.timeoutHandle=setTimeout(function(){_.W0(v,v.statusOnTimeout)},v.timeoutMs)))};
_.W0=function(v,e){v.ongoing&&(v.timeoutMs>0&&clearTimeout(v.timeoutHandle),v.ongoing=!1,e={dimensions:v.dimensions,records:[{name:v.name,status:w6t(e),state:"SLI_STATE_END",sliId:v.logSliId}]},cD.register.delete(v.name+"_"+v.sliId),ph7(e))};var vXB=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var dJA=function(){N5.apply(this,arguments)};
_.V(dJA,N5);dJA.prototype.getAssociations=function(){return[]};
dJA.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var iTL=new _.gG("highlightTextDecoratorColorMapExtension");var WBj=new _.gG("styleRunColorMapExtension");var vZ$=_.Z9(["data-"]),EZj={};var SY0={};var FY=function(v){this.wrappedPromise_=v===void 0?null:v;this.state_=0;this.JSC$12439_value_=null};
FY.prototype.then=function(v,e,d){return this.wrappedPromise_?this.wrappedPromise_.then(v,e,d):this.state_===1&&v?(v=v.call(d,this.JSC$12439_value_))&&typeof v.then==="function"?v:_.QM(v):this.state_===2&&e?(v=e.call(d,this.JSC$12439_value_))&&typeof v.then==="function"?v:_.EXJ(v):this};
FY.prototype.getValue=function(){return this.JSC$12439_value_};
FY.prototype.isRejected=function(){return this.state_==2};
wuM(FY);_.EXJ=function(v){var e=new FY;v=v===void 0?null:v;e.state_=2;e.JSC$12439_value_=v===void 0?null:v;return e};
_.QM=function(v){var e=new FY;v=v===void 0?null:v;e.state_=1;e.JSC$12439_value_=v===void 0?null:v;return e};var jA0="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var TK6=["load","abort","error"],g$=function(v,e,d){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12459_maxAspectRatio_=v;this.disableAnimation_=e===void 0?!1:e;this.disableExifRotation_=d===void 0?!1:d;this.JSC$12459_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12459_reject_=this.resolve_=null};
g$.prototype.transform=function(v){var e=this;this.mime_=v.type;At(UdE(v),this.dataUrlRead_,this.readError_,this);At(Ddg(v.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(d,E){e.resolve_=d;e.JSC$12459_reject_=E})};
g$.prototype.dataUrlRead_=function(v){this.dataUrl_=v;this.angle_!=null&&SF0(this)};
g$.prototype.exifRead_=function(v){if(this.disableExifRotation_)this.angle_=0;else{a:if(v=new DataView(v),v.byteLength<2||v.getUint16(0)!==65496)v=-2;else{for(var e=2,d=v.byteLength;e<d;){var E=v.getUint16(e),T=v.getUint16(e+2);if(E===65505){e+=4;E=v.getUint32(e);T=v.getUint16(e+4);if(E!==1165519206||T!==0)break;e+=6;E=v.getUint16(e)===18761;e+=v.getUint32(e+4,E);T=v.getUint16(e,E);e+=2;for(var S=0;S<T;S++){if(v.getUint16(e,E)===274){e+=8;v=v.getUint16(e,E);break a}e+=12}}else if(E>>8!==255)break;
else e+=T+2}v=-1}switch(v){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&&SF0(this)};
g$.prototype.readError_=function(){this.JSC$12459_reject_()};
var SF0=function(v){VK(v.JSC$12459_image_,TK6,v.completeTransform_,!1,v);v.JSC$12459_image_.src=_.xm(v.dataUrl_).toString();v.JSC$12459_image_.src!=P$.toString()&&v.JSC$12459_image_.src.substr(0,11)==="data:image/"||v.JSC$12459_reject_()};
g$.prototype.completeTransform_=function(){if(this.JSC$12459_image_.src!=P$.toString()){var v=_.xm(this.dataUrl_),e=this.JSC$12459_image_.naturalHeight?this.JSC$12459_image_.naturalWidth/this.JSC$12459_image_.naturalHeight:null;this.invalidAspectRatio=e>this.JSC$12459_maxAspectRatio_||e<1/this.JSC$12459_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var d=this.JSC$12459_image_.naturalWidth,E=this.JSC$12459_image_.naturalHeight,T=e=0,S=this.JSC$12459_image_.naturalHeight?this.JSC$12459_image_.naturalWidth/
this.JSC$12459_image_.naturalHeight:null;S>this.JSC$12459_maxAspectRatio_?(d=this.JSC$12459_maxAspectRatio_*E,e=(d-this.JSC$12459_image_.naturalWidth)/2,this.cropped=!0):S<1/this.JSC$12459_maxAspectRatio_?(E=this.JSC$12459_maxAspectRatio_*d,T=(E-this.JSC$12459_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)S=d,d=E,E=S,S=e,e=T,T=S;switch(this.angle_){case 90:T-=d;break;case 180:e-=d;T-=E;break;case 270:e-=
E}this.cropped||this.angle_%360!==0?(v=document.createElement("canvas"),v.width=d||1,v.height=E||1,this.JSC$12459_image_.naturalWidth&&this.JSC$12459_image_.naturalHeight&&(d=v.getContext("2d"),d.rotate(Math.PI/180*this.angle_),d.drawImage(this.JSC$12459_image_,e,T,this.JSC$12459_image_.naturalWidth,this.JSC$12459_image_.naturalHeight)),this.transformedData=_.xm(v.toDataURL(this.mime_))):this.transformedData=v}else this.transformedData=v;this.resolve_(this)}};var ux=function(v,e){_.bI.call(this,v);this.value=e};
_.V(ux,_.bI);
var n6=function(v,e,d,E,T,S,O){O=O===void 0?!1:O;_.r6.call(this);var b=this;this.JSC$12464_url_=v;this.channelId_=e;this.maxFileSizeMb_=d;this.JSC$12464_maxAspectRatio_=E;this.dropZoneEl_=T;this.rejectInvalidAspectRatio_=O;this.selectButtonEl_=S;this.JSC$12464_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new OA(this.dropZoneEl_);this.selectOverlay_=new Ii(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12464_image_=this.transfer_=null;this.handler_=new _.Im(this);_.Yh(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(S,"click",function(){b.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.V(n6,_.r6);n6.prototype.disposeInternal=function(){for(var v=this.selectButtonEl_.nextSibling;v&&v.parentNode&&v.tagName=="INPUT";)v.parentNode.removeChild(v),v=this.selectButtonEl_.nextSibling;this.cancel();_.r6.prototype.disposeInternal.call(this)};
n6.prototype.uploadPromise=function(){if(this.JSC$12464_image_==null)return null;this.uploadPromise_||WMc(this);return this.uploadPromise_};
n6.prototype.cancel=function(){aKA(this);this.JSC$12464_image_=null};
var aKA=function(v){v.transfer_&&v.transfer_.cancel();v.transfer_=null;v.uploadPromise_=null;v.resolve_=null;v.JSC$12464_reject_=null},WMc=function(v){aKA(v);
v.transfer_=_.qS6(v.JSC$12464_url_,{"X-YouTube-ChannelId":v.channelId_},v.JSC$12464_image_);v.handler_.listenOnce(v.transfer_,"l",v.JSC$12466_onUploadComplete_);v.handler_.listenOnce(v.transfer_,"n",v.onUploadError_);v.transfer_.run();v.uploadPromise_=new Promise(function(e,d){v.resolve_=e;v.JSC$12464_reject_=d})};
_.W=n6.prototype;_.W.onChange_=function(v){v.files.length&&(this.JSC$12464_image_=v.files[0],this.JSC$12464_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12464_image_=null,this.dispatchEvent(new ux("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(WMc(this),(new g$(this.JSC$12464_maxAspectRatio_)).transform(this.JSC$12464_image_).then((0,_.LX)(this.onPreview_,this),(0,_.LX)(this.onPreviewError_,this))))};
_.W.onPreview_=function(v){if(v.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12464_image_=null),this.dispatchEvent(new ux("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;v.cropped&&this.dispatchEvent(new ux("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new ux("yt.comments.ImageUploadOverlay.CHANGE_EVENT",v.transformedData))};
_.W.onPreviewError_=function(){this.JSC$12464_image_=null;this.dispatchEvent(new ux("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.W.onHover_=function(v){v.stopPropagation();v.preventDefault();if(v.type==="dragover")v=!0;else if(v.type==="dragleave")v=!1;else return;this.dispatchEvent(new ux("yt.comments.ImageUploadOverlay.HOVER_EVENT",v))};
_.W.JSC$12466_onUploadComplete_=function(){var v=(0,_.qaA)(this.transfer_.getResponseText());this.resolve_(v.encryptedBlobId)};
_.W.onUploadError_=function(){this.JSC$12464_reject_();aKA(this)};var ig7=function(v){v=v||{};var e={},d={};this.url=v.url||"";this.args=v.args||_.f0.clone(e);this.assets=v.assets||{};this.attrs=v.attrs||_.f0.clone(d);this.fallback=v.fallback||null;this.fallbackMessage=v.fallbackMessage||null;this.html5=!!v.html5;this.disable=v.disable||{};this.loaded=!!v.loaded;this.messages=v.messages||{}};
ig7.prototype.clone=function(){var v=new ig7,e;for(e in this)if(this.hasOwnProperty(e)){var d=this[e];_.wn(d)=="object"?v[e]=_.f0.clone(d):v[e]=d}return v};var OgI,IKI,bgi,wp,mJ2,yue,qFi,rui,hBg,KM6,$Je,jPE,sPI,NKM,kuM,LM6,V4i,oXJ,JuM,Guc,M4g,t4u,fKi,RB2,PV6,xJ2,BKE,CVc,Xk2,ngM,zB7,lKn,Hgc,Aug,Zgu,cuM,wk7,FM6,QPg,gXA,uRH,uFI,nXE,DJ6,UJi,pkJ,v1g,ene,dpB,E1B,TYe,SCA,Ww0,ad0,iEE,OEn,DG,IdI,bE0,YC6,mpB,yxJ,qCn,rxI,hnA,Kw6,$pM,jjM,sjg,NYI,kT2,Lwc,Vqu,o1B,Jx2,GTg,QY$,Mqu,tq7,fd2,Rne,PO7,xp6,BYi,COB,X7g,zn7,ld2,HEB,AxA,ZE0,cxu,w7n,FwA,Qjc,g10,uUi,n1c,Dp2,Upc,p7I,v7A;OgI=["account/accounts_list"];IKI=["acknowledge_channel_tou_strike"];bgi=["notification/add_upcoming_event_reminder"];
_.YFA=["att/get"];wp=["browse","music/browse","unplugged/browse"];mJ2=["channel/claim_legacy_youtube_channel"];yue=["history/clear_search_history"];qFi=["history/clear_watch_history"];rui=["comment/perform_comment_action"];hBg=["comment/get_comment_replies"];KM6=["ypc/commerce_action"];$Je=["backstage/create_post"];jPE=["live/create_broadcast"];sPI=["channel/create_channel"];NKM=["comment/create_comment_reply"];kuM=["comment/create_comment"];LM6=["live_chat/create_poll"];V4i=["playlist/create"];
oXJ=["decorate_message"];JuM=["live_chat/delete_message"];Guc=["playlist/delete"];M4g=["video/delete"];t4u=["like/dislike"];fKi=["dismissal/dismiss"];RB2=["flag/flag"];PV6=["flow"];xJ2=["account/account_menu"];BKE=["playlist/get_add_to_playlist"];CVc=["get_answer"];Xk2=["channel/get_channel_creation_form"];ngM=["offline/get_download_action"];zB7=["kids/get_kids_blocklist_picker"];lKn=["live_chat/get_item_context_menu"];Hgc=["live_chat/get_live_chat_message_buy_flow"];Aug=["live_chat/get_live_chat_replay"];
Zgu=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];cuM=["live_chat/get_live_chat_super_sticker_buy_flow"];wk7=["notification/get_notification_menu"];FM6=["playlist/get_settings_editor"];QPg=["backstage/get_post_video_preview"];gXA=["account/get_profile_card"];uRH=["share/get_share_panel"];uFI=["share/get_sharing_provider_data"];nXE=["get_survey"];DJ6=["notification/get_unseen_count"];UJi=["get_user_mention_suggestions"];pkJ=["get_watch"];v1g=["guide"];
ene=["feedback"];dpB=["kids/update_blacklist"];E1B=["like/like"];TYe=["live_chat/live_chat_action"];SCA=["live_chat/manage_user"];Ww0=["video_manager/metadata_update"];ad0=["live_chat/moderate"];iEE=["notification/modify_channel_preference"];OEn=["notification/opt_out"];DG=["get_panel","get_posts_by_host_panel"];IdI=["player"];bE0=["browse/edit_playlist"];YC6=["notification/record_interactions"];mpB=["reel/reel_item_watch"];yxJ=["reel/reel_watch_sequence"];qCn=["like/removelike"];rxI=["notification/remove_upcoming_event_reminder"];
hnA=["flag/get_form"];Kw6=["miniapp/report_value"];$pM=["navigation/resolve_url"];jjM=["channel/reveal_business_email"];sjg=["in_video/search"];NYI=["search","sfv/search","unplugged/search"];kT2=["live_chat/send_message"];Lwc=["live_chat/send_live_chat_vote"];Vqu=["account/set_setting"];o1B=["submit_caption_correction"];Jx2=["submit_form"];GTg=["subscription/subscribe"];QY$=["get_transcript"];Mqu=["resolve_location","unplugged/resolve_location"];tq7=["subscription/unsubscribe"];fd2=["backstage/update_post"];
Rne=["channel_edit/update_channel_page_settings"];PO7=["comment/update_comment_reply"];xp6=["comment/update_comment"];BYi=["comment/update_comments_settings"];COB=["creator/update_creator_channel"];X7g=["pdg/update_enablement"];zn7=["updated_metadata"];ld2=["channel_edit/validate_channel_handle"];HEB=["verify_age"];AxA=["next","unplugged/watch_next"];ZE0=["whitelist/edit"];cxu=["ypc/cancel_recurrence"];w7n=["ypc/complete_transaction"];FwA=["ypc/get_cart"];Qjc=["ypc/get_fix_instrument_params"];
g10=["ypc/get_offers"];uUi=["ypc/get_payment_instruments_params"];n1c=["ypc/handle_transaction"];Dp2=["ypc/log_payment_server_analytics"];Upc=["ypc/pause_subscription"];p7I=["ypc/redeem_code"];v7A=["ypc/resume_subscription"];var e1E=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,
21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,
89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,
72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,
211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,
136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,
195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,
149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,
195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,
68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,
271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,
47896,122629,186204,222824,271673,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,
96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,
93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var jX=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.pw("yt.msgs_",jX);var UA=new _.nC("ACTION_ROUTER_TOKEN");_.p6=function(){this.autonavState_=_.N("kevlar_is_pupi_enabled")?2:RDj()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.p6.prototype.getState=function(){return this.autonavState_};
_.p6.prototype.pause=function(v){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=v):this.autonavState_==1&&(this.disabledAutonavPauseReason_=v)};
_.p6.prototype.setState=function(v,e,d){e&&(this.autoplayChangedByUser=!0);e=this.autonavState_===3||v===3;this.autonavState_!=v&&(this.autonavState_=v,v!=3&&_.P0t(v==2),v=_.N("kevlar_is_pupi_enabled")?d||e:!0,_.FT.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,v,d))};
_.p6.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Uk(_.p6);var vH=function(){this.hasRun=!1};var ei={},wX$=(ei.auto_search="LATENCY_ACTION_AUTO_SEARCH",ei.ad_to_ad="LATENCY_ACTION_AD_TO_AD",ei.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",ei.app_startup="LATENCY_ACTION_APP_STARTUP",ei.browse="LATENCY_ACTION_BROWSE",ei.cast_splash="LATENCY_ACTION_CAST_SPLASH",ei.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",ei.channels="LATENCY_ACTION_CHANNELS",ei.chips="LATENCY_ACTION_CHIPS",ei.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",ei.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
ei.editor="LATENCY_ACTION_EDITOR",ei.embed="LATENCY_ACTION_EMBED",ei.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",ei.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",ei.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",ei.explore="LATENCY_ACTION_EXPLORE",ei.favorites="LATENCY_ACTION_FAVORITES",ei.home="LATENCY_ACTION_HOME",ei.inboarding="LATENCY_ACTION_INBOARDING",ei.landing="LATENCY_ACTION_LANDING",ei.learning="LATENCY_ACTION_LEARNING",
ei.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",ei.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",ei.library="LATENCY_ACTION_LIBRARY",ei.live="LATENCY_ACTION_LIVE",ei.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",ei.management="LATENCY_ACTION_MANAGEMENT",ei.mini_app="LATENCY_ACTION_MINI_APP_PLAY",ei.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",ei.onboarding="LATENCY_ACTION_ONBOARDING",ei.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
ei.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",ei.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",ei.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",ei.prebuffer="LATENCY_ACTION_PREBUFFER",ei.prefetch="LATENCY_ACTION_PREFETCH",ei.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",ei.profile_switcher="LATENCY_ACTION_LOGIN",ei.projects="LATENCY_ACTION_PROJECTS",ei.reel_watch="LATENCY_ACTION_REEL_WATCH",ei.results="LATENCY_ACTION_RESULTS",ei.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
ei.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ei.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",ei.review="LATENCY_ACTION_REVIEW",ei.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",ei.search_ui="LATENCY_ACTION_SEARCH_UI",ei.search_suggest="LATENCY_ACTION_SUGGEST",ei.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",ei.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",ei.seek="LATENCY_ACTION_PLAYER_SEEK",ei.settings="LATENCY_ACTION_SETTINGS",ei.store="LATENCY_ACTION_STORE",
ei.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",ei.tenx="LATENCY_ACTION_TENX",ei.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",ei.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",ei.watch="LATENCY_ACTION_WATCH",ei.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",ei["watch,watch7"]="LATENCY_ACTION_WATCH",ei["watch,watch7_html5"]="LATENCY_ACTION_WATCH",ei["watch,watch7ad"]="LATENCY_ACTION_WATCH",ei["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",ei.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
ei.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",ei.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",ei.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",ei.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",ei.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",ei.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",ei.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",ei),Wkt=0;var YQj=function(v,e){ss.call(this,1,arguments);this.timer=e};
_.V(YQj,ss);var b$U=new mrj("aft-recorded",YQj);var uPH=_.TO.ytLoggingGelSequenceIdObj_||{};_.pw("ytLoggingGelSequenceIdObj_",uPH);var ET=_.TO.ytLoggingLatencyUsageStats_||{};_.pw("ytLoggingLatencyUsageStats_",ET);var TJ=function(){this.cleanupJob=0},U6U=function(){TJ.instance||(TJ.instance=new TJ);
return TJ.instance};
_.W=TJ.prototype;_.W.baseline=function(v,e,d){Si(this,"baseline_"+v)||_.tI("latencyActionBaselined",{clientActionNonce:v},{timestamp:e,cttAuthInfo:d})};
_.W.tick=function(v,e,d,E){Si(this,"tick_"+v+"_"+e)||_.tI("latencyActionTicked",{tickName:v,clientActionNonce:e},{timestamp:d,cttAuthInfo:E})};
_.W.info=function(v,e,d){var E=Object.keys(v).join("");Si(this,"info_"+E+"_"+e)||(v=Object.assign({},v),v.clientActionNonce=e,_.tI("latencyActionInfo",v,{cttAuthInfo:d}))};
_.W.jspbInfo=function(v,e,d){for(var E="",T=0;T<RC(v).length;T++)RC(v)[T]!==void 0&&(E=T===0?E.concat(""+T):E.concat("_"+T));Si(this,"info_"+E+"_"+e)||(_.L0(v,2,e),e={cttAuthInfo:d},d=_.N("jspb_sparse_encoded_pivot")?new kf([{}]):new kf,_.$m(d,7,Ywi,v),nZM("latencyActionInfo",d,e))};
_.W.span=function(v,e,d){var E=Object.keys(v).join("");Si(this,"span_"+E+"_"+e)||(v.clientActionNonce=e,_.tI("latencyActionSpan",v,{cttAuthInfo:d}))};
var Si=function(v,e){ET[e]=ET[e]||{count:0};var d=ET[e];d.count++;d.time=(0,_.E$)();v.cleanupJob||(v.cleanupJob=_.LI(_.RM,function(){var E=(0,_.E$)(),T;for(T in ET)ET[T]&&E-ET[T].time>6E4&&delete ET[T];v&&(v.cleanupJob=0)},5E3));
return d.count>5?(d.count===6&&Math.random()*1E5<1&&(d=new _.kL("CSI data exceeded logging limit with key",e.split("_")),e.indexOf("plev")>=0||_.xf(d)),!0):!1};var dw7,E7E;dw7=window;E7E=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Mg=dw7.performance||dw7.mozPerformance||dw7.msPerformance||dw7.webkitPerformance||new E7E;var Ie0=!1,vlH=!1,mS7=(0,_.LX)(_.Mg.clearResourceTimings||_.Mg.webkitClearResourceTimings||_.Mg.mozClearResourceTimings||_.Mg.msClearResourceTimings||_.Mg.oClearResourceTimings||_.mv,_.Mg);var TvM=window;TvM.ytcsi&&(TvM.ytcsi.infoGel=_.BF,TvM.ytcsi.tick=_.zE);var LkU=function(v){ss.call(this,1,arguments);this.csn=v};
_.V(LkU,ss);var KIt=new mrj("screen-created",LkU),H$M=[],kBM=le0,A90=0,cF=new Map,V$j=new Map,ol0=new Map;var Gt7=Symbol("wf"),e7=new WeakMap;var WH=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},L1=function(){WH.instance||(WH.instance=new WH);
return WH.instance};
_.W=WH.prototype;_.W.setClient=function(v){this.client=v};
_.W.JSC$12545_newScreen=function(){this.clear();this.csn=_.zz()};
_.W.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.W.reportShown=function(v,e,d){var E=this.JSC$12545_getTrackingParams(v),T=v.visualElement?v.visualElement:E;e=this.shownElements.has(T);var S=this.visibleState.get(T);this.shownElements.add(T);this.visibleState.set(T,!0);v.impressionLog&&!e&&v.impressionLog();if(E||v.visualElement)if(d=S22(this,v,d))if(T=Wmg(this,v),ag(this,v)||T){E=v.visualElement?v.visualElement:_.Jg(E);var O=v.interactionLoggingClientData;T||e?ag(this,v)&4?S||xSW(this.client,d,E,O):ag(this,v)&1&&!e&&feO(this.client,d,E,O):feO(this.client,
d,E,O)}};
_.W.reportHidden=function(v,e,d){var E=this.JSC$12545_getTrackingParams(v),T=v.visualElement?v.visualElement:E;e=this.hiddenElements.has(T);var S=this.visibleState.get(T);this.hiddenElements.add(T);this.visibleState.set(T,!1);if(S===!1)return!0;if(!E&&!v.visualElement)return!1;d=S22(this,v,d);if(!d||!ag(this,v)&&Wmg(this,v))return!1;E=v.visualElement?v.visualElement:_.Jg(E);ag(this,v)&8?Bst(this.client,d,E):ag(this,v)&2&&!e&&(v=this.client,e=Zm({cttAuthInfo:ln(d)||void 0},d),E={csn:d,ve:E.getAsJson(),
eventType:2},d==="UNDEFINED_CSN"?Fq("visualElementHidden",e,E):v?GN("visualElementHidden",E,v,e):_.tI("visualElementHidden",E,e));return!0};
_.W.JSC$12545_getTrackingParams=function(v){var e=this.getData(v),d,E;if(_.N("il_use_view_model_logging_context")&&(e==null?0:(d=e.context)==null?0:(E=d.loggingContext)==null?0:E.loggingDirectives))return e.context.loggingContext.loggingDirectives.trackingParams||"";var T,S;if(e==null?0:(T=e.rendererContext)==null?0:(S=T.loggingContext)==null?0:S.loggingDirectives)return e.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(e==null?0:e.loggingDirectives)return e.loggingDirectives.trackingParams||
"";var O;return((O=v.veContainer)==null?0:O.trackingParams)?v.veContainer.trackingParams:(e==null?void 0:e.trackingParams)||""};
_.W.JSC$12545_elementShouldLogGesture=function(v,e){v=this.getData(v);return!!((Math.floor(Number(v&&v.loggingDirectives&&v.loggingDirectives.gestures&&v.loggingDirectives.gestures.types||""))||0)&e)};
_.W.JSC$12545_getNearestParentVe=function(v){var e=this.JSC$12545_getTrackingParams(v);return v.visualElement?v.visualElement:e?_.Jg(e):v.parentElement?this.JSC$12545_getNearestParentVe(v.parentElement):null};
var S22=function(v,e,d){var E=_.zz(d);return v.csn===null||E===v.csn||d?E:(v=new _.kL("VisibilityLogger called before newScreen",{caller:e.tagName,previous_csn:v.csn,current_csn:E}),_.xf(v),null)};
WH.prototype.getData=function(v){var e,d=v.data||((e=v.props)==null?void 0:e.data);if(!d||v.isWebComponentWrapper){var E;d=(E=e7.get(v))==null?void 0:E[Gt7]}return d};
var Wmg=function(v,e){var d;return!((d=v.getData(e))==null||!d.loggingDirectives)},ag=function(v,e){v=v.getData(e);
return Math.floor(Number(v&&v.loggingDirectives&&v.loggingDirectives.visibility&&v.loggingDirectives.visibility.types||""))||1};var ij;ij=function(){};
_.j2=function(){ij.instance||(ij.instance=new ij);return ij.instance};
ij.prototype.setClient=function(v){_.Hb(L1().setClient).bind(L1())(v)};
_.a36=function(){_.j2();_.Hb(L1().JSC$12545_newScreen).bind(L1())()};
ij.prototype.clear=function(){_.Hb(L1().clear).bind(L1())()};
ij.prototype.reportShown=function(v,e,d){_.Hb(L1().reportShown).bind(L1())(v,e,d)};
ij.prototype.reportHidden=function(v,e,d){return _.Hb(L1().reportHidden).bind(L1())(v,e,d)};
var aWH=function(v,e){return _.Hb(L1().JSC$12545_getTrackingParams).bind(L1())(e)},MS$=function(v,e){return _.Hb(L1().JSC$12545_getNearestParentVe).bind(L1())(e)};var OT,ijE;OT=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};
_.NC=function(){OT.instance||(OT.instance=new OT);return OT.instance};
OT.prototype.setClient=function(v){this.client=v};
ijE=function(v,e,d){d=d===void 0?{}:d;_.Hb(function(){var E,T,S,O=((E=_.L(e==null?void 0:e.commandMetadata,_.$B))==null?void 0:E.rootVe)||((T=_.L(e==null?void 0:e.commandMetadata,UYJ))==null?void 0:(S=T.screenVisualElement)==null?void 0:S.uiType);if(O){E=_.L(e==null?void 0:e.commandMetadata,Z6B);if(E==null?0:E.parentTrackingParams){var b=_.Jg(E.parentTrackingParams);if(E.parentCsn)var Y=E.parentCsn}else d.clickedVisualElement?b=d.clickedVisualElement:e.clickTrackingParams&&(b=_.Jg(e.clickTrackingParams));
a:{E=_.L(e,_.p2);T=_.L(e,jjL);if(E){if(T=x60(E,"VIDEO")){E={token:T,videoId:E.videoId};break a}}else if(T&&(E=x60(T,"PLAYLIST"))){E={token:E,playlistId:T.playlistId};break a}E=void 0}d=Object.assign({},{cttAuthInfo:E,parentCsn:Y},d);if(_.N("expectation_logging")){var q;d.loggingExpectations=((q=_.L(e==null?void 0:e.commandMetadata,UYJ))==null?void 0:q.loggingExpectations)||void 0}_.Ig(v,O,b,d)}else _.xf(new _.kL("Error: Trying to create a new screen without a rootVeType",e))})()};
_.Ig=function(v,e,d,E){E=E===void 0?{}:E;_.Hb(function(){e1E.includes(e)||(_.xf(new _.kL("createClientScreen() called with a non-page VE",e)),e=83769);E.isHistoryNavigation||(v.forwardHistoryStack=[],v.backHistoryStack.push({rootVe:e,key:E.key||""}));v.graftQueue=[];v.stateChangedQueue=[];E.dataPromises?Oje(v,e,d,E):I3n(v,e,d,E)})()};
_.bjn=function(v,e,d){d=d===void 0?0:d;_.Hb(function(){e.then(function(E){v.pendingScreenCreation.has(d)&&v.pendingScreenFn&&v.pendingScreenFn();var T=_.zz(d),S=_.Xf(d);if(T&&S){var O={automatedLogEventSource:3},b;(E==null?0:(b=E.response)==null?0:b.trackingParams)&&wV(v.client,T,S,_.Jg(E.response.trackingParams),!1,O);var Y;(E==null?0:(Y=E.playerResponse)==null?0:Y.trackingParams)&&wV(v.client,T,S,_.Jg(E.playerResponse.trackingParams),!1,O)}})})()};
OT.prototype.graftServerVe=function(v,e,d){var E=this;return _.Hb(function(){var T=_.Jg(v);_.bj(E,T,e,d);return T})()};
_.tSS=function(v,e,d,E){return _.N("enable_client_ve_spec")&&e.clientVeSpec?(e=_.bH(e.clientVeSpec.uiType,void 0,e.clientVeSpec.elementIndex,e.clientVeSpec.clientYoutubeData,void 0,e),_.bj(v,e,d,E)?e:null):e.trackingParams?v.graftServerVe(e.trackingParams,d,E):null};
_.s_=function(v,e,d,E){return _.Hb(function(){if(!e.veType)return _.PV(new _.kL("Error: Trying to graft a client VE without a veType.")),null;if(e.visibilityTypes){var T=e.visibilityTypes.reduce(function(S,O){return S|O});
T={visibility:{types:String(T)}}}T=_.bH(e.veType,e.visualElement,e.elementIndex,e.clientYouTubeData,void 0,T);return _.bj(v,T,d,E)?T:null})()};
_.bj=function(v,e,d,E){E=E===void 0?0:E;return _.Hb(function(){if(v.pendingScreenCreation.has(E))return v.graftQueue.push([e,d]),!0;var T=_.zz(E),S=d||_.Xf(E);if(T&&S){if(_.N("combine_ve_grafts")){var O=v.cachedVisualElements.get(S.toString());O?O.push(e):(v.cachedRootVisualElements.set(S.toString(),S),v.cachedVisualElements.set(S.toString(),[e]));v.attachTimeout||(v.attachTimeout=_.LI(_.RM,function(){Y2g(v,T)},1200))}else wV(v.client,T,S,e);
return!0}return!1})()};
_.Y_=function(v,e,d){d=d===void 0?0:d;var E=v.recurringGrafts.get(d)||new Map;if(_.N("smarter_ve_dedupping"))for(var T=Array.from(E.keys()),S=0;S<T.length;S++){var O=void 0,b=void 0;var Y=e;var q=T[S];q.isClientVe()&&Y.isClientVe()?(O=Y.getAsJson(),b=q.getAsJson(),Y=O.veType!==b.veType||O.elementIndex!==b.elementIndex||O.dataElement!==b.dataElement||Y.getLoggingDirectives()!==q.getLoggingDirectives()?!1:!0):Y=q.veData.trackingParams!==void 0&&Y.veData.trackingParams!==void 0?((b=Y.veData)==null?void 0:
b.trackingParams)===((O=q.veData)==null?void 0:O.trackingParams):!1;if(Y)return}else if(E.has(e))return;E.set(e,void 0);v.recurringGrafts.set(d,E);_.zz(d)==="UNDEFINED_CSN"||v.pendingScreenCreation.has(d)||_.bj(v,e,void 0,d)};
_.m3=function(v,e,d,E){E=_.zz(E===void 0?0:E);if(!E)return!1;XA$(v.client,E,e,d);return!0};
_.yV=function(v,e,d,E){if(!e)return!1;E=_.zz(E===void 0?0:E);if(!E)return!1;XA$(v.client,E,_.Jg(e),d);return!0};
_.ca=function(v,e){var d=e.getScreenLayer&&e.getScreenLayer();if(e.visualElement)return _.m3(v,e.visualElement,void 0,d);e=aWH(_.j2(),e);return _.yV(v,e,void 0,d)};
OT.prototype.clickCommand=function(v,e,d){return _.yV(this,v.clickTrackingParams,e,d===void 0?0:d)};
OT.prototype.stateChanged=function(v,e,d){this.visualElementStateChanged(_.Jg(v),e,d===void 0?0:d)};
OT.prototype.visualElementStateChanged=function(v,e,d){d=d===void 0?0:d;d===0&&this.pendingScreenCreation.has(d)?this.stateChangedQueue.push([v,e]):this.logStateChanged(v,e,d)};
OT.prototype.logStateChanged=function(v,e,d){d=d===void 0?0:d;var E=_.zz(d);v=v||_.Xf(d);return E&&v?(zvS(this.client,E,v,e),!0):!1};
var Oje=function(v,e,d,E){E=E===void 0?{}:E;v.pendingScreenCreation.add(E.layer||0);v.pendingScreenFn=function(){I3n(v,e,d,E);var O=_.Xf(E.layer);if(O){for(var b=_.a(v.graftQueue),Y=b.next();!Y.done;Y=b.next())Y=Y.value,_.bj(v,Y[0],Y[1]||O,E.layer);O=_.a(v.stateChangedQueue);for(b=O.next();!b.done;b=O.next())b=b.value,v.logStateChanged(b[0],b[1])}};
d||_.zz(E.layer)||v.pendingScreenFn();if(E.dataPromises)for(var T=_.a(E.dataPromises),S=T.next();!S.done;S=T.next())_.bjn(v,S.value,E.layer);else _.RI(Error("xf"))},I3n=function(v,e,d,E){E=E===void 0?{}:E;
var T=void 0;E.layer||(E.layer=0);T=E.parentLayer!==void 0?E.parentLayer:E.layer;var S=_.zz(T);T=_.Xf(T);var O=d||T,b;O&&(E.parentCsn!==void 0?b={clientScreenNonce:E.parentCsn,visualElement:O}:S&&S!=="UNDEFINED_CSN"&&(b={clientScreenNonce:S,visualElement:O}));var Y,q=_.Bb("EVENT_ID");S==="UNDEFINED_CSN"&&q&&(Y={servletData:{serializedServletEventId:q}});_.N("combine_ve_grafts")&&S&&Y2g(v,S);_.N("no_client_ve_attach_unless_shown")&&O&&S&&t$O(O,S);try{var r=_.J9O(v.client,e,b,E.csnToClone,E.cttAuthInfo,
Y,E.implicitGestureType,void 0,E.loggingExpectations)}catch(k){_.BV(k,{rootVeType:e,rootVe:T,parentVisualElement:d,currentCsn:S,parentEl:b,csnToClone:E.csnToClone});_.RI(k);return}_.HP(r,e,E.layer,E.cttAuthInfo);S&&S!=="UNDEFINED_CSN"&&T&&!X6$(S)&&Bst(v.client,S,T,!0);v.backHistoryStack[v.backHistoryStack.length-1]&&!v.backHistoryStack[v.backHistoryStack.length-1].csn&&(v.backHistoryStack[v.backHistoryStack.length-1].csn=r||"");_.BF({clientScreenNonce:r});_.a36();var h=_.Xf(E.layer);S&&S!=="UNDEFINED_CSN"&&
h&&(_.N("web_mark_root_visible")||_.N("music_web_mark_root_visible"))&&_.u4(r,h);v.pendingScreenCreation.delete(E.layer||0);v.pendingScreenFn=void 0;var K;(K=v.recurringGrafts.get(E.layer))==null||K.forEach(function(k,J){k?_.bj(v,J,k,E.layer):h&&_.bj(v,J,h,E.layer)});
mwn(v)},mwn=function(v){for(var e=0;e<v.afterNewScreenOneOffJobs.length;e++){var d=v.afterNewScreenOneOffJobs[e];
try{d()}catch(E){_.RI(E)}}for(e=v.afterNewScreenOneOffJobs.length=0;e<v.afterNewScreenRecurringJobs.length;e++){d=v.afterNewScreenRecurringJobs[e];try{d()}catch(E){_.RI(E)}}},Y2g=function(v,e){if(e===void 0)for(var d=Bys(),E=0;E<d.length;E++)d[E]!==void 0&&Y2g(v,d[E]);
else v.cachedVisualElements.forEach(function(T,S){(S=v.cachedRootVisualElements.get(S))&&GBO(v.client,e,S,T)}),v.cachedVisualElements.clear(),v.cachedRootVisualElements.clear(),v.attachTimeout=void 0};var qN=function(v){v=v===void 0?{layer:0}:v;this.hasRun=!1;this.createScreenConfig=v;v={};this.gR7=(v.response=!1,v.playerResponse=!1,v)};
_.V(qN,vH);qN.prototype.validate=function(v){return!(!v.data||!v.data.response&&!v.data.playerResponse)};
qN.prototype.handle=function(v){var e=_.NC(),d=this.createScreenConfig.layer;v.data.response&&v.data.response.trackingParams&&!this.gR7.response&&(e.graftServerVe(v.data.response.trackingParams,void 0,d),this.gR7.response=!0);v.data.playerResponse&&v.data.playerResponse.trackingParams&&!this.gR7.playerResponse&&(e.graftServerVe(v.data.playerResponse.trackingParams,void 0,d),this.gR7.playerResponse=!0)};var ro=function(){this.aE=_.gq();this.zA=[];this.dZd=0};
ro.prototype.processChunk=function(v){if(v){for(var e=_.a(this.zA),d=e.next();!d.done;d=e.next())d=d.value,d.validate(v)&&(d.handle(v),d.hasRun=!0);_.zE("np"+this.dZd);this.dZd++}};var dg={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[]};var yQ0=function(){var v={traceAllComponents:_.N("web_tracing_all_components"),exportToCsi:_.N("web_tracing_export_to_csi"),exportBreadcrumbs:_.N("web_enable_tracing"),bufferSize:_.Wi("web_max_tracing_events"),enabledSpansArray:_.iY("web_tracing_enabled_spans"),exportToDevTools:_.N("web_tracing_export_to_devtools")};this.observers=[];this.value=v};
_.W=yQ0.prototype;_.W.subscribe=function(v){var e=this;if(v.idx!=null)throw Error("zf");v.idx=this.observers.length;this.observers.push(v);return function(){var d=e.observers[e.observers.length-1];e.observers[v.idx]=d;d.idx=v.idx;e.observers.pop()}};
_.W.update=function(v){this.value=v(this.value);this.notify()};
_.W.mutate=function(v){v(this.value);this.notify()};
_.W.set=function(v){this.value=v;this.notify()};
_.W.notify=function(){for(var v=_.a(this.observers),e=v.next();!e.done;e=v.next()){e=e.value;try{e(this.value)}catch(d){}}};var pqt,q2E,Km0;_.hg=function(v,e,d,E,T,S,O){O=O===void 0?[]:O;this.buildCommandPayload=v;this.navigate=e;this.handleServiceRequest=d;this.sendAction=E;this.JSC$12591_screenManager=T;this.commandResolverMap=S;this.autoLogResolverAllowlist=O;this.pendingCommands=new Set;this.isTracingEnabled=!1;q2E(this)};
pqt=function(v,e,d){var E=zSS,T=lQM,S=_.NC(),O=rQA;d=d===void 0?[]:d;_.hg.instance=new _.hg(v,e,E,T,S,O,d)};
q2E=function(v){if(!v.isTracingEnabled&&c9$("command")){var e=v.resolveCommand;v.resolveCommand=function(d,E){a:{for(T in d)if(Object.prototype.hasOwnProperty.call(d,T)){var T={commandType:T};break a}T={}}return Fkj("command",T,e.bind(this,d,E))};
v.isTracingEnabled=!0}};
Km0=function(v,e,d){if(!v.commandResolverMap)return!1;var E=DS7(e,v.commandResolverMap);return E?((v.autoLogResolverAllowlist.some(function(T){return!!_.L(e,T)})||(d==null?0:d.forceClickLogging))&&h1M(v,e,d),E instanceof Promise?E.then(function(T){T.resolve(e,d)}):E.resolve(e,d),!0):!1};
_.hg.prototype.resolveCommand=function(v,e){var d=this,E=$wB(v);if(Km0(this,v,e))return!0;if(E)return j6M(this,v,e);if(!this.buildCommandPayload)return glM(v,"Unhandled command by buildCommandPayload"),!1;var T=this.buildCommandPayload(v,e);if(e==null?0:e.commandController)T.commandController=e.commandController;if(T.type===0){if(!this.navigate)return uOS(v,"navigate"),!1;if(!s6I(T.command))return glM(v,"Page requests need to specify a url"),!1;_.N("logging_avoid_blocking_during_navigation")&&_.e0U().transition("application_navigating");
v=this.navigate(T)||[];Uqe(v).then(function(){d.pendingCommands.delete(T.command)});
return!0}if(T.type===1){if(!this.handleServiceRequest)return uOS(v,"handleServiceRequest"),!1;(e==null?0:e.forceClickLogging)&&h1M(this,T.command,e);v=this.handleServiceRequest(T);Uqe(v).then(function(){d.pendingCommands.delete(T.command)});
return!0}if(T.type===2){if(!this.sendAction)return uOS(v,"sendAction"),!1;h1M(this,T.command,e);this.sendAction(T);return!0}return!1};
var h1M=function(v,e,d){if((d==null||!d.disableClickTracking)&&v.JSC$12591_screenManager)if(e.clickTrackingParams&&_.N("log_click_with_layer_from_element_in_command_handler")){var E;d=d==null?void 0:(E=d.form)==null?void 0:E.element;v.JSC$12591_screenManager.clickCommand(e,null,d&&d.getScreenLayer&&d.getScreenLayer())}else e.clickTrackingParams?v.JSC$12591_screenManager.clickCommand(e):!_.N("disable_clicked_visual_element_in_command_handler")&&(d==null?0:d.clickedVisualElement)&&_.m3(v.JSC$12591_screenManager,
d.clickedVisualElement)},$wB=function(v){var e=!!_.L(v,_.rV),d;
v=((d=_.L(v,_.KB))==null?void 0:d.signal)==="CLIENT_SIGNAL";return e||v},j6M=function(v,e,d){var E=_.L(e,_.rV);
if(E)var T=(E==null?void 0:E.commands)||[];else{var S;if(((S=_.L(e,_.KB))==null?void 0:S.signal)==="CLIENT_SIGNAL"){var O;T=((O=_.L(e,_.KB))==null?void 0:O.actions)||[]}}if(T){e=_.a(T);for(T=e.next();!T.done;T=e.next()){T=T.value;try{v.resolveCommand(T,d)}catch(b){b instanceof Error&&_.RI(b)}}return!0}glM(e,"Could not handle the meta command");return!1},s6I=function(v){var e;
return!((e=_.L(v==null?void 0:v.commandMetadata,_.$B))==null||!e.url)};var hd=function(){vH.apply(this,arguments)};
_.V(hd,vH);hd.prototype.validate=function(v){var e,d;return!this.hasRun&&!!((e=v.data.response)==null?0:(d=e.onResponseReceivedEndpoints)==null?0:d.length)};
hd.prototype.handle=function(v){var e=_.hg.instance;v=_.a(v.data.response.onResponseReceivedEndpoints);for(var d=v.next();!d.done;d=v.next())e.resolveCommand(d.value)};var Nv0,kyA,Lmu;
Nv0=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=_.qg();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.Ke=function(){kyA||(kyA=new Nv0);return kyA};
Lmu=function(){var v=_.Ke();v.miniplayerButtonActivation=!1;v.userActivation=!1;v.playlistWatchPageActivation=!1;v.productDetailsPageActivation=!1;v.miniAppPageActivation=!1;v.playablesDestPageActivation=!1;v.lockupActivation=!1;v.showMiniplayerCommandActivation=!1;v.playlistSuggestionsShelfActivation=!1;v.mediaSessionPipActivation=!1;v.watchPipActivation=!1;v.watchWhileActivation=!1;v.shortsPipActivation=!1};
_.VYM=function(){var v=_.Ke(),e=v.mediaSessionPipActivation,d=v.watchPipActivation,E=v.watchWhileActivation,T=v.playlistWatchPageActivation,S=v.lockupActivation,O=v.showMiniplayerCommandActivation,b=v.navigatingAwayFromWatchDeletedVideo,Y=v.shortsPipActivation,q=v.playlistSuggestionsShelfActivation,r=v.productDetailsPageActivation,h=v.miniAppPageActivation,K=v.playablesDestPageActivation;return!v.miniplayerButtonActivation&&!T&&!q&&!r&&!h&&!K&&!S&&!O&&!e&&!d&&!E&&!Y||b};var e9t;_.$_=_.Ta("FEwhat_to_watch","/",3854);_.dQ3=_.Ta("FEdownloads","/feed/downloads",42352);e9t=_.Ta("FEmusic_offline","browse/FEmusic_offline",42352);var eU=function(v,e){e=e===void 0?[]:e;var d=d===void 0?[]:d;e=hw0.apply(null,[KJL.apply(null,_.t7(e))].concat(_.t7(d)));this.store=N60(v,void 0,e)};
eU.prototype.getState=function(){return this.store.getState()};
eU.prototype.dispatch=function(v){return this.store.dispatch(v)};
eU.prototype.subscribe=function(v){return this.store.subscribe(v)};
eU.prototype.replaceReducer=function(v){return this.store.replaceReducer(v)};
eU.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.ji=function(v,e,d){var E=e(v.getState());return v.subscribe(function(){var T=e(v.getState());if(T!==E){var S=E;E=T;d(T,S)}})};var Ay3;_.Lv=function(v,e,d){return _.Oo({type:"REPLACE_ENTITY",payload:{entityPayload:d,entityType:v,key:e}})};
Ay3=function(v){return _.Oo({type:"REPLACE_ENTITIES",payload:v})};
_.M0=function(v,e,d,E){return _.Oo({type:"UPDATE_ENTITY",payload:{entityPayload:d,entityType:v,key:e,mergeOption:E}})};var IG0=function(v){var e=this;v=v===void 0?[]:v;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;v.forEach(function(d){e.append(d)})};
_.W=IG0.prototype;_.W.getLength=function(){return this.totalLength};
_.W.append=function(v){var e=this.arrays.length===0?!1:(e=this.arrays[this.arrays.length-1])&&e.buffer===v.buffer&&e.byteOffset+e.length===v.byteOffset;e?(e=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(e.buffer,e.byteOffset,e.length+v.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(v);this.totalLength+=v.length};
_.W.split=function(v){for(var e=new IG0,d=new IG0,E=_.a(this.arrays),T=E.next();!T.done;T=E.next())T=T.value,v>=T.length?(e.append(T),v-=T.length):v?(e.append(new Uint8Array(T.buffer,T.byteOffset,v)),d.append(new Uint8Array(T.buffer,T.byteOffset+v,T.length-v)),v=0):d.append(T);return{headView:e,tailView:d}};
_.W.extract=function(v,e){return this.split(v).tailView.split(e).headView};
_.W.isFocused=function(v){return v>=this.arrayPos&&v<this.arrayPos+this.arrays[this.arrayIdx].length};
_.W.focus=function(v){if(!this.isFocused(v))for(v<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=v&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var o7J=function(v,e){v.focus(e);return v.arrays[v.arrayIdx][e-v.arrayPos]};(function(){var v=function(E){return new Uint8Array(E)},e=function(E){for(var T=new Uint8Array(E.length),S=0;S<E.length;S++)T[S]=E[S];
return T},d=new Uint8Array([1]);
return d.length===1&&d[0]===1?v:e})();
var T$O=Array(1024),EwO=window.TextDecoder?new TextDecoder:void 0,W4W=window.TextEncoder?new TextEncoder:void 0;var O6L=function(v){this.arrayView=v;this.pos=0;this.pendingTagAndType=-1},IG=function(v){var e=o7J(v.arrayView,v.pos);
++v.pos;if(e<128)return e;for(var d=e&127,E=1;e>=128;)e=o7J(v.arrayView,v.pos),++v.pos,E*=128,d+=(e&127)*E;return d},b63=function(v,e){var d=v.pendingTagAndType;
for(v.pendingTagAndType=-1;v.pos+1<=v.arrayView.totalLength;){d<0&&(d=IG(v));var E=d>>3,T=d&7;if(E===e)return!0;if(E>e){v.pendingTagAndType=d;break}d=-1;switch(T){case 0:IG(v);break;case 1:v.pos+=8;break;case 2:E=IG(v);v.pos+=E;break;case 5:v.pos+=4}}return!1};var m5j=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=i6M(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},qE=function(v,e){e=v.pos+e;
if(!(v.buf.length>=e)){for(var d=v.buf.length*2;d<e;)d*=2;v.buf=i6M(d,v.wasm,v.buf.subarray(0,v.pos));v.view=new DataView(v.buf.buffer,v.buf.byteOffset,v.buf.byteLength)}},yR=function(v,e){if(e>268435455){qE(v,4);
for(var d=e&1073741823,E=0;E<4;E++)v.view.setUint8(v.pos,d&127|128),d>>=7,v.pos+=1;e=Math.floor(e/268435456)}for(qE(v,4);e>127;)v.view.setUint8(v.pos,e&127|128),e>>=7,v.pos+=1;v.view.setUint8(v.pos,e);v.pos+=1};for(var yyL={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},YAt={},JQ0=_.a(Object.entries(yyL)),Gy7=JQ0.next();!Gy7.done;Gy7=JQ0.next()){var MYu=_.a(Gy7.value),tYe=MYu.next().value,f36=MYu.next().value,R1c=tYe,PTM=f36;PTM&&(YAt[PTM]=R1c)};var ryU=function(v,e){v=v===void 0?{}:v;switch(e.type){case "ENTITY_LOADED":return e.payload.reduce(function(E,T){var S,O=(S=T.options)==null?void 0:S.persistenceOption;if(O&&O!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&O!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return E;if(!T.entityKey)return _.RI(Error("Bf")),E;if(T.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!T.payload)return T=new _.kL("REPLACE entity mutation is missing a payload",{entityKey:T.entityKey}),_.RI(T),E;var b=(0,_.f0.getAnyKey)(T.payload);
return K4s(E,b,T.entityKey,T.payload[b])}if(T.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{T=T.entityKey;try{var Y=_.bq(T).entityType;b=K4s(E,Y,T);break a}catch(h){if(h instanceof Error){T=new _.kL("Failed to deserialize entity key",{entityKey:T,originalMessage:h.message});_.RI(T);b=E;break a}throw h;}b=void 0}return b}if(T.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!T.payload)return T=new _.kL("UPDATE entity mutation is missing a payload",{entityKey:T.entityKey}),_.RI(T),E;b=(0,_.f0.getAnyKey)(T.payload);
var q,r;return $5H(E,b,T.entityKey,T.payload[b],(q=T.fieldMask)==null?void 0:(r=q.mergeOptions)==null?void 0:r.repeatedFieldsMergeOption)}return E},v);
case "REPLACE_ENTITY":var d=e.payload;return K4s(v,d.entityType,d.key,d.entityPayload);case "REPLACE_ENTITIES":return Object.keys(e.payload).reduce(function(E,T){var S=e.payload[T];return Object.keys(S).reduce(function(O,b){return K4s(O,T,b,S[b])},E)},v);
case "UPDATE_ENTITY":return d=e.payload,$5H(v,d.entityType,d.key,d.entityPayload,d.mergeOption);default:return v}};var jiW;var xwI=!1,sT,NN,k_,Le,VV,Bv7=function(v){_.kh.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!xwI){var e,d=new Uint8Array(256),E=new Uint8Array(256);var T=1;for(e=0;e<256;e++)d[T]=e,E[e]=T,T^=T<<1^(T>>7&&283);sT=new Uint8Array(256);NN=KQ(256);k_=KQ(256);Le=KQ(256);VV=KQ(256);for(var S=0;S<256;S++){T=S?E[255^d[S]]:0;T^=T<<1^T<<2^T<<3^T<<4;T=T&255^T>>>8^99;sT[S]=T;e=T<<1^(T>>7&&283);var O=e^T;NN[S]=e<<24|T<<16|T<<8|O;k_[S]=O<<24|NN[S]>>>8;Le[S]=T<<24|k_[S]>>>
8;VV[S]=T<<24|Le[S]>>>8}xwI=!0}T=KQ(44);for(d=0;d<4;d++)T[d]=v[4*d]<<24|v[4*d+1]<<16|v[4*d+2]<<8|v[4*d+3];for(E=1;d<44;d++)v=T[d-1],d%4||(v=(sT[v>>16&255]^E)<<24|sT[v>>8&255]<<16|sT[v&255]<<8|sT[v>>>24],E=E<<1^(E>>7&&283)),T[d]=T[d-4]^v;this.key=T};
_.V(Bv7,_.kh);
Bv7.prototype.encrypt=function(v){var e=v.length;v=new Uint8Array(v.buffer.slice(v.byteOffset,v.byteOffset+e));for(var d=this.cipherBlock,E=0;E<e&&this.blockOffset<16;)v[E++]^=d[this.blockOffset++];for(var T=e-(e-E)%16;E<T;)CT6(this),v[E++]^=d[0],v[E++]^=d[1],v[E++]^=d[2],v[E++]^=d[3],v[E++]^=d[4],v[E++]^=d[5],v[E++]^=d[6],v[E++]^=d[7],v[E++]^=d[8],v[E++]^=d[9],v[E++]^=d[10],v[E++]^=d[11],v[E++]^=d[12],v[E++]^=d[13],v[E++]^=d[14],v[E++]^=d[15];if(E<e)for(CT6(this),this.blockOffset=0;E<e;)v[E++]^=
d[this.blockOffset++];return v};
var CT6=function(v){for(var e=v.key,d=v.counter[0]^e[0],E=v.counter[1]^e[1],T=v.counter[2]^e[2],S=v.counter[3]^e[3],O=3;O>=0&&!(v.counter[O]=-~v.counter[O]);O--);for(var b,Y,q=4;q<40;)O=NN[d>>>24]^k_[E>>16&255]^Le[T>>8&255]^VV[S&255]^e[q++],b=NN[E>>>24]^k_[T>>16&255]^Le[S>>8&255]^VV[d&255]^e[q++],Y=NN[T>>>24]^k_[S>>16&255]^Le[d>>8&255]^VV[E&255]^e[q++],S=NN[S>>>24]^k_[d>>16&255]^Le[E>>8&255]^VV[T&255]^e[q++],d=O,E=b,T=Y;v=v.cipherBlock;O=e[40];v[0]=sT[d>>>24]^O>>>24;v[1]=sT[E>>16&255]^O>>16&255;v[2]=
sT[T>>8&255]^O>>8&255;v[3]=sT[S&255]^O&255;O=e[41];v[4]=sT[E>>>24]^O>>>24;v[5]=sT[T>>16&255]^O>>16&255;v[6]=sT[S>>8&255]^O>>8&255;v[7]=sT[d&255]^O&255;O=e[42];v[8]=sT[T>>>24]^O>>>24;v[9]=sT[S>>16&255]^O>>16&255;v[10]=sT[d>>8&255]^O>>8&255;v[11]=sT[E&255]^O&255;O=e[43];v[12]=sT[S>>>24]^O>>>24;v[13]=sT[d>>16&255]^O>>16&255;v[14]=sT[E>>8&255]^O>>8&255;v[15]=sT[T&255]^O&255};var XyA=!1;(function(){var v=function(E){return new Uint8Array(E)},e=function(E){for(var T=new Uint8Array(E.length),S=0;S<E.length;S++)T[S]=E[S];
return T},d=new Uint8Array([1]);
return d.length===1&&d[0]===1?v:e})();
var og;var Hje=function(v){a:{if(!XyA&&!DT){if(og){var e=og;break a}og=(e=window.crypto)==null?void 0:e.subtle;var d,E,T;if(((d=og)==null?0:d.importKey)&&((E=og)==null?0:E.sign)&&((T=og)==null?0:T.encrypt)){e=og;break a}og=void 0}e=void 0}e&&(this.nativeEncryptor=new z17(v,e));this.encryptorPolyfill=new l3I(v)};
Hje.prototype.encrypt=function(v,e){var d=this,E;return _.I(function(T){switch(T.nextAddress){case 1:if(!d.nativeEncryptor){T.jumpTo(2);break}_.qq(T,3);return T.yield(d.nativeEncryptor.encrypt(v,e),5);case 5:return T.return(T.yieldResult);case 3:E=_.jl(T),_.xf(E),XyA=!0,d.nativeEncryptor=void 0;case 2:return T.return(d.encryptorPolyfill.encrypt(v,e))}})};
Hje.prototype.decrypt=function(v,e){return this.encrypt(v,e)};
var z17=function(v,e){this.JSC$12664_aesKey=v;this.subtleCrypto=e};
z17.prototype.encrypt=function(v,e){var d=this,E;return _.I(function(T){if(T.nextAddress==1)return _.qq(T,2),T.yield(AQe(d,v,e),4);if(T.nextAddress!=2)return T.return(T.yieldResult);E=_.jl(T);_.xf(E);XyA=!0;throw E;})};
var AQe=function(v,e,d){var E,T;return _.I(function(S){switch(S.nextAddress){case 1:if(v.cryptoKey){S.jumpTo(2);break}return S.yield(v.subtleCrypto.importKey("raw",v.JSC$12664_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:v.cryptoKey=S.yieldResult;case 2:return E={name:"AES-CTR",counter:d,length:128},S.yield(v.subtleCrypto.encrypt(E,v.cryptoKey,e),4);case 4:return T=S.yieldResult,S.return(new Uint8Array(T))}})},l3I=function(v){this.JSC$12667_aesKey=v};
l3I.prototype.encrypt=function(v,e){this.encryptor||(this.encryptor=new Bv7(this.JSC$12667_aesKey));for(var d=this.encryptor,E=0;E<4;E++)d.counter[E]=e[E*4]<<24|e[E*4+1]<<16|e[E*4+2]<<8|e[E*4+3];d.blockOffset=16;return this.encryptor.encrypt(v)};
l3I.prototype.decrypt=function(v,e){return this.encrypt(v,e)};var ZjJ={},k1s=dt("yt-idb-pref-storage",{objectStores:(ZjJ.prefs={addedAtVersion:1},ZjJ),shared:!1,upgrade:function(v,e){e(1)&&H8(lR(v,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Jd=function(v){this.token=v};
_.Jd.getInstance=function(){return _.I(function(v){return v.return(new Promise(function(e){_.ea().then(function(d){d?(_.Jd.instance||(_.Jd.instance=new _.Jd(d)),e(_.Jd.instance)):e(void 0)})}))})};
_.Jd.prototype.get=function(v){var e=this,d,E,T;return _.I(function(S){if(S.nextAddress==1)return S.yield(L43(e.token),2);if(S.nextAddress!=3)return d=S.yieldResult,S.yield(d.get("prefs",v),3);E=S.yieldResult;if(!E)return S.return();T=(0,_.E$)();return E.expirationTimestampMs<=T?S.return():S.return(E.value)})};
_.Jd.prototype.set=function(v,e,d){d=d===void 0?31536E3:d;var E=this,T,S,O;return _.I(function(b){if(b.nextAddress==1)return T=(0,_.E$)(),S={key:v,value:e,expirationTimestampMs:T+d*1E3},b.yield(L43(E.token),2);O=b.yieldResult;return b.yield(O.put("prefs",S),0)})};
_.Jd.prototype.remove=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(L43(e.token),2);d=E.yieldResult;return E.yield(d.delete("prefs",v),0)})};var GJ={},cQJ=(GJ.INVALID_ENCODER_VERSION="Invalid encoder version",GJ.KEY_CREATION_FAILED="Failed to create encoder key",GJ.UNKNOWN_DECODE_ERROR="Failed to decode PES data",GJ.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",GJ.WRONG_DATA_TYPE="Encoder cannot process the data type",GJ),$H=function(v,e){e=e===void 0?{}:e;_.kL.call(this,cQJ[v],Object.assign({},{name:"PESEncoderError",type:v},e));this.type=v;this.level="WARNING";Object.setPrototypeOf(this,$H.prototype)};
_.V($H,_.kL);var MN=function(){};
MN.prototype.encode=function(v,e){try{return this.encodeImpl(v,e)}catch(d){G10(d,owj)}};
MN.prototype.decode=function(v,e){try{return this.decodeImpl(v,e)}catch(d){G10(d,Jy7)}};
var wyJ=function(v,e,d){var E;return _.I(function(T){if(T.nextAddress==1)return _.qq(T,2),T.yield(v.decodeAsyncImpl(e,d),4);if(T.nextAddress!=2)return T.return(T.yieldResult);E=_.jl(T);G10(E,Jy7);_.s9(T)})};
MN.prototype.decodeAsyncImpl=function(v,e){return Promise.resolve(this.decodeImpl(v,e))};var td=function(v,e){this.aesEncryptor=v;this.aesEncryptorAsync=e};
_.V(td,MN);td.prototype.encodeImpl=function(v,e){e=M6W(e);v=(new TextEncoder).encode(JSON.stringify(v));return this.aesEncryptor.encrypt(v,e)};
td.prototype.decodeImpl=function(v,e){if(!(v instanceof Uint8Array))throw V6H(1);var d=new TextDecoder;e=M6W(e);v=this.aesEncryptor.decrypt(v,e);return JSON.parse(d.decode(v))};
td.prototype.decodeAsyncImpl=function(v,e){var d=this,E,T,S;return _.I(function(O){if(O.nextAddress==1){if(!(v instanceof Uint8Array))throw V6H(1);E=new TextDecoder;T=M6W(e);return O.yield(d.aesEncryptorAsync.decrypt(v,T),2)}S=O.yieldResult;return O.return(JSON.parse(E.decode(S)))})};var t6U={accountLinkStatusEntity:Ice,booleanEntity:HCI,buttonEntity:TD0,captionTrack:c9u,channelHandle:rtA,chipEntity:x$c,commerceAcquisitionClientPayloadEntity:GXA,commerceCartListEntity:MZ0,contextNoteFeedEntityPayload:M92,contextNoteUserRatingEntityPayload:t9J,continuationTokenEntity:Vrg,downloadQualityPickerEntity:y4I,downloadsPageRefreshTokenEntity:r4I,downloadsPageViewConfigurationEntity:x66,downloadStatusEntity:qYg,dismissState:BT7,sfvAudioItemCurrentlyPlayingEntity:N$6,emojiFountainDataEntity:esB,
emojiCustomizationSetEntity:vMg,fakeChannel:cM0,fakePlaylist:wrg,fakePlaylistEntryCollection:FWc,fakeVideo:gTE,fakeVideoDescription:uxE,featuredProductsEntity:ev7,flowStateEntity:Wuc,iconBadgeEntity:tZu,interstitialInteractionStateEntity:oiM,likeButtonAnimationEntity:BWB,liveChatPollStateEntity:xY2,liveViewerLeaderboardChatEntryPointStateEntity:T$2,liveViewerLeaderboardPointsEntity:SA0,liveReactionsDataEntity:dZ0,logoEntity:Lu0,macroMarkerEntity:C0M,mainDownloadsLibraryEntity:hD0,mainDownloadsListEntity:Kji,
mainPlaylistDownloadStateEntity:jAg,mainPlaylistEntity:oZJ,mainPlaylistVideoEntity:J4n,mainVideoDownloadStateEntity:sA0,mainVideoEntity:fXI,markersEngagementPanelSyncEntity:XXJ,markersVisibilityOverrideEntity:zDc,musicAlbumReleaseDetail:YQB,musicAlbumReleaseDownloadMetadataEntity:aeJ,musicAlbumRelease:b$E,musicAlbumReleaseUserDetail:mSi,musicArtistDetail:qQB,musicArtist:y97,musicArtistUserDetail:r9g,musicDownloadsLibraryEntity:i$g,musicLibraryEdit:hvn,musicLibraryStatusEntity:Kke,musicPlaylist:$SE,
musicPlaylistDownloadMetadataEntity:O$i,musicShare:sxn,musicTrackDetail:kBJ,musicTrackDownloadMetadataEntity:Ie6,musicTrack:Ns2,musicTrackUserDetail:LkE,offlineOrchestrationActionWrapperEntity:wAi,offlineVideoPolicy:FkB,offlineVideoStreams:Qxu,offlineabilityEntity:NWJ,orchestrationWebSamplingEntity:kk6,pageHeaderEntity:FZ0,pdpStateEntity:fb6,pinnedProductEntity:dS7,playbackData:glJ,playerStateEntity:lXn,quantityIncrementerEntity:RsM,refresh:uOI,saveToPlaylistListEntity:cyc,selectedChipIndexEntityPayload:HP2,
settingEntity:ben,stringEntity:AMM,suggestedFeedbackChipStateEntity:A4M,transfer:nl0,trendingOfferEntity:Ele,videoDownloadContextEntity:DSi,videoOverviewAsyncDataEntity:dJA,videoPlaybackPositionEntity:abg,votingEntity:nKi,ytMainChannelEntity:RDB,youchatPendingResponseEntity:ZPB,ytMainDownloadedVideoEntity:LjA,ytMainVideoEntity:P07};var Fmg,g7M,LQ,zMS,lG0,DwA,py7,Uw2,n7g;Fmg=function(v,e){this.JSC$12686_wrapped=v;this.JSC$12686_encoderRegistry=e;this.changedKeys={}};
g7M=function(v,e){return Q6g(v.JSC$12686_encoderRegistry,e.version).decode(e.data,e.key)};
_.um7=function(v,e,d){return v.JSC$12686_wrapped.objectStore("EntityStore").get(e).then(function(E){if(E){if(d&&E.entityType!==d)throw Error("Cf");return g7M(v,E)}})};
LQ=function(v,e,d){return d?(d=d.map(function(E){return _.um7(v,E,e)}),lY.all(d)):v.JSC$12686_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(e)).then(function(E){return E.map(function(T){return g7M(v,T)})})};
_.XD7=function(v,e,d){var E=qAt(e),T=Q6g(v.JSC$12686_encoderRegistry,1),S=Object.assign({},e);return v.JSC$12686_wrapped.objectStore("EntityStore").get(E).then(function(O){if(O){if(O.entityType!==d)throw Error("Cf");S.entityMetadata||(O=g7M(v,O),S.entityMetadata=O.entityMetadata)}}).then(function(){var O={key:E,
entityType:d,data:T.encode(S,E),version:1};return lY.all([v.JSC$12686_wrapped.objectStore("EntityStore").put(O),n7g(v,S,d)])}).then(function(){DwA(v,E,d);
return E})};
zMS=function(v,e){var d=_.bq(e).entityType;return lY.all([v.JSC$12686_wrapped.objectStore("EntityStore").delete(e),Uw2(v,e)]).then(function(){DwA(v,e,d)})};
lG0=function(v,e,d,E){var T=Q6g(v.JSC$12686_encoderRegistry,1);return _.um7(v,e,E).then(function(S){if(S){S=d50(S,d);var O={key:e,entityType:E,data:T.encode(S,e),version:1};return lY.all([v.JSC$12686_wrapped.objectStore("EntityStore").put(O),n7g(v,S,E)])}}).then(function(){DwA(v,e,E);
return e})};
DwA=function(v,e,d){var E=v.changedKeys[d];E||(E=new Set,v.changedKeys[d]=E);E.add(e)};
py7=function(v,e,d){var E=qAt(e);d=fG0(d);if(!d)return lY.resolve([]);d=new d(e);v=v.JSC$12686_wrapped.objectStore("EntityAssociationStore");e=[];d=_.a(d.getAssociations());for(var T=d.next();!T.done;T=d.next())e.push(v.put({parentEntityKey:E,childEntityKey:T.value}));return lY.all(e).then(function(S){return S.map(function(O){return O[1]})})};
Uw2=function(v,e){return v.JSC$12686_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(e))};
n7g=function(v,e,d){var E=qAt(e);return Uw2(v,E).then(function(){return py7(v,e,d)})};var v8c=function(){};
_.V(v8c,MN);v8c.prototype.encodeImpl=function(v){return v};
v8c.prototype.decodeImpl=function(v){if(v instanceof Uint8Array)throw V6H(0);return v};var x5H=function(){this.cacheMap={};this.cacheMap[0]=new v8c;if(!_.N("aes_pes_encoder_killswitch")){var v=this.cacheMap;try{var e=_.sI();var d=M6W(e);var E=new td(new l3I(d),new Hje(d))}catch(T){throw v=T instanceof Error?new $H("KEY_CREATION_FAILED",{originalMessage:T.message}):new $H("KEY_CREATION_FAILED"),_.RI(v),v;}v[1]=E}},Q6g=function(v,e){e=e===void 0?0:e;
v=v.cacheMap[e];if(!v)throw e=new $H("INVALID_ENCODER_VERSION",{encoderVersion:e}),_.RI(e),e;return v};var so=function(v,e){_.kh.call(this);this.token=v;this.JSC$12700_encoderRegistry=e;this.observers=[];v=new _.TO.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.sI());v.onmessage=this.handleMessage.bind(this);this.channel=v};
_.V(so,_.kh);_.kH=function(v,e,d){var E,T,S,O;return _.I(function(b){if(b.nextAddress==1)return b.yield(N$0(v.token),2);if(b.nextAddress!=3)return E=b.yieldResult,b.yield(_.gk(E,["EntityStore","EntityAssociationStore"],e,function(Y){T=new Fmg(Y,v.JSC$12700_encoderRegistry);return d(T)}),3);
S=b.yieldResult;T&&(O=T.changedKeys,Object.keys(O).length>0&&(v.channel.postMessage(O),e5E(v,O)));return b.return(S)})};
so.prototype.observe=function(v){var e=this;this.observers.push(v);return function(){var d=e.observers.indexOf(v);d>=0&&e.observers.splice(d,1)}};
var IL7=function(v){var e;return _.I(function(d){if(d.nextAddress==1)return d.yield(_.kH(v,{mode:"readonly",enableRetries:!0},function(E){return E.JSC$12686_wrapped.objectStore("EntityStore").getAll()}),2);
e=d.yieldResult;return d.return(Promise.all(e.filter(function(E){return!!E}).map(function(E){var T,S;
return _.I(function(O){if(O.nextAddress==1){T=E.key;S=E.entityType;var b=O.yield;var Y=wyJ(Q6g(v.JSC$12700_encoderRegistry,E.version),E.data,E.key);return b.call(O,Y,2)}return O.return({key:T,entityType:S,data:O.yieldResult})})})))})};
so.prototype.handleMessage=function(v){e5E(this,v.data)};
var e5E=function(v,e){v=_.a(v.observers);for(var d=v.next();!d.done;d=v.next())d=d.value,d(e)};
so.prototype.disposeInternal=function(){this.channel.close()};
var RMO;var fe,E82,STH;fe={};_.dxi=(fe.mainVideoEntity="mainVideoEntityActionMetadata",fe.mainPlaylistEntity="mainPlaylistEntityActionMetadata",fe.musicTrack="musicTrackEntityActionMetadata",fe.musicPlaylist="musicPlaylistEntityActionMetadata",fe);E82=new _.nC("DOWNLOADS_ENTITY_TYPE_MAP");_.RG=_.rg("","downloadsPageViewConfigurationEntity");STH=_.rg("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.zx0=_.rg("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.rg("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.rg("SMART_DOWNLOADS_ENABLED","settingEntity");_.rg("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var wD7=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var U53=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var o_M={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Rg,oK7,V2M,WRL;Rg=window;_.F1=Rg.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.Xl0=Rg.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Uo;oK7=Rg.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||q0;V2M=Rg.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||L5g;_.TJ2=Rg.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.AGJ;WRL=Rg.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||wgu;nQ({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 HsM=JbL(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(v){return v}}}),Zxj=JbL(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(v){return v}}}),fh3=new Map;var jeL=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],CAO;var Smu=function(v){return _.Oo({type:"SET_EPHEMERAL_ACTION",payload:v})};var Wde={ephemeralAction:null};var alM={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var whW={sharedUi:function(v,e){v=v===void 0?alM:v;switch(e.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},v,{animatedThumbnailEnabled:e.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},v,{inlinePreviewEnabled:e.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},v,{currentPageType:e.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},v,{currentPageSubType:e.payload});default:return v}},
a11y:jo({ephemeralAction:function(v,e){v=v===void 0?Wde.ephemeralAction:v;switch(e.type){case "SET_EPHEMERAL_ACTION":return e.payload;default:return v}}}),
entities:hM7};var oMM={playlistId:"",inviteLinkURL:""};var iGB={continuationCommand:{}};var C$0=jo({continuationCommand:function(v,e){v=v===void 0?iGB.continuationCommand:v;switch(e.type){case "SET_CONTINUATION_COMMAND":return e.payload.continuationCommand;default:return v}}});var GXW={currentFormId:"",commandsMap:{}};var Xh0=jo({isLeaderTab:function(v,e){v=v===void 0?!0:v;switch(e.type){case "SET_IS_LEADER_TAB":var d,E;return(E=e==null?void 0:(d=e.payload)==null?void 0:d.isLeaderTab)!=null?E:v;default:return v}}});var IlB;_.OGM=function(v){return _.Oo({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:v}})};
IlB=function(v){return _.Oo({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:v}})};var c53=jo({isDesktopSmallWidth:function(v,e){switch(e.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return e.payload.isDesktopSmallWidth;default:return v===void 0?!1:v}},
isShortsActive:function(v,e){switch(e.type){case "SET_IS_SHORTS_ACTIVE":return e.payload.isShortsActive;default:return v===void 0?!1:v}},
isWatchWhileMode:function(v,e){switch(e.type){case "SET_IS_WATCH_WHILE_MODE":return e.payload.isWatchWhileMode;default:return v===void 0?!1:v}},
playerState:function(v,e){switch(e.type){case "SET_PLAYER_STATE":return e.payload.playerState;default:return v===void 0?-1:v}},
isFullscreen:function(v,e){switch(e.type){case "SET_IS_FULLSCREEN":return e.payload.isFullscreen;default:return v===void 0?!1:v}},
isSmallScreenSqueezeback:function(v,e){switch(e.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return e.payload.isSmallScreenSqueezeback;default:return v===void 0?!1:v}},
isShortsPipActive:function(v,e){switch(e.type){case "SET_IS_SHORTS_PIP_ACTIVE":return e.payload.isShortsPipActive;default:return v===void 0?!1:v}},
isPlaybackStarted:function(v,e){switch(e.type){case "SET_IS_PLAYBACK_STARTED":return e.payload.isPlaybackStarted;default:return v===void 0?!1:v}}});var tZ$={currentMode:"canvas-hidden"};var Qe7=function(){return function(v){return function(e){var d=v(e);_.b4(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[e],!0);return d}}};var bGE,vDt;bGE=new _.r1;_.a7=new _.nC("WATCH_PLAYER_PROMISE_TOKEN");_.YmE=new _.r1;_.mxB=new _.nC("SHORTS_PLAYER_PROMISE_TOKEN");vDt=new _.nC("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var gML=function(){return function(v){return function(e){e.type==="ENTITY_LOADED"&&_.dk().resolve(_.a7).then(function(d){var E;(E=d.dispatchReduxAction)==null||E.call(d,e)});
return v(e)}}};var yTI={};var zst=jo({additionalContext:function(v,e){switch(e.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var d;return(d=e.payload)!=null?d:"";default:return v===void 0?"":v}},
impersonatedChannelUrl:function(v,e){switch(e.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var d;return(d=e.payload)!=null?d:"";default:return v===void 0?"":v}},
selectedVideoIds:function(v,e){v=v===void 0?yTI:v;switch(e.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var d={};return Object.assign({},v,(d[e.payload]=!0,d));case "VIDEO_UNSELECTED":return e=e.payload,v=Object.assign({},v),delete v[e],v;default:return v}}});var lb0=jo({parentClickTrackingParams:function(v,e){switch(e.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return e.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return v===void 0?"":v}}});var qmB=function(v){return _.Oo({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:v})};var rTB={};var HRH=jo({stepStates:function(v,e){v=v===void 0?rTB:v;switch(e.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var d=v,E=e.payload,T,S,O;v={};e={selectionStates:Object.assign({},(O=(T=d[E.stepId])==null?void 0:T.selectionStates)!=null?O:{},(v[E.token]={isSelected:E.isSelected},v)),userQuery:(S=d[E.stepId])==null?void 0:S.userQuery};T={};return Object.assign({},d,(T[E.stepId]=e,T));case "TALK_TO_RECS_UPDATE_USER_QUERY":return T=v,S=e.payload,O={selectionStates:Object.assign({},
(E=(d=T[S.stepId])==null?void 0:d.selectionStates)!=null?E:{}),userQuery:{userQuery:S.userQuery,token:S.userQueryToken}},d={},Object.assign({},T,(d[S.stepId]=O,d));default:return v}}});var h5B,KdI,j3n;h5B=function(v){return _.Oo({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:v})};
KdI=function(v){return _.Oo({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:v})};
_.sk=function(v){return _.Oo({type:"SET_CURRENT_PAGE_TYPE",payload:v})};
_.$xJ=function(v){return _.Oo({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:v})};
j3n=function(v){return _.Oo({type:"SET_CHIP_BAR_IS_STICKY",payload:v})};var RsL={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"};_.s37=function(v){return _.Oo({type:"SET_PLAYER_STATE",payload:{playerState:v}})};var NJe=[],kSB={width:0,height:0};var A5L=jo({isTheaterMode:function(v,e){v=v===void 0?_.N("kevlar_disable_theater_mode_persistence")?!1:_.zr("START_IN_THEATER_MODE"):v;switch(e.type){case "SET_IS_THEATER_MODE":return e.payload.isTheaterMode;default:return v}},
isWatchActive:function(v,e){switch(e.type){case "SET_IS_WATCH_ACTIVE":return e.payload.isWatchActive;default:return v===void 0?!1:v}},
isLearningJourneyActive:function(v,e){switch(e.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return e.payload.isLearningJourneyActive;default:return v===void 0?!1:v}},
isWatchFullscreen:function(v,e){switch(e.type){case "SET_IS_WATCH_FULLSCREEN":return e.payload.isWatchFullscreen;default:return v===void 0?!1:v}},
isWatchNarrowWidth:function(v,e){switch(e.type){case "SET_IS_WATCH_NARROW_WIDTH":return e.payload.isWatchNarrowWidth;default:return v===void 0?!1:v}},
isWatchRetroMode:function(v,e){switch(e.type){case "SET_IS_WATCH_RETRO_MODE":return e.payload.isWatchRetroMode;default:return v===void 0?!1:v}},
isLiveChatCollapsed:function(v,e){switch(e.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return e.payload.isLiveChatCollapsed;default:return v===void 0?!1:v}},
openEngagementPanels:function(v,e){v=v===void 0?NJe:v;var d=[].concat(_.t7(v));switch(e.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return d.push(e.payload.panelToAdd),d;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return d.splice(d.indexOf(e.payload.panelToRemove),1),d;default:return v}},
playerState:function(v,e){switch(e.type){case "SET_PLAYER_STATE":return e.payload.playerState;default:return v===void 0?-1:v}},
watchScrollTop:function(v,e){switch(e.type){case "SET_WATCH_SCROLL_TOP":return e.payload.watchScrollTop;default:return v===void 0?0:v}},
watchWindowSize:function(v,e){v=v===void 0?kSB:v;switch(e.type){case "SET_WATCH_WINDOW_SIZE":return e.payload.watchWindowSize;default:return v}}});var LdM={feedbackTokens:[]};var ZRL=jo({surveyFeedbackData:function(v,e){v=v===void 0?LdM:v;switch(e.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return e.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},v,e.payload);default:return v}}});var xZj={};var nM0=void 0;_.N("web_enable_redux_store_on_demand")||(nM0=uWH());var VpE=function(v,e,d){var E=this;this.listId=v;this.JSC$12837_updateCallback=e;this.isOfflineVideoCallback=d;_.d1().subscribe(function(){E.handleUpdate()})};
VpE.prototype.getPlaylistData=function(){var v=_.d1().getState().entities;if(this.listId&&this.listId!=="PPSV"){var e=qT0(v,this.listId,!0),d=_.rg(this.listId,"mainPlaylistEntity"),E,T;v=v==null?void 0:(E=v.mainPlaylistEntity)==null?void 0:(T=E[d])==null?void 0:T.title;return DZU(e,v,this.listId)}e=_.pDj(wHU(v));v=_.pDj(_.PK(v));v=e.concat(v);return DZU(v)};
VpE.prototype.getPlaylistId=function(){return this.listId};
VpE.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12837_updateCallback(this.listId,this.getPlaylistData(),{})};var PH=function(v,e,d,E){E=E===void 0?[]:E;this.JSC$12840_playlistNetworkManager=v;this.listId=e;this.JSC$12840_updateCallback=d;this.videoIds=E;this.pendingUpdates=[];this.currentIndex=0};
PH.prototype.JSC$12840_setCurrentIndex=function(v){this.currentIndex=v};
PH.prototype.setListId=function(v){this.listId=v};
var o8M=function(v,e){v.currentCreateRequest&&v.currentCreateRequest.cancel(e);v.currentUpdateRequest&&v.currentUpdateRequest.cancel(e);v.currentRefreshRequest&&v.currentRefreshRequest.cancel(e)};
PH.prototype.delete=function(){o8M(this,"PROXY DELETED")};
PH.prototype.addVideos=function(v,e,d){var E=this;d!==void 0?this.videoIds.splice.apply(this.videoIds,[d,0].concat(_.t7(v))):this.videoIds.push.apply(this.videoIds,_.t7(v));this.listId||this.currentCreateRequest?(v.forEach(function(T,S){T={addedVideoId:T,action:"ACTION_ADD_VIDEO"};d&&(T.addedVideoPosition=d+S);E.pendingUpdates.push(T)}),x_(this)):JTM(this,e.onCreateListCommand)};
var GS6=function(v,e,d,E,T){tW0(v.videoIds,e,d);e>v.currentIndex&&d<=v.currentIndex?v.JSC$12840_setCurrentIndex(v.currentIndex+1):e===v.currentIndex?v.JSC$12840_setCurrentIndex(d):e<v.currentIndex&&d>=v.currentIndex&&v.JSC$12840_setCurrentIndex(v.currentIndex-1);v.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:E,movedSetVideoIdPredecessor:T});x_(v)},JTM=function(v,e){o8M(v,"OBSOLETE");
v.currentCreateRequest=MpE(v.JSC$12840_playlistNetworkManager,e,v.videoIds);_.j9(v.currentCreateRequest,function(){v.currentCreateRequest=void 0}).then(function(d){v.setListId(d.playlistId);
v.pendingUpdates.length>0?x_(v):tp2(v)})},x_=function(v){if(v.pendingUpdates.length!==0&&(v.currentRefreshRequest&&v.currentRefreshRequest.cancel("OBSOLETE"),!v.currentUpdateRequest&&!v.currentCreateRequest)){var e=v.pendingUpdates.splice(0,v.pendingUpdates.length);
v.currentUpdateRequest=v.JSC$12840_playlistNetworkManager.updatePlaylist(v.listId,e);_.j9(v.currentUpdateRequest,function(){v.currentUpdateRequest=void 0}).then(function(){v.pendingUpdates.length>0?x_(v):tp2(v)}).thenCatch(function(){v.pendingUpdates.unshift.apply(v.pendingUpdates,_.t7(e))})}},tp2=function(v){v.currentRefreshRequest=_.flB(v.JSC$12840_playlistNetworkManager,v.listId,v.currentIndex,v.videoIds[v.currentIndex]);
_.j9(v.currentRefreshRequest,function(){v.currentRefreshRequest=void 0}).then(function(e){v.JSC$12840_updateCallback(e.playlistId,e.playlistPanelRenderer,e.autoplayRenderer)})};
PH.prototype.size=function(){return this.videoIds.length};var R5B=function(v,e,d,E){E=E===void 0?[]:E;PH.call(this,v,e,d,E);this.JSC$12840_playlistNetworkManager=v;this.listId=e;this.JSC$12840_updateCallback=d;this.videoIds=E};
_.V(R5B,PH);_.BH=function(v,e,d,E,T,S,O){T=T===void 0?[]:T;O=O===void 0?vJ:O;PH.call(this,v,e,d,T);this.JSC$12840_playlistNetworkManager=v;this.listId=e;this.JSC$12840_updateCallback=d;this.onAuthChange=E;this.videoIds=T;this.storage=S;this.cookieReader=O;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Yj(_.RM,this.checkLoggedInStatusChange.bind(this),1E3)};
_.V(_.BH,PH);_.W=_.BH.prototype;_.W.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Yj(_.RM,this.checkLoggedInStatusChange.bind(this),1E3)};
_.W.JSC$12840_setCurrentIndex=function(v){PH.prototype.JSC$12840_setCurrentIndex.call(this,v);this.store()};
_.W.delete=function(){_.RM.cancelJob(this.queueSapisIdJob);PH.prototype.delete.call(this)};
_.W.setListId=function(v){PH.prototype.setListId.call(this,v);this.store()};
_.W.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var P5M=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],xxB=["playerResponse","videoDetails"],BJ7=["response","currentVideoEndpoint","watchEndpoint","videoId"],C5n=["response","currentVideoEndpoint","watchEndpoint","playlistId"],X4c=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],z5I=["response","contents","twoColumnWatchNextResults","playlist","playlist"],lln=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
HG7=["response","contents","twoColumnWatchNextResults"];var Ce={},dJW=(Ce.WEB_UNPLUGGED="^unplugged/",Ce.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Ce.WEB_UNPLUGGED_OPS="^unplugged/",Ce.WEB_UNPLUGGED_PUBLIC="^unplugged/",Ce.WEB_CREATOR="^creator/",Ce.WEB_KIDS="^kids/",Ce.WEB_EXPERIMENTS="^experiments/",Ce.WEB_MUSIC="^music/",Ce.WEB_REMIX="^music/",Ce.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Ce.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Ce);var znt,MpE;znt=function(v,e){this.networkManager=v;this.innertubeTransportService=e};
MpE=function(v,e,d){if(!_.L(e,_.z1))return _.f1(Error("Gf"));_.L(e,_.z1).videoIds=d;d={create_playlist_title:_.sz("QUEUE",void 0,"Queue")};return vXj(_.Qw(v.innertubeTransportService,e,d),UZU)};
_.flB=function(v,e,d,E){e={videoId:E,playlistId:e,playlistIndex:d};d=_.Ej(AxA);return vXj(_.XB(v.innertubeTransportService,e,d),eBt)};
znt.prototype.updatePlaylist=function(v,e){return vXj(_.Qw(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:v,actions:e}}),pht)};var ATc=function(v){this.storage=v},ZGc;
ATc.prototype.store=function(v,e){e=e===void 0?0:e;if(this.storage&&v.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",v),this.storage.set("TLPQindex",String(e)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(d){}};
ATc.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
ATc.prototype.getPlaylistId=function(){if(!this.storage)return null;var v=null;try{v=this.storage.get("TLPQplaylist")}catch(e){}return v};var WM3=["navigationEndpoint","watchEndpoint","videoId"],SFt=["nextButtonVideo","watchEndpoint","videoId"];_.zo=new _.nC("NETWORK_TOKEN");_.v5=new _.nC("PAGE_TOKEN");_.zJ=new _.nC("PLAYLIST_TOKEN");var cTI;cTI=new _.nC("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.lX=new _.nC("INNERTUBE_TRANSPORT_TOKEN");var w4n,lj,Q30,g8A,n8I,Dxg;w4n=new Set(["ci","cr","carml"]);lj=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12887_parkedJobs=new Map;this.parkedProcessors=new Map};
_.HH=function(){lj.instance||(lj.instance=new lj);return lj.instance};
lj.prototype.onAny=function(v){return _.Fdc(this,v,2)};
lj.prototype.parkOrScheduleJob=function(v,e,d,E,T){_.Ad(this,d)?_.jd().addJob(v,e,E):(T&&(v=Q30(v),g8A(this,v,e,d,T)),T=this.JSC$12887_parkedJobs.get(d),T||(this.JSC$12887_parkedJobs.set(d,[]),T=this.JSC$12887_parkedJobs.get(d)),T.push({job:v,priority:e,delay:E}))};
lj.prototype.addListener=function(v,e,d){d&&(e=Q30(e),g8A(this,e,0,v,d));d=this.parkedProcessors.get(v);d||(this.parkedProcessors.set(v,[]),d=this.parkedProcessors.get(v));d.push(e)};
lj.prototype.processSignal=function(v){if(!_.Ad(this,v)){this.inProgressSignals.add(v);var e=this.JSC$12887_parkedJobs.get(v);if(e){e=_.a(e);for(var d=e.next();!d.done;d=e.next())d=d.value,_.jd().addJob(d.job,d.priority,d.delay);this.JSC$12887_parkedJobs.delete(v)}if(e=this.parkedProcessors.get(v)){e=_.a(e);for(d=e.next();!d.done;d=e.next())d=d.value,d();this.parkedProcessors.delete(v)}this.signals.push(v);this.inProgressSignals.delete(v)}};
_.Ad=function(v,e){return w4n.has(e)||_.zr("IS_HOMEPAGE_COLD")||_.zr("IS_RESULTS_PAGE_COLD")||_.zr("IS_WATCH_PAGE_COLD")?v.signals.indexOf(e)>=0:!0};
Q30=function(v){var e=!1;return function(){e||(e=!0,v())}};
g8A=function(v,e,d,E,T){if(uLI.has(E))_.jd().addJob(e,d,T);else{var S=v.compoundSignals.get(E);S&&_.jd().addJob(function(){_.Ad(v,E)||(S.isTimeoutConditionSatisfied?_.jd().addJob(e,d):S.timeoutConditionObservers.push(function(){_.jd().addJob(e,d)}))},d,T)}};
_.Fdc=function(v,e,d){if(e.length>1){var E=[],T=Object.create(null);e=_.a(e);for(var S=e.next();!S.done;S=e.next())S=S.value,T[S]||(E.push(S),T[S]=!0);e=E}if(e.length===1)return e[0];S=e;E="";T=d===2?"|":"&";S.sort();S=_.a(S);for(var O=S.next();!O.done;O=S.next())E+=O.value+T;if(!v.compoundSignals.get(E)){T=0;S=[];O=_.a(e);for(var b=O.next();!b.done;b=O.next())b=b.value,T++,_.Ad(v,b)||S.push(b);(d=d===2)&&T>S.length||!d&&!S.length?v.signals.push(E):n8I(v,E,d,e,S)}return E};
n8I=function(v,e,d,E,T){var S=T.length,O=function(){d||--S===0?v.processSignal(e):Dxg(v,e)};
T=_.a(T);for(var b=T.next();!b.done;b=T.next())v.addListener(b.value,O);v.compoundSignals.set(e,{signals:E,isOnAny:d,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Dxg(v,e)};
Dxg=function(v,e){if(!_.Ad(v,e)){var d=v.compoundSignals.get(e);if(d&&!d.isTimeoutConditionSatisfied){for(var E=!1,T=0,S=0,O=_.a(d.signals),b=O.next();!b.done;b=O.next()){var Y=b.value;b=!_.Ad(v,Y);uLI.has(Y)?E=!0:(Y=v.compoundSignals.get(Y))?b&&!Y.isTimeoutConditionSatisfied&&(S++,d.isInitialized||Y.timeoutConditionObservers.push(function(){Dxg(v,e)})):b&&T++}d.isInitialized=!0;
d.isOnAny?E&&(d.isTimeoutConditionSatisfied=!0):T===0&&S===0&&(d.isTimeoutConditionSatisfied=!0);if(d.isTimeoutConditionSatisfied)for(d=_.a(d.timeoutConditionObservers),E=d.next();!E.done;E=d.next())E=E.value,E()}}};
lj.prototype.processSignal=lj.prototype.processSignal;lj.prototype.parkOrScheduleJob=lj.prototype.parkOrScheduleJob;lj.prototype.onAny=lj.prototype.onAny;_.pw("ytsignals.getInstance",_.HH);lj.prototype.onAny=lj.prototype.onAny;lj.prototype.parkOrScheduleJob=lj.prototype.parkOrScheduleJob;lj.prototype.processSignal=lj.prototype.processSignal;var uLI=new Set(["eop","eocs","dl","pcl"]);_.P0=new _.nC("MINIPLAYER_SERVICE");var ZS,UxB,p4e;ZS=function(v,e,d){var E=_.FT.getInstance();if(!ZGc){var T=new KUU;var S=void 0,O=_.Bb("ID_TOKEN");O&&T.isAvailable()&&(S=new Ja(T,"yt-queue"+O));ZGc=new ATc(S)}T=ZGc;S=_.HH();this.JSC$12894_actionRouter=E;this.pageManager=v;this.playlistManager=e;this.JSC$12894_playlistNetworkManager=d;this.storage=T;this.signals=S;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.cH=function(){if(!UxB){var v=_.dk(),e=v.resolve(_.eG(_.v5)),d=v.resolve(_.eG(_.zo)),E=v.resolve(_.eG(_.zJ));v=v.resolve(_.lX);UxB=new ZS(e,E,new znt(d,v))}return UxB};
p4e=function(v,e,d){if(d){var E;if(((E=v.responsePlaylistData)==null?void 0:E.playlistId)!==d)return}v.responsePlaylistData&&(d=YFW(e,v.responsePlaylistData),v.responsePlaylistData=(0,_.f0.unsafeClone)(v.responsePlaylistData),yus(v.responsePlaylistData,d));d=v.temporaryItems.findIndex(function(T){return T.videoId===e});
d>-1&&v.temporaryItems.splice(d,1);_.wo(v,_.FB(v,v.response?v.response.autoplayRenderer:void 0))};
_.vQE=function(v,e){if(v.responsePlaylistData){var d=mJO(e,v.responsePlaylistData);yus(v.responsePlaylistData,d);if(v.queueProxy){var E=v.queueProxy;d<0||(E.videoIds.splice(d,1),d<E.currentIndex&&E.JSC$12840_setCurrentIndex(E.currentIndex-1),E.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:e}),x_(E))}}_.wo(v,_.FB(v,v.response?v.response.autoplayRenderer:void 0))};
ZS.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.wo(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
ZS.prototype.setPlaylistData=function(v,e,d){this.temporaryItems=[];this.listId=v;this.responsePlaylistData=e;_.wo(this,_.FB(this,d))};
var eAc=function(v){return(v==null?0:v.playlistId)?v.playlistId:"PPSV"},dhc=function(v){return v&&v.playlistId?v.playlistId==="PPSV"?!0:mNH(_.d1().getState().entities,v.playlistId):!1};
ZS.prototype.isPlayingOfflineVideo=function(){return this.response?dhc(this.response):!1};
ZS.prototype.closeMiniplayer=function(v){var e=this.queueProxy&&this.queueProxy.size()<=1,d=_.dk().resolve(_.P0);if(!this.queueProxy||e)this.queueProxy&&this.clearQueue(),d.close(!0);else{d.pipController.getWindow()&&window.focus();e=this.responsePlaylistData;var E=this.temporaryItems.length+(e&&e.contents?e.contents.length:0);e=_.sz("QUEUE_CLEARED_UNPLURALIZED")||_.Ng("QUEUE_CLEARED",E);e=_.SU(e);d=_.sz("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");E=_.sz("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Ng("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",E);var T=_.sz("MINIPLAYER_CLOSE",void 0,"Close"),S=_.sz("CANCEL",void 0,"Cancel");_.fl(this.JSC$12894_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.pQ(d),dialogMessages:[_.pQ(E)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pQ(T),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
e]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.pQ(S)}}}}}}],v)}};
_.FB=function(v,e){var d={},E=v.response;d.autoplayRenderer=e;if(!v.responsePlaylistData&&!v.temporaryItems.length)return!E||!E.hasRelatedVideoData&&_.N("kevlar_prefetch_data_augments_network_data")||(d.playerData={rvs:E.relatedVideoArgs,endScreenRenderer:E.endScreenRenderer}),d;d.playerData={};if(v.index===void 0)return _.RI(Error("If")),d;d.panel=v.responsePlaylistData?(0,_.f0.unsafeClone)(v.responsePlaylistData):{titleText:_.pQ(_.sz("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
e=d.panel;if(e.contents)for(var T=_.a(v.temporaryItems),S=T.next();!S.done;S=T.next())e.contents.push({playlistPanelVideoRenderer:S.value});v.queueProxy&&E&&E.playingVideo&&E.playingVideoId&&!bg7(E.playingVideoId,d.panel)&&(e=E.playingVideo,T=d.panel,S=v.index,T.contents&&T.contents.splice(S===void 0?0:S,0,{playlistPanelVideoRenderer:e}));E&&E.playingVideoId&&(e=v.index,T=d.panel,e=!T.contents||e>=T.contents.length?void 0:T.contents[e].playlistPanelVideoRenderer,e&&e.videoId===E.playingVideoId||(e=
YFW(E.playingVideoId,d.panel),v.index=e!==-1?e:v.index?v.index-1:0));e=IKS(v.index+1,d.panel);T=void 0;v.index>0&&(T=IKS(v.index-1,d.panel));if(T||e)d.autoplayRenderer=aKW(e,T,d.autoplayRenderer);!e&&(E==null?0:E.relatedVideoArgs)&&(d.playerData.rvs=E.relatedVideoArgs);E=E?E.playlistIndexOffset:0;v.queueProxy?hB0(d.panel,v.index,E,OgS,!0,!0,!0):hB0(d.panel,v.index,E);d.playerData.playlistPanelRenderer=d.panel;return d};
ZS.prototype.openToast=function(v){_.dk().resolve(_.P0).openToast(v,_.sz("ADDED_TO_QUEUE",void 0,"Added to queue"))};
ZS.prototype.isMiniplayerActive=function(){return _.dk().resolve(_.P0).isMiniplayerActive()};
_.wo=function(v,e){v.playlistManager.setAutoplayRenderer(e.autoplayRenderer||null);v.playlistManager.setPlaylistData(e.panel||null);e.playerData&&v.playlistManager.setPlayerPlaybackControlData(e.playerData)};var $Js="#";var EQu={},TjE={},SPu={},WFg={},aJ6={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:(EQu.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",EQu),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:(TjE.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",TjE),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:(SPu.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",SPu),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:(WFg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",WFg),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 ens=[{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:aJ6},{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:aJ6}}];var wkt;_.qd=[[["Y2Vsbmx1OGFkcGtpbmQjeQ==","YXRzcGoxdmFsdWUjbmViYWt1"],"djIxcHdjQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjam9nZGc2"]];
wkt=[[["djNtdXByaW1hcnkjbGgwZHJteg==",null,null],[null,["b2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjdDJ6enU5Z3RkdXNteXRkLXR3by1j","c2NvcGUjMWp4anZpYzNvazM0c3R5bGUt"],null],["aGVhZC1hZCNzdWY4eGF3Z3o2ZG1hc3Q=",["NWY3bG5zaHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjYmEwZnM="],null],[null,["cXMwanR0Mnl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjamNhYTQ=","c2NvcGUjcnptMnV1aHo5MjRzc3R5bGUt"],null],[null,["eWNwYXl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjYzl2bmZ4bHo=","c2NvcGUjbjhxbG5ndDVwZW42c3R5bGUt"],null],[null,["YTZ3czdyd2h0eXRkLWFkLXNsb3QtcmVuZGVyZXIjc3k1"],
null]],[["ZXItYWRzI3drZmVtamQ1ampqY3BsYXk=",null,null]]];_.yd=["cyMzejBpM28xY3M0emdnbG9iYWxDYWxsYmFjaw==","emFta2pvaWpob25BYm5vcm1hbGl0eURldGVjdGVkI3Zu","b25BZFNraXAjOTQ3bmFtdGNtbjlk","OTFjc3BwbTJ1OHJhd19wbGF5ZXJfcmVzcG9uc2UjeHM=","YjJhZFNsb3RzI3JwcGw3OHhicnQ="];_.QV="cyMzejBpM28xY3M0emdnbG9iYWxDYWxsYmFjaw== emFta2pvaWpob25BYm5vcm1hbGl0eURldGVjdGVkI3Zu b25BZFNraXAjOTQ3bmFtdGNtbjlk OTFjc3BwbTJ1OHJhd19wbGF5ZXJfcmVzcG9uc2UjeHM= eWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjNzFnYTJ0bjVzZjNnd2ViX3BsYQ== YWJfc2FfZWYjOTY1cTVuZjJqanlu YjJhZFNsb3RzI3JwcGw3OHhicnQ=".split(" ");var go;go=function(v,e,d){this.pW3=v;this.isAsync=e;this.s69=d};
_.mpj=[new go("b.f_",!1,0),new go("j.s_",!1,2),new go("r.s_",!1,4),new go("e.h_",!1,6),new go("i.s_",!0,8),new go("s.t_",!1,10),new go("p.h_",!1,12),new go("s.i_",!1,14),new go("f.i_",!1,16),new go("a.b_",!1,18),new go("a.o_",!1),new go("g.o_",!1,22),new go("p.i_",!1,24),new go("p.m_",!1),new go("n.k_",!0,20),new go("i.f_",!1),new go("a.s_",!0),new go("m.c_",!1),new go("n.h_",!1,26),new go("o.p_",!1),new go("m.p_",!0,28),new go("o.a_",!1),new go("d.p_",!1),new go("e.i_",!1)].reduce(function(v,e){v[e.pW3]=
e;return v},{});var i5J=function(){};
i5J.prototype.flush=function(v,e){v=v===void 0?[]:v;e=e===void 0?!1:e;if(_.N("enable_client_streamz_web")){v=_.a(v);for(var d=v.next();!d.done;d=v.next())d=Ar2(d.value),this.rootSpec&&_.hr(d,2,this.rootSpec),d={serializedIncrementBatch:_.GQ(d.JSC$9598_serializeBinary())},_.tI("streamzIncremented",d,{sendIsolatedPayload:e})}};
var kuL=function(){};
_.V(kuL,i5J);var O57=function(v){var e=new xfg;var d=new fBA;d=_.L0(d,1,"botguard");v=_.L0(d,2,v);this.rootSpec=_.$m(e,1,BuB,v)};
_.V(O57,i5J);var bX,IJA=new Map;var uFS,V47,xJO,Gu3,fK7,Zg$,DJ0,Hg3;uFS=2;V47=2;xJO=2;Gu3=2;fK7=2;Zg$=2;DJ0=2;Hg3=new BfI;var YPu,mh6,yhe;YPu=function(){this.ongoingFlowNonces=new Map};
_.jU=function(){mh6||(mh6=new YPu);return mh6};
_.hk=function(v,e,d){return{eventType:{flowEventNamespace:v,flowEventType:e},metadata:d,statusCode:void 0,csn:void 0,can:void 0}};
_.qCH=function(v,e){var d=_.jU(),E=yhe(d,e,!0);_.$E(d,v,e,E)};
_.$E=function(v,e,d,E){v={flowNonce:E||yhe(v,d),flowType:d,flowEventType:e.eventType};e.metadata&&(v.flowMetadata=e.metadata);e.statusCode!==void 0&&(v.flowEventStatus=e.statusCode);e.csn&&(v.csn=e.csn);e.can&&(v.can=e.can);_.tI("flowEvent",v,void 0)};
yhe=function(v,e,d){d=d===void 0?!1:d;var E=v.ongoingFlowNonces.get(e);if(!E||d)E=BP(16),v.ongoingFlowNonces.set(e,E);return E};_.qPi=new xui;var $pL={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 uj=function(v,e,d,E,T,S,O){d=d===void 0?!1:d;E=E===void 0?!1:E;S=S===void 0?_.cH():S;this.hasRun=!1;this.cC3=v;this.z2M=e;this.xUU=d;this.fromHistory=E;this.previousVideoId=T;this.ukf=S;this.tempData=O;this.oHX=new _.CZJ};
_.V(uj,vH);uj.prototype.validate=function(v){return!(!v.data.playerResponse||v.data.page!=="watch"&&v.data.page!=="learning_journey_watch"&&v.data.page!=="shorts"||this.hasRun)};
uj.prototype.handle=function(v){var e=this,d=_.L(v.endpoint,_.p2),E=_.L(v.endpoint,_.Go);if(_.N("kevlar_continue_playback_without_player_response")&&(d==null?0:d.videoId)&&this.previousVideoId&&(d==null?void 0:d.videoId)===this.previousVideoId&&(d==null?0:d.continuePlayback)&&!this.fromHistory)this.cC3.resolve();else{var T={};d?T.watch_endpoint=d:E&&(T.watch_endpoint=E,E.endTimeSeconds&&(T.end=E.endTimeSeconds));v.data.page==="watch"?(v.data.filler||this.xUU||(_.l4("cfg"),_.FT.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(T,rhu(this,v.endpoint)),_.N("enable_masthead_quartile_ping_fix")&&Object.assign(T,hAi(this)),Object.assign(T,void 0),v.data.forceExternalPlaylist&&(T.external_list=!0)):v.data.page==="shorts"?_.FT.getInstance().triggerAction("yt-start-loading-shorts"):v.data.page==="learning_journey_watch"&&_.FT.getInstance().triggerAction("yt-start-loading-learning-journey");if(d=this.z2M()){try{d.loadVideoWithPlayerResponse(v.data.playerResponse,T),d.getPlayerPromise().then(this.cC3.resolve)}catch(S){_.RI(S),
this.cC3.resolve()}this.hasRun=!0;d.getPlayerPromise().then(function(S){S.addEventListener("onAbnormalityDetected",function(){var O=v.data.playerResponse,b=S.getVideoData().cpn;DJ0=0;_.b57=b;if(b=YC0(O))e.oHX.increment("IN_PLAYER"),_.sj(5),_.N("ab_st_vid_ks")?S.pauseVideo(!0):S.stopVideo(),O.playabilityStatus=Object.assign({},O.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:b}}),O.videoDetails=void 0,_.FT.getInstance().triggerOptionalAction("yt-updated-playability-status",
O.playabilityStatus)})})}else _.xf(Error("Lf"))}};
var rhu=function(v,e){var d=_.L(e,_.p2);if(e&&d&&d.playlistId&&d.videoId&&(v=v.ukf,v.queueProxy?(v=v.queueProxy,d=v.listId===d.playlistId?v.attributionData.get(d.videoId):void 0):d=void 0,d))return{queue_info:d}},hAi=function(v){var e;
if((e=v.tempData)==null?0:e.adpings)return{adpings:v.tempData.adpings}};var ne=function(v,e,d){this.hasRun=!1;this.yrf=v;this.opC=e;this.p9u=d};
_.V(ne,vH);ne.prototype.validate=function(v){return!!_.f0.getValueByKeys.apply(null,[v.data].concat(_.t7(HG7)))};
ne.prototype.handle=function(v){var e=this;this.yrf.promise.then(function(){var d=v.data;var E=_.f0.getValueByKeys.apply(null,[d].concat(_.t7(P5M))),T=_.f0.getValueByKeys.apply(null,[d].concat(_.t7(z5I))),S=_.f0.getValueByKeys.apply(null,[d].concat(_.t7(BJ7)));var O=(O=_.f0.getValueByKeys.apply(null,[d].concat(_.t7(xxB))))?{videoId:O.videoId,thumbnail:O.thumbnail,title:O.title?_.pQ(O.title):void 0,shortBylineText:O.author?_.pQ(O.author):void 0}:void 0;var b=void 0;_.N("web_get_playlist_id_from_current_endpoint_ks")||
(b=_.f0.getValueByKeys.apply(null,[d].concat(_.t7(C5n))));var Y=_.f0.getValueByKeys.apply(null,[d].concat(_.t7(lln))),q=_.f0.getValueByKeys.apply(null,[d].concat(_.t7(X4c))),r=!!Y||!!q&&!!q.results&&q.results.length>0,h=0;T&&T.currentIndex&&T.localCurrentIndex&&(h=T.currentIndex-T.localCurrentIndex);T&&T.playlistId&&(b=T.playlistId);d={rawResponse:d,autoplayRenderer:E,hasRelatedVideoData:r,playingVideo:O,playingVideoId:S,playlistPanelRenderer:T,playlistId:b,playlistIndex:T&&T.currentIndex,relatedVideoArgs:Y,
endScreenRenderer:q,playlistIndexOffset:h};a:{E=e.p9u;T=e.opC;E.response=d;if(dhc(d))E.downloadPlaylistProxy&&E.downloadPlaylistProxy.getPlaylistId()===eAc(d)||(E.downloadPlaylistProxy=new VpE(eAc(d),E.setPlaylistData.bind(E),E.isPlayingOfflineVideo.bind(E))),E.responsePlaylistData=E.downloadPlaylistProxy.getPlaylistData(),E.listId=eAc(d),E.index=0;else if(d.playlistPanelRenderer&&d.playlistId&&d.autoplayRenderer)d.playlistId.startsWith("TLPQ")?E.queueProxy?E.listId===d.playlistId?(E.index=d.playlistIndex,
E.responsePlaylistData=d.playlistPanelRenderer,E.queueProxy.JSC$12840_setCurrentIndex(E.index)):d.playingVideoId&&E.index!==void 0&&T.clientParams.autoSaveToQueue&&(E.index+=1,E.queueProxy.JSC$12840_setCurrentIndex(E.index),E.queueProxy.addVideos([d.playingVideoId],{},E.index)):(E.queueProxy=new _.BH(E.JSC$12894_playlistNetworkManager,d.playlistId,E.setPlaylistData.bind(E),E.clearQueue.bind(E),_.qF7(d.playlistPanelRenderer),E.storage),E.responsePlaylistData=d.playlistPanelRenderer,E.listId=d.playlistId,
E.index=d.playlistIndex):(E.index=d.playlistIndex,E.listId!==d.playlistId&&E.clearQueue(),E.responsePlaylistData=d.playlistPanelRenderer,E.listId=d.playlistId,E.playlistProxy=new R5B(E.JSC$12894_playlistNetworkManager,d.playlistId,E.setPlaylistData.bind(E),_.qF7(d.playlistPanelRenderer)));else if(!E.queueProxy)E.responsePlaylistData=void 0;else if(d.playingVideoId&&T.clientParams.autoSaveToQueue){if(E.index===void 0){_.RI(Error("Hf"));E.clearQueue();break a}E.queueProxy.videoIds.includes(d.playingVideoId)||
(E.index+=1,E.queueProxy.JSC$12840_setCurrentIndex(E.index),E.queueProxy.addVideos([d.playingVideoId],{},E.index))}_.wo(E,_.FB(E,E.response.autoplayRenderer))}})};var KFn=function(v,e){e=e===void 0?_.cH():e;ro.call(this);this.zA.push(new ne(this.aE,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},e));this.zA.push(new uj(this.aE,v,!1,!1));_.N("web_response_commands_chunk_processor")&&this.zA.push(new hd)};
_.V(KFn,ro);KFn.prototype.processChunk=function(v){v&&v.data.player===void 0&&this.aE.resolve();ro.prototype.processChunk.call(this,v)};var DS=function(v,e){v=v===void 0?{layer:0}:v;this.hasRun=!1;this.createScreenConfig=v;this.saq=e};
_.V(DS,vH);DS.prototype.validate=function(v){return!(this.hasRun||!v.endpoint)};
DS.prototype.handle=function(v){var e=_.NC(),d,E,T=(E=_.L((d=v.endpoint)==null?void 0:d.commandMetadata,_.$B))==null?void 0:E.rootVe;this.saq&&T?_.Ig(e,T,this.saq,this.createScreenConfig):ijE(e,v.endpoint,this.createScreenConfig);this.hasRun=!0};var UT=function(v,e){this.hasRun=!1;this.fnU=v;this.previousVideoId=e};
_.V(UT,vH);UT.prototype.validate=function(v){return _.N("kevlar_continue_playback_without_player_response")&&(v=_.L(v.endpoint,_.p2),(v==null?0:v.videoId)&&this.previousVideoId&&(v==null?void 0:v.videoId)===this.previousVideoId&&(v==null?0:v.continuePlayback))?!1:this.fnU.dZd===0};
UT.prototype.handle=function(v){_.FT.getInstance().triggerAction("yt-stop-old-player",v.data,!0)};var $hJ=function(v){v=v===void 0?{layer:0}:v;ro.call(this);this.zA.push(new UT(this));this.zA.push(new DS(v));this.zA.push(new qN(v))};
_.V($hJ,ro);var pe=function(){vH.apply(this,arguments)};
_.V(pe,vH);pe.prototype.validate=function(v){return!!v.data.preconnect};
pe.prototype.handle=function(v){_.zE("bc");v=_.a(v.data.preconnect);for(var e=v.next();!e.done;e=v.next())e=e.value,(new Image).src=e};var joe=function(v,e,d,E,T,S,O){d=d===void 0?{layer:0}:d;S=S===void 0?_.cH():S;ro.call(this);if(E)if(T){T=S;this.zA.push(new ne(this.aE,e,T));this.zA.push(new pe);var b,Y;this.zA.push(new uj(this.aE,v,!1,!((b=e.clientParams)==null||!b.fromHistory),(Y=e.clientParams)==null?void 0:Y.previousVideoId,T,e.tempData));var q;this.zA.push(new UT(this,(q=e.clientParams)==null?void 0:q.previousVideoId));var r;(r=e.clientParams)!=null&&r.fromHistory||(d.layer||(d=Object.assign({},d,{layer:0})),this.zA.push(new DS(d,
O)),this.zA.push(new qN(d)))}else this.zA.push(new ne(this.aE,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},S)),this.zA.push(new uj(this.aE,v,!1,!1));else this.zA.push(new UT(this)),this.zA.push(new DS(d)),this.zA.push(new qN(d));_.N("web_response_commands_chunk_processor")&&E&&this.zA.push(new hd)};
_.V(joe,ro);joe.prototype.processChunk=function(v){v&&v.data.player===void 0&&this.aE.resolve();ro.prototype.processChunk.call(this,v)};var so2=function(){this.hasRun=this.hasRun=!1};
_.V(so2,vH);so2.prototype.validate=function(v){return!this.hasRun&&!(!v.data.csn||!v.data.rootVe)};
so2.prototype.handle=function(v){this.hasRun=!0;_.HP(v.data.csn,v.data.rootVe,3)};var Nj7=function(v,e,d){d=d===void 0?{layer:0}:d;ro.call(this);this.zA.push(new uj(this.aE,v));this.zA.push(new DS(d));this.zA.push(new qN(d))};
_.V(Nj7,ro);var kLE=function(v,e,d,E,T){d=d===void 0?{layer:0}:d;E=E===void 0?_.cH():E;ro.call(this);var S=!!e&&!!e.clientParams&&!!e.clientParams.miniplayer;S&&this.zA.push(new so2);this.zA.push(new ne(this.aE,e,E));this.zA.push(new pe);var O,b;this.zA.push(new uj(this.aE,v,S,!((O=e.clientParams)==null||!O.fromHistory),(b=e.clientParams)==null?void 0:b.previousVideoId,E,e.tempData));var Y;this.zA.push(new UT(this,(Y=e.clientParams)==null?void 0:Y.previousVideoId));var q;(q=e.clientParams)!=null&&q.fromHistory||
(d.layer||(d=Object.assign({},d,{layer:S?3:0})),this.zA.push(new DS(d,T)),this.zA.push(new qN(d)));_.N("web_response_commands_chunk_processor")&&this.zA.push(new hd)};
_.V(kLE,ro);var vl,oQI;vl={};
_.LFi=(vl["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},vl["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},vl["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},vl["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},vl["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},vl["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},vl["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},vl);_.eN=new _.Xn("yt-edu");_.VVJ=function(){this.JSC$12998_eduDisplayedThisLoad_={}};
oQI=function(v){var e=_.VVJ.getInstance();var d=_.Wi("kevlar_tooltip_impression_cap");e=d&&parseInt(_.eN.get(v+"-impression")||0,10)>=d||_.eN.get(v+"-dismissed")?!1:(d=_.LFi[v])&&!e.JSC$12998_eduDisplayedThisLoad_[d.setKey||v]&&(d.titleText&&_.sz(d.titleText)||d.bodyText&&_.sz(d.bodyText))?!0:!1;if(!e)return null;e=_.LFi[v];if(!e)return null;d=e.bodyText?_.sz(e.bodyText):void 0;var E=e.titleText?_.sz(e.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:e.position,popup:{bubbleHintRenderer:{text:E?
_.pQ(E):void 0,detailsText:d?_.pQ(d):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pQ(_.sz("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:v}}]}}}}}}}},{eduImpressionAction:{key:v}}]};
_.Uk(_.VVJ);var rxS=!1;for(var Jhn="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),GL7=[],dT=6;dT>=1;dT--)GL7.push({columnCount:dT,query:dT==1?0:dT*2*107-4+32,className:"grid-"+dT+"-columns",width:dT*2*107+"px"});_.tVu=function(v){this.actionRouter_=v=v===void 0?_.FT.getInstance():v;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.MVJ(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.MVJ=function(v){var e=v.miniGuideVisible_?72:0,d=v.documentWidth_-(v.guidePersistentAndVisible_?240:e);return GL7.find(function(E){return d>E.query})};
_.Uk(_.tVu);var fJA=function(){var v=this;this.JSC$13010_keyboardInUse=!1;document.addEventListener("keydown",function(){v.onKeydown()});
document.addEventListener("mousedown",function(){v.JSC$13010_keyboardInUse=!1})},RAg;
fJA.prototype.isKeyBoardInUse=function(){return this.JSC$13010_keyboardInUse};
fJA.prototype.onKeydown=function(){this.JSC$13010_keyboardInUse=!0};var PmA,SN;_.E1=new _.Xn("yt-mentions");_.Tf=function(){};
PmA=function(v,e){return SN(e,"drag-to-reorder-edu-displayed")};
SN=function(v,e,d,E,T,S){d=d===void 0?"OPEN_POPUP_POSITION_TOP":d;if(e){if(_.E1.get(e))return;_.E1.set(e,!0,E)}if(T&&S!==void 0){e=Number(_.E1.get(T)||0);if(e>=S)return;_.E1.set(T,e+1)}return[{openPopupAction:{popupType:"HINT",position:d,popup:{bubbleHintRenderer:{detailsText:v,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Uk(_.Tf);var xh2,BjA,Cmi;xh2=function(v,e,d,E){this.JSC$13020_taskManager_=v;this.onFulfilled_=typeof e==="function"?e:null;this.onRejected_=typeof d==="function"?d:null;this.JSC$13020_context_=E};
BjA=function(v,e){v.onFulfilled_&&_.JX(v.JSC$13020_taskManager_,function(){v.onFulfilled_.call(v.JSC$13020_context_,e)})};
Cmi=function(v,e){v.onRejected_&&_.JX(v.JSC$13020_taskManager_,function(){v.onRejected_.call(v.JSC$13020_context_,e)})};
_.Wl=function(v){this.JSC$13023_taskManager_=v;this.callbacks_=[]};
_.Wl.prototype.then=function(v,e,d){this.callbacks_.push(new xh2(this.JSC$13023_taskManager_,v,e,d));return this};
_.Wl.prototype.onSuccess=function(v){this.callbacks_.forEach(function(e){BjA(e,v)})};
_.Wl.prototype.onFailure=function(v){this.callbacks_.forEach(function(e){Cmi(e,v)})};
_.Wl.prototype.cancel=function(){this.callbacks_.length=0};
wuM(_.Wl);_.sj0=null;_.oZ=new _.nC("ACTIVITY_TOKEN");var ac=function(v,e){this.serviceId=new cEn(v,e)};
ac.prototype.toString=function(){return this.serviceId.toString()};var XWB=function(){this.internalMap={}};
_.W=XWB.prototype;_.W.contains=function(v){return Object.prototype.hasOwnProperty.call(this.internalMap,v)};
_.W.get=function(v){if(this.contains(v))return this.internalMap[v]};
_.W.set=function(v,e){this.internalMap[v]=e};
_.W.getKeys=function(){return Object.keys(this.internalMap)};
_.W.remove=function(v){delete this.internalMap[v]};var iA=function(){this.mappings=new XWB;this.errorCallbacks=new Set};
iA.prototype.getModuleId=function(v){return v.serviceId.getModuleId()};
iA.prototype.get=function(v){var e=this.mappings.get(v.toString());return zAI(this,e,v)};
iA.prototype.getMultipleAsync=function(){var v=_.Xa.apply(0,arguments),e=this,d=v.map(function(Y){return e.getModuleId(Y)}),E=v.map(function(Y){return e.mappings.get(Y.toString())}).filter(function(Y){return Y});
if(E.length===v.length)return _.qg(E.map(function(Y,q){return zAI(e,Y,v[q])}));
var T=Mu().loadMultiple(d);E=_.$N(d.map(function(Y){return T[Y]}));
var S=document.hidden,O=-1,b=_.Wi("get_async_timeout_ms",-1);b>-1&&(O=setTimeout(function(){_.xf(new _.kL("Module timeout.",d,S,document.hidden))},b));
return _.j9(E.then(function(){return v.map(function(Y){return zAI(e,e.mappings.get(Y.toString()),Y)})}).thenCatch(function(Y){for(var q=_.a(e.errorCallbacks),r=q.next();!r.done;r=q.next())r=r.value,r(Y);
throw Y;}),function(){clearTimeout(O)})};
iA.prototype.registerService=function(v,e){this.mappings.set(v.toString(),{type:"mapping",value:e});return v};
var zAI=function(v,e,d){switch(e.type){case "mapping":return e.value;case "factory":return e=e.value(),v.mappings.set(d.toString(),{type:"mapping",value:e}),e;default:return _.Z0(e)}};
iA.prototype.onLoadError=function(v){var e=this;this.errorCallbacks.add(v);return function(){e.errorCallbacks.delete(v)}};
_.O1=new iA;var o1j=/^[a-zA-Z0-9_\-]{11}$/;var JxO=_.qF(function(){var v,e;return(e=(v=window).matchMedia)==null?void 0:e.call(v,"(prefers-reduced-motion: reduce)").matches});var lJI=_.qF(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 v=_.AE("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");v||(v=_.hz("VIDEO"),_.pw("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
v));return!!(v&&v.canPlayType&&v.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var POt=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Ic;Ic=function(){this.tokenJars={};if(this.cookiesEnabled=_.jG()){var v=_.Kw.get("CONSISTENCY",void 0);v&&H5M(this,{encryptedTokenJarContents:v})}};
_.BY7=function(){Ic.instance||(Ic.instance=new Ic);return Ic.instance};
Ic.prototype.handleResponse=function(v,e){if(!e)throw Error("Rf");var d,E;e=((d=e.innerTubeRequest.context)==null?void 0:(E=d.request)==null?void 0:E.consistencyTokenJars)||[];var T;(v=(T=v.responseContext)==null?void 0:T.consistencyTokenJar)&&this.replace(e,v)};
Ic.prototype.replace=function(v,e){v=_.a(v);for(var d=v.next();!d.done;d=v.next())delete this.tokenJars[d.value.encryptedTokenJarContents];H5M(this,e)};
var H5M=function(v,e){if(e.encryptedTokenJarContents&&(v.tokenJars[e.encryptedTokenJarContents]=e,typeof e.expirationSeconds==="string")){var d=Number(e.expirationSeconds);setTimeout(function(){delete v.tokenJars[e.encryptedTokenJarContents]},d*1E3);
v.cookiesEnabled&&_.$L("CONSISTENCY",e.encryptedTokenJarContents,d,void 0,!0)}};var AhB,bA;AhB=window.location.hostname.split(".").slice(-2).join(".");_.Co=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var v=_.Bb("LOCATION_PLAYABILITY_TOKEN");_.Bb("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Z5E(this))&&(v=this.localStorage.get("yt-location-playability-token"));v&&(this.locationPlayabilityToken=v,this.mostRecentPosition=void 0)};
_.Co.getInstance=function(){bA=_.AE("yt.clientLocationService.instance");bA||(bA=new _.Co,_.pw("yt.clientLocationService.instance",bA));return bA};
_.Co.prototype.setLocationOnInnerTubeContext=function(v){v.client||(v.client={});if(this.mostRecentPosition)v.client.locationInfo||(v.client.locationInfo={}),v.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),v.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),v.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),v.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)v.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Co.prototype.handleResponse=function(v){var e;v=(e=v.responseContext)==null?void 0:e.locationPlayabilityToken;v!==void 0&&(this.locationPlayabilityToken=v,this.mostRecentPosition=void 0,_.Bb("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Z5E(this))&&this.localStorage.set("yt-location-playability-token",v,15552E3):_.$L("YT_CL",JSON.stringify({loctok:v}),15552E3,AhB,!0))};
var Z5E=function(v){return v.localStorage===void 0?new _.Xn("yt-client-location"):v.localStorage};
_.Co.prototype.clearLocationPlayabilityToken=function(v){v==="TVHTML5"?(this.localStorage=Z5E(this))&&this.localStorage.remove("yt-location-playability-token"):_.IYs("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Co.prototype.getCurrentPositionFromGeolocation=function(){var v=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Sf"));var e=!1,d=1E4;_.Bb("INNERTUBE_CLIENT_NAME")==="MWEB"&&(e=!0,d=15E3);return new Promise(function(E,T){navigator.geolocation.getCurrentPosition(function(S){v.mostRecentPosition=S;E(S)},function(S){T(S)},{enableHighAccuracy:e,
maximumAge:0,timeout:d})})};
_.Co.prototype.createUnpluggedLocationInfo=function(v){var e={};v=v.coords;if(v==null?0:v.latitude)e.latitudeE7=Math.floor(v.latitude*1E7);if(v==null?0:v.longitude)e.longitudeE7=Math.floor(v.longitude*1E7);if(v==null?0:v.accuracy)e.locationRadiusMeters=Math.round(v.accuracy);return e};
_.Co.prototype.createLocationInfo=function(v){var e={};v=v.coords;if(v==null?0:v.latitude)e.latitudeE7=Math.floor(v.latitude*1E7);if(v==null?0:v.longitude)e.longitudeE7=Math.floor(v.longitude*1E7);return e};var che=function(){};
_.W=che.prototype;
_.W.JSC$13090_getRequest=function(v,e,d){e=e===void 0?{}:e;d=d===void 0?UGE:d;var E=e;if(this.isNavigationCommand()){var T,S=(T=_.L(v==null?void 0:v.commandMetadata,_.$B))==null?void 0:T.url;E=_.COj(v.clickTrackingParams,!0,!1,S,this.JSC$13090_getClientScreen(E))}else E=_.COj(v.clickTrackingParams,!1,this.includeCsn);E={context:E};if(T=this.getExtension(v))return this.JSC$13090_buildRequest(E,T,e),T=this.getApiUrl(v),S=Object.assign({},{command:v},this.getRequestConfig(v,e)),E={input:T,requestShell:D_(T),
innerTubeRequest:E,config:S},E.config.authStrategy?E.config.authStrategy.identity=d:E.config.authStrategy={identity:d},(v=this.JSC$13090_getRequestKey(v,e))&&!E.config.requestKey&&(E.config.requestKey=v),E;v=new _.kL("Error: Failed to create Request from Command.",v);_.RI(v)};
_.W.getApiUrl=function(v){var e=_.Ej(this.getApiPaths(v)),d;(v=(d=_.L(v.commandMetadata,_.$B))==null?void 0:d.apiUrl)&&(e=v);return IXt(OPS(e))};
_.W.isNavigationCommand=function(){return!1};
_.W.JSC$13090_getClientScreen=function(){};
_.W.JSC$13090_getRequestKey=function(){};
_.W.getRequestConfig=function(){};
_.vP.Object.defineProperties(che.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var YK=function(){};
_.V(YK,che);YK.prototype.JSC$13097_getStoreKey=function(){};
YK.prototype.JSC$13090_getRequestKey=function(v,e){e=e===void 0?{}:e;return this.JSC$13097_getStoreKey(v,e)};var FFi;_.mZ=function(v,e,d){var E=d&&d>0?d:0;d=E?Date.now()+E*1E3:0;if((E=E?(0,_.wWB)():FFi())&&window.JSON){typeof e!=="string"&&(e=JSON.stringify(e,void 0));try{E.set(v,e,d)}catch(T){E.remove(v)}}};
_.yy=function(v){var e=FFi(),d=(0,_.wWB)();if(!e&&!d||!window.JSON)return null;try{var E=e.get(v)}catch(T){}if(typeof E!=="string")try{E=d.get(v)}catch(T){}if(typeof E!=="string")return null;try{E=JSON.parse(E,void 0)}catch(T){}return E};
_.q$=function(v){try{var e=FFi(),d=(0,_.wWB)();e&&e.remove(v);d&&d.remove(v)}catch(E){}};
_.wWB=_.qF(function(){try{var v=new hls;var e=v.isAvailable()?v:null}catch(d){return null}return e?new _.Yq(e):null});
FFi=_.qF(function(){var v=new KUU;return v.isAvailable()?new _.Yq(v):null});var v0=new _.nC("ENTITY_STATE_TOKEN"),rT=new _.nC("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Qou=XMLHttpRequest.prototype.fetch,gQ6=Qou&&Qou.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!DT?!0:!1;var hb=function(v){this.JSC$13102_storeWithEntities=v};
_.V(hb,YK);_.W=hb.prototype;_.W.getApiPaths=function(){return IdI};
_.W.getExtension=function(v){return _.L(v,_.p2)||_.L(v,_.Go)||_.L(v,O6M)};
_.W.isNavigationCommand=function(){return!0};
_.W.JSC$13097_getStoreKey=function(v){if((_.N("kevlar_cache_on_ttl_player")||_.N("mweb_enable_shorts_innertube_player_prefetch")||_.N("mweb_use_new_history_manager")||_.N("web_shorts_prefetch_service_enabled"))&&(v=this.getExtension(v))&&v.videoId){var e={videoId:v.videoId};v.playlistId&&(e.playlistId=v.playlistId);v.playerParams&&(e.params=v.playerParams);return _.Uw("player",e)}};
_.W.JSC$13090_getClientScreen=function(v){var e;return((e=v.contentPlaybackContext)==null?void 0:e.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.W.JSC$13090_buildRequest=function(v,e,d){if(_.N("enable_interstitial_entity_check")){var E=this.JSC$13102_storeWithEntities;if(e.videoId)for(var T=_.a(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),S=T.next();!S.done;S=T.next()){S=S.value;var O;var b=void 0,Y=void 0,q=e.videoId,r=S;(O=E)?(q=_.rg(q+r,"interstitialInteractionStateEntity"),O=(b=(Y=_.h_(O.getState().entities,"interstitialInteractionStateEntity",q))==null?void 0:Y.primaryButtonClicked)!=null?b:!1):O=!1;if(O)switch(S){case "CONTENT_CHECK_REQUIRED":e.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":e.racyCheckOk=!0}}}e.videoId&&(v.videoId=e.videoId);e.playlistId&&(v.playlistId=e.playlistId);e.index!==void 0&&(v.playlistIndex=e.index+1);e.playerParams&&(v.params=e.playerParams);"startTimeSeconds"in e&&e.startTimeSeconds&&(_.N("enable_player_request_builder_start_time_floor")?v.startTimeSecs=Math.floor(e.startTimeSeconds):v.startTimeSecs=e.startTimeSeconds);d.contentPlaybackContext&&(v.playbackContext={contentPlaybackContext:d.contentPlaybackContext});d.prefetchPlaybackContext&&
(v.playbackContext=Object.assign({},v.playbackContext,{prefetchPlaybackContext:d.prefetchPlaybackContext}),v.context.request||(v.context.request={}),v.context.request.isPrefetch=!0);v.playbackContext||(v.playbackContext={});E=lJI();v.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!E,supportXhr:gQ6};d.overrideMutedAtStart&&(v.overrideMutedAtStart=d.overrideMutedAtStart);v.racyCheckOk=!!e.racyCheckOk;v.contentCheckOk=!!e.contentCheckOk;!_.N("captions_prefs_killswitch")&&(d=(d=_.yy("yt-player-caption-language-preferences"))?
d:[],d==null?0:d.length)&&(v.captionParams={viewerSelectedCaptionLangs:d})};
_.W.getRequestConfig=function(v){v=this.JSC$13097_getStoreKey(v);var e;v&&(e={storeStrategy:{storeKey:v}});_.N("web_log_player_watch_next_ticks")&&(e=e||{},e.requestTick="ps_s",e.responseTick="ps_r");return e};
hb[ua]=[v0];var Ks=function(){};
_.V(Ks,YK);_.W=Ks.prototype;_.W.getApiPaths=function(){return AxA};
_.W.getExtension=function(v){return _.L(v,_.p2)};
_.W.isNavigationCommand=function(){return!0};
_.W.JSC$13097_getStoreKey=function(v){if((v=this.getExtension(v))&&v.videoId){var e={videoId:v.videoId};v.playlistId&&(e.playlistId=v.playlistId);v.index&&(e.index=v.index);v.params&&(e.params=v.params);return _.Uw("next",e)}};
_.W.JSC$13090_getClientScreen=function(v){var e;return((e=v.contentPlaybackContext)==null?void 0:e.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.W.JSC$13090_buildRequest=function(v,e,d){e.videoId&&(v.videoId=e.videoId);e.playlistId&&(v.playlistId=e.playlistId);e.params&&(v.params=e.params);e.index!==void 0&&(v.playlistIndex=e.index);v.racyCheckOk=!(!d.racyCheckOk&&!e.racyCheckOk);v.contentCheckOk=!!e.contentCheckOk;d.contentPlaybackContext&&(v.autonavState=d.contentPlaybackContext.autonavState,v.playbackContext={vis:d.contentPlaybackContext.vis,lactMilliseconds:d.contentPlaybackContext.lactMilliseconds});d.prefetchPlaybackContext&&(v.context.request||
(v.context.request={}),v.context.request.isPrefetch=!0);_.N("captions_hats_killswitch")||(e=_.LB().getFlag(65),e=e!=null?!e:!1,d=!!_.yy("yt-player-sticky-caption"),v.captionsRequested=e&&d)};
_.W.getRequestConfig=function(v){v=this.JSC$13097_getStoreKey(v);var e;v&&(e={storeStrategy:{storeKey:v}});_.N("web_log_player_watch_next_ticks")&&(e=e||{},e.requestTick="wn_s",e.responseTick="wn_r");return e};
var $K=function(){};
_.V($K,YK);$K.prototype.getApiPaths=function(){return AxA};
$K.prototype.getExtension=function(v){return _.L(v,_.Ha)};
$K.prototype.JSC$13090_buildRequest=function(v,e){e.token&&(v.continuation=e.token)};var jN=function(v,e){this.playerRequestBuilder=v;this.watchNextRequestBuilder=e};
_.V(jN,YK);jN.prototype.getApiPaths=function(){return pkJ};
jN.prototype.getExtension=function(v){return _.L(v,_.p2)};
jN.prototype.isNavigationCommand=function(){return!0};
jN.prototype.JSC$13090_buildRequest=function(v,e,d){v.playerRequest={};this.playerRequestBuilder.JSC$13090_buildRequest(v.playerRequest,e,d);_.N("web_streaming_watch")&&(v.watchNextRequest={},this.watchNextRequestBuilder.JSC$13090_buildRequest(v.watchNextRequest,e,d))};
jN[ua]=[hb,Ks];var ugu;_.s1=new _.nC("SHORTS_CONTROLLER_TOKEN");ugu=new _.nC("SHORTS_STATE_STORE_TOKEN");var N$=function(v,e){var d=_.Xa.apply(2,arguments);v=v===void 0?0:v;_.kL.call(this,e,d);this.errorType=v;Object.setPrototypeOf(this,this.constructor.prototype)};
_.V(N$,_.kL);var nQ6,DhM,pWu,ZVs,CO,aj$,EOJ,djn,OK7,Wbu,SDg;nQ6=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(v){return v+"="}).join("|"));
DhM=RegExp(".*\\?.*playnext=1.*");_.kK=function(v,e,d,E){this.watchEndpointMap=v;this.reelWatchEndpointMap=e;this.innerTubeTransportService=d;this.fetchPbj=E};
pWu=function(v,e,d){var E=_.dk().resolve(_.eG(UhB));_.kK.instance=new _.kK(v,e,d,E)};
_.vOI=function(v,e){var d=_.Wi("web_pbj_log_warning_rate",0);d=d>0&&Math.random()<d;var E;if((E=_.L(e.commandMetadata,_.$B))==null||!E.rootVe)return d&&_.xf(Error("Uf")),!1;var T;E=(T=_.L(e.commandMetadata,_.$B))==null?void 0:T.url;if(!E)return d&&_.xf(Error("Vf")),!1;if(DhM.test(E))return!0;if(nQ6.test(E))return d&&_.xf(Error("Wf`"+E)),!1;if(_.L(e,_.p2)){if(!(v.watchEndpointMap.watchNext&&v.watchEndpointMap.player||_.N("kevlar_fetch_initial_data_op_watch_client")))return d&&_.xf(Error("Nf")),!1;
v=_.Wi("web_pbj_log_warning_rate",0);v=v>0&&Math.random()<v;_.L(e,_.p2)?Lw3(e)?e=!0:(v&&_.xf(Error("Of")),e=!1):(v&&_.xf(Error("Nf")),e=!1);return e}if(_.L(e,_.Go))return Vq$(e);if(_.L(e,_.PD))return!0;v=_.Fj(v.innerTubeTransportService,e);!v&&d&&_.RI(Error("Xf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(e)});return v};
ZVs=function(v,e,d,E,T,S){e={url:e};if(d==null?0:d.itct)e.parentTrackingParams=d.itct;var O=_.Ej($pM);return _.XB(v.innerTubeTransportService,e,O).then(function(b){(b=b.endpoint)||(b=_.$_);(d==null?0:d.itct)&&b&&!b.trackingParams&&(b.trackingParams=d.itct);var Y=ob(b);return CO(v,b,d,E,Y,T,S)})};
CO=function(v,e,d,E,T,S,O,b){b=b===void 0?{}:b;if(v.fetchPbj&&!_.vOI(v,e)&&!_.N("force_one_platform")){b=v.fetchPbj(e);var Y=_.qg(b.then(function(F){if(!F)throw Error("Yf");O(Y)||S(e,F);return F}));
return Y}var q,r,h={rootVe:(q=_.L(e.commandMetadata,_.$B))==null?void 0:q.rootVe,url:(r=_.L(e.commandMetadata,_.$B))==null?void 0:r.url,endpoint:e,page:T};if(_.L(e,_.p2)){var K,k={contentPlaybackContext:_.fo(d,(K=_.L(e.commandMetadata,_.$B))==null?void 0:K.url,E)},J=_.gq();_.N("web_streaming_watch")&&window.TextDecoderStream?(b=eKu(v.innerTubeTransportService,e,k,function(F){!h.response&&F.content&&(h.response=F.content);!h.playerResponse&&F.player&&(h.playerResponse=F.player);S(e,h)}),q=bP0(e),q.length&&
(h.preconnect=q,S(e,h)),djn(b,J,h).catch(function(F){F instanceof N$&&F.errorType===2&&_.N("web_streaming_watch_fallback")&&EOJ(v,e,k,h,S,O,J)})):EOJ(v,e,k,h,S,O,J);
return J.promise}if(_.L(e,_.Go)){var R;if(((R=_.L(e,_.Go))==null?void 0:R.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var B=_.gq();_.Tzn(_.dk().resolve(_.s1),e).then(function(F){SDg(v,d,E,T,S,B,F)});
return B.promise}b=_.qg();var X;q={contentPlaybackContext:_.fo(d,(X=_.L(e.commandMetadata,_.$B))==null?void 0:X.url,E)};(X=v.reelWatchEndpointMap.player)&&(X=X().JSC$13090_getRequest(e,q))&&(b=_.XB(v.innerTubeTransportService,X.innerTubeRequest,X.input,e.clickTrackingParams,X.config));X=_.qg();(r=v.reelWatchEndpointMap.reelItemWatch)&&(r=r().JSC$13090_getRequest(e))&&(X=_.XB(v.innerTubeTransportService,r.innerTubeRequest,r.input,e.clickTrackingParams,r.config));r=_.qg();_.N("web_enable_delay_shorts_sequence_call_new")||
(K=v.reelWatchEndpointMap.reelWatchSequence)&&_.L(e,_.Go).sequenceParams&&(q=K().JSC$13090_getRequest(e,q))&&(r=_.XB(v.innerTubeTransportService,q.innerTubeRequest,q.input,e.clickTrackingParams,q.config));q=_.qg(h);K=_.gq();Wbu(e,q,b,X,r,S,O,K);return K.promise}var Z;if(_.L(e,jjL)&&((Z=_.L(e.commandMetadata,_.$B))==null?0:Z.url))return b=xp0(_.Az(xx().location.href),_.Az(_.L(e.commandMetadata,_.$B).url)).toString(),ZVs(v,b,d,E,S,function(){return!1});
if(_.L(e,_.PD))return S(e,h),_.qg(h);if(_.Fj(v.innerTubeTransportService,e)){b=Object.assign({},{tempData:d,disableCache:d.disableCache},b);var U=_.Qw(v.innerTubeTransportService,e,b).then(function(F){h.response=F;O(U)||S(e,h);return h});
return U}return _.qg(h)};
_.iKA=function(v,e,d,E){if(_.L(e,_.p2)||_.L(e,_.Go)&&(_.N("mweb_enable_shorts_innertube_player_prefetch")||_.N("kevlar_enable_shorts_prefetch_in_sequence"))||_.L(e,O6M)&&_.N("web_enable_prefetching_videos_on_home")){var T,S={contentPlaybackContext:_.fo(d,(T=_.L(e.commandMetadata,_.$B))==null?void 0:T.url,E),prefetchPlaybackContext:Mq$(d)},O,b,Y;if(((O=_.L(e,_.p2))==null?void 0:(b=O.watchEndpointSupportedPrefetchConfig)==null?void 0:(Y=b.prefetchHintConfig)==null?void 0:Y.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(d=
v.watchEndpointMap.watchNext)if(S=d().JSC$13090_getRequest(e,S))return Promise.resolve(_.XB(v.innerTubeTransportService,S.innerTubeRequest,S.input,void 0,S.config).then(function(h){return h}))}else if(d=v.watchEndpointMap.player)if(S=d().JSC$13090_getRequest(e,S))return Promise.resolve(_.XB(v.innerTubeTransportService,S.innerTubeRequest,S.input,void 0,S.config).then(function(h){return h}))}else if(_.Fj(v.innerTubeTransportService,e)){var q={tempData:d},r=a66(v.innerTubeTransportService,e);
return r?new Promise(function(h,K){var k,J;return _.I(function(R){if(R.nextAddress==1)return R.yield(r,2);if(R.nextAddress!=4)return k=R.yieldResult,k.JSC$13097_getStoreKey(e,q)?R.yield(_.Qw(v.innerTubeTransportService,e,q),4):(K(new _.kL("Prefetching request builder with no store key.",e)),R.jumpTo(0));J=R.yieldResult;h(J);_.s9(R)})}):Promise.reject(new _.kL("Prefetching unregistered request builder.",e))}return Promise.reject(new _.kL("No request builder available to prefetch endpoint.",e))};
aj$=function(v,e){var d,E,T;if(_.L(e,_.p2)){var S=v.watchEndpointMap.watchNext;S&&(d=S());(v=v.watchEndpointMap.player)&&(E=v())}else if(_.L(e,_.Go))(S=v.reelWatchEndpointMap.reelItemWatch)&&(d=S()),(S=v.reelWatchEndpointMap.player)&&(E=S()),(v=v.reelWatchEndpointMap.reelWatchSequence)&&(T=v());else{a:{v=kGM(e,v.innerTubeTransportService.endpointMap);if(v!==void 0)if(typeof v.then==="function")_.RI(new _.kL("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",e));else break a;
v=void 0}v&&(d=v)}var O,b,Y;return{content:(O=d)==null?void 0:O.JSC$13097_getStoreKey(e),player:(b=E)==null?void 0:b.JSC$13097_getStoreKey(e),reelSequence:(Y=T)==null?void 0:Y.JSC$13097_getStoreKey(e)}};
EOJ=function(v,e,d,E,T,S,O){var b=_.qg(),Y=v.watchEndpointMap.player;_.N("web_streaming_player")&&(Y=tk(jN));Y&&(Y=Y().JSC$13090_getRequest(e,d))&&(b=_.XB(v.innerTubeTransportService,Y.innerTubeRequest,Y.input,e.clickTrackingParams,Y.config));Y=_.qg();var q=v.watchEndpointMap.watchNext;q&&(d=q().JSC$13090_getRequest(e,d))&&(Y=_.XB(v.innerTubeTransportService,d.innerTubeRequest,d.input,e.clickTrackingParams,d.config));v=_.qg(E);OK7(e,v,b,Y,T,S,O)};
djn=function(v,e,d){return _.I(function(E){if(E.nextAddress==1)return E.yield(v,2);e.resolve(d);_.s9(E)})};
OK7=function(v,e,d,E,T,S,O){var b,Y,q,r,h;_.I(function(K){switch(K.nextAddress){case 1:return K.yield(e,2);case 2:b=K.yieldResult;if(S(O.promise))return O.resolve(b),K.return();T(v,b);Y=bP0(v);if(!Y.length){K.jumpTo(3);break}return K.yield(e,4);case 4:b.preconnect=Y,T(v,b);case 3:return _.qq(K,5),K.yield(d,7);case 7:q=K.yieldResult;_.wk(K,6);break;case 5:return r=_.jl(K),O.reject(r),K.return();case 6:if(q===void 0)return b.reload=!0,T(v,b),O.resolve(b),K.return();if(S(O.promise))return O.resolve(b),
K.return();b.playerResponse=q;T(v,b);_.qq(K,8);return K.yield(E,10);case 10:h=K.yieldResult;_.wk(K,9);break;case 8:_.jl(K);case 9:if(h===void 0)return b.response={responseContext:{}},O.resolve(b),K.return();if(S(O.promise))return O.resolve(b),K.return();b.response=h;T(v,b);O.resolve(b);_.s9(K)}})};
Wbu=function(v,e,d,E,T,S,O,b){var Y,q,r,h,K,k;_.I(function(J){switch(J.nextAddress){case 1:return J.yield(e,2);case 2:Y=J.yieldResult;if(O(b.promise))return b.resolve(Y),J.return();S(v,Y);q=bP0(v);if(!q.length){J.jumpTo(3);break}return J.yield(e,4);case 4:Y.preconnect=q,S(v,Y);case 3:return _.qq(J,5),J.yield(d,7);case 7:r=J.yieldResult;_.wk(J,6);break;case 5:return h=_.jl(J),b.reject(h),J.return();case 6:if(r===void 0)return Y.reload=!0,S(v,Y),b.resolve(Y),J.return();if(O(b.promise))return b.resolve(Y),
J.return();Y.playerResponse=r;S(v,Y);_.qq(J,8);return J.yield(E,10);case 10:K=J.yieldResult;_.wk(J,9);break;case 8:_.jl(J);case 9:if(K===void 0)return Y.response={responseContext:{}},b.resolve(Y),J.return();if(O(b.promise))return b.resolve(Y),J.return();Y.response=K;S(v,Y);_.qq(J,11);return J.yield(T,13);case 13:k=J.yieldResult;_.wk(J,12);break;case 11:_.jl(J);case 12:if(O(b.promise))return b.resolve(Y),J.return();k&&(Y.reelWatchSequenceResponse=k);S(v,Y);b.resolve(Y);_.s9(J)}})};
SDg=function(v,e,d,E,T,S,O){var b,Y,q,r,h,K;_.I(function(k){if((b=O)==null||!b.replacementEndpoint)return S.reject(),k.return();Y=O.replacementEndpoint;(q=_.L(Y,_.Go))?(O.sequenceContinuation&&(q.sequenceParams=O.sequenceContinuation),r=_.dk().resolve(_.s1),h=q.sequenceParams,I6c(r,Y)&&delete q.sequenceParams,K=CO(v,Y,e,d,E,T,function(){return!1}),K.then(function(J){return _.I(function(R){if(R.nextAddress==1)return bKc(r,{reelWatchEndpoint:{sequenceParams:h}},J),R.yield(0,2);
S.resolve(J);_.s9(R)})})):S.reject();
_.s9(k)})};_.YDc=function(v){if(v.validatedFragments_.length==0)return null;if(!v.mergedPrefetchedData_){for(var e=[],d=_.a(v.validatedFragments_),E=d.next();!E.done;E=d.next()){E=_.a(v.fragmentConfiguration_[E.value].graftedKeys);for(var T=E.next();!T.done;T=E.next())(T=v.prefetchedData_[T.value].trackingParams)&&e.push(T)}v.mergedPrefetchedData_={};Object.assign(v.mergedPrefetchedData_,v.prefetchedData_,{clientSideGrafts:e})}return v.mergedPrefetchedData_};var mj7;_.Ls=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
mj7=function(v,e,d){if(_.NYS(e))return v.prefetchCache_.get(_.kTO(e,d))};_.Vy=new _.nC("NAVIGATION_TOKEN");var yOc=function(v){var e=this;var d=d===void 0?ldO():d;var E=E===void 0?_.dk().resolve(_.Vy):E;this.onePickCommand=v;this.JSC$13200_playlistNetworkManager=d;this.navigationManager=E;this.videoPickerBuilder=_.X70("yt-addtoplaylist");_.IT7(Ef6(Tbi(dG7(this.videoPickerBuilder.setTitle(v.modalTitle).setSize(1E3).addView(WqM()).addView(SIc())).addView("youtube"),v.selectButtonLabel)),function(T){e.handleAction(T)})};
yOc.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
yOc.prototype.handleAction=function(v){var e=this;if(v&&this.onePickCommand.listId&&v.action==="picked"&&v.docs){var d=[];v.docs.forEach(function(E){d.push({addedVideoId:E.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13200_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,d).then(function(){_.N("playlist_add_video_hard_reload_killswitch")?e.navigationManager.reload():qDg(e.navigationManager)})}};var rOJ=function(){if(this.constructor===rOJ)throw new TypeError("Zf");};
_.W=rOJ.prototype;_.W.dispose=function(){};
_.W.disconnect=function(){};
_.W.reconnect=function(){};
_.W.observe=function(v,e,d){return{element:v,option:d}};
_.W.unobserveByKey=function(){};var HEj=function(v,e){e=e===void 0?0:e;rOJ.call(this);this.viewroot=v;this.defaultPrescanHeight=e;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),v?{root:v,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.V(HEj,rOJ);_.W=HEj.prototype;_.W.dispose=function(){this.disconnect();this.handlers.clear()};
_.W.disconnect=function(v){this.isConnected=!1;this.pauseObservingUntilReconnect=v===void 0?!1:v;this.observer.disconnect();v=_.a(this.prescanObservers.values());for(var e=v.next();!e.done;e=v.next())e.value.disconnect()};
_.W.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var v=_.a(this.handlers),e=v.next();!e.done;e=v.next()){var d=_.a(e.value);e=d.next().value;var E=d.next().value;d=!1;E=_.a(E.keys());for(var T=E.next();!T.done;T=E.next())if((T=T.value)&&T.state==="prescan"){d=!0;break}d&&hKn(this,e).observe(e);this.observer.observe(e)}}};
_.W.handleObserveEvent=function(v){v=_.a(v);for(var e=v.next();!e.done;e=v.next()){e=e.value;var d=this.handlers.get(e.target);if(d){var E=e.isIntersecting;d=_.a(d);for(var T=d.next();!T.done;T=d.next()){var S=_.a(T.value);T=S.next().value;S=S.next().value;T&&(T.state==="visible"&&E||T.state==="hidden"&&!E)&&(S(e.target,T.state),T.calledOnce&&this.unobserveByKey({element:e.target,option:T}))}}}};
_.W.handlePrescanEvent=function(v){v=_.a(v);for(var e=v.next();!e.done;e=v.next()){e=e.value;var d=this.handlers.get(e.target);if(d&&e.isIntersecting){d=_.a(d);for(var E=d.next();!E.done;E=d.next()){var T=_.a(E.value);E=T.next().value;T=T.next().value;E&&E.state==="prescan"&&(T(e.target,E.state),E.calledOnce&&this.unobserveByKey({element:e.target,option:E}))}}}};
_.W.observe=function(v,e,d){var E=(E=this.handlers.get(v))&&E.has(d)?{element:v,option:d}:void 0;if(E)return E;E={element:v,option:d};this.handlers.has(v)||this.handlers.set(v,new Map);var T=this.handlers.get(v);T&&!T.has(d)&&T.set(d,e);this.pauseObservingUntilReconnect||(d.state==="prescan"&&hKn(this,v).observe(v),this.observer.observe(v));return E};
_.W.unobserveByKey=function(v){var e=this.handlers.get(v.element);if(e&&e.has(v.option)){e.delete(v.option);if(v&&v.option.state==="prescan")for(var d=_.a(this.prescanObservers.values()),E=d.next();!E.done;E=d.next())E.value.unobserve(v.element);e.size===0&&(this.handlers.delete(v.element),this.observer.unobserve(v.element))}};
var hKn=function(v,e){var d=v.defaultPrescanHeight;e.hasAttribute("prescan-height")&&(e=Number(e.getAttribute("prescan-height")),isNaN(e)||(d=e));if(v.prescanObservers.has(d))return v.prescanObservers.get(d);e="-0.1px -0.1px "+d+"px -0.1px";e=new IntersectionObserver(v.handlePrescanEvent.bind(v),v.viewroot?{root:v.viewroot,rootMargin:e}:{rootMargin:e});v.prescanObservers.set(d,e);return e};var Kb6=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],$jc=function(){var v,e=this;this.JSC$13217_actionRouter=v=v===void 0?_.FT.getInstance():v;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return e.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return e.visibilityObservedElementHandlerKeys}}},jvu,Nzn,Vu2;
$jc.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.N("kevlar_use_vimio_behavior")&&_.Bb("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=AxW())};
$jc.prototype.dispose=function(){this.visibilityMonitor&&_.qs(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
$jc.prototype.handleVisibilityRefreshed=function(){for(var v=_.a(this.targetMap.entries()),e=v.next();!e.done;e=v.next()){var d=_.a(e.value);e=d.next().value;d=d.next().value;_.svI(this,e,d)}};
_.Lb6=function(v,e,d){Nzn(v,d);var E=_.kCM(v,e);E.element=d;v.targetedElements.set(d,e);_.svI(v,e,E)};
Nzn=function(v,e){var d=v.targetedElements.get(e);if(d){var E=v.targetMap.get(d);E&&(delete E.element,v.targetMap.set(d,E));v.targetedElements.delete(e);v.visibilityObserver&&v.visibilityObservedElementHandlerKeys&&(d=v.visibilityObservedElementHandlerKeys.get(e))&&(v.visibilityObserver.unobserveByKey(d),v.visibilityObservedElementHandlerKeys.delete(e))}};
_.svI=function(v,e,d){var E=d.action,T=d.element;T&&E&&(Kb6.includes(e)||_.Bb("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||v.visibilityMonitor&&v.visibilityMonitor.isNodeVisible(T)?Vu2(v,e,d):v.visibilityObserver&&(v.visibilityObservedElementHandlerKeys||(v.visibilityObservedElementHandlerKeys=new WeakMap),E=v.visibilityObserver.observe(T,function(){Vu2(v,e,d);v.visibilityObservedElementHandlerKeys.delete(T)},{calledOnce:!0,
state:"visible"}),v.visibilityObservedElementHandlerKeys.set(T,E)))};
Vu2=function(v,e,d){var E=d.action;(d=d.element)&&E&&(_.fl(v.JSC$13217_actionRouter,[E],d),v.targetMap.delete(e),v.targetedElements.delete(d),v.triggeredTargets.add(e))};
_.kCM=function(v,e){var d=v.targetMap.get(e);d||(d={},v.targetMap.set(e,d));return d};
_.oc=function(){jvu||(jvu=new $jc);return jvu};var oOM=document.createElement("div");oOM.style.touchAction="pan-down";var ZEt=oOM.style.touchAction==="pan-down";var JO6,GCI;JO6=function(){this.hammerFn=axB();this.JSC$13225_screenManager=_.NC();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.bH(83615);_.Y_(this.JSC$13225_screenManager,this.ve);cx$()};
_.Jb=function(){GCI||(GCI=new JO6);return GCI};
JO6.prototype.registerTouchEvents=function(v,e,d){var E=_.Xa.apply(3,arguments),T=this.hammerFn(v,{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}]]});d&&T.set({touchAction:d});this.nodeManagerMapping.set(v,T);var S=
w7H(e);E=_.a(E);for(var O=E.next();!O.done;O=E.next()){O=O.value;if(O.includes("swipe")||O.includes("pinch")||O.includes("pan"))O.includes("swipe")?T.get("swipe").set({enable:!0,direction:S,velocity:.2}):O.includes("pinch")?T.get("pinch").set({enable:!0}):O.includes("pan")&&(T.get("pan").set({enable:!0,direction:S}),T.get("swipe").set({enable:!0,direction:S,velocity:.2}),T.get("swipe").recognizeWith("pan"));MuE(this,v,T,O)}};
var MuE=function(v,e,d,E){d.on(E,function(T){if(E.includes("pinch"))v.lastPinchTime=Date.now();else if(E.includes("swipe")&&Date.now()-v.lastPinchTime<400)return;T.pointerType!=="mouse"&&(T=E==="doubletap"?{coordinates:T.center}:E.includes("pan")?T:E.includes("swipe")?{target:T.target}:{},e.dispatchEvent(new CustomEvent(E,{bubbles:!0,composed:!0,detail:T})))})};
JO6.prototype.unregisterTouchEvents=function(v){var e=_.Xa.apply(1,arguments),d=this.nodeManagerMapping.get(v);if(d){e=_.a(e);for(var E=e.next();!E.done;E=e.next())d.off(E.value);this.nodeManagerMapping.delete(v);v.style.touchAction="unset"}};var tu0=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var FwW=null;var f6J=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},I3H=function(){f6J.instance||(f6J.instance=new f6J);
return f6J.instance},bjH=function(v){var e=v.networkEvents;
v.networkEvents=[];return _.N("enable_network_monitoring")?e:[]};var RK6;RK6={};_.Pdc=dt("yt-serviceworker-metadata",{objectStores:(RK6.auth={addedAtVersion:1},RK6["resource-manifest-assets"]={addedAtVersion:2},RK6),shared:!0,upgrade:function(v,e){e(1)&&lR(v,"resource-manifest-assets");e(2)&&lR(v,"auth")},
version:2});var Up3=self.location.origin+"/";p7S([/\.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\//]);p7S([/purge_shell=1/]);var xjB=void 0;xjB=xjB===void 0?[]:xjB;for(var Bze=[],CdB=_.a(wVc),X2n=CdB.next();!X2n.done;X2n=CdB.next())Bze.push({key:X2n.value});for(var zK2=_.a(xjB),l6E=zK2.next();!l6E.done;l6E=zK2.next())Bze.push(l6E.value);var HKe,Hv=_.TO==null?void 0:(HKe=_.TO.performance)==null?void 0:HKe.memory,dwt=!1,Y20={},S2O={},Ak={},Zp=navigator;var Gf=function(v){this.JSC$13269_expiringStorage=new V8(v)};
Gf.prototype.set=function(v,e,d){d=d!==void 0?Date.now()+d:void 0;this.JSC$13269_expiringStorage.set(v,e,d)};
Gf.prototype.get=function(v){return this.JSC$13269_expiringStorage.get(v)};
Gf.prototype.remove=function(v){this.JSC$13269_expiringStorage.remove(v)};var j6L=_.Z9(["https://www.youtube.com/",""]),s6S=_.Z9(["https://studio.youtube.com/",""]),o7M="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",kyW=null,f30;var AOu=_.Z9(["https://www.youtube.com/iframe_api"]),M$=function(){this.playerResolver_=_.gq();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.mv;this.playbackDurationSeconds_=0},ZKc=function(v){var e=function(){return window.YT&&typeof window.YT.ready==="function"};
if(e())return _.qg(window.YT);var d=_.gq(),E=_.hz("SCRIPT");E.onload=E.onreadystatechange=function(){E.readyState&&E.readyState!="loaded"&&E.readyState!="complete"||(E.onload=_.mv,E.onreadystatechange=_.mv,E.onerror=_.mv,e()?d.resolve(window.YT):d.reject(new _.kL("Failed to load the iframe player library","script.onload",E.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
E.onerror=function(T){E.onload=_.mv;E.onreadystatechange=_.mv;E.onerror=_.mv;d.reject(new _.kL("Failed to load the iframe player library","script.onerror",T&&T.target&&T.target.src))};
_.DB(E,_.ie(AOu));v.insertBefore(E,v.firstChild);return d.promise},cO6=function(v,e,d){var E,T;
_.I(function(S){switch(S.nextAddress){case 1:return v.playbackEndedCallback_=d,_.qq(S,2),S.yield(ZKc(e.parentElement||null),4);case 4:E=S.yieldResult;_.wk(S,3);break;case 2:return T=_.jl(S),T instanceof _.kL&&T.args&&T.args[0]=="script.onerror"?_.xf(T):_.RI(T),S.return();case 3:E.ready(function(){return new E.Player(e,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:v.onPlayerReady_.bind(v),onStateChange:v.onPlayerStateChange_.bind(v),
onCueRangeExit:v.onCueRangeExit_.bind(v)}})}),_.s9(S)}})};
_.W=M$.prototype;_.W.getPlayerPromise=function(){return this.playerPromise_};
_.W.onPlayerReady_=function(v){this.playerResolver_.resolve(v.target)};
_.W.onPlayerStateChange_=function(v){if(v.data==YT.PlayerState.PLAYING){v=v.target;var e=v.getCurrentTime();v.addCueRange("playback",e,e+this.playbackDurationSeconds_)}};
_.W.onCueRangeExit_=function(v){v.data=="playback"&&(v.target.stopVideo(),this.playbackEndedCallback_())};
_.W.stopVideo=function(){this.playerPromise_.then(function(v){v.stopVideo()})};
var w2I=function(v){v.playerVars_&&v.playerPromise_.then(function(e){typeof e.cueVideoByPlayerVars!="function"?_.xf(new _.kL("vmh: player API not ready","cueVideoByPlayerVars",typeof e.cueVideoByPlayerVars)):e.cueVideoByPlayerVars(v.playerVars_)})};
M$.prototype.playVideo=function(){var v=this;this.playerVars_&&this.playerPromise_.then(function(e){typeof e.loadVideoByPlayerVars!="function"?(e=new _.kL("vmh: player API not ready","loadVideoByPlayerVars",typeof e.loadVideoByPlayerVars),_.RI(e)):e.loadVideoByPlayerVars(v.playerVars_)})};
var Fb2=function(v,e,d,E,T){e&&(d===void 0&&(d=0),E===void 0&&(E=0),v.playbackDurationSeconds_=E/1E3,v.playerVars_={adformat:"17_8",videoId:e,suggestedQuality:"hd720",startSeconds:d/1E3,player_params:T})};
M$.prototype.mute=function(){this.playerPromise_.then(function(v){v.mute()})};
M$.prototype.unMute=function(){this.playerPromise_.then(function(v){v.unMute()})};var Qve=function(v,e){var d=w3();v||(v="unknown");e||(e="unknown");v="MAIN_APP_WEB_PAGE_TYPE_"+v.toUpperCase();v in TWI||(v="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");e="MAIN_APP_WEB_REQUEST_TYPE_"+e.toUpperCase();e in SY6||(e="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Sd(d,{mainAppWeb:{pageType:v,requestType:e,isShellLoad:_.zr("IS_SHELL_LOAD",!1)}})},gOE={start:function(){_.Sd(u8O(),{mainAppWeb:_.no()})},
success:function(){_.W0(u8O(),"SUCCESS")},
failure:function(){_.W0(u8O(),"FAILURE")},
cancelled:function(){_.W0(u8O(),"CANCELLED")}};var uX2,nOu,l3S;uX2=_.Z9(["/sw.js"]);nOu=_.Z9(["/sw.js?0"]);_.DjI=_.ie(uX2);l3S=_.ie(nOu);var Uj6=function(){var v=Error.apply(this,arguments);this.message=v.message;"stack"in v&&(this.stack=v.stack)};
_.V(Uj6,Error);_.po.prototype.load=function(v){this.megabloxUrl_=_.Bb("YPC_MB_URL");_.Ff(this.megabloxUrl_,(0,_.LX)(function(){v&&v()},this))};
_.zQ0=function(v,e,d,E,T,S,O,b,Y,q,r){_.AQs(Y);v.load((0,_.LX)(function(){try{var h=S?S:_.Bb("HL"),K=_.Bb("SESSION_INDEX");_.J4H("client",function(){u$n("59",{helpCenterPath:"/youtube",locale:h,window:window}).JSC$9966_loadChatSupport({authuser:String(K)})})}catch(k){throw Dp(10,r,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),T&&T(k),_.RI(k),k;
}p2B(this,e,d,E,T,S,O,b,Y,q,r)},v))};
_.po.prototype.openFixFlowDialog=function(v,e,d,E){this.load((0,_.LX)(function(){try{v9I(this,_.AE("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(v).withIntegratorCallback(e).load(d,E)}catch(T){throw _.RI(T),T;}},this))};
var v9I=function(v,e,d,E){var T=e.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.N("enable_window_constrained_buy_flow_dialog")&&(T=T.usingPopupStyle(_.AE("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));E&&(T=T.usingCloseCallback(E));e.bootstrap.fromPaymentsUrl(v.megabloxUrl_);v=e.bootstrap.asMashupMode(T);d=d?d:_.Bb("HL");v.usingGaiaIndex(_.Bb("SESSION_INDEX")).usingLocale(d).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.N("enable_google_payments_buyflow_material2_style_web")?
v.usingStyle(":m2;pc=#444;ac=#065fd4"):v.usingStyle(":md;pc=#444;ac=#065fd4");return v},p2B=function(v,e,d,E,T,S,O,b,Y,q,r){try{var h=_.AE("payments.business.integration");
if(!h)throw new Uj6("payments.business.integration is undefined");var K=h.standaloneContextAuthId.forUserId(),k=v9I(v,h,S,function(){cQM(!1);b&&b()});
O&&k.usingServerAnalyticsEventHandler(O);var J=k.inStandaloneContext(K).buyFlow(function(R){if(R&&(!R.integratorData||R.integratorData===""||R.error))if(R.error!=null)if(String(R.error)==="-1")_.ZjM(Y);else{var B=String(R.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Dp(10,r,B,R.debugCode);_.Uj(B,Y,R.debugCode);B=new _.kL("PAYMENT_ERROR_MESSAGE::"+R.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+R.internalErrorDetails);
_.RI(B)}else Dp(10,r,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Uj("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",Y,"EMPTY_INTEGRATOR_DATA"),_.RI(Error("dg"));d&&(cQM(!1),d(R))}).withEncryptedParameters(e);
q&&J.withClientParameters(DKj(_.CsU(q)));J.load(function(){Dp(24,r);_.HF("ttc",void 0,"commerce_transaction");CB("commerce_transaction");E&&(E(),cQM(!0))},function(R){if(R==null?0:R.debugCode)var B=R==null?void 0:R.debugCode;
else if(!R||(R==null?0:R.debugCode))B="EMPTY_LOAD_FAILURE_ERROR",_.RI(Error(B));else{B="EMPTY_LOAD_FAILURE_DEBUG_CODE";var X=new _.kL("LOAD_FAILURE:"+R.message," DEBUG_CODE:"+B);_.RI(X)}Dp(10,r,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",B);_.Uj("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Y,B);_.RI(R);T&&T(R)})}catch(R){throw R instanceof Uj6&&(Dp(10,r,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),T&&T(R)),_.RI(R),R;
}};var eCA;eCA=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.Ba7=function(v,e){e=e===void 0?!1:e;v=eCA.test(v)?_.km(v):null;!e&&window.payments||!v?(v=_.gq(),e=v.promise,v.resolve()):e=_.x_E(v,{attributes:{"data-payments-main":"",id:"payment-lib"}});return e};var dAJ;dAJ=_.Z9(["//www.googletagmanager.com/gtm.js?id=",""]);_.tb=function(v,e){_.Tn(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:e}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Bb("GL")}),e=_.hz("SCRIPT"),e.async=!0,_.DB(e,_.ie(dAJ,v)),e.id="gtm",v=document.getElementsByTagName("script"),v.length==0?document.head.appendChild(e):(v=v[0],v.parentNode.insertBefore(e,v)))};
_.Rc=function(v){if(v=JSON.parse(v))window.dataLayer=window.dataLayer||[],window.dataLayer.push(v)};var E92,TPA;E92=_.Z9(["https://clients2.google.com/gr/gr_sync.js"]);_.Pv$=function(){};
_.Pv$.prototype.init=function(){if(TPA()){var v=_.gq();v.resolve();return v.promise}return _.x_E(_.ie(E92)).then(function(){if(!TPA())throw Error("eg");},function(){throw Error("fg");
})};
_.xLt=function(){if(!TPA())return"";var v=window.google.gr;v.init({async:{schedule:"sync"},merchantId:"youtube"});v.start();v=v.finish();return v==null?"":v};
TPA=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.P=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.V(_.P,PolymerFakeBaseClassWithoutHtml);_.kv=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.V(_.kv,PolymerFakeBaseClassWithoutHtml);var wyM=window.ShadyDOM;var VpU,kSj,JTL,GS0,tpO,flj,Pl,Og;VpU=_.N("enable_shadydom_free_scoped_query_methods");kSj=_.N("enable_shadydom_free_scoped_node_methods");JTL=_.N("enable_shadydom_free_scoped_readonly_properties_batch_one");GS0=_.N("enable_shadydom_free_parent_node");tpO=_.N("enable_shadydom_free_children");flj=_.N("enable_shadydom_free_last_child");Pl=window.ShadyDOM;_.y1=Pl&&Pl.noPatch&&Pl.wrap?Pl.wrap:Pl?function(v){return Pl.patch(v)}:function(v){return v};
Og=function(v){if(v instanceof ShadowRoot)this.host=(0,_.y1)(v.host),this.root=v;else if(v.$$){this.host=(0,_.y1)(v);var e;this.root=(e=v.root)!=null?e:this.host}else if(v.polymerController){this.host=(0,_.y1)(v);var d;this.root=(d=this.host.shadowRoot)!=null?d:this.host}else this.root=this.host=(0,_.y1)(v)};
LdL();o8L();R5j();P5L();MpU();var Srg={querySelector:function(v,e){e=Q60(e,Eg(v));v=_.TV(v);return Sw(v).prototype.querySelector.call(v,e)},
querySelectorAll:function(v,e){e=Q60(e,Eg(v));v=_.TV(v);return Sw(v).prototype.querySelectorAll.call(v,e)}},WrJ={appendChild:function(v,e){var d=Eg(v),E=_.di(e);
return _.s3t(_.TV(v),d?_.aB(e,d,E):e)},
cloneNode:function(v,e){var d=_.di(v);v=_.TV(v);e=Sw(v).prototype.cloneNode.call(v,e);return d?ih(e,d):e},
contains:function(v,e){var d=Eg(v),E=_.di(e);return d!==E?!1:NJs(v,e)},
insertBefore:function(v,e,d){var E=Eg(v),T=_.di(e);v=_.TV(v);e=E?_.aB(e,E,T):e;return Sw(v).prototype.insertBefore.call(v,e,d)},
removeChild:function(v,e){var d=Eg(v);v=_.TV(v);e=d?ih(e,d):e;return Sw(v).prototype.removeChild.call(v,e)},
replaceChild:function(v,e,d){var E=Eg(v),T=_.di(e);e=E?_.aB(e,E,T):T?ih(e,T):e;d=E?ih(d,E):d;v=_.TV(v);return Sw(v).prototype.replaceChild.call(v,e,d)},
getRootNode:function(v,e){e=e===void 0?{composed:!0}:e;var d;if(((d=e)!=null?d:{}).composed)v=TJO(v);else{e=v;for(v=umt(v);v;)e=v,v=DwW(v);v=e}return v}},BJt=JTL?{firstChild:qmj,
nextSibling:YmU,previousSibling:yTS,firstElementChild:rTj,lastElementChild:KdS,nextElementSibling:bGU,previousElementSibling:mxj,childNodes:$xM}:{};GS0&&(BJt.parentNode=Ilj);tpO&&(BJt.children=j3H);flj&&(BJt.lastChild=h5j);VpU&&xxj(Srg);kSj&&xxj(WrJ);C5H();var X43=function(v){this.node=v instanceof ShadowRoot?v.host:v};
z5S();llH();var ZG3=new WeakMap;var w4H=Symbol("xd");var n8S=new Set(["tap","track","down","up"]),Dx0=_.N("pbcm_fi_query_decorators");var xK=function(){return _.kv.apply(this,arguments)||this};
_.V(xK,_.kv);_.W=xK.prototype;_.W.getState=function(){return this.store.getState()};
_.W.dispatch=function(v){this.store.dispatch(v)};
_.W.beforeRegister=function(){if(this&&typeof this==="object"){var v;var e=!!this.useSignals||!((v=this.polymerController)==null||!v.useSignals)}else e=!1;if(!e&&this.properties)for(e=_.a(Object.keys(this.properties)),v=e.next();!v.done;v=e.next()){var d=v.value;v=this.properties[d];if(v.selector){if(v.computed)throw Error("lg");d=["reduxPropertiesRecomputeTrigger",'"'+d+'"'].concat(_.t7(v.selectorArgs||[])).join(",");v.computed="recomputeReduxSelector("+d+")"}}};
_.W.attached=function(){var v=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){v.reduxPropertiesRecomputeTrigger++}));
_.N("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.W.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.W.recomputeReduxSelector=function(v,e){var d=_.Xa.apply(2,arguments),E=this.properties[e].selector;if(!E)throw Error("jg`"+e);return E.apply(null,[this.store.getState()].concat(_.t7(d)))};
_.W.select=function(v){var e=_.Xa.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return v.apply(null,[this.store.getState()].concat(_.t7(e)))};
_.vP.Object.defineProperties(xK.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
xK.prototype.recomputeReduxSelector=xK.prototype.recomputeReduxSelector;_.c([_.f(),_.w("design:type",Number)],xK.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.c([_.Lq()],xK);var Bl=[],eA3={},zV=function(){return d3.apply(this,arguments)||this};
_.V(zV,d3);zV.prototype._addPropertyEffect=function(v,e,d){if(e==="__observeEffects"&&d){var E,T=(E=d.info.method)!=null?E:d.info.methodName;if(T){var S=this[T];this[T]=function(){Bl.push(T);try{S==null||S.apply(this,arguments)}finally{Bl.pop()}}}}_.jr._addPropertyEffect.apply(this,[v,
e,d])};
zV.prototype._setPendingProperty=function(v,e,d){if(Bl.length){var E=Bl[Bl.length-1],T;(T=eA3[this.is])!=null&&T.has(E)||(dh3(this.is,E),_.tI("polymerPropertyChangedInObserver",{componentName:this.is,observerName:E}))}return _.jr._setPendingProperty.apply(this,[v,e,d])};
_.c([Mj3()],zV);var EQ$=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),SP$,JG={};_.N("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=JG);var RB=function(){return _.kv.apply(this,arguments)||this};
_.V(RB,_.kv);RB.prototype._setUnmanagedPropertyToNode=function(v,e,d){v.loggingStatus&&(v.loggingStatus.isDeclarativeExternal=!0);if(d!==v[e]||typeof d==="object")v[e]=d;v.is&&v.polymerController&&v.polymerController!==v&&GV(v.is,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");v.loggingStatus&&(v.loggingStatus.isDeclarativeExternal=!1)};
_.c([_.Lq()],RB);TjU()&&(A0.prototype._setUnmanagedPropertyToNode=(new RB)._setUnmanagedPropertyToNode);_.$hM={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(v){},set polymerController(v){}}]};var Xe=function(){var v=d3.apply(this,arguments)||this;v.json=function(){};
return v};
_.V(Xe,d3);Xe.prototype.equals=function(v,e){return v===e};
Xe.prototype.isEmpty=function(v){var e;(e=!v)||(e=_.c3(v)&&v.length===0);return e};
_.c([Mj3()],Xe);var ani=function(v){v=oTj(v);xl.call(this,v)};
_.V(ani,xl);ani.prototype.addProvider=function(v){v=v.key?v:oTj([v])[0];var e=this.keyIdToIndex.get(v.key.id);if(e){if(IJW(v,this.providers[e]))throw Error("mg`"+v.key.displayName);}else xl.prototype.addProvider.call(this,v)};
var id7=new ani([]);var Od0=!1;var rh$={};Od0||(qP7(),Od0=!0);
rh$.InjectBehavior={initializeInjection:function(){var v=this.provide;try{if((v=v!=null?v:[])&&v.length>0)for(var e=oTj(v),d=_.a(e),E=d.next();!E.done;E=d.next())id7.addProvider(E.value);var T=new Set;b5t(this.behaviors||[],T);e={};for(var S=_.a(T),O=S.next();!O.done;O=S.next()){var b=O.value;b.inject&&Object.assign(e,b.inject)}this.inject&&Object.assign(e,this.inject);for(var Y=_.a(Object.keys(e)),q=Y.next();!q.done;q=Y.next()){var r=q.value,h=e[r];try{this[r]=id7.resolve(h)}catch(K){throw K;}}}catch(K){throw Error(K.message);
}}};var KFH;var jos=/\bclass\b/.test(function(){}.toString()),kLU=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var InE=function(v){this.wasDefined=!0;Array.isArray(v)||v instanceof Array?(this.JSC$13398_getImpl=v[0],this.JSC$13398_setImpl=v[1]):this.JSC$13398_getImpl=v};
_.W=InE.prototype;_.W.getWithPath=function(v){return oQS(this.JSC$13398_getImpl(),v)};
_.W.setWithPath=function(v,e){var d=this;if(v.length)throw Error("ng");if(!this.JSC$13398_setImpl)throw Error("og");q4(function(){d.JSC$13398_setImpl(e)})};
_.W.notifyPath=function(){throw Error("pg");};
_.W.notifySplices=function(){throw Error("qg");};
_.W.getChangeRecordSignal=function(v,e){var d=this;if(v.length)throw Error("rg");return function(){var E=d.getWithPath(v);return{path:e!=null?e:"",base:E,value:E}}};
_.W.getSplicesSignal=function(){throw Error("sg");};
_.W.getPathMutationSignal=function(){throw Error("tg");};
_.W.pop=function(){throw Error("ug");};
_.W.push=function(){throw Error("vg");};
_.W.splice=function(){throw Error("wg");};
_.W.unshift=function(){throw Error("xg");};var Cs=function(v){var e=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(v)||v instanceof Array?(this.JSC$13403_getImpl=v[0],this.JSC$13403_setImpl=v[1]):this.JSC$13403_getImpl=v;this.wasDefined=!1;i3(function(){e.wasDefined=e.JSC$13403_getImpl()!==void 0})};
Cs.prototype.getWithPath=function(v){return oQS(this.JSC$13403_getImpl(),v)};
Cs.prototype.setWithPath=function(v,e){var d=this;if(v[v.length-1]!=="*"&&v[v.length-1]!=="splices"){var E=i3(function(){return d.getWithPath([])});
if(v.length===0){if(!this.JSC$13403_setImpl)throw Error("yg");if(E===e)return;this.wasDefined||(this.wasDefined=e!==void 0);q4(function(){d.JSC$13403_setImpl(e)})}else{for(var T=0;T<v.length-1;T++){if(!E)return;
E=E[v[T]]}T=v[v.length-1];E&&(E[T]=e);this.wasDefined||(this.wasDefined=v.length>1||e!==void 0)}bdB(this,v,{pathComponents:v,value:e})}};
Cs.prototype.notifyPath=function(v,e){v.length===0?e&&this.setWithPath(v,e.value):bdB(this,v,{pathComponents:v,value:e==null?void 0:e.value,fallbackWhenUndefined:e==null?void 0:e.value})};
var bdB=function(v,e,d,E){if(v.setMutationSignal){var T=++v.mutationIndex,S=[v.observedPath],O=v.observedPath,b;e.length===0&&(b=O);for(var Y=0;Y<e.length;Y++){var q=O.subPaths[e[Y]];if(!q)break;S.push(q);O=q;Y===e.length-1&&(b=q)}for(e=!1;S.length;)O=S.shift(),O.data={index:T,mutation:d,spliceMutationIndex:E},e||(e=O===b),e&&S.push.apply(S,_.t7(Object.values(O.subPaths)));q4(function(){v.setMutationSignal(T)})}};
Cs.prototype.notifySplices=function(v,e){var d=this,E=i3(function(){return d.getWithPath(v)}),T=[].concat(_.t7(v),["splices"]);
bdB(this,T,{pathComponents:T,value:{indexSplices:e}});if(E==null?0:E.length)e=this.mutationIndex,T=[].concat(_.t7(v),["length"]),bdB(this,T,{pathComponents:T,value:E.length},e)};
var Yrn=function(v,e,d,E,T,S){v.notifySplices(d,[{index:E,addedCount:T,removed:S,object:e,type:"splice"}])},mAg=function(v,e){v=v.observedPath;
for(var d=0;d<e.length;d++){var E=e[d],T=v.subPaths[E];T||(T={pathComponents:e.slice(0,d+1),subPaths:{}},v.subPaths[E]=T);v=T}},qr6=function(v,e,d){mAg(v,e);
if(!v.getMutationSignal){var E=_.a(_.OE(v.mutationIndex,void 0,"sNBMCd"));v.getMutationSignal=E.next().value;v.setMutationSignal=E.next().value}var T=v.getMutationSignal;return _.yl(function(){T();return d(yY0(v,e))},void 0,"zvsXEd")};
Cs.prototype.getChangeRecordSignal=function(v,e){var d=this,E=this.mutationIndex,T;return qr6(this,v,function(S){if(S&&S.index>E){var O=S.mutation;E=S.index;T=void 0}S=i3(function(){return d.getWithPath(v)});
if(O){var b=O.pathComponents[O.pathComponents.length-1],Y=[].concat(_.t7(O.pathComponents));if(b==="splices"||b==="length")return{base:S,path:(e?[e].concat(_.t7(Y)):Y).join("."),value:O.value};var q=v.length>Y.length?v:Y,r;return{base:S!=null?S:O.fallbackWhenUndefined,path:(e?[e].concat(_.t7(q)):q).join("."),value:(r=i3(function(){return d.getWithPath(q)}))!=null?r:O.fallbackWhenUndefined}}T||(T={base:S,
path:(e?[e].concat(_.t7(v)):v).join("."),value:S});return T})};
Cs.prototype.getSplicesSignal=function(v){var e=this.mutationIndex,d;return qr6(this,v,function(E){if(E&&E.index>e&&E.spliceMutationIndex!==e){var T=E.mutation;e=E.index;d=void 0}return T&&T.pathComponents[T.pathComponents.length-1]==="splices"?d=E=T.value:d})};
Cs.prototype.getPathMutationSignal=function(v){var e=this;mAg(this,v);if(!this.getMutationSignal){var d=_.a(_.OE(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=d.next().value;this.setMutationSignal=d.next().value}var E=this.getMutationSignal,T=this.mutationIndex,S;return _.yl(function(){E();var O=yY0(e,v);if(O&&O.index>T&&O.mutation&&JhH(O.mutation.pathComponents,v)){var b=O.mutation;T=O.index}if(!S||T!==S.index){var Y,q;O=(q=i3(function(){return e.getWithPath(v)}))!=null?q:(Y=b)==null?
void 0:Y.fallbackWhenUndefined;
S={index:T,value:O}}return S},void 0,"RXYC9b")};
var yY0=function(v,e){v=v.observedPath;e=_.a(e);for(var d=e.next();!d.done;d=e.next())v=v.subPaths[d.value];return v.data};
Cs.prototype.pop=function(v){var e=this,d=i3(function(){return e.getWithPath(v)});
if(!(d instanceof Array))throw Error("zg");var E=d.length>0,T=d.pop();E&&Yrn(this,d,v,d.length,0,[T]);return T};
Cs.prototype.push=function(v){var e=_.Xa.apply(1,arguments),d=this,E=i3(function(){return d.getWithPath(v)});
if(!(E instanceof Array))throw Error("Ag");var T=E.length,S=E.push.apply(E,_.t7(e));e.length&&Yrn(this,E,v,T,e.length,[]);return S};
Cs.prototype.splice=function(v,e,d){var E=_.Xa.apply(3,arguments),T=this,S=i3(function(){return T.getWithPath(v)});
if(!(S instanceof Array))throw Error("Bg");e<0?e=S.length-Math.floor(-e):e&&(e=Math.floor(e));var O=S.splice.apply(S,[e,d].concat(_.t7(E)));(E.length||O.length)&&Yrn(this,S,v,e,E.length,O);return O};
Cs.prototype.unshift=function(v){var e=_.Xa.apply(1,arguments),d=this,E=i3(function(){return d.getWithPath(v)});
if(!(E instanceof Array))throw Error("Cg");var T=E.unshift.apply(E,_.t7(e));e.length&&Yrn(this,E,v,0,e.length,[]);return T};var Xz=function(v,e,d){this.model=v;this.unknownSignalResolver=e;this.options=d;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];e=_.a(Cm7());v=e.next().value;e=e.next().value;this.owner=v;this.disposeImpl=e};
Xz.prototype.dispose=function(){if(!this.isDisposed){for(var v=_.a(this.childSignalProxies),e=v.next();!e.done;e=v.next())e.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var rYn=function(v,e){v=_.nX(v.owner);try{e()}finally{_.nX(v)}};
Xz.prototype.effect=function(v){rYn(this,function(){_.tf(v)})};
var hCM=function(v,e){v.options!=null||(v.options={});var d;(d=v.options).immutableProps!=null||(d.immutableProps=new Set);v.options.immutableProps.add(e)},iKW=function(v,e){e=""+e;
Kr2(v,e);var d,E;if((d=v.options)==null?0:(E=d.immutableProps)==null?0:E.has(e))return!0;var T;if((T=v.model.__signalCache)==null?0:T.has(e))d=v.model.__signalCache.get(e),Array.isArray(d)&&hCM(v,e);var S,O,b;return(b=(S=v.options)==null?void 0:(O=S.immutableProps)==null?void 0:O.has(e))!=null?b:!1},$A7=function(v,e){var d;
v.unknownSignalResolver&&(d=v.unknownSignalResolver(e));var E,T;((E=v.options)==null?0:(T=E.immutableProps)==null?0:T.has(e))?d!=null||(d=new InE(_.OE(v.model[e],void 0,"By5iP"))):d!=null||(d=new Cs(_.OE(v.model[e],void 0,"CXghNc")));var S=v.model.hostElement;Object.defineProperty(v.model,e,{get:function(){aJ0(S,e);return d.getWithPath([])},
set:function(O){Mr(S,e);v.setWithPath([e],O)},
configurable:!0});return d},Kr2=function(v,e){var d,E,T;
((d=v.model.__signalCache)==null||!d.has(e))&&((E=v.options)==null?0:(T=E.externalSignalProps)==null?0:T.has(e))&&v.model[e]},Zo=function(v,e){e=""+e;
var d=v.signalCache[e];if(d!==void 0)return d;d=!1;Kr2(v,e);var E;if((E=v.model.__signalCache)==null?0:E.has(e))if(d=v.model.__signalCache.get(e),Array.isArray(d))d=!0,hCM(v,e);else return v.signalCache[e]=v.model.__signalCache.get(e).signal,v.signalCache[e];var T,S;E=(S=(T=v.options)==null?void 0:T.reactivityMode)!=null?S:0;var O,b;if(!((O=v.options)==null?0:(b=O.reactiveProps)==null?0:b.has(e))&&!d&&E===1)throw Error("Dg`"+e);T=d?jFu(v,e):$A7(v,e);return v.signalCache[e]=T},jFu=function(v,e){var d=
Object.getOwnPropertyDescriptor(v.model.constructor.prototype,e),E=function(){return v.model[e]};
return new InE(d&&d.get&&!d.set?E:[E,function(T){v.model[e]=T}])};
Xz.prototype.getWithPath=function(v){var e=_.a(v);v=e.next().value;e=Q4(e);aJ0(this.model.hostElement,""+v);return Zo(this,v).getWithPath(e)};
Xz.prototype.setWithPath=function(v,e){if(v.length){Mr(this.model.hostElement,v.join("."));var d=_.a(v);v=d.next().value;d=Q4(d);Zo(this,v).setWithPath(d,e)}};
Xz.prototype.getPathMutationSignal=function(v){var e=_.a(v);v=e.next().value;e=Q4(e);return Zo(this,v).getPathMutationSignal(e)};
Xz.prototype.notifyPath=function(v,e){var d=_.a(v);v=d.next().value;d=Q4(d);Zo(this,v).notifyPath(d,e)};
var sFu=function(v,e){if(e.type==="literal")return function(){return{rootWasDefined:!0,value:e.value}};
var d=Hg(e.path),E=_.a(d),T=E.next().value;E=Q4(E);var S,O;if(e.type==="path"&&(d.length===1||((S=v.options)==null?0:(O=S.immutableProps)==null?0:O.has(T))))return function(){var h=v.getWithPath(d.slice(0,1));h=oQS(h,d.slice(1));return{rootWasDefined:Zo(v,d[0]).wasDefined,value:h}};
var b=Zo(v,T);if(e.type==="path"){var Y=b.getPathMutationSignal(E);return function(){var h,K=(h=Y())==null?void 0:h.value;return{rootWasDefined:b.wasDefined,value:K}}}if(e.type==="splices"){var q=b.getSplicesSignal(E);
return function(){var h=q();return{rootWasDefined:b.wasDefined,value:h}}}var r=b.getChangeRecordSignal(E,""+T);
return function(){var h=r();return{rootWasDefined:b.wasDefined,value:h}}},PmW=function(v,e,d){var E=d.map(function(b){return sFu(v,b)}),T=d.length===0,S=[],O=d.length!==1||d[0].type!=="path"?!1:!0;
v.effect(function(){for(var b=E.length,Y=[],q=!!S.length,r=0;r<b;r++){var h=E[r](),K=h.rootWasDefined;h=h.value;T||(T=K);Y[r]=h;O&&(Y[r+b]=q?S[r]:Y[r],S[r]=h)}T&&fD(v.owner,function(){return void e.apply(null,_.t7(Y))})})},GLt=function(v,e,d,E,T){var S=Zo(v,e);
T!==void 0&&S.setWithPath([],T);PmW(v,function(){var O=_.Xa.apply(0,arguments);Mr(v.model.hostElement,e,!0);S.setWithPath([],d.apply(null,_.t7(O)))},E)};
Xz.prototype.arrayPush=function(v){var e=_.Xa.apply(1,arguments),d=_.a(v),E=d.next().value;d=Q4(d);E=Zo(this,E);return E.push.apply(E,[d].concat(_.t7(e)))};
Xz.prototype.arraySplice=function(v,e,d){var E=_.Xa.apply(3,arguments),T=_.a(v),S=T.next().value;T=Q4(T);S=Zo(this,S);return S.splice.apply(S,[T,e,d].concat(_.t7(E)))};
Xz.prototype.arrayUnshift=function(v){var e=_.Xa.apply(1,arguments),d=_.a(v),E=d.next().value;d=Q4(d);E=Zo(this,E);return E.unshift.apply(E,[d].concat(_.t7(e)))};
Xz.prototype.notifySplices=function(v,e){var d=_.a(v);v=d.next().value;d=Q4(d);Zo(this,v).notifySplices(d,e)};var NPI=!0,kKM=!1,Odt=!1,Lr0=!1,V_I=0;Lr0=!1;V_I=0;NPI=!0;kKM=Odt=!1;var Z5U=/([^\s]+?)\(([\s\S]*)\)/,lJS=/\.([^.]+)$/,wWj=/\\,/g,XWj=/&comma;/g,zAS=/\\(.)/g,chs=[],H5L={"*":"wildcard",splices:"splices"};var eK$=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"),DhL=/[A-Z]/,o9B=["class","hidden","id","on-dom-change"],EOM=new Set([].concat(_.t7(o9B),
["if","notify-dom-change","restamp"])),TzH=new Set([].concat(_.t7(o9B),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),SD0=new Set(["restamp"]);var SZ0=new Set(["className","id"]);var I63=Symbol(),hKH=window;var VuO=window;var RK0=0,GCS=0,cg=[],f6M=0,JO0=!1,tut=document.createTextNode("");(new window.MutationObserver(MuU)).observe(tut,{characterData:!0});var Fe=new Map,wi=0,JY2=function(v){this.mappedHandleId=v},xjj=function(v,e,d,E){this.mappedHandleId=v;
var T=this;this.mappedHandleId=v;this.callback=e;this.waitTime=d;this.schedulerPriority=E;this.handleId=_.RM.addJob(function(){T.callback();Fe.delete(T.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.V(xjj,JY2);xjj.prototype.cancel=function(){_.RM.cancelJob(this.handleId);Fe.delete(this.mappedHandleId)};
var Bzs=function(v,e){this.mappedHandleId=v;var d=this;this.mappedHandleId=v;this.callback=e;this.handleId=Pd3(function(){d.callback();Fe.delete(d.mappedHandleId)})};
_.V(Bzs,JY2);Bzs.prototype.cancel=function(){var v=this.handleId-GCS;v<0||cg.length<=v||(cg[v]=null);Fe.delete(this.mappedHandleId)};var l6U=function(){};
l6U.prototype.cancel=function(){this.jobHandle!==void 0&&(Cdj(this.jobHandle),this.jobHandle=void 0)};
l6U.prototype.run=function(v,e,d){var E=this;this.cancel();this.callback=v;this.jobHandle=_.Q1(function(){v();E.callback=void 0},e,d)};
l6U.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var X2H=new WeakMap;var GK7=gy(function(v){for(var e=v,d=0;d<3;d++)e=Object.getPrototypeOf(e);delete e.prototype.connectedCallback;var E=function(){return v.apply(this,arguments)||this};
_.V(E,v);E.prototype._attachDom=function(T){if(!T)return null;var S=(0,_.y1)(this.hostElement);S.attachShadow({mode:"open",shadyUpgradeFragment:T});S.shadowRoot.appendChild(T);return S.shadowRoot};
E.prototype._takeAttributes=function(){for(var T=this.hostElement.attributes,S=0;S<T.length;S++){var O=T[S],b=void 0,Y=void 0;(Y=(b=this).__attributeReaction)==null||Y.call(b,O.name,null,O.value)}};
E.prototype._readyClients=function(){v.prototype._readyClients.call(this);this.root=this};
E.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);v.prototype.connectedCallback.call(this)};
_.vP.Object.defineProperties(E,{template:{configurable:!0,enumerable:!0,get:function(){return E.prototype._template}}});
return E}),M_6=gy(function(v){var e=function(){return v.apply(this,arguments)||this};
_.V(e,v);e.prototype.created=function(){if(this.__notifyEffects)for(var d=_.a(Object.values(this.__notifyEffects)),E=d.next();!E.done;E=d.next()){E=_.a(E.value);for(var T=E.next();!T.done;T=E.next())T.value.fn=cO0}if(this.__reflectEffects)for(d=_.a(Object.values(this.__reflectEffects)),E=d.next();!E.done;E=d.next())for(E=_.a(E.value),T=E.next();!T.done;T=E.next())T.value.fn=w2S};
e.prototype._addEventListenerToNode=function(d,E,T){d=uh(d);xk(d,E,T)||v.prototype._addEventListenerToNode.call(this,d,E,T)};
e.prototype._removeEventListenerFromNode=function(d,E,T){d=uh(d);BY(d,E,T)||v.prototype._removeEventListenerFromNode.call(this,d,E,T)};
e.prototype._propertiesChanged=function(d,E,T){if(this.__dataToNotify&&this.__notifyEffects)for(var S=_.a(Object.keys(this.__dataToNotify)),O=S.next();!O.done;O=S.next()){O=O.value;var b=ZK3(O);this.__notifyEffects[b]||delete this.__dataToNotify[O]}else this.__dataToNotify=null;v.prototype._propertiesChanged.call(this,d,E,T)};
e.prototype.fire=function(d,E,T){E=E===void 0?{}:E;var S;return _.Iq(uh((S=T==null?void 0:T.node)!=null?S:this),d,E,T)};
e.prototype._ensureAttribute=function(d,E){var T=uh(this);T.hasAttribute(d)||AG(T,E,d)};
e.prototype.isLightDescendant=function(d){var E=uh(this);return uh(E)!==d&&_.IB(E).contains(d)&&_.IB(E).getRootNode()===_.IB(d).getRootNode()};
return e});
_.$l.ready=function(){var v;((v=this.hostElement)!=null?v:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var e;((e=this.hostElement)!=null?e:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.J9._subscribeIronResize=function(v){var e;((e=v.hostElement)!=null?e:v).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.J9._unsubscribeIronResize=function(v){var e;((e=v.hostElement)!=null?e:v).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var gOU=[Array,Boolean,Date,Number,Object,String],Do=function(v,e,d,E){this.polySiInfo=v;this.polySiParams=e;this.polySiContext=d;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;E||this instanceof HTMLElement&&(E=this);if(!E)throw Error("Kg");this.allowedProps=e.allowedProps;this.hostElement=E;this.is=v.is;this.upgradeDisabled=!!e.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");v=new Set(e.reactiveSchemas.filter(function(T){return T.type!==
"observe"}).map(function(T){return T.propertyKey}));
this.signalProxy=new Xz(this,void 0,{reactiveProps:v,reactivityMode:e.reactivityMode});this.__dataHasAccessor={};e=_.a(e.reactiveSchemas);for(v=e.next();!v.done;v=e.next())v=v.value,v.type==="signal"&&(this.__dataHasAccessor[v.propertyKey]=!0);this.upgradeDisabled||t_J(this)};
Do.prototype.getExtraMethodsToForward=function(){return[]};
var t_J=function(v){v.polySiContext.didRegister||(v.registered(),v.polySiContext.didRegister=!0);v.polySiContext.finalizedTemplate||(v.polySiContext.finalizedTemplate={},v.polySiParams.templateGetter&&(v.polySiContext.finalizedTemplate.processedTemplate=oOL(v.polySiParams.templateGetter,v.polySiParams.is)));fnB(v);var e=v.hostElement;e.loggingStatus!=null||(e.loggingStatus={});e.loggingStatus.isInitializing=!0;i3(function(){return void v.created()});
e.loggingStatus.isInitializing=!1;v.isPolySiElementConnected&&RCA(v)},RCA=function(v){v.didCallReady||(i3(function(){return void v.ready()}),v.didCallReady=!0);
v.isAttached=!0;v.attached()};
_.W=Do.prototype;_.W.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||RCA(this)};
_.W.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.W.attributeChangedCallback=function(v,e,d){if(this.upgradeDisabled)v==="disable-upgrade"&&d===null&&(this.upgradeDisabled=!1,t_J(this));else if(e!==d){var E=_.kq(v),T=this.polySiContext.typesForSignals[E];if(T&&(!this.reflecting||_.N("polysi_attribute_changed_serializing_killswitch"))){switch(T){case Object:try{var S=JSON.parse(d)}catch(b){S=d}break;case Array:try{S=JSON.parse(d)}catch(b){S=null}break;case Date:S=isNaN(d)?String(d):Number(d);S=new Date(S);break;case Boolean:S=d!==null;break;case Number:S=
Number(d);break;default:S=d}this[E]=S}E=_.a(this.polySiParams.behaviors);for(T=E.next();!T.done;T=E.next())S=void 0,(S=T.value.attributeChanged)==null||S.call(this,v,e,d);var O;(O=this.attributeChanged)==null||O.call(this,v,e,d)}};
_.W.attributeChangedCallbackWrapper=function(v,e,d){this.attributeChangedCallback(v,e,d)};
_.W.setPropertiesFromInitialAttributeValues=function(){for(var v=0;v<this.hostElement.attributes.length;v++){var e=this.hostElement.attributes[v];(e.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(e.name))&&this.attributeChangedCallback(e.name,null,e.value)}};
_.W.created=function(){this.provide=this.polySiParams.provide;var v;(v=this.initializeInjection)==null||v.call(this);v=_.a(this.polySiParams.reactiveSchemas);for(var e=v.next();!e.done;e=v.next())e=e.value,e.type==="signal"&&(this.mutablePropNames.add(e.propertyKey),Zo(this.signalProxy,e.propertyKey));Qvs(this,this.polySiInfo,this.polySiParams.behaviors);v=_.a(this.polySiParams.reactiveSchemas);for(e=v.next();!e.done;e=v.next())e=e.value,e.type==="signal"&&e.value!==void 0&&(this.signalProxy.model[e.propertyKey]=
typeof e.value==="function"?e.value.call(this):e.value);if(this.polySiParams.signalProperties)for(v=_.a(this.polySiParams.signalProperties),e=v.next();!e.done;e=v.next()){e=e.value;var d=void 0;((d=this.__signalCache)==null?0:d.has(e))||(this.signalProxy.model[e]=void 0)}Lr0||Pre(this);FbO(this);v=_.a(this.polySiParams.behaviors);for(e=v.next();!e.done;e=v.next())d=void 0,(d=e.value.created)==null||d.call(this);var E;(E=this.polySiInfo.created)==null||E.call(this)};
_.W.registered=function(){var v=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var e=Object.getPrototypeOf(this);e.addReactiveSchema=function(b){v.polySiParams.reactiveSchemas.push(b)};
for(var d=_.a(this.polySiParams.behaviors),E=d.next();!E.done;E=d.next()){var T=void 0;(T=E.value.beforeRegister)==null||T.call(e)}var S;(S=this.polySiInfo.beforeRegister)==null||S.call(e);e.addReactiveSchema=nO$;d=_.a(this.polySiParams.behaviors);for(E=d.next();!E.done;E=d.next())T=void 0,(T=E.value.registered)==null||T.call(e);var O;(O=this.polySiInfo.registered)==null||O.call(e)};
_.W.ready=function(){var v;(v=this.beforeReady)==null||v.call(this);Lr0&&Pre(this);var e;if(v=(e=this.polySiContext.finalizedTemplate)==null?void 0:e.processedTemplate){v=Lb0(v.template,v.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:v.hasInsertionPoint,thisCtx:this});e=v.nodesById;v=v.root;var d=this.hostElement;var E=E===void 0?!1:E;d=(0,_.y1)(d);if(!d.attachShadow)throw Error("Dd");if(!d.shadowRoot||E)d.attachShadow({mode:"open",shadyUpgradeFragment:v}),d.shadowRoot.appendChild(v);
this.root=d.shadowRoot;this.$=e}xAe(this);E=_.a(this.polySiParams.behaviors);for(e=E.next();!e.done;e=E.next())v=void 0,(v=e.value.ready)==null||v.call(this);var T;(T=this.polySiInfo.ready)==null||T.call(this)};
_.W.attached=function(){for(var v=_.a(this.polySiParams.behaviors),e=v.next();!e.done;e=v.next()){var d=void 0;(d=e.value.attached)==null||d.call(this)}var E;(E=this.polySiInfo.attached)==null||E.call(this)};
_.W.detached=function(){for(var v=_.a(this.polySiParams.behaviors),e=v.next();!e.done;e=v.next()){var d=void 0;(d=e.value.detached)==null||d.call(this)}var E;(E=this.polySiInfo.detached)==null||E.call(this)};
var fnB=function(v){for(var e=_.a(v.polySiParams.behaviors),d=e.next();!d.done;d=e.next())if(d=d.value,d.listeners)for(var E in d.listeners)kCL(v,v.hostElement,E,d.listeners[E]);if(v.polySiInfo.listeners)for(var T in v.polySiInfo.listeners)kCL(v,v.hostElement,T,v.polySiInfo.listeners[T])},kCL=function(v,e,d,E,T){v=VVM(v,E,T);
xk(e,d,v)||e.addEventListener(d,v);return v},Pre=function(v){for(var e=_.a(v.polySiParams.reactiveSchemas),d=e.next();!d.done;d=e.next())d=d.value,d.type==="compute"||d.type==="computeWithMethod"?MVM(v.signalProxy,d,v):d.type==="redux"?RA0(v.signalProxy,d,v.store):d.type==="signal"&&d.readOnly&&fJW(v.signalProxy,d)},xAe=function(v){for(var e=_.a(v.polySiParams.reactiveSchemas),d=e.next(),E={};!d.done;E={schema$jscomp$12:void 0},d=e.next())E.schema$jscomp$12=d.value,E.schema$jscomp$12.type==="notify"?
xhO(v.signalProxy,E.schema$jscomp$12,v.hostElement):E.schema$jscomp$12.type==="observe"?BjW(v.signalProxy,E.schema$jscomp$12,v):E.schema$jscomp$12.type==="reflect"&&v.signalProxy.effect(function(S){return function(){var O=v.signalProxy.getWithPath([S.schema$jscomp$12.propertyKey]);
v.reflecting=!0;Qo$(v.hostElement,S.schema$jscomp$12.propertyKey,O,!0);v.reflecting=!1}}(E));
if(v.reflectedAttributes)for(e=_.a(Object.entries(v.reflectedAttributes)),E=e.next(),d={};!E.done;d={key$jscomp$931:void 0,value$jscomp$9192:void 0},E=e.next()){var T=_.a(E.value);E=T.next().value;T=T.next().value;d.key$jscomp$931=E;d.value$jscomp$9192=T;v.signalProxy.effect(function(S){return function(){v.reflecting=!0;Qo$(v.hostElement,S.key$jscomp$931,(0,S.value$jscomp$9192)(),!0);v.reflecting=!1}}(d))}};
_.W=Do.prototype;_.W._setPendingProperty=function(v,e){this.set(v,e);return!1};
_.W._enableProperties=function(){};
_.W._setPendingPropertyOrPath=function(v,e){this.notifyPath(v,e);return!1};
_.W._addPropertyEffect=function(){};
_.W._stampTemplate=function(){throw Error("Lg");};
_.W.fire=function(v,e,d){e=e===void 0?{}:e;d=d===void 0?{}:d;var E,T,S={bubbles:(E=d.bubbles)!=null?E:!0,cancelable:!!d.cancelable,composed:(T=d.composed)!=null?T:!0},O;return _.Iq(DjS((O=d.node)!=null?O:this.hostElement),v,e,S)};
_.W.get=function(v,e){var d=Hg(v);return e?oQS(e,d):v==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(d)};
_.W.linkPaths=function(){};
_.W.listen=function(v,e,d){v=DjS(v);this.boundListeners!=null||(this.boundListeners=new WeakMap);var E=this.boundListeners.get(v);E||(E={},this.boundListeners.set(v,E));var T=e+d;E[T]||(E[T]=kCL(this,v,e,d))};
_.W.notifyPath=function(v,e){this.signalProxy.notifyPath(Hg(v),arguments.length===2?{value:e}:void 0)};
_.W.canNotifyPath=function(v){return this.mutablePropNames.has(v)&&!iKW(this.signalProxy,v)};
_.W.notifySplices=function(v,e){this.signalProxy.notifySplices(Hg(v),e)};
_.W.pop=function(v){var e=this.signalProxy;v=Hg(v);var d=_.a(v);v=d.next().value;d=Q4(d);return Zo(e,v).pop(d)};
_.W.push=function(v){var e=_.Xa.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Hg(v)].concat(_.t7(e)))};
_.W.set=function(v,e,d){if(d)throw Error("Mg");v==="hidden"?this.hostElement.hidden=!!e:this.signalProxy.setWithPath(Hg(v),e)};
_.W.setProperties=function(v){v=_.a(Object.entries(v));for(var e=v.next();!e.done;e=v.next()){var d=_.a(e.value);e=d.next().value;d=d.next().value;this[e]=d}};
_.W.splice=function(v,e,d){var E=_.Xa.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Hg(v),e,d].concat(_.t7(E)))};
_.W.unlinkPaths=function(){};
_.W.unlisten=function(v,e,d){v=DjS(v);if(this.boundListeners){var E=this.boundListeners.get(v);if(E){d=e+d;var T=E[d];T&&(BY(v,e,T)||v.removeEventListener(e,T),delete E[d])}}};
_.W.unshift=function(v){var e=_.Xa.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Hg(v)].concat(_.t7(e)))};
_.vP.Object.defineProperties(Do.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 idt=[Array,Boolean,Date,Number,Object,String];var bdj=!1;var zf=function(){var v=HTMLElement.apply(this,arguments)||this;v.restamp=!1;v.notifyDomChange=!1;v.JSC$13511_didCallConnected=!1;v.JSC$13511_renderDebouncer=null;v.disableTemplateUpdateSignalImpl=Ug()?void 0:_.OE(!1,void 0,"Ofhkwb");var e;v.getDisableTemplateUpdate=(e=v.disableTemplateUpdateSignalImpl)==null?void 0:e[0];var d;v.setDisableTemplateUpdate=(d=v.disableTemplateUpdateSignalImpl)==null?void 0:d[1];return v};
_.V(zf,HTMLElement);var BPg=function(v){v.conditionSignalImpl!=null||(v.conditionSignalImpl=new Cs(_.OE(!1,void 0,"gE52Fb")));return v.conditionSignalImpl};
_.W=zf.prototype;_.W.showHideChildren=function(v){Cr2(this,v,this.if)};
_.W.attributeChangedCallback=function(v,e,d){if(this.JSC$13511_didCallConnected)throw Error("Qg`"+v);v==="notify-dom-change"?this.notifyDomChange=d!==null:v==="restamp"&&(this.restamp=d!==null)};
_.W.debounceRender=function(){this.JSC$13511_renderDebouncer=_.Sr(this.JSC$13511_renderDebouncer,Xk,this.JSC$13511_renderImpl.bind(this));_.WX(this.JSC$13511_renderDebouncer)};
_.W.disconnectedCallback=function(){var v=(0,_.y1)(this).parentNode;(!v||v.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in v&&!v.host)&&X1i(this)};
_.W.connectedCallback=function(){var v=this;this.JSC$13511_didCallConnected=!0;NPI?YrH():this.style.display="none";this.parentSignalProxy.effect(function(){BPg(v).getWithPath([]);v.debounceRender()})};
_.W.render=function(){_.IA()};
_.W.JSC$13511_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var v=this.if,e=!1;if(v){this.hasInstance()||(zC6(this),e=!0);a:{var d=(0,_.y1)(this).parentNode;if(this.hasInstance()){var E=this.instance.children;if((E==null?0:E.length)&&(0,_.y1)(this).previousSibling!==E[E.length-1])for(var T=0;T<E.length;T++)(0,_.y1)(d).insertBefore(E[T],this)}else{if(!d){d=!1;break a}ln7(this,d)}d=!0}if(!d)return}else this.restamp&&X1i(this);Cr2(this,!1,v);v&&!e&&zC6(this);kKM&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.W.hasInstance=function(){return!!this.instance};
var ln7=function(v,e){var d=v.parentSignalProxy;if(Ug()){var E=_.a(_.OE(!0,void 0,"yf4Yhf"));var T=E.next().value;E=E.next().value;d=v.parentSignalProxy}else{var S;var O=new Xz((S=HdM(v))!=null?S:{},function(Y){var q=Zo(v.parentSignalProxy,Y).getChangeRecordSignal([]);Y=_.OE(void 0,void 0,"oT9mkc");var r=new Cs(Y);O.effect(function(){if(v.getDisableTemplateUpdate&&!v.getDisableTemplateUpdate()){var h=q();r.notifyPath(Hg(h.path),{value:h.value})}});
return r});
v.parentSignalProxy.childSignalProxies.push(O);var b=d=O}d=Lb0(v.templateInfo,v.templateInfo.nodeInfoList,d,{eventListenerHost:v.eventListenerHost,hasInsertionPoint:v.templateInfo.hasInsertionPoint,thisCtx:v.eventListenerHost,enabledSignal:Ug()?T:void 0,getModel:function(){return HdM(v)}}).root;
v.instance={root:d,children:[],hidden:!1,signalProxy:b,getTemplateUpdatesEnabled:T,setTemplateUpdatesEnabled:E};b=_.a(d.childNodes);for(T=b.next();!T.done;T=b.next())v.instance.children.push(T.value);(0,_.y1)(e).insertBefore(v.instance.root,v)},HdM=function(v){if((v=v.parentSignalProxy.model)&&!v.hostElement){var e={},d;
for(d in v)v.hasOwnProperty(d)&&(e[d]=v[d]);return e}},X1i=function(v){if(v.instance){var e=v.instance.children;
if(e.length){var d=(0,_.y1)(e[0]).parentNode;if(d){d=(0,_.y1)(d);for(var E=0;E<e.length;E++)d.removeChild(e[E])}}Ug()?v.instance.setTemplateUpdatesEnabled(!1):v.instance.signalProxy.dispose();v.instance=void 0}},Cr2=function(v,e,d){e=e||!d;
v.instance&&v.instance.hidden!==e&&(v.instance.hidden=e,InU(e,v.instance.children))},zC6=function(v){if(Ug()){var e=v.instance;
e&&fD(v.parentSignalProxy.owner,function(){return!e.getTemplateUpdatesEnabled()})&&e.setTemplateUpdatesEnabled(!0)}else v.setDisableTemplateUpdate(!1)};
_.vP.Object.defineProperties(zf.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var v=this;return fD(this.parentSignalProxy.owner,function(){return BPg(v).getWithPath([])})},
set:function(v){v||(Ug()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));BPg(this).setWithPath([],!!v)}}});
_.vP.Object.defineProperties(zf,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",zf);var AYM=[],lA=function(){var v=HTMLElement.apply(this,arguments)||this;v.as="item";v.indexAs="index";v.itemsIndexAs="itemsIndex";v.targetFramerate=20;v.notifyDomChange=!1;v.isDetached=!1;v.JSC$13518_renderDebouncer=null;v.instances=[];v.chunkingId=null;v.chunkCount=null;v.shouldMeasureChunk=!1;v.shouldContinueChunking=!1;v.renderStartTime=null;v.JSC$13518_didCallConnected=!1;return v};
_.V(lA,HTMLElement);var Zdn=function(v){v.itemSignalImpl!=null||(v.itemSignalImpl=new Cs(_.OE(AYM,void 0,"YBrqgf")));return v.itemSignalImpl},cYi=function(v,e){Array.isArray(e)||(e=AYM);
Zdn(v).setWithPath([],e)};
_.W=lA.prototype;_.W.showHideChildren=function(v){for(var e=_.a(this.instances),d=e.next();!d.done;d=e.next())InU(v,d.value.children)};
_.W.notifyPath=function(v,e){v=Hg(v);v[0]==="items"&&(v.length===1?cYi(this,e):Zdn(this).setWithPath(v.slice(1),e))};
_.W.canNotifyPath=function(v){return v==="items"};
_.W.attributeChangedCallback=function(v,e,d){if(this.JSC$13518_didCallConnected)throw Error("Rg`"+v);v==="as"?this.as=d:v==="index-as"?this.indexAs=d:v==="items-index-as"?this.itemsIndexAs=d:v==="initial-count"?this.initialCount=Number(d):v==="notify-dom-change"?this.notifyDomChange=d!==null:v==="target-framerate"&&(this.targetFramerate=Number(d))};
_.W.disconnectedCallback=function(){this.isDetached=!0;for(var v=0;v<this.instances.length;v++)w1g(this,v);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.W.connectedCallback=function(){var v=this,e=Zdn(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var T=e(),S=Hg(T.path);if(S[0]===void 0||S[0]==="splices"||S[0]==="length")v.debounceRender();else{var O=S[0];if(O=v.instances[typeof O==="string"?Math.floor(Number(O)):O])S=[v.as].concat(_.t7(S.slice(1))),O.signalProxy.notifyPath(S,T)}});
this.JSC$13518_didCallConnected=!0;NPI?YrH():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var d=(0,_.y1)((0,_.y1)(this).parentNode),E=0;E<this.instances.length;E++)d.insertBefore(this.instances[E].root,this);this.chunkingId&&this.render()}};
_.W.debounceRender=function(){this.JSC$13518_renderDebouncer=_.Sr(this.JSC$13518_renderDebouncer,Xk,this.JSC$13518_renderImpl.bind(this));_.WX(this.JSC$13518_renderDebouncer)};
_.W.render=function(){this.debounceRender();_.IA()};
_.W.JSC$13518_renderImpl=function(){var v=this;if(!this.parentSignalProxy.isDisposed){var e=this.items,d=Fru(this,e.length);QF6(this,e,d);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){v.chunkingId=null;if(v.shouldMeasureChunk){var E=performance.now()-v.renderStartTime;v.chunkCount=Math.round(Math.ceil(1E3/v.targetFramerate)/E*v.chunkCount)||1}v.shouldContinueChunking&&v.debounceRender()}));
kKM&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var Fru=function(v,e){var d=e,E=v.instances.length;if(v.initialCount){if(v.chunkCount){var T=Math.min(Math.max(e-E,0),v.chunkCount);d=Math.min(E+T,e)}else d=Math.min(e,v.initialCount),T=Math.max(d-E,0),v.chunkCount=T||1;v.shouldMeasureChunk=T===v.chunkCount;v.shouldContinueChunking=d<e;v.renderStartTime=performance.now()}return d},QF6=function(v,e,d){for(var E=0;E<d;E++){var T=v.instances[E],S=e[E];
T?(T.signalProxy.setWithPath([v.as],S),T.signalProxy.setWithPath([v.indexAs],E)):g9e(v,S,E)}for(e=v.instances.length-1;e>=E;e--)d=v,T=e,w1g(d,T),_.a(d.instances.splice(T,1)).next().value.signalProxy.dispose()},w1g=function(v,e){v=v.instances[e];
e=(0,_.y1)(v.root);for(var d=0;d<v.children.length;d++)e.appendChild(v.children[d])},g9e=function(v,e,d){var E={};
e=Object.assign({},u42(v),(E[v.as]=e,E[v.indexAs]=d,E[v.itemsIndexAs]=d,E));var T=new Xz(e,function(O){if(O!==v.as&&O!==v.indexAs){if(O===v.itemsIndexAs)return Zo(T,v.indexAs);var b=Zo(v.parentSignalProxy,O).getChangeRecordSignal([]);O=_.OE(void 0,void 0,"T21Pqc");var Y=new Cs(O);T.effect(function(){var q=b();Y.notifyPath(Hg(q.path),{value:q.value})});
return Y}});
v.parentSignalProxy.childSignalProxies.push(T);E=Lb0(v.templateInfo,v.templateInfo.nodeInfoList,T,{eventListenerHost:v.eventListenerHost,getModel:function(){var O={};return Object.assign({},u42(v),(O[v.as]=T.model[v.as],O[v.indexAs]=T.model[v.indexAs],O[v.itemsIndexAs]=T.model[v.indexAs],O))},
hasInsertionPoint:v.templateInfo.hasInsertionPoint,thisCtx:v.eventListenerHost,methodInvocationRequirement:V_I,enabledSignal:v.stampingEnabled}).root;e={root:E,children:[],signalProxy:T};E=_.a(E.childNodes);for(var S=E.next();!S.done;S=E.next())e.children.push(S.value);E=(E=v.instances[d+1])?E.children[0]:v;(0,_.y1)((0,_.y1)(v).parentNode).insertBefore(e.root,E);v.instances[d]=e},u42=function(v){if((v=v.parentSignalProxy.model)&&!v.hostElement){var e={},d;
for(d in v)v.hasOwnProperty(d)&&(e[d]=v[d]);return e}};
lA.prototype.itemForElement=function(v){var e=this,d=this.instances.find(function(E){return E.children.includes(v)});
if(d)return fD(this.parentSignalProxy.owner,function(){return d.signalProxy.getWithPath([e.as])})};
lA.prototype.indexForElement=function(v){var e=this.instances.findIndex(function(d){return d.children.includes(v)});
return e>=0?e:void 0};
_.vP.Object.defineProperties(lA.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var v=this;return fD(this.parentSignalProxy.owner,function(){return Zdn(v).getWithPath([])})},
set:function(v){cYi(this,v)}},
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}}});
_.vP.Object.defineProperties(lA,{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",lA);var n96,DA0;_.Hl=new _.nC("STATE_STORE_TOKEN");n96=new _.nC("SELECT_TOKEN");DA0=new _.nC("DISPATCH_TOKEN");var KrO={getSelectFn:function(){var v;return(v=_.dk().resolve(_.eG(n96)))!=null?v:mA0},
getDispatchFn:function(){var v;return(v=_.dk().resolve(_.eG(DA0)))!=null?v:_.pq().dispatch.bind(_.pq())},
getAppStore:function(){return _.dk().resolve(_.Hl)}},yYt,hCL=!1;var NPS=new yQ0;var JYO=function(){};var Lrt=void 0;var UAJ=function(){};
UAJ.prototype.hasAttribute=function(v){if(v==="dir")return!1;if(v==="disable-upgrade"){var e,d;return(d=(e=this.hostElement)==null?void 0:e.hasAttribute("disable-upgrade"))!=null?d:!1}throw Error("Sg`"+v);};
UAJ.prototype.attributeChangedCallbackWrapper=function(v,e,d){if(v==="disable-upgrade"&&this.__isUpgradeDisabled&&d===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var E;((E=this.hostElement)!=null?E:this).isConnected&&this.connectedCallback()}else e===d||this.__isReflecting||this.attributeChangedCallback(v,e,d)};
UAJ.prototype.getExtraMethodsToForward=function(){for(var v=this,e=[],d=_.a(p1i),E=d.next(),T={};!E.done;T={tagName$jscomp$54:void 0,name$jscomp$588:void 0},E=d.next())T.name$jscomp$588=E.value,E=void 0,T.name$jscomp$588==="_setPendingProperty"?(T.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),E=function(S){return function(O,b,Y){GV(S.tagName$jscomp$54,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return v._setPendingProperty(O,b,Y)}}(T)):E=function(S){return function(){return v[S.name$jscomp$588].apply(v,
_.t7(_.Xa.apply(0,arguments)))}}(T),e.push([T.name$jscomp$588,
E]);return e};
for(var t_M=M_6(GK7((0,_.$Z)(UAJ))),xAs=["disabled","disable-upgrade"],v3e=(0,_.$Z)(function(){}),ej6=new Set(Object.getOwnPropertyNames(v3e.prototype)),lnt=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.t7(ej6))),CrO=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),p1i=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),dD2=new Set([].concat(_.t7(CrO),_.t7(p1i),_.t7(ej6))),E37=_.a(dD2),Tx7=E37.next();!Tx7.done;Tx7=E37.next())EQ$.add(Tx7.value);var zC0={created:function(){FbO(this);this.initializeInjection()}};var u4O=!1,Wz=window.ShadyDOM,E3t=["appendChild","insertBefore","removeChild","replaceChild"],dDO=[Node];Wz&&dDO.push(Wz.Wrapper);var Oat,IU0,mDM={};_.ik=new Set;_.Wa="";_.qZt="";var a5,O_=new Set;var NxL=new Set("context didCallReady is info params signalProxy".split(" ")),Lz7="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),V80="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var SZ6=jo({entities:hM7}),Wz2=new eU(SZ6);var aUu=function(){return _.kv.apply(this,arguments)||this};
_.V(aUu,_.kv);_.vP.Object.defineProperties(aUu.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Wz2}}});
_.c([_.Lq()],aUu);_.Ab=[xK.prototype,aUu.prototype];_.Zh={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var v=this,e={};setTimeout(function(){var d;return _.Iq((d=v.hostElement)!=null?d:v,"yt-live-chat-add-tooltip-target",e)},0);
this.handler_=e.handler},
detached:function(){if(this.handler_){var v;this.handler_.removeElementFromSupportingTooltips((v=this.hostElement)!=null?v:this)}this.handler_=null}}};_.rC=new _.nC("ICON_MANAGER_TOKEN");var ian=[48,20,18,16,15,13,12],g3W=new Map,AH0=new Set,zjt=new Set,HaL=new Set,Xej=new Set,lUH=new Set,cHj=new Promise(function(v){var e=!1,d=!1,E=!1,T=[],S=function(O){if("detail"in O)if(O=O.detail,O.name==="yt-icons")ZaH(O),e=!0;else if(O.name==="yt-sys-icons")ZaH(O),d=!0;else{var b;((b=O.name)==null?0:b.includes("yt-sys-icons"))&&O.size!==24&&(ZaH(O,!0),T.push(O.size),T.length===ian.length&&(E=!0))}e&&d&&E&&(window.removeEventListener("iron-iconset-added",S),v())};
window.addEventListener("iron-iconset-added",S)}),FzH=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"]]);_.cl={};_.cl.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.vv,computeHref_:function(v,e){e=e===void 0?!1:e;if(!v||v.commandExecutorCommand)return null;var d=AXL(v,e);return e||d!==null?d?_.N("enable_polymer_resin")?_.xm(d).toString():d:null:(_.xf(new _.kL("computeHref was null",this.is,v)),null)},
computeOptionalHref_:function(v){return this.computeHref_(v,!0)},
computeNofollow_:function(v){return v?R07(v)?"nofollow":null:null},
computeIcon_:function(v){return v&&v.iconType?_.qC(v.iconType):""},
resolveCommand:function(v,e,d){e=e===void 0?{}:e;return _.K1(v,this.hostElement,e,d===void 0?!1:d)}};var IU6,wT;_.Oa7={};IU6=null;
wT={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_=AxW(this.viewroot));_.Q1(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var v=this;this.unobserve_();if(_.N("kevlar_vimio_use_shared_monitor"))peW(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var e=[];this.visibilityOptionVisible_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return v.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return v.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return v.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=e}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){u60(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 v=_.Xv(this.parentNode,function(d){var E,T=(E=d.polymerController)!=null?E:d;return!!T.getVisibilityObserverForChild&&T.getVisibilityObserverForChild()},!0);
if(v){var e;this.localVisibilityObserver_=((e=v.polymerController)!=null?e:v).getVisibilityObserverForChild()}else IU6||(IU6=AxW()),this.localVisibilityObserver_=IU6;return this.localVisibilityObserver_},visibilityCallback:function(v){v?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.N("kevlar_use_vimio_behavior")||(wT={});wT&&!_.N("kevlar_use_vimio_behavior")&&(delete wT.attached,delete wT.detached);_.Oa7.YtVisibilityObserverBehavior=[wT];var bag={};bag.YtVisualElementBehavior=[_.Oa7.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.N("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.N("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var v=this.getScreenLayer&&this.getScreenLayer(),e=this.getVisibilityLogger();e&&e.reportShown(this,void 0,v)}},
onHidden:function(){if(_.N("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.N("kevlar_vimio_use_shared_monitor")){var v=this.getScreenLayer&&this.getScreenLayer(),e=this.getVisibilityLogger();e&&e.reportHidden(this,void 0,v)}},
getVisibilityLogger:function(){return _.N("kevlar_use_vimio_behavior")?_.j2():null},
shouldSkipLogging:function(){if(_.Bb("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var v=this.getParentRenderer&&this.getParentRenderer();if(!v)return!1;var e,d=(e=v.polymerController)!=null?e:v;if(!d.data)return!1;v=this.data.trackingParams;v=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:v;var E;e=(E=d.data)==null?void 0:E.trackingParams;var T,S;e=((T=d.data)==null?0:T.loggingDirectives)?(S=d.data)==null?void 0:S.loggingDirectives.trackingParams:e;return v&&e&&v===
e}}];var dHj=new Map,Gj;var JA0=function(v){this.layer=v},aa=function(v){return v.layer!==void 0?v.layer:v.parent?aa(v.parent):v.layer=0};var iLL;_.n={};iLL=0;_.n.YtRendererBehavior=[_.cl.YtComponentBehavior,bag.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_:_.N("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var v,e;(e=(v=this.monitorScrollElement)!=null?v:this.hostElement)==null||e.removeEventListener("scroll",_.hG(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();voj(this.hostElement);Nzn(_.oc(),this.hostElement);e7.delete(this.hostElement)},
registerRenderer:function(v){var e;((e=v.polymerController)!=null?e:v).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(v),this.markDirty())},
unregisterRenderer_:function(v){this.useVimio_||(this.childCache_.delete(v),this.markDirty())},
attached:function(){var v=this,e=this.getParentRenderer();if(e){var d,E,T;(E=(d=(T=e.polymerController)!=null?T:e).registerRenderer)==null||E.call(d,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var S,O;(O=(S=this.monitorScrollElement)!=null?S:this.hostElement)==null||O.addEventListener("scroll",_.hG(this,this.onScroll))}_.RM.addJob(function(){Eo7(v.hostElement)},8);
d=new JA0(this.screenLayer||void 0);(e=e7.get(e))&&e.layerNode&&(d.parent=e.layerNode);e={};Z$s(this.hostElement,(e.isRenderer=!0,e.layerNode=d,e[Gt7]=this.data,e))},
getParentRenderer:function(){for(var v=this.hostElement.parentNode,e,d;v&&((e=e7.get(v))==null||!e.isRenderer)&&!((d=v.polymerController)!=null?d:v).isRenderer_;)v=v.parentNode||v.host;return v},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.N("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.zr("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.N("debug_web_ve_data")&&this.data.trackingParams){var v="";try{v=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(d){_.RI(d)}if(v){var e=WU3(v,1);e!==void 0&&(this.hostElement.dataset.veIndex=String(e));v=WU3(v,2);
v!==void 0&&(this.hostElement.dataset.ve=String(v))}}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,_.N("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Jg(this.data.loggingDirectives.trackingParams)),this.visualElement=_.s_(_.NC(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var v=this.data.targetId;_.Lb6(_.oc(),v,this.hostElement)}else Nzn(_.oc(),this.hostElement)},
onScroll:function(){var v=Date.now();v-this.lastHandledScroll_<50||(this.lastHandledScroll_=v,this.markDirty())},
markDirty:function(){_.N("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():OLt(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var v=this.getParentRenderer();if(v&&(v=e7.get(v))&&v.layerNode)return aa(v.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.t7(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var v=0;v<this.data.impressionEndpoints.length;v++)this.sendImpression(this.data.impressionEndpoints[v]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(v){v.clickTrackingParams&&delete v.clickTrackingParams;var e,d;(v==null?0:(e=v.commandMetadata)==null?0:(d=e.webCommandMetadata)==null?0:d.sendPost)?_.mN(this.hostElement,[v,{impression:!0}]):_.ya(this.hostElement,[v],this.hostElement)},
logExplicitClick:function(v){var e=_.zz(this.getScreenLayer());if(e){var d,E=(d=v.polymerController)!=null?d:v;v=E.visualElement;E=E.trackingParams||E.clickTrackingParams;!v&&E&&(v=_.Jg(E));v&&_.Uz(e,v)}}}];var YZ0={},Fz=function(){return _.kv.apply(this,arguments)||this};
_.V(Fz,_.kv);Fz.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Fz.prototype.onPdgItemBehaviorClick=Fz.prototype.onPdgItemBehaviorClick;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Fz.prototype,"data",void 0);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],Fz.prototype,"onPdgItemBehaviorClick",null);_.c([_.Lq()],Fz);YZ0.YtPdgLiveChatItemBehavior=[Fz.prototype,_.n.YtRendererBehavior];var mDJ;var yHn;_.Qy={};_.Qy.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var gT=function(){var v=d3.apply(this,arguments)||this;v.switchTemplateAtRegistration=!1;return v};
_.V(gT,d3);gT.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||mHt(this),_.HKs(this,"doRender"),this.doRender())};
gT.prototype.debounceRender=function(){this.templatingFn&&_.gi(this,"doRender",this.doRender)};
gT.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.RI(Error("bh"))};
gT.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.c([Mj3()],gT);var qZ7=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,uA={},h7S=(uA[1]={filterString:null,isUnwrappable:null,unwrap:null},uA[2]={filterString:function(v,e,d){return I7(d)},
isUnwrappable:function(v){return v instanceof H$},
unwrap:function(v){return ZB(v)}},uA[3]={filterString:function(v,e,d){return qZ7.test(d)?d:P$.toString()},
isUnwrappable:function(v){return GD(v)},
unwrap:function(v){return _.Mf(v)}},uA[4]={filterString:function(){return P$.toString()},
isUnwrappable:function(v){return v instanceof Nf},
unwrap:function(v){return _.LY(v).toString()}},uA[5]={filterString:function(v,e,d){return d},
isUnwrappable:function(v){return typeof v==="string"},
unwrap:function(v){return v.toString()}},uA[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(v){return v instanceof _.gu},
unwrap:function(v){return S9O(v)}},uA[8]={filterString:function(v,e,d){d=String(d).toLowerCase();
return a8S(v,e,d)?d:"zClosurez"},
isUnwrappable:null,unwrap:null},uA[10]={filterString:null,isUnwrappable:null,unwrap:null},uA);vY[zq["default"]]=$Ht;var jz3=[];(function(){var v=u3;u3=function(e){v==null||v(e);R5(function(){for(var d=0;d<e.length;d++)sz0(e[d])})}})();var rHe=function(){var v=_.kv.apply(this,arguments)||this;v.hasUnmounted=!1;return v};
_.V(rHe,_.kv);_.W=rHe.prototype;_.W.beforeRegister=function(){var v=this.doIdomRender;this.templatingFn?_.RI(Error("ah")):(this.templatingFn=v,this.switchTemplateAtRegistration=!0,rPM(this))};
_.W.attached=function(){};
_.W.detached=function(){sz0(this.hostElement)};
_.W.renderIdom=function(){throw Error("dh");};
_.W.doIdomRender=function(){var v=this;vpj(this.hostElement,function(){v.renderIdom()})};
_.c([_.Lq()],rHe);var hj7=[gT.prototype,rHe.prototype];var KzE,$D0=function(){return KzE!==void 0?KzE:KzE=document.createElement("template")};
document.head.appendChild($D0().content);var jJc;var sJJ,NxM=function(){return sJJ!==void 0?sJJ:sJJ=document.createElement("template")};
document.head.appendChild(NxM().content);var k0B;var Lzi=document.head,V8g=Lzi.appendChild,o32;if(k0B===void 0){var JHn=document.createElement("template");_.G(JHn,"\x3c!--css-build:shady--\x3e");JHn.content.insertBefore(NxM().content.cloneNode(!0),JHn.content.firstChild);k0B=JHn}o32=k0B;V8g.call(Lzi,o32.content);var G0B,M86=function(){return G0B!==void 0?G0B:G0B=document.createElement("template")};
document.head.appendChild(M86().content);var t8J;var fU2=document.head,RjA=fU2.appendChild,PDi;if(t8J===void 0){var xDc=document.createElement("template");_.G(xDc,"\x3c!--css-build:shady--\x3e");xDc.content.insertBefore(M86().content.cloneNode(!0),xDc.content.firstChild);t8J=xDc}PDi=t8J;RjA.call(fU2,PDi.content);var BxA=document.head,CDn=BxA.appendChild,XeB;if(jJc===void 0){var zj0=document.createElement("template");_.G(zj0,"\x3c!--css-build:shady--\x3e");zj0.content.insertBefore($D0().content.cloneNode(!0),zj0.content.firstChild);jJc=zj0}XeB=jJc;CDn.call(BxA,XeB.content);var lUn,HaM=function(){return lUn!==void 0?lUn:lUn=document.createElement("template")};
document.head.appendChild(HaM().content);var AHg;_.n1=new _.nC("DARK_THEME_TOKEN");var IMS=new _.gG("accessibilityProperties");var OTO=new _.gG("layoutProperties");var bT0=new _.gG("imageType");var Zan={};if("ytAttributedStringLinkHoverColor"in Zan)throw Error("gh`ytAttributedStringLinkHoverColor");(function(v,e){Zan[v]="value"in e&&"unit"in e?JP$(v,e):function(d){try{return e(d)}catch(E){throw Error("eh`"+v+"`"+E.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var cHB=function(v){var e=this;this.holdTime=v===void 0?500:v;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(d){var E=new CustomEvent("LONG_PRESS"),T;(T=d.changedTouches[0].target)==null||T.dispatchEvent(E)};
this.ontouchstart=function(d){e.longPressTimeout=_.NP(_.RM,function(){e.onlongpress(d);e.longPressOccurred=!0},e.holdTime)};
this.ontouchmove=function(){_.RM.cancelJob(e.longPressTimeout);e.longPressTimeout=NaN;e.longPressOccurred=!1;e.moveOccurred=!0};
this.ontouchend=function(d){if(e.longPressTimeout&&!e.longPressOccurred&&!e.moveOccurred){var E;(E=d.changedTouches[0].target)==null||E.dispatchEvent(new Event("click"))}_.RM.cancelJob(e.longPressTimeout);e.longPressTimeout=NaN;e.longPressOccurred=!1;e.moveOccurred=!1}};var Fa$=function(v,e){cHB.call(this,e);var d=this;this.callback=v;this.onlongpress=function(E){var T;(T=d.callback)==null||T.call(d,E)}};
_.V(Fa$,cHB);var Qzt=function(v,e){var d=Object.assign({},e);v=_.a(new Map([["ontouchstart",v.ontouchstart],["ontouchend",v.ontouchend],["ontouchmove",v.ontouchmove]]));for(var E=v.next(),T={};!E.done;T={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},E=v.next()){var S=_.a(E.value);E=S.next().value;S=S.next().value;T.eventName$jscomp$101=E;T.eventHandler$jscomp$1=S;e[T.eventName$jscomp$101]=function(O){return function(b){var Y;(Y=d[O.eventName$jscomp$101])==null||Y.call(d,b);(0,O.eventHandler$jscomp$1)(b)}}(T)}};_.EI=new _.nC("COMMAND_HANDLER_TOKEN");var Mk$=new _.gG("parallelCommand");var R7W=new _.gG("performOnceCommand");var fW$=new _.gG("serialCommand");var PfS=void 0;var weA=function(){this.data=[];this.consumer=null};
weA.prototype.push=function(v){this.consumer?this.consumer(v):this.data.push(v)};var uH={};_.OE(uH,void 0,"sgPmTd");_.OE(null,void 0,"jypsq");_.OE(null,void 0,"mWiOof");var X_0=new weA;var APS=[rs6,h$g,K0n,jUA,$7i,q02,sUg,NHE];var aMW=new _.gG("bracketTextDecorator");var gC=new _.gG("highlightTextDecorator");_.U_=new _.nC("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var dBM=function(){},Fzn;
(Fzn=window.requestIdleCallback)==null||Fzn.bind(window);var TRt={calledOnce:!1,state:"visible"},E4O={calledOnce:!1,state:"hidden"};var QJ6=new _.nC("ICON_WIZ_COMPONENT_TOKEN");_.sG=_.l(function(v){var e=v.icon;var d=v.active;var E=v.className;var T=v.style;var S=v.dataSelected;var O=v.dataDisabled;var b=v.role;var Y=v.animateIcon;var q=v.themeOverride;var r=v.ariaHidden;var h=v.ariaExpanded;var K=v.ariaLabel;var k=v.tabindex;var J=v.id;var R=v.size;var B=v.iconFilter;var X=v.onKeydown;return _.m(_.y,{cond:e,then:function(){var Z=_.dk().resolve(QJ6);return _.m(Z,{icon:e,dataSelected:S,dataDisabled:O,animateIcon:Y,themeOverride:q,ariaExpanded:h,tabindex:k,id:J,active:d,size:R,
role:b,className:E,ariaHidden:r,ariaLabel:K,style:function(){return T!=null&&T()||R==null||!R()?T==null?void 0:T():"width: "+(R==null?void 0:R())+"px;height: "+((R==null?void 0:R())+"px;")},
iconFilter:B,onKeydown:X})}})},"b");
_.sG.idomCompat={callbacks:{onKeydown:!0}};var JpW=window.devicePixelRatio||1;var fMt=new Map([["yt_outline_bag_black_24","bag"]]);var ns=function(v){var e=this;this.margin=.1;this.whenInViewportWithMargin=v;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){e.requestScan()});
window.addEventListener("touchend",function(){e.requestScan()});
window.addEventListener("updateui",function(){e.requestScan()});
var d=new _.wB((0,_.LX)(this.requestScan,this),100);window.addEventListener("scroll",function(){d.fire()},!0);
window.addEventListener("resize",(0,_.LX)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){e.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.LX)(this.requestScan,this))};
ns.prototype.observe=function(v){this.observationTargets.includes(v)||this.observationTargets.push(v)};
ns.prototype.unobserve=function(v){this.observationTargets=this.observationTargets.filter(function(e){return e!==v})};
ns.prototype.requestScan=function(){var v=this;this.scanRequested||(R5(function(){g3A(v)}),this.scanRequested=!0)};
var g3A=function(v){var e=(1+v.margin)*(document.documentElement.clientHeight||window.innerHeight);v.observationTargets=v.observationTargets.filter(function(d){var E=d.getBoundingClientRect();(E=e>E.top&&!!E.height)&&v.whenInViewportWithMargin(d);return!E&&d.parentNode});
v.scanRequested=!1};
ns.prototype.disconnect=function(){this.observationTargets=[]};var u6g,DDc;u6g=_.a(_.OE(Cos(),void 0,"O3X2wd"));_.n3I=u6g.next().value;DDc=u6g.next().value;window.addEventListener("resize",function(){DDc(Cos())});var UDI={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},peA=void 0,voB=window.innerWidth,e72=window.innerHeight;window.addEventListener("resize",function(){peA=void 0});var dHB;if("IntersectionObserver"in window)dHB=lMW();else{if(peA===void 0){var Eoi;Eoi="matchMedia"in window?window.matchMedia(UDI.landscape+","+UDI.portrait).matches:void 0;peA=Eoi!==void 0?Eoi:voB>=930&&e72>=550||voB>=550&&e72>=930}dHB=peA?{observe:function(v){R5(function(){var e;(e=v.onViewportEntered)==null||e.call(v)})},
unobserve:function(){}}:new ns(function(v){R5(function(){var e;
(e=v.onViewportEntered)==null||e.call(v)})})}var XQL=dHB;var TA0=_.l(function(v){var e=!1,d=_.nI("img",function(E){_.Jf(function(){e=!0;E.onload=null})});
_.o_(function(){var E,T=(E=v.data)==null?void 0:E.call(v),S,O=(S=v.getSrc)==null?void 0:S.call(v).cb,b;E=(b=v.config)==null?void 0:b.call(v);if(b=d.value)if(S=function(q,r){if(!e)return O?O(q,r):q},ZTW(b,E),_.N("web_image_dont_reload_same_src")&&Apj(b,T,S))_.N("web_image_dont_reload_same_src_simulate_load")&&b.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var Y;HT3(b,T||null,S,E,(Y=v.lazy)==null?void 0:Y.call(v))}},"v0I2p");
return _.m("img",{el:d})},"c");
TA0.idomCompat=!0;_.va=_.l(function(v){var e=function(){var d,E=v.data(),T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F,g,Q,v3,q7,m0,$S,kS,N7,As,Ct,SA,xI;var mg={contentMode:(T=v.contentMode)==null?void 0:T.call(v),loadedClass:(S=v.loadedClass)==null?void 0:S.call(v),isPreloaded:(O=v.isPreloaded)==null?void 0:O.call(v),notifyOnLoaded:(b=v.notifyOnLoaded)==null?void 0:b.call(v),notifyOnUnloaded:(Y=v.notifyOnUnloaded)==null?void 0:Y.call(v),preferredThumbnail:(q=v.preferredThumbnail)==null?void 0:q.call(v),preserveHeight:(r=v.preserveHeight)==
null?void 0:r.call(v),preserveWidth:(h=v.preserveWidth)==null?void 0:h.call(v),objectPosition:(K=v.objectPosition)==null?void 0:K.call(v),targetWidth:(k=v.targetWidth)==null?void 0:k.call(v),targetHeight:(J=v.targetHeight)==null?void 0:J.call(v),shouldShowPlaceholder:(R=v.shouldShowPlaceholder)==null?void 0:R.call(v),useWidth:(B=v.useWidth)==null?void 0:B.call(v),isToggled:(X=v.isToggled)==null?void 0:X.call(v),alt:(Z=v.alt)==null?void 0:Z.call(v),className:(U=v.className)==null?void 0:U.call(v),
onerror:v.onerror,onload:v.onload,style$:((F=v.style$)==null?void 0:F.call(v))||((g=v.style)==null?void 0:g.call(v)),color:(Q=v.color)==null?void 0:Q.call(v),width:(v3=v.width)==null?void 0:v3.call(v),height:(q7=v.height)==null?void 0:q7.call(v),"aria-hidden$":(SA=(m0=v["aria-hidden$"])==null?void 0:m0.call(v))!=null?SA:($S=v.ariaHidden)==null?void 0:$S.call(v),draggable:(kS=v.draggable)==null?void 0:kS.call(v),"data-disabled$":(xI=(N7=v["data-disabled$"])==null?void 0:N7.call(v))!=null?xI:(As=v.dataDisabled)==
null?void 0:As.call(v),size:(Ct=v.size)==null?void 0:Ct.call(v)};return FBW(E,mg,(d=v.hideOn404)==null?void 0:d.call(v))};
return _.m(_.kc,null,_.m(_.sW,{when:function(){var d;return((d=e())==null?void 0:d.type)==="image"}},function(){return _.m(TA0,{data:function(){return e().image},
getSrc:{cb:function(d,E){var T=e().image.sources,S=e().config.isPreloaded,O=e().config.useWidth,b=e().config.targetWidth,Y=e().config.targetHeight,q=e().config.preferredThumbnail;return _.Gg$(E,T,S,O,b,Y,q)||""}},
config:function(){var d=e().config,E;for(E in d)d[E]===void 0&&delete d[E];return d},
lazy:v.renderLazy})}),_.m(_.sW,{when:function(){var d;
return((d=e())==null?void 0:d.type)==="icon"}},function(){return _.m(_.sG,{icon:function(){return e().iconName},
role:function(){return e().config.role},
className:function(){return e().config.className},
style:function(){return e().config.style$+";width: "+(e().config.width+"px;height: ")+(e().config.height+"px;color: ")+(e().config.color+";")},
ariaLabel:function(){return e().config["aria-label$"]},
ariaHidden:function(){return e().config["aria-hidden$"]},
dataDisabled:function(){return e().config["data-disabled$"]},
active:function(){return e().config.isToggled},
size:function(){return e().config.size}})}))},"d");
_.va.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var SuM=function(v){return function(e){return _.m(hJt,null,function(){var d=e.data(),E=_.M4(e.config);return _.m(UN,null,function(){return void v(d,E)})})}}(DB7),u3L=_.l(function(v){var e=function(E){var T,S=_.dq(function(K){T=Gq(function(){for(var k=_.a(r()),J=k.next();!J.done;J=k.next()){J=UBO(J.value);
J=typeof J==="string"?document.createTextNode(J):J;if(!(J instanceof Node)){k=new _.kL("Part is not a node",J,typeof J);_.RI(k);break}K.appendChild(J)}})}),O=EG(function(){return mBO(E())},{isEqual:g4j}),b=_.e2(v.config),Y=function(){var K,k=O();
return!((K=b())==null||!K.ariaLabel)||!(k.commandRuns&&k.commandRuns.length!==0||k.paragraphStyleRuns&&k.paragraphStyleRuns.length!==0)},q=EG(b,{isEqual:v$M}),r=function(){var K=YLj(O(),q());
qL0(K,q());return O().content?sV3(O().content,K).parts:[]},h=!0;
_.o_(function(){O();q();if(h)h=!1;else{var K=r();Promise.resolve().then(function(){var k=S.value;if(k){k.innerText="";var J;(J=T)==null||J();T=_.VU(k,function(){return _.m(pQj,{parts:K})},"e")}})}},"YJG4lf");
return _.m("span",{el:S,class:function(){return O()&&UH$(O(),b())},
dir:function(){var K;return((K=b())==null?0:K.userInput)?"auto":void 0},
"aria-label":function(){var K;return Y()?(K=b())==null?void 0:K.ariaLabel:void 0},
role:function(){return Y()?"text":void 0}})},d;
return((d=v.config)==null?0:d.renderedFromFormattedString)?e(v.text):_.m(_.y,{cond:v.text,then:e})},"f");
u3L.idomCompat=!0;_.Dh=_.l(function(v){var e=_.e2(v.text),d=eyj(v);v.renderedFromFormattedString!==void 0&&(d.renderedFromFormattedString=!0);return _.N("attr_string_reactive")?_.m(u3L,{text:e,config:d}):_.m(_.y,{cond:function(){var E;return e()&&((E=mBO(e()))==null?void 0:E.content)},
then:function(){return _.m(SuM,{data:v.text,config:d})},
debugInstance:"Apcuac"})},"g");
_.Dh.idomCompat=!0;var E$$=function(v,e,d){e=e===void 0?"unknown":e;d=d===void 0?{}:d;_.kL.call(this,v+" ("+e+")",Object.assign({},{name:"YtWcwError",tagName:e},d));Object.setPrototypeOf(this,this.constructor.prototype)};
_.V(E$$,_.kL);_.OcO=new WeakMap;_.icH=!1;var as3,IsH,Wn0;_.U1=Symbol("ih");_.SM=Symbol("jh");as3=Symbol("kh");IsH=new Set(Object.getOwnPropertyNames(Element.prototype));Wn0=Symbol("lh");var Wa6=_.l(function(v){return _.m("yt-attributed-string",{"aria-label":v.ariaLabel,hidden:v.hidden,id:v.id,class:v.className,"force-default-style":v.forceDefaultStyle},_.m(_.Dh,{text:v.data,ariaLabel:v.ariaLabel,ellipsisTruncate:v.ellipsisTruncate,isOverlay:v.isOverlay,linkInheritColor:v.linkInheritColor,noPreWrap:v.noPreWrap,noWrap:v.noWrap,userInput:v.userInput,noEndpoints:v.noEndpoints,headerRuns:v.headerRuns,isHeadline:v.isHeadline}))},"h");
_.N("web_wiz_attributed_string")&&_.aZ(Wa6,"yt-attributed-string",{props:{ariaHidden:_.U1,ariaLabel:_.U1,className:_.U1,ellipsisTruncate:_.U1,isOverlay:_.U1,linkInheritColor:_.U1,noEndpoints:_.U1,noStyleRuns:_.U1,noLinkColor:_.U1,noPreWrap:_.U1,noWrap:_.U1,skipOnClick:_.U1,userInput:_.U1,headerRuns:_.U1,isHeadline:_.U1,id:_.U1,data:_.U1,hidden:_.U1,forceDefaultStyle:_.U1,text:_.SM,stopPropagation:_.SM,disableUpgrade:_.SM,disable:_.SM,slot:_.SM}});var ps=function(){return _.P.apply(this,arguments)||this};
_.V(ps,_.P);ps.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},DB7(this.data,this.config))};
_.c([_.M(hj7),_.w("design:type",Object)],ps.prototype,"ytIdomTemplatingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ps.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ps.prototype,"ariaLabel",void 0);_.c([_.f(),_.w("design:type",Boolean)],ps.prototype,"disable",void 0);_.c([_.f(),_.w("design:type",Boolean)],ps.prototype,"ellipsisTruncate",void 0);_.c([_.f(),_.w("design:type",Boolean)],ps.prototype,"isOverlay",void 0);
_.c([_.f(),_.w("design:type",Boolean)],ps.prototype,"linkInheritColor",void 0);_.c([_.f(),_.w("design:type",Boolean)],ps.prototype,"noPreWrap",void 0);_.c([_.f(),_.w("design:type",Boolean)],ps.prototype,"noWrap",void 0);_.c([_.f(),_.w("design:type",Boolean)],ps.prototype,"userInput",void 0);_.c([_.f(),_.w("design:type",Boolean)],ps.prototype,"noEndpoints",void 0);_.c([_.f(),_.w("design:type",Array)],ps.prototype,"headerRuns",void 0);
_.c([_.lh({is:"yt-attributed-string",disableElementRegistration:!0})],ps);
_.N("web_wiz_attributed_string")||_.A(ps,"yt-attributed-string",function(){if(AHg===void 0){var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
v.content.insertBefore(HaM().content.cloneNode(!0),v.content.firstChild);AHg=v}v=AHg;return v},{mode:2});var aWn,iLM,hys;aWn=function(){this.firstThumbnailLoaded=!1};
_.OL7=function(){iLM||(iLM=new aWn);return iLM};
hys=function(v){var e=_.OL7();e.firstThumbnailLoaded||(e.firstThumbnailLoaded=!0,_.zE("ftl",v))};
aWn.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Yp0=0,rjj=new WeakMap,yjj=0,IZ=new Set;var IW0,bLg=function(){return IW0!==void 0?IW0:IW0=document.createElement("template")};
document.head.appendChild(bLg().content);var YuJ;var sRW,kmj,vh;_.m8=_.TO.caches;vh=function(){};
vh.prototype.open=function(v){return _.m8.open(mH0(v))};
vh.prototype.has=function(v){return _.m8.has(mH0(v))};
vh.prototype.delete=function(v){return _.m8.delete(mH0(v))};
vh.prototype.match=function(v,e){var d=this,E,T,S,O,b,Y;return _.I(function(q){switch(q.nextAddress){case 1:return q.yield(d.keys(),2);case 2:E=q.yieldResult,T=_.a(E),S=T.next();case 3:if(S.done){q.jumpTo(5);break}O=S.value;return q.yield(d.open(O),6);case 6:return b=q.yieldResult,q.yield(b.match(v,e),7);case 7:if(Y=q.yieldResult)return q.return(Y);S=T.next();q.jumpTo(3);break;case 5:return q.return()}})};
var Ln7=function(){};
_.V(Ln7,vh);var mH0=function(v){if(v.includes(":"))throw Error("oh`"+v);return v+":"+_.sI("CacheStorage get")};
Ln7.prototype.keys=function(){var v,e,d,E,T,S,O,b,Y;return _.I(function(q){if(q.nextAddress==1)return v=[],e=_.sI("CacheStorage keys"),q.yield(_.m8.keys(),2);d=q.yieldResult;E=_.a(d);for(T=E.next();!T.done;T=E.next())S=T.value,O=_.jR3(S),b=O.originalName,Y=O.datasyncId,Y===e&&v.push(b);return q.return(v)})};var eZ=function(){var v=_.P.apply(this,arguments)||this;v.objectURL=null;v.loadTime=Infinity;return v};
_.V(eZ,_.P);_.W=eZ.prototype;_.W.renderIdom=function(){$vt(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();this.config&&cpt(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.W.objectFitToContentMode=function(v){switch(v){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.W.logThumbnailFailureVe=function(){var v=_.bH(197497);_.bj(_.NC(),v);var e=_.zz();e&&v&&e&&_.nB(e,[v])};
_.W.loadImageFromCacheIfExists=function(v){var e=this,d=v.target;(d==null?0:d.src)&&o$W(d.src).then(function(E){e.objectURL=_.B$(E).toString();e.setSrc(d,e.objectURL)}).catch(function(){})};
_.W.onError=function(v){var e=this;if(_.N("web_use_cache_for_image_fallback")){var d=v.target;d&&o$W(d.src).then(function(E){e.objectURL=_.B$(E).toString();e.setSrc(d,e.objectURL)}).catch(function(){_.N("kevlar_woffle_log_thumbnail_failure_ve")&&e.logThumbnailFailureVe();
_.N("kevlar_woffle_fallback_image")&&e.setSrc(d,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.W.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.W.setConfig=function(){var v=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(e){v.loadImageFromCacheIfExists(e);v.revokeObjectURL();Knt(v.hostElement)},
onerror:function(e){v.onError(e)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.N("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.W.setSrc=function(v,e){e&&(v.src=e)};
_.c([_.M(hj7),_.w("design:type",Object)],eZ.prototype,"ytIdomTemplatingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],eZ.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],eZ.prototype,"alt",void 0);_.c([_.f(),_.w("design:type",Boolean)],eZ.prototype,"ftlEligible",void 0);_.c([_.f(),_.w("design:type",Number)],eZ.prototype,"height",void 0);_.c([_.f(),_.w("design:type",Boolean)],eZ.prototype,"notifyOnLoaded",void 0);
_.c([_.f(),_.w("design:type",Boolean)],eZ.prototype,"notifyOnUnloaded",void 0);_.c([_.f(),_.w("design:type",String)],eZ.prototype,"objectFit",void 0);_.c([_.f(),_.w("design:type",String)],eZ.prototype,"objectPosition",void 0);_.c([_.f(),_.w("design:type",String)],eZ.prototype,"preferredThumbnail",void 0);_.c([_.f(),_.w("design:type",Boolean)],eZ.prototype,"preserveHeight",void 0);_.c([_.f(),_.w("design:type",Boolean)],eZ.prototype,"preserveWidth",void 0);
_.c([_.f({value:!0}),_.w("design:type",Boolean)],eZ.prototype,"useWidth",void 0);_.c([_.f({value:function(){return!_.zr("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.w("design:type",Boolean)],eZ.prototype,"shouldRenderLazy",void 0);_.c([_.f(),_.w("design:type",Number)],eZ.prototype,"width",void 0);_.c([_.lh({is:"yt-image",disableElementRegistration:!0})],eZ);
_.A(eZ,"yt-image",function(){if(YuJ===void 0){var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);v.content.insertBefore(bLg().content.cloneNode(!0),v.content.firstChild);
YuJ=v}v=YuJ;return v},{mode:2});var dD=function(){return _.P.apply(this,arguments)||this};
_.V(dD,_.P);dD.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var v=_.lk(this.data.onVisibleCommand);v&&this.ytComponentBehavior.resolveCommand(v)}};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],dD.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Qy.YtVisibilityBehavior),_.w("design:type",Object)],dD.prototype,"ytVisibilityBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],dD.prototype,"data",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],dD);
_.A(dD,"yt-bumper-user-edu-content-view-model",function(){if(yHn===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;mDJ===void 0&&(mDJ=document.createElement("template"));var E=mDJ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);yHn=v}v=yHn;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var yPB;var quB,rPJ=function(){if(quB!==void 0)return quB;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;yPB===void 0&&(yPB=document.createElement("template"));var E=yPB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return quB=v};var h7I;_.Ee={};h7I=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"]);_.Ee.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var v=this.getContext_();return v?v.getTaskManager():_.RM},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var v=_.Iq(this.hostElement,"yt-get-context-provider",{});v.detail&&v.detail.contextProvider?this.cachedProviderNode_=v.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return h7I.has(this.hostElement.localName)},
getNetworkManager:function(){var v=this.getContext_();if(v)return v.getNetworkManager()}};var Rys,KaI,jzc,$H7;_.TX=function(v){var e=KaI.get(v);if(e&&(e=e.pop()))return $H7++,e;jzc++;try{var d=document.createElement(v)}catch(E){throw new _.kL("ElementPool failed to create element",v,E.message);}return d};
Rys=function(v){var e=v.is;if(e){var d=KaI.get(e);d||(d=[],KaI.set(e,d));var E=_.Bb("ELEMENT_POOL_CONFIG")||{};d.length>=(E[e]!==void 0?E[e]:_.Bb("ELEMENT_POOL_DEFAULT_CAP",0))||d.push(v)}else _.xf(new _.kL("Element pool should only handle custom elements:",v.nodeName))};
KaI=new Map;jzc=0;$H7=0;var yw=new WeakMap,fs0=new WeakMap;var NAI;_.SZ=function(v,e,d){d=d===void 0?_.jd():d;this.JSC$13784_defaultPriority=v;this.signal=e;this.scheduler=d;this.nextJobDescriptor=0;this.JSC$13784_parkedJobs=[];this.scheduledJobs=new Map};
_.Wh=function(v,e){if(e){var d=_.HH();v.signal&&!_.Ad(d,v.signal)?(d.addListener(v.signal,function(){v.processSignal()}),v.JSC$13784_parkedJobs.push({job:e,
priority:void 0})):szg(v,e)}};
NAI=function(v,e){if(e!==v.JSC$13784_defaultPriority){v.JSC$13784_defaultPriority=e;for(var d=_.a(v.scheduledJobs.values()),E=d.next();!E.done;E=d.next())E=E.value,v.scheduler.cancelJob(E.jobId),E.jobId=v.scheduler.addJob(E.jobWrapper,e)}};
_.SZ.prototype.flushJobs=function(){NAI(this,10);this.processSignal()};
_.SZ.prototype.cancel=function(){for(var v=_.a(this.scheduledJobs),e=v.next();!e.done;e=v.next()){var d=_.a(e.value);e=d.next().value;d=d.next().value;this.scheduler.cancelJob(d.jobId);this.scheduledJobs.delete(e)}this.JSC$13784_parkedJobs=[]};
_.SZ.prototype.processSignal=function(){for(var v=_.a(this.JSC$13784_parkedJobs),e=v.next();!e.done;e=v.next())e=e.value,szg(this,e.job,e.priority);this.JSC$13784_parkedJobs=[]};
var szg=function(v,e,d){d=d||v.JSC$13784_defaultPriority;if(d===10)b2(e);else{var E=v.nextJobDescriptor++,T=function(){e();v.scheduledJobs.delete(E)},S=v.scheduler.addJob(T,d);
v.scheduledJobs.set(E,{jobWrapper:T,jobId:S,priority:d})}};K$j({beforeVisit:function(v){if(_.ik.has(v.type)){var e;(e=v.props).idomKey!=null||(e.idomKey=v.type)}else v.type.TAG_NAME&&(_.Wa=v.type.TAG_NAME)},
afterRender:function(v,e){var d;_.Wa=(d=e==null?void 0:e.type)!=null?d:""},
didPatch:function(){_.Wa=""}});var kPn;_.ae={};kPn={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.ae.YtRendererstamperBehavior=[_.Ee.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 v in this.stampDom){var e=this.stampDom[v];e&&e.id&&this.addReactiveSchema({type:"observe",method:{methodName:Gmj(e.id),args:[{type:"wildcard",path:v}]}})}else{(v=(this.constructor.generatedFrom||this).observers)||(v=[]);for(e in this.stampDom){var d=this.stampDom[e];d&&d.id&&v.push(Gmj(d.id)+"("+e+".*)")}this.constructor.generatedFrom.observers=v}},
addStampDomObserverFns_:function(){for(var v in this.stampDom){var e=this.stampDom[v];e.id?(this[Gmj(e.id)]=this.rendererStamperObserver_.bind(this,v,e.id),this.hasDataPath_[v]=!1):(e=new _.kL("Bad rendererstamper config",this.is+":"+v),_.RI(e))}},
rendererStamperObserver_:function(v,e,d){if(d.path==v){if(d.value===void 0&&!this.hasDataPath_[v])return;this.hasDataPath_[v]=d.value!==void 0}this.rendererStamperApplyChangeRecord_(v,e,d)},
rendererStamperApplyChangeRecord_:function(v,e,d){var E=this.renderJobsMap_[e],T=null;v==d.path?(d=d.value,_.c3(d)||(d=d===void 0||d===null?[]:[d]),v=this.stampDom[v],v.mapping&&(T=this.stampDomArray_.bind(this,d,e,v.mapping,v.reuseComponents,v.events,v.stamperStableList)),E&&E.cancel(),d=v.usePageScheduler?this.getTaskManager():void 0,E||v.initialRenderPriority==void 0)?v.renderPriority==void 0||E||(E=new _.SZ(v.renderPriority,v.waitForSignal,d),this.renderJobsMap_[e]=E):(E=new _.SZ(v.initialRenderPriority,
v.waitForSignal,d),this.renderJobsMap_[e]=E,T=function(S,O){S();NAI(O,10)}.bind(this,T,E)):T=v+".splices"==d.path?this.stampDomArraySplices_.bind(this,v,e,d.value):this.forwardRendererStamperChanges_.bind(this,v,e,d);
E?_.Wh(E,T):T()},
forwardRendererStamperChanges_:function(v,e,d){var E=d.path.slice(v.length+1),T=this.getStampContainer_(e),S=E.indexOf("."),O=E.substring(0,S),b=!1,Y=0,q=parseInt(O,0);if(O[0]=="#"){b=parseInt(O.substring(1),0);q=this.get(v);var r=this.get([v,O]);q[b]==r?Y=b:Y=q.indexOf(r);b=!0}else isNaN(q)||(Y=q,b=!0);b&&(E=E.substring(O.length+1),S=E.indexOf("."));O=_.tW(T).children[Y];var h;if(T=(h=O==null?void 0:O.polymerController)!=null?h:O)E="data"+E.slice(S),typeof T.notifyPath!=="function"?_.xf(new _.kL("notifyPath missing",
this.is+": "+v+", "+e)):d.value?T.notifyPath(E,d.value):T.notifyPath(E)},
stampDomArraySplices_:function(v,e,d){if(d&&d.indexSplices){var E=this.getStampContainer_(e);if(E){for(var T=_.tW(E),S=t3U(this.stampDom[v].reuseComponents),O=d.indexSplices.length,b=0;b<O;b++){for(var Y=d.indexSplices[b],q=T.children[Y.index],r=Y.removed.length;r>0;r--)q&&q.parentElement&&(_.tW(q.parentElement).removeChild(q),S&&Rys(q),q=T.children[Y.index]);r=this.stampDom[v].mapping;for(var h=Y.index+Y.addedCount,K=document.createDocumentFragment(),k=S,J=Y.index;J<h;J++){var R=Y.object[J],B=JjS(r,
R);if(B){var X=r[B];R=R[B];B=this.getComponentName_(X,R);var Z=q?yw.has(q):!1;k&&q&&q.is==B&&Z?(B=q,this.telemetry_.reuse++,q=q.nextElementSibling):k&&q&&Z?(B=this.createComponent_(X,R,S),Z=_.tW(q).nextElementSibling,T.insertBefore(B,Z),xvW(this.is,T,q,S),q=Z):(k=!1,B=this.createComponent_(X,R,S),K.appendChild(B));this.deferRenderStamperBinding_(B,X,R)}else X=new _.kL("Unimplemented type",v,e,E.tagName,Object.keys(R)[0]),_.RI(X)}T.insertBefore(K,q)}this.flushRenderStamperComponentBindings_();this.stampDom[v].events&&
_.Iq(this.hostElement,"yt-rendererstamper-finished",{container:E})}else v=new _.kL("Container object not found",e,this.hostElement?this.hostElement.is:""),_.RI(v)}},
stampDomArray_:function(v,e,d,E,T,S){var O=this.getStampContainer_(e);if(O)if(e=_.tW(O),E=t3U(E),v){var b=0,Y=0,q;if(S=S===void 0?_.zr("STAMPER_STABLE_LIST",!1):S||!1)for(q=e.firstElementChild;q&&!yw.has(q)&&v.length>Y;){S=v[Y];var r=JjS(d,S);if(r){if(this.getComponentName_(d[r],S[r])!=q.is){var h=this.createComponent_(d[r],S[r],E),K=_.tW(q).nextElementSibling;K?e.insertBefore(h,K):e.appendChild(h);xvW(this.is,e,q,E);q=h}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(q,d[r],S[r]);b++;
Y++;q=_.tW(q).nextElementSibling}else Y++}BwU(this.is,e,b,E);b=q;if(v.length>Y){S=document.createDocumentFragment();for(r=v.length;Y<r;Y++)if(h=v[Y],K=JjS(d,h))q=this.createComponent_(d[K],h[K],E),this.deferRenderStamperBinding_(q,d[K],h[K]),S.appendChild(q);b&&_.tW(b).parentNode&&q&&!yw.has(q)?e.insertBefore(S,b):e.appendChild(S)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();T&&_.Iq(this.hostElement,"yt-rendererstamper-finished",{container:O})}else BwU(this.is,e,0,
E);else v=new _.kL("Container object not found",e,this.hostElement?this.hostElement.is:""),_.RI(v)},
getStampContainer_:function(v){return this.$&&this.$[v]||_.IB(this.hostElement).querySelector("#"+v)},
getComponentName_:function(v,e){return typeof v==="string"?v:v.matcher?v.matcher.call(this,e):v.component},
createComponent_:function(v,e,d){v=this.getComponentName_(v,e);try{var E=O_.has(v)||_.ik.has(v);if(d&&!E){var T=_.TX(v);try{_.qr(T)}catch(S){d="Failed to clear styles for "+v+".",S.message&&(d+=" Original error: "+S.message),_.xf(new _.kL(d))}}else T=document.createElement(v)}catch(S){return T="YtRendererStamperBehavior failed to create "+v+".",S.message&&(T+=" Original description: "+S.message),S.message="YtRendererStamperBehavior failed to create element",_.BV(S,T),kPn.hasOwnProperty(v)?_.xf(S):
_.RI(S),document.createElement("SPAN")}this.telemetry_.create++;return T},
deferRenderStamperBinding_:function(v,e,d){this.deferredBindingTasks_.push({component:v,typeOrConfig:e,data:d})},
flushRenderStamperComponentBindings_:function(){for(var v=0,e=this.deferredBindingTasks_.length;v<e;v++){var d=this.deferredBindingTasks_[v];if(!d)break;var E=void 0,T=void 0,S=void 0,O=void 0,b=d.component,Y=d.typeOrConfig;d=d.data;var q=(O=b.polymerController)!=null?O:b;O=b.loggingStatus;try{O&&(O.isRendererStamper=!0);if(typeof Y!=="string"){for(S in Y.attributes)Y.attributes[S]===!0?b.setAttribute(S,""):Y.attributes[S]===!1?b.removeAttribute(S):b.setAttribute(S,Y.attributes[S]);for(T in Y.params)q[T]=
Y.params[T],b!==q&&GV(b.localName,T,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(E in Y.properties){var r=Y.properties[E];if(r){var h=M3L(r);q[E]=this.get(h);b!==q&&GV(b.localName,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(E==="on-tap"||E==="on-click"){var K=this.get(h);b.addEventListener("click",K);fs0.set(b,{property:E,listener:{type:"element",eventName:"click",handler:K}})}}else{var k=new _.kL("Undefined property binding",E);_.RI(k)}}}if(Y.classListBinding){var J=M3L(Y.classListBinding),
R=J?this[J]:null;if(R)for(E=0;E<R.length;E++)_.Yv(b,R[E],!0)}q.data=d}finally{O&&(O.isRendererStamper=!1)}if(E=yw.get(b))b.hidden=!1,yw.delete(b),_.RM.cancelJob(E)}this.deferredBindingTasks_.length=0}}];_.aZ(_.l(function(v){function e(){d().seconds&&S(scj({seconds:Number(d().seconds)-Date.now()/1E3}))}
var d=v.targetTimestamp;v=v.className;var E=_.a(_.OE("",void 0,"U1Q8Ae")),T=E.next().value,S=E.next().value;_.JE(function(){e();var O=setInterval(function(){e()},1E3);
_.Jf(function(){clearInterval(O)})});
return _.m("yt-countdown",{class:_.qe("ytCountDownHost",v)},_.m("div",null,T))},"i"),"yt-countdown",{props:{targetTimestamp:_.U1,
className:_.SM}});_.i$=new _.nC("KEY_MANAGER_TOKEN");var CNL={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"};_.Oe=_.l(function(v){var e=_.nI("a",v.ref),d=v.aTagConfig?v.aTagConfig:_.yl(function(){var E,T,S,O,b;var Y=(b=_.lk((S=v.command)==null?void 0:S.call(v)))!=null?b:(O=v.command)==null?void 0:O.call(v);return _.Ag({innertubeCommand:Y,skipOnClick:(E=v.skipOnClick)==null?void 0:E.call(v),defaultTarget:(T=v.target)==null?void 0:T.call(v)})||{}},void 0,"gnrRge");
_.o_(function(){e.value._data=d()._data;e.value.params=d().params},"t2c7fe");
return _.m("a",{el:e,href:function(){return d().href$},
rel:function(){return d().rel$},
class:function(){var E,T;return(T=d().className)!=null?T:(E=v.className)==null?void 0:E.call(v)},
style:function(){var E;if((E=v.style)==null?0:E.call(v))return v.style();var T;return((T=v.disabled)==null?0:T.call(v))?"pointer-events:none":""},
"aria-haspopup":function(){return!!d()["aria-haspopup$"]},
"force-new-state":h8(function(){return d()["force-new-state$"]}),
title:h8(function(){var E,T;return(T=d().title$)!=null?T:(E=v.title)==null?void 0:E.call(v)}),
role:h8(function(){var E;return((E=v.role)==null?void 0:E.call(v))||d().role$}),
target:h8(function(){return d().target$}),
dir:h8(function(){var E;return((E=v.dir)==null?void 0:E.call(v))||d().dir}),
tabindex:function(){var E;return d().tabindex$?Number(d().tabindex$):(E=v.tabIndex)==null?void 0:E.call(v)},
"aria-hidden":function(){var E,T;return(T=d()["aria-hidden$"])!=null?T:(E=v.ariaHidden)==null?void 0:E.call(v)},
"aria-label":function(){var E,T;return(T=d()["aria-label$"])!=null?T:(E=v.ariaLabel)==null?void 0:E.call(v)},
"aria-current":v.ariaCurrent,"aria-disabled":v.disabled,"aria-labelledby":v.ariaLabelledby,"aria-describedby":v.ariaDescribedby,"aria-selected":v.ariaSelected,"tab-identifier":v.tabIdentifier,"on:pointerdown":_.rq(function(E){var T,S;return void((S=(T=d()).onpointerdown)==null?void 0:S.call(T,E))}),
"on:click":_.rq(function(E){var T,S;(S=(T=d()).onclick)==null||S.call(T,E);var O;(O=v.onClick)==null||O.call(v,E)}),
"on:focusin":_.rq(function(E){var T;(T=v.onFocusin)==null||T.call(v,E)}),
"on:focusout":_.rq(function(E){var T;(T=v.onFocusout)==null||T.call(v,E)})},v.children)},"j");var wtO={duration:1E3,easing:"ease",fill:"forwards"};cjL.componentType=_.N4;var g$0={duration:1E3,easing:"ease",fill:"forwards"},ooM=_.l(function(v){var e=_.nI("animated-rolling-character"),d=void 0,E=function(){var T,S;return eX((T=v.character)==null?void 0:T.call(v))||eX((S=v.previousCharacter)==null?void 0:S.call(v))};
_.o_(function(){if(v.marginMultiplier()){var T;(T=d)==null||T.cancel();if(E()){var S;T=((S=v.previousCharacter)==null?0:S.call(v))?Number(v.previousCharacter())+10:v.rollUp()?0:30;var O;if((O=v.shouldAnimate)==null||!O.call(v)){var b,Y;T-=QR$((b=v.character)==null?void 0:b.call(v),(Y=v.previousCharacter)==null?void 0:Y.call(v),v.rollUp(),T)}}else{T=v.rollUp()?0:2;var q;(q=v.shouldAnimate)!=null&&q.call(v)||(S=T,O=v.rollUp()?-1:1,T=S-O)}e.value.style.marginTop="-"+T*v.marginMultiplier()+"px";var r;
if((r=v.shouldAnimate)==null?0:r.call(v)){var h,K;d=u0t(e.value,(h=v.character)==null?void 0:h.call(v),(K=v.previousCharacter)==null?void 0:K.call(v),v.rollUp(),T,E(),v.marginMultiplier())}else{var k;e.value.style.display=((k=v.character)==null?0:k.call(v))?"":"none"}}},"EgLkAe");
return _.m("animated-rolling-character",{el:e,class:"animatedRollingCharacterHost"},_.m(_.y,{cond:E,then:function(){return _.m(LaM,null)},
else:function(){return _.m(Vk6,{character:v.character})}}))},"k");
ooM.idomCompat=!0;var n$$=_.N("web_enable_sink_animated_rolling_character_and_number")?ooM:cjL,JPu=_.N("web_enable_sink_animated_rolling_character_and_number")?ooM:Fn3(cjL),LaM=_.l(function(){for(var v=[],e=1;e<30;e++)v.push(_.m("div",null,e%10));return _.m(_.eI,null,_.m("div",null,"\u00a0"),v,_.m("div",null,"\u00a0"))},"l"),Vk6=_.l(function(v){var e=v.character;
return _.m(_.eI,null,_.m("div",null,"\u00a0"),_.m(_.y,{cond:function(){return!(e==null?0:e())||_.IU(e==null?void 0:e())},
then:function(){return _.m("div",null,"\u00a0")},
else:function(){return _.m("div",null,e)}}),_.m("div",null,"\u00a0"))},"m");Dvs.componentType=_.N4;var GPu=_.l(function(v){var e=void 0,d=void 0,E=function(){var S;return((S=v.fontSizeMultiplier)==null?0:S.call(v))?v.heightPx()*v.fontSizeMultiplier():v.heightPx()},T=_.yl(function(){if(!v.numberText())return[];
var S,O,b=((S=v.forceRollUp)==null?void 0:S.call(v))||!d||!((O=v.numberValue)==null?0:O.call(v))||d<v.numberValue(),Y,q=v.numberText();S=E();O=!((Y=v.shouldAnimate)==null||!Y.call(v));Y=[];var r=0,h=0,K=(e?e.replace(/\D/g,"").length:0)-(q?q.replace(/\D/g,"").length:0),k=e?e.split(/(\d)/).filter(Boolean):[];for(q=q.split(/(\d)/).filter(Boolean);K<0;){var J=q[h];Y.push({character:J,rollUp:b,marginMultiplier:S,shouldAnimate:O});h++;eX(J)&&K++}for(;r<K;)J=k[r],Y.push({previousCharacter:J,rollUp:b,marginMultiplier:S,
shouldAnimate:O}),r++,eX(J)||K++;for(;h<q.length;)K=q[h],J=k[r],eX(K)===eX(J)?(h++,r++):eX(K)?(r++,K=void 0):eX(J)&&(h++,J=void 0),Y.push({character:K,previousCharacter:J,rollUp:b,marginMultiplier:S,shouldAnimate:O});e=v.numberText();var R;d=(R=v.numberValue)==null?void 0:R.call(v);return Y},void 0,"kWiBv");
return _.m("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return v.numberText()?["height: "+E()+"px;","line-height: "+v.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.m(_.jI,{each:T,keyBy:"INDEX"},function(S){return _.m(JPu,{character:function(){return S().character},
previousCharacter:function(){return S().previousCharacter},
marginMultiplier:function(){return S().marginMultiplier},
rollUp:function(){return S().rollUp},
shouldAnimate:function(){return S().shouldAnimate}})}))},"n");
GPu.idomCompat=!0;_.Mku=_.N("web_enable_sink_animated_rolling_character_and_number")?GPu:Dvs;_.tk0=_.N("web_enable_sink_animated_rolling_character_and_number")?GPu:Fn3(Dvs);var fWu=function(v,e){this.fillAnimation=new Animation(UvS(v),document.timeline);this.strokeAnimation=new Animation(ptS(e),document.timeline)};
fWu.prototype.play=function(){var v,e;(e=(v=this.fillAnimation).play)==null||e.call(v);var d,E;(E=(d=this.strokeAnimation).play)==null||E.call(d)};
fWu.prototype.cancel=function(){var v,e;(e=(v=this.fillAnimation).cancel)==null||e.call(v);var d,E;(E=(d=this.strokeAnimation).cancel)==null||E.call(d)};_.Ie=_.l(function(v){var e=v.model;var d=v.pointerDownEvent;var E=v.pointerUpEvent;var T=v.pointerLeaveEvent;v=_.nI("div");var S=_.jM({"border-radius":function(){return e().borderRadius}}),O=_.nI("div"),b=_.nI("div"),Y=_.a(_.KM(function(){return(E==null?0:E())||(T==null?0:T())?!1:!(d==null||!d())||!1})),q=Y.next().value,r=Y.next().value,h=void 0,K=function(){!h&&b.value&&O.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(h=new fWu(b.value,O.value));
var Z;(Z=h)==null||Z.play()},k=function(){var Z;
(Z=h)==null||Z.cancel()},J=function(){var Z;
(Z=h)==null||Z.cancel()};
_.o_(function(){(E==null?0:E())&&K()},"YjVIpd");
_.o_(function(){(d==null?0:d())&&k()},"UrXvqb");
_.o_(function(){(T==null?0:T())&&J()},"QK6L8b");
Y=_.rq(function(){K();r(!1)});
var R=_.rq(function(){k();r(!0)}),B=_.rq(function(){J();
r(!1)});
_.Jf(function(){if(h){var Z;(Z=h)==null||Z.cancel();h=void 0}});
var X={};q=_.qe("yt-spec-touch-feedback-shape",function(){return vR0(e().color)},(X["yt-spec-touch-feedback-shape--focused"]=function(){return!!e().focused&&!e().disabled},X["yt-spec-touch-feedback-shape--circular"]=function(){return!!e().circular},X["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!e().isExtended},X["yt-spec-touch-feedback-shape--down"]=q,X["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!e().triggerEvents},X));
return _.m("yt-touch-feedback-shape",{style:_.jM({"border-radius":"inherit"})},_.m("div",{el:v,class:q,style:_.jM({"margin-top":function(){return e().customTopExtend?"-"+e().customTopExtend+"px":void 0}}),
"on:mousedown":R,"on:mouseup":Y,"on:pointerleave":B,"on:touchstart":R,"on:touchend":Y,"aria-hidden":!0},_.m("div",{class:"yt-spec-touch-feedback-shape__stroke",style:S,el:O}),_.m("div",{class:"yt-spec-touch-feedback-shape__fill",style:S,el:b})))},"o");
_.Ie.idomCompat=!0;var R7A={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 b$=_.Kt();b$=b$.toLowerCase();if(_.bL(b$,"android")){var PfI=b$.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);PfI&&parseFloat(PfI[1])<100||b$.match("("+Object.keys(R7A).join("|")+")")};var xHu=_.l(function(v){return _.m(_.y,{cond:v.aTagConfig,then:function(e){return _.m(_.Oe,{aTagConfig:e,disabled:v.disabled,className:v.className,style:v.style,title:v.title,ariaLabel:v.ariaLabel,ariaCurrent:function(){var d,E;return((d=v.toggleable)==null?void 0:d.call(v))&&((E=v.toggled)==null?void 0:E.call(v))},
ref:v.ref},v.children)},
else:function(){return _.m("button",{el:_.dq(v.ref),"on:click":_.rq(function(e){var d;return(d=v.onClick)==null?void 0:d.call(v,e)}),
class:v.className,title:v.title,style:v.style,disabled:v.disabled,"aria-pressed":function(){var e,d;return((e=v.toggleable)==null?0:e.call(v))?!((d=v.toggled)==null||!d.call(v)):void 0},
"aria-label":v.ariaLabel,"aria-disabled":v.visiblyDisabled,"aria-hidden":v.ariaHidden,tabindex:v.tabIndex},v.children)}})},"p"),Cf0=_.l(function(v){var e=v.data;
var d=v.hasIconLeading;var E=v.hasIconLeadingTrailing;var T=v.hasIconTrailing;var S=v.iconButton;var O=v.iconClassName;var b=v.secondaryIconClassName;var Y=v.icon;var q=v.secondaryIcon;var r=v.textContentClassName;return _.m(YM,{className:"",style:"display: inherit; justify-content: center"},_.m(_.y,{debugInstance:"V4z1Uc",cond:function(){return Y&&(d()||E()||(S==null?void 0:S()))},
then:function(){return _.m(YM,null,_.m("div",{class:O,"aria-hidden":"true"},Y==null?void 0:Y()))}}),_.m(_.y,{debugInstance:"ok3btb",
cond:function(){return(e().buttonText||e().animatedTextProps||e().formattedButtonText)&&!(S==null?0:S())},
then:function(){return _.m(YM,null,_.m(BAA,{className:r,iconPosition:function(){return e().iconPosition},
text:function(){return e().buttonText},
oneOffCustomTextWrap:function(){return e().oneOffCustomTextWrap},
formattedButtonText:function(){return e().formattedButtonText},
animatedTextProps:function(){return e().animatedTextProps}}))}}),_.m(_.y,{debugInstance:"DO5Rz",
cond:T,then:function(){return _.m(YM,null,_.m("div",{class:O},Y==null?void 0:Y()))}}),_.m(_.y,{debugInstance:"bnojSc",
cond:E,then:function(){return _.m(YM,null,_.m("div",{class:b},q==null?void 0:q()))}}),_.m(_.y,{debugInstance:"HN3kad",
cond:function(){return!e().disabled&&!0},
then:function(){return _.m(_.Ie,{model:function(){var h=e();return{color:h.style==="overlay-dark"?4:h.style==="overlay"?h.type==="filled"?4:3:h.type==="filled"||h.style==="call-to-action-inverse"||h.style==="mono-inverse"?2:1}}})}}))},"q"),BAA=_.l(function(v){var e=function(){var d,E;
return((d=v.iconPosition)==null?void 0:d.call(v))==="icon-with-label"||((E=v.oneOffCustomTextWrap)==null?void 0:E.call(v))};
return _.m("div",{class:v.className,"aria-hidden":function(){var d,E,T;return((d=v.ariaHidden)==null?void 0:d.call(v))&&(!((E=v.animatedTextProps)==null||!E.call(v))||!((T=v.formattedButtonText)==null||!T.call(v)))}},_.m(_.kc,null,_.m(_.sW,{when:function(){var d;
return(d=v.animatedTextProps)==null?void 0:d.call(v)}},function(){return _.m(_.tk0,{numberText:function(){return v.animatedTextProps().numberText},
numberValue:function(){return v.animatedTextProps().numberValue},
heightPx:function(){return v.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return v.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return v.animatedTextProps().shouldAnimate},
forceRollUp:function(){return v.animatedTextProps().forceRollUp}})}),_.m(_.sW,{when:function(){var d;
return(d=v.formattedButtonText)==null?void 0:d.call(v)}},function(){return _.m(_.Dh,{text:function(){return Object.assign({},v.formattedButtonText(),{lineBreakMode:e()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":v.formattedButtonText().lineBreakMode,
alignment:e()?"TEXT_ALIGNMENT_CENTER":v.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!e()}})}),_.m(_.sW,{when:function(){var d,E;
return((d=v.iconPosition)==null?void 0:d.call(v))==="icon-with-label"&&((E=v.text)==null?void 0:E.call(v))}},function(){return _.m(_.Dh,{text:function(){return{content:v.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.m(_.N9,null,function(){return v.text})))},"r"),XCg=_.l(function(v){return _.m(_.y,{debugInstance:"kM7Sgc",
cond:v.hasLabel,then:function(){var e;return _.m("label",{class:v.className},v.children,(e=v.textContent)==null?void 0:e.call(v))},
else:function(){return v.children}})},"s"),YM=_.l(function(v){return v.children},"t");var z7A=_.l(function(v){var e=_.dq(),d=_.a(_.OE(void 0,void 0,"Z7xOte")),E=d.next().value,T=d.next().value;d=_.a(_.OE(void 0,void 0,"ppqp2e"));var S=d.next().value,O=d.next().value;d=_.a(_.OE(0,void 0,"bD1Mhe"));var b=d.next().value,Y=d.next().value;d=_.rq(function(){switch(b()){case 1:Y(2);break;case 3:var r,h;(h=(r=e.value).hidePopover)==null||h.call(r);Y(0);T(void 0);O(void 0)}});
_.o_(function(){if(v.show()){var r;T((r=v.children)==null?void 0:r.call(v));var h;O((h=v.location)==null?void 0:h.call(v));switch(b()){case 0:var K,k;(k=(K=e.value).showPopover)==null||k.call(K);Y(1);break;case 3:Y(1);var J,R;(R=(J=e.value).hidePopover)==null||R.call(J);var B,X;(X=(B=e.value).showPopover)==null||X.call(B)}}else switch(b()){case 2:Y(3);break;case 1:var Z,U;(U=(Z=e.value).hidePopover)==null||U.call(Z);T(void 0);O(void 0);Y(0)}},"vFJRcd");
_.Gr(function(){});
var q={};return _.m("yt-popover",{popover:"manual",el:e,style:_.jM({left:function(){var r;return(r=S())==null?void 0:r.left},
top:function(){var r;return(r=S())==null?void 0:r.top},
bottom:function(){var r;return(r=S())==null?void 0:r.bottom},
right:function(){var r;return(r=S())==null?void 0:r.right}}),
class:_.qe("ytPopoverComponentHost",v.classNames,(q.ytPopoverComponentHostClosing=function(){return b()===3},q.ytPopoverComponentHostSeeThrough=function(){var r;
return((r=v.seeThrough)==null?void 0:r.call(v))===!0},q)),
"on:animationend":d},E)},"u");var lW7={left:"0px",right:"auto",top:"0px",bottom:"auto"},HL6=function(){var v=this;this.registerTooltipElement=function(d){var E;v.tooltipElement=(E=d.querySelector("yt-popover"))!=null?E:void 0};
var e=_.a(_.OE(void 0,void 0,"z4iHWd"));this.state=e.next().value;this.setState=e.next().value;e=_.a(_.OE(void 0,void 0,"uKDcaf"));this.schedulerJobID=e.next().value;this.setSchedulerJobID=e.next().value},OZj=function(v,e){var d=kj,E=_.RM.addJob(function(){var T=API(d,v,e);
d.setState({text:e.text,location:T,anchor:v,offset:e.offset})},4,e.delay);
d.setSchedulerJobID(E)},IO0=function(){var v=kj,e=v.schedulerJobID();
e&&(_.RM.cancelJob(e),v.setSchedulerJobID(void 0));v.setState(void 0)};
HL6.prototype.notify=function(v,e){var d;((d=this.state())==null?void 0:d.anchor)===v&&(d=API(this,v,e),this.setState({text:e.text,location:d,anchor:v,offset:e.offset}))};
var API=function(v,e,d){var E=e.getBoundingClientRect();e=window.innerWidth;var T=window.innerHeight,S=d.location,O=d.offset;d=d.text;if(v=v.tooltipElement){var b=getComputedStyle(v);v=b.font;var Y=Ne(b.lineHeight),q=Ne(b.paddingLeft),r=Ne(b.paddingRight),h=Ne(b.paddingTop);b=Ne(b.paddingBottom);var K=document.createElement("canvas").getContext("2d");K.font=v;d={width:K.measureText(d).width+q+r,height:Y+h+b}}else d=void 0;v=d;if(!v)return lW7;d=v.width;v=v.height;q=O+v;h=O+d;Y=E.top>=q;q=T-E.bottom>=
q;r=E.left>=h;h=e-E.right>=h;b=S;switch(S){case "top":!Y&&q&&(b="bottom");break;case "bottom":!q&&Y&&(b="top");break;case "left":!r&&h&&(b="right");break;case "right":!h&&r&&(b="left")}switch(b){case "top":S=E.left+E.width/2-d/2;E=E.top-v-O;break;case "bottom":S=E.left+E.width/2-d/2;E=E.bottom+O;break;case "left":S=E.left-d-O;E=E.top+E.height/2-v/2;break;case "right":S=E.right+O;E=E.top+E.height/2-v/2;break;default:S=E.left+E.width/2-d/2,E=E.bottom+O}O=Object.assign({},lW7);S+d>e?(O.right="0px",O.left=
"auto"):(O.left=Math.round(Math.max(0,S)+window.scrollX)+"px",O.right="auto");E+v>T?(O.bottom="0px",O.top="auto"):(O.top=Math.round(Math.max(0,E)+window.scrollY)+"px",O.bottom="auto");return O};var kj;kj=new HL6;_.ZLn=_.l(function(){var v=_.yl(function(){var d;return(d=kj.state())==null?void 0:d.text},void 0,"KoaMVc"),e=_.yl(function(){var d;
return(d=kj.state())==null?void 0:d.location},void 0,"R6s5tc");
return _.m("yt-tooltip",{class:"ytTooltipContainerHost",el:_.dq(kj.registerTooltipElement),"aria-hidden":"true"},_.m(z7A,{classNames:"ytTooltipContainerContent",location:e,show:function(){return!!v()},
seeThrough:!0},v))},"v");var YR0=Ul("stamper-context");_.mO=_.l(function(v){var e=v.data;var d=v.icon;var E=v.iconName;var T=v.animateIcon;var S=v.secondaryIcon;var O=v.secondaryIconName;var b=v.focusedOverride;var Y=v.clientOnlyWizTooltipsEnabled;YtH();var q=eOH(e),r=q.size,h=q.style;v=q.disabled;var K=q.onTap,k=q.alignByText,J=q.aTagConfig,R=q.customColors,B=q.segmentedPosition,X=q.toggled,Z=q.toggleable,U=q.accessibilityLabel,F=q.onToggle,g=q.iconPosition,Q=q.oneOffCustomTextWrap,v3=q.disableTextEllipsis,q7=q.disableBackdropFilter,m0=q.tooltipText,
$S=q.ariaHidden,kS=q.tabIndex,N7=q.buttonText,As=q.formattedButtonText,Ct=q.animatedTextProps,SA=St$(e,d,S,E,O,b,T),xI=SA.type;d=SA.shouldFocus;E=SA.hasIconLeading;T=SA.hasIconTrailing;var mg=SA.hasIconLeadingTrailing,pt=SA.hasIconOnly;S=SA.hasIconOnly40;var he=SA.hasIconWithLabel;O=SA.iconButton;var yB=SA.visiblyDisabled;b=SA.overrideSmallSizeIcon;q=SA.iconToRender;SA=SA.secondaryIconToRender;var te=_.a(bZ0(m0)).next().value,oC={},n7={};return _.m(XCg,{className:_.qe("yt-spec-button-shape-with-label",
(oC["yt-spec-button-shape-with-label--is-overlay"]=function(){return h()==="overlay"||h()==="overlay-dark"},oC)),
hasLabel:he,textContent:function(){return _.m(BAA,{text:N7,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:Q,iconPosition:g,formattedButtonText:As,animatedTextProps:Ct})}},_.m(xHu,{aTagConfig:J,
className:_.qe("yt-spec-button-shape-next",function(){return Wet(xI())},function(){return yB()?void 0:aOt(h())},function(){return iZL(r())},(n7["yt-spec-button-shape-next--disabled"]=yB,n7["yt-spec-button-shape-next--focused"]=d,n7["yt-spec-button-shape-next--icon-trailing"]=T,n7["yt-spec-button-shape-next--icon-leading"]=E,n7["yt-spec-button-shape-next--icon-leading-trailing"]=mg,n7["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return mg()&&!(N7()||As())},n7["yt-spec-button-shape-next--icon-button"]=
function(){return pt()||he()},n7["yt-spec-button-shape-next--icon-only-default"]=S,n7["yt-spec-button-shape-next--align-by-text"]=k,n7["yt-spec-button-shape-next--segmented-start"]=function(){return B()==="start"},n7["yt-spec-button-shape-next--segmented-end"]=function(){return B()==="end"},n7["yt-spec-button-shape-next--override-small-size-icon"]=b,n7["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=Q,n7["yt-spec-button-shape-next--disable-text-ellipsis"]=v3,n7["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!q7()&&!_.N("web_disable_backdrop_filter")},n7)),
style:function(){var SW=R();if(SW){var vc=SW.color;var jA=SW.backgroundColor;SW=SW.borderColor;var Ys="";vc&&(Ys+="color: "+vc+";");jA&&(Ys+="background-color: "+jA+";");SW&&(Ys+="border-color: "+SW+";");vc={style:Ys}}else vc={};return vc.style},
onClick:function(SW){K==null||K(SW);Z()&&(F==null||F(SW))},
disabled:v,ariaLabel:U,toggleable:Z,toggled:X,title:function(){return(Y==null?0:Y())||!m0()?"":m0()},
visiblyDisabled:yB,ariaHidden:$S,tabIndex:kS,ref:function(SW){(Y==null?0:Y())&&te(SW)}},_.m(Cf0,{data:e,
hasIconLeading:E,hasIconLeadingTrailing:mg,hasIconTrailing:T,iconButton:O,icon:q,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:SA})))},"w");
_.mO.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.yi=_.l(function(v){var e=v.data;var d=v.className;var E=v.style;var T=v.useOutlinedIcon;var S=v.buttonOverrides;var O=v.animatedTextProps;var b=v.onClick;var Y=v.target;var q=_.nI("button-view-model",function(Z){Z.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var U=e().targetId;U&&_.Lb6(_.oc(),U,Z);return function(){Nzn(_.oc(),Z)}}),r=function(){return e().iconName},h,K=(h=_.dk().resolve(_.eG(_.n1)))==null?void 0:h(),k=function(){var Z=e();
var U=S==null?void 0:S(),F=O==null?void 0:O(),g=Y==null?void 0:Y();if(Z){var Q=$I$(Z.type);var v3=!!Z.title||!!Z.titleFormatted;var q7=!(!Z.iconName&&!Z.iconImage);v3=q7&&!v3?"icon-only":q7?Z.iconTrailing||Z.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;v3==="icon-only-40"&&(Q="text");var m0,$S=(m0=U==null?void 0:U.disabled)!=null?m0:Z.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||Z.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";F=F&&F.numberText&&!isNaN(Number(F.numberValue))?
F:void 0;m0=Object;q7=m0.assign;var kS=Z.title,N7=Z.titleFormatted,As=Z.accessibilityText,Ct=KeU(Z.style),SA=jf0(Z.state),xI=sfS(Z.buttonSize);g=hOt(Z,q,$S,b,g);$S=$S&&!Z.onDisabledTap;var mg=qtO(Z,q),pt=Z.customFontColor,he=Z.customBackgroundColor;var yB=Z.customBorderColor;var te=Z.customDarkThemeFontColor,oC=Z.customDarkThemeBackgroundColor,n7=Z.customDarkThemeBorderColor;pt=K&&te?te:pt;he=K&&oC?oC:he;yB=K&&n7?n7:yB;yB={color:pt?_.w1(pt):void 0,backgroundColor:he?_.w1(he):void 0,borderColor:yB?
_.w1(yB):void 0};Z=q7.call(m0,{},{buttonText:kS,formattedButtonText:N7,animatedTextProps:F,accessibilityLabel:As,style:Ct,type:Q,state:SA,size:xI,iconPosition:v3,onTap:g,disabled:$S,aTagConfig:mg,customColors:yB,tooltipText:Z.tooltip},U)}else Z={style:"mono",type:"text",state:"active",size:"M"};Z.focused=B();return Z},J=function(){return ER0(k(),!!e().iconName)};
v=_.a(_.OE(!1,void 0,"WVXhrd"));h=v.next().value;var R=v.next().value,B=h;v=_.rq(function(){var Z=_.dk().resolve(_.eG(_.i$));Z&&R(Z.isKeyBoardInUse());return!1});
h=_.rq(function(){R(!1);return!1});
_.o_(function(){var Z,U=_.L(e==null?void 0:(Z=e())==null?void 0:Z.onVisible,_.zj);U&&_.Hz(U,{disableClickTracking:!0})},"w0lGYc");
var X=_.N("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.m("button-view-model",{el:q,class:_.qe("ytSpecButtonViewModelHost",d),"on:focusin":v,"on:focusout":h},_.m(_.y,{cond:function(){var Z;return(e==null?0:(Z=e())==null?0:Z.iconImage)?{sources:[e().iconImage]}:void 0},
then:function(Z){return _.m(_.mO,{data:k,icon:function(){return _.m(_.va,{data:Z,alt:"",targetWidth:J,targetHeight:J,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:X})},
else:function(){return _.m(_.mO,{data:k,icon:function(){return _.m(_.sG,{icon:r,active:function(){return(T==null?0:T())?!1:k().toggled},
animateIcon:function(){var Z;return!!(E==null?0:(Z=E())==null?0:Z.animateIcon)},
size:J})},
clientOnlyWizTooltipsEnabled:X})}}))},"x");
_.yi.idomCompat={callbacks:{onClick:!0}};_.aZ(_.l(function(v){return _.m("yt-button-view-model",{id:v.id,class:_.qe(v.scopingClassName,v.classes),icon:function(){var e;return(e=v.icon)==null?void 0:e.call(v)},
"dialog-dismiss":function(){var e;return((e=v.dialogDismiss)==null?0:e.call(v))?"":void 0}},_.m(_.yi,{data:function(){var e;
return(e=v.data)==null?void 0:e.call(v)},
className:function(){var e;return(e=v.className)==null?void 0:e.call(v)},
style:function(){var e;return(e=v.style)==null?void 0:e.call(v)},
useOutlinedIcon:function(){var e;return(e=v.useOutlinedIcon)==null?void 0:e.call(v)},
buttonOverrides:function(){var e;return(e=v.buttonOverrides)==null?void 0:e.call(v)},
animatedTextProps:function(){var e;return(e=v.animatedTextProps)==null?void 0:e.call(v)},
onClick:function(e){var d;return(d=v.onClick)==null?void 0:d.call(v,e)}}))},"y"),"yt-button-view-model",{props:{data:_.U1,
className:_.U1,style:_.U1,useOutlinedIcon:_.U1,buttonOverrides:_.U1,animatedTextProps:_.U1,onClick:_.SM,scopingClassName:_.U1,id:_.U1,icon:_.U1,dialogDismiss:_.U1,classes:_.U1,target:_.SM}});_.aZ(_.l(function(v){var e=v.data;var d=v.id;var E=v.className;var T=v.iconName;var S=v.animateIcon;var O=v.secondaryIconName;v=_.a(_.OE(!1,void 0,"TtJl8"));var b=v.next().value,Y=v.next().value,q=function(){var h=_.dk().resolve(_.eG(_.i$));h&&Y(h.isKeyBoardInUse())},r=function(){Y(!1)};
v=_.nI("yt-button-shape",function(h){if(_.dk().resolve(_.eG(_.i$)))return h.addEventListener("focusin",q),h.addEventListener("focusout",r),function(){h.removeEventListener("focusin",q);h.removeEventListener("focusout",r)}});
return _.m("yt-button-shape",{el:v,id:d,class:E},_.m(_.y,{cond:e,then:function(){return _.m(_.mO,{data:e,iconName:T,secondaryIconName:O,focusedOverride:b,animateIcon:S})}}))},"z"),"yt-button-shape",{props:{data:_.U1,
id:_.U1,className:_.U1,iconName:_.U1,animateIcon:_.U1,secondaryIconName:_.U1,clientOnlyWizTooltipsEnabled:_.U1,disableUpgrade:_.U1},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var qZ=function(){var v=_.P.apply(this,arguments)||this;v.isGoalActive=!0;return v};
_.V(qZ,_.P);qZ.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
qZ.prototype.progressBarChanged=function(){var v=_.IB(this.hostElement).querySelector("#progress-bar-progress"),e,d,E,T=(E=Number((e=this.creatorGoalState)==null?void 0:e.currentGoalCount)/Number((d=this.creatorGoalState)==null?void 0:d.totalGoalCount)*100)!=null?E:0,S;v.style.width=((S=Math.min(T,100))!=null?S:0)+"%"};
qZ.prototype.goalStateChanged=function(){var v;this.isGoalActive=((v=this.creatorGoalState)==null?void 0:v.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var e;v={"--yt-progress-bar-color":IWt((e=this.creatorGoalState)==null?void 0:e.progressBarColor)};_.qr(this.hostElement,v)};
qZ.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.vP.Object.defineProperties(qZ.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var v;return this.isGoalActive&&!((v=this.creatorGoalState)==null||!v.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.creatorGoalState)==null?0:v.endTimestampMs){var e;v=Number((e=this.creatorGoalState)==null?void 0:e.endTimestampMs)/1E3;return{seconds:String(v)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.creatorGoalState)==null?0:v.themedTargetImage){var e;v=_.L((e=this.creatorGoalState)==null?void 0:e.themedTargetImage,zs0);return this.isAppDarkTheme()?v==null?void 0:v.imageDark:v==null?void 0:v.imageLight}}}});
_.vP.Object.defineProperties(qZ,{template:{configurable:!0,enumerable:!0,get:function(){return rPJ()}}});
qZ.prototype.goalStateChanged=qZ.prototype.goalStateChanged;qZ.prototype.progressBarChanged=qZ.prototype.progressBarChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],qZ.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);
_.c([_.f({selectorArgs:["data.creatorGoalEntityKey"],selector:function(v,e){return _.h_(v.entities,"creatorGoalEntity",e)}}),
_.w("design:type",Object)],qZ.prototype,"creatorGoalState",void 0);_.c([_.f(),_.w("design:type",Object)],qZ.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],qZ.prototype,"isGoalActive",void 0);_.c([_.t("creatorGoalState","isGoalActive"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qZ.prototype,"shouldShowCountdown",null);_.c([_.t("creatorGoalState"),_.w("design:type",Object),_.w("design:paramtypes",[])],qZ.prototype,"endTimestamp",null);
_.c([_.t("creatorGoalState"),_.w("design:type",Object),_.w("design:paramtypes",[])],qZ.prototype,"targetIconThemedImage",null);_.c([_.$v("creatorGoalState.currentGoalCount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qZ.prototype,"progressBarChanged",null);_.c([_.$v("creatorGoalState.creatorGoalState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qZ.prototype,"goalStateChanged",null);
_.c([_.lh({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],qZ);_.A(qZ,"yt-creator-goal-progress-flow-view-model",function(){return rPJ()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var cP2;var wCe;var rD=function(){return _.P.apply(this,arguments)||this};
_.V(rD,_.P);rD.prototype.attached=function(){var v,e,d;if(this==null?0:(v=this.data)==null?0:(e=v.pdgPurchasedBumperLoggingDirectives)==null?0:(d=e.loggingDirectives)==null?0:d.trackingParams){var E,T,S;LeW(this==null?void 0:(E=this.data)==null?void 0:(T=E.pdgPurchasedBumperLoggingDirectives)==null?void 0:(S=T.loggingDirectives)==null?void 0:S.trackingParams)}};
rD.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],rD.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],rD.prototype,"data",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],rD);
_.A(rD,"yt-live-chat-item-bumper-view-model",function(){if(wCe===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;cP2===void 0&&(cP2=document.createElement("template"));var E=cP2;d.call(e,E.content.cloneNode(!0),v.content.firstChild);wCe=v}v=wCe;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var Fau;var Qz0;_.Dy=function(v,e){this.data=v;this.actions=e;this.data=v;this.actions=e};
_.Zy=function(){};_.h5={};_.h5.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(v,e){Vz0(this.hostElement,v,e)},
getNavigationEndpointPopupAction:function(v){return oRt(v,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(v,e){J3s(this.hostElement,v,e,this.openPopupConfig)}};var XL0=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.KR={};
_.KR.YtEndpointBehavior=[_.h5.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Bb("openPopupConfig");(this.useClickHandler=_.zr("useClickHandler",!1))?this.hostElement.addEventListener("click",ri(this,this.onEndpointClick_)):(xk(this.hostElement,"tap",ri(this,this.onEndpointTap_)),xk(this.hostElement,"touchend",ri(this,this.onEndpointTouchEnd_)));xk(this.hostElement,"touchstart",ri(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
ri(this,this.onEndpointTapStart_))},
onEndpointClick_:function(v){tzt(this.hostElement,v,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(v){var e=this.hostElement,d=this.openPopupConfig,E=this.disableCommandHandlerOverride;E=E===void 0?!1:E;var T=G_H(v);if(T){T.href&&g1(T.href);var S=v.detail;var O=S.sourceEvent;S=S.preventer;O=O.button!==void 0?O.button===0&&!Vw(O):S?!Vw(S):!0;T.data&&O&&Mzs(e,T,v,d,E)}},
onEndpointTouchEnd_:function(v){Vw(v)||G_H(v)&&v.preventDefault()},
onEndpointTapStart_:function(v){B7O(v)}}];_.$M={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(v){for(var e=_.FT.getInstance(),d=_.a(Object.keys(v)),E=d.next();!E.done;E=d.next()){var T=E.value;E=v[T];if(this&&this[E]){var S=e.actionRoutingMap.get(T);S||(S=new Map,e.actionRoutingMap.set(T,S));e.registerActionHandler(this,T,this[E].bind(this),S)}else T=Error("jd"),T.params=E,_.lg(T)}},
unregisterActionMap:function(v){_.gb(_.FT.getInstance(),v,this)}}]};var GI=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_"+(_.N("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.N("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.N("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.N("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:_.N("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:_.N("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var J8;var Me=new Map;var DIt=window.matchMedia("(forced-colors: active)").matches;var goJ;var uiB;var non=new _.nC("LOTTIE_LOADER_TOKEN");_.jZ=_.l(function(v){var e=v.data;var d=v.className;var E=v.animationName;var T=v.animationRef;var S=v.elRefForInterop;var O=_.Dq("lottie-component"),b;_.Jf(function(){var q;return void((q=b)==null?void 0:q.destroy())});
var Y;_.o_(function(){var q=_.M4(E);if(q!==Y){Y=q;var r=Object.assign({},{animationName:q,animationRef:_.M4(T)},_.M4(e));try{_.dk().resolve(non)().then(function(k){var J;(J=b)==null||J.destroy();var R,B;J=(B=S==null?void 0:(R=S())==null?void 0:R.value)!=null?B:O.value;R=r.animationRef;B=r.listeners;k=k.loadAnimation(Object.assign({},{container:J},r.animationConfig));R&&(R.lottieEl=k);if(B)for(J=_.a(Object.entries(B)),R=J.next();!R.done;R=J.next())B=_.a(R.value),R=B.next().value,(B=B.next().value)&&
k.addEventListener(R,B);b=k})}catch(k){q=k;
var h="LottieComponent error.";q.message&&(h+=" Original description: "+q.message);_.BV(q,h);_.xf(q);var K;((K=r.listeners)==null?0:K.error)&&r.listeners.error(q)}}},"lbhvPc");
return _.m(l_3,{cond:function(){return!(S==null?0:S())},
then:function(){return _.m("lottie-component",{class:_.qe("ytLottieComponentHost",d),el:O})}})},"A");_.aZ(_.l(function(v){return _.m("ytd-lottie-player",{id:v.id,hidden:v.hidden,class:v.className,"aria-label":v.ariaLabel,style:"display: block;"},_.m(_.jZ,{data:v.data,animationName:function(){var e;return((e=v.data().animationConfig)==null?void 0:e.name)||""},
animationRef:function(){return v.data().animationRef}}))},"B"),"ytd-lottie-player",{props:{data:_.U1,
id:_.U1,hidden:_.U1,className:_.U1,ariaLabel:_.U1}});var se=function(){var v=_.P.apply(this,arguments)||this;v.animationRef={};v.delhiIconsEnabled=_.N("enable_web_delhi_icons");return v};
_.V(se,_.P);_.W=se.prototype;
_.W.handlePropertyChange=function(){var v=this.animatedIcon,e=this.active,d=this.isDarkTheme;if(v){var E=this.previousActive!==e;this.previousActive=e;this.animationRef.lottieEl?E&&this.toggleAnimation(e,v.totalFrames):e?this.initializeAnimationAsToggled(v.lottiePlayerProps,v.totalFrames):this.initializeAnimationAsUntoggled(v.lottiePlayerProps);v.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=v.type;this.lottiePlayerProps=this.computeLottiePlayerProps(v,d)}};
_.W.computeLottiePlayerProps=function(v,e){var d=this.deepCloneLottiePlayerProps(v);e?(e=v.nameDarkTheme,v=v.pathDarkTheme):(e=v.name,v=v.path);d.animationConfig.name=e;(e=Me.get(v))?d.animationConfig.animationData=e:d.animationConfig.path=v;return d};
_.W.initializeAnimationAsToggled=function(v,e){v.animationConfig.initialSegment=[e-1,e]};
_.W.initializeAnimationAsUntoggled=function(v){v.animationConfig.initialSegment=void 0};
_.W.toggleAnimation=function(v,e){if(v){var d;(d=this.animationRef.lottieEl)==null||d.playSegments([0,e],!0)}else{var E;(E=this.animationRef.lottieEl)==null||E.playSegments([0,1],!0)}};
_.W.deepCloneLottiePlayerProps=function(v){var e=Object.assign({},v.lottiePlayerProps.animationConfig);v=Object.assign({},v.lottiePlayerProps);v.animationConfig=e;return v};
se.prototype.handlePropertyChange=se.prototype.handlePropertyChange;_.c([_.f(),_.w("design:type",Object)],se.prototype,"animatedIcon",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],se.prototype,"active",void 0);_.c([_.f(),_.w("design:type",Boolean)],se.prototype,"isDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],se.prototype,"animatedIconType",void 0);_.c([_.f(),_.w("design:type",Boolean)],se.prototype,"previousActive",void 0);
_.c([_.f(),_.w("design:type",Object)],se.prototype,"lottiePlayerProps",void 0);_.c([_.f(),_.w("design:type",Object)],se.prototype,"animationRef",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],se.prototype,"delhiIconsEnabled",void 0);_.c([_.$v("animatedIcon","active","isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],se.prototype,"handlePropertyChange",null);_.c([_.lh({is:"yt-animated-icon",disableElementRegistration:!0})],se);
_.A(se,"yt-animated-icon",function(){if(uiB===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;goJ===void 0&&(goJ=document.createElement("template"));var E=goJ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);uiB=v}v=uiB;return v},{mode:2});var DH7;var UHu;var EPU=_.l(function(v){var e=_.Dq("span"),d=tE(function(){return{value:null}});
_.Jf(function(){var T;(T=d.value)==null||T.cancel()});
var E=_.yl(v.data,{equals:function(T,S){return T.iconName===S.iconName&&T.iconStyle===S.iconStyle&&T.iconSize===S.iconSize&&T.iconSetName===S.iconSetName&&T.iconSelected===S.iconSelected}},"AoOoyf");
_.o_(function(){var T,S=(T=v.options)==null?void 0:T.call(v);doO(e,d,E(),S)},"Tie9e");
return _.m("span",{class:"yt-icon-shape",el:e})},"C");
EPU.idomCompat=!0;var TaL=["youtube_fill","youtube_outline"];var pC2=new _.kl({type:"iconset",value:void 0}),NZ=function(){var v=_.P.apply(this,arguments)||this;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.iconName="";v.iconsetName="yt-icons";v.iconset=null;v.missingIconSet=!1;v.iconType=null;v.iconShapeDataSignal=_.OE(void 0,void 0,"b0v7Ac");v.renderingOptionsSignal=_.OE({iconWidth:"100%",iconHeight:"100%",iconFilter:v.iconFilter},void 0,"Ls6l3e");v.wizHasRendered=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(NZ,_.P);NZ.prototype.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v)};
NZ.prototype.handlePropertyChange=function(){var v=this,e,d,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X;return _.I(function(Z){switch(Z.nextAddress){case 1:if(e=!v.icon&&!v.iconName||!v.isAttached)return Z.return();d=v;E=d.icon;T=d.size;S=d.defaultToFilled;O=d.active;b=d.targetContainer;v.toggleContainerClass(b);_.N("kevlar_use_wil_icons")&&E&&(Y=CDH(E),v.iconType=Y.length?Y[1]:null);if(E){Z.jumpTo(2);break}v.iconsetName="";v.iconName="";return Z.yield(v.renderIcon(b,E),3);case 3:return Z.return();case 2:q=v4M(E);
r=CDH(q);r.length&&(v.iconsetName=r[0],v.iconName=r[1]);if(!_.N("kevlar_use_wil_icons")){Z.jumpTo(4);break}h=NZ;K=eGM;k=v.iconType;J=v.active;R=v.defaultToFilled;B=v.size;X=v.iconsetName;return Z.yield(dBJ(),6);case 6:return Z.yield(K.call(h,k,J,R,B,X,Z.yieldResult),5);case 5:v.iconShapeData=Z.yieldResult;case 4:if(v.shouldRenderIconShape(b)){Z.jumpTo(7);break}return Z.yield(v.determineIconSet(q,O,S,T,b),7);case 7:return Z.yield(v.renderIcon(b,E),0)}})};
NZ.prototype.toggleContainerClass=function(v){v?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var v4M=function(v){return!_.N("default_to_innertube_icon")||v.indexOf(":")>0?v:_.qC(v)};
_.W=NZ.prototype;_.W.determineIconSet=function(v,e,d,E){var T=this;return _.I(function(S){return S.nextAddress==1?_.N("kevlar_system_icons")||_.Bb("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Bb("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?S.yield(T.switchToYtSysIconset(v,e,d,E),3):S.jumpTo(2):S.nextAddress!=2?S.return():S.yield(T.useYtSysIconsetForMissingIcons(v,e,d,E),0)})};
_.W.switchToYtSysIconset=function(v,e,d,E){var T=this,S,O,b,Y,q,r,h;return _.I(function(K){switch(K.nextAddress){case 1:if(!v||T.iconsetName!=="yt-icons"&&T.iconsetName!=="yt-sys-icons"){K.jumpTo(0);break}S=CDH(v);O=S[1];O=_.QJ0(O);_.N("enable_polymer_icons_replace_underscores_dash")&&O.includes("_filled")&&(O=O.replace(/_filled/g,"-filled"));return K.yield(yK(O,!0),3);case 3:return b=K.yieldResult,K.yield(yK(O,!1),4);case 4:if((Y=K.yieldResult)||e&&b)T.iconsetName="yt-sys-icons";T.iconName=T.getIconName(O,
e,d,Y,b);if(E===24){K.jumpTo(0);break}q="yt-sys-icons"+E+":"+T.iconName;return K.yield(yK(q,!1,!0),6);case 6:return r=K.yieldResult,K.yield(yK(q,!0,!0),7);case 7:h=K.yieldResult;T.iconName=T.getIconName(O,e,d,r,h);if(!e&&r||e&&h)T.iconsetName="yt-sys-icons"+E;_.s9(K)}})};
_.W.getIconName=function(v,e,d,E,T){v.includes("-filled")&&(v=v.replace("-filled",""));return T&&(e||d)?v+"-filled":v};
_.W.useYtSysIconsetForMissingIcons=function(v,e,d,E){var T=this,S,O;return _.I(function(b){if(b.nextAddress==1)return T.iconsetName!=="yt-icons"?b.jumpTo(0):b.yield(yK(T.iconName,!1,!1,!0),3);if(b.nextAddress!=4)return S=b.yieldResult,b.yield(yK(T.iconName,!1),4);O=b.yieldResult;if(S||!O)return b.jumpTo(0);T.iconsetName="yt-sys-icons";return b.yield(T.switchToYtSysIconset(v,e,d,E),0)})};
_.W.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var dBJ=function(){return _.I(function(v){try{return v.return(_.dk().resolve(_.rC))}catch(e){return v.return(new Promise(function(d){_.HH().parkOrScheduleJob(function(){d(_.dk().resolve(_.rC))},2,"ci")}))}})},eGM=function(v,e,d,E,T,S){E=E===void 0?24:E;
if(v){v=v.toLowerCase();var O=v.endsWith("_filled")||v.endsWith("-filled");e={iconName:v,iconStyle:(e===void 0?0:e)||(d===void 0?0:d)||O?"youtube_fill":"youtube_outline",iconSize:E,iconSetName:T===void 0?"yt-icons":T};d=!!S.resolveIcon(e);d||(e.iconSize=void 0,d=!!S.resolveIcon(e));!d&&O&&(e.iconName=v.substring(0,v.length-7),e.iconSize=E,d=!!S.resolveIcon(e),d||(e.iconSize=void 0,d=!!S.resolveIcon(e)));d||(e.iconStyle=void 0,d=!!S.resolveIcon(e));d||_.xf(new _.kL("Icon not supported",{iconName:e.iconName,
iconStyle:e.iconStyle,iconSize:e.iconSize,iconType:v}));return d?e:void 0}};
_.W=NZ.prototype;_.W.shouldRenderIconShape=function(v){if(!_.N("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;v=this.getContainer(v);return!UI3(v,this.icon)};
_.W.renderIcon=function(v,e){var d=this,E,T,S,O,b,Y,q,r;return _.I(function(h){switch(h.nextAddress){case 1:if(e&&d.icon!==e)return h.return();E=d.getContainer(v);T=UI3(E,d.icon);if(d.shouldRenderIconShape(v)&&d.iconType)return d.applyIconShape(T,E),h.return();d.removeIconShape();if(!E)return h.return();d.iconName===""&&d.iconset&&E&&(d.removeStaticIcon(d.iconset,E),T&&d.removeAnimatedIcon(E));if(d.iconName===""&&d.iconset||!d.iconsetName||!pC2)return h.return();d.iconset=pC2.byKey(d.iconsetName);
if(!d.iconset)return d.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.hG(d,d.onIconsetAdded)),h.return();d.missingIconSet&&(d.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.hG(d,d.onIconsetAdded)));O=(S=T||d.isAnimatedIcon?uw$(d.icon):void 0)&&!S.lazyLoad;Y=S&&((b=S)==null?void 0:b.lazyLoad)&&(S.lottiePlayerProps.animationConfig.animationData?!0:Me.get(d.isDarkTheme?S.pathDarkTheme:S.path)?!0:!1);if(O||Y)return d.applyAnimatedIcon(E,S,d.iconset),h.return();if(Y||
(q=S)==null||!q.lazyLoad){h.jumpTo(2);break}r=vPj(S,d.isDarkTheme);d.applyStaticIcon(d.iconset,E,d.iconName,v,T);return h.yield(r,3);case 3:return h.yield(d.renderIcon(d.targetContainer,d.icon),4);case 4:return h.return();case 2:d.applyStaticIcon(d.iconset,E,d.iconName,v,T),_.s9(h)}})};
_.W.getContainer=function(v){var e,d=(e=TJO(this.hostElement))==null?void 0:e.host;e=!!d&&!!d.polymerController;if(!v||e)return v?this.getTargetContainer(v,d):this.hostElement};
_.W.getTargetContainer=function(v,e){var d=_.IB(e).querySelector("#"+v);d||(v=new _.kL("yt-icon container missing",e.is,v),_.RI(v));return d};
_.W.applyStaticIcon=function(v,e,d,E,T){T&&this.removeAnimatedIcon(e);this.removeIconShape();T=T&&!!this.iconType&&!!this.iconShapeData&&_.N("kevlar_use_wil_icons");try{T?this.applyIconShape(!1,e):v.applyIcon(e,d)}catch(S){this.handleError(S,E,e)}};
_.W.applyIconShape=function(v,e){this.iconset&&e&&(this.removeStaticIcon(this.iconset,e),v&&this.removeAnimatedIcon(e));v={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var d=_.a(this.iconShapeDataSignal);e=d.next().value;d=d.next().value;var E=_.a(this.renderingOptionsSignal),T=E.next().value;E=E.next().value;d(this.iconShapeData);E(v);if(!this.wizHasRendered)for(this.wizHasRendered=!0,v=_.a(TO0(e,T)).next().value;v.firstChild;)_.IB(this.hostElement).appendChild(v.firstChild)};
_.W.removeIconShape=function(){if(_.N("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.W.removeStaticIcon=function(v,e){v.removeIcon(e)};
_.W.applyAnimatedIcon=function(v,e,d){this.removeStaticIcon(d,v);this.removeIconShape();var E;d=this.animatedIconElement&&((E=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:E.type)===e.type;if(this.animatedIconElement&&d){this.animatedIconElement.polymerController.animatedIcon=e;var T;((T=this.animatedIconElement)==null?void 0:T.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(v),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=e,this.animatedIconElement.polymerController.active=this.active,_.N("delhi_modern_web_player_icons")?(e=nRt(v,this.icon)&&v.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=e?e.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.N("kevlar_use_wil_icons")?
v.insertBefore(this.animatedIconElement,v.childNodes[0]):(v=_.IB(v),v.insertBefore(this.animatedIconElement,v.childNodes[0]))};
_.W.removeAnimatedIcon=function(v){_.N("kevlar_use_wil_icons")?this.animatedIconElement&&v.contains(this.animatedIconElement)&&v.removeChild(this.animatedIconElement):(v=_.IB(v),this.animatedIconElement&&v.contains(this.animatedIconElement)&&v.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.W.handleError=function(v,e,d){_.BV(v,this.iconName,e,d);e=UI3(d,this.icon);var E=!1;window.location.href.includes("JpymaW6Lh2w")?E=!0:d._svgIcon&&(d=(d=d._svgIcon.parentNode)?d.tagName:"unknown",_.BV(v,d),d==="YT-ICON"&&v.name==="NotFoundError"?E=!0:v.name==="NotFoundError"&&e&&(E=!0));E?_.xf(v):_.RI(v)};
_.vP.Object.defineProperties(NZ,{template:{configurable:!0,enumerable:!0,get:function(){if(UHu===void 0){var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;
DH7===void 0&&(DH7=document.createElement("template"));var E=DH7;d.call(e,E.content.cloneNode(!0),v.content.firstChild);UHu=v}v=UHu;return v}}});
NZ.prototype.handlePropertyChange=NZ.prototype.handlePropertyChange;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],NZ.prototype,"actionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",String)],NZ.prototype,"icon",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],NZ.prototype,"active",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],NZ.prototype,"defaultToFilled",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],NZ.prototype,"isAnimatedIcon",void 0);
_.c([_.f({value:24}),_.w("design:type",Number)],NZ.prototype,"size",void 0);_.c([_.f({value:""}),_.w("design:type",String)],NZ.prototype,"targetContainer",void 0);_.c([_.f(),_.w("design:type",Object)],NZ.prototype,"animatedIconElement",void 0);_.c([_.f(),_.w("design:type",Object)],NZ.prototype,"isDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],NZ.prototype,"ariaHidden",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],NZ.prototype,"ariaLabel",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],NZ.prototype,"role",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],NZ.prototype,"tabindex",void 0);_.c([_.f(),_.w("design:type",String)],NZ.prototype,"style",void 0);_.c([_.f(),_.w("design:type",String)],NZ.prototype,"iconFilter",void 0);
_.c([_.$v("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],NZ.prototype,"handlePropertyChange",null);_.c([_.lh({is:"yt-icon",noInjection:!0})],NZ);var S5S="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),aR0=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var E42={};E42.YtPlaintextBehavior=[_.K$,{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(v){v.preventDefault();v=v.clipboardData.getData("text/plain");document.execCommand("insertText",!1,v)},
preventRichTextFormatting_:function(v){_.OU&&(v=v.detail.keyboardEvent,v.stopImmediatePropagation(),v.preventDefault())}}];var TR7;var SLB;var kM=function(){var v=_.P.apply(this,arguments)||this;v.ignoreShadyDom=!1;v.hasChange_=!1;v.hasSetTitle_=!1;v.useIOObserverForVisibilityLogging_=_.N("kevlar_use_vimio_behavior")&&_.Bb("INNERTUBE_CLIENT_NAME")==="WEB";v.ytFormattedStringObserverHandlerKeys_=void 0;return v};
_.V(kM,_.P);_.W=kM.prototype;_.W.created=function(){this.useIOObserverForVisibilityLogging_=_.N("kevlar_use_vimio_behavior")&&_.Bb("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.W.ready=function(){_.Bb("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_()};
_.W.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.W.detached=function(){this.unobserveIOObservers_()};
_.W.clearContents_=function(){for(var v=this.getRoot(),e=v.lastChild;e&&e.tagName!=="STYLE";){try{v.removeChild(e)}catch(d){break}e=v.lastChild}};
_.W.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var v=_.a(this.ytFormattedStringObserverHandlerKeys_),e=v.next();!e.done;e=v.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(e.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.W.resetForAttributedString=function(){var v=this.getRoot();!v.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),v.appendChild(this.ytAttributedStringElementRef))};
_.W.resetForFormattedString=function(){var v=this.getRoot(),e=v.querySelector("yt-attributed-string");e&&(this.ytAttributedStringElementRef=v.removeChild(e))};
_.W.textChanged=function(){this.textChanged_(this.text)};
_.W.textChanged_=function(v){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!v||!v.runs&&!v.simpleText;if(_.N("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var e=this.hostElement.firstChild;e&&e.nodeName==="FONT";){var d=e;e=e.nextSibling;this.hostElement.removeChild(d)}e=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
d=v.simpleText;var E;!d&&((E=v.runs)==null?void 0:E.length)===1&&this.isSimpleString_(v.runs[0])&&(d=v.runs[0].text);d!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Bb("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(d!==void 0){try{e.textContent=d}catch(T){}e.textContent||(this.isEmpty=!0)}else v=v.runs,d!==void 0&&(v=[{text:d}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),v&&this.updateText_(v),
e.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.W.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)};
_.W.computeAriaLabel_=function(v){return v};
_.W.computeEllipsisTruncateStyling=function(v,e){return v&&!e};
_.W.computeUseAttributedString=function(v){return _.N("web_replace_formatted_with_attributed_string")&&ooL(v)&&!this.disableAttributedString&&!this.enableContentEditable};
_.W.setNodeStyle_=function(v,e){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.N("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?e.removeAttribute("dir"):e.setAttribute("dir","auto");e.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");e.style.color="";var d=null;this.noStyles||(v.bold&&(e.classList.add("bold"),d="bold"),v.deemphasize&&(e.classList.add("deemphasize"),d="deemphasize"),v.italics&&e.classList.add("italic"),
v.strikethrough&&e.classList.add("strikethrough"),v.errorUnderline&&(e.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),v.bracket&&e.classList.add("bracket"),v.textColor&&(e.style.color=_.cv(v.textColor)));d!==e.getAttribute("style-target")&&(d?e.setAttribute("style-target",d):e.removeAttribute("style-target"))};
_.W.setUpVisibilityLogging_=function(v,e){var d=this;this.setNodeTrackingParams_(v,e);var E;((E=e.data)==null?0:E.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(v=this.ytRendererBehavior.visibilityObserver.observe(e,function(T){var S=d.ytRendererBehavior.getVisibilityLogger();S&&S.reportShown(T)},this.ytRendererBehavior.visibilityOptionVisible_),e=this.ytRendererBehavior.visibilityObserver.observe(e,function(T){var S=d.ytRendererBehavior.getVisibilityLogger();
S&&S.reportHidden(T)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(v),this.ytFormattedStringObserverHandlerKeys_.push(e))};
_.W.setNodeTrackingParams_=function(v,e){e.data||(e.data={});if((v=v.loggingDirectives?v.loggingDirectives.trackingParams:null)||e.data.trackingParams)e.data.trackingParams=v};
_.W.computeHasLinkOnly_=function(v){return!(!v||v.length!==1||this.noEndpoints||!v[0].navigationEndpoint)};
_.W.getRoot=function(){var v=this.buildScopeDomOptions();return this.enableContentEditable?_.IB(_.IB(this.hostElement,v).querySelector("[contenteditable]")):_.IB(this.hostElement,v)};
_.W.fixContenteditableScope=function(){var v=function(e){e&&(e.nodeType===1&&e.classList&&(e.classList.add("style-scope"),e.classList.add("yt-formatted-string")),e.childNodes&&e.childNodes.forEach(function(d){v(d)}))};
v(this.getRoot())};
_.W.updateText_=function(v){for(var e=v.length,d=this.getRoot(),E=d.firstChild;E&&E.nodeName==="STYLE";)E=E.nextSibling;for(var T=0;T<e&&E;){var S=v[T],O=_.N("remove_cr_char")&&S.text?S.text.replace("\r",""):S.text;if(this.isSimpleString_(S)&&!this.useMixedDirectionFormattedStrings)if(E.nodeName==="#text"){E.textContent!=O&&(E.textContent=O);T++;E=E.nextSibling;continue}else break;if(_.L(S,C1))break;else if(!this.noEndpoints&&S.navigationEndpoint){if(E.nodeName!=="A")break;this.setDataOnAnchor_(E,
S.navigationEndpoint)}else if(E.nodeName!=="SPAN")break;this.setNodeStyle_(S,E);this.setUpVisibilityLogging_(S,E);E.textContent!=O&&(E.textContent=O);T++;E=E.nextSibling}if(E)for(S=d.lastChild,E=T?E.previousSibling:null;S&&S!=E;){try{d.removeChild(S)}catch(b){break}S=d.lastChild}T!==e&&this.addTextNodes_(v,T)};
_.W.addTextNodes_=function(v,e){for(var d=document.createDocumentFragment(),E=v.length;e<E;e++){var T=v[e],S=_.N("remove_cr_char")&&T.text?T.text.replace("\r",""):T.text;if(this.isSimpleString_(T)&&!this.useMixedDirectionFormattedStrings)d.appendChild(document.createTextNode(S));else{var O=_.L(T,C1);if(O){if(O.image){var b=document.createElement("img");O.isCustomEmoji||b.classList.add("small-emoji");b.classList.add("emoji");O.isCustomEmoji&&(b.dataset.emojiId=O.emojiId);b.src=_.i2(O.image.thumbnails,
this.emojiSize);(T=this.get("image.accessibility.accessibilityData.label",O))?b.alt=T:O.shortcuts&&O.shortcuts.length>0?b.alt=O.shortcuts[0]:O.emojiId&&(b.alt=O.emojiId);d.appendChild(b);this.hasEmoji=!0}}else!this.noEndpoints&&T.navigationEndpoint?(b=document.createElement("a"),b.classList.add("yt-simple-endpoint"),b.setAttribute("spellcheck","false"),this.setDataOnAnchor_(b,T.navigationEndpoint)):b=document.createElement("span"),this.setNodeStyle_(T,b),this.setUpVisibilityLogging_(T,b),b.appendChild(document.createTextNode(S)),
d.appendChild(b)}}this.getRoot().appendChild(d)};
_.W.isSimpleString_=function(v){return(this.noEndpoints||!v.navigationEndpoint)&&!_.L(v,C1)&&(this.noStyles||!(v.bold||v.deemphasize||v.italics||v.strikethrough||v.errorUnderline||v.bracket||v.textColor))&&!v.loggingDirectives};
_.W.getRawText=function(){return _.vv(this.text)};
_.W.getFirstRunText=function(){var v;if(((v=this.text)==null?0:v.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.W.setFirstRunText=function(v){var e;((e=this.text)==null?0:e.runs)&&this.text.runs[0]&&(this.text.runs[0].text=v,this.textChanged_(this.text))};
_.W.setDataOnAnchor_=function(v,e){var d=this;!_.N("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(e)||this.isSignalServiceEndpoint_(e)?(v.onclick=this.serviceEndpointHandler_(e),l6(v,"#")):tK$({text:this.text,command:e},function(){ZvM(v,e,d.target)})};
_.W.isServiceEndpoint_=function(v){var e;return!((e=_.L(v==null?void 0:v.commandMetadata,_.$B))==null||!e.sendPost)};
_.W.isSignalServiceEndpoint_=function(v){return!!_.L(v,_.KB)};
_.W.serviceEndpointHandler_=function(v){var e=this;return function(d){_.mN(e.hostElement,[v]);d.preventDefault()}};
_.W.overrideAriaLabelChanged_=function(){var v=this.getRoot();this.enableContentEditable&&v&&v.setAttribute("aria-label",this.overrideAriaLabel)};
_.W.enableContentEditableChanged_=function(){var v=this,e=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),e=_.IB(this.hostElement,e),!e.lastChild||e.lastChild instanceof HTMLElement&&e.lastChild.id!=="contenteditable-root"){var d=document.createElement("div");d.id="contenteditable-root";d.setAttribute("contenteditable","true");d.setAttribute("dir","auto");d.onfocus=function(){v.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
e.appendChild(d);this.overrideAriaLabel&&d.setAttribute("aria-label",this.overrideAriaLabel)}}else d=_.bh(this.hostElement).firstChild,d instanceof HTMLElement&&d.id==="contenteditable-root"&&_.IB(this.hostElement,e).removeChild(d)};
_.W.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.W.getNodesForVisibilityLogging_=function(){return _.dN(this.getRoot().childNodes,function(v){var e;return!((e=v.data)==null||!e.trackingParams)})};
_.W.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.W.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var v=this.ytRendererBehavior.getVisibilityLogger();v&&this.getNodesForVisibilityLogging_().forEach(function(e){v.reportShown(e)})}};
_.W.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var v=this.ytRendererBehavior.getVisibilityLogger();v&&this.getNodesForVisibilityLogging_().forEach(function(e){v.reportHidden(e)})}};
_.vP.Object.defineProperties(kM.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.N("enable_mixed_direction_formatted_strings")}}});
kM.prototype.enableContentEditableChanged_=kM.prototype.enableContentEditableChanged_;kM.prototype.overrideAriaLabelChanged_=kM.prototype.overrideAriaLabelChanged_;kM.prototype.ellipsisTruncateChanged_=kM.prototype.ellipsisTruncateChanged_;kM.prototype.textChanged=kM.prototype.textChanged;_.c([_.M(E42.YtPlaintextBehavior),_.w("design:type",Object)],kM.prototype,"ytPlaintextBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],kM.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kM.prototype,"text",void 0);_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"noEndpoints",void 0);_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"noStyles",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],kM.prototype,"isDarkTheme",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],kM.prototype,"splitLines",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],kM.prototype,"forceDefaultStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],kM.prototype,"ellipsisTruncate",void 0);_.c([_.f(),_.w("design:type",Object)],kM.prototype,"ignoreShadyDom",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.w("design:type",Boolean)],kM.prototype,"ellipsisTruncateStyling",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.w("design:type",String)],kM.prototype,"ariaLabel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],kM.prototype,"isEmpty",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.w("design:type",Boolean)],kM.prototype,"hasLinkOnly_",void 0);_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"hasEmoji",void 0);_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"disableAttributedString",void 0);_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"isOverlay",void 0);_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"linkInheritColor",void 0);
_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"noPreWrap",void 0);_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"userInput",void 0);_.c([_.f({value:16}),_.w("design:type",Number)],kM.prototype,"emojiSize",void 0);_.c([_.f(),_.w("design:type",String)],kM.prototype,"target",void 0);_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"enableContentEditable",void 0);_.c([_.f(),_.w("design:type",String)],kM.prototype,"overrideAriaLabel",void 0);
_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"respectHtmlDir",void 0);_.c([_.f(),_.w("design:type",Boolean)],kM.prototype,"respectLangDir",void 0);_.c([_.t("plaintextOnly"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],kM.prototype,"useMixedDirectionFormattedStrings",null);_.c([_.f({computed:"computeUseAttributedString(text)"}),_.w("design:type",Boolean)],kM.prototype,"useYtAttributedString",void 0);
_.c([_.$v("text"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kM.prototype,"textChanged",null);_.c([_.$v("ellipsisTruncate"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kM.prototype,"ellipsisTruncateChanged_",null);_.c([_.$v("overrideAriaLabel"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kM.prototype,"overrideAriaLabelChanged_",null);
_.c([_.$v("enableContentEditable"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kM.prototype,"enableContentEditableChanged_",null);_.c([_.lh({is:"yt-formatted-string",disableElementRegistration:!0})],kM);
_.A(kM,"yt-formatted-string",function(){if(SLB===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;TR7===void 0&&(TR7=document.createElement("template"));var E=TR7;d.call(e,E.content.cloneNode(!0),v.content.firstChild);SLB=v}v=SLB;return v});var WBB;var aMA;var iTM;var OT2;var LR=function(){var v=_.P.apply(this,arguments)||this;v.focused=!1;v.disabled=!1;v.isOverlay=!1;return v};
_.V(LR,_.P);LR.prototype.triggerDown=function(){if(!this.disabled){_.Yv(this.hostElement,"down",!0);var v;(v=this.currentAnimation)==null||v.cancel()}};
LR.prototype.triggerUp=function(){if(!this.disabled){_.Yv(this.hostElement,"down",!1);var v=this.fillElement;var e=this.strokeElement;typeof GroupEffect==="function"?(v=new GroupEffect([UvS(v),ptS(e)]),v=new Animation(v,document.timeline)):v=new fWu(v,e);this.currentAnimation=v;var d;(d=this.currentAnimation)==null||d.play()}};
_.c([_.sg(".stroke"),_.w("design:type",HTMLElement)],LR.prototype,"strokeElement",void 0);_.c([_.sg(".fill"),_.w("design:type",HTMLElement)],LR.prototype,"fillElement",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],LR.prototype,"focused",void 0);_.c([_.f(),_.w("design:type",Object)],LR.prototype,"disabled",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],LR.prototype,"isOverlay",void 0);_.c([_.lh({is:"yt-interaction",disableElementRegistration:!0})],LR);
_.A(LR,"yt-interaction",function(){if(OT2===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;iTM===void 0&&(iTM=document.createElement("template"));var E=iTM;d.call(e,E.content.cloneNode(!0),v.content.firstChild);OT2=v}v=OT2;return v},{mode:2});var Vi=function(){return _.P.apply(this,arguments)||this};
_.V(Vi,_.P);_.W=Vi.prototype;_.W.ready=function(){var v=this,e=_.IB(this.hostElement).querySelector("#button");e.addEventListener("focus",function(){RAg||(RAg=new fJA);v.keyboardFocused=RAg.isKeyBoardInUse()});
e.addEventListener("blur",function(){v.keyboardFocused=!1;v.rippleUp_()})};
_.W.computeTabIndex_=function(v){return v?-1:0};
_.W.computeButtonAriaPressed_=function(v){if(this.toggleable)return v?"true":"false"};
_.W.rippleDown_=function(){_.IB(this.hostElement).querySelector("#interaction").triggerDown()};
_.W.rippleUp_=function(){_.IB(this.hostElement).querySelector("#interaction").triggerUp()};
_.W.onPressedChanged_=function(){var v=_.bh(_.IB(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.bh(_.IB(this.hostElement).querySelector("#button")).children[0];v&&(v.active=this.pressed)};
Vi.prototype.onPressedChanged_=Vi.prototype.onPressedChanged_;Vi.prototype.rippleUp_=Vi.prototype.rippleUp_;Vi.prototype.rippleDown_=Vi.prototype.rippleDown_;_.c([_.f(),_.w("design:type",String)],Vi.prototype,"label",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Vi.prototype,"disabled",void 0);_.c([_.f(),_.w("design:type",Boolean)],Vi.prototype,"pressed",void 0);_.c([_.f(),_.w("design:type",Object)],Vi.prototype,"toggleable",void 0);
_.c([_.f(),_.w("design:type",Boolean)],Vi.prototype,"untabbable",void 0);_.c([_.f(),_.w("design:type",Boolean)],Vi.prototype,"keyboardFocused",void 0);_.c([_.Kq("down"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Vi.prototype,"rippleDown_",null);_.c([_.Kq("up"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Vi.prototype,"rippleUp_",null);
_.c([_.$v("pressed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Vi.prototype,"onPressedChanged_",null);_.c([_.lh({is:"yt-icon-button",disableElementRegistration:!0})],Vi);
_.A(Vi,"yt-icon-button",function(){if(aMA===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;WBB===void 0&&(WBB=document.createElement("template"));var E=WBB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);aMA=v}v=aMA;return v},{mode:2});var IMI;var bT6=function(){var v=document.body,e=v.appendChild;if(IMI===void 0){var d=document.createElement("template");_.G(d,'\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>');
IMI=d}d=IMI;e.call(v,d.content)};
document.body?bT6():window.addEventListener("DOMContentLoaded",bT6);var YLB=_.Z9(["aria-"]),oe={};oe.YtRenderButtonBehavior=[_.n.YtRendererBehavior,_.KR.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!!_.dk().resolve(_.eG(_.i$))&&_.N("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 v=this.computeHref_(this.endpoint,!0);v?l6(this.elements_.endpoint,v):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){v=this.buttonClass.split(" ");v=_.a(v);for(var e=v.next();!e.done;e=v.next())e=e.value,_.Yv(this.hostElement,e,!0),this.elements_.button&&_.Yv(this.elements_.button,e,!0),this.elements_.text&&_.Yv(this.elements_.text,e,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(v=null,this.buttonAccessibility&&(v=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=v:v?_.pY([_.Ea(YLB)],this.elements_.button,"aria-label",v):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var v=_.dk().resolve(_.eG(_.i$));v&&(this.keyboardFocused=v.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.TX("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,_.tW(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.tW(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(v,e){if(e)for(v=e.split(" "),v=_.a(v),e=v.next();!e.done;e=v.next())e=e.value,_.Yv(this.hostElement,e,!1),this.elements_.button&&_.Yv(this.elements_.button,e,!1),this.elements_.text&&_.Yv(this.elements_.text,e,!1)},
buttonIconChanged_:function(v){this.elements_.icon?v?(this.elements_.icon.icon=v,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.tW(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.mI(this.hostElement,"is-paper-button-with-icon",!1)):v&&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"&&_.tW(this.elements_.button).appendChild(this.elements_.icon):_.tW(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.mI(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(v){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,v){var e=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(v){case "yt_icon_button_with_label":e=!0;_.Yv(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();v=_.tW(this.elements_.button).firstElementChild;
this.elements_.icon=v;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.tW(this.elements_.endpoint).appendChild(this.elements_.button);_.tW(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.TX("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;_.tW(this.elements_.button).appendChild(this.elements_.text);_.tW(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":e=!0,this.elements_.button=this.getYtIconButton_(),v=_.tW(this.elements_.button).firstElementChild,this.elements_.icon=v,this.setIconActive_(this.elements_.icon),
_.tW(this.elements_.endpoint).appendChild(this.elements_.button)}_.mI(this.hostElement,"is-icon-button",e);_.mI(this.hostElement,"is-paper-button",!e);_.mI(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 d;_.IB((d=this.container.hostElement)!=null?d:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.tW(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(v){if(v!=void 0||this.disabled)this.disabled=v,this.elements_.button&&(this.elements_.button.disabled=v)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(v){_.N("kevlar_system_icons")&&v&&this.data&&(this.data.isSelected!==void 0?v.active=this.data.isSelected:this.data.isToggled!==void 0&&(v.active=this.data.isToggled))},
observeBasicPalette_:function(v){_.t8(this.hostElement,v)},
disabledChanged_:function(v){this.data&&this.set("data.isDisabled",v)},
onYtButtonTap_:function(v){if(this.disabled)v.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.mN(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(v=this.disableCommandHandlerOverride,!this.data||!this.data.command||v||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.N("handle_service_request_actions")||_.mN(this.hostElement,[this.serviceEndpoint]),
_.Iq(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.N("handle_service_request_actions")?(v=[],this.serviceEndpoint&&v.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&v.push(this.data.command),v.length&&_.ya(this.hostElement,v,this.hostElement)):this.data&&this.data.command&&(v=this.data.command,v.accountUnlinkCommand||v.accountLinkCommand||v.insertAdCommand||v.insertHighlightMarkerCommand||
v.createLivestreamHighlightClipCommand||v.getVideoUploadFeedbackCommand||v.musicDeletePrivatelyOwnedEntityCommand||v.ypcCancelRecurrenceEndpoint||v.getMultiSelectCommandEndpoint?_.mN(this.hostElement,[v]):_.ya(this.hostElement,[v],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 v,e=_.IB((v=this.container.hostElement)!=null?v:this.container);e.lastChild&&e.lastChild.tagName!="STYLE";)try{e.removeChild(e.lastChild)}catch(d){break}},
getYtIconButton_:function(){var v=this.reuseEnabled_()?_.TX("yt-icon-button"):document.createElement("yt-icon-button"),e=_.tW(v).firstElementChild;if(e&&e.is!="yt-icon"){for(e=_.tW(v);e.lastChild;)e.removeChild(e.lastChild);e=null}e||(e=this.getIcon_(),this.setIconActive_(e),_.tW(v).appendChild(e));return v},
reuseEnabled_:function(){return _.N("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.TX("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.TX("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.mB2={};
_.mB2.YtButtonBehavior=[oe.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var v=this.data;v&&(this._setEndpoint(this.computeEndpoint_(v)),this._setServiceEndpoint(this.computeServiceEndpoint_(v)),this._setCommand(this.computeCommand_(v)),this._setButtonIcon(this.computeButtonIcon_(v)),this._setButtonText(this.computeButtonText_(v,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(v)),this._setButtonTooltip(this.computeTooltip_(v)),this._setButtonClass(this.computeButtonClass_(v)),this._setIconPositionType(this.computeIconPositionType_(v)),this.updateRenderedElements())},
setPressedState:function(v){var e;if((e=this.elements_)==null?0:e.button)this.elements_.button.pressed=!!v},
computeIconPositionType_:function(v){return v&&v.iconPosition||null},
computeEndpoint_:function(v){var e=v&&v.navigationEndpoint,d=this.get("data.command.commandMetadata.webCommandMetadata.url"),E=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:v&&v.command&&v.command.modalEndpoint?v.command:d&&!E&&v.command?v.command:null},
computeServiceEndpoint_:function(v){var e=v&&v.serviceEndpoint,d=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:d&&v.command?v.command:null},
computeCommand_:function(v){return v&&v.command||null},
computeButtonIcon_:function(v){return v&&v.icon&&v.icon.iconType?_.qC(v.icon.iconType):null},
computeButtonText_:function(v,e){return!e&&v&&v.text||null},
computeAccessibility_:function(v){return this.get("accessibilityData.accessibilityData",v)||v&&v.accessibility||(v&&v.text?{label:this.getSimpleString(v.text)}:null)},
computeTooltip_:function(v){return v?v.isDisabled&&v.disabledTooltip||v.tooltip||null:null},
computeButtonClass_:function(v){var e=v&&v.style?v.style.toLowerCase().replace(/_/g,"-")+" ":"";e+=v&&v.size?v.size.toLowerCase().replace(/_/g,"-")+" ":"";v.colorData&&v.colorData.basicColorPaletteData&&v.colorData.basicColorPaletteData.borderColor&&(e+="palette-with-border");return e.trim()}}];var fM={};var yp2;var qL6;var rp7,hG6=function(){return rp7!==void 0?rp7:rp7=document.createElement("template")};
document.head.appendChild(hG6().content);var KBu;var $Be,jV0=function(){return $Be!==void 0?$Be:$Be=document.createElement("template")};
document.head.appendChild(jV0().content);var sVc;var NR0,kg2=function(){return NR0!==void 0?NR0:NR0=document.createElement("template")};
document.head.appendChild(kg2().content);var LBA;var Vni=document.head,o4g=Vni.appendChild,JpA;if(LBA===void 0){var Ggu=document.createElement("template");_.G(Ggu,"\x3c!--css-build:shady--\x3e");Ggu.content.insertBefore(kg2().content.cloneNode(!0),Ggu.content.firstChild);LBA=Ggu}JpA=LBA;o4g.call(Vni,JpA.content);var MnJ=document.head,tnn=MnJ.appendChild,fM0;if(sVc===void 0){var RGA=document.createElement("template");_.G(RGA,"\x3c!--css-build:shady--\x3e");RGA.content.insertBefore(jV0().content.cloneNode(!0),RGA.content.firstChild);sVc=RGA}fM0=sVc;tnn.call(MnJ,fM0.content);var PoJ=document.head,xBJ=PoJ.appendChild,BRi;if(KBu===void 0){var Coe=document.createElement("template");_.G(Coe,"\x3c!--css-build:shady--\x3e");Coe.content.insertBefore(hG6().content.cloneNode(!0),Coe.content.firstChild);KBu=Coe}BRi=KBu;xBJ.call(PoJ,BRi.content);var XQM;_.RZ("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");XQM=_.N("web_button_rework")&&_.zr("BUTTON_REWORK")||_.N("web_button_rework_with_live");_.J5=function(){return _.P.apply(this,arguments)||this};
_.V(_.J5,_.P);_.J5.prototype.created=function(){this.openPopupConfig=_.Bb("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.J5.prototype.onYtNavigate_=function(v){var e=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);e&&(this.ytOpenPopupBehavior.openPopup(e),v.stopPropagation(),v.preventDefault())};
_.vP.Object.defineProperties(_.J5,{template:{configurable:!0,enumerable:!0,get:function(){if(qL6===void 0){var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
var e=v.content,d=e.insertBefore;yp2===void 0&&(yp2=document.createElement("template"));var E=yp2;d.call(e,E.content.cloneNode(!0),v.content.firstChild);qL6=v}v=qL6;return v}}});
_.J5.prototype.onYtNavigate_=_.J5.prototype.onYtNavigate_;_.c([_.M(_.h5.YtOpenPopupBehavior),_.w("design:type",Object)],_.J5.prototype,"ytOpenPopupBehavior",void 0);_.c([_.M(_.mB2.YtButtonBehavior),_.w("design:type",Object)],_.J5.prototype,"ytButtonBehavior",void 0);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],_.J5.prototype,"onYtNavigate_",null);
_.c([_.lh({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:XQM})],_.J5);var zGc;var lMA=_.N("web_button_rework")&&_.zr("BUTTON_REWORK")||_.N("web_button_rework_with_live"),GX=function(){var v=_.P.apply(this,arguments)||this;v.isPressed=!1;v.forceIconButton=!1;v.forceIconOnly=!1;v.forceModernIconButton=!1;v.skipCommandHandling=!1;v.alignByText=!1;v.fitToVisibleBounds=!0;v.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};v.onTap=function(e){_.Iq(v.hostElement,"yt-service-request-sent-button-renderer",e)};
return v};
_.V(GX,_.P);_.W=GX.prototype;_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.W.onClick=function(v){var e,d=this.disabled||((e=this.data)==null?void 0:e.isDisabled);e=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");d&&e&&v.stopPropagation()};
_.W.computeIcon=function(){var v,e,d=(v=this.data)==null?void 0:(e=v.icon)==null?void 0:e.iconType;if(d)return _.qC(d)};
_.W.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.W.handleUpdateButtonAction=function(v){v=_.L(v,dUn);var e=_.L(v==null?void 0:v.updatedButton,_.BD);if(this.data&&v&&e){var d=this.data;d.targetId&&v.targetId&&d.targetId===v.targetId&&(this.data=e)}};
_.vP.Object.defineProperties(GX.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var v=this;if(this.data){var e=moU({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Iq(v.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Iq(v.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});e.alignByText=this.alignByText;return e}}}});
_.vP.Object.defineProperties(GX,{template:{configurable:!0,enumerable:!0,get:function(){if(zGc===void 0){var v=document.createElement("template");_.G(v,'\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>');zGc=v}v=zGc;return v}}});
GX.prototype.onClick=GX.prototype.onClick;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],GX.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],GX.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],GX.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],GX.prototype,"isPressed",void 0);
_.c([_.f(),_.w("design:type",Object)],GX.prototype,"forceIconButton",void 0);_.c([_.f(),_.w("design:type",Object)],GX.prototype,"forceIconOnly",void 0);_.c([_.f(),_.w("design:type",Object)],GX.prototype,"forceModernIconButton",void 0);_.c([_.f(),_.w("design:type",Object)],GX.prototype,"skipCommandHandling",void 0);_.c([_.f(),_.w("design:type",Object)],GX.prototype,"alignByText",void 0);_.c([_.f(),_.w("design:type",Object)],GX.prototype,"buttonTooltipPosition",void 0);
_.c([_.f(),_.w("design:type",Object)],GX.prototype,"fitToVisibleBounds",void 0);_.c([_.f({computed:"computeTooltip(data)"}),_.w("design:type",Object)],GX.prototype,"tooltip",void 0);_.c([_.f(),_.w("design:type",Object)],GX.prototype,"overrides",void 0);_.c([_.f(),_.w("design:type",Boolean)],GX.prototype,"disabled",void 0);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],GX.prototype,"onClick",null);
_.c([_.t("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.w("design:type",Object),_.w("design:paramtypes",[])],GX.prototype,"computedButtonShape",null);_.c([_.lh({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!lMA,cssBuildOptOut:!0}),_.lh({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!lMA,cssBuildOptOut:!0})],GX);var HTc;var ApB;var MZ=function(){var v=_.P.apply(this,arguments)||this;v.empty_=!0;v.loadTime=Infinity;v.pendingPaint=!1;v.hasChange_=!1;v.oldThumbnail_=null;v.oldDelayedSrc_="";v.objectURL_=null;return v};
_.V(MZ,_.P);_.W=MZ.prototype;_.W.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.W.ready=function(){var v=this.shouldShowPlaceholder_();_.Yv(this.hostElement,"no-transition",!0);v&&this.hostElement.classList.add("with-placeholder")};
_.W.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.W.isThumbPreloaded_=function(v){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",v)};
_.W.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||ZTA};
_.W.computeThumbnailSrc_=function(v){return v&&v.thumbnails?_.i2(v.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.W.computeAlt_=function(){var v=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&v||""};
_.W.thumbnailChanged_=function(){var v=_.a([this.thumbnail,this.oldThumbnail_]),e=v.next().value;v=v.next().value;this.oldThumbnail_=e;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(v=this.computeThumbnailSrc_(v),this.computeThumbnailSrc_(e)===v))return;_.N("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(e)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):e&&_.zr("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Uh(this,this.onReload_):_.Uh(this,this.onShow_):this.resetImage_();e&&(this.hostElement.style.opacity=""+e.opacity)}};
_.W.delayedSrcChanged_=function(){var v=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===v||this.resetImage_()};
_.W.setSrc_=function(v){v?(_.IB(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.IB(this.hostElement).querySelector("#img").src=v):(_.IB(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.W.resetImage_=function(){$vt(this.hostElement);this.empty_=!0;this.setSrc_(ZTA);this.ytRendererBehavior.invalidate(!1)};
_.W.observePlaceholderColor_=function(){var v=this.thumbnail&&this.thumbnail.placeholderColor;v?this.hostElement.style.backgroundColor=_.cv(v):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.W.onLoad_=function(){_.IB(this.hostElement).querySelector("#img").src&&_.IB(this.hostElement).querySelector("#img").src!==ZTA&&(Knt(this.hostElement),this.notifyOnLoaded&&_.Iq(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.W.onError_=function(){var v=this;if(_.N("web_use_cache_for_image_fallback"))o$W(_.IB(this.hostElement).querySelector("#img").src).then(function(e){v.objectURL_=_.B$(e).toString();v.setSrc_(v.objectURL_)}).catch(function(){_.N("kevlar_woffle_fallback_image")&&v.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.W.onPrescanVisible=function(){this.onShow_()};
_.W.onVisible=function(){if(_.N("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.W.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var v=this.computeSrc_();v!==_.IB(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(v))}};
_.W.onReload_=function(){this.empty_=!1;var v=this.computeSrc_();v!==_.IB(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(v))};
_.W.shouldShowPlaceholder_=function(){return _.N("kevlar_thumbnail_bg")};
MZ.prototype.observePlaceholderColor_=MZ.prototype.observePlaceholderColor_;MZ.prototype.delayedSrcChanged_=MZ.prototype.delayedSrcChanged_;MZ.prototype.thumbnailChanged_=MZ.prototype.thumbnailChanged_;_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],MZ.prototype,"alt",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],MZ.prototype,"ariaHidden",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],MZ.prototype,"ariaLabel",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],MZ.prototype,"hidden",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],MZ.prototype,"id",void 0);_.c([_.M(_.Qy.YtVisibilityBehavior),_.w("design:type",Object)],MZ.prototype,"ytVisibilityBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",String)],MZ.prototype,"delayedSrc",void 0);
_.c([_.f(),_.w("design:type",Object)],MZ.prototype,"thumbnail",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],MZ.prototype,"loaded",void 0);_.c([_.f(),_.w("design:type",Boolean)],MZ.prototype,"notifyOnLoaded",void 0);_.c([_.f(),_.w("design:type",Number)],MZ.prototype,"height",void 0);_.c([_.f(),_.w("design:type",Number)],MZ.prototype,"width",void 0);_.c([_.f({value:function(){return"width"}}),
_.w("design:type",String)],MZ.prototype,"dimension",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],MZ.prototype,"fit",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],MZ.prototype,"fitHeight",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],MZ.prototype,"fitWidth",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],MZ.prototype,"objectFit",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],MZ.prototype,"objectPosition",void 0);_.c([_.f(),_.w("design:type",String)],MZ.prototype,"preferredThumbnail",void 0);_.c([_.f({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.w("design:type",String)],MZ.prototype,"alt_",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],MZ.prototype,"sharedTooltipText",void 0);
_.c([_.f(),_.w("design:type",Boolean)],MZ.prototype,"ftlEligible",void 0);_.c([_.f({value:void 0}),_.w("design:type",String)],MZ.prototype,"observeHiddenOption",void 0);_.c([_.f({value:"observe_once"}),_.w("design:type",String)],MZ.prototype,"observePrescanOption",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],MZ.prototype,"roundedContainer",void 0);
_.c([_.V1("thumbnail"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MZ.prototype,"thumbnailChanged_",null);_.c([_.V1("delayedSrc"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MZ.prototype,"delayedSrcChanged_",null);_.c([_.$v("thumbnail.placeholderColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MZ.prototype,"observePlaceholderColor_",null);
_.c([_.lh({is:"yt-img-shadow",disableElementRegistration:!0})],MZ);var ZTA=_.zr("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.I5()(MZ,"yt-img-shadow",function(){if(ApB===void 0){var v=document.createElement("template");_.G(v,'\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">');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;HTc===void 0&&(HTc=document.createElement("template"));var E=HTc;d.call(e,E.content.cloneNode(!0),v.content.firstChild);ApB=v}v=ApB;return v},{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 wqL;_.t5=new _.nC("SCREEN_MANAGER_TOKEN");wqL=new _.nC("LOG_INITIAL_SCREEN_TOKEN");var cp7=q5t({entities:{}});var wQn=h6L(cp7)(cp7.entities,{selectSfvAudioItemPlaybackState:function(v,e){var d,E;v=(E=_.h_(v,"sfvAudioItemCurrentlyPlayingEntity",e))!=null?E:void 0;return(d=v==null?void 0:v.sfvAudioItemPlaybackState)!=null?d:void 0},
playlistLoopStateEntitySelector:function(v,e){var d;return(d=_.h_(v,"playlistLoopStateEntity",e))!=null?d:void 0}});_.fR=_.l(function(v){function e(v3){return _.L(v3,_.lx)}
function d(){var v3=E().isTogglingDisabled||R()&&E().toggledIsTogglingDisabled,q7=v3||K()?R():!R();B(q7);Z(!1);if(!v3){var m0;(m0=O)==null||m0(!!q7)}var $S;(($S=S)==null?0:$S())||_.yV(_.dk().resolve(_.t5),E().trackingParams);var kS;if(!q7||!e(E().defaultButtonViewModel)||(kS=S)!=null&&kS()){var N7;!e(E().toggledButtonViewModel)||((N7=S)==null?0:N7())||_.yV(_.dk().resolve(_.t5),e(E().toggledButtonViewModel).trackingParams)}else _.yV(_.dk().resolve(_.t5),e(E().defaultButtonViewModel).trackingParams)}
var E=v.data,T=v.buttonShapeOverrides,S=v.disableExplicitClickLogging,O=v.onToggle,b=v.style,Y=v.useOutlinedIcon,q=v.className,r=function(){var v3,q7;return R()?(v3=v.animatedTextPropsToggled)==null?void 0:v3.call(v):(q7=v.animatedTextPropsDefault)==null?void 0:q7.call(v)},h=_.yl(function(){return r()?Object.assign({},r(),{shouldAnimate:X()}):void 0},void 0,"ZKEa0b"),K=function(){var v3;
return((v3=g())==null?void 0:v3.isToggled)!==void 0},k=_.a(_.KM(function(){var v3,q7,m0;
return K()?(v3=g())==null?void 0:v3.isToggled:(m0=T==null?void 0:(q7=T())==null?void 0:q7.toggled)!=null?m0:E().isToggled})),J=k.next().value;
k=k.next().value;var R=J,B=k;k=_.a(_.KM(function(){var v3,q7;return(v3=v.animatedTextPropsToggled)==null?void 0:(q7=v3.call(v))==null?void 0:q7.shouldAnimate}));
J=k.next().value;k=k.next().value;var X=J,Z=k;J=_.a(_.OE(!1,void 0,"S11hid"));var U=J.next().value,F=J.next().value,g=_.Xj(function(v3){a:{var q7=E().entityKey,m0=E().toggledStateEntitySelectorType;if(m0)switch(m0){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!q7)break;v3=wQn.selectSfvAudioItemPlaybackState(v3,q7);if(v3==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){v3={isToggled:!0};break a}if(v3){v3={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":v3=
{isToggled:_.$ot(v3).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":v3={isToggled:_.$ot(v3).includes("engagement-panel-live-chat-item-section")};break a;default:_.xf(new _.kL("Error: entitySelectorType defined but not matched in selector.",v3,m0))}v3=void 0}return v3}),Q=function(){return Object.assign({},T==null?void 0:T(),{onToggle:d,
toggleable:!0,toggled:R(),focused:U()})};
return _.m("toggle-button-view-model",{"on:focusin":_.rq(function(){var v3=_.dk().resolve(_.eG(_.i$));v3&&F(v3.isKeyBoardInUse());return!1}),
"on:focusout":_.rq(function(){F(!1);return!1})},_.m(_.y,{cond:function(){return R()?e(E().toggledButtonViewModel):e(E().defaultButtonViewModel)},
then:function(v3){return _.m(_.yi,{data:v3,className:q,style:b,useOutlinedIcon:Y,buttonOverrides:Q,animatedTextProps:h})}}))},"E");
_.fR.idomCompat={callbacks:{onToggle:!0}};_.aZ(_.l(function(v){return _.m("yt-toggle-button-view-model",{class:function(){var e;return(e=v.scopingClassName)==null?void 0:e.call(v)}},_.m(_.fR,{data:function(){var e;
return(e=v.data)==null?void 0:e.call(v)},
buttonShapeOverrides:function(){var e;return(e=v.overrides)==null?void 0:e.call(v)},
animatedTextPropsDefault:function(){var e;return(e=v.animatedTextPropsDefault)==null?void 0:e.call(v)},
animatedTextPropsToggled:function(){var e;return(e=v.animatedTextPropsToggled)==null?void 0:e.call(v)},
disableExplicitClickLogging:function(){var e;return(e=v.disableExplicitClickLogging)==null?void 0:e.call(v)},
onToggle:function(e){var d;return(d=v.onToggle)==null?void 0:d.call(v,e)},
style:function(){var e;return(e=v.style)==null?void 0:e.call(v)},
useOutlinedIcon:function(){var e;return(e=v.useOutlinedIcon)==null?void 0:e.call(v)},
className:function(){var e;return(e=v.className)==null?void 0:e.call(v)}}))},"F"),"yt-toggle-button-view-model",{props:{data:_.U1,
buttonShapeOverrides:_.U1,overrides:_.U1,animatedTextPropsDefault:_.U1,animatedTextPropsToggled:_.U1,disableExplicitClickLogging:_.U1,onToggle:_.SM,style:_.U1,useOutlinedIcon:_.U1,className:_.U1,scopingClassName:_.U1}});var Re=function(){return _.P.apply(this,arguments)||this};
_.V(Re,_.P);Re.prototype.onTap=function(v){v.stopPropagation();v=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.M0("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:v})):this.ytLiveChatReduxBehavior.dispatch(_.Lv("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:v}))};
_.vP.Object.defineProperties(Re.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.engagementState)==null?void 0:v.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=_.L(this.data.toggleButton,_.Ay),e;if(Number(((e=this.likeCountState)==null?void 0:e.likeCountIfIndifferentNumber)||"0")===0){var d;e=((d=this.data.likeCountPlaceholder)==null?void 0:d.content)||""}else{var E,T,S;e=((E=this.likeCountState)==null?void 0:(T=E.likeCountIfIndifferent)==null?void 0:T.content)||((S=this.data.likeCountPlaceholder)==null?void 0:S.content)||""}var O,b;d=((O=this.likeCountState)==null?void 0:(b=
O.likeCountIfLiked)==null?void 0:b.content)||"1";O=_.L(v.toggledButtonViewModel,_.lx);return Object.assign({},v,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.L(v.defaultButtonViewModel,_.lx),{title:e})},toggledButtonViewModel:{buttonViewModel:Object.assign({},O,{title:d})}})}}}});
Re.prototype.onTap=Re.prototype.onTap;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Re.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],Re.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Re.prototype,"data",void 0);
_.c([_.f({selectorArgs:["data.likeCountEntityKey"],selector:j1s}),_.w("design:type",Object)],Re.prototype,"likeCountState",void 0);_.c([_.f({selectorArgs:["data.engagementStateKey"],selector:N70}),_.w("design:type",Object)],Re.prototype,"engagementState",void 0);_.c([_.t("data","engagementState"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Re.prototype,"isLiked",null);
_.c([_.t("data","likeCountState","isLiked"),_.w("design:type",Object),_.w("design:paramtypes",[])],Re.prototype,"toggleButton",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],Re.prototype,"onTap",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Re);
_.A(Re,"yt-live-chat-like-button-view-model",function(){if(Qz0===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Fau===void 0&&(Fau=document.createElement("template"));var E=Fau;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Qz0=v}v=Qz0;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var FBA;var QVJ;var Ph=function(){return _.P.apply(this,arguments)||this};
_.V(Ph,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ph.prototype,"data",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Ph);
_.A(Ph,"yt-live-chat-paid-message-footer-renderer",function(){if(QVJ===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;FBA===void 0&&(FBA=document.createElement("template"));var E=FBA;d.call(e,E.content.cloneNode(!0),v.content.firstChild);QVJ=v}v=QVJ;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var g4B;var u3M;var n47;var DBi,UB2=function(){if(DBi!==void 0)return DBi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;n47===void 0&&(n47=document.createElement("template"));var E=n47;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return DBi=v};var xM=function(){return _.P.apply(this,arguments)||this};
_.V(xM,_.P);xM.prototype.onTap=function(v){v.stopPropagation()};
_.vP.Object.defineProperties(xM.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=_.L(this.data.replyButton,_.lx),e,d,E,T,S,O,b,Y=Number(((e=this.replyCountState)==null?void 0:e.replyCountNumber)||"0")===0?(d=this.data)==null?void 0:(E=d.replyCountPlaceholder)==null?void 0:E.content:((T=this.replyCountState)==null?void 0:(S=T.replyCount)==null?void 0:S.content)||((O=this.data)==null?void 0:(b=O.replyCountPlaceholder)==null?void 0:b.content)||"",q;return Object.assign({},
v,{title:Y,accessibilityText:(q=this.replyCountState)==null?void 0:q.replyButtonAccessibilityText})}}}});
_.vP.Object.defineProperties(xM,{template:{configurable:!0,enumerable:!0,get:function(){return UB2()}}});
xM.prototype.onTap=xM.prototype.onTap;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],xM.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],xM.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],xM.prototype,"data",void 0);
_.c([_.f({selectorArgs:["data.replyCountEntityKey"],selector:function(v,e){return _.h_(v.entities,"replyCountEntity",e)}}),
_.w("design:type",Object)],xM.prototype,"replyCountState",void 0);_.c([_.t("data","replyCountState"),_.w("design:type",Object),_.w("design:paramtypes",[])],xM.prototype,"buttonViewModel",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],xM.prototype,"onTap",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],xM);
_.A(xM,"yt-live-chat-reply-button-view-model",function(){return UB2()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var pQB;var v$J;var Bh=function(){var v=_.P.apply(this,arguments)||this;v.ariaLabel="";return v};
_.V(Bh,_.P);
Bh.prototype.dataChanged=function(){for(var v=(0,_.y1)(_.IB(this.hostElement).querySelector("#image"));v.firstChild;)v.removeChild(v.firstChild);if(this.data)if(this.data.icon){var e=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(e.polymerController.icon="yt-sys-icons:shield-filled",e.polymerController.defaultToFilled=!0):e.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();v.appendChild(e)}else if(this.data.customThumbnail){e=document.createElement("img");
var d=_.bc0(this.data.customThumbnail.thumbnails,16);d?(e.src=d,v.appendChild(e),e.setAttribute("alt",this.hostElement.ariaLabel||"")):_.xf(new _.kL("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Bh.prototype.identity=function(v){return v};
Bh.prototype.computeType=function(v){return YJ(v||void 0)};
Bh.prototype.dataChanged=Bh.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],Bh.prototype,"data",void 0);_.c([_.f({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.w("design:type",Object)],Bh.prototype,"ariaLabel",void 0);_.c([_.f({computed:"computeType(data)",reflectToAttribute:!0}),_.w("design:type",String)],Bh.prototype,"type",void 0);
_.c([_.f({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.w("design:type",String)],Bh.prototype,"sharedTooltipText",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("live_chat_enable_new_moderator_badge")}}),
_.w("design:type",Boolean)],Bh.prototype,"enableNewModeratorBadge",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Bh.prototype,"dataChanged",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Bh);
_.A(Bh,"yt-live-chat-author-badge-renderer",function(){if(v$J===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;pQB===void 0&&(pQB=document.createElement("template"));var E=pQB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);v$J=v}v=v$J;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var eyB;var dvi;var CR=function(){return _.P.apply(this,arguments)||this};
_.V(CR,_.P);_.W=CR.prototype;_.W.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"}}}}};
_.W.computeBadgesInsideChip=function(v){return v?v.filter(function(e){return YJ(e.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.W.computeBadgesOutsideChip=function(v){return this.prependChatBadges||!v?[]:v.filter(function(e){e=YJ(e.liveChatAuthorBadgeRenderer);return e!=="verified"&&e!=="owner"})};
_.W.computeBadgesBeforeChip=function(v){return this.prependChatBadges&&v?v.filter(function(e){e=YJ(e.liveChatAuthorBadgeRenderer);return e!=="verified"&&e!=="owner"}):[]};
_.W.computeIsHighlighted=function(v,e){var d=!!G0j(v,"owner"),E=!!G0j(v,"verified");v=!!G0j(v,"moderator");return(d||E&&!v)&&!e};
_.W.computeAuthorType=function(v){return JHH(v)};
_.W.computeAuthorClass=function(v,e){return e?(v?v+" ":"")+"single-line":v};
_.W.onSeedColorChanged=function(){_.N("live_chat_author_name_color_usernames")||_.N("live_chat_seed_color_usernames")||_.N("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):_.N("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
CR.prototype.onSeedColorChanged=CR.prototype.onSeedColorChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],CR.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],CR.prototype,"authorName",void 0);_.c([_.f(),_.w("design:type",Array)],CR.prototype,"authorBadges",void 0);
_.c([_.f({computed:"computeAuthorType(authorBadges)"}),_.w("design:type",String)],CR.prototype,"authorType",void 0);_.c([_.f({computed:"computeAuthorClass(authorType, singleLine)"}),_.w("design:type",String)],CR.prototype,"authorClass",void 0);_.c([_.f({computed:"computeBadgesInsideChip(authorBadges)"}),_.w("design:type",Array)],CR.prototype,"badgesInsideChip",void 0);_.c([_.f({computed:"computeBadgesOutsideChip(authorBadges)"}),_.w("design:type",Array)],CR.prototype,"badgesOutsideChip",void 0);
_.c([_.f({computed:"computeBadgesBeforeChip(authorBadges)"}),_.w("design:type",Array)],CR.prototype,"badgesBeforeChip",void 0);_.c([_.f({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.w("design:type",Boolean)],CR.prototype,"isHighlighted",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],CR.prototype,"singleLine",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],CR.prototype,"disableHighlighting",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],CR.prototype,"dashboardMoneyFeed",void 0);_.c([_.f({value:_.N("live_chat_prepend_badges"),reflectToAttribute:!0}),_.w("design:type",Boolean)],CR.prototype,"prependChatBadges",void 0);_.c([_.f(),_.w("design:type",String)],CR.prototype,"authorNameColor",void 0);_.c([_.sg("#author-name"),_.w("design:type",HTMLDivElement)],CR.prototype,"username",void 0);
_.c([_.$v("authorNameColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CR.prototype,"onSeedColorChanged",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],CR);
_.A(CR,"yt-live-chat-author-chip",function(){if(dvi===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;eyB===void 0&&(eyB=document.createElement("template"));var E=eyB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);dvi=v}v=dvi;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var E$u;var Twi;var XW=function(){var v=_.P.apply(this,arguments)||this;v.debounceCommand=_.rI(function(e){v.ytComponentBehavior.resolveCommand(e)},1500);
return v};
_.V(XW,_.P);XW.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var v=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",e,d,E=this.isHearted?(e=this.data)==null?void 0:e.unheartCommand:(d=this.data)==null?void 0:d.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.M0("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:v}));(v=_.lk(E))&&this.debounceCommand(v)}};
_.vP.Object.defineProperties(XW.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var v,e;if(!((v=this.data)==null?0:(e=v.creatorThumbnail)==null?0:e.sources))return{};v={thumbnails:[]};e={};e.url=this.data.creatorThumbnail.sources[0].url;v.thumbnails.push(e);return v}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((d=this.engagementState)==null?void 0:d.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}}});
XW.prototype.onTap=XW.prototype.onTap;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],XW.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],XW.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],XW.prototype,"data",void 0);
_.c([_.f({selectorArgs:["data.engagementStateKey"],selector:N70}),_.w("design:type",Object)],XW.prototype,"engagementState",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],XW.prototype,"thumbnailDetails",null);_.c([_.t("data","engagementState"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],XW.prototype,"isHearted",null);_.c([_.t("data","engagementState"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],XW.prototype,"isEditable",null);
_.c([_.t("data","engagementState"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],XW.prototype,"showCreatorView",null);_.c([_.t("data","engagementState"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],XW.prototype,"showButton",null);_.c([_.t("data","isHearted"),_.w("design:type",String),_.w("design:paramtypes",[])],XW.prototype,"label",null);_.c([_.t("data","isHearted"),_.w("design:type",Object),_.w("design:paramtypes",[])],XW.prototype,"heartHoverText",null);
_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],XW.prototype,"onTap",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],XW);
_.A(XW,"yt-live-chat-creator-heart-view-model",function(){if(Twi===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;E$u===void 0&&(E$u=document.createElement("template"));var E=E$u;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Twi=v}v=Twi;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var zX=function(){};
_.V(zX,YK);zX.prototype.JSC$13090_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:D_("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
zX.prototype.getApiPaths=function(){return[]};
zX.prototype.getExtension=function(){};
zX.prototype.JSC$13090_buildRequest=function(){};var SpB={},Wn6=(SpB.GET_DATASYNC_IDS=Md(zX),SpB);var asc,icn,Oc2,eKu,A5,Yp6,a66,bcg,Isn;asc="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");icn=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.wq=function(v,e,d,E,T,S,O,b,Y){this.endpointMap=v;this.networkManager=e;this.authService=d;this.responseProcessorMap=E;this.innertubeResponseStore=T;this.contextProcessors=S;this.asyncContextProcessors=O;this.localInnertubeRouter=b;this.requestSequencer=Y;this.inflightRequests=new Map;v.signalEndpointMap||(v.signalEndpointMap={});v.signalEndpointMap=Object.assign({},Wn6,v.signalEndpointMap)};
Oc2=function(v,e,d,E,T,S,O,b,Y){if(_.wq.instance!==void 0){if(E=_.wq.instance,v=[v!==E.endpointMap,e!==E.networkManager,d!==E.authService,T!==E.innertubeResponseStore,S!==E.contextProcessors,O!==E.asyncContextProcessors,b!==E.localInnertubeRouter],v.some(function(q){return q}))throw new _.kL("InnerTubeTransportService is already initialized",v);
}else _.wq.instance=new _.wq(v,e,d,E,T,S,O,b,Y)};
_.Qw=function(v,e,d){var E=E===void 0?UGE:E;var T=a66(v,e);return T?new _.yf(function(S,O){var b,Y,q,r,h;return _.I(function(K){switch(K.nextAddress){case 1:return K.yield(T,2);case 2:b=K.yieldResult;Y=b.JSC$13090_getRequest(e,d,E);if(!Y){O(new _.kL("Error: Failed to build request for command.",e));K.jumpTo(0);break}g1(Y.input);r=((q=Y.requestShell)==null?void 0:q.mode)==="cors"?"cors":void 0;if(v.authService.syncHeaders){h=Isn(Y.config,r);K.jumpTo(4);break}return K.yield(bcg(Y.config,r),5);case 5:h=
K.yieldResult;case 4:S(Yp6(v,Y,h)),_.s9(K)}})}):_.f1(new _.kL("Error: No request builder found for command.",e))};
eKu=function(v,e,d,E){var T=T===void 0?UGE:T;var S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F,g,Q;return _.I(function(v3){switch(v3.nextAddress){case 1:S=NOS(e,v.endpointMap);if(!S)throw new _.kL("Error: No streaming request builder found for command",e);O=S.JSC$13090_getRequest(e,d,T);if(!O)throw new _.kL("Failed to build YtRequest for streaming Command",e);if((b=v.localInnertubeRouter)==null||!b.shouldPreferLocalResponse(O.input,O.innerTubeRequest)){v3.jumpTo(2);break}return v3.yield(v.localInnertubeRouter.localInnertubeResponse(O.input,
O.innerTubeRequest),3);case 3:return Y=v3.yieldResult,q={},Y.playerResponse&&(A5(v,Y.playerResponse,O),q.player=Y.playerResponse,(r=E)==null||r(q,Y)),Y.watchNextResponse&&(A5(v,Y.watchNextResponse,O),q.content=Y.watchNextResponse,(h=E)==null||h(q,Y)),v3.return(q);case 2:k=((K=O.requestShell)==null?void 0:K.mode)==="cors"?"cors":void 0;if(v.authService.syncHeaders){J=Isn(O.config,k);v3.jumpTo(4);break}return v3.yield(bcg(O.config,k),5);case 5:J=v3.yieldResult;case 4:return X=(B=(R=O.requestShell)==
null?void 0:R.headers)!=null?B:{},O.requestShell=Object.assign({},O.requestShell,{headers:Object.assign({},X,J)}),Z=Object.assign({},O.requestShell),U=JSON.stringify(O.innerTubeRequest),O.requestShell.method==="POST"&&(Z=Object.assign({},Z,{body:U})),F=function(q7,m0){A5(v,m0.playerResponse||m0.watchNextResponse||m0.reelItemWatchResponse||m0.reelWatchSequenceResponse,O);E==null||E(q7,m0)},g={},v3.yield(mvB(v.networkManager,O.input,Z,F),6);
case 6:return g=v3.yieldResult,((Q=O.config)==null?0:Q.responseTick)&&_.zE(O.config.responseTick),v3.return(g)}})};
_.XB=function(v,e,d,E,T){T=T===void 0?{authStrategy:{identity:UGE}}:T;var S=S===void 0?!0:S;var O=function(){};
O=NsO(jx0(d));e.context||(e.context=_.COj(E,S));return new _.yf(function(b){var Y,q,r,h,K;return _.I(function(k){if(k.nextAddress==1)return Y=OPS(d),q=_.n2(Y),v.authService.syncHeaders?(r=Isn(T,q),k.jumpTo(2)):k.yield(bcg(T,q),3);k.nextAddress!=2&&(r=k.yieldResult);h=IXt(OPS(d));K={input:h,requestShell:D_(h),innerTubeRequest:e,config:T};b(Yp6(v,K,r,O));_.s9(k)})})};
A5=function(v,e,d){var E;if(e&&!(e==null?0:(E=e.sequenceMetaData)==null?0:E.skipProcessing)&&v.responseProcessorMap){E=_.a(asc);for(var T=E.next();!T.done;T=E.next())T=T.value,v.responseProcessorMap[T]&&v.responseProcessorMap[T].handleResponse(e,d)}};
Yp6=function(v,e,d,E){E=E===void 0?function(){}:E;
var T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F,g,Q,v3,q7,m0,$S,kS,N7,As,Ct,SA,xI,mg,pt,he,yB,te,oC,n7,SW,vc,jA,Ys;return _.I(function(s6){switch(s6.nextAddress){case 1:O=(T=e.config)==null?void 0:(S=T.storeStrategy)==null?void 0:S.storeKey;if(!(O&&v.innertubeResponseStore&&v.innertubeResponseStore.has(O))||((b=e.config)==null?0:(Y=b.storeStrategy)==null?0:Y.disableCache)){s6.jumpTo(2);break}return s6.yield(v.innertubeResponseStore.get(O),3);case 3:if((q=s6.yieldResult)&&!q.isExpired())return s6.return(Promise.resolve(_.UR(q)));
case 2:if(!((r=e)==null?0:(h=r.innerTubeRequest)==null?0:h.context)){s6.jumpTo(4);break}K=e.innerTubeRequest.context;if(!(v.asyncContextProcessors&&v.asyncContextProcessors.length>0)){s6.jumpTo(5);break}k=[];J=_.a(v.asyncContextProcessors);for(R=J.next();!R.done;R=J.next())B=R.value,X=B.processContext(e),X.wrappedPromise_&&k.push(X.wrappedPromise_);if(!(k.length>0)){s6.jumpTo(5);break}return s6.yield(Promise.all(k),5);case 5:Z=_.a(v.contextProcessors||[]),U=Z.next();case 8:if(U.done){s6.jumpTo(4);
break}F=U.value;return s6.yield(F.processContext(K),9);case 9:U=Z.next();s6.jumpTo(8);break;case 4:if((g=v.localInnertubeRouter)==null||!g.shouldPreferLocalResponse(e.input,e.innerTubeRequest)){s6.jumpTo(12);break}return s6.yield(v.localInnertubeRouter.localInnertubeResponse(e.input,e.innerTubeRequest),13);case 13:return Q=s6.yieldResult,A5(v,Q,e),s6.return(Q);case 12:return(m0=(q7=e.config)==null?void 0:q7.requestKey)&&v.inflightRequests.has(m0)?v3=v.inflightRequests.get(m0):($S=JSON.stringify(e.innerTubeRequest),
As=(N7=(kS=e.requestShell)==null?void 0:kS.headers)!=null?N7:{},e.requestShell=Object.assign({},e.requestShell,{headers:Object.assign({},As,d)}),Ct=Object.assign({},e.requestShell),e.requestShell.method==="POST"&&(Ct=Object.assign({},Ct,{body:$S})),((SA=e.config)==null?0:SA.requestTick)&&_.zE(e.config.requestTick),xI=function(){return v.networkManager.fetch(e.input,Ct,e.config)},v3=v.requestSequencer?yjB(v.requestSequencer,e,xI):xI(),m0&&v.inflightRequests.set(m0,v3)),s6.yield(v3,14);
case 14:(mg=s6.yieldResult)&&_.N("web_streaming_player")&&Array.isArray(mg)&&(mg=mg[0].playerResponse);if(mg&&"error"in mg&&((pt=mg)==null?0:(he=pt.error)==null?0:he.details))for(yB=mg.error.details,te=_.a(yB),oC=te.next();!oC.done;oC=te.next())n7=oC.value,(SW=n7["@type"])&&icn.indexOf(SW)>-1&&(delete n7["@type"],mg=n7);m0&&v.inflightRequests.has(m0)&&v.inflightRequests.delete(m0);((vc=e.config)==null?0:vc.responseTick)&&_.zE(e.config.responseTick);if(mg||(jA=v.localInnertubeRouter)==null||!jA.canProvideFallbackResponse(e.input,
e.innerTubeRequest)){s6.jumpTo(15);break}return s6.yield(v.localInnertubeRouter.localFallbackInnertubeResponse(e.input,e.innerTubeRequest),16);case 16:mg=s6.yieldResult;case 15:return A5(v,mg,e),((Ys=e.config)==null?0:Ys.processorTick)&&_.zE(e.config.processorTick),E(),s6.return(mg||void 0)}})};
_.Fj=function(v,e){return s1H(e,v.endpointMap)};
a66=function(v,e){v=kGM(e,v.endpointMap);if(v!==void 0)return Promise.resolve(v)};
bcg=function(v,e){var d,E,T,S;return _.I(function(O){if(O.nextAddress==1){T=(d=v)==null?void 0:(E=d.authStrategy)==null?void 0:E.sessionIndex;var b=O.yield;var Y=_.qg(Lx7({sessionIndex:T}));return b.call(O,Y,2)}S=O.yieldResult;return O.return(Promise.resolve(Object.assign({},LGt(e),S)))})};
Isn=function(v,e){var d;v=v==null?void 0:(d=v.authStrategy)==null?void 0:d.sessionIndex;d=Lx7({sessionIndex:v});return Object.assign({},LGt(e),d)};var qpE,rjB,hye,Kn7,$v0,jRc,kmB,Lni,wD,V3B,o$A,NwB,JjI;qpE=0;rjB=/tone[1-5]/;hye=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Kn7="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
$v0=Number.MAX_SAFE_INTEGER;jRc=RegExp("\ufe0f","g");_.Zb=function(v){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;v&&_.sRA(this,v)};
_.sRA=function(v,e){try{_.y8(e,{context:v,onSuccess:function(E,T){Array.isArray(T)?v.load(T):(E=new _.kL("Emoji manager JSON response was not an array!",{response:T}),_.RI(E))},
onError:function(E){E=new _.kL("Failed to retrieve emoji manager initial JSON data!",{url:e,statusCode:_.OI(E).toString()});_.xf(E)}})}catch(E){var d=new _.kL("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:e});
_.xf(d)}};
_.Zb.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Zb.prototype.load=function(v,e){if(e)if(v.length)v=v.concat(e.emojis);else{this.emojis=e.emojis;this.emojiMap=e.emojiMap;this.emojiShortcutMap=e.emojiShortcutMap;this.emojiShortcutCharMap=NwB(e);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=e.emojiRegex;return}this.emojis=[].concat(_.t7(new Set(this.emojis.concat(v))));this.hasInitializedShortcutCharMap=!1;v=Array(this.emojis.length);for(e=0;e<this.emojis.length;e++){var d=this.emojis[e];if(d.emojiId){this.emojiMap[d.emojiId]=d;this.emojiMap[d.emojiId].index=
e;for(var E=0;d.shortcuts&&E<d.shortcuts.length;E++)this.emojiShortcutMap[d.shortcuts[E].toLocaleLowerCase()]=d;v[e]=d.isCustomEmoji&&d.shortcuts?d.shortcuts[0]:d.emojiId}}v.sort(function(T,S){return S.length-T.length});
if(v.length)try{this.emojiRegex=new RegExp(v.join("|").replace("*","\\*"),"gi")}catch(T){this.emojiRegex=/$./}else this.emojiRegex=/$./};
kmB=function(v,e){e=_.a(e);for(var d=e.next();!d.done;d=e.next()){var E=d.value;if(E.emojiId&&v.emojiMap[E.emojiId]){d=Object.assign({},v.emojiMap[E.emojiId],E);v.emojiMap[E.emojiId]=d;var T=void 0;d.index&&((T=v.emojis[d.index])==null?void 0:T.emojiId)===E.emojiId&&(v.emojis[d.index]=d);E=void 0;if((E=d.shortcuts)==null?0:E.length)for(v.hasInitializedShortcutCharMap=!1,E=_.a(d.shortcuts),T=E.next();!T.done;T=E.next())v.emojiShortcutMap[T.value.toLocaleLowerCase()]=d}}};
Lni=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return E.yield(_.Jd.getInstance(),2);if(E.nextAddress!=3)return(e=E.yieldResult)?E.yield(e.get("ytlc-emoji-pref"),3):E.return();(d=E.yieldResult)&&kmB(v,Object.keys(d).map(function(T){return{emojiId:T,stickyPrefId:d[T]}}).filter(function(T){return!!T.emojiId&&!!T.stickyPrefId}));
_.s9(E)})};
_.ch=function(v,e,d){return(v=v.emojiMap[e])&&(!v.isLocked||d!==void 0&&d)?v:void 0};
wD=function(v,e,d){d=_.ch(v,e,d===void 0?!1:d);var E=e.match("\u200d");d&&v.skinTone!==0&&(v=(E==null?void 0:E.length)===1?_.ch(v,e.replace("\u200d",hye[v.skinTone]+"\u200d")):_.ch(v,e+hye[v.skinTone]))&&(d=v);return d};
V3B=function(v,e){var d=v.emojiMap[e];return(d==null?0:d.stickyPrefId)?v.emojiMap[d.stickyPrefId]:wD(v,e)};
_.iw=function(v,e){v=v.emojiShortcutMap[e.toLocaleLowerCase()];return!v||v.isLocked?null:v};
o$A=function(v,e,d){return NwB(v,d===void 0?!1:d)[e]||{}};
NwB=function(v,e){e=e===void 0?!1:e;if(!v.hasInitializedShortcutCharMap){v.hasInitializedShortcutCharMap=!0;for(var d=0;d<v.emojis.length;d++){var E=v.emojis[d];if(!(E.isLocked||e&&E.isCustomEmoji&&E.emojiId&&!v.pickerCustomEmojiIds.includes(E.emojiId)))for(var T=0;E.shortcuts&&T<E.shortcuts.length;T++){var S=E.shortcuts[T];S.startsWith(":_")&&E.isCustomEmoji&&(v.emojiShortcutCharMap[":_"]==null&&(v.emojiShortcutCharMap[":_"]=Object.create(null)),v.emojiShortcutCharMap[":_"][S]=E);if(!(S.length<3||
!E.isCustomEmoji&&rjB.test(S))){var O=S.substr(0,3).toLocaleLowerCase();v.emojiShortcutCharMap[O]==null&&(v.emojiShortcutCharMap[O]=Object.create(null));v.emojiShortcutCharMap[O][S]=E}}}}return v.emojiShortcutCharMap};
_.Zb.prototype.createEmoji=function(v,e){e=e===void 0?!0:e;var d=document.createElement("img");v.isCustomEmoji||d.classList.add("small-emoji");d.classList.add("emoji");d.classList.add("yt-formatted-string");d.src=v.image?_.i2(v.image.thumbnails,this.emojiSize)||"":"";var E=void 0;v.image&&v.image.accessibility&&v.image.accessibility.accessibilityData&&(E=v.image.accessibility.accessibilityData.label);d.alt=E?E:(v.isCustomEmoji&&v.shortcuts?v.shortcuts[0]:v.emojiId)||"";v.isCustomEmoji&&(d.dataset.emojiId=
v.emojiId);_.Tw&&(d.setAttribute("contenteditable","false"),d.setAttribute("unselectable","on"));e&&(v.shortcuts&&v.shortcuts.length&&d.setAttribute("shared-tooltip-text",v.shortcuts[0]),d.id="emoji-"+qpE++);return d};
_.Zb.prototype.createDocumentFragment=function(v,e,d,E){e=e===void 0?!1:e;d=d===void 0?!0:d;E=E===void 0?!1:E;v=v.replace(jRc,"");for(var T=document.createDocumentFragment(),S=0,O,b=0;(O=this.emojiRegex.exec(v))!=null;){var Y=_.ch(this,O[0])||_.iw(this,O[0]);!Y||Y.isCustomEmoji&&!e||(Y=this.createEmoji(Y,d),S!==O.index&&T.appendChild(document.createTextNode(v.substring(S,O.index))),T.appendChild(Y),S=O.index+O[0].length,b++)}if(!E||b)return T.appendChild(document.createTextNode(v.substr(S))),T};
JjI=function(v,e,d){var E,T,S,O,b,Y,q,r,h;return _.I(function(K){if(K.nextAddress==1){if(!e.emojiId||!v.emojiMap[e.emojiId])return K.return();E=Object.assign({},v.emojiMap[e.emojiId],{stickyPrefId:d});v.emojiMap[e.emojiId]=E;e.index&&((T=v.emojis[e.index])==null?void 0:T.emojiId)===e.emojiId&&(v.emojis[e.index]=E);if((S=e.shortcuts)==null?0:S.length)for(v.hasInitializedShortcutCharMap=!1,O=_.a(e.shortcuts),b=O.next();!b.done;b=O.next())Y=b.value,v.emojiShortcutMap[Y.toLocaleLowerCase()]=E;return K.yield(_.Jd.getInstance(),
2)}if(K.nextAddress!=4)return(q=K.yieldResult)?K.yield(q.get("ytlc-emoji-pref"),4):K.jumpTo(0);h=(r=K.yieldResult)!=null?r:{};h[e.emojiId]=d;return K.yield(q.set("ytlc-emoji-pref",h,$v0),0)})};
_.FW=new _.Zb;var t3E;_.Qi={};
t3E={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.N("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:_.N("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 DY(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 v=_.IB(this.hostElement||this).querySelector("#inline-action-button-container");v&&v.setAttribute("aria-hidden","true");this.menuButton=_.IB(this.hostElement).querySelector("#menu-button")},
attached:function(){var v=this.menuButton;v&&(v.addEventListener("focusin",_.hG(this,this.onMenuButtonFocus_)),v.addEventListener("focusout",_.hG(this,this.onMenuButtonBlur_)))},
detached:function(){var v=this.menuButton;v&&(v.removeEventListener("focusin",_.hG(this,this.onMenuButtonFocus_)),v.removeEventListener("focusout",_.hG(this,this.onMenuButtonBlur_)))},
identity:_.B3,truthy:function(v){return!!v},
computeTimestampString:function(v){return v?v.timestampText?this.getSimpleString(v.timestampText):this.TIME_FORMATTER.format(new Date(v.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(v){return v},
computeMenuVisible_:function(v,e){return v||e},
computeHasInlineActionButtons:function(v){if(!v)return!1;var e,d;return!((e=v.inlineActionButtons)==null||!e.length)||!((d=v.additionalInlineActionButtons)==null||!d.length)},
createDocumentFragmentFromString:function(v){var e=_.FW.createDocumentFragment.bind(_.FW),d;if((d=this.participantsManager)==null||!d.viewerRegex)return e(v);d=document.createDocumentFragment();for(var E=0,T;(T=this.participantsManager.viewerRegex.exec(v))!=null;){if(T.index>0){var S=":"+T[0]+":";if((_.ch(_.FW,S)||_.iw(_.FW,S))&&v.indexOf(S)===T.index-1)continue}d.appendChild(e(v.substring(E,T.index)));E=document.createElement("span");E.appendChild(e(T[0]));E.classList.add("mention");d.appendChild(E);
E=T.index+T[0].length}d.appendChild(e(v.substring(E)));return d},
createDocumentFragment:function(v){var e=document.createDocumentFragment();if(v.simpleText)return e.appendChild(this.createDocumentFragmentFromString(v.simpleText)),e;if(!v.runs)return e;for(var d=0;d<v.runs.length;d++){var E=v.runs[d];if(E.emoji)e.appendChild(_.FW.createEmoji(E.emoji));else if(E.text)if(E.navigationEndpoint){var T=document.createElement("a");T.classList.add("yt-simple-endpoint");ZvM(T,E.navigationEndpoint);_.IB(T).appendChild(this.createDocumentFragmentFromString(E.text));e.appendChild(T)}else e.appendChild(this.createDocumentFragmentFromString(E.text))}return e},
hasModerationOverlayVisible:function(){var v;return((v=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:v.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(v){v.composedPath().some(function(e){return(e=e instanceof Element?e:null)?e.tagName&&(e.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||e.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.N("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(v)},
colorFromDecimal:function(v){return IWt(v)},
markAsDeleted:function(v,e){this.set("data.deletedStateMessage",v);this.set("data.showOriginalContentMessage",e)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(v){if(this.data.contextMenuEndpoint){var e=_.dk().resolve(_.zo),d=this.data.contextMenuEndpoint,E;(E=_.wq.instance)&&_.Fj(E,d)?(e=GmB(e,d),E=_.XB(E,{},e)):E=_.M3M(e,d);E.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);v&&v.stopPropagation()}},
handleGetContextMenuResponse_:function(v){var e=_.wq.instance;e&&_.Fj(e,{liveChatEndpoint:{}})||(v=v.response);v.liveChatItemContextMenuSupportedRenderers&&v.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(v.liveChatItemContextMenuSupportedRenderers.menuRenderer);v.actions&&_.b4(this.hostElement,"yt-live-chat-actions",[v.actions])},
handleGetContextMenuError:function(v){if(v instanceof Error||v instanceof Object||v instanceof String)var e=v;_.RI(new _.kL("Error encountered calling GetLiveChatItemContextMenu",e))},
showContextMenu_:function(v){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:v}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Iq(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Iq(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Qi.YtLiveChatItemBehavior=[t3E,_.cl.YtComponentBehavior,_.h5.YtOpenPopupBehavior];_.gD=function(){};var fs6;var Rye;var PNA;var xvA;var u$=function(){var v=_.P.apply(this,arguments)||this;v.active=!1;v.identity=_.B3;return v};
_.V(u$,_.P);u$.prototype.dataChanged=function(){this.active=!1};
u$.prototype.onClick=function(){_.Iq(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
u$.prototype.dataChanged=u$.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],u$.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],u$.prototype,"active",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],u$.prototype,"dataChanged",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],u$);
_.A(u$,"yt-live-chat-text-input-field-suggestion",function(){if(xvA===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;PNA===void 0&&(PNA=document.createElement("template"));var E=PNA;d.call(e,E.content.cloneNode(!0),v.content.firstChild);xvA=v}v=xvA;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});_.nR=function(v,e,d){return CustomEvent.call(this,v,{detail:{value:e,path:d}})||this};
_.V(_.nR,CustomEvent);_.Db=function(){var v=_.P.apply(this,arguments)||this;v.viewerName=null;v.actionMap={"yt-live-chat-actions":"onChatMessage_"};v.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];v.PARTICIPANT_TIME_USEC_=3E8;return v};
_.V(_.Db,_.P);_.W=_.Db.prototype;_.W.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.W.addParticipant=function(v){var e=_.GOO(this.participants,v,function(E,T){E=E[Object.keys(E)[0]];T=T[Object.keys(T)[0]];E=String(_.vv(E.authorName)).toLowerCase();T=String(_.vv(T.authorName)).toLowerCase();return E<T?-1:E==T?0:1}.bind(this));
if(e>=0){var d=this.participants[e];d[Object.keys(d)[0]].timestampUsec&&this.splice("participants",e,1,v)}else this.splice("participants",-e-1,0,v);v=v[Object.keys(v)[0]];e=_.vv(v.authorName).toLocaleLowerCase();d=e.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(d)||(this.allParticipantsCharMap_[d]={});this.allParticipantsCharMap_[d][e]=v};
_.W.getAuthorsFromPrefix=function(v){return this.allParticipantsCharMap_.hasOwnProperty(v)?this.allParticipantsCharMap_[v]:null};
_.W.computeViewerRegex_=function(v){if(!v)return null;v=v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var e=v.indexOf("@")===0&&_.N("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(e+v.replace(/ /g,"\\s*")+"|^"+v.replace(/ /g,"\\s*")+"$|^"+v.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+v.replace(/ /g,"\\s*")+"$|(?<=\\s)"+v.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.W.checkForStaleParticipants_=function(){var v=this;this.trimOldParticipants_();this.asyncHandle_&&Cdj(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Q1(function(){v.checkForStaleParticipants_()},3E4))};
_.W.onChatMessage_=function(v){var e=this,d=Date.now()*1E3;v.forEach(function(E){if(E=_.L(E,tT6)){E=E.item;var T=Object.keys(E)[0];e.SUPPORTED_ITEM_TYPES_.indexOf(T)!=-1&&E[T].timestampUsec>=d-e.PARTICIPANT_TIME_USEC_&&e.addParticipant(E)}},this);
this.checkForStaleParticipants_()};
_.W.trimOldParticipants_=function(){for(var v=Date.now()*1E3,e=this.participants.length-1;e>=0;e--){var d=this.participants[e];d=d[Object.keys(d)[0]];d.timestampUsec&&d.timestampUsec<v-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",e,1)}};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],_.Db.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],_.Db.prototype,"viewerName",void 0);_.c([_.f({computed:"computeViewerRegex_(viewerName)"}),_.w("design:type",Object)],_.Db.prototype,"viewerRegex",void 0);_.c([_.f({value:function(){return[]},
notify:!0}),_.w("design:type",Array)],_.Db.prototype,"participants",void 0);_.c([_.lh({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Db);var BwE=/.*([:@#].*?)$/,Ue=/\u00a0/g,CNM=String.fromCharCode(160),XtA={placeholderTextColor:"--yt-live-chat-text-input-field-placeholder-color",activeUnderlineColor:"--yt-live-chat-text-input-field-active-underline-color",inactiveUnderlineColor:"--yt-live-chat-text-input-field-inactive-underline-color"},pR=function(){var v=_.P.apply(this,arguments)||this;v.disabled=!1;v.liveChatRichMessageInput=null;v.messageInput=null;v.isValidWithNoInputText=!1;v.suggestions=[];v.emojiManager=_.FW;v.inputMethodEditorActive=
!1;v.suggestionIndex=-1;v.JSC$14095_lastSuggestionRange=null;return v};
_.V(pR,_.P);_.W=pR.prototype;_.W.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.W.attached=function(){_.S1&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.W.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.W.dataChanged=function(){if(!this.ignoreColorMapping){var v=!1,e={},d;for(d in XtA)this.data&&this.data.hasOwnProperty(d)&&(e[XtA[d]]=this.colorFromDecimal(this.data[d]),v=!0);v&&_.qr(this.hostElement,e)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.W.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.W.colorFromDecimal=function(v){v=Math.floor(Number(v));return"rgba("+[v>>16&255,v>>8&255,v&255,(v>>24&255)/255].join()+")"};
_.W.preventDrag=function(v){v.dataTransfer&&(v.dataTransfer.dropEffect="none");v.preventDefault()};
_.W.preventResize=function(v){v.returnValue=!1};
_.W.onInputChange=function(){var v=this.characterCount,e=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&e&&e.remove();if(!e&&this.characterCount>this.maxCharacterLimit){var d=window.getSelection();if(d){var E=d.getRangeAt(0);d.removeAllRanges();d.addRange(E)}}if(d=this.getCurrentRange())E=this.calculateTextBeforeRange(d),this.completeEmojisInRange(d,E,!0)||this.updateSuggestions(d,E);E=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(E);
_.Iq(this.hostElement,"yt-live-chat-message-input-change",E);e&&this.characterCount===0&&e.remove();d&&d.commonAncestorContainer.parentElement.id==="input"&&d.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>v):d&&!d.collapsed&&d.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(v=this.input.childNodes.length-1;v>=0;v--)this.input.childNodes[v].nodeName==="BR"&&this.input.childNodes[v].remove()};
_.W.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.W.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var v=this.getCurrentRange();v&&v.commonAncestorContainer.parentElement.id==="input"&&v.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.W.mergeOverflowText=function(v){if(v){var e=document.createRange();e.selectNodeContents(v);e=e.extractContents();this.input.insertBefore(e,v)}};
_.W.checkRangeAtEndOfInput=function(){var v=this.getCurrentRange();if(v){var e=_.IB(this.hostElement).querySelector("#overflow-text"),d=document.createRange();e&&e.previousSibling?e.previousSibling instanceof HTMLImageElement?d.selectNode(e.previousSibling):d.selectNodeContents(e.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?d.selectNode(this.input.lastChild):d.selectNodeContents(this.input.lastChild));d.collapse(!1);return d.isPointInRange(v.startContainer,
v.startOffset)}return!1};
_.W.handleOverflowText=function(v){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var e=_.IB(this.hostElement).querySelector("#overflow-text"),d=this.getCurrentRange();this.input.normalize();v=this.checkRangeAtEndOfInput()&&v;this.mergeOverflowText(e);for(var E,T=0,S=0,O,b=this.input.childNodes,Y=0;Y<b.length;Y++){var q=b[Y];q instanceof Text?(S+=q.textContent.length,S>this.maxCharacterLimit&&(E=q,T=this.maxCharacterLimit+q.textContent.length-S)):q instanceof HTMLImageElement&&
(E=void 0,S=q.dataset.emojiId&&((E=this.data)==null?0:E.emojiCharacterCount)?S+this.data.emojiCharacterCount:S+q.alt.length,E=this.input,T=Y);if(S>this.maxCharacterLimit&&E){O=document.createRange();O.collapse(!1);e?(S=this.input.lastChild.previousSibling,S instanceof Text?O.setEnd(this.input.lastChild.previousSibling,S.textContent.length):S instanceof HTMLImageElement&&O.setEnd(this.input,this.input.childNodes.length-1)):O.selectNodeContents(this.input);O.setStart(E,T);break}}O&&(E=!1,d&&(v=O.isPointInRange(d.startContainer,
d.startOffset-1)),e||(e=document.createElement("span"),e.id="overflow-text",e.textContent="",e.setAttribute("contenteditable","true"),_.IB(_.IB(this.hostElement).querySelector("#input")).appendChild(e),E=!0),e&&(d=O.extractContents(),e.insertBefore(d,e.firstChild),v&&e.firstChild&&(d=document.createRange(),E?d.setStartAfter(e.lastChild):d.setStartAfter(e.firstChild),d.collapse(!0),e=window.getSelection(),e.removeAllRanges(),e.addRange(d))))}};
_.W.checkForDuplicateSpans=function(){for(var v=0;v<this.input.childNodes.length;v++){var e=this.input.childNodes[v];if(e.nodeName==="SPAN"){var d=document.createRange();d.selectNodeContents(e);d=d.extractContents();this.input.insertBefore(d,e);e.remove()}}this.handleOverflowText(!0)};
_.W.getCurrentRange=function(){var v=window.getSelection();return v&&v.rangeCount?v.getRangeAt(0).cloneRange():null};
_.W.getInputRange=function(){var v=this.getCurrentRange();if(v){for(var e=v.commonAncestorContainer,d=!1,E=_.IB(this.hostElement).querySelector("#input");e;){if(e===E){d=!0;break}e=e.parentNode}d||(v=null)}v||(v=this.getRangeAtEnd());return v};
_.W.getRangeAtEnd=function(){var v=document.createRange(),e=_.IB(this.hostElement).querySelector("#input").lastChild;!e||e.nodeName!=="#text"&&e.nodeName!=="SPAN"?(v.selectNodeContents(_.IB(this.hostElement).querySelector("#input")),v.collapse(!1)):e.nodeName==="#text"?v.setStart(e,e.textContent.length):v.setStart(e,e.childNodes.length);return v};
_.W.getChatParticipantSuggestions=function(v,e,d,E){var T=_.N("live_chat_enable_handles_web_text_input_update");if(e)for(var S in e)if(S.indexOf(v)===0||T&&S.indexOf(d+v)===0){var O=e[S],b=_.vv(O.authorName);E.push({suggestion:{author:!0,authorType:d,image:O.authorPhoto,alt:b,text:b}});if(E.length>=64)break}};
_.W.getSuggestions=function(v){var e=[],d=v.substring(0,3),E=o$A(_.FW,d,!0);if(E)for(var T in E)if(T.toLocaleLowerCase().indexOf(v)===0){var S=E[T];if(S&&S.emojiId){if(S=V3B(_.FW,S.emojiId)){var O=void 0,b=void 0,Y=void 0,q=void 0,r=((O=S.image)==null?0:(b=O.accessibility)==null?0:(Y=b.accessibilityData)==null?0:Y.label)||S.isCustomEmoji?(q=S.shortcuts)==null?void 0:q[0]:S.emojiId;e.push({suggestion:{emoji:!0,image:S.image,alt:r,text:T,textToInsertWhenSelected:S.isCustomEmoji?T:r}})}if(e.length>=
64)break}}if(!this.participantsManager)return null;if(d.indexOf("@")===0||d.indexOf("#")===0)E=d.charAt(0),v=v.substring(1),T=_.N("live_chat_enable_handles_web_text_input_update"),d.indexOf("@")===0&&T&&(T=this.participantsManager.getAuthorsFromPrefix(d.substring(0,2)),this.getChatParticipantSuggestions(v,T,E,e)),d=d.substring(1),d=this.participantsManager.getAuthorsFromPrefix(d),this.getChatParticipantSuggestions(v,d,E,e);return e?e.sort(function(h,K){return K.suggestion.text<h.suggestion.text?-1:
K.suggestion.text===h.suggestion.text?0:1}):null};
_.W.insertSuggestion=function(v){var e=_.N("live_chat_enable_handles_web_text_input_update"),d=v.authorType;e=v.text.indexOf(d)===0&&e?v.text+CNM:d+v.text+CNM;v.emoji?this.insertTextAtRange(this.JSC$14095_lastSuggestionRange,v.textToInsertWhenSelected||""):v.author&&this.insertTextAtRange(this.JSC$14095_lastSuggestionRange,e)};
_.W.updateSuggestionsAtCaret=function(){var v=this.getCurrentRange();v&&this.updateSuggestions(v,this.calculateTextBeforeRange(v))};
_.W.offsetStartOfRangeBy=function(v,e){for(;e>0;)if(v.startOffset-e>=0){v.setStart(v.startContainer,v.startOffset-e);break}else{e=v.startContainer instanceof HTMLImageElement?e-v.startContainer.alt.length:e-v.startOffset;var d=v.startContainer.previousSibling;if(!d){v.setStart(v.startContainer,0);break}if(_.N("live_chat_require_space_for_autocomplete_emoji")){var E=void 0,T=void 0;v.setStart(d,((E=d)==null?void 0:(T=E.textContent)==null?void 0:T.length)||0)}else v.setStart(d,d.childNodes.length||
0)}};
_.W.updateSuggestions=function(v,e){var d=this;this.JSC$14095_lastSuggestionRange&&(this.JSC$14095_lastSuggestionRange.detach(),this.JSC$14095_lastSuggestionRange=null);if((e=BwE.exec(e))&&e.length&&(e=e[e.length-1].toLocaleLowerCase(),e.length>2&&(this.offsetStartOfRangeBy(v,e.length),this.JSC$14095_lastSuggestionRange=v,(v=this.getSuggestions(e))&&v.length))){this.suggestions=v;_.Uh(this,function(){_.IB(d.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(v.length-1);return}this.dropdown.opened=!1};
_.W.completeEmojisInRange=function(v,e,d){var E=e.replace(/[\s\xa0]+$/,"");e=e.length-E.length;E=E.split(" ");E=E[E.length-1].trim().toLocaleLowerCase();var T=E.lastIndexOf(":");if(d&&!e&&T!==E.length-1)return!1;T!==-1&&(d=E.lastIndexOf(":",T-1),d!==-1&&(E=E.substring(d)));if((d=_.iw(_.FW,E))&&d.emojiId){d=V3B(_.FW,d.emojiId)||null;this.offsetStartOfRangeBy(v,E.length+e);var S,O,b,Y;E=(((S=d)==null?0:S.isCustomEmoji)?(O=d)==null?void 0:(b=O.shortcuts)==null?void 0:b[0]:(Y=d)==null?void 0:Y.emojiId)||
"";e&&(E+=CNM);this.insertTextAtRange(v,E);this.dropdown.opened=!1;return!0}return!1};
_.W.onSuggestion=function(v){this.insertSuggestion(v.detail);this.dropdown.opened=!1};
_.W.onKeyPress=function(v){v.keyCode===13&&(v.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Iq(this.hostElement,"yt-live-chat-send-message"))};
_.W.completeEmojis=function(){var v=document.createRange(),e=_.IB(this.hostElement).querySelector("#input").lastChild;e?v.setStart(e,e.childNodes.length):(v.selectNodeContents(_.IB(this.hostElement).querySelector("#input")),v.collapse(!1));this.completeEmojisInRange(v,this.calculateTextBeforeRange(v),_.N("live_chat_require_space_for_autocomplete_emoji"))};
_.W.maybePreventTextFormatting=function(v){!_.OU||!v.ctrlKey&&!v.metaKey||v.keyCode!==66&&v.keyCode!==73||(v.stopImmediatePropagation(),v.preventDefault())};
_.W.onKeyDown=function(v){this.maybePreventTextFormatting(v);if(this.dropdown.opened)switch(v.keyCode){case 27:this.dropdown.opened=!1;v.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;v.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);v.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),v.preventDefault()}};
_.W.onKeyUp=function(v){switch(v.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Tw)this.onInputChange()};
_.W.changeSuggestionIndex=function(v){if(this.dropdown.opened){var e=_.IB(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<e.children.length&&(e.children[this.suggestionIndex].active=!1);var d=this.suggestions.length;this.suggestionIndex=(v+d)%d;v=e.children[this.suggestionIndex];v.active=!0;e.scrollTop=v.offsetTop}};
_.W.onInputPaste=function(v){v.preventDefault();(v=v.clipboardData)&&v.types&&(v=v.getData("text/plain")||"",v=v.replace(/\n/g,""),this.insertText(v));(v=this.getCurrentRange())&&v.commonAncestorContainer.parentElement.id==="input"&&v.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.W.onFocus=function(){this._setFocused(!0)};
_.W.onBlur=function(){this._setFocused(!1)};
_.W.insertText=function(v){this.insertTextAtRange(this.getInputRange(),v)};
_.W.insertTextAtRange=function(v,e){if(v&&(v.collapsed||v.deleteContents(),e=_.FW.createDocumentFragment(e,!0,!1))){for(var d=_.a((e==null?void 0:e.childNodes)||[]),E=d.next();!E.done;E=d.next()){E=E.value;var T=void 0,S=void 0,O=void 0,b=void 0,Y=void 0;(O=(T=window)==null?void 0:(S=T.ShadyCSS)==null?void 0:S.ScopingShim)==null||(Y=(b=O).scopeNode)==null||Y.call(b,E,this.hostElement.localName)}d=e.lastChild;v.insertNode(e);this.focused||this.input.focus();if(this.focused){v=v.cloneRange();v.selectNodeContents(d);
v.collapse(!1);if(e=window.getSelection())e.removeAllRanges(),e.addRange(v);v.commonAncestorContainer.parentElement.id==="input"&&v.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}v=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(v);_.Iq(this.hostElement,"yt-live-chat-message-input-change",v)}};
_.W.setLiveChatRichMessageInput=function(v){_.IB(_.IB(this.hostElement).querySelector("#input")).textContent="";if(v&&v.textSegments){for(var e=0;e<v.textSegments.length;e++){var d=v.textSegments[e];d.text?_.IB(_.IB(this.hostElement).querySelector("#input")).appendChild(_.FW.createDocumentFragment(d.text,!0,!1)):d.emojiId&&(d=_.ch(_.FW,d.emojiId))&&_.IB(_.IB(this.hostElement).querySelector("#input")).appendChild(_.FW.createEmoji(d,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.W.setText=function(v){this.setLiveChatRichMessageInput(v?{textSegments:[{text:v}]}:null)};
_.W.calculateTextBeforeRange=function(v){var e="",d=v.startContainer;if(d&&d instanceof Text){var E;e=((E=d.textContent)==null?void 0:E.substring(0,v.startOffset))||"";d=d.previousSibling}for(;d&&d instanceof Text;)e=d.textContent+e,d=d.previousSibling;return e.replace(Ue," ")};
_.W.calculateLiveChatRichMessageInput=function(){for(var v=[],e="",d=_.IB(_.IB(this.hostElement).querySelector("#input")).childNodes,E=0;E<d.length;E++){var T=d[E];T instanceof Text?e+=T.textContent:T instanceof HTMLImageElement&&(T.dataset.emojiId?(e&&(v.push({text:e.replace(Ue," ")}),e=""),v.push({emojiId:T.dataset.emojiId})):e+=T.alt)}e&&v.push({text:e.replace(Ue," ")});if(d=_.IB(this.hostElement).querySelector("#overflow-text")){e="";d=d.childNodes;for(E=0;E<d.length;E++)T=d[E],T instanceof Text?
e+=T.textContent:T instanceof HTMLImageElement&&(T.dataset.emojiId?(e&&(v.push({text:e.replace(Ue," ")}),e=""),v.push({emojiId:T.dataset.emojiId})):e+=T.alt);e&&v.push({text:e.replace(Ue," ")})}return{textSegments:v}};
_.W.computeCharacterCount=function(v){if(!v||!v.textSegments)return 0;for(var e=0,d=0;d<v.textSegments.length;d++){var E=v.textSegments[d];if(E.text)e+=E.text.length;else if(E.emojiId){var T=void 0;if((T=this.data)==null?0:T.emojiCharacterCount)e+=this.data.emojiCharacterCount;else{var S=T=void 0,O=void 0;e+=((S=_.ch(_.FW,(T=E)==null?void 0:T.emojiId))==null?void 0:(O=S.shortcuts)==null?void 0:O[0].length)||0}}}return e};
_.W.characterCountChanged=function(){_.Iq(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.W.focusedChanged=function(){this.hostElement.dispatchEvent(new _.nR("focused-changed",this.focused))};
_.W.focus=function(){this.setFocus(!1)};
_.W.focusAtEnd=function(){this.setFocus(!0)};
_.W.setFocus=function(v){v=v?this.getRangeAtEnd():this.getInputRange();_.IB(this.hostElement).querySelector("#input").focus();var e=window.getSelection();e&&(e.removeAllRanges(),e.addRange(v))};
_.W.insertEmoji=function(v){var e,d=((v==null?0:v.isCustomEmoji)?(e=v.shortcuts)==null?void 0:e[0]:v==null?void 0:v.emojiId)||"";this.insertText(d)};
_.W.computeText=function(v){if(!v||!v.textSegments)return"";for(var e="",d=0;d<v.textSegments.length;d++){var E=v.textSegments[d];if(E.text)e+=E.text;else if(E.emojiId){var T=void 0,S=void 0,O=void 0;e+=((S=_.ch(_.FW,(T=E)==null?void 0:T.emojiId))==null?void 0:(O=S.shortcuts)==null?void 0:O[0])||""}}return e};
_.W.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.vP.Object.defineProperties(pR.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
pR.prototype.focusedChanged=pR.prototype.focusedChanged;pR.prototype.characterCountChanged=pR.prototype.characterCountChanged;pR.prototype.onSuggestion=pR.prototype.onSuggestion;pR.prototype.onMessageSet=pR.prototype.onMessageSet;pR.prototype.dataChanged=pR.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],pR.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pR.prototype,"disabled",void 0);_.c([_.t("disabled"),_.w("design:type",Number),_.w("design:paramtypes",[])],pR.prototype,"inputTabIndex",null);_.c([_.t("data.maxCharacterLimit"),_.f({readOnly:!0,notify:!0}),_.w("design:type",Number),_.w("design:paramtypes",[])],pR.prototype,"maxCharacterLimit",null);
_.c([_.t("liveChatRichMessageInput"),_.f({readOnly:!0,notify:!0}),_.w("design:type",Number),_.w("design:paramtypes",[])],pR.prototype,"characterCount",null);_.c([_.t("maxCharacterLimit, characterCount"),_.f({readOnly:!0,notify:!0}),_.w("design:type",Number),_.w("design:paramtypes",[])],pR.prototype,"remainingCharacterCount",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],pR.prototype,"isChatMessageInput",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],pR.prototype,"inputExpanded",void 0);_.c([_.f({readOnly:!0,notify:!0}),_.w("design:type",Object)],pR.prototype,"liveChatRichMessageInput",void 0);_.c([_.f(),_.w("design:type",Object)],pR.prototype,"messageInput",void 0);_.c([_.f(),_.w("design:type",Boolean)],pR.prototype,"ignoreColorMapping",void 0);_.c([_.t("characterCount"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pR.prototype,"hasText",null);
_.c([_.f(),_.w("design:type",Object)],pR.prototype,"isValidWithNoInputText",void 0);_.c([_.t("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.f(),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pR.prototype,"isInputValid",null);_.c([_.f({readOnly:!0,value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],pR.prototype,"focused",void 0);_.c([_.f(),_.w("design:type",Array)],pR.prototype,"suggestions",void 0);
_.c([_.f(),_.w("design:type",_.Zb)],pR.prototype,"emojiManager",void 0);_.c([_.f(),_.w("design:type",_.Db)],pR.prototype,"participantsManager",void 0);_.c([_.f(),_.w("design:type",Boolean)],pR.prototype,"noUnderline",void 0);_.c([_.f(),_.w("design:type",Object)],pR.prototype,"inputMethodEditorActive",void 0);_.c([_.sg("#dropdown"),_.w("design:type",Object)],pR.prototype,"dropdown",void 0);_.c([_.sg("#input"),_.w("design:type",HTMLElement)],pR.prototype,"input",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pR.prototype,"dataChanged",null);_.c([_.$v("messageInput"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pR.prototype,"onMessageSet",null);_.c([_.Kq("yt-live-chat-select-suggestion"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],pR.prototype,"onSuggestion",null);
_.c([_.$v("characterCount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pR.prototype,"characterCountChanged",null);_.c([_.$v("focused"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pR.prototype,"focusedChanged",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],pR);
_.zy0=_.A(pR,"yt-live-chat-text-input-field-renderer",function(){if(Rye===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;fs6===void 0&&(fs6=document.createElement("template"));var E=fs6;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Rye=v}v=Rye;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var vk=function(){var v=_.P.apply(this,arguments)||this;v.buttonOverrides={style:"overlay",type:"filled"};v.allowAnimations=!1;v.modern=_.N("web_button_rework_with_live");v.noPadding=!1;return v};
_.V(vk,_.P);_.W=vk.prototype;_.W.shouldSupportInlineActionButtons=function(){return!0};
_.W.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"}}}}};
_.W.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.W.attached=function(){this.allowAnimations=!1};
_.W.dataChanged=function(){if(this.data){var v={"--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)};_.qr(this.hostElement,v);this.allowAnimations=!0}};
_.W.messageChanged=function(){var v,e=(v=this.data)==null?void 0:v.message;v=_.IB(_.IB(this.hostElement).querySelector("#message"));v.textContent="";e&&v.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(e))};
_.W.computeShowOnlyHeader=function(v,e){return!v||v.pdgLikeButton||v.replyButton||v.buyFlowButton?!1:this.isEmpty(v,e)&&!v.footer};
_.W.computeShowFooterDivider=function(v,e,d){return v?!!v.footer&&!this.isEmpty(v,e)&&!d:!1};
_.W.computeIsUserEditable=function(v){return!!v.inputField};
_.W.computeHasHeartButton=function(v){return(v==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(v==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(v==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.W.computeNoveltyImage=function(v){if(v.headerOverlayImage&&v.headerOverlayImage.thumbnails.length){var e=v.headerOverlayImage.thumbnails[0],d,E;if((d=v.pdgPurchasedNoveltyLoggingDirectives)==null?0:(E=d.loggingDirectives)==null?0:E.trackingParams){var T,S;LeW((T=v.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(S=T.loggingDirectives)==null?void 0:S.trackingParams)}return e.width||0}return 0};
_.W.computeAuthorPhotoSize=function(v){return(v==null?0:v.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.W.inputFocus=function(){var v=_.IB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");v&&v.focus()};
_.W.inputInsertEmoji=function(v){var e=_.IB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");e&&e.insertEmoji(v)};
_.W.inputMessage=function(){var v=_.IB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),e;return v&&((e=this.data)==null?0:e.inputField)?(v.completeEmojis(),_.A8(v.liveChatRichMessageInput)):null};
_.W.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.W.isEmpty=function(v,e){return v?v.empty||!(v.message||v.inputField||e):!0};
_.W.onLowerBuyButtonClick=function(){var v,e=_.L((v=this.data)==null?void 0:v.buyButton,_.BD);e&&e.trackingParams&&!YuM(e.command)&&(v=_.Jg(e.trackingParams))&&(e=_.zz())&&_.Uz(e,v)};
_.W.shouldSupportWholeItemClick=function(){return!0};
_.vP.Object.defineProperties(vk.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
vk.prototype.isDeletedChanged=vk.prototype.isDeletedChanged;vk.prototype.messageChanged=vk.prototype.messageChanged;vk.prototype.dataChanged=vk.prototype.dataChanged;_.c([_.M(YZ0.YtPdgLiveChatItemBehavior),_.w("design:type",Object)],vk.prototype,"ytPdgLiveChatItemBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],vk.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],vk.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],vk.prototype,"data",void 0);_.c([_.f({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:N70}),_.w("design:type",Object)],vk.prototype,"engagementState",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.w("design:type",Boolean)],vk.prototype,"isUserEditable",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.w("design:type",Boolean)],vk.prototype,"hasHeartButton",void 0);_.c([_.f({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.w("design:type",Boolean)],vk.prototype,"showOnlyHeader",void 0);
_.c([_.f({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.w("design:type",Boolean)],vk.prototype,"showFooterDivider",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Object)],vk.prototype,"allowAnimations",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],vk.prototype,"dashboardMoneyFeed",void 0);_.c([_.f({computed:"computeNoveltyImage(data)"}),_.w("design:type",Number)],vk.prototype,"noveltyWidth",void 0);
_.c([_.f({computed:"computeAuthorPhotoSize(data)"}),_.w("design:type",Number)],vk.prototype,"authorPhotoSize",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],vk.prototype,"modern",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],vk.prototype,"noPadding",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vk.prototype,"dataChanged",null);
_.c([_.$v("data.message"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vk.prototype,"messageChanged",null);_.c([_.t("data","dashboardMoneyFeed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],vk.prototype,"hideLowerBumper",null);_.c([_.$v("isDeleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vk.prototype,"isDeletedChanged",null);
_.c([_.z({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],vk);
_.A(vk,"yt-live-chat-paid-message-renderer",function(){if(u3M===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;g4B===void 0&&(g4B=document.createElement("template"));var E=g4B;d.call(e,E.content.cloneNode(!0),v.content.firstChild);u3M=v}v=u3M;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var ls7;var Hc7;var e4=function(){var v=_.kv.apply(this,arguments)||this;v._noAccessors=!0;return v};
_.V(e4,_.kv);e4.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Bb("openPopupConfig")};
_.c([_.M(_.h5.YtOpenPopupBehavior),_.w("design:type",Object)],e4.prototype,"ytOpenPopupBehavior",void 0);_.c([_.Lq()],e4);_.dK=[_.h5.YtOpenPopupBehavior,e4.prototype];var Aju;var u2=[_.Lo,byc,_.Ri,_.Vd,_.p2,_.RY6,_.Go,_.wDi,_.LO,wE$];_.N("web_watch_get_updated_metadata_response_processing")&&u2.push(_.ISI);_.N("web_continuation_response_processing")&&u2.push(_.Ha);var mK$=new _.nC("RESPONSE_RECEIVED_COMMANDS"),HSU=new _.nC("RESPONSE_RECEIVED_COMMANDS");var P70="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),R6L=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],fRS=["GET_UNSEEN_NOTIFICATION_COUNT"];var EF=function(){var v=_.kv.apply(this,arguments)||this;v._noAccessors=!0;v.serviceEndpointHandlers=[];return v};
_.V(EF,_.kv);EF.prototype.created=function(){var v=this;this.endpointHandlerActionMap={"yt-service-request":function(e,d,E,T){var S;return tJ0(v.hostElement,e,d,E,T,v.serviceEndpointHandlers,(S=v.onEntitiesUpdated)==null?void 0:S.bind(v))}}};
EF.prototype.attached=function(){_.Qf(_.FT.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
EF.prototype.detached=function(){_.gb(_.FT.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.c([_.Lq()],EF);_.Zcn=[EF.prototype];var cjM,wt2=function(){return cjM!==void 0?cjM:cjM=document.createElement("template")};
document.head.appendChild(wt2().content);var Fnc;var QRu=document.head,g$g=QRu.appendChild,u07;if(Fnc===void 0){var n$u=document.createElement("template");_.G(n$u,"\x3c!--css-build:shady--\x3e");n$u.content.insertBefore(wt2().content.cloneNode(!0),n$u.content.firstChild);Fnc=n$u}u07=Fnc;g$g.call(QRu,u07.content);var Dve,UvI=function(){return Dve!==void 0?Dve:Dve=document.createElement("template")};
document.head.appendChild(UvI().content);var ptI;var vR6=document.head,eOn=vR6.appendChild,dIM;if(ptI===void 0){var ERg=document.createElement("template");_.G(ERg,"\x3c!--css-build:shady--\x3e");ERg.content.insertBefore(UvI().content.cloneNode(!0),ERg.content.firstChild);ptI=ERg}dIM=ptI;eOn.call(vR6,dIM.content);var T72;_.RZ("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.RZ("sharingRendererButtons","buttonRenderer","ytd-button-renderer");T72=_.N("web_button_rework")&&_.zr("BUTTON_REWORK")||_.N("web_button_rework_with_live");_.Tu=function(){var v=_.P.apply(this,arguments)||this;v.isPressed=!1;v.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return v};
_.V(_.Tu,_.P);_.W=_.Tu.prototype;_.W.created=function(){this.showTooltips=!0};
_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.onHintIdChanged=function(){var v=this,e,d,E=(e=this.ytButtonBehavior.data)==null?void 0:(d=e.hint)==null?void 0:d.hintRenderer;if(E&&E.hintId){e=_.YB(this.hostElement,"yt-get-opened-popups-action");e=(e&&e.length===1?e[0]:[]).length>0;var T=null;E.hintId!=="sponsor-pre-purchase"||e?E.hintId.startsWith("sponsor-post-purchase")&&!e?T=oQI("membership-manage"):E.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!e&&(T=oQI("membership-freebie-join")):T=oQI("membership-join");T&&_.RM.addLowPriorityJob(function(){for(var S=
_.a(T),O=S.next();!O.done;O=S.next())v.ytComponentBehavior.resolveCommand(O.value)})}};
_.W.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.W.onYtNavigate=function(v){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);e&&(v.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(e))};
_.W.onYtServiceRequestSent=function(v,e){this.handleServiceRequestActions(e);_.Iq(this.hostElement,"yt-service-request-sent-button-renderer")};
_.W.onServiceRequestCompleted=function(v,e){this.handleServiceRequestActions(e);_.Iq(this.hostElement,"yt-service-request-completed-button-renderer")};
_.W.updateButton=function(v){var e;if(v=(e=_.L(v,dUn))==null?void 0:e.updatedButton)this.ytButtonBehavior.data=_.L(v,_.BD)};
_.W.handleUpdateButtonAction=function(v){var e=this.ytButtonBehavior.data;e.targetId&&v.updateButtonAction.targetId&&e.targetId===v.updateButtonAction.targetId&&this.updateButton(v)};
_.W.handleServiceRequestActions=function(v){if(v=v.actions)for(var e=0;e<v.length;e++)this.updateButton(v[e])};
_.vP.Object.defineProperties(_.Tu,{template:{configurable:!0,enumerable:!0,get:function(){if(Aju===void 0){var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);Aju=v}v=Aju;return v}}});
_.Tu.prototype.onServiceRequestCompleted=_.Tu.prototype.onServiceRequestCompleted;_.Tu.prototype.onYtServiceRequestSent=_.Tu.prototype.onYtServiceRequestSent;_.Tu.prototype.onYtNavigate=_.Tu.prototype.onYtNavigate;_.Tu.prototype.onPressedStateChanged=_.Tu.prototype.onPressedStateChanged;_.Tu.prototype.onHintIdChanged=_.Tu.prototype.onHintIdChanged;_.c([_.f(),_.w("design:type",Object)],_.Tu.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],_.Tu.prototype,"isPressed",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],_.Tu.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.mB2.YtButtonBehavior),_.w("design:type",Object)],_.Tu.prototype,"ytButtonBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],_.Tu.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],_.Tu.prototype,"ytComponentBehavior",void 0);
_.c([_.M(oe.YtRenderButtonBehavior),_.w("design:type",Object)],_.Tu.prototype,"ytRenderButtonBehavior",void 0);_.c([_.$v("data.hint.hintRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],_.Tu.prototype,"onHintIdChanged",null);_.c([_.$v("isPressed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],_.Tu.prototype,"onPressedStateChanged",null);
_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],_.Tu.prototype,"onYtNavigate",null);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],_.Tu.prototype,"onYtServiceRequestSent",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],_.Tu.prototype,"onServiceRequestCompleted",null);_.c([_.z({is:"ytd-button-renderer",disableElementRegistration:T72})],_.Tu);var S4=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("web_button_rework_with_live");v.buttonOverrides={style:"overlay",type:"filled"};return v};
_.V(S4,_.P);_.W=S4.prototype;_.W.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"}}}}};
_.W.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.W.dataChanged=function(){if(this.data&&this.data.sticker){var v=_.i2(this.data.sticker.thumbnails,this.stickerWidth);v||_.gPL(v).thenCatch(function(){_.xf(new _.kL("Failed to load Super Sticker with url",v))})}};
_.W.computeAuthorPhotoSize=function(v){return(v==null?0:v.isV2Style)?32:40};
_.W.computeIsV2Style=function(v){return(v==null?0:v.isV2Style)?!0:!1};
_.W.onStickerLoaded=function(v){var e,d,E;(e=_.ew(v))==null||(d=e.parentNode)==null||(E=d.classList)==null||E.add("sticker-loaded")};
_.W.computeNoveltyImageWidth=function(v){var e,d;if(v==null?0:(e=v.headerOverlayImage)==null?0:(d=e.thumbnails)==null?0:d.length){e=v.headerOverlayImage.thumbnails[0];var E,T;if((E=v.pdgPurchasedNoveltyLoggingDirectives)==null?0:(T=E.loggingDirectives)==null?0:T.trackingParams){var S,O;LeW((S=v.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(O=S.loggingDirectives)==null?void 0:O.trackingParams)}return e.width||0}return 0};
_.W.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.W.updateStickerStyles=function(){var v=this.data;v&&(v={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(v.authorNameTextColor)},
_.qr(this.hostElement,v))};
_.W.onBuyButtonClick=function(){var v,e=_.L((v=this.data)==null?void 0:v.buyButton,_.BD);e&&!YuM(e.command)&&this.ytRendererBehavior.logExplicitClick(e)};
_.W.shouldSupportWholeItemClick=function(){return!0};
_.vP.Object.defineProperties(S4.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 v;return((v=this.data)==null?0:v.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
S4.prototype.updateStickerStyles=S4.prototype.updateStickerStyles;S4.prototype.isDeletedChanged=S4.prototype.isDeletedChanged;S4.prototype.onStickerLoaded=S4.prototype.onStickerLoaded;S4.prototype.dataChanged=S4.prototype.dataChanged;_.c([_.M(YZ0.YtPdgLiveChatItemBehavior),_.w("design:type",Object)],S4.prototype,"ytPdgLiveChatItemBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],S4.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],S4.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],S4.prototype,"data",void 0);
_.c([_.f({computed:"computeAuthorPhotoSize(data)"}),_.w("design:type",Number)],S4.prototype,"authorPhotoSize",void 0);_.c([_.f(),_.w("design:type",Boolean)],S4.prototype,"isDeleted",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],S4.prototype,"dashboardMoneyFeed",void 0);_.c([_.f({computed:"computeNoveltyImageWidth(data)"}),_.w("design:type",Number)],S4.prototype,"noveltyWidth",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],S4.prototype,"modern",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.w("design:type",Boolean)],S4.prototype,"isV2Style",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S4.prototype,"dataChanged",null);_.c([_.Kq("yt-img-shadow-loaded"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],S4.prototype,"onStickerLoaded",null);
_.c([_.t("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],S4.prototype,"stickerWidth",null);_.c([_.t("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],S4.prototype,"stickerHeight",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],S4.prototype,"hasHeartButton",null);_.c([_.t("data","dashboardMoneyFeed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],S4.prototype,"hideLowerBumper",null);
_.c([_.$v("isDeleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S4.prototype,"isDeletedChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S4.prototype,"updateStickerStyles",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],S4);
_.A(S4,"yt-live-chat-paid-sticker-renderer",function(){if(Hc7===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;ls7===void 0&&(ls7=document.createElement("template"));var E=ls7;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Hc7=v}v=Hc7;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var Stu;var We0;var aO0,iZM=function(){return aO0!==void 0?aO0:aO0=document.createElement("template")};
document.head.appendChild(iZM().content);var OZB,IO6=function(){return OZB!==void 0?OZB:OZB=document.createElement("template")};
document.head.appendChild(IO6().content);var bZ6;var Ytn,mI2=function(){return Ytn!==void 0?Ytn:Ytn=document.createElement("template")};
document.head.appendChild(mI2().content);var y3n;var qt2=document.head,r3c=qt2.appendChild,hO7;if(y3n===void 0){var KeE=document.createElement("template");_.G(KeE,"\x3c!--css-build:shady--\x3e");KeE.content.insertBefore(mI2().content.cloneNode(!0),KeE.content.firstChild);y3n=KeE}hO7=y3n;r3c.call(qt2,hO7.content);var $Iu=document.head,jf6=$Iu.appendChild,sfI;if(bZ6===void 0){var Wk=document.createElement("template");_.G(Wk,"\x3c!--css-build:shady--\x3e");Wk.content.insertBefore(IO6().content.cloneNode(!0),Wk.content.firstChild);Wk.content.insertBefore(iZM().content.cloneNode(!0),Wk.content.firstChild);bZ6=Wk}sfI=bZ6;jf6.call($Iu,sfI.content);var aP=function(){var v=_.kv.apply(this,arguments)||this;v.focusedIndex=0;v.verticalOffset=0;v.verticalAlign="top";v.dynamicAlign=!0;return v};
_.V(aP,_.kv);aP.prototype.emojiUrl=function(v){v=_.ch(this.emojiManager,v);if(!v)return"";var e;v=(e=v.image)==null?void 0:e.thumbnails;return _.i2(v,24)||""};
var N7g=function(v){var e;v.emojiVariants&&(e=v.data)!=null&&e.target&&_.Uh(v,function(){v.set("verticalOffset",-1*v.hostElement.clientHeight);var d=_.IB(v.hostElement).querySelector("img");d&&d.focus()})};
_.W=aP.prototype;_.W.onKeyboardEnter=function(){};
_.W.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.W.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.W.onKeyDown=function(v){switch(v.keyCode){case 13:this.onKeyboardEnter();v.preventDefault();break;case 40:this.changeFocus(1);v.preventDefault();break;case 38:this.changeFocus(-1);v.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.W.onYtEmojiSelect=function(v){var e=this,d,E,T,S,O,b,Y,q;return _.I(function(r){if(r.nextAddress==1)return E=(d=e.data)==null?void 0:d.emoji,O=((T=E)==null?void 0:T.stickyPrefId)||((S=E)==null?void 0:S.emojiId),Y=(b=v.detail)==null?void 0:b.emojiId,O&&Y&&O!==Y?r.yield((q=e.emojiManager)==null?void 0:JjI(q,E,Y),2):r.return();_.b4(e.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[E,Y]);_.s9(r)})};
_.W.changeFocus=function(v){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+v+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(v=_.IB(this.hostElement).querySelector("#variants"))&&v.children[this.focusedIndex].focus())};
_.vP.Object.defineProperties(aP.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
aP.prototype.onYtEmojiSelect=aP.prototype.onYtEmojiSelect;aP.prototype.onKeyDown=aP.prototype.onKeyDown;aP.prototype.onEmojiVariantsChanged=aP.prototype.onEmojiVariantsChanged;aP.prototype.onVerticalOffsetOrPositionTargetChanged=aP.prototype.onVerticalOffsetOrPositionTargetChanged;_.c([_.M(_.A9),_.w("design:type",Object)],aP.prototype,"ironOverlayBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],aP.prototype,"data",void 0);_.c([_.f(),_.w("design:type",_.Zb)],aP.prototype,"emojiManager",void 0);
_.c([_.f(),_.w("design:type",Object)],aP.prototype,"emojiVariants",void 0);_.c([_.f(),_.w("design:type",Object)],aP.prototype,"focusedIndex",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],aP.prototype,"positionTarget",null);_.c([_.f({reflectToAttribute:!0}),_.t("verticalOffset","data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],aP.prototype,"isPositioned",null);_.c([_.f(),_.w("design:type",Object)],aP.prototype,"verticalOffset",void 0);
_.c([_.f(),_.w("design:type",Object)],aP.prototype,"verticalAlign",void 0);_.c([_.f(),_.w("design:type",Object)],aP.prototype,"dynamicAlign",void 0);_.c([_.$v("verticalOffset","positionTarget"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],aP.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.c([_.$v("emojiVariants"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],aP.prototype,"onEmojiVariantsChanged",null);
_.c([_.Kq("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],aP.prototype,"onKeyDown",null);_.c([_.Kq("yt-emoji-select"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype",Promise)],aP.prototype,"onYtEmojiSelect",null);_.c([_.Lq()],aP);var k_e=[aP.prototype];var LeA;var Vzg;var oR7=/medium-light|medium-dark|light|medium|dark/,J3e=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,G_n=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),iV=function(){var v=_.P.apply(this,arguments)||this;v.userSelection={left:null,right:null};v.scrollAction="lock";v.isEmojiDraftInProgress=!1;return v};
_.V(iV,_.P);_.W=iV.prototype;_.W.onClick=function(v){v=_.ew(v);v instanceof HTMLImageElement&&this.selectOrUpdateEmoji(v)};
_.W.selectOrUpdateEmoji=function(v){var e=v.getAttribute("selection");e&&(e==="default"?_.Iq(this.hostElement,"yt-emoji-select",_.ch(this.emojiManager,v.id)):e==="left"?this.userSelection=Object.assign({},this.userSelection,{left:v.src}):e==="right"?this.userSelection=Object.assign({},this.userSelection,{right:v.src}):e==="user"&&this.userSelection.left&&this.userSelection.right&&_.Iq(this.hostElement,"yt-emoji-select",_.ch(this.emojiManager,v.id)))};
_.W.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.W.onMultiSelectorThumbnailRowChanged=function(){var v,e,d;((v=this.data)==null?0:(e=v.emoji)==null?0:(d=e.multiSelectorThumbnailRow)==null?0:d.length)&&this.openSelector()};
_.W.getThumbnailFromEmojiRow=function(v){var e,d;return(v==null?void 0:(e=v.thumbnails)==null?void 0:(d=e[0])==null?void 0:d.url)||""};
_.W.getEmojiAltTextForPartialSelector=function(v){var e;return((e=this.getThumbnailFromEmojiRow(v).match(J3e))==null?void 0:e[0])||""};
_.W.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.W.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.W.getRowSelection=function(v){return["left","right"][v]};
_.W.getIdFromComposedEmoji=function(v){return(v==null?void 0:v.emojiId)||""};
_.W.getEmojiFromPartialSelections=function(v,e){if(!v&&!e)return null;var d,E,T=(d=this.data)==null?void 0:(E=d.emoji)==null?void 0:E.variantIds;if(!T||!T.length)return null;var S;v=(S=v.match(oR7))==null?void 0:S[0];var O;e=(O=e.match(oR7))==null?void 0:O[0];if(!v||!e)return null;var b=G_n.get(v);O=G_n.get(e);if(b===O){O=Array.from(G_n.values()).filter(function(q){return q!==b}).join("|");
var Y=new RegExp("^((?!("+O+")).)*"+b+"$")}else Y=new RegExp(b+".*"+O);return(T=T.find(function(q){return Y.test(q)}))&&_.ch(this.emojiManager,T)||null};
_.W.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var v,e=this.ytEmojiSelectorBehavior.emojiUrl(((v=this.data.emoji)==null?void 0:v.emojiId)||"");_.IB(this.hostElement).querySelector('[selection="user"]').src.includes(e)||(this.isEmojiDraftInProgress=!0)}};
_.W.onDomChange=function(){N7g(this.ytEmojiSelectorBehavior)};
_.W.getFocusableElements=function(){return _.IB(this.hostElement).querySelectorAll("img").filter(function(v){return v.getAttribute("role")==="option"})};
_.W.changeFocus=function(v){var e=this.getFocusableElements();e!=null&&e.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+v+e.length)%e.length,this.ytEmojiSelectorBehavior.focusedIndex<e.length&&(v=e[this.ytEmojiSelectorBehavior.focusedIndex])&&v.focus())};
_.W.onKeyboardEnter=function(){var v=this.getFocusableElements();v!=null&&v.length&&(v=v[this.ytEmojiSelectorBehavior.focusedIndex])&&v instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(v),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.vP.Object.defineProperties(iV.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var v=this,e,d,E;return this.emojiManager&&((e=this.data)==null?0:(d=e.emoji)==null?0:(E=d.variantIds)==null?0:E.length)?this.data.emoji.variantIds.map(function(T){return!!T&&_.ch(v.emojiManager,T)}).filter(function(T){return!!T}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var v,e=(v=this.userSelection)==null?void 0:v.left,d;v=(d=this.userSelection)==null?void 0:d.right;return e&&v?this.getEmojiFromPartialSelections(e,v):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.composedEmojiSelection)==null?0:v.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var e;v=(e=this.userSelection)==null?void 0:e.left;var d;e=(d=this.userSelection)==null?void 0:d.right;if(!v&&!e){var E;return this.ytEmojiSelectorBehavior.emojiUrl(((E=this.data.emoji)==null?void 0:E.emojiId)||"")}return v&&!e?v:!v&&e?e:""}}});
iV.prototype.onMultiSelectorThumbnailRowChanged=iV.prototype.onMultiSelectorThumbnailRowChanged;iV.prototype.onClick=iV.prototype.onClick;_.c([_.M(_.A9),_.w("design:type",Object)],iV.prototype,"ironOverlayBehavior",void 0);_.c([_.M(k_e),_.w("design:type",Object)],iV.prototype,"ytEmojiSelectorBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],iV.prototype,"data",void 0);_.c([_.f(),_.w("design:type",_.Zb)],iV.prototype,"emojiManager",void 0);
_.c([_.f(),_.w("design:type",Object)],iV.prototype,"userSelection",void 0);_.c([_.f(),_.w("design:type",Object)],iV.prototype,"scrollAction",void 0);_.c([_.f(),_.w("design:type",Object)],iV.prototype,"isEmojiDraftInProgress",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],iV.prototype,"emojiVariants",null);_.c([_.t("data","userSelection"),_.w("design:type",Object),_.w("design:paramtypes",[])],iV.prototype,"composedEmojiSelection",null);
_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[MouseEvent]),_.w("design:returntype")],iV.prototype,"onClick",null);_.c([_.$v("data.emoji.multiSelectorThumbnailRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],iV.prototype,"onMultiSelectorThumbnailRowChanged",null);_.c([_.t("data","userSelection","composedEmojiSelection"),_.w("design:type",String),_.w("design:paramtypes",[])],iV.prototype,"draftEmojiUrl",null);
_.c([_.lh({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],iV);
_.A(iV,"yt-emoji-multi-person-selector",function(){if(Vzg===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;LeA===void 0&&(LeA=document.createElement("template"));var E=LeA;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Vzg=v}v=Vzg;return v},{mode:2});var Mze;var tz7;var OF=function(){var v=_.P.apply(this,arguments)||this;v.tooltip_=null;return v};
_.V(OF,_.P);_.W=OF.prototype;_.W.dataChanged_=function(){var v;if((v=this.data)==null?0:v.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.IB(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.y1)(this.tooltip_).textContent=this.data.tooltip};
_.W.computeTargetId=function(){var v;return((v=this.data)==null?void 0:v.targetId)||""};
_.W.computeId_=function(v){return v};
_.W.computeIcon_=function(v){return _.qC(v)};
_.W.onTap_=function(){this.active=!this.active;_.Iq(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.W.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("active-changed",this.active))};
_.vP.Object.defineProperties(OF.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var v,e;if((v=this.data)==null?0:(e=v.icon)==null?0:e.iconType)return this.data.icon.iconType==="SUPER_STICKER";var d,E;return((d=this.data)==null?void 0:(E=d.icon)==null?void 0:E.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
OF.prototype.activeChangedForBinding=OF.prototype.activeChangedForBinding;OF.prototype.dataChanged_=OF.prototype.dataChanged_;_.c([_.M(_.Zh.YtLiveChatTooltipTargetingBehavior),_.w("design:type",Object)],OF.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],OF.prototype,"data",void 0);_.c([_.f({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.w("design:type",String)],OF.prototype,"id",void 0);
_.c([_.f({computed:"computeTargetId(data.targetId)"}),_.w("design:type",String)],OF.prototype,"targetId",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],OF.prototype,"active",void 0);_.c([_.f({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.w("design:type",String)],OF.prototype,"icon",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OF.prototype,"dataChanged_",null);
_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],OF.prototype,"iconFilled",null);_.c([_.$v("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OF.prototype,"activeChangedForBinding",null);_.c([_.lh({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],OF);
_.A(OF,"yt-emoji-picker-category-button-renderer",function(){if(tz7===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Mze===void 0&&(Mze=document.createElement("template"));var E=Mze;d.call(e,E.content.cloneNode(!0),v.content.firstChild);tz7=v}v=tz7;return v},{mode:2});var fOI;var RO0;var IP=function(){var v=_.P.apply(this,arguments)||this;v.ariaLabel=null;v.ariaActivedescendant=null;v.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};v.JSC$14160_ignoreNextFocus_=!1;v.longPressTimeoutId=-1;return v};
_.V(IP,_.P);_.W=IP.prototype;_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.W.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.W.emojiChanged_=function(){this.changeFocus_(0,!1);for(var v=_.NC(),e=0;e<this.emoji.length;e++){var d={veType:88013,elementIndex:e},E=this.emoji[e];E.isCustomEmoji&&(E=document.querySelector(("#"+E.emojiId).replace("/","\\/")))&&(d=_.s_(v,d))&&(E.visualElement=d)}};
_.W.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.W.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.W.emojiSkinToneChanged_=function(v){this.skinTone=v};
_.W.dataChanged=function(){this.data&&this.data.emojiData&&kmB(this.emojiManager,this.data.emojiData)};
_.W.emojiUrl=function(v){v=this.getEmoji(v);if(!v)return"";var e;v=(e=v.image)==null?void 0:e.thumbnails;return _.i2(v,24)||""};
_.W.emojiAlt=function(v){var e=this.get("image.accessibility.accessibilityData.label",v);return e?e:v.isCustomEmoji?v.shortcuts[0]:v.emojiId};
_.W.emojiAriaLabel=function(v){return v.shortcuts?v.shortcuts[0]:""};
_.W.emojiAriaSelected=function(v,e,d){return v&&d==e?"true":"false"};
_.W.getEmoji=function(v){if(this.emojiManager)return this.shouldUseStickyPreferences?V3B(this.emojiManager,v):wD(this.emojiManager,v)};
_.W.computeId_=function(v){return v.categoryId||""};
_.W.computeEmoji=function(v){var e=this;return this.emojiManager?v.emojiIds?v.emojiIds.map(function(d){return d?_.ch(e.emojiManager,d):null}).filter(uH$):v.emojiData?v.emojiData.map(function(d){var E=!!d.emojiId&&_.ch(e.emojiManager,d.emojiId);
return E?Object.assign({},E,d):null}).filter(uH$):[]:[]};
_.W.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.W.computeAriaLabel_=function(v){return _.vv(v)};
_.W.computeAriaActivedescendant_=function(v,e){return v&&v[e]?v[e].emojiId||"":""};
_.W.handleLongPressEmojiWithVariants=function(v,e){this.changeFocusToEmoji(v.emojiId,!1);this.openVariantSelector(v,e)};
_.W.onMouseDown=function(v){var e=this;this.hostElement!==document.activeElement&&(this.JSC$14160_ignoreNextFocus_=!0);if(v.button===0){var d=_.ew(v);if(d instanceof HTMLImageElement){var E=_.IB(this.hostElement).querySelector("#repeat").itemForElement(d);this.emojiContainsVariants(E)&&(this.longPressTimeoutId=setTimeout(function(){e.handleLongPressEmojiWithVariants(E,d)},500))}}};
_.W.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.W.onFocus=function(){this.JSC$14160_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14160_ignoreNextFocus_=!1};
_.W.onBlur_=function(){this.showFocus=!1};
_.W.emojiContainsVariants=function(v){return!!(v&&v.variantIds&&v.variantIds.length)};
_.W.onClick=function(v){clearTimeout(this.longPressTimeoutId);v=_.ew(v);if(v instanceof HTMLImageElement){var e=v.id;this.changeFocusToEmoji(e,!1);var d=this.getEmoji(e),E;if(E=this.shouldUseStickyPreferences&&this.emojiContainsVariants(d)){var T;E=!((T=this.emojiManager.emojiMap[e])!=null&&T.stickyPrefId)}E?(T=_.IB(this.hostElement).querySelector("#repeat").itemForElement(v),this.openVariantSelector(T,v)):_.Iq(this.hostElement,"yt-emoji-select",d)}};
_.W.isActiveEmojiWithVariants=function(v,e){return v&&e?e.stickyPrefId?v===e.stickyPrefId:v===e.emojiId:!1};
_.W.onCloseEmojiVariantSelector=function(v){this.activeEmojiWithVariantsId===v&&(this.activeEmojiWithVariantsId="")};
_.W.onMouseOver_=function(v){v=_.ew(v);v instanceof HTMLImageElement&&_.Iq(this.hostElement,"yt-emoji-hover",_.ch(this.emojiManager,v.id))};
_.W.changeFocus_=function(v,e){this.focusedIndex=(this.focusedIndex+v+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(v=this.emoji[this.focusedIndex],e&&(this.showFocus=!0,_.IB(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Iq(this.hostElement,"yt-emoji-hover",v)))};
_.W.changeFocusToEmoji=function(v,e){if(v){var d=this.emoji.findIndex(function(E){return E.emojiId===v});
d!==-1&&this.changeFocus_(d-this.focusedIndex,e)}};
_.W.onKeyDown_=function(v){switch(v.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var e=this.emoji[this.focusedIndex];if(e&&e.emojiId){if(this.emojiContainsVariants(e)){var d=_.IB(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(e,d)}else _.Iq(this.hostElement,"yt-emoji-select",wD(this.emojiManager,e.emojiId)),this.hostElement.focus();v.preventDefault()}}break;case 40:this.changeFocus_(1,!0);v.preventDefault();break;case 38:this.changeFocus_(-1,!0),
v.preventDefault()}};
_.W.onEmojiStickyPreferenceChanged=function(v,e){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&v.emojiId&&v.variantIds&&v.variantIds.includes(e)&&this.activeEmojiWithVariantsId!==e&&this.setStickyEmojiPreference(v.emojiId,e)};
_.W.openVariantSelector=function(v,e){this.activeEmojiWithVariantsId=v.stickyPrefId||v.emojiId||"";_.Iq(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:v,target:e})};
_.W.setStickyEmojiPreference=function(v,e){if(this.data){var d=this.emoji.findIndex(function(T){return T.emojiId===v});
if(d!==-1){var E=this.emoji[d];E.stickyPrefId=e;this.set("emoji."+d,Object.assign({},E));this.activeEmojiWithVariantsId=e}}};
IP.prototype.onKeyDown_=IP.prototype.onKeyDown_;IP.prototype.onMouseOver_=IP.prototype.onMouseOver_;IP.prototype.onClick=IP.prototype.onClick;IP.prototype.onBlur_=IP.prototype.onBlur_;IP.prototype.onFocus=IP.prototype.onFocus;IP.prototype.onMouseUp=IP.prototype.onMouseUp;IP.prototype.onMouseDown=IP.prototype.onMouseDown;IP.prototype.dataChanged=IP.prototype.dataChanged;IP.prototype.disableIncrementalLoadingChanged_=IP.prototype.disableIncrementalLoadingChanged_;IP.prototype.emojiManagerChanged_=IP.prototype.emojiManagerChanged_;
IP.prototype.emojiChanged_=IP.prototype.emojiChanged_;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],IP.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],IP.prototype,"data",void 0);_.c([_.f({computed:"computeId_(data)"}),_.w("design:type",String)],IP.prototype,"id",void 0);_.c([_.f({computed:"computeEmoji(data)"}),_.w("design:type",Array)],IP.prototype,"emoji",void 0);_.c([_.f(),_.w("design:type",Number)],IP.prototype,"skinTone",void 0);
_.c([_.f(),_.w("design:type",_.Zb)],IP.prototype,"emojiManager",void 0);_.c([_.f(),_.w("design:type",Boolean)],IP.prototype,"disableIncrementalLoading",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],IP.prototype,"focusedIndex",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],IP.prototype,"showFocus",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.w("design:type",Object)],IP.prototype,"ariaLabel",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.w("design:type",Object)],IP.prototype,"ariaActivedescendant",void 0);_.c([_.f({value:60}),_.w("design:type",Number)],IP.prototype,"domRepeatTargetFramerate",void 0);_.c([_.f({value:1}),_.w("design:type",Number)],IP.prototype,"domRepeatInitialCount",void 0);_.c([_.f({value:""}),_.w("design:type",String)],IP.prototype,"activeEmojiWithVariantsId",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],IP.prototype,"shouldUseStickyPreferences",void 0);_.c([_.$v("emoji"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IP.prototype,"emojiChanged_",null);_.c([_.$v("emojiManager"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IP.prototype,"emojiManagerChanged_",null);
_.c([_.$v("disableIncrementalLoading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IP.prototype,"disableIncrementalLoadingChanged_",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IP.prototype,"dataChanged",null);_.c([_.Kq("mousedown"),_.w("design:type",Function),_.w("design:paramtypes",[Object]),_.w("design:returntype")],IP.prototype,"onMouseDown",null);
_.c([_.Kq("mouseup"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IP.prototype,"onMouseUp",null);_.c([_.Kq("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IP.prototype,"onFocus",null);_.c([_.Kq("blur"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IP.prototype,"onBlur_",null);
_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],IP.prototype,"onClick",null);_.c([_.Kq("mouseover"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],IP.prototype,"onMouseOver_",null);_.c([_.Kq("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],IP.prototype,"onKeyDown_",null);
_.c([_.lh({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],IP);
_.A(IP,"yt-emoji-picker-category-renderer",function(){if(RO0===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;fOI===void 0&&(fOI=document.createElement("template"));var E=fOI;d.call(e,E.content.cloneNode(!0),v.content.firstChild);RO0=v}v=RO0;return v},{mode:2});var Ptg;var xIc;var B72;var CtB;var bV=function(){var v=_.P.apply(this,arguments)||this;v.ariaLabel=null;v.ariaActivedescendant=null;v.getFormattedStringRawText=_.vv;v.JSC$14166_ignoreNextFocus_=!1;return v};
_.V(bV,_.P);_.W=bV.prototype;_.W.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")};
_.W.emojiUrl=function(v){var e,d;v=(e=wD(this.emojiManager,v,!0))==null?void 0:(d=e.image)==null?void 0:d.thumbnails;return _.i2(v,24)||""};
_.W.emojiAlt=function(v){var e=this.get("image.accessibility.accessibilityData.label",v);return e?e:v.isCustomEmoji?v.shortcuts[0]:v.emojiId};
_.W.emojiId=function(v){return"emoji"+v};
_.W.computeId_=function(v){return v.categoryId||""};
_.W.computeAriaActivedescendant_=function(v){return this.emoji&&v<this.emoji.length?this.emojiId(v):""};
_.W.emojiChanged_=function(){this.changeFocus_(0,!1);for(var v=_.NC(),e=0;e<this.emoji.length;e++){var d={veType:88013,elementIndex:e},E=this.emoji[e];E.isCustomEmoji&&(E=document.querySelector(("#"+E.emojiId).replace("/","\\/")))&&(d=_.s_(v,d))&&(E.visualElement=d)}};
_.W.computeEmoji_=function(v){var e=this;return this.emojiManager?v.emojiIds.map(function(d){return _.ch(e.emojiManager,d,!0)}).filter(nPW):[]};
_.W.titleOffsetChanged_=function(){var v=this.hostElement.getBoundingClientRect(),e=_.IB(this.hostElement).querySelector("#title").getBoundingClientRect();v=Math.max(0,Math.min(this.titleOffset,v.height-e.height));_.IB(this.hostElement).querySelector("#title").style.top=v+"px"};
_.W.onEmojiMouseOver_=function(v){_.Iq(this.hostElement,"yt-emoji-hover",v.model.item)};
_.W.onEmojiTap_=function(v){this.data.command&&(v=ROt(_.dk().resolve(_.eG(cV)),this.data.command,v),_.Iq(this.hostElement,"yt-navigate",v))};
_.W.emojiAriaLabel=function(v){return v.shortcuts[0]};
_.W.emojiAriaSelected=function(v,e,d){return v&&d==e?"true":"false"};
_.W.changeFocus_=function(v,e){var d=this.emoji.length;this.focusedIndex=(this.focusedIndex+v+d)%d;v=this.emoji[this.focusedIndex];if(e){var E;(E=_.IB(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||E.scrollIntoView(!1);_.Iq(this.hostElement,"yt-emoji-hover",v)}};
_.W.onMouseDown_=function(){this.JSC$14166_ignoreNextFocus_=!0};
_.W.onFocus_=function(){this.JSC$14166_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14166_ignoreNextFocus_=!1};
_.W.onBlur_=function(){this.showFocus=!1};
_.W.onKeyDown_=function(v){switch(v.keyCode){case 13:this.onEmojiTap_(v);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);v.preventDefault();break;case 38:this.changeFocus_(-1,!0),v.preventDefault()}};
bV.prototype.onKeyDown_=bV.prototype.onKeyDown_;bV.prototype.onBlur_=bV.prototype.onBlur_;bV.prototype.onFocus_=bV.prototype.onFocus_;bV.prototype.onMouseDown_=bV.prototype.onMouseDown_;bV.prototype.onEmojiTap_=bV.prototype.onEmojiTap_;bV.prototype.titleOffsetChanged_=bV.prototype.titleOffsetChanged_;bV.prototype.emojiChanged_=bV.prototype.emojiChanged_;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],bV.prototype,"ytComponentBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],bV.prototype,"data",void 0);_.c([_.f({computed:"computeId_(data)"}),_.w("design:type",String)],bV.prototype,"id",void 0);_.c([_.f({computed:"computeEmoji_(data)"}),_.w("design:type",Array)],bV.prototype,"emoji",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],bV.prototype,"titleOffset",void 0);_.c([_.f({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.w("design:type",Object)],bV.prototype,"ariaLabel",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.w("design:type",Object)],bV.prototype,"ariaActivedescendant",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],bV.prototype,"showFocus",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],bV.prototype,"focusedIndex",void 0);_.c([_.f(),_.w("design:type",_.Zb)],bV.prototype,"emojiManager",void 0);
_.c([_.$v("emoji"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bV.prototype,"emojiChanged_",null);_.c([_.$v("titleOffset"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bV.prototype,"titleOffsetChanged_",null);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],bV.prototype,"onEmojiTap_",null);
_.c([_.Kq("mousedown"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bV.prototype,"onMouseDown_",null);_.c([_.Kq("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bV.prototype,"onFocus_",null);_.c([_.Kq("blur"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bV.prototype,"onBlur_",null);
_.c([_.Kq("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],bV.prototype,"onKeyDown_",null);_.c([_.lh({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],bV);
_.A(bV,"yt-emoji-picker-upsell-category-renderer",function(){if(CtB===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;B72===void 0&&(B72=document.createElement("template"));var E=B72;d.call(e,E.content.cloneNode(!0),v.content.firstChild);CtB=v}v=CtB;return v},{mode:2});var XLg;var zO6;var YX=function(){var v=_.P.apply(this,arguments)||this;v.scrollAction="lock";v.verticalAlign="top";return v};
_.V(YX,_.P);_.W=YX.prototype;_.W.onClick=function(v){v=_.ew(v);v instanceof HTMLImageElement&&_.Iq(this.hostElement,"yt-emoji-select",_.ch(this.emojiManager,v.id))};
_.W.openSelector=function(){this.ironOverlayBehavior.open()};
_.W.onDomChange=function(){N7g(this.ytEmojiSelectorBehavior)};
_.W.computeIsFamilySelector=function(v){var e;return(v==null?void 0:(e=v.emoji)==null?void 0:e.emojiId)==="\ud83d\udc6a"};
_.W.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var v=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];v&&v.emojiId&&(_.Iq(this.hostElement,"yt-emoji-select",_.ch(this.emojiManager,v.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.vP.Object.defineProperties(YX.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var v=this,e,d,E;return this.emojiManager&&((e=this.data)==null?0:(d=e.emoji)==null?0:(E=d.variantIds)==null?0:E.length)?this.data.emoji.variantIds.map(function(T){return!!T&&_.ch(v.emojiManager,T)}).filter(function(T){return!!T}):[]}}});
YX.prototype.onClick=YX.prototype.onClick;_.c([_.M(_.A9),_.w("design:type",Object)],YX.prototype,"ironOverlayBehavior",void 0);_.c([_.M(k_e),_.w("design:type",Object)],YX.prototype,"ytEmojiSelectorBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],YX.prototype,"data",void 0);_.c([_.f(),_.w("design:type",_.Zb)],YX.prototype,"emojiManager",void 0);_.c([_.f(),_.w("design:type",Object)],YX.prototype,"scrollAction",void 0);_.c([_.f(),_.w("design:type",Object)],YX.prototype,"verticalAlign",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.w("design:type",Boolean)],YX.prototype,"isFamilySelector",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],YX.prototype,"emojiVariants",null);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[MouseEvent]),_.w("design:returntype")],YX.prototype,"onClick",null);_.c([_.lh({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],YX);
_.A(YX,"yt-emoji-variant-selector",function(){if(zO6===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;XLg===void 0&&(XLg=document.createElement("template"));var E=XLg;d.call(e,E.content.cloneNode(!0),v.content.firstChild);zO6=v}v=zO6;return v},{mode:2});var lOu=/:/g,HZJ=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],mM=function(){var v=_.P.apply(this,arguments)||this;v.emojiVariantSelector=null;v.emojiMultiPersonSelector=null;v.identity=_.B3;v.lastAnimationTime_=0;v.animationStart_=null;v.animationEnd_=null;return v};
_.V(mM,_.P);_.W=mM.prototype;
_.W.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}}};
_.W.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.FW)};
_.W.attached=function(){_.Tw&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Lni(this.emojiManager)};
_.W.dataChanged=function(){var v;if((v=this.data)==null?0:v.categories){v=this.emojiManager;var e=this.getCustomEmojiIds();v.pickerCustomEmojiIds=[].concat(_.t7(Kn7),_.t7(e))}};
_.W.getCustomEmojiIds=function(){var v,e=(v=this.data.categories)==null?void 0:v.find(function(S){var O;return((O=S.emojiPickerCategoryRenderer)==null?void 0:O.categoryId)&&HZJ.includes(S.emojiPickerCategoryRenderer.categoryId)}),d;
v=(d=this.data.categories)==null?void 0:d.find(function(S){return S.emojiPickerUpsellCategoryRenderer});
var E,T;return[e==null?void 0:(E=e.emojiPickerCategoryRenderer)==null?void 0:E.emojiIds,v==null?void 0:(T=v.emojiPickerUpsellCategoryRenderer)==null?void 0:T.emojiIds].flat().filter(function(S){return!!S})};
_.W.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.W.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.W.updateCategoriesAndPlaceholderInternal=function(v,e){var d=this;v&&e&&(this.categories=v.categories||[],this.categoryButtons=v.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Q1(function(){d.updateButtons_()}))};
_.W.computeId_=function(v){return v.id||""};
_.W.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(v){return v.emojiPickerCategoryRenderer&&v.emojiPickerCategoryRenderer.emojiData}):!1};
_.W.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.W.onShowEmojiVariantSelector=function(v){var e=v.detail.emojiData;e.variantIds&&e.variantIds.length&&(e.multiSelectorThumbnailRow&&e.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:e,target:v.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:e,target:v.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.W.onIronOverlayClosed=function(v){var e=V3B(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");e&&v.composedPath&&(v.composedPath().includes(_.IB(this.hostElement).querySelector("#emoji-variant-selector"))||v.composedPath().includes(_.IB(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.b4(this.hostElement,"yt-close-emoji-variant-selector",[e.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.W.onEmojiVariantSelectorMouseup=function(v){var e=v.target.firstChild;this.variantSelectorOpened&&e&&_.Q1(function(){e.noCancelOnOutsideClick=!1},100)};
_.W.onEmojiVariantSelectorMousedown=function(v){v=v.target.firstChild;this.variantSelectorOpened&&v&&(v.noCancelOnOutsideClick=!1)};
_.W.onSelectCategory_=function(v){var e=this.search!="";this.search="";for(var d=_.IB(this.hostElement).querySelector("#categories").children,E=0;E<d.length;E++){var T=d[E];if(T.id==v.detail.categoryId){e?(_.IB(this.hostElement).querySelector("#categories").scrollTop=T.offsetTop,this.updateButtons_()):(this.animationStart_=_.IB(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=T.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.W.onEmojiHover_=function(v){this.placeholder=v.detail.shortcuts?v.detail.shortcuts[0]:""};
_.W.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.W.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.W.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.W.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.W.computeSearchCategory_=function(v){v=v.replace(lOu,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();v=v.split(" ");for(var e=[],d=this.emojiManager.emojis,E=0;E<d.length;E++){var T=d[E];if(T.searchTerms)for(var S=0;S<T.searchTerms.length;S++){for(var O=T.searchTerms[S].toLocaleLowerCase(),b=!1,Y=0;Y<v.length;Y++)if(O.indexOf(v[Y])!=-1){b=!0;break}if(b&&(!T.isCustomEmoji||!T.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(T.emojiId))){e.push(T.emojiId);
break}}}return{categoryId:-1,emojiIds:e}};
_.W.computeSearchEmptyMessage_=function(v,e){return v&&e&&e.emojiIds&&e.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.W.computeSearching_=function(v){return this.emojiManager&&v.replace(lOu,"").length>1};
_.W.computeSkinToneHidden=function(){var v;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((v=this.data)==null||!v.hideSkinTonePicker)};
_.W.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.W.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.W.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.W.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.W.selectSkinTone_=function(v){v=Number(v.target.getAttribute("tone"));this.set("emojiManager.skinTone",v);_.b4(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[v]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.W.skinToneChanged_=function(){_.IB(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var v=_.IB(this.hostElement).querySelector("#dropdown-content").children,e=0;e<v.length;e++)e===this.skinTone?v[e].setAttribute("selected",""):v[e].removeAttribute("selected")};
_.W.animateScroll_=function(v){this.lastAnimationTime_||(this.lastAnimationTime_=v);v-=this.lastAnimationTime_;v<200?(_.IB(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*v/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.IB(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.W.searchChanged_=function(){this.updateButtons_()};
_.W.updateButtons_=function(){var v=null;if(!this.search)for(var e=_.IB(this.hostElement).querySelector("#categories").scrollTop,d=_.IB(this.hostElement).querySelector("#categories").children,E=0;E<d.length;E++){var T=d[E];T.offsetTop<=e&&(v=T.id)}e=_.IB(this.hostElement).querySelector("#category-buttons").children;for(d=0;d<e.length;d++)E=e[d],E.active=E.id===v};
mM.prototype.searchChanged_=mM.prototype.searchChanged_;mM.prototype.skinToneChanged_=mM.prototype.skinToneChanged_;mM.prototype.onEmojiHover_=mM.prototype.onEmojiHover_;mM.prototype.onSelectCategory_=mM.prototype.onSelectCategory_;mM.prototype.onShowEmojiVariantSelector=mM.prototype.onShowEmojiVariantSelector;mM.prototype.updateCategoriesAndPlaceholder_=mM.prototype.updateCategoriesAndPlaceholder_;mM.prototype.dataChanged=mM.prototype.dataChanged;
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],mM.prototype,"data",void 0);_.c([_.f({value:function(){return[]}}),
_.w("design:type",Array)],mM.prototype,"categories",void 0);_.c([_.f({value:function(){return[]}}),
_.w("design:type",Array)],mM.prototype,"categoryButtons",void 0);_.c([_.f({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.w("design:type",Boolean)],mM.prototype,"disableScroll",void 0);_.c([_.f({computed:"computeId_(data)",reflectToAttribute:!0}),_.w("design:type",String)],mM.prototype,"id",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],mM.prototype,"selected",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],mM.prototype,"disableIncrementalLoading",void 0);_.c([_.f(),_.w("design:type",String)],mM.prototype,"placeholder",void 0);_.c([_.f({value:""}),_.w("design:type",String)],mM.prototype,"search",void 0);_.c([_.f({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.w("design:type",Boolean)],mM.prototype,"searching",void 0);_.c([_.f({computed:"computeSearchCategory_(search)"}),_.w("design:type",Object)],mM.prototype,"searchCategory",void 0);
_.c([_.f({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.w("design:type",Object)],mM.prototype,"searchEmptyMessage",void 0);_.c([_.f({computed:"identity(emojiManager.skinTone)"}),_.w("design:type",Number)],mM.prototype,"skinTone",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],mM.prototype,"skinToneOpened",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],mM.prototype,"variantSelectorOpened",void 0);
_.c([_.f({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.w("design:type",Boolean)],mM.prototype,"skinToneHidden",void 0);_.c([_.f(),_.w("design:type",_.Zb)],mM.prototype,"emojiManager",void 0);_.c([_.f(),_.w("design:type",Object)],mM.prototype,"emojiVariantSelector",void 0);_.c([_.f(),_.w("design:type",Object)],mM.prototype,"emojiMultiPersonSelector",void 0);
_.c([_.f({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.w("design:type",Boolean)],mM.prototype,"shouldUseStickyPreferences",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mM.prototype,"dataChanged",null);_.c([_.$v("data","selected"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mM.prototype,"updateCategoriesAndPlaceholder_",null);
_.c([_.Kq("yt-show-emoji-variant-selector"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],mM.prototype,"onShowEmojiVariantSelector",null);_.c([_.Kq("yt-emoji-picker-select-category"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],mM.prototype,"onSelectCategory_",null);_.c([_.Kq("yt-emoji-hover"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],mM.prototype,"onEmojiHover_",null);
_.c([_.$v("skinTone"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mM.prototype,"skinToneChanged_",null);_.c([_.$v("search"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mM.prototype,"searchChanged_",null);_.c([_.lh({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],mM);
_.A(mM,"yt-emoji-picker-renderer",function(){if(xIc===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Ptg===void 0&&(Ptg=document.createElement("template"));var E=Ptg;d.call(e,E.content.cloneNode(!0),v.content.firstChild);xIc=v}v=xIc;return v},{mode:2});var yX=function(){var v=_.P.apply(this,arguments)||this;v.emojiManager=_.FW;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.selectedIndex=1;v.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return v};
_.V(yX,_.P);_.W=yX.prototype;_.W.handleEmojiCustomizationVisible=function(v){this.emojiPickerRenderer.selected=v;this.selectedIndex=1;v?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.W.emojiCustomizationSetChanged=function(){var v;(v=this.data)!=null&&v.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.uL(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.W.updateSaveButtonState=function(v){var e;(e=this.data)!=null&&e.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Lv("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:v}))};
_.W.emojiUrl=function(v){v=_.ch(this.emojiManager,v);if(!v)return"";var e;v=(e=v.image)==null?void 0:e.thumbnails;return _.i2(v,24)||""};
_.W.emojiAlt=function(v){var e=_.ch(this.emojiManager,v);if(!e)return v;var d,E,T,S=(e==null?void 0:(d=e.image)==null?void 0:(E=d.accessibility)==null?void 0:(T=E.accessibilityData)==null?void 0:T.label)||"";return S?S:e.isCustomEmoji?e.shortcuts[0]:e.emojiId||v};
_.W.emojiAriaLabel=function(v){var e,d;return((e=_.ch(this.emojiManager,v))==null?void 0:(d=e.shortcuts)==null?void 0:d[0])||v};
_.W.onEmojiClick=function(v){v.model.index!==0&&(this.selectedIndex=v.model.index)};
_.W.onEmojiSelect=function(v){v=v.detail;var e,d;((e=this.data)==null?0:e.emojiCustomizationSetEntityKey)&&((d=this.emojiCustomizationSet)==null?0:d.emojiId)&&v.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,v.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Lv("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,v.emojiId,this.selectedIndex)}))};
_.W.canEditEmoji=function(v,e,d){v=v.indexOf(e);return v===d||v===0||d===0?!1:!0};
_.W.getUpdatedEmojiIdList=function(v,e,d){var E=v.indexOf(e);v=[].concat(_.t7(v));E>=0&&(v[E]=v[d]);v[d]=e;return v};
_.vP.Object.defineProperties(yX,{template:{configurable:!0,enumerable:!0,get:function(){if(We0===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Stu===void 0&&(Stu=document.createElement("template"));var E=Stu;d.call(e,E.content.cloneNode(!0),v.content.firstChild);We0=v}v=We0;return v}}});
yX.prototype.onEmojiSelect=yX.prototype.onEmojiSelect;_.c([_.M(_.Ab),_.w("design:type",Object)],yX.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],yX.prototype,"ytActionHandlerBehavior",void 0);_.c([_.sg("yt-emoji-picker-renderer"),_.w("design:type",Object)],yX.prototype,"emojiPickerRenderer",void 0);
_.c([_.f({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(v,e){return _.h_(v.entities,"emojiCustomizationSetEntity",e)},
observer:"emojiCustomizationSetChanged"}),_.w("design:type",Object)],yX.prototype,"emojiCustomizationSet",void 0);_.c([_.f(),_.w("design:type",Object)],yX.prototype,"originalEmojiSet",void 0);_.c([_.f(),_.w("design:type",_.Zb)],yX.prototype,"emojiManager",void 0);_.c([_.f(),_.w("design:type",Object)],yX.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yX.prototype,"isDarkTheme",void 0);_.c([_.f(),_.w("design:type",Object)],yX.prototype,"selectedIndex",void 0);
_.c([_.Kq("yt-emoji-select"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],yX.prototype,"onEmojiSelect",null);_.c([_.lh({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],yX);var A3B;var ZZn;var c3J;var wLA;var qJ=function(){var v=_.P.apply(this,arguments)||this;v.authorBadges=[];return v};
_.V(qJ,_.P);_.W=qJ.prototype;_.W.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.W.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]]"}}}}}};
_.W.dataChanged=function(){var v=JHH(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",v)};
_.W.updateMessage=function(){var v=this.data.message,e=_.IB(_.IB(this.hostElement).querySelector("#message"));e.textContent="";v&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(v))};
_.W.shouldSupportWholeItemClick=function(){return!0};
_.W.onShowOriginalClick=function(v){v.preventDefault();this.showOriginal=!0};
_.W.computeShowBar=function(v,e,d){return v&&e||d};
_.W.computeAuthorBadges=function(v){return v.authorBadges||[]};
_.W.computeAuthorIsOwner=function(v){return!!G0j(v.authorBadges,"owner")};
_.W.computeAuthorNameColor=function(v){var e;if(_.N("live_chat_author_name_color_usernames")&&(v==null?0:(e=v.authorName)==null?0:e.simpleText))return _.xD3(_.BxW(v.authorName.simpleText));if(_.N("live_chat_seed_color_usernames")&&(v==null?0:v.authorSeedColorArgb))return _.xD3(_.m5(v.authorSeedColorArgb));if(_.N("live_chat_colored_usernames"))return"#cc0000";var d;return _.N("live_chat_simple_color_usernames")&&(v==null?0:(d=v.authorName)==null?0:d.simpleText)&&(v==null?0:v.authorUsernameColorLight)&&
(v==null?0:v.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.m5(v.authorUsernameColorDark):_.m5(v.authorUsernameColorLight):""};
qJ.prototype.updateMessage=qJ.prototype.updateMessage;qJ.prototype.dataChanged=qJ.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],qJ.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],qJ.prototype,"data",void 0);
_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],qJ.prototype,"showOriginal",void 0);_.c([_.f({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.w("design:type",Boolean)],qJ.prototype,"isDimmed",void 0);_.c([_.f({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.w("design:type",Boolean)],qJ.prototype,"showBar",void 0);
_.c([_.f({computed:"computeAuthorBadges(data)"}),_.w("design:type",Array)],qJ.prototype,"authorBadges",void 0);_.c([_.f({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],qJ.prototype,"authorIsOwner",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],qJ.prototype,"inCollapsedBanner",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],qJ.prototype,"inBanner",void 0);
_.c([_.f({value:_.N("live_chat_hide_avatars"),reflectToAttribute:!0}),_.w("design:type",Boolean)],qJ.prototype,"avatarHidden",void 0);_.c([_.f({computed:"computeAuthorNameColor(data)"}),_.w("design:type",String)],qJ.prototype,"authorNameColor",void 0);_.c([_.f(),_.w("design:type",_.Db)],qJ.prototype,"participantsManager",void 0);_.c([_.f({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.w("design:type",Object)],qJ.prototype,"filledButtonOverrides",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qJ.prototype,"dataChanged",null);_.c([_.$v("data.message"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qJ.prototype,"updateMessage",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],qJ);
_.A(qJ,"yt-live-chat-text-message-renderer",function(){if(wLA===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;c3J===void 0&&(c3J=document.createElement("template"));var E=c3J;d.call(e,E.content.cloneNode(!0),v.content.firstChild);wLA=v}v=wLA;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var rK=function(){var v=_.P.apply(this,arguments)||this;v.tonalButtonOverrides={type:"tonal",style:"overlay"};return v};
_.V(rK,_.P);
rK.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]]"}}}}}};
rK.prototype.shouldSupportInlineActionButtons=function(){return!0};
rK.prototype.shouldSupportWholeItemClick=function(){return!0};
_.vP.Object.defineProperties(rK.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],rK.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],rK.prototype,"data",void 0);_.c([_.f(),_.w("design:type",_.Db)],rK.prototype,"participantsManager",void 0);
_.c([_.f(),_.w("design:type",Object)],rK.prototype,"tonalButtonOverrides",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data.infoDialogButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],rK.prototype,"hasInfoDialogButton",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],rK);
_.A(rK,"yt-live-chat-auto-mod-message-renderer",function(){if(ZZn===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;A3B===void 0&&(A3B=document.createElement("template"));var E=A3B;d.call(e,E.content.cloneNode(!0),v.content.firstChild);ZZn=v}v=ZZn;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var FeM;var Qf0;var gR2;var uwu=function(){return _.P.apply(this,arguments)||this};
_.V(uwu,_.P);_.c([_.f(),_.w("design:type",Object)],uwu.prototype,"data",void 0);_.c([_.z({is:"ytd-factoid-renderer",disableElementRegistration:!0})],uwu);
_.A(uwu,"ytd-factoid-renderer",function(){if(gR2!==void 0)return gR2;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return gR2=v},{mode:1});var hu=function(){return _.P.apply(this,arguments)||this};
_.V(hu,_.P);hu.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.c([_.f(),_.w("design:type",Object)],hu.prototype,"data",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],hu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],hu);
_.A(hu,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Qf0===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;FeM===void 0&&(FeM=document.createElement("template"));var E=FeM;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Qf0=v}v=Qf0;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var nR7;var DI0;var Kg=function(){return _.P.apply(this,arguments)||this};
_.V(Kg,_.P);Kg.prototype.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Boolean)],Kg.prototype,"menuFocused",void 0);_.c([_.f(),_.w("design:type",Object)],Kg.prototype,"data",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],Kg.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Kg);
_.A(Kg,"yt-live-chat-donation-announcement-renderer",function(){if(DI0===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;nR7===void 0&&(nR7=document.createElement("template"));var E=nR7;d.call(e,E.content.cloneNode(!0),v.content.firstChild);DI0=v}v=DI0;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var UIc;var pLB,vPB=function(){if(pLB!==void 0)return pLB;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;UIc===void 0&&(UIc=document.createElement("template"));var E=UIc;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return pLB=v};var $X=function(){return _.P.apply(this,arguments)||this};
_.V($X,_.P);_.vP.Object.defineProperties($X,{template:{configurable:!0,enumerable:!0,get:function(){return vPB()}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$X.prototype,"data",void 0);_.c([_.lh({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],$X);_.A($X,"yt-live-chat-empty-feed-view-model",function(){return vPB()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var e6i;var do2;var j4=function(){return _.P.apply(this,arguments)||this};
_.V(j4,_.P);j4.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"}}}}}};
_.vP.Object.defineProperties(j4.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var v,e;return{runs:[{text:(v=this.data)==null?void 0:(e=v.channelName)==null?void 0:e.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var v=[],e;if((e=this.data)==null||!e.channelBadges)return v;var d;e=_.a((d=this.data)==null?void 0:d.channelBadges);for(d=e.next();!d.done;d=e.next()){d=_.L(d.value,ACA);var E=void 0,T=void 0;if((E=d)==null?0:(T=E.badgeImage)==null?0:T.sources)E=void 0,T={liveChatAuthorBadgeRenderer:{tooltip:d.tooltip,accessibility:{accessibilityData:{label:(E=_.L(d.rendererContext,_.K6))==null?void 0:E.label}}}},d.badgeImage.sources[0].clientResource?T.liveChatAuthorBadgeRenderer.icon=
{iconType:d.badgeImage.sources[0].clientResource.imageName}:T.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:d.badgeImage.sources},v.push(T)}return v}}});
_.c([_.f(),_.w("design:type",Object)],j4.prototype,"data",void 0);_.c([_.t("data.channelName"),_.w("design:type",Object),_.w("design:paramtypes",[])],j4.prototype,"channelName",null);_.c([_.t("data.channelBadges"),_.w("design:type",Array),_.w("design:paramtypes",[])],j4.prototype,"channelBadges",null);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],j4);
_.A(j4,"yt-live-chat-identity-view-model",function(){if(do2===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;e6i===void 0&&(e6i=document.createElement("template"));var E=e6i;d.call(e,E.content.cloneNode(!0),v.content.firstChild);do2=v}v=do2;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var EPE;var TO6;var S5I;var WGe;var sF=function(){var v=_.P.apply(this,arguments)||this;v.hidden=!1;v.supportsInlineActionButtons=!0;return v};
_.V(sF,_.P);sF.prototype.ready=function(){var v;((v=document.querySelector("yt-live-chat-app"))==null?0:v.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
sF.prototype.dataChanged=function(v){var e=(0,_.y1)(_.IB(this.hostElement).querySelector("#detail-text"));e.textContent="";(v==null?0:v.detailText)&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(v.detailText))};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],sF.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f({observer:"dataChanged"}),_.w("design:type",Object)],sF.prototype,"data",void 0);
_.c([_.f({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.w("design:type",Object)],sF.prototype,"hidden",void 0);_.c([_.z({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],sF);
_.A(sF,"yt-live-chat-legacy-paid-message-renderer",function(){if(WGe===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;S5I===void 0&&(S5I=document.createElement("template"));var E=S5I;d.call(e,E.content.cloneNode(!0),v.content.firstChild);WGe=v}v=WGe;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var aRg;var iSe;var OS6={},NJ=function(){return _.kv.apply(this,arguments)||this};
_.V(NJ,_.kv);NJ.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
NJ.prototype.onLiveChatMembershipItemBehaviorClick=NJ.prototype.onLiveChatMembershipItemBehaviorClick;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],NJ.prototype,"data",void 0);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],NJ.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.c([_.Lq()],NJ);
OS6.YtLiveChatMembershipItemBehavior=[NJ.prototype,_.n.YtRendererBehavior];var kX=function(){var v=_.P.apply(this,arguments)||this;v.supportsInlineActionButtons=!0;v.hasPrimaryHeaderText=!1;v.showOnlyHeader=!1;v.authorBadges=[];v.modern=_.N("web_button_rework_with_live");v.buttonOverrides={style:"overlay",type:"filled"};return v};
_.V(kX,_.P);_.W=kX.prototype;_.W.shouldSupportInlineActionButtons=function(){return!0};
_.W.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.W.ready=function(){var v=document.querySelector("yt-live-chat-app");v&&v.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.W.messageChanged=function(){var v=this.data.message,e=(0,_.y1)(_.IB(this.hostElement).querySelector("#message"));e.textContent="";v&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(v))};
_.W.computeHasPrimaryHeaderText=function(v){return!(!v||!v.headerPrimaryText)};
_.W.computeShowOnlyHeader=function(v,e){return this.isMessageEmpty(v,e)};
_.W.computeAuthorBadges=function(v){return v.authorBadges||[]};
_.W.isMessageEmpty=function(v,e){return!v||v.empty?!0:!v.message&&!v.inputField&&!e};
_.W.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.W.getInputElement=function(){return _.IB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.W.inputFocus=function(){var v=this.getInputElement();v&&v.focus()};
_.W.inputInsertEmoji=function(v){var e=this.getInputElement();e&&e.insertEmoji(v)};
_.W.inputMessage=function(){var v=this.getInputElement();return v&&this.data.inputField?(v.completeEmojis(),_.A8(v.liveChatRichMessageInput)):null};
_.W.onFooterButtonClick=function(){this.data.footerButton&&_.Iq(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.W.shouldSupportWholeItemClick=function(){return!0};
kX.prototype.isDeletedChanged=kX.prototype.isDeletedChanged;kX.prototype.messageChanged=kX.prototype.messageChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],kX.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.M(OS6.YtLiveChatMembershipItemBehavior),_.w("design:type",Object)],kX.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kX.prototype,"data",void 0);_.c([_.f({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.w("design:type",Object)],kX.prototype,"hasPrimaryHeaderText",void 0);_.c([_.f({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.w("design:type",Object)],kX.prototype,"showOnlyHeader",void 0);
_.c([_.f({computed:"computeAuthorBadges(data)"}),_.w("design:type",Array)],kX.prototype,"authorBadges",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kX.prototype,"modern",void 0);_.c([_.$v("data.message"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kX.prototype,"messageChanged",null);_.c([_.$v("isDeleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kX.prototype,"isDeletedChanged",null);
_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],kX);
_.A(kX,"yt-live-chat-membership-item-renderer",function(){if(iSe===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;aRg===void 0&&(aRg=document.createElement("template"));var E=aRg;d.call(e,E.content.cloneNode(!0),v.content.firstChild);iSe=v}v=iSe;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var IR0;var bSg;var Lg=function(){return _.P.apply(this,arguments)||this};
_.V(Lg,_.P);Lg.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Lg.prototype,"data",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Lg);
_.A(Lg,"yt-live-chat-mode-change-message-renderer",function(){if(bSg===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;IR0===void 0&&(IR0=document.createElement("template"));var E=IR0;d.call(e,E.content.cloneNode(!0),v.content.firstChild);bSg=v}v=bSg;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var Y5c;var moE;var VX=function(){return _.P.apply(this,arguments)||this};
_.V(VX,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],VX.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],VX.prototype,"data",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],VX);
_.A(VX,"yt-live-chat-moderation-message-renderer",function(){if(moE===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Y5c===void 0&&(Y5c=document.createElement("template"));var E=Y5c;d.call(e,E.content.cloneNode(!0),v.content.firstChild);moE=v}v=moE;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var yBB;var q50;var oP=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("web_button_rework");return v};
_.V(oP,_.P);oP.prototype.onClick=function(){var v;if((v=this.data)!=null&&v.onClickCommand){var e;_.hg.instance.resolveCommand((e=this.data)==null?void 0:e.onClickCommand)}};
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],oP.prototype,"modern",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],oP.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],oP.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],oP.prototype,"data",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],oP);
_.A(oP,"yt-live-chat-offer-click-count-message-renderer",function(){if(q50===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;yBB===void 0&&(yBB=document.createElement("template"));var E=yBB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);q50=v}v=q50;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var rBn;var h6M=function(){return _.P.apply(this,arguments)||this};
_.V(h6M,_.P);_.c([_.f(),_.w("design:type",Object)],h6M.prototype,"data",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],h6M);
_.A(h6M,"yt-live-chat-placeholder-item-renderer",function(){if(rBn===void 0){var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);rBn=v}v=rBn;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var KG7;var $o7;var j1e=new DY(7),Ju=function(){var v=_.P.apply(this,arguments)||this;v.data={};return v};
_.V(Ju,_.P);Ju.prototype.dataChanged=function(){var v;((v=this.data)==null?0:v.class)&&_.Yv(this.hostElement,this.data.class,!0);var e;((e=this.oldData)==null?0:e.class)&&_.Yv(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Ju.prototype.computeTimestampString=function(v){return j1e.format(new Date(v/1E3))};
Ju.prototype.dataChanged=Ju.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],Ju.prototype,"data",void 0);_.c([_.f({computed:"computeTimestampString(data.timestampUsec)"}),_.w("design:type",String)],Ju.prototype,"timestampString",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ju.prototype,"dataChanged",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Ju);
_.A(Ju,"yt-live-chat-server-error-message",function(){if($o7===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;KG7===void 0&&(KG7=document.createElement("template"));var E=KG7;d.call(e,E.content.cloneNode(!0),v.content.firstChild);$o7=v}v=$o7;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var s1n;var NOI;var Gu=function(){var v=_.P.apply(this,arguments)||this;v.defaultToFilledIcon=!1;return v};
_.V(Gu,_.P);Gu.prototype.computeHasPrimaryColorIcon=function(v){return v==="SPARK"||v==="SPONSORSHIP_STAR"};
Gu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],Gu.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Gu.prototype,"defaultToFilledIcon",void 0);_.c([_.f(),_.w("design:type",Object)],Gu.prototype,"data",void 0);
_.c([_.f({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Gu.prototype,"hasPrimaryColorIcon",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Gu);
_.A(Gu,"yt-live-chat-viewer-engagement-message-renderer",function(){if(NOI===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;s1n===void 0&&(s1n=document.createElement("template"));var E=s1n;d.call(e,E.content.cloneNode(!0),v.content.firstChild);NOI=v}v=NOI;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var kGJ;var MJ=function(){var v=_.P.apply(this,arguments)||this;v.modernUpdate=!1;v.buttonStyle="overlay";v.buttonType="filled";return v};
_.V(MJ,_.P);MJ.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
MJ.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],MJ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],MJ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],MJ.prototype,"modernUpdate",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],MJ.prototype,"buttonStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],MJ.prototype,"buttonType",void 0);
_.c([_.z({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],MJ);
_.A(MJ,"ytd-ad-hover-text-button-renderer",function(){if(kGJ!==void 0)return kGJ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return kGJ=v},{mode:1});var LG0;var tu=function(){var v=_.P.apply(this,arguments)||this;v.buttonOverrides={size:"XS"};v.modern=_.N("web_button_rework");return v};
_.V(tu,_.P);tu.prototype.onHelpTap=function(v){this.data&&this.data.informationDialog&&(_.Iq(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),v.preventDefault(),v.stopPropagation())};
_.c([_.f(),_.w("design:type",Object)],tu.prototype,"buttonOverrides",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],tu.prototype,"modern",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],tu.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],tu);
_.A(tu,"ytd-live-chat-purchased-product-message-renderer",function(){if(LG0!==void 0)return LG0;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return LG0=v},{mode:1});var VJi;var oPB;var fg=function(){var v=_.P.apply(this,arguments)||this;v.isContainerDeleted=!1;return v};
_.V(fg,_.P);fg.prototype.onContextMenuClick=function(v){this.ytLiveChatItemBehavior.showContextMenu(v)};
fg.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))};
fg.prototype.isContainerDeletedChanged=fg.prototype.isContainerDeletedChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fg.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],fg.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fg.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],fg.prototype,"isContainerDeleted",void 0);
_.c([_.f(),_.w("design:type",String)],fg.prototype,"deletedStateMessage",void 0);_.c([_.$v("isContainerDeleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fg.prototype,"isContainerDeletedChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],fg);
_.A(fg,"ytd-sponsorships-live-chat-header-renderer",function(){if(oPB!==void 0)return oPB;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return oPB=v},{mode:1});var RP=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("web_button_rework_with_live");v.buttonOverrides={style:"overlay",type:"filled"};return v};
_.V(RP,_.P);RP.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]]"}}}}}};
RP.prototype.onCtaButtonClick=function(){var v,e=_.L((v=this.data)==null?void 0:v.optInPrompt,_.BD);if(v=this.maybeGetButtonCommand(e)){var d;(d=_.NC())==null||d.clickCommand(v)}};
RP.prototype.maybeGetButtonCommand=function(v){return!v||!v.command||_.L(v.command,VNc)===void 0&&_.L(v.command,LZ2)===void 0?null:v.command};
RP.prototype.shouldHideOptinPrompt=function(v,e){return!v||e};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],RP.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],RP.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],RP.prototype,"modern",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],RP);
_.A(RP,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(VJi!==void 0)return VJi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return VJi=v},{mode:1});var JB7;var Pk=function(){return _.P.apply(this,arguments)||this};
_.V(Pk,_.P);Pk.prototype.onContextMenuClick=function(v){this.ytLiveChatItemBehavior.showContextMenu(v)};
Pk.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))};
Pk.prototype.isDeletedChanged=Pk.prototype.isDeletedChanged;_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],Pk.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Pk.prototype,"data",void 0);_.c([_.$v("isDeleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Pk.prototype,"isDeletedChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Pk);
_.A(Pk,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(JB7!==void 0)return JB7;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return JB7=v},{mode:1});var xX=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return v};
_.V(xX,_.P);_.W=xX.prototype;
_.W.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"}}}};
_.W.handleLiveChatAction=function(v){_.L(v,R8E)?this.handleMarkChatItemAsDeletedAction(_.L(v,R8E)):_.L(v,fc7)&&this.handleRemoveChatItemAction(_.L(v,fc7))};
_.W.handleLiveChatActions=function(v){v.forEach(this.handleLiveChatAction,this)};
_.W.handleMarkChatItemAsDeletedAction=function(v){var e=this,d;((d=this.data)==null?0:d.items)&&this.data.items.forEach(function(E,T){var S=Object.keys(E)[0];Object.values(E)[0].id===v.targetItemId&&e.markAsDeleted("data.items",T,S,v.deletedStateMessage,v.showOriginalContentMessage)})};
_.W.handleRemoveChatItemAction=function(v){var e=this,d;((d=this.data)==null?0:d.items)&&this.data.items.forEach(function(E,T){Object.values(E)[0].id===v.targetItemId&&e.splice("data.items",T,1)})};
_.W.markAsDeleted=function(v,e,d,E,T){v=[v,e,d].join(".");this.set(v+".deletedStateMessage",E);this.set(v+".showOriginalContentMessage",T)};
_.c([_.f(),_.w("design:type",Object)],xX.prototype,"data",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],xX.prototype,"ytActionHandlerBehavior",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],xX);
_.A(xX,"yt-live-chat-item-display-list-renderer",function(){if(TO6===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;EPE===void 0&&(EPE=document.createElement("template"));var E=EPE;d.call(e,E.content.cloneNode(!0),v.content.firstChild);TO6=v}v=TO6;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var GGM;var MJi,tJg=function(){if(MJi!==void 0)return MJi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;GGM===void 0&&(GGM=document.createElement("template"));var E=GGM;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return MJi=v};var Bk=function(){var v=_.P.apply(this,arguments)||this;v.isHeader=!1;return v};
_.V(Bk,_.P);Bk.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.vP.Object.defineProperties(Bk,{template:{configurable:!0,enumerable:!0,get:function(){return tJg()}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Bk.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Bk.prototype,"isHeader",void 0);_.c([_.lh({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Bk);_.A(Bk,"yt-live-chat-item-display-renderer",function(){return tJg()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var fRI,R6M,XE2,C7u;
fRI={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}};R6M={home:"eohps",search:"eosps",watch:"eowps"};_.P76=["watch","search","home"];
_.Cg=function(){this.JSC$14277_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14277_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Bb("PRECONSTRUCTION_DELAY",0);this.signals_=_.HH();this.targetPage_=""};
_.Cg.prototype.init=function(v,e){v=v===void 0?"":v;e=e===void 0?null:e;if(this.JSC$14277_isInitialized_)this.abort();else if(this.JSC$14277_isInitialized_=!0,v&&_.xog(this,v),e){var d=_.Ad(this.signals_,"pcl")?0:10,E=function(){for(var T=0,S;S=_.P76[T++];)S!=v&&S!=e&&this.pendingPages_.push(S);_.BOn(this)}.bind(this);
this.signals_.parkOrScheduleJob(E,d,"pcl")}};
_.Cg.prototype.abort=function(){this.fragmentJobId_&&(_.RM.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);C7u(this)};
_.xog=function(v,e){v.JSC$14277_isInitialized_&&!v.targetPage_&&(v.targetPage_=e,XE2(v,e),v.isInitialPass_=!1,XE2(v,e),v.signals_.processSignal(R6M[v.targetPage_]),C7u(v),_.BOn(v))};
_.BOn=function(v){v.pendingPages_.length&&!v.pagePreparerJobId_&&(v.pagePreparerJobId_=_.LI(_.RM,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.xog(this,this.pendingPages_.shift())}.bind(v),v.DEFAULT_DELAY_))};
XE2=function(v,e){if(e=fRI[e])for(var d in e){var E=!1,T=d;d.charAt(0)=="~"&&(E=!0,T=d.substring(1));var S=e[d];S=typeof S=="object"?S:{count:S};e[d]=S;S.componentName=T;S.count>0&&(v.isInitialPass_?E||v.isSeenDuringInitialPass_[T]||(v.JSC$14277_queue_.push({componentName:T,count:1,signals:S.signals}),v.isSeenDuringInitialPass_[T]=!0,S.count--):v.JSC$14277_queue_.push(S))}};
C7u=function(v){v.JSC$14277_queue_.length=0;v.targetPage_="";v.isInitialPass_=!0;v.signals_.processSignal("eop")};
_.Cg.getInstance=function(){return _.nr(_.Cg)};var z66=function(){this.signals=_.HH();this.init()};
z66.prototype.startPreconstruction=function(){_.Cg.getInstance().init(_.zr("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
z66.prototype.init=function(){lRE(this);window.Polymer&&Cl0&&hnW();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var v=_.TO.ytcsi;if(v&&v.gt&&(v=v.gt())&&v.tick&&(v.tick.aft>0||v.tick.pbs>0)&&(_.zr("IS_HOMEPAGE_COLD")||_.zr("IS_RESULTS_PAGE_COLD")||_.zr("IS_WATCH_PAGE_COLD"))){HSE(this);break a}rGS(b$U,this.onNotifications,this)}};
var lRE=function(v){var e=function(){v.signals.processSignal("dl")};
document.readyState==="complete"?(_.ZV(Error("uh"),"WARNING"),e()):_.F5s(window,"load",e)};
z66.prototype.onNotifications=function(v){v.timer||(_.zr("IS_HOMEPAGE_COLD")||_.zr("IS_RESULTS_PAGE_COLD")||_.zr("IS_WATCH_PAGE_COLD"))&&HSE(this)};
var HSE=function(v){v.signals.parkOrScheduleJob(function(){v.signals.processSignal("eocs")},10,"eor")};
new z66;var XF,AB2=function(){return _.kv.apply(this,arguments)||this};
_.V(AB2,_.kv);_.W=AB2.prototype;_.W.enableActiveViewMeasurement=function(v){if(this.isActiveViewEnabled(v)){var e=this.getUrlPrefixesFromCommand(v.viewableCommands);v=this.getUrlPrefixesFromCommand(v.endOfSessionCommands);if(!XF){var d=_.Wi("custom_active_view_tos_timeout_ms");XF=d>0&&d!==36E5?new nbL(this.getVersion(),d):new nbL(this.getVersion())}UzL(XF,this.hostElement);pS0(XF,this.hostElement,e,v)}};
_.W.stopActiveViewMeasurement=function(){XF&&UzL(XF,this.hostElement)};
_.W.isActiveViewEnabled=function(v){return!!v&&(this.hasAtLeastOneUrl(v.viewableCommands)||this.hasAtLeastOneUrl(v.endOfSessionCommands))};
_.W.hasAtLeastOneUrl=function(v){return!!v&&v.length>0&&v[0].loggingUrls!=null&&v[0].loggingUrls.length>0};
_.W.getVersion=function(){var v=_.Bb("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(v==null?void 0:v.length)===2?v[1]:null};
_.W.getUrlPrefixesFromCommand=function(v){if(!v)return[];var e=[];v=_.a(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value,d.loggingUrls){d=_.a(d.loggingUrls);for(var E=d.next();!E.done;E=d.next())E=E.value,E.baseUrl&&e.push(E.baseUrl)}return e};
_.c([_.Lq()],AB2);var zu=[AB2.prototype];var ZS2=function(){return _.kv.apply(this,arguments)||this};
_.V(ZS2,_.kv);_.vP.Object.defineProperties(ZS2.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.N("enable_entity_store_from_dependency_injection")?_.pq():_.d1()}}});
_.c([_.Lq()],ZS2);_.lV=[xK.prototype,ZS2.prototype];var cBi=["ytd-rich-shelf-renderer"],Hk=function(){var v=_.kv.apply(this,arguments)||this;v._noAccessors=!0;v.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";v.followUpDialogPromise=null;v.followUpDialogPromiseResolve=null;v.followUpDialogPromiseReject=null;return v};
_.V(Hk,_.kv);_.W=Hk.prototype;_.W.dismissibleItemIsDismissedChanged_=function(v){_.N("kevlar_fluid_dismiss")&&(v?_.Iq(this.hostElement,"yt-dismissible-item-dismissed"):_.Iq(this.hostElement,"yt-dismissible-item-undismissed"))};
_.W.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.W.dismissibleItemReset_=function(){var v=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.yf(function(e,d){v.followUpDialogPromiseResolve=e;v.followUpDialogPromiseReject=d});
_.Iq(this.hostElement,"yt-enable-lockup-interaction")};
_.W.dismissibleItemOnYtServiceRequestSent_=function(v,e){e.actions&&this.dismissibleItemProcessActions(e.actions,v)};
_.W.dismissibleItemOnRequestSent=function(v){if(_.N("web_button_rework"))for(var e=_.a(v.detail),d=e.next();!d.done;d=e.next()){var E=void 0;(d=(E=_.L(d.value,_.KB))==null?void 0:E.actions)&&this.dismissibleItemProcessActions(d,v)}};
_.W.dismissibleItemOnCommandSent=function(v,e){e&&this.dismissibleItemProcessActions(e,v)};
_.W.setAndGetDismissedContentId=function(v){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+v};
_.W.replayDismissAction=function(v){this.dismissibleItemProcessActions([v])};
_.W.dismissibleItemProcessActions=function(v,e){for(var d=0;d<v.length;d++){var E=v[d],T=void 0;((T=_.L(E,_.rV))==null?0:T.commands)&&this.dismissibleItemProcessActions(_.L(E,_.rV).commands,e);if(_.L(E,_.j6)){if(T=_.L(E,_.j6),!T.replaceParentSection||cBi.includes(this.hostElement.nodeName.toLowerCase()))T.groupDismissal&&DoS(this,T.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(T),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Lv("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:E})),E=void 0,(E=e)==null||E.stopPropagation()}else if(_.L(E,fiM))this.dismissibleItemHandleHideEnclosingAction_(),E=void 0,(E=e)==null||E.stopPropagation();else if(_.L(E,eYi))E=_.L(E,eYi),T=void 0,((T=E)==null?0:T.targetGroupId)&&DoS(this,{targetGroupId:E.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Lv("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
E=void 0,(E=e)==null||E.stopPropagation();else if(_.L(E,_.KB))(E=_.L(E,_.KB).actions)&&_.ya(this.hostElement,E,this.hostElement),E=void 0,(E=e)==null||E.stopPropagation();else{var S=T=void 0;((T=_.L(E,_.HV))==null?void 0:T.signal)!=="TELL_US_WHY"||((S=_.L(E,_.HV))==null?0:S.targetId)&&_.N("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),E=void 0,(E=e)==null||E.stopPropagation())}}};
_.W.dismissibleItemOnYtServiceRequestCompleted_=function(v,e){var d=this.get("feedbackResponses.0.followUpDialog",e.data);d?this.followUpDialogPromiseResolve(d):e.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(e.actions,v)};
_.W.dismissibleItemHandleReplaceEnclosingAction_=function(v){this.dismissedRenderer=v.item;this.isDismissed=!0;var e=null;(e=_.IB(this.hostElement).querySelector("#dismissed"))&&_.Uh(this,function(){_.nU(e)});
_.Iq(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.W.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.W.dismissibleItemHandleUndoFeedbackAction_=function(){_.Iq(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.W.dismissibleItemHandleTellUsWhySignalAction_=function(){var v=this;this.followUpDialogPromise.then(function(e){v.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:e}})})};
Hk.prototype.dismissibleItemOnYtServiceRequestCompleted_=Hk.prototype.dismissibleItemOnYtServiceRequestCompleted_;Hk.prototype.dismissibleItemOnCommandSent=Hk.prototype.dismissibleItemOnCommandSent;Hk.prototype.dismissibleItemOnRequestSent=Hk.prototype.dismissibleItemOnRequestSent;Hk.prototype.dismissibleItemOnYtServiceRequestSent_=Hk.prototype.dismissibleItemOnYtServiceRequestSent_;Hk.prototype.dismissibleItemDataChanged_=Hk.prototype.dismissibleItemDataChanged_;
Hk.prototype.dismissibleItemIsDismissedChanged_=Hk.prototype.dismissibleItemIsDismissedChanged_;_.c([_.M(_.dK),_.w("design:type",Object)],Hk.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Hk.prototype,"ytdReduxBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Hk.prototype,"isDismissed",void 0);_.c([_.f(),_.w("design:type",Object)],Hk.prototype,"dismissedRenderer",void 0);
_.c([_.$v("isDismissed"),_.w("design:type",Function),_.w("design:paramtypes",[Boolean]),_.w("design:returntype")],Hk.prototype,"dismissibleItemIsDismissedChanged_",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Hk.prototype,"dismissibleItemDataChanged_",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],Hk.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.c([_.Kq("yt-service-request-sent-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Hk.prototype,"dismissibleItemOnRequestSent",null);
_.c([_.Kq("yt-dismissible-item-action"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Array]),_.w("design:returntype")],Hk.prototype,"dismissibleItemOnCommandSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],Hk.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.c([_.Lq()],Hk);_.Au=[_.dK,_.lV,Hk.prototype];var ZK=function(){var v=_.kv.apply(this,arguments)||this;v.disableGridStateAware=!1;v.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};v.currentGridClass="";return v};
_.V(ZK,_.kv);ZK.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Uh(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var v=this.gridStateAwareGetElement();_.Yv(v,"grid",!0)}};
ZK.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
ZK.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.IB(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
ZK.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var v="grid-disabled";else{v=_.tVu.getInstance();var e=this.get("pageSubtype");v=e&&Jhn.includes(e)?"grid-disabled":v.currentSnapState_?v.currentSnapState_.className:null}(e=this.gridStateAwareGetElement())&&v!==this.currentGridClass&&(v&&_.Yv(e,v,!0),this.currentGridClass&&_.Yv(e,this.currentGridClass,!1),this.currentGridClass=v)};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],ZK.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",String)],ZK.prototype,"gridStateAwareSizingElementSelector",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ZK.prototype,"disableGridStateAware",void 0);_.c([_.Lq()],ZK);_.ck=[ZK.prototype,_.$M.YtActionHandlerBehavior];_.wK=new _.nC("GUIDE_TOKEN");var QX;_.FF={};QX=function(){var v=_.kv.apply(this,arguments)||this;v.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 v};
_.V(QX,_.kv);_.W=QX.prototype;_.W.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.W.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var v=_.dk().resolve(_.eG(_.wK));v&&(this.guidePersistentAndVisible=v.getGuidePersistentAndVisible(),this.activeEndpoint=v.getActiveEndpoint(),this.guideOpened=v.getGuideOpened(),this.miniGuideVisible=v.getMiniGuideVisible())};
_.W.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.W.handleGuideStateAction=function(v){this.guidePersistentAndVisible=v};
_.W.handleMiniGuideStateAction=function(v){this.miniGuideVisible=v};
_.W.handleGuideOpenedAction=function(v){this.guideOpened=v};
_.W.handleActiveEndpointAction=function(v){this.activeEndpoint=v};
QX.prototype.onActiveEndpointChange=QX.prototype.onActiveEndpointChange;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],QX.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],QX.prototype,"guidePersistentAndVisible",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],QX.prototype,"miniGuideVisible",void 0);_.c([_.f(),_.w("design:type",Object)],QX.prototype,"activeEndpoint",void 0);
_.c([_.$v("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QX.prototype,"onActiveEndpointChange",null);_.c([_.f(),_.w("design:type",Boolean)],QX.prototype,"guideOpened",void 0);_.c([_.Lq()],QX);_.FF.YtdGuideStateAwareBehavior=[];_.FF.YtdGuideStateAwareBehavior.push(QX.prototype,_.$M.YtActionHandlerBehavior);var wEu=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],gK=function(){var v=_.kv.apply(this,arguments)||this;v.hoverJobId=0;v.JSC$14308_touched=!1;return v};
_.V(gK,_.kv);_.W=gK.prototype;_.W.created=function(){this.useExpandableTooltip=!wEu.includes(this.is)};
_.W.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.W.detached=function(){this.useExpandableTooltip=!1};
_.W.lockupOnDown=function(v){this.interactionElement&&!_.UG(_.vg(v),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.W.lockupOnUp=function(v){this.interactionElement&&!_.UG(_.vg(v),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.W.onTouchStart=function(){this.JSC$14308_touched=!0};
_.W.lockupOnMouseEnter=function(){var v=this,e=_.Wi("kevlar_lockup_hover_delay",-1);this.JSC$14308_touched&&e>=0?(_.RM.cancelJob(this.hoverJobId),this.hoverJobId=_.RM.addJob(function(){v.lockupIsHovered=!0},8,e),this.JSC$14308_touched=!1):this.lockupIsHovered=!0};
_.W.lockupOnMouseLeave=function(){this.hoverJobId&&(_.RM.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.W.lockupOnPopupClosed=function(v,e){var d;((d=e.popupRenderer)==null?void 0:d.is)==="ytd-menu-popup-renderer"&&(v=e.popupRenderer.veData,e=_.zz(),v&&e&&_.Dm(e,[v]))};
_.W.lockupOnLockupRequested=function(v){var e=v.detail.videoIds[0],d;v.detail&&e===((d=this.data)==null?void 0:d.videoId)&&(v.detail.returnValue=[this.data])};
_.W.lockupOnYtServiceRequestSent=function(v,e){if(v=e.actions)for(var d=0;d<v.length;d++){var E=v[d];if(E.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&e.ajaxPromise){var T=void 0,S=(T=_.L(e.endpoint,_.Ri))==null?void 0:T.playlistId;T=void 0;E=(T=E.removedVideoId)!=null?T:"";p4e(_.cH(),E,S)}else E.action==="ACTION_REMOVE_VIDEO"&&e.ajaxPromise&&(S=void 0,E=(S=E.setVideoId)!=null?S:"",_.vQE(_.cH(),E))}};
_.W.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.W.lockupOnLockupEnabled=function(){if(!this.$){var v=_.dk().resolve(_.v5).getCurrentPage(),e=this.getParentRenderer?this.getParentRenderer():void 0;_.xf(new _.kL("component not ready",this.is,this.isAttached,v==null?void 0:v.is,e==null?void 0:e.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
gK.prototype.lockupOnLockupEnabled=gK.prototype.lockupOnLockupEnabled;gK.prototype.lockupOnLockupDisabled=gK.prototype.lockupOnLockupDisabled;gK.prototype.lockupOnYtServiceRequestSent=gK.prototype.lockupOnYtServiceRequestSent;gK.prototype.lockupOnLockupRequested=gK.prototype.lockupOnLockupRequested;gK.prototype.lockupOnPopupClosed=gK.prototype.lockupOnPopupClosed;gK.prototype.lockupOnMouseLeave=gK.prototype.lockupOnMouseLeave;gK.prototype.lockupOnMouseEnter=gK.prototype.lockupOnMouseEnter;
gK.prototype.onTouchStart=gK.prototype.onTouchStart;gK.prototype.lockupOnUp=gK.prototype.lockupOnUp;gK.prototype.lockupOnDown=gK.prototype.lockupOnDown;_.c([_.f(),_.w("design:type",Object)],gK.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],gK.prototype,"lockupIsHovered",void 0);_.c([_.f(),_.w("design:type",Boolean)],gK.prototype,"lockupTouchTriggered",void 0);_.c([_.f(),_.w("design:type",Boolean)],gK.prototype,"useExpandableTooltip",void 0);
_.c([_.sg("#interaction"),_.w("design:type",Object)],gK.prototype,"interactionElement",void 0);_.c([_.Kq("down"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],gK.prototype,"lockupOnDown",null);_.c([_.Kq("up"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],gK.prototype,"lockupOnUp",null);
_.c([_.Kq("touchstart"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gK.prototype,"onTouchStart",null);_.c([_.Kq("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gK.prototype,"lockupOnMouseEnter",null);_.c([_.Kq("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gK.prototype,"lockupOnMouseLeave",null);
_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],gK.prototype,"lockupOnPopupClosed",null);_.c([_.Kq("yt-lockup-requested"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],gK.prototype,"lockupOnLockupRequested",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],gK.prototype,"lockupOnYtServiceRequestSent",null);_.c([_.Kq("yt-disable-lockup-interaction"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gK.prototype,"lockupOnLockupDisabled",null);
_.c([_.Kq("yt-enable-lockup-interaction"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gK.prototype,"lockupOnLockupEnabled",null);_.c([_.Lq()],gK);_.uV=[gK.prototype];_.FGM={YtdReduxBehavior:[]};_.FGM.YtdReduxBehavior.push.apply(_.FGM.YtdReduxBehavior,_.lV);var DK=function(){var v=_.kv.apply(this,arguments)||this;v._noAccessors=!0;v.disableNowPlaying=!1;v.disableTooltips=!1;v.useHoveredProperty=!1;v.hovered=!1;v.isThumbnailHovered_=!1;v.addBackground=_.N("kevlar_thumbnail_bg");v.nowPlaying=!1;v.disableRounding=!1;v.size="small";return v};
_.V(DK,_.kv);_.W=DK.prototype;_.W.computeThumbnailOverlaySidePanelWidth_=function(v,e){return v-e};
_.W.computeSize=function(v,e){if(!this.disableRounding){if(!v&&!e)return"small";v=Math.max(v||0,e||0);return v>=256?"large":v>=96?"medium":"small"}};
_.W.computeFinalHoveredState_=function(v,e,d){return this.nowPlaying?!1:_.N("kevlar_thumbnail_fluid")&&v?e:d};
_.W.computeHoverOverlays_=function(v,e){return v&&e?e:void 0};
_.W.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.W.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.W.checkMiniplayer_=function(){var v;if(((v=this.data)==null?0:v.playlistSetVideoId)&&_.N("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{v=_.Ke();var e=v.currentEndpoint;!this.disableNowPlaying&&e&&_.L(e,_.p2)&&this.data?(e=_.L(e,_.p2),this.nowPlaying=this.data.playlistId?e.playlistId===this.data.playlistId:e.videoId===this.data.videoId,this.isVideoPlaying=v==null?void 0:v.isVideoPlaying):this.nowPlaying=!1}};
DK.prototype.checkMiniplayer_=DK.prototype.checkMiniplayer_;DK.prototype.onMouseLeave_=DK.prototype.onMouseLeave_;DK.prototype.onMouseEnter_=DK.prototype.onMouseEnter_;DK.prototype.computeHoverOverlays_=DK.prototype.computeHoverOverlays_;DK.prototype.computeFinalHoveredState_=DK.prototype.computeFinalHoveredState_;DK.prototype.computeSize=DK.prototype.computeSize;DK.prototype.computeThumbnailOverlaySidePanelWidth_=DK.prototype.computeThumbnailOverlaySidePanelWidth_;
_.c([_.M(_.lV),_.w("design:type",Object)],DK.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],DK.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Number)],DK.prototype,"height",void 0);_.c([_.f(),_.w("design:type",Boolean)],DK.prototype,"bottomSidePanel",void 0);_.c([_.f(),_.w("design:type",Number)],DK.prototype,"width",void 0);_.c([_.f(),_.w("design:type",Object)],DK.prototype,"disableNowPlaying",void 0);
_.c([_.f({selector:_.za}),_.w("design:type",Boolean)],DK.prototype,"miniplayerIsActive",void 0);_.c([_.f(),_.w("design:type",Object)],DK.prototype,"disableTooltips",void 0);_.c([_.f(),_.w("design:type",Object)],DK.prototype,"useHoveredProperty",void 0);_.c([_.f(),_.w("design:type",Object)],DK.prototype,"hovered",void 0);_.c([_.f(),_.w("design:type",Object)],DK.prototype,"isThumbnailHovered_",void 0);
_.c([_.f({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.w("design:type",Boolean)],DK.prototype,"finalHoveredState_",void 0);_.c([_.f({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.w("design:type",Number)],DK.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DK.prototype,"addBackground",void 0);
_.c([_.f({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.w("design:type",Object)],DK.prototype,"hoverOverlays_",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DK.prototype,"nowPlaying",void 0);_.c([_.f(),_.w("design:type",Boolean)],DK.prototype,"isVideoPlaying",void 0);_.c([_.f(),_.w("design:type",Object)],DK.prototype,"disableRounding",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.w("design:type",Object)],DK.prototype,"size",void 0);_.c([_.Kq("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DK.prototype,"onMouseEnter_",null);_.c([_.Kq("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DK.prototype,"onMouseLeave_",null);
_.c([_.$v("data","disableNowPlaying","miniplayerIsActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DK.prototype,"checkMiniplayer_",null);_.c([_.Lq()],DK);var Q16=[DK.prototype];_.UF={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(v,e){return v+":"+_.gH(e)},
getPlayerListener_:function(v,e,d){v=this.getPlayerListenerKey_(v,e);e=this.playerListeners_.get(v);d&&this.playerListeners_.delete(v);return e},
savePlayerListener_:function(v,e){var d=e.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(v,e),d);return d},
listenToPlayerEvent:function(v,e,d){d=this.savePlayerListener_(e,d);v.addEventListener(e,d)},
listenToPlayerEvents:function(v,e){e.forEach(function(d,E){this.listenToPlayerEvent(v,E,d)}.bind(this))},
unlistenFromPlayerEvent:function(v,e,d){d=this.getPlayerListener_(e,d,!0);v.removeEventListener(e,d)},
unlistenFromPlayerEvents:function(v,e){e.forEach(function(d,E){this.unlistenFromPlayerEvent(v,E,d)}.bind(this))}}};
_.pg=function(){};_.gPM=new _.nC("PLAYER_API_TOKEN");var T8M=!1,iHs,W93=!1,I$0;var SK=function(v,e,d,E,T){_.kh.call(this);var S=this;this.playerId=e;this.webPlayerContextConfig=E;this.egD=T;this.dIX=!1;this.api={};this.v0d=this.yqd=null;this.oaE=new _.rk;this.uD={};this.fSd=this.nRE=this.elementId=this.yVS=this.config=null;this.eFa=!1;this.hY=this.lQC=null;this.dqE={};this.pSl=["onReady"];this.lastError=null;this.kCu=NaN;this.twY={};this.aEc=0;this.cN=this.targetElement=v;_.Yh(this,this.oaE);uHu(this);d?this.aEc=setTimeout(function(){S.loadNewVideoConfig(d)},0):E&&(nPA(this),
DoI(this))};
_.V(SK,_.kh);SK.prototype.getId=function(){return this.playerId};
SK.prototype.loadNewVideoConfig=function(v){if(!this.isDisposed()){this.aEc&&(clearTimeout(this.aEc),this.aEc=0);var e=v||{};e instanceof ig7||(e=new ig7(e));this.config=e;this.setConfig(v);DoI(this);this.isReady()&&Uoi(this)}};
var nPA=function(v){var e;v.webPlayerContextConfig?e=v.webPlayerContextConfig.rootElementId:e=v.config.attrs.id;v.elementId=e||v.elementId;v.elementId==="video-player"&&(v.elementId=v.playerId,v.webPlayerContextConfig?v.webPlayerContextConfig.rootElementId=v.playerId:v.config.attrs.id=v.playerId);var d;((d=v.cN)==null?void 0:d.id)===v.elementId&&(v.elementId+="-player",v.webPlayerContextConfig?v.webPlayerContextConfig.rootElementId=v.elementId:v.config.attrs.id=v.elementId)};
SK.prototype.setConfig=function(v){this.yVS=v;this.config=pEE(v);nPA(this);if(!this.nRE){var e;this.nRE=vyu(this,((e=this.config.args)==null?void 0:e.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var d;if((d=this.config)==null?0:d.attrs)v=this.config.attrs,(e=v.width)&&this.cN&&(this.cN.style.width=Rd(Number(e)||e,!0)),(v=v.height)&&this.cN&&(this.cN.style.height=Rd(Number(v)||v,!0))};
var Uoi=function(v){if(v.config&&v.config.loaded!==!0)if(v.config.loaded=!0,!v.config.args||v.config.args.autoplay!=="0"&&v.config.args.autoplay!==0&&v.config.args.autoplay!==!1){var e;v.api.loadVideoByPlayerVars((e=v.config.args)!=null?e:null)}else v.api.cueVideoByPlayerVars(v.config.args)},dM7=function(v){var e=!0,d=v.getPlayerElement();
d&&v.config&&(e=d.dataset.version===eLJ(v));return e&&!!_.AE("yt.player.Application.create")},DoI=function(v){if(!v.isDisposed()&&!v.eFa){var e=dM7(v);
if(e&&(v.getPlayerElement()?"html5":null)==="html5")v.fSd="html5",v.isReady()||EyI(v);else if(T8J(v),v.fSd="html5",e&&v.hY&&v.targetElement)v.targetElement.appendChild(v.hY),EyI(v);else{v.config&&(v.config.loaded=!0);var d=!1;v.lQC=function(){d=!0;var E=SMg(v,"player_bootstrap_method")?_.AE("yt.player.Application.createAlternate")||_.AE("yt.player.Application.create"):_.AE("yt.player.Application.create");var T=v.config?pEE(v.config):void 0;E&&E(v.targetElement,T,v.webPlayerContextConfig,v.egD);EyI(v)};
v.eFa=!0;e?v.lQC():(_.Ff(eLJ(v),v.lQC),(e=W9c(v))&&fXS(e||""),a$i(v)&&!d&&_.pw("yt.player.Application.create",null))}}};
SK.prototype.getPlayerElement=function(){var v=_.Tn(document,this.elementId);!v&&this.cN&&this.cN.querySelector&&(v=this.cN.querySelector("#"+this.elementId));return v};
var EyI=function(v){if(!v.isDisposed()){var e=v.getPlayerElement(),d=!1;e&&e.getApiInterface&&e.getApiInterface()&&(d=!0);if(d){v.eFa=!1;if(!SMg(v,"html5_remove_not_servable_check_killswitch")){var E;if((e==null?0:e.isNotServable)&&v.config&&(e==null?0:e.isNotServable((E=v.config.args)==null?void 0:E.video_id)))return}iHe(v)}else v.kCu=setTimeout(function(){EyI(v)},50)}},iHe=function(v){uHu(v);
v.dIX=!0;var e=v.getPlayerElement();if(e){v.yqd=OH6(v,e,"addEventListener");v.v0d=OH6(v,e,"removeEventListener");var d=e.getApiInterface();d=d.concat(e.getInternalApiInterface());for(var E=v.api,T=0;T<d.length;T++){var S=d[T];E[S]||(E[S]=OH6(v,e,S))}}for(var O in v.uD)v.uD.hasOwnProperty(O)&&v.yqd&&v.yqd(O,v.uD[O]);Uoi(v);v.nRE&&v.nRE(v.api);v.oaE.publish("onReady",v.api)},OH6=function(v,e,d){var E=e[d];
return function(){var T=_.Xa.apply(0,arguments);try{return v.lastError=null,E.apply(e,T)}catch(S){if(d!=="sendAbandonmentPing")throw S.params=d,v.lastError=S,T=new _.kL("PlayerProxy error in method call",{error:S,method:d,playerId:v.playerId}),T.level="WARNING",T;}}},uHu=function(v){v.dIX=!1;
if(v.v0d)for(var e in v.uD)v.uD.hasOwnProperty(e)&&v.v0d(e,v.uD[e]);for(var d in v.twY)v.twY.hasOwnProperty(d)&&clearTimeout(Number(d));v.twY={};v.yqd=null;v.v0d=null;e=v.api;for(var E in e)e.hasOwnProperty(E)&&(e[E]=null);e.addEventListener=function(T,S){v.addEventListener(T,S)};
e.removeEventListener=function(T,S){v.removeEventListener(T,S)};
e.destroy=function(){v.dispose()};
e.getLastError=function(){return v.getLastError()};
e.getPlayerType=function(){return v.getPlayerType()};
e.getCurrentVideoConfig=function(){return v.yVS};
e.loadNewVideoConfig=function(T){v.loadNewVideoConfig(T)};
e.isReady=function(){return v.isReady()}};
SK.prototype.isReady=function(){return this.dIX};
SK.prototype.addEventListener=function(v,e){var d=this;this.isDisposed();var E=vyu(this,e);E&&(_.lL(this.pSl,v)||this.uD[v]||(e=I$6(this,v),this.yqd&&this.yqd(v,e)),this.oaE.subscribe(v,E),v==="onReady"&&this.isReady()&&setTimeout(function(){E(d.api)},0))};
SK.prototype.removeEventListener=function(v,e){this.isDisposed()||(e=vyu(this,e))&&this.oaE.unsubscribe(v,e)};
var vyu=function(v,e){var d=e;if(typeof e==="string"){if(v.dqE[e])return v.dqE[e];d=function(){var E=_.Xa.apply(0,arguments),T=_.AE(e);if(T)try{T.apply(_.TO,E)}catch(S){throw E=new _.kL("PlayerProxy error when executing callback",{error:S}),E.level="ERROR",E;}};
v.dqE[e]=d}return d?d:null},I$6=function(v,e){var d=function(E){var T=function(){v.isDisposed();
if(!v.isDisposed())try{v.oaE.publish(e,E!=null?E:void 0)}catch(b){var O=new _.kL("PlayerProxy error when creating global callback",{error:b.message,event:e,playerId:v.playerId,data:E,originalStack:b.stack,componentStack:b.componentStack});O.level="WARNING";throw O;}};
if(SMg(v,"web_player_publish_events_immediately"))T();else{var S=setTimeout(function(){T();_.f0.remove(v.twY,String(S))},0);
_.f0.add(v.twY,String(S),!0)}};
return v.uD[e]=d};
SK.prototype.getPlayerType=function(){return this.fSd||(this.getPlayerElement()?"html5":null)};
SK.prototype.getLastError=function(){return this.lastError};
var T8J=function(v){v.cancel();uHu(v);v.fSd=null;v.config&&(v.config.loaded=!1);var e=v.getPlayerElement();e&&(dM7(v)||!a$i(v)?v.hY=e:(e&&e.destroy&&e.destroy(),v.hY=null));v.targetElement&&_.VE(v.targetElement)};
SK.prototype.cancel=function(){this.lQC&&_.Wj3(eLJ(this),this.lQC);clearTimeout(this.kCu);this.eFa=!1};
SK.prototype.disposeInternal=function(){T8J(this);if(this.hY&&this.config&&this.hY.destroy)try{this.hY.destroy()}catch(e){var v=new _.kL("PlayerProxy error during disposal",{error:e});v.level="ERROR";throw v;}this.dqE=null;for(v in this.uD)this.uD.hasOwnProperty(v)&&delete this.uD[v];this.yVS=this.config=this.api=null;delete this.targetElement;delete this.cN;_.kh.prototype.disposeInternal.call(this)};
var a$i=function(v){var e,d;v=(e=v.config)==null?void 0:(d=e.args)==null?void 0:d.fflags;return!!v&&v.indexOf("player_destroy_old_version=true")!==-1},eLJ=function(v){return v.webPlayerContextConfig?v.webPlayerContextConfig.jsUrl:(v=v.config.assets)?v.js:""},W9c=function(v){return v.webPlayerContextConfig?v.webPlayerContextConfig.cssUrl:(v=v.config.assets)?v.css:""},SMg=function(v,e){if(v.webPlayerContextConfig)var d=v.webPlayerContextConfig.serializedExperimentFlags;
else{var E;if((E=v.config)==null?0:E.args)d=v.config.args.fflags}return(d||"").split("&").includes(e+"=true")},pEE=function(v){for(var e={},d=_.a(Object.keys(v)),E=d.next();!E.done;E=d.next()){E=E.value;
var T=v[E];e[E]=typeof T==="object"?_.f0.clone(T):T}return e};var qM$={},yqt="player_uid_"+(Math.random()*1E9>>>0);var v7=function(v,e,d,E,T,S){e=e===void 0?document.createElement("div"):e;this.webPlayerContextConfig=v;this.container=e;this.commandResolver=d;this.apiResolver=K9H();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.r1;E||S?bHe(this):YMM(this);this.pendingPlayerResponse=E;this.pendingWatchNextResponse=T;this.pendingPlayerVars=S;mMe(this)};
v7.prototype.loadVideoWithPlayerResponse=function(v,e,d){this.loadVideo(v,e,d)};
v7.prototype.loadVideoWithPlayerVars=function(v){return this.loadVideo(void 0,void 0,v)};
v7.prototype.destroy=function(v){if(v=_.Tn(document,v))v=yqt+"_"+_.gH(v),(v=qM$[v])&&v.dispose()};
var qMu=function(v,e){var d;_.I(function(E){if(E.nextAddress==1)return v.pendingWatchNextResponse=e,v.synchronousApi?(d=v.synchronousApi,E.jumpTo(2)):E.yield(v.api,3);E.nextAddress!=2&&(d=E.yieldResult);if(!yq0(v,d))return E.return();v.pendingWatchNextResponse&&(d.updateVideoData({raw_watch_next_response:v.pendingWatchNextResponse}),v.pendingWatchNextResponse=void 0);_.s9(E)})},yq0=function(v,e){var d;
if(!(e==null?0:(d=e.isReady)==null?0:d.call(e))){var E;_.xf(new _.kL("playerApi is falsey",{synchronousApi:v.synchronousApi,apiResolved:v.apiResolver.resolved,playerApiUndefined:e===void 0,playerApiNull:e===null,playerApiReady:(e==null?void 0:(E=e.isReady)==null?void 0:E.call(e))===!0,playerApiMethods:e?Object.keys(e):[]}));return!1}return!0},rqc=function(v,e){if(typeof v[e]==="function")return v[e]()},hLc=function(v){var e=window,d,E=(d=e.ytplayer)==null?void 0:d.bootstrapPlayerContainer;
if((d=E==null?void 0:E.firstElementChild)&&_.Cy(d,"html5-video-player")){var T,S,O=(T=e.ytplayer)==null?void 0:(S=T.bootstrapWebPlayerContextConfig)==null?void 0:S.contextId;T=v.webPlayerContextConfig.contextId;if(O&&O===T){E!==v.container&&(E=!1,rqc(d,"getPlayerState")===2&&(E=!0),v.container.appendChild(d),E||rqc(d,"playVideo"));var b;if((b=e.ytplayer)==null?0:b.bootstrapPlayerResponse)v.bootstrapPlayerResponse=e.ytplayer.bootstrapPlayerResponse}}},mMe=function(v){var e,d,E,T,S;
_.I(function(O){if(O.nextAddress==1)return v.pageReadyOrDataAvailable?O.jumpTo(2):O.yield(v.pageReadyOrDataAvailableResolver.promise,2);if(O.nextAddress!=4)return!_.N("kevlar_player_unified_player_loading")||SM0()&&a$7()?O.jumpTo(4):O.yield(YML(),4);hLc(v);if(v.pendingPlayerResponse||v.pendingPlayerVars)e=mMs(v.pendingPlayerResponse,v.pendingWatchNextResponse,v.pendingPlayerVars),v.pendingPlayerResponse&&v.pendingPlayerResponse===v.bootstrapPlayerResponse&&(e.loaded=!0),v.bootstrapPlayerResponse=
void 0;d=hL3(v.container,e,v.webPlayerContextConfig);((E=e)==null?0:E.loaded)&&v.pendingWatchNextResponse?(qMu(v,v.pendingWatchNextResponse),v.pendingPlayerResponse=void 0,v.pendingPlayerVars=void 0):K9n(v);T=function(b){d.removeEventListener("onReady",T);v.synchronousApi=b;v.apiResolver.resolve(b)};
d.addEventListener("onReady",T);v.commandResolver!==void 0&&(S=v.commandResolver,d.addEventListener("innertubeCommand",function(b){S(b)}));
_.s9(O)})};
v7.prototype.loadVideo=function(v,e,d){var E=this,T,S,O,b,Y,q,r,h,K;return _.I(function(k){if(k.nextAddress==1)return E.pendingPlayerResponse=v,E.pendingWatchNextResponse=e,E.pendingPlayerVars=d,bHe(E),E.synchronousApi?(T=E.synchronousApi,k.jumpTo(2)):k.yield(E.api,3);k.nextAddress!=2&&(T=k.yieldResult);if(!yq0(E,T))return k.return(new Promise(function(){}));
O=new Promise(function(J){S=J});
b=function(){var J=T.getPlayerResponse();J&&(T.removeEventListener("onVideoDataChange",b),S(J))};
T.addEventListener("onVideoDataChange",b);if(E.pendingPlayerResponse||E.pendingPlayerVars)E.pendingPlayerResponse&&E.pendingPlayerResponse===E.bootstrapPlayerResponse?(S(E.pendingPlayerResponse),E.pendingWatchNextResponse&&qMu(E,E.pendingWatchNextResponse)):(Y=mMs(E.pendingPlayerResponse,E.pendingWatchNextResponse,E.pendingPlayerVars),(K=(q=E.pendingPlayerResponse)==null?void 0:(r=q.playerConfig)==null?void 0:(h=r.playbackStartConfig)==null?void 0:h.startPaused)?T.cueVideoByPlayerVars(Y.args):T.loadVideoByPlayerVars(Y.args)),
K9n(E),E.bootstrapPlayerResponse=void 0;return k.return(O)})};
var YMM=function(v){if(document.readyState==="complete"||document.readyState==="interactive")bHe(v);else{var e=function(){document.removeEventListener("DOMContentLoaded",e);bHe(v)};
document.addEventListener("DOMContentLoaded",e)}},bHe=function(v){v.pageReadyOrDataAvailable=!0;
v.pageReadyOrDataAvailableResolver.resolve()},K9n=function(v){v.pendingPlayerResponse=void 0;
v.pendingWatchNextResponse=void 0;v.pendingPlayerVars=void 0};
_.vP.Object.defineProperties(v7.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var eq=function(v){MY.call(this,v===void 0?"document_active":v);var e=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(d){e.transition("document_disposed",{event:d})});
window.addEventListener("beforeunload",function(d){e.transition("document_disposed_preventable",{event:d})});
window.addEventListener("unload",function(d){e.transition("document_disposed",{event:d});e.hasRun=new Map})};
_.V(eq,MY);
eq.prototype.runPreventableDispose=function(v,e){if(!this.hasRun.get("document_disposed_preventable")){v(e==null?void 0:e.event);var d,E;if((e==null?0:(d=e.event)==null?0:d.defaultPrevented)||(e==null?0:(E=e.event)==null?0:E.returnValue)){e.event.returnValue||(e.event.returnValue=!0);e.event.defaultPrevented||e.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
eq.prototype.runDispose=function(v,e){this.hasRun.get("document_disposed")?this.transition("document_active"):(v(e==null?void 0:e.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
eq.prototype.runFlush=function(v,e){v(e==null?void 0:e.event);this.transition("document_active")};
eq.prototype.runActive=function(){};var dY=function(v){MY.call(this,v===void 0?"document_visibility_unknown":v);var e=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(d){document.visibilityState==="visible"?e.transition("document_visible",{event:d}):e.transition("document_hidden",
{event:d})});
_.N("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(d){e.transition("document_backgrounded",{event:d})}),window.addEventListener("focus",function(d){e.transition("document_foregrounded",{event:d})}))};
_.V(dY,MY);dY.prototype.runVisible=function(v,e){v(e==null?void 0:e.event);_.N("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
dY.prototype.runHidden=function(v,e){v(e==null?void 0:e.event);_.N("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
dY.prototype.runBackgrounded=function(v,e){v(e==null?void 0:e.event)};
dY.prototype.runForegrounded=function(v,e){v(e==null?void 0:e.event)};var EC=function(){this.teardownLifecycle=new eq;this.visibilityLifecycle=new dY};
EC.prototype.install=function(){var v=_.Xa.apply(0,arguments),e=this;v.forEach(function(d){e.teardownLifecycle.install(d)});
v.forEach(function(d){e.visibilityLifecycle.install(d)})};var TT=function(){EC.call(this);var v={};this.install((v.document_disposed={callback:this.abortSlisAndFlush},v));_.N("combine_ve_grafts")&&(v={},this.install((v.document_disposed={callback:this.flushInteractionLoggingAttachVes},v)));v={};this.install((v.flush_logs={callback:this.logFinalPayload},v));_.N("web_log_cfg_cee_ks")||_.LI(_.RM,$M2)};
_.V(TT,EC);var $MO=function(){TT.loggingInstance||(TT.loggingInstance=new TT);return TT.loggingInstance};
TT.prototype.logFinalPayload=function(){if(_.N("web_fp_via_jspb")){var v=new b2e,e=_.zz();e&&_.L0(v,1,e);e=_.N("jspb_sparse_encoded_pivot")?new kf([{}]):new kf;_.$m(e,380,Ywi,v);nZM("finalPayload",e);_.N("web_fp_via_jspb_and_json")&&_.tI("finalPayload",{csn:_.zz()})}else _.tI("finalPayload",{csn:_.zz()})};
TT.prototype.abortSlisAndFlush=function(){Qei(cD);w$!=null&&w$.flush()};
TT.prototype.flushInteractionLoggingAttachVes=function(){Y2g(_.NC())};
var $M2=function(){var v=_.Bb("CLIENT_EXPERIMENT_EVENTS");if(v){var e=uM3();v=_.a(v);for(var d=v.next();!d.done;d=v.next())d=d.value,e(d)&&_.tI("genericClientExperimentEvent",{eventType:d});delete _.Pb.CLIENT_EXPERIMENT_EVENTS}};var jLB={};
jLB.YtPlayerBehavior=[_.UF.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 v=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.r1;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;jLj(function(){v.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Ck(this,"pan-down"),_.N("kevlar_pinch_fullscreen")&&_.Jb().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.N("kevlar_pinch_fullscreen")&&_.Jb().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(v,e,d){var E=this;W5(this.useUnifiedPlayer_());if(this.mainAppPlayer_)W5(!1,"MainAppPlayer already created.");else{var T=_.N("kevlar_player_container_query_killswitch")?this.$.container:_.IB(this.hostElement).querySelector("#container");this.mainAppPlayer_=new v7(this.getWebPlayerContextConfig_(),T,function(S){return _.K1(S,E.hostElement)},v,e,d);
this.mainAppPlayer_.api.then(function(S){E.player_=S;E.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&bGE.resolve(S)})}},
loadVideoWithPlayerResponse:function(v,e){var d=this;if(this.useUnifiedPlayer_()){var E=this.watchNextData,T,S=(T=v.videoDetails)==null?void 0:T.videoId,O,b,Y;(T=(O=this.watchNextData)==null?void 0:(b=O.currentVideoEndpoint)==null?void 0:(Y=b.watchEndpoint)==null?void 0:Y.videoId)&&S!=T&&(E=void 0,_.N("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(v,E,e):this.createMainAppPlayer_(v,E,e);this.mainAppPlayer_.api.then(function(){_.Iq(d.hostElement,
"yt-player-updated")})}else this.update(eLM(v,e))},
loadVideoWithPlayerVars:function(v){var e=this;this.useUnifiedPlayer_()?(_.N("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(v):this.createMainAppPlayer_(void 0,void 0,v),this.mainAppPlayer_.api.then(function(){_.Iq(e.hostElement,"yt-player-updated")})):this.update({args:v})},
update:function(v){var e=this;if(this.useUnifiedPlayer_())W5(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(v);var d=qY0(v.args);d&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==d&&Object.assign(v.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(v).then(function(E){_.Iq(e.hostElement,"yt-player-updated",_.N("kevlar_player_updated_obsolete_player_killswitch")?
E:void 0)})}_.PV(new _.kL("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(e.getPlayerPromise(),2);d=E.yieldResult;if(!d)throw Error("wh");v&&e.updatePlayerPlaylist_(v);_.s9(E)})},
acquireApi_:function(v){var e=this;if(this.useUnifiedPlayer_())W5(!1,"Invalid method call in kevlar_unified_player.");else return _.RM.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(W5(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(d){e.shouldAutoplay_(v)?d.loadVideoByPlayerVars(v.args):d.cueVideoByPlayerVars(v.args)})):this.initPlayerPromise_=this.initPlayerContainer_(v),this.initPlayerPromise_},
initPlayerContainer_:function(v){var e=this;if(this.useUnifiedPlayer_())W5(!1,"Invalid method call in kevlar_unified_player.");else return W5(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.xf(Error("xh")),W5(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.N("kevlar_player_container_query_killswitch")?this.$.container:_.IB(this.hostElement).querySelector("#container"),YML().then(function(){var d=e.initPlayer_(v);e.playerResolver_.resolve(d);
return d})},
onPlayerReady_:function(v,e){this.useUnifiedPlayer_()?W5(!1,"Invalid method call in kevlar_unified_player."):(v.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&bGE.resolve(v),e(v))},
maybeCallApiMethodOnElement_:function(v,e){if(typeof v[e]==="function")return v[e]()},
maybeAdoptBootstrapPlayer_:function(){var v=window,e,d=(e=v.ytplayer)==null?void 0:e.bootstrapPlayerContainer;if((e=d==null?void 0:d.firstElementChild)&&e.classList.contains("html5-video-player")){var E,T,S=(E=v.ytplayer)==null?void 0:(T=E.bootstrapWebPlayerContextConfig)==null?void 0:T.contextId;E=this.getWebPlayerContextConfig_().contextId;if(S&&S===E){d!==this.playerContainer_&&(d=!1,this.maybeCallApiMethodOnElement_(e,"getPlayerState")===2&&(d=!0),this.playerContainer_.appendChild(e),d||this.maybeCallApiMethodOnElement_(e,
"playVideo"));var O;if((O=v.ytplayer)==null?0:O.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=v.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(v){var e=this;if(this.useUnifiedPlayer_())W5(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(d){e.maybeAdoptBootstrapPlayer_();var E=v?dMt(v):void 0;E&&E==e.bootstrapPlayerResponse_&&(v.loaded=!0);E=e.playerContainer_;var T=e.getWebPlayerContextConfig_();E=hL3(E,v,T);e.player_=E;e.onPlayerReadyEvent_=e.onPlayerReady_.bind(e,e.player_,d);e.player_.addEventListener("onReady",e.onPlayerReadyEvent_);e.player_.addEventListener("innertubeCommand",
e.onPlayerInnerTubeCommand_.bind(e))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(v){v.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(v){v.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var v=_.dk().resolve(_.v5).getCurrentPage();v&&v.getScrollTop()<=0?_.Ck(this,"pan-down"):_.Ck(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(v){v.isFullscreen()||v.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(v){v.isFullscreen()&&v.toggleFullscreen()})},
updatePlayerPlaylist_:function(v){var e=this,d,E,T;return _.I(function(S){if(S.nextAddress==1)return d=_.dk().resolve(_.eG(_.zJ)),E=!!(d&&d.playlistComponent&&d.playlistComponent.loopOn),S.yield(e.getPlayerPromise(),2);var O=T=S.yieldResult,b=O.updatePlaylist,Y=[];if(_.N("kevlar_player_playlist_use_local_index")){var q,r;var h=(r=(q=v.localCurrentIndex)!=null?q:v.currentIndex)!=null?r:0}else{var K;h=(K=v.currentIndex)!=null?K:0}if(v.contents)for(q=0;q<v.contents.length;q++)if((r=v.contents[q])&&r.playlistPanelVideoRenderer)if(igt(r)){r=
r.playlistPanelVideoRenderer;K="";r.shortBylineText&&(K=_.vv(r.shortBylineText));var k="";r.title?k=_.vv(r.title):r.unplayableText&&(k=_.vv(r.unplayableText));Y.push({author:K,title:k,encrypted_id:r.videoId})}else q<h&&--h;b.call(O,{index:h,list:v.playlistId?v.playlistId:"",loop:E,playlist_title:v.title,playlist_length:Y.length,video:Y,fetch:0,external_list:"1",title:v.title?v.title:"",playlist_author:v.ownerName?_.vv(v.ownerName):void 0});_.s9(S)})},
focusOnPlayer:function(){_.Uh(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var v=this.playerContainer_.querySelector(".html5-video-player");v&&(_.Sq(_.dk().resolve(_.oZ)),v.focus())}})},
preparePlayer:function(){var v=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(e){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")e();else{var d=function(){document.removeEventListener("DOMContentLoaded",d);e()};
document.addEventListener("DOMContentLoaded",d)}})).then(function(){return YML()}).then(function(){v.initPlayerPromise_||v.preparePlayerJobId_||(v.preparePlayerJobId_=_.LI(_.RM,function(){v.initPlayerPromise_||(v.initPlayerPromise_=v.initPlayerContainer_())}))}):_.PV(new _.kL("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(v){this.useUnifiedPlayer_()?W5(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(v)||(v.args.autoplay="0")},
shouldAutoplay_:function(v){if(this.useUnifiedPlayer_())W5(!1,"Invalid method call in kevlar_unified_player.");else{var e=this.get("args.el",v);return e&&e!="detailpage"&&this.isMiniplayerActive_()||e&&(e=="sponsorshipsoffer"||e=="handlesclaiming")&&this.get("args.autoplay",v)=="0"?!1:(v=dMt(v))&&this.get("playerConfig.playbackStartConfig.startPaused",v)?!1:!0}},
isMiniplayerActive_:function(){return _.dk().resolve(_.P0).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var v=this.getPlayer();if(v){var e=v.getPlayerState();_.N("kevlar_player_check_ad_state_on_stop")&&(e=v.getPlayerState(v.getPresentingPlayerType()));e!=5&&v.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(v,e,d){d=d===void 0?!1:d;var E=this,T,S,O,b;return _.I(function(Y){if(Y.nextAddress==1)return e||(e=E.hostElement),T=E.useUnifiedPlayer_()?!!E.mainAppPlayer_:!!E.initPlayerPromise_,T?Y.yield(E.getPlayerPromise(),2):(d?v.insertBefore(e,v.firstChild):v.appendChild(e),Y.return());S=Y.yieldResult;O=S.getPlayerState(S.getPresentingPlayerType());b=!1;if(O==-1||O==1||O==3)b=!0;d?v.insertBefore(e,v.firstChild):v.appendChild(e);b&&S.playVideo();S.setSize(NaN,NaN);_.s9(Y)})},
watchNextDataChanged_:function(v){var e=this;v&&(this.useUnifiedPlayer_()&&_.N("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&qMu(this.mainAppPlayer_,v):this.getPlayerPromise().then(function(d){d.updateVideoData(e.computeWatchNextPlayerVars_(v))}))},
computeWatchNextPlayerVars_:function(v){if(this.useUnifiedPlayer_()&&_.N("kevlar_unified_player_update_watch_next_killswitch"))W5(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:v}},
maybeSendAbandonmentPing_:function(){var v=this.getPlayer();v&&v.getPlayerState()!=5&&v.getPlayerState()!=0&&v.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var v=_.Bb("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(v=Object.assign({},v),v.rootElementId=this.playerId);v.serializedExperimentIds&&v.serializedExperimentFlags||_.xf(Error("yh"));return v},
hasWebPlayerContextConfig_:function(){return!!_.Bb("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(v){this.useUnifiedPlayer_()?W5(!1,"Invalid method call in kevlar_unified_player."):_.K1(v,this.hostElement)},
useUnifiedPlayer_:function(){var v=_.N("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.N("kevlar_unified_player")||v}}];var sL2={};sL2.YtPlaylistPanelBehavior=[_.n.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(v){v=v.detail;if(v.actions.loop!=void 0||v.actions["yt-icons:loop"]!=void 0)this.loopOn=v.actions.loop||v.actions["yt-icons:loop"];if(v.actions.shuffle!=void 0||v.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=v.actions.shuffle||v.actions["yt-icons:shuffle"]},
setMenuData_:function(v){if(!v||!v.playlistButtons||v.isInfinite)return null;for(var e=v.playlistButtons.menuRenderer.topLevelButtons,d=e.length,E=0;E<d;E++)if(e[E].toggleButtonRenderer){var T=e[E].toggleButtonRenderer;T.defaultIcon.iconType=="LOOP"&&this.loopOn?T.isToggled=this.loopOn:T.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(T.isToggled=this.shuffleOn)}return v.playlistButtons}}];var N8c=function(v){bn.call(this,v,132);this.isDocument=v===document.documentElement};
_.V(N8c,bn);N8c.prototype.calculateScrollDelta=function(v,e,d){var E=0;v<e?E=v<e-100?-48:-8:v>e+d&&(E=v>e+d+100?48:8);return E};
N8c.prototype.JSC$11375_onMouseMove=function(v){this.isDocument||(v.clientX=v.event_.pageX,v.clientY=v.event_.pageY);bn.prototype.JSC$11375_onMouseMove.call(this,v)};var W7=function(){var v=_.kv.apply(this,arguments)||this;v._noAccessors=!0;v.scrollElement=document.documentElement;v.JSC$14367_dragListGroup=null;v.dragScrollSupport=null;v.onDraggerCreated=function(e){var d=e.JSC$11371_dragger;d.scrollTarget_=v.scrollElement;e=e.draggerEl;d&&e.menuOpened&&d.setEnabled(!1)};
v.onDragStart=function(e){var d=e.draggerEl;e=e.currDragItem;var E=Object.assign({},e==null?void 0:e.data);E.trackingParams=void 0;d.data=E;d.style.position="absolute";d.style.width=(e==null?void 0:e.clientWidth)+"px";d.style.zIndex="2030";d.onDrag&&d.onDrag();_.N("web_owner_document_fallback_killswitch")?(e=document.querySelector("ytd-app"))&&_.IB(e).appendChild(d):(e=_.Bn(d),(E=e.querySelector("ytd-app"))?_.IB(E).appendChild(d):e.body.appendChild(d));v.dragScrollSupport=new N8c(v.scrollElement);
v.dragScrollSupport.horizontalScrolling_=!1;d=v.dragScrollSupport;d.constrainScroll_=!!d.margin_&&!1};
v.onDrop=function(e){v.handleDrop(e);v.dragScrollSupport&&(_.p0(v.dragScrollSupport),v.dragScrollSupport=null)};
v.onReorderableScroll=function(){if(v.JSC$14367_dragListGroup){var e=v.JSC$14367_dragListGroup;Io2(e,e.currDragItem_)}};
return v};
_.V(W7,_.kv);W7.prototype.detached=function(){_.k66(this)};
_.k66=function(v){v.JSC$14367_dragListGroup&&(_.qs(v.JSC$14367_dragListGroup,ei7,v.onDragStart),_.qs(v.JSC$14367_dragListGroup,SgI,v.onDragStart),v.JSC$14367_dragListGroup.dispose(),v.JSC$14367_dragListGroup=null);v.dragScrollSupport&&(_.p0(v.dragScrollSupport),v.dragScrollSupport=null);v.scrollElement.removeEventListener("scroll",v.onReorderableScroll)};
_.L9M=function(v,e,d,E){E=E===void 0?"":E;_.k66(v);d&&(v.scrollElement=d);v.JSC$14367_dragListGroup=new CP;v.JSC$14367_dragListGroup.hysteresisDistance_=2;aoA(v.JSC$14367_dragListGroup,e);v.JSC$14367_dragListGroup.draggerElClasses_=yj("dragging").split(" ");E&&iq7(v.JSC$14367_dragListGroup,function(T){var S=T||document,O=null;S.getElementsByClassName?O=S.getElementsByClassName(E)[0]:O=CMM("*",E,T);return O||T});
_.MC(v.JSC$14367_dragListGroup,pvi,v.onDraggerCreated);_.MC(v.JSC$14367_dragListGroup,ei7,v.onDragStart);_.MC(v.JSC$14367_dragListGroup,SgI,v.onDrop);v.JSC$14367_dragListGroup.init();v.scrollElement.addEventListener("scroll",v.onReorderableScroll,{passive:!0})};
W7.prototype.handleDrop=function(){};
_.vP.Object.defineProperties(W7.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.c([_.f({value:100}),_.w("design:type",Number)],W7.prototype,"scrollMargin",void 0);_.c([_.Lq()],W7);_.Ve6=[W7.prototype];_.aj={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(v,e,d){var E=this.getClickTarget_(e);if(E&&this.isClickAllowed_(E)){e.preventDefault();v=(0,_.f0.unsafeClone)(v);var T=this.getContainerBoundingRect();e=this.getRelativeClickXy_(e,T);this.expandEndpointUrlMacros_(v,{NX:e[0],NY:e[1],NB:E.code});d&&this.truncateWebCommendMetadataUrl_(v);_.Iq(this.hostElement,"yt-navigate",{endpoint:v})}},
getClickTarget_:function(v){if(!this.clickTargetMap)return null;v=_.vg(v)||[];v=_.a(v);for(var e=v.next();!e.done;e=v.next()){e=e.value;if(e===_.IB(this.hostElement).querySelector("#menu"))break;if(e=this.clickTargetMap.get(e.id))return e}return null},
getRelativeClickXy_:function(v,e){var d=v.detail.x,E=v.detail.y;_.N("use_on_click_for_desktop_display_ad")&&v.clientX!=null&&v.clientY!=null&&(d=v.clientX,E=v.clientY);v=Math.round(d-e.left);e=Math.round(E-e.top);return v<0||e<0?[null,null]:[v,e]},
getContainerBoundingRect:function(){return _.IB(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(v,e){for(var d=_.a(v.loggingUrls||[]),E=d.next();!E.done;E=d.next())E=E.value,E.baseUrl&&(E.baseUrl=UuM(E.baseUrl,e));v.urlEndpoint&&v.urlEndpoint.url&&(v.urlEndpoint.url=UuM(v.urlEndpoint.url,e));v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.url&&(v.commandMetadata.webCommandMetadata.url=UuM(v.commandMetadata.webCommandMetadata.url,e))},
truncateWebCommendMetadataUrl_:function(v){if(v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.url){var e=v.commandMetadata.webCommandMetadata.url,d=e.indexOf("&pp=");if(d>0){var E=e.indexOf("&",d+1);v.commandMetadata.webCommandMetadata.url=E>d&&E<e.length?e.slice(0,d)+e.slice(E):e.slice(0,d)}}},
configureClickTargets:function(v,e,d){this.containerId=v;this.clickTargetMap=new Map;v=_.a(e);for(e=v.next();!e.done;e=v.next())if(e=e.value,e.location){var E=d.get(e.location);E&&(_.Yv(_.IB(this.hostElement).querySelector("#"+E),"yt-simple-endpoint",this.isClickAllowed_(e)),this.clickTargetMap.set(E,e))}},
isClickAllowed_:function(v){return v.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||v.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||v.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||v.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.iO={};
_.iO.YtLazyListBehavior=[_.Ee.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 v=(this.constructor.generatedFrom||this).observers;v||(v=[]);v.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
v}},
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 v=this.renderElementsOutsideVisibleArea_;v&&(NAI(v,4),v.processSignal())},
deepLazyListObserver_:function(v){var e=this;if(v){var d=v.value||[];if(this.itemsPath==v.path){var E=this.nonDeferredItemCount;v=0;E>-1&&d.length>E&&(v=_.Bb("REMAINING_DOVA_DEFERRED_CHUNKS",-1));v>0?(E>0&&(E=d.slice(0,E),this.setInitialItemsOnDataChanged(E)),(E=this.renderElementsOutsideVisibleArea_)?E.cancel():(E=this.renderElementsOutsideVisibleArea_=new _.SZ(2,"eocs"),_.F5s(window,"scroll",function(){return e.renderDeferredElements()})),_.Wh(E,function(){e.setInitialItemsOnDataChanged(d)}),_.xc("REMAINING_DOVA_DEFERRED_CHUNKS",
v-1)):this.setInitialItemsOnDataChanged(d)}else if(this.itemsPath+".splices"==v.path)this.onItemsUpdated_(d);
else E="shownItems"+v.path.substr(this.itemsPath.length),this.useSignals&&E==="shownItems.length"||this.notifyPath(E,v.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(v){v&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(v),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(v){v=v.indexSplices;for(var e=0,d=v.length;e<d;e++){var E=v[e];if(E.index<this.shownCount&&(E.removed&&this.splice("shownItems",E.index,E.removed.length),E.addedCount)){var T=E.object.slice(E.index,E.index+E.addedCount);E=["shownItems",E.index,0];E.push.apply(E,T);this.splice.apply(this,E)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(v){this.cancelPendingTasks_();v||(v=[]);this.items_=v;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&&(_.zr("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Uh(this,this.tryRenderChunk_)))},
fillRange_:function(v,e){this.canShowMore&&this.items_&&(v=this.items_.slice(v,e),v.unshift("shownItems"),this.push.apply(this,v),this.shownCount=e,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var v=this;this.canShowMore&&_.gi(this,"renderChunk",function(){v.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.zr("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.JX(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var v=this.renderElementsOutsideVisibleArea_;v&&(v.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var v=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(v-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=v;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(v){return Math.ceil(1E3/v)},
onCanShowMoreUpdated_:function(v){this.data&&this.items_!==null&&(v?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(v){!this.shouldUseTaskManager()&&this.data&&(!v&&this.canShowMore?(_.HKs(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):v&&this.partiallyRenderedItems_.has(this.items_)&&(_.N("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var bO;_.OC={};
bO=function(){var v=_.kv.apply(this,arguments)||this;v.atStart=!0;v.atEnd=!0;v.startIndex=0;v.endIndex=0;v.scrollCount=0;v.initialStartIndex=0;v.disableScrollEventListener=!1;v.useFloorScrolling=!1;v.isSearch=!1;v.dragging=!1;v.dragMouseStart=0;v.dragOffsetStart=0;v.disableWheelScroll=!1;v.centerListItems=!1;v.offset=0;v.minComponentWidth=0;v.marginWidthRight=0;v.marginWidthLeft=0;v.setButtonsStateRequested=!1;v.itemsVisibilityObserver=null;v.fullyVisibleItemsIndices=[];v.JSC$14378_onWheelScroll=function(e){if(v.isSearch&&
!v.disableWheelScroll&&_.N("desktop_enable_dmpanel_wheel_scroll")){var d=e.shiftKey?Math.abs(e.deltaY)>Math.abs(e.deltaX)?e.deltaY:e.deltaX:e.deltaX;d!==0&&(e.preventDefault(),v.ytLazyListBehavior.fillRemainingListItems(),v.offset+=d,Ij(v),v.reposition_())}};
v.onPointerDown=function(e){oyJ(v)&&(v.dragMouseStart=e.clientX,v.dragOffsetStart=v.offset,v.dragging=!0)};
v.onPointerMove=function(e){oyJ(v)&&v.dragging&&(v.ytLazyListBehavior.fillRemainingListItems(),v.offset=v.dragOffsetStart-(e.clientX-v.dragMouseStart),Ij(v),v.reposition_())};
v.onPointerUp=function(){oyJ(v)&&(v.dragging=!1)};
return v};
_.V(bO,_.kv);var Jqc=function(v){var e=_.IB(v.hostElement).querySelector("#items").children;if(!e)return 0;var d=0;v=_.a(v.fullyVisibleItemsIndices);for(var E=v.next();!E.done;E=v.next())d+=e[E.value].clientWidth;return d},oyJ=function(v){return v.isSearch&&_.N("desktop_enable_dmpanel_click_drag_scroll")};
bO.prototype.created=function(){this.cachedViewportWidth=_.Bb("initialInnerWidth")||window.innerWidth;this.JSC$14378_cachedViewportHeight=_.Bb("initialInnerHeight")||window.innerHeight;_.Bb("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.xc("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
bO.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.N("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();G6I(this)};
bO.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.N("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var v;(v=this.itemsVisibilityObserver)==null||v.disconnect();this.itemsVisibilityObserver=null;var e;(e=this.itemsObserver)==null||e.disconnect()};
var G6I=function(v){var e=_.IB(v.hostElement).querySelector("#scroll-container");if(e){if(!v.itemsVisibilityObserver){var d=window.getComputedStyle(e).marginRight;v.itemsVisibilityObserver=new IntersectionObserver(function(E){MeA(v,E)},{root:e,
rootMargin:d,threshold:.98})}if(e=_.IB(v.hostElement).querySelector("#items"))v.itemsObserver=new A_n(e,function(E){tec(v,E)})}},tec=function(v,e){f$n(v)&&(Array.from(e.addedNodes).filter(function(d){return d.nodeType===Node.ELEMENT_NODE}).forEach(function(d){v.itemsVisibilityObserver&&v.itemsVisibilityObserver.observe(d)}),Array.from(e.removedNodes).filter(function(d){return d.nodeType===Node.ELEMENT_NODE}).forEach(function(d){v.itemsVisibilityObserver&&v.itemsVisibilityObserver.unobserve(d)}))},
MeA=function(v,e){var d=new Set(v.fullyVisibleItemsIndices);
e=_.a(e);for(var E=e.next();!E.done;E=e.next()){E=E.value;var T=E.target.parentElement;T?(T=Array.from(T.children).indexOf(E.target),E.isIntersecting?d.add(T):d.has(T)&&d.delete(T)):_.xf(new _.kL("Parent element not found",E.target.nodeName))}v.fullyVisibleItemsIndices=Array.from(d).sort(function(S,O){return S-O});
d.size===0?_.xf(new _.kL("No visible entries in horizontal list")):(v.startIndex=v.fullyVisibleItemsIndices[0],v.endIndex=v.fullyVisibleItemsIndices[v.fullyVisibleItemsIndices.length-1])},f$n=function(v){v.data?v=(v=v.data)&&v.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===v.itemSizeConstraint:!1:v=!1;
return v};
_.W=bO.prototype;_.W.addScrollEventListeners=function(){var v=_.IB(this.hostElement).querySelector("#scroll-container");v.style.touchAction="pan-y";v.addEventListener("wheel",this.JSC$14378_onWheelScroll);v.addEventListener("pointerdown",this.onPointerDown);v.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.W.removeScrollEventListeners=function(){var v=_.IB(this.hostElement).querySelector("#scroll-container");v.removeEventListener("wheel",this.JSC$14378_onWheelScroll);v.removeEventListener("pointerdown",this.onPointerDown);v.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.W.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Uh(this,this.setStartIndex,[this.initialStartIndex])};
_.W.reposition_=function(){var v=_.Bb("HTML_DIR")=="rtl"?"":"-",e=_.IB(this.hostElement).querySelector("#items");e&&(e.style.transform="translateX("+v+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.W.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Uh(this,this.setButtonsState_))};
_.W.setButtonsState_=function(){this.setButtonsStateRequested=!1;var v=_.IB(this.hostElement).querySelector("#items").firstElementChild;if(v){this.minComponentWidth||(this.minComponentWidth=RL7(this,v));v=_.IB(this.hostElement).querySelector("#scroll-container").clientWidth;var e=_.IB(this.hostElement).querySelector("#items");e=_.N("kevlar_horizontal_list_scroll_width_killswitch")?e.clientWidth:e.scrollWidth;var d=this.get(this.ytLazyListBehavior.itemsPath,this);if(d){var E=Math.round(v/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+E,d.length)-1)}this.ytLazyListBehavior.canShowMore?e+this.minComponentWidth>=this.offset+v&&(this.atEnd=!1):this.atEnd=this.offset+v>=e-20?!0:!1;this.atStart=this.offset<=20}};
_.W.setStartIndex=function(v){if(!this.minComponentWidth){var e=_.IB(this.hostElement).querySelector("#items").firstElementChild;if(!e)return;this.minComponentWidth=RL7(this,e)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*v;Ij(this);this.reposition_()};
_.W.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.IA();var v=_.IB(this.hostElement).querySelector("#scroll-container").clientWidth;_.N("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=RL7(this,_.IB(this.hostElement).querySelector("#items").firstElementChild));v=this.useFloorScrolling?Math.floor(v/this.minComponentWidth)||1:Math.round(v/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&PQn(this);this.offset+=f$n(this)?
Jqc(this):v*this.minComponentWidth;Ij(this);this.reposition_();this.scrollCount++};
_.W.prevClick_=function(){var v=_.IB(this.hostElement).querySelector("#scroll-container").clientWidth;v=this.useFloorScrolling?Math.floor(v/this.minComponentWidth)||1:Math.round(v/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=f$n(this)?Jqc(this):this.minComponentWidth*this.scrollCount-1):this.offset-=f$n(this)?Jqc(this):v*this.minComponentWidth;this.centerListItems&&PQn(this);Ij(this);this.reposition_()};
_.W.onIronResize_=function(){this.resizeSupportEnabled&&_.Uh(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.W.onItemsTransitionEnd_=function(v){_.ew(v)===_.IB(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.W.onChildElementFocus_=function(v){v=v.target.closest("#items > *");var e=_.IB(this.hostElement).querySelector("#scroll-container");if(e.contains(v)){if(_.N("web_horizontal_list_behavior_focus_killswitch"))if(v.offsetLeft<this.offset)this.offset=Math.abs(v.offsetLeft)<v.clientWidth?0:v.offsetLeft;else if(v.offsetLeft+v.clientWidth>this.offset+e.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.IA(),this.offset=v.offsetLeft+v.clientWidth-e.clientWidth;else return;else{var d=_.IB(this.hostElement).querySelector("#items"),
E=_.Bb("HTML_DIR")==="rtl",T=E?d.clientWidth-v.offsetLeft:v.offsetLeft;d=E?d.clientWidth-(v.offsetLeft+v.clientWidth):v.offsetLeft+v.clientWidth;var S=E?T>this.offset+e.clientWidth:T<this.offset,O=E?d<this.offset:d>this.offset+e.clientWidth,b=E?S:O;if(E?O:S)e=E?d:T,this.offset=Math.abs(e)<v.clientWidth?0:e;else if(b)this.ytLazyListBehavior.fillRemainingListItems(),_.IA(),this.offset=(E?T:d)-e.clientWidth;else return}Ij(this);this.reposition_()}};
_.W.observeShownItems_=function(){this.reset()};
_.W.checkComponentWidthResize=function(){var v=_.IB(this.hostElement).querySelector("#items").firstElementChild;v&&(v=RL7(this,v),this.centerListItems||v!==this.minComponentWidth)&&(this.minComponentWidth=v,this.offset=v*this.scrollCount,this.centerListItems&&PQn(this),Ij(this),this.reposition_())};
var RL7=function(v,e){var d=window.getComputedStyle(e).marginRight;d=Math.floor(Number(d.replace("px","")));var E=window.getComputedStyle(e).marginLeft;E=Math.floor(Number(E.replace("px","")));v.centerListItems&&!v.marginWidthRight&&(v.marginWidthRight=d,v.marginWidthLeft=E);return v.resizeSupportEnabled?e.getBoundingClientRect().width+d:e.offsetWidth+d},Ij=function(v){var e=_.IB(v.hostElement).querySelector("#scroll-container").clientWidth,d=_.IB(v.hostElement).querySelector("#items").clientWidth;
v.offset<0?v.offset=0:v.offset+e>=d&&(v.offset=d-e)},PQn=function(v){v.offset-=(_.IB(v.hostElement).querySelector("#scroll-container").clientWidth+v.marginWidthRight-v.minComponentWidth)/2-v.marginWidthLeft};
_.vP.Object.defineProperties(bO.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var v=_.Bb("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(v==-1)v=this.JSC$14378_cachedViewportHeight,v=v>1320?5:v>1020?4:v>730?3:v>430?2:1;else if(v==0)return 0;_.xc("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",v-1);v=_.Bb("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(v>-1)return v;v=this.cachedViewportWidth;v=v>1600?6:v>1400?5:v>1300?4:v>1090?5:v>870?4:v>660?3:2;_.xc("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
v);return v},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.N("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
bO.prototype.observeShownItems_=bO.prototype.observeShownItems_;bO.prototype.onChildElementFocus_=bO.prototype.onChildElementFocus_;bO.prototype.onItemsTransitionEnd_=bO.prototype.onItemsTransitionEnd_;bO.prototype.onIronResize_=bO.prototype.onIronResize_;bO.prototype.prevClick_=bO.prototype.prevClick_;bO.prototype.nextClick_=bO.prototype.nextClick_;bO.prototype.setButtonsState_=bO.prototype.setButtonsState_;bO.prototype.requestButtonsStateUpdate_=bO.prototype.requestButtonsStateUpdate_;
bO.prototype.reposition_=bO.prototype.reposition_;bO.prototype.reset=bO.prototype.reset;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.iO.YtLazyListBehavior),_.w("design:type",Object)],bO.prototype,"ytLazyListBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],bO.prototype,"atStart",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],bO.prototype,"atEnd",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"startIndex",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"endIndex",void 0);_.c([_.f({value:6}),_.w("design:type",Number)],bO.prototype,"initialCount",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"scrollCount",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"initialStartIndex",void 0);
_.c([_.f(),_.w("design:type",Object)],bO.prototype,"disableScrollEventListener",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"supportComponentResize",void 0);_.c([_.f({value:function(){var v=this;return function(){return v.prevClick_()}}}),
_.w("design:type",Function)],bO.prototype,"boundPrevClick",void 0);_.c([_.f({value:function(){var v=this;return function(){return v.nextClick_()}}}),
_.w("design:type",Function)],bO.prototype,"boundNextClick",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"useFloorScrolling",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"isSearch",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"dragging",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"dragMouseStart",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"dragOffsetStart",void 0);
_.c([_.f(),_.w("design:type",Object)],bO.prototype,"disableWheelScroll",void 0);_.c([_.f(),_.w("design:type",Object)],bO.prototype,"centerListItems",void 0);_.c([_.Kq("iron-resize"),_.$v("guideOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bO.prototype,"onIronResize_",null);_.c([_.Kq("transitionend"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],bO.prototype,"onItemsTransitionEnd_",null);
_.c([_.Kq("focusin"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],bO.prototype,"onChildElementFocus_",null);_.c([_.$v("shownItems"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bO.prototype,"observeShownItems_",null);_.c([_.Lq()],bO);_.OC.YtdHorizontalListBehavior=[];_.OC.YtdHorizontalListBehavior.push(_.J9,_.n.YtRendererBehavior,_.iO.YtLazyListBehavior,_.FF.YtdGuideStateAwareBehavior,bO.prototype);var N83=["APP_STATE","PI"];var xMA=_.Z9(["about:blank"]),B8i={pushState:window.history.pushState,replaceState:window.history.replaceState};var Y1=function(v){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=v;this.internalPushState=v.pushState.bind(v);this.internalReplaceState=v.replaceState.bind(v)};
Y1.prototype.init=function(){this.initialized=!0};
Y1.prototype.pushState=function(v,e){this.initialized||this.init();this.internalPushState&&this.internalPushState(v,"",e)};
Y1.prototype.replaceState=function(v,e){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(v,"",e)};
Y1.prototype.getState=function(){return this.history&&this.history.state};var CQE=function(v){var e=function(){var d=v.apply(this,arguments)||this;d.boundHistoryPushState=!1;d.boundHistoryReplaceState=!1;d.debugInfo={};return d};
_.V(e,v);e.prototype.init=function(){var d=_.hz("IFRAME");_.c$(d,_.ie(xMA));d.sandbox="allow-same-origin";d.style.display="none";this.iframe=d;document.body.appendChild(d);this.bindHistoryStateFunctions();v.prototype.init.call(this)};
e.prototype.bindHistoryStateFunctions=function(){var d=this,E=[],T;this.iframe&&((T=this.iframe.contentWindow)==null?0:T.history)&&(T=this.iframe.contentWindow.history)&&(E.push(T),Object.getPrototypeOf(T)&&E.push(Object.getPrototypeOf(T)));window.history&&E.push(window.history);T=window.history;Object.getPrototypeOf(T)&&E.push(Object.getPrototypeOf(T));E.push(B8i);T=function(O){for(var b=null,Y=0;Y<E.length;Y++){var q=E[Y][O];if(typeof q==="function"){b=q.bind(window.history);d.debugInfo[O]=Y;break}}return b};
if(!this.boundHistoryReplaceState){var S=T("replaceState");S&&(this.internalReplaceState=S,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(T=T("pushState"))&&(this.internalPushState=T,this.boundHistoryPushState=!0)};
return e}(Y1),XNe=function(){return CQE.call(this,window.history)||this};
_.V(XNe,CQE);XNe.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var mw=function(v){this.browserHistory=v;this.initialized=!1};
mw.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
mw.prototype.pushState=function(v,e){this.initialized||this.init();this.browserHistory.pushState(v,e)};
mw.prototype.replaceState=function(v,e){this.initialized||this.init();this.browserHistory.replaceState(v,e)};
mw.prototype.handlePopstate=function(v){return v.state};_.zLc=function(v,e,d,E,T){this.endpoint=v;this.forward=e;this.historyEntry=d;this.JSC$30119_savedComponentState=E;this.legacyBorder=T===void 0?!1:T};var l$A=function(v,e){this.rootData=v;this.scrollTop=e};var hR=new _.nC("PAGE_REQUEST_TOKEN"),UhB=new _.nC("FETCH_PBJ_TOKEN");_.yc=new _.nC("EPHEMERAL_STORE_TOKEN");_.qp=function(v){this.data=Object.assign({},v);var e;(e=this.data.innertubeResponse)==null||delete e.frameworkUpdates};
_.qp.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.E$)()};
_.UR=function(v){return Object.assign({},v.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var HH2=function(){this.maxSize=100;this.timeToDataCache=new Map};
HH2.prototype.get=function(v){var e=this.timeToDataCache.get(v);e&&(this.timeToDataCache.delete(v),this.timeToDataCache.set(v,e));if(e&&e.rootData&&(_.N("web_use_response_store_for_history_cache")||_.N("mweb_use_new_history_manager"))){var d=_.dk().resolve(_.yc),E=Aq0(e),T=!!E;if(E){if(E.content){var S=rY(d,E.content);T&&S?e.rootData.response=_.UR(S):T=!1}E.player&&(S=rY(d,E.player),T&&S?e.rootData.playerResponse=_.UR(S):T=!1);E.reelSequence&&(d=rY(d,E.reelSequence),T&&d?e.rootData.reelWatchSequenceResponse=
_.UR(d):T=!1)}T||(this.timeToDataCache.delete(v),e=void 0)}return e};
HH2.prototype.set=function(v,e){if(e.rootData&&(_.N("web_use_response_store_for_history_cache")||_.N("mweb_use_new_history_manager"))){var d=Aq0(e),E=Object.assign({},e.rootData);d&&(d.content&&e.rootData.response&&(ZH2(this,d.content,e.rootData.response),E.response=null),d.player&&e.rootData.playerResponse&&(ZH2(this,d.player,e.rootData.playerResponse),E.playerResponse=null),d.reelSequence&&e.rootData.reelWatchSequenceResponse&&(ZH2(this,d.reelSequence,e.rootData.reelWatchSequenceResponse),E.reelWatchSequenceResponse=
null));e=new l$A(E,e.scrollTop)}this.timeToDataCache.has(v)?this.timeToDataCache.delete(v):this.timeToDataCache.size>=this.maxSize&&(d=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(d.value));this.maxSize!==0&&this.timeToDataCache.set(v,e)};
HH2.prototype.clear=function(){this.timeToDataCache.clear()};
var Aq0=function(v){var e=_.dk().resolve(_.eG(hR)),d;if((d=v.rootData)==null?0:d.endpoint)return e==null?void 0:aj$(e,v.rootData.endpoint);var E;_.xf(new _.kL("History snapshot response data does not contain endpoint",(E=v.rootData)==null?void 0:E.url));return null},ZH2=function(v,e,d){if(v.maxSize>0){var E;
(v=(E=d.responseContext)==null?void 0:E.maxAgeSeconds)&&Number(v)>0&&(E=_.dk().resolve(_.yc),d=OK(d,v),E.put(e,new _.qp(d)))}};var cqM=function(v,e,d){this.endpoint=e;this.JSC$30124_savedComponentState=d===void 0?null:d;this.entryTime=v};var G6S=1;var hx=function(v){var e=function(){var d=v.apply(this,[].concat(_.t7(_.Xa.apply(0,arguments))))||this;d.historyEntryTime=0;d.historySnapshotCache=d.createHistoryCache();return d};
_.V(e,v);e.prototype.createHistoryCache=function(){return new HH2};
e.prototype.saveAndReplace=function(d,E,T){var S=window.location.href;var O=O===void 0?{}:O;var b=(b=this.browserHistory.getState())&&b.entryTime?b.entryTime:MeW();d=this.createNewHistoryEntry(d,O,b);this.saveSnapshot(b,E,T);this.replaceState(d,S||window.location.href)};
e.prototype.saveAndPush=function(d,E,T,S,O){O=O===void 0?{}:O;this.saveSnapshot(this.historyEntryTime,T,S);T=this.historySnapshotCache;S=this.historyEntryTime;var b=T.timeToDataCache.keys();b=_.a(b);for(var Y=b.next();!Y.done;Y=b.next())Y=Y.value,Y>S&&T.timeToDataCache.delete(Y);E=this.createNewHistoryEntry(E,O);this.pushState(E,d)};
e.prototype.saveSnapshot=function(d,E,T){this.historySnapshotCache.set(d,new l$A(E,T))};
e.prototype.createNewHistoryEntry=function(d,E,T){T=T===void 0?MeW():T;return new cqM(T,d,E)};
e.prototype.handlePopstate=function(d){var E=v.prototype.handlePopstate.call(this,d),T=null,S=null,O=!1,b=null;E&&E.entryTime&&(b=this.historySnapshotCache.get(E.entryTime)||null,O=E.entryTime>this.historyEntryTime,this.historyEntryTime=E.entryTime,T=E.endpoint,S=E.JSC$30124_savedComponentState);this.handleHistoryCacheLoad(new _.zLc(T,O,b,S),d);return E};
e.prototype.pushState=function(d,E){Number(d==null?void 0:d.entryTime)>=0&&(this.historyEntryTime=d.entryTime);v.prototype.pushState.call(this,d,E)};
e.prototype.replaceState=function(d,E){Number(d==null?void 0:d.entryTime)>=0&&(this.historyEntryTime=d.entryTime);v.prototype.replaceState.call(this,d,E)};
e.prototype.handleHistoryCacheLoad=function(){};
return e}(mw),wNI=function(){var v=hx.call(this,new XNe)||this;
v.dispatchElement=null;v.entryIndex=0;return v};
_.V(wNI,hx);_.W=wNI.prototype;_.W.init=function(v){v=v===void 0?!0:v;hx.prototype.init.call(this);this.initialized||(v||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.W.handlePopstate=function(v){var e=null;v.state||(e="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return hx.prototype.handlePopstate.call(this,v);var d=new CustomEvent("yt-history-pop",{cancelable:!0});_.b4(this.dispatchElement,"yt-history-pop",[d,{errorMsg:e}]);_.YB(this.dispatchElement,"yt-close-all-popups-action");if(!d.defaultPrevented){d=_.dk().resolve(_.v5);e=d.getCurrentData();var E=d.getCurrentPage();d=0;E?(E=_.b4(this.dispatchElement,"yt-get-page-offset",
[E]),E.length>0&&(d=E[0])):_.xf(new _.kL("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:e?e.page:"undefined"}));e&&(e.csn=_.zz());this.saveSnapshot(this.historyEntryTime,e,d)}return hx.prototype.handlePopstate.call(this,v)};
_.W.handleHistoryCacheLoad=function(v,e){v.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.a(_.YB(this.dispatchElement,"yt-history-will-navigate",[e])).next().value||_.b4(this.dispatchElement,"yt-history-load",[e,v]))};
_.W.pushState=function(v,e){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var d=new _.kL("history.pushState is not a function",this.getDebugString());_.RI(d)}hx.prototype.pushState.call(this,v,e)};
_.W.replaceState=function(v,e){if(!this.browserHistory.boundHistoryReplaceState){var d=new _.kL("history.replaceState is not a function",this.getDebugString());_.RI(d)}hx.prototype.replaceState.call(this,v,e)};
_.W.saveAndPush=function(v,e,d,E,T){T=T===void 0?{}:T;d&&(d.csn=_.zz());hx.prototype.saveAndPush.call(this,v,e,d,E,T)};
_.W.getDebugString=function(){var v=[];this.initialized&&v.push("i");this.browserHistory.boundHistoryReplaceState&&v.push("bhr");this.browserHistory.boundHistoryPushState&&v.push("bhs");"replaceState"in this.browserHistory.debugInfo&&v.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&v.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&v.push("ei:"+String(this.entryIndex));return v.join(",")};
_.KE=function(v,e){v.init(!0);var d=v.browserHistory.getState();v.replaceState(d,iH(e))};
wNI.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.$1=new _.nC("DESKTOP_HISTORY_MANAGER_TOKEN");var F9A=[10,20,30,40,50,60],jq=function(){this.currentPartitionIndex=0},QLe=function(v){eB7({mainAppWeb:_.no(),
survivalSli:{partitionMinute:v,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},gy0=function(v){eB7({mainAppWeb:_.no(),
survivalSli:{partitionMinute:v,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},uN2=function(v){return v.currentPartitionIndex>=0&&v.currentPartitionIndex<F9A.length?F9A[v.currentPartitionIndex]:-1},ny6=function(v){return v.currentPartitionIndex>0&&v.currentPartitionIndex-1<F9A.length?F9A[v.currentPartitionIndex-1]:-1};
jq.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var v=ny6(this);v>0&&gy0(v);v=uN2(this);v>0&&QLe(v);DMn(this)}};
var DMn=function(v){var e=uN2(v);if(e>0){var d=ny6(v);d<0&&(d=0);v.intervalId=_.RM.addJob(function(){var E=ny6(v);E>0&&gy0(E);E=uN2(v);E>0&&QLe(E);DMn(v)},3,(e-d)*6E4);
v.currentPartitionIndex+=1}else v.currentPartitionIndex=-1};var UM6=function(){this.skipNextNavigation=!1},pN7=function(v,e,d){if(!e)return!1;
if(v.skipNextNavigation)return v.skipNextNavigation=!1;if(_.L(d,_.wb))return!1;var E,T,S;if((E=_.L(d,_.Lo))==null?0:(T=E.browseEndpointContextSupportedConfigs)==null?0:(S=T.browseEndpointContextMainConfig)==null?0:S.skipConfirmation)return!1;var O;return((O=_.L(e.commandMetadata,_.$B))==null?void 0:O.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
UM6.prototype.showConfirmationDialog=function(v,e){this.navigateParams=e;this.customConfirmationCommand?_.dk().resolve(_.EI).resolveCommand(this.customConfirmationCommand):(e={openPopupAction:{popup:{confirmDialogRenderer:{title:_.pQ(_.sz("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.pQ(_.sz("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.pQ(_.sz("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.pQ(_.sz("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.FT.getInstance().triggerAction("yt-open-popup-action",e,v))};
UM6.prototype.cancelPendingNavigation=function(){var v;((v=this.navigateParams)==null?void 0:v.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var vD0=function(){},dVg=function(v,e,d,E,T,S,O){d=d===void 0?{}:d;
O=O===void 0?{}:O;var b=_.kK.instance,Y,q=(Y=_.L(e,_.wb))==null?void 0:Y.url;return q?ZVs(b,q,d,window.location.href,function(r,h){ecB(v,r,h,!1,!0,d,S,E)},function(){return!1}):CO(b,e,d,window.location.href,ob(e),function(r,h){ecB(v,r,h,!1,!0,d,S,E)},T,O)},ecB=function(v,e,d,E,T,S,O,b){if(!v.JSC$14436_chunkHandler)if(d.page==="learning_journey_watch"&&_.N("web_enable_canvas_on_learning_journey")){var Y=!_.L(b,_.Lo);
T=T||E;if(Y)if(T){if(_.N("kevlar_continue_playback_without_player_response")){var q;var r=(q=_.L(b,_.p2))==null?void 0:q.videoId}E={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:E,previousVideoId:r},tempData:S}}else E={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else E={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};v.JSC$14436_chunkHandler=new joe(_.dB,E,O,Y,T)}else if(d.page==="watch"||d.page==="learning_journey_watch")if(T||E){if(_.N("kevlar_continue_playback_without_player_response")){var h;
Y=(h=_.L(b,_.p2))==null?void 0:h.videoId}v.JSC$14436_chunkHandler=new kLE(_.dB,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:E,previousVideoId:Y},tempData:S},O)}else v.JSC$14436_chunkHandler=new KFn(_.dB);else d.page==="shorts"&&T&&!E?v.JSC$14436_chunkHandler=new Nj7(_.dB,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:S},O):v.JSC$14436_chunkHandler=new $hJ(O);v.JSC$14436_chunkHandler.processChunk({endpoint:e,data:d});return v.JSC$14436_chunkHandler.aE.promise},
EDB=function(v,e,d,E,T){(d=_.YDc(d))&&ecB(v,e,d,!1,!0,E,void 0,T)};var Tle=function(){this.pendingNavigationPromise=null};
_.W=Tle.prototype;_.W.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.W.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.W.addEventListener=function(){throw Error("zh");};
_.W.dispatchEvent=function(){throw Error("zh");};
_.W.removeEventListener=function(){throw Error("zh");};var Svc=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],sC=function(){_.r6.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];WPE(this)};
_.V(sC,_.r6);sC.prototype.verifyUser=function(){var v=WPE(this),e=v.logout;if(!v.sessionChange)return!0;this.dispatchEvent("ytsessionchange");e&&this.dispatchEvent("ytuserinvalid");return!1};
var WPE=function(v){var e=Svc.map(function(T){var S;return(S=_.Kw.get(T))!=null?S:""}),d=e.some(function(T,S){return v.sessionCookies&&v.sessionCookies[S]!==""&&T===""}),E=e.some(function(T,S){return v.sessionCookies&&v.sessionCookies[S]!==T});
v.sessionCookies=e;return{logout:d,sessionChange:E}};
sC.prototype.clearTimeout=function(){this.scheduledJobId&&(_.RM.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var xMW=new _.nC("POSTMESSAGE_TUNNEL_TOKEN");var f$H=["/parent_tools","/file_download","/artist_roster"],XNs=[rs6,h$g,K0n,jUA,$7i,q02,sUg,NHE];var azE=new _.nC("APP_ROOT");var Np=new _.nC("NAVIGATION_CONFIRMATION_SERVICE");var i8A="/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(" "),O8u=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
k1=function(v,e){this.pendingNavigationPromise=null;this.JSC$14454_clientRoot=v;this.historyManager=e;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new vD0;this.debugString=v.is;v={"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};_.Qf(_.FT.getInstance(),v,this.JSC$14454_clientRoot)},yle,qvE,rlI,hc2,mVg;
_.V(k1,Tle);k1.prototype.reload=function(){_.uX(window.location.href)};
var qDg=function(v){v.currentEndpoint&&_.L(v.currentEndpoint,_.Go)?v.reload():v.currentEndpoint&&v.navigate(v.currentEndpoint,!0,void 0,{disableCache:!0})};
k1.prototype.navigate=function(v,e,d,E,T,S,O,b){e=e===void 0?!1:e;d=d===void 0?{}:d;E=E===void 0?{}:E;var Y=_.dk().resolve(Np),q;if(!O&&pN7(Y,(q=this.currentEndpoint)!=null?q:void 0,v))return Y.showConfirmationDialog(this.JSC$14454_clientRoot.parentElement,{endpoint:v,reload:e,params:d,tempData:E,requestType:T,createScreenConfig:S}),!1;var r=_.HH();_.Ad(r,"eocs")||r.parkOrScheduleJob(function(){r.processSignal("eocs")},10,"eor");
O=ob(v);Y=E.autonav==="1";q=_.zz();sC.instance||(sC.instance=new sC);var h=sC.instance.verifyUser(),K;if(_.N("enable_dark_theme_only_on_shorts")){var k=document.documentElement.hasAttribute("dark"),J=_.Pv(!0)==="USER_INTERFACE_THEME_DARK";if(O==="shorts"){if(!k)if(_.N("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var R;_.uX((R=_.L(v==null?void 0:v.commandMetadata,_.$B))==null?void 0:R.url,void 0,void 0,window.top)}}else{var B;_.uX(_.gZ((B=_.L(v==null?
void 0:v.commandMetadata,_.$B))==null?void 0:B.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.N("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!k){var X;_.uX(_.gZ((X=_.L(v==null?void 0:v.commandMetadata,_.$B))==null?void 0:X.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(J!==k){var Z;_.uX(_.gZ((Z=_.L(v==null?void 0:v.commandMetadata,_.$B))==null?void 0:Z.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(O==="watch"){if(Iz2(_.dk().resolve(_.P0),
v)&&(h||_.N("fix_miniplayer_navigation_killswitch")))return!1;_.N("block_all_player_prefetch_requests")||(K=mj7(_.nr(_.Ls),v,Y))}else{var U,F=(U=_.L(this.currentEndpoint,_.p2))==null?void 0:U.videoId;F&&_.Jd.getInstance().then(function(kS){kS&&kS.set("yt-miniplayer-shown-video-id",F)})}K&&(d.frags=K.missingFragments_.join(","));
R=null;var g;B=(g=_.L(v==null?void 0:v.commandMetadata,_.$B))==null?void 0:g.ignoreNavigation;if(!B)if(_.N("kevlar_command_url")){var Q;R=(Q=_.L(v==null?void 0:v.commandMetadata,_.$B))==null?void 0:Q.url}else R=_.fxM(v,d);if(R&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&R==this.lastNavigationUrl)return _.BF({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.W0(w3(),"CANCELLED")}R&&(this.lastNavigationUrl=R);yxM();_.xc("IS_HOMEPAGE_COLD",
!1);_.xc("IS_RESULTS_PAGE_COLD",!1);_.xc("IS_WATCH_PAGE_COLD",!1);v.loggingUrls&&v.loggingUrls.forEach(function(kS){kS.baseUrl&&_.ZF(kS.baseUrl)});
_.Aqt(v,S?S.layer:0)&&_.N("kevlar_flush_logs_on_away_navigation")&&_.fI();if(zL3(v))return!1;Qve(O,T);if(!R)return B||_.xf(new _.kL("Can't construct url for endpoint",v)),_.W0(w3(),"FAILURE"),!1;_.te3();g=v&&_.L(v,_.Lo)&&_.L(v,_.Lo).browseId.startsWith("UC");d=(Q=_.N("enable_dark_theme_only_on_shorts")&&O==="shorts"?!1:_.xE()&&document.documentElement.hasAttribute("dark")!==_.Rb())?{themeRefresh:1}:{};Q&&!_.jG()&&_.Pv()==="USER_INTERFACE_THEME_DARK"&&(d.theme="dark");g=Q||b82(R)&&!g&&!_.N("kevlar_disable_url_allowlist");
h||(g=!0);if(g||_.Bb("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var v3;var q7=(v3=window.top)==null?void 0:v3.location.href}catch(kS){var m0;q7=(m0=kS)==null?void 0:m0.message}_.xf(new _.kL("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:q7}))}v=_.N("kevlar_redirect_on_window_killswitch")?window.top:window;g1(R);_.uX(_.gZ(R,d),void 0,void 0,v);_.W0(w3(),"ABORTED");return!1}_.N("kevlar_early_popup_close")&&_.b4(this.JSC$14454_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14436_chunkHandler=void 0;var $S;q7=ob(($S=this.currentEndpoint)!=null?$S:void 0);($S=O==="shorts"&&q7==="shorts")||_.qQj();_.Hb(evt)("nr",void 0);Y&&_.BF({webInfo:{navigationReason:"an"}});v.clickTrackingParams&&(E.itct=v.clickTrackingParams,E.csn=q);VYL(E);E.endpoint=JSON.stringify(v);_.N("enable_unknown_lact_fix_on_html5")&&(_.dk().resolve(_.oZ),E.lact=_.TN());_.f0.isEmpty(E)||_.Ez(R,E);!_.N("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(S=Object.assign({},{layer:0},S,{parentLayer:3}));this.pendingNavigationPromise=S=dVg(this.pageFetcher,v,E,this.currentEndpoint,this.JSC$14454_isNetworkPromiseStale.bind(this),S,b);S=S.then(this.handleNavigateSuccess.bind(this,S,v,K,E),this.handleNavigateFail.bind(this,S,v));_.Ke().navigationFinishPromise=S;e={endpoint:v,pageType:O,url:iH(R),reload:!!e,noProgressBar:$S};T&&(e.type=T);this.fireEvent("yt-navigate-start",e);K&&EDB(this.pageFetcher,v,K,E,this.currentEndpoint);
return!0};
k1.prototype.JSC$14454_isNetworkPromiseStale=function(v){return v!=this.pendingNavigationPromise};
var Yv7=function(v,e,d,E,T){var S=ob(e);e={endpoint:e,pageType:S};T&&(e.errorMessage=T);_.xf(d);e.navigationDoneMs=_.zE("nd");e.navigationErrorReason=E;v.fireEvent("yt-navigate-error",e)};
k1.prototype.handleNavigateFail=function(v,e,d){var E=void 0;d instanceof _.Cr&&(E=d,MKj(d));if(this.JSC$14454_isNetworkPromiseStale(v))return _.f1(E);_.W0(w3(),"FAILURE");Yv7(this,e,d,"101");return _.f1(d)};
k1.prototype.handleNavigateSuccess=function(v,e,d,E,T){if(this.JSC$14454_isNetworkPromiseStale(v))return _.qg();this.pendingNavigationPromise=null;if(!T)return e=new _.kL("Missing data in response for navigation endpoint",e),_.f1(e);if(T.reload)return window.location.reload(!0),_.qg();d&&(v={},_.f0.extend(v,_.YDc(d),T),T=v);var S,O;d=(S=T)==null?void 0:(O=S.timing)==null?void 0:O.responseStart;d!=null&&_.zE("srt",d);_.zE("pdc");var b,Y;S=(b=T)==null?void 0:(Y=b.timing)==null?void 0:Y.info;S!=null&&
(b=_.Hb(_.SQ$)(S),_.BF(b));_.W0(w3(),"SUCCESS");mVg(this,e,T,1,E);return _.qg()};
var b82=function(v){var e=v;_.N("kevlar_no_redirect_to_classic_2_ks")||(e=(new _.vF(v)).getPath());if(e==="/"||e==="/red")return!1;var d=!0;i8A.forEach(function(E){v.indexOf(E)===0&&(d=!1)});
O8u.forEach(function(E){var T=E.url;_.N(E.expFlag)&&v.indexOf(T)===0&&(d=!1)});
return d};
k1.prototype.publishPageData=function(v){this.fireEvent("yt-page-data-fetched",{pageData:v})};
yle=function(v,e,d,E,T,S){var O=null;e.page!=="watch"&&e.page!=="learning_journey_watch"||E?e.filler||_.b4(v.JSC$14454_clientRoot,"yt-stop-old-player",[e]):O=ecB(v.pageFetcher,T,e,d,!1,S,void 0,v.currentEndpoint);if(O)return O.then(v.publishPageData.bind(v,e));v.publishPageData(e);return _.qg()};
qvE=function(v,e,d){var E=null;if(!d)return E=new _.kL("Empty data",v.debugString,e);var T=d.response;if(!T)return E;var S={endpointType:ob(e)||"unknown"};T.responseContext?(T=T.responseContext.errors)&&(E=new _.kL("Errors in response context",v.debugString,e,T,S)):E=T.error||T.errorMetadata?new _.kL("Errors in response",v.debugString,e,T.error,T.errorMetadata,S):new _.kL("responseContext missing",v.debugString,e,Object.keys(T).sort().join(","),S);var O,b,Y,q;if(v=d==null?void 0:(O=d.response)==null?
void 0:(b=O.responseContext)==null?void 0:(Y=b.webResponseContextExtensionData)==null?void 0:(q=Y.webResponseContextDebugData)==null?void 0:q.debugErrorMessages)for(O=0;O<v.length;O++);return E};
rlI=function(v){var e,d,E,T;return v==null?void 0:(e=v.response)==null?void 0:(d=e.responseContext)==null?void 0:(E=d.errors)==null?void 0:(T=E.error)==null?void 0:T["0"]};
hc2=function(v,e){var d;if(d=e.url&&!e.url.startsWith("/clip"))d=e.url,d=!_.N("webfe_parse_debug_param_in_resolveurl_service")&&v.searchDebugUrlMatcher.test(d)||zas(d)?!0:!1;if(d)zas(e.url)&&_.QU(window.location.href).themeRefresh?(e=_.TE(e.url,"themeRefresh"),_.KE(v.historyManager,e)):e.url&&!oyM(e.url)&&_.KE(v.historyManager,e.url);else if(e.endpoint){var E,T,S;(d=(E=e.endpoint)==null?void 0:(T=E.commandMetadata)==null?void 0:(S=T.webCommandMetadata)==null?void 0:S.url)&&!oyM(d)&&_.KE(v.historyManager,
d);d&&e.url&&d!=e.url&&!e.url.match("playnext=1")&&new _.kL("Response url mismatch in response data",v.debugString,d,e.url)}};
_.KP6=function(v,e,d,E,T,S,O,b){S=S===void 0?!1:S;var Y=_.dk().resolve(Np),q;if(!b&&pN7(Y,(q=v.currentEndpoint)!=null?q:void 0,e))return Y.showConfirmationDialog(v.JSC$14454_clientRoot.parentElement,{endpoint:e,data:d,navigationType:E,tempData:T,isMiniplayer:S,isForwardHistoryNavigation:O==null?void 0:O.forward}),_.qg();v.pageFetcher.JSC$14436_chunkHandler=void 0;return mVg(v,e,d,E,T,S)};
mVg=function(v,e,d,E,T,S){S=S===void 0?!1:S;v.isMiniplayerExpansion=S;var O=E===2;v.currentEndpoint=e;v.numNavigations++;v.numNavigations&&(Y20.navigationCount=v.numNavigations);_.xc("NUM_NAV",v.numNavigations);var b=qvE(v,e,d);if(b)return Yv7(v,e,b,"102",rlI(d)),_.f1(b);var Y,q,r,h;b=d.rootVe||(d==null?void 0:(Y=d.response)==null?void 0:(q=Y.responseContext)==null?void 0:(r=q.webResponseContextExtensionData)==null?void 0:(h=r.ytConfigData)==null?void 0:h.rootVisualElementType);!O&&d&&hc2(v,d);var K,
k;Y=d==null?void 0:(K=d.response)==null?void 0:(k=K.responseContext)==null?void 0:k.maxAgeSeconds;if(!O&&!isNaN(Y)){var J;_.N("kevlar_use_response_ttl_to_invalidate_cache")?J=(0,_.E$)()+1E3*Y:_.N("kevlar_always_invalidate_cache")&&(J=0);isNaN(J)||(d.expirationTime=J)}_.nr(_.Ls).prefetchCache_.clear();O||d.page!=="watch"||d.type!=="reduced"&&E!==1?E=yle(v,d,O,!!S,e,T):(v.publishPageData(d),E=_.qg());T=E.then(function(){var R=ob(e);R={endpoint:e,pageType:R,fromHistory:O,response:d};R.navigationDoneMs=
_.zE("nd");v.fireEvent("yt-navigate-finish",R)});
d.csn&&b&&d.clientSideGrafts&&E.then(v.attachClientSideGrafts.bind(v,d,_.Xf()));return T};
_.W=k1.prototype;_.W.attachClientSideGrafts=function(v,e){v.clientSideGrafts&&e&&v.clientSideGrafts.forEach(function(d){if(e&&d){var E=_.Jg(d);_.N("combine_ve_grafts")?_.NC().graftServerVe(d,e):_.Qa(v.csn,e,E)}})};
_.W.handleSignalActionHistoryBack=function(){window.history.back()};
_.W.handleSignalActionCloseWindow=function(){window.close()};
_.W.handleSignalActionReloadPage=function(){this.reload()};
_.W.handleSignalActionSoftReloadPage=function(){qDg(this)};
_.W.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.W.fireEvent=function(v,e){v=new CustomEvent(v,{bubbles:!0,cancelable:!1,composed:!0,detail:e});this.dispatchEvent(v)};
_.W.addEventListener=function(v,e){this.JSC$14454_clientRoot.addEventListener(v,e)};
_.W.dispatchEvent=function(v){return this.JSC$14454_clientRoot.dispatchEvent(v)};
_.W.removeEventListener=function(v,e){this.JSC$14454_clientRoot.removeEventListener(v,e)};
k1[ua]=[azE,_.$1];_.FTt=new ac("browse","h8y2qb");_.QpW=new ac("search","JzFVk");_.gCs=new ac("shorts","xwEKAe");_.upS=new ac("watchFixie","nmfa2d");_.nC0=new ac("watchFlexy","CF909");_.DlW=new ac("watchGrid","Tm0L3c");_.UlU=new ac("watchLearningJourney","L3n37");var $Vu;var jDI=function(){return _.P.apply(this,arguments)||this};
_.V(jDI,_.P);_.vP.Object.defineProperties(jDI,{template:{configurable:!0,enumerable:!0,get:function(){if($Vu===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);$Vu=v}v=$Vu;return v}}});
_.c([_.M(jLB.YtPlayerBehavior),_.w("design:type",Object)],jDI.prototype,"ytPlayerBehavior",void 0);_.c([_.z({is:"ytd-player"})],jDI);var sDe;var NlJ;var k7n;var LE=function(){var v=_.P.apply(this,arguments)||this;v.forceModernIconButton=!1;v.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return v};
_.V(LE,_.P);LE.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]]"}}}}}};
LE.prototype.handleAccountLinkingStateChangedCommand=function(v){if(v=_.L(v,Olu)){var e,d=(e=this.data)==null?void 0:e.providerKey;e=v.providerKey;d&&e&&d.id===e.id&&d.subject===e.subject&&(v=v.linked,v!==void 0&&(this.set("data.linked",v),this.notifyPath("data.linked"),_.N("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(v)))}};
LE.prototype.setPlayerAccountLinkState=function(v){var e=new d6n;EZB(e,vZu(new p6u,v));var d=_.dB();d&&d.getPlayerPromise().then(function(E){E.setAccountLinkState(_.GQ(e.JSC$12149_serializeBinary(),4));E.updateAccountLinkingConfig(v)})};
LE.prototype.handleShowAccountLinkDialog=function(){var v=this.get("button.buttonRenderer.command");v&&_.hU([v],this.hostElement)};
_.vP.Object.defineProperties(LE.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.c([_.M([_.$M.YtActionHandlerBehavior]),_.w("design:type",Object)],LE.prototype,"actionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],LE.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],LE.prototype,"overrides",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],LE.prototype,"forceModernIconButton",void 0);_.c([_.f({value:"bottom"}),_.w("design:type",String)],LE.prototype,"buttonTooltipPosition",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],LE.prototype,"forceIconButton",void 0);_.c([_.f(),_.w("design:type",Boolean)],LE.prototype,"disableTextTransform",void 0);
_.c([_.t("data","data.linked","data.isWarning"),_.w("design:type",Object),_.w("design:paramtypes",[])],LE.prototype,"button",null);_.c([_.z({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],LE);
_.A(LE,"ytd-account-link-button-renderer",function(){if(k7n!==void 0)return k7n;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return k7n=v},{mode:1});var LPc;var VHM=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Vc=function(){return _.P.apply(this,arguments)||this};
_.V(Vc,_.P);Vc.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Vc.prototype.updateButtonActiveState=function(){var v=this,e=!!VHM.find(function(d){return v.currentState===d});
this.button&&(this.button.isPressed=e)};
_.vP.Object.defineProperties(Vc.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.playlistLoopStateEntity)==null?void 0:v.state)||((e=this.data)==null?void 0:e.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var v=void 0,e;if(this.currentState&&((e=this.data)==null?0:e.states)){e=_.a(this.data.states);for(var d=e.next();!d.done;d=e.next()){d=_.L(d.value,_.GeI);var E=void 0;if(((E=d)==null?void 0:E.state)===this.currentState){v=d;break}}}return v}}});
Vc.prototype.updateButtonActiveState=Vc.prototype.updateButtonActiveState;_.c([_.M(_.lV),_.w("design:type",Object)],Vc.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.uNO}),_.w("design:type",Object)],Vc.prototype,"playlistLoopStateEntity",void 0);_.c([_.f(),_.w("design:type",Object)],Vc.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],Vc.prototype,"forceIconOnly",void 0);_.c([_.sg("ytd-button-renderer"),_.w("design:type",_.Tu)],Vc.prototype,"button",void 0);
_.c([_.t("data","playlistLoopStateEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],Vc.prototype,"currentState",null);_.c([_.$v("currentButtonStateRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Vc.prototype,"updateButtonActiveState",null);_.c([_.t("currentState"),_.w("design:type",Object),_.w("design:paramtypes",[])],Vc.prototype,"currentButtonStateRenderer",null);
_.c([_.z({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Vc);
_.A(Vc,"ytd-playlist-loop-button-renderer",function(){if(LPc!==void 0)return LPc;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return LPc=v},
{mode:1});var oD2;var JlE=_.sz("DOWNLOAD",{},"Download"),G7A=_.sz("DOWNLOADING",{},"Downloading"),MHc=_.sz("DOWNLOADED",{},"Downloaded"),tHJ=_.sz("RETRY",{},"Retry"),oj=function(){var v=_.P.apply(this,arguments)||this;v.forceIconButton=!1;v.forceIconOnly=!1;v.overrides=!1;v.buttonTooltipPosition=!1;v.styleActionButton=!1;v.disableTextTransform=!1;v.downloadProgress=0;v.isDownloadComplete=!1;v.isHidden=!0;v.transferState="TRANSFER_STATE_UNKNOWN";v.isVideoDeletedByUser=!1;v.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return v};
_.V(oj,_.P);_.W=oj.prototype;_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.dataChanged=function(){var v;(v=this.data)!=null&&v.text||(v=_.A_(_.d1().getState(),this.videoId),this.updateButtonState(v))};
_.W.computeVideoId=function(v){return v};
_.W.showHideButton=function(){this.updateButtonVisibility()};
_.W.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};
_.W.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.W.updateButtonState=function(v){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==G7A||!_.oG(v))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(v){case "TRANSFER_STATE_UNKNOWN":v=JlE;var e="OFFLINE_DOWNLOAD";var d="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":v=tHJ;e="OFFLINE_DOWNLOAD";d="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":v=MHc;e="OFFLINE_PIN";d="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":v=
G7A;e="OFFLINE_DOWNLOADING_ZERO";d="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":v=tHJ;e="OFFLINE_DOWNLOAD";d="ACTION_RETRY";break;default:v=JlE,e="OFFLINE_DOWNLOAD",d="ACTION_ADD"}this.isVideoDeletedByUser&&(v=JlE,e="OFFLINE_DOWNLOAD",d="ACTION_ADD");var E=Object.assign({},this.data);E.text=_.pQ(v);E.tooltip=v;E.icon={iconType:e};E.size="SIZE_DEFAULT";E.style="STYLE_DEFAULT";_.L(E.command,_.rB)&&(_.L(E.command,_.rB).action=d);this.set("data",E)}};
_.W.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var v="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?v="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?v="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?v="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?v="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?v="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(v="OFFLINE_PIN",this.isDownloadComplete=!0);var e;v!==((e=this.data.icon)==null?void 0:e.iconType)&&(e=Object.assign({},this.data),e.text=_.pQ(G7A),e.tooltip=G7A,e.icon={iconType:v},_.L(e.command,_.rB)&&(_.L(e.command,_.rB).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",e))}};
oj.prototype.updateProgress=oj.prototype.updateProgress;oj.prototype.onTransferStateChanged=oj.prototype.onTransferStateChanged;oj.prototype.showHideButton=oj.prototype.showHideButton;oj.prototype.dataChanged=oj.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],oj.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],oj.prototype,"forceIconButton",void 0);
_.c([_.f(),_.w("design:type",Object)],oj.prototype,"forceIconOnly",void 0);_.c([_.f(),_.w("design:type",Object)],oj.prototype,"overrides",void 0);_.c([_.f(),_.w("design:type",Object)],oj.prototype,"buttonTooltipPosition",void 0);_.c([_.f(),_.w("design:type",Object)],oj.prototype,"styleActionButton",void 0);_.c([_.f(),_.w("design:type",Object)],oj.prototype,"disableTextTransform",void 0);
_.c([_.f({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.w("design:type",String)],oj.prototype,"videoId",void 0);_.c([_.f(),_.w("design:type",Object)],oj.prototype,"data",void 0);_.c([_.f({selector:cK,selectorArgs:["videoId"]}),_.w("design:type",Object)],oj.prototype,"downloadProgress",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],oj.prototype,"isDownloadComplete",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],oj.prototype,"isHidden",void 0);_.c([_.f({selector:_.A_,selectorArgs:["videoId"]}),_.w("design:type",String)],oj.prototype,"transferState",void 0);_.c([_.f({selector:_.rb7,selectorArgs:["videoId"]}),_.w("design:type",Object)],oj.prototype,"isVideoDeletedByUser",void 0);_.c([_.f({selector:Ih0,selectorArgs:["videoId"]}),_.w("design:type",Object)],oj.prototype,"offlineabilityState",void 0);
_.c([_.f({value:!0}),_.w("design:type",Boolean)],oj.prototype,"showTooltips",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],oj.prototype,"sendCommandWhenDisabled",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],oj.prototype,"disabled",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oj.prototype,"dataChanged",null);
_.c([_.V1("offlineabilityState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oj.prototype,"showHideButton",null);_.c([_.V1("transferState","isVideoDeletedByUser"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oj.prototype,"onTransferStateChanged",null);_.c([_.V1("downloadProgress"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oj.prototype,"updateProgress",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],oj);
_.A(oj,"ytd-download-button-renderer",function(){if(oD2!==void 0)return oD2;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return oD2=v},{mode:2});var fzE;var Rce,Pi0=function(){if(Rce!==void 0)return Rce;var v=document.createElement("template");_.G(v,'\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 Rce=v};var xVe=_.N("web_button_rework")&&_.zr("BUTTON_REWORK")||_.N("web_button_rework_with_live"),Bl0=_.Wi("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,Jx=function(){var v=_.P.apply(this,arguments)||this;v.isPressed=!1;v.forceIconButton=!1;v.forceIconOnly=!1;v.forceModernIconButton=!1;v.alignByText=!1;v.isShorts=!1;v.animatedText=!1;v.shouldAnimate=!1;v.JSC$14491_browserSupportsAnimation=_.N("web_supports_animations_api");v.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};v.onTap=function(){var e;if((e=v.data)==null||!e.defaultNavigationEndpoint){var d;e=!((d=v.data)==null?0:d.isToggled);var E;if((E=v.data)==null||!E.preventAutoToggle){v.shouldAnimate=!1;v.disableTextUpdateJobId&&_.RM.cancelJob(v.disableTextUpdateJobId);v.disableTextUpdateJobId=_.RM.addLowPriorityJob(function(){v.disableTextUpdateJobId=void 0},Bl0);
var T;v.set("data.isToggled",!((T=v.data)==null?0:T.isToggled));d=v.getInnertubeIcon();E={toggled:e,actions:{}};d&&(E.actions[d.toLowerCase()]=e);_.Iq(v.hostElement,"yt-toggle-button",E)}}};
return v};
_.V(Jx,_.P);_.W=Jx.prototype;_.W.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.RM.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.toggle=function(v){var e;this.set("data.isToggled",v!==void 0?v:!((e=this.data)==null?0:e.isToggled))};
_.W.handleUpdateToggleButtonStateCommand=function(v){if(this.data){v=_.L(v,$Uu);var e,d,E,T=(e=this.data)==null?void 0:(d=e.toggleButtonSupportedData)==null?void 0:(E=d.toggleButtonIdData)==null?void 0:E.id;T&&v&&T===(v==null?void 0:v.buttonId)&&this.set("data.isToggled",v.toggled)}};
_.W.handleUpdateToggleButtonTextAction=function(v){if(this.data){v=_.L(v,ORA);var e,d,E,T=(e=this.data)==null?void 0:(d=e.toggleButtonSupportedData)==null?void 0:(E=d.toggleButtonIdData)==null?void 0:E.id;T&&v&&T===(v==null?void 0:v.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=v.defaultNumericalValue,this.set("data.defaultText",v.defaultText),this.set("data.toggledText",v.toggledText),this.shouldAnimate=!1)}};
_.W.getInnertubeIcon=function(){var v=this.data;if(v){var e,d,E=((e=v.defaultIcon)==null?0:e.iconType)?(d=v.defaultIcon)==null?void 0:d.iconType:null,T,S;e=((T=v.toggledIcon)==null?0:T.iconType)?(S=v.toggledIcon)==null?void 0:S.iconType:E;return v.isToggled?e:E}};
_.W.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.vP.Object.defineProperties(Jx.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v={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$14491_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var e=v.renderer;var d=v.element;var E=v.toggled;var T=v.onTapCallback;var S=v.commandClientArgs;var O=v.overrides;var b=v.forceIcon;var Y=v.forceModernIconButton;var q=v.forceDisabled;var r=v.useAnimatedText;var h=v.animatedTextProps;v=pNt(e,E);b=!e.defaultIcon||!b&&e.defaultText?e.defaultIcon?"leading":void 0:Y?"icon-only":"icon-only-40";b==="icon-only-40"&&(v.type="text");var K;Y=Object;var k=Y.assign,J;a:switch((J=
e.style)==null?void 0:J.styleType){case "STYLE_COMPACT_GRAY":J={size:"S"};break a;default:J={size:"M"}}var R=!!E;var B=(B=E&&e.toggledText||e.defaultText)?_.Bz(B):void 0;r?(r=_.vv(E&&e.toggledText||e.defaultText))&&h&&!isNaN(Number(h.numberValue))?(h.numberText=r,E&&(h.numberValue+=1),r=h):r=void 0:r=void 0;var X,Z,U,F;var g=(h=((Z=E?e.toggledAccessibilityData||((g=e.toggledText)==null?void 0:g.accessibility):e.accessibilityData||((X=e.defaultText)==null?void 0:X.accessibility))==null?void 0:(U=Z.accessibilityData)==
null?void 0:U.label)||((F=e.accessibility)==null?void 0:F.label))?h:_.vv(E&&e.toggledText||e.defaultText);q=q===void 0?e.isDisabled:q;d=UM0(e,E,T,d,S);E=DMH(e,E);E!=null&&E.length?(E=_.Ag({innertubeCommand:lWt(E),forceNewState:!0}),E=cz(E)?E:void 0):E=void 0;e=k.call(Y,{},v,J,{iconPosition:b},O,{focused:!1,toggled:R,toggleable:!0,formattedButtonText:B,animatedTextProps:r,accessibilityLabel:g,disabled:q,onTap:d,aTagConfig:E},iSs((K=e.colorData)==null?void 0:K.basicColorPaletteData));e.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(e.type="filled");return e}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var v=this.getInnertubeIcon();if(v)return _.qC(v)}}});
Jx.prototype.resetAnimation=Jx.prototype.resetAnimation;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Jx.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Jx.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Jx.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],Jx.prototype,"isPressed",void 0);_.c([_.f(),_.w("design:type",Object)],Jx.prototype,"forceIconButton",void 0);_.c([_.f(),_.w("design:type",Object)],Jx.prototype,"forceIconOnly",void 0);_.c([_.f(),_.w("design:type",Object)],Jx.prototype,"forceModernIconButton",void 0);_.c([_.f(),_.w("design:type",Object)],Jx.prototype,"alignByText",void 0);_.c([_.f(),_.w("design:type",Object)],Jx.prototype,"overrides",void 0);
_.c([_.f(),_.w("design:type",Boolean)],Jx.prototype,"disabled",void 0);_.c([_.f(),_.w("design:type",Object)],Jx.prototype,"isShorts",void 0);_.c([_.f(),_.w("design:type",Object)],Jx.prototype,"buttonTooltipPosition",void 0);_.c([_.f(),_.w("design:type",Object)],Jx.prototype,"animatedText",void 0);_.c([_.f(),_.w("design:type",String)],Jx.prototype,"textNumberValue",void 0);_.c([_.f({computed:"computeTooltip(data, data.isToggled)"}),_.w("design:type",Object)],Jx.prototype,"tooltip",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jx.prototype,"resetAnimation",null);_.c([_.t("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jx.prototype,"computedButtonShape",null);_.c([_.t("data.*"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jx.prototype,"computedIcon",null);
_.c([_.z({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],Jx);xVe&&_.A(Jx,"ytd-toggle-button-renderer",Pi0,{mode:_.bk("kevlar_poly_si_batch_j081")?1:2});var Ci2=_.l(function(v){function e(q){var r;return _.I(function(h){if(h.nextAddress==1)return(r=!ecj(q,b())||!b().enabled)?h.jumpTo(2):h.yield(WPU(),3);h.nextAddress!=2&&(r=h.yieldResult);if(r)return h.return();d();setTimeout(function(){O(!1)},1500);
_.s9(h)})}
function d(){setTimeout(function(){O(!0);var q;(q=E.lottieEl)==null||q.goToAndPlay(0)},150)}
var E=_.y0(),T=_.a(_.OE(!1,void 0,"JJXzp")),S=T.next().value,O=T.next().value,b=_.e2(v.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Gr(function(){var q,r;((q=v.settings)==null?void 0:(r=q.call(v))==null?void 0:r.uniqueId)==="this is not intended behavior"&&_.xf(new _.kL("Smartimation Settings is undefined"))});
_.o_(function(){b().experimentEnabled&&(b().enabled?dV0(e):(O(!1),EDj(e)),_.Jf(function(){EDj(e)}))},"FRiAUe");
_.o_(function(){b().timings.join("");b().experimentEnabled&&(Tls(b()),_.Jf(function(){Sv3(b())}))},"VKiJOe");
var Y=_.yl(function(){var q=E,r=b().uniqueId+"-border",h,K;var k="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((K=(h=_.dk().resolve(_.eG(_.n1)))==null?void 0:h())!=null&&K?"dark":"light")+"_v2.json";return{animationRef:q,animationConfig:{name:r,autoplay:!1,loop:!1,path:k}}},void 0,"tgykab");
T={};return _.m("yt-smartimation",{class:_.qe(v.className,"smartimation",(T["smartimation--experiment-enabled"]=function(){return b().experimentEnabled},T["smartimation--active-border"]=S,T["smartimation--enable-masking"]=azU(),T))},_.m(_.y,{cond:function(){return b().experimentEnabled},
then:function(){return _.m("div",{class:"smartimation__border"},_.m(_.jZ,{className:"smartimation__border-gradient",data:Y,animationName:function(){return Y().animationConfig.name}}))}}),_.m("div",{class:"smartimation__content"},v.children))},"G");
Ci2.idomCompat=!0;_.aZ(Ci2,"yt-smartimation",{props:{className:_.U1,settings:_.U1}});var GT=function(){var v=_.P.apply(this,arguments)||this;v.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};v.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};v.shouldEnableSmartimation=!1;return v};
_.V(GT,_.P);GT.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
GT.prototype.onDataChanged=function(){var v,e;this.shouldEnableSmartimation=(((v=this.data)==null?void 0:(e=v.timedAnimationData)==null?void 0:e.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
GT.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var v=_.L(this.data.likeButton,_.C6),e=_.L(this.data.dislikeButton,_.C6);return!!((v==null?0:v.isToggled)||(e==null?0:e.isToggled))};
GT.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]]"}}}}}};
_.vP.Object.defineProperties(GT.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var v,e,d=((v=this.data)==null?void 0:(e=v.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"like-dislike",timings:d,enabled:this.shouldEnableSmartimation,experimentEnabled:d.length>0}}}});
GT.prototype.onDataChanged=GT.prototype.onDataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],GT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],GT.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],GT.prototype,"likeButtonOverride",void 0);_.c([_.f(),_.w("design:type",Object)],GT.prototype,"dislikeButtonOverride",void 0);
_.c([_.t("shouldEnableSmartimation"),_.w("design:type",Object),_.w("design:paramtypes",[])],GT.prototype,"smartimationSettings",null);_.c([_.$v("data"),_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GT.prototype,"onDataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],GT);
_.A(GT,"ytd-segmented-like-dislike-button-renderer",function(){if(fzE!==void 0)return fzE;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return fzE=v},{mode:1});var Xfg;var zcu;(zcu=document.body)==null||zcu.setAttribute("rounded-container","");var lz2={};lz2.YtToggleButtonBehavior=[_.$M.YtActionHandlerBehavior,oe.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 v=this.data.isToggled;if(!this.isModal_(v)){if(!this.data.preventAutoToggle){this.toggle();var e={toggled:this.data.isToggled,actions:{}};e.actions[this.buttonIcon]=this.data.isToggled;_.Iq(this.hostElement,"yt-toggle-button",e)}e=this.data.defaultServiceEndpoint||null;var d=this.data.toggledServiceEndpoint||null;if(e&&d||e&&this.data.preventAutoToggle)v=v?d:e,e=this.disableCommandHandlerOverride,_.N("killswitch_toggle_button_behavior_resolve_command")||e?_.mN(this.hostElement,
[v]):_.K1(v,this.hostElement),_.Iq(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:v})}},
stateChanged_:function(){var v=this.data;if(v){var e=v.isToggled;this._setEndpoint(this.computeEndpoint_(v));this._setServiceEndpoint(this.computeServiceEndpoint_(v));this._setButtonIcon(this.computeButtonIcon_(v,e));this._setButtonText(this.computeButtonText_(v,e));this._setButtonAccessibility(this.computeAccessibility_(v,e));this._setButtonTooltip(this.computeTooltip_(v,e));this._setButtonClass(this.computeButtonClass_(v,e));this._setIconPositionType(this.computeIconPositionType_(v));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=e):this.elements_.button.setAttribute("aria-pressed",e));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=e)}},
shouldSetIconActiveState_:function(){return _.N("kevlar_system_icons")},
toggle:function(v){this.set("data.isToggled",v!==void 0?v:!this.data.isToggled);_.N("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(v){if(v){var e,d;return!!((e=this.data)==null?0:(d=e.toggledServiceEndpoint)==null?0:d.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(v){return v&&v.defaultNavigationEndpoint||null},
computeButtonIcon_:function(v,e){var d=v&&v.defaultIcon?_.qC(v.defaultIcon.iconType):null;v=v&&v.toggledIcon?_.qC(v.toggledIcon.iconType):d;return e?v:d},
handleUpdateToggleButtonStateCommand_:function(v){v=v.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==v.buttonId&&this.toggle(v.toggled)},
computeButtonText_:function(v,e){return v?e&&v.toggledText||v.defaultText||null:null},
computeAccessibility_:function(v,e){return v?(e?this.get("toggledAccessibilityData.accessibilityData",v):this.get("accessibilityData.accessibilityData",v))||v.accessibility||null:null},
computeTooltip_:function(v,e){return v?e&&v.toggledTooltip||v.defaultTooltip||null:null},
computeButtonClass_:function(v,e){if(!v)return"";var d="",E=v.toggledStyle||v.style;if(e=e?E:v.style){e.styleType&&(e=e.styleType);try{d+=e.toLowerCase().replace(/_/g,"-")+" "}catch(T){_.BV(T,e,typeof e),_.xf(T)}}if(v=v.size){v.sizeType&&(v=v.sizeType);try{d+=v.toLowerCase().replace(/_/g,"-")+" "}catch(T){_.BV(T,v,typeof v),_.xf(T)}}return d.trim()},
computeIconPositionType_:function(v){return v&&v.iconPosition||null},
computeServiceEndpoint_:function(v){var e=v&&v.serviceEndpoint,d=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:d&&v.command?v.command:null},
handleUpdateToggleButtonTextAction_:function(v){v=v.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==v.buttonId&&(this.set("data.defaultText",v.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",v.toggledText),this.notifyPath("data.toggledText"))}}];_.RZ("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var H8n=_.N("web_button_rework")&&_.zr("BUTTON_REWORK")||_.N("web_button_rework_with_live"),Mp=function(){var v=_.P.apply(this,arguments)||this;v.systemIcons=_.N("kevlar_system_icons");v.roundedContainer=!0;return v};
_.V(Mp,_.P);Mp.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Mp.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var v=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var e={toggled:!!this.data.isToggled,actions:{}};e.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var d,E;e.actions.playlistId=(d=this.data.defaultServiceEndpoint)==null?void 0:(E=d.playlistEditEndpoint)==null?void 0:E.playlistId;_.Iq(this.hostElement,"yt-toggle-button",e)}(v=v?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(v)}};
Mp.prototype.onYtNavigate=function(v){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);e&&(v.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(e))};
_.vP.Object.defineProperties(Mp,{template:{configurable:!0,enumerable:!0,get:function(){if(Xfg===void 0){var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);Xfg=v}v=Xfg;return v}}});
Mp.prototype.onYtNavigate=Mp.prototype.onYtNavigate;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Mp.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],Mp.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(lz2.YtToggleButtonBehavior),_.w("design:type",Object)],Mp.prototype,"ytToggleButtonBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Mp.prototype,"data",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],Mp.prototype,"showTooltips",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Mp.prototype,"systemIcons",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Mp.prototype,"roundedContainer",void 0);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Mp.prototype,"onYtNavigate",null);
_.c([_.z({is:"ytd-toggle-button-renderer",disableElementRegistration:H8n})],Mp);var Alc;_.tx=new _.nC("PANEL_CONTROLLER_TOKEN");_.fE=new _.nC("SHEET_CONTROLLER_TOKEN");_.Rj=new _.nC("DIALOG_CONTROLLER_TOKEN");Alc=new _.nC("DIALOG_CONTAINER_TOKEN");var rlS=_.sz("DOWNLOAD",{},"Download"),hcO=_.sz("DOWNLOADING",{},"Downloading"),KP0=_.sz("DOWNLOADED",{},"Downloaded"),$V$=_.sz("RETRY",{},"Retry");var sDs=[],NlM=!1;var Z80=_.l(function(v){var e=MH3,d=function(){return""},E=VHL(v.data),T=oDO(v.data),S=JlU(v.data),O=G7W(v.data);
e=function(){var b=v.data(),Y=yls(b,E(),T(),S(),O()),q=!!b.videoId,r=Y.text;return{title:q?r:void 0,tooltip:q?void 0:r,accessibilityText:r,onTap:Y.onTap,iconName:Y.iconType,style:b.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:Y.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:b.buttonSize}};
d={};d=_.qe("ytDownloadButtonViewModelHost",(d.ytDownloadButtonViewModelIsHidden=function(){var b=v.data(),Y=O();return b.playlistId||Y()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||Y()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},d));
return _.m("download-button-view-model",{class:d},_.m(_.yi,{data:e}))},"H");
Z80.idomCompat=!0;var lzO=new _.nC("SUBMIT_API_SERVICE_TOKEN");var Blt,CiO,H8H={submitAction:"SUBMIT_ACTION_SUBMISSION"};var ekt=new _.nC("RENDERER_LOGGER_TOKEN");var DV7=new _.nC("RENDERER_STAMPER_OPTIONS_TOKEN");var sK;_.$z=new H1E;sK=new Map;var UVU="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),vAj=["notificationTextRenderer","notificationMultiActionRenderer"],
pfU="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),nDj=Al3(function(v){return _.M4(v==null?void 0:v.targetId)}).useUpdatableData;var uC0=0;_.kz.debugName="EjJbCe";var clB=_.l(function(v){var e=v.data;v=v.className;_.JE(function(){e().formId||_.RI(Error("Bh"))});
var d=_.xVs(function(){return e().formId},function(){return e().beforeSubmitCommand},function(){return e().afterSubmitCommand}),E=d.submitForm,T=d.isValid,S=d.isSubmitting,O=function(){return{state:e().isDisabled||!T()||S()?"disabled":"active"}};
return _.m("yt-submit-button-view-model",{class:_.qe("ytSubmitButtonViewModelHost",v)},_.m(_.kz,{data:function(){return e().button}},{buttonViewModel:function(b){return _.m(_.yi,{data:b.data,
buttonOverrides:O,onClick:E})}}))},"I");var FPc=_.l(function(v){var e=v.backgroundLottieRef;var d=v.foregroundLottieRef;var E=v.children;var T=v.wrapperClass;var S=v.disableAnimation;v=function(){return(_.N("web_animated_actions")||_.N("web_animated_actions_v2"))&&!(S==null?0:S())};
return _.m("yt-animated-action",{class:_.qe("ytAnimatedActionHost",T)},_.m("div",{class:"ytAnimatedActionContentWithBackground"},_.m(_.y,{cond:v,then:function(){return _.m(wfI,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:e==null?void 0:e(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(dW$()?"dark":"light")+"_v5.json"}}}})}}),E),_.m(_.y,{cond:v,
then:function(){return _.m(wfI,{lottiePlayerProps:function(){return{animationRef:d==null?void 0:d(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(dW$()?"dark":"light")+"_v4.json"}}}})}}))},"J");
FPc.idomCompat=!0;var wfI=_.l(function(v){var e=v.wrapperClass;var d=v.lottieClass;var E=v.lottiePlayerProps;return _.m("div",{class:_.qe("ytAnimatedActionLottie",e),"aria-hidden":"true"},_.m(_.jZ,{className:d,data:E,animationName:function(){return E().animationConfig.name}}))},"K");var EAU={isOpen:!1};var SH7={isAllowed:!1};var a5H={errorMessage:"",title:"",privacy:"",isDisabled:!0};var OxO={isOpen:!1};var bx0={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var QDg={response:void 0};var mWj=function(v,e){v=v===void 0?QDg:v;switch(e.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},v,{response:e.payload});default:return v}};var gDM={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var y63=function(v,e){v=v===void 0?gDM:v;switch(e.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},v,{nextDisabled:e.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},v,{nextCommand:e.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},v,{footerSubmissionData:e.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},v,{isImpersonationValid:e.payload});default:return v}};var uCg={reportFormData:void 0,reportDetailsFormData:void 0};var qHt=function(v,e){v=v===void 0?uCg:v;switch(e.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},v,{reportFormData:e.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},v,{reportDetailsFormData:e.payload});default:return v}};var nDB=void 0;_.N("mweb_enable_redux_store_on_demand")||(nDB=new eU(r60()));var P7=_.N("enable_web_delhi_icons");var DVi=_.l(function(v){v=_.dC(v,{themeOverride:void 0,animationRef:{}});var e=v.animatedIconType,d=v.active,E=v.themeOverride,T=v.animationRef;v=v.staticIconFn;var S=_.a(_.OE(void 0,void 0,"P5a72b")),O=S.next().value,b=S.next().value,Y=function(){a:{var B=e();var X=E==null?void 0:E();var Z;X=(X==null?void 0:X.useDarkTheme)||((Z=_.dk().resolve(_.eG(_.n1)))==null?void 0:Z());switch(B){case "LIKE":nDB||(nDB=new eU(r60()));B=(B=wLW(nDB.getState()))&&B.animationLightUrl&&B.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:X?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:X?B.animationDarkUrl:B.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(B){X=B;break a}X="animated_like_icon_"+(X?"dark":"light")+"_"+(P7?"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"+
(P7?" animated-like-icon-delhi":"")}}},totalFrames:P7?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")+(P7?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(P7?" animated-subscribe-icon-delhi":"")}}},totalFrames:P7?120:79,lazyLoad:!1};break a}X=
void 0}return X},q=function(){var B,X;
return(X=(B=Y())==null?void 0:B.lottiePlayerProps.animationConfig.name)!=null?X:""},r=function(){if(Y()){var B=Y().lottiePlayerProps.animationConfig.path;
return Me.get(B)||O()}};
S=_.a(_.OE(!1,void 0,"h6xR3c"));var h=S.next().value;S=S.next().value;var K=KtL(S),k=function(){var B=Y(),X,Z,U;return(U=B==null?void 0:(X=B.lottiePlayerProps.animationConfig)==null?void 0:(Z=X.rendererSettings)==null?void 0:Z.className)!=null?U:""},J=void 0,R=void 0;
_.o_(function(){var B=Y(),X=q(),Z=r(),U=h(),F=d();if(B&&(R!==X&&(R=X,J=F,X=T(),K.animationConfig=B.lottiePlayerProps.animationConfig,K.animationRef=X,Z&&(K.animationConfig.animationData=Z,K.animationConfig.path=void 0),X=B.lottiePlayerProps.animationConfig.path,!Me.get(X)&&B.lazyLoad&&X&&hkS(X,b)),!(U||B.lazyLoad&&!Z))){if(Z=!T().lottieEl)F?(U=B.totalFrames,K.animationConfig.initialSegment=[U-1,U]):K.animationConfig.initialSegment=void 0;if(J!==F&&!Z)if(Z=T(),F){var g;(g=Z.lottieEl)==null||g.playSegments([0,
B.totalFrames],!0)}else{var Q;(Q=Z.lottieEl)==null||Q.playSegments([0,1],!0)}J=F}},"YCYOCe");
return _.m("animated-icon",{class:"ytAnimatedIconHost"},_.m(_.y,{cond:function(){var B,X;return!((B=Y())==null||!B.lottiePlayerProps.animationConfig.path||((X=Y())==null?0:X.lazyLoad)&&!r()||h())},
then:function(){return _.m(_.jZ,{data:K,animationName:q,className:k,animationRef:T})},
else:v}))},"L");_.x1=_.l(function(v){var e=_.nI("yt-subscribe-button-view-model"),d=_.nI("div"),E=_.nI("div"),T=_.y0(),S=_.y0(),O=_.y0(),b=_.Kv(ZHO,function(){return v.data().stateEntityStoreKey}),Y=_.Kv(cqL,function(){var pt,he;
return(he=(pt=v.data().notificationStateEntityStoreKeys)==null?void 0:pt.subsNotificationStateKey)!=null?he:""}),q=function(){return!v.data().enableSubscribeButtonPostClickAnimation},r=_.a(_.OE(0,void 0,"YtsSKb")),h=r.next().value,K=r.next().value;
r=_.a(_.OE(0,void 0,"V6JxRe"));var k=r.next().value,J=r.next().value;r=_.a(_.OE(!1,void 0,"JUCSZ"));var R=r.next().value,B=r.next().value;r=_.a(_.OE(!1,void 0,"oV6jwf"));var X=r.next().value,Z=r.next().value;r=_.a(_.OE(!1,void 0,"hK1Whe"));var U=r.next().value,F=r.next().value,g;r=_.a(_.OE(!1,void 0,"Asaolf"));var Q=r.next().value,v3=r.next().value,q7=function(){Z(!0);_.JX(_.RM,function(){Z(!1)},1500)};
_.o_(function(){var pt=X();i3(function(){pt&&!q()&&b()&&GWO(T,S,O)})},"Qq6Hsf");
_.o_(function(){var pt=b();i3(function(){if(!q()&&pt){var he;((he=v.animateWidth)==null?0:he.call(v))&&J6H(e.value,!!pt.subscribed,h(),k());var yB,te;((yB=g)==null?0:yB.subscribed)||!pt.subscribed||pt.key!==((te=g)==null?void 0:te.key)||q7();g=pt}})},"hog8te");
r=_.yl(function(){var pt,he,yB,te=v.data(),oC=!((pt=b())==null||!pt.subscribed);pt=!((he=v.isOverlay)==null||!he.call(v));he=R()?e:void 0;var n7=(yB=Y())==null?void 0:yB.state;yB=Q();oAt(te,n7);return sw7({model:te,subscribed:oC,isOverlay:pt,element:he,notificationState:n7,disableTextEllipsis:!0,focused:yB})},void 0,"hc1PRd");
var m0=function(){var pt;if(!q()&&((pt=v.animateWidth)==null?0:pt.call(v))&&(d==null?0:d.value)&&(E==null?0:E.value)&&!U()){pt=b();var he=_.a((pt==null?0:pt.subscribed)?[d,E]:[E,d]),yB=he.next().value;he=he.next().value;yB=Math.ceil(yB.value.getBoundingClientRect().width);he=Math.ceil(he.value.getBoundingClientRect().width);K(yB);J(he);J6H(e.value,!(pt==null||!pt.subscribed),yB,he);F(!0)}},$S=_.rq(function(pt){m0();
var he=b();he&&(pt.detail.endpoint.subscribeEndpoint||pt.detail.endpoint.unsubscribeEndpoint)&&kWt(e.value,!he.subscribed,he)}),kS=function(){var pt=_.dk().resolve(_.eG(_.i$));
pt&&v3(pt.isKeyBoardInUse())},N7=function(){v3(!1)};
_.ul("yt-player-subscribe",function(pt){var he=b();he&&pt===v.data().channelId&&kWt(e.value,!0,he)});
_.ul("yt-player-unsubscribe",function(pt){var he=b();he&&pt===v.data().channelId&&kWt(e.value,!1,he)});
_.ul("yt-update-subscribe-button-action",function(pt){pt=_.L(pt,ETB);var he=b();he&&pt&&pt.channelId===v.data().channelId&&kWt(e.value,!!pt.subscribed,he)});
_.Gr(function(){e.value&&(e.value.addEventListener("focusin",kS),e.value.addEventListener("focusout",N7));var pt=_.LI(_.RM,function(){m0()});
B(!0);_.Jf(function(){_.RM.cancelJob(pt);e.value&&(e.value.removeEventListener("focusin",kS),e.value.removeEventListener("focusout",N7))})});
var As=function(){var pt,he,yB;if(yB=!((pt=b())==null||!pt.subscribed))pt=!!v.data().disableNotificationBell,yB=(he=Y())==null?void 0:he.state,yB=!pt&&!!yB;return yB},Ct=function(){var pt;
return!((pt=b())==null?0:pt.subscribed)},SA=function(){var pt,he;
if(he=Ct()){he=!!v.data().disableNotificationBell;var yB=(pt=Y())==null?void 0:pt.state;he=!he&&!!yB}return he},xI={},mg={};
return _.m("yt-subscribe-button-view-model",{class:_.qe(v.className,"ytSubscribeButtonViewModelHost",(xI.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var pt,he;return!((pt=b())==null||!pt.subscribed)&&((he=v.animateWidth)==null?void 0:he.call(v))&&X()},xI.ytSubscribeButtonViewModelHostHidden=function(){var pt;
return!((pt=b())==null?0:pt.subscribed)&&v.data().hideWhenUnsubscribed},xI)),
el:e,"on:yt-service-request-sent":$S},_.m(FPc,{backgroundLottieRef:T,foregroundLottieRef:S,wrapperClass:_.qe("ytSubscribeButtonViewModelAnimatedActionWrapper",(mg.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var pt;return((pt=v.animateWidth)==null?void 0:pt.call(v))&&X()},mg.ytSubscribeButtonViewModelStaticWidth=function(){var pt;
return!((pt=v.animateWidth)==null?0:pt.call(v))},mg)),
disableAnimation:q},_.m("div",{el:d,class:"ytSubscribeButtonViewModelContainer"},_.m(_.mO,{data:r,icon:function(){return _.m(_.y,{cond:As,then:function(){var pt=function(){var he;return NEH((he=Y())==null?void 0:he.state)};
return _.m(_.y,{cond:function(){return q()||pt()!=="NOTIFICATIONS_NONE"},
then:function(){return _.m(_.sG,{icon:pt})},
else:function(){return _.m(DVi,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:O})}})}})},
secondaryIconName:function(){return As()?"EXPAND":void 0}}))),_.m("div",{el:E,
class:"ytSubscribeButtonViewModelInvisible"},_.m(_.y,{cond:function(){var pt;return((pt=v.animateWidth)==null?void 0:pt.call(v))&&!q()&&!U()},
then:function(){return _.m(_.mO,{data:_.yl(function(){var pt;return sw7({model:v.data(),subscribed:Ct(),isOverlay:!((pt=v.isOverlay)==null||!pt.call(v)),element:e,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var pt;return SA()?NEH((pt=Y())==null?void 0:pt.state):void 0},
secondaryIconName:function(){return SA()?"EXPAND":void 0}})}})))},"M");
_.x1.idomCompat=!0;var UVE=_.l(function(v){var e=v.data;var d=_.Kv(ZHO,function(){return e().subscriptionStateEntityKey});
return _.m(_.y,{cond:function(){var E=e(),T=d();return!E.hideWhenUnsubscribed||(T==null?0:T.subscribed)?_.L(e().button,_.lx):void 0},
then:function(E){return _.m("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.m(_.yi,{data:E,buttonOverrides:function(){return{toggled:!0}}}))}})},"N");
UVE.idomCompat=!0;var pfE,B7;pfE=_.l(function(v){return _.m(_.kz,{data:function(){return v.actionRow().actions}},{buttonViewModel:function(e){var d=e.data;
return _.m(B7,{isRow:v.isRow,isIconOnlyButton:function(){return Mg$(d())},
useIntrinsicWidth:v.useIntrinsicWidth},_.m(_.yi,{data:d}))},
subscribeButtonViewModel:function(e){return _.m(B7,{isRow:v.isRow},_.m(_.x1,{data:e.data,isOverlay:!1,animateWidth:function(){return!v.isRow()}}))},
downloadButtonViewModel:function(e){var d=e.data;return _.m(B7,{isRow:v.isRow,isIconOnlyButton:function(){return!!d().playlistId}},_.m(Z80,{data:d}))},
submitButtonViewModel:function(e){var d=e.data;return _.m(B7,{isRow:v.isRow,isIconOnlyButton:function(){var E=d();return Mg$(_.L(E==null?void 0:E.button,_.lx))}},_.m(clB,{data:d}))},
toggleButtonViewModel:function(e){var d=e.data;return _.m(B7,{isRow:v.isRow,isIconOnlyButton:function(){var E=d();return Mg$(_.L(E.isToggled?E.toggledButtonViewModel:E.defaultButtonViewModel,_.lx))}},_.m(_.fR,{data:d}))},
subscribePlusButtonViewModel:function(e){return _.m(B7,{isRow:v.isRow},_.m(UVE,{data:e.data}))}})},"O");
B7=_.l(function(v){var e={};return _.m("div",{class:_.qe("yt-flexible-actions-view-model-wiz__action",(e["yt-flexible-actions-view-model-wiz__action--row-action"]=v.isRow,e["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=v.useIntrinsicWidth,e["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,e["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=v.isIconOnlyButton,e))},v.children)},"P");
_.CE=_.l(function(v){var e=function(){var E;return((E=v.layout)==null?void 0:E.call(v))===1},d={};
return _.m("yt-flexible-actions-view-model",{class:_.qe("yt-flexible-actions-view-model-wiz",v.className,(d["yt-flexible-actions-view-model-wiz--inline"]=function(){return!e()},d["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return v.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},d))},_.m(_.jI,{each:function(){return v.data().actionsRows||[]}},function(E){return _.m(_.y,{cond:e,
then:function(){return _.m("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.m(pfE,{actionRow:E,isRow:e,useIntrinsicWidth:function(){return!!v.data().respectActionIntrinsicWidth}}))},
else:function(){return _.m(pfE,{actionRow:E,isRow:e})}})}))},"Q");_.aZ(_.CE,"yt-flexible-actions-view-model",{props:{data:_.U1,layout:_.U1,justifyContentOverride:_.U1,className:_.U1}});_.XU=_.l(function(v){var e=_.Kv(zI,function(){var T;return(T=v.data().dislikeEntityKey)!=null?T:""}),d=_.yl(function(){var T=e();
return T?T.likeStatus==="DISLIKE":_.L(v.data().toggleButtonViewModel,_.Ay).isToggled},void 0,"B2tgKf"),E=_.yl(function(){return Object.assign({},_.L(v.data().toggleButtonViewModel,_.Ay),{isToggled:d()})},void 0,"otfIbf");
return _.m("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.m(_.fR,{data:E,buttonShapeOverrides:v.buttonShapeOverrideables,onToggle:function(T){var S=e();S&&T!==(S.likeStatus==="DISLIKE")&&S.key&&_.vz(_.M0("likeStatusEntity",S.key,{likeStatus:T?"DISLIKE":"INDIFFERENT",hadUserInteraction:T}))}}))},"R");
_.XU.idomCompat=!0;_.zT=_.l(function(v){var e=_.N("web_supports_animations_api"),d=EG(function(K){var k=q();if(!K){var J,R;return{numberText:(R=k==null?void 0:(J=k.likeCountIfIndifferent)==null?void 0:J.content)!=null?R:"",numberValue:Number(k==null?void 0:k.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var B;J=(k==null?void 0:(B=k.likeCountIfIndifferent)==null?void 0:B.content)!==K.numberText;if(b()||!J)return K;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}}),E=EG(function(K){var k=q();
if(!K){var J,R;return{numberText:(R=k==null?void 0:(J=k.likeCountIfLiked)==null?void 0:J.content)!=null?R:"",numberValue:Number(k==null?void 0:k.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var B;J=(k==null?void 0:(B=k.likeCountIfIndifferent)==null?void 0:B.content)!==K.numberText;if(b()||!J)return K;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=_.a(_.OE(void 0,
void 0,"xYSlUe")),S=T.next().value,O=T.next().value,b=S,Y=_.Kv(zI,function(){var K,k;
return(k=(K=v.data())==null?void 0:K.likeStatusEntityKey)!=null?k:""}),q=_.Kv(j1s,function(){var K,k;
return((K=v.likeCountEntity)==null?void 0:(k=K.call(v))==null?void 0:k.key)||""}),r=_.yl(function(){var K;
return((K=Y())==null?void 0:K.likeStatus)==="LIKE"},void 0,"DG5Osd"),h=function(){var K;
return e&&!((K=v.likeCountEntity)==null||!K.call(v))};
return _.m("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.m(_.fR,{data:function(){var K=Object,k=K.assign,J;var R=_.L((J=v.data())==null?void 0:J.toggleButtonViewModel,_.Ay);return k.call(K,{},R||{},{isToggled:r()})},
buttonShapeOverrides:v.buttonShapeOverrideables,animatedTextPropsDefault:function(){return h()?d():void 0},
animatedTextPropsToggled:function(){return h()?E():void 0},
onToggle:function(K){tgM(K,Y(),b(),O)},
style:function(){var K;return((K=v.disableIconAnimation)==null?0:K.call(v))?void 0:{animateIcon:"true"}}}))},"S");
_.zT.idomCompat=!0;var vAB=_.l(function(v){var e=function(){return _.L(v.data().likeButtonViewModel,_.ty)},d=function(){var T;
return((T=e())==null?void 0:T.likeStatusEntityKey)||""},E=_.yl(function(){var T,S;
var O=(S=_.Kv(zI,d)())!=null?S:(T=e())==null?void 0:T.likeStatusEntity;T=v.data();var b;T=(T==null?void 0:(b=T.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"like-dislike",timings:T,enabled:(O==null?void 0:O.likeStatus)==="INDIFFERENT"&&T.length>0,experimentEnabled:T.length>0}},void 0,"hGh9Td");
return _.m("segmented-like-dislike-button-view-model",{class:_.qe("ytSegmentedLikeDislikeButtonViewModelHost",v.className),"button-renderer":!0},_.m(Ci2,{settings:E},_.m("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.m(_.y,{cond:e,then:function(T){return _.m(_.zT,{data:T,likeCountEntity:function(){return v.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.m(_.y,{cond:function(){return _.L(v.data().dislikeButtonViewModel,_.M5)},
then:function(T){return _.m(_.XU,{data:T,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"T");
vAB.idomCompat=!0;_.aZ(vAB,"segmented-like-dislike-button-view-model",{props:{data:_.U1,className:_.U1}});var ek7=_.l(function(v){var e=v.data;var d=v.className;var E=v.setMinWidth;var T=v.forceIconOnly;var S=_.nI("account-link-button-view-model"),O=_.Kv(_.f5L,function(){var K;return(K=e().accountLinkStatusEntityKey)!=null?K:""}),b=_.Kv(_.f5L,function(){var K;
return(K=e().accountLinkStatusSecondaryEntityKey)!=null?K:""}),Y=function(){if(!_.N("web_account_link_secondary_killswitch")){var K,k;
return((K=O())==null?void 0:K.linked)||((k=b())==null?void 0:k.linked)}var J;return(J=O())==null?void 0:J.linked};
_.o_(function(){var K=O();if(K){var k=EZB(new d6n,vZu(new p6u,!!K.linked));_.Yz().then(function(J){J&&(J.setAccountLinkState(_.GQ(k.JSC$12149_serializeBinary(),4)),J.updateAccountLinkingConfig(!!K.linked))})}},"b9pSsf");
var q=function(){return _.L(e().toggleButtonViewModel,_.Ay)};
_.ul("yt-signal-action-show-account-link-dialog",function(){if(q()){var K=Y()?q().toggledButtonViewModel:q().defaultButtonViewModel;K=_.L(K,_.lx);var k;if((k=O())==null?0:k.isWarning){k=_.L(e().warningButtonViewModel,_.lx);if(!k){_.ZV(Error("Ch"));return}K=k}var J;(k=_.lk((J=K)==null?void 0:J.onTap))&&_.hU([k],S.value)}else _.ZV(Error("Dh"))});
var r=function(){var K=q();return Object.assign({},K,{isToggled:Y()})},h=function(){return(T==null?0:T())?{iconPosition:"icon-only"}:{}};
return _.m("account-link-button-view-model",{class:_.qe("ytwAccountLinkButtonViewModelHost",d,function(){return(E==null?0:E())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:S,"button-renderer":!0},_.m("div",null,_.m(_.y,{cond:function(){var K;if((K=O())==null?0:K.isWarning)return(K=_.L(e().warningButtonViewModel,_.lx))||_.ZV(Error("Ch")),K},
then:function(K){return _.m(_.yi,{data:K,buttonOverrides:h})},
else:function(){return _.m(_.fR,{data:r,buttonShapeOverrides:h})}})))},"U");_.aZ(ek7,"account-link-button-view-model",{props:{data:_.U1,className:_.SM,setMinWidth:_.SM,forceIconOnly:_.SM}});_.RZ("menuRenderer","menuRenderer","ytd-menu-renderer");
var dWu={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"}},
EAE=_.N("web_fix_missing_action_buttons")?100:200,lO=function(){var v=_.P.apply(this,arguments)||this;v.safeArea=!_.N("kevlar_flex_menu_safe_area_killswitch");v.tonalOverride=!1;v.threeDotSize="M";v.isOverlay=!1;v.useOverlayDark=!1;v.topLevelIconsOnly=!1;v.JSC$14622_lastWidth=0;v.maybeUpdateFlexibleMenu=function(){_.N("web_fix_missing_action_buttons")?requestAnimationFrame(v.maybeUpdateFlexibleMenuImpl):v.maybeUpdateFlexibleMenuImpl()};
v.maybeUpdateFlexibleMenuImpl=function(){var e;if((e=v.data)!=null&&e.flexibleItems){v.maybeFlushDebouncer();e=v.hostElement.clientWidth;var d=e>v.JSC$14622_lastWidth,E,T=((E=v.topLevelButtonsContainer)==null?void 0:E.scrollHeight)||0,S;E=((S=v.flexibleItemButtonsContainer)==null?void 0:S.scrollHeight)||0;S=v.hostElement.scrollHeight>Math.max(T,E)+8;d?(v.resetFlexibleItems(),v.JSC$14622_lastWidth=v.hostElement.clientWidth,v.maybeUpdateFlexibleMenu()):S&&(v.shrinkFlexibleMenu(),v.JSC$14622_lastWidth=
e)}};
v.computeThreeDotButtonShape=function(){if(v.tonalOverride)return Object.assign({},{onTap:function(){v.onOverflowTap()},
iconPosition:"icon-only",style:v.isOverlay?v.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:v.threeDotSize,state:"active",accessibilityLabel:v.computeAccessibilityLabel(v.data)},v.threeDotButtonOverride)};
v.onOverflowTap=function(){if(v.data.fetchMenuCommand)_.dk().resolve(_.EI).resolveCommand(v.data.fetchMenuCommand,{form:{element:v.hostElement}});else if(v.data.isDisabled&&v.data.disabledCommand)_.K1(v.data.disabledCommand,v.hostElement);else{var e=v.createMenuRendererVe(),d={items:v.items};v.data.menuPopupAccessibility&&(d.menuPopupAccessibility=v.data.menuPopupAccessibility);v.data.footer&&(d.footer=v.data.footer);e={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:d},veData:e}};
_.dk().resolve(_.fE).openSheet({openPopupActionCommand:e},v.hostElement)}};
return v};
_.V(lO,_.P);_.W=lO.prototype;_.W.updateButtonOverrides=function(){if(!_.N("menu_renderer_label_update_upkillswitch")){var v=_.IB(this.hostElement).querySelector("yt-button-view-model");v&&(v.buttonOverrides=this.buttonOverrides)}};
_.W.computeHasItems=function(){var v;return((v=this.topLevelButtonData)==null?void 0:v.length)||this.hasFlexibleItems};
_.W.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.W.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.qr(this.hostElement,{"--ytd-menu-renderer-button-color":_.cv(this.data.iconColor)}))};
_.W.onStamperFinished=function(){this.JSC$14622_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.W.setupFlexibleMenu=function(){var v=this,e;(e=this.data)!=null&&e.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.wB(this.maybeUpdateFlexibleMenu,EAE,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){v.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))};
_.W.maybeFlushDebouncer=function(){if(_.N("web_replace_formatted_with_attributed_string")){var v;(v=this.topLevelButtons)==null||v.forEach(function(d){var E;(d=(E=d.getElementsByTagName("yt-attributed-string"))==null?void 0:E[0])&&AO$(d)});
var e;(e=this.flexibleItemButtons)==null||e.forEach(function(d){var E;(d=(E=d.getElementsByTagName("yt-attributed-string"))==null?void 0:E[0])&&AO$(d)})}};
_.W.resetFlexibleItems=function(){var v;if((v=this.data)!=null&&v.flexibleItems){_.N("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var e;this.flexAsTopLevelButtons=(e=this.data.flexibleItems)==null?void 0:e.map(function(d){return _.L(d,_.RM2).topLevelButton});
_.N("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.W.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.W.shrinkFlexibleMenu=function(){var v;(v=this.flexAsTopLevelButtons)!=null&&v.length&&(this.flexAsTopLevelButtons=[].concat(_.t7(this.flexAsTopLevelButtons.slice(0,-1))))};
_.W.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:dWu,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:dWu,events:!0}}};
_.W.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.W.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.W.detached=function(){this.icon="MORE_VERT"};
_.W.computeTopLevelButtonData=function(v){if(!v)return[];var e;v=(e=v==null?void 0:v.topLevelButtons)!=null?e:[];return _.f0.unsafeClone([].concat(_.t7(v)))};
_.W.computeItems=function(v,e){if(!v)return[];var d=[];if(e){var E=(v.flexibleItems||[]).map(function(O){return _.L(O,_.RM2)});
E=_.a(E);for(var T=E.next();!T.done;T=E.next())T=T.value,e.includes(T.topLevelButton)||(T=T.menuItem)&&d.push(T)}var S;v=(S=v==null?void 0:v.items)!=null?S:[];return[].concat(_.t7(d),_.t7(v))};
_.W.computeMenuActive=function(v,e){return v||e};
_.W.onPopupOpened=function(){this.overlayOpen=!0;_.Iq(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.W.onPopupClosed=function(){this.overlayOpen=!1;_.Iq(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.W.onPopupCanceled=function(){this.overlayOpen=!1;_.Iq(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.W.computeAccessibilityLabel=function(v){return this.get("accessibility.accessibilityData.label",v)};
_.W.isHidden=function(v,e){return this.tonalOverride||!v?!0:v.fetchMenuCommand||v.isDisabled&&v.disabledCommand?!1:!(e==null?0:e.length)};
_.W.isModernOverflowHidden=function(v,e){return this.tonalOverride&&v?v.fetchMenuCommand?!1:!(e==null?0:e.length):!0};
_.W.createMenuRendererVe=function(){var v=this.data.trackingParams,e=_.zz(),d=_.Xf();return v&&e&&d?(v=_.Jg(v),d=_.bH(7591),_.N("combine_ve_grafts")?_.bj(_.NC(),d,v):_.Qa(e,v,d),d):null};
_.vP.Object.defineProperties(lO.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.flexAsTopLevelButtons)==null||!v.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
lO.prototype.onPopupCanceled=lO.prototype.onPopupCanceled;lO.prototype.onPopupClosed=lO.prototype.onPopupClosed;lO.prototype.onPopupOpened=lO.prototype.onPopupOpened;lO.prototype.tonalOverrideChanged=lO.prototype.tonalOverrideChanged;lO.prototype.resetFlexibleItems=lO.prototype.resetFlexibleItems;lO.prototype.setupFlexibleMenu=lO.prototype.setupFlexibleMenu;lO.prototype.iconButtonColorChanged=lO.prototype.iconButtonColorChanged;lO.prototype.updateButtonOverrides=lO.prototype.updateButtonOverrides;
_.c([_.M(_.dK),_.w("design:type",Object)],lO.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.sg("#button-shape"),_.w("design:type",HTMLElement)],lO.prototype,"buttonShape",void 0);_.c([_.sg("#button"),_.w("design:type",Object)],lO.prototype,"button",void 0);
_.c([_.f(),_.w("design:type",Object)],lO.prototype,"data",void 0);_.c([_.f({computed:"computeTopLevelButtonData(data)"}),_.w("design:type",Array)],lO.prototype,"topLevelButtonData",void 0);_.c([_.f(),_.w("design:type",Array)],lO.prototype,"flexAsTopLevelButtons",void 0);_.c([_.f({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.w("design:type",Array)],lO.prototype,"items",void 0);_.c([_.f({value:"MORE_VERT"}),_.w("design:type",String)],lO.prototype,"icon",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],lO.prototype,"safeArea",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.w("design:type",Boolean)],lO.prototype,"menuActive",void 0);_.c([_.f(),_.w("design:type",Boolean)],lO.prototype,"menuFocused",void 0);_.c([_.f({value:"bottom"}),_.w("design:type",String)],lO.prototype,"buttonTooltipPosition",void 0);_.c([_.f(),_.w("design:type",Boolean)],lO.prototype,"overlayOpen",void 0);
_.c([_.f({value:!0}),_.w("design:type",Boolean)],lO.prototype,"forceIconButton",void 0);_.c([_.f(),_.w("design:type",Boolean)],lO.prototype,"styleActionButton",void 0);_.c([_.f(),_.w("design:type",Boolean)],lO.prototype,"disableTextTransformOnButtons",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],lO.prototype,"tonalOverride",void 0);_.c([_.f(),_.w("design:type",Object)],lO.prototype,"threeDotSize",void 0);
_.c([_.f(),_.w("design:type",Object)],lO.prototype,"threeDotButtonOverride",void 0);_.c([_.f(),_.w("design:type",Object)],lO.prototype,"isOverlay",void 0);_.c([_.f(),_.w("design:type",Object)],lO.prototype,"useOverlayDark",void 0);_.c([_.f({computed:"computeButtonOverride(tonalOverride)"}),_.w("design:type",Object)],lO.prototype,"buttonOverride",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],lO.prototype,"hasCustomIconColor",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("flexAsTopLevelButtons"),_.w("design:type",Object),_.w("design:paramtypes",[])],lO.prototype,"hasFlexibleItems",null);_.c([_.f({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.w("design:type",Boolean)],lO.prototype,"hasItems",void 0);_.c([_.f(),_.w("design:type",Object)],lO.prototype,"topLevelIconsOnly",void 0);
_.c([_.$v("topLevelIconsOnly"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lO.prototype,"updateButtonOverrides",null);_.c([_.t("topLevelIconsOnly"),_.w("design:type",Object),_.w("design:paramtypes",[])],lO.prototype,"buttonOverrides",null);_.c([_.sg("#top-level-buttons-computed"),_.w("design:type",HTMLElement)],lO.prototype,"topLevelButtonsContainer",void 0);_.c([_.Nr(".top-level-buttons > *"),_.w("design:type",Array)],lO.prototype,"topLevelButtons",void 0);
_.c([_.sg("#flexible-item-buttons"),_.w("design:type",HTMLElement)],lO.prototype,"flexibleItemButtonsContainer",void 0);_.c([_.Nr("#flexible-item-buttons > *"),_.w("design:type",Array)],lO.prototype,"flexibleItemButtons",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lO.prototype,"iconButtonColorChanged",null);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lO.prototype,"setupFlexibleMenu",null);_.c([_.V1("topLevelIconsOnly"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lO.prototype,"resetFlexibleItems",null);_.c([_.$v("tonalOverride"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lO.prototype,"tonalOverrideChanged",null);
_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lO.prototype,"onPopupOpened",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lO.prototype,"onPopupClosed",null);_.c([_.Kq("yt-popup-canceled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lO.prototype,"onPopupCanceled",null);
_.A(lO,"ytd-menu-renderer",function(){if(NlJ===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);NlJ=v}v=NlJ;return v},{mode:2});var TEI;var SHi;_.H7=_.l(function(v){var e=v.data;var d=function(){if(e().icon)a:{var E={iconName:e().icon};for(var T=_.dk().resolve(_.rC),S=_.a([12,24]),O=S.next();!O.done;O=S.next()){var b=O.value;O=Object.assign({},E,{iconStyle:"youtube_fill",iconSize:b});b=Object.assign({},E,{iconStyle:"youtube_outline",iconSize:b});if(T.resolveIcon(O)){E=O;break a}if(T.resolveIcon(b)){E=b;break a}}E=void 0}else E=void 0;return E};
v={};return _.m("badge-shape",{class:_.qe("badge-shape-wiz",function(){return XR0(e().type)},(v["badge-shape-wiz--overlay"]=function(){return e().isOverlay},v["badge-shape-wiz--ads-include-dot"]=function(){return e().adsIncludeDot},v["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(e().type){case 17:case 18:case 19:var E=!0;
break a;default:E=!1}return E},v["badge-shape-wiz--status-badge"]=function(){a:switch(e().type){case 12:case 13:case 14:case 15:case 16:var E=!0;
break a;default:E=!1}return E},v["badge-shape-wiz--no-text"]=function(){return!e().text},v["badge-shape-wiz--modern"]=function(){return e().modern||_.N("web_modern_badge_shape")},v)),
style:_.jM({"background-color":function(){var E;return(E=e().customColors)==null?void 0:E.backgroundColor}}),
role:function(){return e().accessibilityText?"img":void 0},
"aria-label":function(){return e().accessibilityText}},_.m(_.y,{cond:function(){return e().animation},
then:function(E){return _.m(_.jZ,{className:"badge-shape-wiz__icon",data:E,animationName:function(){return E().animationConfig.name||""}})}}),_.m(_.y,{cond:function(){var E;
return d()&&!((E=e())==null?0:E.animation)},
then:function(){return _.m("div",{class:"badge-shape-wiz__icon"},_.m(EPU,{data:function(){return d()}}))}}),_.m("div",{class:"badge-shape-wiz__text"},function(){var E;
return(E=e())==null?void 0:E.text}))},"V");
_.H7.idomCompat=!0;_.aZ(_.H7,"badge-shape",{props:{data:_.U1}});var Ax=function(){var v=_.P.apply(this,arguments)||this;v.systemIcons=_.N("kevlar_system_icons");v.animated=_.N("animated_live_badge_icon");v.useBadgeShape=_.N("web_badge_shape_defrag");return v};
_.V(Ax,_.P);_.W=Ax.prototype;_.W.addTooltips=function(){for(var v=_.IB(this.hostElement).querySelectorAll(".badge"),e=0,d;d=v[e++];){var E=this.repeatElement.itemForElement(d);d=_.IB(d);d.lastChild&&d.lastChild.is==="tp-yt-paper-tooltip"&&d.removeChild(d.lastChild);if(E=E.metadataBadgeRenderer&&E.metadataBadgeRenderer.tooltip){var T=_.TX("tp-yt-paper-tooltip");(0,_.y1)(T).textContent=E;T.setAttribute("position","top");T.setAttribute("aria-hidden","true");d.appendChild(T)}}};
_.W.badgesChanged=function(){var v=this;_.HH().parkOrScheduleJob(function(){v.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.W.standaloneRoundedBadgeChanged=function(){var v=this.useRoundedBadge?this.useRoundedBadge:void 0;v&&(this.useRoundedBadge=v)};
_.W.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.W.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.W.computeStyle=function(v){_.N("enable_html5_teal_ad_badge")&&v==="BADGE_STYLE_TYPE_AD"&&(v="badge-style-type-ad-alternate");_.N("kevlar_ytb_live_badges")&&v==="BADGE_STYLE_TYPE_LIVE_NOW"&&(v="badge-style-type-live-now-alternate");return v?v.toLowerCase().replace(/_/g,"-"):""};
_.W.computeRole=function(v){return this.computeAriaLabel(v)?"img":"status"};
_.W.computeAriaLabel=function(v){var e;return(v==null?void 0:(e=v.accessibilityData)==null?void 0:e.label)||(v==null?void 0:v.label)};
_.W.computeBadgeShape=function(v){if(v){var e,d;var E=BEO(v.style);var T=CC$(v.style),S=v.label,O=((e=v.accessibilityData)==null?void 0:e.label)||v.label;a:switch(v.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":e=!0;break a;default:e=!1}var b=(d=v.icon)==null?void 0:d.iconType;a:switch(v.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":v=!0;break a;default:v=!1}E={type:E,brNzRatingBadgeType:T,text:S,accessibilityText:O,
isOverlay:e,icon:b!=="PREMIUM"?b:void 0,modern:_.N("web_modern_badge_view_model"),adsIncludeDot:v}}else E={};return E};
_.W.updateComputedBadges=function(v,e,d){var E=this;(e=e?[e]:d?[d]:void 0)?this.computedBadges=e:this.computedBadges=v==null?void 0:v.filter(function(T){var S;if((S=T.metadataBadgeRenderer)==null?0:S.groups){S=!1;T=_.a(T.metadataBadgeRenderer.groups);for(var O=T.next();!O.done;O=T.next()){O=O.value;var b=void 0;S=S||((b=E.hiddenBadgeGroups)==null?void 0:b.includes(O))}return!S}return!0})};
_.W.useFilledIcons=function(v){return _.N("kevlar_system_icons")&&(v==="AUDIO_BADGE"||v==="CHECK_CIRCLE_THICK"||v==="OFFICIAL_ARTIST_BADGE"||v==="SPONSORSHIP_STAR"||v==="PERSON_RADAR_FILLED"||v==="PERSON_RADAR")};
_.W.computeBadgeShapeStyle=function(v){return this.useBadgeShape?v==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||v==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.W.computeIcon=function(v){var e,d;v=v==null?void 0:(e=v.metadataBadgeRenderer)==null?void 0:(d=e.icon)==null?void 0:d.iconType;if(v!=="PREMIUM"&&v)return _.qC(v)};
_.W.computeStandaloneBadge=function(v){var e;v=v==null?void 0:(e=v.icon)==null?void 0:e.iconType;return v==="PREMIUM_STANDALONE"||v==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Ax.prototype.hiddenBadgeGroupsChanged=Ax.prototype.hiddenBadgeGroupsChanged;Ax.prototype.standaloneBadgeChanged=Ax.prototype.standaloneBadgeChanged;Ax.prototype.standaloneRoundedBadgeChanged=Ax.prototype.standaloneRoundedBadgeChanged;Ax.prototype.badgesChanged=Ax.prototype.badgesChanged;_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ax.prototype,"hidden",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Ax.prototype,"componentBehavior",void 0);
_.c([_.f(),_.w("design:type",Array)],Ax.prototype,"badges",void 0);_.c([_.f(),_.w("design:type",Object)],Ax.prototype,"topStandaloneBadge",void 0);_.c([_.f(),_.w("design:type",Object)],Ax.prototype,"bottomStandaloneBadge",void 0);_.c([_.f(),_.w("design:type",Object)],Ax.prototype,"computedBadges",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ax.prototype,"mediumFontAdBadge",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ax.prototype,"useRoundedBadge",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ax.prototype,"largeFontAdBadge",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ax.prototype,"overlayAd",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ax.prototype,"overlayPremium",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ax.prototype,"noDotAdBadge",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ax.prototype,"collectionTruncate",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ax.prototype,"isThumbnailBadge",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ax.prototype,"wrapBadges",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ax.prototype,"systemIcons",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ax.prototype,"animated",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ax.prototype,"useBadgeShape",void 0);_.c([_.f({value:[]}),_.w("design:type",Array)],Ax.prototype,"hiddenBadgeGroups",void 0);_.c([_.sg("#repeat"),_.w("design:type",Bg)],Ax.prototype,"repeatElement",void 0);_.c([_.V1("badges"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ax.prototype,"badgesChanged",null);
_.c([_.V1("useRoundedBadge"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ax.prototype,"standaloneRoundedBadgeChanged",null);_.c([_.V1("topStandaloneBadge","bottomStandaloneBadge"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ax.prototype,"standaloneBadgeChanged",null);_.c([_.V1("hiddenBadgeGroups"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ax.prototype,"hiddenBadgeGroupsChanged",null);
_.c([_.z({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Ax);
var Wtn=_.I5()(Ax,"ytd-badge-supported-renderer",function(){if(SHi===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);SHi=v}v=SHi;return v},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.bk("kevlar_poly_si_batch_j053")?1:2});var Zd=function(){var v=_.P.apply(this,arguments)||this;v.iconType="STAR";v.standardizeIconSize=_.N("kevlar_system_icons");v.mediaHoverOverlayInitialVisibility=_.N("enable_top_landscape_image_button_command_web");v.noBottomMargin=!1;v.thumbnailObjectFit="CONTAIN";v.thumbnailFitHeight=!0;v.actionMap={"yt-mute-ad-action":"handleMuteAd"};return v};
_.V(Zd,_.P);_.W=Zd.prototype;
_.W.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"}}}};
_.W.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",Zd.JSC$14634_DEFAULT_CLICK_LOCATION_BEHAVIOR,Zd.JSC$14634_CLICK_LOCATION_ID_MAP))};
_.W.onTap=function(v){if(!_.N("use_on_click_for_desktop_display_ad"))this.onTapOrClick(v)};
_.W.onClick=function(v){if(_.N("use_on_click_for_desktop_display_ad"))this.onTapOrClick(v)};
_.W.onTapOrClick=function(v){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,v,!1)};
_.W.updateMediaBackgroundImage=function(){var v=this.get("data.image.thumbnail.thumbnails");v&&(v=_.i2(v,0))&&_.qr(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+v+")"})};
_.W.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var v=0;v<this.data.impressionEndpoints.length;v++){var e=this.data.impressionEndpoints[v];e.clickTrackingParams&&delete e.clickTrackingParams;_.dk().resolve(_.EI).resolveCommand(e,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var d;((d=this.data)==null?0:d.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.W.handleMuteAd=function(){};
_.W.attached=function(){var v=this;_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.W.detached=function(){_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vP.Object.defineProperties(Zd.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.titleText)return"";var e;return _.sz("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((e=this.data)==null?void 0:e.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.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 v;return!((v=this.data)==null||!v.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"}}});
Zd.prototype.onClick=Zd.prototype.onClick;Zd.prototype.onTap=Zd.prototype.onTap;Zd.prototype.dataChanged=Zd.prototype.dataChanged;
Zd.JSC$14634_CLICK_LOCATION_ID_MAP=_.N("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"]]);
Zd.JSC$14634_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.N("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.Au),_.w("design:type",Object)],Zd.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Zd.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.aj.YtSparklesClickLocationBehavior),_.w("design:type",Object)],Zd.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.M(zu),_.w("design:type",Object)],Zd.prototype,"ytdActiveViewBehavior",void 0);_.c([_.M([_.$M.YtActionHandlerBehavior]),_.w("design:type",Object)],Zd.prototype,"actionHandlerBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Zd.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Zd.prototype,"clickCommand",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],Zd.prototype,"miniMode",void 0);_.c([_.f(),_.w("design:type",String)],Zd.prototype,"iconType",void 0);_.c([_.t("data.titleText"),_.w("design:type",String),_.w("design:paramtypes",[])],Zd.prototype,"titleAriaLabel",null);
_.c([_.t("data.rating"),_.w("design:type",Object),_.w("design:paramtypes",[])],Zd.prototype,"getRating",null);_.c([_.t("data.price"),_.w("design:type",Object),_.w("design:paramtypes",[])],Zd.prototype,"getPrice",null);_.c([_.t("data.thirdLine"),_.w("design:type",Object),_.w("design:paramtypes",[])],Zd.prototype,"getThirdLine",null);_.c([_.t("data.fourthLine"),_.w("design:type",Object),_.w("design:paramtypes",[])],Zd.prototype,"getFourthLine",null);
_.c([_.t("data.fifthLine"),_.w("design:type",Object),_.w("design:paramtypes",[])],Zd.prototype,"getFifthLine",null);_.c([_.t("getRating"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zd.prototype,"computeRatingHidden",null);_.c([_.t("getPrice"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zd.prototype,"computePriceHidden",null);_.c([_.t("getThirdLine"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zd.prototype,"computeThirdLineHidden",null);
_.c([_.t("getFourthLine"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zd.prototype,"computeFourthLineHidden",null);_.c([_.t("getFifthLine"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zd.prototype,"computeFifthLineHidden",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.energyIcon"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zd.prototype,"hasEnergyIcon",null);
_.c([_.t("computePriceHidden","computeRatingHidden"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zd.prototype,"computeSecondaryTextHidden",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Zd.prototype,"standardizeIconSize",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Zd.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Zd.prototype,"noBottomMargin",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data.layout"),_.w("design:type",String),_.w("design:paramtypes",[])],Zd.prototype,"layout",null);_.c([_.t("data.layout"),_.w("design:type",Object),_.w("design:paramtypes",[])],Zd.prototype,"mediaThumbnailWidth",null);_.c([_.t("layout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zd.prototype,"useRoundedBadge",null);_.c([_.f(),_.w("design:type",String)],Zd.prototype,"thumbnailObjectFit",void 0);
_.c([_.f(),_.w("design:type",Object)],Zd.prototype,"thumbnailFitHeight",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Zd.prototype,"dataChanged",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Zd.prototype,"onTap",null);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Zd.prototype,"onClick",null);
_.c([_.z({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Zd);
_.A(Zd,"ytd-display-ad-renderer",function(){if(TEI!==void 0)return TEI;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return TEI=v},{mode:1});var a5n;var ixn;var Ox2;var zkW=new Map;var I5I=!1;var c7=function(){var v=_.P.apply(this,arguments)||this;v.DEFAULT_TOOLTIP_OFFSET="10";v.TOOLTIP_OFFSET_NO_BANNER="-8";v.badges=null;v.noEndpoints=!1;v.wrapText=!1;v.forceVerified=!1;v.tooltipPosition="top";v.compactStyle=!1;v.height=0;v.lineHeight=0;return v};
_.V(c7,_.P);_.W=c7.prototype;_.W.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.W.attached=function(){var v=this;this.observer=new MutationObserver(function(e,d){v.handleResized();d.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.W.detached=function(){this.observer&&this.observer.disconnect()};
_.W.logTooltipEvent=function(){_.N("kevlar_wiz_tooltip_event_killswitch")||I5I||(_.l5W("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),I5I=!0)};
_.W.handleWindowResized=function(){this.handleResized()};
_.W.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")))};
_.W.onHeightChanged=function(){if(this.verified){var v=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Bb("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=v:this.textContainerEl.style.marginRight=v}};
_.W.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Bb("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.W.handleResized=function(){var v=this;this.verified&&_.RM.addLowPriorityJob(function(){v.fitBackgroundToText();var e=getComputedStyle(v.hostElement).lineHeight;e&&(e=e.match(/\d+/))&&e.length&&(v.lineHeight=Number(e[0]));v.height=v.lineHeight&&!v.wrapText?v.lineHeight:v.textEl.offsetHeight})};
_.W.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var v=document.createRange(),e=_.IB(this.textEl).children;e.length>0?v.selectNodeContents(e[0]):v.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(v.getBoundingClientRect().width)+"px"}};
_.W.computeChannelBadgeStyle=function(v){var e;if((v==null?0:(e=v.runs)==null?0:e.length)&&v.runs[0].textColor)return"--ytd-badge-icon-color:"+_.cv(v.runs[0].textColor)+";"};
_.vP.Object.defineProperties(c7.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"?_.pQ(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var v=this.get("badges.0.metadataBadgeRenderer.tooltip");if(v)return v}return _.vv(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
c7.prototype.onLineHeightChanged=c7.prototype.onLineHeightChanged;c7.prototype.onHeightChanged=c7.prototype.onHeightChanged;c7.prototype.onChannelNameChanged=c7.prototype.onChannelNameChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],c7.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],c7.prototype,"badges",void 0);_.c([_.f(),_.w("design:type",Object)],c7.prototype,"channelName",void 0);
_.c([_.f(),_.w("design:type",Object)],c7.prototype,"noEndpoints",void 0);_.c([_.f(),_.w("design:type",Object)],c7.prototype,"wrapText",void 0);_.c([_.f(),_.w("design:type",Object)],c7.prototype,"forceVerified",void 0);_.c([_.f(),_.w("design:type",Object)],c7.prototype,"tooltipPosition",void 0);_.c([_.f(),_.w("design:type",String)],c7.prototype,"tooltip",void 0);_.c([_.f(),_.w("design:type",Boolean)],c7.prototype,"hasChannelArt",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],c7.prototype,"compactStyle",void 0);_.c([_.sg("#text-container"),_.w("design:type",HTMLElement)],c7.prototype,"textContainerEl",void 0);_.c([_.sg("#text"),_.w("design:type",Object)],c7.prototype,"textEl",void 0);_.c([_.sg("#verified-tooltip"),_.w("design:type",HTMLElement)],c7.prototype,"verifiedTooltip",void 0);_.c([_.f(),_.w("design:type",Object)],c7.prototype,"height",void 0);
_.c([_.f(),_.w("design:type",Object)],c7.prototype,"lineHeight",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("badges","forceVerified"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],c7.prototype,"verified",null);_.c([_.t("badges","verified"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],c7.prototype,"hideBadges",null);_.c([_.t("channelName"),_.w("design:type",Object),_.w("design:paramtypes",[])],c7.prototype,"formattedName",null);
_.c([_.t("badges","verified","formattedName"),_.w("design:type",String),_.w("design:paramtypes",[])],c7.prototype,"tooltipText",null);_.c([_.t("hasChannelArt"),_.w("design:type",String),_.w("design:paramtypes",[])],c7.prototype,"tooltipOffset",null);_.c([_.$v("channelName"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],c7.prototype,"onChannelNameChanged",null);
_.c([_.$v("height"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],c7.prototype,"onHeightChanged",null);_.c([_.$v("lineHeight","height"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],c7.prototype,"onLineHeightChanged",null);_.c([_.z({is:"ytd-channel-name",disableElementRegistration:!0})],c7);
_.A(c7,"ytd-channel-name",function(){if(Ox2!==void 0)return Ox2;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Ox2=v},{mode:_.bk("kevlar_poly_si_batch_j036")?1:2});var wY=function(){var v=_.P.apply(this,arguments)||this;v.standardizeIconSize=_.N("kevlar_system_icons");return v};
_.V(wY,_.P);wY.prototype.basicPaletteChanged=function(){var v;(v=this.data.color)!=null&&v.basicColorPaletteData&&_.t8(this.hostElement,this.data.color.basicColorPaletteData)};
wY.prototype.useFilledIcons=function(v){return _.N("kevlar_system_icons")&&(v==="CHECK_CIRCLE_THICK"||v==="OFFICIAL_ARTIST_BADGE")};
_.vP.Object.defineProperties(wY.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return this.data.authorCreator||((v=this.data)==null?void 0:(e=v.color)==null?void 0:(d=e.basicColorPaletteData)==null?void 0:d.backgroundColor)}}});
wY.prototype.basicPaletteChanged=wY.prototype.basicPaletteChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wY.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],wY.prototype,"standardizeIconSize",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data.authorUnifiedVerified"),_.w("design:type",Object),_.w("design:paramtypes",[])],wY.prototype,"verified",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],wY.prototype,"creator",null);_.c([_.$v("data.color.basicColorPaletteData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wY.prototype,"basicPaletteChanged",null);_.c([_.z({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],wY);
_.A(wY,"ytd-author-comment-badge-renderer",function(){if(ixn!==void 0)return ixn;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ixn=v},{mode:1});var bxg;var FU=function(){return _.P.apply(this,arguments)||this};
_.V(FU,_.P);FU.prototype.computeThumbnailWidth=function(v){if(v==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],FU.prototype,"data",void 0);_.c([_.f({computed:"computeIcon_(data.icon)"}),_.w("design:type",String)],FU.prototype,"icon",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],FU.prototype,"surface",void 0);
_.c([_.f({reflectToAttribute:!0,value:_.N("enable_shrink_image_size_on_web_posts_singleton")}),_.w("design:type",Boolean)],FU.prototype,"searchSxsUx",void 0);_.c([_.z({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],FU);
_.A(FU,"ytd-backstage-image-renderer",function(){if(bxg!==void 0)return bxg;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return bxg=v},{mode:1});var YHi;var Qc=function(){var v=_.P.apply(this,arguments)||this;v.isLoading=!1;v.selectedItemIndex=-1;return v};
_.V(Qc,_.P);_.W=Qc.prototype;_.W.computeIsChannelOwner=function(v){if(!v)return!0;v=v[0];return!(v&&(v.signinEndpoint||v.selectServiceEndpoint))};
_.W.computeIsImagePoll=function(v){return(v==null?void 0:v.type)==="POLL_TYPE_IMAGE"};
_.W.computeIsTotalVotesDisabled=function(v){return!(v==null?0:v.totalVotes)};
_.W.thumbnailSrc=function(v){var e,d,E,T;return(v==null?0:(e=v.thumbnails)==null?0:(d=e[0])==null?0:d.url)?_.xm((E=v.thumbnails)==null?void 0:(T=E[0])==null?void 0:T.url):void 0};
_.W.progressWidth=function(v){return"width:"+(v?v*100:0)+"%;"};
_.W.textAreaWidth=function(v){return this.isImagePoll?null:"width:"+(v?v*100:0)+"%;"};
_.W.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.W.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var v=this.data.choices,e=0;e<v.length;e++)if(v[e].selected){this.selectedItemIndex=e;break}};
_.W.onPopupClosed=function(v,e){v=Number(this.pollVotes.selected);e.confirmed&&(this.selectChoice(v,!1),_.b4(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.W.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.W.onYtCommentPollRevert=function(v,e){e&&(this.selectChoice(e.selectedChoiceIndex,!0),this.set("data.totalVotes",e.totalVotes))};
_.W.onYtServiceRequestSent=function(v,e){if(e.actions)for(v=0;v<e.actions.length;v++){var d=e.actions[v];_.L(d,kw)&&this.set("data.totalVotes",_.L(d,kw).totalVotes)}};
_.W.onYtServiceRequestCompleted=function(v){var e=this.get("detail.data.actionResults.0.feedback",v);v=this.get("detail.data.actionResults.0.status",v);if(e==="FEEDBACK_DESELECT"||e==="FEEDBACK_SELECT")this.isLoading=!1,v==="STATUS_FAILED"?_.Iq(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.W.getEndpoint=function(v,e){return e===v?this.data.choices[e].deselectServiceEndpoint||null:this.data.choices[v].selectServiceEndpoint||null};
_.W.selectChoice=function(v,e){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var d=0;d<this.data.choices.length;d++){var E;if(v===this.selectedItemIndex){var T=!1;var S=E=null}else E=(T=d===v)?this.data.choices[d].voteRatioIfSelected:this.data.choices[d].voteRatioIfNotSelected,S=T?this.data.choices[d].votePercentageIfSelected:this.data.choices[d].votePercentageIfNotSelected;this.set("data.choices."+d+".voteRatio",E);
this.set("data.choices."+d+".votePercentage",S);this.set("data.choices."+d+".selected",T)}e||(this.isLoading=!0,(e=this.getEndpoint(v,this.selectedItemIndex))&&_.dk().resolve(_.EI).resolveCommand(e,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===v?-1:v};
_.vP.Object.defineProperties(Qc.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Qc.prototype.onYtServiceRequestCompleted=Qc.prototype.onYtServiceRequestCompleted;Qc.prototype.onYtServiceRequestSent=Qc.prototype.onYtServiceRequestSent;Qc.prototype.onYtCommentPollRevert=Qc.prototype.onYtCommentPollRevert;Qc.prototype.onPopupClosed=Qc.prototype.onPopupClosed;Qc.prototype.dataChanged=Qc.prototype.dataChanged;_.c([_.M(_.ws),_.w("design:type",Object)],Qc.prototype,"paperItemBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],Qc.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Qc.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Qc.prototype,"isLoading",void 0);_.c([_.f({computed:"computeIsChannelOwner(data.choices)"}),_.w("design:type",Boolean)],Qc.prototype,"isChannelOwner",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.w("design:type",Boolean)],Qc.prototype,"isImagePoll",void 0);_.c([_.f({computed:"computeIsTotalVotesDisabled(data)"}),_.w("design:type",Boolean)],Qc.prototype,"isTotalVotesDisabled",void 0);_.c([_.f(),_.w("design:type",Object)],Qc.prototype,"previousPollInfo",void 0);_.c([_.f(),_.w("design:type",Object)],Qc.prototype,"selectedItemIndex",void 0);_.c([_.sg("#poll-votes"),_.w("design:type",Object)],Qc.prototype,"pollVotes",void 0);
_.c([_.t("isChannelOwner"),_.w("design:type",Object),_.w("design:paramtypes",[])],Qc.prototype,"endpointStyle",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qc.prototype,"dataChanged",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],Qc.prototype,"onPopupClosed",null);
_.c([_.Kq("yt-comment-poll-revert"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],Qc.prototype,"onYtCommentPollRevert",null);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],Qc.prototype,"onYtServiceRequestSent",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Qc.prototype,"onYtServiceRequestCompleted",null);_.c([_.z({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Qc);
_.A(Qc,"ytd-backstage-poll-renderer",function(){if(YHi!==void 0)return YHi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return YHi=v},{mode:2});var mWB;var y6c={autoplay:!1,loop:!1},qH0={simpleText:""},gY=function(){var v=_.P.apply(this,arguments)||this;v.isLoading=!1;v.usesPanelLockup=!1;v.selectedItemIndex=-1;v.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},y6c,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});v.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},y6c,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});v.correctnessAnimationProps=[];v.correctnessAnimationRefs=[];return v};
_.V(gY,_.P);_.W=gY.prototype;_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.W.computeIsChannelOwner=function(v){if(!v)return!0;v=v[0];return!(v&&(v.signinEndpoint||v.selectServiceEndpoint))};
_.W.computeIsTotalVotesDisabled=function(v){return!(v==null?0:v.totalVotes)};
_.W.computeIsImageQuiz=function(v){return(v==null?void 0:v.type)==="POLL_TYPE_IMAGE"};
_.W.onExplanationChanged=function(){this.expander.reset()};
_.W.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var v=this.data.choices;if(v){this.maybeInitializeQuizLotties(v);for(var e=0;e<v.length;e++)if(v[e].isSelected||this.isChannelOwner&&v[e].isCorrect){this.selectedItemIndex=e;return}this.selectedItemIndex=-1}}};
_.W.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var v=this.selectedItemIndex,e=Number(this.quizVotes.selected);this.selectChoice(e);this.sendVoteAction(e,v);this.quizVotes.selected=-1;var d;v=!((d=this.data)==null?0:d.enableAnimation);this.maybePlayAnswerAnimations(v)}};
_.W.onYtCommentPollRevert=function(v,e){e&&(this.selectChoice(e.selectedChoiceIndex),this.set("data.totalVotes",e.totalVotes))};
_.W.onYtServiceRequestSent=function(v,e){if(e.actions)for(v=_.a(e.actions),e=v.next();!e.done;e=v.next())(e=_.L(e.value,kw))&&this.set("data.totalVotes",e.totalVotes)};
_.W.onYtServiceRequestCompleted=function(v){var e=this.get("detail.data.actionResults.0.feedback",v);v=this.get("detail.data.actionResults.0.status",v);if(e==="FEEDBACK_DESELECT"||e==="FEEDBACK_SELECT")this.isLoading=!1,v==="STATUS_FAILED"?_.Iq(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.W.getAnimationPropsForChoiceIndex=function(v,e){return e[v]};
_.W.maybePlayAnswerAnimations=function(v){v=v===void 0?!1:v;var e;if((e=this.data)!=null&&e.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){e=_.a(this.correctnessAnimationRefs);for(var d=e.next();!d.done;d=e.next()){var E=void 0,T=void 0;(E=d.value)==null||(T=E.lottieEl)==null||T.stop()}if(!(this.selectedItemIndex<0)){e=0;v&&(e=this.isCorrect?37:25);var S,O;(S=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(O=S.lottieEl)==null||O.goToAndPlay(v?e:0,!0);if(!(this.isCorrect||
(S=this.data.choices.findIndex(function(r){return r.isCorrect}),S<0))){var b,Y;
(Y=(b=this.correctnessAnimationRefs[S])==null?void 0:b.lottieEl)==null||Y.goToAndPlay(37,!0);var q;b=(q=this.fadeContainers)==null?void 0:q.item(S);!v&&b&&this.fadeIn(b)}}}};
_.W.thumbnailSrc=function(v){var e,d,E,T;return(v==null?0:(e=v.thumbnails)==null?0:(d=e[0])==null?0:d.url)?_.xm((E=v.thumbnails)==null?void 0:(T=E[0])==null?void 0:T.url):void 0};
_.W.a11yVotedText=function(v,e){var d,E,T=((d=this.data)==null?void 0:(E=d.correctVotedText)==null?void 0:E.simpleText)||"",S,O;d=((S=this.data)==null?void 0:(O=S.votedText)==null?void 0:O.simpleText)||"";if(!e)return"";var b,Y;if((b=this.data)==null?0:(Y=b.choices)==null?0:Y[v].isCorrect)return T;var q,r;return((q=this.data)==null?0:(r=q.choices)==null?0:r[v].isSelected)?d:""};
_.W.getEndpoint=function(v,e){return e===v?this.data.choices[v].deselectServiceEndpoint||null:this.data.choices[v].selectServiceEndpoint||null};
_.W.sendVoteAction=function(v,e){if(v=this.getEndpoint(v,e))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(v)};
_.W.selectChoice=function(v){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var e=0;e<this.data.choices.length;e++)this.set("data.choices."+e+".isSelected",v===this.selectedItemIndex?!1:e===v);this.selectedItemIndex=this.selectedItemIndex===v?-1:v};
_.W.maybeInitializeQuizLotties=function(v){var e=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=v.map(function(d){return{animationConfig:d.isCorrect?e.baseCorrectLottiePlayerAnimationConfig:e.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){e.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(d){return d.animationRef||{}})};
_.W.fadeIn=function(v){v.classList.add("fade-in");_.Yj(_.RM,function(){v.classList.remove("fade-in")},900)};
_.vP.Object.defineProperties(gY.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.N("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.vv(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 v,e;return((v=this.data)==null?void 0:(e=v.choices)==null?void 0:e.some(function(d){return d.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null||!v.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?qH0:this.data.choices[this.selectedItemIndex].explanation||qH0}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null||!v.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
gY.prototype.onYtServiceRequestCompleted=gY.prototype.onYtServiceRequestCompleted;gY.prototype.onYtServiceRequestSent=gY.prototype.onYtServiceRequestSent;gY.prototype.onYtCommentPollRevert=gY.prototype.onYtCommentPollRevert;gY.prototype.dataChanged=gY.prototype.dataChanged;gY.prototype.onExplanationChanged=gY.prototype.onExplanationChanged;_.c([_.M(_.ws),_.w("design:type",Object)],gY.prototype,"paperItemBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],gY.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.Ee.YtTaskEmitterBehavior),_.w("design:type",Object)],gY.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],gY.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],gY.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],gY.prototype,"isLoading",void 0);_.c([_.f(),_.w("design:type",Object)],gY.prototype,"usesPanelLockup",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.w("design:type",Boolean)],gY.prototype,"isChannelOwner",void 0);_.c([_.f({computed:"computeIsTotalVotesDisabled(data)"}),_.w("design:type",Boolean)],gY.prototype,"isTotalVotesDisabled",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.w("design:type",Boolean)],gY.prototype,"isImageQuiz",void 0);_.c([_.f(),_.w("design:type",Object)],gY.prototype,"previousQuizInfo",void 0);_.c([_.f(),_.w("design:type",Object)],gY.prototype,"selectedItemIndex",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data","usesPanelLockup"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gY.prototype,"shouldUseModernUi",null);
_.c([_.Nr(".fade-container"),_.w("design:type",Object)],gY.prototype,"fadeContainers",void 0);_.c([_.f(),_.w("design:type",Array)],gY.prototype,"correctnessAnimationProps",void 0);_.c([_.t("explanation","showCorrectAnswer"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gY.prototype,"showExplanation",null);_.c([_.t("isChannelOwner","isAttempted"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gY.prototype,"showCorrectAnswer",null);
_.c([_.t("isChannelOwner","isAttempted","data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gY.prototype,"isQuizAnsweringDisabled",null);_.c([_.t("isQuizAnsweringDisabled"),_.w("design:type",Object),_.w("design:paramtypes",[])],gY.prototype,"endpointStyle",null);_.c([_.t("data","selectedItemIndex"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gY.prototype,"isAttempted",null);
_.c([_.t("data","selectedItemIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],gY.prototype,"explanation",null);_.c([_.t("data","selectedItemIndex"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gY.prototype,"isCorrect",null);_.c([_.sg("ytd-expander"),_.w("design:type",Object)],gY.prototype,"expander",void 0);_.c([_.sg("#quiz-votes"),_.w("design:type",Object)],gY.prototype,"quizVotes",void 0);
_.c([_.$v("explanation"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gY.prototype,"onExplanationChanged",null);_.c([_.$v("data","isChannelOwner"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gY.prototype,"dataChanged",null);_.c([_.Kq("yt-comment-quiz-revert"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],gY.prototype,"onYtCommentPollRevert",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],gY.prototype,"onYtServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],gY.prototype,"onYtServiceRequestCompleted",null);_.c([_.z({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],gY);
_.A(gY,"ytd-backstage-quiz-renderer",function(){if(mWB!==void 0)return mWB;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return mWB=v},{mode:1});var r66;var uO=function(){return _.P.apply(this,arguments)||this};
_.V(uO,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],uO.prototype,"data",void 0);_.c([_.z({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],uO);
_.A(uO,"ytd-post-uploaded-video-renderer",function(){if(r66!==void 0)return r66;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return r66=v},{mode:1});var hkI;var nE=function(){return _.P.apply(this,arguments)||this};
_.V(nE,_.P);nE.prototype.useFilledIcons=function(v){return v==="SPONSORSHIP_STAR"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],nE.prototype,"data",void 0);_.c([_.z({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],nE);
var KtM=_.I5()(nE,"ytd-sponsors-only-badge-renderer",function(){if(hkI===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);hkI=v}v=hkI;return v},{allowedProps:["data"],
mode:1});var $W0;var Dd=function(){return _.P.apply(this,arguments)||this};
_.V(Dd,_.P);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Dd.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Dd.prototype,"data",void 0);_.c([_.z({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Dd);
_.A(Dd,"ytd-child-video-renderer",function(){if($W0!==void 0)return $W0;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return $W0=v},{mode:1});var jwB;var swi;var UC=function(){var v=_.P.apply(this,arguments)||this;v.size=0;v.enableWebModernCollectionsV2=_.N("web_modern_collections_v2");v.fallbackImageSize={height:void 0,width:9999};v.webModernCollections=!1;return v};
_.V(UC,_.P);_.W=UC.prototype;_.W.computeBlurredImageSize=function(v){return v?{height:v*2,width:v*2}:this.fallbackImageSize};
_.W.computeImageSize=function(v){return v?{height:v,width:v}:this.fallbackImageSize};
_.W.computeObjectFit=function(v){return v?"FILL":"CONTAIN"};
_.W.computePreserve=function(v){return v?!0:!1};
_.W.setBackground=function(){var v,e;_.N("web_modern_collections_v2")&&((v=this.data)==null?0:(e=v.thumbnail)==null?0:e.sampledThumbnailColor)&&(v=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+v.red+","+v.green+","+v.blue+",1)")};
UC.prototype.setBackground=UC.prototype.setBackground;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],UC.prototype,"watchFeedThumbnail",void 0);_.c([_.f(),_.w("design:type",Object)],UC.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],UC.prototype,"size",void 0);
_.c([_.f({computed:"computeBlurredImageSize(size)"}),_.w("design:type",Object)],UC.prototype,"blurredImageSize",void 0);_.c([_.f({computed:"computeImageSize(size)"}),_.w("design:type",Object)],UC.prototype,"imageSize",void 0);_.c([_.f({computed:"computePreserve(size)"}),_.w("design:type",String)],UC.prototype,"preserve",void 0);_.c([_.f({computed:"computeObjectFit(size)"}),_.w("design:type",String)],UC.prototype,"objectFit",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],UC.prototype,"enableWebModernCollectionsV2",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],UC.prototype,"webModernCollections",void 0);_.c([_.$v("data.thumbnail.sampledThumbnailColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UC.prototype,"setBackground",null);_.c([_.z({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],UC);
_.A(UC,"ytd-playlist-custom-thumbnail-renderer",function(){if(swi!==void 0)return swi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return swi=v},{mode:1});var NEn;var pE=function(){return _.P.apply(this,arguments)||this};
_.V(pE,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pE.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Number)],pE.prototype,"width",void 0);_.c([_.z({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],pE);
_.A(pE,"ytd-playlist-video-thumbnail-renderer",function(){if(NEn!==void 0)return NEn;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return NEn=v},{mode:1});var kW0;var vy=function(){return _.P.apply(this,arguments)||this};
_.V(vy,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],vy.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Number)],vy.prototype,"width",void 0);_.c([_.z({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],vy);
_.A(vy,"ytd-show-custom-thumbnail-renderer",function(){if(kW0!==void 0)return kW0;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return kW0=v},{mode:1});var Lt6;var eY=function(){return _.P.apply(this,arguments)||this};
_.V(eY,_.P);eY.prototype.useFilledIcons=function(v){return v==="MUSIC"||v==="COURSE"};
eY.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=FD(this.overlayColor,"0.8");else if(this.overlayColor){var v=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+v.red+","+v.green+","+v.blue+",0.8)"}};
_.vP.Object.defineProperties(eY.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)}}});
eY.prototype.overlayColorChanged=eY.prototype.overlayColorChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],eY.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],eY.prototype,"overlayColor",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data.icon","data.text"),_.w("design:type",Object),_.w("design:paramtypes",[])],eY.prototype,"overlayStyle",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data.icon","data.text"),_.w("design:type",Object),_.w("design:paramtypes",[])],eY.prototype,"overlayTextStyle",null);_.c([_.$v("overlayColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eY.prototype,"overlayColorChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],eY);
_.A(eY,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Lt6!==void 0)return Lt6;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Lt6=v},{mode:1});var Vgi;var dv=function(){var v=_.P.apply(this,arguments)||this;v.active=!1;return v};
_.V(dv,_.P);dv.prototype.computeIsSpinnerHidden=function(v){return(v==null?void 0:v.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
dv.prototype.computeOverlayIcon=function(v){return(v==null?void 0:v.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(v==null?void 0:v.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],dv.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],dv.prototype,"active",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],dv);
_.A(dv,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Vgi!==void 0)return Vgi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Vgi=v},{mode:1});var oA7;var E2=function(){return _.P.apply(this,arguments)||this};
_.V(E2,_.P);_.vP.Object.defineProperties(E2.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],E2.prototype,"data",void 0);_.c([_.t("data.text"),_.w("design:type",Object),_.w("design:paramtypes",[])],E2.prototype,"text",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],E2);
_.A(E2,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(oA7!==void 0)return oA7;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return oA7=v},{mode:1});var J6n,GW2=function(){if(J6n!==void 0)return J6n;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return J6n=v};var Ty=function(){return _.P.apply(this,arguments)||this};
_.V(Ty,_.P);_.vP.Object.defineProperties(Ty,{template:{configurable:!0,enumerable:!0,get:function(){return GW2()}}});
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ty.prototype,"animateEqualizer",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Ty);_.I5()(Ty,"ytd-thumbnail-overlay-equalizer",function(){return GW2()},{allowedProps:["animateEqualizer"],
mode:1});var Mgu;var SY=function(){var v=_.P.apply(this,arguments)||this;v.nowPlayingBadge=_.N("web_now_playing_badge");v.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return v};
_.V(SY,_.P);SY.prototype.activeChanged=function(){var v=this;_.N("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Uh(this,function(){_.Iq(v.hostElement,"yt-playlist-lockup-now-playing-active",v)})};
SY.prototype.onMiniplayerPlayStateChanged=function(v){var e,d=(e=_.L(_.Ke().currentEndpoint,_.p2))==null?void 0:e.videoId;this.isVideoPlaying=v&&(_.N("web_limit_now_playing_animation_killswitch")||this.videoId===d)};
SY.prototype.activeChanged=SY.prototype.activeChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],SY.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],SY.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],SY.prototype,"isVideoPlaying",void 0);_.c([_.f(),_.w("design:type",String)],SY.prototype,"videoId",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],SY.prototype,"equalizerOnly",void 0);_.c([_.f(),_.w("design:type",Boolean)],SY.prototype,"isActive",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],SY.prototype,"nowPlayingBadge",void 0);_.c([_.$v("isActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SY.prototype,"activeChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],SY);
_.A(SY,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Mgu!==void 0)return Mgu;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Mgu=v},{mode:1});var tgJ;var Wy=function(){return _.P.apply(this,arguments)||this};
_.V(Wy,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Wy.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Wy);
_.A(Wy,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(tgJ!==void 0)return tgJ;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return tgJ=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var f5M;var a6=function(){return _.P.apply(this,arguments)||this};
_.V(a6,_.P);a6.prototype.onDurationChanged=function(){var v,e;_.IB(this.hostElement).querySelector("#progress").style.width=((e=(v=this.data)==null?void 0:v.percentDurationWatched)!=null?e:0)+"%"};
a6.prototype.onDurationChanged=a6.prototype.onDurationChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],a6.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],a6.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],a6.prototype,"isLive",void 0);_.c([_.$v("data.percentDurationWatched"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],a6.prototype,"onDurationChanged",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],a6);
_.A(a6,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(f5M!==void 0)return f5M;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return f5M=v},{mode:1});var Rkc;var iT=function(){var v=_.P.apply(this,arguments)||this;v.bottomPanel=!1;v.richGridOverlay=!1;v.watchFeedOverlay=!1;v.isCompact=!1;return v};
_.V(iT,_.P);iT.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.vP.Object.defineProperties(iT.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:(e=v.icon)==null?void 0:e.iconType)==="PLAY_ALL"&&_.N("kevlar_system_icons")}}});
iT.prototype.widthChanged=iT.prototype.widthChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],iT.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Number)],iT.prototype,"width",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],iT.prototype,"bottomPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],iT.prototype,"richGridOverlay",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],iT.prototype,"watchFeedOverlay",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],iT.prototype,"isCompact",void 0);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],iT.prototype,"isIconFilled",null);_.c([_.$v("width","watchFeedOverlay"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],iT.prototype,"widthChanged",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],iT);
_.A(iT,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Rkc!==void 0)return Rkc;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Rkc=v},{mode:1});var PCI;var xWi=["CLIP","SHORTS"],O2=function(){var v=_.P.apply(this,arguments)||this;v.animated=_.N("animated_live_badge_icon");v.hasIcon=!1;v.updateTimerIntervalId=0;v.timeSinceLive=0;return v};
_.V(O2,_.P);_.W=O2.prototype;_.W.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.W.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.W.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.W.hasIconOrText=function(){var v,e;return!!(((v=this.data)==null?0:v.icon)||((e=this.data)==null?0:e.text))};
_.W.initializeLiveBadgeTimer=function(){var v=this,e,d=(e=this.liveBadgeData)==null?void 0:e.startTimestampSec;if(d&&this.canShowLiveBadgeTimer()){var E;e=Number((E=this.liveBadgeData)==null?void 0:E.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(d);this.updateTimerIntervalId=_.bY(function(){v.canShowLiveBadgeTimer()?v.timeSinceLive++:(v.timeSinceLive=0,window.clearInterval(v.updateTimerIntervalId))},e)}else this.timeSinceLive=0};
_.W.canShowLiveBadgeTimer=function(){var v=Date.now(),e,d;return v<(Number((e=this.liveBadgeData)==null?void 0:e.endTimestampSec)-1)*1E3&&v>Number((d=this.liveBadgeData)==null?void 0:d.startTimestampSec)*1E3};
_.vP.Object.defineProperties(O2.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=this.data;var e=this.timeSinceLive;var d,E,T,S;a:{var O=v.style;if(O===void 0)O=17;else switch(O){case "LIVE":O=18;break a;default:O=17}}e={type:O,text:e?scj({seconds:e}):_.vv(v.text),accessibilityText:(d=v.text)==null?void 0:(E=d.accessibility)==null?void 0:(T=E.accessibilityData)==null?void 0:T.label,icon:(S=v.icon)==null?void 0:S.iconType}}else e={};return e}},
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 v;return(v=this.data)==null?void 0:v.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 xWi.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
O2.prototype.initializeLiveBadgeTimer=O2.prototype.initializeLiveBadgeTimer;O2.prototype.dataChanged=O2.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],O2.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],O2.prototype,"data",void 0);_.c([_.f({computed:"computeIcon_(data.icon)"}),_.w("design:type",String)],O2.prototype,"icon",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],O2.prototype,"animated",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.w("design:type",Boolean)],O2.prototype,"hideTimeStatus",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],O2.prototype,"hasIcon",void 0);_.c([_.f(),_.w("design:type",Object)],O2.prototype,"timeSinceLive",void 0);_.c([_.t("data","timeSinceLive"),_.w("design:type",Object),_.w("design:paramtypes",[])],O2.prototype,"badgeShapeData",null);
_.c([_.t("data","overlayType"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],O2.prototype,"hideBadgeShape",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],O2.prototype,"dataChanged",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.style"),_.w("design:type",Object),_.w("design:paramtypes",[])],O2.prototype,"overlayStyle",null);
_.c([_.t("data.liveBadgeData"),_.w("design:type",Object),_.w("design:paramtypes",[])],O2.prototype,"liveBadgeData",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.type"),_.w("design:type",Object),_.w("design:paramtypes",[])],O2.prototype,"overlayType",null);_.c([_.t("overlayType","overlayStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],O2.prototype,"useFilledIcon",null);
_.c([_.V1("liveBadgeData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],O2.prototype,"initializeLiveBadgeTimer",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],O2);
_.A(O2,"ytd-thumbnail-overlay-time-status-renderer",function(){if(PCI!==void 0)return PCI;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return PCI=v},{mode:_.bk("kevlar_poly_si_batch_j035")?1:2});var BE2;var I6=function(){return _.P.apply(this,arguments)||this};
_.V(I6,_.P);I6.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"}}}}};
I6.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(v){if(this.hasPlaybackProgressBar)return{percentDurationWatched:v.percentDurationWatched}};
I6.prototype.computeHasPlaybackProgressBar=function(v){return!!v.percentDurationWatched&&v.percentDurationWatched>0};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],I6.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.w("design:type",Boolean)],I6.prototype,"hasPlaybackProgressBar",void 0);
_.c([_.z({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],I6);
_.A(I6,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(BE2!==void 0)return BE2;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return BE2=v},{mode:1});var CCu;var XRg=_.l(function(v){var e=v.data;var d=v.children;var E=function(){return!!e().doubleStack},T=function(){return!!e().includeStackHeight};
return _.m("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!e().experimentEnabled}},_.m(_.y,{cond:e,
then:function(){var S={};return _.m(_.eI,null,_.m(_.y,{cond:T,then:function(){var O={};return _.m("div",{class:_.qe("collections-stack-wiz__spacer",(O["collections-stack-wiz__spacer--double-stack"]=E,O))})}}),_.m("div",{class:_.qe((S["collections-stack-wiz__relative-stack"]=T,S))},_.m(_.y,{cond:E,
then:function(){var O={};return _.m("div",{class:_.qe("collections-stack-wiz__collection-stack2",function(){return e().customClassName2ndStack},(O["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return e().enableResponsiveMode},O)),
style:_.jM({"background-color":function(){return A6j(e())}})})}}),_.m("div",{class:_.qe("collections-stack-wiz__collection-stack1",function(){return e().customClassName1stStack},function(){return HxH(e().thumbnailSize?e().thumbnailSize:"medium")}),
style:_.jM({"background-color":function(){return A6j(e())}})}),d))}}))},"W");_.aZ(XRg,"yt-collections-stack",{props:{data:_.U1}});var bT=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};v.webModernCollections=!1;v.isSearch=!1;v.isDoubleStack=!1;v.thumbnailSize="medium";v.enableWebModernCollectionsV2=_.N("web_modern_collections_v2");return v};
_.V(bT,_.P);_.W=bT.prototype;
_.W.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]]"}}}}}};
_.W.getThumbnailDetails=function(v){if(v!=null&&v.thumbnailRenderer){var e=v.thumbnailRenderer,d;if((d=e.playlistVideoThumbnailRenderer)==null?0:d.thumbnail)return e.playlistVideoThumbnailRenderer.thumbnail;var E;if((E=e.playlistCustomThumbnailRenderer)==null?0:E.thumbnail)return e.playlistCustomThumbnailRenderer.thumbnail;v=v.thumbnailRenderer;var T;if((T=v.showCustomThumbnailRenderer)==null?0:T.thumbnail)return v.showCustomThumbnailRenderer.thumbnail}};
_.W.computeOverlayColor=function(v){var e,d;if((e=this.getThumbnailDetails(v))==null?0:(d=e.darkColorPalette)==null?0:d.section2Color)return this.getThumbnailDetails(v).darkColorPalette.section2Color;var E;return(E=this.getThumbnailDetails(v))==null?void 0:E.sampledThumbnailColor};
_.W.computeWebModernCollections=function(v){if(v==null||!v.thumbnailOverlays)return!1;v=_.a(v.thumbnailOverlays);for(var e=v.next();!e.done;e=v.next()){var d=void 0;if((d=e.value)==null?0:d.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.W.computeNavigationEndpoint=function(v){return vw$(v==null?void 0:v.navigationEndpoint)};
_.vP.Object.defineProperties(bT.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var v=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:v==null?void 0:v.sampledThumbnailColor,vibrantColorPalette:v==null?void 0:v.vibrantColorPalette,darkColorPalette:v==null?void 0:v.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],bT.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],bT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(Q16),_.w("design:type",Object)],bT.prototype,"ytdThumbnailBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],bT.prototype,"componentBehavior",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],bT.prototype,"watchFeedThumbnail",void 0);_.c([_.f(),_.w("design:type",Number)],bT.prototype,"customThumbnailSize",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],bT.prototype,"hideAria",void 0);_.c([_.f(),_.w("design:type",Object)],bT.prototype,"data",void 0);_.c([_.f({computed:"computeOverlayColor(data)"}),_.w("design:type",Object)],bT.prototype,"overlayColor",void 0);
_.c([_.f({computed:"computeWebModernCollections(data)"}),_.w("design:type",Object)],bT.prototype,"webModernCollections",void 0);_.c([_.f({computed:"computeNavigationEndpoint(data)"}),_.w("design:type",Object)],bT.prototype,"computedNavigationEndpoint",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],bT.prototype,"isSearch",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],bT.prototype,"isDoubleStack",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],bT.prototype,"thumbnailSize",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],bT.prototype,"enableWebModernCollectionsV2",void 0);_.c([_.t("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.w("design:type",Object),_.w("design:paramtypes",[])],bT.prototype,"collectionStack",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],bT);
_.A(bT,"ytd-playlist-thumbnail",function(){if(CCu!==void 0)return CCu;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return CCu=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var zkA;var Y7=function(){var v=_.P.apply(this,arguments)||this;v.noEndpoints=!1;v.amsterdamPostMvp=_.N("web_amsterdam_post_mvp_playlists");v.badges=[];v.transferState="TRANSFER_STATE_UNKNOWN";return v};
_.V(Y7,_.P);_.W=Y7.prototype;_.W.getMetadata=function(v){if(!v)return[];var e=[],d=v.shortViewCountText||v.viewCountText;d&&e.push(_.vv(d));v.publishedTimeText&&e.push(_.vv(v.publishedTimeText));v.upcomingEventData&&v.upcomingEventData.upcomingEventText&&e.push(_.Gn(_.vv(v.upcomingEventData.upcomingEventText),Number(v.upcomingEventData.startTime)));return e};
_.W.observeDataForBylineSeparator=function(){this.data&&_.Yv(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.W.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.cv(this.metadataColor)};
_.W.getSimpleString=function(v){return _.vv(v)};
_.W.isBylineHidden=function(v){return this.noByline||!((v==null?0:v.longBylineText)||(v==null?0:v.shortBylineText))};
_.W.isMetadataHidden=function(v){var e;return((e=this.getMetadata(v))==null?void 0:e.length)===0};
_.W.isBylineMetadataSeparatorHidden=function(v){return this.isMetadataHidden(v)||!this.shouldShowVideoInfo};
_.W.isLongByline=function(v,e){return e&&!(v==null||!v.longBylineText)};
_.vP.Object.defineProperties(Y7.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var v;return this.amsterdamPostMvp&&!((v=this.data)==null||!v.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 _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Y7.prototype.metadataColorChanged=Y7.prototype.metadataColorChanged;Y7.prototype.observeDataForBylineSeparator=Y7.prototype.observeDataForBylineSeparator;_.c([_.M(_.lV),_.w("design:type",Object)],Y7.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Y7.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Y7.prototype,"noEndpoints",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Y7.prototype,"isSlimShort",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Y7.prototype,"radioMeta",void 0);_.c([_.f({selector:_.CM}),_.w("design:type",Object)],Y7.prototype,"isGridViewEnabled",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Y7.prototype,"richMeta",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Y7.prototype,"amsterdamPostMvp",void 0);_.c([_.f(),_.w("design:type",Boolean)],Y7.prototype,"noByline",void 0);
_.c([_.f({computed:"isLongByline(data, radioMeta)"}),_.w("design:type",Boolean)],Y7.prototype,"longByline",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Y7.prototype,"truncateMetadataLine",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Y7.prototype,"miniMode",void 0);_.c([_.f(),_.w("design:type",Number)],Y7.prototype,"metadataColor",void 0);_.c([_.f(),_.w("design:type",Array)],Y7.prototype,"badges",void 0);
_.c([_.f({selector:_.A_,selectorArgs:["data.videoId"]}),_.w("design:type",String)],Y7.prototype,"transferState",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Y7.prototype,"isDownloading",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Y7.prototype,"typographyBump",void 0);_.c([_.sg("#metadata-line"),_.w("design:type",HTMLElement)],Y7.prototype,"metadataLine",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Y7.prototype,"observeDataForBylineSeparator",null);_.c([_.$v("metadataColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Y7.prototype,"metadataColorChanged",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Y7.prototype,"shouldShowVideoInfo",null);
_.c([_.t("badges"),_.w("design:type",String),_.w("design:paramtypes",[])],Y7.prototype,"inlineBadgeClass",null);_.c([_.t("longByline"),_.w("design:type",String),_.w("design:paramtypes",[])],Y7.prototype,"longBylineClass",null);_.c([_.t("data","longByline"),_.w("design:type",Object),_.w("design:paramtypes",[])],Y7.prototype,"bylineText",null);_.c([_.t("isGridViewEnabled","data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Y7.prototype,"watchFeedBigThumbs",null);
_.c([_.z({is:"ytd-video-meta-block",disableElementRegistration:!0})],Y7);
_.A(Y7,"ytd-video-meta-block",function(){if(zkA!==void 0)return zkA;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return zkA=v},{mode:_.bk("kevlar_poly_si_batch_j080")?1:2});_.RZ("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var mm=function(){var v=_.P.apply(this,arguments)||this;v.displayItemCount=2;v.isBackstagePlaylist=!1;v.isPostCompactPlaylist=!1;v.shouldShowChannelThumbnail=!1;v.useModernCollectionsV2=_.N("web_modern_collections_v2");return v};
_.V(mm,_.P);_.W=mm.prototype;_.W.computeFirstVideos=function(v,e){return v===void 0||e===void 0?[]:v.slice(0,e)};
_.W.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var v=this.data.thumbnailRenderer;v.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",v.playlistVideoThumbnailRenderer.thumbnail);v.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",v.playlistCustomThumbnailRenderer.thumbnail)}};
_.W.computeThumbnailHeight=function(v,e,d,E,T){return E?T==="BIG"?280:T==="MASSIVE"?337:234:d?240:e?72:v?118:138};
_.W.computeThumbnailWidth=function(v,e,d,E,T){return E?T==="MEDIUM"?450:T==="BIG"?500:T==="MASSIVE"?600:420:d?360:e?128:v?210:246};
_.W.computeUseBiggerThumbs=function(v){return v&&_.N("enable_desktop_search_bigger_thumbs")};
_.W.computeShouldShowChannelThumbnail=function(v,e){return v&&!(e==null||!e.channelThumbnail)};
_.vP.Object.defineProperties(mm.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
mm.prototype.dataChanged=mm.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],mm.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],mm.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],mm.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],mm.prototype,"displayItemCount",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],mm.prototype,"isBackstagePlaylist",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],mm.prototype,"isPostCompactPlaylist",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],mm.prototype,"isSearch",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.w("design:type",Boolean)],mm.prototype,"useBiggerThumbs",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],mm.prototype,"biggerThumbsStyle",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],mm.prototype,"isDownloads",void 0);_.c([_.f({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.w("design:type",Object)],mm.prototype,"shouldShowChannelThumbnail",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],mm.prototype,"useModernCollectionsV2",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mm.prototype,"dataChanged",null);_.c([_.t("isSearch"),_.w("design:type",String),_.w("design:paramtypes",[])],mm.prototype,"stackThumbnailSize",null);_.c([_.z({is:"ytd-playlist-renderer",disableElementRegistration:!0})],mm);
_.A(mm,"ytd-playlist-renderer",function(){if(jwB===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);jwB=v}v=jwB;return v},{mode:1});var l5A;var Hxn;var yo=function(){var v=_.P.apply(this,arguments)||this;v.collections=!!_.N("web_modern_collections_v2");v.startX=0;return v};
_.V(yo,_.P);yo.prototype.onEndpointMouseDown=function(v){this.startX=v.clientX};
yo.prototype.onEndpointClick=function(v){this.startX!==v.clientX&&(v.preventDefault(),v.stopPropagation())};
yo.prototype.computeObjectFit=function(v){return v==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||v==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||v==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
yo.prototype.computeCardStyle=function(v){return v?v.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.vP.Object.defineProperties(yo.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var v,e;return this.collections&&((v=this.data)==null?void 0:(e=v.searchRefinementCardRendererStyle)==null?void 0:e.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],yo.prototype,"data",void 0);_.c([_.f({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.w("design:type",Number)],yo.prototype,"objectFit",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.w("design:type",String)],yo.prototype,"cardStyle",void 0);
_.c([_.f({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],yo.prototype,"roundContainer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],yo.prototype,"collections",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],yo.prototype,"isAlbumCard",null);_.c([_.t("data","collections","isAlbumCard"),_.w("design:type",Object),_.w("design:paramtypes",[])],yo.prototype,"collectionStack",null);
_.c([_.z({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],yo);
_.A(yo,"ytd-search-refinement-card-renderer",function(){if(Hxn!==void 0)return Hxn;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Hxn=v},{mode:1});var A6B;var qw=function(){var v=_.P.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.V(qw,_.P);_.c([_.f(),_.w("design:type",Object)],qw.prototype,"data",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],qw.prototype,"componentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],qw.prototype,"ytdReduxBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],qw.prototype,"isRichGrid",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],qw.prototype,"miniMode",void 0);
_.c([_.z({is:"ytd-game-details-renderer",disableElementRegistration:!0})],qw);
_.A(qw,"ytd-game-details-renderer",function(){if(A6B!==void 0)return A6B;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return A6B=v},{mode:1});var ZxB;var c6c;var rv=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return v};
_.V(rv,_.P);_.W=rv.prototype;_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.currentStateData=function(v){var e=v||this.data;return e&&e.states&&e.currentStateId!=null?e.states.find(function(d){return d.stateId===e.currentStateId})||null:null};
_.W.currentStateRendererData=function(v){return(v=this.currentStateData(v))&&v.state&&v.state.buttonRenderer?v.state.buttonRenderer:null};
_.W.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())};
_.W.computeButtonIcon=function(v){v=this.currentStateRendererData(v);var e;return(v==null?0:(e=v.icon)==null?0:e.iconType)?v.icon.iconType.toLowerCase():null};
_.W.computeAccessibility=function(v){return(v=this.currentStateRendererData(v))&&v.accessibilityData?v.accessibilityData.accessibilityData||null:null};
_.W.computeButtonClass=function(v){var e=this.currentStateRendererData(v);if(!e)return"";v="";var d=e.style;d&&(v+=d.toLowerCase().replace(/_/g,"-")+" ");(e=e.size)&&(v+=e.toLowerCase().replace(/_/g,"-")+" ");return v.trim()};
_.W.computeServiceEndpoint=function(v){if(!v)return null;var e=v&&v.serviceEndpoint,d=this.get("command.commandMetadata.webCommandMetadata.sendPost",v);return e?e:d&&v.command?v.command:null};
_.W.computeBellMenuItemParams=function(v){var e;v=(e=_.L(v==null?void 0:v.command,_.rV))==null?void 0:e.commands;if(!v||v.length===0)return null;e=_.L(v[0],_.L6);var d,E;return(e==null?0:(d=e.popup)==null?0:(E=d.menuPopupRenderer)==null?0:E.items)?e.popup.menuPopupRenderer.items.map(function(T){return T.menuServiceItemRenderer.trackingParams}):null};
_.W.handleBellMenuOpenSelectedAction=function(v){var e=v.trackingParams,d=this.computeBellMenuItemParams(this.data);this.data&&e&&d&&d.includes(e)&&this.ytRenderButtonBehavior._setButtonIcon(v.icon.iconType.toLowerCase())};
_.W.onYtServiceRequestCompleted=function(v,e){(v=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",e))&&this.set("data",v)};
_.W.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.W.resetState=function(){this.set("data.currentStateId",3)};
_.W.onYtButtonTapHandler=function(){if(this.data){var v=this.currentStateRendererData(this.data);v&&this.ytRendererBehavior.logExplicitClick(v)}};
rv.prototype.onYtServiceRequestError=rv.prototype.onYtServiceRequestError;rv.prototype.onYtServiceRequestCompleted=rv.prototype.onYtServiceRequestCompleted;rv.prototype.stateChanged=rv.prototype.stateChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],rv.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(oe.YtRenderButtonBehavior),_.w("design:type",Object)],rv.prototype,"ytRenderButtonBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],rv.prototype,"data",void 0);_.c([_.V1("data","data.currentStateId"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rv.prototype,"stateChanged",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],rv.prototype,"onYtServiceRequestCompleted",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],rv.prototype,"onYtServiceRequestError",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],rv);
_.A(rv,"ytd-subscription-notification-toggle-button-renderer",function(){if(c6c!==void 0)return c6c;var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return c6c=v},{mode:1});var wRu;var hQ=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};v.tapHandler=function(){if(v.data){var e=v.currentStateRendererData();e&&v.ytRendererBehavior.logExplicitClick(e)}};
return v};
_.V(hQ,_.P);_.W=hQ.prototype;_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.currentStateData=function(){var v=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(e){return e.stateId===v.data.currentStateId})||null:null};
_.W.currentStateRendererData=function(){var v=this.currentStateData();return v&&v.state&&v.state.buttonRenderer?v.state.buttonRenderer:null};
_.W.computeAccessibilityLabel=function(){var v,e,d;return(v=this.currentStateRendererData())==null?void 0:(e=v.accessibilityData)==null?void 0:(d=e.accessibilityData)==null?void 0:d.label};
_.W.computeBellMenuItemParams=function(){var v,e,d=(e=_.L((v=this.data)==null?void 0:v.command,_.rV))==null?void 0:e.commands;if(!d||d.length===0)return null;v=_.L(d[0],_.L6);var E,T;return(v==null?0:(E=v.popup)==null?0:(T=E.menuPopupRenderer)==null?0:T.items)?v.popup.menuPopupRenderer.items.map(function(S){return S.menuServiceItemRenderer.trackingParams}):null};
_.W.handleBellMenuOpenSelectedAction=function(v){var e=v.trackingParams,d=this.computeBellMenuItemParams();if(this.data&&e&&d&&d.includes(e)&&(v==null||!v.isDisabled)){var E;((E=_.L(v.serviceEndpoint,_.KB))==null?void 0:E.signal)!=="CLIENT_SIGNAL"&&(this.icon=v.icon.iconType)}};
_.W.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.W.onYtServiceRequestCompleted=function(v,e){if(v=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",e))this.icon=void 0,this.set("data",v)};
_.W.onYtServiceRequestError=function(){this.icon=void 0};
_.vP.Object.defineProperties(hQ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=this.data,e=this.textLabel,d=this.hostElement,E=this.computeAccessibilityLabel(),T=this.tapHandler,S=this.isOverlay?"overlay":"mono",O=(v==null?0:v.disableButton)?"disabled":"active";e=e?_.Bz(e):void 0;return{style:S,type:"tonal",state:O,size:"M",focused:!1,formattedButtonText:e,iconPosition:"leading-trailing",onTap:c63(v,T,d),accessibilityLabel:E}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var v=this.currentStateRendererData(),e,d,E=(d=this.icon)!=null?d:v==null?void 0:(e=v.icon)==null?void 0:e.iconType;if(E)return _.qC(E)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(v=this.data)==null?void 0:(e=v.secondaryIcon)==null?void 0:e.iconType;if(d)return _.qC(d)}}});
hQ.prototype.onYtServiceRequestError=hQ.prototype.onYtServiceRequestError;hQ.prototype.onYtServiceRequestCompleted=hQ.prototype.onYtServiceRequestCompleted;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],hQ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],hQ.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],hQ.prototype,"textLabel",void 0);
_.c([_.f(),_.w("design:type",String)],hQ.prototype,"icon",void 0);_.c([_.f(),_.w("design:type",Boolean)],hQ.prototype,"isOverlay",void 0);_.c([_.t("data.*","textLabel"),_.w("design:type",Object),_.w("design:paramtypes",[])],hQ.prototype,"computedButtonShape",null);_.c([_.t("data.*","icon"),_.w("design:type",Object),_.w("design:paramtypes",[])],hQ.prototype,"computedIcon",null);_.c([_.t("computedIcon"),_.w("design:type",Object),_.w("design:paramtypes",[])],hQ.prototype,"computedAnimateIcon",null);
_.c([_.t("data.*"),_.w("design:type",Object),_.w("design:paramtypes",[])],hQ.prototype,"computedSecondaryIcon",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],hQ.prototype,"onYtServiceRequestCompleted",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hQ.prototype,"onYtServiceRequestError",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],hQ);
_.A(hQ,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(wRu!==void 0)return wRu;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return wRu=v},{mode:_.bk("kevlar_poly_si_batch_j081")?1:2});var FtJ;_.aZ(FPc,"yt-animated-action",{props:{backgroundLottieRef:_.U1,foregroundLottieRef:_.U1,wrapperClass:_.U1,disableAnimation:_.U1},unsafeExternallySettableAttributes:new Set(["key"])});var Kj=function(){var v=_.P.apply(this,arguments)||this;v.animatedActionEnabled=_.N("web_animated_actions");v.foregroundLottieRef={};v.backgroundLottieRef={};v.forceIconOnly=!1;v.showTextWhileAnimating=!1;v.keyboardFocused=!1;v.isAnimating=!1;v.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return v};
_.V(Kj,_.P);_.W=Kj.prototype;_.W.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.W.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]]"}}}}}};
_.W.attached=function(){this.keyboardFocused=!1};
_.W.onYtServiceRequestSent=function(v,e){(this.get("endpoint.subscribeEndpoint",e)||this.get("endpoint.unsubscribeEndpoint",e))&&this.updateSubscriptionState(!this.subscribed)};
_.W.onYtServiceRequestCompleted=function(v,e){(v=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",e.data))&&this.bellButton&&(this.bellButton.data=v)};
_.W.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.qr(this.hostElement)};
_.W.onPlayerSubscribe=function(v){this.isCompactRed()||v!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.W.onPlayerUnsubscribe=function(v){this.isCompactRed()||v!==this.data.channelId||this.updateSubscriptionState(!1)};
_.W.handleUpdateSubscribeButtonAction=function(v){v=_.L(v,ETB);var e;v&&v.channelId===((e=this.data)==null?void 0:e.channelId)&&this.updateSubscriptionState(!!v.subscribed)};
_.W.computeButtonStyle=function(v){return this.get("style.styleType",v)||null};
_.W.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.W.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.W.updateSubscriptionState=function(v){if(v!==this.subscribed){this.set("data.subscribed",v);var e,d=(e=this.data)==null?void 0:e.subscribedEntityKey;d&&this.ytdReduxBehavior.dispatch(_.Lv("subscriptionStateEntity",d,{key:d,subscribed:v}));this.isCompactRed()||_.Iq(this.hostElement,"yt-subscription-changed",v);v||(_.b4(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!v),v&&this.hasBellButton&&this.startAnimation())}};
_.W.startAnimation=function(){var v=this;if(!this.isAnimating){var e=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var d;(d=this.backgroundLottieRef.lottieEl)==null||d.goToAndPlay(0);var E;(E=this.foregroundLottieRef.lottieEl)==null||E.goToAndPlay(0);_.RM.addJob(function(){v.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.RM.addJob(function(){v.updateContainerToFitContent(!!v.subscribed,!0)},2,1500);
_.RM.addJob(function(){v.isAnimating=!1},2,e)}};
_.W.maybeAnimateBellIcon=function(){var v=_.bh(this.hostElement).querySelector("yt-animated-icon");if(v){var e;(e=v.animationRef.lottieEl)==null||e.goToAndPlay(0)}};
_.W.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.W.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.W.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var v;this.unsubscribedWidth=(v=this.subscribeButtonShape)==null?void 0:v.getBoundingClientRect().width}var e;this.subscribedWidth=(e=this.bellButton)==null?void 0:e.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.W.updateContainerToFitContent=function(v,e){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(v?(v=this.subscribedWidth,e=this.isAnimating&&!e,this.subscribedIconOnlyWidth===void 0||e||(v=this.subscribedIconOnlyWidth),this.hostElement.style.width=v+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.W.clearContainerSize=function(){this.hostElement.style.width=""};
_.W.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.W.maybeSetSubscribedButtonIconOnlyWidth=function(){var v=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var e;v.subscribedIconOnlyWidth=(e=v.bellButton)==null?void 0:e.getBoundingClientRect().width;requestAnimationFrame(function(){if(v.bellButton){var d;v.bellButton.textLabel=
(d=v.data)==null?void 0:d.subscribedButtonText}})})))};
_.vP.Object.defineProperties(Kj.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 v;return(v=this.data)==null?void 0:v.subscribedButtonText}var e;return this.forceIconOnly?void 0:(e=this.data)==null?void 0:e.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var v,e,d=((v=this.data)==null?void 0:(e=v.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"subscribe",timings:d,enabled:d.length>0&&!this.subscribed,experimentEnabled:d.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var v;return!this.subscribed&&((v=this.data)==null?void 0:v.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 v={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var e=v.renderer;var d=v.element;var E=v.subscribed;var T=v.commandController;var S=v.isOverlay;v=v.stopPropagation;var O=gA7(e,E);S&&(O.style="overlay");S=Object;var b=S.assign,Y;a:switch((Y=e.style)==null?void 0:Y.styleType){case "COMPACT_GRAY":case "COMPACT_RED":Y={size:"S"};break a;default:Y={size:"M"}}var q=Qw7(e,
E);var r=(r=E?e.subscribedButtonText:e.unsubscribedButtonText)?_.Bz(r):void 0;return b.call(S,{},O,Y,{focused:!1,toggled:E,accessibilityLabel:q,formattedButtonText:r,onTap:FtM(e,E,d,T,v)})}}}});
Kj.prototype.onMouseDown=Kj.prototype.onMouseDown;Kj.prototype.onDataChanged=Kj.prototype.onDataChanged;Kj.prototype.observedSubscribed=Kj.prototype.observedSubscribed;Kj.prototype.onYtServiceRequestCompleted=Kj.prototype.onYtServiceRequestCompleted;Kj.prototype.onYtServiceRequestSent=Kj.prototype.onYtServiceRequestSent;Kj.prototype.maybeUpdateBellButtonText=Kj.prototype.maybeUpdateBellButtonText;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Kj.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Kj.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Kj.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Kj.prototype,"data",void 0);
_.c([_.f({selectorArgs:["data.subscribedEntityKey"],selector:ZHO}),_.w("design:type",Object)],Kj.prototype,"subscriptionStateEntity",void 0);_.c([_.f({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Kj.prototype,"subscribed",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Kj.prototype,"branded",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Kj.prototype,"animatedActionEnabled",void 0);
_.c([_.f(),_.w("design:type",Object)],Kj.prototype,"foregroundLottieRef",void 0);_.c([_.f(),_.w("design:type",Object)],Kj.prototype,"backgroundLottieRef",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Kj.prototype,"overlayButton",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.w("design:type",Object)],Kj.prototype,"buttonStyle",void 0);_.c([_.f(),_.w("design:type",Object)],Kj.prototype,"forceIconOnly",void 0);
_.c([_.f(),_.w("design:type",Object)],Kj.prototype,"showTextWhileAnimating",void 0);_.c([_.f({value:function(){return!!_.dk().resolve(_.eG(_.i$))&&_.N("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.w("design:type",Boolean)],Kj.prototype,"useKeyboardFocused",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Kj.prototype,"keyboardFocused",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Kj.prototype,"isAnimating",void 0);_.c([_.t("data.notificationPreferenceButton.*"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kj.prototype,"hasBellButton",null);
_.c([_.$v("subscribedButtonText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Kj.prototype,"maybeUpdateBellButtonText",null);_.c([_.t("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kj.prototype,"subscribedButtonText",null);_.c([_.t("data.timedAnimationData.animationTiming","subscribed"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kj.prototype,"smartimationSettings",null);
_.c([_.f({reflectToAttribute:!0}),_.t("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kj.prototype,"subscribeButtonHidden",null);_.c([_.f({reflectToAttribute:!0}),_.t("subscribed","hasBellButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kj.prototype,"subscribeButtonInvisible",null);
_.c([_.f({reflectToAttribute:!0}),_.t("subscribed"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kj.prototype,"unsubscribeButtonHidden",null);_.c([_.sg("ytd-subscription-notification-toggle-button-renderer-next"),_.w("design:type",Object)],Kj.prototype,"bellButton",void 0);_.c([_.sg("#subscribe-button-shape"),_.w("design:type",HTMLElement)],Kj.prototype,"subscribeButtonShape",void 0);
_.c([_.t("overlayButton","subscribed","data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kj.prototype,"buttonShape",null);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],Kj.prototype,"onYtServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],Kj.prototype,"onYtServiceRequestCompleted",null);
_.c([_.$v("subscribed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Kj.prototype,"observedSubscribed",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Kj.prototype,"onDataChanged",null);_.c([_.Kq("mousedown"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Kj.prototype,"onMouseDown",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Kj);
_.A(Kj,"ytd-subscribe-button-renderer",function(){if(FtJ!==void 0)return FtJ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return FtJ=v},{mode:1});var $7=function(){var v=_.P.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.V($7,_.P);$7.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$7.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],$7.prototype,"isRichGrid",void 0);_.c([_.z({is:"ytd-game-card-renderer",disableElementRegistration:!0})],$7);
_.A($7,"ytd-game-card-renderer",function(){if(ZxB!==void 0)return ZxB;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ZxB=v},{mode:1});var jY={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.N("defer_menus")&&!tu0?0:void 0,waitForSignal:"eocs"};var Qwi;var gAi;var s2=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return v};
_.V(s2,_.P);_.W=s2.prototype;_.W.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.W.onSeriesReminderStateEntityChange=function(){var v,e,d;((v=this.eventReminderStateEntity)==null?0:v.key)&&((e=this.seriesReminderStateEntity)==null?void 0:e.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((d=this.eventReminderStateEntity)==null?void 0:d.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Lv("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.W.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.W.onYtServiceRequestError=function(){var v;this.updateReminderStateEntitiesFromButtonState((v=this.data)==null?void 0:v.currentState)};
_.W.handleUpdateUpcomingEventReminderButtonStateCommand=function(v){if(v=_.L(v,JbM)){var e,d=(e=this.data)==null?void 0:e.targetId;d&&v.targetId===d&&_.Q1(this.updateReminderStateEntitiesFromButtonState.bind(this,v.state))}};
_.W.getButtonStateFromReminderState=function(){var v;if(((v=this.seriesReminderStateEntity)==null?void 0:v.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var e;if(((e=this.eventReminderStateEntity)==null?void 0:e.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var d,E;if(((d=this.seriesReminderStateEntity)==null?void 0:d.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((E=this.eventReminderStateEntity)==
null?void 0:E.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var T;return(T=this.data)==null?void 0:T.currentState};
_.W.updateReminderStateEntitiesFromButtonState=function(v){if(v){switch(v){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":v="UPCOMING_EVENT_REMINDER_STATE_NONE";var e="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":v="UPCOMING_EVENT_REMINDER_STATE_SINGLE";e="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":v="UPCOMING_EVENT_REMINDER_STATE_NONE";e="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var d;
((d=this.eventReminderStateEntity)==null?0:d.key)&&this.ytdReduxBehavior.dispatch(_.Lv("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:v})));var E;((E=this.seriesReminderStateEntity)==null?0:E.key)&&this.ytdReduxBehavior.dispatch(_.Lv("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:e})))}};
_.vP.Object.defineProperties(s2.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var v=this.getButtonStateFromReminderState(),e,d;if(v&&((e=this.data)==null?0:(d=e.states)==null?0:d.length))for(e=_.a(this.data.states),d=e.next();!d.done;d=e.next()){d=d.value;var E=void 0;if(((E=_.L(d,GfA))==null?void 0:E.state)===v)return _.L(d,GfA)}}}});
s2.prototype.onYtServiceRequestError=s2.prototype.onYtServiceRequestError;s2.prototype.onYtServiceRequestCompleted=s2.prototype.onYtServiceRequestCompleted;s2.prototype.onSeriesReminderStateEntityChange=s2.prototype.onSeriesReminderStateEntityChange;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],s2.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],s2.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],s2.prototype,"data",void 0);_.c([_.f({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:wNS}),_.w("design:type",Object)],s2.prototype,"eventReminderStateEntity",void 0);
_.c([_.f({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(v,e){return _.h_(v.entities,"sportsSeriesReminderStateEntity",e)}}),
_.w("design:type",Object)],s2.prototype,"seriesReminderStateEntity",void 0);_.c([_.t("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],s2.prototype,"currentButtonStateRenderer",null);_.c([_.$v("seriesReminderStateEntity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],s2.prototype,"onSeriesReminderStateEntityChange",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],s2.prototype,"onYtServiceRequestCompleted",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],s2.prototype,"onYtServiceRequestError",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],s2);
_.A(s2,"ytd-upcoming-event-reminder-button-renderer",function(){if(gAi!==void 0)return gAi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return gAi=v},{mode:1});var u_7;var Nw=function(){return _.P.apply(this,arguments)||this};
_.V(Nw,_.P);Nw.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.vP.Object.defineProperties(Nw.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(_.N("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Nw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Nw.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Nw.prototype,"shelfDismissal",void 0);_.c([_.t("data.responseText"),_.w("design:type",Object),_.w("design:paramtypes",[])],Nw.prototype,"text",null);
_.c([_.t("data.responseText"),_.w("design:type",Object),_.w("design:paramtypes",[])],Nw.prototype,"textAriaLabel",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Nw);
_.A(Nw,"ytd-notification-multi-action-renderer",function(){if(u_7!==void 0)return u_7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return u_7=v},{mode:1});var nAM;var k7=function(){return _.P.apply(this,arguments)||this};
_.V(k7,_.P);k7.prototype.ready=function(){var v=this;_.IB(this.hostElement).querySelector("#undo").addEventListener("tap",function(){v.onUndoTap()})};
k7.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.dk().resolve(_.EI).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],k7.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],k7);
_.A(k7,"ytd-notification-text-renderer",function(){if(nAM!==void 0)return nAM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return nAM=v},{mode:1});var DW2;var Lj=function(){var v=_.P.apply(this,arguments)||this;v.mouseOverDelayJobId=0;v.fadeInImageDelayJobId=0;v.startTimeMs=-1;v.loadingStartTimeMs=-1;v.loadingEndTimeMs=-1;v.hasVideoPreview=!1;return v};
_.V(Lj,_.P);_.W=Lj.prototype;_.W.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.W.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.W.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.W.showThumbnail=function(){var v=this;this.csn=_.zz();_.l4("fmth");_.RM.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Yj(_.RM,function(){v.loadingStartTimeMs=(0,_.E$)();var e=_.IB(v.hostElement).querySelector("#thumbnail");e.complete?v.displayMouseOverImage():e.addEventListener("load",_.hG(v,v.displayMouseOverImage))},150):_.Yv(_.IB(this.hostElement).querySelector("#play"),"show",!0)};
_.W.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.W.onTap=function(){this.removeVideoPreview()};
_.W.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var v=this.videoId,e=this.csn,d=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,E=this.startTimeMs,T=this.hasVideoPreview,S=_.Jg(this.trackingParams),O={isMovingThumbnail:T};T&&E>0&&(d>0&&(O.movingThumbnailLoadingDurationMs=Math.round(d)),O.durationHoveredMs=Math.round((0,_.E$)()-E));v&&(O.videoId=v);_.pB(e,S,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:O});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.W.removeVideoPreview=function(){_.RM.cancelJob(this.mouseOverDelayJobId);_.RM.cancelJob(this.fadeInImageDelayJobId);var v=_.IB(this.hostElement).querySelector("#thumbnail");_.Yv(v,"fade-in",!1);v.removeEventListener("load",_.hG(this,this.displayMouseOverImage));v=_.IB(this.hostElement).querySelector("#play");_.Yv(v,"fade-in",!1);_.Yv(v,"show",!1)};
_.W.displayMouseOverImage=function(){var v=_.IB(this.hostElement).querySelector("#thumbnail"),e=_.IB(this.hostElement).querySelector("#play");this.isImageAvailable(v)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.E$)(),this.startTimeMs=(0,_.E$)(),this.fadeInImageDelayJobId=_.Yj(_.RM,function(){_.Yv(v,"fade-in",!0)},50)):_.Yv(e,"fade-in",!0)};
_.W.computeThumbnail=function(v,e){var d;v&&v.movingThumbnailDetails&&v.movingThumbnailDetails.thumbnails&&e?d=_.i2(v.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):d=e?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(d)return _.xm(d)};
_.W.isImageAvailable=function(v){return!(!v.src||v.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||v.naturalWidth===120)};
Lj.prototype.onTap=Lj.prototype.onTap;Lj.prototype.dataChanged=Lj.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Lj.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Lj.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Lj.prototype,"csn",void 0);_.c([_.f(),_.w("design:type",Object)],Lj.prototype,"trackingParams",void 0);
_.c([_.f(),_.w("design:type",String)],Lj.prototype,"videoId",void 0);_.c([_.f(),_.w("design:type",Boolean)],Lj.prototype,"isAttachedAndDataSet",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Lj.prototype,"dataChanged",null);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Lj.prototype,"onTap",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Lj);
_.A(Lj,"ytd-moving-thumbnail-renderer",function(){if(DW2!==void 0)return DW2;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return DW2=v},{mode:1});var UWJ;_.dQ=function(v){this.hostElement=v;this.eventSink=null;this.eventList=[]};
_.dQ.prototype.shouldForward=function(){var v,e;return(e=(v=this.eventSink)==null?void 0:v.isConnected)!=null?e:document.body.contains(this.eventSink)};
_.dQ.prototype.start=function(v,e){this.eventSink&&this.stop();for(var d=0;d<v.length;d++)this.hostElement.addEventListener(v[d],_.hG(this,this.forwardEvent));var E;this.eventSink=(E=e.hostElement)!=null?E:e;this.eventList=v};
_.dQ.prototype.stop=function(){for(var v=0;v<this.eventList.length;v++)this.hostElement.removeEventListener(this.eventList[v],_.hG(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.dQ.prototype.forwardEvent=function(v,e){this.shouldForward()&&(v.stopPropagation(),this.eventSink instanceof Element?_.Iq(this.eventSink,v.type,e):_.xf(new _.kL("eventSink is not an element")))};_.Vo={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.dQ(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(v,e){this.forwarder_.start(v,e)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var o6=function(){return _.P.apply(this,arguments)||this};
_.V(o6,_.P);_.W=o6.prototype;_.W.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=_.Bb("HTML_DIR")==="rtl"?"right":"left"};
_.W.dataChanged=function(){this.popupOpen=!1};
_.W.computeAriaLabel=function(v){return _.L(v,Lvu).label};
_.W.onTap=function(v){v.stopPropagation();v.preventDefault();this.data.command&&_.dk().resolve(_.EI).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.W.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.W.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
o6.prototype.onPopupClosed=o6.prototype.onPopupClosed;o6.prototype.onPopupOpened=o6.prototype.onPopupOpened;o6.prototype.onTap=o6.prototype.onTap;o6.prototype.dataChanged=o6.prototype.dataChanged;_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],o6.prototype,"eventForwardingBehavior",void 0);_.c([_.M(_.MS),_.w("design:type",Object)],o6.prototype,"ironButtonState",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],o6.prototype,"componentBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],o6.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:-1}),_.w("design:type",Number)],o6.prototype,"tabindex",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.w("design:type",Object)],o6.prototype,"ariaLabel",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],o6.prototype,"disableTooltips",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],o6.prototype,"popupOpen",void 0);
_.c([_.f(),_.w("design:type",Element)],o6.prototype,"eventSink",void 0);_.c([_.sg("#tooltip"),_.w("design:type",Object)],o6.prototype,"tooltip",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],o6.prototype,"dataChanged",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],o6.prototype,"onTap",null);
_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],o6.prototype,"onPopupOpened",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],o6.prototype,"onPopupClosed",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],o6);
_.A(o6,"ytd-thumbnail-overlay-button-renderer",function(){if(UWJ!==void 0)return UWJ;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return UWJ=v},{mode:1});var pR7;var JQ=function(){return _.P.apply(this,arguments)||this};
_.V(JQ,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JQ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],JQ.prototype,"disableAnimation",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],JQ.prototype,"rounded",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],JQ.prototype,"transparentBackground",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],JQ.prototype,"noPadding",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],JQ);
_.A(JQ,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(pR7!==void 0)return pR7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return pR7=v},{mode:1});var vFu;var Gy=function(){return _.P.apply(this,arguments)||this};
_.V(Gy,_.P);Gy.prototype.computeIconPosition=function(v){return this.get("iconPosition",v)||null};
Gy.prototype.computeIconStyle=function(v){return this.get("iconStyle",v)||null};
Gy.prototype.computeIsIconStyleFilled=function(v){if(!v)return!1;var e;return v.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((e=v.icon)==null?void 0:e.iconType)==="ERROR_BLACK"};
_.c([_.f(),_.w("design:type",Object)],Gy.prototype,"data",void 0);_.c([_.f({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.w("design:type",Object)],Gy.prototype,"iconPosition",void 0);_.c([_.f({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.w("design:type",Object)],Gy.prototype,"iconStyle",void 0);_.c([_.f({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Gy.prototype,"iconStyleFilled",void 0);
_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Gy);
_.A(Gy,"ytd-thumbnail-overlay-icon-renderer",function(){if(vFu!==void 0)return vFu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return vFu=v},{mode:1});var eFA;var Mw=function(){return _.P.apply(this,arguments)||this};
_.V(Mw,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Mw.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Mw);
_.A(Mw,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(eFA!==void 0)return eFA;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return eFA=v},{mode:1});var dXu;var tQ=function(){var v=_.P.apply(this,arguments)||this;v.isPreviewLoading=!1;return v};
_.V(tQ,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],tQ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],tQ.prototype,"isPreviewLoading",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],tQ);
_.A(tQ,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(dXu!==void 0)return dXu;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return dXu=v},{mode:1});var EF2;var fj=function(){return _.P.apply(this,arguments)||this};
_.V(fj,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fj.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],fj);
_.A(fj,"ytd-thumbnail-overlay-pinking-renderer",function(){if(EF2!==void 0)return EF2;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return EF2=v},{mode:1});var T0A;var R6=function(){var v=_.P.apply(this,arguments)||this;v.disableTooltips=!1;v.isLoading=!1;v.useExpandableTooltip=!1;v.toggled=!1;v.hovered=!1;v.mouseoverDelayJobId=0;v.toggleDelayJobId=0;v.expandAnimationDelayJobId=0;return v};
_.V(R6,_.P);_.W=R6.prototype;_.W.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");_.IB(this.hostElement).querySelector("#tooltip").position=_.Bb("HTML_DIR")==="rtl"?"right":"left"};
_.W.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.RM.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.RM.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.RM.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.W.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.RM.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.RM.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.RM.cancelJob(this.expandAnimationDelayJobId)};
_.W.computeIcon=function(v,e,d){return(v=d?e:v)&&v.iconType?_.qC(v.iconType):void 0};
_.W.computeAriaLabel=function(v,e,d){return _.L(d?e:v,Lvu).label};
_.W.computeTooltip=function(v,e,d){return d?e:v};
_.W.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.W.computeIconOnHover=function(v,e){if((v==null?0:v.iconType)&&!e)return _.qC(v.iconType)};
_.W.onTap=function(v){var e=this;v.stopPropagation();v.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(v=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(v),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Yj(_.RM,function(){e.hovered=!1;e.data&&!e.data.toggledServiceEndpoint&&(e.expandAnimationDelayJobId=_.Yj(_.RM,function(){e.set("data.isToggled",
!1)},200))},2E3))};
_.W.onMouseenter=function(){var v=this;this.mouseoverDelayJobId=_.Yj(_.RM,function(){v.hovered=!0},300)};
_.W.onMouseleave=function(){_.RM.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.W.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.W.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.W.onServiceRequestCompleted=function(v,e){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(e)||this.set("data.isToggled",!this.data.isToggled)};
_.W.serviceRequestWasSuccessful=function(v){return _.L(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Ri)?v.data.status==="STATUS_SUCCEEDED":!0};
R6.prototype.onServiceRequestCompleted=R6.prototype.onServiceRequestCompleted;R6.prototype.onPopupClosed=R6.prototype.onPopupClosed;R6.prototype.onPopupOpened=R6.prototype.onPopupOpened;R6.prototype.onMouseleave=R6.prototype.onMouseleave;R6.prototype.dataChanged=R6.prototype.dataChanged;_.c([_.M(_.MS),_.w("design:type",Object)],R6.prototype,"ironButtonState",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],R6.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],R6.prototype,"ytEventForwardingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],R6.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.w("design:type",Object)],R6.prototype,"ariaLabel",void 0);_.c([_.f(),_.w("design:type",Object)],R6.prototype,"disableTooltips",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],R6.prototype,"popupOpen",void 0);_.c([_.f(),_.w("design:type",Object)],R6.prototype,"isLoading",void 0);_.c([_.f(),_.w("design:type",Element)],R6.prototype,"eventSink",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],R6.prototype,"useExpandableTooltip",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.w("design:type",Object)],R6.prototype,"toggled",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],R6.prototype,"hovered",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.w("design:type",Object)],R6.prototype,"iconOnHover",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],R6.prototype,"dataChanged",null);
_.c([_.Kq("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],R6.prototype,"onMouseleave",null);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],R6.prototype,"onPopupOpened",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],R6.prototype,"onPopupClosed",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],R6.prototype,"onServiceRequestCompleted",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],R6);
_.A(R6,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(T0A!==void 0)return T0A;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return T0A=v},{mode:_.bk("kevlar_poly_si_batch_j053")?1:2});var S7B;var Wcn=_.l(function(v){var e=v.data;var d=v.thumbnailSize;var E=function(){return e().enableSegmentView};
return _.m("yt-thumbnail-overlay-progress-bar-view-model",{class:_.qe("ytThumbnailOverlayProgressBarHost",function(){return u_t(d==null?void 0:d())})},_.m(_.y,{cond:E,
then:function(){return _.m("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.m("div",{class:_.tX("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+e().startPercent+"%"}}),_.m("div",{class:_.tX("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+e().segmentDurationPercent+"%"}},_.m("div",{class:_.tX("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.m("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.m("div",null," ",function(){return e().segmentLabel})),_.m("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.m("div",{class:_.tX("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.m(_.y,{cond:function(){return!E()&&e().startPercent},
then:function(){var T={};return _.m("div",{class:_.tX("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(T.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.N("web_enable_modern_progress_bar_overlay"),T))},_.m("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+e().startPercent+"%"}}))}}))},"X");
Wcn.idomCompat=!0;var aA6=_.l(function(v){var e=_.y0(),d=_.Xj(function(T){var S,O,b;a:{var Y=(S=v.data())==null?void 0:S.animationActivationTargetId;S=((O=v.data())==null?void 0:O.animationActivationEntityKey)||"";O=(b=v.data())==null?void 0:b.animationActivationEntitySelectorType;if(S&&Y)switch(O){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":T=_.h_(T.entities,"playerStateEntity",S);b=_.dk().resolve(_.eG(_.P0));Y=!!(T&&T.videoId===Y&&(b==null?0:b.isMiniplayerActive()));Y={activated:Y,playAnimation:Y&&
T.playerState==="PLAYER_STATE_PLAYING"};break a}Y=void 0}return Y});
_.o_(function(){var T;if((T=d())==null?0:T.activated){var S;if((S=d())==null?0:S.playAnimation){var O;(O=e.lottieEl)==null||O.goToAndPlay(0)}else{var b;(b=e.lottieEl)==null||b.goToAndStop(0)}}},"DbQiXd");
var E=function(){var T,S=!((T=d())==null||!T.activated);if(v.data()){T=v.data();var O=void 0;T.icon&&(O=_.Vn7(T.icon),O=RGW(O));var b=void 0,Y;if((Y=T.backgroundColor)==null?0:Y.lightTheme){var q;b={backgroundColor:FD((q=T.backgroundColor)==null?void 0:q.lightTheme,"0.8")}}if(T.text||O||S){if(S&&T.lottieData&&e){q=T.lottieData;var r,h,K;Y={animationConfig:{name:q.url,path:q.url,autoplay:(r=q.settings)==null?void 0:r.autoplay,loop:(K=(h=q.settings)==null?void 0:h.loop)!=null?K:!0},animationRef:e}}else Y=
void 0;if(S)r=17;else b:switch(T.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":r=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":r=19;break b;default:r=17}S={type:r,text:S&&T.animatedText?T.animatedText:T.text,icon:O,customColors:b,animation:Y}}else S=void 0}else S=void 0;return S};
return _.m("yt-thumbnail-badge-view-model",{class:_.qe("ytThumbnailBadgeViewModelHost",v.class)},_.m(_.y,{cond:E,then:function(){return _.m(_.H7,{data:function(){return E()}})}}))},"Y");var iNM=_.l(function(v){var e={},d={};return _.m("yt-thumbnail-bottom-overlay-view-model",{class:_.qe("ytThumbnailBottomOverlayViewModelHost",(e.ytThumbnailBottomOverlayViewModelHostBackground=function(){return v.data().enableGradientBackground},e))},_.m(_.kz,{data:function(){return v.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(E){return _.m(Wcn,{data:E.data,
thumbnailSize:v.thumbnailSize})}}),_.m("div",{class:_.qe("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var E;
return nAL((E=v.thumbnailSize)==null?void 0:E.call(v))},(d.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var E;
return(E=v.isClip)==null?void 0:E.call(v)},d.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var E;
return!_.N("web_enable_modern_progress_bar_overlay")&&((E=v.thumbnailSize)==null?void 0:E.call(v))==="small"},d))},_.m(_.kz,{data:function(){return v.data().badge}},{thumbnailBadgeViewModel:function(E){return _.m(aA6,{data:E.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.m(_.kz,{data:function(){return v.data().badges}},{thumbnailBadgeViewModel:function(E){return _.m(aA6,{data:E.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Z");
iNM.idomCompat=!0;_.aZ(iNM,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.SM,thumbnailSize:_.SM,isClip:_.SM}});var WcH={calledOnce:!1,state:"visible"},aA0={calledOnce:!1,state:"hidden"};var Py=_.l(function(v){var e=v.data;var d=v.className;v=v.alwaysShow;var E=_.pRt(),T={};return _.m("thumbnail-hover-overlay-view-model",{el:_.dq(_.B5(function(){return e().rendererContext})),
class:_.qe("ytThumbnailHoverOverlayViewModelHost",d,(T.ytThumbnailHoverOverlayViewModelHostForceHover=v,T)),"aria-label":function(){var S;return(S=_.L(e().rendererContext,_.K6))==null?void 0:S.label},
role:function(){return _.P5(e().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.P5(e().rendererContext)!==void 0?0:void 0},
"on:keypress":E},_.m("div",{class:_.qe("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(e().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var S="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:S="ytThumbnailHoverOverlayViewModelStyleCover"}return S})},_.m(_.y,{cond:function(){return e().icon},
then:function(S){return _.m(_.va,{data:S,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.m(_.y,{cond:function(){return e().text},
then:function(S){return _.m(_.Dh,{text:S,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"$");
Py.idomCompat=!0;var ONA=_.l(function(v){var e=v.data;return _.m(_.kz,{data:function(){return e==null?void 0:e().overlays}},{thumbnailHoverOverlayViewModel:Py})},"aa");
ONA.idomCompat=!0;var IAJ={};var bNA=_.l(function(v){var e=v.data;var d=v.image;var E=v.state;var T=v.iconType;var S=v.overlays;var O=v.isOverlay;var b=_.Dq("div");v=_.a(_.OE(!0,void 0,"sUzEZ"));var Y=v.next().value,q=v.next().value,r=function(){return!!e().onTap},h=_.e2(T,"LIVE");
_.o_(function(){var k=e();requestAnimationFrame(function(){if(b.value===null)var J=!0;else{var R=b.value;J=k.badgeText;var B=IAM(k.size);J in IAJ?R=IAJ[J]:(R=R.clientWidth,IAJ[J]=R);(J=R>B)?b.value.style.display="none":b.value.style.visibility="visible"}q(J)})},"SpVcNb");
var K=function(){var k={};return k["yt-spec-avatar-shape__image"]=!0,k["yt-spec-avatar-shape__image--ads-app"]=e().type===1,k};
return _.m("yt-avatar-shape",null,_.m("div",{el:_.dq(Y77(r,{keydown:function(k){if(k.key==="Enter"){var J;(J=k.currentTarget)==null||J.click()}},
click:function(k){var J,R;return void((R=(J=e()).onTap)==null?void 0:R.call(J,k))}})),
class:function(){var k={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},J=e();k=(k[J.clusterLayoutConfig?q7O(J.clusterLayoutConfig):rSM(J.size)]=!0,k["yt-spec-avatar-shape__button--tappable"]=r(),k);(J=e().avatarButtonCustomClassName)&&(k[J]=!0);return _.tX(k)},
"aria-label":function(){return r()?e().accessibilityText:""},
role:function(){return r()?"button":void 0},
tabindex:function(){return r()?0:void 0}},_.m("div",{class:function(){var k,J=e(),R=E==null?void 0:E(),B=O==null?void 0:O(),X=!((k=J.decorations)==null||!k.includes(2)||J.size!=="medium"&&J.size!=="large"),Z=J.size==="tiny"||J.size==="extra-small",U,F,g,Q,v3={};
k=(v3["yt-spec-avatar-shape--live-ring"]=!!(((U=J.decorations)==null?0:U.includes(0))&&KcM(J.size)),v3["yt-spec-avatar-shape--stories-watched"]=X&&!(R==null||!R.storiesWatched),v3["yt-spec-avatar-shape--stories-unwatched"]=X&&!(R==null?0:R.storiesWatched),v3["yt-spec-avatar-shape--background-border"]=$Xt(J.decorations)&&!Z,v3["yt-spec-avatar-shape--background-border-thin"]=$Xt(J.decorations)&&Z,v3["yt-spec-avatar-shape__on-select-border"]=!((F=J.decorations)==null||!F.includes(4)),v3["yt-spec-avatar-shape__white-border"]=
!((g=J.decorations)==null||!g.includes(5)),v3["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((Q=J.decorations)==null?0:Q.includes(5))&&Z),v3["yt-spec-avatar-shape--is-overlay"]=!!B,v3);return _.tX(k)},
style:function(){a:{var k=e().clusterLayoutConfig;if(k){b:{var J=k.numAvatarsInCluster;var R=k.avatarIndex;if(R!==J-1){switch(k.clusterSize){case "small":k="32";break;case "medium":k="36";break;case "40":k="40";break;default:J=void 0;break b}J="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+k+"x"+k+"_avatars_"+J+"_index_"+R+".svg"}else J=void 0}if(J){J=_.jM({"-webkit-mask-image":"url("+J+")","mask-image":"url("+J+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}J=void 0}return J}},_.m("div",{class:function(){var k={};
var J=e();k=(k[J.clusterLayoutConfig?mXO(J.clusterLayoutConfig):ySM(J.size)]=!0,k["yt-spec-avatar-shape--no-margin"]=$Xt(e().decorations),k);return _.tX(k)}},_.m(_.va,{data:d,
alt:function(){return!r()&&e().accessibilityText?e().accessibilityText:""},
targetWidth:function(){return hFj(e().size)},
targetHeight:function(){return hFj(e().size)},
className:function(){return _.tX(K())}}),_.m(_.y,{cond:function(){var k;
return((k=e().decorations)==null?void 0:k.includes(0))&&KcM(e().size)},
then:function(){return _.m("div",{class:function(){var k={};k=(k["yt-spec-avatar-shape__live-badge"]=!0,k["yt-spec-avatar-shape__live-badge--badge-small"]=e().size==="small",k["yt-spec-avatar-shape__live-badge--badge-medium"]=e().size==="medium"||e().size==="48",k["yt-spec-avatar-shape__live-badge--badge-large"]=e().size==="large",k["yt-spec-avatar-shape__live-badge--badge-extra-large"]=e().size==="extra-large"||e().size==="extra-extra-large"||e().size==="giant",k);return _.tX(k)}},_.m(_.y,{cond:function(){return e().badgeText},
then:function(k){return _.m("div",{class:"yt-spec-avatar-shape__badge-text",el:b},k)}}),_.m(_.y,{cond:Y,
then:function(){return _.m("div",{class:"yt-spec-avatar-shape__badge-icon"},_.m(_.sG,{icon:h,size:function(){a:switch(e().size){case "extra-large":var k=16;break a;default:k=13}return k}}))}}))}}),_.m(_.y,{cond:function(){var k,J;
return((k=e().decorations)==null?void 0:k.includes(1))||((J=e().decorations)==null?void 0:J.includes(0))&&!KcM(e().size)},
then:function(){return _.m("div",{class:function(){var k=e(),J,R,B={};var X=(B["yt-spec-avatar-shape__live-dot"]=!((J=k.decorations)==null||!J.includes(0)||KcM(k.size)),B["yt-spec-avatar-shape__new-content"]=!((R=k.decorations)==null||!R.includes(1)),B);return _.tX(X)}})}}),_.m(_.y,{cond:function(){return!!S},
then:function(){return _.m("div",{class:function(){var k={};k=Object.assign((k["yt-spec-avatar-shape__image-overlays"]=!0,k),K());return _.tX(k)}},S==null?void 0:S())}})))))},"ba");
bNA.idomCompat={callbacks:{overlays:!0}};_.x7=_.l(function(v){function e(){d().endpoint&&_.wC(d().endpoint)}
var d=v.data;var E=v.decorations;var T=v.avatarButtonCustomClassName;var S=v.isOverlay;var O=v.clusterLayoutConfig;return _.m("avatar-view-model",null,_.m(_.y,{cond:function(){return d().image},
then:function(b){return _.m(bNA,{data:function(){return sN3({data:d(),onTap:d().endpoint?e:void 0,decorations:E==null?void 0:E(),badgeText:void 0,accessibilityText:d().accessibilityText,avatarButtonCustomClassName:T==null?void 0:T(),clusterLayoutConfig:O==null?void 0:O()})},
image:b,iconType:"RADAR_LIVE",overlays:function(){return _.m(ONA,{data:d})},
isOverlay:S})}}))},"ca");
_.x7.idomCompat=!0;_.By=_.l(function(v){var e=v.data;v=v.className;var d=_.Dq("yt-decorated-avatar-view-model"),E=function(){return _.L(e().avatar,_.Cv)},T=_.yl(function(){var S,O=e(),b=E(),Y=_.P5(e().rendererContext),q=(S=d.value)!=null?S:void 0,r;
if(b){q={data:O,avatar:b,onTap:Y,element:q};S=q.data;O=q.avatar;b=q.onTap;Y=q.element;q=q.commandController;b=b?VbM(b,Y,q):void 0;Y=[];S.liveData&&Y.push(0);var h;q=(h=S.liveData)==null?void 0:h.liveBadgeText;h=(r=_.L(S.rendererContext,_.K6))==null?void 0:r.label;r=sN3({data:O,onTap:b,decorations:Y,badgeText:q,accessibilityText:h?h:S.a11yLabel})}else r={size:"medium"};return r},void 0,"c00kWd");
return _.m("yt-decorated-avatar-view-model",{class:_.qe("ytDecoratedAvatarViewModelHost",v),el:d},_.m(_.y,{cond:function(){var S;return(S=E())==null?void 0:S.image},
then:function(S){return _.m(bNA,{data:T,image:S,iconType:"RADAR_LIVE",overlays:function(){return _.m(ONA,{data:E})}})}}))},"da");
_.By.idomCompat=!0;_.Cj=_.l(function(v){var e=function(){var b;return Object.assign({},v.data(),(b=v.overrides)==null?void 0:b.call(v))},d=function(){return _.xz(e().rendererContext)},E=function(){var b=e().avatars,Y,q;
return(q=(Y=(b==null?0:b[0])?_.L(b[0],_.Cv):void 0)==null?void 0:Y.avatarImageSize)!=null?q:"AVATAR_SIZE_UNKNOWN"},T=function(){return Lct(e())},S=function(){if(e().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var b=void 0;
else if((b=v.decorations)==null?0:b.call(v))b=v.decorations();else{b=e();var Y=0;b.avatars&&(Y+=b.avatars.length);b.decoratedText&&(Y+=1);b=Y>1?[3]:[]}return b},O={};
return _.m("yt-avatar-stack-view-model",{el:_.dq(_.B5(function(){return e().rendererContext})),
class:_.qe("yt-avatar-stack-view-model-wiz",v.className,(O["yt-avatar-stack-view-model-wiz--tappable"]=d,O["yt-avatar-stack-view-model-wiz--is-overlay"]=v.isOverlay,O["yt-avatar-stack-view-model-wiz--medium-text"]=v.useMediumText,O)),tabindex:function(){return d()?0:void 0},
role:function(){return d()?"link":void 0},
"aria-label":function(){var b,Y;return(Y=(b=_.L(e().rendererContext,_.K6))==null?void 0:b.label)!=null?Y:""}},_.m(_.y,{cond:function(){var b;
return e().avatars&&!((b=v.hideAvatar)==null?0:b.call(v))},
then:function(){return _.m("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.m(_.y,{cond:function(){return e().decoratedText},
then:function(b){var Y={};return _.m("div",{class:_.qe("yt-avatar-stack-view-model-wiz__text-container",(Y["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return E()==="AVATAR_SIZE_XXS"||E()==="AVATAR_SIZE_XS"},Y["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var q;
return((q=v.isOverlay)==null?void 0:q.call(v))&&(E()==="AVATAR_SIZE_XXS"||E()==="AVATAR_SIZE_XS")},Y)),
style:_.jM({width:function(){return T().avatarSizeInPx+"px"},
height:function(){return T().avatarSizeInPx+"px"}})},_.m(_.Dh,{text:b,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.m("div",{style:function(){return _.jM(T().avatarStackStyle)()},
class:function(){return T().avatarStackClass}},_.m(_.kz,{data:function(){return T().avatars.reverse()}},{avatarViewModel:function(b,Y){return _.m("div",{style:function(){var q,r;
return _.jM((r=(q=T()).avatarStyle)==null?void 0:r.call(q,Y()))()},
class:function(){return T().avatarClass}},_.m(_.x7,{data:b.data,
decorations:S,avatarButtonCustomClassName:function(){return T().avatarButtonCustomClassName},
isOverlay:v.isOverlay,clusterLayoutConfig:function(){var q,r;return(r=(q=T()).clusterLayoutConfig)==null?void 0:r.call(q,Y())}}))},
decoratedAvatarViewModel:function(b,Y){return _.m("div",{style:function(){var q,r;return _.jM((r=(q=T()).avatarStyle)==null?void 0:r.call(q,Y()))()},
class:function(){return T().avatarClass}},_.m(_.By,{data:b.data}))}})))}}),_.m(_.y,{cond:function(){return e().text},
then:function(b){return _.m(_.Dh,{text:b,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ea");
_.Cj.idomCompat=!0;_.aZ(_.l(function(v){var e=v.data;var d=v.thumbnailSize;return _.m("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.m("div",{class:_.qe("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return oF3(d==null?void 0:d())})},_.m(_.kz,{data:function(){return e().avatarStack}},{avatarStackViewModel:function(E){return _.m(_.Cj,{data:E.data,
decorations:[5]})}})))},"fa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.U1,
thumbnailSize:_.U1}});var Y7i=_.l(function(v){v=_.dC(v,{hidden:!1});var e=v.data;return _.m("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:v.hidden},_.m(_.Dh,{text:function(){return e().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.m(_.y,{cond:function(){return e().subtitle},
then:function(){return _.m(_.Dh,{text:function(){return e().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"ga");
Y7i.idomCompat=!0;_.aZ(Y7i,"yt-thumbnail-overlay-title-view-model",{props:{data:_.U1,hidden:_.U1}});var mX2=_.l(function(v){v=_.dC(v,{isClip:!1});var e=v.data,d=v.thumbnailSize,E={};return _.m("yt-thumbnail-overlay-badge-view-model",{class:_.qe("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(e().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 JSH(d==null?void 0:d())},(E["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
v.isClip,E))},_.m(_.kz,{data:function(){return e().thumbnailBadges}},{thumbnailBadgeViewModel:function(T){return _.m(aA6,{data:T.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ha");
mX2.idomCompat=!0;_.aZ(mX2,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.U1,thumbnailSize:_.U1,isClip:_.U1}});var ySJ=_.l(function(v){var e=v.data;v=v.hidden;var d=_.yl(function(){return e().indicatorCount||0},void 0,"RYwqDc"),E={};
return _.m("yt-page-indicator-view-model",{class:_.qe("yt-page-indicator-view-model",(E["yt-page-indicator-view-model__indicator--hidden"]=function(){return!e().indicatorCount},E)),
hidden:v},_.m(_.jI,{each:function(){return Array(d())}},function(T,S){var O={};
return _.m("div",{class:_.qe("yt-page-indicator-view-model__indicator",(O["yt-page-indicator-view-model__indicator--selected"]=function(){return e().selectedIndex===S()},O))})}))},"ia");
ySJ.idomCompat=!0;_.aZ(ySJ,"yt-page-indicator-view-model",{props:{data:_.U1,hidden:_.U1}});var Xm=function(){var v=_.P.apply(this,arguments)||this;v.eventSink=function(){return v};
v.disableInteraction=!1;v.noRoundedCorners=!1;v.isPreviewLoading=!1;v.isOriginalAspectRatio=!1;v.computedObjectFit=!1;v.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return v};
_.V(Xm,_.P);_.W=Xm.prototype;
_.W.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:_.N("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"}}};
_.W.onImageLoaded=function(){this.loaded=!0};
_.W.onImageUnloaded=function(){this.loaded=!1};
_.W.computeRichThumbnail=function(v,e,d,E){if(v&&e&&!E&&!_.N("disable_moving_thumbs_handling")&&!d)return e};
_.W.computeImageWidth=function(v,e){return e||9999};
_.W.computeIsOriginalAspectRatio=function(v){return v};
_.W.computeIsLive=function(v){if(v==null?0:v.badges)for(var e=0;e<v.badges.length;e++){var d=v.badges[e];if(d.metadataBadgeRenderer&&d.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(v==null?0:v.thumbnailOverlays)for(e=0;e<v.thumbnailOverlays.length;e++)if(d=v.thumbnailOverlays[e],d.thumbnailOverlayTimeStatusRenderer&&d.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.W.computeObjectFit=function(v,e){return e||(v?"CONTAIN":"")};
_.W.computeNavigationEndpoint=function(v,e,d){return v?e:d};
_.W.computeHasClip=function(v){v=_.a(v||[]);for(var e=v.next();!e.done;e=v.next())if(e.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.W.computeOverlayColor=function(v){var e;return(v==null?0:(e=v.darkColorPalette)==null?0:e.section2Color)?v.darkColorPalette.section2Color:v==null?void 0:v.sampledThumbnailColor};
_.vP.Object.defineProperties(Xm.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return pEU(this.width)}}});
Xm.prototype.onImageUnloaded=Xm.prototype.onImageUnloaded;Xm.prototype.onImageLoaded=Xm.prototype.onImageLoaded;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Xm.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(Q16),_.w("design:type",Object)],Xm.prototype,"ytdThumbnailBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Xm.prototype,"componentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Xm.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Xm.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],Xm.prototype,"circular",void 0);
_.c([_.f({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.w("design:type",Object)],Xm.prototype,"richThumbnail",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.w("design:type",Boolean)],Xm.prototype,"hasClip",void 0);_.c([_.f(),_.w("design:type",Object)],Xm.prototype,"eventSink",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Xm.prototype,"queued",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],Xm.prototype,"richGridThumbnail",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],Xm.prototype,"useExpandableTooltip",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],Xm.prototype,"useUntranslatedNavigationEndpoint",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Xm.prototype,"disableInteraction",void 0);
_.c([_.f({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.w("design:type",Object)],Xm.prototype,"computedNavigationEndpoint",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Xm.prototype,"nowPlayingEqualizerOnly",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Xm.prototype,"hidePlaybackStatus",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],Xm.prototype,"objectFit",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Xm.prototype,"noRoundedCorners",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],Xm.prototype,"watchFeedThumbnail",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Xm.prototype,"isPreviewLoading",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.w("design:type",Object)],Xm.prototype,"isOriginalAspectRatio",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.w("design:type",Object)],Xm.prototype,"computedObjectFit",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.w("design:type",Boolean)],Xm.prototype,"isLiveVideo",void 0);
_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Xm.prototype,"loaded",void 0);_.c([_.f({computed:"computeOverlayColor(data.thumbnail)"}),_.w("design:type",Object)],Xm.prototype,"overlayColor",void 0);_.c([_.f({selector:_.pHH}),_.w("design:type",Boolean)],Xm.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.f(),_.w("design:type",Number)],Xm.prototype,"width",void 0);
_.c([_.t("inlinePreviewIsEnabled"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Xm.prototype,"isPreviewDisabled",null);_.c([_.t("width"),_.w("design:type",String),_.w("design:paramtypes",[])],Xm.prototype,"thumbnailSize",null);_.c([_.Kq("image-loaded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Xm.prototype,"onImageLoaded",null);
_.c([_.Kq("image-unloaded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Xm.prototype,"onImageUnloaded",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-thumbnail"})],Xm);
var q72=_.I5()(Xm,"ytd-thumbnail",function(){if(S7B===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);S7B=v}v=S7B;return v},{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 tb3=function(v){var e=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14895_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14895_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(d){rSJ(e,d)};
this.onLockupMouseLeaveFn=function(d){d=d.relatedTarget;var E,T;((E=document.getElementsByTagName("ytd-video-preview"))==null?0:(T=E.item(0))==null?0:T.contains(d))||(e.terminateVideoPreview(),zy(e))};
this.onThumbnailMouseDownFn=function(){e.terminateVideoPreview();zy(e)};
this.onTouchStart=function(){e.JSC$14895_touched=!0};
this.mediaRenderer=v.mediaRenderer;this.thumbnailElement=v.thumbnailElement;this.lockupElement=v.lockupElement;this.videoPreviewOptsInput=v.videoPreviewOpts;hFB(this);lT(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)):
_.xf(Error("Eh")):_.xf(Error("Fh")):KcJ(this)},gp=function(v){KcJ(v);
var e;(e=v.lockupElement)==null||e.removeEventListener("mouseenter",v.onMouseMoveFn);var d;(d=v.lockupElement)==null||d.removeEventListener("mouseleave",v.onLockupMouseLeaveFn);var E;(E=v.lockupElement)==null||E.removeEventListener("touchstart",v.onTouchStart);var T;(T=v.thumbnailElement)==null||T.removeEventListener("mousedown",v.onThumbnailMouseDownFn);zy(v)},hFB=function(v){v.inlinePreviewIsEnabledForUser=_.d1().getState().ui.inlinePreviewIsEnabled;
v.unsubscribeFromInlinePreviewIsEnabled=_.ji(_.d1(),_.pHH,function(e){(v.inlinePreviewIsEnabledForUser=e)||zy(v)});
v.JSC$14895_unsubscribeFromInlinePreviewIsActive=_.ji(_.d1(),_.UNM,function(e){(v.inlinePreviewIsActive=e)||zy(v)})},KcJ=function(v){v.unsubscribeFromInlinePreviewIsEnabled();
v.unsubscribeFromInlinePreviewIsEnabled=function(){};
v.JSC$14895_unsubscribeFromInlinePreviewIsActive();v.JSC$14895_unsubscribeFromInlinePreviewIsActive=function(){}},rSJ=function(v,e){e.buttons>0||(e=_.Wi("kevlar_lockup_hover_delay",-1),v.JSC$14895_touched&&e>=0?(_.RM.cancelJob(v.videoPreviewJobId),v.videoPreviewJobId=_.Yj(_.RM,function(){$X0(v)},e),v.JSC$14895_touched=!1):$X0(v))},b_U=function(v){v.videoPreviewJobId=_.Yj(_.RM,function(){return _.I(function(e){return e.yield(jNB(v,{isAutoplay:!0}),0)})})},$X0=function(v){!v.previewTriggered&&lT(v)&&
(v.inlinePreviewIsActive&&v.terminateVideoPreview(),v.previewTriggered=!0,v.mediaRenderer.isInlinePreviewTriggered=!0,_.RM.cancelJob(v.videoPreviewJobId),v.videoPreviewJobId=_.Yj(_.RM,function(){return _.I(function(e){return e.yield(jNB(v),0)})}))},jNB=function(v,e){e=e===void 0?{}:e;
var d=e.isAutoplay===void 0?!1:e.isAutoplay;var E,T,S,O;return _.I(function(b){if(b.nextAddress==1){if(!lT(v))return b.return();E=v.getVideoPreviewOpts();if(!E)return b.return();d&&(E.isAutoplay=!0);return(S=(T=_.YB(v.mediaRenderer.hostElement,"yt-open-video-preview-action",[E]))&&T[0])?b.yield(T[0],3):b.jumpTo(2)}b.nextAddress!=2&&(S=b.yieldResult===1);if(S){var Y=(O=v.mediaRenderer)==null?void 0:O.data;Y&&(MbW(Y)?delete Y.inlinePlayerData:"inlinePlaybackEndpoint"in Y&&delete Y.inlinePlaybackEndpoint)}_.s9(b)})};
tb3.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var v,e;if((e=(v=this.videoPreviewOptsInput)==null?void 0:v.videoPreviewData)!=null)v=e;else if(v=this.mediaRenderer.data)if(MbW(v))v={inlinePlaybackEndpoint:_.lk(v.inlinePlayerData.onVisible),navigationEndpoint:_.lk(v.onTap),thumbnail:"image"in v?v.image:v.thumbnail,thumbnailOverlays:void 0,accessibilityText:GFU(v)};else if("multipleInlinePlaybackEndpoint"in v){var d=_.L(_.L(v.multipleInlinePlaybackEndpoint,XrE),zYe);if(d!=
null&&d.playerDescriptors){e=[];d=_.a(d.playerDescriptors);for(var E=d.next();!E.done;E=d.next())E=E.value,e.push({inlinePlaybackEndpoint:E.inlinePlaybackEndpoint,navigationEndpoint:E.navigationEndpoint,thumbnail:E.thumbnail,thumbnailOverlays:E.thumbnailOverlays,accessibilityText:GFU(v)});v=e}else v=void 0}else v={inlinePlaybackEndpoint:v.inlinePlaybackEndpoint,navigationEndpoint:v.navigationEndpoint,thumbnail:v.thumbnail,thumbnailOverlays:v.thumbnailOverlays,accessibilityText:GFU(v)};else v=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:v,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var lT=function(v){var e;if(e=v.inlinePreviewIsEnabledForUser)e=(v=v.mediaRenderer.data)?"inlinePlaybackEndpoint"in v&&v.inlinePlaybackEndpoint||MbW(v)&&v.inlinePlayerData||"multipleInlinePlaybackEndpoint"in v&&v.multipleInlinePlaybackEndpoint?!0:!1:!1;return e};
tb3.prototype.terminateVideoPreview=function(){_.b4(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var zy=function(v){_.RM.cancelJob(v.videoPreviewJobId);v.inlinePreviewIsActive=!1;v.previewTriggered=!1;v.mediaRenderer.isInlinePreviewTriggered=!1};var sNc=_.Z9(["#"]),Hy=function(){var v=_.P.apply(this,arguments)||this;v.isDisabled=!1;return v};
_.V(Hy,_.P);_.W=Hy.prototype;_.W.configureRendererStamper=function(){return{"data.menu":jY,"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"}}}};
_.W.attached=function(){this.updateInlinePreviewHoverListeners()};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.getMetadata=function(v){var e=[];if(v.metadataText&&Object.keys(v.metadataText).length>0){var d=this.ytRendererBehavior.getSimpleString(v.metadataText);v.upcomingEventData&&v.upcomingEventData.upcomingEventText&&(d=_.Gn(d,Number(v.upcomingEventData.startTime)));e.push(d)}else v.shortViewCountText&&e.push(this.ytRendererBehavior.getSimpleString(v.shortViewCountText)),v.publishedTimeText&&e.push(this.ytRendererBehavior.getSimpleString(v.publishedTimeText)),v.upcomingEventData&&v.upcomingEventData.upcomingEventText&&
(d=this.ytRendererBehavior.getSimpleString(v.upcomingEventData.upcomingEventText),e.push(_.Gn(d,Number(v.upcomingEventData.startTime))));return e};
_.W.calculateBylineText=function(v){return v.shortBylineText?v.shortBylineText:v.bylineText?v.bylineText:null};
_.W.calculateIsDisabled=function(v){return!!v.isDisabled};
_.W.computeHrefWithDefault=function(v){return this.ytComponentBehavior.computeHref_(v)||_.Uf3(sNc)};
_.W.onDetailsTap=function(v){var e=this.data&&this.data.navigationEndpoint;e&&!_.UG(_.vg(v)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.N("kevlar_grid_video_renderer_killswitch")?_.Iq(this.hostElement,"yt-navigate",{endpoint:e}):this.ytComponentBehavior.resolveCommand(e))};
_.W.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14902_inlinePreviewHoverListener=Xc({mediaRenderer:this,lockupElement:_.IB(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.IB(this.hostElement).querySelector("ytd-thumbnail")})};
_.W.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$14902_inlinePreviewHoverListener)==null||gp(v)};
_.W.computeThumbnailWidth=function(v,e){return e&&e>0?e:v?360:210};
_.W.computeShowChannelThumbnail=function(v,e){var d;return e&&!!(v==null?0:(d=v.channelThumbnailSupportedRenderers)==null?0:d.channelThumbnailWithLinkRenderer)};
_.vP.Object.defineProperties(Hy.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$14902_inlinePreviewHoverListener)==null?0:lT(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Hy.prototype.dataChanged=Hy.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Hy.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],Hy.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.M(_.uV),_.w("design:type",Object)],Hy.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Hy.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Hy.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],Hy.prototype,"noEndpoints",void 0);_.c([_.f({computed:"calculateBylineText(data)"}),_.w("design:type",Object)],Hy.prototype,"bylineText",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Hy.prototype,"isSearch",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Hy.prototype,"isDownloading",void 0);_.c([_.f({reflectToAttribute:!0,value:0}),_.w("design:type",Number)],Hy.prototype,"width",void 0);_.c([_.f({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.w("design:type",Object)],Hy.prototype,"isDisabled",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Hy.prototype,"dataChanged",null);_.c([_.t("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Hy.prototype,"isHovered",null);_.c([_.z({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Hy);
_.A(Hy,"ytd-grid-video-renderer",function(){if(Qwi!==void 0)return Qwi;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Qwi=v},{mode:_.bk("kevlar_poly_si_batch_j047")?1:2});var N0g;var AQ=function(){var v=_.P.apply(this,arguments)||this;v.roundedContainer=!0;v.skipRoundingTop=!1;v.disableTopPadding=!1;v.amsterdamEnabled=_.N("enable_desktop_amsterdam_info_panels");return v};
_.V(AQ,_.P);AQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
AQ.prototype.onClick=function(v){var e,d=(e=this.data)==null?void 0:e.sourceEndpoint;!_.UG(_.vg(v),this.hostElement,["A".toString()])&&d&&_.Iq(this.hostElement,"yt-navigate",{endpoint:d})};
_.vP.Object.defineProperties(AQ.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 v;return!((v=this.data)==null||!v.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=(v=this.data)==null?void 0:v.paragraphMaxLines)!=null?e:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],AQ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],AQ.prototype,"showVerticalDividers",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],AQ.prototype,"roundedContainer",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],AQ.prototype,"skipRoundingTop",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],AQ.prototype,"disableTopPadding",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],AQ.prototype,"amsterdamEnabled",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],AQ.prototype,"showMetadataAtTop",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],AQ.prototype,"showMetadataBelowTitle",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.menu"),_.w("design:type",Object),_.w("design:paramtypes",[])],AQ.prototype,"hasMenu",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.truncateParagraphs"),_.w("design:type",Object),_.w("design:paramtypes",[])],AQ.prototype,"truncateParagraphs",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data.paragraphMaxLines"),_.w("design:type",Number),_.w("design:paramtypes",[])],AQ.prototype,"paragraphMaxLines",null);_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.background"),_.w("design:type",Object),_.w("design:paramtypes",[])],AQ.prototype,"background",null);_.c([_.z({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],AQ);
_.A(AQ,"ytd-info-panel-content-renderer",function(){if(N0g!==void 0)return N0g;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return N0g=v},{mode:_.bk("kevlar_poly_si_batch_j076")?1:2});var kF6;var Lc7;var VbJ;var oFc;var Z3=function(){return _.P.apply(this,arguments)||this};
_.V(Z3,_.P);Z3.prototype.computeStyle=function(v){return v};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Z3.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],Z3.prototype,"style_",void 0);_.c([_.lh({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Z3);
_.A(Z3,"yt-channel-thumbnail-with-link-renderer",function(){if(oFc===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;VbJ===void 0&&(VbJ=document.createElement("template"));var E=VbJ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);oFc=v}v=oFc;return v},{mode:2});var cy=function(){var v=_.P.apply(this,arguments)||this;v.modernTypography=_.N("web_modern_typography");return v};
_.V(cy,_.P);cy.prototype.configureRendererStamper=function(){return{"data.channelThumbnail":{id:"avatar",mapping:{channelThumbnailWithLinkRenderer:"yt-channel-thumbnail-with-link-renderer"}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
cy.prototype.computeTitleStyle=function(v){return v||null};
cy.prototype.computeAvatarStyle=function(v){return v||null};
cy.prototype.computeShowNavigationButton=function(v,e){return!(v==null||!v.navigationButton||e)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],cy.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],cy.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.w("design:type",String)],cy.prototype,"titleStyle",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.w("design:type",String)],cy.prototype,"avatarStyle",void 0);_.c([_.f(),_.w("design:type",Boolean)],cy.prototype,"hideNavigationButton",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],cy.prototype,"isModernSd",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],cy.prototype,"modernTypography",void 0);
_.c([_.z({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],cy);
_.A(cy,"ytd-rich-list-header-renderer",function(){if(Lc7!==void 0)return Lc7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Lc7=v},{mode:_.bk("kevlar_poly_si_batch_j058")?1:2});var wv=function(){return _.P.apply(this,arguments)||this};
_.V(wv,_.P);wv.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wv.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],wv.prototype,"isSearch",void 0);_.c([_.z({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],wv);
_.A(wv,"ytd-preview-card-renderer",function(){if(kF6!==void 0)return kF6;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return kF6=v},{mode:1});var JSn;var Fm=function(){return _.P.apply(this,arguments)||this};
_.V(Fm,_.P);Fm.prototype.configureRendererStamper=function(){return{"data.menu":jY}};
Fm.prototype.dataChanged=function(){var v=this.get("colorExtractionPalette.section1Color",this.data);v=_.cv(v);_.qr(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":v})};
Fm.prototype.computeCardStyle=function(v){return this.get("style.value",v)||null};
Fm.prototype.dataChanged=Fm.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],Fm.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Fm.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.w("design:type",String)],Fm.prototype,"cardStyle",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fm.prototype,"dataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Fm);
_.A(Fm,"ytd-compact-channel-recommendation-card-renderer",function(){if(JSn!==void 0)return JSn;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return JSn=v},{mode:1});var GFE;var MbA;var Qo=function(){var v=_.P.apply(this,arguments)||this;v.alignAuto=!1;v.collapsed=!0;v.isToggled=!1;v.alwaysCollapsed=!1;v.canToggle=!0;v.collapsedHeight=80;v.disableToggle=!1;v.alwaysToggleable=!1;v.reversed=!1;v.shouldUseNumberOfLines=!1;v.recomputeOnResize=!1;v.canToggleJobId=0;v.lastReversed=!1;return v};
_.V(Qo,_.P);_.W=Qo.prototype;_.W.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.W.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.W.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var v=_.IB(this.hostElement),e=v.childNodes,d=document.createDocumentFragment(),E=v.childNodes.length-1;E>=0;E--)_.IB(d).appendChild(e[E]);_.N("enable_shadydom_free_scoped_node_methods")?_.bh(this.hostElement).appendChild(d):v.appendChild(d)}};
_.W.ready=function(){var v=this;_.Q1(function(){v.initChildrenObserver()},1)};
_.W.attached=function(){var v;(v=this.resizeObserver)==null||v.observe(this.content)};
_.W.detached=function(){this.detachObserver()};
_.W.toggle=function(v,e){this.canToggle&&(this.isToggled=e,_.Iq(this.hostElement,"yt-refit"),v&&v.stopPropagation())};
_.W.reset=function(){this.childrenChanged()};
_.W.onIronResize=function(){this.recomputeOnResize&&!_.N("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.W.computeIsMoreVisible=function(v,e){return v&&!e};
_.W.computeShouldUseNumberOfLines=function(v){try{return!!v&&window.CSS.supports("-webkit-line-clamp","1")}catch(e){}return!1};
_.W.computeIsLessVisible=function(v,e){return v&&e};
_.W.observeCollapsedHeightAndMaxLines=function(){var v=this.collapsedHeight,e=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.qr(this.hostElement,{"--ytd-expander-max-lines":""+e,"--ytd-expander-collapsed-height":""}):_.qr(this.hostElement,{"--ytd-expander-collapsed-height":v+"px","--ytd-expander-max-lines":""})};
_.W.handleMoreTap=function(v){this.disableToggle||(_.Iq(this.hostElement,"yt-expander-more-tapped"),this.toggle(v,!0))};
_.W.handleLessTap=function(v){_.Iq(this.hostElement,"yt-expander-less-tapped");this.toggle(v,!1)};
_.W.initChildrenObserver=function(){var v=this;this.observer=new MutationObserver(function(){v.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.N("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.wB(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var e;(e=v.resizeThrottle)==null||e.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.W.childrenChanged=function(){var v=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){b2(function(){v.canToggleJobId=0;v.calculateCanCollapse()})}))};
_.W.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};
_.W.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.W.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("collapsed-changed",this.collapsed))};
_.W.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("is-toggled-changed",this.isToggled))};
_.W.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("can-toggle-changed",this.canToggle))};
_.vP.Object.defineProperties(Qo.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Qo.prototype.canToggleChangedForBinding=Qo.prototype.canToggleChangedForBinding;Qo.prototype.isToggledChangedForBinding=Qo.prototype.isToggledChangedForBinding;Qo.prototype.collapsedChangedForBinding=Qo.prototype.collapsedChangedForBinding;Qo.prototype.observeCollapsedHeightAndMaxLines=Qo.prototype.observeCollapsedHeightAndMaxLines;Qo.prototype.onIronResize=Qo.prototype.onIronResize;Qo.prototype.reversedChanged=Qo.prototype.reversedChanged;Qo.prototype.toggledChanged=Qo.prototype.toggledChanged;
Qo.prototype.alwaysToggleableChanged=Qo.prototype.alwaysToggleableChanged;_.c([_.M(_.J9),_.w("design:type",Object)],Qo.prototype,"ironResizableBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Qo.prototype,"alignAuto",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Qo.prototype,"collapsed",void 0);_.c([_.f(),_.w("design:type",Object)],Qo.prototype,"isToggled",void 0);_.c([_.f(),_.w("design:type",Object)],Qo.prototype,"alwaysCollapsed",void 0);
_.c([_.f(),_.w("design:type",Object)],Qo.prototype,"canToggle",void 0);_.c([_.f(),_.w("design:type",Object)],Qo.prototype,"collapsedHeight",void 0);_.c([_.f(),_.w("design:type",Object)],Qo.prototype,"disableToggle",void 0);_.c([_.f(),_.w("design:type",Object)],Qo.prototype,"alwaysToggleable",void 0);_.c([_.f(),_.w("design:type",Object)],Qo.prototype,"reversed",void 0);_.c([_.f(),_.w("design:type",Number)],Qo.prototype,"maxNumberOfLines",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.w("design:type",Object)],Qo.prototype,"shouldUseNumberOfLines",void 0);_.c([_.f(),_.w("design:type",Object)],Qo.prototype,"recomputeOnResize",void 0);_.c([_.sg("#content"),_.w("design:type",HTMLDivElement)],Qo.prototype,"content",void 0);_.c([_.V1("alwaysToggleable"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qo.prototype,"alwaysToggleableChanged",null);
_.c([_.V1("isToggled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qo.prototype,"toggledChanged",null);_.c([_.t("canToggleJobId"),_.w("design:type",Object),_.w("design:paramtypes",[])],Qo.prototype,"isResetting",null);_.c([_.$v("reversed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qo.prototype,"reversedChanged",null);
_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qo.prototype,"onIronResize",null);_.c([_.$v("maxNumberOfLines","collapsedHeight"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qo.prototype,"observeCollapsedHeightAndMaxLines",null);_.c([_.$v("collapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qo.prototype,"collapsedChangedForBinding",null);
_.c([_.$v("isToggled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qo.prototype,"isToggledChangedForBinding",null);_.c([_.$v("canToggle"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qo.prototype,"canToggleChangedForBinding",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-expander"})],Qo);
_.A(Qo,"ytd-expander",function(){if(MbA!==void 0)return MbA;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return MbA=v},{mode:1});var gv=function(){return _.P.apply(this,arguments)||this};
_.V(gv,_.P);gv.prototype.computeIsCarousel=function(v){return!!v.isCarousel};
gv.prototype.observeLightsourcePalette=function(){var v,e=(v=this.data)==null?void 0:v.vibrantsourceColorPaletteData;e&&_.t8(this.hostElement,e)};
gv.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
gv.prototype.observeLightsourcePalette=gv.prototype.observeLightsourcePalette;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],gv.prototype,"data",void 0);_.c([_.f({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],gv.prototype,"isCarousel",void 0);
_.c([_.$v("data.vibrantsourceColorPaletteData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gv.prototype,"observeLightsourcePalette",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],gv);
_.A(gv,"ytd-media-upsell-renderer",function(){if(GFE!==void 0)return GFE;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return GFE=v},{mode:2});var tbc;var uT=function(){var v=_.P.apply(this,arguments)||this;v.JSC$14930_playerEvents=new Map;v.listeningToPlayer=!1;v.startX=0;v.active=!1;v.shouldShowButtons=_.N("web_buttons_hidden_killswitch");v.isHighlighted=!1;v.useHighlightStyling=_.N("web_enable_deeper_metadata_highlight_styling");v.modern=_.N("kevlar_modern_sd");v.enableProblemWalkthrough=_.N("problem_walkthrough_sd");return v};
_.V(uT,_.P);_.W=uT.prototype;
_.W.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}}}}}};
_.W.created=function(){this.JSC$14930_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.W.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.hG(this,this.onRepeatButtonToggle));_.N("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.hG(this,this.onActiveUpdate))};
_.W.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.hG(this,this.onRepeatButtonToggle));_.N("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.hG(this,this.onActiveUpdate))};
_.W.onDataChanged=function(){this.removePlayerListeners()};
_.W.onColorPaletteChange=function(){var v={},e;if(_.Pv()==="USER_INTERFACE_THEME_DARK"&&((e=this.data)==null?0:e.darkColorPalette)){var d=this.data.darkColorPalette;v["--ytd-macro-markers-list-item-background-color"]=_.w1(this.get("section2Color",d))}else{var E;_.Pv()==="USER_INTERFACE_THEME_LIGHT"&&((E=this.data)==null?0:E.lightColorPalette)&&(d=this.data.lightColorPalette,v["--ytd-macro-markers-list-item-background-color"]=_.w1(this.get("section3Color",d)))}d?(v["--ytd-macro-markers-list-item-title-color"]=
_.w1(this.get("primaryTitleColor",d)),v["--ytd-macro-markers-list-item-secondary-color"]=_.w1(this.get("secondaryTitleColor",d)),v["--ytd-macro-markers-list-item-timestamp-background-color"]=_.w1(this.get("section1Color",d)),this.customButtonProperties={customColors:{color:_.w1(this.get("primaryTitleColor",d))}},this.useColorSampling=!0):(v["--ytd-macro-markers-list-item-background-color"]="initial",v["--ytd-macro-markers-list-item-title-color"]="initial",v["--ytd-macro-markers-list-item-secondary-color"]=
"initial",v["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.qr(this.hostElement,v)};
_.W.onEndpointMouseDown=function(v){this.startX=v.clientX};
_.W.onEndpointClick=function(v){var e=this,d,E,T;return _.I(function(S){if(S.nextAddress==1){if(e.startX!==v.clientX)return v.preventDefault(),S.return();e.data&&e.ytRendererBehavior.logExplicitClick(e.data);if(!e.seekWithAnimationOnClick)return S.jumpTo(0);if(v.button!==0||v.shiftKey||v.altKey||v.metaKey||v.ctrlKey||_.UG(_.vg(v),e.hostElement,["BUTTON".toString()]))return S.return();v.stopPropagation();v.preventDefault();return e.data?S.yield(_.EK().getPlayerPromise(),3):S.return()}d=S.yieldResult;
T=(E=_.L(e.data.onTap,_.p2))==null?void 0:E.startTimeSeconds;T!==void 0&&d.seekToTimeWithAnimation(T*1E3,_.vv(e.data.title));_.s9(S)})};
_.W.computeLayout=function(v){return v};
_.W.computeIsHighlighted=function(v){return!!v};
_.W.computeCarouselType=function(v){return v};
_.W.hideModernCarousel=function(v){return this.modern&&this.hideThumbnail(v)};
_.W.hideThumbnail=function(v){return this.enableProblemWalkthrough&&v!==null&&v==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.W.onRepeatButtonToggle=function(v){var e=this;v.detail.toggled&&_.EK().getPlayerPromise().then(function(d){e.ytPlayerListenerBehavior.listenToPlayerEvents(d,e.JSC$14930_playerEvents);e.listeningToPlayer=!0})};
_.W.onLoopRangeChange=function(v){var e=_.IB(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(e){var d=e.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",e.polymerController.data);if(d){var E=Number(d.endTimeMs);if(Number(d.startTimeMs)!==(v==null?void 0:v.startTimeMs)||E!==(v==null?void 0:v.endTimeMs))e.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.W.removePlayerListeners=function(){var v=this;this.listeningToPlayer&&_.EK().getPlayerPromise().then(function(e){v.ytPlayerListenerBehavior.unlistenFromPlayerEvents(e,v.JSC$14930_playerEvents);v.listeningToPlayer=!1})};
_.W.onActiveUpdate=function(v){this.active=v.detail.active};
uT.prototype.onColorPaletteChange=uT.prototype.onColorPaletteChange;uT.prototype.onDataChanged=uT.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],uT.prototype,"ytPlayerListenerBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],uT.prototype,"data",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],uT.prototype,"useCustomColors",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],uT.prototype,"active",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],uT.prototype,"shouldShowButtons",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.w("design:type",String)],uT.prototype,"layout",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.w("design:type",Object)],uT.prototype,"isHighlighted",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],uT.prototype,"useHighlightStyling",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],uT.prototype,"modern",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],uT.prototype,"enableProblemWalkthrough",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.w("design:type",String)],uT.prototype,"carouselType",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],uT.prototype,"useColorSampling",void 0);_.c([_.f(),_.w("design:type",Boolean)],uT.prototype,"seekWithAnimationOnClick",void 0);_.c([_.f(),_.w("design:type",Object)],uT.prototype,"customButtonProperties",void 0);
_.c([_.sg("#repeat-button"),_.w("design:type",HTMLElement)],uT.prototype,"repeatButton",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uT.prototype,"onDataChanged",null);_.c([_.$v("data.lightColorPalette","data.darkColorPalette"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uT.prototype,"onColorPaletteChange",null);_.c([_.z({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],uT);
_.A(uT,"ytd-macro-markers-list-item-renderer",function(){if(tbc!==void 0)return tbc;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return tbc=v},{mode:1});var fA7;var RFu;var nj=function(){var v=_.P.apply(this,arguments)||this;v.modernTypography=_.N("web_modern_typography");return v};
_.V(nj,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],nj.prototype,"modernTypography",void 0);_.c([_.f(),_.w("design:type",Object)],nj.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],nj);
_.A(nj,"ytd-title-and-button-list-header-renderer",function(){if(RFu!==void 0)return RFu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return RFu=v},{mode:1});var PKI;var xXE=new _.nC("BUTTON_RENDERER_WIZ_TOKEN"),B0B=new _.nC("BUTTON_RENDERER_TOKEN");_.D3=_.l(function(v){var e=_.dk().resolve(_.eG(xXE));if(e)return _.m(e,Object.assign({},v));var d=_.dk().resolve(B0B);return d?_.m(hJt,null,function(){return _.m(UN,null,function(){var E,T,S,O,b,Y,q,r,h,K,k,J;return void d(v.data(),{onButtonClickCallback:v.onButtonClickCallback,shouldShowIcons:(E=v.shouldShowIcons)==null?void 0:E.call(v),icon:(T=v.icon)==null?void 0:T.call(v),processAllEndpoints:(S=v.processAllEndpoints)==null?void 0:S.call(v),preventDefault:(O=v.preventDefault)==null?void 0:O.call(v),
stopPropagation:(b=v.stopPropagation)==null?void 0:b.call(v),disableButtonRendererClickHandling:(Y=v.disableButtonRendererClickHandling)==null?void 0:Y.call(v),className:(q=v.className)==null?void 0:q.call(v),buttonOverrides:(r=v.buttonOverrides)==null?void 0:r.call(v),forceModernIconButton:(h=v.forceModernIconButton)==null?void 0:h.call(v),isSubscribe:(K=v.isSubscribe)==null?void 0:K.call(v),alignByText:(k=v.alignByText)==null?void 0:k.call(v),forceDisabled:(J=v.forceDisabled)==null?void 0:J.call(v)})})}):
_.m(_.eI,null)},"ja");
_.D3.idomCompat=!0;var CKA=_.l(function(v){var e=v.data,d=_.e2(v.useSquareAspectRatio,!1);return _.m("dismissed-mini-game-card-view-model",null,_.m(_.y,{cond:function(){var E,T;return(E=e().responseText)==null?void 0:(T=E.runs)==null?void 0:T.length},
then:function(){var E={};return _.m("div",{class:_.qe("yt-mini-game-card-view-model__dismissed-card",(E["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!d()},E["yt-mini-game-card-view-model--dismissed-square-card"]=d,E))},_.m("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.m(_.y,{cond:function(){return e().responseText.runs[0].text},
then:function(T){return _.m("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:T},T)}}),_.m(_.kz,{data:function(){return e().buttons}},{buttonRenderer:_.D3,
buttonViewModel:_.yi})))}}))},"ka");var cSI=_.l(function(v){v=_.dC(v,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var e=v.data,d=v.useFullWidth,E=v.isDesktopWeb,T=v.addSearchResultTopMargin,S=function(){return e().layout},O=function(){return e().title},b=function(){return e().metadataText?e().metadataText:e().genre},Y=function(){return e().channelName},q=function(){return e().image},r=function(){return e().colorPalette},h=function(){return e().actionButton},K=function(){return e().overflowButton},
k=function(){return e().avatar},J=function(){var Z={};
Z=_.qe("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(Z["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return E()},Z));
return _.m("div",{class:Z},_.m(XpJ,{imageData:q,colorPalette:r}),_.m(zFe,{onTap:function(){return e().onTap},
imageData:q,accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
isDesktopWeb:E}),_.m(_.y,{cond:function(){return!E()},
then:function(){return _.m(_.eI,null,_.m(lA7,{layout:S,colorPalette:r,isDesktopWeb:E,overflowButton:K,avatar:k,onTap:function(){return e().onTap},
genre:b,title:O,channelName:Y}),_.m(HNc,{actionButton:h}))}}))},R=function(){var Z={};
Z=_.qe((Z["yt-mini-game-card-view-model--search-result-desktop"]=function(){return E()},Z["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!E()},Z["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return T()},Z));
return _.m("div",{class:Z},J(),_.m(ASM,{description:function(){return e().description},
isDesktopWeb:E,title:O,genre:b,onTap:function(){return e().onTap},
actionButton:h,overflowButton:K,avatar:k,channelName:Y}))},B=function(){var Z={};
Z=_.qe("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(Z["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return E()},Z["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return E()&&e().width===135},Z["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return E()},Z["yt-mini-game-card-view-model--big-metadata-font"]=function(){return e().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},Z["yt-mini-game-card-view-model--use-full-width"]=
function(){return d()},Z["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!h()},Z));
return _.m("div",{class:Z},_.m(ZNA,{colorPalette:r,isDesktopWeb:E,onTap:function(){return e().onTap},
accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
actionButton:h,imageData:q}),_.m(lA7,{layout:S,colorPalette:r,isDesktopWeb:E,overflowButton:K,avatar:k,onTap:function(){return e().onTap},
genre:b,title:O,channelName:Y}))},X=function(){var Z={};
Z=_.qe("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(Z["yt-mini-game-card-view-model--square-card-desktop"]=function(){return E()},Z["yt-mini-game-card-view-model--use-full-width"]=function(){return d()},Z));
return _.m("div",{class:Z},_.m(zFe,{onTap:function(){return e().onTap},
imageData:q,accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
isDesktopWeb:E}),_.m(lA7,{layout:S,colorPalette:r,isDesktopWeb:E,overflowButton:K,avatar:k,onTap:function(){return e().onTap},
genre:b,title:O,channelName:Y}))};
return _.m("mini-game-card-view-model",{class:v.className},_.m(_.kc,null,_.m(_.sW,{when:function(){return S()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return B()}),_.m(_.sW,{when:function(){return S()==="MINI_APP_LAYOUT_SQUARE"}},function(){return X()}),_.m(_.sW,{when:function(){return S()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return R()})))},"la");
cSI.idomCompat=!0;var HNc=_.l(function(v){var e=_.e2(v.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.m(_.kz,{data:v.actionButton},{buttonViewModel:function(d){return _.m("div",{class:e},_.m(_.yi,{data:d.data}))}})},"ma"),zFe=_.l(function(v){var e=v.onTap;
var d=v.imageData;var E=v.accessibilityText;var T=v.overlayBadgeText;var S=v.iconName;var O=v.unplayableInlinePlaybackIconName;v=v.isDesktopWeb;return _.m(_.Oe,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:e},_.m(_.va,{data:d,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(E==null?void 0:E())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.m(wp0,{overlayBadgeText:T,iconName:S,unplayableInlinePlaybackIconName:O,isDesktopWeb:v}))},"na"),wp0=_.l(function(v){var e=v.overlayBadgeText;
var d=v.iconName;var E=v.unplayableInlinePlaybackIconName;var T=v.isDesktopWeb;return _.m("div",{class:"yt-mini-game-card-view-model__badge-container"},_.m(_.y,{cond:d,then:function(S){return _.m("div",{class:"yt-mini-game-card-view-model__badge"},_.m("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.m(_.sG,{icon:S,className:"yt-mini-game-card-view-model__icon",size:12}),_.m("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},e)))}}),_.m(_.y,{cond:function(){return!d()&&
e()},
then:function(){return _.m("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},e)}}),_.m(_.y,{cond:function(){return E()&&T()},
then:function(){return _.m("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.m(_.sG,{icon:E,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"oa"),XpJ=_.l(function(v){var e=v.colorPalette;
var d=v.imageData;var E=function(){return e().vibrantColorPalette?e().vibrantColorPalette.section2Color:e().sectionTwoColor};
return _.m(_.eI,null,_.m("div",{class:"yt-mini-game-card-view-model__background-base",style:_.jM({"background-color":function(){return FD(E(),"1")}})}),_.m("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.jM({"background-image":function(){return"url("+d().sources[0].url+")"}})}),_.m("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.jM({background:function(){return"linear-gradient(180deg,\n    "+FD(E(),".8")+" 0%,\n    "+FD(E(),".4")+" 25%,\n    "+FD(e().vibrantColorPalette?e().vibrantColorPalette.section4Color:e().sectionFourColor,".8")+" 100%)"}})}))},"pa"),lA7=_.l(function(v){var e=v.layout;
var d=v.colorPalette;var E=v.overflowButton;var T=v.avatar;var S=v.onTap;var O=v.title;var b=v.channelName;var Y=v.genre;var q=function(){var r;return e()!=="MINI_APP_LAYOUT_SQUARE"&&((r=d())==null?0:r.textPrimaryColor)?"color: "+FD(d().textPrimaryColor,".7"):""};
return _.m("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.m(_.y,{cond:T,then:function(){return _.m("div",{class:"yt-mini-game-card-view-model__avatar"},_.m(_.kz,{data:T},{avatarViewModel:_.x7}))}}),_.m(_.Oe,{command:S,
className:"yt-mini-game-card-view-model__metadata-details"},_.m("h3",{class:"yt-mini-game-card-view-model__title",title:O},O),_.m(_.y,{cond:T,then:function(){return _.m("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.m("span",{class:"yt-mini-game-card-view-model__genre",title:b,style:q},b),_.m("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:q},Y))},
else:function(){return _.m("span",{class:"yt-mini-game-card-view-model__genre",title:Y},Y)}})),_.m("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.m(_.kz,{data:E},{buttonViewModel:function(r){var h=r.data;
return _.m(_.yi,{data:function(){return Object.assign({},h(),{customFontColor:e()==="MINI_APP_LAYOUT_SINGLETON"?h().customFontColor:void 0})}})}})))},"qa"),ZNA=_.l(function(v){var e=v.colorPalette;
var d=v.isDesktopWeb;var E=v.onTap;var T=v.accessibilityText;var S=v.overlayBadgeText;var O=v.iconName;var b=v.unplayableInlinePlaybackIconName;var Y=v.actionButton;v=v.imageData;return _.m("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.m(XpJ,{imageData:v,colorPalette:e}),_.m(zFe,{onTap:E,imageData:v,accessibilityText:T,overlayBadgeText:S,iconName:O,unplayableInlinePlaybackIconName:b,isDesktopWeb:d}),_.m(_.y,{cond:function(){return Y==null?void 0:Y()},
then:function(){return _.m(HNc,{actionButton:Y})}}))},"ra"),ASM=_.l(function(v){var e=v.description;
var d=v.isDesktopWeb;var E=v.title;var T=v.genre;var S=v.onTap;var O=v.actionButton;var b=v.overflowButton;var Y=v.avatar;v=v.channelName;var q={};q=_.qe("yt-mini-game-card-view-model--search-result-metadata-wrapper",(q["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=d,q["yt-mini-game-card-view-model--show-unplayable-on-hover"]=d,q["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!d()},q));
var r={};r=_.qe("yt-mini-game-card-view-model__search-result-info-row",(r["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!d()},r));
return _.m("div",{class:q},_.m("div",{class:r},_.m(_.Oe,{command:S,className:"yt-mini-game-card-view-model__metadata-details"},_.m("h3",{class:"yt-mini-game-card-view-model__title",title:E},E),_.m("span",{class:"yt-mini-game-card-view-model__genre",title:T},T)),_.m(HNc,{actionButton:O,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.m("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.m(_.kz,{data:b},{buttonViewModel:_.yi}))),_.m("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.m("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.m("div",{class:"yt-mini-game-card-view-model__avatar"},_.m(_.kz,{data:Y},{avatarViewModel:function(h){var K=h.data;return _.m(_.x7,{data:function(){return Object.assign({},K(),{avatarImageSize:d()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.m(_.Oe,{command:S,
className:"yt-mini-game-card-view-model__description"},_.m("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},v)),_.m(_.Oe,{command:S,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.m("div",null)))),_.m(_.y,{cond:d,then:function(){return _.m(_.Oe,{command:S,className:"yt-mini-game-card-view-model__description"},e)}}))},"sa");_.aZ(cSI,"mini-game-card-view-model",{props:{data:_.U1,className:_.U1,useFullWidth:_.U1,isDesktopWeb:_.U1,addSearchResultTopMargin:_.U1}});_.aZ(CKA,"dismissed-mini-game-card-view-model",{props:{data:_.U1,useSquareAspectRatio:_.U1}});var U2=function(){var v=_.P.apply(this,arguments)||this;v.isSearch=!1;v.isRichGrid=!1;return v};
_.V(U2,_.P);_.W=U2.prototype;_.W.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.W.dismissibleItemOnYtServiceRequestSent=function(v,e){e.actions&&this.dismissibleItemProcessActions(v,e.actions)};
_.W.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.W.dataChanged=function(){this.dismissibleItemReset()};
_.W.dismissibleItemProcessActions=function(v,e){for(var d=0;d<e.length;d++){var E=e[d];_.L(E,_.j6)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.L(E,_.j6)),v.stopPropagation())}};
_.W.dismissibleItemHandleReplaceEnclosingAction=function(v){this.dismissedRenderer=v.item;this.isDismissed=!0};
_.vP.Object.defineProperties(U2.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var v;return!!this.data&&!((v=this.dismissedRenderer)==null?0:v.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.dismissedRenderer)==null||!v.notificationMultiActionRenderer)}}});
U2.prototype.dataChanged=U2.prototype.dataChanged;U2.prototype.dismissibleItemOnRequestSent=U2.prototype.dismissibleItemOnRequestSent;U2.prototype.dismissibleItemOnYtServiceRequestSent=U2.prototype.dismissibleItemOnYtServiceRequestSent;_.c([_.f(),_.w("design:type",Object)],U2.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],U2.prototype,"isSearch",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],U2.prototype,"isDismissed",void 0);
_.c([_.f(),_.w("design:type",Object)],U2.prototype,"dismissedRenderer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],U2.prototype,"isRichGrid",void 0);_.c([_.t("data.layout"),_.w("design:type",Object),_.w("design:paramtypes",[])],U2.prototype,"useSquareAspectRatio",null);_.c([_.t("data","dismissedRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],U2.prototype,"showCard",null);
_.c([_.t("data","dismissedRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],U2.prototype,"showDismissed",null);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],U2.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.c([_.Kq("yt-service-request-sent-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],U2.prototype,"dismissibleItemOnRequestSent",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],U2.prototype,"dataChanged",null);_.c([_.lh({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],U2);
_.A(U2,"ytd-mini-game-card-view-model",function(){if(PKI!==void 0)return PKI;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return PKI=v},{mode:_.bk("kevlar_poly_si_batch_j081")?1:2});var Fc2;var QNE;var pj=function(){return _.eo.apply(this,arguments)||this};
_.V(pj,_.eo);pj.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
pj.prototype.getContinuationUrl=function(v){var e={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(e.itct=this.data.clickTrackingParams);return _.ug(v,e)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pj.prototype,"data",void 0);_.c([_.lh({is:"yt-reload-continuation",noInjection:!0})],pj);var gF0;var uQJ;var v4=function(){var v=_.P.apply(this,arguments)||this;v.notificationData={};return v};
_.V(v4,_.P);_.W=v4.prototype;_.W.isMenuExpanded=function(v){return v&&v.length<=1?"undefined":"false"};
_.W.dataChanged_=function(){this.selected=void 0;var v=this.computeSelectedIndex_(this.data);v>=0&&(this.selected=v);v=this.data&&this.data.length>1;_.Yv(this.hostElement,"has-items",v);_.IB(this.hostElement).querySelector("#label").tabIndex=v?0:-1};
_.W.onDropdownOpen=function(){var v=_.zz();if(this.parentTrackingParams&&this.data){var e=_.Jg(this.parentTrackingParams);this.data.forEach(function(d){v&&e&&d.trackingParams&&(d=_.Jg(d.trackingParams),_.Qa(v,e,d),_.nB(v,[d]))})}else this.parentTrackingParams||_.xf(new _.kL("No parent tracking params passed in for yt-dropdown-menu."))};
_.W.hasNotification=function(v){var e;if(v.targetId&&((e=this.notificationData)==null?0:e.targetId)){var d;return v.targetId===((d=this.notificationData)==null?void 0:d.targetId)}};
_.W.computeSelectedIndex_=function(v){if(v)for(var e=0,d=v.length;e<d;e++)if(v[e].selected)return e;return-1};
_.W.computeLabel_=function(v){return this.data&&v!=void 0?this.data[v].title:""};
_.W.computeShowIcon_=function(v,e){return!e&&!!v};
_.W.computeVerticalOffset_=function(v){return v?36:0};
_.W.computeEndpoint_=function(v){return v.endpoint||v.navigationEndpoint};
_.W.onLabelClick_=function(v){this.data&&this.data.length<=1?v.stopPropagation():this.menuExpanded="true"};
_.W.onIronActivate_=function(v){v=v.detail.item;var e=_.IB(this.hostElement).querySelector("#repeat").itemForElement(v);if(e&&e.trackingParams){var d=_.zz(),E=_.Jg(e.trackingParams);d&&_.Uz(d,E)}if(e&&e.serviceEndpoint)_.N("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(e.serviceEndpoint):_.mN(this.hostElement,[e.serviceEndpoint]),_.Iq(this.hostElement,"yt-playlist-reloading");else a:{if((e=v.querySelector("yt-supported-renderers"))&&
(e=e.rendererElement)&&e.is=="yt-reload-continuation"){e.trigger();break a}(v=v.querySelector("yt-reload-continuation"))&&v.trigger()}};
_.W.onTap_=function(v){v.preventDefault()};
_.W.onItemTap_=function(v){this.ytEndpointBehavior.onEndpointTap_(v)};
_.W.onLinkFocus_=function(v){try{var e=v.target}catch(E){}if(e){var d=e.querySelector("tp-yt-paper-item");d&&_.gi(this,"focus",function(){d.focus()})}};
_.W.onMenuClose_=function(){this.menuExpanded="false"};
_.W.isLabelIconActive_=function(v){return v==="true"};
_.W.computeHasSubtitle_=function(v){return!!v};
_.W.computeHrefForItem_=function(v){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(v))};
_.W.updateSelectedFromBinding=function(v){this.selected=v.detail.value};
_.vP.Object.defineProperties(v4.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
v4.prototype.onMenuClose_=v4.prototype.onMenuClose_;v4.prototype.onTap_=v4.prototype.onTap_;v4.prototype.onIronActivate_=v4.prototype.onIronActivate_;v4.prototype.onDropdownOpen=v4.prototype.onDropdownOpen;v4.prototype.dataChanged_=v4.prototype.dataChanged_;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],v4.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.KR.YtEndpointBehavior),_.w("design:type",Object)],v4.prototype,"ytEndpointBehavior",void 0);
_.c([_.f(),_.w("design:type",Array)],v4.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],v4.prototype,"parentTrackingParams",void 0);_.c([_.f(),_.w("design:type",Object)],v4.prototype,"selected",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],v4.prototype,"useLabel",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],v4.prototype,"useComputedAriaLabel",void 0);_.c([_.f(),_.w("design:type",String)],v4.prototype,"icon",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],v4.prototype,"iconLabel",void 0);_.c([_.f(),_.w("design:type",String)],v4.prototype,"ariaLabel",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],v4.prototype,"disabled",void 0);_.c([_.f({computed:"isMenuExpanded(data)"}),_.w("design:type",String)],v4.prototype,"menuExpanded",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],v4.prototype,"closeOnActivate",void 0);
_.c([_.f({reflectToAttribute:!0,value:_.N("web_modern_buttons")}),_.w("design:type",Boolean)],v4.prototype,"modernButtons",void 0);_.c([_.f(),_.w("design:type",Object)],v4.prototype,"notificationData",void 0);_.c([_.t("ariaLabel, selected"),_.f(),_.w("design:type",String),_.w("design:paramtypes",[])],v4.prototype,"computedAriaLabel",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],v4.prototype,"dataChanged_",null);
_.c([_.Kq("paper-dropdown-open"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],v4.prototype,"onDropdownOpen",null);_.c([_.Kq("iron-activate"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],v4.prototype,"onIronActivate_",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],v4.prototype,"onTap_",null);
_.c([_.Kq("iron-overlay-closed"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],v4.prototype,"onMenuClose_",null);_.c([_.lh({is:"yt-dropdown-menu",disableElementRegistration:!0})],v4);
_.A(v4,"yt-dropdown-menu",function(){if(uQJ===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;gF0===void 0&&(gF0=document.createElement("template"));var E=gF0;d.call(e,E.content.cloneNode(!0),v.content.firstChild);uQJ=v}v=uQJ;return v},{mode:2});var ep=function(){var v=_.P.apply(this,arguments)||this;v.hasNotification=!1;return v};
_.V(ep,_.P);ep.prototype.computeId=function(v){return v};
ep.prototype.computeHorizontalAlign=function(v){return v?"right":"left"};
ep.prototype.computeAccessibilityLabel=function(v){var e,d;return((e=v.accessibility)==null?void 0:(d=e.accessibilityData)==null?void 0:d.label)||null};
ep.prototype.notificationDataChanged=function(){var v;this.hasNotification=!!this.notificationData&&!((v=this.data)==null?0:v.icon)};
ep.prototype.notificationDataChanged=ep.prototype.notificationDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Zh.YtLiveChatTooltipTargetingBehavior),_.w("design:type",Object)],ep.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ep.prototype,"data",void 0);_.c([_.f({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.w("design:type",String)],ep.prototype,"id",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],ep.prototype,"isRightAligned",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],ep.prototype,"disabled",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],ep.prototype,"closeOnActivate",void 0);_.c([_.f(),_.w("design:type",Object)],ep.prototype,"notificationData",void 0);_.c([_.f(),_.w("design:type",Object)],ep.prototype,"hasNotification",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],ep.prototype,"useComputedAriaLabel",void 0);_.c([_.$v("notificationData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ep.prototype,"notificationDataChanged",null);_.c([_.lh({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],ep);
_.A(ep,"yt-sort-filter-sub-menu-renderer",function(){if(QNE===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Fc2===void 0&&(Fc2=document.createElement("template"));var E=Fc2;d.call(e,E.content.cloneNode(!0),v.content.firstChild);QNE=v}v=QNE;return v},{mode:2});var nFg=_.l(function(v){var e=v.data;var d=_.rq(function(){var S=e().onTap;(S=_.L(S,_.zj))&&_.dk().resolve(_.EI).resolveCommand(S);return!1}),E=function(){return{sources:[{url:e().thumbnailUrl,
width:120,height:90}]}},T=function(){return e().rating&&e().ratingA11yLabel&&e().reviewsCount&&e().reviewsCountA11yLabel};
return _.m("place-data-view-model",null,_.m(_.y,{cond:function(){return e().placeName&&e().placeCategory},
then:function(){return _.m("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":d},_.m(_.va,{data:E,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.m(_.Oe,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return e().onTap}},_.m("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return e().placeName}},function(){return e().placeName})),_.m("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.m(_.y,{cond:T,
then:function(){return _.m("div",{class:_.qe("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.m("span",{class:"score",title:function(){return e().ratingA11yLabel}},function(){return e().rating}),_.m("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.m(_.sG,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.m("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return e().reviewsCountA11yLabel}},function(){return e().reviewsCount}))},
else:function(){return _.m("div",{class:_.qe("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.m("div",{class:_.qe("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.m("span",{class:"category",
title:function(){return e().placeCategory}},function(){return e().placeCategory}))))}}))},"ta");
nFg.idomCompat=!0;_.aZ(nFg,"place-data-view-model",{props:{data:_.U1}});var DXI=new _.nC("INLINE_PLAYBACK_HOOK_TOKEN");var UXc=q5t({sharedUi:alM});_.c5=h6L(UXc)(UXc.sharedUi,{animatedThumbnailEnabledSelector:function(v){return v.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(v){return v.inlinePreviewEnabled},
currentPageTypeSelector:function(v){return v.currentPageType},
currentPageSubTypeSelector:function(v){return v.currentPageSubType}});var ppg=function(v){this.setActiveSlideIndex=v;this.jobIds=[];this.isSlideshowPlaying=!1},dze=function(v,e){v.isSlideshowPlaying||(v.isSlideshowPlaying=!0,vbe(v),e2M(v,e,0))},vbe=function(v){_.Yj(_.RM,function(){v.setActiveSlideIndex(0)},1)},e2M=function(v,e,d){v.jobIds.push(_.Yj(_.RM,function(){var E=d<e-1?d+1:0;
v.setActiveSlideIndex(E);e2M(v,e,E)},1800))};var EbI=new _.nC("IMAGE_ON_LOAD_HANDLER_TOKEN");var TS6=_.l(function(v){return _.m("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.m(_.y,{cond:function(){var e;return(e=v.data())==null?void 0:e.thumbnail},
then:function(e){return _.m(_.va,{data:e,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ua");_.SX6=_.l(function(v){var e=v.data;var d=v.lockupExperiments;v={};return _.m("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.m("div",{class:_.qe("ytThumbnailOverlayButtonViewModelButton",(v.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var E;return d&&((E=d())==null?void 0:E.useLegacySizedIconButton)},v))},_.m(_.kz,{data:function(){return e().overlayButton}},{buttonViewModel:function(E){return _.m(_.yi,{data:E.data,
buttonOverrides:function(){var T;return d&&((T=d())==null?0:T.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"va");
_.SX6.idomCompat=!0;var WA2=_.l(function(v){return _.m("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.rq(function(e){e.preventDefault();return!1})},_.m(_.kz,{data:function(){return v.data().buttons}},{toggleButtonViewModel:function(e){return _.m("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.m(_.fR,{data:e.data}))}}))},"wa");
WA2.idomCompat=!0;var auA=_.l(function(v){var e=function(){var d;return((d=_.L(v.data().rendererContext,_.K6))==null?void 0:d.label)||""};
return _.m("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.m(_.y,{cond:function(){return v.data().image},
then:function(){return _.m("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.m(_.va,{data:function(){return v.data().image},
alt:e}))}}),_.m(_.y,{cond:function(){return v.data().text},
then:function(){return _.m("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return v.data().text})}}))},"xa");var i3c;i3c=_.c5.animatedThumbnailEnabledSelector;_.dJ=_.l(function(v){var e=[],d=function(){var K,k;return pEU((K=v.width)==null?void 0:K.call(v),(k=v.height)==null?void 0:k.call(v))},E=_.dk().resolve(_.eG(EbI)),T=_.nI("yt-thumbnail-view-model",function(){e.push("elRef.value set");
var K;(K=v.playbackRef)==null||K.call(v,{thumbnailElRef:T,thumbnail:v.data().image,thumbnailOverlays:v.data().overlays,thumbnailSize:d()})});
_.Gr(function(){e.push("onInit");_.Jf(function(){e.push("onCleanup")})});
var S=_.Xj(i3c),O=function(){var K,k;return(k=(K=v.aspectRatio)==null?void 0:K.call(v))!=null?k:0},b=function(){return(v.data().image?_.LBW(v.data().image):O())<=1&&O()===0},Y=function(){return b()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},q=function(){T.value||_.xf(new _.kL("Thumbnail elRef.value is null",e.join("\n")));
E&&T.value&&E(T.value)},r=function(){var K,k;
return((K=v.hovered)==null?void 0:K.call(v))&&d()!=="large"&&((k=v.data().overlays)==null?void 0:k.some(function(J){return _.L(J,uzM)}))},h={};
return _.m("yt-thumbnail-view-model",{class:_.qe("yt-thumbnail-view-model",v.className,function(){return RF$(O())},function(){var K,k;
a:{var J=d(),R=(K=v.disableRounding)==null?void 0:K.call(v);K=(k=v.isClip)==null?void 0:k.call(v);if(!R&&!K)switch(J){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},(h["yt-thumbnail-view-model--cinematic"]=b,h)),
style:_.jM({"background-color":function(){var K,k=b()?(K=v.data().backgroundColor)==null?void 0:K.lightTheme:void 0;return k?FD(k,"1"):void 0}}),
el:T},_.m(_.y,{cond:b,then:function(){return _.m("div",{class:"yt-thumbnail-view-model__blurred-image"},_.m(_.va,{data:function(){return v.data().image},
alt:"",contentMode:Y,targetWidth:v.width,onload:q}))}}),_.m("div",{class:"yt-thumbnail-view-model__image"},_.m(_.va,{data:function(){return v.data().image},
alt:"",contentMode:Y,targetWidth:v.width,onload:q}),null),_.m(_.kz,{data:function(){return r()?void 0:v.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Y7i,thumbnailOverlayBadgeViewModel:function(K){return _.m(mX2,{data:K.data,thumbnailSize:d,isClip:v.isClip})},
thumbnailBottomOverlayViewModel:function(K){return _.m(iNM,{data:K.data,thumbnailSize:d,isClip:v.isClip})},
thumbnailOverlayFullViewModel:auA,thumbnailOverlayButtonViewModel:function(K){return _.m(_.SX6,{data:K.data,lockupExperiments:v.lockupExperiments})}}),_.m(_.kz,{data:function(){var K;
return((K=v.hovered)==null?0:K.call(v))?v.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(K){return _.m(Py,{data:K.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:WA2}),_.m(_.kz,{data:function(){var K;return((K=v.hovered)==null?0:K.call(v))&&S()?v.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:TS6}),_.m(_.y,{cond:v.isClip,then:function(){return _.m("div",{class:"ytPinkingNsHost"},_.m("svg",{class:"ytPinkingNsPinkingLeft"},_.m("defs",null,_.m("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.m("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.m("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.m("svg",{class:"ytPinkingNsPinkingRight"},_.m("defs",null,_.m("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.m("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.m("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ya");
_.dJ.idomCompat={callbacks:{playbackRef:!0}};var O3u=_.l(function(v){var e=_.a(_.OE(-1,void 0,"RW2Ole")),d=e.next().value,E=e.next().value;_.Gr(function(){var T=new ppg(E);dze(T,v.data().thumbnails.length);_.Jf(function(){if(T.isSlideshowPlaying){T.isSlideshowPlaying=!1;for(var S=T.jobIds,O=0,b=S.length;O<b;O++)_.RM.cancelJob(S[O]);T.jobIds.length=0}})});
return _.m("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.m(_.kz,{data:function(){return v.data().thumbnails}},{thumbnailViewModel:function(T,S){return _.m("div",{class:function(){var O=!v.data().primaryThumbnail,b=S(),Y=d(),q=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
O&&b===0&&q.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");b<=Y&&q.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return q.join(" ")}},_.m(_.dJ,{data:T.data,
disableRounding:v.disableRounding}))}}))},"za");
O3u.idomCompat=!0;var PKS=new _.nC("DWELL_DETECTOR_REGISTRY_TOKEN");var b3u=_.l(function(v){var e=xXU(v.triggeringElement),d=function(){return!!v.data().primaryThumbnail},E=function(){var S,O=(S=v.data())==null?void 0:S.maxHeight,b;
S=(b=v.maxHeight)==null?void 0:b.call(v);return O!=null&&S!=null?Math.min(O,S):S!=null?S:O},T=function(){var S=E();
if(S){var O;if(d()&&(O=v.includeStackHeight)!=null&&O.call(v)){var b;O=((b=v.doubleStack)==null?0:b.call(v))?8:4}else O=0;S=S-O-1;if(!(S<0)){b=Math;O=b.ceil;var Y,q;var r=Uo7((q=(Y=v.aspectRatio)==null?void 0:Y.call(v))!=null?q:0);return O.call(b,S*r)}}};
return _.m("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.jM({height:function(){return E()?E()+"px":void 0},
width:function(){return T()?T()+"px":void 0}})},_.m(IuE,{stackEnabled:d,
thumbnailSize:function(){var S,O;return pEU((S=v.width)==null?void 0:S.call(v),(O=v.height)==null?void 0:O.call(v))},
doubleStack:v.doubleStack,stackColor:function(){return v.data().stackColor},
includeStackHeight:v.includeStackHeight},_.m(_.kz,{data:function(){return v.data().primaryThumbnail}},{thumbnailViewModel:function(S){var O={};
return _.m(_.dJ,{data:S.data,width:v.width,height:v.height,aspectRatio:v.aspectRatio,disableRounding:v.disableRounding,className:_.qe((O.ytCollectionThumbnailViewModelHostHasStacks=d,O)),hovered:v.hovered,playbackRef:v.playbackRef})}}),_.m(_.y,{cond:function(){var S;
return e()&&((S=v.data().thumbnails)==null?void 0:S.length)},
then:function(){return _.m("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.m(O3u,{data:v.data,disableRounding:function(){return!d()}}))}})))},"Aa");
b3u.idomCompat={callbacks:{playbackRef:!0}};
var IuE=_.l(function(v){var e=v.children;var d=v.stackEnabled;var E=v.thumbnailSize;var T=v.doubleStack;var S=v.stackColor;var O=v.includeStackHeight;var b,Y=(b=_.dk().resolve(_.eG(_.n1)))==null?void 0:b();return _.m(_.y,{cond:d,then:function(){return _.m(XRg,{data:function(){var q,r;return{experimentEnabled:!0,thumbnailSize:E(),doubleStack:T==null?void 0:T(),color:Y?S==null?void 0:(q=S())==null?void 0:q.darkTheme:S==null?void 0:(r=S())==null?void 0:r.lightTheme,enableResponsiveMode:!1,includeStackHeight:O==
null?void 0:O()}}},e)},
else:function(){return e}})},"Ba");var YXu=new _.nC("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var TS;_.Em={calledOnce:!0,state:"visible"};TS={calledOnce:!0,state:"hidden"};_.Sp=_.l(function(v){var e=v.data;var d=v.customCommandResolver;var E=v.className;var T=v.delayedClassName;var S=v.animationEntityKey;var O=v.isCompactWidth;v=_.a(_.OE(!1,void 0,"aSkCmb"));var b=v.next().value,Y=v.next().value,q=_.e2(S,""),r=_.Kv(ZZH,q),h=function(){var $S,kS;return(kS=($S=r())==null?void 0:$S.value)!=null?kS:!1},K=function(){_.vz(_.Lv("booleanEntity",q(),{key:q(),
value:!0}));F=void 0};
S=_.a(_.KM(h));var k=S.next().value,J=S.next().value;S=_.a(_.KM(h));var R=S.next().value,B=S.next().value;S=_.a(_.KM(function(){var $S;return h()?($S=e().styleTransitionConfig)==null?void 0:$S.destinationStyle:void 0}));
var X=S.next().value,Z=S.next().value,U=function(){var $S=Object.assign({},e(),X()&&{style:X()});var kS,N7,As=$S.label,Ct=(kS=$S.interaction)==null?void 0:(N7=kS.accessibility)==null?void 0:N7.label;kS=$S.iconImage?$S.label&&$S.label.content?$S.iconLeading?"leading":"trailing":"icon-only":void 0;$S={formattedButtonText:As,accessibilityLabel:Ct,style:zFs($S.style),type:lAt($S.style),state:"active",size:XpM($S.size),iconPosition:kS,disabled:!1,aTagConfig:CKW($S,d)};_.N("enable_desktop_vdcbg_components")&&
($S.focused=b());return $S},F;
S=_.Eh({visibilityCallback:function($S){var kS,N7=(kS=e().interaction)==null?void 0:kS.onFirstVisible;$S&&N7&&_.wC(N7)},
showOption:_.Em});var g=function(){return ER0(U(),!!e().iconImage)};
v={};E=_.qe(function(){return"ytwAdButtonViewModelHost"},function(){return e().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var $S=!!e().delayedAppearanceConfig,kS=k();
return $S?kS?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var $S=!!e().delayedAppearanceConfig,kS=R();
return $S?kS?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!e().delayedAppearanceConfig||k()?T==null?void 0:T():""},(v.ytwAdButtonViewModelHostCompactWidth=function(){return O==null?void 0:O()},v),E!=null?E:"");
var Q=function(){var $S,kS=($S=e().delayedAppearanceConfig)==null?void 0:$S.delayedInvisibleSeconds;kS&&(F=_.JX(_.RM,function(){J(!0);v3()},kS*1E3))},v3=function(){var $S,kS=($S=e().delayedAppearanceConfig)==null?void 0:$S.delayedVisibleSeconds;
kS&&(F=_.JX(_.RM,function(){B(!0);q7()},kS*1E3))},q7=function(){var $S,kS=($S=e().styleTransitionConfig)==null?void 0:$S.styleTransitionSeconds,N7,As=(N7=e().styleTransitionConfig)==null?void 0:N7.destinationStyle;
kS&&As?F=_.JX(_.RM,function(){Z(As);K()},kS*1E3):K()},m0=function(){var $S;
return($S=e().delayedAppearanceConfig)==null?void 0:$S.transitionDurationSeconds};
_.Gr(function(){Q()});
_.Jf(function(){F&&_.RM.cancelJob(F)});
return _.m("ad-button-view-model",{"on:focusin":_.rq(_.N("enable_desktop_vdcbg_components")?function(){var $S=_.dk().resolve(_.eG(_.i$));$S&&Y($S.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.rq(_.N("enable_desktop_vdcbg_components")?function(){Y(!1);return!1}:void 0),
class:E,el:_.dq(S),style:_.jM({"transition-duration":function(){return m0()?m0()+"s":void 0}})},_.m(_.y,{cond:U,
then:function(){return _.m(_.mO,{data:U,icon:function(){return _.m(_.y,{cond:function(){return e().iconImage},
then:function($S){return _.m(_.va,{data:$S,alt:"",targetWidth:g,targetHeight:g,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Ca");var mz2=_.l(function(v){var e=v.data;v=function(){return e().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var d=_.Eh({visibilityCallback:function(S){var O,b=(O=e().interaction)==null?void 0:O.onFirstVisible;S&&b&&_.wC(b)},
showOption:_.Em}),E={},T={};return _.m("ad-button-group-view-model",{class:_.qe("ytwAdButtonGroupViewModelHost",(E.ytwAdButtonGroupViewModelHostCompactWidth=v,E)),el:_.dq(d)},_.m("div",{class:_.qe("ytwAdButtonGroupViewModelHostSecondaryButton",(T.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=v,T))},_.m(_.kz,{data:function(){return e().secondaryAdButton}},{adButtonViewModel:function(S){return _.m(_.Sp,{data:S.data})}})),_.m("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.m(_.kz,
{data:function(){return e().primaryAdButton}},{adButtonViewModel:function(S){return _.m(_.Sp,{data:S.data})}})))},"Da");var ywg=_.l(function(v){var e=function(){var d;return((d=v.data())==null?void 0:d.answers)||[]};
return _.m("yt-survey-icons",{class:"ytSurveyIconsHost"},_.m("div",{class:"ytSurveyIconsHeader"},_.m("div",{class:"ytSurveyIconsTitle"},function(){var d;return(d=v.data())==null?void 0:d.text}),_.m("div",null,_.m(_.mO,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var d;(d=v.onDismiss)==null||d.call(v)}}},
iconName:"DISMISSAL"}))),_.m("div",null,_.m("div",{class:"ytSurveyIconsAnswers"},_.m(_.jI,{each:function(){return e()},
keyBy:"INDEX"},function(d,E){return _.m("div",null,_.m(_.mO,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var T;(T=v.onSelect)==null||T.call(v,d(),E)}}},
icon:function(){return _.m(_.sG,{icon:function(){var T,S;return(T=d())==null?void 0:(S=T.icon)==null?void 0:S.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.m("div",{class:"ytSurveyIconsAnswersText"},_.m("div",null,function(){return e().length?e()[0].text:""}),_.m("div",null,function(){return e().length?e()[e().length-1].text:""}))))},"Ea");var qXg=_.l(function(v){var e=_.dq(_.B5(function(){var Y;return(Y=v.data())==null?void 0:Y.rendererContext},void 0,void 0,void 0,!0)),d=_.a(_.OE(!1,void 0,"YxWRNc")),E=d.next().value,T=d.next().value,S=_.Kv(Rk3,function(){var Y;
return(Y=v.data().keys)==null?void 0:Y.surveyEntityKey}),O=_.Kv(PCS,function(){var Y;
return(Y=v.data().keys)==null?void 0:Y.surveyStateEntityKey});
_.ul("ytd-slimline-survey-show-action",function(){T(!1)});
var b=function(){var Y,q;var r=(Y=O())==null?void 0:(q=Y.questionStack)==null?void 0:q[0];if(r!==void 0){var h,K;return(h=S())==null?void 0:(K=h.questions)==null?void 0:K[r]}};
d={};return _.m("yt-slimline-survey-view-model",{el:e,class:_.qe("ytSlimlineSurveyViewModelHost",(d.ytSlimlineSurveyViewModelCollapsed=function(){return E()},d))},_.m("div",{class:"ytSlimlineSurveyViewModelContainer"},_.m(_.y,{cond:function(){var Y;
return((Y=b())==null?void 0:Y.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.m(ywg,{data:function(){return b()},
onSelect:function(Y,q){var r,h;return _.I(function(K){T(!0);if(h=(r=v.data())==null?void 0:r.onSelectRating)_.wC(h),_.vz(h5B(q));_.s9(K)})},
onDismiss:function(){T(!0);var Y;var q=(Y=S())==null?void 0:Y.dismissalFeedbackToken;Y=q?{feedbackEndpoint:{feedbackToken:q}}:void 0;Y&&_.Hz(Y,{form:{element:e.value}})}})}})))},"Fa");var rwE=_.l(function(v){return _.m("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.m(_.kz,{data:function(){var e;return(e=v.data())==null?void 0:e.attachments}},{flexibleActionsViewModel:function(e){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(_.CE,{data:e.data,
layout:function(){var d;return((d=v.lockupStyle())==null?void 0:d.arrangement)===1?0:1},
justifyContentOverride:function(){var d;return((d=v.lockupStyle())==null?void 0:d.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(e){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(qXg,{data:e.data}))},
expandableMetadataViewModel:function(e){e=e.data;var d;return _.m("div",{class:_.qe("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(d=_.dk().resolve(_.eG(YXu)))==null?void 0:d({data:e}))},
adButtonGroupViewModel:function(e){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(mz2,{data:e.data}))},
adButtonViewModel:function(e){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(_.Sp,{data:e.data,isCompactWidth:!0}))}}))},"Ga");var FcO=_.Wi("rich_grid_min_item_width",310),cSS=_.Wi("rich_grid_max_item_width",500);var h2g=_.l(function(v){var e=v.data;return _.m("br-nz-badge-shape",{class:_.qe(function(){return vbs(e().brNzRatingBadgeType)}),
role:function(){return e().accessibilityText?"img":void 0},
"aria-label":function(){return e().accessibilityText}},function(){var d;
return(d=e())==null?void 0:d.text})},"Ha");_.W4=_.l(function(v){var e=function(){var d=v.data(),E,T;if(d){var S=!((E=v.workaroundShortsIsThumbnailBadge)==null||!E.call(v));E=(T=v.modern)==null?void 0:T.call(v);var O;a:switch(d.badgeStyle){case "BADGE_OVERLAY":T=!0;break a;default:T=!1}d={type:S?17:e2L(d.badgeStyle),brNzRatingBadgeType:dzs(d.badgeStyle),text:d.badgeText,icon:d.iconName,isOverlay:T,modern:E||_.N("web_modern_badge_view_model"),accessibilityText:d.accessibilityLabel||((O=_.L(d.rendererContext,_.K6))==null?void 0:O.label)}}else d=
void 0;return d};
return _.m("yt-badge-view-model",{class:_.qe("ytBadgeViewModelHost",v.class)},_.m(_.kc,null,_.m(_.sW,{when:function(){var d;return!((d=e())==null||!d.brNzRatingBadgeType)}},function(){return _.m(h2g,{data:function(){return e()}})}),_.m(_.sW,{when:function(){return!!e()&&!e().brNzRatingBadgeType}},function(){return _.m(_.H7,{data:function(){return e()}})})))},"Ia");
_.W4.idomCompat=!0;var TS0,EbS;TS0=16/9;EbS=2/3;_.a3=_.l(function(v){var e=v.data;var d=v.className;var E=v.imageSizeConfig;var T=v.notifyOnLoaded;var S=function(){return e().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},O=function(){var K;
return _.xz((K=e())==null?void 0:K.rendererContext)};
v={};v=(v.ytContentPreviewImageViewModelHost=!0,v.ytContentPreviewImageViewModelCircleImage=function(){return S()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},v.ytContentPreviewImageViewModelTappable=function(){return O()},v);
var b=function(){var K,k;return(k=(K=_.L(e().rendererContext,_.K6))==null?void 0:K.label)!=null?k:""},Y=function(){return WAO(e())},q=function(){var K=SX0(S(),e().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",E==null?void 0:E(),auW(Y()),e().layoutWidth,e().layoutHeight),k=Object.assign({},K);
K.width&&(k.width=Math.round(K.width));K.height&&(k.height=Math.round(K.height));K.maxWidth&&(k.maxWidth=Math.round(K.maxWidth));K.maxHeight&&(k.maxHeight=Math.round(K.maxHeight));return k},r=_.yl(function(){return q().height},void 0,"CxFlJb"),h=_.yl(function(){return q().width},void 0,"lb8Jhd");
return _.m("yt-content-preview-image-view-model",{el:_.dq(_.B5(function(){var K;return(K=e())==null?void 0:K.rendererContext})),
role:function(){return O()?"link":void 0},
tabindex:function(){return O()?0:void 0},
class:_.qe(d,v,function(){var K=S();var k=E==null?void 0:E();K=K==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||K==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||K==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||K==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(k==null?void 0:k.size)!=null&&k.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(k==null?void 0:k.size)!=null&&k.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return K}),
style:function(){var K=q(),k=[];K.width&&k.push("width: "+K.width+"px");K.height&&k.push("height: "+K.height+"px");K.maxWidth&&k.push("max-width: "+K.maxWidth+"px");K.maxHeight&&k.push("max-height: "+K.maxHeight+"px");K.fullWidth&&k.push("width: 100%");return k.join(";")}},_.m(_.y,{cond:Y,
then:function(K){return _.m(_.va,{data:K,alt:b,"data-disabled$":function(){return!b()},
notifyOnLoaded:T,targetWidth:h,targetHeight:r,preserveWidth:function(){return!!h()},
preserveHeight:function(){return!!r()}})}}),_.m(_.kz,{data:function(){var K;
return(K=e())==null?void 0:K.overlays}},{thumbnailHoverOverlayViewModel:Py,
thumbnailOverlayButtonViewModel:_.SX6}))},"Ja");
_.a3.idomCompat=!0;var $zI=_.l(function(v){var e=v.data;var d=v.className;var E=v.useSmallLayout;v=v.useMediumText;var T={};v=(T["yt-attribution-view-model-wiz"]=!0,T["yt-attribution-view-model-wiz--medium-text"]=v,T);return _.m("yt-attribution-view-model",{el:_.dq(_.B5(function(){var S;return(S=e())==null?void 0:S.rendererContext})),
class:_.qe(d,v)},_.m(_.y,{cond:function(){return _.xz(e().rendererContext)},
then:function(){return _.m("button",{class:"yt-attribution-view-model-wiz--tappable"},_.m(KAi,{data:e,useSmallLayout:E}))},
else:function(){return _.m(KAi,{data:e,useSmallLayout:E})}}))},"Ka"),KAi=_.l(function(v){var e=v.data;
var d=v.useSmallLayout;var E=function(){return{size:(d==null?0:d())?16:24}};
return _.m(_.eI,null,_.m(_.kz,{data:function(){return e().contentPreviewImage}},{contentPreviewImageViewModel:function(T){return _.m(_.a3,{data:T.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:E})}}),_.m(_.kz,{data:function(){return e().badge}},{badgeViewModel:function(T){return _.m(_.W4,{data:T.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.m(_.y,{cond:function(){return e().text},
then:function(){return _.m(_.Dh,{text:function(){return e().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.m(_.y,{cond:function(){return e().suffix},
then:function(){return _.m(_.Dh,{text:function(){return e().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"La");
$zI.idomCompat=!0;var jK0,sKe,NSu,kl2,LAc;jK0=_.l(function(v){var e=v.delimiter;var d=v.max;var E=v.index;var T=v.isStandalone;return _.m(_.y,{cond:function(){return d()-1>E()},
then:function(){var S={};return _.m("span",{class:_.qe("yt-content-metadata-view-model-wiz__delimiter",(S["yt-content-metadata-view-model-wiz__delimiter--standalone"]=T,S)),"aria-hidden":!0},e)}})},"Ma");
sKe=_.l(function(v){var e=v.metadataPart;var d=v.maxLines;return _.m(_.Dh,{text:function(){return e().text},
linkInheritColor:!0,className:function(){return i33(d())},
userInput:!0})},"Na");
NSu=_.l(function(v){var e=v.metadataPart;var d=v.maxLines;return _.m(_.y,{cond:function(){return e().tooltip},
then:function(E){return _.m("span",{title:E,role:"tooltip"},_.m(sKe,{metadataPart:e,maxLines:d}))},
else:function(){return _.m(sKe,{metadataPart:e,maxLines:d})}})},"Oa");
kl2=_.l(function(v){var e=v.metadataPart;var d=v.isOverlay;var E=v.useMediumText;var T=v.hideAvatar;var S=function(){return e().maxLines!==void 0?e().maxLines:1};
return _.m(_.eI,null,_.m(_.kz,{data:function(){return e().avatarStack}},{avatarStackViewModel:function(O){return _.m(_.Cj,{data:O.data,
isOverlay:d,useMediumText:E,hideAvatar:T})},
badgeViewModel:_.W4}),_.m(_.y,{cond:function(){return e().leadingIcon},
then:function(O){return _.m(_.sG,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return O().name},
size:function(){return O().width}})}}),_.m(_.y,{cond:function(){return e().text},
then:function(){return _.m(NSu,{metadataPart:e,maxLines:S})}}),_.m(_.y,{cond:function(){return e().icon},
then:function(O){return _.m(_.sG,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return O().name},
size:function(){return O().width}})}}))},"Pa");
LAc=_.l(function(v){var e=v.metadataRow;var d=v.isInline;var E=v.delimiter;var T=v.isOverlay;var S=v.useMediumText;var O=v.extensions;var b=function(){var q,r=O==null?void 0:(q=O())==null?void 0:q.lockupMetadata;q=e();var h,K;return!!((r==null?0:(h=r.byline)==null?0:h.hideAvatar)&&((K=_.L(q,HsJ))==null?void 0:K.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},Y=function(){return e().metadataParts||[]};
v={};return _.m("div",{class:_.qe("yt-content-metadata-view-model-wiz__metadata-row",(v["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=d,v["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var q,r=O==null?void 0:(q=O())==null?void 0:q.lockupMetadata;q=e();var h,K;return!!((r==null?0:(h=r.byline)==null?0:h.addPadding)&&((K=_.L(q,HsJ))==null?void 0:K.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},v["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var q;
return!!(O==null?0:(q=O())==null?0:q.lockupMetadata)&&e().badges&&!e().metadataParts},v))},_.m(_.kz,{data:function(){return e().badges}},{badgeViewModel:function(q){return _.m("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.m(_.W4,{data:q.data}))}}),_.m(_.jI,{each:Y},function(q,r){return _.m(_.eI,null,_.m(kl2,{metadataPart:q,
isOverlay:T,useMediumText:S,hideAvatar:b}),_.m(jK0,{delimiter:E,max:function(){return Y().length},
index:r,isStandalone:!1}))}),_.m(_.y,{cond:function(){return e().isSpacerRow&&!d()},
then:function(){return _.m("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Qa");
_.i5=_.l(function(v){v=_.dC(v,{layout:0,isOverlay:!1});var e=v.data,d=v.layout,E=v.isOverlay,T=v.useMediumText,S=v.extensions,O=function(){return d()===0},b=function(){var q;
return((q=e().metadataRows)==null?void 0:q.filter(function(r){var h,K=S==null?void 0:(h=S())==null?void 0:h.lockupMetadata,k,J;h=!!((K==null?0:(k=K.description)==null?0:k.hideDescription)&&((J=_.L(r,HsJ))==null?void 0:J.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var R,B;return!((K==null?0:(R=K.spacer)==null?0:R.hideSpacer)&&((B=_.L(r,HsJ))==null?void 0:B.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||h)}))||[]},Y={};
return _.m("yt-content-metadata-view-model",{class:_.qe(v.className,"yt-content-metadata-view-model-wiz",(Y["yt-content-metadata-view-model-wiz--inline"]=O,Y["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.xz(e().rendererContext)},Y["yt-content-metadata-view-model-wiz--medium-text"]=T,Y)),
el:_.dq(_.B5(function(){return e().rendererContext}))},_.m(_.jI,{each:b},function(q,r){return _.m(_.eI,null,_.m(LAc,{metadataRow:q,
isInline:O,delimiter:function(){return e().delimiter},
isOverlay:E,useMediumText:T,extensions:S}),_.m(_.y,{cond:function(){return O()&&!q.isSpacerRow},
then:function(){return _.m(jK0,{delimiter:function(){return e().delimiter},
max:function(){return b().length},
index:r,isStandalone:!0})}}))}))},"Ra");
_.i5.idomCompat=!0;var VFg=_.l(function(v){var e={};return _.m("yt-lockup-metadata-view-model",{class:_.qe("yt-lockup-metadata-view-model-wiz",function(){a:{var d=v.lockupStyle();if(d==null?0:d.isOverlay)d="yt-lockup-metadata-view-model-wiz--overlay";else switch(d==null?void 0:d.arrangement){case 1:d="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:d="yt-lockup-metadata-view-model-wiz--vertical"}}return d},function(){a:{var d=v.lockupStyle();
if(d==null?0:d.isTiny)d="yt-lockup-metadata-view-model-wiz--tiny";else switch(d==null?void 0:d.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":d="yt-lockup-metadata-view-model-wiz--compact";break a;default:d="yt-lockup-metadata-view-model-wiz--standard"}}return d},(e["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var d;
return(d=v.lockupStyle())==null?void 0:d.isOverlay},e["yt-lockup-metadata-view-model-wiz--card"]=function(){var d;
return(d=v.lockupStyle())==null?void 0:d.isCard},e["yt-lockup-metadata-view-model-wiz--centered"]=function(){var d;
return(d=v.lockupStyle())==null?void 0:d.isCentered},e["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var d;
return(d=v.lockupStyle())==null?void 0:d.typographyBump},e["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var d;
return(d=v.lockupStyle())==null?void 0:d.useLegacyTypography},e["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var d;
return(d=v.lockupStyle())==null?void 0:d.useRichGridLegacyTypography},e))},_.m(_.kz,{data:function(){return v.data().image}},{avatarStackViewModel:function(d){return _.m("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.m(_.Cj,{data:d.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(d){return _.m("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.m(_.x7,{data:d.data}))},
decoratedAvatarViewModel:function(d){return _.m("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.m(_.By,{data:d.data}))}}),_.m("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.m("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var d;return(d=v.data().title)==null?void 0:d.content}},_.m(_.y,{cond:function(){return v.data().title},
then:function(d){return _.m(_.Oe,{command:v.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:v.lockupAccessibilityLabel},_.m(_.Dh,{text:d,userInput:!0}))}})),_.m("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.m(_.kz,{data:function(){return v.data().metadata}},{contentMetadataViewModel:function(d){return _.m(_.i5,{data:d.data,
layout:1,useMediumText:function(){var E,T;return((E=v.lockupStyle())==null?void 0:E.typographyBump)||((T=v.lockupStyle())==null?void 0:T.useRichGridLegacyTypography)},
extensions:function(){var E,T,S,O;return{lockupMetadata:{byline:{hideAvatar:((E=v.lockupStyle())==null?void 0:E.arrangement)===0,addPadding:((T=v.lockupStyle())==null?void 0:T.arrangement)===1},description:{hideDescription:!((S=v.lockupStyle())==null||!S.compactMetadata)},spacer:{hideSpacer:!((O=v.lockupStyle())==null||!O.compactMetadata)}}}}})}})),_.m(_.kz,{data:function(){return v.data().attribution}},{attributionViewModel:function(d){return _.m("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.m($zI,{data:d.data,
useSmallLayout:!0}))}})),_.m("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.m(_.kz,{data:function(){return v.data().menuButton}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
buttonOverrides:function(){var E;return((E=v.lockupStyle())==null?0:E.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sa");
VFg.idomCompat=!0;var obM=_.l(function(v){var e=_.nI("notification-multi-action-renderer");_.JE(function(){requestAnimationFrame(function(){_.nU(e.value)})});
var d={},E={},T={};return _.m("notification-multi-action-renderer",{class:_.qe("ytNotificationMultiActionRendererHost",(d.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var S;return(S=v.useLegacyShelfStyle)==null?void 0:S.call(v)},d)),
el:e},_.m("span",{"aria-live":"polite",class:_.qe("ytNotificationMultiActionRendererTextContainer",(E.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var S;return(S=v.useLegacyShelfStyle)==null?void 0:S.call(v)},E))},_.m(_.Dh,{text:function(){return v.data().responseText}})),_.m("div",{class:_.qe("ytNotificationMultiActionRendererButtonContainer",(T.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var S;
return(S=v.useLegacyShelfStyle)==null?void 0:S.call(v)},T))},_.m(_.kz,{data:function(){var S;
return(S=v.data().buttons)==null?void 0:S.map(function(O){if(O=O.buttonRenderer){var b,Y=Object,q=Y.assign,r=(b=O.icon)==null?void 0:b.iconType;b=(b=O.command||O.serviceEndpoint||O.navigationEndpoint)?{innertubeCommand:b}:void 0;O={buttonViewModel:q.call(Y,{},{iconName:r,onTap:b,trackingParams:O.trackingParams,titleFormatted:O.text?_.Bz(O.text):void 0},IuU(O))}}else O=void 0;return O}).filter(function(O){return!!O})}},{buttonViewModel:function(S,O){return _.m("div",null,_.m(_.yi,{data:S.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var b;return((b=v.useModernStyles)==null?0:b.call(v))?{type:O()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ta");var Jwi=_.l(function(v){var e=_.nI("notification-text-renderer");_.JE(function(){requestAnimationFrame(function(){_.nU(e.value)})});
return _.m("notification-text-renderer",{el:e,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.m(_.Dh,{text:function(){return v.data().successResponseText}}))},"Ua");_.Om=_.l(function(v){var e=_.Kv(ny0,function(){var E;return b3$((E=v.contentId)==null?void 0:E.call(v))}),d=function(){var E;
return _.L((E=e())==null?void 0:E.command,_.j6)};
return _.m(_.y,{cond:function(){var E;if(!(E=d())){var T;E=_.L((T=e())==null?void 0:T.command,fiM)}return E},
then:function(){return _.m(_.y,{cond:d,then:function(){var E={};return _.m("div",{class:_.qe("ytDismissibleItemReplacedContent",function(){var T;return YX$((T=v.aspectRatio)==null?void 0:T.call(v))})},_.m("div",{class:_.qe((E.ytDismissibleItemAspectRatioContainer=function(){var T;
return((T=v.aspectRatio)==null?void 0:T.call(v))!==void 0},E))},_.m(_.kz,{data:function(){var T;
return(T=d())==null?void 0:T.item}},{notificationMultiActionRenderer:function(T){return _.m(obM,{data:T.data,
useModernStyles:v.useModernStyle,useLegacyShelfStyle:v.useLegacyShelfStyle})},
notificationTextRenderer:Jwi})))}})},
else:v.children})},"Va");_.Gl7=_.l(function(v){var e=v.data;var d=v.customCommandResolver;v=_.dq(_.Eh({visibilityCallback:function(S){var O,b=(O=e().interaction)==null?void 0:O.onFirstVisible;S&&b&&_.wC(b)},
showOption:_.Em}));var E=function(){var S;return((S=e().interaction)==null?0:S.onTap)?function(O){var b;B0j(O,(b=e().interaction)==null?void 0:b.onTap,d)}:void 0},T=function(){var S,O=e(),b=E(),Y=(S=_.L(e().rendererContext,_.K6))==null?void 0:S.label;
a:switch(O.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":S=1;break a;default:S=0}return{size:qX0(O.size),type:S,onTap:b,accessibilityText:Y}};
return _.m("ad-avatar-view-model",{class:function(){var S;return((S=e().interaction)==null?0:S.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:v},_.m(_.y,{cond:function(){return e().image},
then:function(S){return _.m(bNA,{data:T,image:S})}}))},"Wa");_.I3=_.l(function(v){var e=_.dC(v,{hasDot:!1});v=Object.assign({},e);var d=e.data,E=e.hasDot;e=e.customCommandResolver;var T=(delete v.data,delete v.hasDot,delete v.customCommandResolver,v);v=function(){return d().style};
v!==void 0&&v!==null||_.ZV(Error("Gh"));v=_.lH(function(){return d().interaction},e);
return _.m("ad-badge-view-model",{class:_.qe(function(){var S;return((S=d().interaction)==null?0:S.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var S=T.adRenderingContextType();
d();return S==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.dq(v)},_.m(_.H7,{data:function(){var S;d();return{type:2,text:(S=d().label)==null?void 0:S.content,adsIncludeDot:E(),isOverlay:d().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xa");var MFM;_.b5=_.l(function(v){var e=v.data;var d=v.customCommandResolver;var E=v.adRenderingContextType;return _.m("ad-details-line-view-model",{class:function(){var T;return((T=e().interaction)==null?0:T.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.dq(_.Eh({visibilityCallback:function(T){var S,O=(S=e().interaction)==null?void 0:S.onFirstVisible;T&&O&&_.wC(O)},
showOption:_.Em}),_.lH(function(){return e().interaction},d))},_.m(_.y,{cond:function(){return e().style},
then:function(T){return _.m(_.jI,{each:function(){var S;return((S=e())==null?void 0:S.attributes)||[]},
keyBy:"INDEX"},function(S){return _.m(MFM,{attribute:S,style:T,adRenderingContextType:function(){return E()}})})}}))},"Ya");
MFM=_.l(function(v){var e=v.attribute;var d=v.style;var E=v.adRenderingContextType;return _.m(_.y,{cond:function(){return e().text},
then:function(T){return _.m(_.Dh,{text:T,className:function(){var S=E();d();return S==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Za");var tFM=_.l(function(v){var e=v.data;var d=v.typographyBump;var E=function(){return e().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
v={};return _.m(_.eI,null,_.m("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.m(_.Dh,{text:function(){return e().headline},
className:_.qe("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(v.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return E==null?void 0:E()},v.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(d==null?void 0:d())&&!(E==null?0:E())},v)),
linkInheritColor:!0}),_.m(_.y,{cond:function(){return e().description},
then:function(T){var S={};return _.m(_.Dh,{text:T,className:_.qe("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(S.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return E==null?void 0:E()},S.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(d==null?void 0:d())&&!(E==null?0:E())},S)),
linkInheritColor:!0})}}),_.m(_.y,{cond:function(){return e().secondaryDescription},
then:function(T){var S={};return _.m(_.Dh,{text:T,className:_.qe("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(S.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return d==null?void 0:d()},S)),
linkInheritColor:!0})}}),_.m("div",{class:function(){return E()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.m(_.y,{cond:function(){return e().adAvatar},
then:function(){return _.m("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.m(_.kz,{data:function(){return e().adAvatar}},{adAvatarViewModel:_.Gl7}))}}),_.m(_.kz,{data:function(){return e().adBadge}},{adBadgeViewModel:function(T){return _.m(_.I3,{data:T.data,
hasDot:function(){return!!e().adDetailsLine},
adRenderingContextType:function(){return e().adRenderingContextType}})}}),_.m(_.kz,{data:function(){return e().adDetailsLine}},{adDetailsLineViewModel:function(T){return _.m(_.b5,{data:T.data,
adRenderingContextType:function(){return e().adRenderingContextType}})}}))),_.m("div",{class:function(){return E()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.m(_.kz,{data:function(){return e().menu}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data,
buttonOverrides:function(){a:switch(e().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var S="S";break a;default:S="M"}return{size:S}}})}})))},"$a"),fuI=_.l(function(v){var e=v.data;
var d=v.noBottomMargin;var E=v.useVideoLockupTopPadding;var T=v.typographyBump;v={};v=_.qe("ytwFeedAdMetadataViewModelHostMetadata",(v.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return d==null?void 0:d()},v.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return E==null?void 0:E()},v));
var S=function(){return e().adBadge};
S!==void 0&&S!==null||_.ZV(Error("Hh"));S={};var O={};return _.m(_.eI,null,_.m(_.y,{cond:function(){return e().adAvatar},
then:function(){return _.m("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.m(_.kz,{data:function(){return e().adAvatar}},{adAvatarViewModel:function(b){return _.m(_.Gl7,{data:b.data})}}))}}),_.m("div",{class:v},_.m("div",{class:_.qe("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(S.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return T==null?void 0:T()},S.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(T==
null?void 0:T())&&_.N("web_enable_typography_bump_v2")},S))},_.m(_.Dh,{text:function(){return e().headline},
linkInheritColor:!0})),_.m(_.y,{cond:function(){return e().description},
then:function(b){return _.m(_.Dh,{text:b,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.m("div",{class:function(){return e().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.N("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.m(_.kz,{data:function(){return e().adBadge}},
{adBadgeViewModel:function(b){return _.m(_.I3,{data:b.data,
hasDot:function(){return!!e().adDetailsLine},
adRenderingContextType:function(){return e().adRenderingContextType}})}}),_.m(_.kz,{data:function(){return e().adDetailsLine}},{adDetailsLineViewModel:function(b){return _.m(_.b5,{data:b.data,
adRenderingContextType:function(){return e().adRenderingContextType}})}})),_.m(_.y,{cond:function(){return e().secondaryDescription},
then:function(b){return _.m(_.Dh,{text:b,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.m("div",{class:_.qe("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(O.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return E==null?void 0:E()},O))},_.m(_.kz,{data:function(){return e().menu}},{buttonViewModel:_.yi})))},"ab"),R26=_.l(function(v){var e=v.data;
var d=v.noBottomMargin;var E=v.listenToTapEvent;var T=v.setTouchEndHandler;var S=v.useVideoLockupTopPadding;var O=v.typographyBump;v=_.Eh({visibilityCallback:function(h){var K,k=(K=e().interaction)==null?void 0:K.onFirstVisible;h&&k&&_.wC(k)},
showOption:_.Em});var b=_.lH(function(){return e().interaction},void 0,function(){return E==null?void 0:E()}),Y=_.a(_.OE(!1,void 0,"p7Js8e")),q=Y.next().value,r=Y.next().value;
Y=_.rq(function(h){(T==null?0:T())&&!q()&&(h.currentTarget.click(),r(!0),setTimeout(function(){r(!1)},100));
return!1});
return _.m("feed-ad-metadata-view-model",{class:function(){var h;return((h=e().interaction)==null?0:h.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.dq(v,b),"on:touchend":Y},_.m(_.kc,null,_.m(_.sW,{when:function(){return e().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.m(tFM,{data:e,
typographyBump:O})}),_.m(_.sW,{when:function(){return e().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.m(fuI,{data:e,
noBottomMargin:d,useVideoLockupTopPadding:S,typographyBump:O})})))},"bb");var Pp0,xzn;Pp0=_.c5.inlinePreviewEnabledSelector;_.Y8=_.l(function(v){return _.m("yt-lockup-view-model",{class:_.qe(v.className)},_.m(_.Om,{contentId:function(){return v.data().contentId},
useModernStyle:!0,aspectRatio:function(){var e,d;return((e=v.containerType)==null?void 0:e.call(v))!==3?UX3(v.data().contentType,(d=v.force16By9ThumbnailAspectRatio)==null?void 0:d.call(v)):void 0}},function(){return _.m(xzn,Object.assign({},v))}))},"cb");
xzn=_.l(function(v){v=_.dC(v,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var e=v.data,d=v.containerLayoutConfig,E=v.containerType,T=v.sizing,S=v.protectBackground,O=v.typographyBump,b=v.force16By9ThumbnailAspectRatio,Y=v.thumbnailFixedWidth,q=v.thumbnailTargetWidth,r=v.lockupExperiments,h=v.elementsPerRow;
v=_.dq(_.B5(function(){var N7;return(N7=e())==null?void 0:N7.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 K=_.Xj(Pp0),k=_.dk().resolve(_.eG(DXI)),J=k?{}:void 0,R=function(){var N7,As,Ct;return(Ct=(As=_.L((N7=e())==null?void 0:N7.rendererContext,_.K6))==null?void 0:As.label)!=null?Ct:void 0},B=function(){var N7=d==null?void 0:d(),As;
if(N7==null?0:N7.containerType){var Ct=(As=e())==null?void 0:As.contentType;As=r();var SA=O(),xI=q(),mg=S();N7=Object.assign({},pp0(uQM(N7),QNU(N7.responsiveSize),SA,Ct,N7.force16By9ThumbnailAspectRatio,xI,mg,As),{thumbnailFixedWidth:N7.contentPreviewWidth})}else N7=pp0(E(),T(),O(),(Ct=e())==null?void 0:Ct.contentType,b(),q(),S(),r());return N7};
k&&J&&k({enabled:function(){return K()},
itemPlaybackModel:function(){return e().itemPlayback},
thumbnailElRef:function(){return J.thumbnailElRef},
containerElRef:v,options:function(){var N7,As=(N7=_.L(e().metadata,_.Abg))==null?void 0:N7.endorsement;N7=J.thumbnailOverlays||[];As&&N7.push(As);var Ct,SA;return{thumbnail:J.thumbnail,thumbnailOverlays:N7,accessibilityText:R(),thumbnailSize:J.thumbnailSize,enableRounding:B().isCollection,containPlayerWithinThumbnail:B().isCollection,trackingParams:(Ct=_.L(e().rendererContext,_.kJ))==null?void 0:(SA=Ct.loggingDirectives)==null?void 0:SA.trackingParams}}});
var X=0;k=_.a(_.OE(!1,void 0,"BKBkhb"));var Z=k.next().value,U=k.next().value;k=_.a(_.OE(!1,void 0,"GK0mq"));var F=k.next().value,g=k.next().value;k=_.rq(function(){var N7=K()&&e().itemPlayback;F()?(_.RM.cancelJob(X),X=_.RM.addJob(function(){U(!N7)},8,32)):U(!N7);
return!0});
var Q=_.rq(function(){X&&(_.RM.cancelJob(X),X=0);U(!1)});
_.Jf(function(){X&&(_.RM.cancelJob(X),X=0)});
var v3=yw0(function(){g(!0)}),q7=v3.touchFeedbackEvents,m0=v3.touchFeedbackOnPointerUp,$S=v3.touchFeedbackOnPointerDown;
v3=v3.touchFeedbackOnPointerLeave;var kS={};return _.m("div",{el:v,class:_.qe("yt-lockup-view-model-wiz",function(){a:{var N7=B();if(N7.isOverlay)N7="yt-lockup-view-model-wiz--overlay";else switch(N7.arrangement){case 1:N7="yt-lockup-view-model-wiz--horizontal";break a;default:N7="yt-lockup-view-model-wiz--vertical"}}return N7},function(){a:{var N7=B();
if(N7.isOverlay)N7="yt-lockup-view-model-wiz--overlay";else{switch(N7.collectionStackNumber){case 1:N7="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:N7="yt-lockup-view-model-wiz--collection-stack-2";break a}N7=void 0}}return N7},function(){var N7;
return _.O3$((N7=e())==null?void 0:N7.contentId)},(kS["yt-lockup-view-model-wiz--card"]=function(){return B().isCard},kS["yt-lockup-view-model-wiz--compact"]=function(){return B().isTiny||B().sizing!=="STANDARD"},kS["yt-lockup-view-model-wiz--protect-background"]=S,kS["yt-lockup-view-model-wiz--add-margins"]=function(){return B().addMarginForFullbleed},kS["yt-lockup-view-model-wiz--centered"]=function(){return B().isCentered},kS["yt-lockup-view-model-wiz--fullbleed"]=function(){return B().fullbleed},
kS["yt-lockup-view-model-wiz--single-column-grid"]=function(){return h()===1&&E()===2},kS["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var N7;
return(N7=r())==null?void 0:N7.useRichGridLegacyMargin},kS)),
"on:mousedown":$S,"on:mouseleave":Q,"on:mouseup":m0,"on:mouseover":k,"on:touchstart":$S,"on:touchend":m0,"on:pointerleave":v3},_.m(_.Oe,{command:function(){var N7;return _.P5((N7=e())==null?void 0:N7.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return Y()&&B().arrangement===1?"width: "+Y():""}},_.m(_.kz,{data:function(){var N7;
return(N7=e())==null?void 0:N7.contentImage}},{thumbnailViewModel:function(N7){return _.m(_.dJ,{data:N7.data,
aspectRatio:function(){return B().aspectRatio},
disableRounding:function(){return B().disableRounding},
width:q,hovered:Z,isClip:function(){var As;return((As=e())==null?void 0:As.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:fAt(J),lockupExperiments:function(){return r()}})},
collectionThumbnailViewModel:function(N7){return _.m(b3u,{data:N7.data,aspectRatio:function(){return B().aspectRatio},
disableRounding:function(){return B().disableRounding},
width:q,doubleStack:function(){return B().collectionStackNumber===2},
hovered:Z,playbackRef:fAt(J)})},
decoratedAvatarViewModel:_.By})),_.m("div",{class:"yt-lockup-view-model-wiz__metadata"},_.m(_.kz,{data:function(){var N7;return(N7=e())==null?void 0:N7.metadata}},{lockupMetadataViewModel:function(N7){return _.m(VFg,{data:N7.data,
lockupStyle:B,lockupCommand:function(){var As;return _.P5((As=e())==null?void 0:As.rendererContext)},
lockupAccessibilityLabel:function(){return R()}})},
feedAdMetadataViewModel:function(N7){return _.m(R26,{data:N7.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:O})}}),_.m(_.kz,{data:function(){var N7;
return(N7=e())==null?void 0:N7.attachmentSlot}},{lockupAttachmentsViewModel:function(N7){return _.m(rwE,{data:N7.data,
lockupStyle:B})}})),_.m(_.Ie,{model:function(){a:{switch(B().collectionStackNumber){case 1:var N7=8;
break a;case 2:N7=12;break a}N7=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:N7}},
pointerDownEvent:q7.pointerDownEvent,pointerUpEvent:q7.pointerUpEvent,pointerLeaveEvent:q7.pointerLeaveEvent}))},"db");
_.Y8.idomCompat=!0;_.aZ(_.Y8,"yt-lockup-view-model",{props:{data:_.U1,containerLayoutConfig:_.U1,containerType:_.U1,sizing:_.U1,protectBackground:_.U1,typographyBump:_.U1,thumbnailFixedWidth:_.U1,thumbnailTargetWidth:_.U1,force16By9ThumbnailAspectRatio:_.U1,className:_.U1,lockupExperiments:_.U1,elementsPerRow:_.U1}});var $zS,BS0=_.l(function(v){var e=_.dC(v,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),d=e.text,E=e.alwaysShowTruncationText;v=e.truncationText;var T=e.onTextClick,S=e.maxLines,O=e.disableTextMask,b=e.textStyle,Y=e.accessibilityLabel,q=e.textSize,r=e.alwaysTruncateAtMaxLines,h=e.expandOnClick;e=_.a(_.OE(!1,void 0,"lWDnae"));var K=e.next().value,k=e.next().value;e=_.rq(function(){h()&&k(!K());T==null||T()});
var J=function(){a:switch(q()){case "medium":var Q=2;break a;case "large":Q=2.2;break a;default:Q=1.8}return Q},R=NS$(d,function(){return K()?Infinity:S()},J,O,r,K),B=R.isTruncated;
d=R.displayText;r=R.contentRef;var X=R.hiddenRef,Z=R.placeholderTruncationTextRef,U=R.hiddenTruncationTextRef;R=R.truncationTextRef;var F={},g={};return _.m("truncated-text",{class:_.qe((F["truncated-text-wiz"]=!0,F["truncated-text-wiz--overlay"]=function(){return b()==="overlay"},F["truncated-text-wiz--medium-text"]=function(){return q()==="medium"},F["truncated-text-wiz--large-text"]=function(){return q()==="large"},F["truncated-text-wiz--primary-text"]=function(){return b()==="primary-text"},F)),
"on:click":e,style:function(){return"line-height: "+J()+"rem;"}},_.m("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:r,style:function(){return K()?"":"max-height: "+S()*J()+"rem;"}},_.m(_.Dh,{text:d}),_.m("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:Z,style:function(){return"line-height: "+J()+"rem;"}},_.m(_.Dh,{text:v}))),_.m("truncated-text-content",{class:_.qe("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:X,style:function(){return K()?"":"max-height: "+S()*J()+"rem;"},
"aria-hidden":"true"},_.m(_.Dh,{text:d}),_.m("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:U,style:function(){return"line-height: "+J()+"rem;"}},_.m(_.Dh,{text:v}))),_.m("button",{"aria-label":Y,
class:_.qe((g["truncated-text-wiz__absolute-button"]=function(){return!O()},g["truncated-text-wiz__bottom-button"]=function(){return O()},g["truncated-text-wiz--hidden"]=function(){return!(!K()&&(E!=null&&E()||B()))},g)),
el:R,style:function(){return"line-height: "+J()+"rem;"}},_.m(_.Dh,{text:v})))},"eb");
BS0.idomCompat={callbacks:{onTextClick:!0}};var z2u=_.l(function(v){var e=v.data;v=v.className;var d=_.yl(function(){return LA3(e())},void 0,"sR58pd");
return _.m("yt-video-attribute-view-model",{class:v},_.m("div",{class:function(){var E=e();a:switch(E.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(E.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var S="yt-video-attribute-view-model--image-small";break a;default:S="yt-video-attribute-view-model--image-large"}a:switch(E.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var O=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":O="yt-video-attribute-view-model--image-avatar";break a;default:O=""}a:switch(E.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var b="yt-video-attribute-view-model--metadata-header";break a;default:b=""}a:switch(E.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var Y="yt-video-attribute-view-model--container-card";break a;default:Y=""}return["yt-video-attribute-view-model",T,S,
O,b,Y,LA3(E)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.jM({"background-color":function(){var E=e();if(E.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var T="";else{T=E.lightColorPalette;E=E.darkColorPalette;var S,O=((S=_.dk().resolve(_.eG(_.n1)))==null?0:S())&&E?E:T;T=(T=O==null?void 0:O.section2Color)?_.w1(T):""}return T}})},_.m(_.y,{cond:function(){return d()||!_.N("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.m(_.Oe,{className:"yt-video-attribute-view-model__content-container",command:d,role:"group",ariaLabel:function(){return e().title}},_.m(_.y,{cond:function(){return e().heroText||e().image},
then:function(){return _.m(Cpu,{data:e})}}),_.m(XSJ,{data:e,
sizeSmall:function(){return e().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.m("div",{class:"yt-video-attribute-view-model__content-container"},_.m(_.y,{cond:function(){return e().heroText||e().image},
then:function(){return _.m(Cpu,{data:e})}}),_.m(XSJ,{data:e,
sizeSmall:function(){return e().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"fb");
z2u.idomCompat=!0;var Cpu=_.l(function(v){var e=v.data;var d,E=(d=_.dk().resolve(_.eG(_.n1)))==null?void 0:d(),T=function(){return E&&e().darkThemeImage?e().darkThemeImage:e().image},S=_.yl(function(){return VF0(e())},void 0,"zGDeMe");
return _.m("div",{class:"yt-video-attribute-view-model__hero-section"},_.m(_.kc,null,_.m(_.sW,{when:T},function(){return _.m(_.va,{data:function(){return T()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.m(_.sW,{when:function(){return e().heroText}},function(){return _.m("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.m("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return e().heroText}))})),_.m(_.y,{cond:function(){return e().overflowMenuOnTap},
then:function(){return _.m("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.m(_.mO,{data:S,iconName:"MORE_VERT"}))}}))},"gb");
Cpu.idomCompat=!0;var XSJ=_.l(function(v){var e=v.data;v=v.sizeSmall;var d=function(){return e().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},E=_.yl(function(){return cz(_.Ag({innertubeCommand:LA3(e())}))?"link":"group"},void 0,"kGuRzd"),T={};
return _.m("div",{class:_.qe("yt-video-attribute-view-model__metadata",(T["yt-video-attribute-view-model--small-font"]=v,T)),role:E},_.m("h1",{class:"yt-video-attribute-view-model__title"},function(){return e().title}),_.m(_.y,{cond:function(){return e().subtitle},
then:function(){return _.m("h4",{class:"yt-video-attribute-view-model__subtitle"},_.m(_.y,{cond:d,then:function(){return _.m(BS0,{text:function(){return klO(e().subtitle)},
truncationText:function(){return klO(e().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.m("span",null,function(){return e().subtitle})}}))}}),_.m(_.y,{cond:function(){return e().secondarySubtitle},
then:function(S){return _.m("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.m(_.Dh,{text:function(){var O=S();if(O!=null&&O.attachmentRuns){for(var b=[],Y=_.a(O.attachmentRuns),q=Y.next();!q.done;q=Y.next())q=q.value,q.element&&b.push(Object.assign({},q,{element:Object.assign({},q.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));O=Object.assign({},O,{attachmentRuns:b})}return O}}))}}),_.m(_.kz,
{data:function(){return e().buttonViewModel}},{buttonViewModel:function(S){return _.m(_.yi,{data:S.data,
className:"yt-video-attribute-view-model__button"})}}))},"hb");
XSJ.idomCompat=!0;_.aZ(z2u,"yt-video-attribute-view-model",{props:{data:_.U1,className:_.U1}});var md=function(){var v=_.P.apply(this,arguments)||this;v.useHighlightStyling=_.N("web_enable_deeper_metadata_highlight_styling");v.isSearch=!1;v.JSC$15132_lastScrollContainerWidth=NaN;v.pageLoadingFromNavigation=!1;v.currentIndex=0;v.supportComponentResize=!1;return v};
_.V(md,_.P);_.W=md.prototype;
_.W.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}}}}}};
_.W.attached=function(){document.addEventListener("yt-page-type-changed",_.hG(this,this.onPageChange))};
_.W.detached=function(){document.removeEventListener("yt-page-type-changed",_.hG(this,this.onPageChange))};
_.W.getItemsPath=function(){return"data.cards"};
_.W.onIronResize=function(){this.updateListStyles()};
_.W.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var v;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(v=this.data)==null?void 0:v.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.N("problem_walkthrough_sd")&&!!this.centerItems};
_.W.computeCardListStyle=function(v){return v||null};
_.W.computeEmpty=function(v){return!this.get("cards.length",v)};
_.W.computeThumbnailStyle=function(v){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",v)||null};
_.W.computeHasSubtitle=function(v){return!!this.get("header.richListHeaderRenderer.subtitle",v)};
_.W.computeInitialCountNumber=function(v){return this.hasSquareMiniApp&&v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.W.computeUseFloorScrolling=function(v){return v==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.W.computeHasGameCard=function(v){return(v=this.get("cards",v))?v.some(function(e){return e.gameCardRenderer}):!1};
_.W.computeCenterHeaderTitle=function(v){return!(v==null||!v.centerHeaderTitle)};
_.W.computeHasPortraitMiniApp=function(v){return(v=v==null?void 0:v.cards)?v.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.W.computeHasSquareMiniApp=function(v){return(v=v==null?void 0:v.cards)?v.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.W.computeHasSkinnyWidthPortraitMiniApp=function(v){return(v=v==null?void 0:v.cards)?v.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.width===135}):!1};
_.W.computeCenterItems=function(v){return!!v};
_.W.computeHasInfoPanel=function(v){var e;return v==null?void 0:(e=v.cards)==null?void 0:e.some(function(d){return d.infoPanelContentRenderer})};
_.W.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.W.getItemByIndex=function(v){var e=this.items.children;return e&&e.length>v?e[v]:void 0};
_.W.onPageChange=function(){var v=this;this.pageLoadingFromNavigation=!0;_.RM.addJob(function(){v.pageLoadingFromNavigation=!1;_.YB(v.hostElement,"yt-terminate-video-preview-action")},8)};
_.W.updateListStyles=function(){if(_.N("problem_walkthrough_sd")&&this.JSC$15132_scrollContainer!==void 0){var v=this.JSC$15132_scrollContainer.clientWidth;v!==this.JSC$15132_lastScrollContainerWidth&&(this.JSC$15132_lastScrollContainerWidth=v,_.qr(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(v*.8,415)+"px"}),_.Iq(this.hostElement,"iron-resize"))}};
_.vP.Object.defineProperties(md.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.N("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return!!((v=this.data)==null?0:(e=v.cards)==null?0:(d=e[0])==null?0:d.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return!!((v=this.data)==null?0:(e=v.cards)==null?0:(d=e[0])==null?0:d.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return _.N("enable_desktop_amsterdam_info_panels")&&!!((v=this.data)==null?0:(e=v.cards)==null?0:(d=e[0])==null?0:d.infoPanelContentRenderer)}}});
md.prototype.dataChanged=md.prototype.dataChanged;md.prototype.onIronResize=md.prototype.onIronResize;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.OC.YtdHorizontalListBehavior),_.w("design:type",Object)],md.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.M(_.Au),_.w("design:type",Object)],md.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],md.prototype,"data",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],md.prototype,"useCustomColors",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],md.prototype,"useHighlightStyling",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.w("design:type",Object)],md.prototype,"cardListStyle",void 0);_.c([_.f({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.w("design:type",Boolean)],md.prototype,"empty",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.w("design:type",Boolean)],md.prototype,"hasSubtitle",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.w("design:type",Boolean)],md.prototype,"thumbnailStyle",void 0);_.c([_.f({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.w("design:type",Boolean)],md.prototype,"hasGameCard",void 0);_.c([_.f({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.w("design:type",Boolean)],md.prototype,"centerHeaderTitle",void 0);
_.c([_.f({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.w("design:type",Boolean)],md.prototype,"hasPortraitMiniApp",void 0);_.c([_.f({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.w("design:type",Boolean)],md.prototype,"hasSquareMiniApp",void 0);_.c([_.f({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.w("design:type",Boolean)],md.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.c([_.f({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.w("design:type",Boolean)],md.prototype,"hasInfoPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],md.prototype,"isSearch",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],md.prototype,"inlineStructuredDescription",void 0);_.c([_.sg("#scroll-container"),_.w("design:type",HTMLDivElement)],md.prototype,"JSC$15132_scrollContainer",void 0);
_.c([_.f({computed:"computeInitialCountNumber(data.style.type)"}),_.w("design:type",Number)],md.prototype,"initialCount",void 0);_.c([_.f({computed:"computeUseFloorScrolling(data.style.type)"}),_.w("design:type",Boolean)],md.prototype,"useFloorScrolling",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.w("design:type",Boolean)],md.prototype,"centerItems",void 0);_.c([_.f(),_.w("design:type",Object)],md.prototype,"pageLoadingFromNavigation",void 0);
_.c([_.f(),_.w("design:type",Object)],md.prototype,"currentIndex",void 0);_.c([_.f(),_.w("design:type",Number)],md.prototype,"scrollCount",void 0);_.c([_.f(),_.w("design:type",Object)],md.prototype,"supportComponentResize",void 0);_.c([_.sg("#items"),_.w("design:type",HTMLDivElement)],md.prototype,"items",void 0);_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],md.prototype,"onIronResize",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],md.prototype,"dataChanged",null);_.c([_.f({reflectToAttribute:!0}),_.t("inlineStructuredDescription"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],md.prototype,"hideNavigationButton",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],md.prototype,"modernChapters",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],md.prototype,"hasVideoAttributeViewModels",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],md.prototype,"modernInfoPanels",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],md);
_.A(md,"ytd-horizontal-card-list-renderer",function(){if(fA7!==void 0)return fA7;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return fA7=v},{mode:_.bk("kevlar_poly_si_batch_j072")?1:2});var lu0=_.l(function(v){var e=v.data;var d={};return _.m("video-summary-content-view-model",{class:_.qe("videoSummaryContentViewModelHost",v.className,(d.videoSummaryContentViewModelHostIsSearch=v.isSearch,d))},_.m(_.jI,{each:function(){var E=[],T=e().paragraphs;if(T==null||!T.length)return[];for(var S=0;S<T.length;S++){var O=_.L(T[S],wXu),b=void 0;S>0&&(b=_.L(T[S-1],wXu));b&&!!b.marker===!!O.marker?E[E.length-1].paragraphs.push(O):E.push({isList:!!O.marker,paragraphs:[O]})}return E},
keyBy:"INDEX"},function(E){return _.m(_.y,{cond:function(){return E().isList},
then:function(){return _.m("ul",{class:"videoSummaryContentViewModelList"},_.m(_.jI,{each:function(){return E().paragraphs},
keyBy:"INDEX"},function(T){return _.m("li",{class:"videoSummaryContentViewModelListItem"},_.m(_.Dh,{text:function(){return T().text}}))}))},
else:function(){return _.m(_.jI,{each:function(){return E().paragraphs},
keyBy:"INDEX"},function(T){return _.m("p",{class:"videoSummaryContentViewModelParagraph"},_.m(_.Dh,{text:function(){return T().text}}))})}})}),_.m(_.y,{cond:function(){return!!_.L(e().likeButtonViewModel,_.ty)&&!!_.L(e().dislikeButtonViewModel,_.M5)},
then:function(){return _.m("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.m("div",{class:"videoSummaryContentViewModelLikeButton"},_.m(_.zT,{data:function(){return _.L(e().likeButtonViewModel,_.ty)},
disableIconAnimation:!0})),_.m(_.XU,{data:function(){return _.L(e().dislikeButtonViewModel,_.M5)}}))}}))},"ib");
lu0.idomCompat=!0;_.aZ(lu0,"video-summary-content-view-model",{props:{data:_.U1,isSearch:_.U1,className:_.U1}});var yL=function(){var v=_.P.apply(this,arguments)||this;var e,d;v.isExpanded=(d=(e=v.data)==null?void 0:e.isExpanded)!=null?d:!1;v.disableExpand=!1;v.showProminentLabel=!1;v.showRightSideLabel=!0;v.toggleExpandableContent=function(E){v.disableExpand||(E.stopPropagation(),_.pM(_.vg(E),v.hostElement,["info","expanded-subtitle"])||(v.isExpanded=!v.isExpanded,v.ytRendererBehavior.logExplicitClick(v.data),v.JSC$15143_cardList&&!_.N("expandable_metadata_a11y_fix_ks")&&_.Uh(v,function(){_.gt(v.hostElement)})))};
v.useSquareThumbnail=!1;v.contentHiddenWithDisplayNone=_.N("web_expandable_metadata_content_hidden_with_display_none");v.startX=0;return v};
_.V(yL,_.P);_.W=yL.prototype;_.W.computeUseSquareThumbnail=function(){var v;return(v=this.data)==null?void 0:v.useSquareThumbnail};
_.W.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"}}}}};
_.W.dataChanged=function(){if(this.data){var v,e;this.isExpanded=(e=(v=this.data)==null?void 0:v.isExpanded)!=null?e:!1;var d,E,T,S;if(v=this.isDarkTheme()?(d=this.data)==null?void 0:(E=d.colorData)==null?void 0:E.darkColorPalette:(T=this.data)==null?void 0:(S=T.colorData)==null?void 0:S.lightColorPalette){var O,b;if((O=this.data)==null?0:(b=O.colorData)==null?0:b.vibrantColorPalette)v.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.t8(this.hostElement,v)}}};
_.W.isExpandedChanged=function(){this.isExpanded&&this.JSC$15143_cardList&&_.Iq(this.JSC$15143_cardList,"iron-resize")};
_.W.computeIsExpanded=function(v){return!!v.isExpanded};
_.W.computeShowProminentLabel=function(v,e){var d;return!!(v==null?0:(d=v.header)==null?0:d.showLeadingCollapsedLabel)&&!e};
_.W.computeShowRightSideLabel=function(v,e){var d;return!(v==null?0:(d=v.header)==null?0:d.showLeadingCollapsedLabel)&&!e};
_.W.captureContentClick=function(v){if(!this.disableExpand)if(_.N("expandable_metadata_fix_killswitch")){var e=v.target;_.awg(e,"ytd-macro-markers-list-item-renderer")||v.stopPropagation();(e==null?void 0:e.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.pM(_.vg(v),this.hostElement,["items"])||_.UG(_.vg(v),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.W.timestampClick=function(v){v.stopPropagation();var e,d;(v=(e=this.data)==null?void 0:(d=e.header)==null?void 0:d.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(v)};
_.W.onDown=function(v){v.stopPropagation();this.startX=v.detail?v.detail.x:0};
_.W.onUp=function(v){this.skipKeyInteraction(v)&&v.stopPropagation()};
_.W.skipKeyInteraction=function(v){var e=v.target;if((e==null?void 0:e.id)==="scroll-container"||(e==null?void 0:e.id)==="items"||v.detail&&v.detail.x!==this.startX)return!0;v=_.vg(v);v=_.a(v);for(e=v.next();!e.done;e=v.next()){e=e.value;if(e===this.hostElement)break;if(e.hasAttribute&&e.hasAttribute("skip-key-interaction"))return!0}return!1};
_.W.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.vP.Object.defineProperties(yL.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.L((v=this.data)==null?void 0:v.expandedContent,c4A)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.L((v=this.data)==null?void 0:v.expandedContent,_.Zsn)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var v,e;return!((v=this.data)==null||!v.useCustomColors)&&!((e=this.data)==null||!e.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var v,e;return!!((v=this.data)==null?0:(e=v.header)==null?0:e.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var v,e;return!!((v=this.data)==null?0:(e=v.header)==null?0:e.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var v,e;return!!((v=this.data)==null?0:(e=v.header)==null?0:e.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.N("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
yL.prototype.onUp=yL.prototype.onUp;yL.prototype.onDown=yL.prototype.onDown;yL.prototype.isExpandedChanged=yL.prototype.isExpandedChanged;yL.prototype.dataChanged=yL.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],yL.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],yL.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yL.prototype,"isExpanded",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yL.prototype,"disableExpand",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],yL.prototype,"isSearch",void 0);
_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],yL.prototype,"isWatch",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.w("design:type",Object)],yL.prototype,"showProminentLabel",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.w("design:type",Object)],yL.prototype,"showRightSideLabel",void 0);
_.c([_.f({value:!1,reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yL.prototype,"hasVideoSummary",null);_.c([_.f({value:!1,reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yL.prototype,"hasLockupViewModel",null);_.c([_.f({reflectToAttribute:!0}),_.t("data","isWatch"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yL.prototype,"useCustomColors",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data","isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yL.prototype,"showInfoButton",null);_.c([_.t("data","isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yL.prototype,"showTimestamp",null);_.c([_.t("data","isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yL.prototype,"showExpandedSubtitle",null);
_.c([_.t("data","isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yL.prototype,"showThumbnail",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],yL.prototype,"useVppShoppingDestinationStyle",null);_.c([_.f(),_.w("design:type",Object)],yL.prototype,"toggleExpandableContent",void 0);_.c([_.sg("ytd-horizontal-card-list-renderer"),_.w("design:type",Object)],yL.prototype,"JSC$15143_cardList",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.w("design:type",Object)],yL.prototype,"useSquareThumbnail",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yL.prototype,"contentHiddenWithDisplayNone",void 0);_.c([_.t("isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yL.prototype,"contentHidden",null);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yL.prototype,"dataChanged",null);_.c([_.$v("isExpanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yL.prototype,"isExpandedChanged",null);_.c([_.Kq("down"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],yL.prototype,"onDown",null);
_.c([_.Kq("up"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],yL.prototype,"onUp",null);_.c([_.z({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],yL);
_.A(yL,"ytd-expandable-metadata-renderer",function(){if(l5A!==void 0)return l5A;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return l5A=v},{mode:1});var H3E,AwA=function(){if(H3E!==void 0)return H3E;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return H3E=v};_.aZ(_.Cj,"yt-avatar-stack-view-model",{props:{className:_.U1,data:_.U1,overrides:_.U1,isOverlay:_.U1,useMediumText:_.U1,decorations:_.U1,hideAvatar:_.U1}});_.RZ("itemSectionRenderer","videoRenderer","ytd-video-renderer");var qx=function(){var v=_.P.apply(this,arguments)||this;v.disableExpand=!1;v.shouldShowChannelInfo=!1;v.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return v};
_.V(qx,_.P);_.W=qx.prototype;_.W.computeUseSearchUi=function(){var v,e;return this.isSearch||((v=this.data)==null?void 0:(e=v.style)==null?void 0:e.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.W.computeUseThreeLineTitle=function(){var v;return((v=this.data)==null?void 0:v.maxTitleLines)===3};
_.W.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.N("polymer_video_renderer_defer_menu")&&!tu0?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"}}}};
_.W.attached=function(){_.Yv(this.hostElement,"blue-links",_.N("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.mI(_.IB(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var v=this.get("data.buttons.buttonRenderer.serviceEndpoint"),e;v&&((e=_.L(v.commandMetadata,_.VM))==null?0:e.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(v);this.updateInlinePreviewHoverListeners()};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15148_inlinePreviewHoverListener=Xc({mediaRenderer:this,lockupElement:this.JSC$15148_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.W.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$15148_inlinePreviewHoverListener)==null||gp(v)};
_.W.onTextWrapperClick=function(v){var e,d,E=this.hideTranslation?(e=this.data)==null?void 0:e.untranslatedNavigationEndpoint:(d=this.data)==null?void 0:d.navigationEndpoint;e=_.pM(_.vg(v),this.hostElement,["expandable-metadata"]);!E||e&&!_.N("expandable_metadata_fix_killswitch")||_.UG(_.vg(v),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Iq(this.hostElement,"yt-navigate",{endpoint:E})};
_.W.computeThumbnailWidth=function(v,e,d,E,T){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:E?T==="MASSIVE"?600:T==="BIG"?500:T==="MEDIUM"?450:420:d?360:e?128:v?210:246};
_.W.computeUseBiggerThumbs=function(v){return v&&_.N("enable_desktop_search_bigger_thumbs")};
_.W.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.W.computeVideoStyle=function(){if(_.N("enable_video_style")){var v,e;return(v=this.data)==null?void 0:(e=v.style)==null?void 0:e.value}};
_.W.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.W.handleHideItemSectionVideosByIdCommand=function(v){var e;v=(e=_.L(v,YYn))==null?void 0:e.videoId;this.data&&this.data.videoId===v&&(this.isHidden=!0)};
_.W.getMetadataSnippetContainerClass=function(v){return v?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.W.computeTitleText=function(v,e,d){return v?d:e};
_.W.computeDescriptionSnippet=function(v,e,d){return v?d:e};
_.W.computeSnippetText=function(v,e,d){return v?d:e};
_.W.computeNavigationEndpoint=function(v,e){return v?e==null?void 0:e.untranslatedNavigationEndpoint:e==null?void 0:e.navigationEndpoint};
_.W.hideInlineTitleIcon=function(v,e){return v||!e};
_.vP.Object.defineProperties(qx.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 v;return(v=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?v:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return!!(this==null?0:(v=this.data)==null?0:(e=v.channelThumbnailSupportedRenderers)==null?0:(d=e.channelThumbnailWithLinkRenderer)==null?0:d.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.L((v=this.data)==null?void 0:v.avatar,cbc)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$15148_inlinePreviewHoverListener)==null?0:lT(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.vP.Object.defineProperties(qx,{template:{configurable:!0,enumerable:!0,get:function(){return AwA()}}});
qx.prototype.dataChanged=qx.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],qx.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],qx.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.M(_.uV),_.w("design:type",Object)],qx.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],qx.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],qx.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],qx.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],qx.prototype,"isBackstageVideo",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],qx.prototype,"isPostCompactVideo",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],qx.prototype,"isHistory",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],qx.prototype,"isRichGridVideoPost",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],qx.prototype,"isHidden",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],qx.prototype,"isSearch",void 0);_.c([_.f({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.w("design:type",Boolean)],qx.prototype,"useSearchUi",void 0);_.c([_.f({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.w("design:type",Boolean)],qx.prototype,"useThreeLineTitle",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.w("design:type",Boolean)],qx.prototype,"useBiggerThumbs",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.w("design:type",Object)],qx.prototype,"videoStyle",void 0);_.c([_.f({computed:"computeDisableExpand(videoStyle)"}),_.w("design:type",Object)],qx.prototype,"disableExpand",void 0);
_.c([_.f({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.w("design:type",Object)],qx.prototype,"shouldShowChannelInfo",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],qx.prototype,"biggerThumbsStyle",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.w("design:type",String)],qx.prototype,"inlineTitleIcon",void 0);_.c([_.f({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.w("design:type",Object)],qx.prototype,"computedNavigationEndpoint",void 0);_.c([_.f({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(v,e){return _.h_(v.entities,"searchVideoResultEntity",e)}}),
_.w("design:type",Object)],qx.prototype,"searchVideoResultEntity",void 0);_.c([_.sg("ytd-thumbnail"),_.w("design:type",HTMLElement)],qx.prototype,"thumbnail",void 0);_.c([_.sg("#dismissible"),_.w("design:type",HTMLElement)],qx.prototype,"JSC$15148_dismissibleMedia",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qx.prototype,"dataChanged",null);
_.c([_.t("searchVideoResultEntity"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qx.prototype,"hideTranslation",null);_.c([_.t("searchVideoResultEntity"),_.w("design:type",Array),_.w("design:paramtypes",[])],qx.prototype,"hiddenBadgeGroups",null);_.c([_.t("data","useAvatar"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qx.prototype,"shouldShowChannelThumbnail",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qx.prototype,"useAvatar",null);
_.c([_.t("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qx.prototype,"isHovered",null);_.c([_.z({is:"ytd-video-renderer",disableElementRegistration:!0})],qx);_.A(qx,"ytd-video-renderer",function(){return AwA()},{mode:_.bk("kevlar_poly_si_batch_j047")?1:2});var rJ=function(){var v=_.P.apply(this,arguments)||this;v.editDialog=null;v.roundedContainer=!0;v.isLoading=!1;v.isRichGrid=!1;v.isRichGridRepost=!1;v.reduceSidePaddings=_.N("reduce_side_paddings_in_shelf");v.JSC$15155_spinnerEl=null;return v};
_.V(rJ,_.P);_.W=rJ.prototype;
_.W.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"}}}};
_.W.contentTextChanged=function(){this.expander.reset()};
_.W.dataChanged=function(){var v=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var e=0,d=this.data.actions&&this.data.actions.length;e<d;e++)this.openEditDialog(_.L(this.data.actions[e],kxJ));if((e=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(e=this.get("buttonRenderer.hint.hintRenderer.hintId",e))&&e.startsWith("share-post-hint")){var E=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(E){_.Tf.getInstance();var T=SN(_.pQ(_.sz("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.RM.addLowPriorityJob(function(){_.ya(v.hostElement,T,E)})}}}};
_.W.updatePoll=function(v){v>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.W.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15155_spinnerEl||(this.JSC$15155_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.IB(this.hostElement).appendChild(this.JSC$15155_spinnerEl));this.JSC$15155_spinnerEl&&(this.JSC$15155_spinnerEl.active=this.isLoading)};
_.W.onYtNavigate=function(v){var e=this.get("updateCommentDialogEndpoint",v.detail.endpoint);e&&(this.openEditDialog(e),v.stopPropagation())};
_.W.onYtCommentboxDismiss=function(){this.editDialog=null};
_.W.onYtCommentPollRevert=function(v,e){e&&this.updatePoll(e.selectedChoiceIndex)};
_.W.onYtServiceRequestSent=function(v,e){var d;e.endpoint&&(_.L(e.endpoint,exM)||_.L(e.endpoint,v_0)&&((d=_.L(e.endpoint,v_0))==null||!d.clientActions))&&(this.isLoading=!0);if(e.actions)for(v=0;v<e.actions.length;v++)d=e.actions[v],_.L(d,kw)&&(d=this.get("updateBackstagePollAction.selectedChoiceIndex",d),d==void 0&&(d=-1),this.updatePoll(d))};
_.W.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.W.openEditDialog=function(v){v&&v.dialog&&(this.editDialog=v.dialog,v=this.editDialogEl.firstElementChild)&&(v.focus(),v.openDialog&&v.openDialog())};
_.W.computeIsPostHidden=function(v,e){return!!v||e};
_.W.computeSurfaceType=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.W.computeUsesCompactLockup=function(v){return v==="BACKSTAGE_SURFACE_TYPE_HOME"||v==="BACKSTAGE_SURFACE_TYPE_SEARCH"||v==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||v==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||v==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||v==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.W.computeShowWithoutToolbar=function(v){return!v.actionButtons&&!v.actionMenu};
_.W.computePostAttachment=function(v){if(v.backstageAttachment){if(_.L(v.backstageAttachment,Pxg))return"poll";if(_.L(v.backstageAttachment,hMi))return"quiz";if(_.L(v.backstageAttachment,_.XY))return"video";if(_.L(v.backstageAttachment,K4e))return"uploaded-videos";if(_.L(v.backstageAttachment,g0J))return v.contentText?"image":"image-only";if(_.L(v.backstageAttachment,m5B))return"playlist"}return"none"};
_.W.computePostTabIndex=function(v){return v?0:-1};
_.W.computeButtonTooltipPosition=function(v){return this.computeUsesCompactLockup(v)?"top":"bottom"};
_.W.computeHasText=function(v){return!(v==null||!v.contentText)};
_.W.onTap=function(v){var e,d;if(((e=this.data)==null?0:e.navigationEndpoint)&&((d=this.data)==null?void 0:d.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var E;((E=this.data)==null?0:E.navigationEndpoint)&&!_.UG(_.vg(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.vP.Object.defineProperties(rJ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.voteCount)||_.pQ("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,Pxg))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,K4e))}}});
rJ.prototype.onYtServiceRequestCompleted=rJ.prototype.onYtServiceRequestCompleted;rJ.prototype.onYtServiceRequestSent=rJ.prototype.onYtServiceRequestSent;rJ.prototype.onYtCommentPollRevert=rJ.prototype.onYtCommentPollRevert;rJ.prototype.onYtCommentboxDismiss=rJ.prototype.onYtCommentboxDismiss;rJ.prototype.onYtNavigate=rJ.prototype.onYtNavigate;rJ.prototype.isLoadingChanged=rJ.prototype.isLoadingChanged;rJ.prototype.dataChanged=rJ.prototype.dataChanged;rJ.prototype.contentTextChanged=rJ.prototype.contentTextChanged;
_.c([_.M(_.Au),_.w("design:type",Object)],rJ.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],rJ.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],rJ.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],rJ.prototype,"editDialog",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rJ.prototype,"roundedContainer",void 0);_.c([_.f(),_.w("design:type",Object)],rJ.prototype,"isLoading",void 0);_.c([_.f({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.w("design:type",String)],rJ.prototype,"surface",void 0);
_.c([_.f({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.w("design:type",Boolean)],rJ.prototype,"usesCompactLockup",void 0);_.c([_.f({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],rJ.prototype,"showWithoutToolbar",void 0);_.c([_.f({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.w("design:type",String)],rJ.prototype,"attachment",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rJ.prototype,"isRichGrid",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rJ.prototype,"isRichGridRepost",void 0);_.c([_.f({reflectToAttribute:!0,value:_.N("use_better_post_dismissals")}),_.w("design:type",Boolean)],rJ.prototype,"useBetterPostDismissals",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rJ.prototype,"reduceSidePaddings",void 0);
_.c([_.f({computed:"computeHasText(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],rJ.prototype,"hasText",void 0);_.c([_.sg("#expander"),_.w("design:type",Object)],rJ.prototype,"expander",void 0);_.c([_.sg("#action-buttons"),_.w("design:type",Object)],rJ.prototype,"actionButtons",void 0);_.c([_.sg("#edit-dialog"),_.w("design:type",HTMLElement)],rJ.prototype,"editDialogEl",void 0);
_.c([_.$v("data.contentText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rJ.prototype,"contentTextChanged",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rJ.prototype,"dataChanged",null);_.c([_.$v("isLoading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rJ.prototype,"isLoadingChanged",null);
_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],rJ.prototype,"onYtNavigate",null);_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rJ.prototype,"onYtCommentboxDismiss",null);_.c([_.Kq("yt-comment-poll-revert"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],rJ.prototype,"onYtCommentPollRevert",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],rJ.prototype,"onYtServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],rJ.prototype,"onYtServiceRequestCompleted",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],rJ.prototype,"voteCount",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],rJ.prototype,"commentCount",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rJ.prototype,"hasPoll",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rJ.prototype,"hasUploadedVideo",null);_.c([_.z({is:"ytd-post-renderer",disableElementRegistration:!0})],rJ);
_.A(rJ,"ytd-post-renderer",function(){if(a5n!==void 0)return a5n;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return a5n=v},{mode:1});var Z3e;var cwc;var hT=function(){return _.P.apply(this,arguments)||this};
_.V(hT,_.P);hT.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.OC.YtdHorizontalListBehavior),_.w("design:type",Object)],hT.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],hT.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],hT.prototype,"data",void 0);
_.c([_.f({value:"$.items.children"}),_.w("design:type",String)],hT.prototype,"itemsPath",void 0);_.c([_.f({value:1}),_.w("design:type",Number)],hT.prototype,"initialCount",void 0);_.c([_.f(),_.w("design:type",String)],hT.prototype,"surface",void 0);_.c([_.z({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],hT);
_.A(hT,"ytd-post-multi-image-renderer",function(){if(cwc!==void 0)return cwc;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return cwc=v},{mode:_.bk("kevlar_poly_si_batch_j079")?1:2});var wSA={"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"}}},KG=function(){var v=_.P.apply(this,arguments)||this;v.hasInlineCommentSection=!1;v.editDialog=null;v.isLoading=!1;v.shouldHideAuthor=!1;v.shouldShowVideoTime=!1;
v.isInEngagementPanel=!1;v.hideBorder=!1;v.usesFullLockup=!1;v.shouldShowMenuInCompactView=!1;v.JSC$15171_spinnerEl=null;v.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return v};
_.V(KG,_.P);_.W=KG.prototype;_.W.configureRendererStamper=function(){return wSA};
_.W.computeIsPollHeaderEnabled=function(v){return(v==null?void 0:v.pollMetadataIcon)!=null};
_.W.getPublishTimeStampString=function(v,e){e=new Date((Number(e)-60*((new Date).getTimezoneOffset()-(new Date(Number(e)*1E3)).getTimezoneOffset()))*1E3);e=(new DY(10)).format(e);if(v&&v.runs&&v.runs.length)for(var d=0;d<v.runs.length;d++)v.runs[d].text&&(v.runs[d].text=v.runs[d].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",e));return v};
_.W.created=function(){this.JSC$15171_spinnerEl=null};
_.W.contentTextChanged=function(){this.expander.reset()};
_.W.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var v;if((v=this.data)==null?0:v.actions){v=_.a(this.data.actions);for(var e=v.next();!e.done;e=v.next())this.openEditDialog(_.L(e.value,kxJ))}};
_.W.handleSignalActionOpenPostCommentDialogAction=function(){_.IB(this.hostElement).querySelector("#action-buttons").reply()};
_.W.updatePoll=function(v,e){e&&this.set("data.pollMetadataVoteCountText",e);this.hasInlineCommentSection&&(v=v>=0,e=_.IB(this.hostElement).querySelector("#action-buttons"),v?e.reply():e.hideReplyDialog())};
_.W.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15171_spinnerEl||(this.JSC$15171_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.IB(this.hostElement).appendChild(this.JSC$15171_spinnerEl));this.JSC$15171_spinnerEl&&(this.JSC$15171_spinnerEl.active=this.isLoading)};
_.W.onYtNavigate=function(v){var e=this.get("updateCommentDialogEndpoint",v.detail.endpoint);e&&(this.openEditDialog(e),v.stopPropagation())};
_.W.onYtCommentboxDismiss=function(){this.editDialog=null};
_.W.onYtCommentPollRevert=function(v,e){e&&this.updatePoll(e.selectedChoiceIndex,e.totalVotes)};
_.W.onYtServiceRequestSent=function(v,e){v.stopPropagation();v=_.L(e.endpoint,v_0);if(_.L(e.endpoint,exM)||v&&!v.clientActions)this.isLoading=!0;if(e.actions)for(v=0;v<e.actions.length;v++){var d=e.actions[v],E=_.L(d,kw);E&&(d=this.get("updateBackstagePollAction.selectedChoiceIndex",d),d===void 0&&(d=-1),this.updatePoll(d,E.totalVotes))}};
_.W.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.W.openEditDialog=function(v){v&&v.dialog&&(this.editDialog=v.dialog,v=this.editDialogElement.firstElementChild)&&(v.focus(),v.openDialog&&v.openDialog())};
_.W.computeIsBodyHidden=function(v,e){return!!v||e};
_.vP.Object.defineProperties(KG.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var v,e;if((v=this.data)==null?0:(e=v.pollMetadataIcon)==null?0:e.iconType)return _.qC(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.voteCount)||_.pQ("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,Pxg))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,hMi))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,K4e))}}});
KG.prototype.onYtServiceRequestCompleted=KG.prototype.onYtServiceRequestCompleted;KG.prototype.onYtServiceRequestSent=KG.prototype.onYtServiceRequestSent;KG.prototype.onYtCommentPollRevert=KG.prototype.onYtCommentPollRevert;KG.prototype.onYtCommentboxDismiss=KG.prototype.onYtCommentboxDismiss;KG.prototype.onYtNavigate=KG.prototype.onYtNavigate;KG.prototype.isLoadingChanged=KG.prototype.isLoadingChanged;KG.prototype.dataChanged=KG.prototype.dataChanged;KG.prototype.contentTextChanged=KG.prototype.contentTextChanged;
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],KG.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],KG.prototype,"rendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],KG.prototype,"rendererstamperBehavior",void 0);_.c([_.sg("#contentTextExpander"),_.w("design:type",Object)],KG.prototype,"expander",void 0);
_.c([_.sg("#edit-dialog"),_.w("design:type",Element)],KG.prototype,"editDialogElement",void 0);_.c([_.f(),_.w("design:type",Object)],KG.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],KG.prototype,"hasInlineCommentSection",void 0);_.c([_.f(),_.w("design:type",Object)],KG.prototype,"editDialog",void 0);_.c([_.f(),_.w("design:type",Object)],KG.prototype,"isLoading",void 0);
_.c([_.f({computed:"computeIsPollHeaderEnabled(data)"}),_.w("design:type",Boolean)],KG.prototype,"isPollHeaderEnabled",void 0);_.c([_.f(),_.w("design:type",Object)],KG.prototype,"shouldHideAuthor",void 0);_.c([_.f(),_.w("design:type",Object)],KG.prototype,"shouldShowVideoTime",void 0);_.c([_.f(),_.w("design:type",Object)],KG.prototype,"isInEngagementPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],KG.prototype,"hideBorder",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],KG.prototype,"usesFullLockup",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],KG.prototype,"shouldShowMenuInCompactView",void 0);_.c([_.t("isInEngagementPanel"),_.w("design:type",Number),_.w("design:paramtypes",[])],KG.prototype,"postTextMaxLines",null);_.c([_.t("data.icon.iconType"),_.w("design:type",Object),_.w("design:paramtypes",[])],KG.prototype,"pollIcon",null);
_.c([_.$v("data.contentText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KG.prototype,"contentTextChanged",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KG.prototype,"dataChanged",null);_.c([_.$v("isLoading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KG.prototype,"isLoadingChanged",null);
_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],KG.prototype,"onYtNavigate",null);_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KG.prototype,"onYtCommentboxDismiss",null);_.c([_.Kq("yt-comment-poll-revert"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],KG.prototype,"onYtCommentPollRevert",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],KG.prototype,"onYtServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],KG.prototype,"onYtServiceRequestCompleted",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],KG.prototype,"voteCount",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],KG.prototype,"commentCount",null);_.c([_.t("data.backstageAttachment"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],KG.prototype,"hasPoll",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],KG.prototype,"hasQuiz",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],KG.prototype,"hasUploadedVideo",null);
_.c([_.z({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],KG);
_.A(KG,"ytd-backstage-post-renderer",function(){if(Z3e!==void 0)return Z3e;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Z3e=v},{mode:1});var FA6;var $8=function(){var v=_.P.apply(this,arguments)||this;v.editDialog=null;v.showExpandButton=!1;v.isRichGrid=!1;v.usesFullLockup=!1;return v};
_.V($8,_.P);_.W=$8.prototype;_.W.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"}}}};
_.W.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.W.computeShowExpandButton=function(v){return this.usesCompactLockup||v&&v.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.W.computeUsesCompactLockup=function(v){return!!v.condensedContent};
_.W.computeShowFullContentText=function(v){return!v};
_.W.onYtNavigate=function(v){v=this.get("updateCommentDialogEndpoint",v.detail.endpoint);this.openEditDialog(v)};
_.W.onYtCommentboxDismiss=function(){this.editDialog=null};
_.W.openEditDialog=function(v){v&&v.dialog&&(this.editDialog=v.dialog,v=this.repostEditDialogEl.firstElementChild)&&(v.focus(),v.openDialog&&v.openDialog())};
_.W.onTap=function(v){if(this.data){var e=null;this.usesCompactLockup&&!_.UG(_.vg(v)||[],this.hostElement,["YT-IMG-SHADOW"])?e=this.get("navigationEndpoint",this.data):v.target===this.moreButtonEl&&(e=this.get("navigationEndpoint",v.target.data));e&&_.Iq(this.hostElement,"yt-navigate",{endpoint:e})}};
$8.prototype.onYtCommentboxDismiss=$8.prototype.onYtCommentboxDismiss;$8.prototype.onYtNavigate=$8.prototype.onYtNavigate;$8.prototype.dataChanged=$8.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$8.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],$8.prototype,"editDialog",void 0);_.c([_.f({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],$8.prototype,"usesCompactLockup",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],$8.prototype,"showExpandButton",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],$8.prototype,"isRichGrid",void 0);
_.c([_.f({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.w("design:type",Boolean)],$8.prototype,"showFullContentText",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],$8.prototype,"usesFullLockup",void 0);_.c([_.sg("#more"),_.w("design:type",Object)],$8.prototype,"moreButtonEl",void 0);_.c([_.sg("#repost-content-text"),_.w("design:type",HTMLElement)],$8.prototype,"repostContentTextEl",void 0);
_.c([_.sg("#repost-edit-dialog"),_.w("design:type",HTMLElement)],$8.prototype,"repostEditDialogEl",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$8.prototype,"dataChanged",null);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$8.prototype,"onYtNavigate",null);
_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$8.prototype,"onYtCommentboxDismiss",null);_.c([_.z({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],$8);
_.A($8,"ytd-shared-post-renderer",function(){if(FA6!==void 0)return FA6;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return FA6=v},{mode:1});var QKM;var gbA;var jp=function(){return _.P.apply(this,arguments)||this};
_.V(jp,_.P);jp.prototype.attached=function(){var v=this;this.networkStatusManager||(this.networkStatusManager=new _.wt,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){v.onlineHandler()}))};
jp.prototype.detached=function(){var v=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){v.onlineHandler()}),delete this.networkStatusManager)};
jp.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],jp.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],jp.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],jp);
_.A(jp,"ytd-reload-page-button-renderer",function(){if(gbA!==void 0)return gbA;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return gbA=v},{mode:1});var udc={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"},sm=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(sm,_.P);_.W=sm.prototype;_.W.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.W.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.W.computeHasBodyText=function(v){return!!v.bodyText};
_.W.computeButtons=function(v){var e=[];v.ctaButton&&e.push(v.ctaButton);v.secondaryButton&&e.push(v.secondaryButton);return e};
_.W.computeRendererStyle=function(v){return v.style?v.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():v.icon?"":"no-icon"};
_.W.getIconName=function(v,e){e=e===void 0?!1:e;if(v===void 0)return"";v=this.get("icon.iconType",v);var d;_.N("enable_hlp_client_icon_pick")?d=this.getThemedIcon(v,e):d=v;(e=udc[d])||(e="yt-icons");return[e,d].join(":")};
_.W.getThemedIcon=function(v,e){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(v)?e?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(v)?e?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":v};
_.W.isThumbnail=function(v){return!!v.thumbnail};
_.W.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.W.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],sm.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sm.prototype,"data",void 0);
_.c([_.f({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.w("design:type",String)],sm.prototype,"rendererStyle",void 0);_.c([_.f({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.w("design:type",String)],sm.prototype,"iconName",void 0);_.c([_.f({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],sm.prototype,"thumbnail",void 0);_.c([_.f({computed:"computeButtons(data)"}),_.w("design:type",Array)],sm.prototype,"buttons",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],sm.prototype,"isDarkTheme",void 0);_.c([_.f({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],sm.prototype,"hasBodyText",void 0);_.c([_.z({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],sm);
_.A(sm,"ytd-background-promo-renderer",function(){if(QKM!==void 0)return QKM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return QKM=v},{mode:1});var nbM;var Nx=function(){var v=_.P.apply(this,arguments)||this;v.collections=_.N("web_modern_collections_v2");return v};
_.V(Nx,_.P);_.vP.Object.defineProperties(Nx.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E,T,S;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(v=this.data)==null?void 0:(e=v.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(d=this.data)==null?void 0:(E=d.thumbnail)==null?void 0:E.vibrantColorPalette,darkColorPalette:(T=this.data)==null?void 0:(S=T.thumbnail)==null?void 0:S.darkColorPalette,experimentEnabled:this.collections}}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Nx.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Nx.prototype,"collections",void 0);_.c([_.t("data","collections"),_.w("design:type",Object),_.w("design:paramtypes",[])],Nx.prototype,"collectionStack",null);_.c([_.z({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Nx);
_.A(Nx,"ytd-compact-station-renderer",function(){if(nbM!==void 0)return nbM;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return nbM=v},{mode:1});var Dz0;var k8=function(){var v=_.P.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.V(k8,_.P);k8.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],k8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],k8.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],k8.prototype,"isRichGrid",void 0);_.c([_.z({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],k8);
_.A(k8,"ytd-grid-channel-renderer",function(){if(Dz0!==void 0)return Dz0;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Dz0=v},{mode:1});var UzM;var LG=function(){return _.P.apply(this,arguments)||this};
_.V(LG,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],LG.prototype,"data",void 0);_.c([_.z({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],LG);
_.A(LG,"ytd-grid-movie-playlist-renderer",function(){if(UzM!==void 0)return UzM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return UzM=v},{mode:1});var pSg;var VL=function(){var v=_.P.apply(this,arguments)||this;v.downloadProgress=0;v.transferState="TRANSFER_STATE_UNKNOWN";v.modernButtons=_.N("web_modern_buttons");v.useModernCollectionsV2=_.N("web_modern_collections_v2");return v};
_.V(VL,_.P);VL.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
VL.prototype.configureRendererStamper=function(){return{"data.menu":jY}};
VL.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
VL.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.N("woffle_playlist_renderer_killswitch")){var v,e=LOW(this.entityInfo,this.transferState,this.downloadProgress,(v=this.data)==null?void 0:v.playlistId,this.isOnline);v=e.viewPlaylistText;var d=e.badges;e=e.thumbnailOverlays;this.isDownloads=!!v||!!d;this.set("data.viewPlaylistText",v);d&&d.length>0&&this.set("data.badges",d);e&&e.length>0&&this.set("data.thumbnailOverlays",
e)}};
_.vP.Object.defineProperties(VL.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 v;return!((v=this.data)==null?0:v.menu)}}});
VL.prototype.transferStateChanged=VL.prototype.transferStateChanged;VL.prototype.dataChanged=VL.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],VL.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],VL.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f({selector:_.ahS,selectorArgs:["data.playlistId"]}),_.w("design:type",Object)],VL.prototype,"downloadProgress",void 0);_.c([_.f({selector:_.ZY,selectorArgs:["data.playlistId"]}),_.w("design:type",Object)],VL.prototype,"transferState",void 0);_.c([_.f({selector:WZ$,selectorArgs:["data.playlistId"]}),_.w("design:type",Object)],VL.prototype,"entityInfo",void 0);_.c([_.f({selector:_.HK}),_.w("design:type",Boolean)],VL.prototype,"isOnline",void 0);
_.c([_.f(),_.w("design:type",Object)],VL.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],VL.prototype,"downloadRenderData",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],VL.prototype,"modernButtons",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],VL.prototype,"isDownloads",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],VL.prototype,"useModernCollectionsV2",void 0);
_.c([_.t("transferState"),_.f({reflectToAttribute:!0}),_.w("design:type",String),_.w("design:paramtypes",[])],VL.prototype,"downloadState",null);_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],VL.prototype,"menuHidden",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VL.prototype,"dataChanged",null);
_.c([_.V1("transferState","downloadProgress","isOnline"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VL.prototype,"transferStateChanged",null);_.c([_.z({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],VL);
_.A(VL,"ytd-grid-playlist-renderer",function(){if(pSg!==void 0)return pSg;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return pSg=v},{mode:1});var v6g;var o3=function(){var v=_.P.apply(this,arguments)||this;v.collections=_.N("web_modern_collections_v2");return v};
_.V(o3,_.P);o3.prototype.configureRendererStamper=function(){return{"data.menu":jY,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.vP.Object.defineProperties(o3.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E,T,S;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(v=this.data)==null?void 0:(e=v.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(d=this.data)==null?void 0:(E=d.thumbnail)==null?void 0:E.vibrantColorPalette,darkColorPalette:(T=this.data)==null?void 0:(S=T.thumbnail)==null?void 0:S.darkColorPalette,experimentEnabled:this.collections}}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],o3.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],o3.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],o3.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],o3.prototype,"collections",void 0);_.c([_.t("data","collections"),_.w("design:type",Object),_.w("design:paramtypes",[])],o3.prototype,"collectionStack",null);_.c([_.z({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],o3);
_.A(o3,"ytd-grid-radio-renderer",function(){if(v6g!==void 0)return v6g;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return v6g=v},{mode:1});var eq0;var JT=function(){var v=_.P.apply(this,arguments)||this;v.useModernCollectionsV2=_.N("web_modern_collections_v2");return v};
_.V(JT,_.P);JT.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
JT.prototype.computeNavigationEndpoint=function(v){return vw$(v==null?void 0:v.navigationEndpoint)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],JT.prototype,"ytdLockupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JT.prototype,"data",void 0);_.c([_.f({computed:"computeNavigationEndpoint(data)"}),_.w("design:type",Object)],JT.prototype,"computedNavigationEndpoint",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],JT.prototype,"useModernCollectionsV2",void 0);_.c([_.z({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],JT);
_.A(JT,"ytd-grid-show-renderer",function(){if(eq0!==void 0)return eq0;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return eq0=v},{mode:1});var dbg;_.GS=function(v){this.playerClient=v};
_.E6e=function(v,e,d){d=d===void 0?{}:d;return v.playerClient.setOption("ad",e,d)};
_.GS.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.GS.prototype.executeCommand=function(v,e){this.getOptions().includes("executeCommand")?_.E6e(this,"executeCommand",{command:v,layoutId:e}):_.Fc("Calling executeCommand when adModule is not loaded")};var Mx=function(){return _.P.apply(this,arguments)||this};
_.V(Mx,_.P);Mx.prototype.getLayoutId=function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
Mx.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var v=_.dB(),e=this.getLayoutId(),d=this.data.clickthroughEndpoint;v&&e&&_.N("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?v.getPlayerPromise().then(function(E){(new _.GS(E)).executeCommand(d,e)}):_.Iq(this.hostElement,"yt-navigate",{endpoint:d})}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Mx.prototype,"data",void 0);_.c([_.z({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Mx);
_.A(Mx,"ytd-shopping-companion-item-renderer",function(){if(dbg!==void 0)return dbg;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return dbg=v},{mode:1});var TME;var tT=function(){var v=_.P.apply(this,arguments)||this;v.isExpandableContent=!1;return v};
_.V(tT,_.P);_.vP.Object.defineProperties(tT.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((v=this.data)==null?void 0:v.price)||((e=this.data)==null?void 0:(d=e.dealsData)==null?void 0:d.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var v,e;if((v=this.data)!=null&&v.dealsData&&((e=this.data)==null||!e.priceReplacementText)){v=this.data.dealsData;var d,E,T;return((d=v.salesData)==null?void 0:d.originalPrice)||((E=v.priceDropData)==null?void 0:E.referencePrice)||((T=v.promotionData)==null?void 0:T.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var v,e;return(v=this.data)==null?void 0:(e=v.dealsData)==null?void 0:e.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],tT.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],tT.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],tT.prototype,"isExpandableContent",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"showCta",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"ctaText",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"hasPriceTopPosition",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"hasPriceBottomPosition",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"useNewStyle",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"showPriceReplacementText",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"priceValue",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"showDeal",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"showAffiliateDisclaimer",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"useSaleStyle",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"useFromBrandCtaStyle",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"useFromVendorCtaStyle",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tT.prototype,"useShoppingCollectionCtaStyle",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],tT);
_.A(tT,"ytd-vertical-product-card-renderer",function(){if(TME!==void 0)return TME;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return TME=v},{mode:1});var S8i;var fG=function(){return _.P.apply(this,arguments)||this};
_.V(fG,_.P);fG.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],fG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],fG.prototype,"ytdLockupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fG.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],fG);
_.A(fG,"ytd-grid-movie-renderer",function(){if(S8i!==void 0)return S8i;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return S8i=v},{mode:1});var W67;var R3=function(){var v=_.P.apply(this,arguments)||this;v.itemStyle="small-item";return v};
_.V(R3,_.P);R3.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var v,e,d,E,T=(e=_.L((v=this.data)==null?void 0:v.buttonCommand,_.$w))==null?void 0:(d=e.item)==null?void 0:(E=d.notificationTextRenderer)==null?void 0:E.successResponseText;T&&_.obL(this.hostElement,T)}};
_.vP.Object.defineProperties(R3.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:v.isProductPlaceholder)!==void 0&&((e=this.data)==null?void 0:e.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],R3.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],R3.prototype,"itemStyle",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],R3.prototype,"hasPrice",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],R3.prototype,"hasPriceReplacementText",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],R3.prototype,"hasAdditionalFeesText",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],R3.prototype,"hasAffiliateDisclaimer",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],R3.prototype,"isProductPlaceholder",null);_.c([_.f(),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],R3.prototype,"hideOpenInNewIcon",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],R3.prototype,"ariaLabel",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],R3);
_.A(R3,"ytd-merch-shelf-item-renderer",function(){if(W67!==void 0)return W67;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return W67=v},{mode:1});var aE6=_.l(function(v){return _.m("button-card-view-model",{el:_.dq(_.B5(function(){return v.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return v.data().title},
role:"button"},_.m(_.Ie,{model:{}}),_.m("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.m("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.m(_.y,{cond:function(){return v.data().image},
then:function(e){return _.m(_.va,{data:e,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.m("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return v.data().title})))},"jb");_.N("web_button_view_model_wcw_registration_killswitch")||_.aZ(aE6,"button-card-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){v=_.dC(v,{className:void 0});var e=v.data;v=v.className;var d=_.yl(function(){return e().onTapCommand},void 0,"NprDr");
return _.m("ytd-shopping-item-card",{class:_.qe("ytdShoppingItemCardHost",v)},_.m(_.Oe,{command:d,className:"ytdShoppingItemCardHostLink"},_.m("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.m(_.kz,{data:function(){return e().thumbnailViewModel}},{thumbnailViewModel:function(E){return _.m(_.dJ,{data:E.data,
aspectRatio:3})}})),_.m("div",null,_.m("p",{class:"ytdShoppingItemCardHostItemTitle"},_.m(_.Dh,{text:function(){return e().itemTitle}})),_.m("p",{class:"ytdShoppingItemCardHostPrice"},_.m(_.Dh,{text:function(){return e().priceOrStatus}})))))},"kb"),"ytd-shopping-item-card",{props:{data:_.U1,
className:_.U1}});var imn={isAdsVideo:!0},OmI={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},IEu={showPlayerControls:!1,videoPreviewDurationMs:15E3},bmJ={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var gB=null,Jw7={};var tFL="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(" "),P4={},fuS=(P4.FEwhat_to_watch="home",P4.FEhashtag="hashtag",P4.FEtrending="trending",P4.FEhistory="history",P4.SPunlimited="premium",P4.FEmemberships_and_purchases="paid_memberships",P4.SPredeem_code="redeem",P4.SPverify_location="locate",P4.SPminor_moment="minor_moment",
P4.FEmini_app_container="mini_app",P4.FEnews_destination="news",P4.SPopen_in_app="open_in_app",P4.FEexplore="explore",P4.FEsubscriptions="subscriptions",P4.FEsfv_audio_pivot="sfv_audio_pivot",P4.FEplaylist_aggregation="playlist_aggregation",P4);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");_.qg("init");var Y8I=function(){},rDc=_.l(function(v){var e=v.data;
var d=v.inlineMetadata;var E=v.aspectRatio;var T=v.scrimStyle;var S=v.className;var O=v.useDefaultStyle;var b=new Y8I,Y=_.N("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",q=_.yl(function(){return(O==null?0:O())?Y==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),r=_.yl(function(){return _.M4(d)||q()||!1},void 0,"F6KaVc"),h=function(){return(T==null?void 0:T())!==void 0?T==null?void 0:T():1},K=_.yl(function(){return e().belowThumbnailMetadata||
!r()},void 0,"t2xwLe");
v=_.Eh({visibilityCallback:function(v3){var q7=e().onFirstVisible;v3&&q7&&_.wC(q7)},
showOption:{calledOnce:!0,state:"visible"}});var k=_.dq(),J={},R=_.qe(function(){return q(),"shortsLockupViewModelHostThumbnailContainer"},(J.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.M4(E)===1},J.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.M4(E)===2},J.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.N("web_shorts_2_by_3_lockups_study")&&!_.N("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
J)),B=_.yl(function(){if(_.M4(E)===1)return 1;
_.M4(E);return 2},void 0,"LG7swb"),X,Z=function(){if(b){var v3;
(v3=X)==null||gp(v3);var q7;if(b.hostElement&&((q7=b.data)==null?0:q7.inlinePlayerData)){v3=Object.assign({},bmJ);var m0,$S;((m0=b.data)==null?void 0:($S=m0.inlinePlayerData)==null?void 0:$S.maxPlaybackLengthSec)!==void 0&&(v3.videoPreviewDurationMs=b.data.inlinePlayerData.maxPlaybackLengthSec*1E3);X=Xc({mediaRenderer:b,lockupElement:b.hostElement,thumbnailElement:k.value,videoPreviewOpts:v3})}}};
_.o_(function(){b&&(b.data=e(),Z())},"adXpp");
var U=_.yl(function(){return e().thumbnail},void 0,"cFasFe");
J=_.yl(function(){return e().badge},void 0,"a2oavc");
var F=_.yl(function(){return e().onTap},void 0,"jb0oIf"),g={},Q={};
return _.m("ytm-shorts-lockup-view-model",{el:_.dq(function(v3){b&&(b.hostElement=v3)},Z,v),
class:_.qe("shortsLockupViewModelHost",S)},_.m(_.eI,null,_.m(_.Oe,{command:F,className:_.qe("shortsLockupViewModelHostEndpoint",(g.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!K()},g),"reel-item-endpoint",""),
ariaHidden:function(){return!r()},
tabIndex:function(){return r()?0:-1}},_.m("div",{el:k,
class:_.qe("shortsLockupViewModelHostThumbnailParentContainer",(Q.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!q()},Q))},_.m(_.y,{cond:U,
then:function(){return _.m("div",{class:R},_.m(_.va,{data:function(){var v3;return(v3=U==null?void 0:U())!=null?v3:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.m(_.kz,{data:function(){return e().thumbnailViewModel}},{thumbnailViewModel:function(v3){return _.m(_.dJ,{data:v3.data,
aspectRatio:function(){return B()},
disableRounding:function(){return q()}})}}),null),_.m(_.y,{cond:r,
then:function(){return _.m(mbu,{data:e,scrimStyle:h,useDefaultStyle:O})}}),_.m(_.kz,{data:J},{badgeViewModel:function(v3){return _.m(_.W4,{data:v3.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.m(_.y,{cond:function(){return r()&&e().menuOnTap},
then:function(){return _.m(yD7,{data:e,inlineMetadata:!0})}}),_.m(_.y,{cond:K,
then:function(){return _.m(q8E,{data:e,useDefaultStyle:O,inlineMetadata:r})}})))},"lb"),mbu=_.l(function(v){var e=v.data;
var d=v.scrimStyle;var E=v.useDefaultStyle;var T=_.N("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",S=E&&_.N("web_hide_primary_text_for_pivot_panel"),O=_.yl(function(){return(E==null?0:E())?T==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"o1uIvc");
v={};v=_.qe("shortsLockupViewModelHostInlineMetadata",(v.shortsLockupViewModelHostMetadataRounded=function(){return!O()},v.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(d==null?void 0:d())===3&&!_.N("enable_shorts_lockup_new_scrim")},v.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(d==null?void 0:d())===3&&_.N("enable_shorts_lockup_new_scrim")},v.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(d==null?void 0:d())===2||(d==null?void 0:
d())===4},v.shortsLockupViewModelHostShowOverPlayer=function(){return!0},v),"image-overlay-text");
var b={};return _.m("div",{class:v},_.m("h3",{class:_.qe("shortsLockupViewModelHostMetadataTitle",(b.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(d==null?void 0:d())===4},b.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return e().belowThumbnailMetadata},b)),
"aria-label":function(){return e().accessibilityText}},_.m(_.y,{cond:function(){var Y;
return!((Y=e().overlayMetadata)==null||!Y.primaryText)&&!S},
then:function(){return _.m(_.Dh,{text:function(){var Y;return(Y=e().overlayMetadata)==null?void 0:Y.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.m(_.y,{cond:function(){var Y;
return(Y=e().overlayMetadata)==null?void 0:Y.secondaryText},
then:function(){return _.m(hqJ,{data:e,scrimStyle:d,className:void 0})}}))},"mb"),q8E=_.l(function(v){var e=v.data;
var d=v.useDefaultStyle;var E=v.inlineMetadata;var T=_.N("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",S=_.yl(function(){return(d==null?0:d())?T==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c4LgDb"),O=_.dq(),b;
v=_.rq(function(k){if(_.R7(_.fv(k),O.value,["AVATAR-VIEW-MODEL"]))return!1;var J;(J=b)==null||J.click();return!1});
var Y=_.yl(function(){return e().belowThumbnailMetadata||e().overlayMetadata},void 0,"YLe6Mc"),q=function(){return e().menuOnTap&&!E()},r=function(){var k;
return(k=Y())==null?void 0:k.avatar},h={},K={};
return _.m("div",{class:_.qe(function(){return S()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(h.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!r()},h.shortsLockupViewModelHostOutsideMetadataHasMenu=q,h)),
"on:click":v,el:O,role:"presentation"},_.m(_.kz,{data:r},{avatarViewModel:function(k){return _.m("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.m(_.x7,{data:k.data}))}}),_.m("div",null,_.m("h3",{class:_.qe("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(K.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var k,J;
return!((k=Y())==null?0:(J=k.primaryText)==null?0:J.content)},K.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=E,K)),
role:"presentation"},_.m(_.Oe,{ref:function(k){return void(b=k)},
command:function(){return e().onTap},
className:_.qe("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var k,J;return(k=Y())==null?void 0:(J=k.primaryText)==null?void 0:J.content},
"aria-label":function(){return e().accessibilityText}},_.m(_.y,{cond:function(){var k;
return(k=Y())==null?void 0:k.primaryText},
then:function(k){return _.m(_.Dh,{text:k,noEndpoints:!0,noStyleRuns:!0})}}))),_.m(_.y,{cond:function(){var k;
return(k=Y())==null?void 0:k.secondaryText},
then:function(k){return _.m("div",{class:_.qe("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.m(_.Dh,{text:k,noStyleRuns:!0}))}})),_.m(_.y,{cond:q,
then:function(){return _.m(yD7,{data:e,inlineMetadata:!1})}}))},"nb"),hqJ=_.l(function(v){var e=v.data;
var d=v.scrimStyle;v=v.className;var E={};return _.m("div",{class:_.qe((E.shortsLockupViewModelHostMetadataSubhead=function(){return(d==null?void 0:d())!==4},E.shortsLockupViewModelHostMetadataSubheadNew=_.N("enable_shorts_lockup_new_scrim"),E.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(d==null?void 0:d())===4},E),v),
"aria-hidden":"true"},_.m(_.Dh,{text:function(){var T;return(T=e().overlayMetadata)==null?void 0:T.secondaryText},
noStyleRuns:!0}))},"ob"),yD7=_.l(function(v){var e=v.data;
var d=v.inlineMetadata;v={};v=_.qe((v.shortsLockupViewModelHostInlineMetadataMenu=function(){return d()},v.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!d()},v.shortsLockupViewModelHostShowOverPlayer=function(){return!0},v),"image-overlay-text");
return _.m("div",{class:v},_.m(_.mO,{data:function(){return{style:d()?"overlay":"mono",accessibilityLabel:e().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(E){E.preventDefault();E.stopPropagation();var T=_.Ag({elementsCommand:e().menuOnTap,forceNewState:!0});if(T==null?0:T.onclick)T.onclick(E)}}},
iconName:"MORE_VERT"}))},"pb");var K6J=_.l(function(v){var e=v.data;var d=v.inlineMetadata;var E=v.aspectRatio;var T=v.scrimStyle;var S=v.className;var O=v.useDefaultStyle;v=_.yl(function(){var b=e().entityId;return b?b.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.m("ytm-shorts-lockup-view-model-v2",{class:_.qe("shortsLockupViewModelHost",S)},_.m(_.Om,{contentId:v,aspectRatio:function(){return(E==null?void 0:E())===1?1:(E==null?void 0:E())===2?2:4}},function(){return _.m(rDc,{data:e,
inlineMetadata:d,aspectRatio:E,scrimStyle:T,className:S,useDefaultStyle:O})}))},"qb");_.aZ(K6J,"ytm-shorts-lockup-view-model-v2",{props:{data:_.SM,inlineMetadata:_.SM,aspectRatio:_.SM,scrimStyle:_.SM,className:_.SM,useDefaultStyle:_.SM}});var $bc=16/9*210,x8=function(){var v=_.P.apply(this,arguments)||this;v.isExpandableContent=!1;v.hideShelfHeader=!1;v.engagementPanel=!1;v.buttonClasses=["arrow"];v.isSearch=!1;v.disableScrollEventListener=!1;v.containsLockup=!1;v.overrideArrowPositionForProductCard=!1;v.overrideArrowPositionForShoppingItemCard=!1;v.overrideArrowPositionForReelItems=!1;v.overrideArrowPositionForGridMovie=!1;v.overrideArrowPositionToCenter=!1;v.isSearchPostShelf=!1;v.overrideArrowPositionForMixedShelf=!1;v.overrideArrowPositionForMixedShelfShortsOnly=
!1;v.hasBigThumbsReelItems=!1;v.shouldUseMixedListHeight=!1;v.shouldUseShortsListHeight=!1;v.gridVideoWidth=0;v.isSearchVodShelf=!1;v.disableWheelScroll=!1;v.sizing="COMPACT";v.shortsLockupAspectRatio=0;return v};
_.V(x8,_.P);_.W=x8.prototype;
_.W.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]]"}}}}};
_.W.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.N("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.W.computeInitialCountNumber=function(v){if(!v)return 6;var e=v.items.some(function(S){return!!S.topicRecommendationsChipRenderer}),d=v.items.some(function(S){return!!S.displayAdRenderer}),E=this.computeShouldListItemsHaveEqualHeight(v),T=v.items.some(function(S){return!!S.gridPlaylistRenderer});
v=v.items.some(function(S){return!!S.shoppingItemCardViewModel});
return e?9:d?8:T||E?10:v?7:6};
_.W.computeContainsPost=function(v){return!!v&&!!v.items&&v.items.some(function(e){return!!e.postRenderer})};
_.W.computeContainsLockup=function(){if(_.N("web_horizontal_list_lockup_arrow_killswitch"))return!1;var v,e;return(v=this.data)==null?void 0:(e=v.items)==null?void 0:e.some(function(d){return!!d.lockupViewModel})};
_.W.maybeUpdateLockupAspectRatio=function(){var v,e;if(this.computeContainsLockup()&&((v=this.data)==null?0:(e=v.items)==null?0:e.length)){var d;v=UX3((d=this.data.items[0].lockupViewModel)==null?void 0:d.contentType,this.data.force16By9ThumbnailAspectRatio);d=vy$(v);d=this.computeLockupWidth()/d;_.qr(this.hostElement,{"--yt-horizontal-list-content-height":d+"px"})}};
_.W.computeOverrideArrowPositionForProductCard=function(v){if(this.isExpandableContent)return!1;var e;return!!(v==null?0:(e=v.items)==null?0:e.some(function(d){return!!d.verticalProductCardRenderer}))};
_.W.computeOverrideArrowPositionForShoppingItemCard=function(v){var e;return!!(v==null?0:(e=v.items)==null?0:e.some(function(d){return!!d.shoppingItemCardViewModel}))};
_.W.computeOverrideArrowPositionForReelItemRenderer=function(v){return this.containsReelItemRenderer(v)};
_.W.computeHasBigThumbsReelItems=function(v,e){return v&&this.containsReelItemRenderer(e)};
_.W.computeShouldListItemsHaveEqualHeight=function(v){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(v==null?void 0:v.itemSizeConstraint)};
_.W.computeShouldListItemsHaveShortsHeight=function(v){return this.computeShouldListItemsHaveEqualHeight(v)&&!this.containsGridVideoRenderer(v)};
_.W.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.W.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.W.containsReelItemRenderer=function(v){var e;return!!(v==null?0:(e=v.items)==null?0:e.some(function(d){return!(!d.reelItemRenderer&&!d.shortsLockupViewModel)}))};
_.W.containsGridVideoRenderer=function(v){var e;return!!(v==null?0:(e=v.items)==null?0:e.some(function(d){return!!d.gridVideoRenderer||!!d.lockupViewModel}))};
_.W.computeContainsGridMovieRenderer=function(v){var e;return!!(v==null?0:(e=v.items)==null?0:e.some(function(d){return!!d.gridMovieRenderer}))};
_.W.computeOverrideArrowPositionToCenter=function(v){return this.computeIsSearchPostShelf(v)};
_.W.computeIsSearchPostShelf=function(v){var e;return!!(v==null?0:(e=v.items)==null?0:e.some(function(d){var E,T;return((T=(E=d.postRenderer)==null?void 0:E.surface)!=null?T:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.W.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(v){var e;return!!(v==null?0:(e=v.items)==null?0:e.some(function(d){var E,T,S;return((S=(E=d.backgroundPromoRenderer)==null?void 0:(T=E.style)==null?void 0:T.value)!=null?S:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.W.computeIsSearchVodShelf=function(v,e){return v&&this.containsGridVideoRenderer(e)};
_.W.computeDisableWheelScroll=function(v,e){return this.computeIsSearchVodShelf(v,e)};
_.W.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.W.computeShortsLockupAspectRatio=function(){return 1};
_.W.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.qr(this.hostElement,{"--ytd-reel-item-thumbnail-height":$bc+"px"})};
x8.prototype.dataChanged=x8.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.OC.YtdHorizontalListBehavior),_.w("design:type",Object)],x8.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],x8.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],x8.prototype,"isExpandableContent",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"hideShelfHeader",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"engagementPanel",void 0);_.c([_.f(),_.w("design:type",Array)],x8.prototype,"buttonClasses",void 0);_.c([_.f(),_.w("design:type",Object)],x8.prototype,"isSearch",void 0);
_.c([_.f(),_.w("design:type",Object)],x8.prototype,"disableScrollEventListener",void 0);_.c([_.f({computed:"computeInitialCountNumber(data)"}),_.w("design:type",Number)],x8.prototype,"initialCount",void 0);_.c([_.f({computed:"computeContainsPost(data)"}),_.w("design:type",Boolean)],x8.prototype,"supportComponentResize",void 0);_.c([_.f({computed:"computeContainsPost(data)"}),_.w("design:type",Boolean)],x8.prototype,"containsPost",void 0);
_.c([_.f({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"containsLockup",void 0);_.c([_.f({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],x8.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.c([_.f({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"overrideArrowPositionForProductCard",void 0);_.c([_.f({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.c([_.f({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"overrideArrowPositionForReelItems",void 0);_.c([_.f({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"overrideArrowPositionForGridMovie",void 0);
_.c([_.f({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"overrideArrowPositionToCenter",void 0);_.c([_.f({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"isSearchPostShelf",void 0);_.c([_.f({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.c([_.f({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.c([_.f({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"hasBigThumbsReelItems",void 0);
_.c([_.f({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"shouldUseMixedListHeight",void 0);_.c([_.f({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"shouldUseShortsListHeight",void 0);_.c([_.f({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"gridVideoWidth",void 0);
_.c([_.f({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"isSearchVodShelf",void 0);_.c([_.f({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.w("design:type",Object)],x8.prototype,"disableWheelScroll",void 0);_.c([_.f({computed:"computeSizing(isSearch)"}),_.w("design:type",Object)],x8.prototype,"sizing",void 0);
_.c([_.f({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.w("design:type",Object)],x8.prototype,"shortsLockupAspectRatio",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],x8.prototype,"dataChanged",null);
_.A(x8,"yt-horizontal-list-renderer",function(){if(sDe===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);sDe=v}v=sDe;return v},{mode:1});var jTg;var sT2=[10,12,14,16,18,20,24,28,32,36],NMA=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],B4=function(){var v=_.P.apply(this,arguments)||this;v.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";v.hideOverflow=!1;v.useRoboto=!1;v.fontClass="";v.overflown=!1;v.actionMap={"yt-window-resized":"resize"};return v};
_.V(B4,_.P);_.W=B4.prototype;
_.W.attached=function(){var v=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();_.Uh(this,function(){v.resize()});
if(!_.Tw){var e,d,E;(e=document)==null||(d=e.fonts)==null||(E=d.ready)==null||E.then(function(){v.resize()})}};
_.W.dataChanged=function(){this.resize()};
_.W.guideIsExpandedChanged=function(){this.resize()};
_.W.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 v=this.getMaxNumLines(),e=this.getMinFont(),d=this.getMaxFont(),E=this.useRoboto?sT2:NMA;for(E=E.filter(function(S){return S<=d&&S>=e});E.length>1;){var T=Math.floor(E.length/2);
this.updateFontSize(E[T]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=v)E=E.slice(T,E.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>v)E=E.slice(0,T);else break}this.updateFontSize(E[E.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(v)}};
_.W.handleOverflow=function(v){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>v&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",v.toString()))};
_.W.updateFontSize=function(v){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+v;this.textNode.classList.add(this.fontClass)};
_.W.getMaxFont=function(){var v=this.useRoboto?sT2:NMA;v=v[v.length-1];return this.maxFontSize&&this.maxFontSize<=v?this.maxFontSize:v};
_.W.getMinFont=function(){var v=(this.useRoboto?sT2:NMA)[0];return this.minFontSize&&this.minFontSize>=v?this.minFontSize:v};
_.W.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.W.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.W.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.vv(this.text).split("\n").length-1:Infinity};
_.W.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("Ih`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
B4.prototype.guideIsExpandedChanged=B4.prototype.guideIsExpandedChanged;B4.prototype.dataChanged=B4.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],B4.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],B4.prototype,"actionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],B4.prototype,"text",void 0);
_.c([_.f(),_.w("design:type",String)],B4.prototype,"fontFamily",void 0);_.c([_.f(),_.w("design:type",Number)],B4.prototype,"maxWidth",void 0);_.c([_.f(),_.w("design:type",Number)],B4.prototype,"maxHeight",void 0);_.c([_.f(),_.w("design:type",Number)],B4.prototype,"maxFontSize",void 0);_.c([_.f(),_.w("design:type",Number)],B4.prototype,"minFontSize",void 0);_.c([_.f(),_.w("design:type",Number)],B4.prototype,"maxLines",void 0);_.c([_.f(),_.w("design:type",Object)],B4.prototype,"hideOverflow",void 0);
_.c([_.f({selector:_.g_M}),_.w("design:type",Boolean)],B4.prototype,"guideIsExpanded",void 0);_.c([_.sg("#container"),_.w("design:type",HTMLElement)],B4.prototype,"containerNode",void 0);_.c([_.sg("#text"),_.w("design:type",HTMLElement)],B4.prototype,"textNode",void 0);_.c([_.V1("text"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],B4.prototype,"dataChanged",null);
_.c([_.V1("guideIsExpanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],B4.prototype,"guideIsExpandedChanged",null);_.c([_.z({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],B4);
_.A(B4,"yt-dynamic-sizing-formatted-string",function(){if(jTg!==void 0)return jTg;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return jTg=v},{mode:1});var ki6;_.L6u=function(v){_.dH.call(this,v)};
_.V(_.L6u,_.dH);var Vfe=function(v){_.dH.call(this,v)};
_.V(Vfe,_.L6u);var CG=function(){return _.P.apply(this,arguments)||this};
_.V(CG,_.P);CG.prototype.onTapSuspendedChannel=function(){var v;if((v=this.data)!=null&&v.serviceEndpoint){var e,d;(v=(d=_.L((e=this.data)==null?void 0:e.serviceEndpoint,_.wb))==null?void 0:d.url)?_.uX(v,void 0,void 0,window.top):(e=new Vfe("Did not handle suspended account tap. No appealUrl."),_.RI(e))}else e=new Vfe("Did not handle suspended account tap. No serviceEndpoint."),_.RI(e)};
CG.prototype.onTap=function(){var v=this,e=_.NC(),d,E=(d=_.s_(e,{veType:7116}))!=null?d:void 0;_.ca(e,{visualElement:E});_.Qd();this.saveRoleText();var T;if((T=this.data)==null?0:T.youtubeSuspended)this.onTapSuspendedChannel();else{var S=!1,O,b;(e=(b=_.L((O=this.data)==null?void 0:O.serviceEndpoint,_.aSu))==null?void 0:b.supportedTokens)&&e.forEach(function(Y){if(Y.accountSigninToken)if(S=!0,v.onAccountItemTap)v.onAccountItemTap(Y.accountSigninToken.signinUrl);else _.uX(Y.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!S){if(O=this.get("serviceEndpoint",this.data))S=!0,this.ytComponentBehavior.resolveCommand(O);S||_.PV(new Vfe("Did not handle account switch tap. No token."))}}};
CG.prototype.saveRoleText=function(){if(this.data){var v=this.data,e=v.channelDelegationRole;if(e){var d,E=(d=_.L(v==null?void 0:v.serviceEndpoint,_.aSu))==null?void 0:d.supportedTokens;if(!E){var T,S,O,b;E=(T=_.L(v==null?void 0:v.serviceEndpoint,_.L6))==null?void 0:(S=T.popup)==null?void 0:(O=S.confirmDialogRenderer)==null?void 0:(b=O.confirmButton)==null?void 0:b.buttonRenderer;var Y;E=(Y=_.L(E==null?void 0:E.command,_.rV))==null?void 0:Y.commands;if(!E)return;var q;E=(q=_.L(E[1],_.aSu))==null?
void 0:q.supportedTokens}if(E){Y=void 0;q=_.a(E);for(E=q.next();!E.done;E=q.next())if(E=E.value,E.datasyncIdToken){Y=E.datasyncIdToken.datasyncIdToken;break}if(Y){var r;a:{if(_.Kmt()&&(q=_.$Et(Y+"::pom"))){q=new Gf(q);break a}q=void 0}(r=q)==null||r.set("role_text",e);if((f30?f30:window.location).href.indexOf("studio")!==-1&&(r=$wj())){q=r.src?(new URL(r.src)).origin:"*";var h;(h=r.contentWindow)==null||h.postMessage({action:"save_pom_role",datasyncId:Y,roleText:e},q)}}}}}};
_.vP.Object.defineProperties(CG.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(v=this.data)==null?void 0:(e=v.accountPhoto)==null?void 0:e.thumbnails;return d&&d.length>0&&(d[0].height===36||d[0].height===48)?d[0].height:40}}});
CG.prototype.onTap=CG.prototype.onTap;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],CG.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],CG.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!1}),_.w("design:type",Function)],CG.prototype,"onAccountItemTap",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],CG.prototype,"enableRingForActiveAccount",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],CG.prototype,"thumbnailSize",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CG.prototype,"onTap",null);_.c([_.z({is:"ytd-account-item-renderer",disableElementRegistration:!0})],CG);
_.A(CG,"ytd-account-item-renderer",function(){if(ki6!==void 0)return ki6;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ki6=v},{mode:1});var o66;var XL=function(){return _.P.apply(this,arguments)||this};
_.V(XL,_.P);XL.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.dk().resolve(_.EI).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],XL.prototype,"data",void 0);_.c([_.z({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],XL);
_.A(XL,"ytd-identity-chip-renderer",function(){if(o66!==void 0)return o66;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return o66=v},{mode:1});var JDA;var Giu;var Mfi;var tfi;var zS=function(){var v=_.P.apply(this,arguments)||this;v.richItemMinWidth=_.Wi("wn_grid_min_item_width",310);v.isShorts=!1;v.isWatchNext=!1;v.isExploreHub=!1;return v};
_.V(zS,_.P);_.vP.Object.defineProperties(zS.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var v=[],e=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.qr(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var d;if(((d=this.data)==null?0:d.rows)&&e)for(e*=this.data.rows,d=0;d<e;d++)v.push({});return v}}});
_.c([_.M(_.lV),_.w("design:type",Object)],zS.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],zS.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.X1,value:3}),_.w("design:type",Number)],zS.prototype,"itemsPerRow",void 0);_.c([_.f({selector:_.Qg7,value:6}),_.w("design:type",Number)],zS.prototype,"slimItemsPerRow",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Number)],zS.prototype,"richItemMinWidth",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],zS.prototype,"miniMode",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zS.prototype,"isShorts",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zS.prototype,"isWatchNext",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zS.prototype,"isExploreHub",void 0);
_.c([_.t("isExploreHub"),_.f({reflectToAttribute:!0}),_.w("design:type",Object),_.w("design:paramtypes",[])],zS.prototype,"shimmerAnimation",null);_.c([_.t("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.w("design:type",Array),_.w("design:paramtypes",[])],zS.prototype,"cardItems",null);_.c([_.z({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],zS);
_.fEg=_.I5()(zS,"ytd-ghost-grid-renderer",function(){if(tfi===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);tfi=v}v=tfi;return v},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.aZ(_.l(function(v){var e=_.dC(v,{numberOfComments:3}).numberOfComments,d=_.dC(v,{isInitialLoad:!1}).isInitialLoad,E=_.dC(v,{engagementPanel:!1}).engagementPanel,T=function(){return Math.min(Number(e==null?void 0:e())||20,20)};
return _.m("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.m(_.y,{cond:function(){return!(E==null?0:E())&&(d==null?void 0:d())},
then:function(){return _.m("div",{class:"ytGhostCommentsComments"},_.m("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.m("div",{class:_.qe("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.m("div",{class:_.qe("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.m("div",{class:"ytGhostCommentsGhostCard"},_.m("div",{class:"ytGhostCommentsAvatar"},_.m("div",{class:"ytGhostCommentsCircle"})),_.m("div",{class:"ytGhostCommentsComments"},_.m("div",{class:"ytGhostCommentsMeta"},
_.m("div",{class:_.qe("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.m("div",{class:_.qe("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.m("div",{class:"ytGhostCommentsComments"},_.m(_.jI,{each:function(){return Array((T==null?void 0:T())||3)}},function(){return _.m("div",{class:"ytGhostCommentsGhostCard"},_.m("div",{class:"ytGhostCommentsAvatar"},_.m("div",{class:"ytGhostCommentsCircle"})),_.m("div",{class:"ytGhostCommentsHost"},_.m("div",{class:"ytGhostCommentsMeta"},
_.m("div",{class:_.qe("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.m("div",{class:_.qe("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.m("div",{class:_.qe("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.m("div",{class:"ytGhostCommentsGhostLikeDislike"},_.m("div",{class:_.qe("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.m("div",{class:_.qe("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"rb"),"yt-ghost-comments",{props:{numberOfComments:_.U1,
isInitialLoad:_.U1,engagementPanel:_.U1}});_.RZ("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var l5=function(){var v=_.P.apply(this,arguments)||this;v.isOverridable=!1;v.spinnerActive=!1;v.showButton=!1;v.isCommentsSection=!1;v.engagementPanel=!0;v.isShortsGrid=!1;v.isShortsPage=!1;v.isWatchPage=!1;v.ghostCardExperimentEnabled=_.N("show_ghost_comments_shorts_watch")||_.N("show_ghost_comments_desktop_watch");v.originalShowButton=!1;v.endOfList=!1;return v};
_.V(l5,_.P);_.W=l5.prototype;_.W.resetIntersectionObserver=function(){var v;(v=this.observer)==null||v.disconnect();this.observer=void 0};
_.W.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var v,e;((v=this.data)==null?void 0:v.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((e=this.data)==null?0:e.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.W.initializeIntersectionObserver=function(){var v=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(e){e=_.a(e);for(var d=e.next();!d.done;d=e.next())d.value.isIntersecting&&(v.triggerContinuation(),v.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.W.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]]"}}}}}};
_.W.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var v;((v=this.data)==null?0:v.continuationEndpoint)&&(v=_.L(this.data.continuationEndpoint,_.Ha))&&this.ytdReduxBehavior.dispatch(_.Oo({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:v}}))};
_.W.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.W.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.W.onServiceRequestCompleted=function(v,e){if(!_.N("kevlar_hide_spinner_on_empty_continuation_killswitch")){var d;(d=e.actions)!=null&&d.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.W.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.W.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.W.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.W.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var v=3;if(this.engagementPanel){var e,d,E;v=Math.floor(((((e=this.hostElement)==null?void 0:(d=e.parentElement)==null?void 0:(E=d.parentElement)==null?void 0:E.scrollHeight)||108)-108)/108);v=this.isInitialLoad?Math.max(v,3):3}e=[].concat(_.t7(this.hostElement.querySelectorAll("yt-ghost-comments")));e=_.a(e);for(d=e.next();!d.done;d=e.next())d=d.value,d.numberOfComments=v,d.isInitialLoad=this.isInitialLoad,d.engagementPanel=
this.engagementPanel}};
_.W.detached=function(){this.resetIntersectionObserver()};
_.vP.Object.defineProperties(l5.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.N("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.N("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
l5.prototype.numberOfGhostCommentsChanged=l5.prototype.numberOfGhostCommentsChanged;l5.prototype.continuationTriggerOffsetChanged=l5.prototype.continuationTriggerOffsetChanged;l5.prototype.showButtonChanged=l5.prototype.showButtonChanged;l5.prototype.onYtServiceRequestCompletedForButtonRenderer=l5.prototype.onYtServiceRequestCompletedForButtonRenderer;l5.prototype.onServiceRequestCompleted=l5.prototype.onServiceRequestCompleted;l5.prototype.onYtServiceRequestSentForButtonRenderer=l5.prototype.onYtServiceRequestSentForButtonRenderer;
l5.prototype.observeData=l5.prototype.observeData;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Qy.YtVisibilityBehavior),_.w("design:type",Object)],l5.prototype,"ytVisibilityBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],l5.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],l5.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],l5.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],l5.prototype,"isOverridable",void 0);_.c([_.f(),_.w("design:type",Object)],l5.prototype,"spinnerActive",void 0);_.c([_.f(),_.w("design:type",Object)],l5.prototype,"showButton",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],l5.prototype,"isCommentsSection",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],l5.prototype,"engagementPanel",void 0);_.c([_.f(),_.w("design:type",Object)],l5.prototype,"isShortsGrid",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.DNt}),_.w("design:type",Object)],l5.prototype,"isShortsPage",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.n_j}),_.w("design:type",Object)],l5.prototype,"isWatchPage",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],l5.prototype,"ghostCardExperimentEnabled",void 0);
_.c([_.f(),_.w("design:type",Number)],l5.prototype,"continuationTriggerOffset",void 0);_.c([_.f(),_.w("design:type",Object)],l5.prototype,"endOfList",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],l5.prototype,"isInitialLoad",void 0);_.c([_.sg("ytd-button-renderer"),_.w("design:type",_.Tu)],l5.prototype,"buttonRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],l5.prototype,"buttonOverrides",void 0);
_.c([_.f(),_.t("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.w("design:type",Object),_.w("design:paramtypes",[])],l5.prototype,"isShortsCommentsSection",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],l5.prototype,"observeData",null);
_.c([_.Kq("yt-service-request-sent-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],l5.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],l5.prototype,"onServiceRequestCompleted",null);
_.c([_.Kq("yt-service-request-completed-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],l5.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.c([_.V1("showButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],l5.prototype,"showButtonChanged",null);
_.c([_.V1("continuationTriggerOffset"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],l5.prototype,"continuationTriggerOffsetChanged",null);_.c([_.$v("isInitialLoad","engagementPanel"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],l5.prototype,"numberOfGhostCommentsChanged",null);_.c([_.z({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],l5);
_.A(l5,"ytd-continuation-item-renderer",function(){if(Mfi!==void 0)return Mfi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Mfi=v},{mode:1});var RqI;var H4=function(){var v=_.P.apply(this,arguments)||this;v.downloadProgress=0;v.transferState="TRANSFER_STATE_UNKNOWN";v.downloadState="DOWNLOAD_STATE_UNKNOWN";v.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";v.offlineVideoPolicyExpirationTimestamp=0;v.downloadedVideoPlaybackPosition=0;return v};
_.V(H4,_.P);H4.prototype.dataChanged=function(){var v;this.videoData=_.L((v=this.data)==null?void 0:v.renderer,zMI);this.transferStateChanged()};
H4.prototype.downloadProgressChanged=function(){if(this.entityInfo){var v=Object.assign({},this.videoData),e=VZs(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),d=e.publishedTimeText,E=e.badges;v.shortViewCountText=e.shortViewCountText;v.publishedTimeText=d;v.badges=E;this.set("videoData",v)}};
H4.prototype.transferStateChanged=function(){if(this.entityInfo){var v=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",e=_.oG(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!VR(this.entityInfo.policyEntity),d=Object.assign({},this.videoData),E=VZs(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),T=E.publishedTimeText,S=E.badges;d.shortViewCountText=
E.shortViewCountText;d.publishedTimeText=T;d.badges=S;d.isDisabled=e;d.isWatched=this.downloadedVideoPlaybackPosition>0;d.navigationEndpoint=e?void 0:USM(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var O;v&&((O=this.videoData)==null?0:O.videoId)&&!_.N("dl_resume_click_killswitch")&&(d.isDisabled=!1,d.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});d.thumbnailOverlays=kX3(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",d)}};
H4.prototype.transferStateChanged=H4.prototype.transferStateChanged;H4.prototype.downloadProgressChanged=H4.prototype.downloadProgressChanged;H4.prototype.dataChanged=H4.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],H4.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],H4.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],H4.prototype,"videoData",void 0);_.c([_.f({selector:cK,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],H4.prototype,"downloadProgress",void 0);_.c([_.f(),_.w("design:type",Number)],H4.prototype,"relativeDateReference",void 0);_.c([_.f({selector:_.A_,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],H4.prototype,"transferState",void 0);
_.c([_.f({selector:hrS,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],H4.prototype,"downloadState",void 0);_.c([_.f({selector:d$0,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],H4.prototype,"offlinePolicyAction",void 0);_.c([_.f({selector:EKU,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],H4.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.c([_.f({selector:wg,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],H4.prototype,"downloadedVideoPlaybackPosition",void 0);_.c([_.f({selector:S1$,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],H4.prototype,"entityInfo",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],H4.prototype,"isDownloading",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H4.prototype,"dataChanged",null);
_.c([_.V1("downloadProgress"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H4.prototype,"downloadProgressChanged",null);_.c([_.V1("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H4.prototype,"transferStateChanged",null);
_.c([_.z({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],H4);
_.A(H4,"ytd-downloaded-video-grid-video-renderer",function(){if(RqI!==void 0)return RqI;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return RqI=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var PuE;var AT=function(){};
AT.prototype.resolve=function(v,e){var d=this;return _.I(function(E){return E.yield(d.resolveCommand(v,e),0)})};var xbB,Zl;xbB=Al3(function(v){return v.targetId},{shouldPersist:!1});
Zl=xbB.updateData;_.BMc=xbB.useUpdatableData;var Cu6,XIc;Cu6=Al3(function(v){return v.targetId});
XIc=Cu6.updateData;_.zq6=Cu6.useUpdatableData;var lE2=BSt.bind(null,Zl),Hmg=BSt.bind(null,XIc);(function(v,e,d){var E=_.L(d==null?void 0:d.updatedRenderer,_.yyM);return E?v({targetId:e},function(){return E}):!1}).bind(null,Zl);var c4=function(){};
_.V(c4,AT);c4.prototype.resolveCommand=function(v){var e;return _.I(function(d){e=_.L(v,_.ZSO);if(!e)return d.return();lE2(e.targetId,e);_.s9(d)})};var wJ=function(){var v=_.kv.apply(this,arguments)||this;v.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return v};
_.V(wJ,_.kv);_.W=wJ.prototype;_.W.configureContinuationPathMap=function(){return{}};
_.W.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.W.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.W.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.W.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.W.handleAppendContinuationItemsAction=function(v){var e=_.L(v,_.zwu);if(this.data&&this.data.targetId&&e&&this.continuationPathMap&&e.targetId===this.data.targetId){var d=BBt(v),E=d&&this.continuationPathMap[d];if(E&&d)if(v=this.get(E,this.data)){a:{for(d=0;d<v.length;d++){var T=v[d],S=void 0,O=!!_.L((S=_.L(T,LWI))==null?void 0:S.content,_.x5n);if(_.L(T,_.uw)||O)break a}d=v.length}E="data."+E;e.continuationItems?d===v.length-1?(this.pop(E),this.push.apply(this,[E].concat(_.t7(e.continuationItems)))):
d===v.length?this.push.apply(this,[E].concat(_.t7(e.continuationItems))):this.splice.apply(this,[E,d,1].concat(_.t7(e.continuationItems))):this.splice(E,d,1);(_.N("web_enable_voting_animation")||_.N("enable_music_web_cairo_voting_animation"))&&_.Iq(this.hostElement,"yt-append-continuation-items-action-finished");_.Iq(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.xf(new _.kL("append continuation items does not exist",d));else _.xf(new _.kL("append continuation path does not exist",
d))}};
_.W.handleReloadContinuationItemsCommand=function(v){var e=_.L(v,_.ZSO);if(this.data&&e){if(_.N("web_client_explore_hub")||_.N("web_explore_hub_on_hover")||_.N("web_client_explore_hub_on_hover"))try{_.dk().resolve(c4).resolveCommand(v)}catch(S){}if(this.data.targetId&&this.continuationPathMap&&e.targetId===this.data.targetId&&(!_.N("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||e.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var d,E=(d=e.slot)==null?void 0:
d.replace("RELOAD_CONTINUATION_SLOT_","");d=(v=BBt(v)+"-"+(E==null?void 0:E.toLowerCase()))&&this.continuationPathMap[v];if(!d||!v||!E)_.xf(new _.kL("reload continuation path does not exist",v));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(e)){if(e.replaceWithFirstItem){var T;this.set("data."+d,((T=e.continuationItems)==null?0:T.length)?e.continuationItems[0]:{})}else this.set("data."+d,e.continuationItems?e.continuationItems:[]);this.continuationIsReloading=
!1;_.Iq(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.W.handleShowReloadUiCommand=function(v){v=_.L(v,vTc);var e;((e=this.data)==null?0:e.targetId)&&(v==null?0:v.targetId)&&v.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
wJ.prototype.observeData=wJ.prototype.observeData;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],wJ.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],wJ.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wJ.prototype,"data",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],wJ.prototype,"continuationIsReloading",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wJ.prototype,"observeData",null);_.c([_.Lq()],wJ);_.FL=[_.cl.YtComponentBehavior,_.$M.YtActionHandlerBehavior,wJ.prototype];_.QL={};_.QL.YtNextContinuationBehavior=[_.Ee.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",_.hG(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.hG(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(v,e){v.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,e,{}):(v={locationRetrieved:function(d){this.makeNextContinuationRequest_(d,e,{})}.bind(this)},_.Iq(this.hostElement,"yt-retrieve-location",v))},
makeNextContinuationRequest_:function(v,e,d){_.l4("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();v=e(v);var E;this.canUseContextualNetworkManager_()&&(E=this.getNetworkManager());E||(E=_.dk().resolve(_.zo));e=_.wq.instance;if(_.Bb("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&e){E=_.Ej([v.startsWith("/")?v.substr(1):v]);var T,S;d=_.XB(e,{},E,d==null?void 0:(T=d.context)==null?void 0:(S=T.clickTracking)==null?void 0:S.clickTrackingParams).then(function(O){return{response:O}})}else d=
this.nextContinuation.usePost?E.postData(v,d):E.fetchData(v);
d.then(this.updateNextContinuationData_.bind(this,v));this.pendingContinuationRequest_=d;this.startListeningForNavigate_()},
updateNextContinuationData_:function(v,e){var d=this;_.l4("ncl");this.pendingContinuationRequest_=void 0;if(e){var E={};this.nextContinuation&&(E=this.nextContinuation);if(e.response&&e.response.continuationContents&&e.response.continuationContents[E.continuationType]){v=e.response.continuationContents[E.continuationType];var T=E.header||"data.header",S=v[E.responseHeaderKey||"header"];S&&this.set(T,S);T=E.contentsArray||"data.contents";S=this.getContents_(v,E.responseContentsKey||"contents")||[];
this.pathExists_(T)?(S.unshift(T),this.push.apply(this,S)):this.set(T,S);S&&(Cp$(_.NC(),e.response,this.hostElement,function(O){_.b4(d.hostElement,"yt-store-grafted-ve-action",[O])}),_.Iq(this.hostElement,"yt-next-continuation-data-updated",{continuationData:e,
page:this,contentsArray:T}));this.set(E.continuationsArray||"data.continuations",v[E.responseContinuationsKey||"continuations"]||[])}else e.reload?_.xf(new _.kL("Reloading from continuation is unsupported")):e.responseContext&&e.responseContext.errors||(delete e.xsrf_token,delete e.timing,delete e.endpoint,delete e.csn,e.responseContext&&delete e.responseContext.serviceTrackingParams,T={request:_.gZ(v,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(e).sort()},e.response&&(T.responseContentKeys=
Object.keys(e.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(T.continuationType=this.nextContinuation.continuationType.substr(0,256)),e=new _.kL("Malformed continuation",T),v.indexOf("/comment_service_ajax")==0?_.xf(e):_.RI(e)),this.set(E.continuationsArray||"data.continuations",[])}else _.PV(new _.kL("Missing continuation response",v))},
getContents_:function(v,e){e=e.split(".");return _.f0.getValueByKeys(v,e)},
pathExists_:function(v){var e=this;v=v.toString().split(".");for(var d=0;d<v.length;d++)if(e=e[v[d]],e===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var ADE;var ZmJ;var gJ=function(){var v=_.P.apply(this,arguments)||this;v.triggered_=!1;return v};
_.V(gJ,_.P);_.W=gJ.prototype;_.W.attached=function(){this.maybeTriggerAutoload()};
_.W.detached=function(){this.hasBeenTriggered_=!1};
_.W.onPrescanVisible=function(){this.onShow()};
_.W.onShow=function(){this.showButton||this.trigger()};
_.W.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Iq(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.W.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.W.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.W.computeLabel_=function(v,e){return v===void 0?null:v.label||!e?v.label:this.showMoreText_};
_.W.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.W.getContinuationUrl=function(v){var e={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(e.itct=this.data.clickTrackingParams);return _.ug(v,e)};
_.W.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
gJ.prototype.showButtonChanged_=gJ.prototype.showButtonChanged_;gJ.prototype.observeData_=gJ.prototype.observeData_;_.c([_.M(_.Qy.YtVisibilityBehavior),_.w("design:type",Object)],gJ.prototype,"ytVisibilityBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],gJ.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],gJ.prototype,"showButton",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],gJ.prototype,"showIcon",void 0);_.c([_.f({computed:"computeLabel_(data, showButton)"}),_.w("design:type",Object)],gJ.prototype,"label",void 0);_.c([_.f({value:_.pQ(_.sz("SHOW_MORE",void 0,"Show More"))}),_.w("design:type",Object)],gJ.prototype,"showMoreText_",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],gJ.prototype,"spinnerActive_",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],gJ.prototype,"hasBeenTriggered_",void 0);
_.c([_.f({value:void 0}),_.w("design:type",String)],gJ.prototype,"observeVisibleOption",void 0);_.c([_.f({value:void 0}),_.w("design:type",String)],gJ.prototype,"observeHiddenOption",void 0);_.c([_.f({value:"observe_once"}),_.w("design:type",Object)],gJ.prototype,"observePrescanOption",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gJ.prototype,"observeData_",null);
_.c([_.$v("showButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gJ.prototype,"showButtonChanged_",null);_.c([_.lh({is:"yt-next-continuation",disableElementRegistration:!0})],gJ);
_.A(gJ,"yt-next-continuation",function(){if(ZmJ===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;ADE===void 0&&(ADE=document.createElement("template"));var E=ADE;d.call(e,E.content.cloneNode(!0),v.content.firstChild);ZmJ=v}v=ZmJ;return v},{mode:2});var cD6;var wI0;var u5=function(){return _.P.apply(this,arguments)||this};
_.V(u5,_.P);u5.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],u5.prototype,"data",void 0);_.c([_.lh({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],u5);
_.A(u5,"yt-music-pass-small-feature-info-renderer",function(){if(wI0===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;cD6===void 0&&(cD6=document.createElement("template"));var E=cD6;d.call(e,E.content.cloneNode(!0),v.content.firstChild);wI0=v}v=wI0;return v},{mode:2});_.RZ("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var nG=function(){var v=_.P.apply(this,arguments)||this;v.isCollapsible=!1;v.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return v};
_.V(nG,_.P);_.W=nG.prototype;_.W.computeIsCollapsible=function(v){return!!(((v==null?0:v.showMoreText)||(v==null?0:v.visibleRowCount))&&(v==null?0:v.isCollapsible))};
_.W.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"}}}};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.W.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.W.onIronResize=function(){var v=this;_.gi(this,"updateGridInitItems",function(){v.maybeUpdateInitialItemsDisplayed()})};
_.W.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var v=this.getVisibleWidth();v!==0&&(v=Math.floor(v/214)*(this.data.visibleRowCount||2),v!==this.initialCount&&(this.initialCount=v,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.W.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.W.computeExpandVisible=function(v,e,d,E){return v&&e&&d&&!!E&&!!E.showMoreText};
_.W.computeShowMoreButton=function(v){return{text:v,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.W.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.W.initCollapsed=function(){var v=this;this.ytLazyListBehavior.canShowMore=!1;var e;(this.collapsed=!((e=this.data)==null||!e.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Uh(this,function(){_.YB(v.hostElement,"yt-refit-popups-action")})};
_.W.fillRestIfNotCollapsible=function(){var v=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!v||this.ytLazyListBehavior.fillRemainingListItems()};
_.W.computeViewAllHidden=function(v,e){return v||!e.viewAllEndpoint};
nG.prototype.fillRestIfNotCollapsible=nG.prototype.fillRestIfNotCollapsible;nG.prototype.initCollapsed=nG.prototype.initCollapsed;nG.prototype.onIronResize=nG.prototype.onIronResize;nG.prototype.persistentGuideChanged=nG.prototype.persistentGuideChanged;_.c([_.M(_.J9),_.w("design:type",Object)],nG.prototype,"ironResizableBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],nG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.iO.YtLazyListBehavior),_.w("design:type",Object)],nG.prototype,"ytLazyListBehavior",void 0);_.c([_.M(_.QL.YtNextContinuationBehavior),_.w("design:type",Object)],nG.prototype,"ytNextContinuationBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],nG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.M(_.FL),_.w("design:type",Object)],nG.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],nG.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],nG.prototype,"collapsed",void 0);_.c([_.f(),_.w("design:type",Number)],nG.prototype,"initialCount",void 0);_.c([_.f({computed:"computeShowMoreButton(data.showMoreText)"}),_.w("design:type",Object)],nG.prototype,"showMoreButton",void 0);
_.c([_.f({computed:"computeIsCollapsible(data)"}),_.w("design:type",Object)],nG.prototype,"isCollapsible",void 0);_.c([_.sg("#items"),_.w("design:type",HTMLElement)],nG.prototype,"items",void 0);_.c([_.V1("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nG.prototype,"persistentGuideChanged",null);_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nG.prototype,"onIronResize",null);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nG.prototype,"initCollapsed",null);_.c([_.V1("canShowMore"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nG.prototype,"fillRestIfNotCollapsible",null);_.c([_.z({is:"ytd-grid-renderer",disableElementRegistration:!0})],nG);
_.A(nG,"ytd-grid-renderer",function(){if(PuE!==void 0)return PuE;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return PuE=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var Dl=function(){return _.P.apply(this,arguments)||this};
_.V(Dl,_.P);
Dl.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Dl.prototype,"data",void 0);_.c([_.z({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Dl);
_.A(Dl,"ytd-carousel-ad-renderer",function(){if(Giu!==void 0)return Giu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Giu=v},{mode:1});var F6J;var Um=function(){return _.P.apply(this,arguments)||this};
_.V(Um,_.P);_.W=Um.prototype;_.W.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"}}}};
_.W.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Um.JSC$15347_CLICK_LOCATION_ID_MAP))};
_.W.onSitelinkTap=function(v){v.stopPropagation();var e,d,E=v==null?void 0:(e=v.model)==null?void 0:(d=e.item)==null?void 0:d.onTap;E&&this.ytSparklesClickLocationBehavior.handleClick(E,v,!1)};
_.W.onTap=function(v){var e=this.data&&this.data.content&&this.data.content.navigationEndpoint;e&&this.ytSparklesClickLocationBehavior.handleClick(e,v,!1)};
_.W.sendImpression=function(){if(this.data&&this.data.content)for(var v=_.a(this.data.content.impressionEndpoints||[]),e=v.next();!e.done;e=v.next()){e=_.a(e.value.loggingUrls||[]);for(var d=e.next();!d.done;d=e.next())d=d.value,d.baseUrl&&c8(d.baseUrl,d.attributionSrcMode)}};
Um.prototype.onTap=Um.prototype.onTap;Um.prototype.dataChanged=Um.prototype.dataChanged;Um.JSC$15347_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.aj.YtSparklesClickLocationBehavior),_.w("design:type",Object)],Um.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Um.prototype,"data",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Um.prototype,"dataChanged",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Um.prototype,"onTap",null);_.c([_.z({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Um);
_.A(Um,"ytd-promoted-sparkles-text-search-renderer",function(){if(F6J!==void 0)return F6J;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return F6J=v},{mode:1});var QTJ;var pG=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-mute-ad-action":"handleMuteAd"};return v};
_.V(pG,_.P);_.W=pG.prototype;
_.W.configureRendererStamper=function(){return{"data.menu":{id:_.N("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]]"}}}}}};
_.W.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.W.computeHasAdBadge=function(v){return!(v==null||!v.adBadge)};
_.W.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",pG.JSC$15356_DEFAULT_AD_BADGE_RENDERER),_.Yv(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,pG.JSC$15356_CLICK_LOCATION_ID_MAP))};
_.W.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var v;(((v=this.data)==null?void 0:v.impressionCommands)||[]).forEach(function(e){e=_.a(e.loggingUrls||[]);for(var d=e.next();!d.done;d=e.next())d=d.value,d.baseUrl&&c8(d.baseUrl,d.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.W.onTap=function(v){var e,d=(e=this.data)==null?void 0:e.navigationEndpoint,E;(e=(E=this.data)==null?void 0:E.thumbnailNavigationEndpoint)&&_.pM(_.vg(v),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(e,v,!1):d&&this.ytSparklesClickLocationBehavior.handleClick(d,v,!1)};
_.W.handleMuteAd=function(){this.collapsed=!0};
_.W.attached=function(){var v=this;_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.W.detached=function(){_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vP.Object.defineProperties(pG.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var v;return!(((v=this.data)==null?void 0:v.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var v;return!(((v=this.data)==null?void 0:v.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.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}}});
pG.prototype.dataChanged=pG.prototype.dataChanged;
pG.JSC$15356_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"]]);
pG.JSC$15356_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.sz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],pG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pG.prototype,"ytRendererBehavior",void 0);_.c([_.M(zu),_.w("design:type",Object)],pG.prototype,"ytdActiveViewBehavior",void 0);
_.c([_.M([_.$M.YtActionHandlerBehavior]),_.w("design:type",Object)],pG.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.aj.YtSparklesClickLocationBehavior),_.w("design:type",Object)],pG.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pG.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],pG.prototype,"collapsed",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],pG.prototype,"useBiggerThumbs",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],pG.prototype,"biggerThumbsStyle",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.w("design:type",Boolean)],pG.prototype,"fixAlignmentSmallScreens",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs_square")}}),
_.w("design:type",Boolean)],pG.prototype,"useBiggerThumbsSquare",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data.mediaHoverOverlay"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pG.prototype,"hideHoverOverlay",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pG.prototype,"webSearchLayout",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pG.prototype,"webSearchLayoutLandscape",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pG.prototype,"webSearchLayoutSquare",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pG.prototype,"sparklesCtaNoBackground",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.actionButton"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pG.prototype,"hideActionButton",null);_.c([_.f({computed:"computeButtonOverride(uiUpdate)"}),_.w("design:type",Object)],pG.prototype,"buttonOverride",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.w("design:type",Boolean)],pG.prototype,"hasNewAdBadge",void 0);_.c([_.t("data.promotedSparklesWebStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pG.prototype,"useRoundedBadge",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pG.prototype,"dataChanged",null);_.c([_.z({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],pG);
_.A(pG,"ytd-promoted-sparkles-web-renderer",function(){if(QTJ!==void 0)return QTJ;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return QTJ=v},{mode:1});var g6A;var vW=function(){var v=_.P.apply(this,arguments)||this;v.isInlinePreviewTriggered=!1;v.enableMonoStyle=_.N("enable_default_mono_cta_migration_web_client");return v};
_.V(vW,_.P);_.W=vW.prototype;_.W.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]]"}}}}}};
_.W.computeShowCta=function(v){return!(v==null||!v.ctaRenderer)};
_.W.onCtaClick=function(){var v,e,d,E=(v=this.data)==null?void 0:(e=v.ctaRenderer)==null?void 0:(d=e.buttonRenderer)==null?void 0:d.command;E&&this.ytComponentBehavior.resolveCommand(E)};
_.W.onWatchButtonClick=function(){var v,e,d,E=(v=this.data)==null?void 0:(e=v.watchButtonRenderer)==null?void 0:(d=e.buttonRenderer)==null?void 0:d.command;E&&this.ytComponentBehavior.resolveCommand(E)};
_.W.onTap=function(){};
_.W.dataChanged=function(){if(this.data){var v;_.N("enable_inline_muted_playback_on_web_search")&&((v=this.data)==null?0:v.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",vW.JSC$15360_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",vW.JSC$15360_DEFAULT_CLICK_LOCATION_BEHAVIOR,vW.JSC$15360_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(v=this.thumbnail.getElementsByTagName("a"),v.length>0&&(v=v.namedItem("thumbnail"))&&v.removeAttribute("href"))}};
_.W.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var v=_.a(this.data.impressionUrls),e=v.next();!e.done;e=v.next())e=e.value,j57(e,NCt(e));this.data.impressionsFired=!0}};
_.W.maybeComputeHref=function(){return null};
_.W.computeIsShortDR=function(v){return!(v==null||!v.watchButtonRenderer)&&!(v==null||!v.ctaRenderer)&&!!this.enableShortDR};
_.W.computeIsNewUiOrShortDr=function(v){return!!this.enableUiUpdate||this.computeIsShortDR(v)};
_.W.computeIsNewUiAndNotShortDr=function(v){return!!this.enableUiUpdate&&!this.computeIsShortDR(v)};
_.W.computeHideAvatar=function(v){return!((v==null?0:v.channelThumbnail)&&this.computeIsNewUiOrShortDr(v))};
_.W.onClick=function(v){var e,d=(e=this.data)==null?void 0:e.navigationEndpoint;if(this.enableShortDR&&d&&(_.L(d,_.p2)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(d,v,!!_.L(d,_.p2)),v.stopPropagation();else if(d&&_.L(d,_.p2))this.ytSparklesClickLocationBehavior.handleClick(d,v,!0),v.stopPropagation();else if(d){var E,T;((E=this.data)==null?0:E.navigationEndpoint)&&((T=this.data)==null?0:T.adPlaybackContextParams)&&(e=this.data.navigationEndpoint,v=this.data.adPlaybackContextParams,
e.commandMetadata&&_.L(e.commandMetadata,_.$B)&&_.L(e.commandMetadata,_.$B).url&&(e=_.QU(_.L(e.commandMetadata,_.$B).url).adurl)&&_.NVt(e)&&_.Ez(_.g3(e),{encoded_ad_playback_context:v}));this.ytComponentBehavior.resolveCommand(d)}};
_.W.computeButtonOverride=function(v){if(this.computeIsNewUiOrShortDr(v))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.W.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.W.onThumbnailContainerClick=function(v){this.onClick(v)};
_.W.computeThumbnailWidth=function(v,e){return v?e==="MASSIVE"?600:e==="BIG"?500:e==="MEDIUM"?450:420:360};
_.W.attached=function(){var v=this,e;_.N("enable_inline_muted_playback_on_web_search")&&((e=this.data)==null?0:e.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.W.detached=function(){var v;_.N("enable_inline_muted_playback_on_web_search")&&((v=this.data)==null?0:v.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15361_inlinePreviewHoverListener=Xc({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:imn})};
_.W.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$15361_inlinePreviewHoverListener)==null||gp(v)};
vW.prototype.dataChanged=vW.prototype.dataChanged;vW.prototype.onTap=vW.prototype.onTap;vW.JSC$15360_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.sz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};vW.JSC$15360_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
vW.JSC$15360_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],vW.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.c([_.M(zu),_.w("design:type",Object)],vW.prototype,"ytdActiveViewBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],vW.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.aj.YtSparklesClickLocationBehavior),_.w("design:type",Object)],vW.prototype,"ytSparklesClickLocationBehavior",void 0);
_.c([_.sg("#main-container"),_.w("design:type",HTMLElement)],vW.prototype,"mainContainer",void 0);_.c([_.f(),_.w("design:type",Object)],vW.prototype,"isInlinePreviewTriggered",void 0);_.c([_.f(),_.w("design:type",Object)],vW.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],vW.prototype,"useBiggerThumbs",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_video_display_compact_button_group_for_desktop_search")}}),
_.w("design:type",Boolean)],vW.prototype,"enableShortDR",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_vac_ui_update_for_desktop_search")}}),
_.w("design:type",Boolean)],vW.prototype,"enableUiUpdate",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],vW.prototype,"biggerThumbsStyle",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.w("design:type",Boolean)],vW.prototype,"showCta",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.w("design:type",Boolean)],vW.prototype,"isShortDr",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.w("design:type",Boolean)],vW.prototype,"isShortDrOrNewUi",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.w("design:type",Boolean)],vW.prototype,"isNewUiAndNotShortDr",void 0);_.c([_.f({computed:"computeButtonOverride(data)"}),_.w("design:type",Object)],vW.prototype,"buttonOverride",void 0);_.c([_.f({computed:"computeSecondaryButtonOverride(data)"}),_.w("design:type",Object)],vW.prototype,"secondaryButtonOverride",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],vW.prototype,"enableMonoStyle",void 0);
_.c([_.sg("ytd-thumbnail"),_.w("design:type",HTMLElement)],vW.prototype,"thumbnail",void 0);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vW.prototype,"onTap",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vW.prototype,"dataChanged",null);_.c([_.z({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],vW);
_.A(vW,"ytd-promoted-video-renderer",function(){if(g6A!==void 0)return g6A;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return g6A=v},{mode:1});var ulE;var eV=function(){var v=_.P.apply(this,arguments)||this;v.useRoundedBadge=!0;v.sitelinkIds=[];return v};
_.V(eV,_.P);_.W=eV.prototype;
_.W.configureRendererStamper=function(){return{"data.menu":{id:_.N("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]]"}}}}}};
_.W.dataChanged=function(){var v;(v=this.data)!=null&&v.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,eV.JSC$15366_CLICK_LOCATION_ID_MAP)};
_.W.onTap=function(v){var e,d=(e=this.data)==null?void 0:e.navigationCommand;d&&!_.pM(_.vg(v),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(d,v,!1)};
_.W.onSitelinkTap=function(v){var e,d,E=v==null?void 0:(e=v.model)==null?void 0:(d=e.item)==null?void 0:d.onTap;E&&this.ytSparklesClickLocationBehavior.handleClick(E,v,!1)};
_.W.configureSitelinkClickTargets=function(){var v=this,e,d,E=(e=this.data)==null?void 0:(d=e.clickLocationTargets)==null?void 0:d.find(function(T){return T.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
E&&_.IB(this.hostElement).querySelectorAll(".sitelink").forEach(function(T){_.Yv(T,"yt-simple-endpoint",!0);v.sitelinkIds.push(T.id);var S,O;(S=v.ytSparklesClickLocationBehavior)==null||(O=S.clickTargetMap)==null||O.set(T.id,E)})};
_.W.sendImpression=function(){var v,e,d=((v=this.data)==null?void 0:(e=v.impressionCommand)==null?void 0:e.loggingUrls)||[];v=_.a(d);for(e=v.next();!e.done;e=v.next())e=e.value,e.baseUrl&&c8(e.baseUrl,e.attributionSrcMode)};
_.W.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.vP.Object.defineProperties(eV.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
eV.prototype.onTap=eV.prototype.onTap;eV.prototype.dataChanged=eV.prototype.dataChanged;eV.JSC$15366_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],eV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.aj.YtSparklesClickLocationBehavior),_.w("design:type",Object)],eV.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],eV.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],eV.prototype,"showFavicon",null);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],eV.prototype,"useBiggerThumbs",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],eV.prototype,"biggerThumbsStyle",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.w("design:type",Boolean)],eV.prototype,"enableThumbnailScalingFix",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eV.prototype,"dataChanged",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],eV.prototype,"onTap",null);_.c([_.z({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],eV);
_.A(eV,"ytd-text-image-no-button-layout-renderer",function(){if(ulE!==void 0)return ulE;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ulE=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var n6J;var dj=function(){var v=_.P.apply(this,arguments)||this;v.isInlinePlaybackState=!1;v.uiUpdate=_.N("web_modern_buttons");v.hideCta=_.N("hide_cta_for_home_web_video_ads");v.noBottomMargin=!1;v.animateInTimeStamp=_.Wi("hide_cta_for_home_web_video_ads_animate_in_time");v.animateInCta=!1;v.isHovered=!1;v.enableMonoStyle=_.N("enable_default_mono_cta_migration_web_client");v.player=null;v.JSC$15373_playerEvents=new Map;v.JSC$15373_preventProgressSaveTimer=null;v.delayedCtaJobId=null;return v};
_.V(dj,_.P);_.W=dj.prototype;_.W.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]]"}}}}}};
_.W.attached=function(){this.JSC$15373_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15373_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.N("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.W.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15373_playerEvents)};
_.W.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",dj.JSC$15372_DEFAULT_CLICK_LOCATION_BEHAVIOR,dj.JSC$15372_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.W.hoverChanged=function(){var v=this;this.delayedCtaJobId&&(_.RM.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.N("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.JX(_.RM,function(){v.buttonContainer.classList.add("show-delayed-buttons")},_.Wi("delayed_cta_on_web_delay_milliseconds")))};
_.W.setPlayer=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return(e=_.YB(v.hostElement,"yt-get-inline-preview-player-action"))&&e[0]?d.yield(e[0].getPlayerPromise(),3):d.jumpTo(0);v.player=d.yieldResult;v.ytPlayerListenerBehavior.listenToPlayerEvents(v.player,v.JSC$15373_playerEvents);_.s9(d)})};
_.W.onPlaybackStart=function(){var v=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15373_preventProgressSaveTimer=_.Yj(_.RM,function(){v.JSC$15373_preventProgressSaveTimer=null},1E4))};
_.W.onVideoProgress=function(v){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&v>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.W.resetPreventProgressSaveTimer=function(){_.RM.cancelJob(this.JSC$15373_preventProgressSaveTimer);this.JSC$15373_preventProgressSaveTimer=null};
_.W.getSimpleString=function(v){return _.vv(v)};
_.W.onClick=function(v){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var e,d=(e=this.data)==null?void 0:e.navigationEndpoint,E;e=(E=this.data)==null?void 0:E.channelEndpoint;var T,S;(E=(S=_.L((T=this.data)==null?void 0:T.adCtaButton,_.BD))==null?void 0:S.command)&&_.pM(_.vg(v),this.hostElement,["call-to-action"])?_.N("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(E,v,!1):e&&_.pM(_.vg(v),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(e,v,!1):!_.pM(_.vg(v),this.hostElement,["secondary-button"])&&d&&(_.N("enable_short_dr_for_desktop_launchable")?(T=!!_.L(d,_.p2),this.isInlinePlaybackState&&T&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(d,v,T)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(d,v,!0)))}};
_.W.updateWatchEndpointStartTime=function(){var v,e;this.player&&((v=this.data)==null?0:v.inlinePlaybackEndpoint)&&((e=this.data)==null?0:e.navigationEndpoint)&&!this.JSC$15373_preventProgressSaveTimer&&(v=Math.floor(this.player.getCurrentTime()),_.L(this.data.navigationEndpoint,_.p2).startTimeSeconds=v,_.L(this.data.inlinePlaybackEndpoint,_.p2).startTimeSeconds=v)};
_.W.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.W.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.vP.Object.defineProperties(dj.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.N("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var v,e;return!((v=this.data)==null||!v.watchButton)&&!((e=this.data)==null||!e.adCtaButton)}}});
dj.prototype.hoverChanged=dj.prototype.hoverChanged;dj.prototype.dataChanged=dj.prototype.dataChanged;
dj.JSC$15372_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"]]);
dj.JSC$15372_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],dj.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.aj.YtSparklesClickLocationBehavior),_.w("design:type",Object)],dj.prototype,"ytSparklesClickLocationBehavior",void 0);
_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],dj.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],dj.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dj.prototype,"isInlinePlaybackState",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],dj.prototype,"miniMode",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dj.prototype,"uiUpdate",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dj.prototype,"hideCta",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dj.prototype,"noBottomMargin",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dj.prototype,"animateInCta",void 0);_.c([_.f({computed:"computeButtonOverride(uiUpdate)"}),_.w("design:type",Object)],dj.prototype,"buttonOverride",void 0);
_.c([_.f({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.w("design:type",Object)],dj.prototype,"secondaryButtonOverride",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dj.prototype,"isHovered",void 0);_.c([_.sg("#button-container"),_.w("design:type",HTMLElement)],dj.prototype,"buttonContainer",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],dj.prototype,"typographyBump",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("typographyBump"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],dj.prototype,"typographyBumpV2",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dj.prototype,"enableMonoStyle",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dj.prototype,"dataChanged",null);
_.c([_.$v("isHovered"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dj.prototype,"hoverChanged",null);_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],dj.prototype,"isButtonGroup",null);_.c([_.z({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],dj);
_.A(dj,"ytd-ad-inline-playback-meta-block",function(){if(n6J!==void 0)return n6J;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return n6J=v},{mode:_.bk("kevlar_poly_si_batch_j065")?1:2});var DbB;var EP=function(){var v=_.P.apply(this,arguments)||this;v.noBottomMargin=!1;v.isInlinePreviewTriggered=!1;v.JSC$15378_activeViewMeasurementDataResolver=_.gq();return v};
_.V(EP,_.P);_.W=EP.prototype;_.W.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.W.attached=function(){var v=this;this.updateInlinePreviewHoverListeners();this.JSC$15378_activeViewMeasurementDataResolver.promise.then(function(e){v.ytdActiveViewBehavior.enableActiveViewMeasurement(e,15)});
_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.W.detached=function(){this.clearInlinePreviewHoverListeners();_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15378_inlinePreviewHoverListener=Xc({mediaRenderer:this,lockupElement:this.JSC$15378_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:imn})};
_.W.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$15378_inlinePreviewHoverListener)==null||gp(v)};
_.W.onDataChanged=function(){var v;((v=this.data)==null?0:v.activeView)&&this.JSC$15378_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",EP.JSC$15377_DEFAULT_CLICK_LOCATION_BEHAVIOR,EP.JSC$15377_CLICK_LOCATION_ID_MAP);this.thumbnail&&(v=this.thumbnail.getElementsByTagName("a"),v.length>0&&(v=v.namedItem("thumbnail"))&&v.removeAttribute("href"));var e;if((e=this.data)==
null?0:e.forceImpAutoplay){var d;(d=this.JSC$15378_inlinePreviewHoverListener)==null||b_U(d)}};
_.W.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.W.onThumbnailContainerClick=function(v){if(this.data&&this.data.navigationEndpoint){var e,d=(e=this.data)==null?void 0:e.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(d,v,!!_.L(d,_.p2));v.stopPropagation()}};
_.W.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.W.impressionLog=function(){var v=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var e,d,E=(d=_.L((e=this.data)==null?void 0:e.onImpression,_.rV))==null?void 0:d.commands;E&&(E.forEach(function(T){T.clickTrackingParams&&delete T.clickTrackingParams;v.ytComponentBehavior.resolveCommand(T)}),this.data.impressionsFired=!0)}};
_.vP.Object.defineProperties(EP.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$15378_inlinePreviewHoverListener)==null?0:lT(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
EP.prototype.onTypographyBumpChanged=EP.prototype.onTypographyBumpChanged;EP.prototype.onDataChanged=EP.prototype.onDataChanged;EP.JSC$15377_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);EP.JSC$15377_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],EP.prototype,"ytComponentBehavior",void 0);_.c([_.M(zu),_.w("design:type",Object)],EP.prototype,"ytdActiveViewBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],EP.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.M(_.uV),_.w("design:type",Object)],EP.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],EP.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.aj.YtSparklesClickLocationBehavior),_.w("design:type",Object)],EP.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],EP.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],EP.prototype,"noBottomMargin",void 0);
_.c([_.f(),_.w("design:type",Object)],EP.prototype,"isInlinePreviewTriggered",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],EP.prototype,"miniMode",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],EP.prototype,"typographyBump",void 0);_.c([_.sg("ytd-thumbnail"),_.w("design:type",HTMLElement)],EP.prototype,"thumbnail",void 0);_.c([_.sg("#dismissible"),_.w("design:type",HTMLElement)],EP.prototype,"JSC$15378_dismissibleMedia",void 0);
_.c([_.sg("ytd-ad-inline-playback-meta-block"),_.w("design:type",HTMLElement)],EP.prototype,"adInlinePlaybackMetaBlock",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EP.prototype,"onDataChanged",null);_.c([_.V1("typographyBump"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EP.prototype,"onTypographyBumpChanged",null);
_.c([_.t("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],EP.prototype,"isHovered",null);_.c([_.z({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],EP);
_.A(EP,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(DbB!==void 0)return DbB;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return DbB=v},{mode:1});var Ubg;var TL=function(){var v=_.P.apply(this,arguments)||this;v.isInlinePreviewTriggered=!1;v.JSC$15381_activeViewMeasurementDataResolver=_.gq();return v};
_.V(TL,_.P);_.W=TL.prototype;_.W.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.W.attached=function(){var v=this;this.updateInlinePreviewHoverListeners();this.JSC$15381_activeViewMeasurementDataResolver.promise.then(function(e){v.ytdActiveViewBehavior.enableActiveViewMeasurement(e,15)})};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15381_inlinePreviewHoverListener=Xc({mediaRenderer:this,lockupElement:this.JSC$15381_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:imn})};
_.W.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$15381_inlinePreviewHoverListener)==null||gp(v)};
_.W.onDataChanged=function(){var v;((v=this.data)==null?0:v.activeView)&&this.JSC$15381_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",TL.JSC$15380_DEFAULT_CLICK_LOCATION_BEHAVIOR,TL.JSC$15380_CLICK_LOCATION_ID_MAP);this.thumbnail&&(v=this.thumbnail.getElementsByTagName("a"),v.length>0&&(v=v.namedItem("thumbnail"))&&v.removeAttribute("href"))};
_.W.onThumbnailContainerClick=function(v){if(this.data&&this.data.navigationEndpoint){var e,d=(e=this.data)==null?void 0:e.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(d,v,!0);v.stopPropagation()}};
_.W.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.W.impressionLog=function(){var v=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var e,d,E=(d=_.L((e=this.data)==null?void 0:e.onImpression,_.rV))==null?void 0:d.commands;E&&(E.forEach(function(T){T.clickTrackingParams&&delete T.clickTrackingParams;_.dk().resolve(_.EI).resolveCommand(T,{form:{element:v.hostElement}})}),this.data.impressionsFired=!0)}};
_.vP.Object.defineProperties(TL.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$15381_inlinePreviewHoverListener)==null?0:lT(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
TL.prototype.onDataChanged=TL.prototype.onDataChanged;TL.JSC$15380_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);TL.JSC$15380_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.c([_.M(zu),_.w("design:type",Object)],TL.prototype,"ytdActiveViewBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],TL.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],TL.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],TL.prototype,"ytdReduxBehavior",void 0);
_.c([_.M(_.aj.YtSparklesClickLocationBehavior),_.w("design:type",Object)],TL.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],TL.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],TL.prototype,"isInlinePreviewTriggered",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],TL.prototype,"miniMode",void 0);_.c([_.sg("ytd-thumbnail"),_.w("design:type",HTMLElement)],TL.prototype,"thumbnail",void 0);
_.c([_.sg("#dismissible"),_.w("design:type",HTMLElement)],TL.prototype,"JSC$15381_dismissibleMedia",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TL.prototype,"onDataChanged",null);_.c([_.t("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],TL.prototype,"isHovered",null);_.c([_.z({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],TL);
_.A(TL,"ytd-video-display-full-buttoned-renderer",function(){if(Ubg!==void 0)return Ubg;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Ubg=v},{mode:1});var eB=function(v,e,d,E){E=E===void 0?!1:E;_.dH.call(this,v);this.adsClientErrorMessage=d;this.aggressivelySample=E;this.args=[];e&&this.args.push(e)};
_.V(eB,_.dH);var pv=function(v,e,d,E){E=E===void 0?!1:E;_.dH.call(this,v);this.adsClientErrorMessage=d;this.aggressivelySample=E;this.args=[];e&&this.args.push(e)};
_.V(pv,_.dH);var pII=function(v){_.kh.call(this);var e=this;this.initializationFunction=v;this.instance=null;this.addOnDisposeCallback(function(){_.p0(e.instance);e.instance=null})};
_.V(pII,_.kh);pII.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Fc("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var wSW=function(){var v=new Map;[].forEach(function(e){v.set(e.JSC$30419_getType(),e)});
this.getters=v};new Promise(function(){});var lut=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"]]),XSM=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"}]]),vd2=function(v){this.experimentApiProvider=v;v=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=v<.1};var SV=function(v,e,d,E){_.kh.call(this);this.adsControlFlowEventListeners=e;this.adEventLogger=d;this.experimentApiProvider=E;this.adsControlFlowManagerHelper=v(this,this,this,this,this);_.Yh(this,this.adsControlFlowManagerHelper);v=_.a(e);for(e=v.next();!e.done;e=v.next())_.Yh(this,e.value)};
_.V(SV,_.kh);var e97=function(v,e,d,E){WW(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",e,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,E);v=_.a(v.adsControlFlowEventListeners);for(E=v.next();!E.done;E=v.next())e97(E.value,e,d)};
_.W=SV.prototype;_.W.onOpportunityProcessedExternallyManaged=function(v,e,d,E){WW(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",v,d,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,E)};
_.W.onSlotReceivedExternallyManaged=function(v,e){ao(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",v,e)};
_.W.onSlotEntered=function(v){if(im(this.adsControlFlowManagerHelper,v)!=null){ao(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",v);this.adsControlFlowManagerHelper.onSlotEntered(v);for(var e=_.a(this.adsControlFlowEventListeners),d=e.next();!d.done;d=e.next())d.value.onSlotEntered(v);if(im(this.adsControlFlowManagerHelper,v)!=null&&im(this.adsControlFlowManagerHelper,v).isOccupyingSlotType()&&OP(this.adsControlFlowManagerHelper,v)&&!dQc(this.adsControlFlowManagerHelper,v)){var E;Io(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",v,(E=OP(this.adsControlFlowManagerHelper,v))!=null?E:void 0);v=im(this.adsControlFlowManagerHelper,v);v.slotLifecycleStage!=="entered"&&bm(v.slot,v.slotLifecycleStage,"enterLayoutForSlot");v.slotLifecycleStage="rendering";v.registeredLayoutRenderingAdapter.startRendering(v.layout)}}};
_.W.onSlotExited=function(v){if(im(this.adsControlFlowManagerHelper,v)!=null){ao(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",v);this.adsControlFlowManagerHelper.onSlotExited(v);for(var e=_.a(this.adsControlFlowEventListeners),d=e.next();!d.done;d=e.next())d.value.onSlotExited(v);im(this.adsControlFlowManagerHelper,v)!=null&&im(this.adsControlFlowManagerHelper,v).markedForUnscheduleAfterOutboundAdapterRequests&&Ede(this,v)}};
_.W.onLayoutReceivedExternallyManaged=function(v,e,d){v.managerLayer!=="core"&&Io(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",v,e,d)};
var T_E=function(v,e,d){if(im(v.adsControlFlowManagerHelper,e)!=null){Io(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",e,d);v=_.a(v.adsControlFlowEventListeners);for(var E=v.next();!E.done;E=v.next())T_E(E.value,e,d)}};
SV.prototype.onLayoutExited=function(v,e,d){if(im(this.adsControlFlowManagerHelper,v)!=null){Io(this.adEventLogger,z2$(d),v,e);this.adsControlFlowManagerHelper.onLayoutExited(v,e);for(var E=_.a(this.adsControlFlowEventListeners),T=E.next();!T.done;T=E.next())T.value.onLayoutExited(v,e,d);(d=OP(this.adsControlFlowManagerHelper,v))&&e.layoutId===d.layoutId&&Sxi(this,v)}};
SV.prototype.disposeInternal=function(){var v=WoJ(this.adsControlFlowManagerHelper);v=_.a(v);for(var e=v.next();!e.done;e=v.next())Ede(this,e.value);_.kh.prototype.disposeInternal.call(this)};
var Ede=function(v,e){if(im(v.adsControlFlowManagerHelper,e)!=null)if(im(v.adsControlFlowManagerHelper,e).JSC$30449_isSlotExitRequested()||im(v.adsControlFlowManagerHelper,e).JSC$30449_isLayoutExitRequested())im(v.adsControlFlowManagerHelper,e).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(im(v.adsControlFlowManagerHelper,e).isOccupyingSlotType())im(v.adsControlFlowManagerHelper,e).markedForUnscheduleAfterOutboundAdapterRequests=!0,Sxi(v,e);else if(im(v.adsControlFlowManagerHelper,e).JSC$30449_isSlotFillRequested())im(v.adsControlFlowManagerHelper,
e).markedForUnscheduleAfterOutboundAdapterRequests=!0,im(v.adsControlFlowManagerHelper,e)!=null&&(ao(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",e),e=im(v.adsControlFlowManagerHelper,e),e.fulfillmentLifecycleStage="fill_cancel_requested",e.registeredFulfillmentAdapter.cancelSlotFilling());else{var d=OP(v.adsControlFlowManagerHelper,e),E;v.experimentApiProvider.get();(E=_.N("h5_enable_layout_unscheduling_events"))&&(d?avc(v,e,d):_.Fc(Error("Kh"),e,d,void 0,!1));ao(v.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",e);var T=im(v.adsControlFlowManagerHelper,e),S=e.slotEntryTrigger,O=T.registeredSlotEntryTriggerAdapters.get(S.triggerId);O&&(O.unregisterTrigger(S),T.registeredSlotEntryTriggerAdapters.delete(S.triggerId));S=_.a(e.slotFulfillmentTriggers);for(O=S.next();!O.done;O=S.next()){O=O.value;var b=T.registeredFulfillmentTriggerAdapters.get(O.triggerId);b&&(b.unregisterTrigger(O),T.registeredFulfillmentTriggerAdapters.delete(O.triggerId))}S=_.a(e.slotExpirationTriggers);
for(O=S.next();!O.done;O=S.next())if(O=O.value,b=T.registeredExpirationTriggerAdapters.get(O.triggerId))b.unregisterTrigger(O),T.registeredExpirationTriggerAdapters.delete(O.triggerId);T.hasLayout()&&(S=T.layout,YQ(T,S.layoutExitNormalTriggers),YQ(T,S.layoutExitSkipTriggers),YQ(T,S.layoutExitMuteTriggers),YQ(T,S.layoutExitUserInputSubmittedTriggers),YQ(T,S.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=v.adsControlFlowManagerHelper;im(T,e)&&(T=ibA(T,e.slotType+"_"+e.slotPhysicalPosition))&&T.delete(e.slotId);ao(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",e);v=_.a(v.adsControlFlowEventListeners);for(T=v.next();!T.done;T=v.next())T=T.value,T.onSlotUnscheduled(e),d&&!E&&avc(T,e,d)}},avc=function(v,e,d){Io(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
e,d);
Io(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",e,d);v=_.a(v.adsControlFlowEventListeners);for(var E=v.next();!E.done;E=v.next())E=E.value,d&&avc(E,e,d)},Sxi=function(v,e){if(im(v.adsControlFlowManagerHelper,e)!=null&&im(v.adsControlFlowManagerHelper,e).isOccupyingSlotType()){var d=OP(v.adsControlFlowManagerHelper,e);
if(d&&dQc(v.adsControlFlowManagerHelper,e)){if(im(v.adsControlFlowManagerHelper,e)!=null){var E=v.adEventLogger,T;var S=((T=XSM.get("abandoned"))==null?void 0:T.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Io(E,S,e,d);v=im(v.adsControlFlowManagerHelper,e);v.slotLifecycleStage!=="rendering"&&bm(v.slot,v.slotLifecycleStage,"exitLayout");v.slotLifecycleStage="rendering_stop_requested";v.registeredLayoutRenderingAdapter.stopRendering(d,"abandoned")}}else{ao(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
e);try{E=im(v.adsControlFlowManagerHelper,e);if(!E)throw new pv("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");E.slotLifecycleStage!=="enter_requested"&&E.slotLifecycleStage!=="entered"&&E.slotLifecycleStage!=="rendering"&&bm(E.slot,E.slotLifecycleStage,"exitSlot");E.slotLifecycleStage="exit_requested";if(E.registeredSlotAdapter===void 0)throw E.slotLifecycleStage="scheduled",new pv("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
E.registeredSlotAdapter.exit()}catch(O){O instanceof pv&&O.adsClientErrorMessage?(Ob0(v.adEventLogger,O.adsClientErrorMessage,e),_.Fc(O,e,void 0,void 0,O.aggressivelySample)):(Ob0(v.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",e),_.Fc(O,e))}}}};var mF=function(v,e,d,E,T,S){_.kh.call(this);this.registry=v;this.experimentApiProvider=S;this.slotMap=new Map};
_.V(mF,_.kh);var ibA=function(v,e){return(v=v.slotMap.get(e))?v:new Map},im=function(v,e){return ibA(v,e.slotType+"_"+e.slotPhysicalPosition).get(e.slotId)},WoJ=function(v){var e=[];
v.slotMap.forEach(function(d){d=_.a(d.values());for(var E=d.next();!E.done;E=d.next())e.push(E.value.slot)});
return e};
mF.prototype.onSlotEntered=function(v){v=im(this,v);v.slotLifecycleStage!=="enter_requested"&&bm(v.slot,v.slotLifecycleStage,"onSlotEntered");v.slotLifecycleStage="entered"};
var dQc=function(v,e){v=im(v,e);return v.hasLayout()&&v.isRendering()},OP=function(v,e){(v=im(v,e))?v.hasLayout()&&!v.layout&&_.Fc("Unexpected empty layout",e):_.Fc("Unexpected undefined slotState",e);
return(v==null?void 0:v.layout)||null};
mF.prototype.onSlotExited=function(v){v=im(this,v);v.slotLifecycleStage!=="exit_requested"&&bm(v.slot,v.slotLifecycleStage,"onSlotExited");v.slotLifecycleStage="scheduled"};
mF.prototype.onLayoutExited=function(v,e){v=im(this,v);v.isPrimaryLayout(e)&&(v.slotLifecycleStage!=="rendering_stop_requested"&&bm(v.slot,v.slotLifecycleStage,"onLayoutExited"),v.slotLifecycleStage="entered")};
var YQ=function(v,e){e=_.a(e);for(var d=e.next();!d.done;d=e.next()){d=d.value;var E=v.registeredLayoutExitTriggerAdapters.get(d.triggerId);E&&(E.unregisterTrigger(d),v.registeredLayoutExitTriggerAdapters.delete(d.triggerId))}},bm=function(v,e,d){_.Fc("Slot stage was "+e+" when calling method "+d,v)};var bbc=function(v){_.kh.call(this);this.deps=v;this.JSC$15431_adsControlFlowManager=IvJ(this)};
_.V(bbc,_.kh);var IvJ=function(v){var e=new SV(function(d,E,T,S){return new mF(v.deps.registry,d,E,T,S,v.deps.experimentApiProvider)},new Set(cw3(v.deps.registry).concat(v.deps.listeners)),v.deps.adEventLogger,v.deps.experimentApiProvider);
_.Yh(v,e);return e};var JU$=function(){};var Yxn=function(v,e){_.kh.call(this);this.experimentApiProvider=v;this.eventLoggingSettingsProvider=e;this.eventCount=0;this.premiumAdSeenEventLogger=GES()()};
_.V(Yxn,_.kh);Yxn.prototype.logEvent=function(v){WW(this,v)};
var ao=function(v,e,d,E){WW(v,e,void 0,void 0,void 0,d,void 0,void 0,void 0,d.adSlotLoggingData,void 0,void 0,E)},Io=function(v,e,d,E,T){WW(v,e,void 0,void 0,void 0,d,E?E:void 0,void 0,void 0,d.adSlotLoggingData,E?E.adLayoutLoggingData:void 0,void 0,T);
d=_.dk().resolve(_.eG(Vf))==null?void 0:oI();e=d==null?void 0:d.adsSeenHotConfig;d=d==null?void 0:d.adsHotConfig;(e==null?0:e.logOnAdsSeen)&&(d==null?0:d.webEnablePremiumAdsSeenLogging)&&mQg(v,E?E:void 0,T)},Ob0=function(v,e,d){WW(v,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,d,void 0,void 0,void 0,d.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:e})},WW=function(v,e,d,E,T,S,O,b,Y,q,r,h,K){K=K===void 0?0:K;
y$B(v.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"slot:",S,"layout:",O,"ping:",b,"Opportunity:",{opportunityType:d,associatedSlotId:E,slotsFromOpportunity:T,triggerBundle:Y,adSlotLoggingData:q,adLayoutLoggingData:r});try{var k=function(){v.experimentApiProvider.get();if(e!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){e||_.Fc("Empty PACF event type",S,O);var J=v.eventLoggingSettingsProvider.get();var R;(R=J.alwaysIncludeDebugData)||(J.experimentApiProvider.get(),R=
!1);J=R;R={eventType:e,eventOrder:++v.eventCount};var B={};S&&(B.slotData=AwW(J,S));if(O){var X={type:O.layoutType,controlFlowManagerLayer:lut.get(O.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J&&(X.debugData={layoutId:O.layoutId});B.layoutData=X}b&&(B.pingData={pingDispatchStatus:b.dispatchStatus,serializedAdPingMetadata:b.ping.serializedAdPingMetadata,pingIndex:b.index});Y&&(B.triggerData=H3U(Y.trigger,Y.category));d&&(B.opportunityData=Z3s(J,d,E,T));R.adClientData=B;q&&(R.serializedSlotAdServingData=
q.serializedSlotAdServingDataEntry);r&&(R.serializedAdServingData=r.serializedAdServingDataEntry);h&&(R.errorInfo=h);_.tI("adsClientStateChange",{adsClientEvent:R})}};
K&&K>0?_.LI(_.jd(),function(){return k()},K):k()}catch(J){y$B(v.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.LI(_.jd(),function(){_.Fc(J instanceof Error?J:String(J),S,O,{pacf_message:"exception during pacf logging"})})}},mQg=function(v,e,d){if(e){var E=e.adLayoutLoggingData;
_.LI(_.jd(),function(){v.premiumAdSeenEventLogger!=null&&E&&_.tI("adsSeenClientLogging",{serializedAdServingDataEntry:E.serializedAdServingDataEntry})},d!=null?d:0)}};var qxJ=function(v,e){Yxn.call(this,v,e)};
_.V(qxJ,Yxn);var r$M=function(){},y$B=function(v,e){return _.N(e)};var KoA=function(){var v=new h9I;this.JSC$15456_adsControlFlowManager=(new bbc(v)).JSC$15431_adsControlFlowManager},h9I=function(){_.kh.call(this);
var v=this;this.experimentApiProvider=new pII(function(){return new r$M});
var e=new pII(function(){return new vd2(v.experimentApiProvider)});
this.adEventLogger=new qxJ(this.experimentApiProvider,e);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.V(h9I,_.kh);var $QM=function(){},jXE,yG=function(){jXE||(jXE=new $QM);
return jXE},qh=function(v){if(!v.JSC$15467_externallyManagedSlotAdapterCallback){var e=(new KoA).JSC$15456_adsControlFlowManager;
v.JSC$15467_externallyManagedSlotAdapterCallback=e}return v.JSC$15467_externallyManagedSlotAdapterCallback},sX6=function(v,e,d){var E=e.opportunityType,T=Error("Lh");
if(E!==void 0){var S=qh(v);e97(S,E,void 0,d)}else _.Fc(T,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});S=[];if(e.adSlotAndLayoutMetadata!==void 0){e=_.a(e.adSlotAndLayoutMetadata);for(var O=e.next();!O.done;O=e.next()){var b=O.value;if(O=b.adSlotMetadata)if(S.push(O),v.onSlotReceivedExternallyManaged(O,d),b.adLayoutMetadata){b=_.a(b.adLayoutMetadata);for(var Y=b.next();!Y.done;Y=b.next())v.onLayoutReceivedExternallyManaged(O,Y.value,d)}else d>0&&_.Fc("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
E,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else d>0&&_.Fc("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+E,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else d>0&&_.Fc("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+E,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(E!==void 0)v.onOpportunityProcessedExternallyManaged(E,S,void 0,d);else _.Fc(T,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
$QM.prototype.onSlotReceivedExternallyManaged=function(v,e){v=vj(v);if(v instanceof pv)_.Fc(v,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else qh(this).onSlotReceivedExternallyManaged(v,e)};
$QM.prototype.onLayoutReceivedExternallyManaged=function(v,e,d){v=vj(v);e=FA0(e);if(v instanceof pv)_.Fc(v,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(e instanceof eB)_.Fc(e,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else qh(this).onLayoutReceivedExternallyManaged(v,e,d)};
$QM.prototype.onOpportunityProcessedExternallyManaged=function(v,e,d,E){var T=[];e=_.a(e);for(var S=e.next();!S.done;S=e.next())S=vj(S.value),S instanceof pv?_.Fc(S,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):T.push(S);qh(this).onOpportunityProcessedExternallyManaged(v,T,d,E)};
var N_J=function(v,e){e=vj(e);if(e instanceof pv)_.Fc(e,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var d=qh(v);ao(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",e);d=_.a(d.adsControlFlowEventListeners);for(var E=d.next();!E.done;E=d.next())E=im(E.value,e),E.slotLifecycleStage!=="not_scheduled"&&bm(E.slot,E.slotLifecycleStage,"onSlotScheduled"),E.slotLifecycleStage="scheduled";v=qh(v);ao(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",e);v=_.a(v.adsControlFlowEventListeners);
for(d=v.next();!d.done;d=v.next())d.value.onSlotEntered(e)}},k9e=function(v,e){e=vj(e);
if(e instanceof pv)_.Fc(e,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var d=qh(v);ao(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",e);d=_.a(d.adsControlFlowEventListeners);for(var E=d.next();!E.done;E=d.next())E.value.onSlotExited(e);v=qh(v);ao(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",e);v=_.a(v.adsControlFlowEventListeners);for(d=v.next();!d.done;d=v.next())d.value.onSlotUnscheduled(e)}},Log=function(v,e,d){e=vj(e);
d=FA0(d);if(e instanceof pv)_.Fc(e,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(d instanceof eB)_.Fc(d,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var E=qh(v);Io(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",e,d);E=_.a(E.adsControlFlowEventListeners);for(var T=E.next();!T.done;T=E.next())T.value.onLayoutScheduled(e,d);v=qh(v);Io(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",e,d);v=_.a(v.adsControlFlowEventListeners);
for(E=v.next();!E.done;E=v.next())T_E(E.value,e,d)}},rj=function(v,e,d){e=vj(e);
d=FA0(d);if(e instanceof pv)_.Fc(e,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(d instanceof eB)_.Fc(d,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var E=qh(v);Io(E.adEventLogger,z2$("normal"),e,d);E=_.a(E.adsControlFlowEventListeners);for(var T=E.next();!T.done;T=E.next())T.value.onLayoutExited(e,d,"normal");v=qh(v);v=_.a(v.adsControlFlowEventListeners);for(E=v.next();!E.done;E=v.next())avc(E.value,e,d)}};_.hh=_.l(function(v){var e=_.dC(v,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});v=Object.assign({},e);var d=e.data;e=e.customCommandResolver;var E=(delete v.data,delete v.customCommandResolver,v);v=_.Eh({visibilityCallback:function(b,Y){var q,r=(q=d().interaction)==null?void 0:q.onFirstVisible;b&&(r&&_.wC(r),E.setOnErrorHandler()&&QKL(Y))},
showOption:_.Em});e=_.lH(function(){return d().interaction},e,function(){var b;
return(b=E.listenToTapEvent)==null?void 0:b.call(E)});
var T=_.a(_.OE(!1,void 0,"nqIeMd")),S=T.next().value,O=T.next().value;T=_.rq(function(b){var Y;((Y=E.setTouchEndHandler)==null?0:Y.call(E))&&!S()&&(b.currentTarget.click(),O(!0),setTimeout(function(){O(!1)},100));
return!1});
return _.m("ad-image-view-model",{class:function(){var b,Y=[((b=d().interaction)==null?0:b.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],q;((q=E.isGridViewEnabled)==null?0:q.call(E))&&Y.push("ytwAdImageViewModelHostInGridView");return Y.join(" ")},
el:_.dq(v,e),"on:touchend":T},_.m("div",{class:"ytwAdImageViewModelHostImageContainer"},_.m(_.va,{data:function(){var b;return{sources:d().imageSources,contentMode:(b=d().imageProperties)==null?void 0:b.contentMode}},
alt:function(){var b,Y;return((b=d().interaction)==null?void 0:(Y=b.accessibility)==null?void 0:Y.label)||""},
targetHeight:E.targetHeight,targetWidth:E.targetWidth,preserveHeight:E.preserveHeight,preserveWidth:E.preserveWidth,useWidth:E.useWidth,style:function(){var b,Y;return"vertical-align: bottom;"+(((b=d().background)==null?0:b.color)?"background-color:"+_.cv((Y=d().background)==null?void 0:Y.color)+";":"")},
className:function(){return E.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var b,Y;return(Y=(b=E.setDraggable)==null?void 0:b.call(E))!=null?Y:void 0}})))},"sb");var VDu=_.l(function(v){var e=v.data,d=v.listenToTapEvent,E=function(){};
return _.m("ad-button-hover-overlay-view-model",{"on:click":_.rq(function(T){if(_.N("enable_web_home_top_landscape_image_layout_legacy_click_command")){var S,O=(S=e().interaction)==null?void 0:S.onTap;O&&_.Iq(T.currentTarget,"yt-navigate",{endpoint:_.lk(O)})}}),
class:function(){var T;return((T=e().interaction)==null?0:T.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.dq(_.Eh({visibilityCallback:function(T){var S,O=(S=e().interaction)==null?void 0:S.onFirstVisible;T&&O&&_.wC(O)},
showOption:_.Em}),_.lH(function(){return e().interaction},void 0,function(){return!_.N("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(d==null?void 0:d())}))},function(){return _.N("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.m(_.kz,{data:function(){return e().button}},{adButtonViewModel:function(T){return _.m(_.Sp,{data:T.data,
customCommandResolver:E})}}):_.m(_.kz,{data:function(){return e().button}},{adButtonViewModel:_.Sp})}())},"tb");var dp;_.aZ(_.l(function(v){var e=v.data;v=_.Eh({visibilityCallback:function(b,Y){if(b){var q;(b=(q=e().interaction)==null?void 0:q.onFirstVisible)&&_.wC(b);var r;if(q=(r=e().adLayoutData)==null?void 0:r.activeViewData)ER(Y,q),_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&TU(Y)})}else _.N("stop_av_measurement_on_detach")&&TU(Y)},
showOption:_.Em,hideOption:TS});var d=_.lH(function(){return e().interaction},void 0,function(){return!0}),E=_.a(_.OE(!1,void 0,"K1MNM")),T=E.next().value,S=E.next().value;
E=_.rq(function(){S(!0)});
var O=_.rq(function(){S(!1)});
return _.m("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.dq(v,v60,d),"on:mouseenter":E,"on:mouseleave":O},_.m("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.jM({"max-width":function(){return _.N("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.m("div",{class:function(){var b;
a:{var Y;switch((b=_.L(e().thumbnailImage,cZg))==null?void 0:(Y=b.imageProperties)==null?void 0:Y.renderingAspect){case "RENDERING_ASPECT_SQUARE":b="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":b="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}b=void 0}return b}},_.m(_.kz,{data:function(){return e().thumbnailImage}},{adImageViewModel:function(b){return _.m(_.hh,
{data:b.data,
listenToTapEvent:!0,setTouchEndHandler:_.N("enable_top_landscape_image_experiment_dom_id_web")})}})),_.m("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.m(_.y,{cond:function(){var b,Y,q;
return(b=_.L(e().thumbnailImage,cZg))==null?void 0:(Y=b.imageProperties)==null?void 0:(q=Y.overlayIcon)==null?void 0:q.iconImage},
then:function(b){return _.m(_.va,{data:b,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.m("div",{class:function(){return T()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.m(_.kz,{data:function(){return e().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(b){return _.m(VDu,
{data:b.data,
listenToTapEvent:!0})}}))),_.m("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.m(_.kz,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:function(b){return _.m(R26,{data:b.data,
listenToTapEvent:!0,setTouchEndHandler:_.N("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ub"),"compact-landscape-no-button-layout-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;v=_.Eh({visibilityCallback:function(b,Y){if(b){var q;(b=(q=e().interaction)==null?void 0:q.onFirstVisible)&&_.wC(b);var r;if(q=(r=e().adLayoutData)==null?void 0:r.activeViewData)ER(Y,q),_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&TU(Y)})}else _.N("stop_av_measurement_on_detach")&&TU(Y)},
showOption:_.Em,hideOption:TS});var d=_.Xj(_.CM),E=_.lH(function(){return e().interaction}),T={},S={},O={};
return _.m("square-image-layout-view-model",{class:_.qe("ytwSquareImageLayoutViewModelHost",(T.ytwSquareImageLayoutViewModelHostColumn=d,T)),el:_.dq(v,eqt,E)},_.m("div",{class:_.qe("ytwSquareImageLayoutViewModelHostImage",(S.ytwSquareImageLayoutViewModelHostColumnImage=d,S))},function(){return _.m(_.kz,{data:function(){return e().adImage}},{adImageViewModel:function(b){return _.m(_.hh,{data:b.data,
isGridViewEnabled:d,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.m("div",{class:_.qe("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(O.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=d,O))},_.m(_.kz,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:R26}),function(){return _.m(_.kz,{data:function(){return e().adButton}},{adButtonViewModel:function(b){var Y={};
return _.m(_.Sp,{data:b.data,className:_.qe((Y.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,Y.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=d,Y))})}})}()))},"vb"),"square-image-layout-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;var d=v.noBottomMargin;var E=v.typographyBump;v=_.Eh({visibilityCallback:function(h,K){if(h){var k;(h=(k=e().interaction)==null?void 0:k.onFirstVisible)&&_.wC(h);var J;if(k=(J=e().adLayoutData)==null?void 0:J.activeViewData)ER(K,k),_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&TU(K)})}else _.N("stop_av_measurement_on_detach")&&TU(K)},
showOption:_.Em,hideOption:TS});var T=_.lH(function(){return e().interaction},void 0,function(){return _.N("enable_web_home_top_landscape_image_layout_level_click")}),S=function(){return e().interaction};
S!==void 0&&S!==null||_.ZV(Error("Mh"));var O=function(){var h,K,k;return(h=_.L(e().thumbnailImage,cZg))==null?void 0:(K=h.background)==null?void 0:(k=K.backgroundImageSource)==null?void 0:k.imageSources};
S=_.a(_.OE(!1,void 0,"pZPLOd"));var b=S.next().value,Y=S.next().value;S=_.rq(function(){Y(!0)});
var q=_.rq(function(){Y(!1)}),r=function(){return b()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.m("top-landscape-image-layout-view-model",{class:function(){var h;return((h=e().interaction)==null?0:h.onTap)&&_.N("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.dq(v,db0,T),"on:mouseenter":S,"on:mouseleave":q},_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.m(_.y,{cond:function(){return O()&&O().length>0},
then:function(){return _.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.jM({top:"0","background-image":function(){return"url("+String(O()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.m(_.y,{cond:function(){return!!e().adButtonHoverOverlay},
then:function(){return _.m("div",{class:r},_.m(_.kz,{data:function(){return e().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:VDu}))}}),_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.m(_.kz,{data:function(){return e().thumbnailImage}},{adImageViewModel:function(h){return _.m(_.hh,{data:h.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.N("enable_web_home_top_landscape_image_layout_level_click")})}})),_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.m(_.va,{data:{sources:[{clientResource:{imageName:_.N("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.m(_.kz,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:function(h){return _.m(R26,{data:h.data,
noBottomMargin:function(){return d==null?void 0:d()},
listenToTapEvent:function(){return _.N("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return E==null?void 0:E()}})}})))},"wb"),"top-landscape-image-layout-view-model",{props:{data:_.U1,
noBottomMargin:_.U1,typographyBump:_.U1}});_.aZ(_.l(function(v){var e=v.data;var d=v.typographyBump;return _.m("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.dq(_.Eh({visibilityCallback:function(E,T){if(E){var S;(E=(S=e().interaction)==null?void 0:S.onFirstVisible)&&_.wC(E);var O;(S=(O=e().adLayoutData)==null?void 0:O.activeViewData)&&ER(T,S)}},
showOption:_.Em,hideOption:TS}))},_.m("div",null,_.m(_.kz,{data:function(){return e().videoLockup}},{lockupViewModel:function(E){return _.m(_.Y8,{data:E.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:d})}})))},"xb"),"video-display-button-group-layout-view-model",{props:{data:_.U1,
noBottomMargin:_.U1,typographyBump:_.U1}});_.aZ(_.l(function(v){var e=v.data;var d=v.className;var E=v.typographyBump;return _.m("video-display-compact-button-group-layout-view-model",{el:_.dq(_.Eh({visibilityCallback:function(T,S){if(T){var O;(T=(O=e().interaction)==null?void 0:O.onFirstVisible)&&_.wC(T);var b;(O=(b=e().adLayoutData)==null?void 0:b.activeViewData)&&ER(S,O)}},
showOption:_.Em})),class:_.qe("videoDisplayCompactButtonGroupLayoutViewModelHost",d)},_.m(_.kz,{data:function(){return e().videoLockup}},{lockupViewModel:function(T){return _.m(_.Y8,{data:T.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:E})}}))},"yb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.U1,
className:_.U1,typographyBump:_.U1}});_.aZ(_.l(function(v){var e=v.data;var d=v.className;var E=v.typographyBump;return _.m("video-display-compact-buttoned-layout-view-model",{el:_.dq(_.Eh({visibilityCallback:function(T,S){if(T){var O;(T=(O=e().interaction)==null?void 0:O.onFirstVisible)&&_.wC(T);var b;(O=(b=e().adLayoutData)==null?void 0:b.activeViewData)&&ER(S,O)}},
showOption:_.Em})),class:_.qe("videoDisplayCompactButtonedLayoutViewModelHost",d)},_.m(_.kz,{data:function(){return e().videoLockup}},{lockupViewModel:function(T){return _.m(_.Y8,{data:T.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:E})}}))},"zb"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.U1,
className:_.U1,typographyBump:_.U1}});_.aZ(_.l(function(v){var e=v.data;var d=v.className;var E=v.typographyBump;var T=function(){return e().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},S=_.Xj(_.CM);
v=_.Eh({visibilityCallback:function(q,r){if(q){var h=e();q=h.adLayoutData;var K;(h=(K=h.interaction)==null?void 0:K.onFirstVisible)&&_.wC(h);(K=q==null?void 0:q.activeViewData)&&ER(r,K)}},
showOption:_.Em});var O=_.yl(function(){return{containerType:T()&&S()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),b=_.yl(function(){return T()&&S()?"":T()?"168px":"50%"},void 0,"ikSkm"),Y=_.yl(function(){return T()&&S()?9999:void 0},void 0,"M8rucc");
return _.m("video-display-compact-layout-view-model",{el:_.dq(v),class:_.qe("videoDisplayCompactLayoutViewModelHost",d)},_.m(_.kz,{data:function(){return e().videoLockup}},{lockupViewModel:function(q){return _.m(_.Y8,{data:q.data,
containerLayoutConfig:O,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:b,thumbnailTargetWidth:Y,typographyBump:E})}}))},"Ab"),"video-display-compact-layout-view-model",{props:{data:_.U1,
className:_.U1,typographyBump:_.U1}});_.aZ(_.l(function(v){var e=v.data;var d=v.typographyBump;return _.m("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.dq(_.Eh({visibilityCallback:function(E,T){if(E){var S;(E=(S=e().interaction)==null?void 0:S.onFirstVisible)&&_.wC(E);var O;(S=(O=e().adLayoutData)==null?void 0:O.activeViewData)&&ER(T,S)}},
showOption:_.Em,hideOption:TS}))},_.m("div",null,_.m(_.kz,{data:function(){return e().videoLockup}},{lockupViewModel:function(E){return _.m(_.Y8,{data:E.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:d})}})))},"Bb"),"video-display-full-layout-view-model",{props:{data:_.U1,
noBottomMargin:_.U1,typographyBump:_.U1}});_.odc=_.l(function(v){var e=v.data;v=_.nI("ad-card-badge-view-model");return _.m("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:v},_.m(_.y,{cond:function(){return e().imageBadge},
then:function(d){return _.m(_.va,{data:d,alt:""})}}))},"Cb");var J$A=_.l(function(v){var e=v.data;var d=v.customCommandResolver;return _.m("carousel-ad-card-image-view-model",{class:function(){var E;return((E=e().interaction)==null?0:E.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.dq(_.Eh({visibilityCallback:function(E){var T,S=(T=e().interaction)==null?void 0:T.onFirstVisible;E&&S&&_.wC(S)},
showOption:_.Em}),_.lH(function(){return e().interaction},d)),
"aria-label":function(){var E,T;return(E=e().interaction)==null?void 0:(T=E.accessibility)==null?void 0:T.label}},_.m(_.kz,{data:function(){return e().adImage}},{adImageViewModel:function(E){return _.m(_.hh,{data:E.data,
customCommandResolver:d})}}),_.m("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.m(_.kz,{data:function(){return e().badge}},{adCardBadgeViewModel:_.odc})),_.m(_.Ie,{model:{color:4}}))},"Db");var G96=_.l(function(v){var e=_.a(_.OE(0,void 0,"o9Bzd")),d=e.next().value;e.next();var E=e.next().value,T=_.a(_.OE(!1,void 0,"KLdzYe"));e=T.next().value;var S=T.next().value,O;_.Jf(function(){clearTimeout(O)});
T=_.rq(function(){var q;((q=v.animate)==null?0:q.call(v))?(S(!0),O=setTimeout(function(){S(!1);b()},200)):b();
return!1});
var b=function(){E(function(q){return(q+v.numShownItems())%v.data().length})},Y={};
return _.m("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.m("div",{class:_.qe("ytwHorizontalCarouselCarouselWrapper")},_.m("div",{class:_.qe("ytwHorizontalCarouselCarouselInnerWrapper",(Y.ytwHorizontalCarouselAnimating=e,Y))},_.m(_.jI,{each:v.data,keyBy:"INDEX"},function(q,r){return _.m("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.jM({"flex-basis":function(){return"calc((100% - (8px * "+(v.numShownItems()-1)+")) / "+v.numShownItems()+")"},
order:function(){var h=r-d();h<0&&(h+=v.data().length);return h}})},v.children(q,r))}))),_.m("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":T},v.nextButton()))},"Eb");var MDB=_.l(function(v){var e=v.data;var d=v.customCommandResolver;var E=v.expansive;return _.m("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.dq(_.Eh({visibilityCallback:function(T){var S,O=(S=e().interaction)==null?void 0:S.onFirstVisible;T&&O&&_.wC(O)},
showOption:_.Em}))},_.m(G96,{data:function(){var T;return((T=e())==null?void 0:T.carouselAdCards)||[]},
nextButton:function(){return _.m(_.kz,{data:function(){return e().nextButton}},{buttonViewModel:function(T){var S=T.data;
return _.m(_.yi,{data:function(){return(E==null?0:E())?Object.assign({},S(),{style:"mono"}):S()},
className:_.N("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(T){return _.m(_.kz,{data:T},{carouselAdCardImageViewModel:function(S){return _.m(J$A,{data:S.data,customCommandResolver:d})}})}))},"Fb");var tDu=_.l(function(v){var e=v.data;var d=v.customCommandResolver;var E=v.className;var T=v.buttonClassName;var S=v.animationEntityKey;var O=v.expansive;return _.m("carousel-button-view-model",{class:_.qe("ytwCarouselButtonViewModelHost",E)},_.m(_.kz,{data:function(){return e().carousel}},{carouselAdCardCollectionViewModel:function(b){return _.m(MDB,{data:b.data,
customCommandResolver:d,expansive:O})}}),_.m(_.kz,{data:function(){return e().button}},{adButtonViewModel:function(b){var Y=b.data;
return _.m(_.Sp,{data:function(){return(O==null?0:O())?Object.assign({},Y(),{style:"AD_BUTTON_STYLE_TONAL"}):Y()},
className:T,customCommandResolver:d,animationEntityKey:S})}}))},"Gb");_.fve=_.l(function(v){var e=v.data;v=v.className;var d=_.nI("pivot-button-view-model");_.Gr(function(){var E;((E=e())==null?0:E.backgroundColor)&&d.value.setAttribute("data-background-color",String(e().backgroundColor))});
return _.m("pivot-button-view-model",{el:d,class:_.qe("ytwPivotButtonViewModelHost",v)},_.m(_.Oe,{command:function(){var E=e();E=E.onClickCommand?_.lk(E.onClickCommand):E.contentDescription?_.SU(E.contentDescription):void 0;return E},
ariaLabel:function(){return e().contentDescription}},_.m(_.y,{cond:function(){return e().thumbnail},
then:function(E){return _.m(_.va,{data:E,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.m(_.y,{cond:function(){return e().icon},
then:function(E){return _.m(_.sG,{icon:function(){return E().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Hb");_.R97=_.l(function(v){var e=v.data;var d=v.buttonShapeOverrideables;return _.m("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.m(_.kz,{data:function(){return e().buttonViewModels}},{buttonViewModel:function(E){return _.m(_.yi,{data:E.data,
buttonOverrides:d})},
likeButtonViewModel:function(E){return _.m(_.zT,{data:E.data,buttonShapeOverrideables:d})},
dislikeButtonViewModel:function(E){return _.m(_.XU,{data:E.data,buttonShapeOverrideables:d})},
toggleButtonViewModel:function(E){return _.m(_.fR,{data:E.data,buttonShapeOverrides:d})}}))},"Ib");var PJu=_.l(function(v){var e=v.avatar;var d=v.headline;var E=v.badge;var T=v.description;var S=v.expansive;v={};return _.m("yt-ad-metadata-shape",{class:_.qe("ytAdMetadataShapeHost",(v.ytAdMetadataShapeHostLarge=S,v))},_.m("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.m(_.y,{cond:e,then:function(O){return _.m(_.Gl7,{data:function(){return(S==null?0:S())?Object.assign({},O(),{size:"AD_AVATAR_SIZE_MPLUS"}):O()}})}}),_.m("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.m(_.Dh,{text:d,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.m(_.y,{cond:E,then:function(O){return _.m(_.I3,{data:function(){return(S==null?0:S())?Object.assign({},O(),{style:"AD_BADGE_STYLE_STARK"}):O()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.m("h2",{class:"ytAdMetadataShapeHostDescription"},_.m(_.Dh,{text:T,
linkInheritColor:!0})))},"Jb");var xQ6=_.l(function(v){var e=v.data;var d=v.onShow;var E=v.expansive;v=_.lH(function(){return e().interaction});
_.Gr(function(){var S,O=(S=e().animatedRenderingConfig)==null?void 0:S.delayedSecondsToVisible;if(O){var b=setTimeout(d,O*1E3);_.Jf(function(){clearTimeout(b)})}});
var T={};return _.m("reels-ad-card-buttoned-view-model",{class:_.qe(function(){var S;return((S=e().interaction)==null?0:S.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(T.ytwReelsAdCardButtonedViewModelHostExpansive=E,T)),
el:_.dq(v)},_.m(PJu,{avatar:function(){return _.L(e().avatar,HfM)},
headline:function(){return e().headline},
badge:function(){return _.L(e().adBadge,AZc)},
description:function(){return e().description},
expansive:E}),_.m(_.kz,{data:function(){return e().ctaButton}},{adButtonViewModel:function(S){var O=S.data;
return _.m(_.Sp,{data:function(){return(E==null?0:E())?Object.assign({},O(),{style:"AD_BUTTON_STYLE_FILLED"}):O()}})}}))},"Kb");var B_E=_.l(function(v){var e=v.data;v=v.expansive;var d=_.N("web_ad_metadata_clickable")?_.lH(function(){return e().interaction},void 0,function(){return _.N("web_ad_metadata_clickable")}):void 0,E={};
E=_.tX("ytwReelsAdMetadataViewModelHost",(E.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.N("web_ad_metadata_clickable"),E));return _.m("reels-ad-metadata-view-model",{class:E,el:_.dq(d)},_.m(PJu,{avatar:function(){return _.L(e().avatar,HfM)},
headline:function(){return e().headline},
badge:function(){return _.L(e().adBadge,AZc)},
description:function(){return e().description},
expansive:v}))},"Lb");var CJe={iconPosition:"icon-with-label",size:"L"},Xm7=_.l(function(v){var e=v.data;var d=v.overlayDensity;v=_.nI("reels-player-overlay-layout-view-model");var E=_.e2(d,0),T=function(){var h;return(h=e().reelsAdCardButtonedEntityKey)!=null?h:""},S=function(){return T()+"/ad_button"},O=_.Kv(ZZH,T),b=function(){var h,K;
return(K=(h=O())==null?void 0:h.value)!=null?K:!1},Y=_.Xj(E6s),q=function(){return Object.assign({},CJe,(Y()||E()===2)&&{style:"overlay-dark"})};
d={};var r={};return _.m("reels-player-overlay-layout-view-model",{class:_.qe("ytwReelsPlayerOverlayLayoutViewModelHost",(d.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!e().extension},d.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},d)),
"overlay-density":function(){return String(E())},
el:v},_.m("div",{class:_.qe("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(r.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},r))},_.m("div",{"aria-hidden":function(){return b()},
class:_.qe("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return b()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.jM({"transition-duration":function(){return aE0(e())}})},_.m(_.kz,{data:function(){return e().adMetadata}},{reelsAdMetadataViewModel:function(h){return _.m(B_E,{data:h.data,
expansive:function(){return E()===1}})}}),_.m(_.y,{cond:function(){return e().extension},
then:function(h){return _.m("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.m(_.kz,{data:h},{adButtonViewModel:function(K){return _.m(_.Sp,{data:K.data,animationEntityKey:S,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(K){return _.m(tDu,{data:K.data,animationEntityKey:S,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return E()===1}})}}))}})),_.m("div",{"aria-hidden":function(){return!b()},
class:_.qe("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return b()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.jM({"transition-duration":function(){return aE0(e())}})},_.m(_.kz,{data:function(){return e().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(h){return _.m(xQ6,{data:h.data,
onShow:function(){_.vz(_.Lv("booleanEntity",T(),{key:T(),value:!0}))},
expansive:function(){return E()===1}})}}))),_.m("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.m(_.kz,{data:function(){return e().actions}},{reelActionBarViewModel:function(h){return _.m(_.R97,{data:h.data,
buttonShapeOverrideables:q})}}),_.m(_.kz,{data:function(){return e().menu}},{buttonViewModel:function(h){return _.m(_.yi,{data:h.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},q(),{type:"tonal"})}})}}),_.m(_.kz,{data:function(){return e().pivotButton}},{pivotButtonViewModel:function(h){return _.m(_.fve,{data:h.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Mb");_.aZ(Xm7,"reels-player-overlay-layout-view-model",{props:{data:_.U1,overlayDensity:_.U1}});var K5=function(){var v=_.P.apply(this,arguments)||this;v.noBottomMargin=!1;v.overlayDensity=0;return v};
_.V(K5,_.P);_.W=K5.prototype;
_.W.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:_.N("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]]"}}}}}};
_.W.ready=function(){var v=this;jLj(function(){v.isAttached&&Dx(v.JSC$15511_storedAdSlotMetadata,v.JSC$15511_storedAdLayoutMetadata,v.adSlotMetadata,v.adLayoutMetadata)&&rj(yG(),v.JSC$15511_storedAdSlotMetadata,v.JSC$15511_storedAdLayoutMetadata)})};
_.W.attached=function(){Dx(this.JSC$15511_storedAdSlotMetadata,this.JSC$15511_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Log(yG(),this.JSC$15511_storedAdSlotMetadata,this.JSC$15511_storedAdLayoutMetadata)};
_.W.detached=function(){Dx(this.JSC$15511_storedAdSlotMetadata,this.JSC$15511_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&rj(yG(),this.JSC$15511_storedAdSlotMetadata,this.JSC$15511_storedAdLayoutMetadata)};
_.W.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.W.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15511_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15511_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15511_storedAdLayoutMetadata!==void 0&&this.JSC$15511_storedAdSlotMetadata!==void 0&&rj(yG(),this.JSC$15511_storedAdSlotMetadata,this.JSC$15511_storedAdLayoutMetadata),Log(yG(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15511_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15511_storedAdSlotMetadata=this.adSlotMetadata)};
_.vP.Object.defineProperties(K5.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.adLayoutMetadata}}});
K5.prototype.onAdMetadataChanged=K5.prototype.onAdMetadataChanged;K5.prototype.onTypographyBumpChanged=K5.prototype.onTypographyBumpChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],K5.prototype,"rendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],K5.prototype,"ytComponentBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],K5.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],K5.prototype,"noBottomMargin",void 0);_.c([_.f(),_.w("design:type",Object)],K5.prototype,"overlayDensity",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],K5.prototype,"typographyBump",void 0);_.c([_.t("data.adLayoutMetadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],K5.prototype,"adLayoutMetadata",null);_.c([_.f(),_.w("design:type",Object)],K5.prototype,"adSlotMetadata",void 0);
_.c([_.sg("ytd-video-display-full-buttoned-and-button-group-renderer"),_.w("design:type",HTMLElement)],K5.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.c([_.$v("typographyBump"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],K5.prototype,"onTypographyBumpChanged",null);_.c([_.$v("adLayoutMetadata","adSlotMetadata"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],K5.prototype,"onAdMetadataChanged",null);
_.c([_.z({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],K5);
_.A(K5,"ytd-in-feed-ad-layout-renderer",function(){if(JDA!==void 0)return JDA;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return JDA=v},
{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var z9J;var lv6;_.aZ(_.I3,"ad-badge-view-model",{props:{data:_.U1,hasDot:_.U1,customCommandResolver:_.SM,adRenderingContextType:_.SM}});_.aZ(_.Sp,"ad-button-view-model",{props:{data:_.U1,customCommandResolver:_.SM,className:_.SM,delayedClassName:_.SM,animationEntityKey:_.SM,isCompactWidth:_.SM}});var $Q=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return v};
_.V($Q,_.P);_.W=$Q.prototype;_.W.computeHasLiveDescription=function(v){return!(v==null||!v.liveDescription)};
_.W.computeHasByline=function(v){return!(v==null||!v.byline)};
_.W.computeUsesAdButtonViewModel=function(v){return!!_.L(v==null?void 0:v.cta,Zf6)};
_.W.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isCompactWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.W.onYtToggleButton=function(v){var e,d=(e=this.data)==null?void 0:e.videoReminderEntityKey;d&&this.ytdReduxBehavior.dispatch(_.Lv("upcomingEventReminderStateEntity",d,{key:d,state:v.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.W.attached=function(){this.updateChannelBanner()};
_.W.dataChanged=function(){this.updateChannelBanner()};
_.W.videoReminderStateChanged=function(){var v;this.videoReminderState&&_.L((v=this.data)==null?void 0:v.cta,_.C6)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.W.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var v=_.i2(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);v&&(v.startsWith("//")&&(v="https:"+v),this.hostElement.classList.add("channel-banner"),_.qr(this.hostElement,{"--ytvmh-channel-banner":"url("+v+")"}))}else _.N("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.W.onPlayerReady=function(){this.onIronResize()};
_.W.maybeFlushDebouncer=function(){_.N("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(v){var e;v=(e=v.getElementsByTagName("yt-attributed-string"))==null?void 0:e[0];AO$(v==null?void 0:v.polymerController)})};
_.W.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var v=_.IB(this.hostElement).querySelector("#live-description"),e;v&&((e=this.data)==null?0:e.shortLiveDescription)&&v.clientWidth<v.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
$Q.prototype.onIronResize=$Q.prototype.onIronResize;$Q.prototype.videoReminderStateChanged=$Q.prototype.videoReminderStateChanged;$Q.prototype.dataChanged=$Q.prototype.dataChanged;$Q.prototype.onYtToggleButton=$Q.prototype.onYtToggleButton;_.c([_.M(_.J9),_.w("design:type",Object)],$Q.prototype,"ironResizableBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],$Q.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],$Q.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$Q.prototype,"data",void 0);_.c([_.f({selectorArgs:["data.videoReminderEntityKey"],selector:wNS}),_.w("design:type",Object)],$Q.prototype,"videoReminderState",void 0);
_.c([_.f({reflectToAttribute:!0,value:_.N("web_modern_buttons")}),_.w("design:type",Boolean)],$Q.prototype,"rounded",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.w("design:type",Boolean)],$Q.prototype,"hasLiveDescription",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.w("design:type",Boolean)],$Q.prototype,"hasByline",void 0);
_.c([_.f({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.w("design:type",String)],$Q.prototype,"adRenderingContextType",void 0);_.c([_.f({computed:"computeUsesAdButtonViewModel(data)"}),_.w("design:type",Boolean)],$Q.prototype,"usesAdButtonViewModel",void 0);_.c([_.f({reflectToAttribute:!0,value:_.N("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.w("design:type",Boolean)],$Q.prototype,"resizableAdBannerSafariFix",void 0);
_.c([_.f({reflectToAttribute:!0,value:_.N("align_three_dot_menu_with_title_description")}),_.w("design:type",Boolean)],$Q.prototype,"menuFix",void 0);_.c([_.Nr("yt-formatted-string"),_.w("design:type",Array)],$Q.prototype,"formattedStrings",void 0);_.c([_.sg("#cta-button"),_.w("design:type",HTMLElement)],$Q.prototype,"ctaButton",void 0);_.c([_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$Q.prototype,"onYtToggleButton",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$Q.prototype,"dataChanged",null);_.c([_.$v("videoReminderState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$Q.prototype,"videoReminderStateChanged",null);_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$Q.prototype,"onIronResize",null);
_.c([_.z({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],$Q);
_.A($Q,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(lv6!==void 0)return lv6;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return lv6=v},{mode:1});var Hbg;var jV=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};v.isLocked=!1;return v};
_.V(jV,_.P);_.W=jV.prototype;_.W.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.W.onExpandedChanged=function(){this.expanded&&_.YB(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.W.onMouseOver=function(){this.maybeExpand()};
_.W.onTap=function(){this.maybeExpand()};
_.W.onExpandableTileExpanding=function(v){v!==this&&(this.expanded=!1)};
_.W.onExpandableTileLockAndCollapse=function(v){this.isLocked=!0;v!==this&&(this.expanded=!1)};
_.W.onExpandableTileUnlock=function(){this.isLocked=!1};
jV.prototype.onTap=jV.prototype.onTap;jV.prototype.onMouseOver=jV.prototype.onMouseOver;jV.prototype.onExpandedChanged=jV.prototype.onExpandedChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],jV.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],jV.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],jV.prototype,"expanded",void 0);_.c([_.V1("expanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jV.prototype,"onExpandedChanged",null);_.c([_.Kq("mouseover"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jV.prototype,"onMouseOver",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jV.prototype,"onTap",null);
_.c([_.z({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],jV);
_.A(jV,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Hbg!==void 0)return Hbg;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Hbg=v},{mode:1});var A$i;var sP=function(){var v=_.P.apply(this,arguments)||this;v.buttonOverrides={style:"overlay"};v.useYtdPlayer=_.N("use_ytd_player_for_desktop_masthead");v.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};v.playbackFinished=!1;v.JSC$15525_playerManager=null;v.JSC$15525_mastheadCounter=new RHe;return v};
_.V(sP,_.P);_.W=sP.prototype;_.W.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"}}}};
_.W.created=function(){this.JSC$15525_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15525_playerManager=new M$)};
_.W.ready=function(){var v=this;this.JSC$15525_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var e=_.IB(this.hostElement).querySelector("#player");this.useYtdPlayer?e.style.display="none":(this.ytdPlayer.style.display="none",cO6(this.JSC$15525_playerManager,e,function(){v.onPlaybackEnded()}),_.IB(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var d;
((d=v.data)==null?0:d.navigationEndpoint)&&_.Iq(v.hostElement,"yt-navigate",{endpoint:v.data.navigationEndpoint})}))};
_.W.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15525_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.W.attached=function(){var v=this;_.Q1(function(){v.maybePlayVideo()})};
_.W.maybePlayVideo=function(){var v=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$15525_playerManager.playVideo(),this.getPlayerPromise().then(function(){v.JSC$15525_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.W.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15525_playerManager.stopVideo()};
_.W.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var v,e={autoplay:0,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.ytdPlayer.loadVideoWithPlayerVars(e);this.setupYtdPlayer()}else Fb2(this.JSC$15525_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(w2I(this.JSC$15525_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.W.getPlayerPromise=function(){return this.JSC$15525_playerManager.getPlayerPromise()};
_.W.onYtToggleButton=function(v){this.useYtdPlayer?this.toggleMute(v.detail.toggled):v.detail.toggled?this.JSC$15525_playerManager.mute():this.JSC$15525_playerManager.unMute()};
_.W.onYtNavigate=function(v){var e=xwS(v.detail.endpoint),d=Bvt(this.data.clickthroughReportingData);e&&d&&(v.detail.endpoint.watchEndpoint?v.detail.tempData=d:_.Ez(e,d,30))};
_.W.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.W.onExpandedChanged=function(){this.expanded?(_.YB(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.W.onMouseOver=function(){this.maybeExpand()};
_.W.onTap=function(){this.maybeExpand()};
_.W.onExpandableTileExpanding=function(v){v!==this&&(this.stopVideo(),this.expanded=!1)};
_.W.onExpandableTileLockAndCollapse=function(v){v!==this&&(this.isLocked=!0,this.expanded=!1)};
_.W.onExpandableTileUnlock=function(){this.isLocked=!1};
_.W.lockAndCollapseExpandableTiles=function(){_.b4(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.W.unlockExpandableTiles=function(){_.b4(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.W.setupYtdPlayer=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return d.yield(v.ytdPlayer.getPlayerPromise(),2);e=d.yieldResult;e.addEventListener("onStateChange",function(E){v.onPlayerStateChange(E)});
e.addEventListener("onCueRangeExit",function(E){v.onCueRangeExit(E)});
_.s9(d)})};
_.W.onPlayerStateChange=function(v){if(v===1&&(v=this.ytdPlayer.getPlayer())){var e=v.getCurrentTime(),d,E,T=e+((E=(d=this.data)==null?void 0:d.playbackDurationMs)!=null?E:0)/1E3;v.addCueRange("playback",e,T);this.JSC$15525_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.W.onCueRangeExit=function(v){v==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.W.toggleMute=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(e.ytdPlayer.getPlayerPromise(),2);d=E.yieldResult;v?d.mute():d.unMute();_.s9(E)})};
sP.prototype.onTap=sP.prototype.onTap;sP.prototype.onMouseOver=sP.prototype.onMouseOver;sP.prototype.onExpandedChanged=sP.prototype.onExpandedChanged;sP.prototype.onYtNavigate=sP.prototype.onYtNavigate;sP.prototype.onYtToggleButton=sP.prototype.onYtToggleButton;sP.prototype.dataChanged=sP.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],sP.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sP.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],sP.prototype,"expanded",void 0);_.c([_.f(),_.w("design:type",Object)],sP.prototype,"buttonOverrides",void 0);
_.c([_.f(),_.w("design:type",Object)],sP.prototype,"useYtdPlayer",void 0);_.c([_.sg("#ytd-player"),_.w("design:type",Object)],sP.prototype,"ytdPlayer",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sP.prototype,"dataChanged",null);_.c([_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],sP.prototype,"onYtToggleButton",null);
_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],sP.prototype,"onYtNavigate",null);_.c([_.V1("expanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sP.prototype,"onExpandedChanged",null);_.c([_.Kq("mouseover"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sP.prototype,"onMouseOver",null);
_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sP.prototype,"onTap",null);_.c([_.z({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],sP);
_.A(sP,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(A$i!==void 0)return A$i;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return A$i=v},{mode:1});var ZbJ;var Nh=function(){return _.P.apply(this,arguments)||this};
_.V(Nh,_.P);Nh.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Nh.prototype.onShow=function(){var v=_.IB(this.hostElement).querySelector("#live-description"),e;v&&((e=this.data)==null?0:e.shortLiveDescription)&&v.clientWidth<v.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Nh.prototype.onYtToggleButton=function(v){var e,d=(e=this.data)==null?void 0:e.videoReminderEntityKey;d&&this.ytdReduxBehavior.dispatch(_.Lv("upcomingEventReminderStateEntity",d,{key:d,state:v.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Nh.prototype.videoReminderStateChanged=function(){var v;this.videoReminderState&&_.L((v=this.data)==null?void 0:v.cta,_.C6)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Nh.prototype.videoReminderStateChanged=Nh.prototype.videoReminderStateChanged;Nh.prototype.onYtToggleButton=Nh.prototype.onYtToggleButton;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Nh.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Nh.prototype,"data",void 0);
_.c([_.f({selectorArgs:["data.videoReminderEntityKey"],selector:wNS}),_.w("design:type",Object)],Nh.prototype,"videoReminderState",void 0);_.c([_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Nh.prototype,"onYtToggleButton",null);_.c([_.$v("videoReminderState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Nh.prototype,"videoReminderStateChanged",null);
_.c([_.z({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Nh);
_.A(Nh,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(ZbJ!==void 0)return ZbJ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ZbJ=v},{mode:_.bk("kevlar_poly_si_batch_j065")?1:2});var c$7;var kQ=function(){var v=_.P.apply(this,arguments)||this;v.useYtdPlayer=_.N("use_ytd_player_for_desktop_masthead");v.buttonOverrides={style:"overlay"};v.JSC$15533_playerManager=null;v.JSC$15533_mastheadCounter=new RHe;v.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return v};
_.V(kQ,_.P);_.W=kQ.prototype;_.W.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"}}}};
_.W.created=function(){this.JSC$15533_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15533_playerManager=new M$)};
_.W.ready=function(){var v=this;this.JSC$15533_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var e;(e=this.embeddedPlayer)==null||e.remove()}else{var d;(d=this.ytdPlayer)==null||d.remove();cO6(this.JSC$15533_playerManager,this.embeddedPlayer,function(){v.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){v.data&&v.data.navigationEndpoint&&_.Iq(v.hostElement,"yt-navigate",{endpoint:v.data.navigationEndpoint})})}};
_.W.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15533_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.W.dataChanged=function(){var v=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var e=!this.data.disableAutoPlayback,d,E={autoplay:e,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((d=this.data.playbackStartMs)!=null?d:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(e?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(E);this.setupYtdPlayer()}else Fb2(this.JSC$15533_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(w2I(this.JSC$15533_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15533_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.b4(v.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");v.JSC$15533_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.W.getPlayerPromise=function(){return this.JSC$15533_playerManager.getPlayerPromise()};
_.W.onYtToggleButton=function(v){this.useYtdPlayer?this.toggleMute(v.detail.toggled):v.detail.toggled?this.JSC$15533_playerManager.mute():this.JSC$15533_playerManager.unMute()};
_.W.onYtNavigate=function(v){var e=xwS(v.detail.endpoint),d=Bvt(this.data.clickthroughReportingData);e&&d&&(v.detail.endpoint.watchEndpoint?v.detail.tempData=d:_.Ez(e,d,30))};
_.W.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15533_playerManager.stopVideo()};
_.W.setupYtdPlayer=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return d.yield(v.ytdPlayer.getPlayerPromise(),2);e=d.yieldResult;e.addEventListener("onStateChange",function(E){v.onPlayerStateChange(E)});
e.addEventListener("onCueRangeExit",function(E){v.onCueRangeExit(E)});
_.s9(d)})};
_.W.onPlayerStateChange=function(v){if(v===1&&(v=this.ytdPlayer.getPlayer())){var e=v.getCurrentTime(),d,E,T=e+((E=(d=this.data)==null?void 0:d.playbackDurationMs)!=null?E:0)/1E3;v.addCueRange("playback",e,T);_.b4(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15533_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.W.onCueRangeExit=function(v){v==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.W.toggleMute=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(e.ytdPlayer.getPlayerPromise(),2);d=E.yieldResult;v?d.mute():d.unMute();_.s9(E)})};
_.vP.Object.defineProperties(kQ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var v,e;if(!((v=this.data)==null?0:(e=v.accessibilityData)==null?0:e.label))return"Ad primary link";var d,E;return _.sz("AD_TITLE",{title:(d=this.data)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label})}}});
kQ.prototype.onYtMastheadHidden=kQ.prototype.onYtMastheadHidden;kQ.prototype.onYtNavigate=kQ.prototype.onYtNavigate;kQ.prototype.onYtToggleButton=kQ.prototype.onYtToggleButton;kQ.prototype.dataChanged=kQ.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],kQ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kQ.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],kQ.prototype,"useYtdPlayer",void 0);_.c([_.sg("ytd-toggle-button-renderer"),_.w("design:type",Object)],kQ.prototype,"muteButton",void 0);_.c([_.f(),_.w("design:type",Object)],kQ.prototype,"buttonOverrides",void 0);
_.c([_.t("data.accessibilityData.label"),_.w("design:type",String),_.w("design:paramtypes",[])],kQ.prototype,"titleAriaLabel",null);_.c([_.sg("#replay-button"),_.w("design:type",Object)],kQ.prototype,"replayButton",void 0);_.c([_.sg("#player-container"),_.w("design:type",Object)],kQ.prototype,"playerContainer",void 0);_.c([_.sg("#player"),_.w("design:type",Object)],kQ.prototype,"embeddedPlayer",void 0);_.c([_.sg("#ytd-player"),_.w("design:type",Object)],kQ.prototype,"ytdPlayer",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kQ.prototype,"dataChanged",null);_.c([_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],kQ.prototype,"onYtToggleButton",null);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],kQ.prototype,"onYtNavigate",null);
_.c([_.Kq("yt-masthead-hidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kQ.prototype,"onYtMastheadHidden",null);_.c([_.z({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],kQ);
_.A(kQ,"ytd-video-masthead-ad-primary-video-renderer",function(){if(c$7!==void 0)return c$7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return c$7=v},{mode:2});var wmn;var L5=function(){var v=_.P.apply(this,arguments)||this;v.collapsed=!1;v.impressionResolver=_.gq();v.JSC$15537_activeViewMeasurementDataResolver=_.gq();v.actionMap={"yt-mute-ad-action":"handleMuteAd"};return v};
_.V(L5,_.P);_.W=L5.prototype;_.W.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"}}}};
_.W.ready=function(){var v=this;_.IB(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){v.expandAd()});
this.hostElement.addEventListener("yt-action",function(e){if(e.detail.actionName==="yt-service-request"){var d=e.detail.args[1];d.videoMastheadAdMuteCommand&&(v.collapseAd(d.videoMastheadAdMuteCommand.encryptedMastheadId),e.stopPropagation())}})};
_.W.attached=function(){var v=this;_.Q1(function(){v.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(e){if(!v.collapsed){e=_.a(e);for(var d=e.next();!d.done;d=e.next())d=d.value,c8(d.baseUrl,d.attributionSrcMode);v.data.impressionCommand=void 0}});
this.JSC$15537_activeViewMeasurementDataResolver.promise.then(function(e){v.ytdActiveViewBehavior.enableActiveViewMeasurement(e,15)});
_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.W.dataChanged=function(){var v;((v=this.data.impressionCommand)==null?0:v.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var e;((e=this.data)==null?0:e.activeView)&&this.JSC$15537_activeViewMeasurementDataResolver.resolve(this.data.activeView);(v=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(v.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.W.computeWidescreen=function(v){var e;return!!(v&&((e=_.L(v,BIB))==null?0:e.isWidescreen))};
_.W.computeExpandable=function(v){return!!(v&&v.length>0)};
_.W.onIronResize=function(){if(this.expandable){var v=_.IB(this.hostElement).querySelector("#expandable-tile-container :first-child");v&&!v.expanded&&(v.expanded=!0)}};
_.W.handleMuteAd=function(){this.collapseAd(null)};
_.W.restoreCollapsedState=function(v){this.collapsed=_.LB().get("HIDDEN_MASTHEAD_ID")===v};
_.W.collapseAd=function(v){if(v){var e=_.LB();e.set("HIDDEN_MASTHEAD_ID",v);e.save()}(v=_.IB(this.hostElement).querySelector("#video"))&&_.Iq(v,"yt-masthead-hidden");this.collapsed=!0};
_.W.expandAd=function(){var v=_.LB();v.set("HIDDEN_MASTHEAD_ID",!1);v.save();location.reload()};
_.W.detached=function(){_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
L5.prototype.onIronResize=L5.prototype.onIronResize;L5.prototype.dataChanged=L5.prototype.dataChanged;_.c([_.M(_.J9),_.w("design:type",Object)],L5.prototype,"ironResizableBehavior",void 0);_.c([_.M(zu),_.w("design:type",Object)],L5.prototype,"ytdActiveViewBehavior",void 0);_.c([_.M(_.ck),_.w("design:type",Object)],L5.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],L5.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],L5.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.w("design:type",Boolean)],L5.prototype,"widescreen",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.w("design:type",Boolean)],L5.prototype,"expandable",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],L5.prototype,"collapsed",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L5.prototype,"dataChanged",null);
_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L5.prototype,"onIronResize",null);_.c([_.z({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],L5);
_.A(L5,"ytd-video-masthead-ad-v3-renderer",function(){if(wmn!==void 0)return wmn;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return wmn=v},{mode:2});var VG=function(){return _.P.apply(this,arguments)||this};
_.V(VG,_.P);_.W=VG.prototype;_.W.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.W.ready=function(){var v=this;jLj(function(){v.isAttached&&Dx(v.JSC$15542_storedAdSlotMetadata,v.JSC$15542_storedAdLayoutMetadata,v.adSlotMetadata,v.adLayoutMetadata)&&rj(yG(),v.JSC$15542_storedAdSlotMetadata,v.JSC$15542_storedAdLayoutMetadata)})};
_.W.attached=function(){Dx(this.JSC$15542_storedAdSlotMetadata,this.JSC$15542_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Log(yG(),this.JSC$15542_storedAdSlotMetadata,this.JSC$15542_storedAdLayoutMetadata)};
_.W.detached=function(){Dx(this.JSC$15542_storedAdSlotMetadata,this.JSC$15542_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&rj(yG(),this.JSC$15542_storedAdSlotMetadata,this.JSC$15542_storedAdLayoutMetadata)};
_.W.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15542_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15542_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15542_storedAdLayoutMetadata!==void 0&&this.JSC$15542_storedAdSlotMetadata!==void 0&&rj(yG(),this.JSC$15542_storedAdSlotMetadata,this.JSC$15542_storedAdLayoutMetadata),Log(yG(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15542_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15542_storedAdSlotMetadata=this.adSlotMetadata)};
_.vP.Object.defineProperties(VG.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.adLayoutMetadata}}});
VG.prototype.onAdMetadataChanged=VG.prototype.onAdMetadataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],VG.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],VG.prototype,"data",void 0);_.c([_.t("data.adLayoutMetadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],VG.prototype,"adLayoutMetadata",null);
_.c([_.f(),_.w("design:type",Object)],VG.prototype,"adSlotMetadata",void 0);_.c([_.$v("adLayoutMetadata","adSlotMetadata"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VG.prototype,"onAdMetadataChanged",null);_.c([_.z({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],VG);
_.A(VG,"ytd-page-top-ad-layout-renderer",function(){if(z9J!==void 0)return z9J;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return z9J=
v},{mode:_.bk("kevlar_poly_si_batch_j070")?1:2});var FoM;var oo=function(){var v=_.P.apply(this,arguments)||this;v.noBottomMargin=!1;v.overlayDensity=0;v.typographyBump=!1;return v};
_.V(oo,_.P);_.W=oo.prototype;
_.W.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]]"}}}}}};
_.W.ready=function(){var v=this;jLj(function(){v.isAttached&&v.adSlotMetadata&&k9e(yG(),v.adSlotMetadata)})};
_.W.attached=function(){if(this.adSlotMetadata){var v;if(this.adSlotMetadata===((v=this.data)==null?void 0:v.adSlotMetadata))N_J(yG(),this.adSlotMetadata);else{var e;_.xf(Error("Nh`"+this.adSlotMetadata+"`"+((e=this.data)==null?void 0:e.adSlotMetadata)))}}};
_.W.detached=function(){this.adSlotMetadata&&k9e(yG(),this.adSlotMetadata)};
_.W.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.W.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&k9e(yG(),this.adSlotMetadata),N_J(yG(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.vP.Object.defineProperties(oo.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var v,e,d=_.L((v=this.data)==null?void 0:(e=v.fulfillmentContent)==null?void 0:e.fulfilledLayout,_.XB6),E;return(v=(E=_.L(d==null?void 0:d.renderingContent,C_0))==null?void 0:E.layout)?v.toLowerCase().replace(/_/g,"-"):""}}});
oo.prototype.onAdSlotMetadataChanged=oo.prototype.onAdSlotMetadataChanged;oo.prototype.onTypographyBumpChanged=oo.prototype.onTypographyBumpChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],oo.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oo.prototype,"rendererBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],oo.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],oo.prototype,"noBottomMargin",void 0);_.c([_.f(),_.w("design:type",Object)],oo.prototype,"overlayDensity",void 0);_.c([_.f(),_.w("design:type",Object)],oo.prototype,"typographyBump",void 0);_.c([_.sg("ytd-in-feed-ad-layout-renderer"),_.w("design:type",HTMLElement)],oo.prototype,"inFeedAdLayoutRenderer",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",String),_.w("design:paramtypes",[])],oo.prototype,"layout",null);_.c([_.$v("typographyBump"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oo.prototype,"onTypographyBumpChanged",null);_.c([_.$v("data.adSlotMetadata"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oo.prototype,"onAdSlotMetadataChanged",null);
_.c([_.z({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],oo);
_.A(oo,"ytd-ad-slot-renderer",function(){if(FoM!==void 0)return FoM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return FoM=v},{mode:_.bk("kevlar_poly_si_batch_j077")?
1:2});var QXg;var Jh=function(){return _.P.apply(this,arguments)||this};
_.V(Jh,_.P);_.W=Jh.prototype;_.W.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"}}}};
_.W.maybeComputeHref=function(){return null};
_.W.onTap=function(){};
_.W.onThumbnailContainerClick=function(v){this.onClick(v)};
_.W.onClick=function(v){var e,d=(e=this.data)==null?void 0:e.navigationEndpoint;d&&_.L(d,_.p2)&&(this.ytSparklesClickLocationBehavior.handleClick(d,v,!1),v.stopPropagation())};
_.W.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var v=_.a(this.data.impressionUrls),e=v.next();!e.done;e=v.next())e=e.value,j57(e,NCt(e));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Jh.JSC$15550_DEFAULT_CLICK_LOCATION_BEHAVIOR,Jh.JSC$15550_CLICK_LOCATION_ID_MAP);this.thumbnail&&(v=this.thumbnail.getElementsByTagName("a"),v.length>0&&(v=v.namedItem("thumbnail"))&&
v.removeAttribute("href"))}};
_.W.attached=function(){var v=this;_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&v.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.W.detached=function(){_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vP.Object.defineProperties(Jh.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Jh.prototype.dataChanged=Jh.prototype.dataChanged;Jh.prototype.onTap=Jh.prototype.onTap;Jh.JSC$15550_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Jh.JSC$15550_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Jh.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.c([_.M(zu),_.w("design:type",Object)],Jh.prototype,"ytdActiveViewBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Jh.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Jh.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.aj.YtSparklesClickLocationBehavior),_.w("design:type",Object)],Jh.prototype,"ytSparklesClickLocationBehavior",void 0);
_.c([_.f({selector:_.CM}),_.w("design:type",Object)],Jh.prototype,"isGridViewEnabled",void 0);_.c([_.t("isGridViewEnabled"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Jh.prototype,"watchFeedBigThumbs",null);_.c([_.t("isGridViewEnabled"),_.f({reflectToAttribute:!0}),_.w("design:type",String),_.w("design:paramtypes",[])],Jh.prototype,"thumbnailWidth",null);_.c([_.f(),_.w("design:type",Object)],Jh.prototype,"data",void 0);
_.c([_.sg("ytd-thumbnail"),_.w("design:type",HTMLElement)],Jh.prototype,"thumbnail",void 0);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jh.prototype,"onTap",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jh.prototype,"dataChanged",null);_.c([_.z({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Jh);
_.A(Jh,"ytd-compact-promoted-video-renderer",function(){if(QXg!==void 0)return QXg;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return QXg=v},{mode:1});var gd7;_.RZ("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var GL=function(){return _.P.apply(this,arguments)||this};
_.V(GL,_.P);GL.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],GL.prototype,"data",void 0);_.c([_.z({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],GL);
_.A(GL,"ytd-search-pyv-renderer",function(){if(gd7!==void 0)return gd7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return gd7=v},{mode:1});var u9A;_.RZ("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Mh=function(){var v=_.P.apply(this,arguments)||this;v.roundedContainer=!0;v.JSC$15558_handleOpenPostCommentDialogActionAfterStamp=!1;v.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return v};
_.V(Mh,_.P);_.W=Mh.prototype;
_.W.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}}};
_.W.onStampFinished=function(){this.JSC$15558_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.W.handleSignalActionOpenPostCommentDialogAction=function(){var v=_.IB(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");v?v.openDialog():this.JSC$15558_handleOpenPostCommentDialogActionAfterStamp=!0};
_.W.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.W.computeHideBorder=function(){return this.isInEngagementPanel};
_.W.computeIsCompact=function(){return this.isInEngagementPanel};
_.W.computeUsesCompactLockup=function(v){return v==="BACKSTAGE_SURFACE_TYPE_HOME"||v==="BACKSTAGE_SURFACE_TYPE_SEARCH"||v==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||v==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||v==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||v==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.W.computeUsesFullLockup=function(){var v,e=(v=this.data)==null?void 0:v.post,d;v=(d=_.L(e,urB))==null?void 0:d.surface;var E;d=(E=_.L(e,UFJ))==null?void 0:E.originalPost;var T;if(E=v||((T=_.L(d,urB))==null?void 0:T.surface))return!this.computeUsesCompactLockup(E)&&this.useUpdatedRepostUi;var S;return((S=_.L(e,UFJ))==null?void 0:S.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.vP.Object.defineProperties(Mh.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var v,e;return((e=_.L((v=this.data)==null?void 0:v.post,urB))==null?void 0:e.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.useUpdatedRepostUi}}});
Mh.prototype.onYtCommentModerationPanelEmpty=Mh.prototype.onYtCommentModerationPanelEmpty;Mh.prototype.onStampFinished=Mh.prototype.onStampFinished;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Mh.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Mh.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Mh.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Mh.prototype,"roundedContainer",void 0);_.c([_.f({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Mh.prototype,"hideBorder",void 0);_.c([_.f({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Mh.prototype,"isCompact",void 0);
_.c([_.f({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Mh.prototype,"usesFullLockup",void 0);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Mh.prototype,"onStampFinished",null);
_.c([_.Kq("ytd-comment-moderation-panel-empty"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Mh.prototype,"onYtCommentModerationPanelEmpty",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Mh.prototype,"isInEngagementPanel",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Mh.prototype,"useUpdatedRepostUi",null);
_.c([_.z({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Mh);
_.A(Mh,"ytd-backstage-post-thread-renderer",function(){if(u9A!==void 0)return u9A;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return u9A=v},{mode:1});var ndu;var th=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(th,_.P);th.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
th.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var v=this.data.thumbnail.thumbnails;this.isDarkTheme&&(v=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(v=_.i2(v,24,void 0,"height"))?v:void 0}};
th.prototype.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
th.prototype.computeHasText=function(){var v;return!((v=this.data)==null||!v.text)};
_.vP.Object.defineProperties(th.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.xm(this.bannerImageUrl))+'");'}}});
th.prototype.computeHasText=th.prototype.computeHasText;th.prototype.computeBannerImageUrl=th.prototype.computeBannerImageUrl;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],th.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],th.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],th.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],th.prototype,"isDarkTheme",void 0);_.c([_.f(),_.w("design:type",String)],th.prototype,"bannerImageUrl",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.w("design:type",Boolean)],th.prototype,"hasText",void 0);_.c([_.$v("data","isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],th.prototype,"computeBannerImageUrl",null);
_.c([_.$v("data.text"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],th.prototype,"computeHasText",null);_.c([_.t("bannerImageUrl"),_.w("design:type",Object),_.w("design:paramtypes",[])],th.prototype,"bannerStyle",null);_.c([_.z({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],th);
_.A(th,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(ndu!==void 0)return ndu;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ndu=v},{mode:1});var DQu;var f5=function(){return _.P.apply(this,arguments)||this};
_.V(f5,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],f5.prototype,"data",void 0);_.c([_.z({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],f5);
_.A(f5,"ytd-backstage-zero-state-renderer",function(){if(DQu!==void 0)return DQu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return DQu=v},{mode:1});var UQi;var Xg=function(){return _.P.apply(this,arguments)||this};
_.V(Xg,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Xg.prototype,"data",void 0);_.c([_.f({computed:"computeIcon_(data.icon)"}),_.w("design:type",String)],Xg.prototype,"icon",void 0);_.c([_.z({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Xg);
_.A(Xg,"ytd-post-filter-zero-state-renderer",function(){if(UQi!==void 0)return UQi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return UQi=v},{mode:1});var pmJ;var vtE={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},zL=function(){return _.P.apply(this,arguments)||this};
_.V(zL,_.P);zL.prototype.configureRendererStamper=function(){return vtE};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],zL.prototype,"rendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],zL.prototype,"data",void 0);_.c([_.f({computed:"computeIcon_(data.icon)"}),_.w("design:type",String)],zL.prototype,"icon",void 0);_.c([_.z({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],zL);
_.A(zL,"ytd-post-scheduling-zero-state-renderer",function(){if(pmJ!==void 0)return pmJ;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return pmJ=v},{mode:1});var eEi;var lm=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return v};
_.V(lm,_.P);lm.prototype.onTabsActivate=function(v){this.data&&this.data.tabs&&_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[v.detail.selected].navigationEndpoint})};
lm.prototype.shouldShowTotalCount=function(v){return v&&v.totalCount!==void 0};
lm.prototype.handleUpdatePostsTotalCountAction=function(v){var e=this.get(["data.tabs",1,"totalCount"]),d=this.get("updatePostsTotalCountAction.updateType",v);v=this.get("updatePostsTotalCountAction.number",v);e!==void 0&&d!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&v&&(d==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(e)+v):d==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(e)-v))};
_.vP.Object.defineProperties(lm.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var v=0,e=this.data.tabs.length;v<e;v++)if(this.data.tabs[v].selected)return v;return 0}}});
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],lm.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],lm.prototype,"rendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],lm.prototype,"data",void 0);_.c([_.t("data.tabs"),_.w("design:type",Number),_.w("design:paramtypes",[])],lm.prototype,"selected",null);_.c([_.z({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],lm);
_.A(lm,"ytd-post-stream-filter-renderer",function(){if(eEi!==void 0)return eEi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return eEi=v},{mode:1});var dc7;var HW=function(){return _.P.apply(this,arguments)||this};
_.V(HW,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],HW.prototype,"kevlarBehaviors",void 0);_.c([_.f(),_.w("design:type",Object)],HW.prototype,"data",void 0);_.c([_.z({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],HW);
_.A(HW,"ytd-channel-age-gate-renderer",function(){if(dc7!==void 0)return dc7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return dc7=v},{mode:1});var EtB;_.RZ("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Ah=function(){var v=_.P.apply(this,arguments)||this;v.data=null;return v};
_.V(Ah,_.P);Ah.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vP.Object.defineProperties(Ah.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((v=this.data)==null?0:(e=v.title)==null?0:(d=e.runs)==null?0:d.length)?147:160}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ah.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ah.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],Ah.prototype,"imageSizePx",null);_.c([_.z({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Ah);
_.A(Ah,"ytd-channel-owner-empty-state-renderer",function(){if(EtB!==void 0)return EtB;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return EtB=v},{mode:1});var TUA;var SBI;var ZJ=function(){var v=_.P.apply(this,arguments)||this;v.boundSubmitSearch=function(){v.submitSearch()};
v.boundClearSearch=function(){v.clearSearch()};
return v};
_.V(ZJ,_.P);_.W=ZJ.prototype;_.W.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]]"}}}}}};
_.W.toggleClearButton=function(){this.hideClearButton=Kls||!this.input.value};
_.W.submitOnEnterKeyUp=function(v){v.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.W.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.W.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.W.submit=function(){_.Iq(this.hostElement,"search-query-changed",this.input.value)};
ZJ.prototype.toggleClearButton=ZJ.prototype.toggleClearButton;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ZJ.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ZJ.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],ZJ.prototype,"hideClearButton",void 0);_.c([_.f(),_.w("design:type",Object)],ZJ.prototype,"boundSubmitSearch",void 0);_.c([_.f(),_.w("design:type",Object)],ZJ.prototype,"boundClearSearch",void 0);_.c([_.sg("#input"),_.w("design:type",Object)],ZJ.prototype,"input",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZJ.prototype,"toggleClearButton",null);
_.c([_.z({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],ZJ);
_.A(ZJ,"ytd-channel-switcher-search-box-renderer",function(){if(SBI!==void 0)return SBI;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return SBI=v},{mode:1});var WyB;var cW=function(){var v=_.P.apply(this,arguments)||this;v.boundSubmit=function(){v.submit()};
return v};
_.V(cW,_.P);_.W=cW.prototype;_.W.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"}}}}};
_.W.ready=function(){var v=this;this.form.addEventListener("submit",function(e){return v.onSubmit(e)})};
_.W.onSubmit=function(v){v.preventDefault();return!1};
_.W.toggleClearButton=function(){this.hideClearButton=Kls||!this.input.value};
_.W.submitOnEnterKeyUp=function(v){v.keyCode===13&&this.submit()};
_.W.submit=function(){var v=this.data.endpoint,e=(0,_.f0.unsafeClone)(v);_.L(e,_.Lo)?_.L(e,_.Lo).query=this.input.value:_.L(e,_.Vd)&&(_.L(e,_.Vd).query=this.input.value);var d=_.L(e.commandMetadata,_.$B);(d==null?0:d.url)?(d.url=_.zN(d.url,"query",this.input.value),_.Iq(this.hostElement,"yt-navigate",{endpoint:e})):_.L(e,tjA)?(_.L(e,tjA).channelSwitcherQuery=this.input.value,_.dk().resolve(_.EI).resolveCommand(e,{form:{element:this.hostElement}})):(v=Error("Oh`"+JSON.stringify(v)),_.RI(v))};
_.W.getUrl=function(v){return this.get("commandMetadata.webCommandMetadata.url",v)};
cW.prototype.toggleClearButton=cW.prototype.toggleClearButton;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],cW.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],cW.prototype,"hideClearButton",void 0);
_.c([_.f(),_.w("design:type",Object)],cW.prototype,"boundSubmit",void 0);_.c([_.sg("#form"),_.w("design:type",HTMLFormElement)],cW.prototype,"form",void 0);_.c([_.sg("#input"),_.w("design:type",Object)],cW.prototype,"input",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cW.prototype,"toggleClearButton",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],cW);
_.A(cW,"ytd-search-box-renderer",function(){if(WyB!==void 0)return WyB;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return WyB=v},{mode:2});var wj=function(){var v=_.P.apply(this,arguments)||this;v.showSearchBox=!0;return v};
_.V(wj,_.P);wj.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wj.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wj.prototype,"showSearchBox",void 0);_.c([_.z({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],wj);
_.A(wj,"ytd-channel-switcher-header-renderer",function(){if(TUA!==void 0)return TUA;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return TUA=v},{mode:1});var aaM;var in6;var Fg=function(){var v=_.P.apply(this,arguments)||this;v.isDisplayed=!0;return v};
_.V(Fg,_.P);_.W=Fg.prototype;_.W.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.dataChanged=function(){this.isDisplayed=!0};
_.W.computeType=function(v){return v||"UNKNOWN"};
_.W.onYtServiceRequestCompleted=function(v){v.stopPropagation();this.isDisplayed=!1};
_.W.onClose=function(){this.isDisplayed=!1};
Fg.prototype.onYtServiceRequestCompleted=Fg.prototype.onYtServiceRequestCompleted;Fg.prototype.dataChanged=Fg.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Fg.prototype,"data",void 0);
_.c([_.f({computed:"computeType(data.type)",reflectToAttribute:!0}),_.w("design:type",String)],Fg.prototype,"type",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Fg.prototype,"isDisplayed",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fg.prototype,"dataChanged",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Fg.prototype,"onYtServiceRequestCompleted",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Fg);
_.A(Fg,"ytd-alert-with-button-renderer",function(){if(in6!==void 0)return in6;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return in6=v},{mode:1});var QG=function(){var v=_.P.apply(this,arguments)||this;v.noResult=!1;v.enableAlertBanner=!1;v.dismissedAlertBanner=!1;v.hideCreateChannelButton=!1;v.boundDismissAlertBanner=function(){v.dismissAlertBanner()};
v.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return v};
_.V(QG,_.P);_.W=QG.prototype;_.W.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.W.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.W.updateChannelSwitcherAction=function(v){var e;v=(e=_.L(v,keM))==null?void 0:e.page;_.L(v,NG6)!==void 0&&(this.data=_.L(v,NG6))};
_.W.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]]"}}}}}};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.W.searchQueryChanged=function(v,e){if(this.data&&this.data.contents&&this.data.contents.length){v=[];var d=[];this.hideCreateChannelButton=this.noResult=!1;for(var E=document.querySelectorAll("ytd-account-item-renderer"),T=_.a(E),S=T.next();!S.done;S=T.next())S=S.value,d.push(S),S.style.display="block";this.resetRightBorder(d);if(e){this.hideCreateChannelButton=!0;for(d=1;d<this.data.contents.length;d++)if(S=this.data.contents[d],_.L(S,JZn)){var O=void 0,b=void 0;T=(O=_.L(S,JZn))==null?void 0:(b=
O.accountName)==null?void 0:b.simpleText;b=O=void 0;S=(O=_.L(S,JZn))==null?void 0:(b=O.channelHandle)==null?void 0:b.simpleText;(O=E[d-1])&&T&&_.YS(T,e)?v.push(O):_.N("enable_handle_search_on_channel_switcher")&&O&&S&&_.YS(S.toString(),e.toString())?v.push(O):O.style.display="none"}v.length===0&&(this.noResult=!0);this.resetRightBorder(v)}}};
_.W.resetRightBorder=function(v){for(var e=0;e<v.length;e++)v[e].style.borderRight=!this.hideCreateChannelButton&&(e+2)%3===0||this.hideCreateChannelButton&&(e+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.W.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.W.setShowSearchBox=function(v){if(v&&v.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var e=0;e<v.contents.length;e++)_.L(v.contents[e],_.uw)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.W.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.vP.Object.defineProperties(QG.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.contents)}}});
QG.prototype.onContinuationItemsUpdated=QG.prototype.onContinuationItemsUpdated;QG.prototype.searchQueryChanged=QG.prototype.searchQueryChanged;QG.prototype.onDataChanged=QG.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],QG.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],QG.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.FL),_.w("design:type",Object)],QG.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],QG.prototype,"data",void 0);_.c([_.sg("ytd-channel-switcher-header-renderer"),_.w("design:type",Object)],QG.prototype,"channelSwitcherHeaderRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],QG.prototype,"noResult",void 0);
_.c([_.f(),_.w("design:type",Object)],QG.prototype,"enableAlertBanner",void 0);_.c([_.f(),_.w("design:type",Object)],QG.prototype,"dismissedAlertBanner",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],QG.prototype,"hideCreateChannelButton",void 0);_.c([_.t("data.contents"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],QG.prototype,"isLoading",null);_.c([_.f(),_.w("design:type",Object)],QG.prototype,"boundDismissAlertBanner",void 0);
_.c([_.f({computed:"computeButtonOverride()"}),_.w("design:type",Object)],QG.prototype,"buttonOverride",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QG.prototype,"onDataChanged",null);_.c([_.Kq("search-query-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,String]),_.w("design:returntype")],QG.prototype,"searchQueryChanged",null);
_.c([_.Kq("yt-next-continuation-data-updated"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],QG.prototype,"onContinuationItemsUpdated",null);_.c([_.z({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],QG);
_.A(QG,"ytd-channel-switcher-page-renderer",function(){if(aaM!==void 0)return aaM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return aaM=v},{mode:1});var On7;var IaI;var gj=function(){var v=_.P.apply(this,arguments)||this;v.images=[];v.selectedImageIndex=0;return v};
_.V(gj,_.P);_.W=gj.prototype;
_.W.ready=function(){_.MC(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.MC(this.JSC$15603_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.MC(this.JSC$15603_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.MC(this.JSC$15603_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.W.onThumbnailClick=function(v){if(v=v.event_.detail)this.selectedImageIndex=this.images.indexOf(v)};
_.W.updateImageThumbnails=function(v){v=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:v.event_.detail});this.images.splice(this.selectedImageIndex,1,v);this.images=[].concat(_.t7(this.images))};
_.W.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Iq(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.W.saveImageRepositions=function(){this.selectedImageIndex=0;_.Iq(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.vP.Object.defineProperties(gj.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var v=this;return(this.images||[]).map(function(e,d){return{image:e,selected:d===v.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.sg("ytd-backstage-image-preview-renderer"),_.w("design:type",Object)],gj.prototype,"JSC$15603_imagePreviewContainer",void 0);_.c([_.sg(".thumbnail-images-container"),_.w("design:type",HTMLElement)],gj.prototype,"thumbnailImagesContainer",void 0);_.c([_.f(),_.w("design:type",Array)],gj.prototype,"images",void 0);
_.c([_.f(),_.w("design:type",Object)],gj.prototype,"repositionInstructions",void 0);_.c([_.f(),_.w("design:type",Object)],gj.prototype,"selectedImageIndex",void 0);_.c([_.t("images","selectedImageIndex"),_.w("design:type",Array),_.w("design:paramtypes",[])],gj.prototype,"thumbnailRendererDatas",null);_.c([_.t("images","selectedImageIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],gj.prototype,"selectedImageData",null);
_.c([_.z({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],gj);
_.A(gj,"ytd-backstage-multi-image-reposition-renderer",function(){if(IaI!==void 0)return IaI;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return IaI=v},{mode:1});var um=function(v,e){_.r6.call(this);this.uploadUrl=v;this.channelId=e;this.imagesUploadData=[]};
_.V(um,_.r6);um.prototype.getAllUploadStatuses=function(){var v=this,e,d,E;return _.I(function(T){if(T.nextAddress==1)return T.yield(bnI(v),2);e=T.yieldResult;d=e.get("succeed");E=e.get("failed");return T.return(d.concat(E))})};
var mcn=function(v){var e,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(bnI(v),2);e=E.yieldResult;d=e.get("failed");d.length>0&&YBi(v,d);return E.return(v.getAllUploadStatuses())})},bnI=function(v){var e,d,E,T,S,O,b;
return _.I(function(Y){if(Y.nextAddress==1)return e=new Map,Y.yield(Promise.allSettled(v.imagesUploadData.map(function(q){return q.uploadPromise})),2);
d=Y.yieldResult;E=[];T=_.a(d);for(S=T.next();!S.done;S=T.next())O=S.value,O.status==="fulfilled"&&E.push(O.value);b=v.imagesUploadData.map(function(q){return q.image}).filter(function(q){return E.every(function(r){return r.id!==q.id})});
e.set("succeed",E);e.set("failed",b);return Y.return(e)})},YBi=function(v,e){e=_.a(e);
for(var d=e.next();!d.done;d=e.next()){var E=v;d=d.value;yV7(E,d.id)>=0&&E.cancel(d.id);var T=new qBe(d),S=_.qS6(E.uploadUrl,{"X-YouTube-ChannelId":E.channelId},d.imageBlob);T.transfer=S;T.uploadPromise=rV6(S,d);E.imagesUploadData.push(T);S.run()}};
um.prototype.cancel=function(v){var e=yV7(this,v);e!==-1&&((e=this.imagesUploadData[e].transfer)&&e.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(d){return d.image.id!==v}))};
var yV7=function(v,e){return v.imagesUploadData.findIndex(function(d){return d.image.id===e})},rV6=function(v,e){return new Promise(function(d,E){v.listen("l",function(){var T=v.getResponseText();
T?(T=JSON.parse(T).encryptedBlobId,e.encryptedBlobId=T,d(e)):E("upload failed")});
v.listen("n",function(){E("upload failed")})})},qBe=function(v){this.image=v};var imH=function(v,e,d,E,T){this.id=v;this.imageBlob=e;this.localImageSrc=d;this.naturalWidth=E;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 hEg=[".jpeg",".jpg",".png"],n5=function(){var v=_.P.apply(this,arguments)||this;v.showImagesPreview=!1;v.pollOptions=[];v.errorMessage="";v.optionPlaceholderText="";v.optionDefaultText="";v.JSC$15614_imageId=0;v.maxFileSizeMb=0;v.maxAspectRatio=0;v.invalidFileSizeError="";v.invalidAspectRatioError="";v.invalidFileTypeError="";v.imageSelector=new Ii(null,"single_file",hEg);return v};
_.V(n5,_.P);_.W=n5.prototype;_.W.ready=function(){_.MC(this.imageSelector,"j",this.onImageSelect,!1,this);_.MC(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.MC(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.W.dataChanged=function(){var v,e,d=_.L((v=this.data)==null?void 0:(e=v.cellTemplate)==null?void 0:e.onEmptyCellTap,J92);if(d&&d.uploadUrl&&d.channelId){var E;this.maxFileSizeMb=((E=d.imageValidationInfo)==null?void 0:E.maxFileSizeMb)||0;var T;this.maxAspectRatio=((T=d.imageValidationInfo)==null?void 0:T.allowedMaxAspectRatio)||0;var S;this.invalidFileSizeError=this.getSimpleString((S=this.data)==null?void 0:S.invalidFileSizeError);var O;this.invalidAspectRatioError=this.getSimpleString((O=this.data)==
null?void 0:O.invalidAspectRatioError);var b;this.invalidFileTypeError=this.getSimpleString((b=this.data)==null?void 0:b.invalidFileTypeError);this.uploadManager=new um(d.uploadUrl,d.channelId)}};
_.W.onEditorInfoChange=function(){this.optionPlaceholderText=_.vv(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.vv(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.W.observeAddImageError=function(){this.errorMessage!==""&&_.Iq(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.W.onPollOptionsChange=function(){for(var v=!1,e=[],d=0;d<this.pollOptions.length;d++){var E=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(d+1);this.pollOptions[d].placeholderText!==E?(v=!0,e.push(Object.assign({},this.pollOptions[d],{placeholderText:E}))):e.push(this.pollOptions[d])}v&&(this.pollOptions=e);this.isValid()?_.Iq(this.hostElement,"yt-commentbox-post-enable"):_.Iq(this.hostElement,"yt-commentbox-post-disable")};
_.W.createPollOptions=function(v){var e=[],d;v=(d=v==null?void 0:v.minPollOptions)!=null?d:0;for(d=0;d<v;d++)e.push(this.createPollOption());return e};
_.W.onImageSelect=function(v){var e=this,d,E,T,S,O,b;return _.I(function(Y){if(Y.nextAddress==1){if(e.selectedImageIndex===void 0)return Y.jumpTo(0);d=v.files[0];e.errorMessage="";E=e.validateImage(d);if(E!=="")return e.errorMessage=E,Y.return();T=new g$(e.maxAspectRatio,!1,!0);return Y.yield(T.transform(d),3)}if(Y.nextAddress!=4)return S=Y.yieldResult,S.transformedData?S.invalidAspectRatio?(e.errorMessage=e.invalidAspectRatioError,Y.return()):Y.yield(OmS(e.JSC$15614_imageId,v.files[0],S.transformedData),
4):(e.errorMessage=e.invalidFileTypeError,Y.return());O=Y.yieldResult;e.JSC$15614_imageId++;YBi(e.uploadManager,[O]);b=Object.assign({},e.pollOptions[e.selectedImageIndex],{image:O});e.pollOptions.splice(e.selectedImageIndex,1,b);e.refreshPollOptions();_.Iq(e.hostElement,"yt-backstage-poll-image-select");_.s9(Y)})};
_.W.validateImage=function(v){return v.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.W.refreshPollOptions=function(){this.pollOptions=[].concat(_.t7(this.pollOptions))};
_.W.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.t7(this.pollOptions),[this.createPollOption()]))};
_.W.onRemovePollOption=function(v){var e=this.pollOptions[v.model.index];e&&e.image&&this.uploadManager.cancel(e.image.id);this.pollOptions.splice(v.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Iq(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.W.onTextInput=function(){this.refreshPollOptions()};
_.W.onImageButtonClick=function(v){this.selectedImageIndex=v.model.index;this.imageSelector.click()};
_.W.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.W.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.W.saveImageRepositions=function(v){v=v.event_.detail;for(var e=0,d=[],E=_.a(this.pollOptions),T=E.next();!T.done;T=E.next())T=T.value,T.image!==void 0?(T=Object.assign({},T,{image:v[e]}),d.push(T),e++):d.push(T);this.showImagesPreview=!1;this.pollOptions=[].concat(_.t7(d))};
_.W.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 v=0,e=_.a(this.pollOptions),d=e.next();!d.done;d=e.next())if(d=d.value,d.optionText.trim()!==""||d.image!==void 0){if(!d.image||this.hasCustomOptionText&&d.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;v++}return v>=Number(this.editorInfo.minPollOptions)};
_.W.getAllUploadStatuses=function(){var v=this,e,d,E,T;return _.I(function(S){if(S.nextAddress==1)return S.yield(v.uploadManager.getAllUploadStatuses(),2);e=S.yieldResult;d=_.a(e);for(E=d.next();!E.done;E=d.next())if(T=E.value,T.encryptedBlobId===void 0)return S.return(mcn(v.uploadManager));return S.return(e)})};
_.W.getPostCreateOptions=function(){for(var v=[],e=_.a(this.pollOptions),d=e.next();!d.done;d=e.next())d=d.value,d.image!==void 0&&v.push({text:this.hasCustomOptionText?d.optionText:d.placeholderText,image:d.image});return v};
_.W.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.W.createButtonRenderer=function(v,e){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:v,accessibilityData:{accessibilityData:{label:this.getSimpleString(v)}},isDisabled:e}};
_.W.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.W.computeThumbnailRendererData=function(v){return v?{image:v,selected:!1}:void 0};
_.W.getSimpleString=function(v){return _.vv(v)};
_.W.updateOptionTextFromBinding=function(v){if(v.target){var e=Array.from(_.IB(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(v.target);if(e>=0){var d;this.pollOptions[e].optionText=(d=v.detail.value)!=null?d:""}}};
_.vP.Object.defineProperties(n5.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var v,e;return this.pollOptions.length<((e=(v=this.editorInfo)==null?void 0:v.maxPollOptions)!=null?e:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(v){return v.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(v){return v.image}).map(function(v){return v.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(v){return v.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var v,e=(v=this.data)==null?void 0:v.addOptionButtonText;return e?this.createButtonRenderer(e,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var v,e=(v=this.data)==null?void 0:v.repositionImagesButtonLabel;return e?this.createButtonRenderer(e,!this.hasImages):void 0}}});
n5.prototype.onPollOptionsChange=n5.prototype.onPollOptionsChange;n5.prototype.observeAddImageError=n5.prototype.observeAddImageError;n5.prototype.onEditorInfoChange=n5.prototype.onEditorInfoChange;n5.prototype.dataChanged=n5.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.sg("ytd-backstage-multi-image-reposition-renderer"),_.w("design:type",Object)],n5.prototype,"imageRepositionContainer",void 0);
_.c([_.f(),_.w("design:type",Object)],n5.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],n5.prototype,"editorInfo",void 0);_.c([_.f(),_.w("design:type",um)],n5.prototype,"uploadManager",void 0);_.c([_.f(),_.w("design:type",Object)],n5.prototype,"showImagesPreview",void 0);_.c([_.f(),_.w("design:type",Array)],n5.prototype,"pollOptions",void 0);_.c([_.f(),_.w("design:type",Object)],n5.prototype,"errorMessage",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],n5.prototype,"dataChanged",null);_.c([_.V1("editorInfo"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],n5.prototype,"onEditorInfoChange",null);_.c([_.$v("errorMessage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],n5.prototype,"observeAddImageError",null);
_.c([_.V1("pollOptions"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],n5.prototype,"onPollOptionsChange",null);_.c([_.t("pollOptions","editorInfo"),_.w("design:type",Object),_.w("design:paramtypes",[])],n5.prototype,"isAllowedToAddOption",null);_.c([_.t("pollOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],n5.prototype,"hasImages",null);
_.c([_.t("pollOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],n5.prototype,"imagesToReposition",null);_.c([_.t("pollOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],n5.prototype,"hasCustomOptionText",null);_.c([_.t("data","isAllowedToAddOption"),_.w("design:type",Object),_.w("design:paramtypes",[])],n5.prototype,"addOptionButton",null);_.c([_.t("data","hasImages"),_.w("design:type",Object),_.w("design:paramtypes",[])],n5.prototype,"repositionImagesButton",null);
_.c([_.z({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],n5);
_.A(n5,"ytd-backstage-image-poll-editor-renderer",function(){if(On7!==void 0)return On7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return On7=v},{mode:2});var Kyn={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 $cM;var DJ=function(){var v=_.P.apply(this,arguments)||this;v.a11yConfig=Kyn;v.imageDisplayOffsetTop=0;v.imageDisplayOffsetLeft=0;v.pickerDisplayOffsetTop=0;v.pickerDisplayOffsetLeft=0;v.showPreviewContainer=!0;v.startPicker=!1;v.repositionOptional=!1;v.editOnlyMode=!1;v.savedImageDisplayOffsetTop=0;v.savedImageDisplayOffsetLeft=0;return v};
_.V(DJ,_.P);_.W=DJ.prototype;_.W.created=function(){_.C$.requestAvailability()};
_.W.ready=function(){};
_.W.onArrowKeysDown=function(v){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){v.detail.keyboardEvent.preventDefault();var e=0,d=0,E="";switch(v.detail.keyboardEvent.key){case "ArrowUp":IE$(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?E=this.a11yConfig.reachBottomOfImage:e=this.imageHeight*.05*-1;break;case "ArrowDown":IE$(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?E=this.a11yConfig.reachTopOfImage:
e=this.imageHeight*.05;break;case "ArrowLeft":IE$(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?E=this.a11yConfig.reachRightOfImage:d=this.imageWidth*.05*-1;break;case "ArrowRight":IE$(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?E=this.a11yConfig.reachLeftOfImage:d=this.imageWidth*.05}E&&_.sz(E)&&_.Iq(this.hostElement,"iron-announce",{text:_.sz(E)});if(d||e)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+e)),v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),v=_.sz(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+d)),v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),v=_.sz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})),v&&_.Iq(this.hostElement,"iron-announce",{text:v})}};
_.W.getPreviewPosition=function(v,e,d,E){return Math.round(100*(v+e*.5-d)/E)};
_.W.calculateDisplayPosition=function(){var v=this.imageData.naturalWidth,e=this.imageData.naturalHeight;this.displayScale=Math.max(200/v,200/e);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var d=v*this.displayScale*this.imageData.previewCoordinates.left,E=e*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=e>v?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-d;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=v>e?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-E;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=v*this.displayScale;this.imageHeight=e*this.displayScale};
_.W.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.W.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.W.getSignedPosition=function(v,e,d){return e==="X"&&_.Bb("HTML_DIR")==="rtl"?d==="-"?v+"px":v*-1+"px":d==="-"?v*-1+"px":v+"px"};
_.W.pickerMove=function(v){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var e=this.pickerOffsetX-v.clientX,d=this.pickerOffsetY-v.clientY;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
d)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-e))}};
_.W.pickerMoveStart=function(v){this.startPicker=!0;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY};
_.W.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var v=this.generateCropPreview();v&&_.Iq(this.hostElement,"ytd-backstage-image-preview-coordinates-update",v)};
_.W.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Iq(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.W.deleteImage=function(){_.Iq(this.hostElement,"ytd-backstage-image-preview-delete")};
_.W.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.W.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var v=this.generateCropPreview();v&&_.Iq(this.hostElement,"ytd-backstage-image-preview-coordinates-save",v)};
_.W.getPreviewOffset=function(v,e,d){return e&&v?(d==="X"&&_.Bb("HTML_DIR")==="rtl"?300/e*v:300/e*v*-1)+"px":"0px"};
_.W.getSimpleText=function(v){return v?_.vv(v):""};
_.W.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}};
_.vP.Object.defineProperties(DJ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.sz(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.sz(this.a11yConfig.verticalRepositionInstruction)}v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.sz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.sz(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 v,e,d=(v=this.instruction)==null?void 0:(e=v.previewInstruction)==null?void 0:e.editButtonLabel;return d?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:d,accessibilityData:{accessibilityData:{label:this.getSimpleText(d)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E,T=this.editOnlyMode?(v=this.instruction)==null?void 0:(e=v.editInstruction)==null?void 0:e.saveImagesButtonLabel:(d=this.instruction)==null?void 0:(E=d.editInstruction)==null?void 0:E.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 v,e,d=(v=this.instruction)==null?void 0:(e=v.previewInstruction)==null?void 0:e.deleteButtonLabel;return d?{size:"SIZE_SMALL",text:d,accessibilityData:{accessibilityData:{label:this.getSimpleText(d)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(v=this.instruction)==null?void 0:(e=v.editInstruction)==null?void 0:e.cancelButtonLabel;v=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return d?{style:v,size:"SIZE_SMALL",text:d,accessibilityData:{accessibilityData:{label:this.getSimpleText(d)}}}: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"}}});
DJ.prototype.onEditOnlyModeUpdate=DJ.prototype.onEditOnlyModeUpdate;DJ.prototype.onImageChange=DJ.prototype.onImageChange;_.c([_.f(),_.w("design:type",imH)],DJ.prototype,"imageData",void 0);_.c([_.f(),_.w("design:type",Object)],DJ.prototype,"instruction",void 0);_.c([_.f(),_.w("design:type",Object)],DJ.prototype,"a11yConfig",void 0);_.c([_.f(),_.w("design:type",Number)],DJ.prototype,"imageWidth",void 0);_.c([_.f(),_.w("design:type",Number)],DJ.prototype,"imageHeight",void 0);
_.c([_.f(),_.w("design:type",Number)],DJ.prototype,"displayScale",void 0);_.c([_.f(),_.w("design:type",Object)],DJ.prototype,"imageDisplayOffsetTop",void 0);_.c([_.f(),_.w("design:type",Object)],DJ.prototype,"imageDisplayOffsetLeft",void 0);_.c([_.f(),_.w("design:type",Object)],DJ.prototype,"pickerDisplayOffsetTop",void 0);_.c([_.f(),_.w("design:type",Object)],DJ.prototype,"pickerDisplayOffsetLeft",void 0);_.c([_.f(),_.w("design:type",Object)],DJ.prototype,"showPreviewContainer",void 0);
_.c([_.f(),_.w("design:type",Object)],DJ.prototype,"startPicker",void 0);_.c([_.f(),_.w("design:type",Number)],DJ.prototype,"pickerOffsetX",void 0);_.c([_.f(),_.w("design:type",Number)],DJ.prototype,"pickerOffsetY",void 0);_.c([_.f(),_.w("design:type",Object)],DJ.prototype,"repositionOptional",void 0);_.c([_.f(),_.w("design:type",Object)],DJ.prototype,"editOnlyMode",void 0);_.c([_.sg("#picker-container"),_.w("design:type",HTMLElement)],DJ.prototype,"JSC$15627_pickerContainer",void 0);
_.c([_.sg("#picker"),_.w("design:type",HTMLElement)],DJ.prototype,"picker",void 0);_.c([_.sg("#preview-clipper"),_.w("design:type",HTMLElement)],DJ.prototype,"previewClipper",void 0);_.c([_.sg("#image-in-picker-background"),_.w("design:type",HTMLImageElement)],DJ.prototype,"JSC$15627_imageInBackground",void 0);_.c([_.sg("#image-in-picker"),_.w("design:type",HTMLImageElement)],DJ.prototype,"JSC$15627_imageInPicker",void 0);
_.c([_.sg("#image-in-preview-clipper"),_.w("design:type",HTMLImageElement)],DJ.prototype,"JSC$15627_imageInPreviewClipper",void 0);_.c([_.t("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],DJ.prototype,"altLabelForImage",null);_.c([_.t("imageHeight","imageWidth"),_.w("design:type",Number),_.w("design:paramtypes",[])],DJ.prototype,"pickerSize",null);
_.c([_.t("imageHeight","imageWidth"),_.w("design:type",Object),_.w("design:paramtypes",[])],DJ.prototype,"imageOrientationStyle",null);_.c([_.t("instruction"),_.w("design:type",Object),_.w("design:paramtypes",[])],DJ.prototype,"editButton",null);_.c([_.t("instruction","editOnlyMode"),_.w("design:type",Object),_.w("design:paramtypes",[])],DJ.prototype,"saveButton",null);_.c([_.t("instruction"),_.w("design:type",Object),_.w("design:paramtypes",[])],DJ.prototype,"deleteButton",null);
_.c([_.t("instruction","editOnlyMode"),_.w("design:type",Object),_.w("design:paramtypes",[])],DJ.prototype,"cancelButton",null);_.c([_.t("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.w("design:type",Number),_.w("design:paramtypes",[])],DJ.prototype,"cropOffsetTop",null);_.c([_.t("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.w("design:type",Number),_.w("design:paramtypes",[])],DJ.prototype,"cropOffsetLeft",null);
_.c([_.t("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],DJ.prototype,"pickerBackgroundStyle",null);_.c([_.t("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],DJ.prototype,"pickerDisplayStyle",null);_.c([_.t("cropOffsetLeft","cropOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],DJ.prototype,"imageInPickerStyle",null);
_.c([_.t("cropOffsetLeft","cropOffsetTop","pickerSize"),_.w("design:type",String),_.w("design:paramtypes",[])],DJ.prototype,"previewClipperStyle",null);_.c([_.V1("imageData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DJ.prototype,"onImageChange",null);_.c([_.V1("editOnlyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DJ.prototype,"onEditOnlyModeUpdate",null);
_.c([_.t("showPreviewContainer"),_.w("design:type",String),_.w("design:paramtypes",[])],DJ.prototype,"pickerModeStyle",null);_.c([_.z({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],DJ);
_.A(DJ,"ytd-backstage-image-preview-renderer",function(){if($cM!==void 0)return $cM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return $cM=v},{mode:1});var jQ2;var sQu={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 NUA;var kcJ;var UP=function(){var v=_.P.apply(this,arguments)||this;v.a11yConfig=sQu;v.imageDisplayOffsetTop=0;v.imageDisplayOffsetLeft=0;v.pickerDisplayOffsetTop=0;v.pickerDisplayOffsetLeft=0;v.cropCoordinatesSaved=!1;v.previewSize=0;v.startPicker=!1;v.repositionOptional=!1;return v};
_.V(UP,_.P);_.W=UP.prototype;_.W.created=function(){_.C$.requestAvailability()};
_.W.ready=function(){};
_.W.onArrowKeysDown=function(v){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){v.detail.keyboardEvent.preventDefault();var e=0,d=0,E="";switch(v.detail.keyboardEvent.key){case "ArrowUp":bmM(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?E=this.a11yConfig.reachBottomOfImage:e=this.imageHeight*.05*-1;break;case "ArrowDown":bmM(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?E=this.a11yConfig.reachTopOfImage:
e=this.imageHeight*.05;break;case "ArrowLeft":bmM(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?E=this.a11yConfig.reachRightOfImage:d=this.imageWidth*.05*-1;break;case "ArrowRight":bmM(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?E=this.a11yConfig.reachLeftOfImage:d=this.imageWidth*.05}E&&_.sz(E)&&_.Iq(this.hostElement,"iron-announce",{text:_.sz(E)});if(d||e)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+e)),v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),v=_.sz(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+d)),v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),v=_.sz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})),v&&_.Iq(this.hostElement,"iron-announce",{text:v})}};
_.W.getPreviewPosition=function(v,e,d,E){return Math.round(100*(v+e*.5-d)/E)};
_.W.displayImage=function(){var v=this.JSC$15638_pickerContainer.getBoundingClientRect().width,e=this.JSC$15638_pickerContainer.getBoundingClientRect().height,d=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),E=this.JSC$15638_imageInBackground.naturalWidth,T=this.JSC$15638_imageInBackground.naturalHeight;this.displayScale=Math.max(d/E,d/T);this.imageWidth=E*this.displayScale;this.imageHeight=T*this.displayScale;this.pickerDisplayOffsetLeft=(v-d)/2;this.pickerDisplayOffsetTop=
(e-d)/2;this.imageDisplayOffsetLeft=T>E?this.pickerDisplayOffsetLeft:(v-this.imageWidth)/2;this.imageDisplayOffsetTop=E>T?this.pickerDisplayOffsetTop:(e-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.W.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15638_imageInBackground.src=this.imageData.toString(),this.JSC$15638_imageInPicker.src=this.imageData.toString(),this.JSC$15638_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.W.getSignedPosition=function(v,e,d){return e==="X"&&_.Bb("HTML_DIR")==="rtl"?d==="-"?v+"px":v*-1+"px":d==="-"?v*-1+"px":v+"px"};
_.W.pickerMove=function(v){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var e=this.pickerOffsetX-v.clientX,d=this.pickerOffsetY-v.clientY;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
d)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-e))}};
_.W.pickerMoveStart=function(v){this.startPicker=!0;this.pickerOffsetX=v.clientX;this.pickerOffsetY=v.clientY};
_.W.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.W.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Iq(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.W.getPreviewOffset=function(v,e,d,E){return e&&v&&d?(E==="X"&&_.Bb("HTML_DIR")==="rtl"?d/e*v:d/e*v*-1)+"px":"0px"};
_.W.getSimpleText=function(v){return v?_.vv(v):""};
_.W.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var v=this.cropOffsetTop/this.imageHeight,e=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,d=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,E=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.IB(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Iq(this.hostElement,"yt-img-crop-coordinates-update",{top:v,right:e,bottom:d,left:E})}};
_.vP.Object.defineProperties(UP.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var v=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.sz(this.a11yConfig.imageVerticalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.sz(this.a11yConfig.verticalRepositionInstruction)}v=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.sz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+v,y_percent:""+(100-v)})+"\n"+_.sz(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 v,e=(v=this.learnMore.runs[0])==null?void 0:v.navigationEndpoint,d;return((d=_.L(e,_.wb))==null?void 0:d.url)||void 0}}}});
UP.prototype.onImageDataChange=UP.prototype.onImageDataChange;_.c([_.f(),_.w("design:type",Object)],UP.prototype,"imageData",void 0);_.c([_.f(),_.w("design:type",Object)],UP.prototype,"instruction",void 0);_.c([_.f(),_.w("design:type",Object)],UP.prototype,"a11yConfig",void 0);_.c([_.f(),_.w("design:type",Number)],UP.prototype,"imageWidth",void 0);_.c([_.f(),_.w("design:type",Number)],UP.prototype,"imageHeight",void 0);_.c([_.f(),_.w("design:type",Number)],UP.prototype,"displayScale",void 0);
_.c([_.f(),_.w("design:type",Object)],UP.prototype,"imageDisplayOffsetTop",void 0);_.c([_.f(),_.w("design:type",Object)],UP.prototype,"imageDisplayOffsetLeft",void 0);_.c([_.f(),_.w("design:type",Object)],UP.prototype,"pickerDisplayOffsetTop",void 0);_.c([_.f(),_.w("design:type",Object)],UP.prototype,"pickerDisplayOffsetLeft",void 0);_.c([_.f(),_.w("design:type",Object)],UP.prototype,"cropCoordinatesSaved",void 0);_.c([_.f(),_.w("design:type",Object)],UP.prototype,"previewSize",void 0);
_.c([_.f(),_.w("design:type",Object)],UP.prototype,"startPicker",void 0);_.c([_.f(),_.w("design:type",Number)],UP.prototype,"pickerOffsetX",void 0);_.c([_.f(),_.w("design:type",Number)],UP.prototype,"pickerOffsetY",void 0);_.c([_.f(),_.w("design:type",Object)],UP.prototype,"repositionOptional",void 0);_.c([_.sg("#picker-container"),_.w("design:type",HTMLElement)],UP.prototype,"JSC$15638_pickerContainer",void 0);_.c([_.sg("#picker"),_.w("design:type",HTMLElement)],UP.prototype,"picker",void 0);
_.c([_.sg("#image-in-picker-background"),_.w("design:type",HTMLImageElement)],UP.prototype,"JSC$15638_imageInBackground",void 0);_.c([_.sg("#image-in-picker"),_.w("design:type",HTMLImageElement)],UP.prototype,"JSC$15638_imageInPicker",void 0);_.c([_.sg("#image-in-preview-clipper"),_.w("design:type",HTMLImageElement)],UP.prototype,"JSC$15638_imageInPreviewClipper",void 0);_.c([_.sg("#full-image-as-preview"),_.w("design:type",HTMLImageElement)],UP.prototype,"imageAsPreview",void 0);
_.c([_.t("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],UP.prototype,"altLabelForImage",null);_.c([_.t("imageHeight","imageWidth"),_.w("design:type",Number),_.w("design:paramtypes",[])],UP.prototype,"pickerSize",null);_.c([_.t("imageHeight","imageWidth"),_.w("design:type",Object),_.w("design:paramtypes",[])],UP.prototype,"imageOrientationStyle",null);
_.c([_.t("instruction.previewInstruction.editButtonLabel"),_.w("design:type",Object),_.w("design:paramtypes",[])],UP.prototype,"editButton",null);_.c([_.t("instruction.editInstruction.saveButtonLabel"),_.w("design:type",Object),_.w("design:paramtypes",[])],UP.prototype,"saveButton",null);_.c([_.t("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.w("design:type",Number),_.w("design:paramtypes",[])],UP.prototype,"cropOffsetTop",null);
_.c([_.t("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.w("design:type",Number),_.w("design:paramtypes",[])],UP.prototype,"cropOffsetLeft",null);_.c([_.t("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],UP.prototype,"pickerBackgroundStyle",null);_.c([_.t("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],UP.prototype,"pickerDisplayStyle",null);
_.c([_.t("cropOffsetLeft","cropOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],UP.prototype,"imageInPickerStyle",null);_.c([_.t("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.w("design:type",String),_.w("design:paramtypes",[])],UP.prototype,"previewClipperStyle",null);_.c([_.$v("imageData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UP.prototype,"onImageDataChange",null);
_.c([_.t("cropCoordinatesSaved"),_.w("design:type",String),_.w("design:paramtypes",[])],UP.prototype,"pickerModeStyle",null);_.c([_.t("instruction.editInstruction.learnMore"),_.w("design:type",Object),_.w("design:paramtypes",[])],UP.prototype,"learnMore",null);_.c([_.t("learnMore"),_.w("design:type",Object),_.w("design:paramtypes",[])],UP.prototype,"learnMoreUrl",null);_.c([_.lh({is:"yt-img-crop-picker",disableElementRegistration:!0})],UP);
_.A(UP,"yt-img-crop-picker",function(){if(kcJ===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;NUA===void 0&&(NUA=document.createElement("template"));var E=NUA;d.call(e,E.content.cloneNode(!0),v.content.firstChild);kcJ=v}v=kcJ;return v},{mode:2});var p5=function(){var v=_.P.apply(this,arguments)||this;v.errorMessage="";v.hasPreview=!1;v.isBackstagePost=!1;v.dismissButtonOverrides={size:"XS"};return v};
_.V(p5,_.P);_.W=p5.prototype;_.W.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"}}}};
_.W.detached=function(){this.removeOverlay()};
_.W.setPreview=function(v){_.IB(this.hostElement).querySelector("#preview-picker").imageData=v;this.hasPreview=!0;_.Iq(this.hostElement,"yt-backstage-image-select-preview")};
_.W.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var v=_.IB(this.hostElement).querySelector("#dropzone");v.classList.remove("dragover");v.classList.remove("error");_.Iq(this.hostElement,"yt-backstage-image-select-cancel")};
_.W.setupOverlay=function(){var v=this.imageUploadEndpoint;this.removeOverlay();if(v&&v.imageValidationInfo){var e=_.IB(this.hostElement).querySelector("#dropzone"),d=_.IB(this.hostElement).querySelector("#select");this.overlay=new n6(v.uploadUrl,v.channelId,v.imageValidationInfo.maxFileSizeMb,v.imageValidationInfo.allowedMaxAspectRatio,e,d,!0);_.MC(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.MC(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.MC(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.MC(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.MC(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.W.removeOverlay=function(){this.overlay&&(_.qs(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.qs(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.qs(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.qs(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.qs(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.W.onDragOver=function(v){var e=_.IB(this.hostElement).querySelector("#dropzone");_.Yv(e,"dragover",v.value)};
_.W.onPreview=function(v){this.setPreview(v.value)};
_.W.onImageError=function(v){if(v.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var e;v=(e=this.data)==null?void 0:e.fileSizeError}else if(v.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var d;v=(d=this.data)==null?void 0:d.invalidError}else if(v.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var E;v=(E=this.data)==null?void 0:E.invalidAspectRatioError}else return;this.errorMessage=_.vv(v);_.IB(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.W.onImageAlert=function(v){this.onImageError(v)};
_.W.uploadPromise=function(){var v=this,e=this.overlay&&this.overlay.uploadPromise();if(e)return e.catch(function(){throw Error(v.data?_.vv(v.data.uploadFailureError):"");})};
_.vP.Object.defineProperties(p5.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var v,e;if((v=this.data)==null?0:(e=v.icon)==null?0:e.iconType)return _.qC(this.data.icon.iconType)}}});
p5.prototype.setupOverlay=p5.prototype.setupOverlay;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],p5.prototype,"rendererStamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],p5.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],p5.prototype,"imageUploadEndpoint",void 0);_.c([_.f(),_.w("design:type",Object)],p5.prototype,"errorMessage",void 0);
_.c([_.f(),_.w("design:type",n6)],p5.prototype,"overlay",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],p5.prototype,"hasPreview",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],p5.prototype,"isBackstagePost",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],p5.prototype,"selectionCancel",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],p5.prototype,"previewCancel",null);
_.c([_.t("data.icon.iconType"),_.w("design:type",Object),_.w("design:paramtypes",[])],p5.prototype,"icon",null);_.c([_.f(),_.w("design:type",Object)],p5.prototype,"dismissButtonOverrides",void 0);_.c([_.$v("imageUploadEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],p5.prototype,"setupOverlay",null);_.c([_.z({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],p5);
_.A(p5,"ytd-backstage-image-select-renderer",function(){if(jQ2!==void 0)return jQ2;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return jQ2=v},{mode:1});var Lye;var VRB;var v2=function(){var v=_.P.apply(this,arguments)||this;v.selected=!1;return v};
_.V(v2,_.P);_.W=v2.prototype;_.W.computeSelected=function(v){return v==null?void 0:v.selected};
_.W.computeTransform=function(v,e,d){var E,T,S=(T=(E=this.imageContainer)==null?void 0:E.getBoundingClientRect())!=null?T:{width:0,height:0};E=Math.max(S.width/e,S.height/d);d=d*E*v.top;return"translateX("+this.getSignedPosition(e*E*v.left,"X","-")+") translateY("+this.getSignedPosition(d,"Y","-")+")"};
_.W.getSignedPosition=function(v,e,d){return e==="X"&&_.Bb("HTML_DIR")==="rtl"?d==="-"?v+"px":v*-1+"px":d==="-"?v*-1+"px":v+"px"};
_.W.onClick=function(){var v;_.Iq(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(v=this.data)==null?void 0:v.image)};
_.W.onKeyPress=function(v){if(v.keyCode===13)this.onClick()};
_.vP.Object.defineProperties(v2.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:(e=v.image)==null?void 0:e.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)!=null&&v.image){var e;v=(e=this.data)==null?void 0:e.image;return v.previewCoordinates.top!==0||v.previewCoordinates.left!==0?(e=this.computeTransform(v.previewCoordinates,v.naturalWidth,v.naturalHeight),v.naturalHeight>=v.naturalWidth?"width:inherit;transform:"+e+";":"height:inherit;transform:"+e+";"):v.naturalHeight>=v.naturalWidth?"width:inherit;":"height:inherit;"}}}});
v2.prototype.onKeyPress=v2.prototype.onKeyPress;_.c([_.sg(".image-container"),_.w("design:type",HTMLElement)],v2.prototype,"imageContainer",void 0);_.c([_.f(),_.w("design:type",Object)],v2.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.w("design:type",Object)],v2.prototype,"selected",void 0);_.c([_.t("data.image"),_.w("design:type",Object),_.w("design:paramtypes",[])],v2.prototype,"thumbnailUrl",null);
_.c([_.t("data.image","data.image.previewCoordinates"),_.w("design:type",Object),_.w("design:paramtypes",[])],v2.prototype,"thumbnailStyle",null);_.c([_.Kq("keypress"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],v2.prototype,"onKeyPress",null);_.c([_.z({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],v2);
_.A(v2,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(VRB!==void 0)return VRB;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return VRB=v},{mode:2});var eu=function(v,e,d){d=d===void 0?!1:d;_.r6.call(this);var E=this;this.dropZoneOverlay=new OA(v);this.selectOverlay=d?new Ii(e,"multiple_file",["image/*"]):new Ii(e,"single_file",["image/*"]);this.handler=new _.Im(this);_.Yh(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(e,"click",function(){E.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.V(eu,_.r6);eu.prototype.onChange=function(v){var e;(e=v.files)!=null&&e.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:v.files}))};var dz=function(){var v=_.P.apply(this,arguments)||this;v.addImageErrorMessage="";v.errorMessage="";v.images=[];v.selectedImageIndex=0;v.modern=_.N("web_modern_buttons");v.maxNumImagesPerPost=_.Wi("max_num_images_per_post_web_ui");v.JSC$15653_imageId=0;return v};
_.V(dz,_.P);_.W=dz.prototype;_.W.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Iq(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.W.observeDragToReorder=function(){var v=this;if(this.showImagesPreview){var e,d=PmA(_.Tf.getInstance(),(e=this.data)==null?void 0:e.dragToReorderTooltip);_.RM.addLowPriorityJob(function(){_.ya(v.hostElement,d,v.thumbnailDragDropArea)})}};
_.W.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}}};
_.W.computeThumbnail=function(v){return(v==null?void 0:v.localImageSrc)||void 0};
_.W.onRendererstamperFinished=function(){_.L9M(this.ytReorderableBehavior,_.IB(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.IB(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.W.handleDrop=function(v){var e=v.currDragItem;if(e!=null&&e.data){v=this.images[this.selectedImageIndex];var d=e.data.image,E=this.images.indexOf(d)||0;e=_.XM(e.parentNode.children,e);this.images.splice(E,1);this.images.splice(e,0,d);this.images=[].concat(_.t7(this.images));this.selectedImageIndex=this.images.indexOf(v)}};
_.W.setUpImagePicker=function(){var v=this.imageUploadEndpoint;v&&v.imageValidationInfo&&(this.uploadManager=new um(v.uploadUrl,v.channelId),this.initialPicker||(this.initialPicker=new eu(this.dropzone,this.selectLink,!0),_.MC(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new eu(this.addImageButtonContainer,this.addImageSelectButton),_.MC(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.MC(this.JSC$15653_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.MC(this.JSC$15653_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.MC(_.IB(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.W.detached=function(){this.initialPicker&&(_.qs(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.qs(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.W.onInitialSelectImages=function(v){var e=this;return _.I(function(d){return d.yield(e.onSelectImages(v,!1),0)})};
_.W.onAddImage=function(v){var e=this;return _.I(function(d){return d.yield(e.onSelectImages(v,!0),0)})};
_.W.onSelectImages=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F,g,Q;return _.I(function(v3){switch(v3.nextAddress){case 1:e?d.addImageErrorMessage="":(d.images=[],d.errorMessage="");E=v.detail;T=d.validateImages([].concat(_.t7(E)));if(T!=="")return e?d.addImageErrorMessage=T:d.errorMessage=T,v3.return();S=[].concat(_.t7(E)).map(function(q7){return(new g$(d.maxAspectRatio,!1,!0)).transform(q7)});
return v3.yield(Promise.allSettled(S),2);case 2:O=v3.yieldResult,b=_.a(O.entries()),Y=b.next();case 3:if(Y.done){v3.jumpTo(5);break}q=Y.value;r=_.a(q);h=r.next().value;K=r.next().value;k=h;J=K;if(J.status!=="fulfilled"){X=B=R=void 0;e?d.addImageErrorMessage=_.vv((R=d.data)==null?void 0:R.invalidError):d.errorMessage=d.errorMessage===""?_.vv((B=d.data)==null?void 0:B.invalidError):_.vv((X=d.data)==null?void 0:X.multiFileError);v3.jumpTo(4);break}Z=J.value;Z.cropped&&_.Iq(d.hostElement,"yt-backstage-multi-image-cropped");
if(Z.invalidAspectRatio){g=F=U=void 0;e?d.addImageErrorMessage=_.vv((U=d.data)==null?void 0:U.invalidAspectRatioError):d.errorMessage=d.errorMessage===""?_.vv((F=d.data)==null?void 0:F.invalidAspectRatioError):_.vv((g=d.data)==null?void 0:g.multiFileError);v3.jumpTo(4);break}return v3.yield(OmS(d.JSC$15653_imageId,v.detail[k],Z.transformedData),8);case 8:Q=v3.yieldResult,d.images.push(Q),d.JSC$15653_imageId++;case 4:Y=b.next();v3.jumpTo(3);break;case 5:if(d.errorMessage!==""||d.addImageErrorMessage!==
"")return v3.return();e?YBi(d.uploadManager,[d.images[d.images.length-1]]):YBi(d.uploadManager,d.images);d.images=[].concat(_.t7(d.images));d.selectedImageIndex=e?Math.max(d.images.length-1,0):0;_.Iq(d.hostElement,"yt-backstage-multi-image-select");_.s9(v3)}})};
_.W.onThumbnailClick=function(v){if(v=v.event_.detail)this.selectedImageIndex=this.images.indexOf(v)};
_.W.validateImages=function(v){if(v.length>this.maxNumImagesPerPost){var e;return _.vv((e=this.data)==null?void 0:e.multiImageExceedMaxImageCountError)}var d=1048576*this.maxFileSizeMb;v=v.filter(function(S){return S.size>d}).length;
if(v===0)return"";var E,T;v=v>1?(E=this.data)==null?void 0:E.multiFileError:(T=this.data)==null?void 0:T.fileSizeError;return _.vv(v)};
_.W.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.t7(this.images));this.selectedImageIndex=0};
_.W.repositionImage=function(v){this.images[this.selectedImageIndex].previewCoordinates=v.event_.detail;this.images=[].concat(_.t7(this.images))};
_.W.getAllUploadStatuses=function(){var v=this,e,d,E,T;return _.I(function(S){if(S.nextAddress==1)return S.yield(v.uploadManager.getAllUploadStatuses(),2);e=S.yieldResult;d=_.a(e);for(E=d.next();!E.done;E=d.next())if(T=E.value,T.encryptedBlobId===void 0)return S.return(mcn(v.uploadManager));return S.return(e)})};
_.W.hasImages=function(){return this.images.length>0};
_.W.cancel=function(){for(var v=this.uploadManager,e=_.a(v.imagesUploadData),d=e.next();!d.done;d=e.next())v.cancel(d.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Iq(this.hostElement,"yt-backstage-multi-image-cancel")};
_.vP.Object.defineProperties(dz.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.imageUploadEndpoint)==null?void 0:(e=v.imageValidationInfo)==null?void 0:e.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.imageUploadEndpoint)==null?void 0:(e=v.imageValidationInfo)==null?void 0:e.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var v,e;if((v=this.data)==null?0:(e=v.icon)==null?0:e.iconType)return _.qC(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.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 v=this;return(this.images||[]).map(function(e,d){return{renderer:{image:e,selected:d===v.selectedImageIndex}}})}}});
dz.prototype.setUpImagePicker=dz.prototype.setUpImagePicker;dz.prototype.onRendererstamperFinished=dz.prototype.onRendererstamperFinished;dz.prototype.observeDragToReorder=dz.prototype.observeDragToReorder;dz.prototype.observeAddImageError=dz.prototype.observeAddImageError;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],dz.prototype,"rendererStamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.Ve6),_.w("design:type",Object)],dz.prototype,"ytReorderableBehavior",void 0);_.c([_.sg("#dropzone"),_.w("design:type",HTMLElement)],dz.prototype,"dropzone",void 0);_.c([_.sg("#select-link"),_.w("design:type",HTMLElement)],dz.prototype,"selectLink",void 0);_.c([_.sg("#thumbnail-drag-drop-area"),_.w("design:type",HTMLElement)],dz.prototype,"thumbnailDragDropArea",void 0);_.c([_.sg("#add-image-button-container"),_.w("design:type",HTMLElement)],dz.prototype,"addImageButtonContainer",void 0);
_.c([_.sg("#add-image-button"),_.w("design:type",HTMLElement)],dz.prototype,"addImageSelectButton",void 0);_.c([_.sg("#image-preview-container"),_.w("design:type",Object)],dz.prototype,"JSC$15653_imagePreviewContainer",void 0);_.c([_.f(),_.w("design:type",Object)],dz.prototype,"addImageErrorMessage",void 0);_.c([_.f(),_.w("design:type",Object)],dz.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],dz.prototype,"errorMessage",void 0);
_.c([_.f(),_.w("design:type",Object)],dz.prototype,"imageUploadEndpoint",void 0);_.c([_.f(),_.w("design:type",Array)],dz.prototype,"images",void 0);_.c([_.f(),_.w("design:type",eu)],dz.prototype,"initialPicker",void 0);_.c([_.f(),_.w("design:type",eu)],dz.prototype,"addImagePicker",void 0);_.c([_.f(),_.w("design:type",um)],dz.prototype,"uploadManager",void 0);_.c([_.f(),_.w("design:type",Object)],dz.prototype,"selectedImageIndex",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dz.prototype,"modern",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dz.prototype,"maxNumImagesPerPost",void 0);_.c([_.t("imageUploadEndpoint"),_.w("design:type",Number),_.w("design:paramtypes",[])],dz.prototype,"maxAspectRatio",null);_.c([_.t("imageUploadEndpoint"),_.w("design:type",Number),_.w("design:paramtypes",[])],dz.prototype,"maxFileSizeMb",null);
_.c([_.t("data.icon.iconType"),_.w("design:type",Object),_.w("design:paramtypes",[])],dz.prototype,"dropIcon",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],dz.prototype,"selectionCancel",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],dz.prototype,"previewCancel",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],dz.prototype,"dataForAddImageButton",null);
_.c([_.t("errorMessage"),_.w("design:type",String),_.w("design:paramtypes",[])],dz.prototype,"dropzoneClass",null);_.c([_.t("images"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],dz.prototype,"showImagesPreview",null);_.c([_.t("images"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],dz.prototype,"containMaxImages",null);_.c([_.$v("addImageErrorMessage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dz.prototype,"observeAddImageError",null);
_.c([_.$v("showImagesPreview"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dz.prototype,"observeDragToReorder",null);_.c([_.t("images","selectedImageIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],dz.prototype,"selectedImageData",null);_.c([_.t("images","selectedImageIndex"),_.w("design:type",Array),_.w("design:paramtypes",[])],dz.prototype,"thumbnailRenderers",null);
_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dz.prototype,"onRendererstamperFinished",null);_.c([_.$v("imageUploadEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dz.prototype,"setUpImagePicker",null);_.c([_.z({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],dz);
_.A(dz,"ytd-backstage-multi-image-select-renderer",function(){if(Lye!==void 0)return Lye;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Lye=v},{mode:1});var ot7;var JV6;var GcE;var ED=function(){var v=_.P.apply(this,arguments)||this;v.boundCaptureFocus=function(e){v.onCaptureFocus(e)};
return v};
_.V(ED,_.P);_.W=ED.prototype;_.W.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.W.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.W.onCaptureFocus=function(v){_.vg(v).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.W.getIconType=function(v){return v?"yt-icons:"+v.toLowerCase():null};
_.W.onSelect=function(){var v;if((v=this.data)==null?0:v.onSelectCommand)if(_.N("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var e;((e=_.L(this.data.onSelectCommand.commandMetadata,_.$B))==null?0:e.url)?_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.dk().resolve(_.EI).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.vP.Object.defineProperties(ED.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.vv(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ED.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ED.prototype,"data",void 0);_.c([_.sg("#item"),_.w("design:type",HTMLElement)],ED.prototype,"item",void 0);_.c([_.t("data.label"),_.w("design:type",String),_.w("design:paramtypes",[])],ED.prototype,"label",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ED.prototype,"value",null);_.c([_.z({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],ED);
_.A(ED,"ytd-privacy-dropdown-item-renderer",function(){if(GcE!==void 0)return GcE;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return GcE=v},{mode:1});var TC=function(){var v=_.P.apply(this,arguments)||this;v.value="";v.label="";v.disabled=!1;return v};
_.V(TC,_.P);_.W=TC.prototype;_.W.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"}}}};
_.W.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.W.dataChanged=function(){this.reset()};
_.W.valueChanged=function(){var v;if(this.value&&(v=this.data)!=null&&v.entries){v=_.a(this.data.entries);for(var e=v.next();!e.done;e=v.next())if((e=this.getRendererForEntry(e.value))&&this.getItemRendererValue(e)===this.value){this.label=this.ytComponentBehavior.getSimpleString(e.label);break}}};
_.W.setInitialLabel=function(){if(this.data&&this.data.entries)for(var v=_.a(this.data.entries),e=v.next();!e.done;e=v.next())if(e=this.getRendererForEntry(e.value)){if(e.isSelected){this.label=this.ytComponentBehavior.getSimpleString(e.label);break}this.data.label&&(this.label=this.data.label)}};
_.W.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var v=_.a(this.data.entries),e=v.next();!e.done;e=v.next()){e=this.getRendererForEntry(e.value);var d=void 0;if((d=e)==null?0:d.isSelected)return this.getItemRendererValue(e)||-1}return-1};
_.W.getItemRendererValue=function(v){return"stringValue"in v||"int32Value"in v?v.stringValue||v.int32Value||null:null};
_.W.getRendererForEntry=function(v){return v.dropdownItemRenderer||v.privacyDropdownItemRenderer||v.navigationDropdownItemRenderer||null};
_.W.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("value-changed",this.value))};
_.W.updateValueFromBinding=function(v){this.value=v.detail.value};
TC.prototype.valueChangedForBinding=TC.prototype.valueChangedForBinding;TC.prototype.valueChanged=TC.prototype.valueChanged;TC.prototype.dataChanged=TC.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],TC.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],TC.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],TC.prototype,"value",void 0);_.c([_.f(),_.w("design:type",Object)],TC.prototype,"label",void 0);_.c([_.sg("#entries"),_.w("design:type",Object)],TC.prototype,"entries",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],TC.prototype,"disabled",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TC.prototype,"dataChanged",null);
_.c([_.V1("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TC.prototype,"valueChanged",null);_.c([_.$v("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TC.prototype,"valueChangedForBinding",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],TC);
_.A(TC,"ytd-flat-dropdown-renderer",function(){if(JV6!==void 0)return JV6;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return JV6=v},{mode:1});var MR7;var Su=function(){var v=_.P.apply(this,arguments)||this;v.quizOptions=[];v.explanationPlaceholderText="";v.optionPlaceholderText="";v.correctAnswerIndex=-1;v.isMarkAnswerTooltipShown=!1;v.timer=0;return v};
_.V(Su,_.P);_.W=Su.prototype;_.W.dataChanged=function(){this.optionPlaceholderText=_.vv(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.vv(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.W.onMarkCorrectAnswer=function(v){var e,d=((e=this.quizOptions[this.correctAnswerIndex])==null?void 0:e.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[v.model.index]=Object.assign({},this.quizOptions[v.model.index],{explanationText:d,isCorrect:!0});this.correctAnswerIndex=v.model.index;this.quizOptions=[].concat(_.t7(this.quizOptions))};
_.W.updatePlaceholderTexts=function(){for(var v=!1,e=[],d=0;d<this.quizOptions.length;d++){var E=this.optionPlaceholderText+" "+(d+1),T=void 0;((T=this.quizOptions[d])==null?void 0:T.placeholderText)!==E?(v=!0,e.push(Object.assign({},this.quizOptions[d],{placeholderText:E}))):e.push(this.quizOptions[d])}v&&(this.quizOptions=e);this.isValid()?_.Iq(this.hostElement,"yt-commentbox-post-enable"):_.Iq(this.hostElement,"yt-commentbox-post-disable")};
_.W.getSimpleString=function(v){return _.vv(v)};
_.W.createQuizOptions=function(v){var e=[],d;v=(d=v==null?void 0:v.minQuizOptions)!=null?d:0;for(d=0;d<v;d++)e.push(this.createQuizOption());return e};
_.W.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.t7(this.quizOptions),[this.createQuizOption()]))};
_.W.onInput=function(){this.quizOptions=[].concat(_.t7(this.quizOptions))};
_.W.onExplanationInput=function(){_.Iq(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.W.onRemoveQuizOption=function(v){this.quizOptions.splice(v.model.index,1);v.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:v.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.t7(this.quizOptions));this.quizOptions.length===0&&_.Iq(this.hostElement,"yt-quiz-attachment-dismiss")};
_.W.updateHintRenderer=function(){var v=this;clearTimeout(this.timer);this.timer=setTimeout(function(){v.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.W.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var v=0,e=0,d=_.a(this.quizOptions),E=d.next();!E.done;E=d.next()){E=E.value;var T=void 0;if(((T=E.optionText)==null?void 0:T.trim())!==""||E.isCorrect){E.isCorrect&&e++;T=void 0;if(this.hasCustomOptionText&&((T=E.optionText)==null?void 0:T.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;v++}}return v>=
Number(this.editorInfo.minQuizOptions)&&e===1};
_.W.getPostCreateOptions=function(){for(var v=[],e=_.a(this.quizOptions),d=e.next();!d.done;d=e.next()){d=d.value;var E=void 0;((E=d.optionText)==null?void 0:E.trim())!==""&&v.push({pollOption:{text:d.optionText,explanation:d.explanationText},isCorrect:d.isCorrect})}return v};
_.W.getExplanationText=function(){var v;return((v=this.quizOptions[this.correctAnswerIndex])==null?void 0:v.explanationText)||""};
_.W.maybeDisplayMarkAnswerEduToolTip=function(){var v,e,d,E,T,S,O;this.shouldShowMarkAnswerTooltip()&&((v=this.editorInfo)==null?0:(e=v.markAnswerButton)==null?0:(d=e.buttonRenderer)==null?0:(E=d.hint)==null?0:(T=E.hintRenderer)==null?0:(S=T.content)==null?0:(O=S.bubbleHintRenderer)==null?0:O.text)&&(_.Tf.getInstance(),v=SN(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,(v==null?void 0:v.length)>0&&this.optionSelectors&&_.K1(v[0],this.optionSelectors[0]))};
_.W.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var v=0,e=_.a(this.quizOptions),d=e.next();!d.done;d=e.next()){d=d.value;var E=void 0;((E=d.optionText)==null?void 0:E.trim())!==""&&v++;if(d.isCorrect)return!1}return v<2?!1:!0};
_.W.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.W.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.W.updateOptionTextFromBinding=function(v){if(v.target){var e=Array.from(_.IB(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(v.target);if(e>=0){var d;this.quizOptions[e].optionText=(d=v.detail.value)!=null?d:""}}};
_.vP.Object.defineProperties(Su.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(v=this.editorInfo)==null?void 0:(e=v.addOptionButton)==null?void 0:e.buttonRenderer;d&&(d.style="STYLE_SUGGESTIVE",d.size="SIZE_SMALL",d.isDisabled=!this.isAllowedToAddOption);return(d==null?0:d.text)?d:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var v,e;return this.quizOptions.length<((e=(v=this.editorInfo)==null?void 0:v.maxQuizOptions)!=null?e:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(v){var e;return(e=v.optionText)==null?void 0:e.trim()})}}});
Su.prototype.updatePlaceholderTexts=Su.prototype.updatePlaceholderTexts;Su.prototype.dataChanged=Su.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],Su.prototype,"editorInfo",void 0);_.c([_.f(),_.w("design:type",Array)],Su.prototype,"quizOptions",void 0);_.c([_.f(),_.w("design:type",Object)],Su.prototype,"explanationPlaceholderText",void 0);_.c([_.Nr(".option-selector-button"),_.w("design:type",Array)],Su.prototype,"optionSelectors",void 0);
_.c([_.V1("editorInfo"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Su.prototype,"dataChanged",null);_.c([_.t("editorInfo","isAllowedToAddOption","quizOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],Su.prototype,"addAnswerButton",null);_.c([_.t("editorInfo","quizOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],Su.prototype,"isAllowedToAddOption",null);
_.c([_.V1("quizOptions"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Su.prototype,"updatePlaceholderTexts",null);_.c([_.t("quizOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],Su.prototype,"hasCustomOptionText",null);_.c([_.z({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Su);
_.A(Su,"ytd-backstage-quiz-editor-renderer",function(){if(MR7!==void 0)return MR7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return MR7=v},{mode:2});var tR2;var fae=(q0.FIRSTDAYOFWEEK+1)%7;var REe;var PFJ=[],xc2=0,BUn=0;xc2=0;BUn=24;if(.25*(BUn-xc2)<0)REe=[];else{for(var CFc=xc2;CFc<BUn;CFc+=.25)PFJ.push(CFc);REe=PFJ}var X_g=REe.map(function(v){v=v*60*60;return{secondsSinceMidnight:v,text:(new DY(7)).format(new Date(0,0,0,0,0,v))}});var zE2;var W2=function(){var v=_.P.apply(this,arguments)||this;v.skipNextOpenDialog=!1;v.errorMessage="";v.previousMonthLabel=_.sz("PREVIOUS_MONTH_LABEL");v.nextMonthLabel=_.sz("NEXT_MONTH_LABEL");return v};
_.V(W2,_.P);_.W=W2.prototype;_.W.attached=function(){var v=this,e=new MutationObserver(function(){v.JSC$15696_calendarMain.scrollHeight>0&&(e.disconnect(),v.calendarConfig&&v.calendarConfig.selectedDate&&v.scrollToDate())});
e.observe(this.JSC$15696_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){e.disconnect()},1E3)};
_.W.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.W.onDateTextChange=function(){if(this.calendarConfig){var v=this.validateDateText();v.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(v.details)):this.textbox.setAttribute("invalid","")}};
_.W.handleDayClick=function(v){v.model.day.date&&(this.commitDate(v.model.day.date),this.dialog.close())};
_.W.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var v=jT0(this.calendarConfig.selectedDate,this.renderData);v!==void 0&&this.JSC$15696_calendarMain.scrollToIndex(v)}};
_.W.scrollToNextMonth=function(){this.JSC$15696_calendarMain.scrollToIndex(this.JSC$15696_calendarMain.firstVisibleIndex+1)};
_.W.scrollToPrevMonth=function(){this.JSC$15696_calendarMain.firstVisibleIndex===0&&this.JSC$15696_calendarMain.scrollTo(0,0);this.JSC$15696_calendarMain.scrollToIndex(this.JSC$15696_calendarMain.firstVisibleIndex-1)};
_.W.onFormSubmit=function(v){v.preventDefault();this.calendarConfig&&(v=this.validateDateText(),v.isValid&&(this.commitDate(v.details),this.dialog.close()))};
_.W.onEscOrClickingOutside=function(v){v=v.detail.path&&!!v.detail.path.length&&v.detail.path[0];if(v.classList.contains("ytd-calendar-date-picker")){v===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var e=0;e<this.dropdownButton.children.length;e++)this.dropdownButton.children[e]===v&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}v=this.textbox.value!==this.dateText;e=this.validateDateText();v&&e.isValid&&this.commitDate(e.details);this.dialog.close();this.textbox.value=
this.dateText};
_.W.commitDate=function(v){this.calendarConfig&&(this.set("calendarConfig.selectedDate",v),_.Iq(this.hostElement,"ytd-calendar-date-selected",v))};
_.W.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var v=this.textbox.value;var e=new Date;v=(new lEO(2)).parse(v,e,{validate:!0})===v.length?K6M(e):void 0;if(!v)return this.errorMessage=_.sz("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};e=this.calendarConfig.start;var d=this.calendarConfig.end;if(mb$(v,e))return this.errorMessage=_.sz("ENTER_DATE_OR_LATER",{allowed_date:hqM(e)}),{isValid:!1,details:void 0};if(mb$(d,v))return this.errorMessage=
_.sz("ENTER_DATE_OR_EARLIER",{allowed_date:hqM(d)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:v}};
_.vP.Object.defineProperties(W2.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?hqM(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var v=this.calendarConfig,e=[],d=0;d<7;d++)e.push(q0.NARROWWEEKDAYS[(d+fae)%7]);d=[];for(var E=new Date(v.start.year,v.start.month);E.getFullYear()<v.end.year||E.getFullYear()===v.end.year&&E.getMonth()<=v.end.month;){var T=d,S=T.push,O=E.getFullYear(),b=E.getMonth(),Y=v,q=void 0,r=[],h=Object.freeze({extraCssClass:"invisible",debugClass:""}),K=new Date(O,b),k=K6M(K);K=K.getDay();for(var J=K6M(new Date);k.month===
b;){K!==fae&&q||(q=Array.from({length:7}).fill(h),r.push(q));var R={date:{year:O,month:b,day:k.day},extraCssClass:"",debugClass:""};Y.selectedDate&&R.date&&Y8S(R.date,Y.selectedDate)&&(R.extraCssClass+=" selected");if(mb$(k,Y.start)||mb$(Y.end,k))R.extraCssClass+=" disabled";Y8S(k,J)&&(R.extraCssClass+=" today");R.extraCssClass=R.extraCssClass.trim();q[(K-fae+7)%7]=R;k=q8U(k);K=(K+1)%7}S.call(T,{weeks:r,monthLabel:q0.SHORTMONTHS[b]+" "+O,year:O,month:b,monthLabelExtraCssClass:r[0][2]===h?"shift-down-label":
""});E.setMonth(E.getMonth()+1)}return{months:d,daysOfWeekLabel:e}}}}});
W2.prototype.onEscOrClickingOutside=W2.prototype.onEscOrClickingOutside;W2.prototype.scrollToDate=W2.prototype.scrollToDate;_.c([_.f(),_.w("design:type",Object)],W2.prototype,"calendarConfig",void 0);_.c([_.f(),_.w("design:type",Object)],W2.prototype,"skipNextOpenDialog",void 0);_.c([_.f(),_.w("design:type",Object)],W2.prototype,"errorMessage",void 0);_.c([_.f(),_.w("design:type",Object)],W2.prototype,"previousMonthLabel",void 0);
_.c([_.f(),_.w("design:type",Object)],W2.prototype,"nextMonthLabel",void 0);_.c([_.sg("#textbox"),_.w("design:type",HTMLInputElement)],W2.prototype,"textbox",void 0);_.c([_.sg("#calendar-dialog"),_.w("design:type",Object)],W2.prototype,"dialog",void 0);_.c([_.sg("#calendar-main"),_.w("design:type",Object)],W2.prototype,"JSC$15696_calendarMain",void 0);_.c([_.sg("#date-picker"),_.w("design:type",HTMLElement)],W2.prototype,"dropdownButton",void 0);
_.c([_.t("calendarConfig.selectedDate"),_.w("design:type",String),_.w("design:paramtypes",[])],W2.prototype,"dateText",null);_.c([_.t("calendarConfig","calendarConfig.selectedDate"),_.w("design:type",Object),_.w("design:paramtypes",[])],W2.prototype,"renderData",null);_.c([_.$v("renderData","calendarConfig.selectedDate"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],W2.prototype,"scrollToDate",null);
_.c([_.Kq("iron-overlay-canceled"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],W2.prototype,"onEscOrClickingOutside",null);_.c([_.lh({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],W2);
_.A(W2,"ytd-calendar-date-picker",function(){if(zE2!==void 0)return zE2;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return zE2=v},{mode:2});var lag=_.sz("UTC_OFFSET_FORMAT",{utc_offset:(new DY("Z")).format(new Date)}),Hnn=(new Date).getTimezoneOffset()*-60,AV2=new Date,Zni,cVn=nQ(AV2.getTimezoneOffset());Zni=sBM(kVJ(cVn,AV2));var w_u=_.sz("LOCAL_TIME_GMT_LABEL",{gmt_text:Zni.replace("+0","+").replace("-0","-").replace(":00","")}),av=function(){var v=_.P.apply(this,arguments)||this;v.selectedTimeIndex=0;v.selectedTimezoneIndex=0;v.timeOfDayOptions=X_g;return v};
_.V(av,_.P);_.W=av.prototype;_.W.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var v=rD3();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=v,this.selectedTimeIndex=0;else{var e=$b3(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},v,{selectedDate:e.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(d){return d.secondsSinceMidnight===e.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.W.onDatePicked=function(v){this.selectedDate=v.detail};
_.W.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Iq(this.hostElement,"ytd-date-time-selection-cancelled")};
_.W.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var v=this.selectedDate;v=new Date(v.year,v.month,v.day);_.Iq(this.hostElement,"ytd-date-time-selection-update",Math.floor(v.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+v.getTimezoneOffset()*60))}};
_.W.getTimezoneFormat=function(v){return v.localizedDisplayText?v.localizedDisplayText:_.sz("TIMEZONE_FORMAT",{utc_offset_text:""+v.localizedUtcOffset,city_name:""+v.localizedName})};
_.W.updateSelectedTimeIndexFromBinding=function(v){this.selectedTimeIndex=v.detail.value};
_.W.updateSelectedTimezoneIndexFromBinding=function(v){this.selectedTimezoneIndex=v.detail.value};
_.vP.Object.defineProperties(av.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var v=this.data.timezoneOptions;var e={name:"Etc/Unknown",localizedName:_.sz("LOCAL_TIME_LABEL"),localizedUtcOffset:lag,utcOffsetSec:""+Hnn,localizedDisplayText:w_u};v?v.length&&v[0].name!==e.name&&(v[0].localizedDisplayText||(e.localizedDisplayText=""),v.unshift(e)):v=[e];return v}}},
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]}}});
av.prototype.onDateTimeTimezoneChange=av.prototype.onDateTimeTimezoneChange;av.prototype.onDatePicked=av.prototype.onDatePicked;av.prototype.updateDefaultSelectedValue=av.prototype.updateDefaultSelectedValue;_.c([_.f(),_.w("design:type",Object)],av.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],av.prototype,"calendarConfig",void 0);_.c([_.f(),_.w("design:type",Object)],av.prototype,"selectedDate",void 0);_.c([_.f(),_.w("design:type",Object)],av.prototype,"selectedTimeIndex",void 0);
_.c([_.f(),_.w("design:type",Object)],av.prototype,"selectedTimezoneIndex",void 0);_.c([_.sg("#time-listbox"),_.w("design:type",Object)],av.prototype,"timeListBox",void 0);_.c([_.sg("#timezone-listbox"),_.w("design:type",Object)],av.prototype,"timezoneListBox",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],av.prototype,"rendererStamperBehavior",void 0);_.c([_.t("data.timezoneOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],av.prototype,"timeZones",null);
_.c([_.V1("data","timeZones"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],av.prototype,"updateDefaultSelectedValue",null);_.c([_.t("selectedTimezoneIndex","timeZones"),_.w("design:type",Object),_.w("design:paramtypes",[])],av.prototype,"selectedTimezone",null);_.c([_.t("selectedTimeIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],av.prototype,"selectedTime",null);
_.c([_.Kq("ytd-calendar-date-selected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],av.prototype,"onDatePicked",null);_.c([_.$v("selectedTimezone","selectedTime","selectedDate"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],av.prototype,"onDateTimeTimezoneChange",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],av);
_.A(av,"ytd-date-time-picker-renderer",function(){if(tR2!==void 0)return tR2;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return tR2=v},{mode:1});var FyJ;var id=function(){var v=_.P.apply(this,arguments)||this;v.boundOnTapDismissButton=function(){v.dismissTapHandler()};
v.dismissButtonOverrides={size:"XS"};return v};
_.V(id,_.P);id.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}}}}}};
id.prototype.dismissTapHandler=function(){_.Iq(this.hostElement,"yt-backstage-attachment-dismissed")};
id.prototype.computeAttachmentType=function(v){return v?v.backstageImageRenderer?"image":v.videoRenderer?"video":"none":"none"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],id.prototype,"attachmentPreview",void 0);_.c([_.f(),_.w("design:type",Object)],id.prototype,"dismissButton",void 0);_.c([_.f(),_.w("design:type",Object)],id.prototype,"boundOnTapDismissButton",void 0);
_.c([_.f(),_.w("design:type",Object)],id.prototype,"dismissButtonOverrides",void 0);_.c([_.f({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.w("design:type",String)],id.prototype,"attachmentType",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],id);
_.A(id,"ytd-backstage-dismissable-attachment",function(){if(FyJ!==void 0)return FyJ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return FyJ=v},{mode:1});var QQe;var OD=function(){var v=_.P.apply(this,arguments)||this;v.selectedVideoId=void 0;v.picker=void 0;v.dismissButtonOverrides={size:"XS"};v.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return v};
_.V(OD,_.P);_.W=OD.prototype;_.W.onServiceRequestCompleted=function(v){v.stopPropagation()};
_.W.handleAddVideoPreviewAction=function(v){v=this.get("addVideoPreviewAction",v);this.onGetVideoPreviewSuccess(v)};
_.W.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}}}}}};
_.W.onLaunchVideoPicker=function(v){var e=this,d=_.vv(this.get("addVideoLinkAction.title",v)),E=this.get("addVideoLinkAction.onePickHostId",v);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",v);E&&(this.picker||(d=_.IT7(_.X70(E).setTitle(d).addView(WqM()).addView(SIc()),function(T){e.onPickVideo(T)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",v)||d.addView("youtube"),this.picker=d.build()),this.picker.setVisible(!0))};
_.W.onPickVideo=function(v){if(v)if(v.action==="cancel")_.Iq(this.hostElement,"yt-video-link-button-cancel");else if(v.action==="picked"){v=v.docs;if(!v||v.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(v=(v==null?0:v.length)?v[0]:void 0)?v.id:void 0;this.setVideoPreview()}};
_.W.setVideoPreview=function(){var v=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){v.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.W.onGetVideoPreviewSuccess=function(v){if(v&&v.videoPreview&&v.cancelButton)this.videoPreview=v.videoPreview,this.cancelButton=v.cancelButton,_.Iq(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.W.onGetVideoPreviewError=function(){this.cancel()};
_.W.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Iq(this.hostElement,"yt-video-link-cancel")};
_.W.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
OD.prototype.onServiceRequestCompleted=OD.prototype.onServiceRequestCompleted;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],OD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],OD.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],OD.prototype,"videoPreview",void 0);_.c([_.f(),_.w("design:type",Object)],OD.prototype,"cancelButton",void 0);_.c([_.f(),_.w("design:type",Object)],OD.prototype,"getVideoPreviewCommand",void 0);_.c([_.f(),_.w("design:type",Object)],OD.prototype,"dismissButtonOverrides",void 0);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],OD.prototype,"onServiceRequestCompleted",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],OD);
_.A(OD,"ytd-backstage-video-link-attachment",function(){if(QQe!==void 0)return QQe;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return QQe=v},{mode:1});var gtB;var uE6;var ntI;var Iv=function(){return _.P.apply(this,arguments)||this};
_.V(Iv,_.P);Iv.prototype.dataChanged=function(){this.active=!1};
Iv.prototype.onTap=function(){_.Iq(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Iv.prototype.identity=function(v){return v};
_.vP.Object.defineProperties(Iv.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E;if((v=this.data)==null?0:(e=v.image)==null?0:(d=e.thumbnails)==null?0:(E=d[0])==null?0:E.url)return v=this.data.image.thumbnails[0].url,v.startsWith("data:image/svg+xml")?Jr(v):_.xm(v)}}});
Iv.prototype.dataChanged=Iv.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],Iv.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Iv.prototype,"active",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Iv.prototype,"dataChanged",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Iv.prototype,"imageSrc",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Iv);
_.A(Iv,"ytd-emoji-suggestion",function(){if(ntI!==void 0)return ntI;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ntI=v},{mode:1});var Dc0=/.*([:@#].*?)$/,bd=function(){var v=_.P.apply(this,arguments)||this;v.suggestions=[];v.suggestionIndex=-1;v.JSC$15724_lastSuggestionRange=null;return v};
_.V(bd,_.P);_.W=bd.prototype;_.W.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.W.getSuggestions=function(v){var e=[],d=o$A(this.emojiManager,v.substr(0,3));if(d)for(var E in d)if(E.toLocaleLowerCase().indexOf(v)===0){var T=d[E];if(T&&T.emojiId){T=wD(this.emojiManager,T.emojiId);var S=void 0,O=void 0,b=void 0,Y=void 0,q=((S=T)==null?0:S.isCustomEmoji)?(O=T)==null?void 0:(b=O.shortcuts)==null?void 0:b[0]:(Y=T)==null?void 0:Y.emojiId;S=void 0;e.push({suggestion:{image:(S=T)==null?void 0:S.image,alt:q,text:E}});if(e.length>=64)break}}return e?e.sort(function(r,h){return h.suggestion.text<
r.suggestion.text?-1:h.suggestion.text===r.suggestion.text?0:1}):null};
_.W.insertSuggestion=function(v){_.Iq(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15724_lastSuggestionRange,text:v.alt});this.dropdown.opened=!1};
_.W.updateSuggestionsAtCaret=function(v){this.updateSuggestions(v,this.retrieveTextBeforeRange(v))};
_.W.offsetStartOfRangeBy=function(v,e){v.startOffset>=e&&v.setStart(v.startContainer,v.startOffset-e)};
_.W.updateSuggestions=function(v,e){var d=this;this.JSC$15724_lastSuggestionRange&&(this.JSC$15724_lastSuggestionRange.detach(),this.JSC$15724_lastSuggestionRange=null);if((e=Dc0.exec(e))&&e.length&&(e=e[e.length-1].toLocaleLowerCase(),e.length>2||e===":_")&&(this.offsetStartOfRangeBy(v,e.length),this.JSC$15724_lastSuggestionRange=v,(v=this.getSuggestions(e))&&v.length)){this.suggestions=v;_.Uh(this,function(){d.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(v.length-1);return}this.dropdown.opened=!1};
_.W.onKeyDown=function(v){if(this.dropdown.opened)switch(v.key){case "Escape":this.dropdown.opened=!1;v.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);v.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);v.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),v.preventDefault()}};
_.W.onKeyUp=function(v,e){switch(v.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(e);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(e)}};
_.W.onKeyPress=function(v){v.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),v.preventDefault())};
_.W.changeSuggestionIndex=function(v){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(v+this.suggestions.length)%this.suggestions.length,v=this.dropdownContent.children[this.suggestionIndex],v.active=!0,this.dropdownContent.scrollTop=v.offsetTop)};
_.W.retrieveTextBeforeRange=function(v){var e=v.startContainer;return e&&e.nodeType===Node.TEXT_NODE?e.textContent.substr(0,v.startOffset):""};
bd.prototype.onKeyPress=bd.prototype.onKeyPress;bd.prototype.onKeyUp=bd.prototype.onKeyUp;bd.prototype.onKeyDown=bd.prototype.onKeyDown;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],bd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Array)],bd.prototype,"suggestions",void 0);_.c([_.f(),_.w("design:type",_.Zb)],bd.prototype,"emojiManager",void 0);_.c([_.f(),_.w("design:type",Number)],bd.prototype,"verticalSuggestionsOffset",void 0);
_.c([_.sg("#dropdown"),_.w("design:type",Object)],bd.prototype,"dropdown",void 0);_.c([_.sg("#dropdown-content"),_.w("design:type",HTMLDivElement)],bd.prototype,"dropdownContent",void 0);_.c([_.Kq("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],bd.prototype,"onKeyDown",null);_.c([_.Kq("keyup"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent,Range]),_.w("design:returntype")],bd.prototype,"onKeyUp",null);
_.c([_.Kq("keypress"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],bd.prototype,"onKeyPress",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-emoji-input"})],bd);
_.A(bd,"ytd-emoji-input",function(){if(uE6!==void 0)return uE6;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return uE6=v},{mode:2});var Uce;var YO=function(){var v=_.P.apply(this,arguments)||this;v.hasMaxOptions=!1;return v};
_.V(YO,_.P);_.W=YO.prototype;_.W.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.W.setPrefilledChoices=function(v){var e=this;this.set("pollOptions",[]);var d;for(d=0;d<Math.min(v.length,this.data.maxPollOptions);d++)this.push("pollOptions",v[d].substring(0,this.data.maxPollOptionChars));for(;d<this.data.minPollOptions;d++)this.push("pollOptions","");this.hasMaxOptions=d>=this.data.maxPollOptions;_.Uh(this,function(){for(var E=e.pollOptions,T=_.IB(e.hostElement).querySelectorAll(".poll-option-input"),S=0;S<T.length;S++)T[S].value=E[S]})};
_.W.focusChanged=function(){_.qr(this.hostElement)};
_.W.onInput=function(){var v=this;_.gi(this,"onInput",function(){v.isValid()?_.Iq(v.hostElement,"yt-commentbox-post-enable"):_.Iq(v.hostElement,"yt-commentbox-post-disable")},300)};
_.W.setPollOptions=function(){var v=[],e,d=((e=this.data)==null?0:e.minPollOptions)?this.data.minPollOptions:0;for(e=0;e<d;e++)v.push("");return v};
_.W.addPollOption=function(){var v=this;_.Iq(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.RM.addLowPriorityJob(function(){var e;(e=_.IB(v.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||e.focus()})};
_.W.onRemovePollOption=function(v){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Iq(this.hostElement,"yt-poll-attachment-dismiss")):(v=this.repeat.indexForElement(v.target.parentNode),v!==null&&(this.splice("pollOptions",v,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Iq(this.hostElement,"yt-commentbox-post-enable"))))};
_.W.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.W.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var v=0,e=this.pollOptions.length;v<e;v++)if(this.pollOptions[v].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.W.getPollOptions=function(){return this.pollOptions};
_.W.setPollOptionsFromInputs=function(){for(var v=_.IB(this.hostElement).querySelectorAll(".poll-option-input"),e=0;e<v.length;e++)this.pollOptions[e]=v[e].value.trim()};
_.W.clearPollOptions=function(){var v=_.IB(this.hostElement).querySelectorAll(".poll-option-input");v=_.a(v);for(var e=v.next();!e.done;e=v.next())e.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.W.getSimpleString=function(v){return _.vv(v)};
_.W.updateValueFromBinding=function(v){if(v.target&&this.pollOptions){var e=Array.from(_.IB(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(v.target);if(e>=0){var d;this.pollOptions[e]=(d=v.detail.value)!=null?d:"";this.notifyPath("pollOptions."+e)}}};
YO.prototype.dataChanged=YO.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],YO.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Array)],YO.prototype,"pollOptions",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],YO.prototype,"hasMaxOptions",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],YO.prototype,"enableCreationBox",void 0);
_.c([_.sg("#repeat"),_.w("design:type",Bg)],YO.prototype,"repeat",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],YO.prototype,"dataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-poll-attachment"})],YO);
_.A(YO,"ytd-poll-attachment",function(){if(Uce!==void 0)return Uce;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Uce=v},{mode:2});var p_n;var vg6;var eVA;var dOB;var mb=function(){return _.P.apply(this,arguments)||this};
_.V(mb,_.P);_.vP.Object.defineProperties(mb.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],mb.prototype,"rendererBehaviors",void 0);_.c([_.f(),_.w("design:type",Object)],mb.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],mb.prototype,"focused",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("focused"),_.w("design:type",Object),_.w("design:paramtypes",[])],mb.prototype,"ariaSelected",null);_.c([_.lh({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],mb);
_.A(mb,"yt-user-mention-suggestion-renderer",function(){if(dOB===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;eVA===void 0&&(eVA=document.createElement("template"));var E=eVA;d.call(e,E.content.cloneNode(!0),v.content.firstChild);dOB=v}v=dOB;return v},{mode:2});var Eg2;var TFn;var yg=function(){var v=_.P.apply(this,arguments)||this;v.focusedSuggestionIndex=-1;return v};
_.V(yg,_.P);_.W=yg.prototype;_.W.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.W.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.W.setFocusedSuggestionIndex=function(v){!this.data||!this.data.suggestions||v<0||v>=this.data.suggestions.length||(this.focusedSuggestionIndex=v,v=this.getSuggestionId(v),this._setFocusedSuggestionId(v))};
_.W.advanceSuggestion=function(v){this.focusedSuggestionIndex===-1||v!==-1&&v!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+v),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.W.ensureSuggestionVisible=function(v){v=this.getSuggestionId(v);v=_.IB(this.hostElement).querySelector("[id="+v+"]");v!=null&&(v.offsetTop<this.hostElement.scrollTop?v.scrollIntoView(!0):v.offsetTop+v.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&v.scrollIntoView(!1))};
_.W.getSuggestionId=function(v){return"user-mention-suggestion-"+v};
_.W.onSuggestionTap=function(v){var e=_.L(v.model.item,kf6);this.ytRendererBehavior.logExplicitClick(e);_.Iq(this.hostElement,"yt-user-mention-suggestion-selected",{data:e,index:v.model.index})};
_.W.onSuggestionMouseMove=function(v){v.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(v.model.index)};
_.W.isSuggestionFocused=function(v,e){return v===e};
_.W.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.W.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("focused-suggestion-id-changed",this.focusedSuggestionId))};
yg.prototype.focusedSuggestionIdChangedForBinding=yg.prototype.focusedSuggestionIdChangedForBinding;yg.prototype.onDomChange=yg.prototype.onDomChange;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],yg.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],yg.prototype,"focusedSuggestionIndex",void 0);_.c([_.f({readOnly:!0}),_.w("design:type",String)],yg.prototype,"focusedSuggestionId",void 0);
_.c([_.Kq("dom-change"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],yg.prototype,"onDomChange",null);_.c([_.$v("focusedSuggestionId"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yg.prototype,"focusedSuggestionIdChangedForBinding",null);_.c([_.lh({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],yg);
_.A(yg,"yt-user-mention-suggestions-dropdown",function(){if(TFn===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Eg2===void 0&&(Eg2=document.createElement("template"));var E=Eg2;d.call(e,E.content.cloneNode(!0),v.content.firstChild);TFn=v}v=TFn;return v},{mode:2});var qj=function(){var v=_.P.apply(this,arguments)||this;v.suggestionsResponse=null;v.activeMention=null;v.selectionChangeListener=v.onSelectionChange.bind(v);v.handlesEnabled=_.N("enable_handles_in_mention_suggest_posts");v.handlesInMentionSuggestionsEnabled=_.N("handles_in_mention_suggest_posts");v.zeroPrefixMentionSuggestionEnabled=_.N("enable_zero_prefix_mention_suggestion_web");v.pendingQuery=null;v.flowNonce=null;return v};
_.V(qj,_.P);_.W=qj.prototype;_.W.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.W.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.W.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.W.hasSuggestions=function(v){return!!(v&&v.suggestions&&v.suggestions.length>0)};
_.W.onInput=function(){var v=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var e=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),d=this.activeMention.JSC$11327_getText().slice(-1)===" ",E=this.activeMention.JSC$11327_getText().slice(-2,-1)===" ",T="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11327_getText().slice(-2,
-1))>=0;T=this.zeroPrefixMentionSuggestionEnabled&&T;if(this.activeMention.isCollapsed()||(e||E||T)&&d)this.cancelActiveMention();else{var S=this.activeMention.JSC$11327_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.gi(this,"requestSuggestions",function(){v.requestSuggestions(S)},100)}}}};
_.W.onServiceRequestSent=function(v){v.stopPropagation()};
_.W.onServiceRequestCompleted=function(v){v.stopPropagation();v=v.detail.data;v.query&&(!this.pendingQuery||this.pendingQuery!==v.query)||!this.zeroPrefixMentionSuggestionEnabled&&v.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=v,this.hasSuggestions(v)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.W.onServiceRequestError=function(v){v.stopPropagation()};
_.W.onUserMentionSuggestionSelected=function(v){this.selectSuggestion(v.detail.data,v.detail.index)};
_.W.onSelectionChange=function(){if(this.activeMention){var v=_.It(),e=this.activeMention.JSC$11327_containsRange(v);v=v&&this.containsHelper(this.dropdown,v.getContainer());e||v||this.cancelActiveMention()}};
_.W.containsHelper=function(v,e){var d;if(((d=window.ShadyDOM)==null?void 0:d.noPatch)===!0)return v.contains(e);for(;e;){if(e===v)return!0;e=e instanceof ShadowRoot?e.host:e.parentNode}return!1};
_.W.maybeStartSuggest=function(){var v=_.It();if(v&&v.isCollapsed()){var e=v.JSC$11327_getStartNode(),d=v.JSC$11327_getStartOffset();if(e instanceof Text&&!(d<1)){var E=e.textContent;!(E=E&&E.charAt(d-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(E)<0||(this.activeMention=_.xZ(e,d-1,v.JSC$11327_getEndNode(),v.JSC$11327_getEndOffset()),this.flowNonce=BP(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.W.updateActiveMention=function(){if(this.activeMention){var v=_.It();v&&v.isCollapsed()&&(this.activeMention=_.xZ(this.activeMention.JSC$11327_getStartNode(),this.activeMention.JSC$11327_getStartOffset(),v.JSC$11327_getEndNode(),v.JSC$11327_getEndOffset()))}};
_.W.requestSuggestions=function(v){if(this.activeMention){var e={suggestions_query:v};this.pendingQuery=v;_.mN(this.hostElement,[this.suggestionsEndpoint,e])}};
_.W.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()};
_.W.focusPreviousSuggestion=function(v){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),v.preventDefault())};
_.W.focusNextSuggestion=function(v){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),v.preventDefault())};
_.W.selectFocusedSuggestion=function(v){if(this.hasSuggestions(this.suggestionsResponse)){var e=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.L(e,kf6)&&(this.selectSuggestion(_.L(e,kf6),this.dropdown.focusedSuggestionIndex),v.preventDefault())}};
_.W.selectSuggestion=function(v,e){if(v){var d=this.activeMention;if(d){var E=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&v.handle?_.MF(E,"\u00a0\u2068@"+v.handle+"\u2069\u00a0"):this.handlesEnabled?_.MF(E,"\u00a0"+v.displayName+"\u00a0"):_.MF(E,"\u00a0@"+v.displayName+"\u00a0");l6(E,"/channel/"+v.channelId);E.classList.add("yt-formatted-string","yt-simple-endpoint");E.setAttribute("spellcheck","false");d.isCollapsed()||d.JSC$11327_removeContents();d.insertNode(E,!0);v=document.createTextNode(" ");
E.parentNode.insertBefore(v,E.nextSibling);window.getSelection().collapse(v,1);e={suggestionSelected:{suggestionIndex:e}};if(this.zeroPrefixMentionSuggestionEnabled){var T;e.suggestionSelected.isZeroPrefix=((T=this.suggestionsResponse)==null?void 0:T.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",e);this.cancelActiveMention();_.Iq(this.hostElement,"yt-mention-inserted")}}};
_.W.getPositionTarget=function(v){return v&&v.getBrowserRangeObject()};
_.W.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.W.onFocusedSuggestionIdChanged=function(v){var e=_.AT3(this.hostElement)[0];e&&(v.detail.value?e.setAttribute("aria-activedescendant",v.detail.value):e.removeAttribute("aria-activedescendant"))};
_.W.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.W.logGELEvent=function(v,e){v={eventType:v,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};e&&(v=Object.assign(v,e));_.tI("userMentionAutoCompleteBoxEvent",v)};
qj.prototype.onDomChange=qj.prototype.onDomChange;qj.prototype.onUserMentionSuggestionSelected=qj.prototype.onUserMentionSuggestionSelected;qj.prototype.onServiceRequestError=qj.prototype.onServiceRequestError;qj.prototype.onServiceRequestCompleted=qj.prototype.onServiceRequestCompleted;qj.prototype.onServiceRequestSent=qj.prototype.onServiceRequestSent;qj.prototype.onInput=qj.prototype.onInput;_.c([_.M(_.K$),_.w("design:type",Object)],qj.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],qj.prototype,"suggestionsEndpoint",void 0);_.c([_.f(),_.w("design:type",Object)],qj.prototype,"suggestionsResponse",void 0);_.c([_.f(),_.w("design:type",Object)],qj.prototype,"activeMention",void 0);_.c([_.sg("#dropdown"),_.w("design:type",Object)],qj.prototype,"dropdown",void 0);_.c([_.sg("#iron-dropdown"),_.w("design:type",Object)],qj.prototype,"ironDropdown",void 0);
_.c([_.Kq("input"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],qj.prototype,"onInput",null);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],qj.prototype,"onServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],qj.prototype,"onServiceRequestCompleted",null);
_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],qj.prototype,"onServiceRequestError",null);_.c([_.Kq("yt-user-mention-suggestion-selected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],qj.prototype,"onUserMentionSuggestionSelected",null);
_.c([_.Kq("dom-change"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],qj.prototype,"onDomChange",null);_.c([_.lh({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],qj);
_.A(qj,"yt-user-mention-autosuggest-input",function(){if(vg6===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;p_n===void 0&&(p_n=document.createElement("template"));var E=p_n;d.call(e,E.content.cloneNode(!0),v.content.firstChild);vg6=v}v=vg6;return v},{mode:2});var rz=null;
_.xv({is:"ytd-commentbox",_template:function(){if(gtB!==void 0)return gtB;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return gtB=v},
behaviors:[_.$hM.YtHostElementBehavior,_.K$,_.$M.YtActionHandlerBehavior,_.cl.YtComponentBehavior,_.ae.YtRendererstamperBehavior,_.FGM.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(v,e){return _.h_(v.entities,"aadcGuidelinesStateEntityPayload",e)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(v,e){return _.h_(v.entities,"commentboxStateEntity",e)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.FW}},
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:_.N("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.N("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",_.hG(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(v){this.fire(v?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(v){this.set("submitButtonDisabled",void 0);this.clear();v&&this.computeIsEmojiButtonDisplayed_(v)&&(v=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&v.updateEmojiCategories()},
observePrefilledImage_:function(v,e,d){this.isValidPrefilledImage_(v,e,d)&&(this.prefilledAttachment_="image",this.prefilledImageData_=e,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(v,e){this.isValidPrefilledVideo_(v,e)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(v){v&&v.pollData&&v.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(v.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.IA();this.focus()},
detached:function(){document.removeEventListener("tap",_.hG(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(v){v=v.detail;v=v.isCustomEmoji?v.shortcuts[0]:v.emojiId;var e=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(e,v);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var v=_.It();if(v){v=v.getBrowserRangeObject();for(var e=v.commonAncestorContainer;e;){if(e===this.getEditableTextArea_())return v;e=e.parentNode}}v=this.getEditableTextArea_();v=_.PX(v,v.childNodes.length);v.select();return v.getBrowserRangeObject()},
insertTextWithEmojis_:function(v,e,d){(e=this.emojiManager.createDocumentFragment(e,!0,!1,d===void 0?!0:d))&&e.childNodes.length!==0&&(v.collapsed||v.deleteContents(),d=e.lastChild,v.insertNode(e),_.ZoJ(d).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var v=_.It();if(v){var e=v.JSC$11327_getStartNode(),d=v.JSC$11327_getEndNode();if(sTO(e)&&sTO(d)){var E=v.JSC$11327_getStartOffset(),T;if(_.i1&&e.nodeType===Node.ELEMENT_NODE&&(T=_.Xcu(e)))_.PX(T,0).select();else{T=at(e)?e:_.Xv(e,at);var S=at(d)?d:_.Xv(d,at);if(T||S)if(v.isCollapsed()){if(e.nodeType===Node.TEXT_NODE){v=!0;E===e.length&&(v=!1);if(rz==="end"||rz==="right")v=!1;e=e.parentNode;v=[].concat(_.t7(e.parentNode.childNodes)).indexOf(e)+(v?0:1);_.PX(e.parentNode,
v).select()}}else T?T.previousSibling&&T.previousSibling.length>0?_.xZ(d,v.JSC$11327_getEndOffset(),T.previousSibling,T.previousSibling.length-1).select():(e=document.createTextNode("\u200b"),T.parentNode.insertBefore(e,T),_.xZ(d,v.JSC$11327_getEndOffset(),e,0).select()):S&&(S.nextSibling&&S.nextSibling.length>0?_.xZ(e,v.JSC$11327_getStartOffset(),S.nextSibling,1).select():(d=document.createTextNode("\u200b"),S.parentNode.insertBefore(d,S.nextSibling),_.xZ(e,v.JSC$11327_getStartOffset(),d,d.length).select()));
rz=null}}else rz=null}else rz=null},
leftKeyPressed_:function(){rz="left"},
rightKeyPressed_:function(){rz="right"},
endKeyPressed_:function(){rz="end"},
maybeDeleteChip_:function(){var v=JDW(!0);if(v){var e=_.It(),d=e.JSC$11327_getStartNode();e=e.JSC$11327_getStartOffset();_.Gk(d,e,v,v.childNodes.length).select()}},
maybeBackspaceChip_:function(){var v=JDW(!1);if(v){var e=_.It(),d=e.JSC$11327_getStartNode();e=e.JSC$11327_getStartOffset();_.Gk(d,e,v,0).select()}},
maybeBackspaceChipWordMode_:function(v){var e=_.It();if(e.isCollapsed()){var d=e.JSC$11327_getStartNode();e=e.JSC$11327_getStartOffset();var E=Gi$(d,e,!0);E&&(_.Gk(d,e,E,0).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(v){var e=_.It();if(e.isCollapsed()){var d=e.JSC$11327_getStartNode();e=e.JSC$11327_getStartOffset();var E=Gi$(d,e,!1);E&&(_.Gk(d,e,E,E.childNodes.length).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
onTap_:function(v){if(!v.defaultPrevented&&(v.currentTarget.tagName==="YTD-COMMENTBOX"&&at(v.target)&&v.preventDefault(),this.isEmojiPickerDisplayed)){var e=this.$$("#emojis"),d=this.$$("#emoji-button"),E=this.getEditableTextArea_();if((v=v.path?v.path:v.composedPath&&v.composedPath())&&!v.includes(e)&&!v.includes(E)&&!v.includes(d))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(v,e,d){return v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&e!==void 0&&e.encryptedBlobId!==null&&e.sourceExternalVideoId!==null&&d!==void 0&&d.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(v,e){return v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!e&&!!e.videoRenderer&&!!e.videoRenderer.videoId},
isValidPrefilledAttachment_:function(v,e,d){return this.isValidPrefilledImage_(v,e,d)||this.isValidPrefilledVideo_(v,d)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.N("enable_multi_image_post_creation")){var v=this.$$("ytd-backstage-multi-image-select-renderer");v&&v.hasImages()&&v.cancel()}else(v=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&v.cancel();(v=this.$["poll-attachment"])&&this.hasPoll_&&v.clearPollOptions();(v=this.$["image-poll-attachment"])&&this.hasImagePoll_&&v.resetPollOptions();(v=this.$["quiz-attachment"])&&this.hasQuiz_&&v.resetQuizOptions();
(v=this.$["video-link-attachment"])&&this.hasVideo_&&v.cancel();(v=this.$["access-restrictions-selector"].firstElementChild)&&v.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 _.IB(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.IB(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(v,e){v=ki0(v,this.emojiManager,e).cloneNode(!0);for(e=v.firstChild;e;)if(e.nodeType!==1)e=e.nextSibling;else switch(e.tagName){case "BR":var d=_.k0();_.Fg2(d,e);e=d.nextSibling;break;case "DIV":(d=e.lastChild)&&e.nextSibling&&_.JZ(_.k0(),d);e.previousSibling&&(e.previousSibling.nodeType===1||e.previousSibling.nodeType===3&&!e.previousSibling.textContent.endsWith("\n"))&&_.od(_.k0(),e);d&&d.nodeName==="BR"&&_.KX(d);d=e;e.hasChildNodes()?(e=e.firstChild,
_.QE6(d)):(e=e.nextSibling,_.KX(d));break;default:e=e.nextSibling}return Mf7(v)},
onAddImageError_:function(v){v.stopPropagation();this.errorMessage_=_.pQ(v.detail)},
setTextAreaValue_:function(v){v||(v="");var e=this.getEditableFormattedString_();e.text="";this.getEditableTextArea_().innerText="";typeof v==="string"&&(v={runs:[{text:v}]});e.text=v},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();rz=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var v=this.getEditableTextArea_();v&&(_.PX(v,v.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Bb("HTML_DIR")==="rtl"){var v=this.getEditableTextArea_(),e=this.getTextAreaValue()!==""?"auto":"rtl";v.setAttribute("dir",e)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var v;return Nyt((v=this.$["quiz-attachment"])==null?void 0:v.getExplanationText())||Nyt(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var v=null;if(this.isEmojiButtonDisplayed){var e=this.getInputRange_();e&&(v=this.emojiInput.retrieveTextBeforeRange(e))}this.insertText_(v,!0);this.updateCharCount_();this.setSubmitButton_();v=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=v.scrollHeight>v.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var v=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:v})},
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(v){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(v)},
onPasteEmoji_:function(v){v.preventDefault();v.stopImmediatePropagation();v=v.clipboardData.getData("text/plain");this.insertText_(v,!1,!1)},
insertText_:function(v,e,d){e=e===void 0?!1:e;d=d===void 0?!0:d;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&v){var E=this.getInputRange_().cloneRange();this.emojiManager&&E&&(e&&this.emojiInput.offsetStartOfRangeBy(E,v.length),this.insertTextWithEmojis_(E,v,d),NMW(this.getEditableTextArea_().lastChild)||(E=this.getInputRange_().cloneRange()),E&&(this.emojiInput.updateSuggestions(E,v),this.updateSuggestionOffset_(E)))}},
setSubmitButton_:function(){if(this.data){var v=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",e=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(v||e){var d=this.getTextAreaValue().trim();e=d===this.previousText_;d=!d||this.aboveCharLimit_;v&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(d=this.aboveCharLimit_);this.submitButtonDisabled=
e||d||!this.getTextLength();v&&_.N("enable_post_scheduling")&&(this.submitButtonDisabled=e&&!this.scheduledPublishTimeSec_||d)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.vv,computeCreationBoxClass_:function(v){return v?"focused":"not-focused"},
computeFooterMessageClass_:function(v,e){return e?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(v,e){return e?e:v},
computeFooterMessageHidden_:function(v,e){return!e&&!v},
computePlaceholderText_:function(v,e,d){return(d==="video"||d==="image")&&(v==null?0:v.prefilledPlaceholderText)?v==null?void 0:v.prefilledPlaceholderText:e==="poll"||e==="image-poll"?v==null?void 0:v.pollPostPlaceholderText:e==="quiz"?v==null?void 0:v.quizPostPlaceholderText:e==="image"?v==null?void 0:v.imagePostPlaceholderText:v==null?void 0:v.placeholderText},
computeHideAttachmentButtons_:function(v,e,d,E){return v===void 0?!1:E&&this.getSimpleString(E)===this.getSimpleString(v.rateLimitErrorMessage)?!0:e!=="none"||d!=="none"||!v.videoLinkButton&&!v.pollButton&&!v.imagePollButton&&!v.quizButton&&!v.imageButton},
computeHideDismissableAttachment_:function(v){return v!=="image"&&v!=="video"},
computeHasVideo_:function(v){return v==="video"},
computeHasImage_:function(v){return v==="image"},
computeHasPoll_:function(v){return v==="poll"},
computeHasImagePoll_:function(v){return v==="image-poll"},
computeHasQuiz_:function(v){return v==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(v){return v&&v.backstageAttachment?v.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!v.backstageAttachment.quizRenderer&&!v.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(v){if(this.isValidPrefilledAttachment_(v.purpose,v.prefilledImageData,v.backstageAttachment))return v.backstageAttachment},
computeEditAttachment_:function(v){if(this.computePrefilledContent_(v)===void 0)return v.backstageAttachment},
computeAuthorThumbnailDimension_:function(v,e){return v&&!e?24:40},
computeImageUploadEndpoint_:function(v){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",v)},
computeRateLimitErrorCommands_:function(v){var e,d;return v==null?void 0:(e=v.advancedTierFeatures)==null?void 0:(d=e.rateLimit)==null?void 0:d.rateLimitCommands},
computeIsBackstageComment_:function(v){return!(!v||v!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(v){return this.get("submitButton.buttonRenderer.serviceEndpoint",v)||this.get("replyButton.buttonRenderer.serviceEndpoint",v)||this.get("postButton.buttonRenderer.serviceEndpoint",v)},
computeSubmitButtonOverride:function(){if(_.N("web_modern_buttons")){var v,e;return{segmentedPosition:this.dropdownSchedulePanel_||!((v=this.data)==null?0:(e=v.postOptionsMenu)==null?0:e.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.N("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(v,e){v=this.get("submitButton.buttonRenderer",v)||this.get("replyButton.buttonRenderer",v)||this.get("postButton.buttonRenderer",v);e&&(v=e);v&&(v=Object.assign({},v),v.serviceEndpoint=void 0,v.isDisabled=this.submitButtonDisabled);return v},
computeHasExternalLinksAccess_:function(v){if(_.N("enable_rfa_external_links")){var e,d,E;return(E=v==null?void 0:(e=v.advancedTierFeatures)==null?void 0:(d=e.externalLinks)==null?void 0:d.allowExternalLinks)!=null?E:!0}return!0},
computeIsEmojiButtonDisplayed_:function(v){return v.emojiButton&&v.emojiPicker&&v.emojiPicker.emojiPickerRenderer&&v.emojiPicker.emojiPickerRenderer.categories?v.emojiPicker.emojiPickerRenderer.categories.find(function(e){return e.emojiPickerCategoryRenderer?e.emojiPickerCategoryRenderer.emojiIds&&e.emojiPickerCategoryRenderer.emojiIds.length>0:e.emojiPickerUpsellCategoryRenderer?e.emojiPickerUpsellCategoryRenderer.emojis&&e.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(v){return v.charLimit?v.charLimit:null},
computeDropdownSchedulingPanel_:function(v,e){if(v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&e)return e},
computeInlineSchedulingPanel_:function(v,e){if(v==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&e)return e},
computeHideAuthorThumbnail_:function(v,e){return v||this.computeUseIdentityChip_(e)},
computeHideIdentityChipRenderer_:function(v,e){return v||!this.computeUseIdentityChip_(e)},
computeUseIdentityChip_:function(v){return!!v&&!!v.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(v){var e,d,E,T;(v==null?0:(e=v.detail)==null?0:(d=e.endpoint)==null?0:d.ypcGetOffersEndpoint)||(v==null?0:(E=v.detail)==null?0:(T=E.endpoint)==null?0:T.ypcOffersEndpoint)?(v.stopPropagation(),_.mN(this,[v.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",v)&&(v.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(v){this.addedAttachment="video";this.selectedVideoId_=v.detail.videoId},
commentboxStateEntityChanged_:function(v){var e=this;(v==null?void 0:v.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(v==null?void 0:v.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){e.focus()})},
onYtServiceRequestSent_:function(v,e){if(e.actions)for(v=_.a(e.actions),e=v.next();!e.done;e=v.next())e.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(v){this.isLoading=!1;var e=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",v),d,E,T,S=v==null?void 0:(d=v.detail)==null?void 0:(E=d.data)==null?void 0:(T=E.actionResult)==null?void 0:T.commentboxStateEntityKey;if(e)this.errorMessage_=e;else if(S){var O;this.dismissData_=v==null?void 0:(O=v.detail)==null?void 0:O.data;this.commentboxStateKey_=S}else{this.clear();var b;this.fire("yt-commentbox-dismiss",v==null?void 0:(b=v.detail)==
null?void 0:b.data)}},
onYtServiceRequestError_:function(v){v.stopPropagation();this.isLoading=!1;var e,d;if(((e=this.data)==null?void 0:e.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((d=this.data)==null?void 0:d.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(e=this.get("detail.error.args",v)||[],e.length>1&&e[1].message){this.handlePostsServiceRequestError_(e[1].message);return}(v=this.get("detail.error.message",v))?this.errorMessage_=this.data.errorMessage||_.pQ(v):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(v){if(_.N("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var e=_.a(this.rateLimitErrorCommands),d=e.next();!d.done;d=e.next())if(d=d.value,d.errorLabel===v){_.K1(d.command,this.hostElement);return}this.errorMessage_=_.pQ(v)},
submitIfNotBackstagePost_:function(v){if(!this.isBackstagePost)this.onSubmit_(v)},
onSubmit_:function(v){var e=this,d,E,T,S,O,b,Y,q,r,h,K,k,J,R,B;return _.I(function(X){switch(X.nextAddress){case 1:v.stopPropagation();if(!e.serviceEndpoint||!e.isValidInput_())return X.return();if(e.shouldShowPostAadcNotice_())return e.showPostAadcNotice_(),X.return();if(e.shouldShowCommentAadcNotice_())return e.showCommentAadcNotice_(),X.return();if(!(e.$$("ytd-backstage-multi-image-select-renderer")&&e.hasImage_&&_.N("enable_multi_image_post_creation"))){X.jumpTo(2);break}d=e.$$("ytd-backstage-multi-image-select-renderer");
return X.yield(d.getAllUploadStatuses(),3);case 3:E=X.yieldResult;if(!E)return X.return();T=_.a(E);for(S=T.next();!S.done;S=T.next())if(O=S.value,O.encryptedBlobId===void 0)return e.isLoading=!1,Y=b=void 0,e.errorMessage_=(Y=(b=e.imageUploadEndpoint_)==null?void 0:b.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?Y:null,X.return();return X.return(e.submitForm_(void 0,void 0,void 0,void 0,d.images,e.taggedVideoId_));case 2:if(!e.hasImagePoll_||!e.$["image-poll-attachment"]){X.jumpTo(4);
break}return X.yield(e.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:q=X.yieldResult;if(!q)return X.return();r=_.a(q);for(h=r.next();!h.done;h=r.next())if(K=h.value,!K.encryptedBlobId)return e.isLoading=!1,k=void 0,e.errorMessage_=(k=e.data.errorMessage)!=null?k:null,X.return();case 4:R=(J=e.$$("ytd-backstage-image-select-renderer"))&&J.uploadPromise(),B=e.getSharedPostId_(),R?R.then(function(){e.submitForm_.apply(e,_.t7(_.Xa.apply(0,arguments)))}).catch(function(Z){e.isLoading=!1;
e.errorMessage_=_.pQ(Z.message)}):e.selectedVideoId_?e.submitForm_(void 0,e.selectedVideoId_):e.prefilledAttachment_==="image"?e.submitForm_(e.prefilledImageData_.encryptedBlobId,void 0,void 0,e.prefilledImageData_.sourceExternalVideoId,void 0,e.taggedVideoId_):e.prefilledAttachment_==="video"?e.submitForm_(void 0,e.data.backstageAttachment.videoRenderer.videoId):B?e.submitForm_(void 0,void 0,B):e.taggedVideoId_!==void 0?e.submitForm_(void 0,void 0,void 0,void 0,void 0,e.taggedVideoId_):e.submitForm_(),
_.s9(X)}})},
openSchedulingPanel:function(v){v&&v.scheduleButton&&v.scheduleButton.buttonRenderer&&(this.scheduleButton_=v.scheduleButton.buttonRenderer);v&&v.dateTimePicker&&this.set("data.schedulingDateTimePicker",v.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(v){v.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(v){v.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(v){v.stopPropagation();v.detail.alertMessage&&(this.alertMessage_=v.detail.alertMessage)},
onImageSelected_:function(v){v.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(v){v.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(v){v.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(v.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(v){v.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(v){var e=this.$["video-link-attachment"];e&&e.onLaunchVideoPicker(v)},
onAttachmentDismiss_:function(v){v.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"&&_.N("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.N("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 v;if(this.addedAttachment==="image-poll"&&((v=this.$["image-poll-attachment"])==null||!v.isValid()))return!1;var e;if(this.addedAttachment==="quiz"&&((e=this.$["quiz-attachment"])==null||!e.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;v=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(v=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")v=!0;return v||!!this.getTextAreaValue().trim()},
submitForm_:function(v,e,d,E,T,S){var O=this.getTextAreaValue().trim(),b={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&O===this.previousText_&&(O=void 0);O!==void 0&&(b.comment_text=O);this.isLoading=!0;S!=void 0&&(b.tagged_video_id=S);v?(b.image_blob_id=v,this.imagePreviewCoordinates_&&(b.image_preview_coordinates=this.imagePreviewCoordinates_)):e?b.attached_video_id=e:d?b.shared_post_id=d:T&&T.length>0&&(b.images_data=T.map(function(Y){return{encryptedBlobId:Y.encryptedBlobId,
previewCoordinates:Y.previewCoordinates}}));
E&&(b.source_video_id=E);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(b.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(b.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(b.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.N("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(b.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.N("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(b.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.mN(this,[this.serviceEndpoint,b])},
onIsInputFocusChanged_:function(v,e){v?this.fire("yt-autonav-pause-focus"):e!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(v){var e=this.getEditableTextArea_();[].concat(_.t7(v.dataTransfer.items)).forEach(function(d){d.kind==="string"&&d.type.match("^text/plain")&&d.getAsString(function(E){e.appendChild(document.createTextNode(E))})});
v.preventDefault()},
preventDefault_:function(v){v.preventDefault()},
onSuggestionInsert_:function(v){this.insertTextWithEmojis_(v.detail.range,v.detail.text)},
onEmojiSuggestionClick_:function(v){this.emojiInput.insertSuggestion(v.detail)},
computeSubmitButtonClass_:function(v,e){return!e||v?"":"with-options"},
updateSuggestionOffset_:function(v){if(this.emojiInput&&_.IB(this.emojiInput).querySelector("#dropdown")){var e=this.getEditableTextArea_().getBoundingClientRect().bottom,d=v.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(e-d)+5;e=this.getEditableTextArea_().getBoundingClientRect().left;v=v.getBoundingClientRect().left-e;_.IB(this.emojiInput).querySelector("#dropdown").style.marginLeft=v+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(v){if(_.N("enable_post_scheduling")&&this.data&&this.data.purpose){v=v.detail;if(Math.floor(Date.now()/1E3)>=v)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var e=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(e)||e!==v?this.scheduledPublishTimeSec_=v:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=v;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var v=["image-button","image-poll-button","poll-button"];_.N("enable_quiz_creation")&&v.push("quiz-button");_.N("auto_convert_posts_video_tag")||v.push("video-link-button");return v},
getButtonRenderer:function(v,e){if(v)switch(e){case "video-link-button":var d;return((d=v.videoLinkButton)==null?void 0:d.buttonRenderer)||void 0;case "image-button":var E;return((E=v.imageButton)==null?void 0:E.buttonRenderer)||void 0;case "poll-button":var T;return((T=v.pollButton)==null?void 0:T.buttonRenderer)||void 0;case "image-poll-button":var S;return((S=v.imagePollButton)==null?void 0:S.buttonRenderer)||void 0;case "quiz-button":var O;return((O=v.quizButton)==null?void 0:O.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var v;return(v=this.data)==null||!v.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var v,e;return!((v=this.data)==null||!v.openAadcDialog)&&!((e=this.aadcGuidelinesState_)==null||!e.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Bb("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var v;((v=this.data)==null?0:v.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Xn("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(v){v.clickTrackingParams&&_.NC().clickCommand(v);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.b4(this,"yt-close-popup-action")},
onHideIdentityChip:function(v){var e;this.set("data.placeholderText",(e=v.hideIdentityChipAction)==null?void 0:e.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var hO=function(){var v=_.P.apply(this,arguments)||this;v.isOpen=!1;v.modern=_.N("web_modern_buttons");v.roundedContainer=!0;v.dropdownButtonOverride=_.N("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;v.inPopupContainer=!1;v.isCommentboxLoading=!1;var e=["image-button","image-poll-button","poll-button"];_.N("enable_quiz_creation")&&e.push("quiz-button");_.N("auto_convert_posts_video_tag")||e.push("video-link-button");v.attachmentButtonIds=e;v.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 v};
_.V(hO,_.P);_.W=hO.prototype;_.W.computeButtonOverride=function(){var v;return((v=this.data)==null?0:v.postOptionsMenu)&&_.N("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.W.configureRendererStamper=function(){var v={"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]]"}}}}};_.N("auto_convert_posts_video_tag")||(v["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return v};
_.W.ready=function(){var v=this,e=_.IB(this.hostElement).querySelector("#placeholder-area"),d=function(E){v.onOpen(E)};
e.addEventListener("tap",d);e.addEventListener("keypress",d)};
_.W.showButtonEduTooltip=function(){var v,e,d,E,T,S,O;if(_.N("enable_quiz_creation")&&((v=this.data)==null?0:(e=v.quizButton)==null?0:(d=e.buttonRenderer)==null?0:(E=d.hint)==null?0:(T=E.hintRenderer)==null?0:(S=T.content)==null?0:(O=S.bubbleHintRenderer)==null?0:O.text)&&(_.Tf.getInstance(),v=SN(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(v==null?void 0:
v.length)>0)){this.ytComponentBehavior.resolveCommand(v[0],{form:{element:this.quizButton}});return}var b;if((b=this.data)==null?0:b.imagePollButtonTooltip)if(_.Tf.getInstance(),b=SN(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(b==null?void 0:b.length)>0){this.ytComponentBehavior.resolveCommand(b[0],{form:{element:this.imagePollButton}});return}var Y;_.N("enable_multi_image_post_creation")&&
((Y=this.data)==null?0:Y.multiImageButtonTooltip)&&(_.Tf.getInstance(),Y=SN(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(Y==null?void 0:Y.length)>0&&this.ytComponentBehavior.resolveCommand(Y[0],{form:{element:this.imageButton}}))};
_.W.onCreatePollAction=function(v){_.L(v,snE)&&(this.JSC$15779_commentbox.addedAttachment="poll",this.openDialog())};
_.W.onAddVideoLinkAction=function(v){if(_.L(v,hw6))this.JSC$15779_commentbox.onAddVideoLink(v)};
_.W.onShowSchedulingPanelCommand=function(v){(v=_.L(v,FvM))&&this.openSchedulingPanel(v)};
_.W.onCreateImagePollCommand=function(v){_.L(v,qA7)&&(this.JSC$15779_commentbox.openImagePollComponent(),this.openDialog())};
_.W.onCreateQuizCommand=function(v){_.L(v,ryE)&&(this.JSC$15779_commentbox.openQuizComponent(),this.openDialog())};
_.W.openSchedulingPanel=function(v){_.N("enable_post_scheduling")&&(this.openDialog(),this.JSC$15779_commentbox.openSchedulingPanel(v))};
_.W.onCreateCommentAction=function(v){this.get("createCommentAction.contents",v)&&(this.JSC$15779_commentbox.clear(),this.closeDialog())};
_.W.onOpen=function(v){v instanceof KeyboardEvent&&v.type==="keypress"&&v.keyCode!==13&&v.keyCode!==32||(this.data.prepareAccountEndpoint?_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.W.onYtCommentboxDismiss=function(){this.closeDialog()};
_.W.onYtCommentboxLoadingStart=function(v){v.stopPropagation();this.isCommentboxLoading=!0};
_.W.onYtCommentboxLoadingEnd=function(v){v.stopPropagation();this.isCommentboxLoading=!1};
_.W.onYtVideoLinkButtonCancel=function(v){v.stopPropagation();this.onOpen(v)};
_.W.onYtVideoLinkSelected=function(v){v.stopPropagation();this.onOpen(v)};
_.W.onIronSelect=function(v){v.stopPropagation();v.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=v.detail.item.value&&(this.accessRestriction?(this.accessRestriction=v.detail.item.value,this.onOpen(v)):this.accessRestriction=v.detail.item.value)};
_.W.onYtNavigate=function(v){this.get("detail.endpoint.backstageImageUploadEndpoint",v)&&(this.JSC$15779_commentbox.addedAttachment="image",this.JSC$15779_commentbox.submitButtonDisabled=!0,this.onOpen(v))};
_.W.onRequestSent=function(v){if(_.N("web_button_rework"))for(var e=_.a(v.detail),d=e.next();!d.done;d=e.next())_.L(d.value,J92)&&(this.JSC$15779_commentbox.addedAttachment="image",this.JSC$15779_commentbox.submitButtonDisabled=!0,this.onOpen(v))};
_.W.openDialog=function(){this.JSC$15779_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15779_commentbox.focus()};
_.W.onPopupClosed=function(){_.Tf.getInstance()};
_.W.computeCreationDisabled=function(v){return!!v};
_.W.computeIsCreationDialog=function(v){return!!v&&v==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.W.computeDisabledPostButton=function(v){if(!v)return null;v.isDisabled=!0;return v};
_.W.computeIsCreationDialogWithHeader=function(v){return!this.inPopupContainer&&!!v&&!!v.authorText&&v.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.W.computeIsHeaderHidden=function(v,e){return!v||e};
_.W.computeDropdownRendererClasses=function(v){return v?["text-secondary-style"]:[]};
_.W.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var v=_.IB(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;v&&v.reset()};
hO.prototype.onPopupClosed=hO.prototype.onPopupClosed;hO.prototype.onRequestSent=hO.prototype.onRequestSent;hO.prototype.onYtNavigate=hO.prototype.onYtNavigate;hO.prototype.onIronSelect=hO.prototype.onIronSelect;hO.prototype.onYtVideoLinkSelected=hO.prototype.onYtVideoLinkSelected;hO.prototype.onYtVideoLinkButtonCancel=hO.prototype.onYtVideoLinkButtonCancel;hO.prototype.onYtCommentboxLoadingEnd=hO.prototype.onYtCommentboxLoadingEnd;hO.prototype.onYtCommentboxLoadingStart=hO.prototype.onYtCommentboxLoadingStart;
hO.prototype.onYtCommentboxDismiss=hO.prototype.onYtCommentboxDismiss;hO.prototype.showButtonEduTooltip=hO.prototype.showButtonEduTooltip;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],hO.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],hO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],hO.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],hO.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hO.prototype,"isOpen",void 0);_.c([_.f({computed:"computeButtonOverride(data)"}),_.w("design:type",Object)],hO.prototype,"buttonOverride",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hO.prototype,"modern",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hO.prototype,"roundedContainer",void 0);_.c([_.f(),_.w("design:type",Object)],hO.prototype,"dropdownButtonOverride",void 0);_.c([_.f({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.w("design:type",Boolean)],hO.prototype,"creationDisabled",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],hO.prototype,"enableCreationBox",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.w("design:type",Boolean)],hO.prototype,"isCreationDialog",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hO.prototype,"inPopupContainer",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.w("design:type",Boolean)],hO.prototype,"isCreationDialogWithHeader",void 0);_.c([_.f(),_.w("design:type",Object)],hO.prototype,"accessRestriction",void 0);
_.c([_.f({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.w("design:type",Array)],hO.prototype,"dropdownRendererClasses",void 0);_.c([_.f(),_.w("design:type",Object)],hO.prototype,"isCommentboxLoading",void 0);_.c([_.f(),_.w("design:type",Array)],hO.prototype,"attachmentButtonIds",void 0);_.c([_.sg("#image-button"),_.w("design:type",HTMLElement)],hO.prototype,"imageButton",void 0);
_.c([_.sg("#image-poll-button"),_.w("design:type",HTMLElement)],hO.prototype,"imagePollButton",void 0);_.c([_.sg("#quiz-button"),_.w("design:type",HTMLElement)],hO.prototype,"quizButton",void 0);_.c([_.sg("#commentbox"),_.w("design:type",Object)],hO.prototype,"JSC$15779_commentbox",void 0);_.c([_.$v("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hO.prototype,"showButtonEduTooltip",null);
_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hO.prototype,"onYtCommentboxDismiss",null);_.c([_.Kq("yt-commentbox-loading-start"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hO.prototype,"onYtCommentboxLoadingStart",null);
_.c([_.Kq("yt-commentbox-loading-end"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hO.prototype,"onYtCommentboxLoadingEnd",null);_.c([_.Kq("yt-video-link-button-cancel"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hO.prototype,"onYtVideoLinkButtonCancel",null);
_.c([_.Kq("yt-video-link-selected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hO.prototype,"onYtVideoLinkSelected",null);_.c([_.Kq("iron-select"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hO.prototype,"onIronSelect",null);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hO.prototype,"onYtNavigate",null);
_.c([_.Kq("yt-service-request-sent-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hO.prototype,"onRequestSent",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hO.prototype,"onPopupClosed",null);_.c([_.z({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],hO);
_.A(hO,"ytd-backstage-post-dialog-renderer",function(){if(ot7!==void 0)return ot7;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ot7=v},{mode:1});var SfB;var WRM;var KK=function(){return _.P.apply(this,arguments)||this};
_.V(KK,_.P);_.W=KK.prototype;_.W.computeHeartButtonStyle=function(v){return(v==null?0:v.styleType)?v.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.W.onYtButtonTap=function(){if(this.data.isEnabled){var v=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(v=this.getEndpoint(v))&&_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}})}else(v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(v)};
_.W.toggle=function(v){this.set("data.isHearted",v!==void 0?v:!this.data.isHearted)};
_.W.getEndpoint=function(v){var e,d=(e=this.data)==null?void 0:e.heartEndpoint,E;e=(E=this.data)==null?void 0:E.unheartEndpoint;if(d&&e)return v?e:d};
_.W.computeButtonAccessibility=function(v,e){var d,E,T=v==null?void 0:(d=v.heartedAccessibility)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label,S,O;v=v==null?void 0:(S=v.unheartedAccessibility)==null?void 0:(O=S.accessibilityData)==null?void 0:O.label;return e?T:v};
_.vP.Object.defineProperties(KK.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 v;return _.N("kevlar_system_icons")&&!((v=this.data)==null||!v.isHearted)}}});
KK.prototype.onYtButtonTap=KK.prototype.onYtButtonTap;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],KK.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],KK.prototype,"data",void 0);_.c([_.t("data.isHearted"),_.w("design:type",Object),_.w("design:paramtypes",[])],KK.prototype,"heartTooltip",null);
_.c([_.t("data.isHearted"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],KK.prototype,"iconFilled",null);_.c([_.f({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.w("design:type",String)],KK.prototype,"buttonAccessibility",void 0);_.c([_.f({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.w("design:type",String)],KK.prototype,"heartButtonStyle",void 0);
_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KK.prototype,"onYtButtonTap",null);_.c([_.z({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],KK);
_.A(KK,"ytd-creator-heart-renderer",function(){if(WRM!==void 0)return WRM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return WRM=v},{mode:1});var $O=function(){var v=_.P.apply(this,arguments)||this;v.hasCreatorReply=!1;v.buttonOverrides={size:"S",iconPosition:"icon-only"};v.replyButtonOverrides={size:"S",type:"text"};v.forceIconButton=!_.N("web_modern_buttons");v.modern=_.N("web_modern_buttons");v.buttonTooltipPosition="bottom";v.systemIcons=_.N("kevlar_system_icons");v.replyDialog=null;return v};
_.V($O,_.P);_.W=$O.prototype;
_.W.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]]"}}}}}};
_.W.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.W.dataChange=function(){this.replyDialog&&_.IB(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var v,e,d;this.isLiked=this.systemIcons&&!!((v=this.data)==null?0:(e=v.likeButton)==null?0:(d=e.toggleButtonRenderer)==null?0:d.isToggled)};
_.W.computeShowVoteCountBeginning=function(v,e){return v===void 0||e===void 0?!0:v.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.W.computeShowVoteCountEnd=function(v,e){return v===void 0||e===void 0?!0:v.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.W.computeShowCommentCount=function(v,e){return v===void 0||e===void 0?!0:v.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.W.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.W.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.W.showReplyDialog=function(v){v&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.IB(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=v,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.W.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.W.onRequestSent=function(v){if(_.N("web_button_rework")){v=_.a(v.detail);for(var e=v.next();!e.done;e=v.next())(e=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",e.value))&&this.showReplyDialog(e)}};
_.W.onYtNavigate=function(v){var e,d;(v=(e=_.L(v.detail.endpoint,_.M$c))==null?void 0:(d=e.dialog)==null?void 0:d.commentReplyDialogRenderer)&&this.showReplyDialog(v)};
_.W.onYtServiceRequestSent=function(v,e){v.stopPropagation();if(e.actions)for(v=0;v<e.actions.length;v++){var d=_.L(e.actions[v],JtB);d&&this.handleUpdateCommentVoteAction(d)}};
_.W.handleUpdateCommentVoteAction=function(v){this.voteCount=v.voteCount||_.pQ("0");v.voteStatus==="LIKE"?this.JSC$15790_ytdDislikeToggleButtonRenderer.toggle(!1):v.voteStatus==="DISLIKE"?this.JSC$15790_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15790_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15790_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.W.computeReplyButtonHidden=function(v){return v};
_.W.computeReplyButtonBeginning=function(v){return(v==null?0:v.replyButton)&&v.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?v.replyButton:void 0};
_.W.computeReplyButtonEnd=function(v){return(v==null?0:v.replyButton)&&v.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?v.replyButton:void 0};
_.W.computeActionButtonStyle=function(v){return(v==null?0:v.style)?v.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.W.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.W.onYtToggleButton=function(v){var e,d;this.isLiked=this.systemIcons&&!!((e=v.detail)==null?0:(d=e.actions)==null?0:d.like)};
$O.prototype.onYtToggleButton=$O.prototype.onYtToggleButton;$O.prototype.onButtonTooltipPositionChanged=$O.prototype.onButtonTooltipPositionChanged;$O.prototype.onYtServiceRequestSent=$O.prototype.onYtServiceRequestSent;$O.prototype.onYtNavigate=$O.prototype.onYtNavigate;$O.prototype.onRequestSent=$O.prototype.onRequestSent;$O.prototype.onYtCommentboxDismiss=$O.prototype.onYtCommentboxDismiss;$O.prototype.dataChange=$O.prototype.dataChange;
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$O.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],$O.prototype,"voteCount",void 0);_.c([_.f(),_.w("design:type",Object)],$O.prototype,"commentCount",void 0);_.c([_.f(),_.w("design:type",Object)],$O.prototype,"replyThumbnail",void 0);
_.c([_.f(),_.w("design:type",Object)],$O.prototype,"hasCreatorReply",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],$O.prototype,"enableCreationBox",void 0);_.c([_.f({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.w("design:type",String)],$O.prototype,"actionButtonsStyle",void 0);_.c([_.f({computed:"computeReplyButtonBeginning(data)"}),_.w("design:type",Object)],$O.prototype,"replyButtonBeginning",void 0);
_.c([_.f({computed:"computeReplyButtonEnd(data)"}),_.w("design:type",Object)],$O.prototype,"replyButtonEnd",void 0);_.c([_.f(),_.w("design:type",Object)],$O.prototype,"buttonOverrides",void 0);_.c([_.f(),_.w("design:type",Object)],$O.prototype,"replyButtonOverrides",void 0);_.c([_.f(),_.w("design:type",Object)],$O.prototype,"forceIconButton",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],$O.prototype,"useCommentIcon",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],$O.prototype,"modern",void 0);_.c([_.f(),_.w("design:type",Object)],$O.prototype,"buttonTooltipPosition",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],$O.prototype,"systemIcons",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],$O.prototype,"isLiked",void 0);_.c([_.sg("ytd-button-renderer"),_.w("design:type",Object)],$O.prototype,"ytdReplyButtonRenderer",void 0);
_.c([_.sg("#like-button"),_.w("design:type",Object)],$O.prototype,"JSC$15790_ytdLikeToggleButtonRenderer",void 0);_.c([_.sg("#dislike-button"),_.w("design:type",Object)],$O.prototype,"JSC$15790_ytdDislikeToggleButtonRenderer",void 0);_.c([_.sg("#reply-dialog"),_.w("design:type",HTMLElement)],$O.prototype,"replyDialogElement",void 0);_.c([_.sg("#reply-button"),_.w("design:type",HTMLElement)],$O.prototype,"replyButtonElement",void 0);
_.c([_.sg("#reply-button-end"),_.w("design:type",HTMLElement)],$O.prototype,"replyButtonEndElement",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$O.prototype,"dataChange",null);_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$O.prototype,"onYtCommentboxDismiss",null);
_.c([_.Kq("yt-service-request-sent-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$O.prototype,"onRequestSent",null);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$O.prototype,"onYtNavigate",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],$O.prototype,"onYtServiceRequestSent",null);_.c([_.$v("buttonTooltipPosition"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$O.prototype,"onButtonTooltipPositionChanged",null);
_.c([_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$O.prototype,"onYtToggleButton",null);_.c([_.z({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],$O);
_.A($O,"ytd-comment-action-buttons-renderer",function(){if(SfB!==void 0)return SfB;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return SfB=v},{mode:1});var aCB;var ju=function(){return _.P.apply(this,arguments)||this};
_.V(ju,_.P);ju.prototype.focus=function(){_.IB(this.hostElement).querySelector("#commentbox").focus()};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ju.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],ju.prototype,"zeroStepChannelCreationRenderer",void 0);_.c([_.z({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],ju);
_.A(ju,"ytd-comment-dialog-renderer",function(){if(aCB!==void 0)return aCB;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return aCB=v},{mode:1});var iu2;var sD=function(){var v=_.P.apply(this,arguments)||this;v.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.N("enable_web_delhi_icons")};v.replyButtonOverrides={size:"S",type:"text"};return v};
_.V(sD,_.P);_.W=sD.prototype;_.W.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.W.detached=function(){this.replyBox&&this.replyBox.remove()};
_.W.showReplyDialog=function(v){if(v){var e=this.replyBox;e||(e=document.createElement("ytd-comment-reply-dialog-renderer"),e.id="replybox",_.IB(this.replyDialogDiv).appendChild(e));e.data=v;this.replyDialogDiv.hidden=!1;e.openDialog()}};
_.W.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.W.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var v,e=_.L((v=this.toolbarSurface)==null?void 0:v.subscribersOnlyDisclaimerSnackbarCommand,_.zj);e&&_.Iq(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:e})}};
_.W.onYtServiceRequestSent=function(v,e){v.stopPropagation();if(e.actions)for(var d=0;d<e.actions.length;d++){var E=_.L(e.actions[d],JtB);E?this.handleUpdateCommentVoteAction(E):v.target===this.heartButton&&this.toggleHeartState()}};
_.W.handleUpdateCommentVoteAction=function(v){var e;(e=this.toolbarState)!=null&&e.key&&this.ytdReduxBehavior.dispatch(_.M0("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:v.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":v.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.W.toggleHeartState=function(){var v;(v=this.toolbarState)!=null&&v.key&&this.ytdReduxBehavior.dispatch(_.M0("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.vP.Object.defineProperties(sD.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return(((v=this.toolbarState)==null?void 0:v.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(e=this.toolbarData)==null?void 0:e.likeCountLiked:(d=this.toolbarData)==null?void 0:d.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.toolbarSurface)==null?void 0:v.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.toolbarSurface)==null?void 0:v.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.toolbarSurface)==null?void 0:v.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.toolbarSurface)==null?void 0:v.prepareAccountCommand)!==void 0&&!_.N("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v,e=_.L((v=this.toolbarSurface)==null?void 0:v.prepareAccountCommand,_.zj),d,E,T,S,O,b,Y,q,r;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((d=this.toolbarSharedData)==null||!d.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((E=this.toolbarState)==null?void 0:E.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:e!=null?e:_.L((T=this.toolbarSurface)==null?void 0:T.likeCommand,_.zj),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.L((S=this.toolbarSurface)==null?void 0:S.unlikeCommand,_.zj),defaultCommand:this.isVisiblyDisabled?_.L((O=this.toolbarSurface)==null?void 0:O.commentDisabledActionCommand,_.zj):void 0,defaultTooltip:(b=this.toolbarData)==null?void 0:b.likeInactiveTooltip,toggledTooltip:(Y=this.toolbarData)==null?void 0:Y.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(q=this.toolbarData)==null?void 0:q.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(r=this.toolbarSharedData)==null?void 0:r.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v,e=_.L((v=this.toolbarSurface)==null?void 0:v.prepareAccountCommand,_.zj),d,E,T,S,O,b,Y,q,r,h;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((d=this.toolbarSharedData)==null||!d.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((E=this.toolbarState)==null?void 0:E.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.L((T=this.toolbarSurface)==null?void 0:T.dislikeCommand,_.zj),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.L((S=this.toolbarSurface)==null?void 0:S.undislikeCommand,_.zj),defaultCommand:this.isVisiblyDisabled?_.L((O=this.toolbarSurface)==null?void 0:O.commentDisabledActionCommand,_.zj):void 0,defaultTooltip:(b=this.toolbarData)==null?void 0:b.dislikeInactiveTooltip,toggledTooltip:(Y=this.toolbarData)==null?void 0:
Y.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(q=this.toolbarSharedData)==null?void 0:q.dislikeReplyButtonA11y:(r=this.toolbarSharedData)==null?void 0:r.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(h=this.toolbarSharedData)==null?void 0:h.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var v,e,d;if(((v=this.toolbarState)==null?void 0:v.heartState)!==void 0&&((e=this.toolbarState)==null?void 0:e.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((d=this.toolbarState)==null?void 0:d.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var E,T,S,O,b,Y,q,r,h,K,k,J,R,B;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(E=this.toolbarData)==null?void 0:E.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((T=this.toolbarState)==null?void 0:T.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((S=this.toolbarState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((O=this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.toolbarState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.L((Y=this.toolbarSurface)==null?void 0:Y.heartCommand,
_.zj),unheartEndpoint:this.isVisiblyDisabled?void 0:_.L((q=this.toolbarSurface)==null?void 0:q.unheartCommand,_.zj),disabledEndpoint:this.isVisiblyDisabled?_.L((r=this.toolbarSurface)==null?void 0:r.commentDisabledActionCommand,_.zj):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(h=this.toolbarData)==null?void 0:h.heartActiveTooltip,unheartedTooltip:(K=this.toolbarData)==null?void 0:K.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((k=
this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(J=this.toolbarSharedData)==null?void 0:J.unheartButtonA11y:(R=this.toolbarSharedData)==null?void 0:R.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(B=this.toolbarSharedData)==null?void 0:B.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.toolbarSurface)==null||!v.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(v=this.commentStrings)==null?void 0:v.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.L((e=this.toolbarSurface)==null?void 0:e.replyCommand,_.zj),command:this.isVisiblyDisabled?_.L((d=this.toolbarSurface)==null?
void 0:d.commentDisabledActionCommand,_.zj):this.isSubsOnlyCommentsIneligibleUser?_.L((E=this.toolbarSurface)==null?void 0:E.subscribersOnlySnackbarCommand,_.zj):void 0}}}});
sD.prototype.onYtServiceRequestSent=sD.prototype.onYtServiceRequestSent;sD.prototype.hideReplyDialogDiv=sD.prototype.hideReplyDialogDiv;_.c([_.f(),_.w("design:type",Object)],sD.prototype,"commentStrings",void 0);_.c([_.f(),_.w("design:type",Boolean)],sD.prototype,"isReply",void 0);_.c([_.f(),_.w("design:type",Object)],sD.prototype,"toolbarData",void 0);_.c([_.f(),_.w("design:type",Object)],sD.prototype,"toolbarSharedData",void 0);
_.c([_.f(),_.w("design:type",String)],sD.prototype,"toolbarStateKey",void 0);_.c([_.f(),_.w("design:type",String)],sD.prototype,"toolbarSurfaceKey",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],sD.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],sD.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.dK),_.w("design:type",Object)],sD.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.sg("#reply-dialog"),_.w("design:type",HTMLElement)],sD.prototype,"replyDialogDiv",void 0);_.c([_.sg("#replybox"),_.w("design:type",Object)],sD.prototype,"replyBox",void 0);_.c([_.sg("ytd-creator-heart-renderer"),_.w("design:type",Object)],sD.prototype,"heartButton",void 0);_.c([_.f({selector:function(v,e){return _.h_(v.entities,"engagementToolbarStateEntityPayload",e)},
selectorArgs:["toolbarStateKey"]}),_.w("design:type",Object)],sD.prototype,"toolbarState",void 0);_.c([_.f({selector:F9W,selectorArgs:["toolbarSurfaceKey"]}),_.w("design:type",Object)],sD.prototype,"toolbarSurface",void 0);_.c([_.f(),_.w("design:type",Object)],sD.prototype,"buttonOverrides",void 0);_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sD.prototype,"hideReplyDialogDiv",null);
_.c([_.t("toolbarData","toolbarState"),_.w("design:type",String),_.w("design:paramtypes",[])],sD.prototype,"likeCount",null);_.c([_.t("likeCount"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sD.prototype,"showLikeCount",null);_.c([_.t("toolbarSurface"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sD.prototype,"isVisiblyDisabled",null);_.c([_.t("toolbarSurface"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sD.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.c([_.t("toolbarSurface"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sD.prototype,"isSubsOnlyCommentsEligibleUser",null);_.c([_.t("toolbarSurface"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sD.prototype,"hasPrepareAccountCommand",null);_.c([_.t("toolbarData","toolbarState","toolbarSurface"),_.w("design:type",Object),_.w("design:paramtypes",[])],sD.prototype,"likeToggleButtonRenderer",null);
_.c([_.t("isReply","toolbarData","toolbarState","toolbarSurface"),_.w("design:type",Object),_.w("design:paramtypes",[])],sD.prototype,"dislikeToggleButtonRenderer",null);_.c([_.t("toolbarData","toolbarState","toolbarSurface"),_.w("design:type",Object),_.w("design:paramtypes",[])],sD.prototype,"creatorHeartSupportedRenderer",null);_.c([_.t("toolbarSurface"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sD.prototype,"hasReplyCommand",null);
_.c([_.t("toolbarSurface","commentStrings","isVisiblyDisabled"),_.w("design:type",Object),_.w("design:paramtypes",[])],sD.prototype,"replyButtonRenderer",null);_.c([_.f(),_.w("design:type",Object)],sD.prototype,"replyButtonOverrides",void 0);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],sD.prototype,"onYtServiceRequestSent",null);_.c([_.z({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],sD);
_.A(sD,"ytd-comment-engagement-bar",function(){if(iu2!==void 0)return iu2;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return iu2=v},{mode:1});var Oun;var Nj=function(){return _.P.apply(this,arguments)||this};
_.V(Nj,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Nj.prototype,"data",void 0);_.c([_.z({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Nj);
_.A(Nj,"ytd-comment-inline-thumbnail-renderer",function(){if(Oun!==void 0)return Oun;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Oun=v},{mode:1});var ICJ;var kO=function(){return _.P.apply(this,arguments)||this};
_.V(kO,_.P);kO.prototype.onMessageTap=function(){if(this.onTapCommand){var v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);v&&this.ytdOpenPopupBehavior.openPopup(v)}};
_.vP.Object.defineProperties(kO.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return(v=this.data)==null?void 0:(e=v.button)==null?void 0:(d=e.buttonRenderer)==null?void 0:d.command}}});
_.c([_.M(_.dK),_.w("design:type",Object)],kO.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kO.prototype,"data",void 0);_.c([_.t("data.button.buttonRenderer.command"),_.w("design:type",Object),_.w("design:paramtypes",[])],kO.prototype,"onTapCommand",null);_.c([_.z({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],kO);
_.A(kO,"ytd-comment-pause-composer-renderer",function(){if(ICJ!==void 0)return ICJ;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ICJ=v},{mode:1});var buB;var Yfe;var LK=function(){var v=_.P.apply(this,arguments)||this;v.isOpen=!1;return v};
_.V(LK,_.P);_.W=LK.prototype;_.W.dataChanged=function(){this.isOpen=!1};
_.W.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.W.focus=function(){this.JSC$15820_commentbox.focus()};
_.W.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.W.openDialog=function(){this.isOpen=!0;this.JSC$15820_commentbox.focus();this.JSC$15820_commentbox.maybeHeightChanged()};
LK.prototype.onYtCommentboxDismiss=LK.prototype.onYtCommentboxDismiss;LK.prototype.dataChanged=LK.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],LK.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],LK.prototype,"isOpen",void 0);_.c([_.sg("#commentbox"),_.w("design:type",Object)],LK.prototype,"JSC$15820_commentbox",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LK.prototype,"dataChanged",null);_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],LK.prototype,"onYtCommentboxDismiss",null);_.c([_.z({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],LK);
_.A(LK,"ytd-comment-reply-dialog-renderer",function(){if(Yfe!==void 0)return Yfe;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Yfe=v},{mode:1});var mO7;var Vg=function(){return _.P.apply(this,arguments)||this};
_.V(Vg,_.P);_.vP.Object.defineProperties(Vg.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(v=this.data)==null?void 0:(e=v.icon)==null?void 0:e.iconType;return d?"yt-icons:"+d.toLowerCase():null}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Vg.prototype,"data",void 0);_.c([_.f(),_.t("data.icon"),_.w("design:type",Object),_.w("design:paramtypes",[])],Vg.prototype,"icon",null);_.c([_.z({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Vg);
_.A(Vg,"ytd-pinned-comment-badge-renderer",function(){if(mO7!==void 0)return mO7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return mO7=v},{mode:1});var yFc;var qfg={},rF7={input:!0,meta:!0,br:!0,link:!0,img:!0},ov=null;qfg.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(){ov==null&&(ov=document.createElement("tp-yt-paper-tooltip"),ov.offset=8,ov.fitToVisibleBounds=!0)},
onMouseOver_:function(v){if(v=_.Xv(v.target,function(T){return T==this||T.getAttribute&&T.getAttribute("shared-tooltip-text")}.bind(this),!0)){var e=v.getAttribute("shared-tooltip-text");
if(e){var d=this,E=null;v!=this&&(v.tagName.toLowerCase()in rF7?d=v.parentElement:d=v,v.id&&(E=v.id));this.polymerController.createTooltipIfRequired_();if(ov.parentElement!=d||ov.for!=E)(0,_.y1)(ov).textContent=e,_.IB(d).appendChild(ov),ov.for=E,ov.animationDelay=this.polymerController.sharedTooltipAnimationDelay,ov.position=this.polymerController.sharedTooltipPosition}}}};var JO=function(){return _.P.apply(this,arguments)||this};
_.V(JO,_.P);JO.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]]"}}}}}};
JO.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var v;((v=this.data)==null?0:v.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
JO.prototype.colorChanged=function(){var v,e,d,E=(v=this.data)==null?void 0:(e=v.color)==null?void 0:(d=e.basicColorPaletteData)==null?void 0:d.foregroundBodyColor;E&&(this.rgbBadgeColor=_.cv(E));_.IB(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
JO.prototype.tooltipChanged=function(){var v;((v=this.data)==null?0:v.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
JO.prototype.tooltipChanged=JO.prototype.tooltipChanged;JO.prototype.colorChanged=JO.prototype.colorChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(qfg.YtSharedTooltipBehavior),_.w("design:type",Object)],JO.prototype,"ytSharedTooltipBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JO.prototype,"data",void 0);
_.c([_.f({value:"#4285F4"}),_.w("design:type",String)],JO.prototype,"rgbBadgeColor",void 0);_.c([_.$v("data.color"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JO.prototype,"colorChanged",null);_.c([_.$v("data.tooltip"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JO.prototype,"tooltipChanged",null);_.c([_.z({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],JO);
_.A(JO,"ytd-sponsor-comment-badge-renderer",function(){if(yFc!==void 0)return yFc;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return yFc=v},{mode:1});var hVE;var KRE;var GC=function(){return _.P.apply(this,arguments)||this};
_.V(GC,_.P);GC.prototype.computeState=function(v){switch(v==null?void 0:v.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"}};
GC.prototype.updateStateIdentifier=function(v){if(this.viewModel.triStateKey){var e=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.M0("triStateButtonStateEntityPayload",e,{key:e,stateIdentifier:v}))}};
GC.prototype.onClick=function(){var v=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(){v.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){v.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.vP.Object.defineProperties(GC.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 v;return((v=this.data)==null?void 0:v.buttonText)||""}}});
_.c([_.f(),_.w("design:type",Object)],GC.prototype,"viewModel",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],GC.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],GC.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.c([_.f({selector:QLs,selectorArgs:["viewModel.triStateKey"]}),_.w("design:type",Object)],GC.prototype,"triStateButtonStateEntity",void 0);
_.c([_.f({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.w("design:type",String)],GC.prototype,"state",void 0);_.c([_.t("viewModel","state"),_.w("design:type",Object),_.w("design:paramtypes",[])],GC.prototype,"data",null);_.c([_.t("data"),_.w("design:type",String),_.w("design:paramtypes",[])],GC.prototype,"buttonText",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],GC);
_.A(GC,"ytd-tri-state-button-view-model",function(){if(KRE!==void 0)return KRE;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return KRE=v},{mode:1});var $Oc;var jY0;var Mj=function(){var v=_.P.apply(this,arguments)||this;v.defaultIconToFilled=!_.N("kevlar_fill_comment_chip_icon_killswitch");return v};
_.V(Mj,_.P);Mj.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Mj.prototype.dataChanged=function(){if(this.data){var v,e;((v=this.data.chipColorPalette)==null?0:v.backgroundColor)&&((e=this.data.chipColorPalette)==null?0:e.foregroundTitleColor)&&_.qr(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.w1(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.w1(this.data.chipColorPalette.foregroundTitleColor)});var d;((d=this.data)==null?0:d.command)?(_.qr(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.qr(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}};
Mj.prototype.onTap=function(){var v;if(this.data&&(v=this.data)!=null&&v.command){var e;this.ytComponentBehavior.resolveCommand((e=this.data)==null?void 0:e.command)}};
Mj.prototype.getIconSize=function(){return _.N("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Mj.prototype.onTap=Mj.prototype.onTap;Mj.prototype.dataChanged=Mj.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Mj.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.K$),_.w("design:type",Object)],Mj.prototype,"ironA11yKeysBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Mj.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],Mj.prototype,"basePriceText",void 0);_.c([_.f(),_.w("design:type",Object)],Mj.prototype,"chipIcon",void 0);_.c([_.f(),_.w("design:type",Object)],Mj.prototype,"defaultIconToFilled",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Mj.prototype,"dataChanged",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Mj.prototype,"onTap",null);
_.c([_.lh({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Mj);
_.A(Mj,"yt-pdg-comment-chip-renderer",function(){if(jY0===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;$Oc===void 0&&($Oc=document.createElement("template"));var E=$Oc;d.call(e,E.content.cloneNode(!0),v.content.firstChild);jY0=v}v=jY0;return v},{mode:2});var tO=function(){var v=_.P.apply(this,arguments)||this;v.useSmallAvatars=_.N("small_avatars_for_comments");v.webWatchCompactComments=_.N("web_watch_compact_comments");v.editDialog=null;return v};
_.V(tO,_.P);_.W=tO.prototype;_.W.onShow=function(){_.l4("cmv",void 0,"wn_comments")};
_.W.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"}}}};
_.W.detached=function(){this.editDialog=null;this.expander.reset()};
_.W.updateBackgroundColor=function(){if(this.backgroundColor){var v={"--ytd-comment-paid-background-color":_.w1(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.qr(this.hostElement,v)}else _.qr(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.W.resetExpander=function(){var v;(v=this.expander)==null||v.reset()};
_.W.openEditDialog=function(v){v.dialog&&(this.editDialog=v.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.W.onYtNavigate=function(v){var e=v.detail.endpoint;if(e=_.L(e,_.t$2)||_.L(e,_.fe2))v.stopPropagation(),this.openEditDialog(e)};
_.W.onYtCommentboxDismiss=function(){this.editDialog=null;_.qr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.W.onAuthorThumbnailClicked=function(){_.N("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.W.onYtCommentboxResize=function(v){var e;(v==null?0:(e=v.detail)==null?0:e.height)&&_.qr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":v.detail.height+"px"})};
_.vP.Object.defineProperties(tO.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 v,e=(v=this.commentEntity)==null?void 0:v.author;return e&&(e.isCreator||e.isVerified||e.isArtist)?{renderer:{authorEndpoint:e.channelPageEndpoint?_.L(e.channelPageEndpoint,_.zj):_.L(e.channelCommand,_.zj),authorText:{runs:[{text:e.displayName}]},color:e.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:e.isArtist?{iconType:"AUDIO_BADGE"}:
e.isVerified?{iconType:e.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:e.isArtist||e.isVerified?e.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var v,e=(v=this.commentEntity)==null?void 0:v.author;return e!=null&&e.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:e.sponsorBadgeUrl}]},tooltip:e.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var v;return _.L((v=this.commentSurfaceEntity)==null?void 0:v.pdgCommentChip,_.W4A)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var v;return this.voiceReplyContainerViewModel&&((v=this.voiceReplyContainerViewModel)==null?void 0:v.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return _.L((v=this.commentSurfaceEntity)==null?void 0:v.voiceReplyContainerViewModel,CIc)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var v;return this.voiceReplyContainerViewModel&&(v=this.voiceReplyContainerViewModel)!=null&&v.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=(v=this.commentSurfaceEntity)==null?void 0:v.commentBackgroundColor)!=null?e:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.N("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var v,e;return(((v=this.commentEntity)==null?void 0:(e=v.properties)==null?void 0:e.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var v,e;if(_.N("enable_profile_cards_on_comments")&&((v=this.commentEntity)==null?0:(e=v.author)==null?0:e.profileCardEndpoint)&&this.viewModel.allowProfileCard){var d,E;return _.L((d=this.commentEntity)==null?void 0:(E=d.author)==null?void 0:E.profileCardEndpoint,_.zj)}var T,S;return _.L((T=this.commentEntity)==null?void 0:(S=T.avatar)==null?void 0:S.endpoint,_.zj)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var v,e;if(_.N("enable_profile_cards_on_comments")&&((v=this.commentEntity)==null?0:(e=v.author)==null?0:e.channelPageEndpoint)){var d,E;return _.L((d=this.commentEntity)==null?void 0:(E=d.author)==null?void 0:E.channelPageEndpoint,_.zj)}var T,S;return _.L((T=this.commentEntity)==null?void 0:(S=T.avatar)==null?void 0:S.endpoint,_.zj)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E,T=(v=this.commentEntity)==null?void 0:(e=v.avatar)==null?void 0:(d=e.image)==null?void 0:(E=d.sources)==null?void 0:E[0];return T?{thumbnails:[{url:T.url,width:T.width,height:T.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.commentEntity)==null?0:(e=v.author)==null?0:e.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.commentEntity)==null?void 0:(e=v.author)==null?void 0:e.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.commentEntity)==null?void 0:(e=v.properties)==null?void 0:e.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var v;return _.L((v=this.commentSurfaceEntity)==null?void 0:v.publishedTimeCommand,_.zj)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var v,e;if(((v=this.commentEntity)==null?0:v.translatedContent)&&((e=this.translateButtonState)==null?void 0:e.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var d;if((d=this.voiceReplyContainerViewModel)==null?0:d.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var E,T;return((E=this.commentEntity)==null?void 0:(T=E.properties)==null?void 0:T.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.commentSharedEntity)==null?void 0:(e=v.strings)==null?void 0:e.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.commentSharedEntity)==null?void 0:(e=v.strings)==null?void 0:e.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.commentEntity)==null||!v.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var v,e,d=(e=_.L((v=this.viewModel)==null?void 0:v.translateButton,B6J))!=null?e:{},E,T,S,O,b,Y,q,r,h,K,k;return Object.assign({},d,{untoggledStateData:Object.assign({},d.untoggledStateData,{buttonText:(E=this.commentEntity)==null?void 0:(T=E.translateData)==null?void 0:T.text}),togglingStateData:Object.assign({},d.togglingStateData,{buttonText:(S=this.commentSharedEntity)==null?
void 0:(O=S.strings)==null?void 0:O.translatingText}),toggledStateData:Object.assign({},d.toggledStateData,{buttonText:(b=this.commentSharedEntity)==null?void 0:(Y=b.strings)==null?void 0:Y.seeOriginalText}),transitionCommand:((q=this.commentEntity)==null?0:q.translatedContent)?void 0:_.L((r=this.commentEntity)==null?void 0:(h=r.translateData)==null?void 0:h.translateComment,_.zj),triStateKey:(K=this.commentEntity)==null?void 0:(k=K.properties)==null?void 0:k.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((e=_.L(_.L((v=this.toolbarSurface)==null?void 0:v.menuCommand,_.zj),Rvc))==null?void 0:(d=e.menu)==null?void 0:d.menuRenderer)||null}}});
tO.prototype.onYtCommentboxResize=tO.prototype.onYtCommentboxResize;tO.prototype.onYtCommentboxDismiss=tO.prototype.onYtCommentboxDismiss;tO.prototype.onYtNavigate=tO.prototype.onYtNavigate;tO.prototype.resetExpander=tO.prototype.resetExpander;tO.prototype.updateBackgroundColor=tO.prototype.updateBackgroundColor;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],tO.prototype,"ytdReduxBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],tO.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.sg("#author-thumbnail > button"),_.w("design:type",HTMLElement)],tO.prototype,"authorThumbnailAnchor",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("viewModel"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],tO.prototype,"linked",null);
_.c([_.t("viewModel","linked"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"linkedCommentBadge",null);_.c([_.f({reflectToAttribute:!0}),_.t("viewModel"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],tO.prototype,"pinned",null);_.c([_.t("viewModel","pinned"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"pinnedCommentBadge",null);
_.c([_.t("commentEntity","commentSharedEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"authorCommentBadge",null);_.c([_.f({reflectToAttribute:!0}),_.t("authorCommentBadge"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"hasAuthorBadge",null);_.c([_.t("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"sponsorCommentBadge",null);
_.c([_.f({reflectToAttribute:!0}),_.t("sponsorCommentBadge"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"hasSponsorBadge",null);_.c([_.t("commentSurfaceEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"pdgCommentChipRenderer",null);_.c([_.f({reflectToAttribute:!0}),_.t("voiceReplyContainerViewModel"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"hasVoiceReply",null);
_.c([_.t("commentSurfaceEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"voiceReplyContainerViewModel",null);_.c([_.t("voiceReplyContainerViewModel"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"voiceReplyUnavailableText",null);_.c([_.f(),_.w("design:type",Object)],tO.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"viewModel",null);
_.c([_.f({selector:function(v,e){return _.h_(v.entities,"commentSharedEntityPayload",e)},
selectorArgs:["viewModel.sharedKey"]}),_.w("design:type",Object)],tO.prototype,"commentSharedEntity",void 0);_.c([_.f({selector:function(v,e){return _.h_(v.entities,"commentEntityPayload",e)},
selectorArgs:["viewModel.commentKey"]}),_.w("design:type",Object)],tO.prototype,"commentEntity",void 0);_.c([_.f({selector:function(v,e){return _.h_(v.entities,"commentSurfaceEntityPayload",e)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.w("design:type",Object)],tO.prototype,"commentSurfaceEntity",void 0);_.c([_.f({selector:F9W,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.w("design:type",Object)],tO.prototype,"toolbarSurface",void 0);_.c([_.f({selector:QLs,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.w("design:type",Object)],tO.prototype,"translateButtonState",void 0);
_.c([_.t("commentSurfaceEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"backgroundColor",null);_.c([_.f({reflectToAttribute:!0}),_.t("viewModel"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],tO.prototype,"optimalReadingWidthComments",null);_.c([_.sg("ytd-expander"),_.w("design:type",Object)],tO.prototype,"expander",void 0);
_.c([_.$v("backgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tO.prototype,"updateBackgroundColor",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],tO.prototype,"useSmallAvatars",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],tO.prototype,"webWatchCompactComments",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"isReply",null);
_.c([_.t("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"authorThumbnailEndpoint",null);_.c([_.t("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"authorNameEndpoint",null);_.c([_.t("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"authorThumbnail",null);_.c([_.t("commentEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],tO.prototype,"authorTextClass",null);
_.c([_.t("commentEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],tO.prototype,"authorChannelName",null);_.c([_.t("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"publishedTime",null);_.c([_.t("commentSurfaceEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"publishedTimeCommand",null);
_.c([_.t("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"contentText",null);_.c([_.$v("contentText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tO.prototype,"resetExpander",null);_.c([_.t("commentEntity"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],tO.prototype,"shouldShowReadMoreInitially",null);
_.c([_.t("commentSharedEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],tO.prototype,"expandText",null);_.c([_.t("commentSharedEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],tO.prototype,"collapseText",null);_.c([_.t("commentEntity"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],tO.prototype,"shouldShowTranslateButton",null);
_.c([_.t("commentEntity","commentSharedEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"translateButton",null);_.c([_.t("toolbarSurface"),_.w("design:type",Object),_.w("design:paramtypes",[])],tO.prototype,"overflowMenuRenderer",null);_.c([_.f(),_.w("design:type",Object)],tO.prototype,"editDialog",void 0);_.c([_.sg("ytd-comment-dialog-renderer"),_.w("design:type",Object)],tO.prototype,"editCommentDialogContainer",void 0);
_.c([_.sg("ytd-comment-reply-dialog-renderer"),_.w("design:type",Object)],tO.prototype,"editReplyDialogContainer",void 0);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],tO.prototype,"onYtNavigate",null);_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],tO.prototype,"onYtCommentboxDismiss",null);
_.c([_.Kq("yt-commentbox-resize"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],tO.prototype,"onYtCommentboxResize",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-comment-view-model"})],tO);
_.A(tO,"ytd-comment-view-model",function(){if(hVE!==void 0)return hVE;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return hVE=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var fK=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("web_modern_buttons");v.commentThreadingEnabled=_.N("web_delhi_comment_threads");v.isWatchGrid=_.N("kevlar_watch_grid");v.buttonOverrides=v.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};v.JSC$15866_spinnerEl=null;return v};
_.V(fK,_.P);_.W=fK.prototype;_.W.configureContinuationPathMap=function(){return _.N("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.W.shouldShowExpandedThreads=function(v,e){return this.commentThreadingEnabled&&!e&&(v==null?void 0:v.length)>0};
_.W.shouldShowCollapsedThreads=function(v,e){return this.commentThreadingEnabled&&e&&v};
_.W.computeThreadRenderer=function(v){return _.L(v,Gx7)};
_.W.computeIsContinuationItem=function(v){return!!this.computeContinuationItemRenderer(v)};
_.W.computeButtonRenderer=function(v){return _.L(v,_.BD)};
_.W.computeContinuationItemRenderer=function(v){return _.L(v,_.uw)};
_.W.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]]"}}}}}};
_.W.attached=function(){this.isShowRepliesVisible=!0};
_.W.dataChanged=function(){var v=this.expanderContents;v&&(v.hidden=!0);this.isLoading=!1};
_.W.endsInContinuation=function(v){return!!v&&v.length>0&&!!this.computeContinuationItemRenderer(v[v.length-1])};
_.W.computeShouldShowHideRepliesButton=function(v,e){return!v&&e};
_.W.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.W.isLoadingChanged=function(){this.isLoading&&!this.JSC$15866_spinnerEl&&(this.JSC$15866_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.IB(this.expanderContents).appendChild(this.JSC$15866_spinnerEl));this.JSC$15866_spinnerEl&&(this.JSC$15866_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var v;(v=this.contents)==null||v.classList.remove("reloading")}};
_.W.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var v=_.L(this.data.viewReplies,_.BD);v&&this.ytRendererBehavior.logExplicitClick(v);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.W.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var v=_.L(this.data.hideReplies,_.BD);v&&this.ytRendererBehavior.logExplicitClick(v);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.W.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var v=_.IB(this.hostElement).querySelector("#expander-contents");v&&(v.hidden=this.isShowRepliesVisible)}};
_.W.computeAlign=function(){if(this.modern){var v;return!((v=this.data)==null?0:v.viewRepliesCreatorThumbnail)}};
_.vP.Object.defineProperties(fK.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var v,e;return this.endsInContinuation((v=this.data)==null?void 0:v.contents)||this.commentThreadingEnabled&&this.endsInContinuation((e=this.data)==null?void 0:e.subThreads)}}});
fK.prototype.isShowMoreChanged=fK.prototype.isShowMoreChanged;fK.prototype.isLoadingChanged=fK.prototype.isLoadingChanged;fK.prototype.triggerFirstContinuation=fK.prototype.triggerFirstContinuation;fK.prototype.dataChanged=fK.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.FL),_.w("design:type",Object)],fK.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fK.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fK.prototype,"modern",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fK.prototype,"commentThreadingEnabled",void 0);_.c([_.f(),_.w("design:type",Boolean)],fK.prototype,"collapsed",void 0);
_.c([_.f(),_.w("design:type",Function)],fK.prototype,"toggleCollapsed",void 0);_.c([_.f(),_.w("design:type",Boolean)],fK.prototype,"isLoading",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],fK.prototype,"isShowRepliesVisible",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],fK.prototype,"useNewFormatting",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fK.prototype,"isWatchGrid",void 0);_.c([_.f(),_.w("design:type",Object)],fK.prototype,"buttonOverrides",void 0);
_.c([_.sg("#expander-contents"),_.w("design:type",HTMLElement)],fK.prototype,"expanderContents",void 0);_.c([_.sg("ytd-continuation-item-renderer"),_.w("design:type",Object)],fK.prototype,"continuationItemRenderer",void 0);_.c([_.sg("#contents"),_.w("design:type",HTMLElement)],fK.prototype,"contents",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fK.prototype,"dataChanged",null);
_.c([_.t("data.contents","data.subThreads.*"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fK.prototype,"hasContinuation",null);_.c([_.Kq("yt-expander-more-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fK.prototype,"triggerFirstContinuation",null);_.c([_.$v("isLoading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fK.prototype,"isLoadingChanged",null);
_.c([_.$v("isShowRepliesVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fK.prototype,"isShowMoreChanged",null);_.c([_.z({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],fK);
_.A(fK,"ytd-comment-replies-renderer",function(){if(buB!==void 0)return buB;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return buB=v},{mode:1});var sYA;var Rv=function(){var v=_.P.apply(this,arguments)||this;v.isOpen=!1;v.commentDialog=null;v.useSmallAvatars=_.N("small_avatars_for_comments");v.useSmallAvatarsEngagementPanelOnly=_.N("small_avatars_for_comments_ep");v.placeholderFocusListener=null;v.hasOpenedDialog=!1;v.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return v};
_.V(Rv,_.P);_.W=Rv.prototype;_.W.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]]"}}}}}};
_.W.ready=function(){var v=this,e=_.IB(this.hostElement).querySelector("#placeholder-area"),d=_.IB(this.hostElement).querySelector("#simplebox-placeholder"),E=function(T){T.stopPropagation();T instanceof KeyboardEvent&&T.type==="keypress"&&T.keyCode!==13&&T.keyCode!==32||v.openDialog()};
this.placeholderFocusListener=E;d.addEventListener("focus",this.placeholderFocusListener);e.addEventListener("tap",E);e.addEventListener("keypress",E)};
_.W.maybeRemoveFocusEventListener=function(){var v;(v=this.data)!=null&&v.prepareAccountEndpoint&&!_.N("web_comments_simplebox_modal_focus_on_tap_ks")&&(v=_.IB(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(v.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.W.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.W.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.N("web_comment_simplebox_resolve_polymer_command_ks")?_.hg.instance.resolveCommand(this.data.prepareAccountEndpoint):_.K1(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);v&&this.ytdOpenPopupBehavior.openPopup(v);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.IB(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.W.onYtCommentboxDismiss=function(v){v.stopPropagation();this.isOpen=!1};
_.W.onCreateCommentAction=function(v){this.get("createCommentAction.contents",v)&&(this.isOpen=!1)};
_.W.computeCommentDialog=function(v){return{placeholderText:v.placeholderText,authorThumbnail:v.authorThumbnail,submitButton:v.submitButton,imageButton:v.imageButton,cancelButton:v.cancelButton,emojiButton:v.emojiButton,emojis:v.emojis,emojiPicker:v.emojiPicker,aadcGuidelinesStateEntityKey:v.aadcGuidelinesStateEntityKey,openAadcDialog:v.openAadcDialog,unicodeEmojisUrl:v.unicodeEmojisUrl}};
_.W.onHideIdentityChip=function(v){_.L(v,N66)&&this.set("data.placeholderText",_.L(v,N66).placeholderText)};
Rv.prototype.onYtCommentboxDismiss=Rv.prototype.onYtCommentboxDismiss;Rv.prototype.dataChanged=Rv.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],Rv.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Rv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Rv.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Rv.prototype,"isOpen",void 0);_.c([_.f(),_.w("design:type",Object)],Rv.prototype,"commentDialog",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Rv.prototype,"engagementPanel",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Rv.prototype,"useSmallAvatars",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Rv.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Rv.prototype,"enableCreationBox",void 0);_.c([_.f(),_.w("design:type",Boolean)],Rv.prototype,"showCreateDialog",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Rv.prototype,"dataChanged",null);_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Rv.prototype,"onYtCommentboxDismiss",null);_.c([_.z({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Rv);
_.A(Rv,"ytd-comment-simplebox-renderer",function(){if(sYA!==void 0)return sYA;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return sYA=v},{mode:1});var NFA;_.RZ("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var P2=function(){var v=_.P.apply(this,arguments)||this;v.addHoverEffect=_.N("swatcheroo_comments_hover_effect");v.useSmallAvatars=_.N("small_avatars_for_comments");v.threadHovered=!1;v.collapsed=!1;v.removed=!1;v.actionMap=v.configureActionMap();v.toggleCollapsed=function(){v.collapsed=!v.collapsed;v.collapsed&&_.N("web_comment_threading_scroll_on_collapse")&&_.b4(v.hostElement,"yt-scroll-to-watch-element",[v.commentElement])};
return v};
_.V(P2,_.P);_.W=P2.prototype;_.W.configureActionMap=function(){return _.N("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.W.createCommentReplyAction=function(v){v=_.L(v,jnn);if(v!=null&&v.contents){var e=v.replyToCommentId,d=v.parentCommentId,E,T=(E=this.commentViewModel)==null?void 0:E.commentId;(T===e||T===d&&!e)&&this.attachReply(v.contents)}};
_.W.attachReply=function(v){var e;((e=this.data)==null?0:e.replies)?(e=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+e+".continuationItemRenderer")?this.splice("data.replies.commentRepliesRenderer.subThreads",e,0,v):this.push("data.replies.commentRepliesRenderer.subThreads",v)):this.set("data.replies",{commentRepliesRenderer:{subThreads:[v]}})};
_.W.removeCommentAction=function(v){v=_.L(v,V9e);var e=v==null?void 0:v.commentId,d;e&&((d=this.commentViewModel)==null?void 0:d.commentId)===e&&this.maybeRemoveComment(v.actionResult)};
_.W.banAuthorAction=function(v){v=_.L(v,KJM);var e=v==null?void 0:v.commentId,d;e&&((d=this.commentViewModel)==null?void 0:d.commentId)===e&&this.maybeRemoveComment(v.actionResult)};
_.W.hideReportedCommentAction=function(v){v=_.L(v,HyA);var e=v==null?void 0:v.commentId,d;e&&((d=this.commentViewModel)==null?void 0:d.commentId)===e&&this.maybeRemoveComment(v.actionResult)};
_.W.maybeRemoveComment=function(v){v&&v.status==="STATUS_SUCCEEDED"&&(this.feedbackText=v.feedbackText||_.WK("Comment removed"),this.removed=!0)};
_.W.onTap=function(v){if(this.addHoverEffect&&!this.engagementPanel&&!_.UG(_.vg(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||_.K1({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.W.attached=function(){var v=this,e;(e=this.commentThreadHitbox)==null||e.addEventListener("mouseover",function(){v.threadHovered=!0});
var d;(d=this.commentThreadHitbox)==null||d.addEventListener("mouseout",function(){v.threadHovered=!1});
var E;(E=this.commentThreadHitbox)==null||E.addEventListener("click",function(){v.maybeToggleCollapsed()})};
_.W.maybeToggleCollapsed=function(){var v,e,d,E=(v=this.data)==null?void 0:(e=v.replies)==null?void 0:(d=e.commentRepliesRenderer)==null?void 0:d.subThreads;E&&(E.length===1&&_.L(E[0],_.uw)||this.toggleCollapsed())};
_.vP.Object.defineProperties(P2.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)!=null&&v.commentViewModel)return _.L(this.data.commentViewModel,xsJ)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return _.N("web_delhi_comment_threads")&&!!((v=this.data)==null?0:(e=v.replies)==null?0:(d=e.commentRepliesRenderer)==null?0:d.subThreads)}}});
P2.prototype.onTap=P2.prototype.onTap;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],P2.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],P2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],P2.prototype,"addHoverEffect",void 0);
_.c([_.f(),_.w("design:type",Object)],P2.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],P2.prototype,"useSmallAvatars",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],P2.prototype,"isSubThread",void 0);_.c([_.sg(".thread-hitbox"),_.w("design:type",HTMLElement)],P2.prototype,"commentThreadHitbox",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],P2.prototype,"threadHovered",void 0);
_.c([_.sg("#comment"),_.w("design:type",HTMLElement)],P2.prototype,"commentElement",void 0);_.c([_.f(),_.w("design:type",Object)],P2.prototype,"collapsed",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],P2.prototype,"removed",void 0);_.c([_.f(),_.w("design:type",Object)],P2.prototype,"feedbackText",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],P2.prototype,"commentViewModel",null);
_.c([_.t("data.replies"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],P2.prototype,"hasSubThreading",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],P2.prototype,"engagementPanel",void 0);_.c([_.Kq("tap"),_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],P2.prototype,"onTap",null);_.c([_.z({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],P2);
_.A(P2,"ytd-comment-thread-renderer",function(){if(NFA!==void 0)return NFA;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer 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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return NFA=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var kHn;var xO=function(){var v=_.P.apply(this,arguments)||this;v.modernTypography=_.N("web_modern_typography");v.compactHeader=_.N("web_watch_compact_comments_header");v.hidePanelButton=!1;v.isPostSchedulingEnabled=_.N("enable_post_scheduling");v.hasFinishedStamping=!1;v.JSC$15889_handleOpenPostCommentDialogActionAfterStamp=!1;v.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return v};
_.V(xO,_.P);_.W=xO.prototype;
_.W.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"}}}};
_.W.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.W.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15889_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.W.onYtServiceRequestSent=function(v,e){if(!_.N("kevlar_command_handler")&&e.actions)for(v=0;v<e.actions.length;v++){var d=e.actions[v];_.L(d,FvM)&&_.IB(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.L(d,FvM))}};
_.W.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var v;if(this.getPrefilledBackstagePostDialog((v=this.data)==null?void 0:v.actions)){_.IB(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var e=_.IB(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;e&&_.Uh(this,function(){e.focus();e.openDialog&&e.openDialog()})}}else this.hasActionsChange=!0};
_.W.computeIsBackstage=function(v){return v};
_.W.onYtCommentboxDismiss=function(){_.IB(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.W.removePrefilledDialog=function(v){if(v==null?0:v.actions){for(var e=v.actions.length-1;e>=0;e--){var d=void 0;((d=_.L(v.actions[e],GB2))==null?0:d.dialog)&&delete v.actions[e]}this.set("data",void 0);this.set("data",v)}};
_.W.getPrefilledBackstagePostDialog=function(v){if(v)for(var e=0;e<v.length;e++){var d=v[e],E=void 0;if((E=_.L(d,GB2))==null?0:E.dialog)return _.L(d,GB2).dialog}return null};
_.W.computeBackstagePostDialog=function(v){return v&&(this.getPrefilledBackstagePostDialog(v.actions)||v.createRenderer)};
_.W.dataChanged=function(){if(this.data){var v=this.data.customEmojis,e=this.data.unicodeEmojisUrl;_.FW.clear();e&&_.sRA(_.FW,e);v&&_.FW.load(v)}};
_.W.handleSignalActionOpenPostCommentDialogAction=function(){var v=_.IB(this.hostElement).querySelector("ytd-comment-simplebox-renderer");v?v.openDialog():this.JSC$15889_handleOpenPostCommentDialogActionAfterStamp=!0};
_.vP.Object.defineProperties(xO.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.N("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E,T,S,O;return!this.hidePanelButton&&_.N("kevlar_watch_comments_panel_button")&&((O=_.L((v=this.data)==null?void 0:(e=v.sortMenu)==null?void 0:(d=e.sortFilterSubMenuRenderer)==null?void 0:(E=d.subMenuItems)==null?void 0:(T=E[0])==null?void 0:(S=T.serviceEndpoint)==null?void 0:S.commandMetadata,_.$B))==null?void 0:O.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.sz("MINIPLAYER_EXPAND_LABEL"),text:_.pQ(_.sz("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
xO.prototype.dataChanged=xO.prototype.dataChanged;xO.prototype.onYtCommentboxDismiss=xO.prototype.onYtCommentboxDismiss;xO.prototype.observePrefilledBackstagePostDialog=xO.prototype.observePrefilledBackstagePostDialog;xO.prototype.onYtServiceRequestSent=xO.prototype.onYtServiceRequestSent;xO.prototype.onStampFinished=xO.prototype.onStampFinished;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],xO.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],xO.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],xO.prototype,"modernTypography",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],xO.prototype,"compactHeader",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],xO.prototype,"engagementPanel",void 0);_.c([_.f(),_.w("design:type",Object)],xO.prototype,"hidePanelButton",void 0);_.c([_.f({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.w("design:type",Boolean)],xO.prototype,"isBackstage",void 0);_.c([_.f({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.w("design:type",Object)],xO.prototype,"backstagePostDialog",void 0);
_.c([_.f(),_.w("design:type",Object)],xO.prototype,"isPostSchedulingEnabled",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data","showCommentsPanelButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],xO.prototype,"useSpaceBetween",null);_.c([_.f({reflectToAttribute:!0}),_.t("data","hidePanelButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],xO.prototype,"showCommentsPanelButton",null);
_.c([_.t("data","showCommentsPanelButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],xO.prototype,"commentsPanelButtonData",null);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xO.prototype,"onStampFinished",null);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],xO.prototype,"onYtServiceRequestSent",null);
_.c([_.$v("data.actions"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xO.prototype,"observePrefilledBackstagePostDialog",null);_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],xO.prototype,"onYtCommentboxDismiss",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xO.prototype,"dataChanged",null);
_.c([_.z({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],xO);
_.A(xO,"ytd-comments-header-renderer",function(){if(kHn!==void 0)return kHn;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return kHn=v},{mode:1});var LRI;var B2=function(){return _.P.apply(this,arguments)||this};
_.V(B2,_.P);_.c([_.f(),_.w("design:type",Object)],B2.prototype,"data",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.c([_.z({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],B2);
_.A(B2,"ytd-destination-button-renderer",function(){if(LRI!==void 0)return LRI;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return LRI=v},{mode:1});var V5J;var CK=function(){var v=_.P.apply(this,arguments)||this;v.isRichGrid=!1;v.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};v.modernTypography=_.N("web_modern_typography");return v};
_.V(CK,_.P);_.W=CK.prototype;_.W.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.W.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.W.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.W.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var v;if((v=this.data)==null||!v.isExpanded){v=this.hostElement.clientWidth;var e;if(v&&(e=this.data)!=null&&e.destinationButtons){e=Math.floor((v+4)/214);v=this.data.destinationButtons.length;var d=Math.ceil(v/e);this.fullyVisibleRows=v%e===1&&d===2?1:Math.min(d,2);this.isShowMoreVisible=this.fullyVisibleRows<d}}}};
_.W.updateRichGridDestinationButtonsVisibility=function(){var v,e;if(this.isRichGrid&&((v=this.data)==null||!v.isExpanded)&&(e=this.data)!=null&&e.destinationButtons){v=this.richGridItemsPerRow+1;e=this.data.destinationButtons.length;var d=Math.ceil(e/v);this.fullyVisibleRows=e%v===1&&d===2?1:Math.min(d,2);this.isShowMoreVisible=this.fullyVisibleRows<d}};
_.W.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
CK.prototype.updateRichGridDestinationButtonsVisibility=CK.prototype.updateRichGridDestinationButtonsVisibility;_.c([_.f(),_.w("design:type",Object)],CK.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Number)],CK.prototype,"fullyVisibleRows",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],CK.prototype,"isShowMoreVisible",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],CK.prototype,"isRichGrid",void 0);
_.c([_.f({selector:_.X1,value:0}),_.w("design:type",Number)],CK.prototype,"richGridItemsPerRow",void 0);_.c([_.f(),_.w("design:type",Object)],CK.prototype,"gridStateActionMap",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],CK.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],CK.prototype,"ytdReduxBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],CK.prototype,"modernTypography",void 0);_.c([_.$v("data","richGridItemsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CK.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.c([_.z({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],CK);
_.A(CK,"ytd-destination-shelf-renderer",function(){if(V5J!==void 0)return V5J;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return V5J=v},{mode:1});var ogI;var XX=function(){return _.P.apply(this,arguments)||this};
_.V(XX,_.P);XX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],XX.prototype,"data",void 0);_.c([_.z({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],XX);
_.A(XX,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(ogI!==void 0)return ogI;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ogI=v},{mode:1});var JFc;var zC=function(){var v=_.P.apply(this,arguments)||this;v.disableAnimation=!1;v.isSlimlineSurvey=!1;v.isSlimlineSurveyFollowUp=!1;v.isShortsStyle=!1;return v};
_.V(zC,_.P);zC.prototype.onTap=function(v){v.preventDefault();this.data&&_.Iq(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.vP.Object.defineProperties(zC.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 v,e,d,E,T;return((v=this.data)==null?0:v.checked)?(e=this.data)==null?void 0:(d=e.onStateIcon)==null?void 0:d.iconType:(E=this.data)==null?void 0:(T=E.defaultStateIcon)==null?void 0:T.iconType}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],zC.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],zC.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],zC.prototype,"disableAnimation",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zC.prototype,"isSlimlineSurvey",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zC.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zC.prototype,"isShortsStyle",void 0);_.c([_.t("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],zC.prototype,"isAnimatedIcon",null);
_.c([_.t("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.w("design:type",Number),_.w("design:paramtypes",[])],zC.prototype,"iconSize",null);_.c([_.t("isShortsStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],zC.prototype,"isDarkTheme",null);_.c([_.t("data.checked"),_.w("design:type",Object),_.w("design:paramtypes",[])],zC.prototype,"icon",null);_.c([_.z({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],zC);
_.A(zC,"ytd-rating-survey-option-renderer",function(){if(JFc!==void 0)return JFc;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return JFc=v},{mode:2});var GH7;var ld=function(){var v=_.P.apply(this,arguments)||this;v.firstResponseText=null;v.lastResponseText=null;v.selectedNonStarOption=null;v.hideOptions=!1;v.hideUndoButton=!0;v.disableAnimation=!1;v.showResponseRangeText=!1;v.selectedRatingIndex=-1;v.isSlimlineSurvey=!1;v.isSlimlineSurveyFollowUp=!1;v.isShortsStyle=!1;v.slimlineSurveyRatingSelectedIndex=-1;return v};
_.V(ld,_.P);_.W=ld.prototype;_.W.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.W.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.W.onOptionChange=function(v,e){var d=this;v=e.onStateIcon&&e.defaultStateIcon&&e.onStateIcon.iconType===e.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(O,b){O.responseText===e.responseText?d.isSlimlineSurvey?(d.selectedRatingIndex=b,d.ytdReduxBehavior.dispatch(h5B(b))):(d.setSurveyOptionValue(b,!0,"checked"),d.setSurveyOptionValue(b,!0,"selected")):(d.setSurveyOptionValue(b,!1,"checked"),d.setSurveyOptionValue(b,
!1,"selected"))});
else if(v)this.selectedNonStarOption=e,this.hideOptions=!0;else{var E=this.ytRendererBehavior.getSimpleString(e.responseText),T=!0;this.getOptionRenderers().forEach(function(O,b){d.setSurveyOptionValue(b,T,"checked");d.setSurveyOptionValue(b,!1,"selected");d.ytRendererBehavior.getSimpleString(O.responseText)===E&&(T=!1,d.setSurveyOptionValue(b,!0,"selected"))})}v=e.responseEndpoint;
var S;e.followUpCommand&&(S=_.L(e.followUpCommand,DUe));this.isSlimlineSurvey?(this.resetComponent(),_.b4(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.b4(this.hostElement,"ytd-inline-survey-rating-select-action",[v,S])};
_.W.showSelectedOption=function(){var v=this;_.RM.addJob(function(){var e=v.getOptionRenderers()[v.slimlineSurveyRatingSelectedIndex];v.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),e)},8,100)};
_.W.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(v){var e;return(e=_.L(v,prA))!=null?e:{}}):[]};
_.W.onUndoClick=function(){this.resetComponent();_.b4(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.W.setSurveyOptionValue=function(v,e,d){this.notifyPath("data.ratings."+v+".ratingSurveyOptionRenderer."+d);this.set("data.ratings."+v+".ratingSurveyOptionRenderer."+d,e)};
_.W.resetComponent=function(){var v=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var e=this.getOptionRenderers(),d,E;this.firstResponseText=(E=(d=e[0])==null?void 0:d.responseText)!=null?E:null;var T,S;this.lastResponseText=(S=(T=e[e.length-1])==null?void 0:T.responseText)!=null?S:null;e.forEach(function(O,b){v.setSurveyOptionValue(b,!1,"checked");v.setSurveyOptionValue(b,!1,"selected")})};
_.vP.Object.defineProperties(ld.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
ld.prototype.onOptionChange=ld.prototype.onOptionChange;ld.prototype.dataChanged=ld.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],ld.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ld.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],ld.prototype,"firstResponseText",void 0);_.c([_.f(),_.w("design:type",Object)],ld.prototype,"lastResponseText",void 0);_.c([_.f(),_.w("design:type",Object)],ld.prototype,"selectedNonStarOption",void 0);_.c([_.f(),_.w("design:type",Object)],ld.prototype,"hideOptions",void 0);_.c([_.f(),_.w("design:type",Object)],ld.prototype,"hideUndoButton",void 0);_.c([_.f(),_.w("design:type",Object)],ld.prototype,"disableAnimation",void 0);
_.c([_.f(),_.w("design:type",Object)],ld.prototype,"showResponseRangeText",void 0);_.c([_.f(),_.w("design:type",Object)],ld.prototype,"selectedRatingIndex",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ld.prototype,"isSlimlineSurvey",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ld.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ld.prototype,"isShortsStyle",void 0);_.c([_.f({selector:function(v){return v.ui.slimlineSurveyRatingSelectedIndex}}),
_.w("design:type",Object)],ld.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.c([_.t("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ld.prototype,"isSingleSelect",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ld.prototype,"dataChanged",null);
_.c([_.Kq("ytd-rating-survey-option-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],ld.prototype,"onOptionChange",null);_.c([_.z({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],ld);
_.A(ld,"ytd-rating-survey-renderer",function(){if(GH7!==void 0)return GH7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return GH7=v},{mode:1});var M5i;var t5i;var fC6;var Cu0=(q0.FIRSTDAYOFWEEK+1)%7,RVg=function(v,e,d,E){var T="";if(E.selection&&RqS(E.selection))Yp(v,E.selection)&&(T+=" selected");else if(E.selection&&PuU(E.selection)){var S=E.selection.selectionState||"START_DATE";Yp(v,E.selection.start)&&(T+=" period-start ",S==="START_DATE"&&(T+="selected"));Yp(v,E.selection.end)&&(T+=" period-end ",S==="END_DATE"&&(T+="selected"));mC(v,E.selection.start)||mC(E.selection.end,v)||(T+=" highlighted")}if(mC(e,E.start)||mC(E.end,e))T+=" disabled";E.circleToday&&
Yp(e,d)&&(T+=" today");return T};var H2=function(){return _.P.apply(this,arguments)||this};
_.V(H2,_.P);_.W=H2.prototype;_.W.attached=function(){var v=this;_.Uh(this,function(){v.JSC$15923_calendarMain.scrollHeight>0&&(v.calendarConfig.selection?v.scrollToDate(xbj(v.calendarConfig.selection)):v.scrollToDate(v.calendarConfig.end))})};
_.W.updateSelection=function(v){v=XI3(Object.assign({},this.calendarConfig,{selection:v}),RVg);this.splice.apply(this,["renderData.months",0,v.length].concat(_.t7(v)))};
_.W.scrollToDate=function(v){this.renderData&&(v=zq0(v,this.renderData),v!==void 0&&this.JSC$15923_calendarMain.scrollToIndex(v))};
_.W.scrollToNextMonth=function(){this.JSC$15923_calendarMain.scrollToIndex(this.JSC$15923_calendarMain.firstVisibleIndex+1)};
_.W.scrollToPrevMonth=function(){this.JSC$15923_calendarMain.firstVisibleIndex===0&&this.JSC$15923_calendarMain.scrollTo(0,0);this.JSC$15923_calendarMain.scrollToIndex(this.JSC$15923_calendarMain.firstVisibleIndex-1)};
_.W.handleDayClick=function(v){_.b4(this.hostElement,"ytd-calendar-date-clicked",[v.model.day.date])};
_.W.handleDayMouseDown=function(v){v.preventDefault();_.b4(this.hostElement,"ytd-calendar-date-mousedown",[v.model.day.date])};
_.W.handleDayMouseUp=function(v){_.b4(this.hostElement,"ytd-calendar-date-mouseup",[v.model.day.date])};
_.W.handleDayMouseEnter=function(v){v.preventDefault();_.b4(this.hostElement,"ytd-calendar-date-mouseenter",[v.model.day.date])};
_.W.handleDayMouseLeave=function(v){_.b4(this.hostElement,"ytd-calendar-date-mouseleave",[v.model.day.date])};
_.vP.Object.defineProperties(H2.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var v=this.calendarConfig,e=RVg;e=e===void 0?RVg:e;for(var d=[],E=0;E<7;E++)d.push(q0.NARROWWEEKDAYS[(E+Cu0)%7]);return{months:XI3(v,e),daysOfWeekLabel:d}}}});
_.c([_.f(),_.w("design:type",Object)],H2.prototype,"calendarConfig",void 0);_.c([_.sg("#calendar-main"),_.w("design:type",Object)],H2.prototype,"JSC$15923_calendarMain",void 0);_.c([_.t("calendarConfig"),_.w("design:type",Object),_.w("design:paramtypes",[])],H2.prototype,"renderData",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],H2);
_.A(H2,"ytd-scrollable-calendar",function(){if(fC6!==void 0)return fC6;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return fC6=v},{mode:2});var Psu;var xOe;var AO=function(){var v=_.P.apply(this,arguments)||this;v.hideCharCounter=!1;v.hideLabel=!1;v.noLabelFloat=!1;v.autoValidate=!0;v.invalid=!1;v.disabled=!1;v.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return v};
_.V(AO,_.P);_.W=AO.prototype;_.W.reset=function(v){this.value=v&&this.data?this.data.value=v:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.W.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.W.focusTextInput=function(){this.input.focus()};
_.W.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()};
_.W.valueChanged=function(){var v,e;if(((v=this.data)==null?0:v.value)||((e=this.data)==null?void 0:e.value)==="")this.value=this.data.value;else{var d;((d=this.data)==null?void 0:d.value)!==void 0||this.value||(this.value="")}};
_.W.computeLabel=function(v,e){return e?"":_.vv(v)};
_.W.computeAriaLabel=function(v,e){return e?_.vv(v):""};
_.W.computeErrorMessage=function(v,e,d,E){!v&&e?v=d||this.strings.REQUIRED_LABEL:(v=_.vv(E),v=_.bL(v,"&")?"document"in _.TO?MW6(v):tW6(v):v);return v};
_.W.computeType=function(v){return v==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.W.onTextValueChanged=function(v){this.value=v.detail.value;var e;(e=this.onValueChanged)==null||e.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.W.handleUpdateTextInputFormFieldRendererCommand=function(v){(v=_.L(v,KWA))&&this.data&&this.data.id===v.id&&(v.invalid!==void 0&&(this.invalid=v.invalid),v.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",v.invalidValueErrorMessage))};
_.W.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("value-changed",this.value))};
_.W.updateInvalidFromBinding=function(v){this.invalid=v.detail.value};
_.vP.Object.defineProperties(AO.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var v;return!((v=this.data)==null||!v.isMultiline)}}});
AO.prototype.valueChangedForBinding=AO.prototype.valueChangedForBinding;AO.prototype.valueChanged=AO.prototype.valueChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],AO.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],AO.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],AO.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],AO.prototype,"value",void 0);_.c([_.f(),_.w("design:type",String)],AO.prototype,"pattern",void 0);_.c([_.f(),_.w("design:type",String)],AO.prototype,"errorMessage",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],AO.prototype,"componentStyle",void 0);_.c([_.f(),_.w("design:type",Object)],AO.prototype,"hideCharCounter",void 0);
_.c([_.f(),_.w("design:type",Object)],AO.prototype,"hideLabel",void 0);_.c([_.f(),_.w("design:type",Object)],AO.prototype,"noLabelFloat",void 0);_.c([_.f(),_.w("design:type",Function)],AO.prototype,"onValueChanged",void 0);_.c([_.f(),_.w("design:type",Boolean)],AO.prototype,"isMultilineOverride",void 0);_.c([_.f(),_.w("design:type",Object)],AO.prototype,"autoValidate",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],AO.prototype,"invalid",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],AO.prototype,"disabled",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],AO.prototype,"enableOverlayTheme",void 0);_.c([_.f({value:{REQUIRED_LABEL:_.sz("REQUIRED_LABEL",void 0,"Required")}}),_.w("design:type",Object)],AO.prototype,"strings",void 0);_.c([_.sg("#input"),_.w("design:type",Object)],AO.prototype,"input",void 0);
_.c([_.t("data","isMultilineOverride"),_.w("design:type",Object),_.w("design:paramtypes",[])],AO.prototype,"isMultiline",null);_.c([_.V1("data.value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],AO.prototype,"valueChanged",null);_.c([_.$v("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],AO.prototype,"valueChangedForBinding",null);_.c([_.lh({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],AO);
_.A(AO,"yt-text-input-form-field-renderer",function(){if(xOe===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Psu===void 0&&(Psu=document.createElement("template"));var E=Psu;d.call(e,E.content.cloneNode(!0),v.content.firstChild);xOe=v}v=xOe;return v},{mode:2});var Z6=function(){var v=_.P.apply(this,arguments)||this;v.data=void 0;v.selectionState="START_DATE";v.isStartDateInvalid=!1;v.isEndDateInvalid=!1;v.autoapply=!1;v.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 v};
_.V(Z6,_.P);_.W=Z6.prototype;_.W.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"}}}}};
_.W.focus=function(){this.startDateInput.focus()};
_.W.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:yZ(this.data.selection.start),end:yZ(this.data.selection.end)})};
_.W.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.W.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Z0(this.selectionState)}};
_.W.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.W.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.W.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.W.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var v=this.calendar.calendarConfig,e=v.end;v=Hm0({start:v.start,end:this.endDate||e},this.startDateInput.value||"");this.isStartDateInvalid=!v.isValid;v.isValid&&(v=v.value,this.selection=this.endDate?{start:v,end:this.endDate}:v,this.calendar.scrollToDate(v));this.updateInvalidState()}};
_.W.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var v=this.calendar.calendarConfig,e=v.start;v=Hm0({start:this.startDate||e,end:v.end},this.endDateInput.value||"");this.isEndDateInvalid=!v.isValid;v.isValid&&(v=v.value,this.selection={start:this.startDate,end:v},this.calendar.scrollToDate(v));this.updateInvalidState()}};
_.W.handleCalendarDateClicked=function(v){var e=this.selection&&xbj(this.selection),d=this.selection&&BM3(this.selection);e&&!mC(v,e)&&this.selectionState==="END_DATE"?(this.selection={start:e,end:v},this.selectionState="START_DATE"):(d&&!mC(d,v)?this.selection={start:v,end:d}:this.selection=v,this.selectionState="END_DATE")};
_.W.handleCalendarDateMouseDown=function(v){this.selection&&!RqS(this.selection)&&(this.dragPivot=Yp(v,this.selection.start)?this.selection.end:Yp(v,this.selection.end)?this.selection.start:v)};
_.W.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.W.handleCalendarDateMouseEnter=function(v){this.dragPivot&&(this.selection={start:function(e,d){return mC(e,d)?e:d}(this.dragPivot,v),
end:function(e,d){return mC(e,d)?d:e}(this.dragPivot,v)},this.dragPivot||(this.selectionState="START_DATE"))};
_.W.handleCalendarDateMouseLeave=function(){};
_.W.handleCalendarSubmitDateRange=function(){this.selection&&!RqS(this.selection)&&_.b4(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.W.updateInvalidState=function(){var v=function(e,d){d?e.setAttribute("invalid",""):e.removeAttribute("invalid")};
v(this.startDateInput,this.isStartDateInvalid);v(this.endDateInput,this.isEndDateInvalid)};
_.W.updateDateStrings=function(){this.selection&&(RqS(this.selection)?fE0(this.selection):(fE0(this.selection.start),fE0(this.selection.end)))};
_.W.updateCalendarSelection=function(v){this.calendar.updateSelection(Object.assign({},v,{selectionState:this.selectionState}))};
_.W.updateIsStartDateInvalidFromBinding=function(v){this.isStartDateInvalid=v.detail.value};
_.W.updateIsEndDateInvalidFromBinding=function(v){this.isEndDateInvalid=v.detail.value};
_.W.updateStartDateStringFromBinding=function(){};
_.W.updateEndDateStringFromBinding=function(){};
_.vP.Object.defineProperties(Z6.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:yZ(this.data.dateRangeStart),end:yZ(this.data.dateRangeEnd),selection:{start:yZ(this.data.selection.start),end:yZ(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&xbj(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&BM3(this.selection)}}});
Z6.prototype.resetTextboxes=Z6.prototype.resetTextboxes;Z6.prototype.observeSelection=Z6.prototype.observeSelection;Z6.prototype.dataChanged=Z6.prototype.dataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Z6.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.sg("#calendar"),_.w("design:type",Object)],Z6.prototype,"calendar",void 0);
_.c([_.sg("#start-date"),_.w("design:type",Object)],Z6.prototype,"startDateInput",void 0);_.c([_.sg("#end-date"),_.w("design:type",Object)],Z6.prototype,"endDateInput",void 0);_.c([_.f(),_.w("design:type",Object)],Z6.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Z6.prototype,"selection",void 0);_.c([_.f(),_.w("design:type",String)],Z6.prototype,"selectionState",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Z6.prototype,"calendarConfig",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Z6.prototype,"errorMessage",null);_.c([_.t("selection"),_.w("design:type",Object),_.w("design:paramtypes",[])],Z6.prototype,"startDate",null);_.c([_.t("selection"),_.w("design:type",Object),_.w("design:paramtypes",[])],Z6.prototype,"endDate",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Z6.prototype,"dataChanged",null);
_.c([_.$v("selection","selectionState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Z6.prototype,"observeSelection",null);_.c([_.$v("selectionState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Z6.prototype,"resetTextboxes",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Z6);
_.A(Z6,"ytd-date-period-picker-renderer",function(){if(t5i!==void 0)return t5i;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return t5i=v},{mode:1});var c2=function(){var v=_.P.apply(this,arguments)||this;var e={};v.actionMap=(e["ytd-date-period-picker-apply"]="handleDateRangeUpdated",e);return v};
_.V(c2,_.P);c2.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
c2.prototype.handleDateRangeUpdated=function(){};
_.c([_.f(),_.w("design:type",Object)],c2.prototype,"data",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],c2.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],c2.prototype,"rendererstamperBehavior",void 0);_.c([_.z({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],c2);
_.A(c2,"ytd-report-history-section-header-renderer",function(){if(M5i!==void 0)return M5i;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return M5i=v},{mode:1});var BF7;var CsE;var X9A;var wz=function(){return _.P.apply(this,arguments)||this};
_.V(wz,_.P);_.vP.Object.defineProperties(wz.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?0:(e=v.icon)==null?0:e.iconType)?_.qC(this.data.icon.iconType):""}}});
_.c([_.f(),_.w("design:type",Object)],wz.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",String),_.w("design:paramtypes",[])],wz.prototype,"icon",null);_.c([_.z({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],wz);
_.A(wz,"ytd-report-history-table-text-cell-renderer",function(){if(X9A!==void 0)return X9A;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return X9A=v},{mode:1});var FX=function(){return _.P.apply(this,arguments)||this};
_.V(FX,_.P);FX.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],FX.prototype,"data",void 0);_.c([_.z({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],FX);
_.A(FX,"ytd-report-history-table-reason-cell-renderer",function(){if(CsE!==void 0)return CsE;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return CsE=v},{mode:1});var Qg=function(){return _.P.apply(this,arguments)||this};
_.V(Qg,_.P);Qg.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Qg.prototype,"rendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Qg.prototype,"data",void 0);_.c([_.z({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Qg);
_.A(Qg,"ytd-report-history-table-cell-renderer",function(){if(BF7!==void 0)return BF7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return BF7=v},{mode:1});var zVi;var gz=function(){var v=_.P.apply(this,arguments)||this;v.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 v};
_.V(gz,_.P);gz.prototype.onDataChanged=function(){var v;if((v=this.data)==null?0:v.style)this.componentStyle=this.getStyleName(this.data.style)};
gz.prototype.getCellForColumn=function(v){return this.cells.find(function(e){var d;return((d=_.L(e==null?void 0:e.cell,dYu)||_.L(e==null?void 0:e.cell,e86))==null?void 0:d.columnId)===v.type})};
gz.prototype.getClassForColumn=function(v){switch(v){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
gz.prototype.getStyleName=function(v){switch(v){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.vP.Object.defineProperties(gz.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.cells)||[]).map(function(e){return _.L(e,vin)})}}});
gz.prototype.onDataChanged=gz.prototype.onDataChanged;_.c([_.f(),_.w("design:type",Object)],gz.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Array)],gz.prototype,"columnRenderData",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],gz.prototype,"componentStyle",void 0);_.c([_.t("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],gz.prototype,"cells",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gz.prototype,"onDataChanged",null);_.c([_.z({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],gz);
_.A(gz,"ytd-report-history-table-row-renderer",function(){if(zVi!==void 0)return zVi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return zVi=v},{mode:1});var lCA;var Hu2;var ADU={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},ZmM={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var ud=function(){return _.P.apply(this,arguments)||this};
_.V(ud,_.P);ud.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"}}}}}};
ud.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.vP.Object.defineProperties(ud.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.columns)?g6W(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return F6M(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var v=this.tableSpec,e=ADU;e=e===void 0?ZmM:e;e=QTM(v.columnDimensions,v.columnsToShow||[],e);v=0;e=_.a(e);for(var d=e.next();!d.done;d=e.next())d=d.value,v+=d.minWidth+d.paddingLeft+d.paddingRight;return v}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.c([_.M(_.FL),_.w("design:type",Object)],ud.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ud.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ud.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ud.prototype,"tableSpec",null);_.c([_.t("tableSpec"),_.w("design:type",Array),_.w("design:paramtypes",[])],ud.prototype,"columnRenderData",null);
_.c([_.t("tableSpec"),_.w("design:type",Number),_.w("design:paramtypes",[])],ud.prototype,"totalMinWidth",null);_.c([_.t("totalMinWidth"),_.w("design:type",String),_.w("design:paramtypes",[])],ud.prototype,"tableWidthStyle",null);_.c([_.z({is:"ytd-table-renderer",disableElementRegistration:!0})],ud);
_.A(ud,"ytd-table-renderer",function(){if(Hu2!==void 0)return Hu2;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Hu2=v},{mode:1});var nK=function(){return _.P.apply(this,arguments)||this};
_.V(nK,_.P);nK.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],nK.prototype,"data",void 0);_.c([_.z({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],nK);
_.A(nK,"ytd-report-reason-history-modal-renderer",function(){if(lCA!==void 0)return lCA;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return lCA=v},{mode:1});var AFc;var Zu7;var cFc;var D6=function(){return _.P.apply(this,arguments)||this};
_.V(D6,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],D6.prototype,"data",void 0);_.c([_.z({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],D6);
_.A(D6,"ytd-profile-column-stats-entry-renderer",function(){if(cFc!==void 0)return cFc;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return cFc=v},{mode:1});var w9B;var UD=function(){return _.P.apply(this,arguments)||this};
_.V(UD,_.P);UD.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],UD.prototype,"data",void 0);_.c([_.z({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],UD);
_.A(UD,"ytd-profile-column-stats-renderer",function(){if(w9B!==void 0)return w9B;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return w9B=v},{mode:1});var FRi;var pK=function(){return _.P.apply(this,arguments)||this};
_.V(pK,_.P);_.vP.Object.defineProperties(pK.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.useThumbnailSize)return 80;var e,d;v=(e=this.data)==null?void 0:(d=e.thumbnail)==null?void 0:d.thumbnails;var E;return v&&((E=v[0])==null?void 0:E.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.useThumbnailSize)return 80;var e,d;v=(e=this.data)==null?void 0:(d=e.thumbnail)==null?void 0:d.thumbnails;var E;return v&&((E=v[0])==null?void 0:E.height)||80}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pK.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],pK.prototype,"componentStyle",void 0);_.c([_.t("data.useThumbnailSize"),_.w("design:type",Object),_.w("design:paramtypes",[])],pK.prototype,"thumbnailWidth",null);
_.c([_.t("data.useThumbnailSize"),_.w("design:type",Object),_.w("design:paramtypes",[])],pK.prototype,"thumbnailHeight",null);_.c([_.z({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],pK);
_.A(pK,"ytd-profile-column-user-info-renderer",function(){if(FRi!==void 0)return FRi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return FRi=v},{mode:1});var v1=function(){return _.P.apply(this,arguments)||this};
_.V(v1,_.P);v1.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],v1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],v1.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],v1.prototype,"componentStyle",void 0);_.c([_.z({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],v1);
_.A(v1,"ytd-profile-column-renderer",function(){if(Zu7!==void 0)return Zu7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Zu7=v},{mode:1});var e_=function(){var v=_.P.apply(this,arguments)||this;v.componentStyle="NON_CENTERED_PROFILE";return v};
_.V(e_,_.P);e_.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
e_.prototype.getIcon=function(v){return v?"settings:"+v.toLowerCase():null};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],e_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],e_.prototype,"data",void 0);_.c([_.z({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],e_);
_.A(e_,"ytd-page-introduction-renderer",function(){if(AFc!==void 0)return AFc;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return AFc=v},{mode:1});var QYu;var dP=function(){return _.P.apply(this,arguments)||this};
_.V(dP,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],dP.prototype,"data",void 0);_.c([_.z({is:"ytd-report-description-renderer",disableElementRegistration:!0})],dP);
_.A(dP,"ytd-report-description-renderer",function(){if(QYu!==void 0)return QYu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return QYu=v},{mode:1});var gg0;var uRn;var Er=function(){return _.P.apply(this,arguments)||this};
_.V(Er,_.P);Er.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Er.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Er.prototype,"data",void 0);_.c([_.z({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Er);
_.A(Er,"ytd-video-report-renderer",function(){if(uRn!==void 0)return uRn;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return uRn=v},{mode:1});var ngJ;_.RZ("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.RZ("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var TK=function(){return _.P.apply(this,arguments)||this};
_.V(TK,_.P);TK.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]]"}}}}}};
TK.prototype.computeMessageStyle=function(v){return v};
TK.prototype.computeButtonOverride=function(v){var e;if((v==null?0:(e=v.style)==null?0:e.value)&&v.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],TK.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],TK.prototype,"shelf",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],TK.prototype,"panel",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.w("design:type",Boolean)],TK.prototype,"componentStyle",void 0);_.c([_.f({computed:"computeButtonOverride(data)"}),_.w("design:type",Object)],TK.prototype,"buttonOverride",void 0);_.c([_.z({is:"ytd-message-renderer",disableElementRegistration:!0})],TK);
_.A(TK,"ytd-message-renderer",function(){if(ngJ!==void 0)return ngJ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ngJ=v},{mode:1});var S_=function(){return _.P.apply(this,arguments)||this};
_.V(S_,_.P);S_.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"}}}};
S_.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
S_.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.vP.Object.defineProperties(S_.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var v,e;return!!(((v=this.data)==null?0:v.header)&&((e=this.data)==null?0:e.table))}}});
S_.prototype.onRequestError=S_.prototype.onRequestError;_.c([_.M(_.FL),_.w("design:type",Object)],S_.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],S_.prototype,"data",void 0);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],S_.prototype,"isUnifiedReportHistory",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S_.prototype,"onRequestError",null);_.c([_.z({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],S_);
_.A(S_,"ytd-report-history-section-renderer",function(){if(gg0!==void 0)return gg0;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return gg0=v},{mode:1});var DOi;var W1=function(){var v=_.P.apply(this,arguments)||this;v.answerExpanded=!1;return v};
_.V(W1,_.P);W1.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],W1.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],W1.prototype,"answerExpanded",void 0);_.c([_.z({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],W1);
_.A(W1,"ytd-handles-claiming-faq-renderer",function(){if(DOi!==void 0)return DOi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return DOi=v},{mode:1});var UOe;var p9M=function(){return _.P.apply(this,arguments)||this};
_.V(p9M,_.P);_.c([_.f(),_.w("design:type",Object)],p9M.prototype,"data",void 0);_.c([_.z({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],p9M);
_.A(p9M,"ytd-handles-claiming-faq-section-renderer",function(){if(UOe!==void 0)return UOe;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return UOe=v},{mode:1});var v2E;var aF=function(){var v=_.P.apply(this,arguments)||this;v.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";v.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";v.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";v.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";v.leftSquiggly=v.leftSquigglyLight;v.rightSquiggly=v.rightSquigglyLight;
v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};v.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return v};
_.V(aF,_.P);_.W=aF.prototype;_.W.updateLeftSquigglyStyle=function(){_.qr(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.W.updateRightSquigglyStyle=function(){_.qr(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.W.ready=function(){var v=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(v)};
_.W.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.set("isDarkTheme",v),v?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.W.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
aF.prototype.updateRightSquigglyStyle=aF.prototype.updateRightSquigglyStyle;aF.prototype.updateLeftSquigglyStyle=aF.prototype.updateLeftSquigglyStyle;_.c([_.f(),_.w("design:type",Object)],aF.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],aF.prototype,"isDarkTheme",void 0);_.c([_.f(),_.w("design:type",String)],aF.prototype,"leftSquiggly",void 0);_.c([_.f(),_.w("design:type",String)],aF.prototype,"rightSquiggly",void 0);
_.c([_.$v("leftSquiggly"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],aF.prototype,"updateLeftSquigglyStyle",null);_.c([_.$v("rightSquiggly"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],aF.prototype,"updateRightSquigglyStyle",null);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],aF.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],aF.prototype,"actionButtonOverride",void 0);_.c([_.z({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],aF);
_.A(aF,"ytd-handles-claiming-header-renderer",function(){if(v2E!==void 0)return v2E;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return v2E=v},{mode:1});var eQB;var ir=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};v.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";v.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";v.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";v.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
v.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";v.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";v.image0SquigglyBackground=v.image0LightSquigglyBackground;v.image1SquigglyBackground=v.image1LightSquigglyBackground;v.image3SquigglyBackground=v.image3LightSquigglyBackground;return v};
_.V(ir,_.P);_.W=ir.prototype;_.W.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.W.onDataChanged=function(){this.updateTitleAndImages()};
_.W.onThemeChanged=function(){this.updateTitleAndImages()};
_.W.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v)};
_.W.updateImage0SquigglyBackground=function(){_.qr(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.W.updateImage1SquigglyBackground=function(){_.qr(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.W.updateImage3SquigglyBackground=function(){_.qr(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.W.updateTitleAndImages=function(){var v,e;((v=this.data)==null?void 0:(e=v.titleImages)==null?void 0:e.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
ir.prototype.updateImage3SquigglyBackground=ir.prototype.updateImage3SquigglyBackground;ir.prototype.updateImage1SquigglyBackground=ir.prototype.updateImage1SquigglyBackground;ir.prototype.updateImage0SquigglyBackground=ir.prototype.updateImage0SquigglyBackground;ir.prototype.onThemeChanged=ir.prototype.onThemeChanged;ir.prototype.onDataChanged=ir.prototype.onDataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],ir.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],ir.prototype,"isDarkTheme",void 0);_.c([_.f(),_.w("design:type",Object)],ir.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],ir.prototype,"title0",void 0);_.c([_.f(),_.w("design:type",Object)],ir.prototype,"title1",void 0);_.c([_.f(),_.w("design:type",Object)],ir.prototype,"title2",void 0);_.c([_.f(),_.w("design:type",Object)],ir.prototype,"title3",void 0);
_.c([_.f(),_.w("design:type",Object)],ir.prototype,"title4",void 0);_.c([_.f(),_.w("design:type",Object)],ir.prototype,"image0",void 0);_.c([_.f(),_.w("design:type",Object)],ir.prototype,"image1",void 0);_.c([_.f(),_.w("design:type",Object)],ir.prototype,"image2",void 0);_.c([_.f(),_.w("design:type",Object)],ir.prototype,"image3",void 0);_.c([_.f(),_.w("design:type",Object)],ir.prototype,"image4",void 0);_.c([_.f(),_.w("design:type",String)],ir.prototype,"image0SquigglyBackground",void 0);
_.c([_.f(),_.w("design:type",String)],ir.prototype,"image1SquigglyBackground",void 0);_.c([_.f(),_.w("design:type",String)],ir.prototype,"image3SquigglyBackground",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ir.prototype,"onDataChanged",null);_.c([_.$v("isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ir.prototype,"onThemeChanged",null);
_.c([_.$v("image0SquigglyBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ir.prototype,"updateImage0SquigglyBackground",null);_.c([_.$v("image1SquigglyBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ir.prototype,"updateImage1SquigglyBackground",null);
_.c([_.$v("image3SquigglyBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ir.prototype,"updateImage3SquigglyBackground",null);_.c([_.z({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],ir);
_.A(ir,"ytd-handles-claiming-title-images-section-renderer",function(){if(eQB!==void 0)return eQB;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return eQB=v},{mode:1});var dLe;var Or=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(Or,_.P);Or.prototype.ready=function(){var v=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(v)};
Or.prototype.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v)};
Or.prototype.onCopyButtonClick=function(){var v=this,e,d,E;return _.I(function(T){return(e=v.data)!=null&&e.primaryChannelUrl?T.yield(navigator.clipboard.writeText(((d=v.data)==null?0:d.encodedChannelUrl)?v.data.encodedChannelUrl:"https://"+_.vv((E=v.data)==null?void 0:E.primaryChannelUrl)),0):T.jumpTo(0)})};
_.c([_.f(),_.w("design:type",Object)],Or.prototype,"data",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Or.prototype,"ytComponentBehavior",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Or.prototype,"isDarkTheme",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Or.prototype,"ytActionHandlerBehavior",void 0);_.c([_.z({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Or);
_.A(Or,"ytd-handles-claiming-update-social-renderer",function(){if(dLe!==void 0)return dLe;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return dLe=v},{mode:1});var E2A;var IF=function(){var v=_.P.apply(this,arguments)||this;v.JSC$16017_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";v.JSC$16017_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};v.squigglyBackground=v.JSC$16017_squigglyBackgroundLight;return v};
_.V(IF,_.P);IF.prototype.updateSquigglyBackgroundStyle=function(){_.qr(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
IF.prototype.ready=function(){var v=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",v);this.squigglyBackground=v?this.JSC$16017_squigglyBackgroundDark:this.JSC$16017_squigglyBackgroundLight};
IF.prototype.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.set("isDarkTheme",v),this.squigglyBackground=v?this.JSC$16017_squigglyBackgroundDark:this.JSC$16017_squigglyBackgroundLight)};
IF.prototype.updateSquigglyBackgroundStyle=IF.prototype.updateSquigglyBackgroundStyle;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],IF.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],IF.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],IF.prototype,"isDarkTheme",void 0);_.c([_.f(),_.w("design:type",String)],IF.prototype,"squigglyBackground",void 0);_.c([_.$v("squigglyBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IF.prototype,"updateSquigglyBackgroundStyle",null);_.c([_.z({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],IF);
_.A(IF,"ytd-handles-claiming-vanity-info-renderer",function(){if(E2A!==void 0)return E2A;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return E2A=v},{mode:1});var TaM;var br=function(){var v=_.P.apply(this,arguments)||this;v.JSC$16020_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";v.JSC$16020_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";v.squigglyBackground=v.JSC$16020_squigglyBackgroundLight;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(br,_.P);_.W=br.prototype;_.W.ready=function(){var v=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(v)};
_.W.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.set("isDarkTheme",v),this.squigglyBackground=v?this.JSC$16020_squigglyBackgroundDark:this.JSC$16020_squigglyBackgroundLight)};
_.W.updateSquigglyBackgroundStyle=function(){_.qr(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.W.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.W.detached=function(){this.stop()};
_.W.stop=function(){this.playerElement.stop()};
_.W.setupVideoPlayer=function(){var v=this,e,d;return _.I(function(E){e=v.data.videoId;d="http://i1.ytimg.com/vi/"+e+"/maxresdefault.jpg";v.playerElement.loadVideoWithPlayerVars({video_id:e,iurlhq:d});_.s9(E)})};
br.prototype.onDataChanged=br.prototype.onDataChanged;br.prototype.updateSquigglyBackgroundStyle=br.prototype.updateSquigglyBackgroundStyle;_.c([_.f({value:!1}),_.w("design:type",Boolean)],br.prototype,"isDarkTheme",void 0);_.c([_.f(),_.w("design:type",String)],br.prototype,"squigglyBackground",void 0);_.c([_.sg("#player"),_.w("design:type",Object)],br.prototype,"playerElement",void 0);_.c([_.f(),_.w("design:type",Object)],br.prototype,"data",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],br.prototype,"ytActionHandlerBehavior",void 0);_.c([_.$v("squigglyBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],br.prototype,"updateSquigglyBackgroundStyle",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],br.prototype,"onDataChanged",null);
_.c([_.z({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],br);
_.A(br,"ytd-handles-claiming-video-item-renderer",function(){if(TaM!==void 0)return TaM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return TaM=v},{mode:1});var Sb0;var mr=function(){var v=_.kv.apply(this,arguments)||this;v.dragging=!1;v.dragMouseStart=0;v.dragOffsetStart=0;v.containerWidthDiff=0;v.boundPrevClick=function(){v.set("offset",Y9(v,v.offset-(v.scrollDistance||320)))};
v.boundNextClick=function(){v.set("offset",Y9(v,v.offset+(v.scrollDistance||320)))};
v.boundScrollContainerMouseDown=function(e){v.dragMouseStart=e.clientX;v.dragOffsetStart=v.offset;v.dragging=!0};
v.boundScrollContainerDrag=function(e){v.dragging&&v.set("offset",Y9(v,v.dragOffsetStart-(e.clientX-v.dragMouseStart)))};
v.boundMouseUp=function(){v.onMouseUp()};
v.boundWheelScroll=function(e){var d=0;Math.abs(e.deltaX)>=Math.abs(e.deltaY)?d=e.deltaX:e.shiftKey&&(d=e.deltaY);d!==0&&(v.offset+=d,e.stopPropagation(),e.preventDefault())};
v.boundChipCloudChipScrollIntoView=function(e){(e=e.detail)&&v.scrollChipIntoView(e)};
return v};
_.V(mr,_.kv);mr.prototype.attached=function(){var v=_.IB(this.hostElement).querySelector("#scroll-container");v.addEventListener("wheel",this.boundWheelScroll);v.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);v.style.touchAction="pan-y";v.addEventListener("pointerdown",this.boundScrollContainerMouseDown);v.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
mr.prototype.detached=function(){var v=_.IB(this.hostElement).querySelector("#scroll-container");v.removeEventListener("wheel",this.boundWheelScroll);v.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);v.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);v.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
mr.prototype.reset=function(){this.set("offset",0);_.Uh(this,this.setContainerWidthDiff);yS(this)};
var Y9=function(v,e){return Math.min(Math.max(e,0),v.containerWidthDiff)};
mr.prototype.onMouseUp=function(){this.dragging=!1};
mr.prototype.transformContainer=function(){this.offset=Y9(this,this.offset);var v=_.Bb("HTML_DIR")==="rtl"?"":"-";_.IB(this.hostElement).querySelector("#chips").style.transform="translateX("+v+this.offset+"px)";yS(this)};
var yS=function(v){_.Uh(v,v.setButtonsState)};
mr.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Y9(this,this.offset));this.atStart=this.offset<=0};
mr.prototype.setContainerWidthDiff=function(){var v=_.IB(this.hostElement).querySelector("#scroll-container"),e=_.IB(this.hostElement).querySelector("#chips");v&&e&&(this.containerWidthDiff=e.clientWidth-v.clientWidth)};
mr.prototype.scrollChipIntoView=function(v){var e=_.IB(this.hostElement).querySelector("#scroll-container");if(e){var d=this.atStart?0:106,E=this.atEnd?0:106;v.offsetLeft<this.offset+d?this.offset=Y9(this,v.offsetLeft-d):v.offsetLeft+v.clientWidth>this.offset+e.clientWidth-E&&(this.offset=Y9(this,v.offsetLeft+v.clientWidth+E-e.clientWidth))}};
mr.prototype.transformContainer=mr.prototype.transformContainer;_.c([_.f({value:0}),_.w("design:type",Number)],mr.prototype,"offset",void 0);_.c([_.f({value:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],mr.prototype,"atStart",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],mr.prototype,"atEnd",void 0);_.c([_.f(),_.w("design:type",Number)],mr.prototype,"scrollDistance",void 0);
_.c([_.$v("offset"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mr.prototype,"transformContainer",null);_.c([_.Lq()],mr);var W_E;var a1A;var I1e=_.l(function(v){var e=v.data;v=_.a(_.OE(!1,void 0,"HDMMr"));var d=v.next().value,E=v.next().value;v={};v=_.qe("ytChipShapeChip",function(){a:switch(e==null?void 0:e().state){case 0:var S="ytChipShapeActive";break a;case 1:S="ytChipShapeDisabled";break a;default:S="ytChipShapeInactive"}return S},function(){var S=e().type===1||e().type===2,O=e();
return S||O!=null&&O.startIcon?O==null||!O.startIcon||O!=null&&O.text?S?"ytChipShapeEndIconPadding":(O==null?0:O.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(v.ytChipShapeFocused=function(){var S;
return d()&&((S=e())==null?void 0:S.state)!==1},v));
var T=function(S){if((e==null?void 0:e().state)!==1){var O,b;(b=(O=e()).onTap)==null||b.call(O,S)}};
return _.m("chip-shape",{class:"ytChipShapeHost","on:focusin":_.rq(function(){var S=_.dk().resolve(_.eG(_.i$));if(S){E(S.isKeyBoardInUse());var O,b;(b=(O=e()).onFocusIn)==null||b.call(O)}return!1}),
"on:focusout":_.rq(function(){E(!1);return!1})},_.m(i_2,{shouldWrapInButton:function(){return e().type!==2},
selected:function(){return e().state===0},
onClick:T,isDropdown:function(){return e().type===1},
accessibilityLabel:function(){return e().accessibilityLabel}},_.m("div",{class:v},_.m(_.y,{cond:function(){return e().startIcon},
then:function(){return _.m(_.sG,{icon:function(){var S;return(S=e())==null?void 0:S.startIcon},
className:function(){return e().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return e().text},_.m(O_n,{shape:e,
onClick:T}),_.m(_.Ie,{model:{borderRadius:"8px"}}))))},"Nb");
I1e.idomCompat=!0;var i_2=_.l(function(v){var e=_.rq(function(d){v.onClick(d);return!1});
return _.m(_.y,{cond:v.shouldWrapInButton,then:function(){return _.m("button",{class:"ytChipShapeButtonReset","on:click":e,role:function(){return v.isDropdown()?"combobox":"tab"},
"aria-label":v.accessibilityLabel,"aria-selected":v.selected},v.children)},
else:function(){return v.children}})},"Ob"),O_n=_.l(function(v){var e=v.shape;
var d=v.onClick;var E=_.rq(function(T){d(T);return!1});
return _.m(_.kc,null,_.m(_.sW,{when:function(){return e().type===1}},function(){return _.m(_.sG,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.m(_.sW,{when:function(){return e().type===2}},function(){return _.m("button",{class:"ytChipShapeButtonReset",
"on:click":E},_.m(_.sG,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.m(_.sW,{when:function(){return e().type===0}},function(){return _.m(_.eI,null)}))},"Pb");_.aZ(I1e,"chip-shape",{props:{data:_.U1}});var qA=function(){var v=_.P.apply(this,arguments)||this;v.disableDeselectEvent=!1;v.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return v};
_.V(qA,_.P);_.W=qA.prototype;_.W.onSelectChipCommand=function(v){if(!this.selected&&this.data&&(v=_.L(v,OCu),v.targetId&&v.targetId===this.data.targetId))this.onTap()};
_.W.onFilterChipTransformCommand=function(v){if(!this.selected&&this.data){var e;(v=(e=_.L(v,dsB))==null?void 0:e.chipUniqueId)&&v===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.W.dataChanged=function(){var v=this;_.Uh(this,function(){v.data&&v.data.isSelected&&!v.selected&&(v.scrollChipIntoView(),v.onTap())})};
_.W.computeChipStyle=function(v){return v!=null?v:"STYLE_DEFAULT"};
_.W.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.b4(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.b4(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.W.onFocus=function(){var v=_.dk().resolve(_.eG(_.i$));v&&v.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.W.scrollChipIntoView=function(){_.Iq(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.vP.Object.defineProperties(qA.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return vdO({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
qA.prototype.onFocus=qA.prototype.onFocus;qA.prototype.onTap=qA.prototype.onTap;qA.prototype.dataChanged=qA.prototype.dataChanged;_.c([_.M(_.sQ),_.w("design:type",Object)],qA.prototype,"ironButtonState",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],qA.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],qA.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.K$),_.w("design:type",Object)],qA.prototype,"ironA11yKeysBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],qA.prototype,"disableDeselectEvent",void 0);_.c([_.f(),_.w("design:type",Object)],qA.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data.icon"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qA.prototype,"hasIcon",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data.uniqueId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qA.prototype,"isGnomeChip",null);_.c([_.f({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.w("design:type",String)],qA.prototype,"chipStyle",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],qA.prototype,"selected",void 0);
_.c([_.t("data","selected"),_.w("design:type",Object),_.w("design:paramtypes",[])],qA.prototype,"chipShapeData",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qA.prototype,"dataChanged",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qA.prototype,"onTap",null);
_.c([_.Kq("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qA.prototype,"onFocus",null);_.c([_.lh({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],qA);
_.A(qA,"yt-chip-cloud-chip-renderer",function(){if(a1A===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;W_E===void 0&&(W_E=document.createElement("template"));var E=W_E;d.call(e,E.content.cloneNode(!0),v.content.firstChild);a1A=v}v=a1A;return v},{mode:2});var rP=function(){var v=_.P.apply(this,arguments)||this;v.isDarkTheme=!1;v.notSticky=!1;v.transparentBackground=!1;v.shouldHide=!1;v.disableSticky=!1;v.fluidWidth=!1;v.isClipList=!1;v.defaultChipIndex=0;v.isPlaylist=!1;v.playlistVotingAnimationEnabled=_.N("web_enable_voting_animation");v.toolbarHeight=0;v.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return v};
_.V(rP,_.P);_.W=rP.prototype;
_.W.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}}}}}};
_.W.attached=function(){var v=this;document.addEventListener("scroll",_.hG(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var e;this.toolbarHeight=((e=document.querySelector("ytd-masthead"))==null?void 0:e.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(d){v.handleIntersect(d)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){v.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.W.detached=function(){var v;(v=this.intersectionObserver)==null||v.disconnect();var e;(e=this.resizeObserver)==null||e.disconnect();document.removeEventListener("scroll",_.hG(this,this.updateChipBarWidthAndTop))};
_.W.dataChanged=function(){var v=this,e,d,E;((E=_.L((e=this.data)==null?void 0:(d=e.contents)==null?void 0:d[0],Cxu))==null?void 0:E.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var T=this.findSelectedChipIndex();this.selectedIndex!==T&&(this.selectedIndex=-1);_.Uh(this,function(){v.selectedIndex=T;v.updating=!1;v.ytScrollableChipCloudBehavior.reset()})};
_.W.findSelectedChipIndex=function(){var v;if((v=this.data)==null||!v.contents)return 0;v=this.data.contents;for(var e=0;e<v.length;e++){var d=void 0;if((d=_.L(v[e],Cxu))==null?0:d.isSelected)return e}return 0};
_.W.computeStyle=function(v){return v};
_.W.handleChipCloudChipSelectAction=function(v){v=this.JSC$16041_chipsSelector.indexOf(v);v>-1&&this.JSC$16041_chipsSelector.selectIndex(v)};
_.W.handleChipCloudChipDeselectAction=function(){if(_.N("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var v,e,d,E=(d=_.L((v=this.data)==null?void 0:(e=v.contents)==null?void 0:e[0],Cxu))==null?void 0:d.navigationEndpoint;E&&_.b4(this.hostElement,"yt-browse-section-list-reload-endpoint",[E]);this.JSC$16041_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.W.onGuideIsExpandedChanged=function(){var v=this.ytScrollableChipCloudBehavior;_.Uh(v,v.setContainerWidthDiff);yS(this.ytScrollableChipCloudBehavior)};
_.W.onResize=function(){var v=this.ytScrollableChipCloudBehavior;_.Uh(v,v.setContainerWidthDiff);yS(this.ytScrollableChipCloudBehavior)};
_.W.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.W.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.W.handleIntersect=function(v){this.notSticky=this.isChannelPageGrid||this.disableSticky||v[0].intersectionRatio===1};
_.W.updateDimensions=function(){var v=this.ytRendererBehavior.parentComponent;if(v){var e,d=(e=v.headerElement)!=null?e:v;_.qr(this.hostElement,{"--ytd-rich-grid-chips-bar-width":d.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.W.updateSelectedIndexFromBinding=function(v){this.selectedIndex=v.detail.value};
_.W.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var v;(v=this.sortFilterHeaderRendererElement)==null||v.setAttribute("is-playlist-page-with-filters","")}};
_.W.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(j3n(!this.notSticky))};
_.vP.Object.defineProperties(rP.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 v,e,d=(v=this.data)==null?void 0:(e=v.contents)==null?void 0:e.find(function(E){return _.L(E,Ayc)});
return{sortFilterHeaderRenderer:_.L(d,Ayc)}}}});
rP.prototype.dispatchChipBarIsSticky=rP.prototype.dispatchChipBarIsSticky;rP.prototype.isPlaylistPageChanged=rP.prototype.isPlaylistPageChanged;rP.prototype.updateChipBarWidthAndTop=rP.prototype.updateChipBarWidthAndTop;rP.prototype.onResize=rP.prototype.onResize;rP.prototype.onGuideIsExpandedChanged=rP.prototype.onGuideIsExpandedChanged;rP.prototype.dataChanged=rP.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],rP.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.J9),_.w("design:type",Object)],rP.prototype,"ironResizableBehavior",void 0);_.c([_.M(),_.w("design:type",mr)],rP.prototype,"ytScrollableChipCloudBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],rP.prototype,"ytdReduxBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],rP.prototype,"data",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],rP.prototype,"selectedIndex",void 0);_.c([_.f({value:320}),_.w("design:type",Number)],rP.prototype,"scrollDistance",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rP.prototype,"isDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rP.prototype,"notSticky",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rP.prototype,"transparentBackground",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.w("design:type",String)],rP.prototype,"componentStyle",void 0);_.c([_.f({selector:_.g_M}),_.w("design:type",Boolean)],rP.prototype,"guideIsExpanded",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rP.prototype,"shouldHide",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rP.prototype,"disableSticky",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rP.prototype,"fluidWidth",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rP.prototype,"isClipList",void 0);_.c([_.f(),_.w("design:type",Object)],rP.prototype,"defaultChipIndex",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],rP.prototype,"isPlaylist",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],rP.prototype,"playlistVotingAnimationEnabled",void 0);_.c([_.sg("#chips"),_.w("design:type",Object)],rP.prototype,"JSC$16041_chipsSelector",void 0);_.c([_.sg("ytd-sort-filter-header-renderer"),_.w("design:type",HTMLElement)],rP.prototype,"sortFilterHeaderRendererElement",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],rP.prototype,"updating",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rP.prototype,"dataChanged",null);_.c([_.$v("guideIsExpanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rP.prototype,"onGuideIsExpandedChanged",null);_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rP.prototype,"onResize",null);
_.c([_.V1("isChannelPageGrid","disableSticky","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rP.prototype,"updateChipBarWidthAndTop",null);_.c([_.t("componentStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rP.prototype,"isChannelPageGrid",null);_.c([_.t("componentStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rP.prototype,"isHashtagLandingPage",null);
_.c([_.$v("isPlaylistPage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rP.prototype,"isPlaylistPageChanged",null);_.c([_.t("componentStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rP.prototype,"isPlaylistPage",null);_.c([_.t("componentStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rP.prototype,"isDisableDeselectEvent",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],rP.prototype,"sortFilterHeaderRendererData",null);_.c([_.f({reflectToAttribute:!0,selector:_.ert}),_.w("design:type",String)],rP.prototype,"frostedGlassMode",void 0);_.c([_.$v("notSticky"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rP.prototype,"dispatchChipBarIsSticky",null);_.c([_.z({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],rP);
_.A(rP,"ytd-feed-filter-chip-bar-renderer",function(){if(Sb0!==void 0)return Sb0;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Sb0=v},{mode:1});var b_E;var YbI=_.l(function(v){var e=v.data;var d=v.buttonIndex;var E=v.selectedIndex;var T=v.onSelect;var S=function(){return d()===E()},O=function(){var b,Y;
return(Y=(b=e().text)==null?void 0:b.content)!=null?Y:""};
v=_.UWM();return _.m("yt-toggleable-image-button-view-model",{class:function(){var b={};b=(b.toggleableImageButtonViewModelHost=!0,b[""]=!0,b.toggleableImageButtonViewModelSemiTransparent=E()!==-1&&!S(),b);return _.tX(b)},
tabindex:0,"aria-label":O,"aria-pressed":S,role:"button","on:keydown":v,"on:click":_.rq(function(){T(e().onSubmitCommand);return!1})},_.m(_.y,{cond:function(){return e().logo},
then:function(b){return _.m(_.va,{data:b,className:function(){var Y={};Y=(Y.toggleableImageButtonViewModelImage=!0,Y.toggleableImageButtonViewModelCircularRadius=!(!e().backgroundColor||!e().backgroundColorDarkMode),Y.toggleableImageButtonViewModelGradientRing=!!(S()&&e().backgroundColor&&e().backgroundColorDarkMode),Y);return _.tX(Y)},
alt:O,useWidth:!1,style:function(){if(S()&&e().backgroundColor&&e().backgroundColorDarkMode){var Y=FD(Number(e().backgroundColorDarkMode),"1");var q=FD(Number(e().backgroundColor),"1");Y="background: linear-gradient(180deg,"+Y+","+q+") border-box;"}else Y="";return Y}})}}),_.m(_.Ie,{model:{borderRadius:"16px"}}),_.m("p",{class:function(){var b={};
b=(b.toggleableImageButtonViewModelLabel=!0,b.toggleableImageButtonViewModelBoldText=S(),b);return _.tX(b)}},_.m(_.Dh,{text:function(){return e().text}})))},"Qb");
YbI.idomCompat=!0;var yNA=_.l(function(v){var e=v.data;v=_.a(_.OE({index:-1,command:{}},void 0,"GM3umb"));var d=v.next().value,E=v.next().value;return _.m("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.m("div",{class:"nudgeFormViewModelFormOptions"},_.m(_.kz,{data:function(){return e().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(T,S){return _.m(YbI,{data:T.data,buttonIndex:S,selectedIndex:function(){return d().index},
onSelect:function(O){E({index:S(),command:O})}})}})),_.m(_.Dh,{text:function(){return e().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.m("div",{class:"nudgeFormViewModelSubmit"},_.m(_.kz,{data:function(){return e().submitButton}},{buttonViewModel:function(T){return _.m(mLI,{data:T.data,
isDisabled:function(){return d().index===-1},
onClick:function(){_.wC(d().command)}})}})))},"Rb");
yNA.idomCompat=!0;var mLI=_.l(function(v){var e=_.yl(function(){return Object.assign({},v.data(),{state:v.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.m(_.yi,{data:e,onClick:v.onClick})},"Sb");_.aZ(yNA,"yt-nudge-form-view-model",{props:{data:_.U1}});var hY=function(){var v=_.P.apply(this,arguments)||this;v.roundedContainer=!0;v.buttonUpdate=_.N("web_modern_buttons");v.isDarkMode=!1;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return v};
_.V(hY,_.P);_.W=hY.prototype;_.W.computeNudgeStyle=function(v){return v?"modernized-nudge":""};
_.W.handleDarkModeToggledAction=function(v){this.isDarkMode=v};
_.W.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.W.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"}}}};
_.W.computeIsHorizontalButtons=function(v){return v?!!v.applyModernizedStyle&&!!v.enableHorizontalButtons&&!!v.secondaryButton:!1};
_.vP.Object.defineProperties(hY.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=(v=this.data)==null?void 0:v.backgroundStyle)!=null?e:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=(v=this.data)==null?void 0:v.contentsLocation)!=null?e:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.lightIconImage)}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],hY.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],hY.prototype,"actionHandlerBehavior",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("isHideEnclosingAction"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],hY.prototype,"isHidden",null);_.c([_.f(),_.w("design:type",Object)],hY.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hY.prototype,"roundedContainer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hY.prototype,"buttonUpdate",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.w("design:type",String)],hY.prototype,"nudgeStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data.trimStyle"),_.w("design:type",String),_.w("design:paramtypes",[])],hY.prototype,"trimStyle",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.backgroundStyle"),_.w("design:type",String),_.w("design:paramtypes",[])],hY.prototype,"backgroundStyle",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data.contentsLocation"),_.w("design:type",String),_.w("design:paramtypes",[])],hY.prototype,"contentsLocation",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.disableDropShadow"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],hY.prototype,"noShadow",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.lightIconImage"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],hY.prototype,"noIcon",null);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.w("design:type",Boolean)],hY.prototype,"isHorizontalButtons",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Object)],hY.prototype,"isDarkMode",void 0);_.c([_.z({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],hY);
_.A(hY,"ytd-feed-nudge-renderer",function(){if(b_E!==void 0)return b_E;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return b_E=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var qbE;var rNM;var Kd=function(){var v=_.P.apply(this,arguments)||this;v.collapsed=!1;v.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return v};
_.V(Kd,_.P);Kd.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"}}}};
Kd.prototype.handleRatingSelect=function(){var v;((v=this.data)==null?0:v.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Kd.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Kd.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Kd.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.Au),_.w("design:type",Object)],Kd.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Kd.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Kd.prototype,"collapsed",void 0);_.c([_.z({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Kd);
_.A(Kd,"ytd-slimline-survey-renderer",function(){if(rNM!==void 0)return rNM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return rNM=v},{mode:1});var hQM;var $9=function(){return _.P.apply(this,arguments)||this};
_.V($9,_.P);$9.prototype.maybeGetBackgroundColor=function(v){return this.isDarkMode?v.section2Color:v.section3Color};
$9.prototype.colorPaletteChanged=function(){var v=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;v&&(v==null?0:v.secondaryTitleColor)&&this.maybeGetBackgroundColor(v)?(this.hostElement.style.backgroundColor=_.cv(this.maybeGetBackgroundColor(v)),this.hostElement.style.color=_.cv(v.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
$9.prototype.colorPaletteChanged=$9.prototype.colorPaletteChanged;_.c([_.M(_.lV),_.w("design:type",Object)],$9.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$9.prototype,"data",void 0);_.c([_.f({selector:function(v){return v.ui.darkModeIsEnabled}}),
_.w("design:type",Boolean)],$9.prototype,"isDarkMode",void 0);_.c([_.f(),_.w("design:type",Object)],$9.prototype,"lightColorPalette",void 0);_.c([_.f(),_.w("design:type",Object)],$9.prototype,"darkColorPalette",void 0);_.c([_.$v("darkColorPalette","lightColorPalette","data","isDarkMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$9.prototype,"colorPaletteChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],$9);
_.A($9,"ytd-endorsement-header-renderer",function(){if(hQM!==void 0)return hQM;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return hQM=v},{mode:1});_.aZ(_.By,"yt-decorated-avatar-view-model",{props:{data:_.U1,className:_.U1}});_.j_=new _.nC("VIEW_TRANSITION_MANAGER_TOKEN");var sr=function(){var v=_.P.apply(this,arguments)||this;v.fullHeight=_.N("web_rich_grid_media_full_height");v.showChannelAvatar=!0;v.hasPlaylistThumbnail=!1;v.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};v.registerThumbnailForPageTransition=function(){_.N("web_thumbnail_to_watch_transition")&&_.K_I(_.dk().resolve(_.j_),v.thumbnail)};
return v};
_.V(sr,_.P);_.W=sr.prototype;
_.W.configureRendererStamper=function(){return{lazyLoadMenu:jY,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"}}}};
_.W.attached=function(){this.updateInlinePreviewHoverListeners()};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.shouldLazyLoadMenu=function(){var v=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.N("kevlar_modern_downloads_page")||!v};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16066_inlinePreviewHoverListener=Xc({mediaRenderer:this,lockupElement:this.JSC$16066_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.W.getVideoPreviewOpts=function(){var v={},e;if((e=this.data)==null?0:e.multipleInlinePlaybackEndpoint)v=IEu;this.isRadio&&(v=OmI);return v};
_.W.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$16066_inlinePreviewHoverListener)==null||gp(v)};
_.W.getOwner=function(){var v,e,d;return((v=this.data)==null?void 0:(e=v.channelThumbnailSupportedRenderers)==null?void 0:e.channelThumbnailWithLinkRenderer)||_.L((d=this.data)==null?void 0:d.showProviderChannelThumbnail,msc)};
_.W.updateLockupSize=function(){var v;((v=this.getOwner())==null?0:v.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.W.getFeedbackEndpoint=function(v){if(_.L(v,_.LO))return v;var e,d;v=(d=(e=_.L(v,_.rV))==null?void 0:e.commands)!=null?d:[];e=_.a(v);for(d=e.next();!d.done;d=e.next())if(d=this.getFeedbackEndpoint(d.value))return d;return null};
_.W.computeNavigationEndpoint=function(v){return vw$(v==null?void 0:v.navigationEndpoint)};
_.W.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var v=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(v)!==JSON.stringify(this.data)&&this.set("data",v)}};
_.W.onDataChanged=function(){var v=this,e=this.getOwner();if(e){this.set("data.owner",e);var d,E,T,S,O,b=((d=this.data)==null?void 0:(E=d.shortBylineText)==null?void 0:(T=E.runs)==null?void 0:(S=T[0])==null?void 0:S.text)||((O=e.name)==null?void 0:O.simpleText);this.set("data.owner.title",b)}var Y,q,r,h,K,k;e=((Y=this.data)==null?void 0:(q=Y.thumbnailRenderer)==null?void 0:q.playlistVideoThumbnailRenderer)||((r=this.data)==null?void 0:(h=r.thumbnailRenderer)==null?void 0:h.playlistCustomThumbnailRenderer)||
((K=this.data)==null?void 0:(k=K.thumbnailRenderer)==null?void 0:k.showCustomThumbnailRenderer);var J;((J=this.data)==null?0:J.thumbnail)||!e||this.set("data.thumbnail",e.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){v.updateLockupSize()});
var R;if(Y=((R=this.data)==null?void 0:R.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Y);var B;((B=this.dismissActionToReplayEntity)==null?0:B.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.W.onHiddenChanged=function(){this.updateLockupSize()};
_.W.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.b4(this.hostElement,"yt-terminate-video-preview-action");else{var v;(v=this.videoTitleLink)==null||v.focus()}};
_.W.metadataColorChanged=function(){var v;if(this.metadataColor&&((v=this.videoTitle)==null?0:v.style))this.videoTitle.style.color=_.cv(this.metadataColor);else{var e,d;!this.metadataColor&&((e=this.videoTitle)==null?0:(d=e.style)==null?0:d.color)&&(this.videoTitle.style.color="")}};
_.W.onDetailsClick=function(v){var e=this.computedNavigationEndpoint;e&&(_.UG(_.vg(v),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Iq(this.hostElement,"yt-navigate",{endpoint:e}))};
_.W.onRendererTap=function(){this.registerThumbnailForPageTransition();var v,e,d=((v=this.data)==null?void 0:v.serviceEndpoint)||this.getFeedbackEndpoint((e=this.data)==null?void 0:e.navigationEndpoint);d&&_.L(d,_.LO)&&this.ytComponentBehavior.resolveCommand(d)};
_.W.onMouseDown=function(v){var e=v.target,d=this.computedNavigationEndpoint,E;v=e.href||((E=_.L(d==null?void 0:d.commandMetadata,_.$B))==null?void 0:E.url);E=e.data||d;v&&E&&Ctj(v,E)};
_.W.computeVideoTitleText=function(){var v;if((v=this.data)==null?0:v.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.W.computeHasPlaylistThumbnail=function(v){var e,d,E,T,S;if((((e=v.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((d=v.thumbnailRenderer)==null?0:d.playlistCustomThumbnailRenderer)||((E=v.thumbnailRenderer)==null?0:E.showCustomThumbnailRenderer)||((T=v.thumbnailRenderer)==null?0:T.playlistVideoThumbnailRenderer)||((S=v.thumbnailRenderer)==null?0:S.playlistCustomThumbnailRenderer))&&v.thumbnailOverlays)for(e=0;e<v.thumbnailOverlays.length;e++)if(d=void 0,(d=v.thumbnailOverlays[e])==
null?0:d.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.vP.Object.defineProperties(sr.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.N("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var v;return(v=this.data)==null?void 0:v.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var v;return(v=this.data)==null?void 0:v.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$16066_inlinePreviewHoverListener)==null?0:lT(v))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Nd(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:v.videoId)||((e=this.data)==null?void 0:e.playlistId)||""}}});
sr.prototype.onMouseDown=sr.prototype.onMouseDown;sr.prototype.metadataColorChanged=sr.prototype.metadataColorChanged;sr.prototype.onIsDismissedChanged=sr.prototype.onIsDismissedChanged;sr.prototype.onHiddenChanged=sr.prototype.onHiddenChanged;sr.prototype.onDataChanged=sr.prototype.onDataChanged;sr.prototype.handleReloadDownloadsInfo=sr.prototype.handleReloadDownloadsInfo;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],sr.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],sr.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],sr.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],sr.prototype,"ytdReduxBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],sr.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],sr.prototype,"entitySelectorType",void 0);_.c([_.f(),_.w("design:type",Boolean)],sr.prototype,"noEndpoints",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],sr.prototype,"isRadio",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],sr.prototype,"miniMode",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],sr.prototype,"fullHeight",void 0);
_.c([_.f(),_.w("design:type",Boolean)],sr.prototype,"showDarkVideoMetadata",void 0);_.c([_.f(),_.w("design:type",Boolean)],sr.prototype,"showLightVideoMetadata",void 0);_.c([_.f(),_.w("design:type",Number)],sr.prototype,"metadataColor",void 0);_.c([_.f(),_.w("design:type",Object)],sr.prototype,"showChannelAvatar",void 0);_.c([_.f(),_.w("design:type",Boolean)],sr.prototype,"hidden",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],sr.prototype,"showYtInteraction",void 0);
_.c([_.f(),_.w("design:type",String)],sr.prototype,"dismissedContentId",void 0);_.c([_.f({selectorArgs:["dismissedContentId"],selector:ny0}),_.w("design:type",Object)],sr.prototype,"dismissActionToReplayEntity",void 0);
_.c([_.f({selectorArgs:["entitySelectorType","mediaId"],selector:function(v,e,d){if(_.N("kevlar_modern_downloads_page")&&d&&e&&e!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(e){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var E=S1$(v,d);if(E){e=_.A_(v,d);var T=cK(v,d),S=hrS(v,d);v=wg(v,d);var O=VZs(E,e,T,S);T=O.shortViewCountText;var b=O.publishedTimeText;O=O.badges;var Y=v>0;S=kX3(E,e,S,v);E=_.oG(e)||e==="TRANSFER_STATE_FAILED"||e==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!VR(E.policyEntity)?
void 0:USM(d,v,E.videoEntity.lengthSeconds);e==="TRANSFER_STATE_PAUSED_BY_USER"&&d&&!_.N("dl_resume_click_killswitch")&&(E={offlineVideoEndpoint:{videoId:d,action:"ACTION_RESUME"}});d={shortViewCountText:T,publishedTimeText:b,badges:O,isWatched:Y,navigationEndpoint:E,thumbnailOverlays:S}}else d=void 0;return d;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(e=WZ$(v,d))if(E=_.ZY(v,d),S=_.ahS(v,d),E!=="TRANSFER_STATE_UNKNOWN"){d=LOW(e,E,S,d,_.HK(v));break a}d=void 0}return d;default:_.xf(new _.kL("Error: entitySelectorType defined but not matched in selector.",
v,e))}}}),
_.w("design:type",Object)],sr.prototype,"entityDrivenState",void 0);_.c([_.f({computed:"computeVideoTitleText(data)"}),_.w("design:type",Object)],sr.prototype,"videoTitleText",void 0);_.c([_.f({computed:"computeHasPlaylistThumbnail(data)"}),_.w("design:type",Object)],sr.prototype,"hasPlaylistThumbnail",void 0);_.c([_.f({computed:"computeNavigationEndpoint(data)"}),_.w("design:type",Object)],sr.prototype,"computedNavigationEndpoint",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],sr.prototype,"typographyBump",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("typographyBump"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sr.prototype,"typographyBumpV2",null);_.c([_.sg("#video-title"),_.w("design:type",HTMLElement)],sr.prototype,"videoTitle",void 0);_.c([_.sg("#video-title-link"),_.w("design:type",HTMLElement)],sr.prototype,"videoTitleLink",void 0);
_.c([_.sg("#thumbnail"),_.w("design:type",HTMLElement)],sr.prototype,"thumbnail",void 0);_.c([_.sg("#dismissible"),_.w("design:type",HTMLElement)],sr.prototype,"JSC$16066_dismissibleMedia",void 0);_.c([_.t("data.menu"),_.w("design:type",Object),_.w("design:paramtypes",[])],sr.prototype,"lazyLoadMenu",null);_.c([_.t("data.menu"),_.w("design:type",Object),_.w("design:paramtypes",[])],sr.prototype,"immediateLoadMenu",null);
_.c([_.V1("entityDrivenState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sr.prototype,"handleReloadDownloadsInfo",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sr.prototype,"onDataChanged",null);_.c([_.V1("hidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sr.prototype,"onHiddenChanged",null);
_.c([_.$v("isDismissed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sr.prototype,"onIsDismissedChanged",null);_.c([_.$v("metadataColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sr.prototype,"metadataColorChanged",null);_.c([_.Kq("mousedown"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],sr.prototype,"onMouseDown",null);
_.c([_.t("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sr.prototype,"isHovered",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sr.prototype,"useAvatar",null);_.c([_.t("data","entitySelectorType"),_.w("design:type",String),_.w("design:paramtypes",[])],sr.prototype,"mediaId",null);_.c([_.z({is:"ytd-rich-grid-media",disableElementRegistration:!0})],sr);
var $LE=_.I5()(sr,"ytd-rich-grid-media",function(){if(qbE!==void 0)return qbE;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return qbE=v},{mode:_.bk("kevlar_poly_si_batch_j072")?1:2});var jSc;var NA=function(){var v=_.P.apply(this,arguments)||this;v.removeMaxWidth=!0;v.insetMetadata=!1;return v};
_.V(NA,_.P);_.W=NA.prototype;_.W.configureRendererStamper=function(){return{innerMenu:jY,outerMenu:Object.assign({},jY,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.W.onDataChanged=function(){var v,e=((v=this.data)==null?void 0:v.trackingParams)||"";e&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(e));var d;((d=this.dismissActionToReplayEntity)==null?0:d.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.W.attached=function(){this.updateInlinePreviewHoverListeners()};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16071_inlinePreviewHoverListener=Xc({mediaRenderer:this,lockupElement:this.JSC$16071_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:bmJ})};
_.W.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$16071_inlinePreviewHoverListener)==null||gp(v)};
_.W.onRendererTap=function(){var v,e,d=(v=this.data)==null?void 0:(e=v.serviceEndpoints)==null?void 0:e[0];_.L(d,_.LO)&&this.componentBehavior.resolveCommand(d)};
_.W.onDetailsClick=function(v){var e,d=(e=this.data)==null?void 0:e.navigationEndpoint;d&&(_.UG(_.vg(v),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(d))};
_.W.onShow=function(){var v=this.data;v.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(v.onFirstVisibleCommand),delete v.onFirstVisibleCommand)};
_.vP.Object.defineProperties(NA.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var v;return this.insetMetadata?void 0:(v=this.data)==null?void 0:v.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var v;return this.insetMetadata?(v=this.data)==null?void 0:v.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var v=this.data;if(v!=null&&v.badge&&(v=_.L(v.badge,M6A))){var e,d,E;return[{metadataBadgeRenderer:{label:((e=v.label)==null?void 0:(d=e.runs)==null?void 0:d[0].text)||((E=v.label)==null?void 0:E.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var v=this.data;return Object.assign({},v.headline,{accessibility:v.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return this.isSlimShort?(v=this.computedTitle)==null?void 0:(e=v.accessibility)==null?void 0:(d=e.accessibilityData)==null?void 0:d.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.N("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$16071_inlinePreviewHoverListener)==null?0:lT(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
NA.prototype.onDataChanged=NA.prototype.onDataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],NA.prototype,"componentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],NA.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.Au),_.w("design:type",Object)],NA.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],NA.prototype,"ytdReduxBehavior",void 0);_.c([_.sg("ytd-thumbnail"),_.w("design:type",HTMLElement)],NA.prototype,"thumbnail",void 0);_.c([_.sg("#dismissible"),_.w("design:type",HTMLElement)],NA.prototype,"JSC$16071_dismissibleMedia",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],NA.prototype,"removeMaxWidth",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],NA.prototype,"insetMetadata",void 0);_.c([_.f(),_.w("design:type",String)],NA.prototype,"dismissedContentId",void 0);_.c([_.f({selectorArgs:["dismissedContentId"],selector:ny0}),_.w("design:type",Object)],NA.prototype,"dismissActionToReplayEntity",void 0);_.c([_.t("insetMetadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],NA.prototype,"thumbnailObjectFit",null);
_.c([_.t("data","insetMetadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],NA.prototype,"innerMenu",null);_.c([_.t("data","insetMetadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],NA.prototype,"outerMenu",null);_.c([_.f(),_.w("design:type",Object)],NA.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],NA.prototype,"miniMode",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],NA.prototype,"onDataChanged",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],NA.prototype,"shortsBadges",null);_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],NA.prototype,"isShort",null);
_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],NA.prototype,"isSlimShort",null);_.c([_.t("data","isShort"),_.w("design:type",Object),_.w("design:paramtypes",[])],NA.prototype,"computedTitle",null);_.c([_.t("isSlimShort","computedTitle"),_.w("design:type",Object),_.w("design:paramtypes",[])],NA.prototype,"computedAccessibilityLabel",null);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],NA.prototype,"shouldForce2By3",null);_.c([_.t("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],NA.prototype,"isHovered",null);_.c([_.z({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],NA);
_.A(NA,"ytd-rich-grid-slim-media",function(){if(jSc!==void 0)return jSc;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return jSc=v},{mode:_.bk("kevlar_poly_si_batch_j063")?1:2});var sS6;var Na2;var k9=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(k9,_.P);k9.prototype.computeIcon=function(v){return v&&v.iconType?"yt-sys-icons:"+v.iconType.toLowerCase():""};
k9.prototype.onMouseEnter=function(){this.isHovered=!0};
k9.prototype.onMouseLeave=function(){this.isHovered=!1};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],k9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],k9.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],k9.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],k9.prototype,"isHovered",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],k9.prototype,"darkerDarkTheme",void 0);_.c([_.z({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],k9);
_.A(k9,"ytd-expand-on-hover-card-renderer",function(){if(Na2!==void 0)return Na2;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Na2=v},{mode:1});var ksi,L_i=function(){if(ksi!==void 0)return ksi;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ksi=v};_.RZ("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Ld=function(){var v=_.P.apply(this,arguments)||this;v.compactStyle=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(Ld,_.P);_.W=Ld.prototype;_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.W.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"}}}};
_.W.computeHideDot=function(v){return!(v&&v.subscriberCountText&&v.videoCountText)||this.compactStyle};
_.W.hasDualButtons=function(v){return v&&v.purchaseButton&&v.subscribeButton};
_.W.backgroundColorChanged=function(){if(this.data!==void 0){var v=this.data.backgroundColor;this.isDarkTheme&&(v=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=v!=null?_.cv(v):"transparent"}};
_.W.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.W.onTap=function(v){var e,d,E=((e=this.data)==null?void 0:e.navigationEndpoint)||((d=this.data)==null?void 0:d.serviceEndpoint);_.L(E,_.nv)&&(E&&_.dk().resolve(_.EI).resolveCommand(E,{form:{element:this.hostElement}}),v.preventDefault())};
_.W.computeChannelEndpoint=function(v){return _.L(v,_.nv)?null:v};
_.W.computeHrefEndpoint=function(v){return _.L(v,_.nv)?null:this.componentBehavior.computeHref_(v)};
_.W.computeChannelRendererStyle=function(v){return v};
_.W.computeIconSize=function(v){return v?108:136};
_.vP.Object.defineProperties(Ld,{template:{configurable:!0,enumerable:!0,get:function(){return L_i()}}});
Ld.prototype.backgroundColorChanged=Ld.prototype.backgroundColorChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],Ld.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Ld.prototype,"componentBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Ld.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],Ld.prototype,"isDarkTheme",void 0);_.c([_.f({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.w("design:type",String)],Ld.prototype,"channelRendererStyle",void 0);_.c([_.f({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Ld.prototype,"dualButtons",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],Ld.prototype,"useBiggerThumbs",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],Ld.prototype,"biggerThumbStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ld.prototype,"compactStyle",void 0);_.c([_.$v("data","isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ld.prototype,"backgroundColorChanged",null);_.c([_.z({is:"ytd-channel-renderer",disableElementRegistration:!0})],Ld);_.A(Ld,"ytd-channel-renderer",function(){return L_i()},{mode:1});var VEI;var o2B;_.RZ("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var VS=function(){var v=_.P.apply(this,arguments)||this;v.displayItemCount=2;v.collections=_.N("web_modern_collections_v2");v.hasPlaylistThumbnail=!1;v.stackThumbnailSize="large";return v};
_.V(VS,_.P);_.W=VS.prototype;_.W.attached=function(){this.updateInlinePreviewHoverListeners()};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.W.computeFirstVideos=function(v,e){return v&&e?v.slice(0,e):[]};
_.W.computeThumbnailWidth=function(v,e){return v?e==="BIG"?500:e==="MASSIVE"?600:e==="MEDIUM"?450:420:360};
_.W.computeThumbnailHeight=function(v,e){return v?e==="BIG"?280:e==="MASSIVE"?337:234:202};
_.W.clearInlinePreviewHoverListeners=function(){var v;(v=this.JSC$16084_inlinePreviewHoverListener)==null||gp(v)};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16084_inlinePreviewHoverListener=Xc({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:IEu,thumbnailElement:this.thumbnail})};
_.W.computeHasPlaylistThumbnail=function(v){var e,d;if((((e=v.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((d=v.thumbnailRenderer)==null?0:d.playlistCustomThumbnailRenderer))&&v.thumbnailOverlays)for(e=0;e<v.thumbnailOverlays.length;e++)if(d=void 0,(d=v.thumbnailOverlays[e])==null?0:d.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.vP.Object.defineProperties(VS.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.JSC$16084_inlinePreviewHoverListener)==null?0:lT(v))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
VS.prototype.dataChanged=VS.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],VS.prototype,"ytdLockupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],VS.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],VS.prototype,"displayItemCount",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],VS.prototype,"useBiggerThumbs",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],VS.prototype,"biggerThumbsStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],VS.prototype,"collections",void 0);_.c([_.f({computed:"computeHasPlaylistThumbnail(data)"}),_.w("design:type",Object)],VS.prototype,"hasPlaylistThumbnail",void 0);_.c([_.f(),_.w("design:type",String)],VS.prototype,"stackThumbnailSize",void 0);_.c([_.sg("ytd-thumbnail"),_.w("design:type",HTMLElement)],VS.prototype,"thumbnail",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VS.prototype,"dataChanged",null);_.c([_.t("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],VS.prototype,"isHovered",null);_.c([_.z({is:"ytd-radio-renderer",disableElementRegistration:!0})],VS);
_.A(VS,"ytd-radio-renderer",function(){if(o2B!==void 0)return o2B;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return o2B=v},{mode:_.bk("kevlar_poly_si_batch_j058")?1:2});var JNM;_.RZ("itemSectionRenderer","showRenderer","ytd-show-renderer");var oF=function(){return _.P.apply(this,arguments)||this};
_.V(oF,_.P);oF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
oF.prototype.computeThumbnailWidth=function(v){return v?360:246};
oF.prototype.computeUseProminentThumbs=function(v){return v};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],oF.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],oF.prototype,"isSearch",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.w("design:type",Boolean)],oF.prototype,"useProminentThumbs",void 0);_.c([_.z({is:"ytd-show-renderer",disableElementRegistration:!0})],oF);
_.A(oF,"ytd-show-renderer",function(){if(JNM!==void 0)return JNM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return JNM=v},{mode:1});_.RZ("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var JY=function(){var v=_.P.apply(this,arguments)||this;v.isRichGrid=!1;return v};
_.V(JY,_.P);JY.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JY.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],JY.prototype,"isRichGrid",void 0);_.c([_.z({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],JY);
_.A(JY,"ytd-feed-entry-renderer",function(){if(VEI!==void 0)return VEI;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return VEI=v},{mode:1});var GsA;var GK=function(){return _.P.apply(this,arguments)||this};
_.V(GK,_.P);GK.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.c([_.M(_.lV),_.w("design:type",Object)],GK.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],GK.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],GK.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.X1,value:3}),_.w("design:type",Number)],GK.prototype,"itemsPerRow",void 0);
_.c([_.z({is:"ytd-link-card-renderer",disableElementRegistration:!0})],GK);
_.A(GK,"ytd-link-card-renderer",function(){if(GsA!==void 0)return GsA;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return GsA=v},{mode:1});var ME6;var MA=function(){return _.P.apply(this,arguments)||this};
_.V(MA,_.P);_.W=MA.prototype;_.W.configureRendererStamper=function(){return{"data.menu":jY,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.W.onRendererTap=function(v){if(!this.ytdDismissibleItemBehavior.isDismissed){var e,d=(e=this.data)==null?void 0:e.navigationEndpoint;d&&!_.UG(_.vg(v),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(d)?_.UG(_.vg(v),this.hostElement,["A"])||_.Iq(this.hostElement,"yt-navigate",{endpoint:d}):this.ytComponentBehavior.resolveCommand(d,{}))}};
_.W.maybeComputeHref=function(v){return this.ytComponentBehavior.computeHref_(v,!0)};
_.W.getNavigationCommand=function(v){return this.isNavigationCommand(v)?v:null};
_.W.isNavigationCommand=function(v){return v?_.L(v,_.Lo)||_.L(v,_.p2)||_.L(v,_.wb)?!0:!1:!1};
MA.prototype.onRendererTap=MA.prototype.onRendererTap;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],MA.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],MA.prototype,"ytComponentBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],MA.prototype,"data",void 0);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],MA.prototype,"onRendererTap",null);_.c([_.z({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],MA);
_.A(MA,"ytd-lumiere-promo-item-image-renderer",function(){if(ME6!==void 0)return ME6;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ME6=v},{mode:1});var tEM;var tY=function(){return _.P.apply(this,arguments)||this};
_.V(tY,_.P);tY.prototype.computeLandscapeThumbnail=function(){var v;return((v=this.data)==null?void 0:v.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],tY.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],tY.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],tY.prototype,"miniMode",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.X1}),_.w("design:type",Number)],tY.prototype,"itemsPerRow",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.w("design:type",Boolean)],tY.prototype,"landscapeThumbnail",void 0);_.c([_.z({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],tY);
_.A(tY,"ytd-lumiere-shelf-details-renderer",function(){if(tEM!==void 0)return tEM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return tEM=v},{mode:_.bk("kevlar_poly_si_batch_j076")?1:2});var f1g;var fd=function(){return _.P.apply(this,arguments)||this};
_.V(fd,_.P);fd.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],fd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fd.prototype,"data",void 0);_.c([_.z({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],fd);
_.A(fd,"ytd-primetime-promo-details-renderer",function(){if(f1g!==void 0)return f1g;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return f1g=v},{mode:1});var RQA;var RF=function(){return _.P.apply(this,arguments)||this};
_.V(RF,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],RF.prototype,"data",void 0);_.c([_.z({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],RF);
_.A(RF,"ytd-panel-show-style-metadata-renderer",function(){if(RQA!==void 0)return RQA;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return RQA=v},{mode:1});var Pvu;var P1=function(){return _.P.apply(this,arguments)||this};
_.V(P1,_.P);_.W=P1.prototype;_.W.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.W.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.W.computeThumbnail=function(v){if(v)return v.smallFormFactorBackgroundThumbnail||v.largeFormFactorBackgroundThumbnail};
_.W.maybeComputeHref=function(v){return this.ytComponentBehavior.computeHref_(v,!0)};
_.W.isNavigationCommand=function(v){return v?_.L(v,_.Lo)||_.L(v,_.p2)||_.L(v,_.wb)?!0:!1:!1};
_.W.getNavigationCommand=function(v){return this.isNavigationCommand(v)?v:null};
P1.prototype.onPanelTap=P1.prototype.onPanelTap;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],P1.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],P1.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],P1.prototype,"roundedContainer",void 0);_.c([_.f({reflectToAttribute:!0,value:_.N("web_modern_buttons")}),_.w("design:type",Boolean)],P1.prototype,"modernButtons",void 0);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],P1.prototype,"onPanelTap",null);_.c([_.z({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],P1);
_.A(P1,"ytd-primetime-promo-panel-renderer",function(){if(Pvu!==void 0)return Pvu;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Pvu=v},{mode:1});_.aZ(_.l(function(v){v=_.dC(v,{data:{},useFullWidth:!1});var e=v.data,d=v.useFullWidth;v={};return _.m("teaser-card-view-model",{class:_.qe("ytTeaserCardViewModelHost",(v.ytTeaserCardViewModelUseFullWidth=function(){return d()},v))},_.m(_.y,{cond:function(){return e().onTap},
then:function(E){return _.m(_.Oe,{className:"ytTeaserCardViewModelLink",command:E},_.m("div",{class:"ytTeaserCardViewModelImageContainer"},_.m(_.y,{cond:function(){return e().image},
then:function(T){return _.m(_.va,{data:T,className:"ytTeaserCardViewModelImage",alt:""})}})),_.m("p",{class:"ytTeaserCardViewModelCaption"},function(){return e().caption}))}}))},"Tb"),"teaser-card-view-model",{props:{data:_.U1,
useFullWidth:_.U1}});var xL7=new _.nC("RICH_GRID_VIDEO_RENDERER_TOKEN");_.aZ(_.l(function(v){var e=v.data;var d=v.showYtInteractionInContent;var E=function(){return!!e().selectableFeedback};
v=_.a(_.OE(!1,void 0,"nblDw"));var T=v.next().value,S=v.next().value;_.Gr(function(){var K=_.L(e().primaryButton,_.Ay);(K==null?0:K.isToggled)&&S(K.isToggled)});
v=_.rq(function(K){if(!E())return!1;if(T()){var k;var J=(k=e().selectableFeedback)==null?void 0:k.onDeselect}else{var R;J=(R=e().selectableFeedback)==null?void 0:R.onSelect}J&&_.wC(J,{form:{element:K.target}});S(!T());if(K=_.L(e().primaryButton,_.Ay))K.isToggled=T();return!1});
var O=function(){if(!E()){var K,k=(K=e().loggingDirectives)==null?void 0:K.trackingParams;k&&_.yV(_.dk().resolve(_.t5),k)}},b=_.pRt(),Y=function(){var K;
return E()?(K=e().selectableFeedback)==null?void 0:K.a11yLabel:void 0},q=function(){return E()?{toggled:T()}:{}},r=_.dk().resolve(_.eG(xL7)),h={};
return _.m("yt-feedback-item-renderer",{class:_.qe("ytFeedbackItemRendererHost",(h.ytFeedbackItemRendererSelectableFeedback=E,h)),"on:click":v,"on:keydown":b,title:Y,"aria-label":Y,"aria-pressed":function(){return E()?T():void 0},
tabindex:function(){return E()?0:void 0},
role:function(){return E()?"button":void 0}},_.m("div",{class:"ytFeedbackItemRendererContentContainer"},_.m(_.kz,{data:function(){return e().content}},{videoRenderer:function(K){return _.m(r,{data:K.data,
showYtInteraction:d})},
lockupViewModel:function(K){return _.m(_.Y8,{data:K.data,containerType:2})}})),_.m("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.m(_.kz,{data:function(){return e().primaryButton}},{toggleButtonViewModel:function(K){return _.m(_.fR,{data:K.data,
buttonShapeOverrides:q,disableExplicitClickLogging:!0,onToggle:O})}})))},"Ub"),"yt-feedback-item-renderer",{props:{data:_.U1,
showYtInteractionInContent:_.U1}});var x9=function(){var v=_.P.apply(this,arguments)||this;v.isShortsGrid=!1;v.isCompactGrid=!1;v.isShortsPanelGrid=!1;v.renderedFromRichGrid=!1;v.isInFirstColumn=!1;v.noGutterMargins=!1;v.isInlineGroupItem=!1;v.insetMetadata=!1;v.noBottomMarginInAds=!0;v.force16By9ThumbnailAspectRatio=!1;v.useCompactList=!1;v.containerType=2;v.thumbnailTargetWidth=9999;v.isResponsiveGrid=!1;v.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};v.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};
v.hoverListener=v.hover.bind(v);v.leaveListener=v.leave.bind(v);v.highlighted=!1;v.JSC$16119_unsubscribeFromInlinePreviewIsActive=function(){};
return v};
_.V(x9,_.P);_.W=x9.prototype;_.W.computeContainerType=function(){return this.useCompactList?3:2};
_.W.computeThumbnailTargetWidth=function(){var v;return(v=this.itemWidth)!=null?v:9999};
_.W.updateIsInFirstColumn=function(){var v;this.isInFirstColumn=((v=this.data)==null?void 0:v.colIndex)===0};
_.W.observerContainerType=function(){if(this.lockup){var v=this.lockup;v.containerType=this.containerType;v.sizing=this.sizing;v.typographyBump=this.typographyBump;v.itemWidth=this.itemWidth}this.richGridMedia&&_.N("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.N("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.W.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]]"}}}}}};
_.W.leave=function(v){v=v.relatedTarget;var e=document.querySelector("ytd-video-preview");v&&e&&_.bh(e).contains(v)||this.removeAndCleanupHighlight()};
_.W.hover=function(){var v;if(!this.highlighted&&(!_.N("web_enable_rich_item_on_focus_effect")||(v=this.data)!=null&&v.onFocusEffect)){var e,d;((e=this.data)==null?void 0:(d=e.onFocusEffect)==null?void 0:d.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(v=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:v,boxShadow:"0 0 0 10px "+v}));var E,T;((E=this.data)==null?void 0:(T=E.onFocusEffect)==null?void 0:
T.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.W.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};
_.W.registerHoverHighlightListeners=function(){var v=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16119_unsubscribeFromInlinePreviewIsActive=_.ji(_.d1(),_.UNM,function(e){v.highlighted&&!e&&v.removeAndCleanupHighlight()})};
_.W.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16119_unsubscribeFromInlinePreviewIsActive()};
_.W.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.W.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.W.getBackgroundColor=function(){var v,e,d=(v=this.data)==null?void 0:(e=v.onFocusEffect)==null?void 0:e.onFocusColor;if(d){if(document.documentElement.hasAttribute("dark")&&(d==null?0:d.darkTheme))return _.cv(d==null?void 0:d.darkTheme);if(d==null?0:d.lightTheme)return _.cv(d==null?void 0:d.lightTheme)}};
_.W.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var v=_.zz(),e,d,E;v&&((e=this.data)==null?0:e.trackingParams)&&((d=this.data)==null?void 0:d.colIndex)!=null&&((E=this.data)==null?void 0:E.rowIndex)!=null&&_.vK(v,_.Jg(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.W.isSlimMediaRenderer=function(v){return!!_.L(v==null?void 0:v.content,_.Wk7)||!!_.L(v==null?void 0:v.content,SQu)||!!_.L(v==null?void 0:v.content,_.xw)||!!_.L(v==null?void 0:v.content,owB)};
_.W.isPostRenderer=function(){var v,e;return!!_.L((v=this.data)==null?void 0:v.content,DFM)||!!_.L((e=this.data)==null?void 0:e.content,UFJ)};
_.W.computeIsGameCardShelf=function(){var v;return!!_.L((v=this.data)==null?void 0:v.content,ile)};
_.W.computeIsMiniGameCardShelf=function(){var v,e;return!!_.L((v=this.data)==null?void 0:v.content,Ny0)||!!_.L((e=this.data)==null?void 0:e.content,k3n)};
_.W.computeIsTeaserCard=function(){var v;return!!_.L((v=this.data)==null?void 0:v.content,k3n)};
_.W.computeIsSelectableFeedbackItem=function(){var v,e;return!((e=_.L((v=this.data)==null?void 0:v.content,_.VTE))==null||!e.selectableFeedback)};
_.W.computeContainsLumierePosters=function(){var v,e;return((e=_.L((v=this.data)==null?void 0:v.content,iyi))==null?void 0:e.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.W.computeIsExpandOnHoverCardShelf=function(){var v;return!!_.L((v=this.data)==null?void 0:v.content,aHA)};
_.W.computeIsLinkCardShelf=function(){var v;return!!_.L((v=this.data)==null?void 0:v.content,C$6)};
_.W.computeIsReelItemStyleAvatarCircle=function(v){var e;return((e=_.L(v==null?void 0:v.content,_.xw))==null?void 0:e.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.W.computeIsLinkCardFullWidth=function(v,e){var d;return((d=_.L(v==null?void 0:v.content,C$6))==null?void 0:d.useFullWidth)||e<=2};
_.vP.Object.defineProperties(x9.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&&_.N("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.N("web_enable_rich_item_on_focus_effect")||_.N("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}}});
x9.prototype.richGridHoverHighlightChanged=x9.prototype.richGridHoverHighlightChanged;x9.prototype.observerContainerType=x9.prototype.observerContainerType;x9.prototype.updateIsInFirstColumn=x9.prototype.updateIsInFirstColumn;_.c([_.M(_.lV),_.w("design:type",Object)],x9.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],x9.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],x9.prototype,"ytdLockupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],x9.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.w("design:type",Boolean)],x9.prototype,"isPost",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.w("design:type",Boolean)],x9.prototype,"containsLumierePosters",void 0);_.c([_.f({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.w("design:type",Boolean)],x9.prototype,"isSlimMedia",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.w("design:type",Boolean)],x9.prototype,"isGameCardShelf",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.w("design:type",Boolean)],x9.prototype,"isMiniGameCardShelf",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.w("design:type",Boolean)],x9.prototype,"isTeaserCard",void 0);_.c([_.f({computed:"computeIsSelectableFeedbackItem(data)"}),_.w("design:type",Boolean)],x9.prototype,"isSelectableFeedbackItem",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x9.prototype,"isShortsGrid",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],x9.prototype,"isSlimGrid",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x9.prototype,"isCompactGrid",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x9.prototype,"isShortsPanelGrid",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.w("design:type",Boolean)],x9.prototype,"isExpandOnHoverCardShelf",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.w("design:type",Boolean)],x9.prototype,"isLinkCardShelf",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.X1,value:3}),_.w("design:type",Number)],x9.prototype,"itemsPerRow",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x9.prototype,"renderedFromRichGrid",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x9.prototype,"isInFirstColumn",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x9.prototype,"noGutterMargins",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x9.prototype,"isInlineGroupItem",void 0);_.c([_.f(),_.w("design:type",Object)],x9.prototype,"insetMetadata",void 0);
_.c([_.f(),_.w("design:type",Object)],x9.prototype,"noBottomMarginInAds",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],x9.prototype,"isShelfItem",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.w("design:type",Boolean)],x9.prototype,"isReelItemStyleAvatarCircle",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.w("design:type",Boolean)],x9.prototype,"isLinkCardFullWidth",void 0);
_.c([_.f(),_.w("design:type",Object)],x9.prototype,"force16By9ThumbnailAspectRatio",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x9.prototype,"useCompactList",void 0);_.c([_.f(),_.w("design:type",String)],x9.prototype,"sizing",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],x9.prototype,"typographyBump",void 0);_.c([_.f(),_.w("design:type",Number)],x9.prototype,"itemWidth",void 0);_.c([_.f(),_.w("design:type",Boolean)],x9.prototype,"isHomeShelf",void 0);
_.c([_.f(),_.w("design:type",Boolean)],x9.prototype,"isHomeGrid",void 0);_.c([_.sg("yt-lockup-view-model"),_.w("design:type",HTMLElement)],x9.prototype,"lockup",void 0);_.c([_.sg("ytd-rich-grid-media"),_.w("design:type",HTMLElement)],x9.prototype,"richGridMedia",void 0);_.c([_.sg("ytd-ad-slot-renderer"),_.w("design:type",HTMLElement)],x9.prototype,"adSlotRenderer",void 0);_.c([_.f({computed:"computeContainerType(useCompactList)"}),_.w("design:type",Object)],x9.prototype,"containerType",void 0);
_.c([_.f({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.w("design:type",Object)],x9.prototype,"thumbnailTargetWidth",void 0);_.c([_.t("showYtInteractionOnRichItem"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],x9.prototype,"showYtInteractionOnRichGridMedia",null);_.c([_.t("isSelectableFeedbackItem","richGridHoverHighlight"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],x9.prototype,"showYtInteractionOnRichItem",null);
_.c([_.t("typographyBump","isHomeGrid"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],x9.prototype,"richTypographyBump",null);_.c([_.f({reflectToAttribute:!0}),_.t("isShortsGrid","isCompactGrid"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],x9.prototype,"richGridHoverHighlight",null);_.c([_.t("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.w("design:type",Number),_.w("design:paramtypes",[])],x9.prototype,"shortsLockupViewModelAspectRatio",null);
_.c([_.t("isInlineGroupItem"),_.w("design:type",Number),_.w("design:paramtypes",[])],x9.prototype,"shortsLockupViewModelScrimStyle",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],x9.prototype,"updateIsInFirstColumn",null);_.c([_.$v("containerType","sizing","typographyBump"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],x9.prototype,"observerContainerType",null);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],x9.prototype,"isResponsiveGrid",void 0);_.c([_.f(),_.w("design:type",Object)],x9.prototype,"lockupExperiments",void 0);_.c([_.$v("richGridHoverHighlight"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],x9.prototype,"richGridHoverHighlightChanged",null);_.c([_.z({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],x9);
_.Bai=_.I5()(x9,"ytd-rich-item-renderer",function(){if(sS6===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);sS6=v}v=sS6;return v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var ibW={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var sX0=_.pQ(_.sz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var IvM={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},YxH={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},mQ0={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var CvM;var B1=function(){var v=_.P.apply(this,arguments)||this;v.useResponsiveGrid=!1;v.hidden=!1;v.isShowMoreHidden=!1;v.isShowLessHidden=!0;v.hasExpansionButton=!1;v.isExpanded=!1;v.isInnerShelf=!1;v.allVideosCount=0;v.allPlaylistCount=0;v.haveSmartDownloadsCompleted=!1;v.restrictContentsOverflow=!1;v.firstShownIndex=0;v.horizontalOffset=0;v.atEnd=!0;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
v.nextClick=function(){var e;(e=v.data)!=null&&e.contents&&(v.firstShownIndex+=v.currentElementsPerRow,v.updateHorizontalOffset(),v.updateHorizontalItemVisibility())};
v.previousClick=function(){var e;(e=v.data)!=null&&e.contents&&(v.firstShownIndex-=v.currentElementsPerRow,v.updateHorizontalOffset(),v.updateHorizontalItemVisibility())};
return v};
_.V(B1,_.P);_.W=B1.prototype;
_.W.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:_.Bb("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.W.attached=function(){this.requestElementsPerRow()};
_.W.refreshGridLayoutNew=function(){var v;if((v=this.data)!=null&&v.contents&&this.containerWidth){var e;((e=this.data.responsiveContainerConfiguration)==null?0:e.responsiveSize)?(v=_.Lo0(this.data.responsiveContainerConfiguration,this.containerWidth),v=_.AX(Object.assign({},v,{standardUnitMinWidth:this.standardUnitMinWidth}))):v=_.AX({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=v.typographyBump;if(this.elementsPerRow!==
v.numItems||this.gutter!==v.gutter)this.elementsPerRow=v.numItems,this.gutter=v.gutter,this.itemWidth=v.itemWidth,_.qr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":v.gutter+"px"})}};
_.W.computeSizing=function(){if(!this.isLumiere){var v=_.gFt(this.data);if(v)return v;if(_.N("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.W.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.W.computeButton=function(v){var e=_.L(v,_.BD);v=Object.assign({},_.L(v,_.BD));return e?(v.text||(v.text={simpleText:v.tooltip}),v.style="STYLE_MONO_OUTLINE",v.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",v):e};
_.W.onRowIndexChange=function(){var v=_.zz(),e,d;((e=this.data)==null?0:e.trackingParams)&&((d=this.data)==null?void 0:d.rowIndex)!=null&&v&&_.vK(v,_.Jg(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.W.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var v,e=((v=this.getRichItemRenderers()[0])==null?void 0:v.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*e;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.W.requestElementsPerRow=function(){_.Iq(this.hostElement,"yt-request-elements-per-row")};
_.W.onUpdateElementsPerRowAction=function(v,e,d,E,T,S){if(this.containerWidth!==S&&(this.containerWidth=S,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&v&&e&&d&&E&&T&&(this.elementsPerRow!==v||this.postsPerRow!==e||this.slimItemsPerRow!==d||this.gameCardsPerRow!==E||this.miniGameCardsPerRow!==T)&&(this.elementsPerRow=v,this.postsPerRow=e,this.slimItemsPerRow=d,this.gameCardsPerRow=E,this.miniGameCardsPerRow=T,this.updateItemVisibility())};
_.W.getRichItemRenderers=function(){return _.IB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.W.updateItemVisibility=function(){var v=this;if(this.data&&this.data.contents){var e=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(E,T){var S;((S=v.data)==null?0:S.isExpanded)?(E.hidden=T>e-1,E.ytRendererBehavior.markDirty()):E.hidden=T>v.currentElementsPerRow-1||T>e-1});
var d=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||d||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||d||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.W.setHeightToSingleRow=function(){var v=this.getRichItemRenderers(),e=Number.parseInt(getComputedStyle(v[0]).marginBottom,10)||0;v=v.slice(0,this.currentElementsPerRow).reduce(function(d,E){return Math.max(d,E.getBoundingClientRect().height+e)},0);
this.contents.style.height=v+"px"};
_.W.focusNextExpandedItem=function(){var v;((v=this.data)==null?0:v.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.W.focusItem=function(v,e){var d=this.getRichItemRenderers();if(d[v]&&(v=d[v].querySelector(".focus-on-expand"))){if(e){var E;(E=d[this.currentElementsPerRow])==null||E.scrollIntoView({behavior:"smooth",block:"center"})}v.focus({preventScroll:!0})}};
_.W.onDataChange=function(){var v=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var e;if((e=this.data)==null?0:e.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.Uh(this,function(){v.updateItemVisibility()});
var d;if((d=this.data)==null?0:d.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.qr(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),e=0;e<this.data.contents.length;e++)d=_.L(this.data.contents[e],_.oi)||{},d.colIndex=e,d.rowIndex=this.data.rowIndex};
_.W.handleRerenderDownloadsData=function(){_.N("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())};
_.W.blockInlinePreview=function(v){var e=this,d;return _.I(function(E){(d=e.inlinePreviewIsEnabled)&&e.ytdReduxBehavior.dispatch(_.$xJ(!1));return E.return(new Promise(function(T){v(function(){d&&e.ytdReduxBehavior.dispatch(_.$xJ(!0));T()})}))})};
_.W.expandShelf=function(){var v=this;if(this.data){var e,d=(e=_.L(this.data.showMoreButton,_.BD))==null?void 0:e.trackingParams;d&&_.yV(_.NC(),d);this.data.isExpanded=!0;this.blockInlinePreview(function(E){v.setHeightToSingleRow();v.updateItemVisibility();v.contents.style.height=v.contents.scrollHeight+"px";_.RM.addJob(function(){v.contents.style.height="auto";v.focusNextExpandedItem();E()},2,200)})}};
_.W.collapseShelf=function(){var v=this;return _.I(function(e){if(e.nextAddress==1){if(!v.data)return e.return();v.data.isExpanded=!1;return e.yield(v.blockInlinePreview(function(d){v.contents.style.height=v.contents.scrollHeight+"px";v.setHeightToSingleRow();_.RM.addJob(function(){v.updateItemVisibility();v.contents.style.height="auto";d()},2,200)}),2)}_.Iq(v.hostElement,"yt-rich-shelf-renderer-collapse",v.data.trackingParams);
v.focusItem(0,!1);_.s9(e)})};
_.W.updateArrowButtonStatus=function(){var v=this.getRichItemRenderers().length;if(!_.N("web_rich_shelf_renderer_use_data_contents_killswitch")){var e,d;v=((e=this.data)==null?void 0:(d=e.contents)==null?void 0:d.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=v};
_.W.onChildElementFocus=function(v){this.hasChevronButtons&&(v=v.target.closest("#contents > *"),this.contents.contains(v)&&(v.offsetLeft<this.horizontalOffset?this.previousClick():v.offsetLeft+v.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.W.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Bb("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.W.updateHorizontalOffset=function(){var v=this.getRichItemRenderers(),e=v.length;if(!_.N("web_rich_shelf_renderer_use_data_contents_killswitch")){var d,E;e=((d=this.data)==null?void 0:(E=d.contents)==null?void 0:E.length)||0}var T;v=((T=v[0])==null?void 0:T.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>e?this.firstShownIndex=e-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*v};
_.W.isSlimMediaShelfRenderer=function(){var v,e,d,E=(d=_.L((v=this.data)==null?void 0:(e=v.contents)==null?void 0:e[0],_.oi))==null?void 0:d.content;return!!(_.L(E,_.Wk7)||_.L(E,SQu)||_.L(E,_.xw)||_.L(E,owB))};
_.W.isGameCardShelf=function(){var v,e,d,E=(d=_.L((v=this.data)==null?void 0:(e=v.contents)==null?void 0:e[0],_.oi))==null?void 0:d.content;return!!_.L(E,ile)};
_.W.isGnomeShelf=function(){var v,e,d,E=(d=_.L((v=this.data)==null?void 0:(e=v.contents)==null?void 0:e[0],_.oi))==null?void 0:d.content;return!!_.L(E,_.VTE)};
_.W.isMiniGameCardShelf=function(){var v,e,d,E=(d=_.L((v=this.data)==null?void 0:(e=v.contents)==null?void 0:e[0],_.oi))==null?void 0:d.content;return!!_.L(E,Ny0)||!!_.L(E,k3n)};
_.W.hasGameBoxArtAvatarStyle=function(){var v;return((v=this.data)==null?void 0:v.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.W.hasRoundedGameBoxArtAvatarStyle=function(){var v;return((v=this.data)==null?void 0:v.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.W.isShortsShelf=function(){var v,e,d,E=(d=_.L((v=this.data)==null?void 0:(e=v.contents)==null?void 0:e[0],_.oi))==null?void 0:d.content;return!!_.L(E,_.xw)||!!_.L(E,owB)};
_.W.isPostShelfRenderer=function(){var v,e,d,E=(d=_.L((v=this.data)==null?void 0:(e=v.contents)==null?void 0:e[0],_.oi))==null?void 0:d.content;return!(!_.L(E,DFM)&&!_.L(E,UFJ))};
_.W.isLumiereShelf=function(){var v,e,d=_.L((v=this.data)==null?void 0:(e=v.contents)==null?void 0:e[0],_.oi);return!!_.L(d==null?void 0:d.content,iyi)};
_.W.isLumiereShelfWithPosters=function(){var v,e,d=_.L((v=this.data)==null?void 0:(e=v.contents)==null?void 0:e[0],_.oi),E;return((E=_.L(d==null?void 0:d.content,iyi))==null?void 0:E.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.W.isExpandOnHoverCardShelf=function(){var v,e,d,E=(d=_.L((v=this.data)==null?void 0:(e=v.contents)==null?void 0:e[0],_.oi))==null?void 0:d.content;return!!_.L(E,aHA)};
_.W.computeHasFeaturedBadge=function(){var v,e,d=_.L((v=this.data)==null?void 0:(e=v.badges)==null?void 0:e[0],_.oTB);return d?d.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.W.computeHasPaygatedFeaturedBadge=function(){var v,e,d=_.L((v=this.data)==null?void 0:(e=v.badges)==null?void 0:e[0],_.oTB);return d?(d==null?void 0:d.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.W.computeHeaderHidden=function(){var v,e,d,E,T,S;return!((v=this.data)==null?0:v.icon)&&!((e=this.data)==null?0:e.title)&&!((d=this.data)==null?0:d.subtitle)&&!((E=this.data)==null?0:E.thumbnail)&&!((T=this.data)==null?0:T.badges)&&!((S=this.data)==null?0:S.menu)};
_.W.showCtaButton=function(){var v;return!((v=this.data)==null||!v.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.W.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.W.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.W.computeForce16By9ThumbnailAspectRatio=function(){var v,e;return((v=this.data)==null?void 0:(e=v.responsiveContainerConfiguration)==null?void 0:e.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.W.onSectionReactiveDismissal=function(v,e,d){var E,T;var S=(E=this.data)==null?void 0:(T=E.targetingContext)==null?void 0:T.targetGroupId;this&&S&&e.targetGroupId&&S.includes(e.targetGroupId)?(E=this.rowIndex,v=E===void 0?!1:!(e.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&E<=v)):v=!1;v&&(this.hidden=d)};
_.vP.Object.defineProperties(B1.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var v=this.elementsPerRow;this.isPostShelfRenderer()?v=this.postsPerRow:this.isSlimMediaShelfRenderer()?v=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?v=this.slimItemsPerRow-1:this.isGameCardShelf()?v=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(v=this.miniGameCardsPerRow);return v}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.N("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null?0:v.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var v,e;return!((v=this.data)==null||!v.previousButton)&&!((e=this.data)==null||!e.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var v;return((v=_.dk().resolve(_.v5).getCurrentPage())==null?void 0:v.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E;return!((v=this.data)==null?0:(e=v.thumbnail)==null?0:(d=e.accessibility)==null?0:(E=d.accessibilityData)==null?0:E.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
B1.prototype.onChildElementFocus=B1.prototype.onChildElementFocus;B1.prototype.handleRerenderDownloadsData=B1.prototype.handleRerenderDownloadsData;B1.prototype.onDataChange=B1.prototype.onDataChange;B1.prototype.onRowIndexChange=B1.prototype.onRowIndexChange;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],B1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.Au),_.w("design:type",Object)],B1.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],B1.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],B1.prototype,"ytdReduxBehavior",void 0);_.c([_.f({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.w("design:type",Object)],B1.prototype,"useResponsiveGrid",void 0);_.c([_.f(),_.w("design:type",Object)],B1.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Number)],B1.prototype,"standardUnitMinWidth",void 0);_.c([_.f({reflectToAttribute:!0,value:3}),_.w("design:type",Number)],B1.prototype,"elementsPerRow",void 0);_.c([_.f({value:3}),_.w("design:type",Number)],B1.prototype,"postsPerRow",void 0);_.c([_.f({value:6}),_.w("design:type",Number)],B1.prototype,"slimItemsPerRow",void 0);_.c([_.f({value:6}),_.w("design:type",Number)],B1.prototype,"gameCardsPerRow",void 0);
_.c([_.f({value:6}),_.w("design:type",Number)],B1.prototype,"miniGameCardsPerRow",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],B1.prototype,"hidden",void 0);_.c([_.f(),_.w("design:type",Object)],B1.prototype,"isShowMoreHidden",void 0);_.c([_.f(),_.w("design:type",Object)],B1.prototype,"isShowLessHidden",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],B1.prototype,"hasExpansionButton",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],B1.prototype,"isExpanded",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],B1.prototype,"isInnerShelf",void 0);_.c([_.f({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.w("design:type",Boolean)],B1.prototype,"isShorts",void 0);_.c([_.f({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.w("design:type",Boolean)],B1.prototype,"isLumiere",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.w("design:type",Boolean)],B1.prototype,"hasBoxArtThumbnailStyle",void 0);_.c([_.f({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.w("design:type",Boolean)],B1.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.w("design:type",Boolean)],B1.prototype,"hasFeaturedBadge",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.w("design:type",Boolean)],B1.prototype,"hasPaygatedFeaturedBadge",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.w("design:type",Boolean)],B1.prototype,"isHeaderHidden",void 0);_.c([_.f({selector:_.TTH}),_.w("design:type",Object)],B1.prototype,"allVideosCount",void 0);_.c([_.f({selector:k9s}),_.w("design:type",Object)],B1.prototype,"allPlaylistCount",void 0);
_.c([_.f({selector:yb0}),_.w("design:type",Object)],B1.prototype,"haveSmartDownloadsCompleted",void 0);
_.c([_.f({selectorArgs:["entitySelectorType"],selector:function(v,e){if(_.N("kevlar_modern_downloads_page")&&e&&e!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var d=v.entities;switch(e){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":e=_.PK(d);v=h1(e);var E=_.J_(e);d=_.BK(d);d=_.WK(qxM(E,d,e.length));return{contents:v,subtitle:d};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return d=_.PK(d),{contents:h1(d)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return d=
_.xH(d),{contents:h1(d)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return d=_.xNt(d),{contents:h1(d)};default:_.xf(new _.kL("Error: entitySelectorType defined but not matched in selector.",v,e))}}}}),
_.w("design:type",Object)],B1.prototype,"entityDrivenRichShelfData",void 0);_.c([_.f({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.w("design:type",Boolean)],B1.prototype,"hasTopCtaButton",void 0);_.c([_.f({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.w("design:type",Boolean)],B1.prototype,"hasBottomCtaButton",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.w("design:type",Boolean)],B1.prototype,"force16By9ThumbnailAspectRatio",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],B1.prototype,"restrictContentsOverflow",void 0);_.c([_.f({selector:_.pHH}),_.w("design:type",Boolean)],B1.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.f({computed:"computeSizing(data)"}),_.w("design:type",String)],B1.prototype,"sizing",void 0);
_.c([_.f(),_.w("design:type",Boolean)],B1.prototype,"typographyBump",void 0);_.c([_.f(),_.w("design:type",Number)],B1.prototype,"itemWidth",void 0);_.c([_.f(),_.w("design:type",Object)],B1.prototype,"firstShownIndex",void 0);_.c([_.f(),_.w("design:type",Object)],B1.prototype,"horizontalOffset",void 0);_.c([_.f(),_.w("design:type",Object)],B1.prototype,"atEnd",void 0);_.c([_.sg("#contents"),_.w("design:type",HTMLElement)],B1.prototype,"contents",void 0);
_.c([_.$v("data.rowIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],B1.prototype,"onRowIndexChange",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],B1.prototype,"onDataChange",null);_.c([_.$v("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],B1.prototype,"handleRerenderDownloadsData",null);
_.c([_.Kq("focusin"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],B1.prototype,"onChildElementFocus",null);_.c([_.f({reflectToAttribute:!0}),_.t("data","isHomePage"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],B1.prototype,"isTruncated",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],B1.prototype,"showBottomDivider",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],B1.prototype,"hasChevronButtons",null);_.c([_.t("firstShownIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],B1.prototype,"previousButtonOverride",null);_.c([_.t("atEnd"),_.w("design:type",Object),_.w("design:paramtypes",[])],B1.prototype,"nextButtonOverride",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],B1.prototype,"isHomePage",null);
_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],B1.prototype,"thumbnailAriaHidden",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],B1.prototype,"initiallyIsExpanded",null);_.c([_.t("data"),_.w("design:type",String),_.w("design:paramtypes",[])],B1.prototype,"entitySelectorType",null);_.c([_.z({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],B1);
_.XZM=_.I5()(B1,"ytd-rich-shelf-renderer",function(){if(CvM===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);CvM=v}v=CvM;return v},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var zQg;_.aZ(_.W4,"yt-badge-view-model",{props:{data:_.U1,class:_.U1,workaroundShortsIsThumbnailBadge:_.U1,modern:_.U1}});_.aZ(qXg,"yt-slimline-survey-view-model",{props:{data:_.U1}});var Cd=function(){var v=_.P.apply(this,arguments)||this;v.tileLottieAnimationRef={};v.backgroundLottieAnimationRef={};v.isOnHoverBehaviorForLottieEnabled=!0;v.useBiggerShowcaseImage=_.N("enable_desktop_search_bigger_thumbs");v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return v};
_.V(Cd,_.P);_.W=Cd.prototype;_.W.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.W.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.W.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var v=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);v!==this.hasTile&&this.set("hasTile",v);v=this.hasLogo(this.data)||!!this.data.badgeText;v!==this.hasMetadata&&this.set("hasMetadata",v);v=this.data.overflowButton?!1:v;v!==this.showLogoImage&&this.set("showLogoImage",v);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.W.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.W.currentColorChanged=function(){this.updateButtonPalette()};
_.W.computeBackgroundStyle=function(v){if(v&&this.data){var e=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var d=_.OG((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);d&&e.push('background-image: url("'+d+'");')}var E;((E=v.basicColorData)==null?void 0:E.backgroundColor)!==void 0&&e.push("background-color: "+_.w1(v.basicColorData.backgroundColor)+";");return e.join("")}};
_.W.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v)};
_.W.getCurrentLogo=function(v,e){if(v)return e?v.darkLogoImage:v.lightLogoImage};
_.W.getCurrentStaticTileImage=function(v,e){if(this.hasStaticTile(v))return v.darkTileImage?e?v.darkTileImage:v.tileImage:v.tileImage};
_.W.computeTitleStyle=function(v){if(this.data&&this.data.title&&v&&v.basicColorData&&v.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.cv(v.basicColorData.foregroundTitleColor)+";"};
_.W.computeSubtitleStyle=function(v){if(this.data&&this.data.subtitle&&v&&v.basicColorData&&v.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.cv(v.basicColorData.foregroundBodyColor)+";"};
_.W.computeSupplementalStyle=function(v){if(this.data&&this.data.supplementalText&&v&&v.supplementalTextColor!==void 0)return v=_.cv(v.supplementalTextColor),"color:"+v+";--yt-endpoint-color:"+v+";--yt-endpoint-hover-color:"+v+";--yt-endpoint-visited-color:"+v+";--yt-formatted-string-bold-font-weight:700;"};
_.W.computeDismissIconStyle=function(v){var e,d;if((v==null?0:(e=v.dismissButtonColorData)==null?0:e.foregroundTitleColor)&&(v==null?0:(d=v.dismissButtonColorData)==null?0:d.backgroundColor))return"--yt-button-color:"+_.w1(v.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.w1(v.dismissButtonColorData.backgroundColor)+";"};
_.W.computeOverflowIconStyle=function(v){var e,d;if((v==null?0:(e=v.dismissButtonColorData)==null?0:e.foregroundTitleColor)&&(v==null?0:(d=v.dismissButtonColorData)==null?0:d.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.w1(v.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.w1(v.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.w1(v.dismissButtonColorData.foregroundTitleColor)+";"};
_.W.computeBannerStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.W.computeLocation=function(v){switch(v==null?void 0:v.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.W.shouldShowTileSection=function(v,e,d){return!this.shouldExpandLogo(v,e,d)&&e};
_.W.shouldShowExpandedLogoSection=function(v,e,d){return this.shouldExpandLogo(v,e,d)&&v!==void 0&&this.hasLogo(v)};
_.W.shouldExpandLogo=function(v,e,d){return v&&e?!1:d>=2};
_.W.hasStaticTile=function(v){return!(v==null||!v.tileImage)};
_.W.hasTileLottie=function(v){var e;return!!(v==null?0:(e=v.tileLottie)==null?0:e.url)};
_.W.hasLogo=function(v){return this.getCurrentLogo(v,this.isDarkTheme)!==void 0};
_.W.getLogoHeight=function(v){return this.logoWithPadding(v)?"26":"20"};
_.W.getExpandedLogoHeight=function(v){return this.logoWithPadding(v)?"31":"24"};
_.W.getLogoImageId=function(v){return this.logoWithPadding(v)?"logo-image-with-padding":"logo-image"};
_.W.getMaxTitleFontSize=function(v){return v.overrideTitleMaxFontSize?String(v.overrideTitleMaxFontSize):"36"};
_.W.hasBackgroundLottie=function(v){var e;return!!(v==null?0:(e=v.backgroundLottie)==null?0:e.url)};
_.W.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var v,e;(v=this.tileLottieAnimationRef)==null||(e=v.lottieEl)==null||e.play();var d,E;(d=this.backgroundLottieAnimationRef)==null||(E=d.lottieEl)==null||E.play()}};
_.W.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var v,e;(v=this.tileLottieAnimationRef)==null||(e=v.lottieEl)==null||e.pause();var d,E;(d=this.backgroundLottieAnimationRef)==null||(E=d.lottieEl)==null||E.pause()}};
_.W.pauseLottie=function(){var v,e;(v=this.tileLottieAnimationRef)==null||(e=v.lottieEl)==null||e.pause();var d,E;(d=this.backgroundLottieAnimationRef)==null||(E=d.lottieEl)==null||E.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.W.performPrimaryButtonAction=function(){var v,e,d;((v=this.data)==null?0:(e=v.primaryButton)==null?0:(d=e.buttonRenderer)==null?0:d.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.W.requestElementsPerRow=function(){_.Iq(this.hostElement,"yt-request-elements-per-row")};
_.W.updateButtonPalette=function(){if(this.data&&this.currentColorData){var v;((v=this.data.dismissButton)==null?0:v.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var e;if((e=this.data.primaryButton)==null?0:e.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var d;if((d=this.data.secondaryButton)==
null?0:d.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 E;((E=this.data.primaryButton)==null?0:E.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)});var S;((S=this.data.primaryButton)==null?0:S.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.W.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var v=this.getTileLottieDataBasedOnTheme(),e,d;if(v.url!==((e=this.tileLottiePlayerProps)==null?void 0:(d=e.animationConfig)==null?void 0:d.path)){var E,T;(E=this.tileLottieAnimationRef)==null||(T=E.lottieEl)==null||T.destroy();var S;this.isOnHoverBehaviorForLottieEnabled=!((S=v.settings)==null?0:S.autoplay);var O,b;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(b=(O=v.settings)==null?void 0:O.autoplay)!=null?b:!1,loop:this.getLottieLoopValue(v.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof v.url==="string"?this.tileLottiePlayerProps.animationConfig.path=v.url:this.tileLottiePlayerProps.animationConfig.animationData=v.url}}};
_.W.getOverflowButton=function(v){return _.L(v.overflowButton,fGg)};
_.W.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var v=this.getBackgroundLottieDataBasedOnTheme(),e,d;if(v.url!==((e=this.backgroundLottiePlayerProps)==null?void 0:(d=e.animationConfig)==null?void 0:d.path)){var E,T;(E=this.backgroundLottieAnimationRef)==null||(T=E.lottieEl)==null||T.destroy();var S;this.isOnHoverBehaviorForLottieEnabled=!((S=v.settings)==null?0:S.autoplay);var O,b;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(b=(O=v.settings)==null?void 0:O.autoplay)!=null?b:!1,loop:this.getLottieLoopValue(v.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof v.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=v.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
v.url}}};
_.W.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var v;((v=this.tileLottieAnimationRef)==null?void 0:v.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var e;((e=this.backgroundLottieAnimationRef)==null?void 0:e.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.W.getTileLottieDataBasedOnTheme=function(){var v;if(this.isDarkTheme&&((v=this.data)==null?0:v.darkThemeTileLottie))return this.data.darkThemeTileLottie;var e;return((e=this.data)==null?0:e.tileLottie)?this.data.tileLottie:{}};
_.W.getBackgroundLottieDataBasedOnTheme=function(){var v;if(this.isDarkTheme&&((v=this.data)==null?0:v.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var e;return((e=this.data)==null?0:e.backgroundLottie)?this.data.backgroundLottie:{}};
_.W.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v)};
_.W.getLottieLoopValue=function(v){return v?v.loop!==void 0?v.loop:v.loopCount?v.loopCount-1:!0:!0};
_.W.logoWithPadding=function(v){var e,d,E;return(v=(e=this.getCurrentLogo(v,this.isDarkTheme))==null?void 0:(d=e.thumbnails)==null?void 0:(E=d[0])==null?void 0:E.height)&&v%31===0?!0:!1};
Cd.prototype.currentColorChanged=Cd.prototype.currentColorChanged;Cd.prototype.themeChanged=Cd.prototype.themeChanged;Cd.prototype.dataChanged=Cd.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Cd.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Cd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],Cd.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Cd.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Cd.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Cd.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Cd.prototype,"primaryButton",void 0);_.c([_.f(),_.w("design:type",Object)],Cd.prototype,"secondaryButton",void 0);
_.c([_.f({reflectToAttribute:!0,value:3}),_.w("design:type",Number)],Cd.prototype,"elementsPerRow",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Cd.prototype,"isDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Cd.prototype,"hasTile",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Cd.prototype,"hasMetadata",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Cd.prototype,"showLogoImage",void 0);_.c([_.f(),_.w("design:type",Object)],Cd.prototype,"currentColorData",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.w("design:type",String)],Cd.prototype,"bannerStyle",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.w("design:type",String)],Cd.prototype,"location",void 0);
_.c([_.f(),_.w("design:type",Object)],Cd.prototype,"tileLottiePlayerProps",void 0);_.c([_.f(),_.w("design:type",Object)],Cd.prototype,"tileLottieAnimationRef",void 0);_.c([_.f(),_.w("design:type",Object)],Cd.prototype,"backgroundLottiePlayerProps",void 0);_.c([_.f(),_.w("design:type",Object)],Cd.prototype,"backgroundLottieAnimationRef",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Cd.prototype,"useBiggerShowcaseImage",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Cd.prototype,"isHideEnclosingAction",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Cd.prototype,"dataChanged",null);_.c([_.V1("isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Cd.prototype,"themeChanged",null);
_.c([_.V1("currentColorData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Cd.prototype,"currentColorChanged",null);_.c([_.z({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Cd);
_.A(Cd,"ytd-statement-banner-renderer",function(){if(zQg!==void 0)return zQg;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return zQg=v},{mode:1});var l1I;var X4=function(){var v=_.P.apply(this,arguments)||this;v.isSearch=!1;v.hideShelfHeader=!1;v.engagementPanel=!1;v.disableMouseScroll=!0;v.useFloorScrolling=!0;v.modernTypography=_.N("web_modern_typography");return v};
_.V(X4,_.P);X4.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.sz("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.sz("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
X4.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
X4.prototype.onDataChanged=X4.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],X4.prototype,"isSearch",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],X4.prototype,"hideShelfHeader",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],X4.prototype,"engagementPanel",void 0);_.c([_.f(),_.w("design:type",Object)],X4.prototype,"disableMouseScroll",void 0);_.c([_.f(),_.w("design:type",Object)],X4.prototype,"useFloorScrolling",void 0);_.c([_.f(),_.w("design:type",Object)],X4.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],X4.prototype,"modernTypography",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],X4.prototype,"onDataChanged",null);_.c([_.z({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],X4);
_.A(X4,"ytd-reel-shelf-renderer",function(){if(l1I!==void 0)return l1I;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return l1I=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var H_A;var ANE;ANE=_.Z9(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.Z_E=_.ie(ANE);var cN2=_.l(function(v){var e=v.data;v=v.useSmallFont;var d={},E={};return _.m("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.m(_.y,{cond:function(){return e().favicon},
then:function(T){return _.m(_.va,{data:T,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.m("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.m(_.Dh,{text:function(){return e().title},
className:_.qe("yt-channel-external-link-view-model-wiz__title",(d["yt-channel-external-link-view-model-wiz__title--title-small-font"]=v,d)),ellipsisTruncate:!0,userInput:!0}),_.m(_.Dh,{text:function(){return e().link},
className:_.qe("yt-channel-external-link-view-model-wiz__link",(E["yt-channel-external-link-view-model-wiz__link--link-small-font"]=v,E)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Vb");
cN2.idomCompat=!0;_.aZ(cN2,"yt-channel-external-link-view-model",{props:{data:_.U1,useSmallFont:_.U1}});_.RZ("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var zK=function(){var v=_.P.apply(this,arguments)||this;v.revealButtonClass="button";v.businessEmailDisplayState="HIDE_SECTION";return v};
_.V(zK,_.P);_.W=zK.prototype;_.W.refit=function(){var v=this;_.Q1(function(){_.YB(v.hostElement,"yt-refit-popups-action")});
_.Uh(this,function(){_.YB(v.hostElement,"yt-refit-popups-action")})};
_.W.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Ff(_.Z_E),this.businessEmailDisplayState="CAPTCHA")};
_.W.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"};
_.W.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.W.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"}}}};
_.W.computeEmailHref=function(v){return"mailto:"+v};
_.W.computeSafeUrl=function(v){if(v)return _.xm(v)};
_.W.linkEndpoint=function(v){return _.L(v.onTap,_.zj)};
_.W.linkEndpointToHref=function(v){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(v))};
_.W.onYtServiceRequestCompleted=function(v){var e;if((e=v.detail.data)==null?0:e.businessEmail)this.businessEmail=v.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var d;if((d=v.detail.data)==null?0:d.errorMessage)this.businessEmailErrorMessage=v.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.W.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var v=this.JSC$16231_captchaTextarea.value;if(v){v={recaptcha_response_token:v,channel_id:this.metadata.channelId};var e=_.L(this.metadata.onBusinessEmailRevealClickCommand,_.zj);e&&this.ytComponentBehavior.resolveCommand(e,{form:v})}}};
_.W.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.vP.Object.defineProperties(zK.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var v;return _.L((v=this.data)==null?void 0:v.metadata,Yd6)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.L(this.metadata.businessEmailRevealButton,_.lx)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var v=new URL(this.metadata.canonicalChannelUrl);return v.host+v.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 _.L(this.metadata.learnMoreOnTap,_.zj)}}});
zK.prototype.onYtServiceRequestCompleted=zK.prototype.onYtServiceRequestCompleted;zK.prototype.businessEmailMetadataChanged=zK.prototype.businessEmailMetadataChanged;zK.prototype.refit=zK.prototype.refit;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],zK.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.sg("#g-recaptcha-response"),_.w("design:type",HTMLTextAreaElement)],zK.prototype,"JSC$16231_captchaTextarea",void 0);_.c([_.f(),_.w("design:type",Object)],zK.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],zK.prototype,"revealButtonClass",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],zK.prototype,"metadata",null);
_.c([_.t("metadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],zK.prototype,"revealButton",null);_.c([_.t("metadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],zK.prototype,"channelDisplayUrl",null);_.c([_.V1("metadata"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zK.prototype,"refit",null);_.c([_.t("metadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],zK.prototype,"formattedDescription",null);
_.c([_.t("metadata","learnMoreCommand"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],zK.prototype,"shouldRendereVerifiedPhoneStatus",null);_.c([_.t("metadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],zK.prototype,"learnMoreCommand",null);_.c([_.f(),_.w("design:type",String)],zK.prototype,"businessEmailDisplayState",void 0);_.c([_.f(),_.w("design:type",String)],zK.prototype,"businessEmail",void 0);
_.c([_.f(),_.w("design:type",String)],zK.prototype,"businessEmailErrorMessage",void 0);_.c([_.V1("metadata"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zK.prototype,"businessEmailMetadataChanged",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],zK.prototype,"onYtServiceRequestCompleted",null);_.c([_.z({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],zK);
_.A(zK,"ytd-about-channel-renderer",function(){if(H_A!==void 0)return H_A;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return H_A=v},{mode:1});var wZE;var lr=function(){return _.P.apply(this,arguments)||this};
_.V(lr,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],lr.prototype,"data",void 0);_.c([_.z({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],lr);
_.A(lr,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(wZE!==void 0)return wZE;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return wZE=v},{mode:1});var F_A;var H1=function(){return _.P.apply(this,arguments)||this};
_.V(H1,_.P);H1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],H1.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],H1.prototype,"aligment",void 0);_.c([_.z({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],H1);
_.A(H1,"ytd-channel-list-sub-menu-renderer",function(){if(F_A!==void 0)return F_A;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return F_A=
v},{mode:1});var QSM;var AY=function(){return _.P.apply(this,arguments)||this};
_.V(AY,_.P);AY.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],AY.prototype,"data",void 0);_.c([_.z({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],AY);
_.A(AY,"ytd-channel-sub-menu-renderer",function(){if(QSM!==void 0)return QSM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return QSM=v},{mode:1});var g2B;var u57;var Zn=function(){var v=_.P.apply(this,arguments)||this;v.isCompact=!1;return v};
_.V(Zn,_.P);_.vP.Object.defineProperties(Zn.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var v,e;return((e=_.L((v=this.data)==null?void 0:v.endpoint,_.wb))==null?void 0:e.target)==="TARGET_NEW_WINDOW"}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Zn.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Zn.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Zn.prototype,"isCompact",void 0);_.c([_.t("isCompact"),_.w("design:type",Number),_.w("design:paramtypes",[])],Zn.prototype,"thumbnailWidth",null);
_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zn.prototype,"openNewWindow",null);_.c([_.z({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Zn);
_.A(Zn,"ytd-media-lockup-renderer",function(){if(u57!==void 0)return u57;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return u57=v},{mode:1});var n26;var c1=function(){return _.P.apply(this,arguments)||this};
_.V(c1,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],c1.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],c1.prototype,"data",void 0);_.c([_.z({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],c1);
_.A(c1,"ytd-structured-description-channel-lockup-renderer",function(){if(n26!==void 0)return n26;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return n26=v},{mode:1});var DL2;var wP=function(){var v=_.P.apply(this,arguments)||this;v.isCompact=!1;v.collections=_.N("web_modern_collections_v2");v.collectionsStackColor=_.N("modernize_structured_description_playlist_lockups_v2");return v};
_.V(wP,_.P);wP.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:_.N("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.vP.Object.defineProperties(wP.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E,T,S;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(v=this.data)==null?void 0:(e=v.thumbnail)==null?void 0:e.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(d=this.data)==null?void 0:(E=d.thumbnail)==null?void 0:E.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(T=this.data)==null?void 0:(S=T.thumbnail)==
null?void 0:S.vibrantColorPalette:void 0}}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],wP.prototype,"componentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wP.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],wP.prototype,"showSidePanelThumbnailOverlay",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wP.prototype,"isCompact",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],wP.prototype,"collections",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wP.prototype,"collectionsStackColor",void 0);_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wP.prototype,"twoLineTitle",null);
_.c([_.t("data","collections","collectionsStackColor"),_.w("design:type",Object),_.w("design:paramtypes",[])],wP.prototype,"collectionStack",null);_.c([_.z({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],wP);
_.A(wP,"ytd-structured-description-playlist-lockup-renderer",function(){if(DL2!==void 0)return DL2;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return DL2=v},{mode:1});var ULI;var F4=function(){return _.P.apply(this,arguments)||this};
_.V(F4,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],F4.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],F4.prototype,"data",void 0);_.c([_.z({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],F4);
_.A(F4,"ytd-structured-description-video-lockup-renderer",function(){if(ULI!==void 0)return ULI;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ULI=v},{mode:2});var QS=function(){return _.P.apply(this,arguments)||this};
_.V(QS,_.P);
QS.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],QS.prototype,"data",void 0);_.c([_.z({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],QS);
_.A(QS,"ytd-compact-infocard-renderer",function(){if(g2B!==void 0)return g2B;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return g2B=v},{mode:1});var pZ6;var gP=function(){var v=_.P.apply(this,arguments)||this;v.useModernCollectionsV2=_.N("web_modern_collections_v2");return v};
_.V(gP,_.P);gP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.vP.Object.defineProperties(gP.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],gP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],gP.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],gP.prototype,"ytdReduxBehavior",void 0);_.c([_.f({selector:_.CM}),_.w("design:type",Object)],gP.prototype,"isGridViewEnabled",void 0);
_.c([_.t("isGridViewEnabled"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gP.prototype,"watchFeedBigThumbs",null);_.c([_.t("isGridViewEnabled","data"),_.f({reflectToAttribute:!0,value:"168"}),_.w("design:type",String),_.w("design:paramtypes",[])],gP.prototype,"thumbnailWidth",null);_.c([_.t("isGridViewEnabled","data"),_.f({reflectToAttribute:!0,value:"94"}),_.w("design:type",String),_.w("design:paramtypes",[])],gP.prototype,"customThumbnailSize",null);
_.c([_.f(),_.w("design:type",Object)],gP.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],gP.prototype,"useModernCollectionsV2",void 0);_.c([_.z({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],gP);
_.A(gP,"ytd-compact-playlist-renderer",function(){if(pZ6!==void 0)return pZ6;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return pZ6=v},{mode:1});var vU0;var ur=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");v.roundedContainer=!0;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return v};
_.V(ur,_.P);_.W=ur.prototype;_.W.attached=function(){this.requestElementsPerRow()};
_.W.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"}}}};
_.W.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.W.computeViewStyle=function(v){return v.style?v.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.W.onUpdateElementsPerRowAction=function(v){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&v===1};
_.W.requestElementsPerRow=function(){_.Iq(this.hostElement,"yt-request-elements-per-row")};
ur.prototype.dataChanged=ur.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ur.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],ur.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],ur.prototype,"actionHandlerBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],ur.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],ur.prototype,"hideThumbnail",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.w("design:type",String)],ur.prototype,"viewStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ur.prototype,"darkerDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ur.prototype,"roundedContainer",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ur.prototype,"dataChanged",null);_.c([_.z({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],ur);
_.A(ur,"ytd-compact-promoted-item-renderer",function(){if(vU0!==void 0)return vU0;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return vU0=v},{mode:1});var efe;var nd=function(){var v=_.P.apply(this,arguments)||this;v.collections=_.N("web_modern_collections_v2");return v};
_.V(nd,_.P);nd.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
nd.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
nd.prototype.onYtNavigate=function(v,e){var d=this;if(e.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",e)){var E=this.get("watchEndpoint.videoId",e.endpoint),T=_.YB(this.hostElement,"yt-get-current-video-id-action")[0];_.N("kevlar_mix_handle_first_endpoint_different")&&E&&T&&E!==T||(v.stopPropagation(),_.EK().getPlayerPromise().then(function(S){if(S.getPlayerState()===0&&d.data.secondaryNavigationEndpoint)var O=d.data.secondaryNavigationEndpoint;else{O=
Object.assign({},e.endpoint);var b=_.L(O.commandMetadata,_.$B);b&&(S=Math.floor(S.getCurrentTime()),b.url=_.ug(b.url,{t:S}),!_.N("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(b=_.L(O,_.p2)))&&(b.startTimeSeconds=S)}_.Iq(d.hostElement,"yt-navigate",{endpoint:O})}))}};
_.vP.Object.defineProperties(nd.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E,T,S;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(v=this.data)==null?void 0:(e=v.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(d=this.data)==null?void 0:(E=d.thumbnail)==null?void 0:E.vibrantColorPalette,darkColorPalette:(T=this.data)==null?void 0:(S=T.thumbnail)==null?void 0:S.darkColorPalette,experimentEnabled:this.collections}}}});
nd.prototype.onYtNavigate=nd.prototype.onYtNavigate;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.KR.YtEndpointBehavior),_.w("design:type",Object)],nd.prototype,"ytEndpointBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],nd.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.M(_.uV),_.w("design:type",Object)],nd.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],nd.prototype,"ytdReduxBehavior",void 0);_.c([_.f({selector:_.CM}),_.w("design:type",Object)],nd.prototype,"isGridViewEnabled",void 0);_.c([_.t("isGridViewEnabled"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],nd.prototype,"watchFeedBigThumbs",null);
_.c([_.t("isGridViewEnabled"),_.f({reflectToAttribute:!0}),_.w("design:type",String),_.w("design:paramtypes",[])],nd.prototype,"thumbnailWidth",null);_.c([_.f(),_.w("design:type",Object)],nd.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],nd.prototype,"collections",void 0);_.c([_.t("data","collections"),_.w("design:type",Object),_.w("design:paramtypes",[])],nd.prototype,"collectionStack",null);
_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],nd.prototype,"onYtNavigate",null);_.c([_.z({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],nd);
_.A(nd,"ytd-compact-radio-renderer",function(){if(efe!==void 0)return efe;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return efe=v},{mode:1});var dt0;var Dn=function(){return _.P.apply(this,arguments)||this};
_.V(Dn,_.P);Dn.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Dn.prototype.computeRendererStyle=function(v){return v.style?v.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.c([_.f(),_.w("design:type",Object)],Dn.prototype,"data",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Dn.prototype,"rendererBehavior",void 0);_.c([_.f({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.w("design:type",String)],Dn.prototype,"rendererStyle",void 0);_.c([_.z({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Dn);
_.A(Dn,"ytd-compact-text-promo-renderer",function(){if(dt0!==void 0)return dt0;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return dt0=v},{mode:1});var EUg;var Ur=function(){var v=_.P.apply(this,arguments)||this;v.isShortsStyle=!1;return v};
_.V(Ur,_.P);_.W=Ur.prototype;_.W.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"}}}};
_.W.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Iq(this.hostElement,"yt-disable-lockup-interaction"):_.Iq(this.hostElement,"yt-enable-lockup-interaction"))};
_.W.isMetaBlockEmpty=function(v){return!v||!v.longBylineText&&!v.shortBylineText&&!v.shortViewCountText&&!v.viewCountText};
_.W.computeHasOneLineTitle=function(v){return this.forceOneLineTitle||!(v==null||!v.buttons)};
_.W.computeDisableInteraction=function(){var v;return!((v=this.data)==null?0:v.navigationEndpoint)};
_.W.hasSingularTopStandaloneBadge=function(){var v;return!((v=this.data)==null||!v.topStandaloneBadge)};
_.vP.Object.defineProperties(Ur.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("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 v;return this.hasSingularTopStandaloneBadge()?[(v=this.data)==null?void 0:v.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var v;return this.shouldShowTopBadges?((v=this.data)==null?void 0:v.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Ur.prototype.disableInteractionChanged=Ur.prototype.disableInteractionChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],Ur.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],Ur.prototype,"ytdLockupBehavior",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],Ur.prototype,"ytdReduxBehavior",void 0);_.c([_.f({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.w("design:type",Boolean)],Ur.prototype,"metaBlockEmpty",void 0);_.c([_.f({selector:_.CM}),_.w("design:type",Object)],Ur.prototype,"isGridViewEnabled",void 0);_.c([_.t("isGridViewEnabled"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ur.prototype,"watchFeedBigThumbs",null);
_.c([_.t("isGridViewEnabled"),_.f({reflectToAttribute:!0}),_.w("design:type",String),_.w("design:paramtypes",[])],Ur.prototype,"thumbnailWidth",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ur.prototype,"isShortsStyle",void 0);_.c([_.f(),_.w("design:type",Object)],Ur.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.w("design:type",Boolean)],Ur.prototype,"hasOneLineTitle",void 0);
_.c([_.f(),_.w("design:type",Boolean)],Ur.prototype,"hideThumbnail",void 0);_.c([_.f(),_.w("design:type",Boolean)],Ur.prototype,"forceOneLineTitle",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.w("design:type",Boolean)],Ur.prototype,"disableInteraction",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ur.prototype,"musicMetadataVideoLockup",void 0);
_.c([_.$v("disableInteraction"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ur.prototype,"disableInteractionChanged",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ur.prototype,"shouldShowTopBadges",null);_.c([_.t("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],Ur.prototype,"topBadges",null);
_.c([_.t("shouldShowTopBadges","data"),_.w("design:type",Array),_.w("design:paramtypes",[])],Ur.prototype,"inlineMetadataBadges",null);_.c([_.t("shouldShowTopBadges"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ur.prototype,"shouldShowBadgesBelowMetadata",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ur.prototype,"compactTitleClass",null);_.c([_.z({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Ur);
_.A(Ur,"ytd-compact-video-renderer",function(){if(EUg!==void 0)return EUg;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return EUg=v},{mode:_.bk("kevlar_poly_si_batch_j067")?1:2});var T2n;_.RZ("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var pd=function(){return _.P.apply(this,arguments)||this};
_.V(pd,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pd.prototype,"data",void 0);_.c([_.z({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],pd);
_.A(pd,"ytd-counterfactual-renderer",function(){if(T2n!==void 0)return T2n;var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return T2n=v},{mode:1});var Syn;var ve=function(){var v=_.P.apply(this,arguments)||this;v.hidden=!1;return v};
_.V(ve,_.P);ve.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.dk().resolve(_.EI).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
ve.prototype.computeHidden=function(v){return!!v};
_.vP.Object.defineProperties(ve.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ve.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.w("design:type",Object)],ve.prototype,"hidden",void 0);_.c([_.t("data.label"),_.w("design:type",String),_.w("design:paramtypes",[])],ve.prototype,"label",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ve.prototype,"value",null);
_.c([_.z({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],ve);
_.A(ve,"ytd-dropdown-item-renderer",function(){if(Syn!==void 0)return Syn;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Syn=v},{mode:1});var WQ0;var aLg;var e8=function(){return _.P.apply(this,arguments)||this};
_.V(e8,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],e8.prototype,"data",void 0);_.c([_.f({computed:"getSimpleString(data.label)"}),_.w("design:type",String)],e8.prototype,"label",void 0);_.c([_.z({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],e8);
_.A(e8,"ytd-navigation-dropdown-item-renderer",function(){if(aLg!==void 0)return aLg;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return aLg=v},{mode:1});var dx=function(){var v=_.P.apply(this,arguments)||this;v.disabled=!1;v.value="";v.noLabelFloat=!1;v.noUnderline=!1;v.usePrimaryColor=!1;v.hasBackground=!1;v.verticalAlign="top";v.autosize=!1;v.minAutosizeWidth=100;v.autosizeFont="14px Roboto";return v};
_.V(dx,_.P);_.W=dx.prototype;_.W.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"}}}};
_.W.open=function(){this.inputEl.open()};
_.W.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.W.dataChanged=function(){this.reset()};
_.W.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("value-changed",this.value))};
_.W.stopPropagation=function(v){v.stopPropagation()};
_.W.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var v=this.canvas.getContext("2d");v&&(v.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(v.measureText(this.inputEl.value).width)+24)+"px")}};
_.W.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var v=0,e=this.data.entries.length;v<e;v++){var d=this.data.entries[v],E;for(E in d)if(d.hasOwnProperty(E)){var T=d[E];if("isSelected"in T&&T.isSelected)return"stringValue"in T?T.stringValue||"":"int32Value"in T?T.int32Value||0:0}}return null};
_.W.updateValueFromBinding=function(v){this.value=v.detail.value};
_.vP.Object.defineProperties(dx.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 v=0,e=this.data.entries.length;v<e;v++){var d=this.data.entries[v],E;for(E in d)if(d.hasOwnProperty(E)){var T=d[E];if("isSelected"in T&&T.isSelected&&"label"in T)return this.ytRendererBehavior.getSimpleString(T.label)}}return null}}});
dx.prototype.autoSizeLabel=dx.prototype.autoSizeLabel;dx.prototype.stopPropagation=dx.prototype.stopPropagation;dx.prototype.valueChangedForBinding=dx.prototype.valueChangedForBinding;dx.prototype.dataChanged=dx.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],dx.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],dx.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dx.prototype,"disabled",void 0);_.c([_.f(),_.w("design:type",Object)],dx.prototype,"value",void 0);_.c([_.f(),_.w("design:type",Object)],dx.prototype,"noLabelFloat",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dx.prototype,"noUnderline",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],dx.prototype,"theme",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dx.prototype,"usePrimaryColor",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dx.prototype,"hasBackground",void 0);_.c([_.f(),_.w("design:type",Object)],dx.prototype,"verticalAlign",void 0);_.c([_.f(),_.w("design:type",Object)],dx.prototype,"autosize",void 0);_.c([_.f(),_.w("design:type",Object)],dx.prototype,"minAutosizeWidth",void 0);_.c([_.f(),_.w("design:type",Object)],dx.prototype,"autosizeFont",void 0);
_.c([_.sg("#entries"),_.w("design:type",Object)],dx.prototype,"entries",void 0);_.c([_.sg("#input"),_.w("design:type",Object)],dx.prototype,"inputEl",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dx.prototype,"dataChanged",null);_.c([_.V1("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dx.prototype,"valueChangedForBinding",null);
_.c([_.Kq("iron-overlay-opened"),_.Kq("iron-overlay-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],dx.prototype,"stopPropagation",null);_.c([_.Kq("iron-select"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dx.prototype,"autoSizeLabel",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],dx.prototype,"label",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],dx);
_.A(dx,"ytd-dropdown-renderer",function(){if(WQ0!==void 0)return WQ0;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return WQ0=v},{mode:1});var izg;var EZ=function(){var v=_.P.apply(this,arguments)||this;v.isConstrainedList=!1;return v};
_.V(EZ,_.P);EZ.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"}}}};
EZ.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
EZ.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
EZ.prototype.computeViewAllHidden=function(v,e){return v||!e.viewAllEndpoint};
EZ.prototype.fillRestIfNoShowMore=EZ.prototype.fillRestIfNoShowMore;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],EZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.iO.YtLazyListBehavior),_.w("design:type",Object)],EZ.prototype,"ytLazyListBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],EZ.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],EZ.prototype,"isConstrainedList",void 0);_.c([_.V1("data","canShowMore"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EZ.prototype,"fillRestIfNoShowMore",null);_.c([_.z({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],EZ);
_.A(EZ,"ytd-expanded-shelf-contents-renderer",function(){if(izg!==void 0)return izg;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return izg=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var Oze;var T0=function(){return _.P.apply(this,arguments)||this};
_.V(T0,_.P);T0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],T0.prototype,"data",void 0);_.c([_.z({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],T0);
_.A(T0,"ytd-feed-channel-filter-header-renderer",function(){if(Oze!==void 0)return Oze;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Oze=v},{mode:1});var ILi;var bz7;var Yyi;var S8=function(){return _.P.apply(this,arguments)||this};
_.V(S8,_.P);_.W=S8.prototype;_.W.onClick=function(v){var e,d=(e=this.data)==null?void 0:e.sectionEndpoint;!_.UG(_.vg(v),this.hostElement,["A".toString()])&&d&&_.Iq(this.hostElement,"yt-navigate",{endpoint:d})};
_.W.computeHasSectionEndpoint=function(v){return(v==null?void 0:v.sectionEndpoint)!==void 0};
_.W.computeShowHeaderAsLink=function(v){return(v==null?void 0:v.header)!==void 0&&(v==null?void 0:v.sectionEndpoint)!==void 0};
_.W.computeShowSubheaderAsLink=function(v){return(v==null?void 0:v.subheader)!==void 0&&(v==null?void 0:v.sectionEndpoint)!==void 0&&(v==null?void 0:v.header)===void 0};
_.W.getHeaderAsLinkClass=function(v){var e=[],d;(v==null?0:(d=v.headerIcon)==null?0:d.iconType)&&e.push("header-link-active");return e.join(" ")};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],S8.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],S8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],S8.prototype,"data",void 0);
_.c([_.f({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],S8.prototype,"hasSectionEndpoint",void 0);_.c([_.f({computed:"computeShowHeaderAsLink(data)"}),_.w("design:type",Boolean)],S8.prototype,"showHeaderAsLink",void 0);_.c([_.f({computed:"computeShowSubheaderAsLink(data)"}),_.w("design:type",Boolean)],S8.prototype,"showSubheaderAsLink",void 0);_.c([_.z({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],S8);
_.A(S8,"ytd-medical-panel-section-renderer",function(){if(Yyi!==void 0)return Yyi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Yyi=v},{mode:1});var We=function(){var v=_.P.apply(this,arguments)||this;v.isExpanded=!1;v.roundedContainer=!0;v.skipRoundingTop=!1;v.toggleExpandableSection=function(){v.isExpanded=!v.isExpanded};
return v};
_.V(We,_.P);
We.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]]"}}}}}};
We.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
We.prototype.dataChanged=We.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],We.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],We.prototype,"isExpanded",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],We.prototype,"roundedContainer",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],We.prototype,"skipRoundingTop",void 0);_.c([_.f(),_.w("design:type",Object)],We.prototype,"toggleExpandableSection",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],We.prototype,"dataChanged",null);_.c([_.z({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],We);
_.A(We,"ytd-medical-panel-content-renderer",function(){if(bz7!==void 0)return bz7;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return bz7=v},{mode:1});_.RZ("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var aJ=function(){var v=_.P.apply(this,arguments)||this;v.roundedContainer=!0;v.amsterdamEnabled=_.N("enable_desktop_amsterdam_info_panels");v.hasTitle=!1;v.linkIcon="OPEN_IN_NEW";v.isDismissed=!1;return v};
_.V(aJ,_.P);
aJ.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"}}}};
aJ.prototype.computeHasTitle=function(v){return!(v==null||!v.title)};
aJ.prototype.onClick=function(v){var e,d=(e=this.data)==null?void 0:e.headerEndpoint;!_.UG(_.vg(v),this.hostElement,["BUTTON".toString()])&&d&&this.ytComponentBehavior.resolveCommand(d)};
_.vP.Object.defineProperties(aJ.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 v;return((v=this.data)==null?void 0:v.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:v.disableBottomDivider)||!((e=this.data)==null?0:e.title)}}});
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],aJ.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],aJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],aJ.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],aJ.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],aJ.prototype,"roundedContainer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],aJ.prototype,"amsterdamEnabled",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.w("design:type",Object)],aJ.prototype,"hasTitle",void 0);
_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.background"),_.w("design:type",Object),_.w("design:paramtypes",[])],aJ.prototype,"background",null);_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.titleStyle"),_.w("design:type",Object),_.w("design:paramtypes",[])],aJ.prototype,"titleStyle",null);
_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.t("data.titleStyle"),_.w("design:type",Object),_.w("design:paramtypes",[])],aJ.prototype,"showLinkIcon",null);_.c([_.f(),_.w("design:type",String)],aJ.prototype,"linkIcon",void 0);_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],aJ.prototype,"hideDivider",null);
_.c([_.f({selectorArgs:["data.dismissStateEntityKey"],selector:function(v,e){v=_.h_(v.entities,"dismissState",e);return(v==null?void 0:v.isDismissed)||(v==null?void 0:v.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(v==null?void 0:v.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.w("design:type",Object)],aJ.prototype,"isDismissed",void 0);_.c([_.z({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],aJ);
_.A(aJ,"ytd-info-panel-container-renderer",function(){if(ILi!==void 0)return ILi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ILi=v},{mode:1});var mtM;_.RZ("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var iD=function(){var v=_.P.apply(this,arguments)||this;v.modernTypography=_.N("web_modern_typography");return v};
_.V(iD,_.P);iD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
iD.prototype.computeStyle=function(v){return v?v:""};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],iD.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.w("design:type",String)],iD.prototype,"titleStyle",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],iD.prototype,"modernTypography",void 0);_.c([_.z({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],iD);
_.A(iD,"ytd-item-section-header-renderer",function(){if(mtM!==void 0)return mtM;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return mtM=v},{mode:1});var yL0;var qyB,rL6=function(){return qyB!==void 0?qyB:qyB=document.createElement("template")};
document.head.appendChild(rL6().content);var hfE;_.OZ=new _.nC("VOTING_ANIMATION_CONTROLLER_TOKEN");var $tu=_.l(function(v){var e=v.data;var d=_.nI("div"),E=_.nI("div");v=_.a(_.OE("VOTE_STATUS_NONE",void 0,"FVF7mc"));var T=v.next().value,S=v.next().value,O=_.Kv(VD$,function(){var K;return(K=e())==null?void 0:K.entityKey}),b=_.N("web_enable_voting_animation")||_.N("enable_music_web_cairo_voting_animation");
_.Gr(function(){var K;((K=e().initialState)==null?0:K.status)&&S(e().initialState.status)});
var Y=function(){var K,k,J=(k=(K=e().initialState)==null?void 0:K.votes)!=null?k:0,R;K=(R=e().initialState)==null?void 0:R.status;return K==="VOTE_STATUS_UPVOTED"?J-1:K==="VOTE_STATUS_DOWNVOTED"?J+1:J},q=function(){return T()==="VOTE_STATUS_UPVOTED"?Y()+1:T()==="VOTE_STATUS_DOWNVOTED"?Y()-1:Y()},r=function(K){var k=K?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
S(k);var J=q(),R=_.dk().resolve(_.eG(_.OZ)),B=O();B&&(K&&(B==null?0:B.upvoteDefaultButtonOnTap)?_.wC(B.upvoteDefaultButtonOnTap,{form:{element:d.value},disableClickTracking:!0}):(B==null?0:B.upvoteToggledButtonOnTap)&&_.wC(B.upvoteToggledButtonOnTap,{form:{element:d.value},disableClickTracking:!0}));var X;K=(X=B==null?void 0:B.enableOptimisticReordering)!=null?X:e().enableOptimisticReordering;b&&R&&e().itemId&&K&&KQI(R,e().itemId,J,k)},h=function(K){var k=K?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
S(k);var J=q(),R=_.dk().resolve(_.eG(_.OZ)),B=O();B&&(K&&(B==null?0:B.downvoteDefaultButtonOnTap)?_.wC(B.downvoteDefaultButtonOnTap,{form:{element:E.value},disableClickTracking:!0}):(B==null?0:B.downvoteToggledButtonOnTap)&&_.wC(B.downvoteToggledButtonOnTap,{form:{element:E.value},disableClickTracking:!0}));var X;K=(X=B==null?void 0:B.enableOptimisticReordering)!=null?X:e().enableOptimisticReordering;b&&R&&e().itemId&&K&&KQI(R,e().itemId,J,k)};
v={};v=_.qe("ytVotingViewModelVoteCount",(v.ytVotingViewModelVoteCountDisabled=function(){return e().isDisabled},v));
return _.m("voting-view-model",{class:"ytVotingViewModelHost"},_.m("div",{el:d},_.m(_.kz,{data:function(){var K=_.L(e().upvoteButton,_.Ay);return{toggleButtonViewModel:Object.assign({},K,{isToggled:T()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(K){return _.m(_.fR,{data:K.data,
onToggle:r})}})),_.m("div",{class:v},function(){var K,k,J;
return T()==="VOTE_STATUS_UPVOTED"?(K=e().initialState)==null?void 0:K.compactVotesUpvoted:T()==="VOTE_STATUS_DOWNVOTED"?(k=e().initialState)==null?void 0:k.compactVotesDownvoted:(J=e().initialState)==null?void 0:J.compactVotes}),_.m("div",{el:E},_.m(_.kz,{data:function(){var K=_.L(e().downvoteButton,_.Ay);
return{toggleButtonViewModel:Object.assign({},K,{isToggled:T()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(K){return _.m(_.fR,{data:K.data,
onToggle:h})}})))},"Wb");_.aZ(_.l(function(v){var e=v.data;return _.m("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.m("div",{class:_.qe("ytEngagementBarViewModelEngagementBarWrapper",v.className)},_.m(_.kz,{data:function(){return e().actions}},{votingViewModel:$tu})))},"Xb"),"engagement-bar-view-model",{props:{data:_.U1,
className:_.U1}});var IJ=function(){var v=_.P.apply(this,arguments)||this;v.playlistVotingAnimationEnabled=_.N("web_enable_voting_animation");v.downloadProgress=0;v.transferState="TRANSFER_STATE_UNKNOWN";v.downloadState="DOWNLOAD_STATE_UNKNOWN";v.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";v.offlineVideoPolicyExpirationTimestamp=0;return v};
_.V(IJ,_.P);_.W=IJ.prototype;_.W.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"}}}};
_.W.canReorderChanged=function(){this.persistentDragHandle=_.N("kevlar_playlist_drag_handles")&&this.canReorder};
_.W.onDrag=function(){if(this.thumbnail){var v=_.IB(this.thumbnail).querySelector("yt-image");v&&(v.shouldRenderLazy=!1)}};
_.W.onMenuOverlayChanged=function(v,e){this.menuOpened=e};
_.W.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.W.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.W.onContentsTap=function(v){var e,d=(e=this.data)==null?void 0:e.serviceEndpoints;if(d&&d.length===1&&_.L(d[0],R20)&&!_.UG(_.vg(v),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(d[0]);else{var E;(e=(E=this.data)==null?void 0:E.navigationEndpoint)&&_.N("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?j8I(_.dk().resolve(_.P0),e):(_.Ke().playlistSuggestionsShelfActivation=
!0,_.s8n(_.dk().resolve(_.P0),e)):e&&!_.UG(_.vg(v),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.N("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Iq(this.hostElement,"yt-navigate",{endpoint:e}):this.ytComponentBehavior.resolveCommand(e))}};
_.W.computeStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.W.computeThumbnailWidth=function(v){return v==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.W.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=VZs(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))}};
_.W.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.W.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.W.dataChanged=function(){if(this.data){var v,e,d,E=((v=this.downloadRenderData)==null?void 0:v.badges)&&((e=this.downloadRenderData)==null?void 0:e.badges)!==((d=this.data)==null?void 0:d.badges),T,S,O;v=((T=this.downloadRenderData)==null?void 0:T.thumbnailOverlays)&&((S=this.downloadRenderData)==null?void 0:S.thumbnailOverlays)!==((O=this.data)==null?void 0:O.thumbnailOverlays);(!this.downloadRenderData||E||v)&&this.downloadStateChanged()}};
_.W.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var v,e,d=(v=this.data.menu)==null?void 0:(e=v.menuRenderer)==null?void 0:e.items;if(d)for(v=_.a(d),e=v.next();!e.done;e=v.next())if(e=e.value,d=void 0,_.L((d=e.menuServiceItemRenderer)==null?void 0:d.serviceEndpoint,_.Ri)){var E=d=void 0,T=void 0;e=(d=e)==null?void 0:(E=d.menuServiceItemRenderer)==null?void 0:(T=E.serviceEndpoint)==null?void 0:T.playlistEditEndpoint;T=E=void 0;if(d=(E=e)==null?void 0:(T=E.actions)==null?void 0:
T[0])E=void 0,d.setVideoId=(E=this.data)==null?void 0:E.setVideoId;T=E=d=void 0;if(e=(d=e)==null?void 0:(E=d.clientActions)==null?void 0:(T=E[0])==null?void 0:T.playlistRemoveVideosAction)d=void 0,e.setVideoIds=[(d=this.data)==null?void 0:d.setVideoId]}}};
_.vP.Object.defineProperties(IJ.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
IJ.prototype.setVideoIdChanged=IJ.prototype.setVideoIdChanged;IJ.prototype.dataChanged=IJ.prototype.dataChanged;IJ.prototype.downloadStateChanged=IJ.prototype.downloadStateChanged;IJ.prototype.onMenuOverlayChanged=IJ.prototype.onMenuOverlayChanged;IJ.prototype.canReorderChanged=IJ.prototype.canReorderChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],IJ.prototype,"ytdReduxBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],IJ.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],IJ.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],IJ.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],IJ.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],IJ.prototype,"canReorder",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],IJ.prototype,"menuOpened",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],IJ.prototype,"handleIsHovered",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],IJ.prototype,"persistentDragHandle",void 0);_.c([_.f(),_.w("design:type",Object)],IJ.prototype,"downloadRenderData",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],IJ.prototype,"styleType",void 0);_.c([_.f({computed:"computeThumbnailWidth(data.style)"}),_.w("design:type",Number)],IJ.prototype,"thumbnailWidth",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],IJ.prototype,"isDownloads",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],IJ.prototype,"playlistVotingAnimationEnabled",void 0);
_.c([_.f({selector:cK,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],IJ.prototype,"downloadProgress",void 0);_.c([_.f(),_.w("design:type",Number)],IJ.prototype,"relativeDateReference",void 0);_.c([_.f({selector:_.A_,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],IJ.prototype,"transferState",void 0);_.c([_.f({selector:hrS,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],IJ.prototype,"downloadState",void 0);
_.c([_.f({selector:d$0,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],IJ.prototype,"offlinePolicyAction",void 0);_.c([_.f({selector:EKU,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],IJ.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.c([_.f({selector:S1$,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],IJ.prototype,"entityInfo",void 0);_.c([_.f({selector:_.za}),_.w("design:type",Boolean)],IJ.prototype,"miniplayerIsActive",void 0);
_.c([_.t("data"),_.w("design:type",String),_.w("design:paramtypes",[])],IJ.prototype,"playlistVideoId",null);_.c([_.sg("#thumbnail"),_.w("design:type",Object)],IJ.prototype,"thumbnail",void 0);_.c([_.V1("canReorder"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IJ.prototype,"canReorderChanged",null);
_.c([_.Kq("yt-menu-overlay-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Boolean]),_.w("design:returntype")],IJ.prototype,"onMenuOverlayChanged",null);_.c([_.V1("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IJ.prototype,"downloadStateChanged",null);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IJ.prototype,"dataChanged",null);_.c([_.V1("data.setVideoId"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IJ.prototype,"setVideoIdChanged",null);_.c([_.z({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],IJ);
_.A(IJ,"ytd-playlist-video-renderer",function(){if(hfE!==void 0)return hfE;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);v.content.insertBefore(rL6().content.cloneNode(!0),v.content.firstChild);return hfE=v},{mode:1});var N2g;var bD=function(){return _.P.apply(this,arguments)||this};
_.V(bD,_.P);_.c([_.f(),_.w("design:type",Object)],bD.prototype,"data",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],bD.prototype,"rendererBehavior",void 0);_.c([_.z({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],bD);
_.A(bD,"ytd-premium-browse-footer-renderer",function(){if(N2g!==void 0)return N2g;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return N2g=v},{mode:1});var k4I;var Y3=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return v};
_.V(Y3,_.P);_.W=Y3.prototype;_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.W.handleDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.W.computeHeaderLogoThumbnail=function(v,e){if(v)return e?v.darkLogo:v.lightLogo};
_.W.computeHeaderLogoHeight=function(v,e){var d,E,T;return(v=(d=this.computeHeaderLogoThumbnail(v,e))==null?void 0:(E=d.thumbnails)==null?void 0:(T=E[0])==null?void 0:T.height)&&v%31===0?"31":"24"};
_.W.computeHeaderLogoMarginBottom=function(v,e){return this.computeHeaderLogoHeight(v,e)==="24"?"0":"-7"};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Y3.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Y3.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],Y3.prototype,"isDarkTheme",void 0);_.c([_.f({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.w("design:type",Object)],Y3.prototype,"themeLogo",void 0);
_.c([_.f({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.w("design:type",String)],Y3.prototype,"logoHeight",void 0);_.c([_.f({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.w("design:type",String)],Y3.prototype,"logoMarginBottom",void 0);_.c([_.z({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Y3);
_.A(Y3,"ytd-primetime-promo-header-renderer",function(){if(k4I!==void 0)return k4I;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return k4I=v},{mode:1});var LQI;var oUB=_.l(function(v){var e=_.rq(function(T){var S;(S=v.onClick)==null||S.call(v,T)}),d={},E={};
return _.m("yt-shelf-header-layout",{class:_.qe("shelf-header-layout-wiz",(d["shelf-header-layout-wiz--disable-horizontal-padding"]=v.disableHorizontalPadding,d["shelf-header-layout-wiz--disable-vertical-padding"]=v.disableVerticalPadding,d["shelf-header-layout-wiz--responsive"]=v.useResponsiveLayout,d["shelf-header-layout-wiz--narrow"]=function(){var T,S;return((T=v.useResponsiveLayout)==null?void 0:T.call(v))&&((S=v.forceSmallLayout)==null?void 0:S.call(v))},d["shelf-header-layout-wiz--is-overlay"]=
v.isOverlay,d["shelf-header-layout-wiz--tappable"]=!!v.onClick,d)),
"on:click":e,tabindex:function(){var T;return((T=v.isInteractive)==null?0:T.call(v))?0:void 0}},_.m(_.y,{cond:v.leadingIcon,
then:function(T){return _.m("div",{class:"shelf-header-layout-wiz__leading-icon"},_.m(_.sG,{icon:T}))},
else:function(){return _.m(_.y,{cond:v.hasLeadingImage,then:function(){var T,S={};return _.m("div",{class:_.qe("shelf-header-layout-wiz__leading-image",(S["shelf-header-layout-wiz__leading-image--circular-image"]=v.circularImage,S))},(T=v.leadingImage)==null?void 0:T.call(v))}})}}),_.m("div",{class:"shelf-header-layout-wiz__label-container"},_.m(_.y,{cond:v.hasSuperlabel,
then:function(){var T;return _.m("div",{class:"shelf-header-layout-wiz__superlabel"},(T=v.superlabel)==null?void 0:T.call(v))}}),_.m("div",{class:"shelf-header-layout-wiz__title-row"},_.m(V0A,{text:v.title,
className:_.qe("shelf-header-layout-wiz__title",(E["shelf-header-layout-wiz__title--small-title"]=v.forceSmallLayout,E)),tagLevel:v.tagLevel}),_.m(_.y,{cond:v.hasDetail,then:function(){var T;return _.m("div",{class:"shelf-header-layout-wiz__detail"},(T=v.detail)==null?void 0:T.call(v))}})),_.m(_.y,{cond:v.hasSublabel,
then:function(){var T;return _.m("div",{class:"shelf-header-layout-wiz__sublabel"},(T=v.sublabel)==null?void 0:T.call(v))}})),_.m(_.y,{cond:v.hasTrailingActions,
then:function(){var T;return _.m("div",{class:"shelf-header-layout-wiz__trailing-actions"},(T=v.trailingActions)==null?void 0:T.call(v))}}))},"Yb");
oUB.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var V0A=_.l(function(v){var e=v.text;var d=v.className;var E=v.tagLevel;return _.m(_.kc,null,_.m(_.sW,{when:function(){return(E==null?void 0:E())===0}},function(){return _.m("h2",{class:d},e())}),_.m(_.sW,{when:function(){return(E==null?void 0:E())===1}},function(){return _.m("h3",{class:d},e())}),_.m(_.sW,{when:function(){return(E==null?void 0:E())===2}},function(){return _.m("h4",{class:d},e())}),_.m(_.N9,null,function(){return _.m("h2",{class:d},e())}))},"Zb");var M00,JL6,G4g;_.mz=_.l(function(v){var e=v.className;var d=v.data;var E=v.disableHorizontalPadding;var T=v.disableVerticalPadding;var S=v.forceSmallLayout;var O=v.useResponsiveLayout;v=v.isOverlay;return _.m("yt-section-header-view-model",{class:_.qe("ytSectionHeaderViewModelHost",e),style:_.jM({"background-color":function(){return Kr(d().backgroundColor)?_.w1(Kr(d().backgroundColor)):void 0}})},_.m(oUB,{hasDetail:!1,
title:function(){return _.m(_.Dh,{text:function(){return d().headline}})},
hasTitle:!0,sublabel:function(){return _.m(JL6,{data:d})},
hasSublabel:function(){return!!d().sublabel||!!d().bottomBadge},
superlabel:function(){return _.m(G4g,{data:d})},
hasSuperlabel:function(){return!!d().superlabel||!!d().topBadge},
leadingImage:function(){return _.m(M00,{leadingAccessory:function(){return d().leadingAccessory}})},
hasLeadingImage:function(){return!!d().leadingAccessory},
trailingActions:function(){return _.m(_.kz,{data:function(){return d().trailingActions}},{flexibleActionsViewModel:_.CE})},
hasTrailingActions:function(){return!!d().trailingActions},
disableHorizontalPadding:E,disableVerticalPadding:T,forceSmallLayout:S,useResponsiveLayout:O,isOverlay:v,isInteractive:function(){return!!_.P5(d().rendererContext)},
onClick:function(b){if(_.xz(d().rendererContext)){var Y=_.P5(d().rendererContext);Y&&_.Hz(Y,{form:{element:b.target,event:b}})}}}))},"$b");
M00=_.l(function(v){var e=v.leadingAccessory;return _.m(_.eI,null,_.m(_.y,{cond:function(){var d;return(d=e().image)!=null?d:_.Zx(e().themedImage)},
then:function(d){return _.m(_.va,{data:d,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.m(_.y,{cond:function(){return _.L(e().avatar,_.Cv)},
then:function(d){return _.m(_.x7,{data:d})}}))},"ac");
JL6=_.l(function(v){var e=v.data;return _.m(_.eI,null,_.m(_.y,{cond:function(){return _.L(e().bottomBadge,CA2)},
then:function(d){var E={};return _.m(_.W4,{data:d,class:_.qe((E.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!d()&&!!e().sublabel},E))})}}),_.m(_.y,{cond:function(){return e().sublabel},
then:function(d){return _.m(_.Dh,{text:d})}}))},"bc");
G4g=_.l(function(v){var e=v.data;return _.m(_.eI,null,_.m(_.y,{cond:function(){return _.L(e().topBadge,CA2)},
then:function(d){var E={};return _.m(_.W4,{data:d,class:_.qe((E.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!d()&&!!e().superlabel},E))})}}),_.m(_.y,{cond:function(){return e().superlabel},
then:function(d){return _.m(_.Dh,{text:d})}}))},"cc");_.aZ(_.mz,"yt-section-header-view-model",{props:{data:_.U1,className:_.U1,disableHorizontalPadding:_.U1,disableVerticalPadding:_.U1,forceSmallLayout:_.U1,useResponsiveLayout:_.U1,isOverlay:_.U1}});_.RZ("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var yT=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return v};
_.V(yT,_.P);_.W=yT.prototype;_.W.attached=function(){this.requestElementsPerRow()};
_.W.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"}}}};
_.W.onDataChange=function(){var v=this;_.Uh(this,function(){v.updateItemVisibility()})};
_.W.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v,this.updateItemVisibility())};
_.W.updateItemVisibility=function(){var v=this;this.data&&this.data.panels&&_.IB(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(e,d){e.hidden=d>v.elementsPerRow-1})};
_.W.requestElementsPerRow=function(){_.Iq(this.hostElement,"yt-request-elements-per-row")};
yT.prototype.onDataChange=yT.prototype.onDataChange;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],yT.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],yT.prototype,"actionHandlerBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],yT.prototype,"data",void 0);_.c([_.f({value:3}),_.w("design:type",Number)],yT.prototype,"elementsPerRow",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yT.prototype,"onDataChange",null);_.c([_.z({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],yT);
_.A(yT,"ytd-primetime-promo-renderer",function(){if(LQI!==void 0)return LQI;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return LQI=v},{mode:1});var t0g;var qD=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return v};
_.V(qD,_.P);qD.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
qD.prototype.handleButtonRefreshAction=function(v){if(v=_.L(v,R32))this.set("data.button",v.membershipButton),this.notifyPath("data.button")};
_.vP.Object.defineProperties(qD.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:(e=v.avatars)==null?void 0:e.slice(0,8))||[]}}});
_.c([_.f(),_.w("design:type",Object)],qD.prototype,"data",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],qD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],qD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qD.prototype,"rendererBehavior",void 0);_.c([_.t("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],qD.prototype,"avatars",null);
_.c([_.z({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],qD);
_.A(qD,"ytd-recognition-shelf-renderer",function(){if(t0g!==void 0)return t0g;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return t0g=v},{mode:1});var fLu;var RfE;var rx=function(){var v=_.P.apply(this,arguments)||this;v.modernButtons=_.N("web_modern_buttons");return v};
_.V(rx,_.P);_.W=rx.prototype;
_.W.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]]"}}}}}};
_.W.dataChanged=function(){this.collapsed=!0};
_.W.computeVisibleItems=function(v,e){return v!==void 0&&v.items?e?v.items.slice(0,this.data.collapsedItemCount):v.items:[]};
_.W.computeHideShowMore=function(v,e,d){return v>=e||!d};
_.W.computeHideShowAll=function(v,e,d){return!(v&&e)||d};
_.W.onMoreClick=function(){this.collapsed=!1};
_.vP.Object.defineProperties(rx.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.N("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.aH("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.N("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
rx.prototype.dataChanged=rx.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],rx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],rx.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],rx.prototype,"isSearch",void 0);
_.c([_.f({computed:"computeVisibleItems(data,collapsed)"}),_.w("design:type",Array)],rx.prototype,"visibleItems",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],rx.prototype,"collapsed",void 0);_.c([_.f({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.w("design:type",Boolean)],rx.prototype,"hideShowMore",void 0);
_.c([_.f({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.w("design:type",Boolean)],rx.prototype,"hideShowAll",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],rx.prototype,"modernButtons",void 0);_.c([_.t("isSearch"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rx.prototype,"typographyBump",null);
_.c([_.t("isSearch"),_.w("design:type",Object),_.w("design:paramtypes",[])],rx.prototype,"lockupExperiments",null);_.c([_.t("isSearch"),_.w("design:type",String),_.w("design:paramtypes",[])],rx.prototype,"thumbnailWidth",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rx.prototype,"dataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],rx);
_.A(rx,"ytd-vertical-list-renderer",function(){if(RfE!==void 0)return RfE;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return RfE=v},{mode:1});var PBg=_.Z9(["#"]);_.RZ("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var hH=function(){var v=_.P.apply(this,arguments)||this;v.isConstrainedList=!1;v.modernTypography=_.N("web_modern_typography");return v};
_.V(hH,_.P);_.W=hH.prototype;
_.W.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"}}}};
_.W.computeThumbnailStyle=function(v){return v||""};
_.W.computePlaceAnnotationUnderTitle=function(){var v;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((v=this.data)==null?void 0:v.thumbnailStyle)||"")};
_.W.computeHrefWithDefault=function(v){return this.ytComponentBehavior.computeHref_(v)||_.Uf3(PBg)};
_.W.computeIsPromoShelf=function(v){var e;return(v=v==null?void 0:(e=v[0])==null?void 0:e.metadataBadgeRenderer)?v.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.W.computePlaceBadgeBesideTitle=function(v){var e;return(v==null?0:(e=v[0])==null?0:e.metadataBadgeRenderer)?!this.computeIsPromoShelf(v):!1};
_.W.computeMenuIcon=function(v){return this.computeIsPromoShelf(v)?"yt-icons:more_vert":"yt-icons:more"};
_.W.onDataChange=function(){var v,e;((v=this.data)==null?0:(e=v.content)==null?0:e.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.W.onLockupRequested=function(v){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&v.detail&&v.detail.videoIds){for(var e=this.data.content.gridRenderer.items,d=new Set,E=_.a(v.detail.videoIds),T=E.next();!T.done;T=E.next())d.add(T.value);v.detail.returnValue=e.filter(function(S){return S.gridVideoRenderer&&S.gridVideoRenderer.videoId&&d.has(S.gridVideoRenderer.videoId)}).map(function(S){return S.gridVideoRenderer})}};
_.W.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
hH.prototype.onLockupRequested=hH.prototype.onLockupRequested;hH.prototype.onDataChange=hH.prototype.onDataChange;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],hH.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],hH.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.J9),_.w("design:type",Object)],hH.prototype,"ironResizableBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],hH.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],hH.prototype,"isSearch",void 0);_.c([_.f(),_.w("design:type",Object)],hH.prototype,"isConstrainedList",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("kevlar_fluid_dismiss")}}),
_.w("design:type",Boolean)],hH.prototype,"enableFluidDismiss",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.w("design:type",String)],hH.prototype,"thumbnailStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hH.prototype,"modernTypography",void 0);_.c([_.f({computed:"computeMenuIcon(data.badges)"}),_.w("design:type",String)],hH.prototype,"menuIcon",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hH.prototype,"onDataChange",null);_.c([_.Kq("yt-lockup-requested"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hH.prototype,"onLockupRequested",null);_.c([_.z({is:"ytd-shelf-renderer",disableElementRegistration:!0})],hH);
_.A(hH,"ytd-shelf-renderer",function(){if(fLu!==void 0)return fLu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return fLu=v},{mode:1});var xtu;var Ka=function(){return _.P.apply(this,arguments)||this};
_.V(Ka,_.P);Ka.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.vP.Object.defineProperties(Ka.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ka.prototype,"data",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Ka.prototype,"isPlaylist",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Ka.prototype,"isClipList",void 0);
_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Ka.prototype,"isPlaylistPageWithFilters",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ka.prototype,"hasTitle",null);_.c([_.f(),_.t("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ka.prototype,"isRightAligned",null);
_.c([_.z({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Ka);
_.A(Ka,"ytd-sort-filter-header-renderer",function(){if(xtu!==void 0)return xtu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return xtu=v},{mode:1});var B2B;var $3=function(){var v=_.P.apply(this,arguments)||this;v.enableRightArrowHidden=_.N("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return v};
_.V($3,_.P);$3.prototype.attached=function(){var v=this;this.enableRightArrowHidden&&(this.JSC$16360_throttledOnResize=new _.wB(function(){var e;(e=v.ytdHorizontalListBehavior)==null||e.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var e;
(e=v.JSC$16360_throttledOnResize)==null||e.fire()}),this.resizeObserver.observe(this.hostElement))};
$3.prototype.detached=function(){if(this.enableRightArrowHidden){var v;(v=this.resizeObserver)==null||v.disconnect();var e;(e=this.JSC$16360_throttledOnResize)==null||e.dispose()}};
$3.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]]"}}}}}};
$3.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.vP.Object.defineProperties($3.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.N("enable_creator_details_shelf_m2")){var v=[],e;((e=this.data)==null?0:e.creatorVideosButton)&&v.push(this.data.creatorVideosButton);var d;((d=this.data)==null?0:d.creatorAboutButton)&&v.push(this.data.creatorAboutButton);e=_.a(this.data.creatorCustomUrlButtons||[]);for(d=e.next();!d.done;d=e.next())v.push(d.value);return v}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.N("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.OC.YtdHorizontalListBehavior),_.w("design:type",Object)],$3.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$3.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],$3.prototype,"engagementPanel",void 0);
_.c([_.f(),_.w("design:type",Object)],$3.prototype,"enableRightArrowHidden",void 0);_.c([_.t("enableRightArrowHidden","atEnd"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$3.prototype,"hideRightArrow",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],$3.prototype,"creatorCustomUrlButtons",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data","creatorCustomUrlButtons"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$3.prototype,"showCreatorCustomUrlButtons",null);_.c([_.t("showCreatorCustomUrlButtons"),_.w("design:type",Number),_.w("design:paramtypes",[])],$3.prototype,"channelAvatarSize",null);_.c([_.z({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],$3);
_.A($3,"ytd-video-description-infocards-section-renderer",function(){if(B2B!==void 0)return B2B;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return B2B=v},{mode:_.bk("kevlar_poly_si_batch_j067")?1:2});var CBg;var j8=function(){return _.P.apply(this,arguments)||this};
_.V(j8,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],j8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],j8.prototype,"data",void 0);_.c([_.f({computed:"computeIcon_(data.infoIcon)"}),_.w("design:type",Object)],j8.prototype,"infoIcon",void 0);_.c([_.z({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],j8);
_.A(j8,"ytd-eom-settings-disclaimer-renderer",function(){if(CBg!==void 0)return CBg;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return CBg=v},{mode:1});var XGA;var sZ=function(){return _.P.apply(this,arguments)||this};
_.V(sZ,_.P);_.vP.Object.defineProperties(sZ.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.suppressPaddingDisclaimer)}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],sZ.prototype,"componentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sZ.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sZ.prototype,"suppressPaddingDisclaimer",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],sZ);
_.A(sZ,"ytd-product-list-header-renderer",function(){if(XGA!==void 0)return XGA;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return XGA=v},{mode:1});var zfe;var ND=function(){return _.P.apply(this,arguments)||this};
_.V(ND,_.P);ND.prototype.computeThumbnailStyle=function(v){if(v&&(v=_.cv(v)))return"background-color:"+v+";"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ND.prototype,"rendererBehaviors",void 0);_.c([_.f(),_.w("design:type",Object)],ND.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],ND);
_.A(ND,"ytd-hashtag-tile-renderer",function(){if(zfe!==void 0)return zfe;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return zfe=v},{mode:1});var lLJ;var k3=function(){return _.P.apply(this,arguments)||this};
_.V(k3,_.P);k3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],k3.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],k3);
_.A(k3,"ytd-sponsorships-alert-renderer",function(){if(lLJ!==void 0)return lLJ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return lLJ=v},{mode:1});var Hze;var La=function(){return _.P.apply(this,arguments)||this};
_.V(La,_.P);La.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.vP.Object.defineProperties(La.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.c([_.M(_.Au),_.w("design:type",Object)],La.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],La.prototype,"ytdLockupBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.c([_.f({selector:_.CM}),_.w("design:type",Object)],La.prototype,"isGridViewEnabled",void 0);
_.c([_.t("isGridViewEnabled"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],La.prototype,"watchFeedBigThumbs",null);_.c([_.t("isGridViewEnabled"),_.f({reflectToAttribute:!0}),_.w("design:type",String),_.w("design:paramtypes",[])],La.prototype,"thumbnailWidth",null);_.c([_.f(),_.w("design:type",Object)],La.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],La);
_.A(La,"ytd-compact-movie-renderer",function(){if(Hze!==void 0)return Hze;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Hze=v},{mode:1});var ALE;var Zzi;var cLi=_.Bb("HTML_DIR")==="rtl",VT=function(){var v=_.P.apply(this,arguments)||this;v.engagementPanel=!1;v.maxLines=2;v.expandButtonOffset=0;v.showExpandButton=!1;v.isTruncated=!1;v.isExpanded=!1;v.currentSnippetType=2;v.alwaysShowExpandButton=!1;v.JSC$16377_lastWidth=NaN;v.observer=null;v.left=0;v.right=0;v.mid=0;v.longestSnippetLength=0;v.isFinalSnippet=!1;v.isFirstMutation=!1;v.isResetMutation=!1;v.OVERFLOW_THRESHOLD=5;return v};
_.V(VT,_.P);_.W=VT.prototype;_.W.onClick=function(v){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.UG(_.vg(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;if((e=window.getSelection())==null||!e.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.W.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.W.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.W.updateTextOnSnippetTypeChange=function(){_.N("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.W.setUpBinarySearch=function(v){v=v*this.maxLines/8;this.left=0;var e,d;this.right=Math.min(v*2,(d=(e=this.simpleText)==null?void 0:e.length)!=null?d:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.W.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.W.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.xf(new _.kL("AttributedSnippet is empty when the description is not empty",this.text))};
_.W.mutationCallback=function(){if(this.observer!=null){var v=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var e=Math.floor(v*this.maxLines/8);this.setSnippetText(this.text,e);e!==0||this.attributedTextIsEmpty()||_.xf(new _.kL("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;v=v*this.maxLines/8;this.left=0;var d;this.right=Math.min(v*2,(d=(e=this.simpleText)==null?void 0:e.length)!=null?d: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)}}};
_.W.mutationObserve=function(v){var e=this;this.observer||(this.observer=new MutationObserver(function(){e.mutationCallback()}));
this.observer.observe(v,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.W.attached=function(){var v=this;_.Uh(this,function(){v.resize()})};
_.W.isExpandedChanged=function(){_.Iq(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.W.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)};
_.W.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var v="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((cLi?"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",v);this.snippetContainer.style.setProperty("mask-image",
v)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(cLi?"right":"left",this.expandButtonOffset+"px")};
_.W.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.W.setSnippetText=function(v,e){v||(v={});if(_.DI(v)){var d=uk(v,e);d.attachmentRuns||d.commandRuns||d.decorationRuns||d.styleRuns||d.alignment||d.lineBreakMode?this.attributedSnippetTextEl?(_.N("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=uk(v,e),this.attributedSnippetTextEl.headerRuns=eGL(e,this.headerRuns)):this.attributedSnippetText={data:uk(v,e),headerRuns:eGL(e,this.headerRuns)},this.currentSnippetType=0):_.xf(new _.kL("Tried to set snippet text when HTML element was null",
v)):(this.plainSnippetText.textContent=QK(v.content||"",e),this.currentSnippetType=2)}else{a:{d=od3(v,e);if(d.runs){d=_.a(d.runs);for(var E=d.next();!E.done;E=d.next())if(E=E.value,E.bold||E.deemphasize||E.italics||E.strikethrough||E.textColor||E.navigationEndpoint||_.L(E,C1)){d=!0;break a}}d=!1}d?this.formattedSnippetText?(this.formattedSnippetText.text=od3(v,e),this.currentSnippetType=1):_.xf(new _.kL("Tried to set snippet text when HTML element was null",v)):(this.plainSnippetText.textContent=
QK(_.vv(v),e),this.currentSnippetType=2)}};
_.W.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.W.attributedTextIsEmpty=function(){var v=this.text;if(!_.DI(v))return!0;var e;return((e=v.content)==null?void 0:e.length)===0?!0:!1};
_.W.resize=function(v){if(this.snippetText){if(v===void 0?0:v)this.JSC$16377_lastWidth=NaN;var e=this.hostElement.offsetWidth;if(e!==this.JSC$16377_lastWidth&&!this.isExpanded)if(this.JSC$16377_lastWidth=e,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;v=0;var d,E;e=Math.min(e*this.maxLines/8*2,(E=(d=this.simpleText)==null?void 0:d.length)!=null?E:0)-1;for(d=0;v<=e;)E=Math.floor(v+(e-v)/2),this.setSnippetText(this.text,E),this.isOverflowing()?e=E-1:(v=E+1,d=E);this.setSnippetText(this.text,d);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.W.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.W.onExpandClick=function(){var v=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.N("inline_expander_reset_focus_killswitch")||_.Uh(this,function(){var e;((e=_.dk().resolve(_.eG(_.i$)))==null?0:e.isKeyBoardInUse())&&_.gt(v.hostElement)});
_.Iq(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.W.onCollapseClick=function(){this.collapse();_.Iq(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.W.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.W.computeExpandButtonOffset=function(){var v=this.expandSizer;return v?cLi?v.offsetParent?v.offsetParent.offsetWidth-v.offsetWidth-v.offsetLeft:0:v.offsetLeft:0};
_.vP.Object.defineProperties(VT.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.DI(this.text)?this.text.content||"":_.vv(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 _.DI(this.text)?!0:this.text&&_.N("web_replace_formatted_with_attributed_string")&&ooL(this.text)?(this.text=_.Bz(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}}});
VT.prototype.onTextChanged=VT.prototype.onTextChanged;VT.prototype.updateMaskAndExpandButtonOffset=VT.prototype.updateMaskAndExpandButtonOffset;VT.prototype.updateSnippetContainerMaxHeight=VT.prototype.updateSnippetContainerMaxHeight;VT.prototype.isExpandedChanged=VT.prototype.isExpandedChanged;VT.prototype.updateTextOnSnippetTypeChange=VT.prototype.updateTextOnSnippetTypeChange;VT.prototype.updateIsFormattedExpanded=VT.prototype.updateIsFormattedExpanded;VT.prototype.updateIsAttributedExpanded=VT.prototype.updateIsAttributedExpanded;
VT.prototype.onClick=VT.prototype.onClick;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],VT.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],VT.prototype,"text",void 0);_.c([_.f(),_.w("design:type",Array)],VT.prototype,"headerRuns",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],VT.prototype,"engagementPanel",void 0);_.c([_.f(),_.w("design:type",Object)],VT.prototype,"maxLines",void 0);
_.c([_.f(),_.w("design:type",String)],VT.prototype,"expandLabel",void 0);_.c([_.f(),_.w("design:type",String)],VT.prototype,"collapseLabel",void 0);_.c([_.f(),_.w("design:type",Object)],VT.prototype,"expandCommand",void 0);_.c([_.f(),_.w("design:type",Object)],VT.prototype,"expandButtonOffset",void 0);_.c([_.t("text"),_.w("design:type",String),_.w("design:paramtypes",[])],VT.prototype,"simpleText",null);
_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],VT.prototype,"onClick",null);_.c([_.t("text","isExpanded"),_.w("design:type",Object),_.w("design:paramtypes",[])],VT.prototype,"expandedText",null);_.c([_.t("headerRuns","isExpanded"),_.w("design:type",Object),_.w("design:paramtypes",[])],VT.prototype,"expandedHeaderRuns",null);
_.c([_.t("text"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],VT.prototype,"hasAttributedStringText",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],VT.prototype,"showExpandButton",void 0);_.c([_.t("collapseLabel","isExpanded"),_.w("design:type",Object),_.w("design:paramtypes",[])],VT.prototype,"showCollapseButton",null);_.c([_.f(),_.w("design:type",Object)],VT.prototype,"isTruncated",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],VT.prototype,"isExpanded",void 0);_.c([_.f(),_.w("design:type",Boolean)],VT.prototype,"isAttributedExpanded",void 0);_.c([_.$v("isExpanded","hasAttributedStringText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VT.prototype,"updateIsAttributedExpanded",null);_.c([_.f(),_.w("design:type",Boolean)],VT.prototype,"isFormattedExpanded",void 0);
_.c([_.$v("isExpanded","hasAttributedStringText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VT.prototype,"updateIsFormattedExpanded",null);_.c([_.f(),_.w("design:type",Number)],VT.prototype,"currentSnippetType",void 0);_.c([_.t("currentSnippetType"),_.w("design:type",Object),_.w("design:paramtypes",[])],VT.prototype,"useAttributedSnippet",null);
_.c([_.t("currentSnippetType"),_.w("design:type",Object),_.w("design:paramtypes",[])],VT.prototype,"useFormattedSnippet",null);_.c([_.t("currentSnippetType"),_.w("design:type",Object),_.w("design:paramtypes",[])],VT.prototype,"usePlainSnippet",null);_.c([_.f(),_.w("design:type",Object)],VT.prototype,"alwaysShowExpandButton",void 0);_.c([_.$v("currentSnippetType"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VT.prototype,"updateTextOnSnippetTypeChange",null);
_.c([_.f(),_.w("design:type",Object)],VT.prototype,"attributedSnippetText",void 0);_.c([_.sg("#snippet"),_.w("design:type",HTMLElement)],VT.prototype,"snippetContainer",void 0);_.c([_.sg("#snippet-text"),_.w("design:type",HTMLElement)],VT.prototype,"snippetText",void 0);_.c([_.sg("#plain-snippet-text"),_.w("design:type",HTMLElement)],VT.prototype,"plainSnippetText",void 0);_.c([_.sg("#formatted-snippet-text"),_.w("design:type",Object)],VT.prototype,"formattedSnippetText",void 0);
_.c([_.sg("#attributed-snippet-text"),_.w("design:type",Object)],VT.prototype,"attributedSnippetTextEl",void 0);_.c([_.sg("#expand"),_.w("design:type",HTMLElement)],VT.prototype,"expandButton",void 0);_.c([_.sg("#expand-sizer"),_.w("design:type",HTMLElement)],VT.prototype,"expandSizer",void 0);_.c([_.V1("isExpanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VT.prototype,"isExpandedChanged",null);
_.c([_.$v("isExpanded","maxLines"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VT.prototype,"updateSnippetContainerMaxHeight",null);_.c([_.$v("isTruncated","showExpandButton","expandButtonOffset"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VT.prototype,"updateMaskAndExpandButtonOffset",null);
_.c([_.V1("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VT.prototype,"onTextChanged",null);_.c([_.z({is:"ytd-text-inline-expander",disableElementRegistration:!0})],VT);
_.A(VT,"ytd-text-inline-expander",function(){if(Zzi===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);Zzi=v}v=Zzi;return v},{mode:2});var oJ=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return v};
_.V(oJ,_.P);oJ.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
oJ.prototype.handleUpdateDescriptionAction=function(v){if(v=_.L(v,_.iRc))if(v.attributedDescription)this.set("data.attributedDescriptionBodyText",v.attributedDescription);else if(v.description){var e;((e=this.data)==null?0:e.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Bz(v.description)):this.set("data.descriptionBodyText",v.description)}};
_.vP.Object.defineProperties(oJ.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var v,e;return!((v=this.data)==null||!v.attributedDescriptionBodyText)||!((e=this.data)==null||!e.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.collapsedLineCount){var e;return(e=this.data)==null?void 0:e.collapsedLineCount}v=_.Wi("web_watch_description_collapsed_default_lines",12);if(_.N("ww_desc_line_page_size_ks"))return v;e=Math.round(_.Jk().height*_.Wi("web_watch_description_screen_height_percentage",.5)/20);return Math.max(e,v)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return(d=(v=this.data)==null?void 0:v.descriptionBodyText)!=null?d:(e=this.data)==null?void 0:e.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.sourceAttributions}}});
oJ.prototype.panelContentVisibleChanged=oJ.prototype.panelContentVisibleChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],oJ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],oJ.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],oJ.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Boolean)],oJ.prototype,"panelContentVisible",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],oJ.prototype,"engagementPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],oJ.prototype,"shortsPanel",void 0);_.c([_.sg("#inline-expander"),_.w("design:type",Object)],oJ.prototype,"inlineExpander",void 0);
_.c([_.$v("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oJ.prototype,"panelContentVisibleChanged",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],oJ.prototype,"hasDescriptionText",null);_.c([_.t("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],oJ.prototype,"collapsedLines",null);
_.c([_.t("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.w("design:type",Object),_.w("design:paramtypes",[])],oJ.prototype,"descriptionText",null);_.c([_.t("data","data.headerRuns"),_.w("design:type",Object),_.w("design:paramtypes",[])],oJ.prototype,"headerRuns",null);_.c([_.t("data","data.sourceAttributions"),_.w("design:type",Object),_.w("design:paramtypes",[])],oJ.prototype,"sourceAttributions",null);
_.c([_.z({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],oJ);
_.A(oJ,"ytd-expandable-video-description-body-renderer",function(){if(ALE!==void 0)return ALE;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ALE=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var wG0;var FQ2=_.l(function(v){var e=v.data;return _.m("factoid-renderer",{class:"ytwFactoidRendererHost"},_.m("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return e().accessibilityText}},_.m("span",{class:"ytwFactoidRendererValue"},_.m(_.Dh,{text:function(){return e().value}})),_.m("span",{class:"ytwFactoidRendererLabel"},_.m(_.Dh,{text:function(){return e().label}}))))},"dc");_.aZ(FQ2,"factoid-renderer",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;return _.m("upload-time-factoid-renderer",null,_.m(_.kz,{data:function(){return e().factoid}},{factoidRenderer:FQ2}))},"ec"),"upload-time-factoid-renderer",{props:{data:_.SM}});_.aZ(_.l(function(v){var e=v.data;return _.m("view-count-factoid-renderer",null,_.m(_.kz,{data:function(){return e().factoid}},{factoidRenderer:FQ2}))},"fc"),"view-count-factoid-renderer",{props:{data:_.SM}});var JH=function(){var v=_.P.apply(this,arguments)||this;v.shortsPanel=!1;v.engagementPanel=!1;v.watchWhileSdp=_.N("shorts_desktop_watch_while_sdp");return v};
_.V(JH,_.P);JH.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"}}}}};
_.vP.Object.defineProperties(JH.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var v;return(v=this.data)==null?void 0:v.channel}}});
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],JH.prototype,"componentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JH.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],JH.prototype,"shortsPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],JH.prototype,"engagementPanel",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],JH.prototype,"watchWhileSdp",void 0);_.c([_.t("shortsPanel","engagementPanel","data.channel"),_.w("design:type",Object),_.w("design:paramtypes",[])],JH.prototype,"showChannelInfo",null);_.c([_.z({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],JH);
_.A(JH,"ytd-video-description-header-renderer",function(){if(wG0!==void 0)return wG0;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return wG0=v},{mode:1});var Q8M;var G0=function(){return _.P.apply(this,arguments)||this};
_.V(G0,_.P);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],G0.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],G0.prototype,"noPadding",void 0);_.c([_.f(),_.w("design:type",Object)],G0.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],G0);
_.A(G0,"ytd-list-item-view-model",function(){if(Q8M!==void 0)return Q8M;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Q8M=v},{mode:1});var gUn;var uIJ;var nU6;var DtE;var MD=function(){var v=_.P.apply(this,arguments)||this;v.adaptiveFullWidth=!1;v.modernButtons=_.N("web_modern_buttons");v.buttonOverrides={style:"call-to-action",type:"filled"};v.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return v};
_.V(MD,_.P);MD.prototype.handleSetTimestamp_=function(v){this.data&&this.data.shortUrl&&(_.IB(this.hostElement).querySelector("#share-url").value=v.isSet?_.Xr(this.data.shortUrl,"t",v.timestamp):this.data.shortUrl)};
MD.prototype.handleSignalActionCopyShareUrl_=function(v,e){(_.N("killswitch_copy_link_target_check")||_.IB(this.hostElement).querySelector("#copy-button")===e)&&this.copyUrlToClipboard()};
MD.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.IB(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
MD.prototype.computeStyle_=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],MD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],MD.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.w("design:type",String)],MD.prototype,"rendererStyle",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],MD.prototype,"adaptiveFullWidth",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],MD.prototype,"modernButtons",void 0);_.c([_.f(),_.w("design:type",Object)],MD.prototype,"buttonOverrides",void 0);_.c([_.lh({is:"yt-copy-link-renderer",disableElementRegistration:!0})],MD);
_.A(MD,"yt-copy-link-renderer",function(){if(DtE===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;nU6===void 0&&(nU6=document.createElement("template"));var E=nU6;d.call(e,E.content.cloneNode(!0),v.content.firstChild);DtE=v}v=DtE;return v},{mode:2});_.RZ("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var tH=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return v};
_.V(tH,_.P);_.W=tH.prototype;_.W.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.W.attached=function(){this.keyboardFocused=!1};
_.W.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var v=_.dk().resolve(_.eG(_.i$));v&&(this.keyboardFocused=v.isKeyBoardInUse())}};
_.W.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.W.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}};
_.W.onChange_=function(){if(this.data){var v=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;v&&this.ytComponentBehavior.resolveCommand(v);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.W.handleUpdateToggleAction_=function(v){(v=_.L(v,TGJ))&&this.data&&v.targetId==this.data.targetId&&this.set("data.toggled",v.toggled)};
_.W.toBoolean_=function(v){return!!v};
_.W.reset=function(){};
_.W.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("data-changed",this.data))};
_.W.updateDataToggledFromBinding=function(v){this.set("data.toggled",v.detail.value)};
tH.prototype.dataChangedForBinding=tH.prototype.dataChangedForBinding;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],tH.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],tH.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],tH.prototype,"data",void 0);_.c([_.f({computed:"computeDescription_(data.*)"}),_.w("design:type",Object)],tH.prototype,"description_",void 0);_.c([_.f({value:function(){return!!_.dk().resolve(_.eG(_.i$))&&_.N("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.w("design:type",Boolean)],tH.prototype,"useKeyboardFocused",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],tH.prototype,"keyboardFocused",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tH.prototype,"dataChangedForBinding",null);_.c([_.lh({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],tH);
_.A(tH,"yt-toggle-form-field-renderer",function(){if(uIJ===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;gUn===void 0&&(gUn=document.createElement("template"));var E=gUn;d.call(e,E.content.cloneNode(!0),v.content.firstChild);uIJ=v}v=uIJ;return v},{mode:2});var Utu;var pG0;var fa=function(){var v=_.P.apply(this,arguments)||this;v.isDarkTheme=!1;v.isSearch=!1;v.darkerDarkTheme=_.N("web_darker_dark_theme");v.noTopMargin=_.N("kevlar_watch_no_top_margin");v.maskFade=_.N("web_watch_chips_mask_fade");v.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 v};
_.V(fa,_.P);_.W=fa.prototype;_.W.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}}}}}};
_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.W.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.W.dataChanged=function(){var v=this.getSelectedIndex();if(v>0)this.selected=v;else{this.selected=0;var e,d;(e=this.ytScrollableChipCloudBehavior)==null||(d=e.reset)==null||d.call(e)}};
_.W.getSelectedIndex=function(){var v;if((v=this.data)==null||!v.chips)return-1;v=-1;for(var e,d=0;d<((e=this.data)==null?void 0:e.chips.length);d++){var E=void 0,T=void 0;if((E=this.data)==null?0:(T=E.chips[d].chipCloudChipRenderer)==null?0:T.isSelected){v=d;break}}return v};
_.W.onResize=function(){var v=this.ytScrollableChipCloudBehavior;_.Uh(v,v.setContainerWidthDiff);yS(this.ytScrollableChipCloudBehavior)};
_.W.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.W.handleRelatedChipCommand=function(v,e){v=this.JSC$16404_chipsSelector.indexOf(e);v!==-1&&this.JSC$16404_chipsSelector.selectIndex(v)};
_.W.handleChipCloudChipSelectAction=function(v){v=this.JSC$16404_chipsSelector.indexOf(v);v>-1&&this.JSC$16404_chipsSelector.selectIndex(v)};
_.W.handleChipCloudChipDeselectAction=function(){var v=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16404_chipsSelector&&((v==null?0:v.continuationCommand)?_.mN(this.hostElement,[v]):(v==null?0:v.searchEndpoint)?this.ytComponentBehavior.resolveCommand(v):v&&_.ya(this.hostElement,[v],this.hostElement),this.JSC$16404_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.W.updateSelectedFromBinding=function(v){this.selected=v.detail.value};
fa.prototype.onResize=fa.prototype.onResize;fa.prototype.dataChanged=fa.prototype.dataChanged;fa.prototype.isSearchChanged=fa.prototype.isSearchChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],fa.prototype,"actionHandlerBehavior",void 0);
_.c([_.M(_.J9),_.w("design:type",Object)],fa.prototype,"ironResizableBehavior",void 0);_.c([_.M(),_.w("design:type",mr)],fa.prototype,"ytScrollableChipCloudBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],fa.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fa.prototype,"data",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],fa.prototype,"selected",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fa.prototype,"isDarkTheme",void 0);_.c([_.f({value:160}),_.w("design:type",Number)],fa.prototype,"scrollDistance",void 0);_.c([_.f(),_.w("design:type",Object)],fa.prototype,"isSearch",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fa.prototype,"darkerDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fa.prototype,"noTopMargin",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fa.prototype,"maskFade",void 0);_.c([_.sg("#chips"),_.w("design:type",Object)],fa.prototype,"JSC$16404_chipsSelector",void 0);_.c([_.$v("isSearch"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fa.prototype,"isSearchChanged",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fa.prototype,"dataChanged",null);
_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fa.prototype,"onResize",null);_.c([_.lh({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],fa);
_.A(fa,"yt-chip-cloud-renderer",function(){if(pG0===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Utu===void 0&&(Utu=document.createElement("template"));var E=Utu;d.call(e,E.content.cloneNode(!0),v.content.firstChild);pG0=v}v=pG0;return v},{mode:2});var vYB,eSB=function(){return vYB!==void 0?vYB:vYB=document.createElement("template")};
document.head.appendChild(eSB().content);var dmJ;var EY0=document.head,TdB=EY0.appendChild,Sc7;if(dmJ===void 0){var WpM=document.createElement("template");_.G(WpM,"");WpM.content.insertBefore(eSB().content.cloneNode(!0),WpM.content.firstChild);dmJ=WpM}Sc7=dmJ;TdB.call(EY0,Sc7.content);var aQg=_.l(function(v){var e=v.data;return _.m("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.m("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.m("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.m(_.y,{cond:function(){return _.Zx(e().image)},
then:function(d){return _.m("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.m(_.va,{data:d,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.m("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.m(_.Dh,{text:function(){return e().title}})),_.m("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.m(_.Dh,{text:function(){return e().subtitle}})))),_.m(_.y,{cond:function(){var d;
return(d=e())==null?void 0:d.hasBottomDivider},
then:function(){return _.m("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"gc");var iVI=_.l(function(v){var e=v.data;return _.m("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.m("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.m(_.kz,{data:function(){var d;return(d=e().offerPlanDetailsItem)!=null?d:[]}},{offerPlanDetailsItemViewModel:function(d){return _.m("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.m(aQg,{data:d.data}))}})),_.m("div",null,_.m(_.y,{cond:function(){return e().hasBottomDivider},
then:function(){return _.m("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.m("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.m("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.m("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.m("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"hc");var OVM=_.l(function(v){var e=v.data;v=_.a(_.OE(!1,void 0,"SpEGQd"));var d=v.next().value,E=v.next().value,T=_.rq(function(){E(!d());return!1}),S=function(){var O;
return(O=e().offerPlanDetailsContainer)!=null?O:[]};
return _.m("lp-complex-offer-card-details-view-model",null,_.m("div",null,_.m(_.y,{cond:function(){return d()},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.m("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":T,"aria-expanded":d},_.m(_.Dh,{text:function(){return e().expandedTitle}})),_.m("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.m(_.kz,{data:S},{offerPlanDetailsContainerViewModel:function(O){return _.m("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.m(iVI,{data:O.data}))}})),_.m("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.m(_.Dh,{text:function(){return e().legalText}})))},
else:function(){return _.m("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":T,"aria-expanded":d},_.m(_.Dh,{text:function(){return e().collapsedTitle}}),_.m("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.m(_.sG,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"ic");var IQ0=_.l(function(v){var e=v.data;return _.m("lp-complex-offer-card-option-view-model",null,_.m("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.m(_.y,{cond:function(){return e().topDividerText},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.m("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.m("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.m("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.m(_.Dh,{text:function(){return e().topDividerText}}))))}}),_.m(_.y,{cond:function(){return e().description},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.m(_.Dh,{text:function(){return e().description}}))}}),_.m(_.y,{cond:function(){return e().planPricingPrimary},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.m(_.Dh,{text:function(){return e().planPricingPrimary}}))}}),_.m(_.y,{cond:function(){return e().planPricingSecondary},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.m(_.Dh,{text:function(){return e().planPricingSecondary}}))}}),_.m(_.y,{cond:function(){return e().primaryButton},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.m(_.kz,{data:function(){return e().primaryButton}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"jc");var bVi=_.l(function(v){var e=v.data;var d=function(){var S;return((S=e())==null?void 0:S.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
v={};var E={},T={};return _.m("ytm-lp-complex-offer-card-view-model",null,_.m("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.m("div",{class:_.qe((v.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=d,v),"ytmLpComplexOfferCardViewModelCardContainer")},_.m(_.y,{cond:function(){var S;return(S=e())==null?void 0:S.bannerText},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.m("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.m(_.Dh,{text:function(){return e().bannerText}})))}}),_.m(_.y,{cond:function(){return _.Zx(e().logo)},
then:function(S){var O={};return _.m("div",{class:_.qe((O.ytmLpComplexOfferCardViewModelLogoAlignLeft=d,O),"ytmLpComplexOfferCardViewModelLogo")},_.m(_.va,{data:S,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.m("div",{class:_.qe((E.ytmLpComplexOfferCardViewModelTitleAlignLeft=d,E),"ytmLpComplexOfferCardViewModelTitle")},_.m(_.Dh,{text:function(){return e().title}})),_.m(_.y,{cond:function(){var S;
return(S=e())==null?void 0:S.subtitle},
then:function(){var S={};return _.m("div",{class:_.qe((S.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=d,S),"ytmLpComplexOfferCardViewModelSubtitle")},_.m(_.Dh,{text:function(){return e().subtitle}}))}}),_.m(_.y,{cond:function(){return e().planPricingPrimary},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.m(_.Dh,{text:function(){return e().planPricingPrimary}}))}}),_.m(_.y,{cond:function(){return e().planPricingSecondary},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.m(_.Dh,{text:function(){return e().planPricingSecondary}}))}}),_.m(_.y,{cond:function(){return e().purchaseButton},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.m(_.kz,{data:function(){return e().purchaseButton}},{buttonViewModel:function(S){return _.m(_.yi,{data:S.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.m(_.y,{cond:function(){var S;
return(S=e())==null?void 0:S.offerOptions},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.m(_.kz,{data:function(){return e().offerOptions}},{lpComplexOfferCardOptionViewModel:IQ0}))}}),_.m("div",{class:_.qe((T.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=d,T),"ytmLpComplexOfferCardViewModelLegalText")},_.m(_.Dh,{text:function(){return e().legalText}})),_.m(_.y,{cond:function(){var S;
return(S=e())==null?void 0:S.offerCardDetails},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.m(_.kz,{data:function(){return e().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:OVM}))}}))))},"kc");var Yc0=_.l(function(v){var e=v.data;var d=function(){var O;return((O=e())==null?void 0:O.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
v={};var E={},T={},S={};return _.m("ytm-lp-complex-offer-card-section-view-model",null,_.m("div",{class:_.qe("ytmLpComplexOfferCardSectionViewModelHost")},_.m("div",{class:_.qe((v.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=d,v),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.m("div",{class:_.qe((E.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=d,E),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.m("h2",{class:_.qe((T.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
d,T),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.m(_.Dh,{text:function(){return e().title}}))),_.m(_.y,{cond:function(){var O;
return(O=e())==null?void 0:O.subtitle},
then:function(){var O={},b={};return _.m("div",{class:_.qe((O.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=d,O),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.m("div",{class:_.qe((b.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=d,b),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.m(_.Dh,{text:function(){return e().subtitle}})))}}),_.m("div",{class:_.qe((S.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=d,S),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.m(_.kz,{data:function(){var O;
return(O=e().offerPlans)!=null?O:[]}},{lpComplexOfferCardViewModel:function(O){return _.m("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.m(bVi,{data:O.data}))}})))))},"lc");var mmA=_.l(function(v){return _.m("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.m("div",{class:"ytLpCouponBannerViewModelIcon"},_.m(_.sG,{icon:function(){return"price_tag"}})),_.m("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.m("div",{class:"ytLpCouponBannerViewModelContent"},_.m("div",{class:"ytLpCouponBannerViewModelHeading"},_.m(_.Dh,{text:function(){var e;
return(e=v.data())==null?void 0:e.title}})),_.m("div",{class:"ytLpCouponBannerViewModelBody"},_.m(_.Dh,{text:function(){var e;
return(e=v.data())==null?void 0:e.subtitle}})))))},"mc");
mmA.idomCompat=!0;_.RJ=pic.getInstance();var yA0;yA0=_.l(function(v){return _.m("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":v.shouldAriaHideContent},_.m("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:v.questionId},_.m(_.Dh,{text:v.question})))},"nc");
_.qcA=_.l(function(v){var e=v.data;var d=v.themeOverride;v=_.a(_.OE(!1,void 0,"ljTVPd"));var E=v.next().value,T=v.next().value;v=_.rq(function(){T(!E());return!1});
var S=function(){return E()?"EXPAND_LESS":"EXPAND_MORE"},O=("faq-container"+_.Ge(_.RJ)).toString(),b="faq-question-and-answers-section-question"+_.Ge(_.RJ),Y={},q={};
return _.m("faq-entry-view-model-c3",null,_.m("div",{class:_.qe("yt-lp-faq-entry-view-model",(Y["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return d==null?void 0:d().useDarkTheme},Y))},_.m("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":v,role:"button","aria-expanded":E,"aria-labelledby":b.toString(),"tab-index":"0"},_.m(yA0,{question:function(){return e().question},
questionId:b,shouldAriaHideContent:!0}),_.m(_.y,{cond:function(){return E()!==void 0},
then:function(){return _.m("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.m(_.sG,{icon:S,ariaHidden:!0}),_.m("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.m("div",{class:_.qe("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(q["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!E()},q))},_.m("div",{id:O},_.m(_.jI,{each:function(){return e().answers||[]}},function(r){return _.m("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.m(_.Dh,{text:r}))})))))},"oc");
_.qcA.idomCompat=!0;var rA2=_.l(function(v){var e=v.data;var d=v.themeOverride;v={};return _.m("lp-faq-section-view-model-c3",null,_.m("div",{class:_.qe("yt-lp-faq-section-view-model",(v["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},v["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(d==null||!d().useDarkTheme)},v))},_.m("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.m(_.y,{cond:function(){return e().header},
then:function(E){return _.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.m(_.Dh,{text:E}))}}),_.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.m(_.kz,{data:function(){return e().faqs}},{faqEntryViewModel:function(E){return _.m(_.qcA,{data:E.data,
themeOverride:d})}})),_.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.m(_.jI,{each:function(){return e().footers||[]}},function(E){return _.m(_.Dh,{text:E})})),_.m(_.y,{cond:function(){return e().legal},
then:function(E){return _.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.m(_.Dh,{text:E}))}}))))},"pc");
rA2.idomCompat=!0;var hS0=_.l(function(v){var e=v.data;var d=v.themeOverride;_.Gr(function(){var O=e().gtmId;O&&_.tb(O,_.Bb("GL",""))});
var E={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var O,b,Y;return(Y=(O=e().logo)==null?void 0:(b=O.accessibilityData)==null?void 0:b.label)!=null?Y:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},T=_.dk().resolve(_.eG(_.n1)),S=function(){return T&&T()||(d==null?void 0:d().useDarkTheme)};
return _.m("lp-header-section-view-model",null,_.m("div",{class:function(){var O=e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",b=e().marginType==="LP_SECTION_MARGIN_TYPE_TOP",Y=d==null?void 0:d().useDarkTheme,q=["lp-header-section-view-model"];O&&q.push("lp-header-section-view-model--ptc-layout-type");b&&q.push("lp-header-section-view-model__lp-header-section-margin");Y&&q.push("lp-header-section-view-model--premium-force-dark-mode");return q.join(" ")}},_.m(_.y,{cond:function(){return e().logo},
then:function(){return _.m("div",null,_.m(_.y,{cond:S,then:function(){return _.m(_.y,{cond:function(){var O;return(O=e().logo)==null?void 0:O.imageDark},
then:function(O){return _.m(_.va,Object.assign({},{data:O},E))}})},
else:function(){return _.m(_.y,{cond:function(){var O;return(O=e().logo)==null?void 0:O.imageLight},
then:function(O){return _.m(_.va,Object.assign({},{data:O},E))}})}}))}}),_.m(_.y,{cond:function(){return e().title},
then:function(O){return _.m("div",{class:"lp-header-section-view-model__lp-header-title"},_.m(_.Dh,{text:O}))}}),_.m("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.m(_.y,{cond:function(){return e().subtitles},
then:function(O){return _.m(_.jI,{each:O},function(b){return _.m("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.m(_.Dh,{text:b}))})}})),_.m(_.y,{cond:function(){return e().additionalInfo},
then:function(O){return _.m("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.m(_.Dh,{text:O}))}}),_.m("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.m(_.y,{cond:function(){return e().primaryButton},
then:function(O){return _.m("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.m(_.kz,{data:O},{buttonViewModel:_.yi}))}}),_.m(_.y,{cond:function(){return e().secondaryButton},
then:function(O){return _.m("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.m(_.kz,{data:O},{buttonViewModel:_.yi}))}})),_.m(_.y,{cond:function(){return e().otherOffersInfo},
then:function(O){return _.m("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.m(_.Dh,{text:O}))}}),_.m("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.m(_.y,{cond:function(){return e().billingInfo},
then:function(O){return _.m(_.jI,{each:O},function(b){return _.m("div",null,_.m(_.Dh,{text:b}))})}}))))},"qc");
hS0.idomCompat=!0;var Kpe=_.l(function(v){var e=v.data;var d=_.e2(v.themeOverride,{useDarkTheme:!1});v={};v=_.qe("ytmLpHeadlineSectionViewModelHost",(v.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return d().useDarkTheme},v));
return _.m("lp-headline-section-view-model",null,_.m("div",{class:v},_.m("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.m(_.Dh,{text:function(){return e().title}})),_.m(_.y,{cond:function(){return e().subtitle},
then:function(E){return _.m("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.m(_.Dh,{text:E}))}})))},"rc");var $m0=_.l(function(v){var e=v.data;var d=v.themeOverride;var E=_.dk().resolve(_.eG(_.n1)),T=function(){return E&&E()||(d==null?void 0:d().useDarkTheme)},S=function(){var q,r;
var h=T()?(q=e().textBackgroundImage)==null?void 0:q.imageDark:(r=e().textBackgroundImage)==null?void 0:r.imageLight;return kgO((h==null?void 0:h.sources)||[])},O=function(){var q,r;
return T()?(q=e().featureImage)==null?void 0:q.imageDark:(r=e().featureImage)==null?void 0:r.imageLight},b=function(){return e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},Y=function(){var q,r;
return T()?(q=e().logo)==null?void 0:q.imageDark:(r=e().logo)==null?void 0:r.imageLight};
return _.m("ytm-lp-large-feature-section-view-model",null,_.m("div",{class:function(){var q=e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",r=e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",h=(e().index||0)%2===1,K=d==null?void 0:d().useDarkTheme,k=["yt-lp-large-feature-section-view-model"];q?k.push("yt-lp-large-feature-section-view-model--music-feature-type"):r?k.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):h||k.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
K&&k.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return k.join(" ")}},_.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.m(_.y,{cond:O,
then:function(){return _.m(_.va,{data:function(){return O()},
alt:function(){var q,r,h;return(h=(q=e().featureImage)==null?void 0:(r=q.accessibilityData)==null?void 0:r.label)!=null?h:""},
contentMode:b})}})),_.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var q;return((q=S())==null?0:q.url)?"background-image: url("+_.xm(S().url)+");":""}},_.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.m(_.y,{cond:Y,
then:function(){return _.m(_.va,{data:function(){return Y()},
alt:function(){var q,r,h;return(h=(q=e().logo)==null?void 0:(r=q.accessibilityData)==null?void 0:r.label)!=null?h:""},
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"})}}),_.m(_.y,{cond:function(){return e().eyebrowText},
then:function(){return _.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.m(_.Dh,{text:function(){return e().eyebrowText}}))}}),_.m(_.y,{cond:function(){return e().title},
then:function(){return _.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.m(_.Dh,{text:function(){return e().title}}))}}),_.m(_.y,{cond:function(){return e().subtitles},
then:function(){return _.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.m(_.jI,{each:function(){return e().subtitles||[]}},function(q){return _.m(_.Dh,{text:q})}))}})))))},"sc");
$m0.idomCompat=!0;var jrI=_.l(function(v){return _.m("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.m("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.m(_.sG,{icon:function(){var e;return(e=v.data())==null?void 0:e.iconType},
className:function(){var e;switch((e=v.data())==null?void 0:e.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var e;return((e=v.data())==null?void 0:e.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.m("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.m(_.Dh,{text:function(){var e;
return(e=v.data())==null?void 0:e.text},
className:function(){var e;return((e=v.data())==null?void 0:e.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"tc");var srI=_.l(function(v){v=_.dC(v,{config:void 0,themeOverride:void 0});var e=v.data,d=v.config,E=v.themeOverride;v={};v=_.qe("ytmLpOfferCardOptionViewModelHost",(v.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var b;return(b=E())==null?void 0:b.useDarkTheme},v));
var T=_.rq(function(){var b,Y;(b=d())==null||(Y=b.handleRadioButtonClick)==null||Y.call(b,e());return!1}),S=function(){var b;
return(b=d())==null?void 0:b.shouldDisplayRadioButton},O=function(){var b;
return(b=e().featureListItems)!=null?b:[]};
return _.m("ytm-lp-offer-card-option-view-model",null,_.m("div",{class:v,"on:click":_.rq(function(){if(S()){var b,Y;(b=d())==null||(Y=b.handleRadioButtonClick)==null||Y.call(b,e())}return!1})},_.m(_.y,{cond:S,
then:function(){return _.m("div",null,_.m("input",{type:"radio","on:click":T,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var b;return!((b=d())==null||!b.isOptionSelected)}}))}}),_.m("div",null,_.m("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.m(_.Dh,{text:function(){return e().eyebrowText}})),_.m("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.m(_.Dh,{text:function(){return e().title}})),_.m("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.m(_.Dh,
{text:function(){return e().subtitle}})),_.m(_.y,{cond:function(){return O().length>0},
then:function(){return _.m("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.m(_.kz,{data:O},{lpFeatureListItemViewModel:jrI}))}}),_.m("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.m(_.Dh,{text:function(){return e().description}})))))},"uc");
srI.idomCompat=!0;var Ndg=_.l(function(v){var e=v.data;var d=v.themeOverride;v=_.a(_.KM(function(){var S,O=(S=e().offerOptions)==null?void 0:S[0];return _.L(O,jiA)||{}}));
var E=v.next().value,T=v.next().value;v={};return _.m("ytm-lp-offer-card-view-model",null,_.m("div",{class:_.qe("ytmLpOfferCardViewModelHost",(v.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(d==null||!d().useDarkTheme)},v))},_.m("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.m(_.y,{cond:function(){return e().titleIconType},
then:function(){return _.m("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.m(_.sG,{icon:function(){var S;return((S=e().titleIconType)==null?void 0:S.toString())||""}}))}}),_.m("div",{class:"ytmLpOfferCardViewModelTitleText"},_.m(_.Dh,{text:function(){return e().title}})),_.m(_.kz,{data:function(){return e().titleBadge}},{badgeViewModel:function(S){return _.m("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.m(_.W4,{data:S.data}))}})),_.m("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.m(_.kz,{data:function(){return e().offerOptions}},{lpOfferCardOptionViewModel:function(S){var O=S.data;
return _.m(_.eI,null,_.m("div",{class:"ytmLpOfferCardViewModelDivider"}),_.m(srI,{data:O,config:function(){var b;return{shouldDisplayRadioButton:(e().offerOptions||[]).length>1,isOptionSelected:O().id===((b=E())==null?void 0:b.id),handleRadioButtonClick:function(Y){return void T(Y)}}},
themeOverride:d}))}})),_.m("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.m(_.kz,{data:function(){var S;
return(S=E())==null?void 0:S.purchaseButtonOverride}},{buttonViewModel:_.yi}))))},"vc");
Ndg.idomCompat=!0;var ktA=_.l(function(v){var e=v.data;var d=v.themeOverride;v={};v=_.qe("ytmLpOfferCardSectionViewModelHost",(v.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var E;return d==null?void 0:(E=d())==null?void 0:E.useDarkTheme},v));
return _.m("ytm-lp-offer-card-section-view-model",null,_.m("div",{class:v},_.m(_.y,{cond:function(){return e().title!==void 0},
then:function(){return _.m("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.m("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.m(_.Dh,{text:function(){return e().title}})),_.m(_.y,{cond:function(){return e().subtitle},
then:function(){return _.m("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.m(_.Dh,{text:function(){return e().subtitle}}))}}))}}),_.m("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.m(_.kz,{data:function(){return e().offerCards}},{lpOfferCardViewModel:function(E){return _.m("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.m(Ndg,{data:E.data,
themeOverride:d}))}})),_.m(_.y,{cond:function(){return e().footer},
then:function(){return _.m("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.m(_.Dh,{text:function(){return e().footer}}))}})))},"wc");var LpB=_.l(function(v){var e=v.data;return _.m("lp-offer-table-cell-content-view-model",null,_.m("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.m(_.kc,null,_.m(_.sW,{when:function(){return e().title}},function(){return _.m(_.Dh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return e().title}})}),_.m(_.sW,{when:function(){return e().subTitle}},function(){return _.m(_.Dh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return e().subTitle}})}),_.m(_.sW,{when:function(){return e().featureDescription}},function(){return _.m(_.Dh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return e().featureDescription}})}),_.m(_.sW,{when:function(){return e().description}},function(){return _.m(_.Dh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return e().description}})}),_.m(_.sW,{when:function(){return e().iconType}},function(){return _.m("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.m(_.sG,{icon:function(){return e().iconType.toString()}}))}),_.m(_.sW,{when:function(){return e().purchaseButton}},function(){return _.m(_.kz,{data:function(){return e().purchaseButton}},{buttonViewModel:function(d){return _.m("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.m(_.yi,
{data:d.data}))}})}),_.m(_.sW,{when:function(){return e().note}},function(){return _.m(_.Dh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return e().note}})}),_.m(_.sW,{when:function(){return e().featureDetail}},function(){return _.m(_.Dh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return e().featureDetail}})}),_.m(_.sW,{when:function(){return e().badge}},function(){return _.m(_.kz,{data:function(){return e().badge}},{badgeViewModel:_.W4})}))))},"xc");
LpB.idomCompat=!0;var VSJ=_.l(function(v){var e=v.data;return _.m("lp-offer-table-cell-view-model",null,_.m("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(e().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.m(_.kz,{data:function(){return e().contents}},{lpOfferTableCellContentViewModel:LpB})))},
"yc");
VSJ.idomCompat=!0;var oYu=_.l(function(v){var e=v.data;var d=v.lpTableIsFirstRow;var E=v.lpTableIsLastRow;var T=function(){return(d==null?0:d())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},S=function(){return(d==null?0:d())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(E==null?0:E())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.m("ytm-lp-offer-table-row-view-model",null,_.m("div",{class:"ytLpOfferTableRowViewModelHost"},_.m(_.kz,{data:function(){return e().rowHeaderCell}},{lpOfferTableCellViewModel:function(O){return _.m("div",{class:T},_.m(VSJ,{data:O.data}))}}),_.m(_.kz,{data:function(){return e().contentCells}},{lpOfferTableCellViewModel:function(O){return _.m("div",{class:S},_.m(VSJ,{data:O.data}))}})))},"zc");
oYu.idomCompat=!0;var JA6=_.l(function(v){var e=v.data;var d=v.themeOverride;var E=_.dk().resolve(_.eG(_.n1)),T=function(){return _.L(e().logo,zs0)||{}};
v={};return _.m("ytm-lp-offer-table-section-view-model",null,_.m("div",{class:"ytLpOfferTableViewModelHost"},_.m(_.y,{cond:function(){var S,O;return E&&E()||(d==null?0:d().useDarkTheme)?(S=T())==null?void 0:S.imageDark:(O=T())==null?void 0:O.imageLight},
then:function(S){return _.m(_.va,{data:S,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var O,b,Y;return(Y=(O=T())==null?void 0:(b=O.accessibilityData)==null?void 0:b.label)!=null?Y:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.m(_.Dh,{text:function(){return e().title}})),_.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.m(_.Dh,{text:function(){return e().subtitle}})),_.m(_.y,{cond:function(){return e().disclaimers},
then:function(S){return _.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.m(_.jI,{each:S},function(O){return _.m("div",null,_.m(_.Dh,{text:O}))}))}}),_.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.m(_.kz,{data:function(){return e().rows}},{lpOfferTableRowViewModel:function(S,O){return _.m(oYu,{data:S.data,
lpTableIsFirstRow:function(){return O()===0},
lpTableIsLastRow:function(){return O()===e().rows.length-1}})}})),_.m("div",{class:_.qe((v.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return e().hasFooterBackground},v))},_.m(_.y,{cond:function(){return e().footer},
then:function(){return _.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.m(_.Dh,{text:function(){return e().footer}}))}}),_.m(_.y,{cond:function(){return e().footerTitle},
then:function(){return _.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.m(_.Dh,{text:function(){return e().footerTitle}}))}}),_.m(_.y,{cond:function(){return e().footerDescription},
then:function(){return _.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.m(_.Dh,{text:function(){return e().footerDescription}}))}}))))},"Ac");
JA6.idomCompat=!0;var Gti=_.l(function(v){var e=v.data;var d=v.themeOverride;var E=_.dk().resolve(_.eG(_.n1)),T=function(){var b;return d==null?void 0:(b=d())==null?void 0:b.useDarkTheme},S=function(){var b,Y;
return E&&E()||T()?(b=e().image)==null?void 0:b.imageDark:(Y=e().image)==null?void 0:Y.imageLight};
v={};v=_.qe("ytmLpSmallFeatureSectionViewModelHost",(v.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=T,v));var O=function(){var b,Y,q;return(q=(b=e().image)==null?void 0:(Y=b.accessibilityData)==null?void 0:Y.label)!=null?q:""};
return _.m("ytm-lp-small-feature-section-view-model",{class:v},_.m(_.y,{cond:function(){return S()&&!KA7},
then:function(){return _.m("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.m(_.va,{data:function(){return S()},
alt:O,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.m("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.m("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.m(_.y,{cond:function(){return e().title},
then:function(b){return _.m(_.Dh,{text:b})}})),_.m("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.m(_.Dh,{text:function(){return e().description}}))))},"Bc");
Gti.idomCompat=!0;var MSu=_.l(function(v){var e=v.data;var d=v.themeOverride;v={};return _.m("ytm-lp-small-feature-section-group-view-model",null,_.m("div",{class:_.qe("ytmLpSmallFeatureSectionGroupViewModelHost",(v.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(d==null||!d().useDarkTheme)},v))},_.m("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.m(_.kz,{data:function(){return e().smallFeatures}},{lpSmallFeatureSectionViewModel:function(E){return _.m("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.m(Gti,{data:E.data,
themeOverride:d}))}}))))},"Cc");
MSu.idomCompat=!0;_.aZ(_.l(function(v){var e=v.data;var d=function(){return e().forcedTheme==="USER_INTERFACE_THEME_DARK"},E=function(){return e().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},T=function(){var O="",b,Y;
var q=_.dk().resolve(_.eG(_.n1));q=d()||(q==null?0:q())?(b=e().themedImageViewModel)==null?void 0:b.imageDark:(Y=e().themedImageViewModel)==null?void 0:Y.imageLight;(b=kgO((q==null?void 0:q.sources)||[]))&&b.url&&(O=E()?"background-image: linear-gradient(to bottom, transparent, "+(e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.xm(b.url)+");":"background-image: url("+_.xm(b.url)+");");return O},S=function(){return{useDarkTheme:d()}};
v={};return _.m("yt-section-group-view-model",null,_.m("div",{class:_.qe("yt-lp-section-group-view-model",(v["yt-lp-section-group-view-model--premium-force-dark-mode"]=d,v["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},v))},_.m(_.y,{cond:function(){return T().length},
then:function(){var O={};return _.m("div",{class:_.qe("yt-lp-section-group-view-model__bg-image",(O["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=E,O)),style:T})}}),_.m("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.m(_.kz,{data:function(){return e().sections}},{lpFaqSectionViewModel:function(O){return _.m(rA2,{data:O.data,
themeOverride:S})},
lpHeaderSectionViewModel:function(O){return _.m(hS0,{data:O.data,themeOverride:S})},
lpHeadlineSectionViewModel:function(O){return _.m(Kpe,{data:O.data,themeOverride:S})},
lpLargeFeatureSectionViewModel:function(O){return _.m($m0,{data:O.data,themeOverride:S})},
lpOfferCardSectionViewModel:function(O){return _.m(ktA,{data:O.data,themeOverride:S})},
lpComplexOfferCardSectionViewModel:function(O){return _.m(Yc0,{data:O.data})},
lpOfferTableSectionViewModel:function(O){return _.m(JA6,{data:O.data,themeOverride:S})},
lpSmallFeatureSectionGroupViewModel:function(O){return _.m(MSu,{data:O.data,themeOverride:S})},
lpCouponBannerViewModel:function(O){return _.m(mmA,{data:O.data})}}))))},"Dc"),"yt-section-group-view-model",{props:{data:_.U1}});var MDj=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.tSI=_.l(function(v){function e(){if(MDj.has(v.data().displayType)){var q=!E(),r;if((r=v.disableDeselection)==null||!r.call(v)||q){v.data().selected=q;r=Object.assign({},O(),{selected:q});b(r);var h;(h=v.callback)==null||h.call(v,r,q)}}}
var d=_.nI("chip-view-model"),E=function(){var q,r;return!!(((q=v.selected)==null?void 0:q.call(v))!==void 0?(r=v.selected)==null?0:r.call(v):O().selected)},T=_.a(_.KM(v.data)),S=T.next().value;
T=T.next().value;var O=S,b=T,Y=_.Kv(G90,function(){return v.data().chipEntityKey||""});
return _.m("chip-view-model",{class:"ytChipViewModelHost",el:d},_.m(I1e,{data:function(){var q,r=Object.assign({},O(),{selected:E()}),h=Y(),K=(q=v.disableDeselection)==null?void 0:q.call(v);a:switch(r.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":q=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":q=3;break a;default:q=0}return{text:(h==null?void 0:h.text)||r.text,state:r.disabled?1:r.selected?0:2,type:q,onTap:tD$(r,d,e,K),
accessibilityLabel:r.accessibilityLabel||r.text}}}))},"Ec");
_.tSI.idomCompat={callbacks:{callback:!0}};_.fQJ=_.l(function(v){var e=_.Kv(J$W,function(){var O;return(O=v.data())==null?void 0:O.chipBarStateEntityKey}),d=function(){return v.data().disableDeselection},E=_.a(_.KM(function(){var O;
if(((O=e())==null?void 0:O.selectedIndex)!=void 0)return e().selectedIndex;var b,Y;O=_.a(((b=v.data())==null?void 0:(Y=b.chips)==null?void 0:Y.entries())||[]);for(b=O.next();!b.done;b=O.next()){b=_.a(b.value);Y=b.next().value;b=b.next().value;var q=void 0;if((q=_.L(b,_.HD))==null?0:q.selected)return Y}return-1})),T=E.next().value,S=E.next().value;
return _.m("chip-bar-view-model",{class:_.qe("ytChipBarViewModelHost",v.className),role:"tablist"},_.m(_.kz,{data:function(){return v.data().chips}},{chipViewModel:function(O,b){return _.m("div",{class:"ytChipBarViewModelChipWrapper"},_.m(_.tSI,{data:O.data,
selected:function(){return b()===T()},
callback:function(Y,q){Y=!!q;q=b();S(Y?q:-1);var r,h=(r=v.data())==null?void 0:r.chipBarStateEntityKey;h&&Y&&_.vz(_.Lv("chipBarStateEntity",h,{key:h,selectedIndex:q}))},
disableDeselection:v.disableDeselection||d}))}}))},"Fc");_.aZ(_.fQJ,"chip-bar-view-model",{props:{data:_.SM,className:_.SM,disableDeselection:_.SM}});_.RSE=_.l(function(v){var e=v.data;v={};return _.m("divider-view-model",{class:_.qe("dividerViewModelHost",(v.dividerViewModelInsetThinPadding=function(){return e().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},v))},_.m("div",{class:_.qe("dividerViewModelBaseDivider",function(){return fvs(e().dividerStyle)}),
style:_.jM({"background-color":function(){return e().backgroundColor?_.cv(e().backgroundColor):void 0}})}))},"Gc");
_.RSE.idomCompat=!0;_.aZ(_.RSE,"divider-view-model",{props:{data:_.U1}});var jB=new Map,$p=new Map,xQ0=0,sR;var A$7=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],wmH={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var Pcn,xmI;Pcn=function(v){return function(e){return function(){return(e==null?void 0:e())!==void 0?String(e())+v:void 0}}};
_.Pe=Pcn("px");xmI=Pcn("s");var Bd7=Al3(function(v){return v.targetGroupId}).useUpdatableData;var XqI=_.l(function(v){function e(v3){return function(){var q7=R().numItemsPerGridRow,m0=v3()*q7;q7=m0+q7;var $S,kS;return(kS=($S=E().contents)==null?void 0:$S.slice(m0,q7))!=null?kS:[]}}
var d=_.dC(v,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),E=d.data,T=d.layoutContainerWidth,S=d.shouldUseOwnContainerSize,O=d.marginSettings,b=YtH(),Y=_.a(Bd7(function(){var v3,q7;return{targetGroupId:(v3=E().targetingContext)==null?void 0:(q7=v3.targetGroupId)==null?void 0:q7[0]}})).next().value;
d=_.a(_.OE(!0,void 0,"f25nob"));var q=d.next().value,r=d.next().value,h=function(){var v3,q7=(v3=_.L(E().showMoreButton,_.lx))==null?void 0:v3.trackingParams;q7&&_.yV(_.NC(),q7);r(!1)},K=function(){var v3,q7=(v3=_.L(E().showLessButton,_.lx))==null?void 0:v3.trackingParams;
q7&&_.yV(_.NC(),q7);r(!0)};
d=_.nI("grid-shelf-view-model");var k=_.QX0(d,{canHaveZeroSize:!1}),J=function(){var v3;return(v3=E().contentAspectRatio)!=null?v3:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},R=_.yl(function(){var v3=_.AX({containerWidth:S()&&k.width()>0?k.width()||T():T(),
sizing:"EXTRA_COMPACT",marginSettings:O(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:v3.maxContainerWidth,numItemsPerGridRow:v3.numItems,contentPadding:S()?v3.margin:v3.contentMargin,itemWidth:v3.itemWidth,itemMargin:v3.gutter/2}},void 0,"b3gcJf"),B=function(){if(E().enableVerticalExpansion){if(q())return X();
var v3,q7,m0=(q7=(v3=E().contents)==null?void 0:v3.length)!=null?q7:0;return Math.ceil(m0/R().numItemsPerGridRow)}return R().numItemsPerGridRow<=2?2:1},X=function(){var v3;
return Math.ceil(((v3=E().minCollapsedItemCount)!=null?v3:1)/R().numItemsPerGridRow)},Z=function(){return E().enableVerticalExpansion&&E().showLessButton&&!q()&&B()>X()},U=function(){var v3,q7;
return E().enableVerticalExpansion&&E().showMoreButton&&q()&&((q7=(v3=E().contents)==null?void 0:v3.length)!=null?q7:0)>R().numItemsPerGridRow*X()},F=function(){return!Z()},g=function(){return!U()},Q={};
return _.m("grid-shelf-view-model",{class:_.qe("ytGridShelfViewModelHost",v.className,(Q.ytGridShelfViewModelHostHasBottomButton=function(){return Z()||U()},Q.ytGridShelfViewModelHostIsDismissed=function(){var v3,q7=(v3=Y())!=null?v3:{};
v3=q7.behavior;var m0=q7.isDismissed,$S=q7.stamperContextTargetId;q7=q7.stamperIndex;if(!(_.N("mweb_see_fewer_shorts_group_dismissal")&&m0&&v3&&$S))return!1;var kS;m0=b;for(var N7,As,Ct=((N7=m0)==null?0:N7.targetId)?_.M4((As=m0)==null?void 0:As.targetId):void 0;((kS=m0)==null?0:kS.parent)&&Ct!==$S;)m0=m0.parent,As=N7=void 0,Ct=((N7=m0)==null?0:N7.targetId)?_.M4((As=m0)==null?void 0:As.targetId):void 0;kS=Ct===$S?m0:void 0;if(!kS)return!1;var SA;$S=kS==null?void 0:(SA=kS.stamperIndex)==null?void 0:
SA.call(kS);return v3==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||v3==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&$S!=null&&q7!=null&&$S>q7},Q)),
el:d,style:_.jM({"margin-left":(0,_.Pe)(function(){return R().contentPadding}),
"margin-right":(0,_.Pe)(function(){return R().contentPadding})})},_.m(_.y,{cond:function(){return _.L(E().header,D$n)},
then:function(v3){return _.m(_.mz,{data:v3,disableHorizontalPadding:!0})}}),_.m("div",null,_.m(_.jI,{each:function(){return Array(B())}},function(v3,q7){return _.m(CcJ,{className:v.className,
items:e(q7),responsiveGridShelfLayout:R,contentAspectRatio:J})})),_.m("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.m(_.kz,{data:function(){return E().showMoreButton}},{buttonViewModel:function(v3){return _.m("div",{hidden:g},_.m(_.yi,{data:v3.data,
onClick:h}))}}),_.m(_.kz,{data:function(){return E().showLessButton}},{buttonViewModel:function(v3){return _.m("div",{hidden:F},_.m(_.yi,{data:v3.data,
onClick:K}))}})))},"Hc");
XqI.idomCompat=!0;var CcJ=_.l(function(v){var e=v.items;var d=v.responsiveGridShelfLayout;var E=v.contentAspectRatio;v=v.className;var T=_.nI("div");PJ$(T,function(){a:{var O=T.value;for(var b=e(),Y=[],q=0;q<b.length;q++){var r=_.L(b[q],owB);if(!r||r==null||!r.inlinePlayerData){O=null;break a}var h=O.children.item(q);if(!h){O=null;break a}Y.push({thumbnailElement:h,videoData:r})}O={gridVideoPreviewData:{gridItems:Y}}}return O});
var S=(0,_.Pe)(function(){return-d().itemMargin});
return _.m("div",{el:T,class:_.qe("ytGridShelfViewModelGridShelfRow",v),style:_.jM({"margin-left":S,"margin-right":S})},_.m(_.kz,{data:e,replacementWrapper:function(O){return _.m(zSI,{responsiveGridShelfLayout:d},O)}},{shortsLockupViewModel:function(O){return _.m(zSI,{responsiveGridShelfLayout:d},_.m(K6J,{data:O.data,
aspectRatio:function(){return E()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Ic"),zSI=_.l(function(v){return _.m("div",{style:_.jM({width:(0,_.Pe)(function(){return v.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+v.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},v.children)},"Jc");
XqI.idomCompat=!0;_.aZ(XqI,"grid-shelf-view-model",{props:{data:_.U1,layoutContainerWidth:_.U1,shouldUseOwnContainerSize:_.U1,marginSettings:_.U1,className:_.U1}});_.lQJ=_.l(function(v){var e=_.a(_.OE(!1,void 0,"YYtxR")),d=e.next().value,E=e.next().value;e={};return _.m("yt-alert-banner-view-model",{class:_.qe("ytAlertBannerViewModelHost",v.className,function(){var T;a:switch((T=v.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},(e.ytAlertBannerViewModelDismissed=
d,e.ytAlertBannerViewModelFullbleed=v.fullbleed,e.ytAlertBannerViewModelNarrow=v.narrow,e.ytAlertBannerViewModelIsInRichGrid=v.isInRichGrid,e))},_.m(_.y,{cond:function(){var T;
return!((T=v.data())==null?0:T.hideIcon)},
then:function(){return _.m("div",{class:"ytAlertBannerViewModelIcon"},_.m(_.sG,{icon:function(){return"info_circle"}}))}}),_.m("div",{class:"ytAlertBannerViewModelOuterContainer"},_.m("div",{class:"ytAlertBannerViewModelContainer"},_.m("div",{class:"ytAlertBannerViewModelContent"},_.m("div",{class:"ytAlertBannerViewModelHeading"},_.m(_.Dh,{text:function(){var T;
return(T=v.data())==null?void 0:T.heading}})),_.m("div",{class:"ytAlertBannerViewModelBody"},_.m(_.Dh,{text:function(){var T;
return(T=v.data())==null?void 0:T.body}})))),_.m(_.kz,{data:function(){var T;
return(T=v.data())==null?void 0:T.actionButton}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.m(_.kz,{data:function(){var T;
return(T=v.data())==null?void 0:T.dismissButton}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var S;((S=v.data())==null?0:S.disableLocalDismissBehavior)||E(!0)}})}}))},"Kc");_.aZ(_.lQJ,"yt-alert-banner-view-model",{props:{data:_.U1,fullbleed:_.U1,narrow:_.U1,isInRichGrid:_.U1,className:_.U1}});_.x3=_.l(function(v){var e=v.data;var d=v.callback;var E=v.selectionBehavior;var T=v.disableChipsScrollAnimation;var S=_.Dq("div");v=_.a(_.OE(!0,void 0,"xkhdbf"));var O=v.next().value,b=v.next().value;v=_.a(_.OE(!1,void 0,"gY0n0c"));var Y=v.next().value,q=v.next().value,r=!1,h=0;_.JE(function(){b(J());q(R())});
v=_.a(_.KM(function(){var v3={};return e().autoselectedChipIndex!=null?(v3[e().autoselectedChipIndex]=!0,v3):{}}));
var K=v.next().value,k=v.next().value,J=function(){var v3=S.value;return v3==null||v3.scrollLeft-1<=0},R=function(){var v3=S.value;
return v3==null?!1:v3.scrollLeft+1>=(v3==null?NaN:v3.scrollWidth)-(v3==null?NaN:v3.clientWidth)},B=function(){return e().isHorizontallyScrollable},X=function(v3){S.value!=null&&(_.Bb("HTML_DIR")==="rtl"&&(v3=-v3),S.value.scrollBy({left:v3,
behavior:(T==null?0:T())?"instant":"smooth"}))},Z=function(){X(-320)},U=function(){X(320)},F=_.rq(function(v3){r=!0;
h=v3.clientX}),g=_.rq(function(v3){if(r){v3=v3.clientX;
var q7=v3-h;h=v3;var m0;(m0=S.value)==null||m0.scrollBy({left:-q7})}}),Q=_.rq(function(){var v3=J(),q7=R();
v3!==O()&&b(v3);q7!==Y()&&q(q7)});
eO("pointerup",function(){r&&(r=!1)});
return _.m("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.m(_.Om,{contentId:function(){return e().contentId},
useModernStyle:!0},function(){var v3={},q7={};return _.m("div",null,_.m(_.y,{cond:function(){return e().title},
then:function(){return _.m("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.m("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return e().title}),_.m(_.kz,{data:function(){return e().overflowButton}},{buttonViewModel:_.yi}))}}),_.m("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.m(_.y,{cond:function(){return e().previousButton},
then:function(){var m0={};return _.m("div",{class:_.qe("ytChipsShelfViewModelLeftArrowContainer",(m0.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return O()},m0))},_.m(_.kz,{data:function(){return e().previousButton}},{buttonViewModel:function($S){return _.m(_.yi,{data:$S.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:Z})}}))}}),_.m("div",{el:S,
"on:pointerdown":F,"on:pointermove":g,"on:scroll":Q,class:_.qe("ytChipsShelfViewModelChipsScrollContainer",(v3.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=B,v3))},_.m("div",{class:_.qe("ytChipsShelfViewModelChipsContainer",(q7.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=B,q7.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,q7)),role:"tablist"},_.m(_.kz,{data:function(){return e().contents}},{chipViewModel:function(m0,$S){return _.m("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.m(_.tSI,{data:m0.data,
callback:function(kS,N7){var As=$S(),Ct,SA=(Ct=E==null?void 0:E())!=null?Ct:0;SA===1||SA===2?(Ct={},k((Ct[As]=N7,Ct))):(Ct={},k(Object.assign({},K(),(Ct[As]=N7,Ct))));d==null||d(kS,N7,As)},
disableDeselection:function(){return(E==null?void 0:E())===1},
selected:function(){return!!K()[$S()]}}))}}))),_.m(_.y,{cond:function(){return e().nextButton},
then:function(){var m0={};return _.m("div",{class:_.qe("ytChipsShelfViewModelRightArrowContainer",(m0.ytChipsShelfViewModelRightArrowContainerIsHidden=Y,m0))},_.m(_.kz,{data:function(){return e().nextButton}},{buttonViewModel:function($S){return _.m(_.yi,{data:$S.data,
className:"ytChipsShelfViewModelRightArrow",onClick:U})}}))}})))}))},"Lc");
_.x3.idomCompat={callbacks:{callback:!0}};_.aZ(_.x3,"chips-shelf-view-model",{props:{data:_.U1,callback:_.SM,selectionBehavior:_.U1,disableChipsScrollAnimation:_.U1}});var HVM=_.l(function(v){v=_.dC(v,{disabled:!1});var e=v.active,d=v.disabled;v={};v=_.qe("ytSwitchShapeTrack",(v.ytSwitchShapeTrackActive=function(){return e()},v.ytSwitchShapeTrackDisabled=function(){return d()},v));
var E={};E=_.qe("ytSwitchShapeKnob",(E.ytSwitchShapeKnobActive=function(){return e()},E));
return _.m("switch-shape",{class:"ytSwitchShapeHost"},_.m("div",{class:v}),_.m("div",{class:E}))},"Mc");var AAg=_.l(function(v){var e=_.dC(v,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),d=e.data;v=e.className;var E=e.handleOnTapEventInParent,T=e.parentActive;e=_.a(_.KM(function(){var h;return(h=T())!=null?h:d().switchedOnByDefault||!1}));
var S=e.next().value,O=e.next().value,b=function(){return d().isDisabled},Y=_.nI("button");
e=_.rq(function(h){return h.key==="Enter"?(h.preventDefault(),Y.value.click(),!1):!0});
var q=_.rq(function(h){if(d().handleOnTapEventInParent||E())return!0;if(b())return!1;u9W(d(),S(),h);O(!S());return!1}),r={};
r=_.qe("ytSwitchButtonViewModelButton",(r.ytSwitchButtonViewModelTappable=function(){return!b()},r));
return _.m("switch-button-view-model",{class:_.qe("ytSwitchButtonViewModelHost",v)},_.m("button",{el:Y,class:r,"on:click":q,"on:keydown":e,"aria-label":function(){return S()?d().a11yLabelSwitchedOn:d().a11yLabelSwitchedOff},
"aria-checked":S,"aria-disabled":b,role:"switch"},_.m(HVM,{active:S,disabled:b})))},"Nc");var ZVe=_.l(function(v){var e=v.data;var d=v.isLeading;var E=v.hideSelectionTextChevron;var T=v.isToggled;var S=function(){return d()?e().leadingImage:e().trailingImage},O=function(){a:switch(e().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var r="expand_more";
break a;default:r="chevron_right"}return r};
v={};var b=_.qe("yt-list-item-view-model-wiz__image-container",(v["yt-list-item-view-model-wiz__leading"]=d,v["yt-list-item-view-model-wiz__trailing"]=function(){return!d()},v)),Y=_.qe("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
v={};var q=_.qe("yt-list-item-view-model-wiz__accessory",(v["yt-list-item-view-model-wiz__leading"]=d,v["yt-list-item-view-model-wiz__trailing"]=function(){return!d()},v));
return _.m(_.y,{cond:function(){var r=e(),h=d();return!!(h&&(r.leadingImage||r.leadingAccessory)||!h&&(r.trailingImage||r.trailingButton||r.trailingButtons||r.selectionText))},
then:function(){return _.m(_.eI,null,_.m(_.y,{cond:S,then:function(r){return _.m("div",{class:b,"aria-hidden":"true"},_.m(_.va,{data:r,alt:"",preserveWidth:!0,preserveHeight:!0,className:Y,isToggled:T}))}}),_.m(_.y,{cond:function(){return d()&&e().leadingAccessory},
then:function(){return _.m("div",{class:b},_.m(_.kz,{data:function(){return e().leadingAccessory}},{avatarViewModel:function(r){return _.m(_.x7,{data:r.data,
avatarButtonCustomClassName:Y})},
collectionThumbnailViewModel:function(r){return _.m(b3u,{data:r.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.m(_.y,{cond:function(){return!d()&&e().trailingButton},
then:function(){return _.m("div",{class:"yt-list-item-view-model-wiz__button-container"},_.m(_.kz,{data:function(){return e().trailingButton}},{buttonViewModel:function(r){return _.m(_.yi,{data:r.data,
className:q})}}))}}),_.m(_.y,{cond:function(){var r;
return!d()&&((r=e().trailingButtons)==null?void 0:r.buttons)},
then:function(){return _.m("div",{class:"yt-list-item-view-model-wiz__button-container"},_.m(_.kz,{data:function(){var r;return(r=e().trailingButtons)==null?void 0:r.buttons}},{buttonViewModel:function(r){return _.m(_.yi,{data:r.data,
className:q})},
accountLinkButtonViewModel:function(r){return _.m(ek7,{data:r.data,className:q})},
switchButtonViewModel:function(r){return _.m(AAg,{data:r.data,className:q})},
subscribeButtonViewModel:function(r){return _.m(_.x1,{data:r.data,isOverlay:!1,animateWidth:!1,className:q})},
toggleButtonViewModel:function(r){return _.m(_.fR,{data:r.data,className:q})}}))}}),_.m(_.y,{cond:function(){return!d()&&!!e().selectionText},
then:function(){return _.m(_.eI,null,_.m(_.Dh,{text:function(){return e().selectionText},
className:_.qe("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.m(_.y,{cond:function(){return!(E==null?0:E())},
then:function(){return _.m(_.sG,{icon:O,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Oc");var cAA=_.l(function(v){var e=v.data;return _.m(_.y,{cond:function(){return e().title||e().subtitle},
then:function(){return _.m("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.m(_.y,{cond:function(){return e().title},
then:function(d){return _.m("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.m(_.Dh,{text:d,className:"yt-list-item-view-model-wiz__title"}))}}),_.m(_.y,{cond:function(){return e().subtitle},
then:function(d){return _.m(_.Dh,{text:d,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Pc");var Be=_.l(function(v){var e=v.data;var d=v.hideSelectionTextChevron;var E=v.TrailingAccessory;var T=v.isToggled;var S=v.disabled;var O=v.isSelectItem;var b=v.isCompact;var Y=v.inPopup;var q=v.disableHorizontalPadding;v=v.isTappableWithoutSelect;var r={};return _.m("div",{class:_.qe("yt-list-item-view-model-wiz__label",(r["yt-list-item-view-model-wiz__container"]=function(){return!(O==null?0:O())},r["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!e().isDisabled||!(S==null||
!S())},r["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!e().subtitle},r["yt-list-item-view-model-wiz__container--compact"]=b,r["yt-list-item-view-model-wiz__container--tappable"]=v,r["yt-list-item-view-model-wiz__container--in-popup"]=Y,r["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(q==null?void 0:q())&&!(O==null?0:O())},r))},_.m(ZVe,{data:e,
isLeading:!0,hideSelectionTextChevron:d,isToggled:T}),_.m(cAA,{data:e}),_.m(_.y,{cond:function(){return!!E},
then:function(){return _.m("div",{class:"yt-list-item-view-model-wiz__trailing"},E&&_.m(E,null))},
else:function(){return _.m(ZVe,{data:e,isLeading:!1,hideSelectionTextChevron:d,isToggled:T})}}))},"Qc");var FpJ=_.l(function(v){var e=_.dC(v,{checked:!1});v=e.name;var d=e.onChange,E=e.onClick,T=e.checked,S=e.labelRenderable,O=e.hasLeadingLabel,b=e.labelClass,Y=e.isCompact,q=e.selectElementClass;e=e.disableHorizontalPadding;var r="checkbox"+_.Ge(_.RJ),h=_.rq(function(J){E==null||E(J);return!1}),K=_.rq(function(J){d==null||d(J);
return!1}),k={};
return _.m("checkbox-shape",null,_.m("label",{class:_.qe("checkbox-shape-wiz",b,(k["checkbox-shape-wiz--compact"]=Y,k["checkbox-shape-wiz--disable-horizontal-padding"]=e,k))},_.m("input",{class:"checkbox-shape-wiz__input",id:r,checked:T,name:v,type:"checkbox","prop:checked":T,"on:change":K,"on:click":h}),_.m(_.y,{cond:function(){return!(O==null?0:O())},
then:function(){return _.m(wqM,{isLeading:!0,selectElementClass:q})}}),_.m(_.y,{cond:function(){return!!S},
then:function(){return _.m("div",{class:"checkbox-shape-wiz__label"},S==null?void 0:S())}}),_.m(_.y,{cond:O,
then:function(){return _.m(wqM,{isLeading:!1,selectElementClass:q})}})))},"Rc");
FpJ.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var wqM=_.l(function(v){var e=v.selectElementClass;v={};return _.m("div",{class:_.qe("checkbox-shape-wiz__checkbox",e,(v["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(e==null?0:e())},v)),
"aria-hidden":"true"},_.m(_.sG,{icon:_.N("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.m(_.sG,{icon:_.N("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Sc");_.Ca=_.l(function(v){var e=v.name;var d=v.onChange;var E=v.onClick;var T=v.checked;var S=v.labelRenderable;var O=v.useCheckIcon;var b=v.hasLeadingLabel;var Y=v.labelClass;var q=v.isCompact;var r=v.selectElementClass;var h=v.ariaLabel;v=v.className;var K="radio"+_.Ge(_.RJ),k=_.nI("input"),J=_.rq(function(Q){k.value.checked=!(T==null||!T());d==null||d(Q);return!1}),R=_.rq(function(Q){E==null||E(Q);
return!1}),B=_.rq(function(Q){_.N("enable_ios_webview_radio_button_responsiveness")&&(Q.preventDefault(),k.value.click())}),X=_.a(_.OE(!1,void 0,"nXiHX")),Z=X.next().value,U=X.next().value;
X=_.rq(function(){var Q;((Q=_.dk().resolve(_.eG(_.i$)))==null?0:Q.isKeyBoardInUse())&&U(!0)});
var F=_.rq(function(){U(!1)}),g={};
return _.m("radio-shape",{class:_.qe("radio-shape-wiz",v)},_.m("input",{el:k,class:"radio-shape-wiz__input",id:K,"prop:checked":T,name:e,type:"radio","on:change":J,"on:click":R,"aria-label":h,"on:focusin":X,"on:focusout":F}),_.m("label",{class:_.qe("radio-shape-wiz__label-container",Y,(g["radio-shape-wiz--compact"]=q,g["radio-shape-wiz__label-container--keyboard-focused"]=Z,g)),for:K,"on:click":B},_.m(_.y,{cond:function(){return!(b==null?0:b())},
then:function(){return _.m(QrJ,{checked:T,useCheckIcon:O,isLeading:!0,selectElementClass:r})}}),_.m(_.y,{cond:function(){return!!S},
then:function(){return _.m("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(h==null?0:h())?"true":"false"}},S==null?void 0:S())}}),_.m(_.y,{cond:b,
then:function(){return _.m(QrJ,{checked:T,useCheckIcon:O,isLeading:!1,selectElementClass:r})}})))},"Tc");
_.Ca.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var QrJ=_.l(function(v){var e=v.useCheckIcon;var d=v.selectElementClass;v=function(){return(e==null?0:e())?"CHECK":_.N("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var E={};return _.m("div",{class:_.qe("radio-shape-wiz__radio",d,(E["radio-shape-wiz__radio--check-icon"]=e,E["radio-shape-wiz__radio--radio-default-style"]=function(){return!(d==null?0:d())},E)),
"aria-hidden":"true"},_.m(_.sG,{icon:v}),_.m(_.sG,{icon:v,active:function(){return!(e==null?0:e())}}))},"Uc");_.X6=_.l(function(v){var e=v.data;var d=v.isMenuItem;var E=v.isCompact;var T=v.onTap;var S=v.trailingAccessory;var O=v.hideSelectionTextChevron;var b=v.disabled;var Y=v.inPopup;var q=v.disableHorizontalPadding;var r=v.isOverlay;v=v.isToggled;var h=_.Xj(function(q7){return UQ7(q7,e())}),K=function(){return _.N("enable_web_shorts_captions_language_command")?Object.assign({},e(),h()):e()},k=function(){return!(K().isSelected===void 0||!K().selectionStyle||K().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
J=function(){return(_.xz(K().rendererContext)||T)&&!k()},R={},B=_.qe("yt-list-item-view-model-wiz__container",(R["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.xz(K().rendererContext)||k()},R["yt-list-item-view-model-wiz__container--compact"]=E,R["yt-list-item-view-model-wiz__container--in-popup"]=Y,R["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(q==null?void 0:q())&&k()},R)),X=function(){return K().leadingImage||K().leadingAccessory},
Z=_.qe("yt-list-item-view-model-wiz__image-container",function(){return X()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
R=_.rq(function(q7){return void(T==null?void 0:T(q7))});
var U=_.UWM(),F=_.a(_.OE(!1,void 0,"iQppzc")),g=F.next().value,Q=F.next().value,v3={data:K,hideSelectionTextChevron:O,TrailingAccessory:S,isToggled:v,disabled:b,isSelectItem:k,isCompact:E,inPopup:Y,disableHorizontalPadding:q,isTappableWithoutSelect:J};S={};return _.m("yt-list-item-view-model",{el:_.dq(_.B5(function(){return K().rendererContext}),Y77(function(){return J==null?void 0:J()},{focusin:function(){var q7;
((q7=_.dk().resolve(_.eG(_.i$)))==null?0:q7.isKeyBoardInUse())&&Q(!0)},
focusout:function(){Q(!1)}})),
class:_.qe("yt-list-item-view-model-wiz",(S["yt-list-item-view-model-wiz--is-overlay"]=r,S["yt-list-item-view-model-wiz--keyboard-focused"]=g,S)),role:function(){return(d==null?0:d())?"menuitem":"listitem"},
tabindex:function(){var q7=J();return T||q7?0:void 0},
"on:keydown":U,"on:click":R},_.m(_.y,{cond:k,then:function(){return _.m(_.kc,null,_.m(_.sW,{when:function(){return K().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.m(FpJ,{labelRenderable:function(){return _.m(Be,Object.assign({},v3))},
isCompact:E,checked:function(){return K().isSelected},
hasLeadingLabel:function(){return!!X()},
labelClass:B,selectElementClass:Z,disableHorizontalPadding:q})}),_.m(_.sW,{when:function(){return K().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.m(_.Ca,{labelRenderable:function(){return _.m(Be,Object.assign({},v3))},
isCompact:E,checked:function(){return K().isSelected},
hasLeadingLabel:function(){return!!X()},
labelClass:B,selectElementClass:Z})}),_.m(_.sW,{when:function(){return K().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.m(_.Ca,{labelRenderable:function(){return _.m(Be,Object.assign({},v3))},
isCompact:E,checked:function(){return K().isSelected},
hasLeadingLabel:function(){return!!X()},
labelClass:B,selectElementClass:Z,useCheckIcon:!0})}),_.m(_.N9,null,function(){return _.m(Be,Object.assign({},v3))}))},
else:function(){return _.m(Be,Object.assign({},v3))}}))},"Vc");
_.X6.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.gYc=_.l(function(v){var e=v.data;var d=v.onTap;var E=v.onSwitch;var T=v.overrideDisabled;v=v.disableHorizontalPadding;var S=_.a(_.KM(function(){var h;return((h=DQ$(r()))==null?void 0:h.switchedOnByDefault)||!1})),O=S.next().value,b=S.next().value;
S=_.a(_.OE(!1,void 0,"ZHBkbb"));var Y=S.next().value,q=S.next().value,r=function(){var h;if(!(h=e().switchButton)){var K=e();h=T==null?void 0:T();K={switchOnCommand:K.switchOnCommand,switchOffCommand:K.switchOffCommand,switchedOnByDefault:K.switchedOnByDefault,isDisabled:K.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:K.a11yLabelSwitchedOn,a11yLabelSwitchedOff:K.a11yLabelSwitchedOff};h!==void 0&&(K.isDisabled=h);h={switchButtonViewModel:K}}return h};
return _.m("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.m(_.X6,{data:function(){return{title:e().title,subtitle:e().attributedSubtitle,leadingImage:e().leadingImage,leadingAccessory:e().leadingAccessory,isDisabled:e().isDisabled}},
onTap:function(h){var K=DQ$(r());!K||K.isDisabled||e().ignoreTapUntilCommandCompletes&&Y()||(d==null||d(h),u9W(K,O(),h,e().ignoreTapUntilCommandCompletes,q),b(!O()),E==null||E(O()))},
trailingAccessory:function(){return _.m(_.kz,{data:r},{switchButtonViewModel:function(h){return _.m(AAg,{data:h.data,parentActive:O,handleOnTapEventInParent:!!d})}})},
disableHorizontalPadding:v}))},"Wc");var uG2=_.l(function(v){var e=_.a(_.KM(function(){var T,S;return!!((T=v.data())==null?0:(S=T.initialState)==null?0:S.isToggled)})),d=e.next().value,E=e.next().value;
e=_.rq(function(){E(!d())});
return _.m("toggleable-list-item-view-model",{el:_.dq(_.B5(function(){return v.data().rendererContext})),
class:_.qe("toggleableListItemViewModelHost",v.className),"on:click":e},_.m(_.y,{cond:function(){if(d()){var T=v.data().toggledListItem;T=_.L(T,_.o7)}else T=v.data().defaultListItem,T=_.L(T,_.o7);return T},
then:function(T){return _.m(_.X6,{data:T,isToggled:d,ariaLabel:function(){var S=d()?v.data().toggledListItem:v.data().defaultListItem,O;S=(O=_.L(S,_.o7))==null?void 0:O.rendererContext;var b;return(b=_.L(S,_.K6))==null?void 0:b.label},
ariaPressed:function(){return d()}})}}))},"Xc");var nYE=_.sz("DOWNLOAD",{},"Download"),DmE=_.sz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),UmM=_.sz("RETRY",{},"Retry"),pq7=_.sz("PAUSE_DOWNLOADING",{},"Pause downloading"),vCg=_.sz("RESUME_DOWNLOAD",{},"Resume download"),pmM={text:nYE,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},N0={text:DmE,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},dct={text:UmM,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
vtU={text:pq7,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},eE7={text:vCg,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var emg=_.l(function(v){var e=function(){var b=v.data();b=_.P5(b.rendererContext);var Y;return(Y=_.L(b,_.rB))==null?void 0:Y.videoId},d=_.Xj(function(b){var Y=e(),q=SBS(v.data());
return Y?_.A_(b,Y):q?_.ZY(b,q):"TRANSFER_STATE_UNKNOWN"}),E=_.Kv(_.rb7,e),T=_.Xj(function(b){return _.Oss(b,e(),SBS(v.data()))}),S=function(){return TUW(d(),E(),_.P5(v.data().rendererContext),!!SBS(v.data()))},O=function(){return T()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.m("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:O},_.m(_.y,{cond:function(){return!O()},
then:function(){return _.m(_.y,{cond:S,then:function(b){return _.m(_.jI,{each:b},function(Y){return _.m(_.X6,{data:Y,isCompact:v.isCompact,isMenuItem:v.isMenuItem,inPopup:v.inPopup,disableHorizontalPadding:v.disableHorizontalPadding})})}})}}))},"Yc");
emg.idomCompat=!0;_.dlc=_.l(function(v){var e=v.data;var d=v.isCompact;var E=v.hideSelectionTextChevron;var T=v.inPopup;var S=v.isOverlay;var O=v.disableHorizontalPadding;var b=function(){return Wyj(e())&&(T==null?void 0:T())};
v={};return _.m("yt-list-view-model",{class:_.qe("ytListViewModelHost",(v.ytListViewModelHostKaiosSpatNav=KA7&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",v.ytListViewModelCollectionThumbnailClass=function(){return Ont(e())},v)),
role:function(){return b()?"menu":"list"},
style:_.jM({"max-height":function(){var Y,q=(Y=e())==null?void 0:Y.visibleElementCount;if(q)return Ont(e())?(q+.5)*48+"px":(q+.5)*40+"px"}})},_.m(_.kz,{data:function(){return e().listItems}},{listItemViewModel:function(Y){return _.m(_.X6,{data:Y.data,
isMenuItem:b,isCompact:d,hideSelectionTextChevron:E,inPopup:T,isOverlay:S,disableHorizontalPadding:O})},
toggleableListItemViewModel:function(Y){return _.m(uG2,{data:Y.data})},
downloadListItemViewModel:function(Y){return _.m(emg,{data:Y.data,isMenuItem:b,isCompact:d,inPopup:T,disableHorizontalPadding:O})},
switchListItemViewModel:function(Y){return _.m(_.gYc,{data:Y.data,disableHorizontalPadding:O})}}))},"Zc");
_.dlc.idomCompat=!0;var ECM=_.l(function(v){var e=v.data;var d=v.isOverlay;v={};return _.m("yt-course-perks-view-model",{class:_.qe("ytwCoursePerksViewModelHost",(v.ytwCoursePerksViewModelHostOverlay=d,v))},_.m("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.m(_.Dh,{text:function(){return e().title}})),_.m("div",null,_.m(_.y,{cond:function(){return e().perks},
then:function(E){return _.m(_.dlc,{data:function(){return{listItems:E()}},
isCompact:!0,isOverlay:d})}})))},"$c");_.aZ(ECM,"yt-course-perks-view-model",{props:{data:_.SM,isOverlay:_.SM}});_.aZ(_.l(function(v){var e=v.data;return _.m("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.m("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.m(_.Dh,{text:function(){return e().title}})),_.m("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.m(_.Dh,{text:function(){return e().progressSummary}})),_.m("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.m("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.jM({width:function(){return e().progressPercentage*100+"%"}})})))},"ad"),"yt-course-progress-view-model",{props:{data:_.U1}});var Te2=_.l(function(v){var e={};return _.m("yt-progress-view-model",{class:_.qe("ytwProgressViewModelHost",(e.ytwProgressViewModelHostOverlay=_.e2(v.isOverlay,!1),e))},_.m(_.y,{cond:function(){return v.data().progressSummary},
then:function(d){return _.m("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.m(_.Dh,{text:d}))}}),_.m("div",{class:"ytwProgressViewModelHostProgressContainer"},_.m(_.y,{cond:function(){return v.data().leadingLabel},
then:function(d){return _.m("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.m(_.Dh,{text:d}))}}),_.m("div",{class:"ytwProgressViewModelHostProgressBar"},_.m("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(v.data().progressPercentage||0)*100+"%"}}))))},"bd");var z0=_.l(function(v){var e=v.starNumber;var d=v.data;var E=function(){var T;return((T=d())==null?void 0:T.rating)||0};
return _.m(_.y,{cond:function(){return e()},
then:function(T){return _.m(_.kc,null,_.m(_.sW,{when:function(){return E()>=T()-.25}},function(){return _.m("div",{class:"ytStarRatingViewModelHostStar"},_.m(_.sG,{icon:"STAR_FILLED"}))}),_.m(_.sW,{when:function(){return E()>=T()-.75}},function(){return _.m("div",{class:"ytStarRatingViewModelHostStar"},_.m(_.sG,{icon:"STAR_HALF"}))}),_.m(_.N9,null,function(){return _.m("div",{class:"ytStarRatingViewModelHostStar"},_.m(_.sG,{icon:"STAR_BORDER"}))}))}})},"cd"),SV0=_.l(function(v){v=v.data;
return _.m("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.m(z0,{starNumber:1,data:v}),_.m(z0,{starNumber:2,data:v}),_.m(z0,{starNumber:3,data:v}),_.m(z0,{starNumber:4,data:v}),_.m(z0,{starNumber:5,data:v}))},"dd");_.aZ(_.l(function(v){var e=_.dC(v,{}).data;return _.m("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.m("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.m(_.Dh,{text:function(){var d;return(d=e())==null?void 0:d.title}})),_.m("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.m(_.y,{cond:function(){return e().starProgressViewModels},
then:function(d){return _.m("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.m(_.kz,{data:d},{progressViewModel:Te2}))}}),_.m("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.m("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.m(_.Dh,{text:function(){var d;
return(d=e())==null?void 0:d.averageRatingLabel}})),_.m(_.y,{cond:function(){return e().zeroStateText},
then:function(d){return _.m("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.m(_.Dh,{text:d}))}}),_.m(_.y,{cond:function(){return e().starRatingViewModel},
then:function(d){return _.m("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.m(_.kz,{data:d},{starRatingViewModel:SV0}))}}),_.m("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.m(_.Dh,{text:function(){var d;
return(d=e())==null?void 0:d.totalRatingsCountLabel}})))))},"ed"),"yt-course-ratings-view-model",{props:{data:_.SM}});var WTJ;WTJ={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"}};_.aDA=_.l(function(v){var e=_.nI("yt-learning-journey-loader-view-model"),d=_.y0();_.JE(function(){requestAnimationFrame(function(){var T;(T=d.lottieEl)==null||T.addEventListener("DOMLoaded",function(){var S;(S=v.onLottieLoaded)==null||S.call(v)})});
var E=v.data().browseEndpoint;E&&_.wC(E)});
return _.m("yt-learning-journey-loader-view-model",{class:_.qe("learningJourneyLoaderViewModelHost",v.className),"data-target-id":function(){var E;return((E=v.data)==null?void 0:E.call(v).targetId)||""},
el:e},_.m(_.jZ,{className:_.qe("learningJourneyLoaderViewModelLoader",v.className),animationName:function(){return WTJ.animationConfig.name},
data:WTJ,animationRef:d}))},"fd");_.aZ(_.aDA,"yt-learning-journey-loader-view-model",{props:{data:_.U1,className:_.SM,onLottieLoaded:_.SM}});var bnS=new Set,IaS=null;var OiM=_.l(function(v){var e=null,d=null,E=function(){return v.data()},T=function(){var R=E();
var B=_.dk().resolve(_.eG(_.n1));R=B!=null&&B()?R.darkThemeColorPalette:R.lightThemeColorPalette;return{primaryTextColor:Lr(R,0),secondaryTextColor:Lr(R,1),optionColor:Lr(R,2),backgroundColor:Lr(R,3),videoBackgroundColor:Lr(R,4)}},S=function(){return!!T().optionColor},O=_.a(_.OE(-1,void 0,"Wnp7o")),b=O.next().value,Y=O.next().value,q=function(R){return E().correctAnswerIndex===R},r=function(){return b()!==-1};
O=_.a(_.OE("",void 0,"CFFQk"));var h=O.next().value,K=O.next().value,k=function(){var R=r(),B=b()===E().correctAnswerIndex;return R?B?264685:264684:264683},J=function(R){return b()===E().correctAnswerIndex&&q(R)};
return _.m("learning-journey-quiz-view-model",{class:_.qe("learningJourneyQuizViewModelHost",v.className),style:_.jM({background:function(){return T().backgroundColor}})},_.m("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},h),_.m(_.y,{cond:function(){return!!E().video},
then:function(){return _.m("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.jM({background:function(){return T().videoBackgroundColor}})},_.m(_.kz,{data:function(){return E().video}},{lockupViewModel:function(R){return _.m(_.Y8,{data:R.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.m("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.m("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.m("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.m(_.y,{cond:function(){return!!E().aiGeneratedQuizLabel},
then:function(){return _.m("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.m(_.Dh,{text:function(){return E().aiGeneratedQuizLabel}}))}}),_.m("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.jM({"align-items":function(){return E().overflowMenu?"start":"center"}})},_.m("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.jM({"min-height":function(){return E().overflowMenu?"48px":"26px"}})},_.m("div",{class:"learningJourneyQuizYoututorText",
el:_.dq(function(R){_.kp(k(),R,e,function(B){e=B})}),
style:_.jM({color:function(){return T().primaryTextColor}}),
"client-ve-type":k},_.m(_.Dh,{text:function(){return E().questionHeaderText}})))),_.m("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.dq(function(R){_.kp(264688,R,d,function(B){d=B})}),
style:_.jM({color:function(){return T().secondaryTextColor}}),
"client-ve-type":264688},_.m(_.Dh,{text:function(){var R=E();return r()?R.explanationText:R.questionSubheaderText}}))),_.m("div",{role:"group",
class:_.qe("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.m(_.jI,{each:function(){return E().optionsData||[]}},function(R,B){var X={};
return _.m("button",{class:_.qe("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(X.learningJourneyQuizViewModelHostQuizHover=function(){return!r()},X.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=S,X.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return r()&&q(B())},X.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var Z;
if(Z=b()!==E().correctAnswerIndex)Z=B(),Z=b()===Z;return Z},X)),
"on:click":_.rq(function(){if(r())return!1;Y(B());var Z,U;K(q(B())?((Z=E().successTitle)==null?void 0:Z.content)||"":((U=E().failureTitle)==null?void 0:U.content)||"");return!1}),
style:_.jM({background:"transparent"}),"aria-description":function(){var Z,U;return r()?q(B())?(Z=E().successTitle)==null?void 0:Z.content:(U=E().failureTitle)==null?void 0:U.content:""},
"aria-disabled":r,"client-ve-type":264686},_.m("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.m(_.Dh,{text:R.optionText}),_.m(_.y,{cond:function(){var Z=B(),U;if(U=r())U=b()===Z||q(Z);return U},
then:function(){return _.m(iiM,{isOptionCorrect:q,optionIndex:B,isOptionSelectedAndCorrect:J,colors:T})}})))}),_.m(_.y,{cond:r,
then:function(){return _.m("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.m("div",{class:"learningJourneyQuizYoututorExplanationText"},_.m(_.Dh,{text:function(){return E().explanationHeaderText}})),_.m(_.Dh,{text:function(){return E().optionsData[b()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"gd"),iiM=_.l(function(v){var e={};
return _.m("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.qe("learningJourneyQuizYoututorOptionIconTrailing",(e.learningJourneyQuizViewModelHostQuizPulse=function(){return v.isOptionSelectedAndCorrect(v.optionIndex())},e.learningJourneyQuizYoututorIconIncorrectFill=function(){return!v.isOptionSelectedAndCorrect(v.optionIndex())&&!v.isOptionCorrect(v.optionIndex())},e.learningJourneyQuizYoututorIconCorrectFill=function(){return v.isOptionCorrect(v.optionIndex())},
e))},_.m("path",{d:function(){var d=v.optionIndex();
return v.isOptionCorrect(d)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"hd");
OiM.idomCompat=!0;var IDJ;_.biA=_.l(function(v){var e=null,d=null,E=null,T=function(){return v.data()},S=function(){var F=T();
var g=_.dk().resolve(_.eG(_.n1));F=g!=null&&g()?F.darkThemeColorPalette:F.lightThemeColorPalette;return{primaryTextColor:VZ(F,0),secondaryTextColor:VZ(F,1),optionColor:VZ(F,2),backgroundColor:VZ(F,3),videoBackgroundColor:VZ(F,4)}},O=function(){return!!S().optionColor},b=_.a(_.OE(-1,void 0,"oGWitb")),Y=b.next().value,q=b.next().value,r=function(F){return Y()===F},h=function(F){return T().correctAnswerIndex===F},K=function(){return Y()!==-1},k=function(){return Y()===T().correctAnswerIndex},J=function(){var F=
T(),g=K(),Q=k();
return g?Q?F.successTitle:F.failureTitle:F.questionHeaderText},R=function(){var F=K(),g=k();
return F?g?264685:264684:264683},B=function(){var F=T();
return K()?F.explanationText:F.questionSubheaderText},X=function(){return!!T().video},Z=function(F){return k()&&h(F)},U=_.rq(function(){q(-1);
return!1});
return _.m(_.y,{cond:function(){return T().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.m(OiM,{data:function(){return T()}})},
else:function(){return _.m("learning-journey-quiz-view-model",{class:_.qe("learningJourneyQuizViewModelHost",v.className),style:_.jM({background:function(){return S().backgroundColor}})},_.m(_.y,{cond:X,
then:function(){return _.m("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.jM({background:function(){return S().videoBackgroundColor}})},_.m(_.kz,{data:function(){return T().video}},{lockupViewModel:function(F){return _.m(_.Y8,{data:F.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.m("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.m("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.m("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.m(_.y,{cond:function(){return!!T().aiGeneratedQuizLabel},
then:function(){return _.m("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.m(_.Dh,{text:function(){return T().aiGeneratedQuizLabel}}))}}),_.m("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.jM({"align-items":function(){return T().overflowMenu?"start":"center"}})},_.m("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.jM({"min-height":function(){return T().overflowMenu?"48px":"26px"}})},_.m("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.dq(function(F){_.kp(R(),F,e,function(g){e=g})}),
style:_.jM({color:function(){return S().primaryTextColor}}),
"client-ve-type":R},_.m(_.Dh,{text:J}))),_.m("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.m(_.y,{cond:K,then:function(){return _.m("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.dq(function(F){_.kp(264687,F,d,function(g){d=g})}),
"on:click":U,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.m("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.jM({fill:function(){return S().primaryTextColor}})},_.m("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"})))}}),
_.m(_.kz,{data:function(){return T().overflowMenu}},{buttonViewModel:function(F){return _.m(_.yi,{data:F.data})}}))),_.m("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.dq(function(F){_.kp(264688,F,E,function(g){E=g})}),
style:_.jM({color:function(){return S().secondaryTextColor}}),
"client-ve-type":264688},_.m(_.Dh,{text:B}))),_.m("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.m(_.jI,{each:function(){return T().optionsData||[]}},function(F,g){var Q={};
return _.m("button",{class:_.qe("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(Q.learningJourneyQuizViewModelHostQuizHover=function(){return!K()},Q.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=O,Q.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return Z(g())},Q.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!k()&&r(g())},Q.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return K()&&
!r(g())},Q)),
"on:click":_.rq(function(){if(K())return!1;q(g());return!1}),
style:_.jM({background:function(){var v3=g();return K()&&r(v3)?"":O()?S().optionColor:"transparent"}}),
"aria-disabled":K,"client-ve-type":264686},_.m("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.m(_.y,{cond:K,then:function(){return _.m(IDJ,{isOptionCorrect:h,optionIndex:g,isOptionSelectedAndCorrect:Z,colors:S})}}),_.m(_.Dh,{text:F.optionText})))})))))}})},"id");
IDJ=_.l(function(v){var e={};return _.m("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var d=v.optionIndex();return v.isOptionCorrect(d)?"0 0 24 24":"0 -960 960 960"},
class:_.qe("learningJourneyQuizViewModelHostQuizOptionIconLeading",(e.learningJourneyQuizViewModelHostQuizPulse=function(){return v.isOptionSelectedAndCorrect(v.optionIndex())},e)),
style:_.jM({fill:function(){return v.colors().primaryTextColor}})},_.m("path",{d:function(){var d=v.optionIndex();
return v.isOptionCorrect(d)?"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"}}))},"jd");
_.biA.idomCompat=!0;_.aZ(_.biA,"learning-journey-quiz-view-model",{props:{data:_.U1,className:_.U1}});var YVg=_.l(function(v){var e=_.a((0,_.BMc)(function(){var d;return{targetId:(d=v.data().config)==null?void 0:d.suspenseKey,contents:[v.data()]}})).next().value;
return _.m("yt-suspense-view-model",{class:_.qe("ytSuspenseViewModelHost")},_.m(_.kz,{data:function(){if(e().contents.length>0){var d;return(d=e().contents[0].config)==null?void 0:d.contents}}},{lockupViewModel:_.Y8}))},"kd");var mli=_.l(function(v){var e=_.dC(v,{palette:void 0,isLastItem:!1}),d=e.palette,E=e.isLastItem,T=function(){return v.data().isHighlighted},S=function(){var Y;
return mcH((Y=d())==null?void 0:Y.iconDisabledColor)},O=function(){var Y;
return mcH((Y=d())==null?void 0:Y.primaryTitleColor)},b=function(){var Y;
return mcH((Y=d())==null?void 0:Y.secondaryTitleColor)};
e={};return _.m("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.dq(_.B5(function(){return v.data().rendererContext}))},_.m(_.kz,{data:function(){return v.data().thumbnail}},{thumbnailViewModel:_.dJ}),_.m("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.m("div",{class:_.qe("ytMacroMarkerListItemViewModelTimeDescription",(e.ytMacroMarkerListItemViewModelHighlighted=T,e)),
style:_.jM({"background-color":function(){return T()?O():S()},
color:function(){return T()?"":b()}})},_.m(_.Dh,{text:function(){return v.data().timestamp}})),_.m("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.jM({"background-color":function(){return E()?"transparent":S()}})}),_.m("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(T()?O():b())}},_.m(_.Dh,{text:function(){return v.data().title}}))))},"ld");_.lD=_.l(function(v){function e(SW){Z("transform:translateX("+(_.Bb("HTML_DIR")==="rtl"?"":"-")+SW+"px)")}
function d(SW){return Math.min(Math.max(SW,0),X()-v3())}
function E(){var SW=g()+kS();return T()?(Math.round(v3()/SW)||1)*SW:0}
var T=function(){return v.data().items||[]},S=function(){return v.data().previousButton},O=function(){return v.data().nextButton},b=function(){var SW,vc;
return(vc=(SW=v.disableArrows)==null?void 0:SW.call(v))!=null?vc:!1},Y=function(){var SW;
return!((SW=v.forceNarrowLayout)==null||!SW.call(v))},q=_.yl(function(){var SW;
return!((SW=v.centerAlignItems)==null||!SW.call(v))&&X()<=v3()},void 0,"DL81uf"),r=_.nI("horizontal-shelf-view-model"),h=_.nI("div"),K=_.a(_.OE(0,void 0,"xZFppf")),k=K.next().value,J=K.next().value;
K=_.a(_.OE(0,void 0,"pH9gvd"));var R=K.next().value,B=K.next().value,X=R;R=_.a(_.OE("",void 0,"oYcWy"));K=R.next().value;var Z=R.next().value;R=_.a(_.OE(0,void 0,"lI6NJb"));var U=R.next().value,F=R.next().value,g=U;R=_.a(_.OE(0,void 0,"yPqhW"));U=R.next().value;var Q=R.next().value,v3=U;R=_.a(_.OE(!1,void 0,"u4CvOe"));var q7=R.next().value,m0=R.next().value;R=_.a(_.OE(0,void 0,"oQOBbe"));U=R.next().value;var $S=R.next().value,kS=U;R=_.a(_.OE(0,void 0,"fCqgxd"));var N7=R.next().value,As=R.next().value;
R=_.a(_.OE("50%",void 0,"kjP5ke"));var Ct=R.next().value,SA=R.next().value,xI=function(){var SW,vc=(SW=v.data())==null?void 0:SW.responsiveContainerConfiguration,jA,Ys;return vc?QNU(vc==null?void 0:vc.responsiveSize):(Ys=(jA=v.sizing)==null?void 0:jA.call(v))!=null?Ys:"STANDARD"};
R=_.yl(function(){return!b()&&k()>0},void 0,"oVCO3d");
U=_.yl(function(){return!b()&&k()<X()-v3()},void 0,"MQ6Gb");
var mg=function(){J(d(k()-E()));e(k())},pt=function(){J(d(k()+E()));
e(k())},he=function(){r.value!==null&&te()},yB;
_.Gr(function(){te();window.ResizeObserver?(yB=new ResizeObserver(_.rI(he,0)),yB.observe(r.value)):window.addEventListener("resize",he)});
_.Jf(function(){if(window.ResizeObserver){var SW;(SW=yB)==null||SW.disconnect()}else window.removeEventListener("resize",he)});
var te=function(){var SW=r.value.clientWidth,vc=v.includeMargin!==void 0?v.includeMargin():!1,jA;var Ys=v.hasPeek!==void 0?v.hasPeek():!((jA=v.data())==null||!jA.hasPeek);SW=_.AX({containerWidth:SW,hasPeek:Ys,sizing:xI(),marginSettings:vc?Y()?4:1:0});$S(SW.gutter);As(SW.margin);F(SW.itemWidth);m0(SW.maxContainerWidth<528||Y());Q(SW.maxContainerWidth);T()&&B((SW.itemWidth+SW.gutter)*T().length-SW.gutter);if(T()){var s6;if(((s6=v.thumbnailAspectRatio)==null?void 0:s6.call(v))!==void 0){var es;SA(g()/
Uo7((es=v.thumbnailAspectRatio)==null?void 0:es.call(v))/2+"px")}else SA("50%")}},oC={},n7={};
return _.m("horizontal-shelf-view-model",{class:_.qe("ytwHorizontalShelfViewModelHost",v.className),el:r},_.m(_.y,{cond:function(){var SW;return v.data().header&&!((SW=v.horizontalShelfExperiments)==null?0:SW.call(v).hideHeader)},
then:function(){return _.m("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.jM({width:function(){return v3()+"px"},
padding:function(){return"0 "+N7()+"px"}})},_.m(_.kz,{data:function(){return v.data().header}},{sectionHeaderViewModel:function(SW){return _.m(_.mz,{data:SW.data,
disableHorizontalPadding:!0,forceSmallLayout:q7,useResponsiveLayout:!0})}}))}}),_.m("div",{class:_.qe("ytwHorizontalShelfViewModelOuterContainer",(oC.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return q()},oC)),
style:_.jM({"margin-top":function(){var SW,vc=v.data().header&&!((SW=v.horizontalShelfExperiments)==null?0:SW.call(v).hideHeader),jA;return(((jA=v.ensureMarginTop)==null?0:jA.call(v))&&!vc?12:0)+"px"}})},_.m("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.jM({width:function(){return v3()+"px"},
padding:function(){return"0 "+N7()+"px"},
overflow:function(){return b()?"auto":"hidden"}})},_.m("div",{class:_.qe("ytwHorizontalShelfViewModelItems",(n7.ytwHorizontalShelfViewModelCenterAlignItems=function(){return q()},n7)),
el:h,style:K},_.m(_.kz,{data:T},{macroMarkerListItemViewModel:function(SW,vc){return _.m("div",{style:_.jM({width:function(){return g()+"px"},
"margin-right":function(){return(vc()===T().length-1?0:kS())+"px"}})},_.m(mli,{data:SW.data,
palette:_.e2(v.palette),isLastItem:function(){return vc()===T().length-1}}))},
lockupViewModel:function(SW,vc){var jA=SW.data;return _.m("div",{style:_.jM({width:function(){return g()+"px"},
"margin-right":function(){return(vc()===T().length-1?0:kS())+"px"}})},_.m(_.Y8,{data:jA,
containerType:4,sizing:xI,protectBackground:v.protectBackground,thumbnailFixedWidth:function(){return yVt(jA())+"px"},
thumbnailTargetWidth:function(){return yVt(jA())}}))},
suspenseViewModel:function(SW,vc){return _.m("div",{style:_.jM({width:function(){return g()+"px"},
"margin-right":function(){return(vc()===T().length-1?0:kS())+"px"}})},_.m(YVg,{data:SW.data}))}}))),_.m(_.y,{cond:R,
then:function(){return _.m("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.jM({top:function(){return Ct()}})},_.m(_.kz,{data:S},{buttonViewModel:function(SW){return _.m(_.yi,{data:SW.data,
onClick:mg})}}))}}),_.m(_.y,{cond:U,
then:function(){return _.m("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.jM({top:function(){return Ct()}})},_.m(_.kz,{data:O},{buttonViewModel:function(SW){return _.m(_.yi,{data:SW.data,
onClick:pt})}}))}})))},"md");
_.lD.idomCompat=!0;var yKE=_.l(function(v){var e=function(){return v.data().targetId||""},d=function(){var R;
return((R=v.data())==null?void 0:R.expansionEntityKey)||""},E=_.Kv(_.l2,d),T=!0,S=function(){var R;
return((R=E())==null?void 0:R.value)===e()},O=function(R){_.vz(_.Lv("stringEntity",d(),{key:d(),
value:R?e():""}))};
_.JE(function(){T=!1;v.data().isExpanded&&O(!0)});
var b=function(){if(S()){var R=!0;v.onCollapse!==void 0&&(R=v.onCollapse());R&&O(!1)}else O(!0)},Y=_.rq(b),q=function(){var R;
return(((R=v.accordionStyle)==null?void 0:R.call(v))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},r=_.nI("div"),h=function(){var R,B;
return(B=(R=_.L(v.data().rendererContext,_.K6))==null?void 0:R.label)!=null?B:""},K=function(){var R,B;
return{disabled:(R=v.hideIfNotExpanded)==null?void 0:R.call(v),ariaHidden:(B=v.hideIfNotExpanded)==null?void 0:B.call(v)}},k={},J={};
return _.m("yt-accordion-item-view-model",{class:_.qe("ytAccordionItemViewModelHost",v.className,(k.ytAccordionItemViewModelExpanded=function(){return S()},k.ytAccordionItemViewModelHidden=function(){var R;
return(R=v.hideIfNotExpanded)==null?void 0:R.call(v)},k.ytAccordionItemViewModelMini=q,k)),
"data-target-id":e},_.m("div",{class:"ytAccordionItemViewModelContainer"},_.m("div",{class:"ytAccordionItemViewModelLeftSection","on:click":Y,title:h,"aria-hidden":function(){var R;return(R=v.hideIfNotExpanded)==null?void 0:R.call(v)}},_.m(_.Dh,{text:function(){return v.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:h})),_.m("div",{class:"ytAccordionItemViewModelRightSection"},_.m(_.kz,{data:function(){return S()?v.data().expandButton:v.data().collapseButton}},{buttonViewModel:function(R){return _.m(_.yi,{data:R.data,
className:"ytAccordionItemViewModelToggleButton",onClick:b,buttonOverrides:K})}}))),_.m("div",{class:"ytAccordionItemViewModelContainer"},_.m("div",{class:_.qe("ytAccordionItemViewModelContent",(J.ytAccordionItemViewModelExpandedSubtitle=function(){return S()},J)),
el:r,style:_.jM({"max-height":function(){return T?"auto":S()?r.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!S()}},_.m(_.y,{cond:function(){return!q()},
then:function(){return _.m(_.Dh,{text:function(){return v.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.m(_.kz,{data:function(){return v.data().content}},{horizontalShelfViewModel:function(R){return _.m(_.lD,{data:R.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"nd");_.qVc=_.l(function(v){var e=_.a((0,_.BMc)(v.data)).next().value,d=function(){return v.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},E=function(){return d()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},T=_.a(_.OE(!0,void 0,"FVec2e")),S=T.next().value,O=T.next().value,b=function(){return E()&&S()},Y=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){O(!S())}}},q=_.rq(function(){e().onTitleTap&&_.wC(e().onTitleTap||{})});
T={};return _.m("yt-accordion-view-model",{class:_.qe("ytAccordionViewModelHost",(T.ytAccordionViewModelMinimized=function(){return b()},T)),
"data-target-id":function(){return v.data().targetId||""}},_.m(_.y,{cond:function(){return E()||!!e().title},
then:function(){return _.m("div",{class:"ytAccordionViewModelHeader"},_.m("div",{class:"ytAccordionViewModelTitleSection"},_.m("div",{class:"ytAccordionViewModelTitleWrapper"},_.m(_.y,{cond:function(){return!!v.data().headerIcon},
then:function(){return _.m(_.sG,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var r;return(r=v.data().headerIcon)==null?void 0:r.iconType}})}}),_.m("div",{class:"ytAccordionViewModelTitle",
"on:click":q},_.m(_.Dh,{className:"ytAccordionViewModelTitleText",text:function(){return e().title}})))),_.m("div",{class:"ytAccordionViewModelButtonSection"},_.m(_.y,{cond:E,
then:function(){return _.m(_.mO,{data:Y,iconName:function(){return b()?"chevron_down":"chevron_collapse"}})}})))}}),_.m("div",{class:"ytAccordionViewModelContent"},_.m(_.kz,{data:function(){return e().contents}},{accordionItemViewModel:function(r){return _.m(yKE,{data:r.data,
className:"ytAccordionViewModelRow",accordionStyle:d,hideIfNotExpanded:b,onCollapse:function(){return E()?(O(!0),!1):!0}})}})),_.m("div",null,_.m(_.y,{cond:function(){return!E()&&(!!e().disclaimerFooter||!!e().footer)},
then:function(){return _.m("div",{class:"ytAccordionViewModelFooter"},_.m(_.Dh,{text:function(){return e().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.m(_.kz,{data:function(){return v.data().footer}},{flexibleActionsViewModel:function(r){return _.m(_.CE,{data:r.data,
layout:0})}}))}})))},"od");_.aZ(_.qVc,"yt-accordion-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=null,d=null,E,T=(E=_.dk().resolve(_.eG(_.n1)))==null?void 0:E(),S=_.a(_.OE(!1,void 0,"EVXQGb"));E=S.next().value;var O=S.next().value;S=_.a(_.OE(!0,void 0,"W9FIJf"));var b=S.next().value,Y=S.next().value,q=_.nI("textarea",function(B){_.kp(264503,B,e,function(X){e=X})}),r=function(B){O(!0);
B={learningJourneyFormData:{query:B}};_.wC(v.data().searchEndpoint||{},{form:{formData:B}});return!1},h=_.rq(function(B){B.target.closest("button-view-model")&&O(!0)});
S=_.rq(function(){Y(q.value.value.length===0)});
var K=_.rq(function(B){if(B.key==="Enter"&&!B.shiftKey&&!b()){var X=B.target;B.preventDefault();r(X.value)}}),k={},J={},R={};
return _.m("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.m("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.m(_.va,{data:function(){return v.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.m("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.m("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.m("div",{class:_.qe("ytLearningJourneyZeroStateSearchBar",(k.ytLearningJourneyZeroStateSearchBarDark=T,k))},_.m("textarea",{class:_.qe("ytLearningJourneyZeroStateTextInput",(J.ytLearningJourneyZeroStateTextInputDark=T,J)),el:q,"on:keyup":S,"on:keydown":K,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.m("div",{class:_.qe("ytLearningJourneyZeroStateSearchButtonContainer",(R.ytLearningJourneyZeroStateSearchButtonContainerDark=T,R))},_.m(_.yi,{data:function(){return _.L(v.data().searchButton,_.lx)},
className:"search-button",onClick:function(){return r(q.value.value)},
buttonOverrides:function(){return{disabled:b(),style:T?"mono-inverse":"mono",size:"XL"}}}))),_.m(_.y,{cond:function(){return!!v.data().errorBanner},
then:function(){return _.m("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.dq(function(B){_.kp(264617,B,d,function(X){d=X})})},_.m(_.kz,{data:function(){return v.data().errorBanner}},{alertBannerViewModel:function(B){return _.m(_.lQJ,{data:B.data,
"client-ve-type":264617})}}))}})),_.m(_.y,{cond:E,
then:function(){return _.m("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.m(_.kz,{data:function(){return v.data().loader}},{learningJourneyLoaderViewModel:function(B){return _.m(_.aDA,{data:B.data})}}))},
else:function(){return _.m("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.m(_.y,{cond:function(){return!!v.data().learningJourneyShelf},
then:function(){return _.m("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.m("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return v.data().learningJourneySectionTitle}),_.m(_.kz,{data:function(){return v.data().learningJourneyShelf}},{horizontalShelfViewModel:function(B){return _.m(_.lD,{data:B.data,
centerAlignItems:!0})}}))}}),_.m("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.m("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return v.data().suggestedJourneySectionTitle}),_.m("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":h},_.m(_.kz,{data:function(){return v.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(B){return _.m(_.CE,{data:B.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"pd"),"yt-learning-journey-zero-state",{props:{data:_.U1}});var rKn=_.l(function(v){var e=v.data;return _.m("ytvl-live-leaderboard-item-action-content-view-model",{class:_.qe("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.m(_.Dh,{text:function(){var d;return(d=e())==null?void 0:d.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.m(_.kz,{data:function(){return e().actionButton}},{buttonViewModel:function(d){return _.m(_.yi,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:d.data})}}))},"qd");var hmg=_.l(function(v){var e=v.data;return _.m("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.qe("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.m(_.Dh,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var d;return(d=e())==null?void 0:d.displayName},
ellipsisTruncate:!0}),_.m(_.kz,{data:function(){return e().badge}},{buttonViewModel:function(d){return _.m(_.yi,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:d.data})}}))},"rd");_.aZ(_.l(function(v){var e=v.data;return _.m("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.m("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.m(_.Dh,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var d;return(d=e())==null?void 0:d.rank}})),_.m("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.m(_.kz,{data:function(){return e().avatar}},{avatarViewModel:_.x7})),_.m("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.m(_.kz,{data:function(){return e().content}},{liveLeaderboardItemChannelContentViewModel:hmg,
liveLeaderboardItemActionContentViewModel:rKn})),_.m(_.Dh,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var d;return(d=e())==null?void 0:d.points}}))},"sd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;return _.m("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.m(_.Dh,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var d,E;return(d=e())==null?void 0:(E=d.ranking)==null?void 0:E.rank}}),_.m("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.m(_.kz,{data:function(){return e().avatar}},{avatarViewModel:_.x7})),_.m(_.Dh,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var d,E;return(d=e())==null?void 0:(E=d.channelContent)==null?void 0:E.channelName}}),_.m(_.Dh,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var d;return(d=e())==null?void 0:d.points}}))},"td"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.U1}});var KTi=_.l(function(v){v=_.dC(v,{wrapper:!1}).wrapper;return _.m(_.y,{cond:v,then:function(){return _.m("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.m("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.m("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"ud");
KTi.idomCompat=!0;var $lB=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],jpe=_.l(function(v){var e=v.data;var d=_.dq(),E=_.yl(function(){return e().command},void 0,"o6t5Yb");
_.o_(function(){E()&&_.Hz(E(),{form:{element:d.value}})},"qIHWLc");
return _.m("div",{el:d,class:"YtQrCodeRendererHostContainer"},_.m(_.y,{cond:function(){return e().qrCodeImage},
then:function(T){return _.m(_.va,{data:T,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.m(_.y,{cond:function(){return e().spinner},
then:function(){return _.m(KTi,null)}})}}),_.m(_.y,{cond:function(){return e().label},
then:function(T){return _.m(_.Dh,{text:T,className:"YtQrCodeRendererHostLabel"})}}),_.m(_.y,{cond:function(){return e().labels},
then:function(T){return _.m("div",{class:"YtQrCodeRendererHostLabels"},_.m(_.jI,{each:T},function(S){return _.m(_.Dh,{text:S})}))}}))},"wd");_.aZ(_.l(function(v){var e=v.data;var d=_.yl(function(){return e().qrEntityKey},void 0,"joYCxd"),E=_.yl(function(){return e().deleteEntityOnDismiss},void 0,"x3yAde"),T=_.yl(function(){return e().command},void 0,"dJe1Re"),S=_.Kv(c3M,d);
v=_.yl(function(){return e().qrCodeImage},void 0,"qM5dZe");
var O=_.yl(function(){return e().style&&$lB.includes(e().style)},void 0,"CaNEkf"),b=_.Eh({visibilityCallback:function(Y){Y&&T()&&_.Hz(T())},
showOption:{calledOnce:!0,state:"visible"}});_.Gr(function(){_.Jf(function(){E()&&d()&&_.pq().dispatch(_.Lv("qrCodeEntity",d()))})});
return _.m("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.dq(b)},_.m(_.y,{cond:O,then:function(){return _.m(_.y,{cond:S,then:function(Y){return _.m(jpe,{data:Y})}})}}),_.m(_.y,{cond:v,
then:function(Y){return _.m(_.va,{data:Y,alt:""})}}))},"vd"),"yt-qr-code-renderer",{props:{data:_.U1}});var NeI=_.l(function(v){var e=function(){return _.w1(1728053247&(v.barColor!==void 0?Kr(v.barColor()):4278190080))};
return _.m("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.m(spA,{animationDelay:0,percentWidth:100,barColor:function(){return e()}}),_.m("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.m("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+e()}})),_.m(spA,{animationDelay:0,
percentWidth:100,barColor:function(){return e()}}),_.m(spA,{animationDelay:600,
percentWidth:60,barColor:function(){return e()}}))},"xd"),spA=_.l(function(v){return _.m("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+v.percentWidth()+"%"}},_.m("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var e=v.animationDelay(),d=v.barColor();return"animation-delay:"+e+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+d+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"yd");var kAn;_.LT2=_.l(function(v){function e(B){O(B)}
var d=v.data;var E=_.nI("yt-video-overview-view-model"),T=_.Dq("div");v=_.a(_.OE(-1,void 0,"x5g1Ze"));var S=v.next().value,O=v.next().value;v=_.a(_.OE(0,void 0,"dDbW8"));var b=v.next().value,Y=v.next().value,q={},r=_.Kv(qBs,function(){return d().asyncDataEntityKey}),h=function(){var B;
if((B=r())==null?0:B.videoOverviewViewModel){var X;return _.L((X=r())==null?void 0:X.videoOverviewViewModel,QiI)}return d()};
_.Gr(function(){Y(Math.min((E.value.clientWidth-24)/4-8,72))});
var K=function(B){O(B);(T==null?0:T.value)&&T.value.children[B]&&T.value.children[B].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
PJ$(E,function(){var B;if((B=h())==null||!B.inlinePlaybackEndpoint)return null;var X;B=q==null?void 0:(X=q.thumbnailElRef)==null?void 0:X.value;if(!B)return null;var Z;X=(Z=h())==null?void 0:Z.inlinePlaybackEndpoint;Z=_.L(X,zYe);return{multipleVideoPreviewData:{data:(Z==null?0:Z.playerDescriptors)&&(Z==null?0:Z.playerDescriptors.length)?Z.playerDescriptors:[],thumbnailElement:B,trackingParams:"test",callbacks:{onPlaybackStarted:K},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var k=function(){var B;return((B=h())==null?void 0:B.headerSubtext)!==void 0?!0:!1},J=function(){var B,X=Kr((B=h())==null?void 0:B.titleColor);
return X?"color: "+_.w1(X)+";":void 0},R=function(){var B,X=Kr((B=h())==null?void 0:B.subtextColor);
return X?"color: "+_.w1(X)+";":void 0};
return _.m("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:E,style:function(){var B,X=Kr((B=h())==null?void 0:B.backgroundColor);return X?"background-color: "+_.w1(X)+";":void 0}},_.m(_.y,{cond:function(){var B;
return(B=h())==null?void 0:B.isLoading},
then:function(){return _.m(NeI,{barColor:function(){var B;return(B=h())==null?void 0:B.titleColor}})},
else:function(){return _.m(_.eI,null,_.m("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.m("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return J()}},_.m(_.Dh,{text:function(){var B;
return(B=h())==null?void 0:B.headerText}})),_.m(_.y,{cond:k,
then:function(){return _.m("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.m("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return R()}},_.m(_.sG,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.m("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return R()}},_.m(_.Dh,{text:function(){var B;
return(B=h())==null?void 0:B.headerSubtext}})))}})),_.m("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.m(_.kz,{data:function(){var B;
return(B=h())==null?void 0:B.thumbnail}},{thumbnailViewModel:function(B){return _.m(_.dJ,{data:B.data,
aspectRatio:0,playbackRef:fAt(q)})}})),_.m(_.y,{cond:function(){var B,X,Z,U;
return((B=h())==null?void 0:(X=B.listItems)==null?void 0:X.length)!==void 0&&((Z=h())==null?void 0:(U=Z.listItems)==null?void 0:U.length)>0?!0:!1},
then:function(){return _.m("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:T},_.m(_.jI,{each:function(){var B;return(B=h())==null?void 0:B.listItems}},function(B,X){return _.m(kAn,{image:B.image,
index:X,isSelected:function(){return X()===S()},
onClick:e,itemWidth:b})}))}}),_.m("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.m("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return J()}},_.m(_.Dh,{text:function(){var B,X,Z,U,F,g,Q;
return(Q=(B=h())==null?void 0:(X=B.listItems)==null?void 0:(Z=X[S()])==null?void 0:Z.headline)!=null?Q:(U=h())==null?void 0:(F=U.listItems)==null?void 0:(g=F[0])==null?void 0:g.headline}})),_.m("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return R()}},_.m(_.Dh,{text:function(){var B,X,Z,U,F,g,Q;
return(Q=(B=h())==null?void 0:(X=B.listItems)==null?void 0:(Z=X[S()])==null?void 0:Z.subtext)!=null?Q:(U=h())==null?void 0:(F=U.listItems)==null?void 0:(g=F[0])==null?void 0:g.subtext}}))))}}))},"zd");
kAn=_.l(function(v){var e=v.image;var d=v.itemWidth;var E=v.index;var T=v.isSelected;var S=v.onClick;v=_.rq(function(){E!==void 0&&S!==void 0&&S(E());return!1});
var O={};return _.m("div",{class:_.qe("ytGenAiVideoOverviewViewModelCarouselItem",(O.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return T==null?void 0:T()},O)),
style:function(){return"width: "+d()+"px;"},
"on:click":v},_.m(_.va,{data:e,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.m(_.y,{cond:function(){return T==null?void 0:T()},
then:function(){return _.m("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.m("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ad");
_.LT2.idomCompat=!0;_.aZ(_.LT2,"yt-video-overview-view-model",{props:{data:_.U1}});_.VCI=_.l(function(v){var e=v.data;var d=v.topbarOffset;var E,T=((E=_.dk().resolve(_.eG(_.n1)))==null?void 0:E())||!1;return _.m("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var S=e();var O,b,Y=T?(O=S.config)==null?void 0:O.darkThemeBackgroundColor:(b=S.config)==null?void 0:b.lightThemeBackgroundColor;S=Y?_.cv(Y):void 0;S="background-color: "+S+";";d!==void 0&&(S+="top: -"+d()+"px;");return S},
"aria-hidden":!0},_.m(_.y,{cond:function(){var S,O,b;return!!((S=e().backgroundImageConfig)==null?0:(O=S.image)==null?0:(b=O.sources)==null?0:b.length)},
then:function(){return _.m(_.va,{data:function(){var S;return(S=e().backgroundImageConfig)==null?void 0:S.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.m("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+rV0(T,e().gradientColorConfig)+";"}}))},"Bd");
_.VCI.idomCompat=!0;var He=_.l(function(v){var e=v.className;var d=v.data;var E=v.isOverlay;var T=v.maxLinesOverride;var S=v.useMediumText;var O=function(){return d().alwaysShowTruncationText},b=function(){return d().truncationText},Y=function(){return S!==void 0&&S()?"medium":"small"},q=function(){return E!==void 0&&E()?"overlay":"default"},r=function(){var J,R;
return(R=(J=_.L(d().rendererContext,_.K6))==null?void 0:J.label)!=null?R:""};
v=_.a(_.OE(!1,void 0,"xVwzHf"));var h=v.next().value,K=v.next().value;v=_.rq(function(){d().expandOnTap&&K(!h());return!1});
var k={};return _.m("yt-description-preview-view-model",{el:_.dq(_.B5(function(){return d().rendererContext})),
class:_.qe("yt-description-preview-view-model-wiz",e,(k["yt-description-preview-view-model-wiz--clickable"]=function(){var J;return!((J=_.L(d().rendererContext,ONW))==null||!J.onTap)},k["yt-description-preview-view-model-wiz--is-overlay"]=E,k)),
"on:click":v},_.m(_.y,{cond:function(){return d().description},
then:function(J){return _.m(_.y,{cond:h,then:function(){var R={};return _.m("div",{class:_.qe("yt-description-preview-view-model-wiz__description",(R["yt-description-preview-view-model-wiz__description--medium-text"]=S,R))},_.m(_.Dh,{text:J}))},
else:function(){return _.m(BS0,{text:J,alwaysShowTruncationText:O,truncationText:b,maxLines:function(){var R;return(R=T==null?void 0:T())!=null?R:d().maxLines},
textStyle:q,accessibilityLabel:r,textSize:Y})}})}}))},"Cd");
He.idomCompat=!0;var oCI=_.l(function(v){var e=v.data;var d=v.isOverlay;return _.m("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.m("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.m(_.kz,{data:function(){return e().header}},{sectionHeaderViewModel:function(E){return _.m(_.mz,{data:E.data,
isOverlay:d})}})),_.m("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.m(_.kz,{data:function(){return e().channelInfoButtons}},{flexibleActionsViewModel:_.CE})),_.m("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.m(_.kz,{data:function(){return e().description}},{descriptionPreviewViewModel:function(E){return _.m(He,{data:E.data,
isOverlay:d})}})))},"Dd");
oCI.idomCompat=!0;var JKB=_.l(function(v){var e=v.data;var d={};return _.m("factoid-view-model",{class:_.qe("ytwFactoidViewModelHost",(d.ytwFactoidViewModelHostOverlay=v.isOverlay,d))},_.m(_.Dh,{text:function(){return e().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.m(_.Dh,{text:function(){return e().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ed");
JKB.idomCompat=!0;var GAg=_.l(function(v){var e=v.data;var d=v.isOverlay;return _.m("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.m(_.kz,{data:function(){return e().factoids}},{factoidViewModel:function(E){return _.m(JKB,{data:E.data,
isOverlay:d})}}))},"Fd");
GAg.idomCompat=!0;_.MC2=_.l(function(v){var e=v.data;var d=v.isOverlay;return _.m("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.m(_.kz,{data:function(){return e().items}},{channelInfoViewModel:function(E){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(oCI,{data:E.data,
isOverlay:d}))},
coursePerksViewModel:function(E){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(ECM,{data:E.data,isOverlay:d}))},
descriptionPreviewViewModel:function(E){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(He,{data:E.data,isOverlay:d}))},
factoidsRowViewModel:function(E){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(GAg,{data:E.data,isOverlay:d}))},
progressViewModel:function(E){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(Te2,{data:E.data,isOverlay:d}))}}))},"Gd");var tCJ=_.l(function(v){return _.m("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.m(_.kz,{data:function(){return v.data().content}},{courseMetadataViewModel:function(e){return _.m(_.MC2,{data:e.data,
isOverlay:v.isOverlay})},
progressViewModel:function(e){return _.m(Te2,{data:e.data})}}))},"Hd");var fD6=_.l(function(v){var e=v.data;v=v.className;var d=function(){var T;return _.xz((T=e())==null?void 0:T.rendererContext)},E={};
E=(E.dynamicTextViewModelHost=!0,E.dynamicTextViewModelHostTappable=function(){return d()},E);
return _.m("yt-dynamic-text-view-model",{el:_.dq(_.B5(function(){var T;return(T=e())==null?void 0:T.rendererContext})),
role:function(){return d()?"link":void 0},
tabindex:function(){return d()?0:void 0},
class:_.qe(v,E)},_.m("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var T,S,O;return(O=(S=_.L((T=e())==null?void 0:T.rendererContext,_.K6))==null?void 0:S.label)!=null?O:""}},_.m(_.Dh,{text:function(){return e().text},
userInput:!0})))},"Id");
fD6.idomCompat=!0;_.AH=_.l(function(v){var e=v.data;var d=v.isPositionRelative;var E=_.KyH("(max-width: 527.9px)"),T=function(){var S,O;return(O=(S=e())==null?void 0:S.style)!=null?O:"IMAGE_BANNER_STYLE_FULL_BLEED"};
v={};return _.m("yt-image-banner-view-model",{el:_.dq(_.B5(function(){var S;return(S=e())==null?void 0:S.rendererContext})),
class:_.qe((v.ytImageBannerViewModelHost=!0,v.ytImageBannerViewModelInset=function(){return $cL(T())},v.ytImageBannerViewModelPositionAbsolute=function(){return _.M4(!0)&&!(d==null?0:d())},v.ytImageBannerViewModelSmallInset=function(){return $cL(T())&&E()},v.ytImageBannerViewModelTappable=function(){var S;
return _.xz((S=e())==null?void 0:S.rendererContext)},v))},_.m(_.y,{cond:function(){var S;
return(S=e())==null?void 0:S.image},
then:function(){return _.m(_.va,{data:function(){return e().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.m(_.kz,{data:function(){var S;
return(S=e())==null?void 0:S.overlays}},{thumbnailHoverOverlayViewModel:Py}))},"Jd");
_.AH.idomCompat=!0;var RmB;RmB=_.l(function(v){var e=v.condition;var d=v.content;return _.m(_.y,{cond:e,then:function(){return _.m("div",{class:"page-header-view-model-wiz__scroll-container"},d())},
else:function(){return d()}})},"Kd");
_.P86=_.l(function(v){var e=v.data;var d=v.noPadding;var E=v.enableBanner;var T=v.cinematicContainerTopbarOffset;var S=v.allowCinematicContainerOverflow;var O=v.displayAsSidebar;var b=v.displayAsPanel;var Y=v.alwaysUseMediumTextDescription;var q=jQO(),r=function(){return!!e().image||!!e().animatedImage},h=function(){return!!e().background},K=function(){return(O==null?0:O())||(b==null?0:b())?1:q()},k=function(){return K()===1},J=function(){return k()||K()===2},R=function(){return K()===4},B=function(){var N7=
e();
var As=!!e().heroImage;var Ct=K(),SA=sQ$(e()),xI=O==null?void 0:O(),mg=!N7.metadata,pt;if(pt=As?_.L(N7.heroImage,Xl6):_.L(N7.animatedImage||N7.image,Xl6)){N7=pt.style;var he=pt.layoutMode;if(he!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(pt=auW(WAO(pt)),As)As=hE0(Ct,N7,he,pt,xI);else b:if(mg)As=Ct===1?{size:48}:{size:72};else switch(Ct){case 1:As={size:72};break b;case 2:As={size:120};break b;default:As=SA<4?{size:120}:{size:160}}else As=void 0}else As={size:0};return As};
v={};v=_.qe((v["page-header-view-model-wiz"]=!0,v["page-header-view-model-wiz--no-padding"]=function(){return!(d==null||!d())},v["page-header-view-model-wiz--small-top-padding"]=function(){return k()&&!e().actions&&!(b==null?0:b())||K()===2&&!(r()||e().heroImage)},v["page-header-view-model-wiz--small-bottom-padding"]=function(){return J()&&!e().actions&&!(b==null?0:b())},v["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(S==null?0:S())},v["page-header-view-model-wiz--display-as-sidebar"]=
O,v));
var X={},Z=_.qe((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 N7;return(N7=B())==null?void 0:N7.allowFullWidth},X)),U=function(){var N7;
return J()&&!((N7=B())==null?0:N7.allowFullWidth)},F=function(){return k()&&(!!e().heroImage||r())&&sQ$(e())>0},g=function(){return F()&&(b==null?void 0:b())};
X={};var Q=_.qe((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!F()},X["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return F()&&!g()},X["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=g,X["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=h,X));
X={};var v3=_.qe((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!!e().heroImage&&J()},X));
X={};var q7=_.qe((X["page-header-view-model-wiz__page-header-banner-container"]=E,X["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var N7;return(E==null?void 0:E())&&((N7=_.L(e().banner,_.lhn))==null?void 0:N7.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},X));
X={};var m0=_.qe((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"]=h,X));X={};var $S=_.qe((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!!e().metadata||J()},X["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!J()},X));
X={};var kS=_.qe((X["page-header-view-model-wiz__page-header-attribution"]=!0,X["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=h,X));return _.m("yt-page-header-view-model",{class:v},_.m(_.y,{cond:h,then:function(){return _.m("div",{class:"page-header-view-model-wiz__page-header-background"},_.m(_.kz,{data:function(){return e().background}},{cinematicContainerViewModel:function(N7){return _.m(_.VCI,{data:N7.data,
topbarOffset:T})}}))}}),_.m(RmB,{condition:function(){return!(O==null||!O())},
content:function(){return _.m("div",{class:"page-header-view-model-wiz__page-header-content"},_.m(_.y,{cond:function(){return(E==null?void 0:E())&&e().banner},
then:function(){return _.m("div",{class:q7},_.m(_.kz,{data:function(){return e().banner}},{imageBannerViewModel:_.AH}))}}),_.m("div",{class:Z},_.m(_.y,{cond:r,
then:function(){return _.m(_.kz,{data:function(){var N7;if(!(N7=e().animatedImage)){N7=e();if(r()){var As=N7=Object.assign({},N7),Ct=K(),SA=sQ$(e()),xI=As.image,mg=_.L(xI,zrJ),pt=mg==null?void 0:mg.avatar,he=_.L(pt,_.Cv);if(xI&&pt&&he){switch(Ct){case 1:he.avatarImageSize="AVATAR_SIZE_XL";break;case 2:he.avatarImageSize="AVATAR_SIZE_XXL";break;default:SA<4?he.avatarImageSize="AVATAR_SIZE_XXL":he.avatarImageSize="AVATAR_SIZE_XXXL"}_.xJ(pt,_.Cv,Object.assign({},he));mg.avatar=Object.assign({},pt);_.xJ(xI,
zrJ,Object.assign({},mg));As.image=Object.assign({},xI)}}N7=N7.image}return N7}},{contentPreviewImageViewModel:function(N7){return _.m(_.a3,{data:N7.data,
className:v3,imageSizeConfig:B})},
decoratedAvatarViewModel:function(N7){return _.m(_.By,{data:N7.data,className:v3})}})}}),_.m(_.y,{cond:function(){return!!e().heroImage&&!U()},
then:function(){return _.m(_.kz,{data:function(){return e().heroImage}},{contentPreviewImageViewModel:function(N7){return _.m(_.a3,{data:N7.data,
className:v3,imageSizeConfig:B})}})}}),_.m("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.m(_.y,{cond:function(){return!!e().heroImage&&U()},
then:function(){return _.m("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.m(_.kz,{data:function(){return e().heroImage}},{contentPreviewImageViewModel:function(N7){return _.m(_.a3,{data:N7.data,
className:v3,imageSizeConfig:B})}}))}}),_.m(_.kz,{data:function(){return e().title}},{dynamicTextViewModel:function(N7){return _.m(fD6,{data:N7.data,
className:Q})}}),_.m(_.kz,{data:function(){return e().metadata}},{contentMetadataViewModel:function(N7){return _.m(_.i5,{data:N7.data,
layout:function(){return k()?1:0},
className:m0,isOverlay:h,useMediumText:R})}}),_.m(_.y,{cond:function(){return e().description&&!k()},
then:function(){return _.m(_.kz,{data:function(){return e().description}},{descriptionPreviewViewModel:function(N7){return _.m(He,{data:N7.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:h,maxLinesOverride:function(){return k()?void 0:1},
useMediumText:function(){return(Y==null?void 0:Y())||R()}})}})}}),_.m(_.y,{cond:function(){return e().attribution&&!J()},
then:function(){return _.m(_.kz,{data:function(){return e().attribution}},{attributionViewModel:function(N7){return _.m($zI,{data:N7.data,
className:kS,useMediumText:R})}})}}),_.m(_.y,{cond:function(){return e().actions&&!J()},
then:function(){return _.m(_.kz,{data:function(){return e().actions}},{flexibleActionsViewModel:function(N7){return _.m(_.CE,{data:N7.data,
layout:function(){return NUW(K())},
className:$S})}})}}))),_.m("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.m(_.y,{cond:function(){return e().description&&k()},
then:function(){return _.m(_.kz,{data:function(){return e().description}},{descriptionPreviewViewModel:function(N7){return _.m(He,{data:N7.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:h,maxLinesOverride:function(){return k()?void 0:1},
useMediumText:function(){return(Y==null?void 0:Y())||R()}})}})}}),_.m(_.y,{cond:function(){return e().attribution&&J()},
then:function(){return _.m(_.kz,{data:function(){return e().attribution}},{attributionViewModel:function(N7){return _.m($zI,{data:N7.data,
className:kS,useMediumText:R})}})}}),_.m(_.y,{cond:function(){return e().actions&&J()},
then:function(){return _.m(_.kz,{data:function(){return e().actions}},{flexibleActionsViewModel:function(N7){return _.m(_.CE,{data:N7.data,
layout:function(){return NUW(K())},
className:$S})}})}})),_.m("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.m(_.kz,{data:function(){return e().bottomMetadataFlexibleContainer}},{flexibleContainer:function(N7){return _.m(tCJ,{data:N7.data,
isOverlay:h})}})))}}))},"Ld");
_.P86.idomCompat=!0;_.aZ(_.l(function(v){var e=_.a(_.OE(!1,void 0,"j5qbkc")),d=e.next().value,E=e.next().value;return _.m("yt-official-card-view-model",{class:_.qe("ytOfficialCardViewModelHost",v.className),style:_.jM({"background-color":function(){var T,S=Kr((T=v.data())==null?void 0:T.backgroundColor);return S?_.w1(S):void 0}})},_.m(_.kz,{data:function(){return v.data().header}},{pageHeaderViewModel:function(T){return _.m(_.P86,{data:T.data,
noPadding:!0})}}),_.m(_.kz,{data:function(){return v.data().contents}},{horizontalShelfViewModel:function(T){return _.m(_.lD,{data:T.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.m(_.y,{cond:d,
then:function(){return _.m("div",{class:"ytOfficialCardViewModelExpandedContent"},_.m(_.kz,{data:function(){return v.data().expandedContents}},{horizontalShelfViewModel:function(T){return _.m(_.lD,{data:T.data,
sizing:"MINI"})}}),_.m("div",{class:"ytOfficialCardViewModelCollapseButton"},_.m(_.kz,{data:function(){return v.data().collapseButton}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data,
onClick:function(){E(!d())}})}})))},
else:function(){return _.m("div",{class:"ytOfficialCardViewModelExpandButton"},_.m(_.kz,{data:function(){return v.data().expandButton}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data,
onClick:function(){E(!d())}})}}))}}))},"Md"),"yt-official-card-view-model",{props:{data:_.U1,
className:_.U1}});var xlu=_.l(function(v){var e,d=(e=_.dk().resolve(_.eG(_.n1)))==null?void 0:e();return _.m("ytw-search-friction-view-model",{class:_.qe("ytwSearchFrictionViewModelHost",v.className)},_.m("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.m("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.m(_.y,{cond:function(){return d&&v.data().darkThemeImage?v.data().darkThemeImage:v.data().image},
then:function(E){return _.m(_.va,{data:E,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.m(_.kz,{data:function(){return v.data().overflowMenuButton}},{buttonViewModel:function(E){return _.m(_.yi,{data:E.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.m(_.Dh,{text:function(){return v.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.m(_.jI,{each:function(){return v.data().bodyText||[]}},function(E){return _.m(_.Dh,{text:E,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.m(_.kz,{data:function(){return v.data().actions}},{buttonViewModel:function(E){return _.m(_.yi,{data:E.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.m(_.Dh,{text:function(){return v.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.m(_.Dh,{text:function(){return v.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Nd");
xlu.idomCompat=!0;_.aZ(xlu,"ytw-search-friction-view-model",{props:{data:_.U1,className:_.U1}});_.ZU=_.l(function(v){var e=_.nI("markdown-div"),d,E=(d=_.dk().resolve(_.eG(_.n1)))==null?void 0:d();_.o_(function(){var T=e.value;var S=new oIM,O=new Map(S.JSC$9292_sanitizerTable.globalAttributePolicies);O.set("style",{policyAction:4});S.JSC$9292_sanitizerTable=new hZ(S.JSC$9292_sanitizerTable.allowedElements,S.JSC$9292_sanitizerTable.elementPolicies,S.JSC$9292_sanitizerTable.allowedGlobalAttributes,O,S.JSC$9292_sanitizerTable.globallyAllowedAttributePrefixes);var b=["data-time"];if(b===void 0)O=
new Set(S.JSC$9292_sanitizerTable.globallyAllowedAttributePrefixes),O.add("data-"),S.JSC$9292_sanitizerTable=new hZ(S.JSC$9292_sanitizerTable.allowedElements,S.JSC$9292_sanitizerTable.elementPolicies,S.JSC$9292_sanitizerTable.allowedGlobalAttributes,S.JSC$9292_sanitizerTable.globalAttributePolicies,O);else{O=new Set(S.JSC$9292_sanitizerTable.allowedGlobalAttributes);b=_.a(b);for(var Y=b.next();!Y.done;Y=b.next()){Y=Y.value;if(Y.indexOf("data-")!==0)throw Error("ma`"+Y);O.add(Y)}S.JSC$9292_sanitizerTable=
new hZ(S.JSC$9292_sanitizerTable.allowedElements,S.JSC$9292_sanitizerTable.elementPolicies,O,S.JSC$9292_sanitizerTable.globalAttributePolicies,S.JSC$9292_sanitizerTable.globallyAllowedAttributePrefixes)}O=new Set(S.JSC$9292_sanitizerTable.allowedGlobalAttributes);O.add("class");S.JSC$9292_sanitizerTable=new hZ(S.JSC$9292_sanitizerTable.allowedElements,S.JSC$9292_sanitizerTable.elementPolicies,O,S.JSC$9292_sanitizerTable.globalAttributePolicies,S.JSC$9292_sanitizerTable.globallyAllowedAttributePrefixes);
_.UJ(T,_.sEc(S.build(),Lys(v.text())));VRj(e.value)},"nk5Hce");
d={};return _.m("div",null,_.m("markdown-div",{class:_.qe("ytwMarkdownDivHost",(d.ytwMarkdownDivDark=E,d.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var T;return((T=v.isSmallText)==null?void 0:T.call(v))||!1},d.ytwMarkdownDivHostWrapCodeBlocks=function(){var T;
return((T=v.wrapCodeBlocks)==null?void 0:T.call(v))||!1},d.ytwMarkdownDivHostEnableDefaultStyling=function(){var T;
return!((T=v.disableDefaultStyling)==null?0:T.call(v))},d)),
el:e}))},"Od");
_.ZU.idomCompat=!0;var Beg=_.l(function(v){var e=v.imageData;var d=_.e2(v.isInList,!1),E=function(){return d()?{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 _.m("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.m(_.y,{cond:function(){return e().image},
then:function(T){return _.m(_.va,{data:T,alt:function(){return E().alt},
contentMode:function(){return E().contentMode},
targetWidth:function(){return E().targetWidth},
targetHeight:function(){return E().targetHeight},
className:function(){return E().className}})}}),_.m("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.m("div",{class:_.qe("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.m(_.Dh,{text:function(){return e().title}})),_.m(_.jI,{each:function(){var T;
return(T=e().description)!=null?T:[]}},function(T){return _.m("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.m(ce,{content:T}))})))},"Pd"),C82=_.l(function(v){var e=v.list;
var d=function(){var E;return(E=e().items)!=null?E:[]};
return _.m("div",{class:"ytwGenAiRichTextViewModelListContent"},_.m(_.y,{cond:function(){return e().title},
then:function(E){return _.m("div",{class:_.qe("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.m(_.Dh,{text:E}))}}),_.m(_.y,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.m("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.m(_.jI,{each:d},function(E){return _.m("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.m(ce,{content:E,isInList:!0}))}))}}),_.m(_.y,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.m("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.m(_.jI,{each:d},function(E){return _.m("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.m(ce,{content:E,isInList:!0}))}))}}),_.m(_.y,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.m("div",{class:"ytwGenAiRichTextViewModelImageList"},_.m(_.jI,{each:d},function(E){return _.m("div",{class:"ytwGenAiRichTextViewModelListItem"},_.m(ce,{content:E,isInList:!0}))}))}}))},"Qd"),XTI=_.l(function(v){var e=v.table;
return _.m("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.m("thead",null,_.m("tr",null,_.m(_.jI,{each:function(){var d,E;return(E=(d=e().header)==null?void 0:d.cells)!=null?E:[]}},function(d){return _.m("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.m(_.jI,{each:function(){return d.contents}},function(E){return _.m(ce,{content:E})}))}))),_.m("tbody",null,_.m(_.jI,{each:function(){var d;
return(d=e().rows)!=null?d:[]}},function(d){return _.m("tr",null,_.m(_.jI,{each:function(){return d.cells}},function(E){return _.m("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.m(_.jI,{each:function(){return E.contents}},function(T){return _.m(ce,{content:T})}))}))})))},"Rd"),ce=_.l(function(v){var e=v.content;
var d=_.e2(v.isInList,!1),E=function(){var T,S;return(S=(T=e().contentBlock)==null?void 0:T.contents)!=null?S:[]};
return _.m("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.m(_.y,{cond:function(){return e().text},
then:function(T){return _.m(_.Dh,{className:"ytwGenAiRichTextViewModelText",text:T})}}),_.m(_.y,{cond:function(){return e().image},
then:function(T){return _.m(Beg,{imageData:T,isInList:d})}}),_.m(_.y,{cond:function(){return e().list},
then:function(T){return _.m(C82,{list:T})}}),_.m(_.y,{cond:function(){return e().contentBlock},
then:function(){return _.m("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.m(_.jI,{each:E},function(T){return _.m(ce,{content:T,isInList:!1})}))}}),_.m(_.y,{cond:function(){return e().table},
then:function(T){return _.m(XTI,{table:T})}}))},"Sd"),zmn=_.l(function(v){var e={};
e=_.tX("ytwGenAiRichTextViewModelHost",(e.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.aH("search_overview_link_style")),e));return _.m("gen-ai-rich-text-view-model",{class:e},_.m(ce,{content:function(){return v.data().content}}))},"Td");_.lDM=_.l(function(v){var e=v.data;var d=function(){var R;return((R=e().loadingUi)!=null?R:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},E=function(){return e().isLoading&&(d()==="UNSPECIFIED"||d()==="GHOST_CARD")},T=function(){return!e().isLoading},S=function(){return!!e().content&&!e().contents},O=function(){return!!e().contents},b=function(){return!!e().nextQueryButtons},Y=function(){return e().isLoading&&d()==="INVISIBLE"},q=function(){var R,B;
return(B=(R=e().headerIcon)==null?void 0:R.iconType)!=null?B:""},r=function(){var R;
return(R=e().content)!=null?R:""},h=function(){return!!e().sourcesSection},K,k=!((K=_.dk().resolve(_.eG(_.n1)))==null||!K()),J=_.yl(function(){var R=[],B=e().contents;
if(B)for(var X=0;X<B.length;X++){var Z=_.L(B&&B[X],F42);Z&&R.push(Z)}return R},void 0,"ycU97e");
_.Gr(function(){e().isLoading||_.zE("so_re",void 0,"search_overview_answer")});
return _.m("ytd-overview-answer-view-model",{class:function(){var R={};R=(R.ytdOverviewAnswerViewModelHost=!0,R.ytdOverviewAnswerViewModelDarkBackground=k&&!Y(),R.ytdOverviewAnswerViewModelLightBackground=!k&&!Y(),R);return _.tX(R)}},_.m(_.y,{cond:function(){return!Y()},
then:function(){return _.m(_.eI,null,_.m("h2",null,_.m("div",{class:"ytdOverviewAnswerViewModelHeader"},_.m(_.y,{cond:q,then:function(R){return _.m("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.m(_.sG,{icon:R}))}}),_.m("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.m("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return e().headerText}),_.m("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.m(_.Dh,{text:function(){return e().headerSubtext}}))))),_.m(_.y,{cond:E,
then:function(){return _.m(ott,null)}}),_.m(_.y,{cond:T,
then:function(){return _.m(_.eI,null,_.m(_.y,{cond:S,then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelText"},_.m(_.ZU,{text:r,isSmallText:!0}))}}),_.m(_.y,{cond:O,
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelRichText"},_.m(_.jI,{each:J},function(R){return _.m(zmn,{data:R})}))}}),_.m(_.y,{cond:b,
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.m(_.kz,{data:function(){return e().nextQueryButtons}},{buttonViewModel:function(R){return _.m(_.yi,{data:R.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.lD}))}}),_.m("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.m("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.m(_.y,{cond:function(){return!!_.L(e().likeButtonViewModel,_.ty)&&!!_.L(e().dislikeButtonViewModel,_.M5)},
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.m(_.zT,{data:function(){return _.L(e().likeButtonViewModel,_.ty)},
disableIconAnimation:!0}),_.m(_.XU,{data:function(){return _.L(e().dislikeButtonViewModel,_.M5)}}))}})),_.m(_.y,{cond:function(){var R;
return(R=e().sourcesSection)==null?void 0:R.headerText},
then:function(R){return _.m("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.m(_.Dh,{text:R}))}})),_.m(_.y,{cond:h,
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelSources"},_.m(_.kz,{data:function(){var R;return(R=e().sourcesSection)==null?void 0:R.sourcesShelf}},{buttonViewModel:_.yi,
horizontalShelfViewModel:function(R){return _.m(_.lD,{data:R.data,includeMargin:!0,hasPeek:!0})}}))}}),_.m(_.y,{cond:function(){return e().disclaimerText},
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.m(_.Dh,{text:function(){return e().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Ud");var Hi6=_.l(function(v){var e=v.data;var d=v.active;var E=_.nI("transcript-segment-view-model");_.o_(function(){var T,S,O,b=((T=_.dk().resolve(_.eG(_.n1)))==null?0:T())?(S=e())==null?void 0:S.darkThemeColorPalette:(O=e())==null?void 0:O.lightThemeColorPalette;b&&(b.additiveBackground&&E.value.style.setProperty("--timestamp-active-background-color",_.w1(b.additiveBackground)),b.textSecondary&&E.value.style.setProperty("--timestamp-active-color",_.cv(b.textSecondary)))},"KHcbwb");
v={};return _.m("transcript-segment-view-model",{class:_.qe("ytwTranscriptSegmentViewModelHost",(v.ytwTranscriptSegmentViewModelHostActive=d,v.ytwTranscriptSegmentViewModelHostModern=_.N("enable_timeline_view_modern_transcript")||_.N("enable_timeline_view_modern_transcript_fe"),v)),el:E},_.m(_.y,{cond:function(){var T;return(T=e())==null?void 0:T.timestamp},
then:function(T){var S={};return _.m("div",{class:_.qe("ytwTranscriptSegmentViewModelTimestamp",(S.ytwTranscriptSegmentViewModelTimestampActive=d,S))},T)}}),_.m(_.Dh,{text:function(){var T,S,O;
return(O=(T=e())==null?void 0:T.attributedText)!=null?O:{content:(S=e())==null?void 0:S.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Vd");var AKn=_.l(function(v){var e=v.data;return _.m("div",{class:"videoAttributesSectionViewModelHeader"},_.m("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.m("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return e().headerTitle}),_.m(_.y,{cond:function(){return e().headerInfoButton},
then:function(){return _.m(_.kz,{data:function(){return e().headerInfoButton}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.m(_.y,{cond:function(){return e().headerSubtitle},
then:function(){return _.m("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return e().headerSubtitle})}}))},"Wd"),ZiM=_.l(function(v){function e(R){return Math.max(Math.min(R,0),q()-b())}
var d=v.data;var E;v=_.nI("div",function(R){var B=function(){r(R.clientWidth)};
B();window.ResizeObserver&&(E=new ResizeObserver(B),E.observe(R))});
var T=_.nI("div",function(R){Y(R.scrollWidth)}),S=_.a(_.OE(0,void 0,"C3XQAe")),O=S.next().value;
S=S.next().value;var b=O,Y=S;S=_.a(_.OE(0,void 0,"db7y3"));O=S.next().value;S=S.next().value;var q=O,r=S;O=_.a(_.OE(0,void 0,"RchC7"));var h=O.next().value,K=O.next().value;_.Jf(function(){var R;(R=E)==null||R.disconnect()});
var k=function(){K(e(h()+q()))},J=function(){K(e(h()-q()))};
return _.m("yt-video-attributes-section-view-model",null,_.m("div",{class:"videoAttributesSectionViewModelHost"},_.m(_.y,{cond:function(){return d().headerTitle},
then:function(){return _.m(AKn,{data:d})}}),_.m("div",{class:_.qe("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:v},_.m("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.jM({transform:function(){var R=h();_.Bb("HTML_DIR")==="rtl"&&(R*=-1);return"translateX("+R+"px)"}}),
el:T},_.m(_.kz,{data:function(){return d().videoAttributeViewModels}},{videoAttributeViewModel:z2u}))),_.m(_.kz,{data:function(){return d().footerButton}},{buttonViewModel:function(R){return _.m(_.yi,{data:R.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.m(_.y,{cond:function(){return h()<0&&d().previousButton},
then:function(){return _.m("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.m(_.kz,{data:function(){return d().previousButton}},{buttonViewModel:function(R){return _.m(_.yi,{data:R.data,
onClick:k})}}))}}),_.m(_.y,{cond:function(){return h()>q()-b()&&d().nextButton},
then:function(){return _.m("div",{class:"videoAttributesSectionViewModelRightArrow"},_.m(_.kz,{data:function(){return d().nextButton}},{buttonViewModel:function(R){return _.m(_.yi,{data:R.data,
onClick:J})}}))}})))},"Xd");
ZiM.idomCompat=!0;var cKu=_.l(function(v){var e=v.data;var d=v.active;var E={},T={};return _.m("timeline-item-view-model",{class:_.qe("ytwTimelineItemViewModelHost",(E.ytwTimelineItemViewModelHostChapterChild=v.chapterChild,E.ytwTimelineItemViewModelModern=_.N("enable_timeline_view_modern_transcript")||_.N("enable_timeline_view_modern_transcript_fe"),E))},_.m("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.m("div",{class:_.qe("ytwTimelineItemViewModelTimestamp",(T.ytwTimelineItemViewModelTimestampActive=
d,T))},function(){return e().timestamp})),_.m("div",{class:"ytwTimelineItemViewModelContentItems"},_.m(_.kz,{data:function(){return e().contentItems}},{transcriptSegmentViewModel:function(S){return _.m(Hi6,{data:S.data,
active:d})},
videoAttributesSectionViewModel:ZiM})))},"Yd");var wTM=_.l(function(v){var e=v.data;v={};return _.m("timeline-chapter-view-model",{class:_.qe("ytwTimelineChapterViewModelHost")},_.m("div",{class:_.qe("ytwTimelineChapterViewModelTitle",(v.ytwTimelineChapterViewModelModern=_.N("enable_timeline_view_modern_transcript")||_.N("enable_timeline_view_modern_transcript_fe"),v))},function(){return e().title}),_.m(_.kz,{data:function(){return e().contents}},{timelineItemViewModel:function(d){return _.m(cKu,{data:d.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(d){return _.m(ZiM,{data:d.data})}}))},"Zd");var FT7=_.l(function(v){var e=v.data;var d=_.nI("macro-markers-panel-item-view-model"),E=_.Kv(_.zO0,function(){var S;return(S=e().markersEngagementPanelSyncEntityKey)!=null?S:""}),T=function(){var S;
return((S=E())==null?void 0:S.activeItemIndex)===e().index};
v=_.rq(function(S){var O,b,Y,q,r;return _.I(function(h){if(h.nextAddress==1)return S.stopPropagation(),_.R7(_.fv(S),d.value,["A".toString(),"BUTTON".toString()])?h.return():(O=_.lk(e().onTap))?h.yield(_.Yz(),2):h.return();b=h.yieldResult;q=(Y=_.L(O,_.p2))==null?void 0:Y.startTimeSeconds;q===void 0||(r=b)!=null&&r.seekTo(q,!0);_.s9(h)})});
return _.m("macro-markers-panel-item-view-model",{class:_.qe("ytwMacroMarkersPanelItemViewModelHost",{"is-active":T}),el:d,"on:click":v,tabindex:0},_.m(_.kz,{data:function(){var S;return(S=e())==null?void 0:S.item}},{timelineChapterViewModel:function(S){return _.m(wTM,{data:S.data,
active:T})},
timelineItemViewModel:function(S){return _.m(cKu,{data:S.data,active:T})},
videoAttributeViewModel:z2u}))},"$d");
FT7.idomCompat=!0;_.aZ(FT7,"macro-markers-panel-item-view-model",{props:{data:_.U1}});_.aZ(ZiM,"yt-video-attributes-section-view-model",{props:{data:_.U1}});var QpA=_.l(function(v){var e=function(){var d,E,T;return(T=(d=v.data().leadingLogoAccessibility)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label)!=null?T:""};
return _.m("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.m(_.y,{cond:function(){return v.data().leadingLogo},
then:function(d){return _.m(_.va,{className:"ytwFantasySectionHeaderViewModelLogo",data:d,alt:e})}}),_.m("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.m(_.Dh,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return v.data().title}}),_.m(_.Dh,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return v.data().subtitle}})),_.m(_.kz,{data:function(){return v.data().trailingButton}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"ae");var gCe=_.l(function(v){var e={};e=_.qe("ytwFantasyTeamViewModelHost",(e.ytwFantasyTeamViewModelCompact=function(){var T;return!((T=v.compact)==null||!T.call(v))},e.ytwFantasyTeamViewModelUser=function(){return v.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},e.ytwFantasyTeamViewModelOpponent=function(){return v.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},e));
var d=function(){var T,S,O;return(O=(T=v.data().teamLogoAccessibility)==null?void 0:(S=T.accessibilityData)==null?void 0:S.label)!=null?O:""},E=_.Kv(HZM,function(){return v.data().teamEntityKey});
return _.m("ytw-fantasy-team-view-model",{class:e},_.m(_.y,{cond:function(){return v.data().teamLogo},
then:function(T){return _.m(_.va,{className:"ytwFantasyTeamViewModelLogo",data:T,alt:d})}}),_.m("div",{class:"ytwFantasyTeamViewModelMetadata"},_.m("div",{class:"ytwFantasyTeamViewModelHeader"},_.m(_.Dh,{className:"ytwFantasyTeamViewModelScore",
text:function(){var T;return(T=E())==null?void 0:T.score}}),_.m(_.sG,{icon:function(){var T;
return(T=E())==null?void 0:T.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.m(_.Dh,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var T;return(T=E())==null?void 0:T.projectedScore}})),_.m(_.Dh,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return v.data().primaryText}}),_.m(_.Dh,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return v.data().secondaryText}}),_.m(_.Dh,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return v.data().tertiaryText}})),_.m(_.Dh,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var T;return(T=E())==null?void 0:T.score}}))},"be");_.aZ(_.l(function(v){return _.m("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.m("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.m(_.kz,{data:function(){return v.data().summaryHeader}},{fantasySectionHeaderViewModel:QpA})),_.m(_.kz,{data:function(){return v.data().userTeam}},{fantasyTeamViewModel:gCe}),_.m(_.kz,{data:function(){return v.data().opponentTeam}},{fantasyTeamViewModel:gCe}))},"ce"),"fantasy-league-summary-view-model",{props:{data:_.U1}});var upI=_.l(function(v){var e=_.dC(v,{shape:{},useCustomTabRenderable:!1}),d=e.shape;e=e.useCustomTabRenderable;var E=v.customTabRenderable,T=function(){return d().disabled},S=function(){return d().selected},O=function(){return d().title},b=function(){return d().icon},Y=_.nI("yt-tab-shape");
v=_.rq(function(h){var K;if(!T()&&((K=d().aTagConfig)==null?0:K.onclick))d().aTagConfig.onclick(h);return!1});
var q=_.rq(function(h){if(h.key==="Enter"||h.key==="ArrowUp"||h.key==="ArrowDown")h.preventDefault(),Y.value.click();return!1}),r={};
return _.m("yt-tab-shape",{class:_.qe("yt-tab-shape-wiz",function(){return d().className},(r["yt-tab-shape-wiz__tab--last-tab"]=function(){return d().isLastTab},r["yt-tab-shape-wiz--host-disabled"]=T,r["yt-tab-shape-wiz--host-clickable"]=!E,r)),
role:E?void 0:"tab","aria-selected":S!=null?S:!1,"aria-disabled":T,tabindex:E?void 0:0,"on:click":v,"on:keydown":q,el:Y,"tab-identifier":function(){return d().identifier},
"tab-title":O},_.m(_.y,{cond:e,then:function(){return E()},
else:function(){var h={},K={};return _.m(_.eI,null,_.m("div",{class:_.qe("yt-tab-shape-wiz__tab",(h["yt-tab-shape-wiz__tab--tab-selected"]=S,h))},_.m(_.y,{cond:b,then:function(k){return _.m(_.sG,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return k().iconType}})}}),O),_.m("div",{class:_.qe("yt-tab-shape-wiz__tab-bar",(K["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=S,K))}))}}))},"de");
upI.idomCompat={callbacks:{customTabRenderable:!0}};_.DlA=_.l(function(v){var e=v.shape;v=_.a(_.OE(48,void 0,"r9IBlb"));var d=v.next().value,E=v.next().value;v=_.a(_.OE(0,void 0,"Bd7rmd"));var T=v.next().value,S=v.next().value,O=function(){return e().tabs},b=_.nI("yt-tab-group-shape"),Y=function(){var q,r;
return(r=(q=O())==null?void 0:q.findIndex(function(h){return h.selected}))!=null?r:-1};
_.Gr(function(){var q=b.value.querySelectorAll("yt-tab-shape"),r=Y()>-1?q[Y()]:void 0;_.RM.addJob(function(){E((r==null?void 0:r.getBoundingClientRect().width)||0)},8,0)});
_.o_(function(){var q=Y(),r=_.RM.addJob(function(){var h,K=((h=b.value)==null?void 0:h.querySelectorAll("yt-tab-shape"))||[],k;E(((k=q>-1?K[q]:void 0)==null?void 0:k.getBoundingClientRect().width)||0);for(k=h=0;k<q;k++)h+=K[k].offsetWidth+24;_.Bb("HTML_DIR")==="rtl"&&(h=-h);S(h)},8,0);
_.Jf(function(){_.RM.cancelJob(r)})},"EHixkc");
v={};return _.m("yt-tab-group-shape",{class:_.qe("yt-tab-group-shape-wiz",(v["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return e().isOverflowHidden},v)),
el:b},_.m(_.y,{cond:O,then:function(q){return _.m(_.eI,null,_.m("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.m(_.jI,{each:q},function(r,h){return _.m(upI,{shape:function(){return Object.assign({},r,{isLastTab:h()===q().length-1})},
customTabRenderable:r.customTabRenderable,useCustomTabRenderable:!!r.customTabRenderable})})),_.m(nC6,{width:d,
sliderOffset:T}))}}))},"ee");
_.DlA.idomCompat=!0;var nC6=_.l(function(v){var e=_.e2(v.sliderOffset,0),d=v.width;return _.m("div",{class:"yt-tab-group-shape-wiz__slider",style:_.jM({width:function(){return d()+"px"},
transform:function(){return"translateX("+e()+"px)"}})})},"fe");var UlE=_.l(function(v){var e=function(){var S,O,b;return(b=(S=v.data().playerLogoAccessibility)==null?void 0:(O=S.accessibilityData)==null?void 0:O.label)!=null?b:""},d=_.Kv(A3j,function(){return v.data().playerEntityKey}),E={};
E=_.qe("ytwFantasyPlayerViewModelHost",(E.ytwFantasyPlayerViewModelPlaying=function(){var S;return!((S=d())==null||!S.isPlayerPlaying)},E.ytwFantasyPlayerViewModelOnField=function(){var S;
return((S=d())==null?void 0:S.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},E.ytwFantasyPlayerViewModelRedZone=function(){var S;
return((S=d())==null?void 0:S.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},E));
var T=function(){var S,O,b,Y=((S=_.dk().resolve(_.eG(_.n1)))==null?0:S())?(O=v.data().playerLogoBackgroundColor)==null?void 0:O.darkTheme:(b=v.data().playerLogoBackgroundColor)==null?void 0:b.lightTheme;return Y===void 0?"":_.w1(Y)};
return _.m("ytw-fantasy-player-view-model",{class:E},_.m(_.y,{cond:function(){return v.data().playerLogo},
then:function(S){return _.m("div",{class:"ytwFantasyPlayerViewModelLogo"},_.m("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.m(_.va,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.jM({"background-color":T}),data:S,alt:e})),_.m("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.m(_.sG,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.m("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.m("div",{class:"ytwFantasyPlayerViewModelHeader"},_.m(_.Dh,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var S;return(S=v.data())==null?void 0:S.playerNameText}}),_.m(_.Dh,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var S;return(S=v.data())==null?void 0:S.playerDescriptionText}})),_.m("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.m(_.Dh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var S;return(S=d())==null?void 0:S.gamePeriodText}}),_.m(_.Dh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var S;return(S=v.data())==null?void 0:S.opponentTeamText}}),_.m(_.Dh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var S;return(S=d())==null?void 0:S.gameStatusText}}),_.m(_.Dh,{className:_.qe("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var S;return(S=d())==null?void 0:S.playerStatusText}})),_.m("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.m(_.Dh,{text:function(){var S;
return(S=d())==null?void 0:S.playerStatsText}}))),_.m(_.Dh,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var S;return(S=d())==null?void 0:S.fantasyScore}}))},"ge");var pTJ=_.l(function(v){return _.m("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.m(_.y,{cond:function(){return v.data().players},
then:function(e){return _.m(_.kz,{data:e},{fantasyPlayerViewModel:UlE})}}))},"he");var vnu=_.l(function(v){var e=_.a(_.KM(function(){var T;return(T=v.data().selectedTabIdentifierKey)!=null?T:""})),d=e.next().value,E=e.next().value;
_.JE(function(){var T;(T=v.setSelectedTabSignal)==null||T.call(v,d)});
return _.m("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.m("div",{class:"ytTabbedViewModelTabGroup"},_.m(_.DlA,{shape:function(){var T=v.data(),S=[],O={tabs:S};if(!T.tabs)return O;T=_.a(T.tabs);for(var b=T.next(),Y={};!b.done;Y={tabViewModel:void 0},b=T.next())if(Y.tabViewModel=_.L(b.value,Se0),Y.tabViewModel){var q=b=void 0;S.push({aTagConfig:{onclick:function(r){return function(){var h;E((h=r.tabViewModel.tabIdentifier)!=null?h:"")}}(Y)},
identifier:Y.tabViewModel.tabIdentifier,selected:d()===Y.tabViewModel.tabIdentifier,title:(q=(b=Y.tabViewModel.title)==null?void 0:b.content)!=null?q:""})}return O}})),_.m(_.kz,{data:function(){var T,S=_.a((T=v.data().tabs)!=null?T:[]);
for(T=S.next();!T.done;T=S.next())if((T=_.L(T.value,Se0))&&T.tabIdentifier===d())return T.content}},{fantasyRosterViewModel:pTJ}))},"ie");_.aZ(_.l(function(v){var e=_.a(JV0()),d=e.next().value,E=e.next().value;return _.m("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.m(_.Dh,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return v.data().title}}),_.m(_.y,{cond:function(){return v.data().tabbedViewModel},
then:function(T){return _.m(_.kz,{data:T},{tabbedViewModel:function(S){return _.m(vnu,{data:S.data,setSelectedTabSignal:E})}})}}),_.m(_.y,{cond:function(){var T,S=(T=_.L(v.data().tabbedViewModel,WOu))==null?void 0:T.tabs;
T=_.L(S==null?void 0:S[0],Se0);S=_.L(S==null?void 0:S[1],Se0);var O=T==null?void 0:T.tabIdentifier;if(d()===O){var b,Y;if(!((b=_.L(T==null?void 0:T.content,nT6))==null?0:(Y=b.players)==null?0:Y.length))return v.data().noUserTeamPlayersText}else{var q,r;if(!((q=_.L(S==null?void 0:S.content,nT6))==null?0:(r=q.players)==null?0:r.length))return v.data().noOpponentTeamPlayersText}},
then:function(T){return _.m(_.Dh,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:T})}}))},"je"),"ytw-fantasy-matchup-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){return _.m("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.m(_.Dh,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return v.data().title}}),_.m(_.y,{cond:function(){return v.data().matchupTeamPairs},
then:function(e){return _.m(_.jI,{each:e,keyBy:"INDEX"},function(d){return _.m("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.m(_.kz,{data:function(){return[d().firstTeam,d().secondTeam]}},{fantasyTeamViewModel:function(E){return _.m(gCe,{data:E.data,
compact:!0})}}))})}}))},"ke"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=function(){var T,S,O;return(O=(T=v.data().userLogoAccessibility)==null?void 0:(S=T.accessibilityData)==null?void 0:S.label)!=null?O:""},d=function(){var T,S,O;
return(O=(T=v.data().opponentLogoAccessibility)==null?void 0:(S=T.accessibilityData)==null?void 0:S.label)!=null?O:""},E=_.Kv(lO$,function(){return v.data().entityKey});
return _.m("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.m("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.m(_.y,{cond:function(){return v.data().userLogo},
then:function(T){return _.m(_.va,{className:"ytwFantasyWinProbabilityViewModelLogo",data:T,alt:e})}}),_.m("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.m(_.Dh,{text:function(){return v.data().title}})),_.m(_.y,{cond:function(){return v.data().opponentLogo},
then:function(T){return _.m(_.va,{className:"ytwFantasyWinProbabilityViewModelLogo",data:T,alt:d})}})),_.m("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.m("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.m(_.Dh,{text:function(){var T;
return(T=E())==null?void 0:T.userWinNumberLabel}})),_.m("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.m("div",{class:_.qe("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.jM({flex:function(){var T,S;return(S=(T=E())==null?void 0:T.userWinNumber)!=null?S:50}})}),_.m("div",{class:_.qe("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.jM({flex:function(){var T,S;return(S=(T=E())==null?void 0:T.opponentWinNumber)!=null?S:50}})})),_.m("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.m(_.Dh,{text:function(){var T;
return(T=E())==null?void 0:T.opponentWinNumberLabel}}))))},"le"),"fantasy-win-probability-view-model",{props:{data:_.U1}});var ez6={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},dK2=_.l(function(v){return _.m(_.kz,{data:v.button},{buttonViewModel:function(e){return _.m(_.yi,{data:e.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"me"),EnI=_.l(function(v){return _.m("ytd-backstage-locked-post-view-model",{class:_.qe("ytdBackstageLockedPostViewModelHost",v.className)},_.m("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.m("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.m(_.kz,
{data:function(){return v.data().authorAvatar}},{decoratedAvatarViewModel:_.By})),_.m("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.m("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.m(_.Dh,{text:function(){return v.data().authorText}})),_.m("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.m(_.Dh,{text:function(){return v.data().publishedTimeText}}),_.m(_.kz,{data:function(){return v.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(e){return _.m(KtM,
{data:e.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.m("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.m(_.Dh,{text:function(){return v.data().contentText}})),_.m(_.kc,null,_.m(_.sW,{when:function(){return v.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.m("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.m(_.va,{data:ez6,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.m(_.Dh,{text:function(){return v.data().lockedText}}))}),_.m(_.sW,{when:function(){return v.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.m("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.m("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.m(_.va,{data:ez6,
alt:""})),_.m(_.Dh,{text:function(){return v.data().lockedText}}))})),_.m("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.m(dK2,{button:function(){return v.data().likeButton}}),_.m("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return v.data().voteCountA11y}},_.m(_.Dh,{text:function(){return v.data().voteCount}})),_.m(dK2,{button:function(){return v.data().dislikeButton}}),_.m(dK2,{button:function(){return v.data().commentButton}}),_.m("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return v.data().commentCountA11y}},_.m(_.Dh,{text:function(){return v.data().commentCount}}))))},"ne");
EnI.idomCompat=!0;_.aZ(EnI,"ytd-backstage-locked-post-view-model",{props:{data:_.U1,className:_.U1}});_.RZ("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var wx=function(){var v=_.P.apply(this,arguments)||this;v.darkerPanels=_.N("web_watch_darker_panels");v.commentsHidePanelButton=!1;v.isWatchGrid=!1;v.continuationShowButton=!1;v.isSearch=!1;v.isConstrainedList=!1;v.isWatch=!1;v.eligibleToSwitchToGrid=!1;v.useBigThumbs=!1;v.notSticky=!1;v.epRestyle=!1;v.isCarouselInFeed=!0;v.topSpacingZero=!1;v.continuationIsInitialLoad=!0;v.enableSqueezebackPanels=_.N("web_shorts_enable_squeezeback_panels");v.enableAnchoredPanel=_.N("desktop_shorts_v2_anchored_panel");
v.mastheadHeight=0;v.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};v.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return v};
_.V(wx,_.P);_.W=wx.prototype;_.W.updateLockupContainerTypes=function(v){if(this.eligibleToSwitchToGrid){var e;(e=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||e.forEach(function(d){d.containerType=v})}};
_.W.getItemsPath=function(){return"data.contents"};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.W.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",
compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",
fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",
handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",
horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",
messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",
offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",
premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.N("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.N("kevlar_low_priority_continuation")}}};
_.W.created=function(){};
_.W.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.W.handleIntersect=function(v){this.notSticky=v[0].intersectionRatio===1};
_.W.attached=function(){var v=this,e=_.N("web_item_section_sticky_header_use_scroll_as_fallback");e||document.addEventListener("scroll",_.hG(this,this.updateHeaderState));var d;this.mastheadHeight=((d=document.querySelector("ytd-masthead"))==null?void 0:d.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(E){v.handleIntersect(E)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):e&&document.addEventListener("scroll",_.hG(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){v.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.W.detached=function(){document.removeEventListener("scroll",_.hG(this,this.updateHeaderState));var v;(v=this.intersectionObserver)==null||v.disconnect();var e;(e=this.resizeObserver)==null||e.disconnect()};
_.W.updated=function(v){v.has("data")&&this.updateHeaderState()};
_.W.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(j3n(!this.notSticky))};
_.W.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var v=_.IB(this.hostElement).querySelector("ytd-comments-header-renderer");v&&(v.hidePanelButton=this.commentsHidePanelButton)}};
_.W.onRetrieveLocation=function(v,e){this.containsComments()&&(this.firstCommentsLoaded=e.hasComments=!0)};
_.W.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.W.onLoadReloadContinuation=function(v,e){var d=this;v.stopPropagation();this.isReloading=!0;_.Iq(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(E){var T=_.dk().resolve(_.zo);E=e(E);T.postData(E).then(function(S){d.onReloadContinuationData(S)})}})};
_.W.onReloadContinuationData=function(v){if(v=this.get("response.continuationContents.itemSectionContinuation",v)||this.get("response.contents.itemSectionRenderer",v)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",v)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",v))this.set("data.contents",v.contents||v.results),v.header&&this.set("data.header",v.header),this.set("data.continuations",
v.continuations||[]);this.isReloading=!1};
_.W.computeContentsClass=function(v){return v?"reloading":""};
_.W.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.W.computeSectionIdentifier=function(v){return v==null?void 0:v.sectionIdentifier};
_.W.computeFitContainer=function(v){return(v==null?void 0:v.sectionIdentifier)==="youchat-item-section"};
_.W.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.N("kevlar_disable_comments_auto_load")};
_.W.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.W.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.W.computeHasDestinationShelfRenderer=function(v){var e,d;return!!(v==null?0:(e=v.contents)==null?0:(d=e[0])==null?0:d.destinationShelfRenderer)};
_.W.computeHasSectionGroupViewModel=function(v){var e,d;return!!(v==null?0:(e=v.contents)==null?0:(d=e[0])==null?0:d.sectionGroupViewModel)};
_.W.computeHasQrCodeRenderer=function(v){var e,d;return!!(v==null?0:(e=v.contents)==null?0:(d=e[0])==null?0:d.qrCodeRenderer)};
_.W.computeStaticCommentsHeader=function(v){return v&&this.containsComments()};
_.W.computeEpRestyle=function(v){return _.N("web_ep_restyling")&&v&&this.containsComments()};
_.W.computeIsContinuationCommentSection=function(v){return(v==null?void 0:v.targetId)==="shorts-engagement-panel-comments-section"||(v==null?void 0:v.targetId)==="comments-section"||(v==null?void 0:v.targetId)==="engagement-panel-comments-section"};
_.W.computeSuppressPaddingDisclaimer=function(){var v,e,d,E;return!!((v=this.data)==null?0:(e=v.contents)==null?0:(d=e[0])==null?0:(E=d.productListHeaderRenderer)==null?0:E.suppressPaddingDisclaimer)};
_.W.computeHeaderStyle=function(v){switch(v==null?void 0:v.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.W.dataChanged=function(){this.firstCommentsLoaded=!1};
_.W.observeDataContentsLength=function(){var v,e;((v=this.data)==null?0:(e=v.contents)==null?0:e.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.W.onYtDismissibleItemDismissedChange=function(v){this._setItemDismissed(v.type==="yt-dismissible-item-dismissed")};
_.W.triggerContinuations=function(){for(var v=_.IB(this.hostElement).querySelector("#continuations").children,e=0;e<v.length;e++)v[e].trigger()};
_.W.triggerInitialContinuations=function(){for(var v=_.IB(this.hostElement).querySelector("#continuations").children,e=0;e<v.length;e++)v[e].triggerIfNotPreviouslyTriggered()};
_.W.handleYtItemSectionContinuation=function(v,e){var d;e&&((d=this.data)==null?void 0:d.sectionIdentifier)!==e||(this.set("data.continuations",[v]),this.triggerContinuations())};
_.W.handleYtItemSectionReplace=function(v,e){var d;e&&((d=this.data)==null?void 0:d.sectionIdentifier)!==e||(this.set("data.contents",v),this.set("data.continuations",[]))};
_.W.computeUseHeightHack=function(v){return v&&!_.N("kevlar_disable_height_hack")};
_.W.computeTopSpacingZero=function(v){return v};
_.W.continuationShowButtonChanged=function(){var v=_.IB(this.hostElement).querySelector("ytd-continuation-item-renderer");v&&(v.showButton=this.continuationShowButton)};
_.W.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("data-changed",this.data))};
_.vP.Object.defineProperties(wx.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.N("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return!!((v=this.data)==null?0:(e=v.contents)==null?0:(d=e[0])==null?0:d.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E,T,S,O;return!!((v=this.data)==null?0:(e=v.contents)==null?0:(d=e[0])==null?0:(E=d.shelfRenderer)==null?0:(T=E.content)==null?0:(S=T.gridRenderer)==null?0:(O=S.targetId)==null?0:O.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return!!((v=this.data)==null?0:(e=v.contents)==null?0:(d=e[0])==null?0:d.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return!!((v=this.data)==null?0:(e=v.contents)==null?0:(d=e[0])==null?0:d.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.aH("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.N("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.N("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
wx.prototype.dataChangedForBinding=wx.prototype.dataChangedForBinding;wx.prototype.continuationShowButtonChanged=wx.prototype.continuationShowButtonChanged;wx.prototype.onYtDismissibleItemDismissedChange=wx.prototype.onYtDismissibleItemDismissedChange;wx.prototype.observeDataContentsLength=wx.prototype.observeDataContentsLength;wx.prototype.dataChanged=wx.prototype.dataChanged;wx.prototype.onServiceRequestCompleted=wx.prototype.onServiceRequestCompleted;wx.prototype.onLoadReloadContinuation=wx.prototype.onLoadReloadContinuation;
wx.prototype.onRetrieveLocation=wx.prototype.onRetrieveLocation;wx.prototype.commentsHidePanelButtonChanged=wx.prototype.commentsHidePanelButtonChanged;wx.prototype.dispatchChipBarIsSticky=wx.prototype.dispatchChipBarIsSticky;wx.prototype.updateLockupContainerTypes=wx.prototype.updateLockupContainerTypes;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],wx.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],wx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.iO.YtLazyListBehavior),_.w("design:type",Object)],wx.prototype,"ytLazyListBehavior",void 0);_.c([_.M(_.QL.YtNextContinuationBehavior),_.w("design:type",Object)],wx.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.M(_.FL),_.w("design:type",Object)],wx.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],wx.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],wx.prototype,"ytdReduxBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wx.prototype,"darkerPanels",void 0);_.c([_.f(),_.w("design:type",Object)],wx.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Boolean)],wx.prototype,"engagementPanel",void 0);_.c([_.f(),_.w("design:type",Object)],wx.prototype,"commentsHidePanelButton",void 0);_.c([_.f(),_.w("design:type",Object)],wx.prototype,"isWatchGrid",void 0);_.c([_.f(),_.w("design:type",Object)],wx.prototype,"continuationShowButton",void 0);_.c([_.f({computed:"computeIsContinuationCommentSection(data)"}),_.w("design:type",Boolean)],wx.prototype,"continuationIsCommentsSection",void 0);
_.c([_.f({value:!0}),_.w("design:type",Boolean)],wx.prototype,"autoFill",void 0);_.c([_.f(),_.w("design:type",Boolean)],wx.prototype,"continuationDisablePrescanVisibility",void 0);_.c([_.f(),_.w("design:type",Boolean)],wx.prototype,"isReloading",void 0);_.c([_.f(),_.w("design:type",Object)],wx.prototype,"isSearch",void 0);_.c([_.f(),_.w("design:type",Object)],wx.prototype,"isConstrainedList",void 0);_.c([_.f(),_.w("design:type",Object)],wx.prototype,"isWatch",void 0);
_.c([_.f(),_.w("design:type",Object)],wx.prototype,"eligibleToSwitchToGrid",void 0);_.c([_.f(),_.w("design:type",Object)],wx.prototype,"useBigThumbs",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wx.prototype,"notSticky",void 0);_.c([_.f({selector:_.CM}),_.w("design:type",Object)],wx.prototype,"isGridViewEnabled",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.w("design:type",Object)],wx.prototype,"epRestyle",void 0);_.c([_.t("isWatch"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wx.prototype,"hideShortsShelfHeader",null);_.c([_.t("isSearch","isWatch"),_.w("design:type",String),_.w("design:paramtypes",[])],wx.prototype,"thumbnailWidth",null);
_.c([_.t("isSearch","containerWidth"),_.w("design:type",Object),_.w("design:paramtypes",[])],wx.prototype,"thumbnailTargetWidth",null);_.c([_.t("isSearch","isWatch"),_.w("design:type",String),_.w("design:paramtypes",[])],wx.prototype,"sizing",null);_.c([_.t("isWatch","isGridViewEnabled","useBigThumbs","data"),_.f({reflectToAttribute:!0}),_.w("design:type",Number),_.w("design:paramtypes",[])],wx.prototype,"lockupContainerType",null);
_.c([_.$v("lockupContainerType","data"),_.w("design:type",Function),_.w("design:paramtypes",[Number]),_.w("design:returntype")],wx.prototype,"updateLockupContainerTypes",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],wx.prototype,"pageSubtype",void 0);_.c([_.f({computed:"computeContainerWidth()"}),_.w("design:type",Number)],wx.prototype,"containerWidth",void 0);_.c([_.f(),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wx.prototype,"isPlaylist",null);
_.c([_.f(),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wx.prototype,"isClipList",null);_.c([_.f(),_.w("design:type",Object)],wx.prototype,"isCarouselInFeed",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wx.prototype,"isPlaylistVideoContainer",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wx.prototype,"isSearchFrictionPage",null);
_.c([_.f({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.w("design:type",Boolean)],wx.prototype,"useHeightHack",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.w("design:type",Object)],wx.prototype,"topSpacingZero",void 0);_.c([_.f({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.w("design:type",Boolean)],wx.prototype,"showButton",void 0);
_.c([_.f(),_.w("design:type",Boolean)],wx.prototype,"firstCommentsLoaded",void 0);_.c([_.f(),_.w("design:type",Object)],wx.prototype,"continuationIsInitialLoad",void 0);_.c([_.f({reflectToAttribute:!0,readOnly:!0}),_.w("design:type",Boolean)],wx.prototype,"itemDismissed",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.w("design:type",String)],wx.prototype,"sectionIdentifier",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.w("design:type",String)],wx.prototype,"fitContainer",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.w("design:type",Boolean)],wx.prototype,"hasDestinationShelfRenderer",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.w("design:type",Boolean)],wx.prototype,"staticCommentsHeader",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wx.prototype,"enableSqueezebackPanels",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wx.prototype,"enableAnchoredPanel",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.w("design:type",Boolean)],wx.prototype,"hasSectionGroupViewModel",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.w("design:type",Boolean)],wx.prototype,"hasQrCodeRenderer",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.w("design:type",Boolean)],wx.prototype,"suppressDisclaimerSeparator",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.w("design:type",String)],wx.prototype,"headerStyle",void 0);
_.c([_.t("isSearch"),_.w("design:type",Object),_.w("design:paramtypes",[])],wx.prototype,"lockupExperiments",null);_.c([_.t("isSearch"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wx.prototype,"typographyBump",null);_.c([_.sg("#header"),_.w("design:type",HTMLElement)],wx.prototype,"header",void 0);_.c([_.$v("notSticky"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wx.prototype,"dispatchChipBarIsSticky",null);
_.c([_.$v("commentsHidePanelButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wx.prototype,"commentsHidePanelButtonChanged",null);_.c([_.Kq("yt-retrieve-location"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],wx.prototype,"onRetrieveLocation",null);
_.c([_.Kq("yt-load-reload-continuation"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Function]),_.w("design:returntype")],wx.prototype,"onLoadReloadContinuation",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wx.prototype,"onServiceRequestCompleted",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wx.prototype,"dataChanged",null);
_.c([_.V1("data.contents.length"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wx.prototype,"observeDataContentsLength",null);_.c([_.Kq("yt-dismissible-item-dismissed"),_.Kq("yt-dismissible-item-undismissed"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],wx.prototype,"onYtDismissibleItemDismissedChange",null);
_.c([_.$v("continuationShowButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wx.prototype,"continuationShowButtonChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wx.prototype,"dataChangedForBinding",null);_.c([_.z({is:"ytd-item-section-renderer",disableElementRegistration:!0})],wx);
_.A(wx,"ytd-item-section-renderer",function(){if(yL0!==void 0)return yL0;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return yL0=v},{mode:1});var TXu;var tRO=_.pQ(_.sz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var S4E={},MRt=(S4E[0]={title:_.WK(_.sz("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.WK(_.sz("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.Ta("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},S4E[1]={title:_.WK(_.sz("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.Ta("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},S4E);_.RZ("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var F6=function(){var v=_.P.apply(this,arguments)||this;v.allVideosCount=0;v.allPlaylistCount=0;v.isOnline=!1;v.shouldRenderDownloadsBanner=!1;v.shouldRenderDownloadsBannerUpsell=!1;v.hasOptedIntoSmartDownloads=!1;v.areAllSmartDownloadsDeleted=!1;v.smartDownloadsCompleted=!1;return v};
_.V(F6,_.P);F6.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
F6.prototype.attached=function(){this.downloadsToRenderChanged()};
F6.prototype.detached=function(){this.set("renderableData",{})};
F6.prototype.downloadsToRenderChanged=function(){var v=_.d1().getState().entities,e=_.PK(v),d=_.N("kevlar_playlist_dl_page_killswitch")?wHU(v):_.xH(v),E=_.XH0(v),T=_.AdW(v),S=_.J_(e);v=_.BK(v);this.set("renderableData",REs(d,e,E,T,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,S,v))};
F6.prototype.downloadsToRenderChanged=F6.prototype.downloadsToRenderChanged;_.c([_.M(_.lV),_.w("design:type",Object)],F6.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],F6.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],F6.prototype,"renderableData",void 0);_.c([_.f({selector:_.TTH}),_.w("design:type",Object)],F6.prototype,"allVideosCount",void 0);_.c([_.f({selector:k9s}),_.w("design:type",Object)],F6.prototype,"allPlaylistCount",void 0);_.c([_.f({selector:_.HK}),_.w("design:type",Object)],F6.prototype,"isOnline",void 0);_.c([_.f({selector:_.bst}),_.w("design:type",Object)],F6.prototype,"shouldRenderDownloadsBanner",void 0);
_.c([_.f({selector:_.q1W}),_.w("design:type",Object)],F6.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.c([_.f({selector:_.Y1W}),_.w("design:type",Object)],F6.prototype,"hasOptedIntoSmartDownloads",void 0);_.c([_.f({selector:_.m$0}),_.w("design:type",Object)],F6.prototype,"areAllSmartDownloadsDeleted",void 0);_.c([_.f({selector:yb0}),_.w("design:type",Object)],F6.prototype,"smartDownloadsCompleted",void 0);
_.c([_.V1("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],F6.prototype,"downloadsToRenderChanged",null);_.c([_.z({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],F6);
_.A(F6,"ytd-offline-item-section-renderer",function(){if(TXu!==void 0)return TXu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return TXu=v},
{mode:1});var WDE;var aju;var QT=function(){return _.P.apply(this,arguments)||this};
_.V(QT,_.P);
QT.prototype.onDataChanged=function(){if(this.JSC$16658_lastData){var v=this.getFilterClass(this.JSC$16658_lastData.status);v&&this.hostElement.classList.remove(v)}var e;(v=this.getFilterClass((e=this.data)==null?void 0:e.status))&&this.hostElement.classList.add(v);v==="selected"?_.IB(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.IB(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");v==="disabled"?_.IB(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.IB(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16658_lastData=this.data};
QT.prototype.getFilterClass=function(v){switch(v){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
QT.prototype.onDataChanged=QT.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],QT.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QT.prototype,"onDataChanged",null);_.c([_.z({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],QT);
_.A(QT,"ytd-search-filter-renderer",function(){if(aju!==void 0)return aju;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return aju=v},{mode:_.bk("kevlar_poly_si_batch_j075")?1:2});var gx=function(){return _.P.apply(this,arguments)||this};
_.V(gx,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],gx.prototype,"data",void 0);_.c([_.z({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],gx);
_.A(gx,"ytd-search-filter-group-renderer",function(){if(WDE!==void 0)return WDE;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return WDE=v},{mode:_.bk("kevlar_poly_si_batch_j075")?1:2});var iWg;var uD=function(){return _.P.apply(this,arguments)||this};
_.V(uD,_.P);uD.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.IA());this.isCollapsed=!this.isCollapsed};
uD.prototype.navigateToAboutTheseResultsPage=function(){var v=_.R$("https://www.youtube.com/howyoutubeworks/product-features/search/");v?_.Fa(window,v,"_blank"):_.lg(Error("Th"))};
uD.prototype.dataChanged=function(){this.isCollapsed=!0};
uD.prototype.computeShowBottomBorder=function(){var v,e,d;return!!((v=this.data)==null?0:(e=v.button)==null?0:e.toggleButtonRenderer)||!((d=this.data)==null||!d.aboutTheseResultsButton)};
uD.prototype.dataChanged=uD.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],uD.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.w("design:type",Boolean)],uD.prototype,"showBottomBorder",void 0);_.c([_.f(),_.w("design:type",Boolean)],uD.prototype,"renderCollapsibleMenu",void 0);
_.c([_.f(),_.w("design:type",Boolean)],uD.prototype,"isCollapsed",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uD.prototype,"dataChanged",null);_.c([_.z({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],uD);
_.A(uD,"ytd-search-sub-menu-renderer",function(){if(iWg!==void 0)return iWg;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return iWg=v},{mode:1});var OW7;var Ije=new _.nC("SECTION_LIST_RENDERER_TOKEN");var bWc;var na=function(){return _.P.apply(this,arguments)||this};
_.V(na,_.P);na.prototype.computeStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],na.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],na.prototype,"headerStyle",void 0);_.c([_.z({is:"ytd-text-header-renderer",disableElementRegistration:!0})],na);
_.A(na,"ytd-text-header-renderer",function(){if(bWc!==void 0)return bWc;var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return bWc=v},{mode:1});var Y4E;var DU=function(){return _.P.apply(this,arguments)||this};
_.V(DU,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],DU.prototype,"data",void 0);_.c([_.z({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],DU);
_.A(DU,"ytd-minor-moment-header-renderer",function(){if(Y4E!==void 0)return Y4E;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Y4E=v},{mode:1});var mKu;var UZ=function(){return _.P.apply(this,arguments)||this};
_.V(UZ,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],UZ.prototype,"data",void 0);_.c([_.z({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],UZ);
_.A(UZ,"ytd-minor-moment-setting-alert-renderer",function(){if(mKu!==void 0)return mKu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return mKu=v},{mode:1});var yvg;var q4n;var pa=function(){var v=_.P.apply(this,arguments)||this;v.booleanSettingById=!1;v.smartDownloadsEnabledVE=_.bH(128287);v.smartDownloadsDisabledVE=_.bH(128286);v.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return v};
_.V(pa,_.P);_.W=pa.prototype;_.W.attachSmartDownloadsSettingVes=function(){var v;this.activeVeForLogging||((v=this.data)==null?void 0:v.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.bj(_.NC(),this.smartDownloadsEnabledVE),_.bj(_.NC(),this.smartDownloadsDisabledVE))};
_.W.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Iq(this.hostElement,"yt-settings-switch-ready")};
_.W.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.W.onSwitchChange=function(v){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(v=_.ew(v).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.N("kevlar_settings_switch_resolve_command_killswitch")?_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(v)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.W.handleUpdateSettingsSwitch=function(v){(v=_.L(v,rM0))&&this.data&&this.data.id===v.id&&this.set("data.enabled",!!v.enabled)};
_.W.onToggleSettingsSwitch=function(v,e){this.data&&this.data.id===v&&this.set("data.enabled",e!=null?e:!this.data.enabled)};
_.W.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.p6.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.W.maybeLogSmartDownloadsSettingVisibility=function(){var v=_.zz(),e;v&&((e=this.data)==null?void 0:e.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.nB(v,[this.smartDownloadsEnabledVE]),_.Dm(v,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.nB(v,[this.smartDownloadsDisabledVE]),_.Dm(v,[this.smartDownloadsEnabledVE])))};
_.W.maybeLogSmartDownloadsSettingClick=function(){var v;((v=this.data)==null?void 0:v.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.m3(_.NC(),this.activeVeForLogging)};
_.W.updateDataEnabledFromBinding=function(v){this.set("data.enabled",v.detail.value)};
_.vP.Object.defineProperties(pa.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var v=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!v&&(v=this.ytRendererBehavior.getSimpleString(this.data.title));return v}}});
pa.prototype.dataChanged=pa.prototype.dataChanged;_.c([_.M(_.lV),_.w("design:type",Object)],pa.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],pa.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],pa.prototype,"ytComponentBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],pa.prototype,"data",void 0);_.c([_.f({selector:function(v,e){if(Object.keys(v==null?void 0:v.entities).length)switch(e){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return F3O(v.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.w("design:type",Object)],pa.prototype,"booleanSettingById",void 0);_.c([_.f(),_.w("design:type",C2)],pa.prototype,"activeVeForLogging",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],pa.prototype,"toggleAriaLabel",null);_.c([_.V1("data"),_.V1("booleanSettingById"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pa.prototype,"dataChanged",null);
_.c([_.z({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],pa);
_.A(pa,"ytd-settings-switch-renderer",function(){if(q4n!==void 0)return q4n;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return q4n=v},{mode:1});var vC=function(){return _.P.apply(this,arguments)||this};
_.V(vC,_.P);vC.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}}}}};
_.vP.Object.defineProperties(vC.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var v=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(v+=" remove-left-margin");this.data.extraBottomSpace&&(v+=" extra-bottom-space");return v}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],vC.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],vC.prototype,"contentsClassName",null);_.c([_.z({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],vC);
_.A(vC,"ytd-minor-moment-setting-section-renderer",function(){if(yvg!==void 0)return yvg;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return yvg=v},{mode:1});var rvJ;var ek=function(){return _.P.apply(this,arguments)||this};
_.V(ek,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ek.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ek.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],ek);
_.A(ek,"ytd-empty-product-details-renderer",function(){if(rvJ!==void 0)return rvJ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return rvJ=v},{mode:1});var hzB;var KD0;var dA=function(){var v=_.P.apply(this,arguments)||this;v.expanded=!0;return v};
_.V(dA,_.P);dA.prototype.getBadgeRowClass=function(v,e,d){for(var E=_.a(this.hostElement.querySelectorAll("yt-img-shadow")),T=E.next();!T.done;T=E.next())T.value.onShow();v=v.selected;return d?v!==-1?v===e?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(v!==void 0?v:0)===e?"badge-line":"badge-hidden"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],dA.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],dA.prototype,"expanded",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],dA);
_.A(dA,"ytd-sponsorships-loyalty-badges-renderer",function(){if(KD0!==void 0)return KD0;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return KD0=v},{mode:1});var $KI;var Eu=function(){var v=_.P.apply(this,arguments)||this;v.expanded=!0;return v};
_.V(Eu,_.P);Eu.prototype.getContainerClasses=function(v,e){v=v?"expanded":"collapsed";e&&(v+=" item");return v};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Eu.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Eu.prototype,"expanded",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Eu);
_.A(Eu,"ytd-sponsorships-perk-renderer",function(){if($KI!==void 0)return $KI;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return $KI=v},{mode:1});var jkJ;var TP=function(){var v=_.P.apply(this,arguments)||this;v.expanded=!0;return v};
_.V(TP,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],TP.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],TP.prototype,"expanded",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],TP);
_.A(TP,"ytd-sponsorships-perks-renderer",function(){if(jkJ!==void 0)return jkJ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return jkJ=v},{mode:1});var Sk=function(){var v=_.P.apply(this,arguments)||this;v.isCollapsed=!1;return v};
_.V(Sk,_.P);Sk.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Sk.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Sk.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var v;this.expandCollapseButton=_.L((v=this.data)==null?void 0:v.expandButton,_.BD)}else{var e;this.expandCollapseButton=_.L((e=this.data)==null?void 0:e.collapseButton,_.BD)}};
Sk.prototype.updateExpandCollapseButton=Sk.prototype.updateExpandCollapseButton;Sk.prototype.onDataChanged=Sk.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Sk.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Sk.prototype,"isCollapsed",void 0);_.c([_.f(),_.w("design:type",Object)],Sk.prototype,"expandCollapseButton",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Sk.prototype,"onDataChanged",null);_.c([_.V1("data","isCollapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Sk.prototype,"updateExpandCollapseButton",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Sk);
_.A(Sk,"ytd-sponsorships-expandable-perks-renderer",function(){if(hzB!==void 0)return hzB;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return hzB=v},{mode:1});var sk6;var WC=function(){return _.P.apply(this,arguments)||this};
_.V(WC,_.P);WC.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],WC.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],WC.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],WC);
_.A(WC,"ytd-sponsorships-actionable-message-renderer",function(){if(sk6!==void 0)return sk6;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return sk6=v},{mode:1});var NXJ;var az=function(){return _.P.apply(this,arguments)||this};
_.V(az,_.P);_.W=az.prototype;_.W.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.W.getExpansionIcon=function(v){return v?"COLLAPSE":"EXPAND"};
_.W.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.W.computeMessageContainerStyle=function(v){var e=v.expandableItems?" style-clickable":"";return v.messageContainerStyle?v.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+e:"style-unspecified"+e};
_.W.isSinglePerk=function(v){return!!v.messageContainerStyle&&(v.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||v.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.W.onExpandedChanged=function(){var v=this;if(this.expanded)for(var e=_.a(this.hostElement.querySelectorAll("yt-img-shadow")),d=e.next();!d.done;d=e.next())d.value.onShow();_.Uh(this,function(){_.Iq(v.hostElement,"yt-refit")})};
_.W.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
az.prototype.onDataChanged=az.prototype.onDataChanged;az.prototype.onExpandedChanged=az.prototype.onExpandedChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],az.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],az.prototype,"expanded",void 0);
_.c([_.$v("expanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],az.prototype,"onExpandedChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],az.prototype,"onDataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],az);
_.A(az,"ytd-sponsorships-expandable-message-renderer",function(){if(NXJ!==void 0)return NXJ;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return NXJ=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var kYB;var Ou=function(){return _.P.apply(this,arguments)||this};
_.V(Ou,_.P);Ou.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"}}}}};
Ou.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.L(this.data.endButton,_.BD).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Ou.prototype.onDataChanged=Ou.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ou.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ou.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ou.prototype,"onDataChanged",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Ou);
_.A(Ou,"ytd-sponsorships-heading-renderer",function(){if(kYB!==void 0)return kYB;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return kYB=v},{mode:1});var LDc;var Iz=function(){return _.P.apply(this,arguments)||this};
_.V(Iz,_.P);_.c([_.f(),_.w("design:type",Object)],Iz.prototype,"data",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Iz);
_.A(Iz,"ytd-sponsorships-links-renderer",function(){if(LDc!==void 0)return LDc;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return LDc=v},{mode:1});var Vv7;var bf=function(){return _.P.apply(this,arguments)||this};
_.V(bf,_.P);_.W=bf.prototype;_.W.onDataChanged=function(){if(this.data&&this.data.expandableItems){var v;(v=_.IB(this.hostElement).querySelector("tp-yt-paper-button"))==null||v.setAttribute("role","button")}else{var e;(e=_.IB(this.hostElement).querySelector("tp-yt-paper-button"))==null||e.removeAttribute("role")}};
_.W.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.W.getExpansionIcon=function(v){return v?"COLLAPSE":"EXPAND"};
_.W.getTileClasses=function(v){return v?"tile expandable-tile":"tile"};
_.W.getButtonDisabled=function(v){return v?void 0:""};
bf.prototype.onDataChanged=bf.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],bf.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],bf.prototype,"expanded",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bf.prototype,"onDataChanged",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],bf);
_.A(bf,"ytd-sponsorships-list-tile-renderer",function(){if(Vv7!==void 0)return Vv7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Vv7=v},{mode:1});var onn;var Jvc;var Yo=function(){return _.P.apply(this,arguments)||this};
_.V(Yo,_.P);Yo.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Yo.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Yo);
_.A(Yo,"ytd-sponsorships-promotion-renderer",function(){if(Jvc!==void 0)return Jvc;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Jvc=v},{mode:1});var GY0;var ma=function(){return _.P.apply(this,arguments)||this};
_.V(ma,_.P);ma.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ma.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],ma);
_.A(ma,"ytd-sponsorships-purchase-option-renderer",function(){if(GY0!==void 0)return GY0;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return GY0=v},{mode:1});var Mvg;var tve;var fjJ=function(){return _.P.apply(this,arguments)||this};
_.V(fjJ,_.P);_.c([_.f(),_.w("design:type",Object)],fjJ.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],fjJ);
_.A(fjJ,"ytd-ypc-offer-promo-renderer",function(){if(tve!==void 0)return tve;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return tve=v},{mode:1});var y6=function(){return _.P.apply(this,arguments)||this};
_.V(y6,_.P);_.W=y6.prototype;
_.W.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"}}}}};
_.W.expansionCTA=function(v,e){return v&&(e?v.collapseCallToAction:v.expansionCallToAction)};
_.W.getExpansionIcon=function(v){return v?"COLLAPSE":"EXPAND"};
_.W.expansionCallToActionTap=function(){var v=this;this.expanded=!this.expanded;_.Uh(this,function(){_.Iq(v.hostElement,"yt-refit")})};
_.W.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var v,e=(v=this.data)==null?void 0:v.onVisible;e&&this.ytComponentBehavior.resolveCommand(e)};
_.W.computeDisplayTitle=function(v){return!(!v||this.titledisplaystatus!=="show")};
_.W.computeDisplaySeparator=function(){return!1};
_.W.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
y6.prototype.onDataChanged=y6.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],y6.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],y6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],y6.prototype,"data",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],y6.prototype,"expanded",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],y6.prototype,"purchaseButtonClicked",void 0);_.c([_.f({reflectToAttribute:!0,value:"show"}),_.w("design:type",String)],y6.prototype,"titledisplaystatus",void 0);_.c([_.f({computed:"computeDisplayTitle(data.title)"}),_.w("design:type",Boolean)],y6.prototype,"displayTitle",void 0);
_.c([_.f({computed:"computeDisplaySeparator(data)"}),_.w("design:type",Boolean)],y6.prototype,"displaySeparator",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],y6.prototype,"onDataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],y6);
_.A(y6,"ytd-sponsorships-tier-renderer",function(){if(Mvg!==void 0)return Mvg;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Mvg=v},{mode:2});var qH=function(){return _.P.apply(this,arguments)||this};
_.V(qH,_.P);
qH.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],qH.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],qH);
_.A(qH,"ytd-sponsorships-management-renderer",function(){if(onn!==void 0)return onn;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return onn=v},{mode:1});var Rz6;var rA=function(){return _.P.apply(this,arguments)||this};
_.V(rA,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],rA.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],rA);
_.A(rA,"ytd-open-in-native-app-view-model",function(){if(Rz6!==void 0)return Rz6;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Rz6=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var PUe;var xK0;var BX7=_.Z9(["top-"]),CUI=_.Z9(["bottom-"]),Xsi=_.Z9(["left-"]),zze=_.Z9(["right-"]),ljJ={},HW7=function(v,e,d){v.removeAttribute("top-"+d);v.removeAttribute("bottom-"+d);v.removeAttribute("left-"+d);v.removeAttribute("right-"+d);e&&(e.top&&_.pY([_.Ea(BX7)],v,"top-"+d,e.top),e.bottom&&_.pY([_.Ea(CUI)],v,"bottom-"+d,e.bottom),e.left&&_.pY([_.Ea(Xsi)],v,"left-"+d,e.left),e.right&&_.pY([_.Ea(zze)],v,"right-"+d,e.right))};
ljJ.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(v){var e,d=_.IB((e=this.hostElement)!=null?e:this),E;e=this.cardItemBoxBehaviorMarginTargetId&&d?d.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(E=this.hostElement)!=null?E:this;HW7(e,v,"margin")},
cardItemContainerPaddingChanged_:function(v){var e,d=_.IB((e=this.hostElement)!=null?e:this),E;e=this.cardItemBoxBehaviorPaddingTargetId&&d?d.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(E=this.hostElement)!=null?E:this;HW7(e,v,"padding")}}];var hP={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 AvB;var ZWg;var KL=function(){return _.P.apply(this,arguments)||this};
_.V(KL,_.P);KL.prototype.textColorChanged_=function(){this.hostElement.style.color=hP[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
KL.prototype.textColorChanged_=KL.prototype.textColorChanged_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.c([_.M(ljJ.YtCardItemBoxBehavior),_.w("design:type",Object)],KL.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],KL.prototype,"data",void 0);_.c([_.$v("data.textColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KL.prototype,"textColorChanged_",null);
_.c([_.lh({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],KL);
_.A(KL,"yt-card-item-text-renderer",function(){if(ZWg===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;AvB===void 0&&(AvB=document.createElement("template"));var E=AvB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);ZWg=v}v=ZWg;return v},{mode:2});var cvJ;var wse;var $o=function(){return _.P.apply(this,arguments)||this};
_.V($o,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$o.prototype,"data",void 0);_.c([_.lh({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],$o);
_.A($o,"yt-card-item-badge-renderer",function(){if(wse===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;cvJ===void 0&&(cvJ=document.createElement("template"));var E=cvJ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);wse=v}v=wse;return v},{mode:2});var FD2;var Qk2;var jk=function(){return _.P.apply(this,arguments)||this};
_.V(jk,_.P);jk.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],jk.prototype,"data",void 0);_.c([_.lh({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],jk);
_.A(jk,"yt-card-item-text-collection-renderer",function(){if(Qk2===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;FD2===void 0&&(FD2=document.createElement("template"));var E=FD2;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Qk2=v}v=Qk2;return v},{mode:2});var gnc;var uVn;var su=function(){return _.P.apply(this,arguments)||this};
_.V(su,_.P);su.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],su.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Number)],su.prototype,"iconSize",void 0);_.c([_.lh({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],su);
_.A(su,"yt-card-item-text-with-button-renderer",function(){if(uVn===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;gnc===void 0&&(gnc=document.createElement("template"));var E=gnc;d.call(e,E.content.cloneNode(!0),v.content.firstChild);uVn=v}v=uVn;return v},{mode:2});var NH=function(){return _.P.apply(this,arguments)||this};
_.V(NH,_.P);NH.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],NH.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],NH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],NH.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],NH);
_.A(NH,"ytd-commerce-cart-summary-line-item-renderer",function(){if(xK0!==void 0)return xK0;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return xK0=v},{mode:1});_.RZ("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var ko=function(){var v=_.P.apply(this,arguments)||this;v.hidden=!1;return v};
_.V(ko,_.P);_.W=ko.prototype;_.W.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"}}}}};
_.W.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.W.updateSummary=function(){var v=this.commerceCartCheckoutButtonEntity,e;if(((e=this.data)==null?0:e.cartButton)&&v.checkoutSummaryText){var d,E=J1((d=this.data)==null?void 0:d.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+E+".cardItemTextRenderer.text",GU(v.checkoutSummaryText));if(v.checkoutDetailText){var T;d=J1((T=this.data)==null?void 0:T.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+d+".cardItemTextRenderer.text",GU(v.checkoutDetailText))}if(v.checkoutAdditionalMetadataText){var S;
T=J1((S=this.data)==null?void 0:S.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+T+".cardItemTextRenderer.text",GU(v.checkoutAdditionalMetadataText))}}else v.estimatedTotalPrice&&(S=J1((E=this.data)==null?void 0:E.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+S+".cardItemTextRenderer.text",GU(v.estimatedTotalPrice)))};
_.W.updateIsHidden=function(){var v,e=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.isHidden;e!==void 0&&(this.hidden=e)};
_.W.updateCheckoutButton=function(){var v,e=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.isDisabled;e!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",e);var d;v=(d=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:d.innertubeCommand;v!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",v);var E;d=(E=this.commerceCartCheckoutButtonEntity)==null?void 0:E.checkoutButtonText;d!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:d})};
ko.prototype.entityChanged=ko.prototype.entityChanged;_.c([_.M(_.lV),_.w("design:type",Object)],ko.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ko.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ko.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],ko.prototype,"fullWidth",void 0);_.c([_.f(),_.w("design:type",Object)],ko.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],ko.prototype,"compact",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ko.prototype,"hidden",void 0);
_.c([_.f({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:gyt}),_.w("design:type",Object)],ko.prototype,"commerceCartCheckoutButtonEntity",void 0);_.c([_.$v("commerceCartCheckoutButtonEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ko.prototype,"entityChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],ko);
_.A(ko,"ytd-commerce-cart-checkout-button-renderer",function(){if(PUe!==void 0)return PUe;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return PUe=v},{mode:2});var nn0;_.DKB={};
_.DKB.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",_.hG(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.hG(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(v){!this.tappableItemBehaviorTapEnabled||v.keyCode!==13&&v.keyCode!==32||v.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var v=this.data.onTap;v.ypcGetCartEndpoint?(_.mN(this.hostElement,[v]),this.tappableItemBehaviorTapEnabled=!1):v.ypcOffersEndpoint?_.mN(this.hostElement,[v]):_.ya(this.hostElement,[v],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(v){this.tappableItemBehaviorTapEnabled=!!v},
tappableItemBehaviorOnTapEnabledChanged_:function(){var v=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(v.setAttribute("tabIndex",0),v.setAttribute("role","button")):(v.removeAttribute("tabIndex"),v.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(v){v.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var UKM;var psn;var LL=function(){return _.P.apply(this,arguments)||this};
_.V(LL,_.P);LL.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Pa("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Pa("sharingToggleButtonAndDefaultButton")}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],LL.prototype,"data",void 0);_.c([_.lh({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],LL);
_.A(LL,"yt-card-item-actions-renderer",function(){if(psn===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;UKM===void 0&&(UKM=document.createElement("template"));var E=UKM;d.call(e,E.content.cloneNode(!0),v.content.firstChild);psn=v}v=psn;return v},{mode:2});var vVI;var etI;var d8e;var EV2;var Tce;var SOI;var V6=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return v};
_.V(V6,_.P);V6.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
V6.prototype.handleDarkModeToggledAction_=function(v){this.isDarkTheme_=v};
V6.prototype.computeThemeImage_=function(v,e){if(!v||!v.imageLight)return!1;this.isCircular_=v.isCircular;v.imageWidth&&(this.hostElement.style.width=v.imageWidth+"px");v.imageHeight&&(this.hostElement.style.height=v.imageHeight+"px");v.borderWidth&&(this.image.style.borderWidth=v.borderWidth+"px",this.image.style.borderStyle="solid");v.borderColor&&(this.image.style.borderColor=_.w1(v.borderColor));return e&&v.imageDark?v.imageDark:v.imageLight};
V6.prototype.computeThemeIcon_=function(v){var e,d;if(!(v==null?0:(e=v.themedIcon)==null?0:(d=e.icon)==null?0:d.iconType))return!1;this.icon.style.color=hP[v.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(v.imageWidth||18)+"px";this.icon.style.height=(v.imageHeight||18)+"px";return _.qC(v.themedIcon.icon.iconType)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(ljJ.YtCardItemBoxBehavior),_.w("design:type",Object)],V6.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],V6.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],V6.prototype,"data",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],V6.prototype,"fit",void 0);_.c([_.f(),_.w("design:type",Boolean)],V6.prototype,"isDarkTheme_",void 0);_.c([_.f({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.w("design:type",Object)],V6.prototype,"themeImage_",void 0);_.c([_.f({computed:"computeThemeIcon_(data)"}),_.w("design:type",Object)],V6.prototype,"themeIcon_",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Object)],V6.prototype,"isCircular_",void 0);
_.c([_.sg("#image"),_.w("design:type",Object)],V6.prototype,"image",void 0);_.c([_.sg("#icon"),_.w("design:type",Object)],V6.prototype,"icon",void 0);_.c([_.lh({is:"yt-themed-image-renderer",disableElementRegistration:!0})],V6);
_.A(V6,"yt-themed-image-renderer",function(){if(SOI===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Tce===void 0&&(Tce=document.createElement("template"));var E=Tce;d.call(e,E.content.cloneNode(!0),v.content.firstChild);SOI=v}v=SOI;return v},{mode:2});var oz=function(){return _.P.apply(this,arguments)||this};
_.V(oz,_.P);oz.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"}}}}};
oz.prototype.computeImagePlacement_=function(v){return v||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],oz.prototype,"data",void 0);_.c([_.f({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.w("design:type",String)],oz.prototype,"imagePlacement",void 0);
_.c([_.lh({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],oz);
_.A(oz,"yt-card-item-text-with-image-renderer",function(){if(EV2===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;d8e===void 0&&(d8e=document.createElement("template"));var E=d8e;d.call(e,E.content.cloneNode(!0),v.content.firstChild);EV2=v}v=EV2;return v},{mode:2});var JP=function(){return _.P.apply(this,arguments)||this};
_.V(JP,_.P);JP.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JP.prototype,"data",void 0);_.c([_.lh({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],JP);
_.A(JP,"yt-card-item-error-renderer",function(){if(etI===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;vVI===void 0&&(vVI=document.createElement("template"));var E=vVI;d.call(e,E.content.cloneNode(!0),v.content.firstChild);etI=v}v=etI;return v},{mode:2});var Wl7;var aNc;_.RZ("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var GP=function(){return _.P.apply(this,arguments)||this};
_.V(GP,_.P);_.W=GP.prototype;
_.W.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"}}}}};
_.W.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.W.backgroundColorChanged_=function(){var v,e=(v=this.data)==null?void 0:v.backgroundColor;v=hP[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.IB(this.hostElement).querySelector("#main-content").style.backgroundColor=v};
_.W.headerPromoBackgroundColorChanged_=function(){var v,e=(v=this.data)==null?void 0:v.headerPromoBackgroundColor;v=hP[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.IB(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=v};
_.W.errorRendererVisibilityChanged_=function(){var v=this.isExpanded_,e;this.isErrorRendererVisible_=!((e=this.data)==null||!e.errorRenderer)&&!v};
_.W.onYtToggleButton_=function(v,e){this.isExpanded_=e.toggled};
GP.prototype.onYtToggleButton_=GP.prototype.onYtToggleButton_;GP.prototype.errorRendererVisibilityChanged_=GP.prototype.errorRendererVisibilityChanged_;GP.prototype.headerPromoBackgroundColorChanged_=GP.prototype.headerPromoBackgroundColorChanged_;GP.prototype.backgroundColorChanged_=GP.prototype.backgroundColorChanged_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],GP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(ljJ.YtCardItemBoxBehavior),_.w("design:type",Object)],GP.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.M(_.DKB.YtTappableItemBehavior),_.w("design:type",Object)],GP.prototype,"ytTappableItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],GP.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],GP.prototype,"isExpanded_",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],GP.prototype,"isErrorRendererVisible_",void 0);_.c([_.$v("data.backgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GP.prototype,"backgroundColorChanged_",null);_.c([_.$v("data.headerPromoBackgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GP.prototype,"headerPromoBackgroundColorChanged_",null);
_.c([_.$v("data.errorRenderer","isExpanded_"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GP.prototype,"errorRendererVisibilityChanged_",null);_.c([_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[Event,Object]),_.w("design:returntype")],GP.prototype,"onYtToggleButton_",null);_.c([_.lh({is:"yt-card-item-renderer",disableElementRegistration:!0})],GP);
_.A(GP,"yt-card-item-renderer",function(){if(aNc===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Wl7===void 0&&(Wl7=document.createElement("template"));var E=Wl7;d.call(e,E.content.cloneNode(!0),v.content.firstChild);aNc=v}v=aNc;return v},{mode:2});_.RZ("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var MH=function(){var v=_.P.apply(this,arguments)||this;v.hidden=!1;return v};
_.V(MH,_.P);_.W=MH.prototype;_.W.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.W.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.W.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var v,e=(v=this.commerceCartHeaderEntity)==null?void 0:v.isHidden;e!==void 0&&(this.hidden=e)}};
_.W.updateTitle=function(){var v=this.commerceCartHeaderEntity.isDisabled,e,d,E=(d=_.L((e=this.data)==null?void 0:e.item,P$E))==null?void 0:d.headingRenderer;E&&(e=J1(E,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+e+".0.cardItemTextRenderer.textColor",v?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.W.updateSummaryText=function(){var v=this.commerceCartHeaderEntity;if(this.compact){var e,d,E=(d=_.L((e=this.data)==null?void 0:e.item,P$E))==null?void 0:d.headingRenderer;E&&(e=J1(E,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+e+".1.cardItemTextRenderer.text",v.shortHeaderSummaryText?GU(v.shortHeaderSummaryText):v.headerSummaryText?GU(v.headerSummaryText):""))}else{var T;if(e=(T=_.L((E=this.data)==null?void 0:E.item,P$E))==null?void 0:T.additionalInfoRenderer)e=J1(e,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".text",v.headerSummaryText?GU(v.headerSummaryText):"")}};
_.W.updateCheckoutButton=function(){var v=this.commerceCartHeaderEntity,e,d,E=(d=_.L((e=this.data)==null?void 0:e.item,P$E))==null?void 0:d.additionalInfoRenderer;e=J1(E,"buttonRenderer");var T;d=(T=this.commerceCartHeaderEntity)==null?void 0:T.isButtonDisabled;var S;T=(S=this.commerceCartHeaderEntity)==null?void 0:S.isButtonHidden;d!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".buttonRenderer.isDisabled",d);T!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
T);var O;v=(O=v.checkoutButtonCommand)==null?void 0:O.innertubeCommand;v!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".buttonRenderer.command",v)};
MH.prototype.entityChanged=MH.prototype.entityChanged;_.c([_.M(_.lV),_.w("design:type",Object)],MH.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],MH.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],MH.prototype,"compact",void 0);_.c([_.f({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(v,e){return _.h_(v.entities,"commerceCartHeaderEntity",e)}}),
_.w("design:type",Object)],MH.prototype,"commerceCartHeaderEntity",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],MH.prototype,"hidden",void 0);_.c([_.$v("commerceCartHeaderEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MH.prototype,"entityChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],MH);
_.A(MH,"ytd-commerce-cart-header-renderer",function(){if(nn0!==void 0)return nn0;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return nn0=v},{mode:1});var ihE;var Ohn=_.rI(function(v,e){var d;return(d=v.onChangeCallback)==null?void 0:d.call(v,e)},1E3),INg=_.l(function(v){var e=v.data;
var d=v.iconMinus;v=v.iconPlus;var E=function(){return!!e().disabled},T=_.a(_.OE(0,void 0,"r56zNb")),S=T.next().value,O=T.next().value;
T={};T=_.qe("yt-spec-quantity-incrementer-shape__icon",(T["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return E()||S()===(e().onRemoveCommand?0:1)},T));
var b={};b=_.qe("yt-spec-quantity-incrementer-shape__icon",(b["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return S()>=e().maxValue||E()},b));
var Y={};Y=_.qe("yt-spec-quantity-incrementer-shape__text",(Y["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return S()>e().maxValue},Y["yt-spec-quantity-incrementer-shape__text--text-disabled"]=E,Y));
var q=_.rq(function(){if(S()===1){var h,K;(K=(h=e()).onRemoveCommand)==null||K.call(h)}h=S()>e().maxValue?e().maxValue:S()-1;O(h);Ohn(e(),h);return!1}),r=_.rq(function(){if(S()===e().maxValue)return!1;
var h=S()+1;O(h);Ohn(e(),h);return!1});
_.JE(function(){O(e().value)});
return _.m("quantity-incrementer-shape",null,_.m("div",{class:"yt-spec-quantity-incrementer-shape"},_.m("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return S()===(e().onRemoveCommand?0:1)||E()},
"aria-label":function(){return S()!==1?e().minusLabel:e().minimumReachedLabel},
"on:click":q},_.m(_.Ie,{model:{circular:!0}}),_.m("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.m("div",{class:T},d()))),_.m("div",{class:Y},S),_.m("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return S()>=e().maxValue||E()},
"aria-label":function(){return S()!==e().maxValue?e().plusLabel:e().maximumReachedLabel},
"on:click":r},_.m(_.Ie,{model:{circular:!0}}),_.m("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.m("div",{class:b},v())))))},"oe");_.aZ(_.l(function(v){function e(){d().onRemoveCommand&&_.wC(d().onRemoveCommand)}
var d=v.data;var E=_.Kv(xW7,function(){return d().quantityIncrementerEntityKey});
return _.m("yt-quantity-incrementer-view-model",null,_.m(INg,{data:function(){var T=d(),S;var O=E()?!((S=E())==null||!S.disabled):!1;var b;S=E()?(b=E())==null?void 0:b.quantity:d().quantity;return BUH(T,O,e,S)},
iconMinus:function(){return _.m(_.sG,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.m(_.sG,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"pe"),"yt-quantity-incrementer-view-model",{props:{data:_.U1}});var tP=function(){var v=_.P.apply(this,arguments)||this;v.compact=!1;v.hasQuantityIncrementer=!1;return v};
_.V(tP,_.P);tP.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"}}}};
tP.prototype.computeHasQuantityIncrementer=function(){var v;return!!_.L((v=this.data)==null?void 0:v.picker,Xhg)};
tP.prototype.onLabelClick=function(){var v;(v=this.dropdownEl)==null||v.open()};
_.c([_.sg("ytd-dropdown-renderer"),_.w("design:type",Object)],tP.prototype,"dropdownEl",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],tP.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],tP.prototype,"quantityColor",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],tP.prototype,"compact",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.w("design:type",Object)],tP.prototype,"hasQuantityIncrementer",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],tP);
_.A(tP,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(ihE!==void 0)return ihE;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ihE=v},{mode:1});var bh0;var YOM;var fL=function(){return _.P.apply(this,arguments)||this};
_.V(fL,_.P);fL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fL.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
fL.prototype.updateTitle=function(){var v=this.disabledCartItemEntity;v.disableActionName&&this.set("data.title",GU(v.disableActionName))};
fL.prototype.updateButton=function(){var v,e=(v=this.disabledCartItemEntity.undoCommand)==null?void 0:v.innertubeCommand;e!==void 0&&(this.set("data.actionButton.buttonRenderer.command",e),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
fL.prototype.entityChanged=fL.prototype.entityChanged;_.c([_.M(_.lV),_.w("design:type",Object)],fL.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],fL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(v,e){return _.h_(v.entities,"disabledCartItemEntity",e)}}),
_.w("design:type",Object)],fL.prototype,"disabledCartItemEntity",void 0);_.c([_.f(),_.w("design:type",Object)],fL.prototype,"data",void 0);_.c([_.$v("disabledCartItemEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fL.prototype,"entityChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],fL);
_.A(fL,"ytd-disabled-cart-item-renderer",function(){if(YOM!==void 0)return YOM;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return YOM=v},{mode:1});_.RZ("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Rz=function(){var v=_.P.apply(this,arguments)||this;v.compact=!1;v.hidden=!1;v.errorHidden=!1;v.noOnTap=!1;return v};
_.V(Rz,_.P);_.W=Rz.prototype;
_.W.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"}}}};
_.W.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.W.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var v=this.firstButtonElement;v.alignByText=!0;v.iconAlignByText=!0}};
_.W.computeNoOnTap=function(v){return!v};
_.W.updateQuantityColor=function(){if(this.pickerElement){var v,e=(v=this.commerceCartItemEntity)==null?void 0:v.quantityColor;this.pickerElement.quantityColor=e}};
_.W.updateTotalPriceColor=function(){var v,e=(v=this.commerceCartItemEntity)==null?void 0:v.totalPriceColor;if(e){var d;v=_.L((d=this.data)==null?void 0:d.quantityPicker,BDB);if(d=_.L(v==null?void 0:v.price,xZB))d.textColor=e}};
_.W.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var v,e=(v=this.commerceCartItemEntity)==null?void 0:v.isHidden;e!==void 0&&(this.hidden=e)}};
_.W.updateHideErrorMessage=function(){var v,e=(v=this.commerceCartItemEntity)==null?void 0:v.hideErrorMessage;e!==void 0&&(this.errorHidden=e)};
_.W.updateQuantity=function(){var v=this,e,d=(e=this.commerceCartItemEntity)==null?void 0:e.quantity,E;e=(E=this.commerceCartItemEntity)==null?void 0:E.totalPrice;if(d){this.updateTotalPriceColor();this.updateQuantityColor();var T;E=_.L((T=this.data)==null?void 0:T.quantityPicker,BDB);if(T=_.L(E==null?void 0:E.price,xZB))T.text=e?{simpleText:e.content}:void 0;if(e=_.L(E==null?void 0:E.picker,Xhg))e.quantity=d;var S;if(T=(S=_.L(E==null?void 0:E.picker,XDi))==null?void 0:S.entries){S=!1;e=void 0;T=
_.a(T);for(E=T.next();!E.done;E=T.next())E=E.value,E.dropdownItemRenderer&&(e||(e=E.dropdownItemRenderer),E.dropdownItemRenderer.isSelected=!1,d===E.dropdownItemRenderer.int32Value&&(S=!0,E.dropdownItemRenderer.isSelected=!0));!S&&e&&(e.isSelected=!0)}_.Uh(this,function(){var O;v.set("data.quantityPicker",_.f0.unsafeClone((O=v.data)==null?void 0:O.quantityPicker))})}};
Rz.prototype.onYtRendererstamperFinished=Rz.prototype.onYtRendererstamperFinished;Rz.prototype.entityChanged=Rz.prototype.entityChanged;_.c([_.f(),_.w("design:type",Object)],Rz.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Rz.prototype,"compact",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Rz.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Rz.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(v,e){return _.h_(v.entities,"commerceCartItemEntity",e)}}),
_.w("design:type",Object)],Rz.prototype,"commerceCartItemEntity",void 0);_.c([_.f(),_.w("design:type",Object)],Rz.prototype,"quantityPicker",void 0);_.c([_.f(),_.w("design:type",Object)],Rz.prototype,"compactQuantityPicker",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Rz.prototype,"hidden",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Rz.prototype,"errorHidden",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.w("design:type",Object)],Rz.prototype,"noOnTap",void 0);_.c([_.sg("ytd-commerce-cart-item-quantity-picker-renderer"),_.w("design:type",Object)],Rz.prototype,"pickerElement",void 0);_.c([_.sg("yt-button-renderer"),_.w("design:type",Element)],Rz.prototype,"firstButtonElement",void 0);
_.c([_.$v("commerceCartItemEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Rz.prototype,"entityChanged",null);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Rz.prototype,"onYtRendererstamperFinished",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Rz);
_.A(Rz,"ytd-commerce-cart-item-renderer",function(){if(bh0!==void 0)return bh0;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return bh0=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var m87;var ymi;var PC=function(){return _.P.apply(this,arguments)||this};
_.V(PC,_.P);PC.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}}}}}};
PC.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
PC.prototype.updateCheckoutLineItems=function(){var v,e=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.checkoutLineItems;e&&(v=e.map(function(d){a:{var E=d.price,T=d.description;switch(d.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":d={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:GU(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:GU(E),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:d={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:GU(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:GU(E),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 d}),this.set("data.summaryLineItems",v))};
PC.prototype.updateIsHidden=function(){var v,e=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.isHidden;e!==void 0&&(this.hostElement.hidden=e)};
PC.prototype.entityChanged=PC.prototype.entityChanged;_.c([_.M(_.lV),_.w("design:type",Object)],PC.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],PC.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],PC.prototype,"data",void 0);_.c([_.f({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:gyt}),_.w("design:type",Object)],PC.prototype,"commerceCartCheckoutButtonEntity",void 0);_.c([_.$v("commerceCartCheckoutButtonEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PC.prototype,"entityChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],PC);
_.A(PC,"ytd-commerce-cart-summary-renderer",function(){if(ymi!==void 0)return ymi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ymi=v},{mode:1});var qOi={};qOi.InjectBehavior=[rh$.InjectBehavior];var rmu;var hte;var xo=function(){return _.P.apply(this,arguments)||this};
_.V(xo,_.P);
xo.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:_.Pa("menuRenderer")}}};
xo.prototype.onMenuTap=function(v){v.stopPropagation()};
_.vP.Object.defineProperties(xo.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 v,e;return!(((v=this.data)==null||!v.sectionHeading)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var v,e;return!(((v=this.data)==null||!v.image)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var v,e;return!(((v=this.data)==null||!v.menu)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.DKB.YtTappableItemBehavior),_.w("design:type",Object)],xo.prototype,"ytTappableItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],xo.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data.accessibilityData"),_.w("design:type",String),_.w("design:paramtypes",[])],xo.prototype,"ariaLabel",null);_.c([_.t("data.sectionHeading","data.layout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],xo.prototype,"sectionHeadingVisible",null);_.c([_.t("data.image","data.layout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],xo.prototype,"imageVisible",null);
_.c([_.t("data.menu","data.layout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],xo.prototype,"menuVisible",null);_.c([_.lh({is:"yt-activity-item-renderer",disableElementRegistration:!0})],xo);
_.A(xo,"yt-activity-item-renderer",function(){if(hte===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;rmu===void 0&&(rmu=document.createElement("template"));var E=rmu;d.call(e,E.content.cloneNode(!0),v.content.firstChild);hte=v}v=hte;return v},{mode:2});var Kle;var $8M;var jhu;var shc;var BC=function(){return _.P.apply(this,arguments)||this};
_.V(BC,_.P);
BC.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"}}}}};
BC.prototype.backgroundColorChanged_=function(){var v,e=(v=this.data)==null?void 0:v.backgroundColor;this.hostElement.style.backgroundColor=hP[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
BC.prototype.backgroundColorChanged_=BC.prototype.backgroundColorChanged_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],BC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],BC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],BC.prototype,"data",void 0);
_.c([_.$v("data.backgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],BC.prototype,"backgroundColorChanged_",null);_.c([_.lh({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],BC);
_.A(BC,"yt-offer-item-upsell-renderer",function(){if(shc===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;jhu===void 0&&(jhu=document.createElement("template"));var E=jhu;d.call(e,E.content.cloneNode(!0),v.content.firstChild);shc=v}v=shc;return v},{mode:2});_.RZ("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var CL=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};v.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return v};
_.V(CL,_.P);_.W=CL.prototype;
_.W.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:_.Pa("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.W.computeContainerStyle_=function(v){return v};
_.W.computeContainerIsHidden_=function(v){return v&&!!v.isHidden};
_.W.computeShowSpinner_=function(v,e){return v&&e==="in-progress"};
_.W.computeShowMoreContentsButton_=function(v,e,d,E,T){return!(!(E&&E.length||T&&T.length&&d)||!v||e)};
_.W.onToggleButton_=function(v){var e=this;v.stopPropagation();this.isExpanded_=v.detail&&v.detail.toggled;var d,E;this.isExpanded_&&!this.data.continuationSection.length&&((d=this.data)==null?0:(E=d.continuation)==null?0:E.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Iq(this.hostElement,"yt-load-next-continuation",function(T){return e.getContinuationUrl_(e.data.continuation.onClickContinuationData,T)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.mN(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.W.onShowMoreContentsButtonClicked_=function(v){var e=this;v.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Iq(this.hostElement,"yt-load-next-continuation",function(d){return e.getContinuationUrl_(e.data.continuations[0].nextContinuationData,d)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.mN(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.W.getContinuationUrl_=function(v,e){var d=v.continuation;v=v.clickTrackingParams;var E=_.zz();v&&E&&_.Uz(E,_.Jg(v));return _.ug(e,{continuation:d})};
_.W.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var v=_.IB(this.hostElement).querySelector("#continuation-section");v&&(v=v.querySelectorAll("ytmusic-item-section-renderer"))&&v.forEach(function(e){return e.classList.add("memberships-and-purchases")})};
_.W.dataChanged_=function(){var v;this.isExpanded_=!((v=this.data)==null||!v.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.W.updateCardOnClickCommand_=function(v){v=_.L(v,VZe);var e,d;this.data&&((e=this.data)==null?0:e.targetId)&&v&&v.targetId===((d=this.data)==null?void 0:d.targetId)&&v.onClickCommand&&(this.data.onClickCommand=v.onClickCommand,this.isOnClickCommand_=!0)};
_.W.backgroundColorChanged_=function(){var v,e=(v=this.data)==null?void 0:v.backgroundColor;this.hostElement.style.backgroundColor=hP[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
CL.prototype.backgroundColorChanged_=CL.prototype.backgroundColorChanged_;CL.prototype.dataChanged_=CL.prototype.dataChanged_;CL.prototype.nextContinuationDataUpdated_=CL.prototype.nextContinuationDataUpdated_;CL.prototype.onToggleButton_=CL.prototype.onToggleButton_;_.c([_.M(_.FL),_.w("design:type",Object)],CL.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],CL.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],CL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.QL.YtNextContinuationBehavior),_.w("design:type",Object)],CL.prototype,"ytNextContinuationBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.c([_.M(qOi.InjectBehavior),_.w("design:type",Object)],CL.prototype,"injectBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],CL.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],CL.prototype,"compact",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],CL.prototype,"isExpanded_",void 0);_.c([_.f({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.w("design:type",String)],CL.prototype,"containerStyle_",void 0);_.c([_.f({value:"not-started"}),_.w("design:type",String)],CL.prototype,"continuationStatus_",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.w("design:type",Boolean)],CL.prototype,"showSpinner_",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],CL.prototype,"isOnClickCommand_",void 0);_.c([_.f({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.w("design:type",Boolean)],CL.prototype,"showMoreContentsButton_",void 0);
_.c([_.f({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(v,e){return!e||v.entities?null:_.h_(v.entities,"cardItemContainerEntity",e)}}),
_.w("design:type",Object)],CL.prototype,"cardItemContainerEntity_",void 0);_.c([_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],CL.prototype,"onToggleButton_",null);_.c([_.Kq("yt-next-continuation-data-updated"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CL.prototype,"nextContinuationDataUpdated_",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CL.prototype,"dataChanged_",null);_.c([_.$v("data.backgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CL.prototype,"backgroundColorChanged_",null);_.c([_.lh({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],CL);
_.A(CL,"yt-card-item-container-renderer",function(){if($8M===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Kle===void 0&&(Kle=document.createElement("template"));var E=Kle;d.call(e,E.content.cloneNode(!0),v.content.firstChild);$8M=v}v=$8M;return v},{mode:2});var Xi=function(){return _.P.apply(this,arguments)||this};
_.V(Xi,_.P);Xi.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"}}}};
Xi.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Xi.prototype.computeLoadingHidden=function(){var v;return!((v=this.commerceCartPageStateEntity)==null?0:v.cartActionInProgress)};
Xi.prototype.updateNotification=function(){var v,e=(v=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:v.summaryText;e&&this.set("data.cartNotification",GU(e))};
Xi.prototype.notificationEntityChanged=Xi.prototype.notificationEntityChanged;_.c([_.M(_.lV),_.w("design:type",Object)],Xi.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Xi.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Xi.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Xi.prototype,"data",void 0);_.c([_.f({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(v,e){return _.h_(v.entities,"commerceCartExpandableNotificationEntity",e)}}),
_.w("design:type",Object)],Xi.prototype,"commerceCartExpandableNotificationEntity",void 0);_.c([_.f({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(v,e){return _.h_(v.entities,"commerceCartPageStateEntity",e)}}),
_.w("design:type",Object)],Xi.prototype,"commerceCartPageStateEntity",void 0);_.c([_.sg("#spinner"),_.w("design:type",HTMLElement)],Xi.prototype,"spinner",void 0);_.c([_.$v("commerceCartExpandableNotificationEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Xi.prototype,"notificationEntityChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Xi);
_.A(Xi,"ytd-commerce-cart-renderer",function(){if(m87!==void 0)return m87;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return m87=v},{mode:1});var Ncu;var zP=function(){var v=_.P.apply(this,arguments)||this;v.bigImage=!1;return v};
_.V(zP,_.P);_.vP.Object.defineProperties(zP.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.placeholderImageUrl}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],zP.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zP.prototype,"bigImage",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],zP.prototype,"placeholderImageUrl",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],zP);
_.A(zP,"ytd-empty-product-shelf-renderer",function(){if(Ncu!==void 0)return Ncu;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Ncu=v},{mode:1});var kb7;var lf=function(){var v=_.P.apply(this,arguments)||this;v.itemStyle="link-item";v.watchMetadataRefresh=!1;v.skinnyMode=!1;v.metaPanel=!1;v.inStructuredDescription=!1;v.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};v.updateOnResizeDebouncer=null;return v};
_.V(lf,_.P);_.W=lf.prototype;_.W.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.W.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"}}}}};
_.W.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.W.attachVEs=function(v){v.trackingParams&&_.NC().graftServerVe(v.trackingParams)};
_.W.handleUpdateMerchShelfAction=function(v){var e=this,d=_.L(v.updateMerchandiseShelfAction.merchandiseShelf,_.Ts7);d&&(d.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){e.attachVEs(d);e.data=d},Number(d.renderDelayMs))):(this.attachVEs(d),this.data=d))};
_.W.updateOnResize=function(){if(this.JSC$16826_scrollContainer!==void 0&&this.JSC$16826_scrollContainer.clientWidth!==0&&this.items!==void 0){var v=this.JSC$16826_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-v));this.ytdHorizontalListBehavior.reposition_();var e;switch((e=this.data)==null?void 0:e.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var d,
E;((d=this.data)==null?void 0:(E=d.items)==null?void 0:E.length)===1?this.itemStyle="cta-item":this.itemStyle=v>=740?"large-item":"small-item"}}};
_.W.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Sr(this.updateOnResizeDebouncer,_.QP.after(100),this.updateOnResize)};
lf.prototype.debouncedUpdateOnResize=lf.prototype.debouncedUpdateOnResize;lf.prototype.dataChanged=lf.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.OC.YtdHorizontalListBehavior),_.w("design:type",Object)],lf.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],lf.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],lf.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],lf.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],lf.prototype,"itemStyle",void 0);_.c([_.f({value:6}),_.w("design:type",Number)],lf.prototype,"initialCount",void 0);
_.c([_.f({value:"data.items"}),_.w("design:type",String)],lf.prototype,"itemsPath",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],lf.prototype,"watchMetadataRefresh",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],lf.prototype,"skinnyMode",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],lf.prototype,"metaPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],lf.prototype,"inStructuredDescription",void 0);
_.c([_.sg("#items"),_.w("design:type",HTMLDivElement)],lf.prototype,"items",void 0);_.c([_.sg("#scroll-container"),_.w("design:type",HTMLDivElement)],lf.prototype,"JSC$16826_scrollContainer",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lf.prototype,"dataChanged",null);_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lf.prototype,"debouncedUpdateOnResize",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],lf);
_.A(lf,"ytd-merch-shelf-renderer",function(){if(kb7!==void 0)return kb7;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return kb7=v},{mode:2});var LlI;var HC=function(){var v=_.P.apply(this,arguments)||this;v.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 v};
_.V(HC,_.P);_.W=HC.prototype;
_.W.addBackstagePostAction=function(v){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(v=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",v))&&(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:v}):this.set("data.contents",[{backstagePostThreadRenderer:v}]))};
_.W.addBackstageCommentAction=function(v){var e=this.get("addBackstageCommentAction.parentId",v);v=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",v);if(e&&v){e=this.postIdToIndices(e);for(var d=0;d<e.length;d++){var E=e[d];if(E<0)break;E="data.contents."+E+".backstagePostThreadRenderer.comments";this.get(E)&&(this.get(E+".backstageCommentsRenderer.contents")&&this.push(E+".backstageCommentsRenderer.contents",{commentThreadRenderer:v}),this.get(E+".backstageCommentsRenderer.teaserContents")?
this.push(E+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:v}):this.set(E+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:v}]))}}};
_.W.addBackstageReplyAction=function(v){var e=this.get("addBackstageReplyAction.parentId",v);v=this.get("addBackstageReplyAction.renderer.commentRenderer",v);e&&v&&this.setCreatorReply(e,v)};
_.W.banAuthorAction=function(v){var e=this.get("banAuthorAction.commentId",v);e&&(v=this.get("banAuthorAction.parentCommentId",v)||this.getParentPostId(e),this.removeFromStream(e,v))};
_.W.hideReportedCommentAction=function(v){var e=this.get("hideReportedCommentAction.commentId",v);e&&((v=this.get("hideReportedCommentAction.parentCommentId",v))||(v=this.getParentPostId(e)),this.removeFromStream(e,v))};
_.W.replaceBackstageCommentAction=function(v){var e=this.get("replaceBackstageCommentAction.commentId",v),d=this.get("replaceBackstageCommentAction.parentId",v);v=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",v);if(e&&d&&v){d=this.postIdToIndices(d);for(var E=0;E<d.length;E++){var T=d[E];if(T<0)break;var S=this.commentIdToIndex(e,T,!1);if(S>=0){var O=this.get("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+S+".commentThreadRenderer.replies.commentRepliesRenderer");
O&&(v.replies={commentRepliesRenderer:O});this.splice("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",S,1,{commentThreadRenderer:v})}S=this.commentIdToIndex(e,T,!0);if(S>=0){if(O=this.get("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(S+".commentThreadRenderer.replies.commentRepliesRenderer")))v.replies={commentRepliesRenderer:O};this.splice("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
S,1,{commentThreadRenderer:v})}}}};
_.W.replaceBackstagePostAction=function(v){var e=this.get("replaceBackstagePostAction.itemId",v);if(e){e=this.postIdToIndices(e);for(var d=0;d<e.length;d++){var E=e[d];if(E<0)break;var T=this.getPostRendererType(E),S=this.get("replaceBackstagePostAction.renderer."+T,v);if(!S&&T!=="sharedPostRenderer")break;var O=!1;S||(O=!0,S=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",v));if(!S)break;var b={};O?(_.xJ(b,urB,S),this.set("data.contents."+E+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
b)):(_.xJ(b,new _.gG(T),S),this.set("data.contents."+E+".backstagePostThreadRenderer.post",b))}}};
_.W.replaceBackstageReplyAction=function(v){var e=this.get("replaceBackstageReplyAction.replyId",v),d=this.get("replaceBackstageReplyAction.parentId",v);v=this.get("replaceBackstageReplyAction.renderer.commentRenderer",v);e&&v&&d&&this.setCreatorReply(d,v)};
_.W.removeCommentAction=function(v){var e=this.get("removeCommentAction.commentId",v);if(e){var d=this.get("removeCommentAction.parentCommentId",v);d&&this.get("removeCommentAction.isCreatorReply",v)?this.setCreatorReply(d,void 0):(d||(d=this.getParentPostId(e)),this.removeFromStream(e,d))}};
_.W.setCreatorReply=function(v,e){var d=this.getParentPostId(v);if(d){d=this.postIdToIndices(d);for(var E=0;E<d.length;E++){var T=d[E];if(T<0)break;var S=this.commentIdToIndex(v,T,!1);if(S>=0){var O="data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+S;S=O+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";O+=".commentThreadRenderer.replies";e==void 0?(this.set(O,{}),this.set(S,!1)):(this.set(O,{commentRepliesRenderer:{teaserContents:[{commentRenderer:e}]}}),
this.set(O+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(S,!0))}S=this.commentIdToIndex(v,T,!0);S>=0&&(S="data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+S,T=S+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",S+=".commentThreadRenderer.replies",e==void 0?(this.set(S,{}),this.set(T,!1)):(this.set(S,{commentRepliesRenderer:{teaserContents:[{commentRenderer:e}]}}),this.set(T,!0)))}}};
_.W.removeFromStream=function(v,e){if(e){e=this.postIdToIndices(e);for(var d=0;d<e.length;d++){var E=e[d];if(E<0)break;var T=this.commentIdToIndex(v,E,!1);T>=0&&this.splice("data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",T,1);T=this.commentIdToIndex(v,E,!0);T>=0&&this.splice("data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",T,1);E="data.contents."+E+".backstagePostThreadRenderer.post.backstagePostRenderer";
T=E+".backstageAttachment.pollRenderer.votedCommentId";this.get(T)===v&&(this.set(T,null),this.set(E+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(e=this.postIdToIndices(v).reverse(),d=0;d<e.length;d++){E=e[d];if(E<0)break;T=this.getPostRendererType(E);var S=this.get("backstagePostThreadRenderer.post."+T,this.data.contents[E]);S.postId===v?this.splice("data.contents",E,1):T==="sharedPostRenderer"&&this.set("data.contents."+E+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);S.scheduledPublishTimeSec&&_.b4(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.W.postIdToIndices=function(v){for(var e=[],d=0;d<this.data.contents.length;d++){var E=this.getPostRendererType(d);this.get("backstagePostThreadRenderer.post."+E+".postId",this.data.contents[d])===v&&e.push(d);if(E==="sharedPostRenderer"){var T=this.get("backstagePostThreadRenderer.post."+E+".originalPost.backstagePostRenderer.postId",this.data.contents[d]);E=this.get("backstagePostThreadRenderer.post."+E+".originalPost.postRenderer.postId",this.data.contents[d]);T!==v&&E!==v||e.push(d)}}return e};
_.W.commentIdToIndex=function(v,e,d){if(e<0)return-1;var E,T,S,O,b=_.L((E=this.data)==null?void 0:(T=E.contents)==null?void 0:(S=T[e])==null?void 0:(O=S.backstagePostThreadRenderer)==null?void 0:O.comments,Qdg);return(e=d?b==null?void 0:b.teaserContents:b==null?void 0:b.contents)&&e.length?e.findIndex(function(Y){return _.L(Y,Gx7).comment.commentRenderer.commentId===v}):-1};
_.W.getParentPostId=function(v){v=v.split(".");if(v[1])return v[0]};
_.W.getPostRendererType=function(v){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[v])?"sharedPostRenderer":"backstagePostRenderer"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],HC.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],HC.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-backstage-items"})],HC);
_.A(HC,"ytd-backstage-items",function(){if(LlI!==void 0)return LlI;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return LlI=
v},{mode:1});var Vc0;var oVI={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},AP=function(){var v=_.P.apply(this,arguments)||this;v.disablePrescanVisibility=!0;v.canScheduleJobs=!0;v.engagementPanel=!1;v.hidePanelButton=!1;v.isWatchGrid=!1;v.hasShownSubscribersOnlyDisclaimer=!1;v.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return v};
_.V(AP,_.P);_.W=AP.prototype;_.W.created=function(){this.initCommentsCsi_();_.N("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.W.contentsChanged_=function(){var v;(v=this.data)!=null&&v.contents&&this.tickForCommentsTimer_("cml")};
_.W.headerChanged_=function(){var v;(v=this.data)!=null&&v.header&&this.tickForCommentsTimer_("cmhl")};
_.W.initCommentsCsi_=function(){_.Xq("wn_comments");var v=_.zz();v&&_.BF({clientScreenNonce:v},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.W.createCommentAction_=function(v){v=_.f0.unsafeClone(v);var e,d;if(v=(e=_.L(v,$sE))==null?void 0:(d=e.contents)==null?void 0:d.commentThreadRenderer){var E,T,S,O,b,Y;!this.isBackstage&&((E=this.data)==null?0:(T=E.header)==null?0:(S=T.commentsHeaderRenderer)==null?0:(O=S.createRenderer)==null?0:(b=O.commentSimpleboxRenderer)==null?0:(Y=b.zeroStep)==null?0:Y.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var q,
r,h;this.isBackstage&&_.L((q=this.data)==null?void 0:(r=q.header)==null?void 0:(h=r.commentsHeaderRenderer)==null?void 0:h.zeroStateMessage,n0M)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(v)}};
_.W.doReplyInsert_=function(v,e,d,E){E?this.splice(v,E,0,e):this.push(v,e)};
_.W.getRepliesPath_=function(v){return"data.contents."+v+".commentThreadRenderer.replies"};
_.W.getRepliesContentsPath_=function(v,e){v=this.getRepliesPath_(v);return e?v+".commentRepliesRenderer.teaserContents":v+".commentRepliesRenderer.contents"};
_.W.showSubscribersOnlyDisclaimer_=function(v){(v=v.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(v))&&(_.b4(this.hostElement,"yt-open-popup-action",[v,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.W.createCommentReplyAction_=function(v){v=_.f0.unsafeClone(v);var e=_.L(v,jnn);if(v=e==null?void 0:e.contents){var d=this.commentIdToIndex_(e==null?void 0:e.parentCommentId);if(!(d<0)){var E=this.getRepliesPath_(d);if(this.get(E)){e=e.replyToCommentId;E=this.getRepliesContentsPath_(d,!1);if(this.get(E)){var T=this.get(E).length,S=E+"."+(T-1)+".continuationItemRenderer";this.get(S+".button")?(S=this.replyIdToIndex_(e,d,!1),this.doReplyInsert_(E,v,S,T-1)):this.get(S)||(T=this.replyIdToIndex_(e,d,
!1),this.doReplyInsert_(E,v,T,null))}E=this.getRepliesContentsPath_(d,!0);this.get(E)?(d=this.replyIdToIndex_(e,d,!0),(!e||d>=0)&&this.doReplyInsert_(E,v,d,null)):this.set(E,[v])}else this.set(E,{commentRepliesRenderer:{teaserContents:[v]}})}}};
_.W.hideReportedCommentAction_=function(v){var e=_.L(v,HyA);if(v=e==null?void 0:e.commentId)(e=this.get("parentCommentId",e))||(e=this.getParentCommentId_(v)),this.remove_(v,e)};
_.W.getParentCommentId_=function(v){v=v.split(".");if(v[1])return v[0]};
_.W.removeCommentAction_=function(v){var e=_.L(v,V9e);if(v=e==null?void 0:e.commentId)e=(e==null?void 0:e.parentCommentId)||this.getParentCommentId_(v),this.remove_(v,e)};
_.W.pinCommentAction_=function(v){v=_.f0.unsafeClone(v);var e=_.L(v,LJu);e!=null&&e.commentId&&(v=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",v))&&(this.remove_(e.commentId),this.insert_(v,!0))};
_.W.unpinCommentAction_=function(v){v=_.f0.unsafeClone(v);v=_.L(v,oNi);if(v!=null&&v.commentId){var e,d,E=(e=v.actionResult)==null?void 0:(d=e.update)==null?void 0:d.commentThreadRenderer;E&&(this.remove_(v.commentId),this.insert_(E))}};
_.W.banAuthorAction_=function(v){var e=_.L(v,KJM);e!=null&&e.commentId&&(v=e.commentId,e=e.parentCommentId||this.getParentCommentId_(v),this.remove_(v,e))};
_.W.commentIdToIndex_=function(v){var e;return v&&(e=this.data)!=null&&e.contents?this.data.contents.findIndex(function(d){d=d.commentThreadRenderer;var E;return v===((d==null?void 0:d.commentViewModel)&&((E=_.L(d.commentViewModel,xsJ))==null?void 0:E.commentId))}):-1};
_.W.insert_=function(v,e){e=e===void 0?!1:e;var d,E;if((d=this.data)==null?0:(E=d.contents)==null?0:E.some(function(S){return!!S.commentThreadRenderer}))for(d=0,E=this.data.contents.length;d<E;d++){var T=this.data.contents[d].commentThreadRenderer;
if(oVI[v.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=oVI[T.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){e&&oVI[v.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===oVI[T.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",d,1,{commentThreadRenderer:v}):this.splice("data.contents",d,0,{commentThreadRenderer:v});break}}else this.set("data.contents",[{commentThreadRenderer:v}])};
_.W.doReplyRemove_=function(v,e,d){v=this.replyIdToIndex_(v,e,d);v<0||(e=this.getRepliesContentsPath_(e,d),this.splice(e,v,1))};
_.W.remove_=function(v,e){e=this.commentIdToIndex_(e);e<0?(e=this.commentIdToIndex_(v),e<0||this.splice("data.contents",e,1)):_.N("web_delhi_comment_threads")||(this.doReplyRemove_(v,e,!1),this.doReplyRemove_(v,e,!0))};
_.W.replyIdToIndex_=function(v,e,d){if(e<0)return-1;e=this.getRepliesContentsPath_(e,d);e=this.get(e);if(!e||!e.length)return-1;d=0;for(var E=e.length;d<E;d++){var T=void 0,S=void 0;if(((T=e[d])==null?void 0:(S=T.commentViewModel)==null?void 0:S.commentId)===v)return d}return-1};
_.W.tickForCommentsTimer_=function(v){_.l4(v,void 0,"wn_comments")};
_.W.reloadComments_=function(v){v=_.L(v,Rwi);_.L(v==null?void 0:v.command,_.Ha)&&_.mN(this.hostElement,[v==null?void 0:v.command])};
_.vP.Object.defineProperties(AP.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return!!((v=this.data)==null?0:(e=v.header)==null?0:(d=e.commentsHeaderRenderer)==null?0:d.isBackstageContent)}}});
_.vP.Object.defineProperties(AP,{template:{configurable:!0,enumerable:!0,get:function(){if(Vc0===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);Vc0=v}v=Vc0;return v}}});
AP.prototype.showSubscribersOnlyDisclaimer_=AP.prototype.showSubscribersOnlyDisclaimer_;AP.prototype.headerChanged_=AP.prototype.headerChanged_;AP.prototype.contentsChanged_=AP.prototype.contentsChanged_;_.c([_.M(_.dK),_.w("design:type",Object)],AP.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.$hM.YtHostElementBehavior),_.w("design:type",Object)],AP.prototype,"ytHostElementBehavior",void 0);
_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",Function)],AP.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],AP.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],AP.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data.header.commentsHeaderRenderer.isBackstageContent"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],AP.prototype,"isBackstage",null);_.c([_.f(),_.w("design:type",Object)],AP.prototype,"disablePrescanVisibility",void 0);_.c([_.f(),_.w("design:type",Object)],AP.prototype,"canScheduleJobs",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],AP.prototype,"engagementPanel",void 0);
_.c([_.f(),_.w("design:type",Object)],AP.prototype,"hidePanelButton",void 0);_.c([_.f(),_.w("design:type",Object)],AP.prototype,"isWatchGrid",void 0);_.c([_.f(),_.w("design:type",Object)],AP.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.c([_.$v("data.contents"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],AP.prototype,"contentsChanged_",null);
_.c([_.$v("data.header"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],AP.prototype,"headerChanged_",null);_.c([_.Kq("yt-show-subscribers-only-disclaimer"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],AP.prototype,"showSubscribersOnlyDisclaimer_",null);_.c([_.z({is:"ytd-comments"})],AP);var ZW=function(){return _.kv.apply(this,arguments)||this};
_.V(ZW,_.kv);_.W=ZW.prototype;_.W.bindIf=function(v,e,d){return v?e:d};
_.W.bindIfDefined=function(v,e){return v!==void 0?v:e};
_.W.booleanString=function(v){return(!!v).toString()};
_.W.equals=function(){for(var v=_.Xa.apply(0,arguments),e=v[0],d=1;d<v.length;d++)if(e!=v[d])return!1;return!0};
_.W.isGreaterThan=function(v,e){return v>e};
_.W.isLessThan=function(v,e){return v<e};
_.W.logicalAND=function(){for(var v=_.Xa.apply(0,arguments),e=!!v[0],d=1;d<v.length;d++)e=e&&!!v[d];return e};
_.W.logicalOR=function(){for(var v=_.Xa.apply(0,arguments),e=!!v[0],d=1;d<v.length;d++)e=e||!!v[d];return e};
_.W.toBool=function(v){return!!v};
ZW.prototype.toBool=ZW.prototype.toBool;ZW.prototype.logicalOR=ZW.prototype.logicalOR;ZW.prototype.logicalAND=ZW.prototype.logicalAND;ZW.prototype.isLessThan=ZW.prototype.isLessThan;ZW.prototype.isGreaterThan=ZW.prototype.isGreaterThan;ZW.prototype.equals=ZW.prototype.equals;ZW.prototype.booleanString=ZW.prototype.booleanString;ZW.prototype.bindIfDefined=ZW.prototype.bindIfDefined;ZW.prototype.bindIf=ZW.prototype.bindIf;_.c([_.Lq()],ZW);_.JmM=[ZW.prototype];var Gbe;var McE;var cC=function(){return _.P.apply(this,arguments)||this};
_.V(cC,_.P);cC.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
cC.prototype.onBackIconTap_=function(){window.history.back()};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],cC.prototype,"data",void 0);_.c([_.lh({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],cC);
_.A(cC,"yt-header-with-back-renderer",function(){if(McE===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Gbe===void 0&&(Gbe=document.createElement("template"));var E=Gbe;d.call(e,E.content.cloneNode(!0),v.content.firstChild);McE=v}v=McE;return v},{mode:2});var tce;var fNI;var wA=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(wA,_.P);_.W=wA.prototype;_.W.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.W.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v,this.setUrl())};
_.W.dataChanged=function(){var v=this;if(this.data){var e=this.setUrl();e&&_.gN({destination:window,iframe:this.iframe,origin:_.fwB(e.toString()),channelName:"yt-iframe",onMessage:function(d){(d=v.getCommunicationCommand(d.data))&&v.ytComponentBehavior.resolveCommand(d)},
onEstablished:function(){}})}};
_.W.setUrl=function(){if(this.data&&this.data.iframeUrl){var v=_.P8(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(v)return _.c$(this.iframe,v),v}};
_.W.getCommunicationCommand=function(v){var e;if((e=this.data)!=null&&e.onCommunicationCommandsMap){e=this.data.onCommunicationCommandsMap.find(function(T){return T.key===v});
if(e==null?0:e.value)return e==null?void 0:e.value;try{var d=r5M(_.U0(v)),E=this.data.onCommunicationCommandsMap.find(function(T){return T.key===(d==null?void 0:d.getMethodName())});
if(E==null?0:E.value)return E==null?void 0:E.value}catch(T){}}};
wA.prototype.dataChanged=wA.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],wA.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],wA.prototype,"actionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wA.prototype,"data",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],wA.prototype,"isDarkTheme",void 0);_.c([_.sg("#iframe"),_.w("design:type",HTMLIFrameElement)],wA.prototype,"iframe",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wA.prototype,"dataChanged",null);_.c([_.lh({is:"yt-iframe-renderer",disableElementRegistration:!0})],wA);
_.A(wA,"yt-iframe-renderer",function(){if(fNI===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;tce===void 0&&(tce=document.createElement("template"));var E=tce;d.call(e,E.content.cloneNode(!0),v.content.firstChild);fNI=v}v=fNI;return v},{mode:2});_.Fi=function(v){_.kh.call(this);this.callback=v;this.bezier=new Jg6(0,0,.4,0,.2,1,1,1);this.delay=new _.Ew(this.next,window,this);this.JSC$16865_animating=!1;_.Yh(this,this.delay)};
_.V(_.Fi,_.kh);_.Fi.prototype.isAnimating=function(){return this.JSC$16865_animating};
_.Fi.prototype.start=function(v,e,d){this.config={from:v,to:e,duration:d,startTime:(0,_.E$)()};this.JSC$16865_animating=!0;this.next()};
_.Fi.prototype.stop=function(){this.delay.stop();this.JSC$16865_animating=!1;this.config=void 0};
_.Fi.prototype.next=function(){if(this.config){var v=this.config,e=v.from,d=v.to,E=v.duration;v=v.startTime;var T=(0,_.E$)()-v;v=this.bezier;E=M2g(v,T/E);if(E==0)v=v.y0;else if(E==1)v=v.y3;else{T=Kf(v.y0,v.y1,E);var S=Kf(v.y1,v.y2,E);v=Kf(v.y2,v.y3,E);T=Kf(T,S,E);S=Kf(S,v,E);v=Kf(T,S,E)}v=_.M3(v,0,1);this.callback(e+(d-e)*v);v<1?this.delay.start():this.JSC$16865_animating=!1}};_.Q6=new _.nC("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var RtJ={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},x8B=function(v,e,d,E){_.kh.call(this);this.JSC$16876_miniAppId=v;this.localReleaseId=e;this.derivedDeviceInterface=d;this.isForeground=E;this.JSC$16876_playNonceResolver=new _.r1;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Wi("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Wi("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.N("enable_displaying_ppn");this.JSC$16876_miniAppClientDataProvider=_.dk().resolve(_.Q6);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;PbA(this);var T=setTimeout(function(){_.xf(new _.kL("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16876_playNonceResolver.promise.then(function(){clearTimeout(T)})};
_.V(x8B,_.kh);var Cb7=function(v,e){v.JSC$16876_playNonceResolver.resolve(e!=null?e:BP(8));v.enableDisplayingPpn&&Bc0(v).then(function(d){v.JSC$16876_miniAppClientDataProvider.clientData.set("post_play_nonce",d)})},Bc0=function(v){return _.I(function(e){return e.nextAddress==1?e.yield(v.JSC$16876_playNonceResolver.promise,2):e.return(e.yieldResult)})},PbA=function(v){var e,d;
_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$16876_playNonceResolver.promise,2);e=E.yieldResult;d={miniAppInfo:{externalPostId:v.JSC$16876_miniAppId,localReleaseId:v.localReleaseId,postPlayNonce:e,derivedDeviceInterface:v.derivedDeviceInterface}};_.BF(d);_.s9(E)})},ztM=function(v){v.state!==0?_.xf(new _.kL("[MiniAppPlayLogger] recordPlayStart failed with state "+RtJ[v.state])):(v.state=1,gA(v,"ma_cl"),uf(v,"PLAY_EVENT_TYPE_PLAY_START"),Xo2(v))},lNM=function(v){v.isForeground=!1;
uf(v,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Hh6=function(v){v.state!==1&&v.state!==2?_.xf(new _.kL("[MiniAppPlayLogger] recordPlayEnd failed with state "+RtJ[v.state])):(v.state=3,window.clearInterval(v.playPingTimerId),v.playPingTimerId=NaN,r90(),uf(v,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Am7=function(v,e){v.state===2&&v.gameReady&&(v.firstClickRecorded?Date.now()-v.clickRecordedMs<v.playClickIntervalMs||(v.clickRecordedMs=Date.now(),uf(v,"PLAY_EVENT_TYPE_PLAY_CLICK")):e&&(gA(v,"ma_fua"),uf(v,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),v.firstClickRecorded=!0,v.clickRecordedMs=Date.now()))};
x8B.prototype.logError=function(v){var e=this,d;_.I(function(E){if(E.nextAddress==1)return v.metadata.externalPostId=e.JSC$16876_miniAppId,d=v.metadata,E.yield(Promise.race([e.JSC$16876_playNonceResolver.promise,new Promise(function(T){setTimeout(function(){T("")},3E4)})]),2);
d.postPlayNonce=E.yieldResult;v.metadata.localReleaseId=e.localReleaseId;v.loggingError.level="WARNING";_.RI(v.loggingError,v.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:v.metadata});_.s9(E)})};
var Zh7=function(v,e,d,E){var T,S,O,b,Y,q;_.I(function(r){if(r.nextAddress==1)return r.yield(v.JSC$16876_playNonceResolver.promise,2);T=r.yieldResult;S={externalPostId:v.JSC$16876_miniAppId,localReleaseId:v.localReleaseId,postPlayNonce:T,sdkVersion:d,api:e};E!==void 0&&(S.networkRequestsMeasurement={networkRequests:_.TZ(E,1),cachedRequests:_.TZ(E,2),transferredBytes:_.TZ(E,3)},(O=E)==null?0:_.ym(O,uy,6))&&(S.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((b=_.W8(E,
uy,6))==null?void 0:Jn(b,1))||"0",cacheHits:((Y=_.W8(E,uy,6))==null?void 0:Jn(Y,2))||"0",cachedBytes:((q=_.W8(E,uy,6))==null?void 0:Jn(q,3))||"0"});_.tI("miniAppSdkUsage",S);_.s9(r)})},won=function(v,e,d){var E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z;
_.I(function(U){if(U.nextAddress==1)return U.yield(v.JSC$16876_playNonceResolver.promise,2);E=U.yieldResult;T={externalPostId:v.JSC$16876_miniAppId,localReleaseId:v.localReleaseId,postPlayNonce:E,sdkVersion:d,measurementWindow:{startTimestampMs:String(ku(e,1)),endTimestampMs:String(ku(e,2))},frameRate:{averageFrameTimeDeltaMs:Lp(e,3),averageFrameIdleTimeMs:Lp(e,4)}};_.ym(e,n$,5)&&(T.networkRequests={networkRequests:(S=EA(e))==null?void 0:_.TZ(S,1),cachedRequests:(O=EA(e))==null?void 0:_.TZ(O,2),transferredBytes:(b=
EA(e))==null?void 0:_.TZ(b,3),sameOriginStatusCodeToCounts:cm2((Y=EA(e))==null?void 0:Ji3(Y,4)),crossOriginStatusCodeToCounts:cm2((q=EA(e))==null?void 0:Ji3(q,5))},(r=EA(e))==null?0:_.ym(r,uy,6))&&(T.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((h=EA(e))==null?void 0:(K=_.W8(h,uy,6))==null?void 0:Jn(K,1))||"0",cacheHits:((k=EA(e))==null?void 0:(J=_.W8(k,uy,6))==null?void 0:Jn(J,2))||"0",cachedBytes:((R=EA(e))==null?void 0:(B=_.W8(R,uy,6))==null?void 0:Jn(B,3))||"0"});_.ym(e,
Zp7,7)&&(T.gameCapture={averageFrameTimeDeltaMs:(X=_.W8(e,Zp7,7))==null?void 0:Lp(X,1),averageFrameIdleTimeMs:(Z=_.W8(e,Zp7,7))==null?void 0:Lp(Z,2)});_.tI("miniAppPerformanceMetrics",T);_.s9(U)})},FlM=function(v,e){var d,E;
return _.I(function(T){if(T.nextAddress==1)return T.yield(v.JSC$16876_playNonceResolver.promise,2);d=T.yieldResult;E={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:v.JSC$16876_miniAppId,postPlayNonce:d,miniAppReleaseId:v.localReleaseId},derivedDeviceInterface:v.derivedDeviceInterface,adTriggerType:e,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.tI("miniAppAdEvent",E);_.s9(T)})};
x8B.prototype.disposeInternal=function(){_.kh.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var uf=function(v,e,d,E){d=d===void 0?{}:d;E=E===void 0?!1:E;var T,S,O,b;_.I(function(Y){if(Y.nextAddress==1)return T=v.isForeground,S=v.beforeReady,Y.yield(v.JSC$16876_playNonceResolver.promise,2);O=Y.yieldResult;b={externalPostId:v.JSC$16876_miniAppId,localReleaseId:v.localReleaseId,derivedDeviceInterface:v.derivedDeviceInterface,postPlayNonce:O,type:e};d.sequenceGroup=O;b.playState=S?"PLAY_STATE_NOT_READY":T?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.tI("miniAppPlayEvent",b,
d);E&&_.fI();_.s9(Y)})},gA=function(v,e){var d;
_.I(function(E){if(E.nextAddress==1)return d=(0,_.E$)(),E.yield(v.JSC$16876_playNonceResolver.promise,2);_.zE(e,d);_.s9(E)})},Xo2=function(v){isNaN(v.playPingTimerId)&&(v.playPingTimerId=_.bY(function(){v.state!==1&&v.state!==2?_.xf(new _.kL("[MiniAppPlayLogger] reportPlayPing failed with state "+RtJ[v.state])):uf(v,"PLAY_EVENT_TYPE_PLAY_PING")},v.playPingIntervalMs))},cm2=function(v){return Array.from(v.entries()).map(function(e){var d=_.a(e);
e=d.next().value;d=d.next().value;return{key:e,value:d}})};var Qh6=function(){},gVJ=function(v,e){v.showMiniAppAdCommand=e.showMiniAppAdCommand;
v.isEmbeddedInWebview=e.isEmbeddedInWebview;v.playLogger=e.playLogger},nVn=function(v,e){var d;
return _.I(function(E){if(E.nextAddress==1){if(!v.showMiniAppAdCommand||!v.isEmbeddedInWebview)return E.return(u77(v,e));v.adResolver=new _.r1;var T=new G1;d=_.aM(T,3,e);Rt(v.showMiniAppAdCommand,j4c(d));return E.yield(v.adResolver.promise,2)}return E.return(E.yieldResult)})};
Qh6.prototype.onAdFinished=function(v){v=jWg(v);var e;(e=this.adResolver)==null||e.resolve(v)};
var u77=function(v,e){var d;return _.I(function(E){if(E.nextAddress==1)E=E.yield((d=v.playLogger)==null?void 0:FlM(d,Zn7(e)),2);else{var T=E.return;var S=new $T2;S=_.aM(S,1,2);E=T.call(E,S)}return E})};var D8I=new _.nC("INNERTUBE_MANAGER_TOKEN");var U8c=function(){this.callbacks={}};
U8c.prototype.initialize=function(v){var e=this;this.callbacks=v;window.youtubewebview?window.youtubewebview.onmessage=function(d){poi(e,d)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(d){poi(e,d)})};
var poi=function(v,e){if(e.data)try{var d=r5M(e.data);if(_.q1(_.mL(d,1))!=null){var E=yCJ(_.Vm(d,2));switch(d.getMethodName()){case "yt-mini-app-load-audio-state":var T,S;(S=(T=v.callbacks).onAudioStateLoaded)==null||S.call(T,_.NT(E,jh(E,Jy,1)));break;case "yt-mute-mini-app":var O,b;(b=(O=v.callbacks).onMuteMiniApp)==null||b.call(O);break;case "yt-unmute-mini-app":var Y,q;(q=(Y=v.callbacks).onUnmuteMiniApp)==null||q.call(Y);break;case "yt-playable-exit":var r,h;(h=(r=v.callbacks).onExit)==null||h.call(r);
break;case "yt-post-play-nonce":var K,k;(k=(K=v.callbacks).onPostPlayNonceReceived)==null||k.call(K,Gw(E,2,Jy));break;case "yt-confirm-exit-mini-app":var J,R;(R=(J=v.callbacks).confirmExitMiniApp)==null||R.call(J);break;case "yt-confirm-exit-mini-app-edu":var B,X;(X=(B=v.callbacks).confirmExitMiniAppEdu)==null||X.call(B);break;case "yt-benchmarking-response":var Z,U;(U=(Z=v.callbacks).onNativeBenchmarkingMessageReceived)==null||U.call(Z,Gw(E,2,Jy));break;case "yt-mini-app-load-3p-consent-state":var F,
g;(g=(F=v.callbacks).multiplayer3pAckStateLoaded)==null||g.call(F,_.NT(E,jh(E,Jy,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var Q,v3;(v3=(Q=v.callbacks).exitMiniAppSeenStateLoaded)==null||v3.call(Q,_.NT(E,jh(E,Jy,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var q7,m0;(m0=(q7=v.callbacks).onNavigateToNewMiniApp)==null||m0.call(q7);break;case "yt-game-data-available":var $S,kS;(kS=($S=v.callbacks).onGameDataAvailable)==null||kS.call($S,Gw(E,2,Jy));break;case "yt-pause-mini-app":var N7,
As;(As=(N7=v.callbacks).onPauseMiniApp)==null||As.call(N7);break;case "yt-resume-mini-app":var Ct,SA;(SA=(Ct=v.callbacks).onResumeMiniApp)==null||SA.call(Ct);break;case "yt-playable-ad-finished":var xI,mg;(mg=(xI=v.callbacks).onAdFinished)==null||mg.call(xI,Gw(E,2,Jy))}}else _.xf(Error("Uh"))}catch(pt){_.RI(Error("Vh"))}else _.xf(Error("Wh"))};var w_$=function(v){this.rpcErrorCode=v};var nL=function(v,e,d){this.intervalMs=v;this.apiFunc=e;this.type=d;this.schedulerReady=!0};
nL.prototype.call=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1){if(e.type!==1&&v===e.cachedValue)return E.return();e.pendingApiRequestResolver||(e.pendingApiRequestResolver=new _.r1);d=e.pendingApiRequestResolver.promise;e.cachedValue=v;return E.yield(vrg(e),2)}return E.return(d)})};
nL.prototype.flush=function(v){v=v===void 0?!1:v;var e=this;return _.I(function(d){return e.cachedValue===void 0?d.return():d.yield(e.apiFunc(e.cachedValue,v),0)})};
var vrg=function(v){var e,d,E;return _.I(function(T){switch(T.nextAddress){case 1:if(!v.schedulerReady||!v.pendingApiRequestResolver)return T.return();v.schedulerReady=!1;e=v.pendingApiRequestResolver;v.pendingApiRequestResolver=void 0;_.qq(T,2);if(v.cachedValue===void 0){T.jumpTo(4);break}return T.yield(v.apiFunc(v.cachedValue),5);case 5:d=T.yieldResult,e.resolve(d);case 4:_.wk(T,3);break;case 2:E=_.jl(T),e.reject(E);case 3:setTimeout(function(){return _.I(function(S){v.schedulerReady=!0;return S.yield(vrg(v),
0)})},v.intervalMs),_.s9(T)}})};var gtj=window.location.origin+"/miniapp_cloudsaves",FyM=[400,401],epc=_.Wi("cloud_save_game_data_rate_limit_ms",3E3),T4I=function(v){var e=this;this.JSC$16920_miniAppId=v;this.loadAttempts=0;this.cloudSaveIntervalMs=epc;this.initialDownloadDataSucceeded=!1;this.JSC$16920_playNonceResolver=new _.r1;this.scottyUploadRateLimiter=new nL(this.cloudSaveIntervalMs,function(d,E){return d2J(e,d,E)},2);
this.downloadDataPromise=Ere(this);this.downloadDataPromise.then(function(){e.initialDownloadDataSucceeded=!0}).catch(function(){})},SnB=function(v,e){e.then(function(d){return v.JSC$16920_playNonceResolver.resolve(d)})},WK6=function(v){return _.I(function(e){return v.cachedData===void 0?e.return(v.downloadDataPromise):e.return(v.cachedData)})},arM=function(v,e){return _.I(function(d){v.cachedData=e;
if(!v.initialDownloadDataSucceeded)throw Error("Xh");return d.yield(v.scottyUploadRateLimiter.call(e),0)})},iA6=function(){return new Promise(function(v){setTimeout(v,1E3,"")})},OAB=function(v,e){var d,E;
return _.I(function(T){if(T.nextAddress==1)return d=v.JSC$16920_miniAppId,T.yield(Promise.race([v.JSC$16920_playNonceResolver.promise,iA6()]),2);E={"X-YouTube-MiniAppId":d,"X-YouTube-PostPlayNonce":T.yieldResult};"DELEGATED_SESSION_ID"in _.Pb&&HB0(e,E);return T.return(E)})},d2J=function(v,e,d){d=d===void 0?!1:d;
return _.I(function(E){return cVH()?_.N("enable_cloud_save_error_popup_after_retry")?E.return(new Promise(function(T,S){var O,b,Y,q,r;return _.I(function(h){switch(h.nextAddress){case 1:O=0,b=!0,q=Y=null;case 2:if(!(b&&O++<2)){h.jumpTo(4);break}_.qq(h,5);return h.yield(Ir2(v,e,d),7);case 7:Y=h.yieldResult;b=Y.ok?!1:!FyM.includes(Y.status);_.wk(h,2);break;case 5:q=r=_.jl(h);b=QQs(q);h.jumpTo(2);break;case 4:Y?Y.ok?(DW(v,epc),T()):(DW(v,v.cloudSaveIntervalMs*2),S(Error("Yh`"+String(Y.status),{cause:{rpcErrorCode:Y.status}}))):
(DW(v,v.cloudSaveIntervalMs*2),S(q||Error("Zh"))),_.s9(h)}})})):E.return(new Promise(function(T,S){var O,b;
return _.I(function(Y){if(Y.nextAddress==1){if(v.JSC$16920_miniAppId==="")return S(Error("$h")),Y.return();_.qq(Y,2);return Y.yield(Ir2(v,e,d),4)}if(Y.nextAddress!=2)return O=Y.yieldResult,O.ok?(DW(v,epc),T()):(DW(v,v.cloudSaveIntervalMs*2),S(Error("Yh`"+String(O.status),{cause:{rpcErrorCode:O.status}}))),_.wk(Y,0);b=_.jl(Y);DW(v,v.cloudSaveIntervalMs*2);S(b);_.s9(Y)})})):E.return()})},Ir2=function(v,e,d){d=d===void 0?!1:d;
var E,T,S;return _.I(function(O){if(O.nextAddress==1)return E=_.GQ((new TextEncoder).encode(e)),T=uE0(),O.yield(OAB(v,T),2);S=O.yieldResult;return O.return(fetch(T,{method:"POST",body:new Blob([E]),headers:S,keepalive:d}))})},Ere=function(v){var e,d;
return _.I(function(E){if(E.nextAddress==1){if(!cVH())return E.return("");if(v.JSC$16920_miniAppId==="")throw Error("$h");if(v.loadAttempts>2)return E.return(v.downloadDataPromise);_.qq(E,2);return E.yield(bAE(v),4)}if(E.nextAddress!=2)return e=E.yieldResult,E.return(e);d=_.jl(E);if(QQs(d)&&++v.loadAttempts<2)return E.return(Ere(v));throw d;})},bAE=function(v){var e,d,E,T,S;
return _.I(function(O){switch(O.nextAddress){case 1:return _.qq(O,2),e=uE0(),O.yield(OAB(v,e),4);case 4:return d=O.yieldResult,O.yield(fetch(e,{method:"GET",headers:d}),5);case 5:return E=O.yieldResult,E.ok?O.yield(E.text(),6):O.return(Promise.reject(Error("ai`"+String(E.status),{cause:new w_$(E.status)})));case 6:return T=O.yieldResult,O.return((new TextDecoder).decode(_.U0(T)));case 2:return S=_.jl(O),O.return(Promise.reject(S))}})},DW=function(v,e){v.cloudSaveIntervalMs=e;
v.scottyUploadRateLimiter.intervalMs=v.cloudSaveIntervalMs};
T4I.prototype.flush=function(){var v=this;return _.I(function(e){return v.initialDownloadDataSucceeded?e.yield(v.scottyUploadRateLimiter.flush(!0),0):e.return()})};var Ynu=e6(vD(1),UQ(1)),m2i=e6(vD(1),UQ(3)),Uu=function(v){this.callbacks=v};
_.W=Uu.prototype;_.W.onAudioToggled=function(v,e){(e===void 0||e)&&_.mZ("yt-mini-app-is-audio-enabled",v,2592E3)};
_.W.onPause=function(){this.onAudioToggled(!1,!1)};
_.W.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.W.returnNativeBenchmarkingMessage=function(){};
_.W.sendGameData=function(){};
_.W.sendStartGameFrameCapture=function(){};
var ntS=function(v,e,d){this.callbacks=v;var E=this;this.sdkVersion=new _.r1;this.channel=new BL3(_.gN({destination:window,iframe:e,origin:(new URL(d.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var T=pL;var S=vD(5);var O=new M12;O=_.tn(O,1,1E4);S=_.$m(S,4,XMe,O);T(E,S);E.onAudioToggled(E.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){E.sdkVersion.resolve("")},1E4)};
_.V(ntS,Uu);_.W=ntS.prototype;_.W.onAudioToggled=function(v,e){Uu.prototype.onAudioToggled.call(this,v,e===void 0?!0:e);e=pL;var d=vD(2),E=new Jng;v=_.iZ(E,1,v);v=_.$m(d,3,XMe,v);e(this,v)};
_.W.onPause=function(){Uu.prototype.onPause.call(this);pL(this,vD(3))};
_.W.onResume=function(){Uu.prototype.onResume.call(this);pL(this,vD(4))};
_.W.returnNativeBenchmarkingMessage=function(v){var e=pL,d=vD(6);var E=UQ(_.ym(v,AZ,1)?1:2);v=_.ym(v,AZ,1)?v:null;E=_.$m(E,5,p$,v);e(this,e6(d,E))};
_.W.sendGameData=function(v){var e=pL,d=vD(7);v=_.$m(d,5,XMe,v);e(this,v)};
_.W.sendStartGameFrameCapture=function(){pL(this,vD(9))};
var vQ=function(v,e,d){var E,T,S;return _.I(function(O){if(O.nextAddress==1)return E=v.callbacks,T=E.onSdkCalled,S=e,O.yield(v.sdkVersion.promise,2);T.call(E,S,O.yieldResult,d);_.s9(O)})};
ntS.prototype.onMessage=function(){var v=this;return zRS(T1,function(e){var d,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F,g,Q,v3,q7,m0,$S,kS,N7,As,Ct,SA,xI,mg,pt,he,yB,te,oC,n7,SW,vc,jA,Ys,s6,es,TM,vO;return _.I(function(IE){switch(IE.nextAddress){case 1:if(!QWu(e.data))return _.xf(Error("bi")),IE.return();d=_.oW(e.data,1);_.N("enable_iframe_message_get_type_via_fields")&&(E=e.data,d=T=_.oW(E,1));switch(d){case 8:if(e.data.hasMetadata()){var gn=v.sdkVersion,hi=gn.resolve;var Je=e.data.getMetadata();Je=_.Vm(Je,
1);hi.call(gn,Je);clearTimeout(v.sdkVersionTimeoutId)}break;case 6:return IE.jumpTo(2);case 16:if(!_.qT(e.data,Hpe,14,S6))return IE.return();S=_.MT(e.data,Hpe,14,S6);(b=(O=v.callbacks).onGameFrameReceived)==null||b.call(O,S);return IE.return();case 17:if(!_.qT(e.data,lkI,15,S6))return IE.return();(q=(Y=v.callbacks).onGameAudioReceived)==null||q.call(Y,_.MT(e.data,lkI,15,S6));return IE.return();case 1:if(gn=_.MT(e.data,RPe,2,S6))switch(_.oW(gn,1)){case 1:v.callbacks.onFirstFrameReady();if(_.N("enable_network_request_logging_on_game_events")&&
_.ym(gn,n$,4)){vQ(v,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.W8(gn,n$,4));break}vQ(v,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Je=(hi=v.callbacks).onGameReady)==null||Je.call(hi);if(_.N("enable_network_request_logging_on_game_events")&&_.ym(gn,n$,4)){vQ(v,"MINI_APP_SDK_API_GAME_READY",_.W8(gn,n$,4));break}vQ(v,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.qT(gn,De,3,P1M))v.callbacks.onResourceLoaded(_.MT(gn,De,3,P1M))}return IE.return();case 3:return IE.jumpTo(3);case 4:return IE.jumpTo(4);
case 2:return IE.jumpTo(5);case 9:return IE.jumpTo(6);case 10:return v.callbacks.onClick(),IE.return();case 5:return IE.jumpTo(7);case 11:if(!_.qT(e.data,FO,9,S6))return IE.return();r=_.MT(e.data,FO,9,S6);(K=(h=v.callbacks).onBenchmarkingMessageReceived)==null||K.call(h,r);gn=e.reply;hi=vD(1);Je=UQ(1);var G2=new FO;var si=new Uint8Array(WK0(r,jh(r,NN6,6))|0);G2=qG(G2,5,NN6,_.Mi(si,!1));Je=_.$m(Je,5,p$,G2);gn.call(e,e6(hi,Je));return IE.return();case 12:return IE.jumpTo(8);case 13:return IE.jumpTo(9);
case 15:if(!_.N("enable_open_yt_content"))return e.reply(m2i),IE.return();if(!_.qT(e.data,zPA,12,S6))return e.reply(e6(vD(1),UQ(2))),IE.return();gn=_.MT(e.data,zPA,12,S6);k=_.Vm(gn,1);v.callbacks.onOpenYTContent(k);e.reply(Ynu);return IE.return();case 14:return IE.jumpTo(10);default:return IE.return()}IE.jumpTo(0);break;case 2:if(!_.qT(e.data,d$,5,S6))return IE.return();hi=e.data;gn=jh(hi,S6,5);hi=hi.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;J=R_$(hi,hi[_.aE]|0,d$,gn)||d$[xi$]||(d$[xi$]=
BnS(d$));gn=_.df(J,QO,1,_.El());R=_.a(gn);B=R.next();case 12:if(B.done){IE.jumpTo(14);break}X=B.value;Z=new _.kL;Z.level=_.oW(X,2)===1?"WARNING":"ERROR";U=Ucs(X.getSource());return IE.yield(v.sdkVersion.promise,15);case 15:F={source:U,sdkVersion:IE.yieldResult};_.U6(_.mL(X,6))!=null?(Z.message=X.getMessage(),Z.stack=_.Vm(X,5),F.sdkErrorType=p_H(_.oW(X,6)),_.U6(_.mL(X,7))!=null&&(F.sdkApi=vg0(_.oW(X,7)))):Z.stack=void 0;Q=g=void 0;(Q=(g=v.callbacks).onError)==null||Q.call(g,{loggingError:Z,metadata:F});
B=R.next();IE.jumpTo(12);break;case 14:return IE.return();case 3:return _.qq(IE,16),gn=IE.yield,hi=v.callbacks,Je=hi.onSave,G2=_.MT(e.data,GwA,4,S6),G2=_.Vm(G2,1),gn.call(IE,Je.call(hi,G2),18);case 18:e.reply(Ynu);_.wk(IE,17);break;case 16:return v3=_.jl(IE),q7=Pj,m0=v3,$S=v.callbacks,kS="MINI_APP_SDK_API_SAVE_DATA",IE.yield(v.sdkVersion.promise,19);case 19:q7(m0,$S,kS,IE.yieldResult),e.reply(m2i);case 17:return IE.yield(vQ(v,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return IE.return();case 4:return _.qq(IE,
21),IE.yield(v.callbacks.onLoad(),23);case 23:N7=IE.yieldResult;gn=e.reply;hi=vD(1);Je=UQ(1);G2=new GwA;G2=_.L0(G2,1,N7);Je=_.$m(Je,3,p$,G2);gn.call(e,e6(hi,Je));_.wk(IE,22);break;case 21:return As=_.jl(IE),Ct=Pj,SA=As,xI=v.callbacks,mg="MINI_APP_SDK_API_LOAD_DATA",IE.yield(v.sdkVersion.promise,24);case 24:Ct(SA,xI,mg,IE.yieldResult),e.reply(m2i);case 22:return IE.yield(vQ(v,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return IE.return();case 5:_.qq(IE,26);v.callbacks.onSendHighScore(Ru(_.MT(e.data,
wMg,3,S6).getValue()));e.reply(e6(vD(1),UQ(1)));_.wk(IE,27);break;case 26:return pt=_.jl(IE),he=Pj,yB=pt,te=v.callbacks,oC="MINI_APP_SDK_API_SEND_SCORE",IE.yield(v.sdkVersion.promise,28);case 28:he(yB,te,oC,IE.yieldResult),e.reply(m2i);case 27:return IE.yield(vQ(v,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return IE.return();case 6:if(!_.qT(e.data,FLA,8,S6)){IE.jumpTo(30);break}gn=IE.yield;hi=_.MT(e.data,FLA,8,S6);hi=_.oW(hi,1);return gn.call(IE,vQ(v,vg0(hi)),30);case 30:return IE.return();case 7:return gn=
e.reply,hi=vD(1),Je=UQ(1),G2=v.callbacks.getLanguage(),Je=qG(Je,4,p$,yv(G2)),gn.call(e,e6(hi,Je)),IE.yield(vQ(v,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return IE.return();case 8:if(!_.qT(e.data,cnI,10,S6))return IE.return();n7=_.MT(e.data,cnI,10,S6);SW=v.callbacks;vc=SW.onSdkPerformanceUpdate;return IE.yield(v.sdkVersion.promise,33);case 33:return vc.call(SW,n7,IE.yieldResult),IE.return();case 9:gn=e.data;hi=jh(gn,S6,11);if(_.q1(_.mL(gn,hi))==null)return e.reply(e6(vD(1),UQ(2))),IE.return();
jA=Gw(e.data,11,S6);v.callbacks.onShareInviteCode(jA);e.reply(Ynu);return IE.yield(vQ(v,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return IE.return();case 10:if(_.qT(e.data,ouI,13,S6)){IE.jumpTo(35);break}return IE.yield(v.callbacks.onShowMiniAppAd(2),36);case 36:return Ys=IE.yieldResult,e.reply(e6(vD(1),BN2(Ys))),IE.yield(vQ(v,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return IE.return();case 35:gn=_.MT(e.data,ouI,13,S6);a:switch(_.oW(gn,1)){case 1:gn={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:gn={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:gn={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}s6=gn;es=s6.adType;TM=s6.sdkApi;gn=IE.yield;hi=v.callbacks;Je=hi.onShowMiniAppAd;G2=_.MT(e.data,ouI,13,S6);G2=_.Vm(G2,2);return gn.call(IE,Je.call(hi,es,G2||void 0),38);case 38:return vO=IE.yieldResult,e.reply(e6(vD(1),BN2(vO))),IE.yield(vQ(v,TM),39);case 39:return IE.return()}})})};
var pL=function(v,e){_.I(function(d){v.channel.send(e);_.s9(d)})},xp=function(v,e,d){this.callbacks=v;
var E=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;v=ZYU(e,(new URL(d.toString())).origin);this.gameSnacks=new UaM(v);this.gameSnacks.page.onReady(function(){E.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){E.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var T,S;(S=(T=E.callbacks).onGameReady)==null||S.call(T)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(T,S){try{E.callbacks.onSendHighScore(S)}catch(O){Pj(O,E.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(T,S){var O;return _.I(function(b){if(b.nextAddress==1)return _.qq(b,2),b.yield(E.callbacks.onSave(E.decoder.decode(S)),4);if(b.nextAddress!=2)return _.wk(b,0);O=_.jl(b);Pj(O,E.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return b.return()})});
this.gameSnacks.storage.onLoad(function(){var T,S;return _.I(function(O){if(O.nextAddress==1)return _.qq(O,2),O.yield(E.callbacks.onLoad(),4);if(O.nextAddress!=2)return T=O.yieldResult,O.return(E.encoder.encode(T));S=_.jl(O);Pj(S,E.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return O.return(E.encoder.encode(""))})});
this.gameSnacks.init()};
_.V(xp,Uu);xp.prototype.onAudioToggled=function(v,e){Uu.prototype.onAudioToggled.call(this,v,e===void 0?!0:e);var d;(d=this.gameSnacks)==null||d.audio.update(v)};
xp.prototype.onPause=function(){Uu.prototype.onPause.call(this);var v;(v=this.gameSnacks)==null||v.game.pause()};
xp.prototype.onResume=function(){Uu.prototype.onResume.call(this);var v;(v=this.gameSnacks)==null||v.game.resume()};var yJg=eVW,qne=_.l(function(v){var e=v.data;var d=v.loadingProgress;var E=v.forPaused;v=_.a(_.OE("",void 0,"LYYTdd"));var T=v.next().value,S=v.next().value;v=_.a(_.OE(!1,void 0,"K0waae"));var O=v.next().value,b=v.next().value,Y=[],q=function(){return"transform: scaleX("+(_.M4(d)||0)+")"},r=null,h=function(){return e()&&r!==null&&r!==void 0?r:r=e().showAnniversaryAnimation?6:yJg()};
_.o_(function(){var R;if(e().timeOutMessages&&((R=e().timeOutMessages)==null?0:R.length)){r=null;R=_.a(Y);for(var B=R.next();!B.done;B=R.next())clearTimeout(B.value);Y.length=0;dOj(e().timeOutMessages,Y,S,b)}},"BNu9j");
var K=function(){return!!e().persistentErrorMessageTitle},k=function(){return d!==void 0},J=function(){return e().title};
return _.m("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelWizHost"},_.m("div",{class:"miniAppSplashScreenViewModelWizLoadingScreen",role:"region",tabindex:0},_.m("div",{class:"miniAppSplashScreenViewModelWizBackgroundBase"}),_.m("div",{class:"miniAppSplashScreenViewModelWizBackgroundBlur",style:function(){var R,B=(R=e().backgroundImage)==null?void 0:R.sources,X;return(B==null?0:B.length)?"background-image: url("+((X=B[0])==null?void 0:X.url)+")":""}}),_.m("div",{class:"miniAppSplashScreenViewModelWizBackgroundScrim"}),
_.m(_.y,{cond:function(){return!K()&&!(E==null?0:E())},
then:function(){var R={};return _.m("div",{class:"miniAppSplashScreenViewModelWizLoadingScreenContent"},_.m("div",{class:"miniAppSplashScreenViewModelWizLoadingIcon"},_.m(_.jZ,{className:"miniAppSplashScreenViewModelWizLoadingIconAnimation",animationName:function(){return"loading_animation_"+h()},
data:function(){var B="loading_animation_"+h();return{animationConfig:{name:B,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+B+".json",loop:!0,autoplay:!0}}}})),_.m("div",{class:"miniAppSplashScreenViewModelWizTimeoutMessageContainer"},_.m(_.y,{cond:J,
then:function(){return _.m("h3",{class:"miniAppSplashScreenViewModelWizTimeoutHeading"},J)}}),_.m("p",{class:_.qe("miniAppSplashScreenViewModelWizTimeoutMessage",(R.miniAppSplashScreenViewModelWizTimeoutMessageFadeOut=function(){return O()},R)),
"aria-live":"polite"},T),_.m(_.y,{cond:k,then:function(){return _.m("div",{class:"miniAppSplashScreenViewModelWizLoadingBarTrack"},_.m("div",{class:"miniAppSplashScreenViewModelWizLoadingBarSegment miniAppSplashScreenViewModelWizLoadingBarSegmentResourceAnimation",style:q}))}})))}}),_.m(_.y,{cond:K,
then:function(){return _.m("div",{class:"miniAppSplashScreenViewModelWizPersistentErrorContent"},_.m("h3",{class:"miniAppSplashScreenViewModelWizPersistentErrorMessageTitle"},function(){return e().persistentErrorMessageTitle}),_.m(_.y,{cond:function(){return!!e().persistentErrorMessageDescription},
then:function(){return _.m("p",{class:"miniAppSplashScreenViewModelWizPersistentErrorMessageDescription"},function(){return e().persistentErrorMessageDescription})}}))}}),_.m(_.y,{cond:E,
then:function(){return _.m("div",{class:"miniAppSplashScreenViewModelWizPauseContent"},_.m("img",{class:"miniAppSplashScreenViewModelWizPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.m("h3",{class:"miniAppSplashScreenViewModelWizPauseMessage"},J))}})))},"qe");var rJ2=new _.nC("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var hpg=u3;u3=function(v){function e(d){if(d){var E,T;(E=d.__spec)==null||(T=E.didUnmount)==null||T.call(E);for(E=0;E<d.childNodes.length;E++)e(d.childNodes[E])}}
hpg==null||hpg(v);R5(function(){for(var d=0;d<v.length;d++)e(v[d])})};var KK7=_.l(function(v){var e=v.data;var d=v.score;var E=v.formattedScore;var T=v.onScoreChanged;var S=v.isEmbeddedInWebview;var O=_.Dq("yt-mini-app-score-button-view-model"),b=function(){var k;return _.L(e==null?void 0:(k=e())==null?void 0:k.buttonViewModel,_.lx)},Y=function(){var k;
return(d==null?void 0:d())||Number(e==null?void 0:(k=e())==null?void 0:k.lastScore)||0},q=function(){var k;
return(E==null?void 0:E())||((k=b())==null?void 0:k.title)||""},r,h=1;
if(v=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))v=Number(v),h=isNaN(v)?1:v/100;_.o_(function(){T==null||T(Y());var k;var J=_.lk((k=b())==null?void 0:k.onTap);if(J){k=_.L(J,Rre);var R,B,X;k=_.L(k==null?void 0:(R=k.panelLoadingStrategy)==null?void 0:(B=R.inlineContent)==null?void 0:(X=B.dialogViewModel)==null?void 0:X.customContent,s47)}else k=void 0;if(R=k)R.score=q()},"mwn8Jc");
v=_.rq(function(){var k,J,R=e==null?void 0:(k=e())==null?void 0:(J=k.loggingDirectives)==null?void 0:J.trackingParams;R&&_.yV(_.dk().resolve(_.t5),R);return!1});
_.Gr(function(){if(O.value){var k=O.value.querySelector("button"),J=b();k&&J&&EgO(k,J);eO("yt-share-playable-with-high-score",function(){var R=Y().toString(),B=e==null?void 0:e().onShareHighScoreCommand,X=e==null?void 0:e().highScoreShareClientParamIdentifier,Z=S==null?void 0:S();B&&(Z?(X=new jce,R=_.L0(X,2,R),Rt(B,R.JSC$12350_serializeBinary())):X&&(_.dk().resolve(rJ2).clientParams.set(X,{miniAppClientParams:{highScore:R}}),zEO(B,!1)))})}});
var K=function(){var k=b();k&&(d==null?0:d())&&k.accessibilityText&&(k.accessibilityText=k.accessibilityText.replace(r,q()));r=q();return{numberValue:Y(),numberText:q(),heightPx:36,fontSizeMultiplier:h,shouldAnimate:!(d==null||!d())&&!0}};
return _.m("yt-mini-app-score-button-view-model",{class:function(){var k={};return _.tX("miniAppScoreButtonViewModelHost",(k.miniAppScoreButtonViewModelIsVisible=Y()!==0,k))},
el:O,"on:click":v},KYL(!1,function(){return _.m("span",{style:"display:none;"},Y)}),_.m(_.kz,{data:function(){var k;
return e==null?void 0:(k=e())==null?void 0:k.buttonViewModel}},{buttonViewModel:function(k){return _.m(_.yi,{data:k.data,
animatedTextProps:K})}}))},"re");var k$2=_.l(function(v){var e,d=(e=_.yy("yt-mini-app-is-theater-mode-enabled"))!=null?e:!1,E=_.N("enable_playable_container_save_button"),T=_.N("enable_play_next_destination_page_in_toolbar");e={};return _.m("ytm-mini-app-top-bar-view-model",null,_.m("div",{class:_.qe("yt-mini-app-top-bar-view-model",(e["yt-mini-app-top-bar-view-model--mobile"]=!1,e["yt-mini-app-top-bar-view-model--desktop"]=!0,e))},_.m("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.m(_.y,{cond:function(){var S;return!!v.data().backButtonEdu&&
!((S=v.isExitMiniAppSeen)==null?0:S.call(v))},
then:function(){return _.m(_.kz,{data:function(){return v.data().backButtonEdu}},{buttonViewModel:_.yi})},
else:function(){return _.m(_.kz,{data:function(){return v.data().backButton}},{buttonViewModel:_.yi})}}),_.m(_.y,{cond:function(){return v.data().viewAllButton&&!0},
then:function(){return _.m(_.kz,{data:function(){return v.data().viewAllButton}},{buttonViewModel:_.yi})}}),_.m(_.y,{cond:function(){return v.data().title&&!0},
then:function(){return _.m("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return v.data().title})}})),_.m("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.m(_.y,{cond:function(){var S;
return(S=v.isDesktopPlayPage)==null?void 0:S.call(v)},
then:function(){return _.m(_.eI,null,_.m($2e,{highScoreButton:function(){return v.data().highScoreButton},
score:v.score,formattedScore:v.formattedScore,onScoreChanged:v.onScoreChanged,isEmbeddedInWebview:v.isEmbeddedInWebview}),_.m(jy2,{enableSaveButton:function(){return _.M4(E)},
saveButton:function(){return v.data().saveButton},
isSaved:v.isSaved,onSaveToggled:function(){return v.onSaveToggled}}),_.m(syn,{menuButton:function(){return v.data().menuButton}}))},
else:function(){return _.m(_.y,{cond:function(){return!1},
then:function(){return _.m(_.kz,{data:function(){return v.data().playPageButton}},{buttonViewModel:function(S){return _.m(_.yi,{data:S.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.m($2e,{highScoreButton:function(){return v.data().highScoreButton},
score:v.score,formattedScore:v.formattedScore,onScoreChanged:v.onScoreChanged,isEmbeddedInWebview:v.isEmbeddedInWebview})}})}})),_.m("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.m(_.kz,{data:function(){return v.data().muteButton}},{toggleButtonViewModel:function(S){var O=S.data;
return _.m(_.fR,{data:function(){var b,Y;return Object.assign({},O(),{isToggled:(Y=(b=v.isAudioEnabled)==null?void 0:b.call(v))!=null?Y:!0})},
onToggle:v.onAudioToggled,useOutlinedIcon:!0})}}),_.m(_.kz,{data:function(){return v.data().theatreModeButton}},{toggleButtonViewModel:function(S){var O=S.data;
return _.m("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.m(_.fR,{data:function(){return Object.assign({},O(),{isToggled:d})},
useOutlinedIcon:!0}))}}),_.m(N4J,{fullscreenButton:function(){return v.data().fullscreenButton}}),_.m(_.y,{cond:function(){return _.M4(T)&&v.data().viewAllButton&&!1},
then:function(){return _.m(_.kz,{data:function(){return v.data().viewAllButton}},{buttonViewModel:_.yi})}}),_.m(_.y,{cond:function(){var S;
return!((S=v.isDesktopPlayPage)==null?0:S.call(v))},
then:function(){return _.m(_.eI,null,_.m(jy2,{enableSaveButton:function(){return _.M4(E)},
saveButton:function(){return v.data().saveButton},
isSaved:v.isSaved,onSaveToggled:function(){return v.onSaveToggled}}),_.m(syn,{menuButton:function(){return v.data().menuButton}}))}}))))},"se");
k$2.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var syn=_.l(function(v){return _.m(_.kz,{data:v.menuButton},{buttonViewModel:_.yi})},"te"),jy2=_.l(function(v){var e=v.enableSaveButton;
var d=v.saveButton;var E=v.isSaved;var T=v.onSaveToggled;return _.m(_.y,{cond:function(){return e()&&!(d==null||!d())},
then:function(){return _.m(_.kz,{data:function(){var S=_.L(d==null?void 0:d(),_.Ay),O;return{toggleButtonViewModel:Object.assign({},S,{isToggled:(O=E==null?void 0:E())!=null?O:!(S==null||!S.isToggled)})}}},{toggleButtonViewModel:function(S){return _.m(_.fR,{data:S.data,
onToggle:T})}})}})},"ue"),$2e=_.l(function(v){var e=v.highScoreButton;
var d=v.score;var E=v.formattedScore;var T=v.onScoreChanged;var S=v.isEmbeddedInWebview;return _.m(_.kz,{data:e},{miniAppScoreButtonViewModel:function(O){return _.m(KK7,{data:O.data,score:d,formattedScore:E,onScoreChanged:T,isEmbeddedInWebview:S})}})},"ve"),N4J=_.l(function(v){v=v.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.m(_.eI,null):_.m(_.kz,{data:v},{buttonViewModel:_.yi})},"we");_.LKA=new _.nC("DESKTOP_CURRENT_PAGE");var tLM=_.l(function(v){var e=v.data;var d=_.N("force_active_time_logging_webview"),E=!1,T=new U8c,S=void 0,O=void 0,b=_.dk().resolve(D8I),Y=new Qh6,q=void 0,r=void 0,h=[],K=void 0,k=void 0,J=!1,R=!1,B=!1,X=!1,Z=new _.r1,U=_.dk().resolve(rJ2),F=_.dk().resolve(_.Q6),g=_.dk().resolve(_.eG(Np)),Q,v3=(Q=_.dk().resolve(_.eG(_.LKA)))==null?void 0:Q.getCurrentPage(),q7=!1,m0=0,$S=function(nt){nt.preventDefault();return nt.returnValue=""},kS;
v=_.a(_.OE(!((kS=_.yy("yt-mini-app-is-audio-enabled"))!=null&&!kS),void 0,"cGaEvf"));var N7=v.next().value,As=v.next().value,Ct;kS=_.a(_.OE(!((Ct=_.yy("exit-mini-app-seen-state"))==null||!Ct),void 0,"DctXGe"));var SA=kS.next().value,xI=kS.next().value;Ct=_.a(_.OE(!1,void 0,"pU1jdd"));var mg=Ct.next().value,pt=Ct.next().value;Ct=_.a(_.OE(void 0,void 0,"ldLqDf"));var he=Ct.next().value,yB=Ct.next().value;Ct=_.a(_.OE(void 0,void 0,"mdofE"));var te=Ct.next().value,oC=Ct.next().value;Ct=_.a(_.OE(!0,void 0,
"T1gxCf"));var n7=Ct.next().value,SW=Ct.next().value;Ct=_.a(_.OE(!1,void 0,"Dp92Vb"));var vc=Ct.next().value,jA=Ct.next().value;Ct=_.a(_.OE(!1,void 0,"AsJEvf"));var Ys=Ct.next().value,s6=Ct.next().value;Ct=_.a(_.OE(void 0,void 0,"c55ogf"));var es=Ct.next().value,TM=Ct.next().value;Ct=_.a(_.OE(0,void 0,"UuaLqf"));var vO=Ct.next().value,IE=Ct.next().value,gn=_.nI("mini-app-container-view-model"),hi=function(){return e().isEmbeddedInWebview},Je=function(){return e().hasPlayNextShelf};
eO("yt-page-type-changed",function(nt){if(_.N("enable_is_mini_app_page_active_bugfix"))nt.detail.newPageSubtype==="mini_app"&&nt.detail.newPageType==="ytd-browse"||!n7()||Ya();else if(nt=_.Ppt()==="mini_app",nt!==n7())if(SW(nt),nt){var K9;nt=(K9=e().playableId)==null?void 0:K9.toString();nt!==void 0&&window.location.href.includes(nt)&&!R&&(X=!0,G2(),qf.value&&kx(qf.value))}else nt||Ya()});
eO("yt-action",function(nt){nt.detail.actionName==="yt-engagement-panel-visible-changed"&&nt.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&nt.detail.args[2]==="PAmini_app_panel"&&Ya();_.N("enable_is_mini_app_page_active_bugfix")?nt.detail.actionName==="yt-history-load"&&!n7()&&(v3==null?0:v3.active)?(SW(!0),G2(),qf.value&&kx(qf.value)):nt.detail.actionName==="yt-history-load"&&n7()&&!e().isEmbeddedInWebview&&Ae():n7()&&nt.detail.actionName==="yt-history-load"&&(X?X=!1:e().isEmbeddedInWebview||
Ae())});
_.Jf(function(){si()});
_.o_(function(){G2()},"gpydpe");
var G2=function(){var nt=e().playableId,K9=e().localReleaseId,BO=e().derivedDeviceInterface;if(R)_.xf(new _.kL("[MiniAppContainerViewModel] onEnter was called more than once"));else{R=!0;S=new x8B(nt,K9,BO,document.visibilityState==="visible");ztM(S);O=new T4I(nt);VLu(b,nt);gVJ(Y,{showMiniAppAdCommand:e().showMiniAppAdCommand,isEmbeddedInWebview:e().isEmbeddedInWebview,playLogger:S});oH3()&&(k=document.body.style.backgroundColor,_.ff(document.body,"background-color","black"));CI();xs();Z=new _.r1;
if(e().isEmbeddedInWebview){if(nt=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Cb7(S,nt),q7=!0;T.initialize({onAudioStateLoaded:function(aC){Ny(aC)},
onMuteMiniApp:function(){Ny(!1)},
onUnmuteMiniApp:function(){Ny(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(aC){q7||(Cb7(S,aC),q7=!0)},
confirmExitMiniApp:function(){var aC,be,wr;return _.I(function(xh){if(xh.nextAddress==1)return e().confirmExitMiniAppCommand?xh.yield(Promise.race([Z.promise,Promise.resolve(!1)]),2):xh.return();(aC=xh.yieldResult)?!e().confirmExitMiniAppCommandEdu||(wr=(be=SA)==null?void 0:be())!=null&&wr?Wn(e().confirmExitMiniAppCommand):(Wn(e().confirmExitMiniAppCommandEdu),_.mZ("exit-mini-app-seen-state","true",2592E6)):Wn(e().closeMiniAppCommand);_.s9(xh)})},
onNativeBenchmarkingMessageReceived:function(aC){aC=LLI(_.CsU(aC));if(_.qT(aC,_.t1,3,sW2)){var be=_.MT(aC,_.t1,3,sW2),wr=la0();var xh=Ru(wr.getSeconds())-Ru(be.getSeconds());be=_.TZ(wr,2)-_.TZ(be,2);xh<0&&be>0?(xh+=1,be-=1E9):xh>0&&be<0&&(--xh,be+=1E9);xh=(new AZ).setSeconds(xh);xh=_.n9(xh,2,_.p7(be),0);_.hr(aC,1,xh)}var ZI;(ZI=r)==null||ZI.returnNativeBenchmarkingMessage(aC)},
multiplayer3pAckStateLoaded:function(aC){Ae(aC)},
exitMiniAppSeenStateLoaded:function(aC){e().confirmExitMiniAppCommandEdu&&xI(aC)},
onNavigateToNewMiniApp:function(){Wn(e().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(aC){aC=new URLSearchParams(aC);var be=void 0;aC.has("invite_code")&&(be=new fk6,aC=aC.get("invite_code"),be=_.L0(be,1,aC));if(aC=be){var wr;(wr=r)==null||wr.sendGameData(aC)}},
onPauseMiniApp:function(){E=!0;r9()},
onResumeMiniApp:function(){E=!0;G8()},
onAdFinished:function(aC){Y.onAdFinished(aC)}});
e().showMultiplayer3pConsentDialogCommand||Z.resolve(!0);Wn(e().onContainerReadyCommand)}else Cb7(S),Z.resolve(!0);SnB(O,Bc0(S));Bc0(S).then(function(aC){aC={miniAppPlayData:{postPlayNonce:aC}};var be,wr=(be=e().loggingDirectives)==null?void 0:be.trackingParams;wr&&_.NC().stateChanged(wr,aC)});
nt=e().showSignInDialogCommand;!cVH()&&nt&&(_.mZ("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Wn(nt));e().confirmExitMiniAppCommand&&g&&(nt=CF3(e().confirmExitMiniAppCommand))&&(g.customConfirmationCommand=nt)}},si=function(){k&&_.ff(document.body,"background-color",k);
J=!1;K&&K.release();O.flush().catch(function(nt){_.xf(nt)});
b.flush().catch(function(nt){_.xf(nt)});
Hh6(S);np();r=void 0;orn(U)},Ya=function(){SW(!1);
si();pt(!1);TM(void 0);yB(void 0);oC(void 0);m0=0;IE(0);R=!1},r9=function(){var nt;
(nt=r)==null||nt.onPause();K&&K.release();O.flush().catch(function(K9){_.xf(K9)});
b.flush().catch(function(K9){_.xf(K9)});
lNM(S);jA(!0)},G8=function(){var nt;
(nt=r)==null||nt.onResume();xs();nt=S;nt.isForeground=!0;uf(nt,"PLAY_EVENT_TYPE_PLAY_RESUME");jA(!1)},Ny=function(nt){var K9;
(K9=r)==null||K9.onAudioToggled(nt);As(nt)},Ae=function(nt){e().showMultiplayer3pConsentDialogCommand&&(e().isEmbeddedInWebview&&nt!==void 0&&Z.resolve(nt),!nt&&_.Ppt()==="mini_app"&&Wn(e().showMultiplayer3pConsentDialogCommand))},f9=function(){var nt,K9,BO,aC;
return _.I(function(be){if(be.nextAddress==1){!e().isLivestream||e().disableVideoCapture||(nt=r)!=null&&nt.sendStartGameFrameCapture();K9=(new URL(window.location.href)).searchParams;if(K9.has("invite_code")){var wr=new fk6,xh=K9.get("invite_code");BO=_.L0(wr,1,xh);(aC=r)==null||aC.sendGameData(BO)}mg()||(pt(!0),wr=S,wr.state!==1?_.xf(new _.kL("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+RtJ[wr.state])):(_.iY("mini_app_ids_without_game_ready").includes(wr.JSC$16876_miniAppId)&&(wr.gameReady=
!0),wr.state=2,wr.beforeReady=!1,gA(wr,"ma_ffr"),uf(wr,"PLAY_EVENT_TYPE_PLAY_READY")));return be.yield(Z.promise,2)}Wn(e().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();e().isEmbeddedInWebview||Ae();_.s9(be)})},w9=function(){var nt=S;
nt.gameReady=!0;gA(nt,"ma_gr")},a$=function(nt){var K9;
return _.I(function(BO){if(BO.nextAddress==1)return _.qq(BO,2),BO.yield(arM(O,nt),4);if(BO.nextAddress!=2)return _.wk(BO,0);K9=_.jl(BO);Wn(e().showSavingErrorPopupCommand);throw K9;})},uR=function(){var nt,K9;
return _.I(function(BO){if(BO.nextAddress==1)return _.qq(BO,2),BO.yield(WK6(O),4);if(BO.nextAddress!=2)return nt=BO.yieldResult,BO.return(nt);K9=_.jl(BO);Wn(e().showLoadingErrorDialogCommand);throw K9;})},T8=function(nt){S.logError(nt)},Pi=function(nt,K9,BO){Zh7(S,nt,K9,BO)},M9=function(nt,K9){won(S,nt,K9)},Sy=function(){!d&&e().isEmbeddedInWebview||_.EN();
Am7(S,!0);J||(window.addEventListener("beforeunload",$S,{capture:!0}),J=!0)},WP=function(nt){var K9,BO,aC,be,wr,xh,ZI;
return _.I(function(jK){if(jK.nextAddress==1)return b&&(!q||q<nt)&&nt>0?jK.yield(JJ0(b,nt),3):jK.jumpTo(0);K9=jK.yieldResult;BO=_.a(K9);aC=BO.next().value;be=BO.next().value;wr=aC;xh=be;((ZI=wr)==null?0:ZI.displayString)&&xh&&(yB(xh),oC(wr.displayString));_.s9(jK)})},Js=function(nt){var K9=e().onBenchmarkingMessageReceivedCommand;
if(K9){var BO=la0();_.$m(nt,3,sW2,BO);Rt(K9,V1A(nt))}},zO=function(nt){var K9=e().onGameFrameReceivedCommand;
if(K9){var BO=new G1;var aC=new rCg;var be=ku(nt,1);aC=_.NG(aC,1,be);nt=_.Vm(nt,2);nt=_.L0(aC,2,nt);BO=_.hr(BO,2,nt);Rt(K9,j4c(BO))}},wH=function(nt){var K9=e().onGameAudioDataReceivedCommand;
if(K9){var BO=new G1;var aC=new KuB;nt=_.Vm(nt,1);aC=_.L0(aC,1,nt);BO=_.hr(BO,4,aC);Rt(K9,j4c(BO))}},K7=function(){var nt=new URLSearchParams(window.location.search);
if(e().isEmbeddedInWebview&&nt&&nt.get("override_hl")==="true"&&nt.get("hl"))return nt.get("hl");nt=document.documentElement.lang;return nt!==""?nt:_.F1},mf=function(nt){var K9=e().onShareInviteCodeCommand;
if(K9)if(e().isEmbeddedInWebview){var BO=new jce;nt=_.L0(BO,1,nt);Rt(K9,NT7(nt))}else BO=e().inviteCodeShareClientParamIdentifier,U.clientParams.set(BO,{miniAppClientParams:{inviteCode:nt}}),Wn(K9)},tr=function(nt){var K9,BO,aC;
return _.I(function(be){if(be.nextAddress==1)return K9=e().onMiniAppOpenYtContentRequested,b&&_.N("enable_open_yt_content")&&K9?be.yield(G$B(b,nt),3):be.jumpTo(0);BO=be.yieldResult;if(BO==="OK")if(e().isEmbeddedInWebview){var wr=new Ysu;aC=qG(wr,2,Jy,yv(nt));Rt(K9,qsA(aC))}else F.clientData.set("video_id",nt),Wn(K9);_.s9(be)})},L9=function(nt){m0+=_.TZ(nt,3);
nt=Math.min(Math.log(1+m0/15E6*9)/Math.log(10),.99);IE(nt);kI(nt)},kI=_.rI(function(nt){var K9=e().updateLoadingProgressCommand;
if(K9){var BO=new Ysu;nt=qG(BO,3,Jy,_.cc(nt));Rt(K9,qsA(nt))}},100),Ni=function(nt){return nVn(Y,nt)},xs=function(){var nt,K9;
((nt=_.qyj())==null?void 0:(K9=nt.wakeLock)==null?void 0:K9.request)!=null&&_.qyj().wakeLock.request("screen").then(function(BO){K=BO}).catch(function(){})},qf=_.Dq("iframe");
_.o_(function(){e().isSupportedCountry&&(cVH()||_.N("enable_sign_in_promo")||!e().showSignInDialogCommand?qf.value&&kx(qf.value):Wn(e().onMiniAppReadyCommand))},"HPyXid");
var rn=function(){return _.m("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return mg()?0:-1},
el:qf})},kx=function(nt,K9){K9=K9===void 0?!1:K9;
var BO=jx();BO&&(K9||BO.toString()!==nt.getAttribute("src"))&&(r=Dct(e().source,{isAudioEnabled:N7,onFirstFrameReady:f9,onGameReady:w9,onSave:a$,onLoad:uR,onError:T8,onSdkCalled:Pi,onSdkPerformanceUpdate:M9,onClick:Sy,onSendHighScore:WP,onBenchmarkingMessageReceived:Js,getLanguage:K7,onShareInviteCode:mf,onResourceLoaded:L9,onOpenYTContent:tr,onShowMiniAppAd:Ni,onGameFrameReceived:zO,onGameAudioReceived:wH},nt,BO),VK(nt,"load",function(){gA(S,"ma_il");VK(nt,"load",function(){kx(nt,!0)})}),_.c$(nt,
BO))},jx=function(){var nt=e().url;
if(nt&&(nt=_.P8(nt),nt!==null)){if(e().source&&e().source==="MINI_APP_SOURCE_GAMESNACKS")nt=_.Oa(nt,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.N("enable_origin_query_parameter_bugfix")){var K9=_.$5(_.Jq3(nt.toString()));K9=new URLSearchParams(K9||"");K9.set("origin",window.location.origin);K9=K9.toString();nt=_.LY(nt).toString();nt=_.km(Je0.exec(nt)[0]+(K9.trim()?"#"+K9:""))}return nt}},CY=function(){var nt={};
nt=_.qe("yt-mini-app-container-view-model__loading-screen",(nt["yt-mini-app-container-view-model__loading-screen--fade-out"]=mg,nt));var K9=function(){return mg()?1:vO()};
return _.m("div",{class:nt},_.m(_.kz,{data:function(){return e().splashScreen}},{miniAppSplashScreenViewModel:function(BO){return _.m(qne,{data:BO.data,
loadingProgress:K9})}}))},R_=function(){var nt={};
return _.m("div",{class:_.qe("yt-mini-app-container-view-model__pause-interstitial",(nt["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!vc()},nt["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=vc,nt))},_.m(_.kz,{data:function(){return e().splashScreen}},{miniAppSplashScreenViewModel:function(K9){return _.m(qne,{data:K9.data,
forPaused:!0})}}))},CI=function(){h=[];
h.push(_.MC(window,"visibilitychange",function(){B||E&&hi()||(document.visibilityState==="visible"?G8():r9())}));
h.push(_.MC(window,"pagehide",function(){si()}));
h.push(_.MC(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&gn.value.dispatchEvent(new Event("tap"))},0)}));
h.push(_.MC(gn.value,"pointerdown",function(){Am7(S,!1)},!0));
h.push(_.MC(gn.value,"pause",function(){B=!0;r9()}));
h.push(_.MC(gn.value,"play",function(){B=!1;G8()}));
h.push(_.MC(gn.value,"exit",function(){si()}));
var nt=navigator.keyboard,K9=nt&&nt.lock;h.push(_.MC(window,Fx0,function(){s6(gE6());gE6()?(e().hasPlayNextShelf&&vt("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),am("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),K9&&nt.lock(["Escape"])):(e().hasPlayNextShelf&&am("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),vt("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),K9&&nt.unlock())}));
e().showMultiplayer3pConsentDialogCommand&&h.push(_.MC(window,"yt-playables-ack-3p-data-usage",function(){ML2(b)}));
e().confirmExitMiniAppCommandEdu&&h.push(_.MC(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.mZ("exit-mini-app-seen-state","true",2592E6)}));
e().onGameAudioDataReceivedCommand&&h.push(_.MC(window,"message",function(BO){BO=BO.event_;var aC,be=(aC=qf.value)==null?void 0:aC.src;if(be&&BO.origin===(new URL(be)).origin&&BO.data&&BO.data.type==="GAME_AUDIO"&&BO.data.audio&&BO.data.audio.length>0)if(_.N("enable_sending_unwrapped_game_audio_as_serialized_metadata"))AVO(e().onGameAudioDataReceivedCommand,BO.data.audio);else{var wr=new FileReader;wr.onload=function(){var xh=new G1;var ZI=new KuB;ZI=_.L0(ZI,1,wr.result);xh=_.hr(xh,4,ZI);Rt(e().onGameAudioDataReceivedCommand,
j4c(xh))};
wr.readAsDataURL(new Blob([BO.data.audio]))}}))},np=function(){h.forEach(function(nt){o5(nt)});
window.removeEventListener("beforeunload",$S,{capture:!0})},Wn=function(nt){nt&&zEO(nt,e().isEmbeddedInWebview||!1)},am=function(nt,K9){nt=_.a(gn.value.getElementsByClassName(nt));
for(var BO=nt.next();!BO.done;BO=nt.next())BO.value.classList.add(K9)},vt=function(nt,K9){nt=_.a(gn.value.getElementsByClassName(nt));
for(var BO=nt.next();!BO.done;BO=nt.next())BO.value.classList.remove(K9)};
return function(){var nt={};nt=_.qe("yt-mini-app-container-view-model",(nt["yt-mini-app-container-view-model--desktop"]=!0,nt["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return e().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},nt["yt-mini-app-container-view-model--ios-web-view"]=oH3(),nt["yt-mini-app-container-view-model--no-top-bar"]=function(){return!e().topBar},nt["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return e().hasPlayNextShelf},nt["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return e().hasPlayNextShelf},nt["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Ys()&&e().hasPlayNextShelf},nt));
var K9={};K9=_.qe("yt-mini-app-container-view-model__content",(K9["yt-mini-app-container-view-model__content--desktop-content"]=!0,K9["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return e().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},K9["yt-mini-app-container-view-model--desktop-play-page"]=function(){return e().hasPlayNextShelf},K9));
return _.m("mini-app-container-view-model",{el:gn},_.m("div",{class:nt},_.m(_.y,{cond:function(){return e().topBar&&!Ys()},
then:function(){return _.m(_.kz,{data:function(){return e().topBar}},{miniAppTopBarViewModel:function(BO){return _.m(k$2,{data:BO.data,
isAudioEnabled:N7,onAudioToggled:function(aC){Ny(aC)},
score:he,formattedScore:te,onScoreChanged:function(aC){q=aC},
isEmbeddedInWebview:hi,isSaved:es,onSaveToggled:function(aC){TM(aC)},
isExitMiniAppSeen:SA,isDesktopPlayPage:Je})}})}}),_.m("div",{class:K9},_.m(_.y,{cond:n7,
then:function(){return rn()}}),_.m(_.y,{cond:function(){return e().isLivestream},
then:function(){return R_()}}),_.m(_.y,{cond:function(){return!e().isEmbeddedInWebview},
then:function(){return CY()}}))))}()},"xe");
tLM.idomCompat=!0;_.aZ(tLM,"mini-app-container-view-model",{props:{data:_.U1}});var frE=_.l(function(v){var e=v.data;return _.m("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.m("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.rq(function(){var d=e().onTap;d&&_.wC(d)})},_.m(_.y,{cond:function(){return e().icon},
then:function(d){return _.m(_.sG,{icon:function(){return d().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.m("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return e().title})))},"ye");
frE.idomCompat=!0;var RpA=_.l(function(v){var e=_.nI("div"),d=_.a(_.OE(void 0,void 0,"dg3xff")),E=d.next().value,T=d.next().value;d=_.a(_.OE(void 0,void 0,"AgHNfc"));var S=d.next().value,O=d.next().value;d=_.a(_.OE(void 0,void 0,"fuTKCc"));var b=d.next().value,Y=d.next().value,q=function(){var X=E();return X!==void 0?Math.abs(X):void 0},r=function(){var X=q();
return X===void 0||X<=3},h=function(){var X=q();
var Z=S(),U=b();X=X!==void 0&&Z!==void 0&&U!==void 0?Z-U-X:void 0;return X===void 0||X<=3},K=function(X){e.value&&e.value.scrollBy({top:0,
left:(_.Bb("HTML_DIR")==="rtl"?-1:1)*X*e.value.clientWidth,behavior:"smooth"})},k=function(){var X;
T((X=e.value)==null?void 0:X.scrollLeft);var Z;O((Z=e.value)==null?void 0:Z.scrollWidth);var U;Y((U=e.value)==null?void 0:U.clientWidth)},J=function(){K(-.5)},R=function(){K(.5)};
d=_.rq(function(){k()});
_.JE(function(){k();if(e.value&&window.ResizeObserver){var X=new ResizeObserver(k);X.observe(e.value);_.Jf(function(){X.disconnect()})}});
var B={};return _.m("yt-sponsorships-scrollable-shelf",{class:_.qe("ytdSponsorshipsScrollableShelfHost",v.className)},_.m("div",{class:_.qe("ytdSponsorshipsScrollableShelfContent",(B.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return v.data().previousButton&&v.data().nextButton&&!r()&&!h()},B.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return v.data().previousButton&&!r()&&h()},B.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return v.data().nextButton&&
r()&&!h()},B)),
el:e,"on:scroll":d},v.children),_.m(_.y,{cond:function(){return!r()},
then:function(){return _.m(_.kz,{data:function(){return v.data().previousButton}},{buttonViewModel:function(X){return _.m(_.yi,{data:X.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:J})}})}}),_.m(_.y,{cond:function(){return!h()},
then:function(){return _.m(_.kz,{data:function(){return v.data().nextButton}},{buttonViewModel:function(X){return _.m(_.yi,{data:X.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:R})}})}}))},"ze");
RpA.idomCompat=!0;var x26=_.l(function(v){var e=v.data;v={};return _.m("yt-sponsorships-hub",{class:_.qe("ytdSponsorshipsHubHost",(v.ytdSponsorshipsHubHostIndented=function(){return e().indented},v))},_.m("div",{class:"ytdSponsorshipsHubHeader"},_.m("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.m("div",{class:"ytdSponsorshipsHubAvatar"},_.m(_.kz,{data:function(){return e().avatar}},{avatarViewModel:_.x7})),_.m(_.y,{cond:function(){return e().badgeImage},
then:function(d){return _.m("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.m("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.m("div",{class:"ytdSponsorshipsHubBadge"},_.m(_.va,{data:d,targetWidth:24,targetHeight:24,alt:""}))))}})),_.m("div",{class:"ytdSponsorshipsHubDetails"},_.m("div",{class:"ytdSponsorshipsHubTierName"},function(){return e().tierName}),_.m("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return e().membershipType}),_.m("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return e().membershipDurationOrExpiry})),_.m("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.m(_.kz,{data:function(){return e().manageButton}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.m(_.kz,{data:function(){return e().actionMenuButton}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.m("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return e().perksTitle}),_.m(RpA,{data:function(){return{previousButton:e().previousPerkButton,
nextButton:e().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.m("div",{class:"ytdSponsorshipsHubPerkCards"},_.m(_.kz,{data:function(){return e().perkCards}},{sponsorshipsHubPerkCardViewModel:frE}),_.m(_.y,{cond:function(){return e().viewAllPerksButton},
then:function(d){return _.m(PE7,{data:d})}}))))},"Ae");
x26.idomCompat=!0;var PE7=_.l(function(v){var e=v.data;return _.m("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.m(_.kz,{data:function(){return e().button}},{buttonViewModel:_.yi}),_.m("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.m("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return e().title}),_.m("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return e().subtitle})))},"Be");
PE7.idomCompat=!0;_.aZ(x26,"yt-sponsorships-hub",{props:{data:_.U1}});_.B4A=_.l(function(v){var e=v.data;return _.m("yt-dual-avatar-view-model",{class:_.qe("ytDualAvatarViewModelHost",v.className),style:_.jM({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var d;return((d=e().badgeCutoutRadius)!=null?d:14)+"px"}})},_.m("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.m(_.kz,{data:function(){return e().startAvatar}},{avatarViewModel:_.x7}),_.m(_.kz,{data:function(){return e().endAvatar}},{avatarViewModel:_.x7})),_.m(_.kz,{data:function(){return e().badge}},
{contentPreviewImageViewModel:function(d){return _.m("div",{class:"ytDualAvatarViewModelBadge"},_.m(_.a3,{data:d.data}))}}))},"Ce");
_.B4A.idomCompat=!0;var XUg=_.l(function(v){var e=v.data;var d,E=!((d=_.dk().resolve(_.eG(_.n1)))==null||!d());v=_.yl(function(){var r,h,K=E?(r=e().header)==null?void 0:r.backgroundColorDarkMode:(h=e().header)==null?void 0:h.backgroundColorLightMode;if(K!==void 0)return _.w1(K)},void 0,"TDdh7d");
d=_.yl(function(){var r,h;return E?(r=e().header)==null?void 0:r.backgroundImagePart1Dark:(h=e().header)==null?void 0:h.backgroundImagePart1Light},void 0,"X0peMe");
var T=_.yl(function(){var r,h;return E?(r=e().header)==null?void 0:r.backgroundImagePart2Dark:(h=e().header)==null?void 0:h.backgroundImagePart2Light},void 0,"an0Hzd"),S=_.yl(function(){return _.Bb("HTML_DIR")==="rtl"},void 0,"BltEgb"),O=_.nI("yt-sponsorships-perks-list"),b=!1,Y=function(){var r=O.value;
if(r&&!b){var h,K=(h=r.parentElement)==null?void 0:h.parentElement;if(K)for(r=r.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),h=0;h<r.length;++h){var k=r[h];if(k instanceof HTMLElement){K.scrollTo({top:k.offsetTop+k.clientHeight/2-K.clientHeight/2,behavior:"smooth"});b=!0;break}}}};
_.Gr(function(){var r=O.value;if(r&&window.ResizeObserver){var h=new ResizeObserver(Y);h.observe(r);_.Jf(function(){h.disconnect()})}});
var q={};return _.m("yt-sponsorships-perks-list",{el:O,class:_.qe("ytdSponsorshipsPerksListHost",(q.ytdSponsorshipsPerksListHorizontalPadding=function(){return e().horizontalPaddingEnabled},q))},_.m("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.m("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.jM({"background-color":v})},_.m("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.m(_.y,{cond:d,then:function(r){var h={};return _.m("div",{class:_.qe((h.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=E,h.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!E,h.ytdSponsorshipsPerksListFlipped=S,h))},_.m(_.va,{data:r,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.m("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.m(_.y,{cond:T,
then:function(r){var h={};return _.m("div",{class:_.qe((h.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=E,h.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!E,h.ytdSponsorshipsPerksListFlipped=S,h))},_.m(_.va,{data:r,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.m("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.m(_.kz,{data:function(){var r;
return(r=e().header)==null?void 0:r.dualAvatar}},{dualAvatarViewModel:_.B4A})))),_.m("div",{class:"ytdSponsorshipsPerksListBody"},_.m("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return e().title}),_.m(_.y,{cond:function(){return e().perks},
then:function(r){return _.m(_.jI,{each:r},function(h,K){var k={};return _.m("div",{class:_.qe("ytdSponsorshipsPerksListPerkContainer",(k.ytdSponsorshipsPerksListSelectedPerk=function(){var J=K(),R=e().selectedPerkIndex;return J===R},k))},_.m(_.y,{cond:function(){return K()>0},
then:function(){return _.m("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.m("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.m(_.y,{cond:function(){return h.icon},
then:function(J){return _.m(_.sG,{icon:function(){return J().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.m("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.m("div",{class:"ytdSponsorshipsPerksListPerkTitle"},h.title),_.m("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.m(_.Dh,{text:h.description})),_.m(_.y,{cond:function(){return h.instructions},
then:function(){var J,R;return _.m("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.m("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(J=h.instructions)==null?void 0:J.title),_.m("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.m(_.Dh,{text:(R=h.instructions)==null?void 0:R.text})))}}))),_.m(_.y,{cond:function(){return h.emoji},
then:function(J){return _.m("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.m(_.jI,{each:function(){return J()}},function(R){return _.m(_.va,{data:R,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.m(CEu,{data:h}))})}})))},"De");
XUg.idomCompat=!0;var CEu=_.l(function(v){var e=v.data;var d=function(O,b){return O===b},E=function(){var O=e();
O=_.L(O==null?void 0:O.badgesShelf,oKi);return O!==void 0&&O!==null?O:{previousButton:{},nextButton:{}}},T=_.Dq("div"),S=function(){var O=T.value;
if(O){var b=O.parentElement;if(b){O=O.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var Y=0;Y<O.length;++Y){var q=O[Y];if(q instanceof HTMLElement){b.scrollTo({left:q.offsetLeft+q.clientWidth/2-b.clientWidth/2,behavior:"instant"});break}}}}};
_.Gr(function(){var O=T.value;if(O){var b=new ResizeObserver(S);b.observe(O);_.Jf(function(){b.disconnect()})}});
return _.m("div",null,_.m(_.y,{cond:function(){return e().badges},
then:function(O){return _.m(RpA,{data:E},_.m("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:T},_.m(_.jI,{each:function(){return O()}},function(b,Y){var q={},r={},h={};
return _.m("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.m(_.y,{cond:function(){return Y()>0},
then:function(){return _.m("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.m("div",{class:_.qe("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(q.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return d(Y(),e().currentBadgeIndex)},q.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!d(Y(),e().currentBadgeIndex)},q))},_.m("div",{class:_.qe("ytdSponsorshipsPerksListLoyaltyBadge",(r.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return d(Y(),
e().currentBadgeIndex)},r.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!d(Y(),e().currentBadgeIndex)},r))},_.m(_.y,{cond:function(){return b.image},
then:function(K){var k={};return _.m("div",{class:_.qe((k.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return d(Y(),e().currentBadgeIndex)},k.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!d(Y(),e().currentBadgeIndex)},k))},_.m(_.va,{data:K,
alt:""}))}})),_.m("div",{class:_.qe("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(h.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return d(Y(),e().currentBadgeIndex)},h))},b.title)))})))}}))},"Ee");
CEu.idomCompat=!0;_.aZ(XUg,"yt-sponsorships-perks-list",{props:{data:_.U1}});_.aZ(_.l(function(v){return _.m("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.m(_.y,{cond:function(){return v.data().image},
then:function(e){return _.m(_.va,{className:"ytwFantasyEmptyStateViewModelImage",data:e,ariaHidden:!0,alt:""})}}),_.m(_.Dh,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return v.data().title}}),_.m(_.Dh,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return v.data().subtitle}}),_.m(_.kz,{data:function(){return v.data().primaryButton}},{buttonViewModel:function(e){return _.m(_.yi,{data:e.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Fe"),"ytw-fantasy-empty-state-view-model",{props:{data:_.U1}});var zpe;var lrI=_.l(function(v){var e=v.data;var d=v.uniqueId;var E=v.overrides;v=_.yl(function(){var T,S=((T=e().timedAnimationData)==null?void 0:T.animationTiming)||[];return{uniqueId:d(),timings:S,experimentEnabled:S.length>0,enabled:S.length>0}},void 0,"hiuXI");
return _.m("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.m(Ci2,{settings:v},_.m(_.kz,{data:function(){return e().buttonRenderer}},{buttonRenderer:function(T){return _.m(_.D3,{data:T.data,
buttonOverrides:E})}})))},"Ge");
lrI.idomCompat=!0;_.aZ(lrI,"timed-animation-button-renderer",{props:{data:_.U1,uniqueId:_.U1,overrides:_.U1}});var en=function(){var v=_.P.apply(this,arguments)||this;v.hideJoinButtonBeforeSubscribed=_.N("hide_join_button_before_subscribed");v.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return v};
_.V(en,_.P);_.W=en.prototype;_.W.hasShowDialogCommand=function(v){return!!_.L(v,Rre)};
_.W.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"}}}};
_.W.updateJoinButtonOverrides=function(){var v,e;(v=_.IB(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(e=v.polymerController)==null||e.set("overrides",this.joinButtonOverrides);if(v=_.IB(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))v.overrides=this.joinButtonOverrides};
_.W.handleButtonRefreshAction=function(v){if(v=_.L(v,R32))this.set("data.membershipButton",v.membershipButton),this.notifyPath("data.membershipButton")};
_.W.onYtServiceRequestError=function(v){_.Q0(this.hostElement,v.detail.error.message)};
_.W.onKeydown=function(v){if(v.key==="Enter"){var e;(e=this.data)!=null&&e.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.W.handleUnsubscribeAction=function(){var v,e,d;((v=this.data)==null?void 0:(e=v.membershipButton)==null?void 0:(d=e.buttonRenderer)==null?void 0:d.style)==="STYLE_PRIMARY"&&_.IB(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.vP.Object.defineProperties(en.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.subscriptionStateEntity)==null||!v.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var v,e=(v=this.data)==null?void 0:v.membershipButton,d;v=(e==null?void 0:e.buttonRenderer)||_.L(e==null?void 0:(d=e.timedAnimationButtonRenderer)==null?void 0:d.buttonRenderer,_.BD);return(v==null?void 0:v.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(v==null?void 0:v.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(v==null?void 0:v.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var v;if(this.hasShowDialogCommand((v=this.data)==null?void 0:v.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var v;if(this.hasShowDialogCommand((v=this.data)==null?void 0:v.navigationEndpoint))return"button"}}});
en.prototype.onYtServiceRequestError=en.prototype.onYtServiceRequestError;en.prototype.updateJoinButtonOverrides=en.prototype.updateJoinButtonOverrides;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],en.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],en.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],en.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],en.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.MS),_.w("design:type",Object)],en.prototype,"ironButtonState",void 0);_.c([_.f(),_.w("design:type",Object)],en.prototype,"data",void 0);_.c([_.t("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.w("design:type",Object),_.w("design:paramtypes",[])],en.prototype,"hideJoin",null);
_.c([_.f(),_.w("design:type",String)],en.prototype,"subscribeKey",void 0);_.c([_.f({selectorArgs:["subscribeKey"],selector:ZHO}),_.w("design:type",Object)],en.prototype,"subscriptionStateEntity",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],en.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.c([_.t("subscriptionStateEntity"),_.f({reflectToAttribute:!0}),_.w("design:type",Object),_.w("design:paramtypes",[])],en.prototype,"subscribed",null);
_.c([_.t("subscribed","data.membershipButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],en.prototype,"joinButtonOverrides",null);_.c([_.t("data.navigationEndpoint"),_.w("design:type",Object),_.w("design:paramtypes",[])],en.prototype,"channelNameTabIndex",null);_.c([_.t("data.navigationEndpoint"),_.w("design:type",Object),_.w("design:paramtypes",[])],en.prototype,"channelNameRole",null);
_.c([_.$v("joinButtonOverrides"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],en.prototype,"updateJoinButtonOverrides",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],en.prototype,"onYtServiceRequestError",null);_.c([_.z({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],en);
var HA7=_.I5()(en,"ytd-video-owner-renderer",function(){if(zpe===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);zpe=v}v=zpe;return v},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.aZ(_.l(function(v){var e=v.data;var d;v=_.a(_.OE(!((d=_.yy("yt-mini-app-is-theater-mode-enabled"))==null||!d),void 0,"CtFFDf"));var E=v.next().value,T=v.next().value;d=_.a(_.OE(!1,void 0,"pRgDfb"));var S=d.next().value,O=d.next().value;_.Gr(function(){var q=_.MC(window,Fx0,function(){O(gE6())});
_.Jf(function(){o5(q)})});
var b;d=(b=_.dk().resolve(_.eG(Ije)))!=null?b:function(){return _.m("div",null)};
_.ul("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){T(!0);_.mZ("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.ul("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){T(!1);_.mZ("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
b={};v={};var Y={};return _.m("mini-app-play-page-renderer",{class:_.qe("miniAppPlayPageRendererHost",(b.miniAppPlayPageRendererHostDetailsView=function(){return!E()},b))},_.m("div",{class:_.qe("miniAppPlayPageRendererGameContainer",(v.miniAppPlayPageRendererGameContainerDetailsView=function(){return!E()},v))},_.m(_.kz,{data:function(){return e().containerViewModel}},{miniAppContainerViewModel:tLM}),_.m(_.y,{cond:function(){return e().channel&&e().subscribeButton},
then:function(){var q={};return _.m("div",{class:_.qe("miniAppPlayPageRendererChannelContainer",(q.miniAppPlayPageRendererHideVisibility=function(){return S()},q))},_.m(_.kz,{data:function(){return e().channel}},{videoOwnerRenderer:function(r){return _.m(HA7,{data:r.data})}}),_.m(_.kz,{data:function(){return e().subscribeButton}},{subscribeButtonViewModel:function(r){return _.m(_.x1,{data:r.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.m(_.y,{cond:function(){return!E()&&e().description},
then:function(){var q={};return _.m("div",{class:_.qe("miniAppPlayPageRendererMiniAppDescriptionWrapper",(q.miniAppPlayPageRendererHideVisibility=function(){return S()},q))},_.m("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return e().description}))}})),_.m("div",{class:_.qe("miniAppPlayPageRendererPlayNextContainer",(Y.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!E()},Y.miniAppPlayPageRendererHideVisibility=function(){return S()},Y))},_.m(_.kz,{data:function(){return e().sectionList}},
{sectionListRenderer:d})))},"He"),"mini-app-play-page-renderer",{props:{data:_.U1}});var dR=function(){var v=_.P.apply(this,arguments)||this;v.isSearch=!1;v.isConstrainedList=!1;v.hasChipsBar=!1;v.inReplyPanel=!1;v.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"}};v.monitorScroll=!0;v.SCROLL_ANIMATION_DURATION_MS=300;v.nextContinuation={continuationType:"sectionListContinuation"};return v};
_.V(dR,_.P);_.W=dR.prototype;
_.W.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(v){switch(v.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.N("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.N("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.W.created=function(){var v=this;this.JSC$17016_scrollAnimation=new _.Fi(function(e){v.hostElement.scrollTop=e})};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.W.getItemsPath=function(){return"data.contents"};
_.W.replacePrimaryContent=function(v){this.set("data.contents",v)};
_.W.computeHasSortFilter=function(v){return!!v&&!!v.sortFilterSubMenuRenderer};
_.W.computeShouldScrollInPanel=function(v){var e;return!!(v==null?0:(e=v.scrollPaneStyle)==null?0:e.scrollable)};
_.W.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Yv(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.W.scrollToTop=function(){this.hostElement.scrollTop=0};
_.W.scrollToItemSection=function(v){if(v=this.getItemByIdentifier(v))v=this.getScrollPositionForItem(v),this.hostElement.scrollTop!==v&&this.JSC$17016_scrollAnimation.start(this.hostElement.scrollTop,v,this.SCROLL_ANIMATION_DURATION_MS)};
_.W.getItemByIdentifier=function(v){var e=this.contents.querySelectorAll("ytd-item-section-renderer");if(e&&e.length!==0){var d=Array.from(e).findIndex(function(E){return E.sectionIdentifier===v});
return e[d===-1?0:d]}};
_.W.getScrollPositionForItem=function(v){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===v)return 0;v=_.C0(v).y+this.hostElement.scrollTop-_.C0(this.hostElement).y;return Math.min(v,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.vP.Object.defineProperties(dR.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.targetId)==="browse-feedFEclips"}}});
dR.prototype.onScroll=dR.prototype.onScroll;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.iO.YtLazyListBehavior),_.w("design:type",Object)],dR.prototype,"ytLazyListBehavior",void 0);_.c([_.M(_.QL.YtNextContinuationBehavior),_.w("design:type",Object)],dR.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.M(_.JmM),_.w("design:type",Object)],dR.prototype,"ytBooleanLogicBehavior",void 0);_.c([_.M(_.FL),_.w("design:type",Object)],dR.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],dR.prototype,"data",void 0);_.c([_.f({value:2}),_.w("design:type",Number)],dR.prototype,"initialCount",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],dR.prototype,"autoFill",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.w("design:type",Boolean)],dR.prototype,"hasSortFilter",void 0);_.c([_.f({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.w("design:type",Boolean)],dR.prototype,"hideBottomSeparator",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.w("design:type",Boolean)],dR.prototype,"shouldScrollInPanel",void 0);
_.c([_.f(),_.w("design:type",Object)],dR.prototype,"isSearch",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dR.prototype,"isConstrainedList",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],dR.prototype,"responsiveSizing",void 0);_.c([_.f(),_.w("design:type",Object)],dR.prototype,"hasChipsBar",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],dR.prototype,"pageSubtype",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],dR.prototype,"engagementPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],dR.prototype,"liveChatEngagementPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dR.prototype,"inReplyPanel",void 0);_.c([_.sg("#action-button"),_.w("design:type",HTMLElement)],dR.prototype,"actionButton",void 0);_.c([_.f(),_.w("design:type",Object)],dR.prototype,"scrollUpButtonData",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],dR.prototype,"engagementPanelDropdown",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],dR.prototype,"engagementPanelDialog",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],dR.prototype,"isClipList",null);_.c([_.sg("#contents"),_.w("design:type",HTMLElement)],dR.prototype,"monitorScrollElement",void 0);_.c([_.sg("#contents"),_.w("design:type",HTMLElement)],dR.prototype,"contents",void 0);
_.c([_.Kq("scroll"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dR.prototype,"onScroll",null);_.c([_.z({is:"ytd-section-list-renderer",disableElementRegistration:!0})],dR);
var AJe=_.I5()(dR,"ytd-section-list-renderer",function(){if(OW7===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);OW7=v}v=OW7;return v},{mode:1});var ZAJ;var cJc;var wUu;var FKE;var EL=function(){return _.P.apply(this,arguments)||this};
_.V(EL,_.P);EL.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
EL.prototype.onLikeButtonClick=function(v){v.stopPropagation();v.preventDefault()};
_.vP.Object.defineProperties(EL.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)!=null&&v.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],EL.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],EL.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],EL.prototype,"ytRendererStamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],EL.prototype,"data",void 0);
_.c([_.f({selectorArgs:["data.likeStatusEntityKey"],selector:zI}),_.w("design:type",Object)],EL.prototype,"likeStatusEntity",void 0);_.c([_.t("data","likeStatusEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],EL.prototype,"likeButtonRenderer",null);_.c([_.z({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],EL);
_.A(EL,"ytd-slim-metadata-toggle-button-renderer",function(){if(FKE!==void 0)return FKE;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return FKE=v},{mode:1});var Tg=function(){var v=_.P.apply(this,arguments)||this;v.minimizePipBreakages=_.N("web_pip_minimize_breakages");v.showEqualizer=_.N("web_enable_playlist_video_lockup_equalizer");v.watchColorUpdate=_.N("kevlar_watch_color_update");v.actionMap={};return v};
_.V(Tg,_.P);_.W=Tg.prototype;_.W.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"}}}};
_.W.computeEditableClass=function(v){return v&&v.menu?"editable":""};
_.W.computeSelected=function(v){return!(v==null||!v.selected)};
_.W.computeUseColorPalette=function(v){return!!((v==null?0:v.lightColorPalette)&&(v==null?0:v.darkColorPalette))};
_.W.computeLargerPlaylistThumbs=function(v,e){return _.N("web_enable_playlist_bigger_thumbnails")&&!e};
_.W.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.W.onYtServiceRequestSent=function(v,e){e.endpoint&&this.isHideEnclosingAction(e.endpoint)&&!this.selected&&p4e(_.cH(),this.data.videoId)};
_.W.isHideEnclosingAction=function(v){var e=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",v);v=this.get("likeEndpoint.status",v)==="INDIFFERENT";return e||v};
_.W.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.W.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.vP.Object.defineProperties(Tg.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.N("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 v;return!!(this.withinMiniplayer&&((v=this.data)==null?0:v.actionButtons))}}});
Tg.prototype.onYtServiceRequestSent=Tg.prototype.onYtServiceRequestSent;Tg.prototype.canReorderChanged=Tg.prototype.canReorderChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Tg.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.uV),_.w("design:type",Object)],Tg.prototype,"ytdLockupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Tg.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Tg.prototype,"withinMiniplayer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Tg.prototype,"minimizePipBreakages",void 0);_.c([_.f({computed:"computeSelected(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Tg.prototype,"selected",void 0);
_.c([_.f({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Tg.prototype,"useColorPalette",void 0);_.c([_.f({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Tg.prototype,"largerPlaylistThumbs",void 0);_.c([_.f(),_.w("design:type",Object)],Tg.prototype,"showEqualizer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Tg.prototype,"canReorder",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Tg.prototype,"touchPersistentDragHandle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Tg.prototype,"handleIsHovered",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Tg.prototype,"watchColorUpdate",void 0);_.c([_.f(),_.w("design:type",String),_.w("design:paramtypes",[])],Tg.prototype,"reorderIcon",null);
_.c([_.t("largerPlaylistThumbs"),_.w("design:type",Number),_.w("design:paramtypes",[])],Tg.prototype,"thumbnailWidth",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Tg.prototype,"showActionButtons",null);_.c([_.V1("canReorder"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Tg.prototype,"canReorderChanged",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],Tg.prototype,"onYtServiceRequestSent",null);_.c([_.z({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Tg);
_.A(Tg,"ytd-playlist-panel-video-renderer",function(){if(wUu!==void 0)return wUu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return wUu=v},{mode:2});var Sn=function(){return _.P.apply(this,arguments)||this};
_.V(Sn,_.P);Sn.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Sn.prototype,"data",void 0);_.c([_.z({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Sn);
_.A(Sn,"ytd-playlist-panel-supported-items",function(){if(cJc!==void 0)return cJc;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return cJc=
v},{mode:1});QBn=!0;OrM("\\P{N}");var TFH;var QyA=_.sz("END_OF_PLAYLIST",void 0,"End of playlist"),grE=_.sz("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),WQ=function(){var v=_.P.apply(this,arguments)||this;v.minimizePipBreakages=_.N("web_pip_minimize_breakages");v.updatedCoursePanel=_.N("move_three_dot_menu_to_playlist_panel_header_for_courses");v.hideHeaderText=!1;v.useColorPalette=!1;v.collapsed=!1;v.collapsedPreServerOverride="not_tracked";v.isHovered=!1;v.modernPanels=_.N("kevlar_watch_modern_panels");
v.expandLabel=_.sz("MINIPLAYER_EXPAND_LABEL");v.collapseLabel=_.sz("MINIPLAYER_COLLAPSE_LABEL");v.isFloating=!1;v.metaPanel=!1;v.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};v.currentIndex=void 0;return v};
_.V(WQ,_.P);_.W=WQ.prototype;
_.W.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"}}}};
_.W.created=function(){this.scrollThrottle=new _.wB(this.onThrottledScroll,1E3,this)};
_.W.onMouseEnter=function(){this.isHovered=!0};
_.W.onMouseLeave=function(){this.isHovered=!1};
_.W.computeOverflowMenuData=function(v){return v&&v.menu?v.menu:null};
_.W.computeCollapsible=function(v){return!v};
_.W.computeHasPlaylistButtons=function(v){return!(!v||!v.playlistButtons)};
_.W.computeHasSeparateSaveButton=function(v){return!(!v||!v.saveButton)};
_.W.computeHasToolbarButton=function(v,e){return!(!v||!(e||v.saveButton||v.menu))};
_.W.computePlaylistType=function(v){if(v&&v.playlistId)return v.playlistId.substring(0,4)};
_.W.computeCanReorder=function(v){return v?v.playlistId&&v.playlistId.startsWith("TLPQ")?!0:!!v.isEditable&&!v.isInfinite:!1};
_.W.attached=function(){var v=this;try{_.dk().resolve(_.zJ).setPlaylistComponent(this.hostElement)}catch(e){if(_.N("kevlar_park_on_playlist_token_killswitch"))throw e;_.HH().parkOrScheduleJob(function(){_.dk().resolve(_.zJ).setPlaylistComponent(v.hostElement)},2,"ci")}_.aq(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.W.detached=function(){_.Oz(this.hostElement)};
_.W.computeTrailingIcon=function(v,e,d){return d?e?"yt-icons:collapse":"yt-icons:close":e?"yt-icons:expand":_.N("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.W.computeIndexMessage=function(v,e){return aCj(v+1)+" / "+aCj(e)};
_.W.onRenderStamperFinished=function(){if(this.scrollForStampDom){var v=!0;this.isHovered&&(v=!1);if(this.collapsed||this.hidden)v=!1;v&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.W.collapseChanged=function(){var v=this;this.collapsed||(_.NP(this.ytTaskEmitterBehavior.getTaskManager(),function(){v.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.W.hiddenChanged=function(){var v=this;this.hidden||_.NP(this.ytTaskEmitterBehavior.getTaskManager(),function(){v.scrollToCurrentVideo()})};
_.W.setupReordering=function(){var v=_.IB(this.hostElement).querySelector("#items");tu0?_.L9M(this.ytReorderableBehavior,v,v,"playlist-drag-handle"):_.L9M(this.ytReorderableBehavior,v,v)};
_.W.scrollToCurrentVideo=function(){var v=this;_.RM.addJob(function(){var e=_.IB(v.hostElement).querySelector("#items");if(e){e.style.setProperty("padding-bottom","");var d=_.IB(v.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(d){e=d.parentElement||_.sS(document);var E=e||_.sS(document);var T=_.C0(d),S=_.C0(E),O=_.Kfu(E);if(E==_.sS(document)){var b=T.x-E.scrollLeft;T=T.y-E.scrollTop}else b=T.x-S.x-O.left,T=T.y-S.y-O.top;d=yi7(d);S=E.clientHeight-
d.height;O=E.scrollLeft;var Y=E.scrollTop;O+=b-(E.clientWidth-d.width)/2;E=new _.Pn(O,Y+(T-S/2));e.scrollLeft=E.x;e.scrollTop=E.y}}},8)};
_.W.dataChanged=function(){var v=this;_.k66(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Uh(this,function(){_.LI(v.ytTaskEmitterBehavior.getTaskManager(),function(){v.ytRendererBehavior.markDirty();v.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.W.onFullBleedPlayerChanged=function(){_.N("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.W.onFullscreenChanged=function(){_.N("web_watch_imax_theater_mode")||_.N("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.W.updateNowPlayingOverlay=function(){_.N("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.W.onPlaylistLockupNowPlaying=function(v,e){e&&(this.activeNowPlayingRenderer=e);this.updateNowPlayingOverlay()};
_.W.onScroll=function(){this.scrollThrottle.fire()};
_.W.onThrottledScroll=function(){var v=this;_.LI(this.ytTaskEmitterBehavior.getTaskManager(),function(){v.ytRendererBehavior.markDirty()})};
_.W.onToggleExpanded=function(v){!this.collapsible||v&&(_.ew(v).tagName==="A"||_.UG(_.vg(v),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.W.setCollapsed=function(v){this.collapsible&&(this.collapsed=v,_.YB(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.W.handleCollapsedFromData=function(v){if(v){var e=v.playlistPanelCollapseState;e==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||e==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),e=e==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==e&&this.setCollapsed(e)):this.currentPlaylistId!==v.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(e=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==e&&this.setCollapsed(e),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=v.playlistId}};
_.W.handleDrop=function(v){var e=v.currDragItem;v=e.data.playlistSetVideoId;var d=_.XM(e.parentNode.childNodes,e),E=void 0;d>0&&(E=e.parentNode.childNodes[d-1].data.playlistSetVideoId);e=_.cH();if(e.responsePlaylistData&&e.responsePlaylistData.contents){var T=mJO(v,e.responsePlaylistData);e.responsePlaylistData=(0,_.f0.unsafeClone)(e.responsePlaylistData);tW0(e.responsePlaylistData.contents,T,d);e.queueProxy?GS6(e.queueProxy,T,d,v,E):e.playlistProxy&&GS6(e.playlistProxy,T,d,v,E);_.wo(e,_.FB(e,e.response?
e.response.autoplayRenderer:void 0))}};
_.W.handleDarkModeChange=function(v){v!==this.isDarkTheme&&(this.isDarkTheme=v)};
_.W.colorPaletteChanged=function(){var v,e=((v=this.data)==null?void 0:v.contents)||[],d;v=_.a(e);for(e=v.next();!e.done;e=v.next()){e=e.value;var E=void 0;if((E=e.playlistPanelVideoRenderer)==null?0:E.selected){v=e.playlistPanelVideoRenderer;E=e=void 0;(d=this.isDarkTheme?(e=v)==null?void 0:e.darkColorPalette:(E=v)==null?void 0:E.lightColorPalette)&&_.t8(this.hostElement,d);break}}this.useColorPalette=!!d};
_.vP.Object.defineProperties(WQ.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var v,e;return!((v=this.data)==null||!v.playlistId)&&!((e=this.data)==null||!e.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var v=_.dk().resolve(_.eG(_.zJ)),e;if(((e=this.data)==null?0:e.contents)&&(v==null?0:v.hasAutoplayData())){var d;if(((d=this.playlistLoopStateEntity)==null?void 0:d.state)==="PLAYLIST_LOOP_STATE_ONE"){if(v=this.data.currentIndex,v!==void 0){var E,T;var S=(E=this.data.contents[v])==null?void 0:(T=E.playlistPanelVideoRenderer)==null?void 0:T.title}}else{var O,b=(O=_.L(v.getAutoplayEndpoint(),_.p2))==null?void 0:O.videoId,Y,q;S=(Y=this.data.contents.find(function(r){var h;
return((h=r.playlistPanelVideoRenderer)==null?void 0:h.videoId)===b}))==null?void 0:(q=Y.playlistPanelVideoRenderer)==null?void 0:q.title}return S}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)!=null&&v.nextVideoLabel?this.nextVideoTitle?_.vv(this.data.nextVideoLabel)+":":QyA:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.data)==null?0:v.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.N("web_mix_long_byline_from_data"))return _.pQ(grE);var e;return(e=this.data)==null?void 0:e.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E=(v=this.data)==null?void 0:(e=v.playlistButtons)==null?void 0:(d=e.menuRenderer)==null?void 0:d.topLevelButtons;if(E)for(v=_.a(E),e=v.next();!e.done;e=v.next())if(e=e.value,e.playlistLoopButtonRenderer)return e.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var v;return!!(this.collapsed&&((v=this.data)==null?0:v.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.N("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
WQ.prototype.colorPaletteChanged=WQ.prototype.colorPaletteChanged;WQ.prototype.onPlaylistLockupNowPlaying=WQ.prototype.onPlaylistLockupNowPlaying;WQ.prototype.updateNowPlayingOverlay=WQ.prototype.updateNowPlayingOverlay;WQ.prototype.onFullscreenChanged=WQ.prototype.onFullscreenChanged;WQ.prototype.onFullBleedPlayerChanged=WQ.prototype.onFullBleedPlayerChanged;WQ.prototype.dataChanged=WQ.prototype.dataChanged;WQ.prototype.hiddenChanged=WQ.prototype.hiddenChanged;WQ.prototype.collapseChanged=WQ.prototype.collapseChanged;
WQ.prototype.onRenderStamperFinished=WQ.prototype.onRenderStamperFinished;WQ.prototype.onMouseLeave=WQ.prototype.onMouseLeave;WQ.prototype.onMouseEnter=WQ.prototype.onMouseEnter;_.c([_.M(_.J9),_.w("design:type",Object)],WQ.prototype,"ironResizableBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(sL2.YtPlaylistPanelBehavior),_.w("design:type",Object)],WQ.prototype,"ytPlaylistPanelBehavior",void 0);_.c([_.M(_.Ee.YtTaskEmitterBehavior),_.w("design:type",Object)],WQ.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.M(_.Ve6),_.w("design:type",Object)],WQ.prototype,"ytReorderableBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],WQ.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],WQ.prototype,"ytdReduxBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],WQ.prototype,"actionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],WQ.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],WQ.prototype,"autoplayData",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],WQ.prototype,"withinMiniplayer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WQ.prototype,"minimizePipBreakages",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WQ.prototype,"updatedCoursePanel",void 0);_.c([_.f({computed:"setMenuData_(data)"}),_.w("design:type",Object)],WQ.prototype,"menuRendererData",void 0);_.c([_.f({computed:"computeOverflowMenuData(data)"}),_.w("design:type",Object)],WQ.prototype,"overflowMenuDataTopRow",void 0);_.c([_.f({computed:"computeOverflowMenuData(data)"}),_.w("design:type",Object)],WQ.prototype,"overflowMenuData",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WQ.prototype,"hideHeaderText",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WQ.prototype,"useColorPalette",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.w("design:type",Boolean)],WQ.prototype,"collapsible",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WQ.prototype,"collapsed",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],WQ.prototype,"hidden",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.w("design:type",Boolean)],WQ.prototype,"hasPlaylistButtons",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.w("design:type",Boolean)],WQ.prototype,"hasSeparateSaveButton",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.w("design:type",Boolean)],WQ.prototype,"hasToolbar",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.w("design:type",String)],WQ.prototype,"playlistType",void 0);_.c([_.f(),_.w("design:type",Object)],WQ.prototype,"isHovered",void 0);_.c([_.f({selectorArgs:["playlistLoopStateEntityKey"],selector:_.uNO}),_.w("design:type",Object)],WQ.prototype,"playlistLoopStateEntity",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WQ.prototype,"modernPanels",void 0);_.c([_.f({value:56}),_.w("design:type",Number)],WQ.prototype,"scrollMargin",void 0);_.c([_.f({computed:"computeCanReorder(data)"}),_.w("design:type",Boolean)],WQ.prototype,"canReorder",void 0);_.c([_.f(),_.w("design:type",Object)],WQ.prototype,"expandLabel",void 0);_.c([_.f(),_.w("design:type",Object)],WQ.prototype,"collapseLabel",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WQ.prototype,"isFloating",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WQ.prototype,"metaPanel",void 0);_.c([_.f({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.w("design:type",String)],WQ.prototype,"trailingIcon",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],WQ.prototype,"isDarkTheme",void 0);
_.c([_.f({selector:_.za}),_.w("design:type",Boolean)],WQ.prototype,"miniplayerIsActive",void 0);_.c([_.f({selector:function(v){return v.watch.playerState}}),
_.w("design:type",Number)],WQ.prototype,"playerState",void 0);_.c([_.f({selector:_.Ba}),_.w("design:type",Boolean)],WQ.prototype,"isFullscreen",void 0);_.c([_.f({selector:_.xj}),_.w("design:type",Boolean)],WQ.prototype,"isTheaterMode",void 0);_.c([_.f(),_.w("design:type",Object)],WQ.prototype,"activeNowPlayingRenderer",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WQ.prototype,"moveThreeDotMenuToTopRow",null);
_.c([_.t("data","autoplayData","playlistLoopStateEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],WQ.prototype,"nextVideoTitle",null);_.c([_.t("data","nextVideoTitle"),_.w("design:type",String),_.w("design:paramtypes",[])],WQ.prototype,"nextVideoLabel",null);_.c([_.t("collapsed"),_.w("design:type",String),_.w("design:paramtypes",[])],WQ.prototype,"buttonAriaLabel",null);
_.c([_.t("data","playlistId","longBylineText"),_.w("design:type",Object),_.w("design:paramtypes",[])],WQ.prototype,"mixLongByLine",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],WQ.prototype,"playlistLoopStateEntityKey",null);_.c([_.Kq("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WQ.prototype,"onMouseEnter",null);
_.c([_.Kq("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WQ.prototype,"onMouseLeave",null);_.c([_.f({reflectToAttribute:!0}),_.t("data","collapsed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WQ.prototype,"showNextVideoHeader",null);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WQ.prototype,"onRenderStamperFinished",null);
_.c([_.$v("collapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WQ.prototype,"collapseChanged",null);_.c([_.$v("hidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WQ.prototype,"hiddenChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WQ.prototype,"dataChanged",null);
_.c([_.t("isTheaterMode","isFullscreen"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WQ.prototype,"isFullBleedPlayer",null);_.c([_.$v("isTheaterMode","isFullscreen"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WQ.prototype,"onFullBleedPlayerChanged",null);_.c([_.$v("isFullscreen"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WQ.prototype,"onFullscreenChanged",null);
_.c([_.$v("playerState","miniplayerIsActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WQ.prototype,"updateNowPlayingOverlay",null);_.c([_.Kq("yt-playlist-lockup-now-playing-active"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],WQ.prototype,"onPlaylistLockupNowPlaying",null);
_.c([_.$v("data","isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WQ.prototype,"colorPaletteChanged",null);_.c([_.z({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],WQ);
_.uS7=_.I5()(WQ,"ytd-playlist-panel-renderer",function(){if(ZAJ===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);ZAJ=v}v=ZAJ;return v},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var nrE;var aV=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("web_button_rework");return v};
_.V(aV,_.P);aV.prototype.computeShouldButtonBeVertical=function(v,e){return v||e};
aV.prototype.onYtServiceRequestSent=function(v,e){(v=_.L(e.endpoint,_.Bj))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Lv("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:v.status})):this.handleLikeEndpoint(v))};
aV.prototype.computelikeStatusEntityKey=function(v){return v==null?void 0:v.likeStatusEntityKey};
aV.prototype.handleLikeEndpoint=function(v){v.status==="LIKE"?this.JSC$17041_ytdDislikeToggleButtonRenderer.toggle(!1):v.status==="DISLIKE"?this.JSC$17041_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17041_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17041_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.vP.Object.defineProperties(aV.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var v;return buj(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(v=this.likeStatusEntity)==null?void 0:v.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var v;if(this.data&&((v=this.data)==null||!v.hideDislikeButton)){var e;return buj(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(e=this.likeStatusEntity)==null?void 0:e.likeStatus)}}}});
aV.prototype.onYtServiceRequestSent=aV.prototype.onYtServiceRequestSent;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],aV.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],aV.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],aV.prototype,"vertical",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],aV.prototype,"textTransform",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],aV.prototype,"useShortsIcon",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],aV.prototype,"underIconLabel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],aV.prototype,"modern",void 0);_.c([_.f({value:"left"}),_.w("design:type",String)],aV.prototype,"buttonTooltipPosition",void 0);
_.c([_.f(),_.w("design:type",Object)],aV.prototype,"overrides",void 0);_.c([_.sg("#like-button"),_.w("design:type",Object)],aV.prototype,"JSC$17041_ytdLikeToggleButtonRenderer",void 0);_.c([_.sg("#dislike-button"),_.w("design:type",Object)],aV.prototype,"JSC$17041_ytdDislikeToggleButtonRenderer",void 0);_.c([_.t("data","likeStatusEntity.likeStatus","useShortsIcon"),_.w("design:type",Object),_.w("design:paramtypes",[])],aV.prototype,"likeButton",null);
_.c([_.t("data","likeStatusEntity.likeStatus","useShortsIcon"),_.w("design:type",Object),_.w("design:paramtypes",[])],aV.prototype,"dislikeButton",null);_.c([_.f({computed:"computelikeStatusEntityKey(data)"}),_.w("design:type",String)],aV.prototype,"likeStatusEntityKey",void 0);_.c([_.f({selectorArgs:["likeStatusEntityKey"],selector:zI}),_.w("design:type",Object)],aV.prototype,"likeStatusEntity",void 0);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],aV.prototype,"onYtServiceRequestSent",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],aV);
var D2c=_.I5()(aV,"ytd-like-button-renderer",function(){if(nrE===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);nrE=v}v=nrE;return v},{mode:1});_.U2i={};
_.U2i.YtConditionalRendererBehavior=[_.n.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(v,e){var d=this,E,T;return _.I(function(S){switch(S.nextAddress){case 1:if(!e)return d.hidden=!0,d.showSpinner=!1,S.return();if((E=v)==null?0:(T=E.visibilityCondition)==null?0:T.mode)switch(v.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return S.jumpTo(5);default:return S.jumpTo(6)}d.showSpinner=
!1;d.hidden=!0;return S.yield(d.shouldShow_(v),4);case 4:d.hidden=!S.yieldResult;S.jumpTo(0);break;case 5:return S.yield(d.shouldShow_(v),8);case 8:d.showSpinner=S.yieldResult;d.hidden=!1;S.jumpTo(0);break;case 6:return d.showSpinner=!1,S.yield(d.shouldShow_(v),9);case 9:d.hidden=!S.yieldResult,_.s9(S)}})},
shouldShow_:function(v){return v&&v.supportedDatas&&v.supportedDatas.rendererVisibilityConditionData&&v.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(v.supportedDatas.rendererVisibilityConditionData.showIf):v&&v.visibilityCondition&&v.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(v.visibilityCondition.showIf):v&&v.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(v.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(v){switch(v){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(v){switch(v){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var v=_.b4(this.hostElement,"yt-get-mdx-status");return v.length==1&&v[0].connected},
isLocationPermissionGranted_:function(){var v;return _.I(function(e){return e.nextAddress==1?navigator.permissions?e.yield(navigator.permissions.query({name:"geolocation"}),3):e.jumpTo(2):e.nextAddress!=2?(v=e.yieldResult,e.return(Promise.resolve(v.state==="granted"))):e.return(Promise.resolve(!1))})}}];var pUB=function(v,e){e=e===void 0?{}:e;var d=function(E){var T=document.createElement(v),S;var O=(S=T.polymerController)!=null?S:T;iaH(T,O,E,e);return T};
d.debugName=v+" (CoW wrapped)";return d}("yt-icon",{callbackProps:["onKeydown"]}),vW0=_.N("kevlar_use_wil_icons")?_.l(function(v){var e=v.icon;
var d=v.active;var E=v.className;var T=v.style;var S=v.dataSelected;var O=v.dataDisabled;var b=v.role;var Y=v.themeOverride;var q=v.animateIcon;var r=v.ariaHidden;var h=v.ariaExpanded;var K=v.ariaLabel;var k=v.tabindex;var J=v.id;var R=v.iconFilter;var B=v.onKeydown;var X=function(){var F=e==null?void 0:e(),g=null,Q=void 0;F&&(F=v4M(F),F=CDH(F),F.length&&(g=F[1],Q=F[0]));return{iconName:g,iconSetName:Q}},Z=function(){return eGM(X().iconName,d==null?void 0:d(),void 0,void 0,X().iconSetName,_.dk().resolve(_.rC))},
U=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:R==null?void 0:R()}};
return _.m(_.y,{cond:q,then:function(){return _.m(pUB,{icon:e,active:d,className:E,style:T,dataSelected:S,dataDisabled:O,role:b,themeOverride:Y,ariaHidden:r,ariaExpanded:h,ariaLabel:K,tabindex:k,id:J,iconFilter:R,onKeydown:B})},
else:function(){return _.m(_.y,{cond:Z,then:function(F){return _.m("span",{class:_.qe("ytIconWrapperHost",E),role:b,"aria-label":K,"aria-hidden":r,tabindex:function(){return isNaN(Number(k==null?void 0:k()))?void 0:Number(k==null?void 0:k())},
id:J,style:T,"on:keydown":_.rq(function(g){return void(B==null?void 0:B(g))})},_.m(EPU,{data:F,
options:U}))}})}})},"Ie"):pUB;var eRc=function(v){var e=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];gJt();_.pw("ytglobal.ytUtilActivityCallback_",function(){_.YB(v,"yt-user-activity")});
new db(function(){return e.JSC$17057_onMouseMove});
document.addEventListener("scroll",function(){return e.onScroll});
window.addEventListener("resize",function(){return e.onResize})},da7=function(v,e,d){e in v.eventJobIds||(d=_.jd().addLowPriorityJob(function(){_.EN();
delete v.eventJobIds[e]},d),v.eventJobIds[e]=d)};
eRc.prototype.onScroll=function(v){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):v.target===document&&da7(this,"scroll",200)};
eRc.prototype.onResize=function(){da7(this,"resize",200)};
eRc.prototype.JSC$17057_onMouseMove=function(){da7(this,"mousemove",100)};
_.Sq=function(v){v.scrollEventsToIgnore+=1;v.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){v.scrollEventsToIgnore--},500))};var EWc=function(v){this.element=v;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
EWc.prototype.showFeedbackDialog=function(v,e,d,E){var T=TL6();if(!T)return!1;var S=NFW();S.productId=T;e&&(S.flow="submit",S.report={description:e});d&&(TL6()==="59"?S.callback=_.Hb(function(){_.tI("userFeedbackEvent",{});d()}):S.callback=_.Hb(d));
S.bucket=E||_.Bb("GOOGLE_FEEDBACK_BUCKET","Other");Squ(S);v=W26(this,"GFEEDBACK",v);try{_.sde(S,v)}catch(O){return _.lg(O),!1}return!0};
EWc.prototype.showHelpDialog=function(v,e,d){var E=this,T=TL6();if(!T)return!1;var S={helpCenterPath:"/youtube",productData:W26(this,"GUIDED_HELP",d)};Squ(S);var O=NFW();O.context=v||S.productData.context||"default";O.defaultHelpArticleId=e;O.enableSendFeedback=!0;(_.AE("gapi.load")||function(b,Y){return Y()})("client",function(){try{var b=u$n(T,S);
if(_.N("web_always_load_chat_support")&&!E.chatSupportLoaded)try{b.JSC$9966_loadChatSupport(O),E.chatSupportLoaded=!0}catch(Y){}b.startHelp(O)}catch(Y){_.lg(Y)}})};
var TL6=function(){var v=_.Bb("GOOGLE_FEEDBACK_PRODUCT_ID");v||_.lg(Error("fi"));return v},Squ=function(v){v&&(v.locale=_.N("kevlar_help_use_locale")?_.Bb("INNERTUBE_CONTEXT_HL","en"):_.Bb("HTML_LANG","en"))},W26=function(v,e,d){var E=v.productData;
delete E.origin;E.device=_.Kt();var T;a:{if(T=document.createElement("canvas")){var S=T.getContext("experimental-webgl",{stencil:!0});if(S){var O=S.getExtension("WEBGL_debug_renderer_info");if(O){T=S.getParameter(O.UNMASKED_RENDERER_WEBGL);break a}}if(S=T.getContext("webgl")){T=S.getParameter(S.RENDERER);break a}}T=null}E.gpu=T;E.isSDC=!!_.Bb("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(T=_.Bb("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.f0.extend(E,T);_.jYt(e,E);_.sYW(E);(v=_.YB(v.element,"yt-get-autonav-pause-debug-state"))&&
v.length&&(E.autonav_pause_state=v[0]);v=_.jy();E.browser_resolution=v.width+"\u00d7"+v.height+"@"+(window.devicePixelRatio||1)+"x";d&&_.f0.extend(E,d);return E};
EWc.prototype.resetProductData=function(){this.productData={}};var aZM=function(v){this.feedbackManager=new EWc(v)};
aZM.prototype.showFeedbackDialog=function(v,e,d,E){return this.feedbackManager.showFeedbackDialog(v,e,d,E)};
aZM.prototype.showHelpDialog=function(v,e,d){return this.feedbackManager.showHelpDialog(v,e,d)};var iJE=function(){this.baseUrl="";this.aTag=document.createElement("a")},GmB=function(v,e,d){d=d===void 0?{}:d;
d.pbj||(d.pbj=1);d=_.fxM(e,d);v.baseUrl&&d&&!_.n4(d)[1]&&!_.DV(d)&&(e=v.baseUrl,O0(e,"/")&&(e=e.slice(0,-1)),_.aU(d,"/")&&(d=d.slice(1)),d=e+"/"+d);l6(v.aTag,_.R$(d||""));return v.aTag.href};
iJE.prototype.fetchData=function(v){return _.yF3(v)};
iJE.prototype.postData=function(v,e){var d={method:"POST"};if(e){for(var E=_.a(Object.keys(e)),T=E.next();!T.done;T=E.next()){T=T.value;var S=e[T];_.Qj(S)&&(e[T]=JSON.stringify(S))}d.postParams=e}return _.yF3(v,d)};
_.M3M=function(v,e,d,E,T){v=GmB(v,e,d);if(!v)throw E=Error("gi"),Object.assign(E,{params:e}),E;return _.yF3(v,T,E)};
iJE.prototype.requestDataForServiceEndpoint=function(v,e){if(_.L(v,_.C7$))return this.fetchData("/getAccountSwitcherEndpoint");e=e||{};var d=_.L(v,D5A);d?e.se=d.base64EncodedServiceEndpoint:e.sej=JSON.stringify(v);(d=_.zz())&&_.N("enable_service_ajax_csn")&&(e.csn=d);e.theme=_.Pv();_.L(v,xo0)&&_.Bb("DELEGATION_CONTEXT")&&(e.delegation_context=JSON.stringify(_.Bb("DELEGATION_CONTEXT")));d=null;for(var E in v)if(O0(E,"Endpoint")||O0(E,"Command")){d=E;break}if(!d){var T=Error("hi");Object.assign(T,{params:v});
_.Gn0(T,"WARNING");return new _.yf(function(O,b){b(T)})}E={name:d};
var S;(d=(S=_.L(v,_.KB))==null?void 0:S.signal)&&(E.signal=d);(S=_.QU(window.location.href))&&S.internalcountrycode&&(E.internalcountrycode=S.internalcountrycode);S="/service_ajax";_.N("debug_forward_web_query_parameters")&&(S=_.wF3(S,window.location.search));S=_.ug(S,E);v.clickTrackingParams&&_.Ez(S,{itct:v.clickTrackingParams});return this.postData(S,e)};_.OJI=new _.nC("GFEEDBACK_TOKEN");var IZ2;var bJB;var YqB;var maA;var io=function(){var v=_.P.apply(this,arguments)||this;v.compact=!1;v.dismissButtonDisabled=!1;return v};
_.V(io,_.P);io.prototype.computeHasIcon_=function(v){return!!v};
io.prototype.isSignInIcon_=function(v){return v=="yt-icons:prompted_sign_in"};
io.prototype.onDismissButtonClick=function(){var v;this.data.disableOnClick&&!this.dismissButtonDisabled&&(v=this.data.dismissButton)!=null&&v.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.U2i.YtConditionalRendererBehavior),_.w("design:type",Object)],io.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],io.prototype,"data",void 0);_.c([_.f({computed:"computeIcon_(data.icon)"}),_.w("design:type",Object)],io.prototype,"icon_",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.w("design:type",Boolean)],io.prototype,"hasIcon_",void 0);_.c([_.f({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.w("design:type",Boolean)],io.prototype,"signInIcon_",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],io.prototype,"compact",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],io.prototype,"dismissButtonDisabled",void 0);
_.c([_.lh({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],io);
_.A(io,"yt-player-error-message-renderer",function(){if(maA===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;YqB===void 0&&(YqB=document.createElement("template"));var E=YqB;d.call(e,E.content.cloneNode(!0),v.content.firstChild);maA=v}v=maA;return v},{mode:2});var y22;var qqc;var OL=function(){return _.P.apply(this,arguments)||this};
_.V(OL,_.P);OL.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
OL.prototype.computeIcon_=function(v){return v?"yt-icons:"+v.iconType.toLowerCase():"error_outline"};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],OL.prototype,"data",void 0);_.c([_.f({computed:"computeIcon_(data.icon)"}),_.w("design:type",Object)],OL.prototype,"icon_",void 0);_.c([_.lh({is:"yt-player-kav-renderer",disableElementRegistration:!0})],OL);
_.A(OL,"yt-player-kav-renderer",function(){if(qqc===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;y22===void 0&&(y22=document.createElement("template"));var E=y22;d.call(e,E.content.cloneNode(!0),v.content.firstChild);qqc=v}v=qqc;return v},{mode:2});var V5M=_.Z9(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.aZ(_.l(function(v){var e=_.nI("div"),d=_.a(_.OE(0,void 0,"yt0wE")),E=d.next().value,T=d.next().value;d=_.a(_.OE(null,void 0,"CnFp5"));var S=d.next().value,O=d.next().value;_.Gr(function(){ogS(e.value,T,O);e.value.scrollIntoView()});
d=JF3.bind(null,v.data,E);eO("resize",function(){var b=S();if(E()===1&&b!==null){var Y;(Y=window.grecaptcha)==null||Y.reset(b)}});
return _.m("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.m("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.m("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var b,Y;return(b=v.data().accessibility)==null?void 0:(Y=b.accessibilityData)==null?void 0:Y.label}),_.m(_.Dh,{text:d,
className:_.qe("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.m("div",{el:e,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Je"),"yt-player-captcha-view-model",{props:{data:_.SM}});var GHt=!1;_.r2M=_.l(function(v){var e=v.data;return _.m("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.m(_.y,{cond:function(){return e().icon},
then:function(d){return _.m("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.m(_.va,{data:d,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.m(_.y,{cond:function(){return e().title},
then:function(d){return _.m("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.m(_.Dh,{text:d}))}}),_.m(_.y,{cond:function(){return e().description},
then:function(d){return _.m("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.m(_.Dh,{text:d}))}}),_.m(_.kz,{data:function(){return e().primaryButton}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
className:"interstitialViewModelFlexItem"})}}),_.m(_.kz,{data:function(){return e().secondaryButton}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
className:"interstitialViewModelFlexItem"})}}))},"Ke");
_.r2M.idomCompat=!0;var hRB=_.l(function(v){var e=v.data;_.lw();return _.m("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.m("div",{class:"playerInterstitialRendererScrim"},_.m(_.kz,{data:function(){return e().content}},{interstitialViewModel:_.r2M})))},"Le");
hRB.idomCompat=!0;_.aZ(hRB,"yt-player-interstitial-renderer",{props:{data:_.U1}});var IV=function(){var v=_.P.apply(this,arguments)||this;v.noBackground=!1;v.compact=!1;v.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return v};
_.V(IV,_.P);IV.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"}}}};
IV.prototype.onUpdatePlayerErrorMessageCommand_=function(v){if(_.L(v,IG6)){var e;if(v=(e=_.L(v,IG6))==null?void 0:e.newPlayerErrorMessageRenderer)this.data=v}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],IV.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],IV.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],IV.prototype,"status",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],IV.prototype,"noBackground",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],IV.prototype,"compact",void 0);_.c([_.lh({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],IV);
var K2A=_.I5()(IV,"yt-playability-error-supported-renderers",function(){if(bJB===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;IZ2===void 0&&(IZ2=document.createElement("template"));var E=IZ2;d.call(e,E.content.cloneNode(!0),v.content.firstChild);bJB=v}v=bJB;return v},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var M57=void 0,fC0=void 0;var xOs=new PZJ;var $an=function(v){this.store=v;this.erO=new _.CZJ},bW3=function(v,e,d){var E,T;
if(!(T=((E=e.playabilityStatus)==null?void 0:E.status)!=="OK")){v=v.store;var S;T=e.offlineState&&((S=e.videoDetails)==null?0:S.videoId)?_.N("enable_pl_r_c_cd")?ie7(v.getState().entities,e.videoDetails.videoId):!!Bot(v.getState().entities,e.videoDetails.videoId):!1}if(T)return!0;T=lCW(e);if(T===1){if(_.N("ab_v_vid_sig")){var O,b=(O=e.videoDetails)==null?void 0:O.videoId;if(!b||!d||b!==d){var Y;e=new _.kL("282054944_vid",{u2y:d,emT:(Y=e.videoDetails)==null?void 0:Y.videoId});_.RI(e)}}return!0}uFS=
0;var q,r;Y=(b=e.auxiliaryUi)==null?void 0:(q=b.messageRenderers)==null?void 0:(r=q.bkaEnforcementMessageViewModel)==null?void 0:r.displayType;if(T!==3&&(Y==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||Y==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;Y={reason:_.WK(_.sz("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.N("ks_something_wrong_learn_more")?T_U("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.WK(_.sz("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:_.WK("282054944")};jl7(e,{playerErrorMessageRenderer:Y});return!1},Y4U=function(v,e){if(YC0(e)){_.sj(1,!0);
var d=(d=YC0(e))&&_.t57()?d:void 0;d?(jl7(e,{enforcementMessageViewModel:d}),v.erO.increment("IN_PLAYER"),_.sj(5)):(v.erO.increment("SKIP_DISPLAY"),_.sj(2))}},jl7=function(v,e){v.playabilityStatus=Object.assign({},v.playabilityStatus,{status:"ERROR",
errorScreen:e});v.videoDetails=void 0};
$an.prototype.handleResponse=function(v,e){if(v.playabilityStatus){var d,E,T,S=(e==null?void 0:(d=e.innerTubeRequest)==null?void 0:d.videoId)||(e==null?void 0:(E=e.innerTubeRequest)==null?void 0:(T=E.playerRequest)==null?void 0:T.videoId);bW3(this,v,S)&&Y4U(this,v)}};
$an[ua]=[v0];var OWt=new _.nC("ADBLOCK_DETECTION_SERVICE_TOKEN");var cj=function(v){this.nld=v};
cj.prototype.bindInnertubeChallengeFetcher=function(v){this.nld.bicf(v)};
cj.prototype.registerChallengeFetchedCallback=function(v){this.nld.bcr(v)};
cj.prototype.getLatestChallengeResponse=function(){return this.nld.blc()};var slI;slI=_.Z9(["https://static.doubleclick.net/instream/ad_status.js"]);_.NL7=_.ie(slI);var oWI;_.bo=function(v,e,d){var E=this;this.network=v;this.options=e;this.networkStatusManager=d;this.pH=null;if(e.useBotguardEverywhere){var T=new _.r1;this.pH=T.promise;_.TO.ytAtRC&&_.JX(_.RM,function(){var S,O;return _.I(function(b){if(b.nextAddress==1){if(!_.TO.ytAtRC)return b.return();S=khg(null);return b.yield(E.lN(S),2)}O=b.yieldResult;_.TO.ytAtRC&&_.TO.ytAtRC(JSON.stringify(O));_.s9(b)})});
w9j().then(function(S){var O,b,Y,q;return _.I(function(r){if(r.nextAddress==1)return S.bindInnertubeChallengeFetcher(function(h){return E.lN(khg(h))}),r.yield(MIL(),2);
O=r.yieldResult;b=S.getLatestChallengeResponse();Y=b.challenge;if(!Y)throw Error("ii");q={challenge:Y,gL:Z7(Y),vm:O,bgChallenge:new Hj};T.resolve(q);S.registerChallengeFetchedCallback(function(h){h=h.challenge;if(!h)throw Error("ji");h={challenge:h,gL:Z7(h),vm:O,bgChallenge:new Hj};E.pH=Promise.resolve(h)});
_.s9(r)})})}else e.preload&&L2u(this,new Promise(function(S){_.LI(_.RM,function(){S(VQc(E))},0)}))};
oWI=function(v){var e={preload:!0,useBotguardEverywhere:!0},d=!1;if(typeof e==="boolean")var E={preload:e};else typeof e==="undefined"?E={preload:!0}:(E=e,d=!!e.fHA);e=d?void 0:new _.wt;_.bo.instance=new _.bo(v,E,e);return _.bo.instance};
_.bo.prototype.q2a=function(){var v=this;return _.I(function(e){return e.nextAddress==1?e.yield(Promise.race([v.pH,null]),2):e.return(!!e.yieldResult)})};
_.bo.prototype.vgc=function(v,e,d){var E=this,T,S,O;return _.I(function(b){E.pH===null&&L2u(E,VQc(E));T=!1;S={};O=function(){var Y,q,r;return _.I(function(h){switch(h.nextAddress){case 1:return h.yield(E.pH,2);case 2:Y=h.yieldResult;S.challenge=Y.challenge;if(!Y.vm){"c1a"in Y.gL&&(S.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");h.jumpTo(3);break}q=Object.assign({},{c:Y.challenge,e:v},e);_.qq(h,4);T=!0;return h.yield(Y.vm.snapshot({vp:q}),6);case 6:(r=h.yieldResult)?S.webResponse=r:S.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.wk(h,3);break;case 4:_.jl(h),S.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(v==="ENGAGEMENT_TYPE_PLAYBACK"){var K=Y.gL,k={};if(K.c6a){var J=Number(_.Bb("DCLKSTAT",0));k.reportingStatus=String(Number(K.c)^(isNaN(J)?0:J))}K.c6b&&(k.broadSpectrumDetectionResult=String(Number(K.c)^Number(_.Bb("CATSTAT",0))));S.adblockReporting=k}return h.return(S)}})};
return b.return(Promise.race([O(),J26(d,function(){var Y=Object.assign({},S);T&&(Y.error="ATTESTATION_ERROR_VM_TIMEOUT");return Y})]))})};
var khg=function(v){var e={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};v&&(e.interpreterHash=v);return e},VQc=function(v,e){e=e===void 0?0:e;
var d,E,T,S,O,b,Y,q,r,h,K,k;return _.I(function(J){switch(J.nextAddress){case 1:d=khg(XnE().h1X);if(_.N("att_fet_ks"))return _.qq(J,7),J.yield(v.lN(d),9);_.qq(J,4);return J.yield(Ghi(v,d),6);case 6:O=J.yieldResult;T=O.gpR;S=O.isy;E=O;_.wk(J,3);break;case 4:return _.jl(J),_.xf(Error("ki`"+e)),MQ6(v,864E5),J.return({challenge:"",gL:{},vm:void 0,bgChallenge:void 0});case 9:E=J.yieldResult;if(!E)throw Error("li");if(!E.challenge)throw Error("mi");T=E.challenge;S=Z7(T);if("c1a"in S&&(!E.bgChallenge||!E.bgChallenge.program))throw Error("ni");
_.wk(J,3);break;case 7:b=_.jl(J);_.xf(b);e++;if(e>=5)return _.xf(Error("ki`"+e)),MQ6(v,864E5),J.return({challenge:"",gL:{},vm:void 0,bgChallenge:void 0});Y=1E3*Math.pow(2,e-1)+Math.random()*1E3;return J.return(new Promise(function(R){_.LI(_.RM,function(){R(VQc(v,e))},Y)}));
case 3:q=cF3(S);MQ6(v,q*1E3);r=void 0;if(!("c1a"in S&&E.bgChallenge)){J.jumpTo(10);break}h=Zut(E.bgChallenge);_.qq(J,11);return J.yield(lPE(XnE(),h),13);case 13:_.wk(J,12);break;case 11:return K=_.jl(J),_.xf(K),J.return({challenge:T,gL:S,vm:r,bgChallenge:h});case 12:return _.qq(J,14),r=new _.Gx({challenge:h,ou9:{jo:"aGIf"}}),J.yield(r.lsE,16);case 16:_.wk(J,10);break;case 14:k=_.jl(J),_.xf(k),r=void 0;case 10:return J.return({challenge:T,gL:S,vm:r,bgChallenge:h})}})};
_.bo.prototype.lN=function(v){var e=this,d;return _.I(function(E){d=e.networkStatusManager;if(!d||d.isNetworkAvailable())return E.return(e.network.lN(v));_.HF("att_pna",void 0,"attestation_challenge_fetch");return E.return(new Promise(function(T){d.listenOnce("publicytnetworkstatus-online",function(){e.network.lN(v).then(T)})}))})};
var tQe=function(v){if(!v)throw Error("li");if(!v.challenge)throw Error("mi");var e=v.challenge,d=Z7(e);if("c1a"in d&&(!v.bgChallenge||!v.bgChallenge.program))throw Error("ni");return Object.assign({},v,{gpR:e,isy:d})},Ghi=function(v,e){var d,E,T,S,O;
return _.I(function(b){switch(b.nextAddress){case 1:d=void 0,E=0,T={};case 2:if(!(E<5)){b.jumpTo(4);break}if(!(E>0)){b.jumpTo(5);break}T.eSA=1E3*Math.pow(2,E-1)+Math.random()*1E3;return b.yield(new Promise(function(Y){return function(q){_.LI(_.RM,function(){q(void 0)},Y.eSA)}}(T)),5);
case 5:return _.qq(b,7),b.yield(v.lN(e),9);case 9:return S=b.yieldResult,b.return(tQe(S));case 7:d=O=_.jl(b),O instanceof Error&&_.xf(O);case 8:E++;T={eSA:void 0};b.jumpTo(2);break;case 4:throw d;}})},L2u=function(v,e){v.pH=e},fZ2=function(v){var e,d,E;
return _.I(function(T){if(T.nextAddress==1)return T.yield(Promise.race([v.pH,null]),2);e=T.yieldResult;var S=VQc(v);v.pH=S;(d=e)==null||(E=d.vm)==null||E.dispose();_.s9(T)})},MQ6=function(v,e){var d=Date.now()+e,E=function(){var T;
return _.I(function(S){T=d-Date.now();return T<1E3?S.yield(fZ2(v),0):(_.LI(_.RM,E,Math.min(T,6E4)),S.jumpTo(0))})};
E()},J26=function(v,e){return new Promise(function(d){_.LI(_.RM,function(){d(e())},v)})};var RRn=function(){};
RRn.prototype.processContext=function(v){var e=_.bo.instance;if(!e)return _.QM();var d=DO7(v);return d?new FY(e.vgc(d,ggt(v),500).then(function(E){var T;(v==null?0:(T=v.innerTubeRequest)==null?0:T.context)||(v.innerTubeRequest.context={});T=v.innerTubeRequest.context;T.request||(T.request={});T.request.attestationResponseData=E})):_.QM()};var PGM=function(v){this.innertubeTransportService=v};
PGM.prototype.lN=function(v){_.HF("att_fsr",void 0,"attestation_challenge_fetch");return _.XB(this.innertubeTransportService,v,_.Ej(_.YFA)).then(function(e){_.HF("att_frr",void 0,"attestation_challenge_fetch");return e})};_.xae=function(v){this.innertubeTransportService=v};var BLc=new _.nC("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var CG2=function(){},zRI=function(v,e,d,E,T){var S=_.Bb("YPC_MB_URL");
_.Ba7(S).then(function(){XdI(S,v,e,d,E,T)})},XdI=function(v,e,d,E,T,S){try{var O=payments.business.integration,b=payments.business.integration.Style.create().withMaterialDesignStyle(),Y=O.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.N("enable_window_constrained_buy_flow_dialog")&&(Y=Y.usingPopupStyle("windowConstrained"));S&&(Y=Y.usingCloseCallback(S));var q=d?d:_.Bb("YPC_GB_LANGUAGE"),r=_.Bb("SESSION_INDEX");O.bootstrap.fromPaymentsUrl(v);O.bootstrap.asMashupMode(Y).usingGaiaIndex(r).usingLocale(q).usingStyle(b).usingDefaultActivityStatusChangeHandler().inStandaloneContext(O.standaloneContextAuthId.forGaia()).purchaseManager(e,function(h){E&&E(h)}).load(void 0,T)}catch(h){throw T&&T(h),_.RI(h),h;
}};var lZe=new _.nC("PURCHASE_MANAGER_TOKEN");var HJc=function(){var v=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return v.videos},
getContinuationsPresent:function(){return v.continuationsPresent},
setVideos:function(e){v.videos=e},
getRecommendedVideos:function(){return v.recommendedVideos},
setRecommendedVideos:function(e){v.recommendedVideos=e}}};
HJc.prototype.addVideos=function(v){v&&(this.videos=v.filter(function(e){return!!_.p9L(e)}).map(function(e){var d=_.p9L(e);
a:{var E;if(e.playlistVideoRenderer&&((E=e.playlistVideoRenderer)==null?0:E.voteSortTiebreaker))var T=e.playlistVideoRenderer.voteSortTiebreaker;else{if(_.L(e,Fb)){var S;if(E=(T=_.L(e,Fb))==null?void 0:(S=T.playlistItemData)==null?void 0:S.voteSortTiebreaker){T=E;break a}}T=""}}return{itemId:d,videoId:_.dLs(e),voteCount:_.E2W(e),voteSortTiebreaker:T}}),this.continuationsPresent=!!_.L(v[v.length-1],_.uw))};
var A2n=function(v,e){return v.videos.findIndex(function(d){return d.itemId===e})},ZJi=function(v,e){return v.recommendedVideos.findIndex(function(d){return d.itemId===e})},c2A=function(v){v={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:v}}}}};_.dk().resolve(_.EI).resolveCommand(v)};var wd0=function(){HJc.apply(this,arguments)};
_.V(wd0,HJc);
var KQI=function(v,e,d,E){if(!v.parentElem)throw Error("si");var T=A2n(v,e);T===-1&&(T=ZJi(v,e),T=T!==-1?T+v.videos.length:-1);if(T===-1)throw Error("ti");var S=T>=v.videos.length?v.recommendedVideos[T-v.videos.length]:v.videos[T];S.voteCount=d;S.voteSortTiebreaker=Date.now().toString();T>=v.videos.length?v.recommendedVideos.splice(T-v.videos.length,1):v.videos.splice(T,1);var O=v.videos;for(var b=0,Y=O.length-1;b<=Y;){var q=Math.floor((b+Y)/2);if(O[q].voteCount<S.voteCount)Y=q-1;else if(O[q].voteCount>S.voteCount)b=
q+1;else{a:{var r=S.voteSortTiebreaker;var h=O[q].voteSortTiebreaker;if(r.length!==h.length)r=r.length>h.length;else{for(var K=0;K<r.length;K++){var k=r.charCodeAt(K),J=h.charCodeAt(K);if(k>J){r=!0;break a}if(k<J)break}r=!1}}r?Y=q-1:b=q+1}}O=b;if(O===-1)throw Error("ui");v.videos.splice(O,0,S);T!==O&&F2c(v,T,O,e,d,E)},F2c=function(v,e,d,E,T,S){var O,b=(O=v.parentElem)==null?void 0:O.children,Y=Math.min(e,d),q=Math.max(e,d);
if(b)for(O=Y;O<=q;O++)b[O].style.viewTransitionName="item-"+String(O);document.startViewTransition(function(){if(v.parentElem){var r=v.parentElem.children;if(!(!r||e<0||e>=r.length||d<0||d>=r.length)){var h=r[e];if(h){h.remove();v.showRefreshPill=d>=v.videos.length-1&&v.continuationsPresent;if(!v.showRefreshPill){r=r[d]||null;var K;(K=v.parentElem)==null||K.insertBefore(h,r)}_.Iq(v.parentElem,"yt-update-video-data-voting-animation",{toIdx:d,itemId:E,newVoteCount:T,voteStatus:S,hideItem:v.showRefreshPill})}}}}).finished.then(function(){if(b)for(var r=
Y;r<=q;r++)b[r].style.viewTransitionName="";
if(v.showRefreshPill)c2A(_.sz("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var h;if(h=r=(h=v.parentElem)==null?void 0:h.children[d])h=r.getBoundingClientRect(),r=h.bottom,h=!(h.top>=0&&r<=v.clientHeight);h&&(h=_.Ng(e>d?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(e-d)),c2A(h))}})};var uu2=function(v,e){var d=this;v?this.innertubeTransportServicePromise=Promise.resolve(v):e&&(this.innertubeTransportServicePromise=e(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new nL(3E3,function(E){return Ql6(d,E)},0);
this.validateMiniAppVideoIdRateLimiter=new nL(3E3,function(E){return gW7(d,E)},1)},VLu=function(v,e){v.JSC$17170_miniAppId=e;
v.reportMiniAppValueRateLimiter=new nL(3E3,function(d){return Ql6(v,d)},0);
v.validateMiniAppVideoIdRateLimiter=new nL(3E3,function(d){return gW7(v,d)},1)},JJ0=function(v,e){var d;
return _.I(function(E){if(E.nextAddress==1)return E.yield(v.reportMiniAppValueRateLimiter.call(e),2);d=E.yieldResult;return E.return([d,e])})},Ql6=function(v,e){var d,E,T,S,O,b,Y;
return _.I(function(q){switch(q.nextAddress){case 1:return q.yield(v.innertubeTransportServicePromise,2);case 2:return d=q.yieldResult,E=_.Ej(Kw6),T=Date.now(),S={externalPostId:v.JSC$17170_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(T/1E3),nanos:Math.round(T%1E3*1E6)},intValue:""+e}},_.qq(q,3),q.yield(_.XB(d,S,E),5);case 5:O=q.yieldResult;_.wk(q,4);break;case 3:throw b=_.jl(q),b;case 4:if(O){if("error"in O&&O.error)throw O.error;if(O.errorMetadata)throw Error("vi`"+
O.errorMetadata.status);if(Y=O.userStatResult)return q.return(Y);throw Error("wi");}throw Error("xi");}})},ML2=function(v){var e,d,E,T,S;
_.I(function(O){switch(O.nextAddress){case 1:return O.yield(v.innertubeTransportServicePromise,2);case 2:return e=O.yieldResult,d=_.Ej(Kw6),E={externalPostId:v.JSC$17170_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.qq(O,3),O.yield(_.XB(e,E,d),5);case 5:T=O.yieldResult;_.wk(O,4);break;case 3:throw S=_.jl(O),S;case 4:if(T==null)throw Error("xi");if("error"in T&&T.error)throw T.error;if(T.errorMetadata)throw Error("vi`"+T.errorMetadata.status);_.s9(O)}})};
uu2.prototype.flush=function(){var v=this;return _.I(function(e){return e.nextAddress==1?e.yield(v.reportMiniAppValueRateLimiter.flush(),2):e.yield(v.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var G$B=function(v,e){return _.I(function(d){return d.nextAddress==1?d.yield(v.validateMiniAppVideoIdRateLimiter.call(e),2):d.return(d.yieldResult)})},gW7=function(v,e){var d,E,T,S,O,b;
return _.I(function(Y){switch(Y.nextAddress){case 1:return Y.yield(v.innertubeTransportServicePromise,2);case 2:return d=Y.yieldResult,E=_.Ej(IdI),T={videoId:e},_.qq(Y,3),Y.yield(_.XB(d,T,E),5);case 5:S=Y.yieldResult;_.wk(Y,4);break;case 3:throw O=_.jl(Y),O;case 4:if(S){if("error"in S&&S.error)throw S.error;if(S.errorMetadata)throw Error("vi`"+S.errorMetadata.status);if(b=S.playabilityStatus)return Y.return(b.status);throw Error("yi");}throw Error("xi");}})};
uu2[ua]=[_.eG(_.lX),_.eG(cTI)];var nWI=function(){this.clientData=new Map};
nWI.prototype.getData=function(v){return this.clientData.get(v)};var Dan=function(v){this.store=v};
Dan.prototype.handleResponse=function(v){(v=_.L(v.frameworkUpdates,nM))&&_.NE(v,this.store)};
Dan[ua]=[_.Hl];var UaJ=new _.nC("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var pd6={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 vS9=new _.nC("ICON_SET_TOKEN"),e$S=new _.nC("ICON_URL_PROVIDER_TOKEN"),d7S=new _.nC("PREFETCH_ICONS_TOKEN"),ESv=new _.nC("ICON_MAP_FN_TOKEN");var Y4={},THw=(Y4.ACCESS_TIME="clock",Y4.ACCOUNT_BOX="person_account",Y4.ACCOUNT_BOX_CAIRO="person_account_cairo",Y4.ACCOUNT_CIRCLE="person_circle",Y4.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Y4.ACCOUNT_LINKED="account_link_success",Y4.ACCOUNT_UNLINKED="account_link",Y4.ADD_FRIEND="people",Y4.ADD_MODERATOR="shield_add",Y4.ADD_TO_LIBRARY="bookmark",Y4.ADD_TO_PLAYLIST="add",Y4.ADD_TO_QUEUE_TAIL="list_queue",Y4.ADD_TO_REMOTE_QUEUE="list_music",Y4.ADD_TO_WATCH_LATER="clock",Y4.ADD_VIDEO_LINK="film_strip_add",
Y4.ALERT_WARN_RED="alert_triangle",Y4.ARROW_BACK="arrow_left",Y4.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Y4.ARROW_DROP_DOWN="chevron_down",Y4.ARROW_DROP_UP="chevron_up",Y4.ARROW_FORWARD="arrow_right",Y4.AUDIOTRACK="audio",Y4.AUTO_AWESOME="sparkle",Y4.AVATAR_ANONYMOUS="person_circle",Y4.AVATAR_LOGGED_OUT="person_circle",Y4.BACK="arrow_left",Y4.BAR_CHART="bar_graph",Y4.BLOCK="slash_circle_left",Y4.BLOCK_USER="slash_circle_left",Y4.BOOKMARK_BORDER="bookmark",Y4.BREAKING_NEWS_ALT_1="article_alert",
Y4.BROADCAST_CAIRO="podcast_cairo",Y4.BUG_REPORT="bug",Y4.CAMERA_ALT="camera",Y4.CAMPAIGN="megaphone",Y4.CANCEL="x_circle",Y4.CAPTIONS="closed_caption",Y4.CAST_OUTLINE="chromecast",Y4.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Y4.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Y4.CHAT="message_bubble_left",Y4.CHAT_BUBBLE="message_bubble_empty",Y4.CHAT_SPARK="spark_message_bubble_left",Y4.CHECK_BOX_OUTLINE_BLANK="box_empty",Y4.CHECK_CIRCLE_OUTLINE="check_circle",Y4.CHECK_CIRCLE_THICK="check_circle",Y4.CLARIFY=
"article_clarify",Y4.CLOSED_CAPTION_SELECTED="closed_caption",Y4.CLOSE="x_mark",Y4.CLOUD_UPLOAD="cloud_arrow_up",Y4.COLLAPSE="chevron_up",Y4.COLLAPSE_CAIRO="chevron_up_cairo",Y4.COLLECTION="layers",Y4.COLOR_LENS="palette",Y4.COMMENT="message_bubble_right",Y4.CONSENT_SHIELD="person_shield",Y4.CONTENT_CUT="scissors",Y4.CONTENT_CUT_CAIRO="scissors_cairo",Y4.COURSE=_.N("web_enable_course_icon_update")?"creator_academy":"lightbulb",Y4.COURSE_CAIRO=_.N("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",Y4.CREATION_LIVE="radar_live",Y4.CREATION_POST="box_pencil",Y4.CREATION_UPLOAD="my_videos",Y4.CREATION_UPLOAD_RED="upload",Y4.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Y4.CREATOR_STUDIO="youtube_studio",Y4.DASHBOARD="grid_asymmetrical",Y4.DELETE="trash_can",Y4.DELETE_SWEEP="trash_can",Y4.DESKTOP="laptop",Y4.DISLIKE="thumb_down",Y4.DISLIKE_SELECTED="thumb_down",Y4.DISMISSAL="x_mark",Y4.DISMISS_QUEUE="list_remove",Y4.DONE_ALL="check_double",Y4.DOWN_ARROW="arrow_down",Y4.DO_NOT_DISTURB=
"slash_circle_left",Y4.DRAFT="paper_corner_folded",Y4.DRAG_HANDLE="bars_2",Y4.EDIT="pencil",Y4.EMOJI="face_very_happy",Y4.EMOJI_FLAGS="flag",Y4.EMOJI_OBJECTS="lightbulb",Y4.EMOJI_PEOPLE="face_very_happy",Y4.EMOJI_RECENT="clock",Y4.EMPTY_HEART="heart",Y4.EMPTY_LIKE="thumb_up",Y4.ERROR_BLACK="alert_circle",Y4.ERROR_OUTLINE="alert_circle",Y4.EXIT_APP="arrow_in",Y4.EXIT_TO_APP="arrow_in",Y4.EXPAND="chevron_down",Y4.EXPAND_ALL="chevron_expand",Y4.EXPAND_CAIRO="chevron_down_cairo",Y4.EXPAND_LESS="chevron_up",
Y4.EXPAND_MORE="chevron_down",Y4.EXPLORE="compass",Y4.EXPLORE_DESTINATION="compass",Y4.EXTERNAL_LINK="open_new",Y4.FAB_UPLOAD="upload",Y4.FACE_HAPPY_OUTLINE="face_happy",Y4.FACT_CHECK="article_check",Y4.FASHION_LOGO="fashion",Y4.FASHION_LOGO_CAIRO="fashion_cairo",Y4.FAVORITE="heart",Y4.FEEDBACK="message_bubble_alert",Y4.FEEDBACK_CAIRO="message_bubble_alert_cairo",Y4.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Y4.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Y4.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
Y4.FILTER="menu_filter",Y4.FIRST_PAGE="chevron_first",Y4.FLAG="flag",Y4.FULL_HEART="heart",Y4.GAME_CONSOLE_DPAD="game_console_dpad",Y4.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Y4.GAMING_LOGO="gaming",Y4.GAMING_LOGO_CAIRO="gaming_cairo",Y4.GO_TO_PAGE="arrow_right",Y4.GROUPS="people_group",Y4.HAPPY="face_happy",Y4.HEALTH_AND_SAFETY="shield_plus",Y4.HELP="question_circle",Y4.HELP_CAIRO="question_circle_cairo",Y4.HELP_OUTLINE="question_circle",Y4.HIDE="slash_circle_left",Y4.IMAGE="image",
Y4.INFINITY_ICON="infinity",Y4.INFO="info_circle",Y4.INFO_OUTLINE="info_circle",Y4.INSERT_CHART="bar_graph_box_vertical",Y4.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Y4.INSERT_PHOTO="image",Y4.KEEP="pin",Y4.KEEP_OFF="pin_off",Y4.KEYBOARD="keyboard",Y4.KEYBOARD_ARROW_DOWN="chevron_down",Y4.KEYBOARD_ARROW_UP="chevron_up",Y4.KIDS_BLOCK="slash_circle_left",Y4.LANGUAGE="globe",Y4.LAST_PAGE="chevron_last",Y4.LAUNCH="open_new",Y4.LEARNING="lightbulb",Y4.LEARNING_CAIRO="lightbulb_cairo",Y4.LIBRARY_ADD=
a1W("library_add"),Y4.LIBRARY_OUTLINE="library",Y4.LIBRARY_REMOVE=a1W(),Y4.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Y4.LIKES_PLAYLIST="thumb_up",Y4.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Y4.LIKE="thumb_up",Y4.LIKE_SELECTED="thumb_up",Y4.LIVE="radar_live",Y4.LIVE_CAIRO="radar_live_cairo",Y4.LIVE_UNLISTED="link",Y4.LOCATION_ON="location_point",Y4.LOCATION_PIN="location_point",Y4.LOOP="arrow_repeat",Y4.LOOP_ACTIVE="arrow_repeat",Y4.LOOP_ONE="arrow_repeat_1",Y4.LOOP_ONE_ACTIVE="arrow_repeat_1",Y4.MEH=
"face_meh",Y4.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Y4.MESSAGE="message_bubble_left",Y4.MICROPHONE_ON="mic",Y4.MIX="youtube_mix",Y4.MONETIZATION_ON="dollar_sign_circle",Y4.MONEY_FILL="dollar_sign_container",Y4.MONEY_FILL_JPY="yen_sign_container",Y4.MONEY_HEART="dollar_sign_heart",Y4.MORE_HORIZ="overflow_horizontal",Y4.MORE_VERT="overflow_vertical",Y4.MUSIC="audio",Y4.MUSIC_CAIRO="audio_cairo",Y4.MUSIC_NOTE_SYMBOL="music",Y4.MUSIC_SHUFFLE="arrow_shuffle",Y4.MY_CHANNEL="person_circle",Y4.MY_LOCATION=
"location_point",Y4.NEWS_STORY="news",Y4.NEXT="chevron_right",Y4.NOTIFICATIONS="bell",Y4.NOTIFICATIONS_ACTIVE="bell_on",Y4.NOTIFICATIONS_CAIRO="bell_cairo",Y4.NOTIFICATIONS_DONE_CHECKMARK="check",Y4.NOTIFICATIONS_INBOX="bell",Y4.NOTIFICATIONS_NONE="bell",Y4.NOTIFICATIONS_OFF="bell_off",Y4.NOT_INTERESTED="slash_circle_left",Y4.OFFICIAL_ARTIST_BADGE="audio",Y4.OFFLINE_CLOUD="cloud_off",Y4.OFFLINE_DOWNLOAD="download",Y4.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Y4.OFFLINE_PAUSE="pause",Y4.OPEN_IN_NEW=
"open_new",Y4.OUTLINE_ADJUST="adjust",Y4.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Y4.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Y4.OUTLINE_BAG="bag",Y4.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Y4.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Y4.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Y4.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Y4.PAID="dollar_sign",Y4.PAUSE_OUTLINED="pause",Y4.PAYMENT="credit_card",Y4.PERSON_RADAR_FILLED="person_radar",Y4.PHONE_DOWNLOAD="mobile_download",
Y4.PLAYABLES_LOGO="tic_tac_toe",Y4.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Y4.PLAYLISTS="list_play_arrow",Y4.PLAYLISTS_CAIRO="list_play_arrow_cairo",Y4.PLAYLIST_ADD=a1W("list_add"),Y4.PLAYLIST_ADD_CHECK=a1W("list_check"),Y4.PLAYLIST_PLAY="list_play_arrow",Y4.PLAY_ALL="play_arrow",Y4.PLAY_CIRCLE="play_arrow_circle",Y4.PLAY_OUTLINED="play_arrow_circle",Y4.PRIVACY_INFO="shield",Y4.PRIVACY_PRIVATE="lock",Y4.PRIVACY_PUBLIC="earth",Y4.PRIVACY_UNLISTED="link",Y4.PROMOTE="megaphone",Y4.PURCHASES="price_tag",
Y4.PURCHASE_SUPER_CHAT="super_chat",Y4.PURCHASE_SUPER_STICKER="super_sticker",Y4.QUESTION_ANSWER="message_bubble_question",Y4.QUEUE_PLAY_LAST="list_queue_last",Y4.QUEUE_PLAY_NEXT="list_play_arrow",Y4.REMIX_FILLED="youtube_shorts_remix",Y4.REMOVE="bar_circle",Y4.REMOVE_CIRCLE="bar_circle",Y4.REMOVE_CIRCLE_OUTLINE="bar_circle",Y4.REMOVE_DONE="check_double_off",Y4.REMOVE_FROM_HISTORY="bar_circle",Y4.REMOVE_FROM_PLAYLIST="bar_circle",Y4.REMOVE_MODERATOR="shield_off",Y4.REPLAY="arrow_circle",Y4.REPLAY_10=
"skip_back_10",Y4.REPORT_PROBLEM="alert_triangle",Y4.SAD="face_sad",Y4.SAVE_PLAYLIST="bookmark",Y4.SCHEDULE="clock",Y4.SCHOOL="creator_academy",Y4.SCREEN_FULLSCREEN="screen_full",Y4.SEARCH_HISTORY="arrow_time",Y4.SELL="price_tag",Y4.SETTINGS="gear",Y4.SETTINGS_CAIRO="gear_cairo",Y4.SETTINGS_LIGHT="gear",Y4.SETTINGS_MATERIAL="gear",Y4.SHARE_ARROW="share",Y4.SHIELD_WITH_AVATAR="person_shield",Y4.SHOPPING_BAG="bag",Y4.SHOPPING_BAG_CAIRO="bag_cairo",Y4.SHOPPING_CART="cart",Y4.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
Y4.SHORTS_DISLIKE="youtube_shorts_thumb_down",Y4.SHORTS_LIKE="youtube_shorts_thumb_up",Y4.SHORTS_SHARE="youtube_shorts_share",Y4.SHUFFLE="arrow_shuffle",Y4.SLOW_MODE_OFF="message_bubble_left",Y4.SOCIAL="people",Y4.SORT="menu_sort",Y4.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Y4.SPEED_1X="1x",Y4.SPEED_1_POINT_2X="1_point_2x",Y4.SPEED_1_POINT_5X="1_point_5x",Y4.SPEED_1_POINT_8X="1_point_8x",Y4.SPEED_2X="2x",Y4.SPEED_POINT_2X="point_2x",Y4.SPEED_POINT_8X="point_8x",Y4.SPONSORSHIP_STAR="star_circle",
Y4.STAFF_PICK="spotlight",Y4.START_DVR="add",Y4.STAR_BORDER="star",Y4.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Y4.STICKER_EMOTICON="face_happy",Y4.STOP_DVR="stop",Y4.SUBSCRIBE="youtube_logo_icon",Y4.SUBSCRIBE_PLUS="add_cairo",Y4.SUBSCRIPTION_MANAGER="gear",Y4.SUPERVISOR_ACCOUNT="people",Y4.SUPER_CHAT_FOR_GOOD="hands_heart",Y4.SWAP_HORIZ="arrow_swap_horizontal",Y4.SWITCH_ACCOUNTS="person_account",Y4.TAB_ACCOUNT="person",Y4.TAB_ACTIVITY="bell",Y4.TAB_BOOKMARK="bookmark",Y4.TAB_EXPLORE="compass",
Y4.TAB_HOME="home",Y4.TAB_HOME_CAIRO="home_cairo",Y4.TAB_INBOX="mail",Y4.TAB_LIKED="thumb_up",Y4.TAB_MUSIC_PREMIUM="youtube_music",Y4.TAB_SHORTS="youtube_shorts",Y4.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Y4.TAB_SUBSCRIPTIONS="subscriptions",Y4.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Y4.TAB_TRENDING="fire",Y4.TIMER="stopwatch",Y4.TRAILER="youtube_originals",Y4.TRENDING="fire",Y4.TRENDING_CAIRO="fire_cairo",Y4.TRENDING_UP="rating_up",Y4.TROPHY="trophy",Y4.TROPHY_CELEBRATIONS="fireworks",Y4.TUNE=
"adjust",Y4.UNBLOCK_USER="bar_circle",Y4.UNLIMITED="youtube_logo_icon",Y4.UNPLUGGED_LIVE_GUIDE="radar_live",Y4.UNPLUGGED_SPORTS="eye_off",Y4.UPLOADS="library",Y4.UP_ARROW="arrow_up",Y4.VERTICAL_ALIGN_BOTTOM="download",Y4.VERY_HAPPY="face_very_happy",Y4.VERY_SAD="face_very_sad",Y4.VIDEOGAME_ASSET="gaming",Y4.VIDEOS="play_arrow_circle",Y4.VIDEO_CALL="video_camera_add",Y4.VIDEO_LIBRARY_WHITE="library",Y4.VIDEO_YOUTUBE="youtube_logo_icon",Y4.VIEW_LIST="list_view",Y4.VIEW_LIST_CAIRO="list_view_cairo",
Y4.VISIBILITY="eye",Y4.VISIBILITY_OFF="eye_off",Y4.VOLUME_MUTE="volume_off",Y4.VOLUME_UP="volume_on",Y4.WALLPAPER="image",Y4.WARNING="alert_triangle",Y4.WATCH_HISTORY="arrow_time",Y4.WATCH_HISTORY_CAIRO="arrow_time_cairo",Y4.WATCH_LATER="clock",Y4.WATCH_LATER_CAIRO="clock_cairo",Y4.WATCH_RELATED_MIX="youtube_mix",Y4.WHAT_TO_WATCH="home",Y4.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Y4.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",Y4.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
Y4.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Y4.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Y4.YT_OUTLINE_MUSIC_24="music",Y4);var mB={},S0i=(mB.ACCESS_TIME="clock",mB.ACCOUNT_BOX="person_square",mB.ACCOUNT_BOX_CAIRO="person_square",mB.ACCOUNT_CIRCLE="person_circle",mB.ACCOUNT_CIRCLE_CAIRO="person_circle",mB.ACCOUNT_LINKED="account_link",mB.ACCOUNT_UNLINKED="account_link",mB.ADD_CIRCLE="add_circle",mB.ADD_CIRCLE_OUTLINE="add_circle",mB.ADD_FRIEND="person_child",mB.ADD_MODERATOR="shield_add",mB.ADD_TO_LIBRARY="bookmark",mB.ADD_TO_PLAYLIST="add",mB.ADD_TO_QUEUE_TAIL="queue",mB.ADD_TO_REMOTE_QUEUE="playlist_audio",mB.ADD_TO_WATCH_LATER=
"clock",mB.ADD_VIDEO_LINK="film_strip_add",mB.ADMIN_PANEL_SETTINGS="person_gear",mB.ALERT_WARN_RED="alert_triangle",mB.ALIGN_LEFT="text_align_left",mB.ARROWS_ALERT="arrow_split_alert",mB.ARROW_BACK="arrow_left",mB.ARROW_CIRCLE="arrow_counterclockwise",mB.ARROW_CIRCLE_PLAY="replay",mB.ARROW_CIRCLE_RIGHT="arrow_clockwise",mB.ARROW_DIAGONAL="arrow_up_left",mB.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",mB.ARROW_DROP_DOWN="triangle_down",mB.ARROW_DROP_UP="triangle_up",mB.ARROW_FORWARD="arrow_right",mB.ARROW_PAUSE=
"pause_history",mB.ARROW_UNDO="undo",mB.ARTICLE="text_page",mB.ARTICLE_ALERT="text_page_alert",mB.ARTICLE_CHECK="text_page_check",mB.ARTICLE_CLARIFY="text_page_info",mB.AUDIOTRACK="audio",mB.AUDIO_BADGE="audio_badge",mB.AUDIO_SURROUND="surround_sound",mB.AUTO_AWESOME="sparkles",mB.AVATAR_ANONYMOUS="person_circle",mB.AVATAR_LOGGED_OUT="person_circle",mB.BACK="arrow_left",mB.BAR_CHART="chart_bar",mB.BAR_CIRCLE="minus_circle",mB.BAR_HORIZONTAL="minus",mB.BLOCK="circle_slash",mB.BLOCK_USER="circle_slash",
mB.BOOKMARK_BORDER="bookmark",mB.BOX_OPEN_CHECK="quiz",mB.BOX_PENCIL="square_pencil",mB.BOX_STACK_3="square3_stack",mB.BREAKING_NEWS_ALT_1="text_page_alert",mB.BROADCAST="podcast",mB.BROADCAST_CAIRO="podcast",mB.BUG_REPORT="bug",mB.CAMERA_ALT="camera",mB.CAMPAIGN="megaphone",mB.CANCEL="x_circle",mB.CAPTIONS="closed_captions",mB.CAST_ICON="chromecast",mB.CAST_OUTLINE="chromecast",mB.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",mB.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",mB.CHAT="text_bubble",
mB.CHAT_BUBBLE="bubble",mB.CHECK_BOX="check_square",mB.CHECK_BOX_OUTLINE_BLANK="square",mB.CHECK_CIRCLE_FILLED="check_circle",mB.CHECK_CIRCLE_OUTLINE="check_circle",mB.CHECK_CIRCLE_THICK="check_circle",mB.CHECK_DOUBLE="check_done",mB.CHECK_DOUBLE_OFF="check_done_slash",mB.CHEVRON_LEFT="chevron_left",mB.CHEVRON_RIGHT="chevron_right",mB.CHEVRON_RIGHT_CAIRO="chevron_right",mB.CIRCLES_OVERLAP="account_link",mB.CLAPPERBOARD_CAIRO="clapperboard",mB.CLARIFY="text_page_info",mB.CLOCK_ARROWS="clock_split",
mB.CLOCK_ARROWS_ALERT="clock_split_alert",mB.CLOSED_CAPTION="closed_captions",mB.CLOSED_CAPTION_SELECTED="closed_captions",mB.CLOSE="x",mB.CLOUD_UPLOAD="cloud_arrow_up",mB.COLLAPSE="chevron_up",mB.COLLAPSE_CAIRO="chevron_up",mB.COLLECTION="square3d_stack",mB.COLOR_LENS="paint_palette",mB.COMMENT="text_bubble",mB.CONSENT_SHIELD="person_shield",mB.CONTENT_CUT="scissors",mB.CONTENT_CUT_CAIRO="scissors",mB.COURSE="graduation_cap",mB.COURSE_CAIRO="graduation_cap",mB.CREATION_LIVE="live",mB.CREATION_POST=
"square_pencil",mB.CREATION_UPLOAD="video",mB.CREATION_UPLOAD_RED="upload",mB.CREATOR_ACADEMY="graduation_cap",mB.CREATOR_STUDIO="youtube_studio",mB.DARK_THEME="theme",mB.DELETE="trash_can",mB.DELETE_SWEEP="trash_can",mB.DESKTOP="laptop",mB.DISLIKE="thumb_down",mB.DISLIKE_SELECTED="thumb_down",mB.DISMISSAL="x",mB.DISMISS_QUEUE="playlist_x",mB.DOGFOOD="pawprint",mB.DOLLAR_SIGN="dollar_sign_circle",mB.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",mB.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",mB.DOWN_ARROW=
"arrow_down",mB.DO_NOT_DISTURB="circle_slash",mB.DRAFT="document",mB.DRAG_HANDLE="equal",mB.EARTH="globe",mB.EDIT="pencil",mB.EMOJI="face_very_happy",mB.EMOJI_FLAGS="flag",mB.EMOJI_OBJECTS="lightbulb",mB.EMOJI_PEOPLE="face_very_happy",mB.EMOJI_RECENT="clock",mB.EMPTY_HEART="heart",mB.EMPTY_LIKE="thumb_up",mB.ERROR_BLACK="alert_circle",mB.ERROR_OUTLINE="alert_circle",mB.ERROR_WHITE="alert_circle",mB.EXIT_APP="arrow_in",mB.EXIT_TO_APP="arrow_in",mB.EXPAND="chevron_down",mB.EXPAND_ALL="chevron_expand",
mB.EXPAND_CAIRO="chevron_down",mB.EXPAND_LESS="chevron_up",mB.EXPAND_MORE="chevron_down",mB.EXPLORE="compass",mB.EXPLORE_DESTINATION="compass",mB.EXTERNAL_LINK="arrow_up_right",mB.EYE_OFF="eye_slash",mB.FAB_UPLOAD="upload",mB.FACE_HAPPY_OUTLINE="face_happy",mB.FACE_MEH="face_neutral",mB.FACT_CHECK="text_page_check",mB.FASHION_LOGO="fashion",mB.FASHION_LOGO_CAIRO="fashion",mB.FAVORITE="thumb_up",mB.FEEDBACK="alert_bubble",mB.FEEDBACK_CAIRO="alert_bubble",mB.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
mB.FILL_ARROW_SOLID_UP_16="arrow_solid_up",mB.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",mB.FLAG_CAIRO="flag",mB.FLASH_OFF="flash_slash",mB.FLASH_ON="flash",mB.FULL_HEART="heart",mB.GAMING_LOGO="gaming",mB.GAMING_LOGO_CAIRO="gaming",mB.GO_TO_PAGE="arrow_right",mB.GROUPS="person3",mB.HAND_SWIPE_LEFT="gesture_swipe_left",mB.HAND_SWIPE_RIGHT="gesture_swipe_right",mB.HAPPY="face_happy",mB.HEALTH_AND_SAFETY="shield_health",mB.HEART_BOX="heart_cube",mB.HELP="help_circle",mB.HELP_CAIRO="help_circle",
mB.HELP_OUTLINE="help_circle",mB.HIDE="circle_slash",mB.INCOGNITO_CAIRO="incognito",mB.INFINITY_ICON="infinity",mB.INFO="info_circle",mB.INFO_OUTLINE="info_circle",mB.INSERT_CHART="chart_bar_square",mB.INSERT_CHART_OUTLINED="chart_bar_square",mB.INSERT_PHOTO="image",mB.KEEP="pin",mB.KEEP_OFF="pin_slash",mB.KEYBOARD="keyboard",mB.KEYBOARD_ARROW_DOWN="chevron_down",mB.KEYBOARD_ARROW_UP="chevron_up",mB.KIDS_BLOCK="circle_slash",mB.LANGUAGE="globe",mB.LAUNCH="arrow_up_right",mB.LEARNING="lightbulb",mB.LEARNING_CAIRO=
"lightbulb",mB.LIBRARY_ADD="bookmark",mB.LIBRARY_IMAGE="image_stack",mB.LIBRARY_MUSIC="audio_square_stack",mB.LIBRARY_OUTLINE="play_square_stack",mB.LIBRARY_REMOVE="bookmark",mB.LIBRARY_SAVED="check_square_stack",mB.LIKES_PLAYLIST="thumb_up",mB.LIKES_PLAYLIST_CAIRO="thumb_up",mB.LIKE="thumb_up",mB.LIKE_SELECTED="thumb_up",mB.LIST_QUEUE="queue",mB.LIVE_CAIRO="live",mB.LIVE_UNLISTED="link",mB.LOCATION_ON="location_pin",mB.LOCATION_PIN="location_pin",mB.LOCATION_POINT="location_pin",mB.LOOP="repeat",
mB.LOOP_ACTIVE="repeat",mB.LOOP_ONE="repeat1",mB.LOOP_ONE_ACTIVE="repeat1",mB.MEET="google_meet",mB.MEH="face_neutral",mB.MEMBERSHIPS="memberships",mB.MEMBERS_ONLY_MODE_OFF="text_bubble",mB.MENU_FILTER="filter",mB.MESSAGE="text_bubble",mB.MESSAGE_BUBBLE_GEAR="bubble_gear",mB.MESSAGE_BUBBLE_LEFT="text_bubble",mB.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",mB.MESSAGE_BUBBLE_OVERLAP="bubble_stack",mB.MESSAGE_BUBBLE_QUESTION="help_bubble",mB.MICROPHONE_ON="mic",mB.MONETIZATION_ON="dollar_sign_circle",
mB.MONEY_FILL="dollar_sign_rectangle",mB.MONEY_FILL_JPY="yen_sign_rectangle",mB.MONEY_HAND="dollar_sign_circle_hand",mB.MONEY_HEART="dollar_sign_heart",mB.MOON_Z="sleep_timer",mB.MORE_HORIZ="overflow_horizontal",mB.MORE_VERT="overflow_vertical",mB.MUSIC="audio",mB.MUSIC_CAIRO="audio",mB.MUSIC_EXPLICIT_BADGE="explicit",mB.MUSIC_NEW_RELEASE="audio_badge",mB.MUSIC_NOTE_SYMBOL="audio",mB.MUSIC_SCISSORS="audio_scissors",mB.MUSIC_SHUFFLE="shuffle",mB.MY_CHANNEL="person_circle",mB.MY_LOCATION="location_pin",
mB.MY_VIDEOS="video",mB.MY_VIDEOS_CAIRO="video",mB.NEWS_CAIRO="news",mB.NEWS_STORY="news",mB.NEXT="chevron_right",mB.NOTE_ADD="bubble_pencil",mB.NOTIFICATIONS="bell",mB.NOTIFICATIONS_ACTIVE="bell_waves",mB.NOTIFICATIONS_CAIRO="bell",mB.NOTIFICATIONS_DONE_CHECKMARK="check",mB.NOTIFICATIONS_INBOX="bell",mB.NOTIFICATIONS_NONE="bell",mB.NOTIFICATIONS_OFF="bell_slash",mB.NOT_INTERESTED="circle_slash",mB.OFFICIAL_ARTIST_BADGE="audio",mB.OFFLINE_CLOUD="cloud_slash",mB.OFFLINE_DOWNLOAD="download",mB.OFFLINE_DOWNLOAD_CAIRO=
"download",mB.OFFLINE_PAUSE="pause",mB.OPEN_IN_NEW="arrow_up_right",mB.OUTLINE_ADJUST="adjust",mB.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",mB.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",mB.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",mB.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",mB.OUTLINE_BAG="bag",mB.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",mB.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",mB.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",mB.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",mB.PAID=
"dollar_sign_circle",mB.PAUSE_OUTLINED="pause",mB.PAYMENT="credit_card",mB.PEOPLE="person_child",mB.PEOPLE_2="person2_rectangle",mB.PEOPLE_GROUP="person3",mB.PEOPLE_NOTE="bubble_asterisk",mB.PERSON_2="person2",mB.PERSON_ACCOUNT="person_square_stack",mB.PERSON_MINUS="person_x",mB.PERSON_MUSIC="person_audio",mB.PERSON_RADAR="person_waves",mB.PERSON_RADAR_FILLED="person_waves",mB.PERSON_SETTING="person_gear",mB.PHONE="phone",mB.PHONE_DOWNLOAD="mobile_arrow_down",mB.PICTURE_IN_PICTURE="picture_in_picture",
mB.PLAYABLES_LOGO="playables",mB.PLAYABLES_LOGO_CAIRO="playables",mB.PLAYLISTS="playlist",mB.PLAYLISTS_CAIRO="playlist",mB.PLAYLIST_ADD_CHECK="bookmark",mB.PLAY_ALL="play",mB.PLAY_ARROW="play",mB.PLAY_ARROW_CIRCLE="play_circle",mB.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",mB.PLAY_CIRCLE="play_circle",mB.PLAY_OUTLINED="play_circle",mB.PODCAST_ADD="podcast_add",mB.PODCAST_CHECK="podcast_check",mB.PRIVACY_INFO="shield_x",mB.PRIVACY_PRIVATE="lock",mB.PRIVACY_PUBLIC="globe",mB.PRIVACY_UNLISTED=
"link",mB.PROMOTE="megaphone",mB.PURCHASES="price_tag",mB.PURCHASE_SUPER_CHAT="super_chat",mB.PURCHASE_SUPER_STICKER="super_sticker",mB.QUESTION_ANSWER="help_bubble",mB.QUESTION_CIRCLE="help_circle",mB.QUEUE_PLAY_LAST="queue_last",mB.QUEUE_PLAY_NEXT="playlist",mB.QUOTATION_MARK="quote",mB.RADAR_LIVE="live",mB.REMOVE="minus_circle",mB.REMOVE_CIRCLE="minus_circle",mB.REMOVE_CIRCLE_OUTLINE="minus_circle",mB.REMOVE_FROM_HISTORY="minus_circle",mB.REMOVE_FROM_PLAYLIST="minus_circle",mB.REMOVE_MODERATOR=
"shield_slash",mB.REPLAY="arrow_counterclockwise",mB.REPLAY_10="skip10_back",mB.REPLAY_ARROW="replay",mB.REPORT_PROBLEM="alert_triangle",mB.RSS_OFF="rss_slash",mB.SAD="face_sad",mB.SAVE_PLAYLIST="bookmark",mB.SCHEDULE="clock",mB.SCHOOL="graduation_cap",mB.SCREEN_DEFAULT="player_default",mB.SCREEN_FULLSCREEN="player_full_enter",mB.SCREEN_LIGHT="ambient_mode",mB.SCREEN_ROTATION="rotate_portrait",mB.SCREEN_SWITCH="player_switch",mB.SCREEN_THEATRE="player_theater",mB.SEARCH_CAIRO="search",mB.SEARCH_HISTORY=
"history",mB.SELL="price_tag",mB.SETTINGS="gear",mB.SETTINGS_CAIRO="gear",mB.SETTINGS_LIGHT="gear",mB.SETTINGS_MATERIAL="gear",mB.SETTINGS_REMOTE="remote_waves",mB.SHARE="share",mB.SHARE_ARROW="share",mB.SHARE_CAIRO="share",mB.SHIELD="shield_x",mB.SHIELD_OFF="shield_slash",mB.SHIELD_WITH_AVATAR="person_shield",mB.SHOPPING_BAG="bag",mB.SHOPPING_BAG_CAIRO="bag",mB.SHOPPING_CART="cart",mB.SHORTS_COMMENT="text_bubble",mB.SHORTS_DISLIKE="thumb_down",mB.SHORTS_LIKE="thumb_up",mB.SHORTS_SHARE="share",mB.SKIP_FORWARD_30=
"skip30_forward",mB.SLASH_CIRCLE_RIGHT="circle_slash",mB.SLOW_MODE="bubble_slow",mB.SLOW_MODE_OFF="text_bubble",mB.SOCIAL="person_child",mB.SPARKLE="sparkles",mB.SPARK_IMAGE="image_spark",mB.SPARK_RADAR="spark_waves",mB.SPARK_VIDEO="video_spark",mB.SPEAKER_GROUP="speaker_stack",mB.SPEAKER_OFF="speaker_slash",mB.SPEED_1X="n1x",mB.SPEED_1_POINT_2X="n1point2x",mB.SPEED_1_POINT_5X="n1point5x",mB.SPEED_1_POINT_8X="n1point8x",mB.SPEED_2X="n2x",mB.SPONSORSHIP_STAR="star_circle",mB.SPORTS="basketball",mB.SPOTLIGHT=
"spotlight",mB.STAFF_PICK="spotlight",mB.START_DVR="add",mB.STAR_BORDER="star",mB.STAR_CIRCLE_RIBBON="memberships_gift",mB.STAR_HALF="star_half_filled",mB.STAR_SHOOTING="hype",mB.STICKER="sticker",mB.STICKER_EMOTICON="face_happy",mB.STOP_DVR="stop",mB.SUBSCRIBE="youtube",mB.SUBSCRIBE_PLUS="add",mB.SUBSCRIPTION_MANAGER="gear",mB.SUPERSTAR="super_star",mB.SUPERVISOR_ACCOUNT="person_child",mB.SUPER_CHAT_FOR_GOOD="hands_heart",mB.SWAP_HORIZ="arrow_swap_horizontal",mB.SWITCH_ACCOUNTS="person_square_stack",
mB.TAB_ACCOUNT="person",mB.TAB_ACTIVITY="bell",mB.TAB_BOOKMARK="bookmark",mB.TAB_EXPLORE="compass",mB.TAB_HOME="home",mB.TAB_HOME_CAIRO="home",mB.TAB_INBOX="mail",mB.TAB_LIKED="thumb_up",mB.TAB_MUSIC_PREMIUM="youtube_music",mB.TAB_SHORTS="shorts",mB.TAB_SHORTS_CAIRO="shorts",mB.TAB_SUBSCRIPTIONS="subscriptions",mB.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",mB.TAB_TRENDING="trending",mB.TARGET="target",mB.TARGET_ADD="target_add",mB.TEMPLATE_ADD="template_add",mB.TEXT="font",mB.TIMER="stopwatch",mB.TRENDING_CAIRO=
"trending",mB.TRENDING_UP="arrow_trend_up",mB.TROPHY_CAIRO="trophy",mB.TROPHY_CELEBRATIONS="fireworks",mB.TROPHY_STAR="star_trophy",mB.TUNE="adjust",mB.TV_OFF="tv_slash",mB.UNBLOCK_USER="minus_circle",mB.UNFAVORITE="thumb_down",mB.UNLIMITED="youtube",mB.UNPLUGGED_LIVE_GUIDE="live",mB.UNPLUGGED_SPORTS="eye_slash",mB.UPLOADS="play_square_stack",mB.UP_ARROW="arrow_up",mB.VERTICAL_ALIGN_BOTTOM="chevron_down_end",mB.VERTICAL_ALIGN_TOP="chevron_up_end",mB.VERY_HAPPY="face_very_happy",mB.VERY_SAD="face_very_sad",
mB.VIDEOS="play_circle",mB.VIDEO_CALL="video_camera_add",mB.VIDEO_LIBRARY_WHITE="play_square_stack",mB.VIDEO_QUALITY_4K="n4k",mB.VIDEO_QUALITY_8K="n8k",mB.VIDEO_YOUTUBE="youtube",mB.VIEW_LIST_CAIRO="view_list",mB.VIEW_MODULE="view_column3_row2",mB.VISIBILITY="eye",mB.VISIBILITY_OFF="eye_slash",mB.VOLUME_DOWN="volume_min",mB.VOLUME_MUTE="volume_mute",mB.VOLUME_OFF="volume_mute",mB.VOLUME_STABLE="stable_volume",mB.VOLUME_UP="volume_max",mB.WALLPAPER="image",mB.WARNING="alert_triangle",mB.WATCH_HISTORY=
"history",mB.WATCH_HISTORY_CAIRO="history",mB.WATCH_LATER="clock",mB.WATCH_LATER_CAIRO="clock",mB.WATCH_RELATED_MIX="mix",mB.WHAT_TO_WATCH="home",mB.YOUTUBE_LINKED_TV="tv_mobile",mB.YOUTUBE_MUSIC_MONOCHROME="youtube_music",mB.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",mB.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",mB.YOUTUBE_SHORTS_ARROW_UP="arrow_up",mB.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",mB.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",mB.YOUTUBE_SHORTS_OUTLINE_24="shorts",
mB);var W0w={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,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,13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],
uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],
x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var at9={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],
eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,
4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,
1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,
1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[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,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,
24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,
1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],
live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],
[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,3,24],[1,3,18],[1,3,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,
1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],
overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,
24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,
1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,
1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,4,12],[1,4,18],[1,4,24],[1,4,48]],playlist_add:[[1,2,18],[1,2,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],
playlist_x:[[1,2,18],[1,2,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],
queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,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,14,24],[1,14,18],[1,14,24],[1,14,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,
24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,3,24],[1,3,18],[1,3,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,
1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,
2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],
star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,
1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,
1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],
[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,
1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var itS={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"},yh=function(v){this.iconUrlProvider=v};
yh.prototype.resolveIcon=function(v,e){var d=itS[v.iconName.toUpperCase()];d&&(v.iconName=d);var E=v.iconName;E=E.replace(/-/g,"_");v=Object.assign({},v,{iconName:this.mapIconTypeToStandardName(E,!!d)||E.toLowerCase()});if(_.N("enable_web_delhi_icons")||d){var T;return Sbt(at9,v,((T=this.iconUrlProvider)==null?void 0:T.getYtStandardUrl)||O_H,e)}var S;return Sbt(W0w,v,((S=this.iconUrlProvider)==null?void 0:S.getYtStandardUrl)||i_O,e)};
yh.prototype.mapIconTypeToStandardName=function(v,e){return _.N("enable_web_delhi_icons")||e?S0i[v.toUpperCase()]:THw[v.toUpperCase()]};
yh[ua]=[_.eG(e$S)];var Ot1=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),It1=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),btf=function(v){this.urlProvider=this.iconUrlProvider=v};
_.V(btf,yh);
btf.prototype.resolveIcon=function(v,e){v.iconName==="youtube_logo"&&(v.iconName="yt-logo-updated");if(v.iconName==="youtube_premium_logo"||v.iconName==="youtube_red_logo")v.iconName="yt-logo-red-updated";var d=Object.assign({},v);v.iconName==="menu"&&(_.N("enable_web_delhi_icons")||(d.iconName="bars_3"),d.iconStyle="youtube_outline");v.iconSetName==="socialNetworksRound"&&(v.iconName==="mail"&&(d.iconName="email"),v.iconName==="embed"&&(d.iconSize=60));v.iconName==="more"&&(d.iconName="overflow_horizontal");
v.iconName==="fullscreen"&&(d.iconName="screen_full");v.iconName==="premium_standalone"&&(d.iconName="premium_standalone_cairo");_.N("enable_connect_icon_update_web")&&v.iconName==="account_linked"&&(d.iconName="circles_overlap_check",d.iconStyle="youtube_fill");_.N("enable_connect_icon_update_web")&&v.iconName==="account_unlinked"&&(d.iconName="circles_overlap",d.iconStyle="youtube_outline");Ot1.has(v.iconName)&&(d.iconStyle="youtube_fill");_.N("enable_web_delhi_icons")&&(v.iconName==="playlist_add"&&
(d.iconName="bookmark"),v.iconName==="offline_pin"&&(d.iconName="arrow_down_circle",d.iconStyle="youtube_fill"),It1.has(v.iconName)&&(d.iconName+="_updated"));v=Object.assign({},d,{iconName:(yh.prototype.mapIconTypeToStandardName.call(this,d.iconName)||d.iconName).toLowerCase()});var E;return(v=Sbt(pd6,v,((E=this.urlProvider)==null?void 0:E.getUrl)||I1s,e))?v:yh.prototype.resolveIcon.call(this,d,e)};
btf[ua]=[_.eG(e$S)];_.Y0s=1;var qB=function(v,e){this.JSC$17201_commandHandler=v;this.innertubeTransportService=e};
_.V(qB,AT);qB.prototype.resolveCommand=function(v,e){var d=this,E,T,S;return _.I(function(O){return(E=_.L(v,Vj7))?O.return(m7C(d,E,(T=e)==null?void 0:(S=T.form)==null?void 0:S.element)):O.return()})};
var m7C=function(v,e,d){e={profileCardContext:e.profileCardContext,profileOwnerExternalChannelId:e.profileOwnerExternalChannelId};var E=_.Ej(gXA);return _.XB(v.innertubeTransportService,e,E).then(function(T){if(!T)throw new _.kL("GetProfileCard failed");if(T=T.popupCommand){v.JSC$17201_commandHandler.resolveCommand(T,{form:{element:d}});_.Ig(_.NC(),66557);T=T==null?void 0:T.clickTrackingParams;var S=_.Xf();T&&S&&_.NC().graftServerVe(T,S)}})};
qB[ua]=[_.EI,_.lX];var rR=function(){};
_.V(rR,AT);rR.prototype.resolveCommand=function(v){var e,d;return _.I(function(E){e=_.L(v,P_e);if(!e)return E.return();d=Number(e.enableDelayedPacfLoggingTvMs);if(isNaN(d)){var T=yG();sX6(T,e,0)}else sX6(yG(),e,d);_.s9(E)})};_.hp=function(){};
_.V(_.hp,AT);
_.hp.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q;return _.I(function(r){E=_.L(v,xFM);S=(T=e.form)==null?void 0:T.element;b=(O=S)==null?void 0:O.closest("ytd-enforcement-message-view-model");if(!E||!b)return r.return();d.allowAdsAction||(Y=E.fundingChoiceInstructionPageUrl,d.allowAdsAction=new U4M(window,_.P8(Y)));var h=d.allowAdsAction;h.wallElement=b;h.allowAdsPopup.style.setProperty("display","flex","important");var K=h.scrollManager;K.originalBodyOverflow=K.JSC$9990_domHelper.JSC$9317_document_.body.style.overflow;K.JSC$9990_domHelper.JSC$9317_document_.body.style.overflow=
"hidden";h.wallElement.style.setProperty("display","none","important");ODM(h.accessibilityManager,h.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((q=d.allowAdsAction.allowAdsPopup)&&q instanceof HTMLElement)for(h=_.a(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),K=h.next();!K.done;K=h.next()){var k=_.a(K.value);K=k.next().value;k=k.next().value;q.style.setProperty(K,k)}_.s9(r)})};
_.hp.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var KT=function(){};
_.V(KT,AT);KT.prototype.resolveCommand=function(v){var e;return _.I(function(d){e=_.L(v,W3c);if(!e)return d.return();cPO(v);_.s9(d)})};var $4=function(v){this.JSC$17216_commandHandler=v};
_.V($4,AT);
$4.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b,Y,q;return _.I(function(r){if(r.nextAddress==1){d=_.L(v,xSA);if((E=d)==null||!E.text||!navigator.clipboard)return r.return();_.qq(r,2);return r.yield(navigator.clipboard.writeText(d.text),4)}if(r.nextAddress!=2){if(!d.successActions||d.successActions.length===0)return r.return();T=_.a(d.successActions);for(S=T.next();!S.done;S=T.next())O=S.value,e.JSC$17216_commandHandler.resolveCommand(O);return _.wk(r,0)}_.jl(r);if(!d.failureActions||d.failureActions.length===
0)return r.return();b=_.a(d.failureActions);for(Y=b.next();!Y.done;Y=b.next())q=Y.value,e.JSC$17216_commandHandler.resolveCommand(q);_.s9(r)})};
$4[ua]=[_.EI];var jn=function(v){this.JSC$17220_commandHandler=v};
_.V(jn,AT);
jn.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h,K;return _.I(function(k){switch(k.nextAddress){case 1:E=_.L(v,mNn);if(!E)return k.return();_.qq(k,2);if(!E.imageBytes&&!E.imageUrl)throw Error("zi");if(!E.imageUrl){if(E.imageBytes){S=E.imageBytes;O=S.replace(/-/g,"+").replace(/_/g,"/");var J=mLS(O);T=_.B$(J)}k.jumpTo(4);break}return k.yield(fetch(E.imageUrl),5);case 5:return b=k.yieldResult,k.yield(b.blob(),6);case 6:Y=k.yieldResult,T=_.B$(Y);case 4:h=(q=e)==null?void 0:(r=q.form)==
null?void 0:r.element;K=document.createElement("a");l6(K,T);h.appendChild(K);K.download="";K.click();h.removeChild(K);URL.revokeObjectURL(_.Mf(T));E.successCommand&&d.JSC$17220_commandHandler.resolveCommand(E.successCommand);_.wk(k,0);break;case 2:_.jl(k),E.errorCommand&&d.JSC$17220_commandHandler.resolveCommand(E.errorCommand),_.s9(k)}})};
jn[ua]=[_.EI];var sL=function(v){this.store=v};
_.V(sL,AT);sL.prototype.resolveCommand=function(v){var e=this,d,E,T;return _.I(function(S){E=(d=_.L(v,_.ZC6))==null?void 0:d.entityBatchUpdate;if(!E)return S.jumpTo(0);T=Object.assign({},E,{mutations:[].concat(_.t7(E.mutations||[]))});return S.yield(_.NE(T,e.store),0)})};var ysS=function(v){this.JSC$17227_commandHandler=v;this.feedbackDialogMap=new Map};
ysS.prototype.openDialog=function(v,e){(v=this.feedbackDialogMap.get(v))&&this.JSC$17227_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:v}},e)};
ysS[ua]=[_.EI];var NB=new _.nC("FEEDBACK_CONTROLLER_TOKEN");var k4=new _.nC("APP_STORE_TOKEN");var LT=function(v,e){this.store=v;this.controller=e};
_.V(LT,AT);LT.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F;return _.I(function(g){if(g.nextAddress==1){E=_.L(v,_.LO);if(S=(T=E)==null?void 0:T.contentId)for(b=_.a(((O=E)==null?void 0:O.actions)||[]),Y=b.next();!Y.done;Y=b.next())q=Y.value,q0Q(d,q,S);K=(r=e)==null?void 0:(h=r.form)==null?void 0:h.element;return g.yield(_.mN(K,[v,{impression:(k=e)==null?void 0:k.disableClickTracking}]).catch(function(){}),2)}J=g.yieldResult;
((R=J)==null?0:(B=R.data)==null?0:(X=B.feedbackResponses)==null?0:X.length)&&(U=(Z=J.data.feedbackResponses[0])==null?void 0:Z.followUpDialog)&&S&&(F=d.controller)!=null&&F.feedbackDialogMap.set(S,U);_.s9(g)})};
var q0Q=function(v,e,d){var E=_.L(e,_.rV);if(E){E=_.a(E.commands||[]);for(var T=E.next();!T.done;T=E.next())q0Q(v,T.value,d)}_.L(e,_.j6)&&v.store.dispatch(_.Lv("commandEntity",b3$(d),{key:d,command:e}));_.L(e,fiM)&&v.store.dispatch(_.Lv("commandEntity",b3$(d),{key:d,command:e}))};
LT[ua]=[k4,NB];var Vh=function(v){this.controller=v};
_.V(Vh,AT);Vh.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O;return _.I(function(b){E=_.L(v,_.HV);S=(T=E)==null?void 0:T.targetId;if(((O=E)==null?void 0:O.signal)!=="TELL_US_WHY"||!S)return b.return();d.controller.openDialog(S,e);_.s9(b)})};
Vh[ua]=[NB];var oV=function(v){this.store=v};
_.V(oV,AT);oV.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q;return _.I(function(r){E=_.L(v,UmL);S=(T=E)==null?void 0:T.contentId;Y=(O=e)==null?void 0:(b=O.form)==null?void 0:b.element;q=_.mN(Y,[v]);S&&d.undo(S);return r.yield(q,0)})};
oV.prototype.undo=function(v){this.store.dispatch(_.Lv("commandEntity",b3$(v),{key:v,command:void 0}))};
oV[ua]=[k4];var Jp=function(v){this.JSC$17242_commandHandler=v};
_.V(Jp,AT);Jp.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b,Y,q;return _.I(function(r){d=_.L(v,Ssc);E=d.flowStateKey;T=d.validationFailureCommand;S=d.submitValidFormCommand;O=$At(_.QZ,[E||""]);b=_.L(O,acE);((Y=b)==null?0:Y.isValid)&&S&&e.JSC$17242_commandHandler.resolveCommand(S);((q=b)==null?0:q.isValid)||!T||e.JSC$17242_commandHandler.resolveCommand(T);_.s9(r)})};
Jp[ua]=[_.EI];var Gg=function(v){this.innertubeTransportService=v};
_.V(Gg,AT);Gg.prototype.resolveCommand=function(v,e){var d=this,E;return _.I(function(T){return T.yield(_.Qw(d.innertubeTransportService,v,(E=e)==null?void 0:E.form).then(function(S){var O,b;e==null||(O=e.commandController)==null||(b=O.onSuccess)==null||b.call(O,v,S)},function(S){var O,b;
e==null||(O=e.commandController)==null||(b=O.onServerError)==null||b.call(O,v,S)}),0)})};
Gg[ua]=[_.lX];var MB=function(){};
_.V(MB,AT);MB.prototype.resolveCommand=function(v){var e,d,E,T;return _.I(function(S){if(e=_.L(v,_.LOA)){if(d=e.gtmId)E=_.Bb("GL",""),_.tb(d,E);(T=e.gtmData)&&_.Rc(T)}_.s9(S)})};var tp=function(v,e){this.innertubeTransportService=v;this.JSC$17253_actionRouter=e};
_.V(tp,AT);tp.prototype.resolveCommand=function(v){var e=this,d,E;return _.I(function(T){d=_.L(v,ENM);if(!d)return T.return();E=d.command;if(!E)return T.return();e.JSC$17253_actionRouter.triggerAction("yt-insert-rich-section-action",d);return T.yield(_.Qw(e.innertubeTransportService,E,{disableCache:!0}),0)})};
tp[ua]=[_.lX,UA];qbU.bind(null,Zl);var rsi=qbU.bind(null,XIc);hQL.bind(null,Zl);var h$f=hQL.bind(null,XIc);$LU.bind(null,Zl);var K09=$LU.bind(null,XIc);var fT=function(){};
_.V(fT,AT);
fT.prototype.resolveCommand=function(v){var e,d,E,T,S,O,b,Y,q,r;return _.I(function(h){e=_.L(v,Atu);if(!e)return h.return();E=((d=e.operations)==null?void 0:d.operations)||[];T=_.a(E);for(S=T.next();!S.done;S=T.next())if(O=S.value,O.insertItemSectionContent){var K=O.insertItemSectionContent,k=K.contents||[];K.insertByPositionInSection?rsi(K.insertByPositionInSection.sectionTargetId,k,K.insertByPositionInSection.position):K.insertByRelativePositionInSection&&K.insertByRelativePositionInSection.sectionTargetId&&K.insertByRelativePositionInSection.itemTargetId&&
h$f(K.insertByRelativePositionInSection.sectionTargetId,K.insertByRelativePositionInSection.itemTargetId,k,K.insertByRelativePositionInSection.relativePosition)}else O.replaceSection?(K=O.replaceSection,k={},K.replaceByTargetId?k=K.replaceByTargetId:K.replaceByGroupId&&(k={targetId:K.replaceByGroupId.groupId,newContent:K.replaceByGroupId.newContent,undoKey:""}),k.newContent&&Hmg(k.targetId,{continuationItems:[k.newContent]})):O.removeItem?(K=O.removeItem,K.removeByTargetId&&K.sectionTargetId&&K09(K.sectionTargetId,
K.removeByTargetId.targetIds||[])):O.removeSection&&(O.removeSection.removeByTargetId?(b=void 0,$71(((b=O.removeSection)==null?void 0:b.removeByTargetId.targetIds)||[])):O.removeSection.removeByGroupId&&(Y=void 0,$71(((Y=O.removeSection)==null?void 0:Y.removeByGroupId.groupIds)||[])));r=((q=e.operations)==null?void 0:q.scrollConfig)||{};jUs(r);_.s9(h)})};
var $71=function(v){v=_.a(v);for(var e=v.next();!e.done;e=v.next())Hmg(e.value,{continuationItems:[]})},jUs=function(v){if(v.scrollToItem){var e=v.scrollToItem.item||{},d=e.itemTargetId;
e=e.sectionTargetId;if(d&&e){var E=document.querySelector("[data-target-id="+e+"]"),T=E==null?void 0:E.querySelector("[data-target-id="+d+"]");E&&T&&setTimeout(function(){var S=T.offsetTop-E.offsetTop,O;if(((O=v.scrollToItem)==null?void 0:O.scrollPosition)==="SCROLL_POSITION_CENTER")S-=E.offsetHeight/2,S+=T.offsetHeight/2;else{var b;((b=v.scrollToItem)==null?void 0:b.scrollPosition)==="SCROLL_POSITION_END"&&(S-=E.offsetHeight,S+=T.offsetHeight)}E.scroll({top:S,behavior:"smooth"})},100)}}};var RV=new _.nC("CLIENT_NAME_TOKEN");var sUf=new _.nC("DEFAULT_STORE_EXPIRATION_TOKEN");var Ijs=new _.nC("CLIENT_LOCATION_SERVICE_TOKEN");var PQ=function(v,e,d){this.clientName=v||_.Bb("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=e||_.Co.getInstance();this.JSC$17281_commandHandler=d||_.hg.instance};
_.V(PQ,AT);PQ.prototype.resolveCommand=function(v){var e=this,d,E;return _.I(function(T){E=(d=_.L(v,ni7))==null?void 0:d.onComplete;e.clientLocationService.clearLocationPlayabilityToken(e.clientName);E&&e.JSC$17281_commandHandler.resolveCommand(E);_.s9(T)})};
PQ[ua]=[RV,Ijs,_.EI];var x4=function(v){this.innertubeTransportService=v};
_.V(x4,AT);x4.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O;return _.I(function(b){S=(E=e)==null?void 0:(T=E.form)==null?void 0:T.element;return b.yield(_.Qw(d.innertubeTransportService,v,(O=e)==null?void 0:O.form).then(function(Y){J3s(S,new CustomEvent("yt-service-request-completed"),{data:Y},_.Bb("openPopupConfig"))}),0)})};
x4[ua]=[_.lX];var BQ=function(){};
_.V(BQ,AT);BQ.prototype.resolveCommand=function(v){var e,d;return _.I(function(E){e=_.L(v,blc);d=document.querySelector("mini-app-container-view-model");if(!e||!d)return E.return();e.isPlaying?d.dispatchEvent(new Event("play")):d.dispatchEvent(new Event("pause"));_.s9(E)})};var CT=function(){};
_.V(CT,AT);CT.prototype.resolveCommand=function(v){var e,d,E,T,S,O,b;return _.I(function(Y){e=_.L(v,KOc);if((d=e)==null||!d.paramKeys)return Y.return();E=e.paramKeys;T=_.Az(window.location.href);S=_.a(E);for(O=S.next();!O.done;O=S.next())b=O.value,T.JSC$10022_queryData_.remove(b);window.history.replaceState(window.history.state,document.title,T.toString());_.s9(Y)})};var NHC=function(){this.dropdownMap=new Map};_.kO1=new _.nC("DROPDOWN_CONTROLLER_TOKEN");var X3=function(v){this.controller=v};
_.V(X3,AT);X3.prototype.resolveCommand=function(v){var e=this,d,E,T,S;return _.I(function(O){d=_.L(v,U$A);if(!d)return O.return();E=d;T=E.dropdownId;S=E.selectedOptionIndex;if(T===void 0||S===void 0)return O.return();var b=e.controller.dropdownMap.get(T);b&&b(S);_.s9(O)})};
X3[ua]=[_.kO1];var zg=function(v){this.controller=v};
_.V(zg,AT);zg.prototype.resolveCommand=function(v){var e=this,d;return _.I(function(E){return(d=_.L(v,IX0))?E.yield(e.controller.closeDialog(),0):E.return()})};
zg[ua]=[_.Rj];var lo=function(v){this.controller=v};
_.V(lo,AT);lo.prototype.resolveCommand=function(v){var e=this,d,E;return _.I(function(T){d=_.L(v,QAA);if(!d)return T.return();var S,O=d.panelIdentifier||((S=d.identifier)==null?void 0:S.tag);if(!O)throw Error("Ai");return(E=O)?T.yield(e.controller.hidePanel(E),0):T.jumpTo(0)})};
lo[ua]=[_.tx];var HQ=function(v,e){this.innertubeTransportService=v;this.controller=e};
_.V(HQ,AT);HQ.prototype.resolveCommand=function(v){var e=this,d,E,T,S;return _.I(function(O){if(O.nextAddress==1)return d=_.L(v,gZn),(E=d)!=null&&E.panelId?O.yield(e.controller.getReloadContinuation(d.panelId),2):O.return();if(O.nextAddress!=3)return(T=O.yieldResult)?O.yield(_.Qw(e.innertubeTransportService,v,{continuation:T}),3):O.return();S=O.yieldResult;return O.yield(e.controller.updatePanel(d.panelId,S.content,!1),0)})};
HQ[ua]=[_.lX,_.tx];var Ap=function(v,e,d){this.innertubeTransportService=v;this.JSC$17317_screenManager=e;this.JSC$17317_commandHandler=d};
_.V(Ap,AT);
Ap.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b;return _.I(function(Y){if(Y.nextAddress==1){d=_.L(v,_.XAu);if(!d)return Y.return();if(d.commands)for(E=_.a(d.commands),T=E.next();!T.done;T=E.next())S=T.value,e.JSC$17317_commandHandler.resolveCommand(S,{disableClickTracking:!0});O=_.Jg(v.clickTrackingParams);_.Ig(e.JSC$17317_screenManager,21760,O,{layer:7,parentLayer:0});return Y.yield(_.Qw(e.innertubeTransportService,v),2)}b=Y.yieldResult;if(!b)return Y.return();e.JSC$17317_screenManager.graftServerVe(b.trackingParams,O,
7);_.s9(Y)})};
Ap[ua]=[_.lX,_.t5,_.EI];var ZM=new _.nC("PANEL_LOADING_STRATEGY_TOKEN");var cQ=function(v,e){this.controller=v;this.panelLoadingStrategy=e};
_.V(cQ,AT);
cQ.prototype.resolveCommand=function(v,e){var d=this,E,T,S;return _.I(function(O){E=_.L(v,Rre);if((T=E)==null||!T.panelLoadingStrategy)return O.return();S=function(b){var Y,q,r,h,K,k,J,R,B,X;return _.I(function(Z){q=_.L((Y=b.dialogViewModel)==null?void 0:Y.header,pli);r={viewModel:b.dialogViewModel};h={};if(J=_.N("web_enable_dialog_header_label")?(K=q)==null?void 0:(k=K.headline)==null?void 0:k.content:void 0)h.ariaLabel=J;E.dismissOnBackgroundTap===!1&&(h.isModal=!0);return b.dialogViewModel?Z.yield(d.controller.openDialog(r,
(X=(R=e)==null?void 0:(B=R.form)==null?void 0:B.element)!=null?X:document.body,h),0):Z.return()})};
return O.yield(d.panelLoadingStrategy.execute({command:v,data:E.panelLoadingStrategy,renderFn:S,createScreenConfig:{layer:4}}),0)})};
cQ[ua]=[_.Rj,ZM];var wR=function(v,e,d){this.innertubeTransportService=v;this.controller=e;this.JSC$17337_screenManager=d};
_.V(wR,AT);
wR.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h,K,k,J;return _.I(function(R){switch(R.nextAddress){case 1:E=_.L(v,_.k5);if(!E)return R.return();var B,X=E.panelIdentifier||((B=E.identifier)==null?void 0:B.tag);if(!X)throw Error("Ai");T=X;return R.yield(d.controller.isVisible(T,!0),2);case 2:if((S=R.yieldResult)&&E.blockIfPanelOpen)return R.return();Y=(b=(O=d.controller).getPanelContent)==null?void 0:b.call(O,T);if(!(B=Y))if(E){var Z;B=((Z=E.globalConfiguration)==null?void 0:
Z.initialState)||E.engagementPanel;if(Z=!B)Z=!!(E==null?0:(X=E.engagementPanelPresentationConfigs)==null?0:X.engagementPanelPopupPresentationConfig);Z&&(B=_.jS3(E.panelIdentifier,E.identifier))}else B=void 0;q=B;r=E.engagementPanelPresentationConfigs;h=E.engagementPanelExtras;return R.yield(d.controller.showPanel(T,q,r,h,(K=e)==null?void 0:(k=K.form)==null?void 0:k.element),3);case 3:if(!E.globalConfiguration){R.jumpTo(0);break}_.Ig(d.JSC$17337_screenManager,32633);return R.yield(_.Qw(d.innertubeTransportService,
v),5);case 5:return J=R.yieldResult,d.JSC$17337_screenManager.graftServerVe(J.trackingParams),R.yield(d.controller.updatePanel(T,J.content,!0,h,void 0,J.updatePanelContinuationData),0)}})};
wR[ua]=[_.lX,_.tx,_.t5];var F3=function(v,e){this.controller=v;this.panelLoadingStrategy=e};
_.V(F3,AT);F3.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y;return _.I(function(q){E=_.L(v,_.V0);if((T=E)==null||!T.panelLoadingStrategy)return q.return();b=L0i(d.controller,(S=e)==null?void 0:(O=S.form)==null?void 0:O.element);Y=function(r){return _.I(function(h){return r.sheetViewModel?h.yield(d.controller.openSheet({viewModel:r.sheetViewModel},b),0):h.return()})};
return q.yield(d.panelLoadingStrategy.execute({command:v,data:E.panelLoadingStrategy,renderFn:Y,createScreenConfig:{layer:0}}),0)})};
F3[ua]=[_.fE,ZM];var Qh=function(v,e){this.controller=v;this.JSC$17345_commandHandler=e};
_.V(Qh,AT);Qh.prototype.resolveCommand=function(v,e){var d=this,E,T,S;return _.I(function(O){if(O.nextAddress==1){E=_.L(v,U6E);var b=_.L(E.showCommand,_.k5),Y,q,r=(q=b==null?void 0:b.panelIdentifier)!=null?q:b==null?void 0:(Y=b.identifier)==null?void 0:Y.tag;if(!r)throw Error("Bi");T=r;return O.yield(d.controller.isVisible(T),2)}return(S=O.yieldResult)?O.yield(d.controller.hidePanel(T),0):O.yield(d.JSC$17345_commandHandler.resolveCommand(E.showCommand,e),0)})};
Qh[ua]=[_.tx,_.EI];var gR=function(v,e,d){this.innertubeTransportService=v;this.controller=e;this.JSC$17348_screenManager=d};
_.V(gR,AT);
gR.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F,g,Q,v3;return _.I(function(q7){switch(q7.nextAddress){case 1:return E=d=_.L(v,pA7),T=E.targetPanelIdentifier,S=E.contentSourcePanelIdentifier,O=E.globalConfiguration,((b=T)==null?0:b.tag)&&((Y=S)==null?0:Y.tag)?O?q7.yield(e.controller.showPanel(T.tag,_.jS3(T.tag,T),void 0,void 0,void 0),5):q7.yield((K=(h=e.controller).getPanel)==null?void 0:K.call(h,S.tag),4):q7.return();case 4:k=q7.yieldResult;q=(J=k)==null?
void 0:(B=(R=J).getPanelContent)==null?void 0:B.call(R);q7.jumpTo(3);break;case 5:return q7.yield(_.Qw(e.innertubeTransportService,v),6);case 6:X=q7.yieldResult,((Z=X)==null?0:Z.trackingParams)&&e.JSC$17348_screenManager.graftServerVe(X.trackingParams),q=(U=X)==null?void 0:U.content,r=(F=X)==null?void 0:F.updatePanelContinuationData;case 3:if(Q=(g=q)==null?void 0:g.engagementPanelSectionListRenderer)return q7.yield(e.controller.showPanel(T.tag,void 0,void 0,void 0,void 0,{content:Q.content,secondaryHeaderContent:(v3=
Q.header)!=null?v3:{},targetId:Q.targetId},r),0);q7.jumpTo(0)}})};
gR[ua]=[_.lX,_.tx,_.t5];var VWS=function(){};
_.V(VWS,AT);VWS.prototype.resolveCommand=function(v){var e,d,E;return _.I(function(T){if(T.nextAddress==1)return(e=_.L(v,Wjc))?T.yield(_.Yz(),2):T.return();d=T.yieldResult;if(!d)return T.return();var S=d,O=(E=e)==null?void 0:E.languageCode,b;(S==null?0:(b=S.isReady)==null?0:b.call(S))&&(O=sS0(S,O))&&S.setAudioTrack(O);_.s9(T)})};var uo=function(){};
_.V(uo,AT);var oSt=function(v){var e;return _.I(function(d){e=_.Bb("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;v.JSC$17359_mainAppPlayer=new v7(e);document.addEventListener("yt-page-data-updated",v.JSC$17359_pauseOnNavigation.bind(v));_.s9(d)})};
uo.prototype.JSC$17359_pauseOnNavigation=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1)return e=v.JSC$17359_mainAppPlayer,E.yield(e.api,2);d=E.yieldResult;d.pauseVideo();_.s9(E)})};
var Jsv=function(v,e,d){var E;return _.I(function(T){E=v.JSC$17359_mainAppPlayer;return T.yield(E.loadVideoWithPlayerVars({videoId:e,audio_only:"1",player_params:d}),0)})};
uo.prototype.pauseVideo=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1)return e=v.JSC$17359_mainAppPlayer,E.yield(e.api,2);d=E.yieldResult;d.pauseVideo();_.s9(E)})};
uo.prototype.playVideo=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1)return e=v.JSC$17359_mainAppPlayer,E.yield(e.api,2);d=E.yieldResult;d.playVideo();_.s9(E)})};
var GOQ=function(v){var e,d;return _.I(function(E){if(E.nextAddress==1)return e=v.JSC$17359_mainAppPlayer,E.yield(e.api,2);d=E.yieldResult;d.mute();_.s9(E)})},MWi=function(v){var e,d;
return _.I(function(E){if(E.nextAddress==1)return e=v.JSC$17359_mainAppPlayer,E.yield(e.api,2);d=E.yieldResult;d.unMute();_.s9(E)})},tWi=function(v,e){return _.I(function(d){switch(d.nextAddress){case 1:switch(e){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return d.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return d.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return d.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return d.jumpTo(5)}d.jumpTo(0);break;case 2:return d.yield(v.playVideo(),7);case 7:d.jumpTo(0);break;case 3:return d.yield(v.pauseVideo(),8);case 8:d.jumpTo(0);break;case 4:return d.yield(GOQ(v),9);case 9:d.jumpTo(0);break;case 5:return d.yield(MWi(v),10);case 10:d.jumpTo(0)}})};
uo.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b,Y,q,r,h,K;return _.I(function(k){return k.nextAddress==1?(d=_.L(v,WWn),((E=d)==null?0:E.newPlaybackParams)||((T=d)==null?0:T.controlAction)?e.JSC$17359_mainAppPlayer?k.jumpTo(2):k.yield(oSt(e),2):k.return()):((S=d)==null?0:S.newPlaybackParams)?(Y=(O=d)==null?void 0:(b=O.newPlaybackParams)==null?void 0:b.externalVideoId,K=(h=(q=d)==null?void 0:(r=q.newPlaybackParams)==null?void 0:r.playerParams)!=null?h:"",Y?k.yield(Jsv(e,Y,K),0):k.return()):
k.yield(tWi(e,d.controlAction),0)})};var nT=function(v){this.JSC$17366_commandHandler=v};
_.V(nT,AT);
nT.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b;return _.I(function(Y){if(Y.nextAddress==1)return(d=_.L(v,aXE))?Y.yield(_.Yz(),2):Y.return();E=Y.yieldResult;if(!E)return Y.return();var q=E,r=(T=d)==null?void 0:T.languageCode,h=(S=d)==null?void 0:S.isAutoTranslated;q.getVideoData&&_.ks7(q).length&&((r=VES(q,r,h))?q.setOption("captions","track",r):(q.setOption("captions","stickyLoading",{}),q.setOption("captions","track",{})));O=E.isSubtitlesOn()?_.sz("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.sz("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");b=_.SU(O);e.JSC$17366_commandHandler.resolveCommand(b);_.s9(Y)})};
nT[ua]=[_.EI];var DM=function(v,e){this.shortsPlayerPromise=v;this.JSC$17370_commandHandler=e};
_.V(DM,AT);
DM.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b,Y,q;return _.I(function(r){if(r.nextAddress==1)return(d=_.L(v,V$B))?r.yield(e.shortsPlayerPromise,2):r.return();E=r.yieldResult;var h=o2j(E);h!=null&&h.length||(E.loadModule("captions"),h=o2j(E));T=h;if((S=T)==null||!S.length)return O=_.sz("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),b=_.SU(O),e.JSC$17370_commandHandler.resolveCommand(b),r.return();E.toggleSubtitles();Y=E.isSubtitlesOn()?_.sz("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.sz("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");q=_.SU(Y);e.JSC$17370_commandHandler.resolveCommand(q);_.s9(r)})};
DM[ua]=[_.mxB,_.EI];var UL=function(v){this.JSC$17373_actionRouter=v;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(e,d){e.triggerAction("yt-dismiss-shopping-timely-shelf-action",d)}]])};
_.V(UL,AT);UL.prototype.resolveCommand=function(v){var e=this,d,E,T;return _.I(function(S){d=_.L(v,bPg);if((E=d)==null||!E.overlayId)return S.return();T=e.dismissPlayerOverlayActions.get(d.overlayId);if(!T)throw Error("Ci`"+d.overlayId);T(e.JSC$17373_actionRouter,d);_.s9(S)})};
UL[ua]=[UA];var pT=function(v){this.JSC$17377_playerPromise=v};
_.V(pT,AT);pT.prototype.resolveCommand=function(v){var e=this,d,E,T,S;return _.I(function(O){if(O.nextAddress==1)return(d=_.L(v,nZJ))?O.yield(e.JSC$17377_playerPromise,2):O.return();E=O.yieldResult;T=E.getVideoData().video_id;d.videoId===T&&(S=Number(d.offsetFromVideoStartMilliseconds),S>=0&&E.seekTo(S/1E3));_.s9(O)})};
pT[ua]=[_.a7];var ftO=_.rg("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),e3=function(v){this.store=v};
_.V(e3,AT);
var R$C=function(v){var e,d,E,T;return _.I(function(S){if(S.nextAddress==1)return e=_.Bb("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,d=_.Bb("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,E=e||d,v.JSC$17381_mainAppPlayer=new v7(E),S.yield(v.JSC$17381_mainAppPlayer.api,2);T=S.yieldResult;T.addEventListener("onStateChange",v.JSC$17381_playerStateChangeListener.bind(v));document.addEventListener("yt-page-data-updated",v.JSC$17381_pauseOnNavigation.bind(v));window.addEventListener("state-navigatestart",
v.JSC$17381_pauseOnNavigation.bind(v));_.s9(S)})};
e3.prototype.JSC$17381_playerStateChangeListener=function(v){switch(v){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"}PL9(this)};
var PL9=function(v){v.store.dispatch(_.Lv("sfvAudioItemCurrentlyPlayingEntity",ftO,{key:ftO,externalVideoId:v.externalVideoId,sfvAudioItemPlaybackState:v.playbackState,nowPlayingEntityValue:v.nowPlayingEntityValue}))};
e3.prototype.JSC$17381_pauseOnNavigation=function(){var v=this,e,d,E,T;return _.I(function(S){if(S.nextAddress==1){if(!v.JSC$17381_mainAppPlayer){var O=new _.kL("Error: mainAppPlayer is unavailable",v.JSC$17381_mainAppPlayer);_.RI(O);return S.return()}return S.yield(v.JSC$17381_mainAppPlayer.api,2)}e=S.yieldResult;E=(d=e)==null?void 0:d.getPlayerState();E!==1||(T=e)!=null&&T.pauseVideo();_.s9(S)})};
e3.prototype.playVideo=function(v,e,d){var E=this,T,S;return _.I(function(O){if(O.nextAddress==1)return O.yield((T=E.JSC$17381_mainAppPlayer)==null?void 0:T.api,2);S=O.yieldResult;if(!E.JSC$17381_mainAppPlayer||!S){var b=new _.kL("Error: mainAppPlayer is unavailable",E.JSC$17381_mainAppPlayer);_.RI(b);return O.return()}return O.yield(E.JSC$17381_mainAppPlayer.loadVideoWithPlayerVars({videoId:E.externalVideoId,audio_only:"1",start:v/1E3,end:v/1E3+e,player_params:d}),0)})};
e3.prototype.pauseVideo=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1){if(!v.JSC$17381_mainAppPlayer){var T=new _.kL("Error: mainAppPlayer is unavailable",v.JSC$17381_mainAppPlayer);_.RI(T);return E.return()}return E.yield(v.JSC$17381_mainAppPlayer.api,2)}e=E.yieldResult;(d=e)==null||d.pauseVideo();_.s9(E)})};
e3.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F;return _.I(function(g){if(g.nextAddress==1)return d=_.L(v,sin),T=(E=d)==null?void 0:E.nowPlayingEntityValue,O=(S=d)==null?void 0:S.externalVideoId,h=Number((r=(b=d)==null?void 0:(Y=b.defaultStartPoints)==null?void 0:(q=Y[0])==null?void 0:q.offsetMs)!=null?r:"0"),X=Number((B=(K=d)==null?void 0:(k=K.defaultStartPoints)==null?void 0:(J=k[0])==null?void 0:(R=J.duration)==null?void 0:R.seconds)!=null?B:"15"),F=(U=
(Z=d)==null?void 0:Z.playerParams)!=null?U:"",T&&O?e.JSC$17381_mainAppPlayer?g.jumpTo(2):g.yield(R$C(e),2):g.return();if(g.nextAddress!=6){if(e.nowPlayingEntityValue&&T===e.nowPlayingEntityValue)return e.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?g.yield(e.pauseVideo(),0):g.yield(e.playVideo(h,X,F),0);e.externalVideoId=O;e.nowPlayingEntityValue=T;e.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return g.yield(e.playVideo(h,X,F),6)}PL9(e);return g.jumpTo(0)})};
e3[ua]=[v0];var x79=function(v){this.JSC$17399_commandHandler=v};
_.V(x79,AT);x79.prototype.resolveCommand=function(v,e){var d=this,E,T,S;return _.I(function(O){if(O.nextAddress==1)return(E=_.L(v,iPg))?O.yield(_.Yz(),2):O.return();T=O.yieldResult;if(!T)return O.return();(S=JNL(T))&&d.JSC$17399_commandHandler.resolveCommand(S,e);_.s9(O)})};
x79[ua]=[_.EI];var dw=function(v){this.JSC$17405_commandHandler=v};
_.V(dw,AT);dw.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b;return _.I(function(Y){if(Y.nextAddress==1)return(E=_.L(v,OPI))?Y.yield(_.Yz(),2):Y.return();T=Y.yieldResult;if(!T)return Y.return();(S=RQW(T))?d.JSC$17405_commandHandler.resolveCommand(S,e):(O=_.sz("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),b=_.SU(O),d.JSC$17405_commandHandler.resolveCommand(b));_.s9(Y)})};
dw[ua]=[_.EI];var Ep=function(v){this.JSC$17408_playerPromise=v};
_.V(Ep,AT);Ep.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O;return _.I(function(b){if(b.nextAddress==1){d=_.L(v,D6M);if(!d)return b.return();E=d.overlayRenderer;return E?(T=_.L(E,mZ2))?b.yield(e.JSC$17408_playerPromise,3):b.jumpTo(0):b.return()}S=b.yieldResult;S.renderChapterSeekingAnimation(1,_.vv(T.text),(O=T.icon)==null?void 0:O.iconType);_.s9(b)})};
Ep[ua]=[_.a7];var Tm=function(v){this.store=v};
_.V(Tm,AT);
Tm.prototype.resolveCommand=function(v){var e=this,d,E,T;return _.I(function(S){if(S.nextAddress==1){d=_.L(v,af7);if(!d)return S.return();E="";(T=e.store.getState().collabInviteLink)&&d.id===T.playlistId?E=T.inviteLinkURL:d.shortUrl&&(E=d.shortUrl);return E?S.yield(navigator.clipboard.writeText(E),3):S.jumpTo(0)}var O={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.sz("COPY_LINK_SUCCESS_TOAST")}}}}};_.dk().resolve(_.EI).resolveCommand(O);_.s9(S)})};
Tm[ua]=[k4];var S3=function(v,e){this.innertubeTransportService=v;this.JSC$17418_commandHandler=e};
_.V(S3,AT);S3.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h,K;return _.I(function(k){if(k.nextAddress==1)return(E=_.L(v,_.z1))?k.yield(_.Qw(d.innertubeTransportService,v,(T=e)==null?void 0:T.form),2):k.return();(S=k.yieldResult)&&S.errorMetadata&&(O=S,b=_.SU(O.error.message),d.JSC$17418_commandHandler.resolveCommand(b));Y=S;if((q=Y)==null?0:q.actions)for(r=_.a(Y.actions),h=r.next();!h.done;h=r.next())K=h.value,d.JSC$17418_commandHandler.resolveCommand(K);_.s9(k)})};
S3[ua]=[_.lX,_.EI];var Wt=function(){};
_.V(Wt,AT);Wt.prototype.resolveCommand=function(v){var e;return _.I(function(d){e=_.L(v,DsB);if(!e)return d.return();(new yOc(e)).show();_.s9(d)})};_.aR=new _.nC("PLAYLIST_EDIT_CONTROLLER_TOKEN");var iN=function(v,e,d,E){this.store=v;this.innertubeTransportService=e;this.controller=d;this.JSC$17426_commandHandler=E};
_.V(iN,AT);
iN.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F,g,Q,v3,q7,m0,$S,kS,N7;return _.I(function(As){if(As.nextAddress==1){E=_.L(v,_.Ri);if(!E)return As.return();if(E.clientActions){T=_.a(E.clientActions);for(S=T.next();!S.done;S=T.next())O=S.value,d.JSC$17426_commandHandler.resolveCommand(O);var Ct,SA=e==null?void 0:(Ct=e.form)==null?void 0:Ct.element;SA&&_.Iq(SA,"yt-dismissible-item-action",E.clientActions)}return As.yield(_.Qw(d.innertubeTransportService,v,(b=
e)==null?void 0:b.form),2)}if(Y=As.yieldResult)Y.errorMetadata?(q=Y,r=_.SU(q.error.message),d.JSC$17426_commandHandler.resolveCommand(r),"error"in Y&&((h=e)==null?0:(K=h.commandController)==null?0:K.onServerError)&&((k=e)==null||(J=k.commandController)==null||J.onServerError(v,Y))):(R=e)==null||(B=R.commandController)==null||(Z=(X=B).onSuccess)==null||Z.call(X,v,Y);U=Y;((F=U)==null?0:F.collaborationInviteLink)&&E.playlistId&&(_.N("web_enable_invite_collaborators_link")||_.N("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
d.store.dispatch(_.Oo({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:E.playlistId,inviteLinkUrl:U.collaborationInviteLink}}));((g=U)==null?0:g.redirectEndpoint)&&d.JSC$17426_commandHandler.resolveCommand(U.redirectEndpoint);((Q=U)==null?0:(v3=Q.newHeader)==null?0:v3.playlistHeaderRenderer)?BHt(d.controller,U.newHeader.playlistHeaderRenderer):((q7=U)==null?0:(m0=q7.newHeader)==null?0:m0.musicEditablePlaylistDetailHeaderRenderer)&&BHt(d.controller,U.newHeader.musicEditablePlaylistDetailHeaderRenderer);
d.controller.playlistVideoListElement&&(($S=U)==null?0:(kS=$S.playlistEditResults)==null?0:(N7=kS[0])==null?0:N7.playlistEditVideoAddedResultData)&&((SA=d.controller.playlistVideoListElement)==null||SA.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:U.playlistEditResults[0].playlistEditVideoAddedResultData})));_.s9(As)})};
iN[ua]=[k4,_.lX,_.aR,_.EI];var Op=function(v,e){this.controller=v;this.JSC$17436_commandHandler=e};
_.V(Op,AT);Op.prototype.resolveCommand=function(v,e){var d=this,E,T,S;return _.I(function(O){E=_.L(v,iCn);d.controller.showRefreshPill&&((T=E)==null?0:T.command)&&(d.JSC$17436_commandHandler.resolveCommand((S=E)==null?void 0:S.command,e),d.controller.showRefreshPill=!1);_.s9(O)})};
Op[ua]=[_.OZ,_.EI];var IR=function(v,e){this.store=v;this.JSC$17440_commandHandler=e||_.hg.instance};
_.V(IR,AT);IR.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h,K;return _.I(function(k){E=_.L(v,s9E);T=d.store.getState().radioButtonGroup;if((S=E)==null?0:S.command)d.JSC$17440_commandHandler.resolveCommand((O=E)==null?void 0:O.command,e);else if(T&&((b=E)==null?void 0:b.formId)===T.currentFormId)for(Y=Object.values(T.commandsMap),q=_.a(Y),r=q.next();!r.done;r=q.next())h=r.value,(K=_.lk(h))&&d.JSC$17440_commandHandler.resolveCommand(K,e);_.s9(k)})};
IR[ua]=[_.Hl];var bN=new _.nC("USER_PREFS");var Y$=function(v){this.JSC$17445_prefCookie=v};
_.V(Y$,AT);Y$.prototype.resolveCommand=function(v){var e=this,d;return _.I(function(E){(d=_.L(v,Zyg))&&typeof d.useListView==="boolean"&&(_.Va(0,155,d.useListView),e.JSC$17445_prefCookie.save());_.s9(E)})};
Y$[ua]=[bN];var mn=function(v){this.JSC$17449_prefCookie=v};
_.V(mn,AT);mn.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O;return _.I(function(b){d=_.L(v,pJ2);if((E=d)==null||!E.gl)return b.return();T=d.gl;S={persist_gl:"1",gl:T};e.JSC$17449_prefCookie.set("gl",T);e.JSC$17449_prefCookie.save();O=z_7(S);_.uX(O);_.s9(b)})};
mn[ua]=[bN];var yA=function(v){this.JSC$17453_prefCookie=v};
_.V(yA,AT);yA.prototype.resolveCommand=function(v){var e=this,d,E;return _.I(function(T){d=_.L(v,IfA);if(!d)return T.return();E=!1;d.flagNum&&typeof d.value==="boolean"?(_.Va(0,d.flagNum,d.value),E=!0):d.key&&typeof d.stringValue==="string"&&(e.JSC$17453_prefCookie.set(d.key,d.stringValue),E=!0);E&&e.JSC$17453_prefCookie.save();_.s9(T)})};
yA[ua]=[bN];var qv=new _.nC("PREF_STORAGE_PROMISE_TOKEN");var rw=function(v){this.JSC$17457_prefStoragePromise=v};
_.V(rw,AT);rw.prototype.resolveCommand=function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1)return(d=_.L(v,Y3E))?T.yield(e.JSC$17457_prefStoragePromise,2):T.return();E=T.yieldResult;return E===void 0||d.key===void 0||d.value===void 0?T.return():T.yield(E.set(d.key,d.value),0)})};
rw[ua]=[qv];var CL1=function(v){this.innertubeTransportService=v};
_.V(CL1,AT);CL1.prototype.resolveCommand=function(v,e){var d=this,E,T;return _.I(function(S){(E=_.L(v,_.wDi))&&E&&E.isFirstRequest&&(_.Xq("search_overview_answer"),_.zE("so_rq",void 0,"search_overview_answer"));return S.yield(_.Qw(d.innertubeTransportService,v,(T=e)==null?void 0:T.form),0)})};
CL1[ua]=[_.lX];var X3f=function(){};
_.V(X3f,AT);
X3f.prototype.resolveCommand=function(v){var e,d,E,T,S,O,b,Y,q;return _.I(function(r){e=_.L(v,uPn);if((d=e)==null?0:d.sectionIdentifier){if(e.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(T=(E=document.getElementsByTagName(e.sectionIdentifier))==null?void 0:E.item(0))T.scrollIntoView({behavior:"smooth"}),(S=lIO(T))&&S.focus({preventScroll:!0});return r.return()}O=document.querySelector("[section-identifier="+e.sectionIdentifier+"]");b=document.querySelector("[section-identifier="+e.referenceSectionIdentifier+
"]");if(!O)return r.return();Y=e.verticalScrollOffsetDp?e.verticalScrollOffsetDp:0;b&&(Y-=b.offsetTop);window.scrollTo({top:O.offsetTop+Y,behavior:"smooth"});(q=lIO(O))&&q.focus({preventScroll:!0})}_.s9(r)})};var hj=function(v){this.JSC$17469_commandHandler=v};
_.V(hj,AT);
hj.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b,Y;return _.I(function(q){if(q.nextAddress==1){d=_.L(v,yd2);if(!d||!d.imageBytes||!navigator.clipboard)return q.return();if(d.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.RI(Error("Ei")),q.return();_.qq(q,2);T=(E=d)==null?void 0:E.imageBytes;S=T.replace(/-/g,"+").replace(/_/g,"/");O=mLS(S);b={};Y=[new ClipboardItem((b[O.type]=O,b))];return q.yield(navigator.clipboard.write(Y),4)}if(q.nextAddress!=2)return d.successCommand&&
e.JSC$17469_commandHandler.resolveCommand(d.successCommand),_.wk(q,0);_.jl(q);d.errorCommand&&e.JSC$17469_commandHandler.resolveCommand(d.errorCommand);_.s9(q)})};
hj[ua]=[_.EI];var Kc=function(v,e){this.innertubeTransportService=v;this.JSC$17473_commandHandler=e};
_.V(Kc,AT);Kc.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b;return _.I(function(Y){if(Y.nextAddress==1)return(E=_.L(v,qTg))?Y.yield(_.Qw(d.innertubeTransportService,v,(T=e)==null?void 0:T.form),2):Y.return();(S=Y.yieldResult)&&S.errorMetadata&&E.onFailureCommand&&d.JSC$17473_commandHandler.resolveCommand(E.onFailureCommand);O=S;((b=O)==null?0:b.shareCommand)&&d.JSC$17473_commandHandler.resolveCommand(O.shareCommand,e);_.s9(Y)})};
Kc[ua]=[_.lX,_.EI];var $$=function(){};
_.V($$,AT);$$.prototype.resolveCommand=function(v){var e,d;return _.I(function(E){e=_.L(v,S30);if(!e||!navigator.share)return E.return();d={url:e.url};try{return E.return(navigator.share(d))}catch(T){}_.s9(E)})};var j3=function(){};
_.V(j3,AT);j3.prototype.resolveCommand=function(){return _.I(function(v){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.s9(v)})};var sp=function(v){this.JSC$17483_navigationConfirmationService=v};
_.V(sp,AT);sp.prototype.resolveCommand=function(){var v=this;return _.I(function(e){v.JSC$17483_navigationConfirmationService.cancelPendingNavigation();_.s9(e)})};
sp[ua]=[Np];var Nv=function(v){this.JSC$17486_screenManager=v};
_.V(Nv,AT);Nv.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q;return _.I(function(r){T=(E=e.form)==null?void 0:E.event;O=(S=e.form)==null?void 0:S.element;if(!T)throw new _.kL("Event not passed in when resolving command");b=_.a(T.composedPath());for(Y=b.next();!Y.done;Y=b.next())if(q=Y.value,q.tagName==="YT-COPY-LINK-RENDERER")return q.copyUrlToClipboard(),O&&_.ca(d.JSC$17486_screenManager,O),r.return();_.s9(r)})};
Nv[ua]=[_.t5];var k$=function(){this.JSC$17490_miniAppClientDataProvider=_.dk().resolve(_.Q6)};
_.V(k$,AT);k$.prototype.resolveCommand=function(){var v=this,e,d;return _.I(function(E){if(v.JSC$17490_miniAppClientDataProvider.clientData.has("video_id")){var T=v.JSC$17490_miniAppClientDataProvider,S=T.clientData.get("video_id");S&&T.clientData.delete("video_id");e="https://youtube.com/watch?v="+S;d=_.R$(e);if(d===void 0)throw Error("Fi`"+e);_.Fa(window,d)}_.s9(E)})};var Lc=function(){};
_.V(Lc,AT);Lc.prototype.resolveCommand=function(){return _.I(function(v){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.s9(v)})};var VA=function(){};
_.V(VA,AT);VA.prototype.resolveCommand=function(){var v;return _.I(function(e){if(e.nextAddress==1)return e.yield(_.sAt(window.document.documentElement),2);(v=document.querySelector("mini-app-container-view-model iframe"))&&v.focus();_.s9(e)})};var oR=function(v){this.JSC$17497_navigationConfirmationService=v};
_.V(oR,AT);
oR.prototype.resolveCommand=function(){var v=this;return _.I(function(e){var d=v.JSC$17497_navigationConfirmationService,E=_.dk().resolve(_.Vy),T;if(((T=d.navigateParams)==null?void 0:T.data)!==void 0){var S;_.KP6(E,d.navigateParams.endpoint,d.navigateParams.data,(S=d.navigateParams.navigationType)!=null?S:1,d.navigateParams.tempData,d.navigateParams.isMiniplayer,void 0,!0);d.navigateParams=void 0;d.customConfirmationCommand=void 0}else d.navigateParams&&(E.navigate(d.navigateParams.endpoint,d.navigateParams.reload,
d.navigateParams.params,d.navigateParams.tempData,d.navigateParams.requestType,d.navigateParams.createScreenConfig,!0),d.navigateParams=void 0,d.customConfirmationCommand=void 0);_.s9(e)})};
oR[ua]=[Np];var Jj=function(){};
_.V(Jj,AT);Jj.prototype.resolveCommand=function(){return _.I(function(v){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.s9(v)})};var Gm=function(v){this.JSC$17502_prefStorage=v};
_.V(Gm,AT);Gm.prototype.resolveCommand=function(){var v=this,e,d;return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(v.JSC$17502_prefStorage,2);case 2:return(e=E.yieldResult)?E.yield(e.set("sfvle",!1),3):E.return();case 3:return E.yield(e.set("sfvles",!0),4);case 4:d=_.LB(),_.Va(0,203,!1),_.Va(0,204,!0),d.save(),_.s9(E)}})};
Gm[ua]=[qv];var Mv=function(v){this.JSC$17505_prefStorage=v};
_.V(Mv,AT);Mv.prototype.resolveCommand=function(){var v=this,e,d;return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(v.JSC$17505_prefStorage,2);case 2:return(e=E.yieldResult)?E.yield(e.set("sfvle",!0),3):E.return();case 3:return E.yield(e.set("sfvles",!0),4);case 4:d=_.LB(),_.Va(0,203,!0),_.Va(0,204,!0),d.save(),_.s9(E)}})};
Mv[ua]=[qv];_.z$f=new _.nC("SNACKBAR_CONTROLLER_TOKEN");_.ltQ=new _.nC("SHOULD_SHOW_PIVOT_BAR_TOKEN");var tj=function(v){this.controller=v};
_.V(tj,AT);tj.prototype.resolveCommand=function(v){var e=this,d;return _.I(function(E){d=_.L(v,fhc);if(!d)return E.return();var T=e.controller;T.closeSnackbarFn&&T.closeSnackbarFn();_.s9(E)})};
tj[ua]=[_.z$f];var fc=function(v,e){this.controller=v;this.sheetController=e};
_.V(fc,AT);fc.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y;return _.I(function(q){E=_.L(v,PAu);if(!E)return q.return();O=L0i(d.sheetController,(T=e)==null?void 0:(S=T.form)==null?void 0:S.element);b=_.L(E.content,gK7);if(!b)return q.return();var r=d.controller,h=b,K=(Y=E.animationStyle)!=null?Y:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(r.showSnackbarFn)r.showSnackbarFn({snackbarViewModel:h,animationStyle:K,durationMs:E.durationSeconds*1E3,target:O});else throw Error("pj");_.s9(q)})};
fc[ua]=[_.z$f,_.fE];var RR=function(){};
_.V(RR,AT);RR.prototype.resolveCommand=function(v){var e;return _.I(function(d){e=_.L(v,bCi);if(!e||typeof e.key!=="string"||typeof e.value!=="string")return d.return();window.localStorage.setItem(e.key,e.value);_.s9(d)})};var Pt=function(v){this.store=v};
_.V(Pt,AT);Pt.prototype.resolveCommand=function(v){var e=this,d;return _.I(function(E){d=_.L(v,DmU);if(!d||!d.stepId||!d.token)return E.return();e.store.dispatch(qmB({stepId:d.stepId,token:d.token,isSelected:!1}));_.s9(E)})};
Pt[ua]=[k4];var x$=function(v,e,d){this.innertubeTransportService=v;this.store=e;this.JSC$17524_screenManager=d};
_.V(x$,AT);
x$.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F,g,Q,v3,q7;return _.I(function(m0){d=_.L(v,T60);if(!d||(E=d.stepIds)==null||!E.length)return m0.return();T=e.store.getState().talkToRecs;S=[];O=[];b=_.a(d.stepIds);for(Y=b.next();!Y.done;Y=b.next())for(q=Y.value,r=void 0,(h=(r=T.stepStates[q])==null?void 0:r.userQuery)&&O.push({userQuery:h.userQuery,userQueryToken:h.token}),K=void 0,k=(K=T.stepStates[q])==null?void 0:K.selectionStates,J=_.a(Object.entries(k)),R=
J.next();!R.done;R=J.next())B=R.value,X=_.a(B),Z=X.next().value,U=X.next().value,F=Z,g=U,g.isSelected&&S.push(F);Q={selectedChipTokens:S,userQueries:O,submittedStepIds:d.stepIds};v3={browseTalk2recsFormData:Q};d.browseEndpoint?(q7=v,_.xJ(q7,_.Lo,d.browseEndpoint)):d.command&&(q7=d.command);return q7?m0.yield(_.Qw(e.innertubeTransportService,q7,{formData:v3,disableCache:!0}).then(function($S){($S==null?0:$S.trackingParams)&&e.JSC$17524_screenManager.graftServerVe($S==null?void 0:$S.trackingParams)}),
0):m0.return()})};
x$[ua]=[_.lX,k4,_.t5];var Bt=function(v){this.store=v};
_.V(Bt,AT);Bt.prototype.resolveCommand=function(v){var e=this,d;return _.I(function(E){d=_.L(v,nYU);if(!d||!d.stepId||!d.token)return E.return();e.store.dispatch(qmB({stepId:d.stepId,token:d.token,isSelected:!0}));_.s9(E)})};
Bt[ua]=[k4];var Cc=function(v){this.store=v};
_.V(Cc,AT);Cc.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b;return _.I(function(Y){E=_.L(v,Sdn);if(!E||!E.stepId||!E.userQueryToken)return Y.return();b=(O=(T=e)==null?void 0:(S=T.form)==null?void 0:S.userQuery)!=null?O:"";d.store.dispatch(_.Oo({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:E.stepId,userQueryToken:E.userQueryToken,userQuery:b}}));_.s9(Y)})};
Cc[ua]=[k4];_.Hts=new _.nC("TIMELY_ACTIONS_CONTROLLER_TOKEN");var X0=function(v){this.controller=v};
_.V(X0,AT);X0.prototype.resolveCommand=function(v){var e=this,d,E,T,S;return _.I(function(O){d=_.L(v,FjB);if(!d)return O.return();E=d;T=E.id;S=E.isVisible;if(T===void 0||S===void 0)return O.return();var b;(b=e.controller.timelyActionsMap.get(T))==null||b(T,S);_.s9(O)})};
X0[ua]=[_.Hts];var Ass=function(){this.timelyActionsMap=new Map};var zm=function(v){this.JSC$17551_commandHandler=v};
_.V(zm,AT);zm.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O;return _.I(function(b){d=_.L(v,_.$w);if(!d)return b.return();S=(E=d.item)==null?void 0:(T=E.notificationTextRenderer)==null?void 0:T.successResponseText;if(!S)return b.return();O=_.To(S);e.JSC$17551_commandHandler.resolveCommand(O);_.s9(b)})};
zm[ua]=[_.EI];var lN=function(v,e){this.innertubeTransportService=v;this.JSC$17556_playerApiPromise=e};
_.V(lN,AT);
lN.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b,Y,q,r;return _.I(function(h){if(h.nextAddress==1)return h.yield(e.JSC$17556_playerApiPromise,2);d=h.yieldResult;E=d.getOption("captions","track");T=Object.assign({},_.L(v,_.RY6));(O=(S=d.getVideoData())==null?void 0:S.video_id)?T.externalVideoId=O:_.ZV(Error("Gi"));if((b=E)==null?0:b.languageCode)T.languageCode=E.languageCode;if((Y=E)==null?0:Y.kind)T.kind=E.kind;if((q=E)==null?0:q.name)T.name=E.name;r=Object.assign({},v,{getTranscriptEndpoint:T});return h.yield(_.Qw(e.innertubeTransportService,
r),0)})};
lN[ua]=[_.lX,_.a7];var Ht=function(){};
_.V(Ht,AT);Ht.prototype.resolveCommand=function(v){var e,d,E,T,S,O,b,Y;return _.I(function(q){e=_.L(v,j9E);if((d=e)==null||!d.paramKeyValuePairs)return q.return();E=window.location.href;T=_.a(e.paramKeyValuePairs);for(S=T.next();!S.done;S=T.next())O=S.value,O.key&&O.value&&(b={},E=_.gZ(E,(b[O.key]=O.value,b)));Y=_.dk().resolve(_.$1);_.KE(Y,E);_.s9(q)})};var Aj=function(v,e){this.JSC$17563_commandHandler=v;this.innertubeTransportService=e};
_.V(Aj,AT);
Aj.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U;return _.I(function(F){switch(F.nextAddress){case 1:return(S=(E=e)==null?void 0:(T=E.form)==null?void 0:T.element)&&_.Xb(S),O=_.LB().get("hl"),b="",_.qq(F,2),F.yield(CvL(O),4);case 4:b=F.yieldResult;_.wk(F,3);break;case 2:return _.jl(F),S&&_.zU(S),_.RI(Error("Ii"),"ERROR"),F.return();case 3:Y=_.L(v,se0);if(!Y)return S&&_.zU(S),F.return();(h=(q=Y.commerceActionConfig)==null?void 0:(r=q.commandLifeCycleConfig)==null?
void 0:r.onStartCommand)&&d.JSC$17563_commandHandler.resolveCommand(h);return F.yield(_.Qw(d.innertubeTransportService,v,{client_data:{paymentsClientToken:{token:b}}}),5);case 5:(K=F.yieldResult)?(S&&_.zU(S),((B=K)==null?0:B.command)&&d.JSC$17563_commandHandler.resolveCommand(K.command),(U=(X=Y.commerceActionConfig)==null?void 0:(Z=X.commandLifeCycleConfig)==null?void 0:Z.onSuccessCommand)&&d.JSC$17563_commandHandler.resolveCommand(U)):(S&&_.zU(S),_.RI(Error("Ji")),(R=(k=Y.commerceActionConfig)==
null?void 0:(J=k.commandLifeCycleConfig)==null?void 0:J.onFailureCommand)&&d.JSC$17563_commandHandler.resolveCommand(R)),_.s9(F)}})};
Aj[ua]=[_.EI,_.lX];var Zs=function(v,e,d){this.store=v;this.JSC$17579_commandHandler=e;this.innertubeTransportService=d};
_.V(Zs,AT);
Zs.prototype.resolveCommand=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h;return _.I(function(K){E=_.L(v,NDg);T=E.googlePaymentPayload;E.onStartCommand&&d.JSC$17579_commandHandler.resolveCommand(E.onStartCommand);S=T.encryptedPurchaseParams;O=T.ypcLogWalletAnalyticDataEndpoint;b=E.serializedTransactionFlowLoggingParams;Y=T.serializedPaymentsClientParams;q=E.ypcCujContext;h=l1S(d.innertubeTransportService,(r=e)==null?void 0:r.form,S,O,b,Y,q);return K.return(h.then(function(k){XZL(e==null?void 0:e.form,
!1);var J=d.store,R=d.JSC$17579_commandHandler,B=k.integratorData;B==null||B===""||k.error!=null?(String(k.error)==="-1"&&E.onDismissCommand?R.resolveCommand(E.onDismissCommand):String(k.error)!=="-1"&&E.onFailureCommand&&R.resolveCommand(E.onFailureCommand),String(k.error)!=="-1"&&String(k.error)!=="132"&&_.RI(Error("Ki"),"ERROR")):(E.googlePaymentEntityKey&&J.dispatch(_.Lv("commerceAcquisitionClientPayloadEntity",E.googlePaymentEntityKey,{key:E.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:B,
fundsGuaranteeCallbackClientData:k.integratorClientCallbackData}}})),E.onSuccessCommand&&R.resolveCommand(E.onSuccessCommand));_.qg()},function(k){XZL(e==null?void 0:e.form,!1);
_.RI(k,"ERROR");E.onFailureCommand&&d.JSC$17579_commandHandler.resolveCommand(E.onFailureCommand)}))})};
Zs[ua]=[v0,_.EI,_.lX];var ct=function(v,e){this.JSC$17583_commandHandler=v;this.purchaseManager=e};
_.V(ct,AT);
ct.prototype.resolveCommand=function(v){var e=this,d,E,T,S,O,b,Y,q,r;return _.I(function(h){d=_.L(v,kXc);((E=d)==null?0:(T=E.commandLifeCycleConfig)==null?0:T.onStartCommand)&&e.JSC$17583_commandHandler.resolveCommand(d.commandLifeCycleConfig.onStartCommand);if(!((S=d)==null?0:(O=S.googlePaymentPurchaseManagerPayload)==null?0:O.securePayloadBytes))return _.RI(Error("Li"),"ERROR"),h.return();b=jbI(_.U0(d.googlePaymentPurchaseManagerPayload.securePayloadBytes));Y=_.LB().get("hl");q=_.gq();zRI(b.serialize(),
Y,function(K){q.resolve(K)},function(K){q.reject(K)},q.resolve);
r=q.promise;return h.return(r.then(function(K){if(K)if(K==null?0:K.errorCode){_.RI(Error("Mi`"+K.errorCode),"ERROR");var k,J;((k=d)==null?0:(J=k.commandLifeCycleConfig)==null?0:J.onFailureCommand)&&e.JSC$17583_commandHandler.resolveCommand(d.commandLifeCycleConfig.onFailureCommand)}else if(K==null?0:K.isCancelled){var R,B;((R=d)==null?0:(B=R.commandLifeCycleConfig)==null?0:B.onCancelCommand)&&e.JSC$17583_commandHandler.resolveCommand(d.commandLifeCycleConfig.onCancelCommand)}else{var X,Z;((X=d)==
null?0:(Z=X.commandLifeCycleConfig)==null?0:Z.onSuccessCommand)&&e.JSC$17583_commandHandler.resolveCommand(d.commandLifeCycleConfig.onSuccessCommand)}},function(K){_.RI(K,"ERROR");
var k,J;((k=d)==null?0:(J=k.commandLifeCycleConfig)==null?0:J.onFailureCommand)&&e.JSC$17583_commandHandler.resolveCommand(d.commandLifeCycleConfig.onFailureCommand)}))})};
ct[ua]=[_.EI,lZe];var ZtO=function(v,e){this.JSC$17591_commandHandler=v;this.commandAllowlistOverride=e;var d;this.commandAllowlist=(d=this.commandAllowlistOverride)!=null?d:u2};
ZtO.prototype.handleResponse=function(v,e,d){var E,T=e==null?void 0:(E=e.config)==null?void 0:E.command;if(!T||this.commandAllowlist.some(function(S){return!!_.L(T,S)})){e=void 0;
d!==void 0&&(e={form:{element:d}});v.onResponseReceivedCommand&&this.JSC$17591_commandHandler.resolveCommand(v.onResponseReceivedCommand,e);v.onResponseReceivedAction&&this.JSC$17591_commandHandler.resolveCommand(v.onResponseReceivedAction,e);v.onResponseReceivedEndpoint&&this.JSC$17591_commandHandler.resolveCommand(v.onResponseReceivedEndpoint,e);v.command&&this.JSC$17591_commandHandler.resolveCommand(v.command,e);if(v.onResponseReceivedCommands)for(d=_.a(v.onResponseReceivedCommands),E=d.next();!E.done;E=
d.next())this.JSC$17591_commandHandler.resolveCommand(E.value,e);if(v.onResponseReceivedActions)for(d=_.a(v.onResponseReceivedActions),E=d.next();!E.done;E=d.next())this.JSC$17591_commandHandler.resolveCommand(E.value,e);if(v.onResponseReceivedEndpoints)for(d=_.a(v.onResponseReceivedEndpoints),E=d.next();!E.done;E=d.next())this.JSC$17591_commandHandler.resolveCommand(E.value,e);if(v.actions)for(v=_.a(v.actions),d=v.next();!d.done;d=v.next())this.JSC$17591_commandHandler.resolveCommand(d.value,e)}};
ZtO[ua]=[_.EI,_.eG(HSU)];var cs9=new _.nC("INNERTUBE_TOKEN_SERVICE");var w31=new _.nC("SCHEDULER_TOKEN");var F0_=function(v){this.scheduler=v;v={};this.tokenMap=(v.app={},v.user={},v)};
F0_.prototype.handleResponse=function(v,e){if(!e)throw Error("Ni");var d;if(v=(d=v.responseContext)==null?void 0:d.innertubeTokenJar){if(v.appTokens){var E,T,S;d=(E=e.innerTubeRequest.context)==null?void 0:(T=E.request)==null?void 0:(S=T.innertubeTokenJar)==null?void 0:S.appTokens;QUO(this,v.appTokens,this.tokenMap.app,d)}if(v.userTokens){var O,b,Y;e=(O=e.innerTubeRequest.context)==null?void 0:(b=O.request)==null?void 0:(Y=b.innertubeTokenJar)==null?void 0:Y.userTokens;QUO(this,v.userTokens,this.tokenMap.user,
e)}}};
F0_.prototype.processContext=function(v){v.request||(v.request={});var e=Object.keys(this.tokenMap.app).length,d=Object.keys(this.tokenMap.user).length;if(e||d)v.request.innertubeTokenJar={},e&&(v.request.innertubeTokenJar.appTokens=[].concat(_.t7(Object.values(this.tokenMap.app).flat()))),d&&(v.request.innertubeTokenJar.userTokens=[].concat(_.t7(Object.values(this.tokenMap.user).flat())))};
var QUO=function(v,e,d,E){e=_.a(e);for(var T=e.next(),S={};!T.done;S={token$jscomp$139:void 0},T=e.next()){S.token$jscomp$139=T.value;if(S.token$jscomp$139.type===void 0)throw new _.kL("InnerTube token has no type",S.token$jscomp$139);if(S.token$jscomp$139.clearTokens)d[S.token$jscomp$139.type]=[];else if(S.token$jscomp$139.value!==void 0){d[S.token$jscomp$139.type]||(d[S.token$jscomp$139.type]=[]);if(E!==void 0&&E.length){T=_.a(E);for(var O=T.next(),b={};!O.done;b={requestToken:void 0},O=T.next())b.requestToken=
O.value,O=d[S.token$jscomp$139.type].findIndex(function(Y){return function(q){return q===Y.requestToken||(0,_.f0.equals)(q,Y.requestToken)}}(b)),O>-1&&d[S.token$jscomp$139.type].splice(O,1)}d[S.token$jscomp$139.type].push(S.token$jscomp$139);
S.token$jscomp$139.maxAgeSeconds&&Number(S.token$jscomp$139.maxAgeSeconds)>0&&v.scheduler.addLowPriorityJob(function(Y){return function(){var q=d[Y.token$jscomp$139.type].indexOf(Y.token$jscomp$139);q>-1&&d[Y.token$jscomp$139.type].splice(q,1)}}(S),Number(S.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.kL("InnerTube token has no value",S.token$jscomp$139);
}};
F0_[ua]=[w31];var gSi=new _.nC("LOCAL_INNERTUBE_ROUTER_TOKEN"),uMO=new _.nC("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var ww=function(v){this.serviceMap=v};
ww.prototype.shouldPreferLocalResponse=function(v,e){return(v=nS9(this,v))?v.shouldPreferLocalResponse(e):!1};
ww.prototype.localInnertubeResponse=function(v,e){var d=this,E;return _.I(function(T){return(E=nS9(d,v))?T.return(E.localInnertubeResponse(e)):T.return(Promise.reject(Error("Oi")))})};
ww.prototype.canProvideFallbackResponse=function(v,e){return(v=nS9(this,v))?v.canProvideFallbackResponse(e):!1};
ww.prototype.localFallbackInnertubeResponse=function(v,e){var d=this,E;return _.I(function(T){return(E=nS9(d,v))?T.return(E.localFallbackInnertubeResponse(e)):T.return(Promise.reject(Error("Oi")))})};
var nS9=function(v,e){e=_.mq(e);return e?(v=v.serviceMap[e])?v:null:null};
ww[ua]=[uMO];var q3=function(){};
q3.prototype.shouldPreferLocalResponse=function(){return!1};
q3.prototype.localInnertubeResponse=function(){return _.I(function(v){return v.return(Promise.reject(Error("Pi")))})};
q3.prototype.canProvideFallbackResponse=function(){return!0};
q3.prototype.localFallbackInnertubeResponse=function(){var v,e,d;return _.I(function(E){v=rp("CLOSE_POPUP");e={openPopupAction:ANU()};d={actions:[v,e]};return E.return(d)})};var HVL=function(v,e){this.JSC$17641_upliftPromise=v;this.store=e};
_.W=HVL.prototype;_.W.shouldPreferLocalResponse=function(v){var e=v.videoId,d;if(d=e)d=ie7(this.store.getState().entities,v.videoId);return d&&Oe7(this.store.getState().entities,e)?cNO(this.store.getState().entities,v.playlistId):!1};
_.W.localInnertubeResponse=function(v){var e=this,d;return _.I(function(E){return(d=e.getPlayerResponse(v))?E.return(Promise.resolve(d)):E.return(Promise.reject(Error("Qi")))})};
_.W.canProvideFallbackResponse=function(v){return!!v.videoId};
_.W.localFallbackInnertubeResponse=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(e.JSC$17641_upliftPromise,2);d=e.getPlayerResponse(v);var T;d?T=E.return(Promise.resolve(d)):T=ME(e.store.getState().entities,v.videoId)?E.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.WK(_.sz("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:Sx7()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
E.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.WK(_.sz("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:T_U()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return T})};
_.W.getPlayerResponse=function(v){return Bot(this.store.getState().entities,v.videoId)};var yu=function(v,e){this.localPlayerService=v;this.localWatchNextService=e};
yu.prototype.shouldPreferLocalResponse=function(v){var e=v.playerRequest;v=v.watchNextRequest;return!!(e&&this.localPlayerService.shouldPreferLocalResponse(e)&&v&&this.localWatchNextService.shouldPreferLocalResponse(v))};
yu.prototype.localInnertubeResponse=function(v){var e=this,d,E,T,S;return _.I(function(O){if(O.nextAddress==1){d=v.playerRequest;E=v.watchNextRequest;if(!d||!E)throw new _.kL("Missing streaming request",v);return O.yield(e.localPlayerService.localInnertubeResponse(d),2)}if(O.nextAddress!=3)return T=O.yieldResult,O.yield(e.localWatchNextService.localInnertubeResponse(E),3);S=O.yieldResult;return O.return({playerResponse:T,watchNextResponse:S})})};
yu.prototype.canProvideFallbackResponse=function(v){var e=v.playerRequest;v=v.watchNextRequest;return!!(e&&this.localPlayerService.canProvideFallbackResponse(e)&&v&&this.localWatchNextService.canProvideFallbackResponse(v))};
yu.prototype.localFallbackInnertubeResponse=function(v){var e=this,d,E,T,S;return _.I(function(O){if(O.nextAddress==1)return d=v.playerRequest,E=v.watchNextRequest,d&&E?O.yield(e.localPlayerService.localFallbackInnertubeResponse(d),2):O.return(Promise.reject(new _.kL("Missing streaming request",v)));if(O.nextAddress!=3)return T=O.yieldResult,O.yield(e.localWatchNextService.localFallbackInnertubeResponse(E),3);S=O.yieldResult;return O.return({playerResponse:T,watchNextResponse:S})})};var bz=function(v){this.JSC$17651_persistentStorePromiseAccessor=v};
bz.prototype.shouldPreferLocalResponse=function(){return!1};
bz.prototype.localInnertubeResponse=function(){return _.I(function(v){return v.return(Promise.reject(Error("Ri")))})};
bz.prototype.canProvideFallbackResponse=function(){return!0};
bz.prototype.localFallbackInnertubeResponse=function(){var v=this,e,d;return _.I(function(E){return E.nextAddress==1?E.yield(v.JSC$17651_persistentStorePromiseAccessor(),2):E.nextAddress!=3?(e=E.yieldResult)?E.yield(e.get("service:guide:fallback"),3):E.return(Promise.reject(Error("Si"))):(d=E.yieldResult)&&_.UR(d)?E.return(wZU(_.UR(d))):E.return(Promise.reject(Error("Ti")))})};var rQ=function(){};
rQ.prototype.shouldPreferLocalResponse=function(){return!1};
rQ.prototype.localInnertubeResponse=function(){return _.I(function(v){return v.return(Promise.reject(Error("Ui")))})};
rQ.prototype.canProvideFallbackResponse=function(){return!0};
rQ.prototype.localFallbackInnertubeResponse=function(){var v,e,d;return _.I(function(E){v=rp("CLOSE_POPUP");e={openPopupAction:ANU()};d={actions:[v,e]};return E.return(d)})};var Ia=function(){this.urlMap=D71;this.fallbackCommand=_.$_};
Ia.prototype.shouldPreferLocalResponse=function(v){return(v=v.url)?!!U7f(this,v):!1};
Ia.prototype.localInnertubeResponse=function(v){var e=this,d;return _.I(function(E){return(d=v.url)?E.return(p3_(v,U7f(e,d))):E.return(Promise.reject(Error("Vi")))})};
Ia.prototype.canProvideFallbackResponse=function(){return!0};
Ia.prototype.localFallbackInnertubeResponse=function(v){var e=this,d,E,T,S,O,b,Y;return _.I(function(q){d=v.url;if(!d)return q.return(p3_(v,e.fallbackCommand));if(E=U7f(e,d))return q.return(p3_(v,E));T=void 0;S=_.mq(d);S==="/watch"&&(O=_.lZ(d,"v"))&&(Y=(b=_.lZ(d,"list"))!=null?b:void 0,T=_.S7(O,Y));T||(T=e.fallbackCommand);return q.return(p3_(v,T))})};
var U7f=function(v,e){if(e)return v.urlMap[_.g3(e)]},p3_=function(v,e){e&&v.parentTrackingParams&&(e.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:v.parentTrackingParams}},e.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:e})};var Y5=function(v,e,d){this.JSC$17661_upliftPromise=v;this.store=e;this.JSC$17661_persistentStorePromiseAccessor=d};
Y5.prototype.shouldPreferLocalResponse=function(){return!1};
Y5.prototype.localInnertubeResponse=function(){return _.I(function(v){return v.return(Promise.reject(Error("Wi")))})};
Y5.prototype.canProvideFallbackResponse=function(){return!0};
Y5.prototype.localFallbackInnertubeResponse=function(){var v=this;return _.I(function(e){return e.return(vIQ(v))})};
var vIQ=function(v){var e,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(D7(v.JSC$17661_upliftPromise,v.store),2);e=E.yieldResult;d={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Z_U(e)]}}}};return E.return(eus(v,d))})},eus=function(v,e){var d,E;
return _.I(function(T){if(T.nextAddress==1)return T.yield(v.JSC$17661_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3)return d=T.yieldResult,T.yield(pr(d),3);E=T.yieldResult;return T.return({responseContext:{},contents:e,topbar:E})})};var iz=function(v,e,d){this.JSC$17668_upliftPromise=v;this.store=e;this.JSC$17668_persistentStorePromiseAccessor=d};
iz.prototype.shouldPreferLocalResponse=function(v){var e=v.videoId;return e&&ie7(this.store.getState().entities,e)&&Oe7(this.store.getState().entities,e)?cNO(this.store.getState().entities,v.playlistId):!1};
iz.prototype.localInnertubeResponse=function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1)return(d=v.videoId)?T.yield(e.JSC$17668_upliftPromise,2):T.return(Promise.reject(Error("Xi")));if(T.nextAddress!=3)return T.yield(dis(e,v,d),3);E=T.yieldResult;return T.return(EIi(e,E,d))})};
iz.prototype.canProvideFallbackResponse=function(v){return v.videoId?!0:!1};
iz.prototype.localFallbackInnertubeResponse=function(v){var e=this,d,E,T,S;return _.I(function(O){switch(O.nextAddress){case 1:return(d=v.videoId)?O.yield(e.JSC$17668_upliftPromise,2):O.return(Promise.reject(Error("Xi")));case 2:return O.yield(dis(e,v,d),3);case 3:E=O.yieldResult;if(ME(e.store.getState().entities,d)){O.jumpTo(4);break}return O.yield(D7(e.JSC$17668_upliftPromise,e.store),5);case 5:return T=O.yieldResult,O.return(Tn1(E,T));case 4:return ie7(e.store.getState().entities,d)&&Oe7(e.store.getState().entities,
d)?O.return(EIi(e,E,d)):(S={title:_.WK(_.sz("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Sx7()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},O.return(Tn1(E,S)))}})};
var dis=function(v,e,d){var E,T,S,O,b;return _.I(function(Y){if(Y.nextAddress==1)return E=e.playlistId,T=_.S7(d,E),Y.yield(v.JSC$17668_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return S=Y.yieldResult,Y.yield(pr(S),3);O=Y.yieldResult;b={responseContext:{},currentVideoEndpoint:T,topbar:O};return Y.return(b)})},EIi=function(v,e,d){if(v=ME(v.store.getState().entities,d)){var E;
d=v.videoEntity;var T,S={title:aG(d.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.iq((E=d.localizedStrings)==null?void 0:E.viewCount),viewCount:_.iq((T=d.localizedStrings)==null?void 0:T.viewCount)}}};d.publishedTimestampMillis&&(S.dateText=_.iq(VN3(new Date(Number(d.publishedTimestampMillis)))));E={videoPrimaryInfoRenderer:S};T=v.videoEntity;v=v.channelEntity;v={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:aG(_.sz("SHOW_MORE",void 0,"Show more")),
showLessText:aG(_.sz("SHOW_LESS",void 0,"Show less")),description:T.formattedDescription,owner:{videoOwnerRenderer:{title:aG(v.title),thumbnail:v.avatar}}}};e.contents={twoColumnWatchNextResults:{results:{results:{contents:[E,v]}}}}}return e},Tn1=function(v,e){v.contents={singleColumnWatchNextResults:{results:{results:{contents:[Z_U(e)]}}}};
return v};var mX=function(v,e,d){this.JSC$17673_upliftPromise=v;this.store=e;this.JSC$17673_persistentStorePromiseAccessor=d};
mX.prototype.shouldPreferLocalResponse=function(){return!1};
mX.prototype.localInnertubeResponse=function(){return _.I(function(v){return v.return(Promise.reject(Error("Yi")))})};
mX.prototype.canProvideFallbackResponse=function(){return!0};
mX.prototype.localFallbackInnertubeResponse=function(){var v=this,e,d,E,T;return _.I(function(S){switch(S.nextAddress){case 1:return S.yield(v.JSC$17673_persistentStorePromiseAccessor(),2);case 2:return e=S.yieldResult,S.yield(pr(e),3);case 3:return d=S.yieldResult,E={responseContext:{},topbar:d},S.yield(v.JSC$17673_upliftPromise,4);case 4:return S.yield(D7(v.JSC$17673_upliftPromise,v.store),5);case 5:return T=S.yieldResult,E.watchStatus={backgroundPromoRenderer:T},S.return(E)}})};_.S6s=new _.nC("ENDPOINT_MAP");var Wgs=function(){var v=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return v.sequenceMap}}},yjB=function(v,e,d){var E,T=(E=e.config)==null?void 0:E.sequenceStrategy;
if(!T)return d();v.sequenceMap.has(T.sequenceKey)||v.sequenceMap.set(T.sequenceKey,[]);v=v.sequenceMap.get(T.sequenceKey);switch(T.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return a0i(v,e,d);case "REQUEST_SEQUENCE_TYPE_REPLACE":return i7C(v,e,d);default:throw new _.kL("Request could not be sequenced",e);}},a0i=function(v,e,d){var E,T,S;
return _.I(function(O){v.length>0?(T=v[v.length-1],E=T.responsePromise.then(function(){return d()})):E=d();
S={request:e,responsePromise:E};v.push(S);O7w(v,S);return O.return(S.responsePromise)})},i7C=function(v,e,d){d=d();
if(v.length>0)for(var E=_.a(v),T=E.next();!T.done;T=E.next())T.value.responsePromise=d;var S={request:e,responsePromise:d};v.push(S);O7w(v,S);return Promise.resolve().then(function(){return v.indexOf(S)>0?S.responsePromise.then(function(O){return Object.assign({},O,{sequenceMetaData:{skipProcessing:!0}})}):S.responsePromise})},O7w=function(v,e){e.responsePromise.then(function(){var d=v.indexOf(e);
d>-1&&v.splice(d,1)})};var I0s=new _.nC("REQUEST_SEQUENCING");var F0=function(){};
_.V(F0,YK);F0.prototype.getApiPaths=function(){return[]};
F0.prototype.getExtension=function(v){return _.L(v,k5c)};
F0.prototype.JSC$13090_buildRequest=function(v,e){v.recaptchaToken=e.recaptchaToken};
F0.prototype.getApiUrl=function(){return"/das_captcha"};var QA=function(){};
_.V(QA,YK);QA.prototype.getApiPaths=function(){return $Je};
QA.prototype.getExtension=function(v){return _.L(v,pBM)};
QA.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.createBackstagePostParams&&(v.createBackstagePostParams=e.createBackstagePostParams);d.comment_text&&(v.commentText=d.comment_text);if(d.attached_video_id)v.videoAttachment={videoId:d.attached_video_id};else if(d.image_poll_options)v.pollAttachmentData={options:d.image_poll_options};else if(d.poll_options)v.pollAttachment={choices:d.poll_options};else if(d.quiz_options)v.quizAttachmentData={options:d.quiz_options};else if(d.image_blob_id)v.imageAttachment=
{encryptedBlobId:d.image_blob_id},d.source_video_id&&(v.imageAttachment.sourceExternalVideoId=d.source_video_id),d.image_preview_coordinates&&(v.imageAttachment.previewCoordinates=JSON.parse(d.image_preview_coordinates));else if(d.images_data)v.imagesAttachment={imagesData:d.images_data};else if(d.clip_external_video_id!==void 0||d.clip_offset_ms!==void 0||d.clip_duration_ms!==void 0){var E,T,S,O,b;v.clipAttachment={externalVideoId:(S=d.clip_external_video_id)!=null?S:"",offsetMs:(O=(E=d.clip_offset_ms)==
null?void 0:E.toString())!=null?O:"",durationMs:(b=(T=d.clip_duration_ms)==null?void 0:T.toString())!=null?b:""}}else d.shared_post_id&&(v.sharedPostAttachment={postId:d.shared_post_id});d.tagged_video_id&&(v.postCreationData={taggedVideoId:d.tagged_video_id});d.access_restrictions&&(typeof d.access_restrictions==="number"&&(e=d.access_restrictions,v.accessRestrictions={restriction:e!==1&&e===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof d.access_restrictions==="string"&&
(v.accessRestrictionsParams=d.access_restrictions));d.scheduled_publish_time_sec&&(v.scheduledPublishTimeSec=d.scheduled_publish_time_sec.toString())};var gw=function(){};
_.V(gw,YK);gw.prototype.getApiPaths=function(){return oXJ};
gw.prototype.getExtension=function(v){return _.L(v,$5n)};
gw.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.decorateMessageParams&&(v.params=e.decorateMessageParams);d.text&&(v.text=d.text)};var uN=function(){};
_.V(uN,YK);uN.prototype.getApiPaths=function(){return QPg};
uN.prototype.getExtension=function(v){return _.L(v,vN7)};
uN.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;d.video_id&&(v.videoId=d.video_id)};var nc=function(){};
_.V(nc,YK);nc.prototype.getApiPaths=function(){return UJi};
nc.prototype.getExtension=function(v){return _.L(v,_.KB)};
nc.prototype.JSC$13090_buildRequest=function(v,e,d){d.suggestions_query&&(v.input=d.suggestions_query)};var Ds=function(){};
_.V(Ds,YK);Ds.prototype.getApiPaths=function(){return fd2};
Ds.prototype.getExtension=function(v){return _.L(v,ew7)};
Ds.prototype.JSC$13090_buildRequest=function(v,e,d){d.comment_text!==void 0&&(v.commentText=d.comment_text);d.scheduled_publish_time_sec&&(v.scheduledPublishTimeSec=d.scheduled_publish_time_sec.toString());v.updateBackstagePostParams=e.updateBackstagePostParams};var Up=function(){};
_.V(Up,YK);Up.prototype.getApiPaths=function(){return wp};
Up.prototype.getExtension=function(v){return _.L(v,_.Ha)};
Up.prototype.JSC$13090_buildRequest=function(v,e,d){d.formData&&(v.formData=d.formData);e.token?v.continuation=e.token:e.continuationTokenKey&&(d=_.d1().getState(),e=_.h_(d.entities,"continuationTokenEntity",e.continuationTokenKey))&&(v.continuation=String(e.continuationToken))};
var b71=function(){};
_.V(b71,YK);_.W=b71.prototype;_.W.getApiPaths=function(){return wp};
_.W.getExtension=function(v){return _.L(v,_.Lo)};
_.W.isNavigationCommand=function(){return!0};
_.W.JSC$13097_getStoreKey=function(v){if((v=this.getExtension(v))&&v.browseId){var e={browseId:v.browseId};v.browseEndpointContextSupportedConfigs&&(e.browseEndpointContextSupportedConfigs=JSON.stringify(v.browseEndpointContextSupportedConfigs));v.params&&(e.params=v.params);v.query&&(e.query=v.query);return _.Uw("browse",e)}};
_.W.JSC$13090_buildRequest=function(v,e,d){e.browseId&&(v.browseId=e.browseId);e.params&&(v.params=e.params);e.query&&(v.query=e.query);d.formData?v.formData=d.formData:e.formData&&(v.formData=e.formData);e.browseId==="FEsubscriptions"&&_.LB().getFlag(155)&&(v.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");e.browseId==="SPaccount_playback"&&(d=_.LB(),v.formData||(v.formData={}),v.formData.accountSettingsFormData={flagCaptionsDefaultOff:d.getFlag(65),flagAutoCaptionsDefaultOn:d.getFlag(66),
flagDisableInlinePreview:d.getFlag(186),flagAudioDescriptionDefaultOn:d.getFlag(198)});if(e.browseId==="FEwhat_to_watch"){d=_.LB();var E=d.getFlag(196);d.getFlag(197)&&(v.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:E}}})}e.browseId==="FEwhat_to_watch"&&(e=_.LB().getFlag(186),v.inlineSettingStatus=e?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.W.getRequestConfig=function(v,e){e=e===void 0?{}:e;var d={};if(v=this.JSC$13097_getStoreKey(v,e))d.storeStrategy={storeKey:v,disableCache:e.disableCache};_.N("web_log_browse_ticks_ks")||(d.requestTick="br_s",d.responseTick="br_r");return d};var pc=function(){};
_.V(pc,YK);pc.prototype.getApiPaths=function(){return mJ2};
pc.prototype.getExtension=function(v){return _.L(v,MP6)};
pc.prototype.JSC$13090_buildRequest=function(v,e,d){v.legacyYoutubeChannelUsername=d.legacyYouTubeChannelUsername||"";v.legacyYoutubeChannelPassword=d.legacyYouTubeChannelPassword||""};var vL=function(){};
_.V(vL,YK);vL.prototype.getApiPaths=function(){return jjM};
vL.prototype.getExtension=function(v){return _.L(v,Oyc)};
vL.prototype.JSC$13090_buildRequest=function(v,e,d){d.recaptcha_response_token&&(v.recaptchaResponseToken=d.recaptcha_response_token);d.channel_id&&(v.channelId=d.channel_id)};var ez=function(){};
_.V(ez,YK);ez.prototype.getApiPaths=function(){return Rne};
ez.prototype.getExtension=function(v){return _.L(v,qdE)};
ez.prototype.JSC$13090_buildRequest=function(v,e,d){e.externalChannelId&&(v.externalChannelId=e.externalChannelId);d.handle&&(v.handleUpdate={handle:d.handle},e.handleEditSource&&(v.handleUpdate.handleEditSource=e.handleEditSource))};var d7=function(){};
_.V(d7,YK);d7.prototype.getApiPaths=function(){return COB};
d7.prototype.getExtension=function(v){return _.L(v,XJe)};
d7.prototype.JSC$13090_buildRequest=function(v,e,d){e.request&&(v.channelId=e.request.channelId);var E;if(d==null?0:(E=d.uploadDefaults)==null?0:E.emojiReactionSet)v.uploadDefaultsRequest||(v.uploadDefaultsRequest={}),v.uploadDefaultsRequest.emojiReactionSet=d.uploadDefaults.emojiReactionSet};var Et=function(){};
_.V(Et,YK);Et.prototype.getApiPaths=function(){return ld2};
Et.prototype.getExtension=function(v){return _.L(v,IHe)};
Et.prototype.JSC$13090_buildRequest=function(v,e,d){e.externalChannelId&&(v.externalChannelId=e.externalChannelId);e.channelHandleEntityKey&&(v.channelHandleEntityKey=e.channelHandleEntityKey);e.handleEditSource&&(v.handleEditSource=e.handleEditSource);d.handle?v.handle=d.handle:d.name&&(v.name=d.name)};var T_=function(){};
_.V(T_,YK);T_.prototype.getApiPaths=function(){return rui};
T_.prototype.getExtension=function(v){return _.L(v,v_0)};
T_.prototype.JSC$13090_buildRequest=function(v,e){e.actions?v.actions=e.actions:e.action&&(v.actions=[e.action])};var Sz=function(){};
_.V(Sz,YK);Sz.prototype.getApiPaths=function(){return hBg};
Sz.prototype.getExtension=function(v){return _.L(v,_.Ha)};
Sz.prototype.JSC$13090_buildRequest=function(v,e){e.token&&(v.continuation=e.token)};var WL=function(){};
_.V(WL,YK);WL.prototype.getApiPaths=function(){return wk7};
WL.prototype.getExtension=function(v){return _.L(v,_.Ha)};
WL.prototype.JSC$13090_buildRequest=function(v,e){v.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";e.token&&(v.fetchCommentsParams={continuation:e.token})};var af=function(){};
_.V(af,YK);af.prototype.getApiPaths=function(){return NKM};
af.prototype.getExtension=function(v){return _.L(v,pDB)};
af.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.createReplyParams&&(v.createReplyParams=e.createReplyParams);e.commentText&&(v.commentText=_.vv(e.commentText));d.comment_text&&(v.commentText=d.comment_text);d.image_blob_id&&(v.imageAttachment={encryptedBlobId:d.image_blob_id});d.botguard_response&&(v.botguardResponse=d.botguard_response)};
_.vP.Object.defineProperties(af.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ot=function(){};
_.V(Ot,YK);Ot.prototype.getApiPaths=function(){return kuM};
Ot.prototype.getExtension=function(v){return _.L(v,_.U5c)};
Ot.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.createCommentParams&&(v.createCommentParams=e.createCommentParams);e.commentText&&(v.commentText=_.vv(e.commentText));e.videoPositionMention&&(v.videoPositionMention=e.videoPositionMention);e.sources&&(v.sources=e.sources);d.comment_text&&(v.commentText=d.comment_text);d.attached_video_id?v.videoAttachment={videoId:d.attached_video_id}:d.poll_options?v.pollAttachment={choices:d.poll_options}:d.image_blob_id?v.imageAttachment=
{encryptedBlobId:d.image_blob_id}:d.shared_post_id&&(v.sharedPostAttachment={postId:d.shared_post_id});d.access_restrictions&&typeof d.access_restrictions==="number"&&(e=d.access_restrictions,v.accessRestrictions={restriction:e!==1&&e===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});d.botguard_response&&(v.botguardResponse=d.botguard_response)};
_.vP.Object.defineProperties(Ot.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var If=function(){};
_.V(If,YK);If.prototype.getApiPaths=function(){return PO7};
If.prototype.getExtension=function(v){return _.L(v,dNJ)};
If.prototype.JSC$13090_buildRequest=function(v,e,d){e.commentText&&(v.replyText=_.vv(e.commentText));d.comment_text&&(v.replyText=d.comment_text);v.updateReplyParams=e.updateReplyParams};
_.vP.Object.defineProperties(If.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bt=function(){};
_.V(bt,YK);bt.prototype.getApiPaths=function(){return xp6};
bt.prototype.getExtension=function(v){return _.L(v,exM)};
bt.prototype.JSC$13090_buildRequest=function(v,e,d){e.commentText&&(v.commentText=_.vv(e.commentText));d.comment_text&&(v.commentText=d.comment_text);v.updateCommentParams=e.updateCommentParams};
_.vP.Object.defineProperties(bt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var YR=function(){};
_.V(YR,YK);YR.prototype.getApiPaths=function(){return BYi};
YR.prototype.getExtension=function(v){return _.L(v,PIE)};
YR.prototype.JSC$13090_buildRequest=function(v,e){e.settings&&(v.settings=e.settings)};var me=function(){};
_.V(me,YK);me.prototype.getApiPaths=function(){return Xk2};
me.prototype.getExtension=function(v){return _.L(v,byc)};
me.prototype.JSC$13090_buildRequest=function(v,e){e.channelCreationToken&&(v.channelCreationToken=e.channelCreationToken);e.source&&(v.source=e.source)};var yr=function(){};
_.V(yr,YK);yr.prototype.getApiPaths=function(){return sPI};
yr.prototype.getExtension=function(v){return _.L(v,ytJ)};
yr.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;if(d.name&&(d.given_name||d.family_name))v=new _.kL("channel creation cannot set both GAIA and YouTube names",e),_.RI(v);else{if(e.zeroStepChannelCreationParams){if(!d.comment_text){v=new _.kL("zero_step_create_comment_params but no zero_step_texts",e);_.RI(v);return}v.zeroStepChannelCreationParams=e.zeroStepChannelCreationParams;v.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(v.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
d.comment_text,d.botguard_response&&(v.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=d.botguard_response))}v.channelCreationToken=e.channelCreationToken;d.given_name&&(v.givenName=d.given_name);d.family_name&&(v.familyName=d.family_name);e.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(v.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(d.name||d.handle||d.avatar_url||d.encryptedBlobId||d.isNameChanged!==void 0||d.isHandleChanged!==void 0||d.isDefaultProfilePhoto!==
void 0||d.obakeImageSource)v.overrideChannelCreationParams={},d.name&&(v.overrideChannelCreationParams.name=d.name),d.handle&&(v.overrideChannelCreationParams.handle=d.handle),d.avatar_url&&(v.overrideChannelCreationParams.avatarUrl=d.avatar_url),d.encryptedBlobId&&(v.overrideChannelCreationParams.blobEncryptionId=d.encryptedBlobId),d.enableIdentityForAllChannelCreationDialog&&(d.encryptedBlobId?v.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
d.isDefaultProfilePhoto!==void 0&&(v.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=d.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),d.isNameChanged!==void 0&&(v.overrideChannelCreationParams.identityForAllChannelCreationNameTag=d.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),d.isHandleChanged!==
void 0&&(v.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=d.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),d.obakeImageSource&&(v.overrideChannelCreationParams.obakeImageSourceType=d.obakeImageSource))}};var qI=function(){};
_.V(qI,YK);qI.prototype.getApiPaths=function(v){return(v=this.getExtension(v))&&v.status==="DISLIKE"?t4u:v&&v.status==="INDIFFERENT"?qCn:E1B};
qI.prototype.getExtension=function(v){return _.L(v,_.Bj)};
qI.prototype.JSC$13090_buildRequest=function(v,e){e.target&&(v.target=e.target);if(e=this.getParams(e))v.params=e};
qI.prototype.getParams=function(v){switch(v==null?void 0:v.status){case "DISLIKE":return v.dislikeParams;case "INDIFFERENT":return v.removeLikeParams;default:return v==null?void 0:v.likeParams}};var r7=function(){};
_.V(r7,YK);r7.prototype.getApiPaths=function(){return Vqu};
r7.prototype.getExtension=function(v){return _.L(v,iei)};
r7.prototype.JSC$13090_buildRequest=function(v,e){e.settingItemId&&(v.settingItemId=e.settingItemId);e.stringValue!=null&&e.stringValue!==void 0?v.newValue={stringValue:e.stringValue}:e.intValue?v.newValue={intValue:e.intValue}:e.boolValue!==null&&e.boolValue!==void 0?v.newValue={boolValue:e.boolValue}:(v=new _.kL("Unknown value type for SetSettingEndpoint.",e),_.RI(v))};var h3=function(){};
_.V(h3,YK);h3.prototype.getApiPaths=function(){return GTg};
h3.prototype.getExtension=function(v){return _.L(v,MNi)||void 0};
h3.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.channelIds&&(v.channelIds=e.channelIds);e.siloName&&(v.siloName=e.siloName);e.params&&(v.params=e.params);d.botguardResponse&&(v.botguardResponse=d.botguardResponse);d.feature&&(v.clientFeature=d.feature)};
_.vP.Object.defineProperties(h3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KZ=function(){};
_.V(KZ,YK);KZ.prototype.getApiPaths=function(){return tq7};
KZ.prototype.getExtension=function(v){return _.L(v,Oei)||void 0};
KZ.prototype.JSC$13090_buildRequest=function(v,e){e.channelIds&&(v.channelIds=e.channelIds);e.siloName&&(v.siloName=e.siloName);e.params&&(v.params=e.params)};
_.vP.Object.defineProperties(KZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $R=function(v){this.shareClientParamsProvider=v};
_.V($R,YK);$R.prototype.getApiPaths=function(){return uRH};
$R.prototype.getExtension=function(v){return _.L(v,Cyc)||_.L(v,_.XAu)||_.L(v,Bs7)};
$R.prototype.JSC$13090_buildRequest=function(v,e){e.serializedShareEntity&&(v.serializedSharedEntity=e.serializedShareEntity);if(e.clientParamIdentifier){var d;if((d=this.shareClientParamsProvider)==null?0:d.clientParams.has(e.clientParamIdentifier)){d=this.shareClientParamsProvider;e=e.clientParamIdentifier;var E=d.clientParams.get(e);E&&d.clientParams.delete(e);v.clientParams=E}}};
$R[ua]=[rJ2];var jz=function(){};
_.V(jz,YK);jz.prototype.getApiPaths=function(){return IKI};
jz.prototype.getExtension=function(v){return _.L(v,lfI)};
jz.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var st=function(){};
_.V(st,YK);st.prototype.getApiPaths=function(){return fKi};
st.prototype.getExtension=function(v){return _.L(v,CaA)};
st.prototype.JSC$13090_buildRequest=function(v,e){e.dismissal&&(v.items=[e.dismissal])};
_.vP.Object.defineProperties(st.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var NI=function(){};
_.V(NI,YK);NI.prototype.getApiPaths=function(){return ene};
NI.prototype.getExtension=function(v){return _.L(v,_.LO)||void 0};
NI.prototype.JSC$13090_buildRequest=function(v,e,d){v.feedbackTokens=[];e.feedbackToken&&v.feedbackTokens.push(e.feedbackToken);if(e=e.cpn||d.cpn)v.feedbackContext={cpn:e};v.isFeedbackTokenUnencrypted=!!d.is_feedback_token_unencrypted;v.shouldMerge=!1;d.extra_feedback_tokens&&(v.shouldMerge=!0,v.feedbackTokens=v.feedbackTokens.concat(d.extra_feedback_tokens))};
_.vP.Object.defineProperties(NI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kR=function(){};
_.V(kR,YK);kR.prototype.getApiPaths=function(){return ene};
kR.prototype.getExtension=function(v){return _.L(v,_.KB)};
kR.prototype.JSC$13090_buildRequest=function(v,e,d){d.feedback_tokens&&(v.feedbackTokens=d.feedback_tokens,v.shouldMerge=!0)};
_.vP.Object.defineProperties(kR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LZ=function(){};
_.V(LZ,YK);LZ.prototype.getApiPaths=function(){return ene};
LZ.prototype.getExtension=function(v){return _.L(v,UmL)};
LZ.prototype.JSC$13090_buildRequest=function(v,e){e.undoToken&&(v.feedbackTokens=[e.undoToken]);e.isUndoTokenUnencrypted&&(v.isFeedbackTokenUnencrypted=e.isUndoTokenUnencrypted)};
_.vP.Object.defineProperties(LZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vr=function(){};
_.V(Vr,YK);Vr.prototype.getApiPaths=function(){return HEB};
Vr.prototype.getExtension=function(v){return _.L(v,PaM)};
Vr.prototype.JSC$13090_buildRequest=function(v,e){e.nextEndpoint&&_.L(e.nextEndpoint,_.wb)?v.nextEndpoint={urlEndpoint:_.L(e.nextEndpoint,_.wb)}:e.nextEndpoint&&_.L(e.nextEndpoint,_.p2)&&(v.nextEndpoint={watchEndpoint:_.L(e.nextEndpoint,_.p2)});e.setRacy&&(v.setRacy=e.setRacy);e.setControvercy&&(v.setControvercy=e.setControvercy)};var of=function(v){this.JSC$17854_storeWithEntities=v};
_.V(of,YK);of.prototype.getApiPaths=function(){return PV6};
of.prototype.getExtension=function(v){return _.L(v,Ty6)};
of.prototype.JSC$13090_buildRequest=function(v,e){e.flowId&&(v.flowId=e.flowId);e.targetId&&(v.targetId=e.targetId);e.continuation&&(v.continuation=e.continuation);var d=e.flowStateEntityKey;if(e.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&d&&this.JSC$17854_storeWithEntities){var E;if(e=(E=this.JSC$17854_storeWithEntities.getState())==null?void 0:E.entities)if(E=_.bq(d).entityType,E=_.h_(e,E,d))v.flowState=E,v.flowStateEntityKey=d}};
_.vP.Object.defineProperties(of.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
of[ua]=[v0];var Y6s=function(){};
_.V(Y6s,YK);_.W=Y6s.prototype;_.W.getApiPaths=function(){return v1g};
_.W.JSC$13097_getStoreKey=function(){return _.Uw("guide")};
_.W.getRequestConfig=function(){var v=this.JSC$13097_getStoreKey(),e;v&&(e={storeStrategy:{storeKey:v}});return e};
_.W.isNavigationCommand=function(){return!0};
_.W.getExtension=function(v){return _.L(v,_.KB)};
_.W.JSC$13090_buildRequest=function(v){v.fetchLiveState=!0};var J3=function(){};
_.V(J3,YK);J3.prototype.getApiPaths=function(){return yue};
J3.prototype.getExtension=function(v){return _.L(v,uYM)};
J3.prototype.JSC$13090_buildRequest=function(){};var G_=function(){};
_.V(G_,YK);G_.prototype.getApiPaths=function(){return qFi};
G_.prototype.getExtension=function(v){return _.L(v,nwn)};
G_.prototype.JSC$13090_buildRequest=function(){};var MI=function(){};
_.V(MI,YK);MI.prototype.getApiPaths=function(){return OgI};
MI.prototype.getExtension=function(v){return _.L(v,_.Ha)};
MI.prototype.JSC$13090_buildRequest=function(v,e){e.token&&(v.continuation=e.token);var d,E;v==null||(d=v.context)==null||(E=d.user)==null||delete E.onBehalfOfUser};
MI.prototype.getRequestConfig=function(v){var e={},d;if(((d=this.getExtension(v))==null?void 0:d.sessionIndex)!==void 0){var E;e={authStrategy:{sessionIndex:(E=this.getExtension(v))==null?void 0:E.sessionIndex}}}return e};var t3=function(){};
_.V(t3,YK);t3.prototype.JSC$13090_getRequest=function(v){var e=this.getExtension(v),d=v="";if(e==null?0:e.popup)v="true";if(e==null?0:e.disableSignout)d="true";e={};return{input:"/getAccountSwitcherEndpoint",requestShell:D_("/getAccountSwitcherEndpoint","GET",(e["X-YouTube-Delegation-Context"]=_.Bb("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),e["X-YouTube-Account-Switcher-Popup"]=v,e["X-YouTube-Account-Switcher-Disable-Signout"]=d,e)),innerTubeRequest:{}}};
t3.prototype.getApiPaths=function(){return[]};
t3.prototype.getExtension=function(v){return _.L(v,_.C7$)};
t3.prototype.JSC$13090_buildRequest=function(){};var fZ=function(){};
_.V(fZ,YK);fZ.prototype.JSC$13090_getRequest=function(v){var e="/cross_account_channel_transfer";(v=this.getExtension(v))&&(e=jq3(e,{target_session:v.targetSessionIndex,source_rapt:v.sourceRapt,rapt:v.targetRapt}));return{input:e,requestShell:D_(e,"GET"),innerTubeRequest:{}}};
fZ.prototype.getApiPaths=function(){return[]};
fZ.prototype.getExtension=function(v){return _.L(v,Mjc)};
fZ.prototype.JSC$13090_buildRequest=function(){};var Rf=function(){};
_.V(Rf,YK);Rf.prototype.getApiPaths=function(){return xJ2};
Rf.prototype.isNavigationCommand=function(){return!0};
Rf.prototype.getExtension=function(v){return _.L(v,_.KB)};
Rf.prototype.JSC$13090_buildRequest=function(v){var e=_.LB().get("gsml","");e&&(v.safetyModeLockerObfuscatedGaiaId=e);v.userInterfaceTheme=_.Pv(!0);_.xE()?v.deviceTheme="DEVICE_THEME_SELECTED":_.fdO()?v.deviceTheme="DEVICE_THEME_SUPPORTED":v.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var PL=function(){};
_.V(PL,YK);PL.prototype.getApiPaths=function(){return OgI};
PL.prototype.getExtension=function(v){return _.L(v,tjA)};
PL.prototype.JSC$13090_buildRequest=function(v,e){if(e&&e.requestType&&(v.requestType=e.requestType,e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var d=e.nextUrl;d&&(_.NVt(d)||p4(d))&&(v.nextNavendpoint={urlEndpoint:{url:d}})}e&&e.channelSwitcherQuery&&(v.channelSwitcherQuery=e.channelSwitcherQuery);e&&e.triggerChannelCreation&&(v.triggerChannelCreation=e.triggerChannelCreation);var E;if(e==null?0:(E=e.contentOwnerConfig)==
null?0:E.externalContentOwnerId)v.contentOwnerConfig=e.contentOwnerConfig;v.callCircumstance=e&&e.requestType&&e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var T,S;e=v==null?void 0:(T=v.context)==null?void 0:(S=T.user)==null?void 0:S.onBehalfOfUser;if(e!==void 0){v.obfuscatedSelectedGaiaId=e;var O,b;v==null||(O=v.context)==null||(b=O.user)==null||delete b.onBehalfOfUser}var Y,q;if(T=v==null?void 0:(Y=v.context)==null?void 0:(q=Y.user)==null?
void 0:q.serializedDelegationContext)v.selectedSerializedDelegationContext=T};var xR=function(){};
_.V(xR,YK);xR.prototype.getApiPaths=function(){return bgi};
xR.prototype.getExtension=function(v){return _.L(v,zvI)};
xR.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var BL=function(){};
_.V(BL,YK);BL.prototype.getApiPaths=function(){return jPE};
BL.prototype.getExtension=function(v){return _.L(v,_.pXn)};
BL.prototype.JSC$13090_buildRequest=function(v,e){if(e=e.createBroadcastRequest)v.useMasks=e.useMasks,v.broadcastType=e.broadcastType,v.broadcastSource=e.broadcastSource,v.broadcastMetadata=e.broadcastMetadata,v.broadcastMetadataMask=e.broadcastMetadataMask,v.videoMetadata=e.videoMetadata,v.videoMetadataMask=e.videoMetadataMask,v.liveChatSettingsUpdate=e.liveChatSettingsUpdate,v.liveChatSettingsUpdateMask=e.liveChatSettingsUpdateMask,v.cloneVideoId=e.cloneVideoId,v.cloneWithOverrides=e.cloneWithOverrides,
v.targetEntity=e.targetEntity,v.scheduledRedirectMetadata=e.scheduledRedirectMetadata};var CZ=function(){};
_.V(CZ,YK);CZ.prototype.getApiPaths=function(){return LM6};
CZ.prototype.getExtension=function(v){return _.L(v,w67)};
CZ.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.params&&(v.params=e.params);d.questionText&&(v.questionText=d.questionText);d.optionText&&d.optionText.length>0&&(v.optionText=d.optionText)};var Xw=function(){};
_.V(Xw,YK);Xw.prototype.getApiPaths=function(){return JuM};
Xw.prototype.getExtension=function(v){return _.L(v,Zle)};
Xw.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var z_=function(){};
_.V(z_,YK);z_.prototype.getApiPaths=function(){return lKn};
z_.prototype.getExtension=function(v){return _.L(v,z8I)};
z_.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var lt=function(){};
_.V(lt,YK);lt.prototype.getApiPaths=function(){return Aug};
lt.prototype.getExtension=function(v){return _.L(v,lcn)};
lt.prototype.JSC$13090_buildRequest=function(v,e,d){e.params&&(v.params=e.params);e.continuation&&(v.continuation=e.continuation);d.currentPlayerState&&d.currentPlayerState.playerOffsetMs&&(v.currentPlayerState={playerOffsetMs:d.currentPlayerState.playerOffsetMs.toString()})};var HL=function(){};
_.V(HL,YK);HL.prototype.getApiPaths=function(){return Zgu};
HL.prototype.getExtension=function(v){return _.L(v,X6u)};
HL.prototype.JSC$13090_buildRequest=function(v,e,d){e.params&&(v.params=e.params);d.continuation&&(v.continuation=d.continuation);"hidden"in d&&(v.webClientInfo={isDocumentHidden:d.hidden});d.isInvalidationTimeoutRequest&&(v.isInvalidationTimeoutRequest=d.isInvalidationTimeoutRequest);d.invalidationPayload&&(e=CP6(_.U0(vi(d.invalidationPayload))),v.invalidationPayloadLastPublishAtUsec=Jn(e,2));d.reloadActionPanel&&(v.reloadActionPanel=d.reloadActionPanel);d.fullReload&&(v.fullReload=d.fullReload);
d.currentPlayerState&&(v.currentPlayerState=d.currentPlayerState)};var A3=function(){};
_.V(A3,YK);A3.prototype.getApiPaths=function(){return TYe};
A3.prototype.getExtension=function(v){return _.L(v,cCg)};
A3.prototype.JSC$13090_buildRequest=function(v,e){v.params=e.params};var ZO=function(){};
_.V(ZO,YK);ZO.prototype.getApiPaths=function(){return Hgc};
ZO.prototype.getExtension=function(v){return _.L(v,eMn)};
ZO.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var cL=function(){};
_.V(cL,YK);cL.prototype.getApiPaths=function(){return cuM};
cL.prototype.getExtension=function(v){return _.L(v,d56)};
cL.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var w7=function(){};
_.V(w7,YK);w7.prototype.getApiPaths=function(){return SCA};
w7.prototype.getExtension=function(v){return _.L(v,Fuu)};
w7.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var Fw=function(){};
_.V(Fw,YK);Fw.prototype.getApiPaths=function(){return ad0};
Fw.prototype.getExtension=function(v){return _.L(v,Q4n)};
Fw.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var Qr=function(){};
_.V(Qr,YK);Qr.prototype.getApiPaths=function(){return rxI};
Qr.prototype.getExtension=function(v){return _.L(v,A9g)};
Qr.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var g7=function(){};
_.V(g7,YK);g7.prototype.getApiPaths=function(){return kT2};
g7.prototype.getExtension=function(v){return _.L(v,_.gi7)};
g7.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.params&&(v.params=e.params);d.client_message_id&&(v.clientMessageId=d.client_message_id);d.recaptcha_token&&(v.recaptchaToken=d.recaptcha_token);d.rich_message&&d.rich_message.text_segments?(e=d.rich_message.text_segments.map(function(E){var T={};E.text&&(T.text=E.text);E.emoji_id&&(T.emojiId=E.emoji_id);return T}),v.richMessage={textSegments:e}):d.message&&(v.message=d.message);
d.currentPlayerState&&(v.currentPlayerState=d.currentPlayerState)};var ut=function(){};
_.V(ut,YK);ut.prototype.getApiPaths=function(){return Lwc};
ut.prototype.getExtension=function(v){return _.L(v,u82)};
ut.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var nZ=function(){};
_.V(nZ,YK);nZ.prototype.getApiPaths=function(){return Mqu};
nZ.prototype.getExtension=function(v){return _.L(v,DYn)};
nZ.prototype.JSC$13090_buildRequest=function(v,e,d){e.isUserInitiated&&(v.isUserInitiated=e.isUserInitiated);e.initiationSource&&(v.initiationSource=e.initiationSource);d.locationInfo&&(v.context.client.locationInfo=d.locationInfo)};var DO=function(){};
_.V(DO,YK);DO.prototype.getApiPaths=function(){return Ww0};
DO.prototype.getExtension=function(v){return _.L(v,vln)};
DO.prototype.JSC$13090_buildRequest=function(v,e,d){e.metadataUpdateRequest&&(e=e.metadataUpdateRequest,v.encryptedVideoId=e.encryptedVideoId,e.liveChat&&(e=e.liveChat,v.liveChat||(v.liveChat={}),e.performAsExternalChannelId&&(v.liveChat.performAsExternalChannelId=e.performAsExternalChannelId),e.source&&(v.liveChat.source=e.source)));var E;if(d==null?0:(E=d.liveChat)==null?0:E.liveChatSettings)v.liveChat||(v.liveChat={}),d=d.liveChat.liveChatSettings,v.liveChat.newLiveChatSettings=d,v.liveChat.newLiveChatSettingsMask||
(v.liveChat.newLiveChatSettingsMask={}),d.emojiReactionSet&&(v.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Ut=function(){};
_.V(Ut,YK);Ut.prototype.getApiPaths=function(){return zn7};
Ut.prototype.getExtension=function(v){return _.L(v,_.ISI)};
Ut.prototype.JSC$13090_buildRequest=function(v,e,d){d.continuation?v.continuation=d.continuation:e.videoId&&(v.videoId=e.videoId);d.clientParams&&(v.clientParams=d.clientParams)};var pZ=function(){};
_.V(pZ,YK);pZ.prototype.getApiPaths=function(){return wk7};
pZ.prototype.getExtension=function(v){return _.L(v,_.f6)};
pZ.prototype.JSC$13090_buildRequest=function(v,e){v.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";v.fetchCommentsParams={};e.videoId&&(v.fetchCommentsParams.encryptedVideoId=e.videoId);e.postId&&(v.fetchCommentsParams.postId=e.postId);e.externalChannelId&&(v.fetchCommentsParams.externalChannelId=e.externalChannelId);e.linkedCommentId&&(v.fetchCommentsParams.linkedCommentId=e.linkedCommentId);(0,_.f0.isEmpty)(v.fetchCommentsParams)&&delete v.fetchCommentsParams};var vE=function(){};
_.V(vE,YK);vE.prototype.getApiPaths=function(){return wp};
vE.prototype.JSC$13090_buildRequest=function(v){v.browseId="FEnotifications_inbox"};
vE.prototype.getExtension=function(v){return _.L(v,_.KB)};var eJ=function(){};
_.V(eJ,YK);eJ.prototype.getApiPaths=function(){return wk7};
eJ.prototype.JSC$13090_buildRequest=function(v,e){e.signal==="GET_NOTIFICATIONS_MENU"&&(v.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");e.ctoken&&(v.ctoken=e.ctoken)};
var miw=function(){};
_.V(miw,eJ);miw.prototype.getExtension=function(v){return _.L(v,_.KB)};
var yei=function(){};
_.V(yei,eJ);yei.prototype.getExtension=function(v){return _.L(v,tPA)};var O5=function(){};
_.V(O5,YK);O5.prototype.getApiPaths=function(){return DJ6};
O5.prototype.getExtension=function(v){return _.L(v,_.KB)};
O5.prototype.JSC$13090_buildRequest=function(){};var I1=function(){};
_.V(I1,YK);I1.prototype.getApiPaths=function(){return iEE};
I1.prototype.getExtension=function(v){return _.L(v,STn)||void 0};
I1.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params);e.secondaryParams&&(v.secondaryParams=e.secondaryParams)};var b7=function(){};
_.V(b7,YK);b7.prototype.getApiPaths=function(){return OEn};
b7.prototype.getExtension=function(v){return _.L(v,leg)};
b7.prototype.JSC$13090_buildRequest=function(v,e){e.undo&&(v.undo=e.undo);e.serializedOptOut&&(v.serializedOptOut=e.serializedOptOut);e.serializedRecordInteractionsRequest&&(v.serializedRecordInteractionsRequest=e.serializedRecordInteractionsRequest)};var YP=function(){};
_.V(YP,YK);YP.prototype.getApiPaths=function(){return YC6};
YP.prototype.getExtension=function(v){return _.L(v,H$J)};
YP.prototype.JSC$13090_buildRequest=function(v,e){e.serializedInteractionsRequest&&(v.serializedRecordNotificationInteractionsRequest=e.serializedInteractionsRequest)};var mG=function(){};
_.V(mG,YK);mG.prototype.getApiPaths=function(){return ngM};
mG.prototype.getExtension=function(v){return _.L(v,wE$)};
mG.prototype.JSC$13090_buildRequest=function(v,e,d){e=e===void 0?{}:e;d=d===void 0?{}:d;e.videoId?v.videoId=e.videoId:e.playlistId&&(v.playlistId=e.playlistId);var E,T=(E=e.offlineWebClientEligibility)!=null?E:d.offlineWebClientEligibility;T&&(v.offlineWebClientEligibility=T);var S;if(E=(S=e.preferredFormatType)!=null?S:d.preferredFormatType)v.preferredFormatType=E;var O;if(S=(O=e.lastOfflineQualitySettingsSavedMs)!=null?O:d.lastOfflineQualitySettingsSavedMs)v.lastOfflineQualitySettingsSavedMs=S;
e.params&&(v.params=e.params)};var yz=function(){};
_.V(yz,YK);yz.prototype.getApiPaths=function(){return DG};
yz.prototype.getExtension=function(v){return _.L(v,_.Ha)};
yz.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.token&&(v.continuation=e.token);d.formData&&(v.formData=d.formData)};var qo=function(){};
_.V(qo,YK);qo.prototype.getApiPaths=function(){return DG};
qo.prototype.getExtension=function(v){return _.L(v,gZn)};
qo.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;v.continuation=d.continuation};var rO=function(){};
_.V(rO,YK);rO.prototype.getApiPaths=function(){return DG};
rO.prototype.getExtension=function(v){return _.L(v,_.k5)};
rO.prototype.JSC$13090_buildRequest=function(v,e){var d,E=e.panelIdentifier||((d=e.identifier)==null?void 0:d.tag);E&&(v.panelId=E);var T;if((T=e.globalConfiguration)==null?0:T.params){var S;v.params=(S=e.globalConfiguration)==null?void 0:S.params}};
_.vP.Object.defineProperties(rO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hB=function(){};
_.V(hB,YK);hB.prototype.getApiPaths=function(){return DG};
hB.prototype.getExtension=function(v){return _.L(v,Rre)};
hB.prototype.JSC$13090_buildRequest=function(v,e){e.panelLoadingStrategy&&u5t(v,e.panelLoadingStrategy)};var KS=function(){};
_.V(KS,YK);KS.prototype.getApiPaths=function(){return DG};
KS.prototype.getExtension=function(v){return _.L(v,USJ)};
KS.prototype.JSC$13090_buildRequest=function(v,e){e.loadingStrategy&&u5t(v,e.loadingStrategy)};var $P=function(){};
_.V($P,YK);$P.prototype.getApiPaths=function(){return DG};
$P.prototype.getExtension=function(v){return _.L(v,_.V0)};
$P.prototype.JSC$13090_buildRequest=function(v,e){e.panelLoadingStrategy&&u5t(v,e.panelLoadingStrategy)};var jJ=function(){};
_.V(jJ,YK);jJ.prototype.getApiPaths=function(){return DG};
jJ.prototype.getExtension=function(v){return _.L(v,pA7)};
jJ.prototype.JSC$13090_buildRequest=function(v,e){var d,E=(d=e.contentSourcePanelIdentifier)==null?void 0:d.tag;E&&(v.panelId=E);var T;if((T=e.globalConfiguration)==null?0:T.params){var S;v.params=(S=e.globalConfiguration)==null?void 0:S.params}};var s5=function(){};
_.V(s5,YK);s5.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
s5.prototype.getExtension=function(v){return _.L(v,vwu)};
s5.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var No=function(){};
_.V(No,YK);No.prototype.getApiPaths=function(){return X7g};
No.prototype.getExtension=function(v){return _.L(v,Ew2)};
No.prototype.JSC$13090_buildRequest=function(v,e){e.externalChannelId&&(v.externalChannelId=e.externalChannelId);e.superChatAction&&(v.superChatAction=e.superChatAction);e.superStickersAction&&(v.superStickersAction=e.superStickersAction)};var kP=function(){};
_.V(kP,YK);kP.prototype.getApiPaths=function(){return BKE};
kP.prototype.getExtension=function(v){return _.L(v,gwA)||_.L(v,Q10)};
kP.prototype.JSC$13090_buildRequest=function(v,e){e.videoIds?v.videoIds=e.videoIds:e.videoId&&(v.videoIds=[e.videoId]);e.playlistId&&(v.playlistId=e.playlistId);e.params&&(v.params=e.params);v.excludeWatchLater=!1};var LS=function(){};
_.V(LS,YK);LS.prototype.getApiPaths=function(){return V4i};
LS.prototype.getExtension=function(v){return _.L(v,_.z1)};
LS.prototype.JSC$13090_buildRequest=function(v,e,d){d.create_playlist_title?v.title=d.create_playlist_title:e.title&&(v.title=e.title);if(d.create_playlist_privacy_status&&typeof d.create_playlist_privacy_status==="number"){a:{var E=d.create_playlist_privacy_status;if(E!==0){if(E===1){E="PUBLIC";break a}if(E===2){E="UNLISTED";break a}}E="PRIVATE"}v.privacyStatus=E}else e.privacyStatus&&(v.privacyStatus=e.privacyStatus);d.create_playlist_description&&(v.description=d.create_playlist_description);e.videoIds&&
(v.videoIds=e.videoIds);e.params&&(v.params=e.params);e.sourcePlaylistId&&(v.sourcePlaylistId=e.sourcePlaylistId)};var Vz=function(){};
_.V(Vz,YK);Vz.prototype.getApiPaths=function(){return Guc};
Vz.prototype.getExtension=function(v){return _.L(v,E_A)};
Vz.prototype.JSC$13090_buildRequest=function(v,e){v.playlistId=e.playlistId};var o1=function(){};
_.V(o1,YK);o1.prototype.getApiPaths=function(){return FM6};
o1.prototype.getExtension=function(v){return _.L(v,PyE)};
o1.prototype.JSC$13090_buildRequest=function(v,e){e.playlistId&&(v.playlistId=e.playlistId);e.params&&(v.params=e.params)};var JB=function(){};
_.V(JB,YK);JB.prototype.getApiPaths=function(){return bE0};
JB.prototype.getExtension=function(v){return _.L(v,_.Ri)||void 0};
JB.prototype.JSC$13090_buildRequest=function(v,e){e.actions&&(v.actions=e.actions);e.params&&(v.params=e.params);e.playlistId&&(v.playlistId=e.playlistId)};var GG=function(){};
_.V(GG,YK);_.W=GG.prototype;_.W.getApiPaths=function(){return mpB};
_.W.getExtension=function(v){return _.L(v,_.Go)};
_.W.JSC$13090_buildRequest=function(v,e){e.videoId&&(v.playerRequest={videoId:e.videoId},e.playerParams&&(v.playerRequest.params=e.playerParams),e.racyCheckOk&&(v.playerRequest.racyCheckOk=!!e.racyCheckOk),e.contentCheckOk&&(v.playerRequest.contentCheckOk=!!e.contentCheckOk));e.params&&(v.params=e.params);e.inputType&&(v.inputType=e.inputType);v.disablePlayerResponse=!0};
_.W.getRequestConfig=function(v){var e;(v=this.JSC$13097_getStoreKey(v))&&(e={storeStrategy:{storeKey:v}});_.N("web_log_reels_ticks")&&(e=e||{},e.requestTick="r_wrs",e.responseTick="r_wrr");return e};
_.W.JSC$13097_getStoreKey=function(v){v=this.getExtension(v);if(_.N("shorts_controller_retrieve_seedless_sequence_v2")){if((v==null?void 0:v.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Uw("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.N("web_shorts_prefetch_service_enabled")&&v!=null&&v.videoId){var e={videoId:v.videoId};v.params&&(e.params=v.params);return _.Uw("reel_item_watch",e)}};var Mo=function(){};
_.V(Mo,YK);_.W=Mo.prototype;_.W.getApiPaths=function(){return yxJ};
_.W.getExtension=function(v){return _.L(v,_.Go)};
_.W.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;v.sequenceParams=e.sequenceParams;var E;((E=d)==null?0:E.contentPlaybackContext)&&_.N("web_shorts_prefetch_service_enabled")&&(v.playbackContext={contentPlaybackContext:d.contentPlaybackContext})};
_.W.JSC$13097_getStoreKey=function(v){if(_.N("web_enable_delay_shorts_sequence_call")||_.N("shorts_controller_retrieve_seedless_sequence_v2"))if(v=this.getExtension(v),v==null?0:v.sequenceParams)return _.Uw("reel_watch_sequence",{sequenceParams:v.sequenceParams})};
_.W.getRequestConfig=function(v){v=this.JSC$13097_getStoreKey(v);var e;v&&(e={storeStrategy:{storeKey:v}});_.N("reel_watch_sequence_request_log_ticks")&&(e=e||{},e.requestTick="r_wsrs",e.responseTick="r_wsrr",e.processorTick="r_wsrp");return e};
var tB=function(){};
_.V(tB,YK);tB.prototype.getApiPaths=function(){return yxJ};
tB.prototype.getExtension=function(v){return _.L(v,_.Ha)};
tB.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.token&&(v.continuation=e.token);var E;((E=d)==null?0:E.contentPlaybackContext)&&_.N("web_shorts_prefetch_service_enabled")&&(v.playbackContext={contentPlaybackContext:d.contentPlaybackContext})};
tB.prototype.getRequestConfig=function(v){v=this.JSC$13097_getStoreKey(v);var e;v&&(e={storeStrategy:{storeKey:v}});_.N("reel_watch_sequence_request_log_ticks")&&(e=e||{},e.requestTick="r_wsrs",e.responseTick="r_wsrr",e.processorTick="r_wsrp");return e};var fS=function(){};
_.V(fS,YK);fS.prototype.getApiPaths=function(){return RB2};
fS.prototype.getExtension=function(v){return _.L(v,_.Eic)};
fS.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.flagAction&&(v.action=e.flagAction);e.flagRequestType&&(v.flagRequestType=e.flagRequestType);e.additionalDetailCheckboxChecked&&(v.additionalDetailCheckboxChecked=e.additionalDetailCheckboxChecked);e.legalCheckboxChecked&&(v.legalCheckboxChecked=e.legalCheckboxChecked);e={};d.flag_issue_type!==void 0&&(e.issue=d.flag_issue_type);d.flag_affiliation!==void 0&&(e.affiliation=d.flag_affiliation);d.flag_full_name&&(e.fullName=d.flag_full_name);
Object.keys(e).length&&(v.legalReportDetails=e);if(d.flag_description||d.text)v.userComments=d.flag_description||d.text;e={};d.minutes!==void 0&&d.seconds!==void 0&&(e.minutes=d.minutes,e.seconds=d.seconds);d.vss_id&&(e.vssId=d.vss_id);Object.keys(e).length&&(v.videoReportDetails=e);e={};d.video_ids&&(e.videoIds=d.video_ids);d.impersonated_channel_url&&(e.impersonatedChannelUrl=d.impersonated_channel_url);Object.keys(e).length&&(v.channelAbuseReportDetails=e)};
_.vP.Object.defineProperties(fS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var R1=function(){};
_.V(R1,YK);R1.prototype.getApiPaths=function(){return zB7};
R1.prototype.getExtension=function(v){return _.L(v,G3E)};
R1.prototype.JSC$13090_buildRequest=function(v,e){e.blockedForKidsContent&&(v.blockedForKidsContent=e.blockedForKidsContent)};var PE=function(){};
_.V(PE,YK);PE.prototype.getApiPaths=function(){return hnA};
PE.prototype.getExtension=function(v){return _.L(v,FGL)};
PE.prototype.JSC$13090_buildRequest=function(v,e,d){v.params=e.params;d.impersonated_channel_url&&(v.impersonatedChannelUrl=d.impersonated_channel_url)};var xP=function(){};
_.V(xP,YK);xP.prototype.getApiPaths=function(){return dpB};
xP.prototype.getExtension=function(v){return _.L(v,_.MTM)};
xP.prototype.JSC$13090_buildRequest=function(v,e){e.items&&(v.items=e.items);e.kidGaiaId&&(v.kidGaiaId=e.kidGaiaId)};var BE=function(){};
_.V(BE,YK);BE.prototype.getApiPaths=function(){return CVc};
BE.prototype.getExtension=function(v){return _.L(v,_.wDi)};
BE.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params);e.targetId&&(v.targetId=e.targetId)};var CS=function(){};
_.V(CS,YK);CS.prototype.getApiPaths=function(){return sjg};
CS.prototype.getExtension=function(v){return _.L(v,ffA)};
CS.prototype.JSC$13090_buildRequest=function(v,e){e.externalVideoId&&(v.externalVideoId=e.externalVideoId);e.query&&(v.query=e.query);e.sourceTimelines&&(v.sourceTimelines=e.sourceTimelines)};var XH=function(){};
_.V(XH,YK);XH.prototype.getApiPaths=function(){return NYI};
XH.prototype.getExtension=function(v){return _.L(v,_.Ha)||void 0};
XH.prototype.JSC$13090_buildRequest=function(v,e){e.token&&(v.continuation=e.token)};
_.q6S=function(){};
_.V(_.q6S,YK);_.W=_.q6S.prototype;_.W.getApiPaths=function(){return NYI};
_.W.getExtension=function(v){return _.L(v,_.Vd)||void 0};
_.W.isNavigationCommand=function(){return!0};
_.W.JSC$13097_getStoreKey=function(v,e){e=e===void 0?{}:e;if(!e.disableCache&&(v=this.getExtension(v))&&v.query)return e={query:v.query},v.params&&(e.params=v.params),_.Uw("search",e)};
_.W.JSC$13090_buildRequest=function(v,e,d){e.query&&(v.query=e.query);e.params&&(v.params=e.params);if(!_.N("web_forward_suggest_stats_killswitch")){var E=_.L(e,ol6);E&&(v.suggestStats=E)}var T;!_.N("kevlar_searchbox_stats_killswitch")&&((T=d.tempData)==null?0:T.gs_l)&&!_.L(e,ol6)&&(v.webSearchboxStatsUrl="/search?oq="+(d.tempData.oq||"")+"&gs_l="+d.tempData.gs_l);var S;if((S=d.tempData)==null?0:S.entityMid)e=v.suggestionSearchParams||{},e.entityMid=d.tempData.entityMid,v.suggestionSearchParams=e;
if(_.N("enable_desktop_vdcbg_components")||_.N("enable_inline_muted_playback_on_web_search"))d=_.LB().getFlag(186),v.inlineSettingStatus=d?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.W.getRequestConfig=function(v,e){e=e===void 0?{}:e;v=this.JSC$13097_getStoreKey(v,e);var d;v&&(d={storeStrategy:{storeKey:v}});_.N("web_log_search_ticks_ks")||(d=d||{},d.requestTick="sr_s",d.responseTick="sr_r");return d};var zG=function(){};
_.V(zG,YK);zG.prototype.getApiPaths=function(){return uFI};
zG.prototype.getExtension=function(v){return _.L(v,qTg)};
zG.prototype.JSC$13090_buildRequest=function(v,e){e.serializedGetSharingProviderDataParams&&(v.serializedGetSharingProviderDataParams=e.serializedGetSharingProviderDataParams)};var l7=function(){};
_.V(l7,YK);l7.prototype.getApiPaths=function(){return nXE};
l7.prototype.getExtension=function(v){return _.L(v,UU2)};
l7.prototype.JSC$13090_buildRequest=function(v,e){e.endpoint&&(v.endpoint=e.endpoint);e.action&&(v.action=e.action)};var HE=function(){};
_.V(HE,YK);HE.prototype.getApiPaths=function(){return M4g};
HE.prototype.getExtension=function(v){return _.L(v,Toe)};
HE.prototype.JSC$13090_buildRequest=function(v,e){v.videoId=e.videoId;e.scheduledRedirectMetadataSourceVideoId&&(v.scheduledRedirectMetadata={sourceVideoId:e.scheduledRedirectMetadataSourceVideoId})};var AB=function(){};
_.V(AB,YK);AB.prototype.getApiPaths=function(){return o1B};
AB.prototype.getExtension=function(v){return _.L(v,_.EMu)};
AB.prototype.JSC$13090_buildRequest=function(v,e){v.params=e.params;v.correctionText=e.correctionText};var ZR=function(){};
_.V(ZR,YK);ZR.prototype.getApiPaths=function(){return QY$};
ZR.prototype.getExtension=function(v){return _.L(v,_.RY6)};
ZR.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params);v.searchQuery=e.searchQuery;v.languageCode=e.languageCode;v.kind=e.kind;v.name=e.name;v.externalVideoId=e.externalVideoId};var cE=function(){};
_.V(cE,YK);cE.prototype.getApiPaths=function(){return ZE0};
cE.prototype.getExtension=function(v){return _.L(v,hs6)};
cE.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.params=e.params)};var wO=function(v){this.JSC$18125_storeWithEntities=v};
_.V(wO,YK);wO.prototype.getApiPaths=function(){return KM6};
wO.prototype.getExtension=function(v){return _.L(v,$Zu)||_.L(v,se0)};
wO.prototype.JSC$13090_buildRequest=function(v,e,d){d.client_data&&(v.clientData=d.client_data);if(e.commerceActionConfig){var E=e.commerceActionConfig;e=E.actionId;E=E.commerceActionParams;e&&(v.actionId=e);E&&(v.commerceActionParams=E)}else{var T=e.actionId,S=e.commerceActionParams;d=e.entityKeys;T&&(v.actionId=T);S&&(v.commerceActionParams=S);var O;e=(E=this.JSC$18125_storeWithEntities)==null?void 0:(O=E.getState())==null?void 0:O.entities;if(d&&e){E=[];O=_.a(d);for(d=O.next();!d.done;d=O.next())if(T=
d.value,d=_.bq(T).entityType,T=_.h_(e,d,T))S={},E.push((S[d]=T,S));v.entityMutationPayloads=E}}};
wO.prototype.getRequestConfig=function(v){var e,d=(e=_.L(v,$Zu))==null?void 0:e.requestSequenceType;if(d&&v.clickTrackingParams&&d!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:v.clickTrackingParams,sequenceType:d}}};
wO[ua]=[v0];var FH=function(){};
_.V(FH,YK);FH.prototype.getApiPaths=function(){return cxu};
FH.prototype.getExtension=function(v){return _.L(v,_.lbg)};
FH.prototype.JSC$13090_buildRequest=function(v,e){e.feedbackData&&(v.feedbackData=e.feedbackData);e.params&&(v.itemParams=e.params)};
_.vP.Object.defineProperties(FH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Qz=function(){};
_.V(Qz,YK);Qz.prototype.getApiPaths=function(){return w7n};
Qz.prototype.getExtension=function(v){return _.L(v,HRn)};
Qz.prototype.JSC$13090_buildRequest=function(v,e,d){d.payments_payload&&(v.paymentsPayload=d.payments_payload);d.offer_params&&(v.offerParams=d.offer_params);e.transactionParams&&(v.transactionParams=e.transactionParams)};var gO=function(){};
_.V(gO,YK);gO.prototype.getApiPaths=function(){return FwA};
gO.prototype.getExtension=function(v){return _.L(v,_.A5M)};
gO.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.buybucketParams&&(v.buybucketData={params:e.buybucketParams},e.stickerParams?v.buybucketData.stickerParams=e.stickerParams:(d.rich_chat_message?v.buybucketData.richChatMessage=d.rich_chat_message:d.chat_message_text&&(v.buybucketData.chatMessageText=d.chat_message_text),d.purchase_price_micros&&(v.buybucketData.purchasePriceMicros=d.purchase_price_micros.toString())));e.donationAmountMicros&&(v.tipAmountMicros=e.donationAmountMicros,
e.tipParams&&(v.tipParams=e.tipParams));e.offerParams&&(v.offerParams=e.offerParams);e.productData&&(v.productData=e.productData);e.transactionParams&&(v.transactionParams=e.transactionParams)};var u7=function(){};
_.V(u7,YK);u7.prototype.getApiPaths=function(){return Qjc};
u7.prototype.getExtension=function(v){return _.L(v,whA)};
u7.prototype.JSC$13090_buildRequest=function(v,e){e.updateFopParams&&(v.updateFopParams=e.updateFopParams)};var nS=function(){};
_.V(nS,YK);nS.prototype.getApiPaths=function(){return g10};
nS.prototype.getExtension=function(v){return _.L(v,_.nv)};
nS.prototype.JSC$13090_buildRequest=function(v,e){e.couponCode&&(v.couponCode=e.couponCode);e.params&&(v.itemParams=e.params)};var DR=function(){};
_.V(DR,YK);DR.prototype.getApiPaths=function(){return uUi};
DR.prototype.getExtension=function(v){return _.L(v,_.jeM)};
DR.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;e.params&&(v.params=e.params);d.ctk&&(v.clientToken=d.ctk)};var U5=function(v){this.JSC$18160_storeWithEntities=v};
_.V(U5,YK);U5.prototype.getApiPaths=function(){return n1c};
U5.prototype.getExtension=function(v){return _.L(v,_.ZG)};
U5.prototype.JSC$13090_buildRequest=function(v,e,d){d.purchase_price_micros&&(v.productData={pdgData:{purchasePriceMicros:d.purchase_price_micros.toString()}},d.rich_chat_message&&(v.productData.pdgData.richChatMessage=d.rich_chat_message),d.currency_code&&(v.productData.pdgData.currencyCode=d.currency_code));e.transactionParams&&(v.transactionParams=e.transactionParams);e.clientLocationContext&&(v.clientLocationContext=e.clientLocationContext);d.payments_payload&&(v.paymentsPayload=d.payments_payload);
d.funds_guarantee_callback_client_data&&(v.fundsGuaranteeCallbackClientData=d.funds_guarantee_callback_client_data);var E,T;d=(E=this.JSC$18160_storeWithEntities)==null?void 0:(T=E.getState())==null?void 0:T.entities;if(e.entityKeys&&d){E=[];e=_.a(e.entityKeys);for(T=e.next();!T.done;T=e.next()){var S=T.value;T=_.bq(S).entityType;if(S=_.h_(d,T,S)){var O={};E.push((O[T]=S,O))}}v.entityMutationPayloads=E}};
U5[ua]=[v0];var pS=function(){};
_.V(pS,YK);pS.prototype.getApiPaths=function(){return Dp2};
pS.prototype.getExtension=function(v){return _.L(v,ZRM)};
pS.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;d.backend_analytics&&(v.serializedBackendAnalyticsEvent=d.backend_analytics);e.offerParams&&(v.offerParams=e.offerParams)};var vN=function(){};
_.V(vN,YK);vN.prototype.getApiPaths=function(){return g10};
vN.prototype.getExtension=function(v){return _.L(v,R20)};
vN.prototype.JSC$13090_buildRequest=function(v,e){e.params&&(v.itemParams=e.params)};var ee=function(){};
_.V(ee,YK);ee.prototype.getApiPaths=function(){return Upc};
ee.prototype.getExtension=function(v){return _.L(v,_.oMJ)};
ee.prototype.JSC$13090_buildRequest=function(v,e,d){d.resume_time_ms&&(v.resumeTimeMs=d.resume_time_ms);e.pauseParams&&(v.pauseParams=e.pauseParams)};var d8=function(){};
_.V(d8,YK);d8.prototype.getApiPaths=function(){return p7I};
d8.prototype.getExtension=function(v){return _.L(v,_.c5c)};
d8.prototype.JSC$13090_buildRequest=function(v,e,d){d=d===void 0?{}:d;d.c&&(v.redeemCode=d.c);d.rd&&(v.riskData=d.rd);d.ctk&&(v.clientToken=d.ctk)};var EM=function(){};
_.V(EM,YK);EM.prototype.getApiPaths=function(){return v7A};
EM.prototype.getExtension=function(v){return _.L(v,_.J52)};
EM.prototype.JSC$13090_buildRequest=function(v,e){e.resumeParams&&(v.resumeParams=e.resumeParams)};var T6=function(v,e){this.clientName=v;this.defaultExpirationDelayMs=e};
T6.prototype.put=function(v,e){var d=this,E;return _.I(function(T){E=Object.assign({},e.data);E.key=v;E.clientName=d.clientName;E.expireTimestampMs===void 0&&(E.expireTimestampMs=(Math.round((0,_.E$)())+d.defaultExpirationDelayMs).toString());return T.return(d.putInternal(v,E))})};
T6[ua]=[RV,sUf];var ref=function(){T6.apply(this,arguments);this.JSC$18190_responseStore=new Map};
_.V(ref,T6);_.W=ref.prototype;_.W.get=function(v){var e=this;return _.I(function(d){return d.return(rY(e,v))})};
_.W.putInternal=function(v,e){var d=this,E,T,S;return _.I(function(O){E=d.defaultExpirationDelayMs;e.expireTimestampMs&&(E=Number(e.expireTimestampMs)-Math.round((0,_.E$)()),T=_.Wi("mweb_override_response_store_expiration_ms"),T>0&&T<E&&(E=T));S=setTimeout(function(){d.remove(v)},E);
d.JSC$18190_responseStore.set(v,{entryData:e,timer:S});_.s9(O)})};
_.W.remove=function(v){var e=this;return _.I(function(d){hui(e,v);_.s9(d)})};
_.W.removeAll=function(){var v=this;return _.I(function(e){v.JSC$18190_responseStore.forEach(function(d){clearTimeout(d.timer)});
v.JSC$18190_responseStore.clear();_.s9(e)})};
_.W.has=function(v){return!!this.JSC$18190_responseStore.get(v)};
_.W.getKeys=function(){return this.JSC$18190_responseStore.keys()};
var rY=function(v,e){if(v=v.JSC$18190_responseStore.get(e))return new _.qp(v.entryData)},hui=function(v,e){var d=v.JSC$18190_responseStore.get(e);
d&&(clearTimeout(d.timer),v.JSC$18190_responseStore.delete(e))};var n20;var pZ0=function(v,e,d){T6.call(this,v,e);this.token=d};
_.V(pZ0,T6);_.W=pZ0.prototype;_.W.get=function(v){var e=this,d,E;return _.I(function(T){return T.nextAddress==1?T.yield(ULS(e.token),2):T.nextAddress!=3?(d=T.yieldResult,T.yield(d.get("ResponseStore",[v,e.clientName]),3)):(E=T.yieldResult)?T.return(new _.qp(E)):T.return(void 0)})};
_.W.putInternal=function(v,e){var d=this,E;return _.I(function(T){if(T.nextAddress==1)return T.yield(ULS(d.token),2);E=T.yieldResult;return T.yield(E.put("ResponseStore",e),0)})};
_.W.remove=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(ULS(e.token),2);d=E.yieldResult;return E.return(d.delete("ResponseStore",[v,e.clientName]))})};
_.W.removeAll=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return d.yield(ULS(v.token),2);e=d.yieldResult;return d.yield(r0I(e,IDBKeyRange.only(v.clientName)),0)})};
_.W.has=function(){throw Error("Zi");};_.Se=new _.nC("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var KgS=function(v){var e;this.stateTagsData=(e=v.responseContext)==null?void 0:e.stateTags},$iS=function(v){var e;
return((e=v.stateTagsData)==null?void 0:e.stateTagsModified)||[]};var jE9;jE9=function(v){this.JSC$18203_responseStore=v};
_.XA=function(v,e,d){if(!_.N("state_tags_killswitch")){var E=new KgS(e);if($iS(E).length>0){var T=v.JSC$18203_responseStore.getKeys();T=_.a(T);for(var S=T.next();!S.done;S=T.next()){S=S.value;var O=rY(v.JSC$18203_responseStore,S);if(O){var b=_.UR(O);a:{var Y=void 0;O=$iS(E);b=((Y=(new KgS(b)).stateTagsData)==null?void 0:Y.relevantStateTags)||[];Y=_.a(b);for(b=Y.next();!b.done;b=Y.next())if(b=b.value,b.stateTag!=null&&O.includes(b.stateTag)&&b.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){O=
!0;break a}O=!1}O&&hui(v.JSC$18203_responseStore,S)}}}}var q;E=(q=e.responseContext)==null?void 0:q.maxAgeSeconds;d&&E&&Number(E)>0&&(e=OK(e,E),v.JSC$18203_responseStore.put(d,new _.qp(e)))};
jE9.prototype.handleResponse=function(v,e){if(!e)throw Error("$i");var d,E;e=(d=e.config)==null?void 0:(E=d.storeStrategy)==null?void 0:E.storeKey;_.XA(this,v,e)};
jE9[ua]=[_.yc];_.WDU=new _.nC("STORE_RESPONSE_PROCESSOR_TOKEN");var sEO=function(v){this.JSC$18206_responseStore=v};
sEO.prototype.handleResponse=function(v,e){if(e.input.match(_.Ej(yxJ))){var d;if(v==null?0:(d=v.entries)==null?0:d.length)for(v=_.a(v.entries),e=v.next();!e.done;e=v.next()){d=e.value.command;var E=void 0;e=(E=_.L(d,_.Go))==null?void 0:E.unserializedPrefetchData;if(!d||!e)break;E=(new GG).JSC$13097_getStoreKey(d);var T=_.L(e,G1g),S=void 0,O=void 0,b=void 0,Y=_.Wi("web_shorts_prefetch_service_ttl_seconds")>0?_.Wi("web_shorts_prefetch_service_ttl_seconds"):Number((b=(S=T)==null?void 0:(O=S.responseContext)==
null?void 0:O.maxAgeSeconds)!=null?b:3600);E&&Y>0&&(T=OK(T,Y),this.JSC$18206_responseStore.put(E,new _.qp(T)));d=(new hb).JSC$13097_getStoreKey(d);e=_.L(e,YA0);S=T=E=void 0;O=_.Wi("web_shorts_prefetch_service_ttl_seconds")>0?_.Wi("web_shorts_prefetch_service_ttl_seconds"):Number((S=(E=e)==null?void 0:(T=E.responseContext)==null?void 0:T.maxAgeSeconds)!=null?S:3600);d&&O>0&&(e=OK(e,O),this.JSC$18206_responseStore.put(d,new _.qp(e)))}}};
sEO[ua]=[_.yc];var Nni=function(v){this.innertubeTransportService=v};
Nni.prototype.submitForm=function(v,e,d,E,T){var S=this,O,b,Y;return _.I(function(q){O={submitId:v,formData:e,submitBehavior:d,params:E};b=_.Ej(Jx2);Y=_.XB(S.innertubeTransportService,O,b,T);return q.return(Y)})};
Nni[ua]=[_.lX];var WN=function(){this.scheduler=_.jd()},k2i;
WN.prototype.pause=function(){throw Error("aj");};
WN.prototype.resume=function(){throw Error("aj");};
WN.prototype.queue=function(v){var e=this,d=_.gq(),E=_.LI(this.scheduler,function(){try{var T;if(_.hg.instance)var S=_.hg.instance;else{var O=new _.kL("Error: Unexpected uninitialized CommandHandler.");_.RI(O);S=void 0}(T=S)==null||T.resolveCommand(v.command);d.resolve()}catch(b){d.reject(b)}});
d.promise.thenCatch(function(T){T instanceof _.Cr&&e.scheduler.cancelJob(E)});
return d.promise};
WN.prototype.queueAll=function(v){var e=new Map;v=_.a(v);for(var d=v.next();!d.done;d=v.next())d=d.value,e.set(d.id,this.queue(d));return e};var VAf=function(v,e){var d=this;this.taskModel=v;this.onTaskCancelledCallback=e;this.resolver=_.gq();v=v.proto.prefetchConfig;if(!v)throw Error("bj");if(!v.prefetchAction)throw Error("cj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(E){E instanceof _.Cr&&(Lgi(d,d.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),d.onTaskCancelledCallback(d.taskModel.id,d.jobId),d.tick("pcc"));
throw E;});
this.timerName=this.taskModel.id;_.Xq(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
VAf.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 Lgi=function(v,e){_.BF({prefetchInfo:{cancellationReason:e}},v.timerName)};
VAf.prototype.tick=function(v){_.zE(v,void 0,this.timerName)};var iQ=function(){var v=this;this.scheduler=_.jd();this.maxInflightTasks=_.Wi("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Wi("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new cgJ;this.onTaskCancelled=function(e,d){d&&v.scheduler.cancelJob(d);oIS(v,e);aL(v,3)}},Jew=function(){iQ.instance||(iQ.instance=new iQ);
return iQ.instance};
iQ.prototype.pause=function(){this.prefetchCoordinatorState=0};
iQ.prototype.resume=function(){aL(this,0)};
iQ.prototype.queue=function(v){v=G2w(this,v);aL(this,1);return v};
iQ.prototype.queueAll=function(v){var e=new Map;v=_.a(v);for(var d=v.next();!d.done;d=v.next())d=d.value,e.set(d.id,G2w(this,d));aL(this,1);return e};
var G2w=function(v,e){var d=v.allPrefetchTasks.get(e.id);if(d)return d.cancellablePromise;try{var E=new VAf(e,v.onTaskCancelled)}catch(S){return _.f1(S)}d=E;d.tick("pcq");var T={prefetchInfo:{taskId:d.taskModel.id,isPrefetch:!0,fetchAction:d.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:d.taskModel.command.clickTrackingParams}};d.taskModel.csn&&(T.clientScreenNonce=d.taskModel.csn);_.BF(T,d.timerName);v.allPrefetchTasks.set(e.id,E);v.drainingHeap.insert(-E.getPriority(),E);return E.cancellablePromise},
aL=function(v,e){v.prefetchCoordinatorState===e&&(v.prefetchCoordinatorState=2,MA_(v))},MA_=function(v){for(var e={};v.prefetchCoordinatorState!==0;e={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(v.inflightPrefetchTasks.size>=v.maxInflightTasks){v.prefetchCoordinatorState=3;break}e.prefetchTask$jscomp$1=v.drainingHeap.remove();if(!e.prefetchTask$jscomp$1){v.prefetchCoordinatorState=1;break}e.taskId$jscomp$3=e.prefetchTask$jscomp$1.taskModel.id;if(v.allPrefetchTasks.has(e.taskId$jscomp$3)){var d=-1;v.coordinatorTimeoutMs>0&&(d=_.LI(v.scheduler,function(E){return function(){OM(v,E.taskId$jscomp$3,Error("dj"))}}(e),v.coordinatorTimeoutMs));
v.inflightPrefetchTasks.set(e.taskId$jscomp$3,d);if(!v.JSC$18226_commandHandler){if(!_.hg.instance){OM(v,e.taskId$jscomp$3,Error("ej"));continue}v.JSC$18226_commandHandler=_.hg.instance}a:switch(e.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":d=1;break a;default:d=0}e.prefetchTask$jscomp$1.jobId=v.scheduler.addJob(function(E){return function(){E.prefetchTask$jscomp$1.tick("pcr");try{v.JSC$18226_commandHandler.resolveCommand(E.prefetchTask$jscomp$1.taskModel.command)||
OM(v,E.taskId$jscomp$3,Error("fj"))}catch(T){OM(v,E.taskId$jscomp$3,T)}}}(e),d,0)}}},tAC=function(v,e){(e=oIS(v,e))!=null&&(e.resolver.resolve(),e.tick("pce"));
aL(v,3)},OM=function(v,e,d){(e=oIS(v,e,d))!=null&&(e.resolver.reject(d),e.tick("pcc"),Lgi(e,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Wi("prefetch_coordinator_error_logging_sampling_rate")&&(d=new _.kL("Prefetch Command failed.",e.taskModel.id,d.message),_.RI(d)));
aL(v,3)},oIS=function(v,e,d){var E=v.allPrefetchTasks.get(e);
E?((d=v.inflightPrefetchTasks.get(e))&&d!==-1&&v.scheduler.cancelJob(d),v.inflightPrefetchTasks.delete(e),v.allPrefetchTasks.delete(e)):_.xf(new _.kL("Unexpected missing prefetch task when deleting task.",e,d==null?void 0:d.message));return E};var f0_=function(v,e,d,E,T){this.id=v;this.triggerOn=e;this.cancelOn=d;this.command=E;this.proto=T};
_.vP.Object.defineProperties(f0_.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Ru9=function(){this.JSC$18231_prefetchCoordinator=Jew();k2i||(k2i=new WN);this.defaultCoordinator=k2i},PMv;
Ru9.getInstance=function(){PMv||(PMv=new Ru9);return PMv};
Ru9.prototype.get=function(v){switch(v){case 0:return this.JSC$18231_prefetchCoordinator;default:return this.defaultCoordinator}};var IL=function(){this.coordinatorSupplier=Ru9.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},CMS=function(v){var e=_.zz()||void 0,d=Object.keys(xi_)[0];
if(d){var E=v.taskIdByTriggerId.get(d);if(E!=null){v.taskIdByTriggerId.delete(d);d=[];E=_.a(E);for(var T=E.next();!T.done;T=E.next())if(T=v.tasks.get(T.value))e!=="UNDEFINED_CSN"&&(T.csn=e),d.push(T);d=dtt(d);e=[];d=_.a(d);for(E=d.next();!E.done;E=d.next()){T=_.a(E.value);E=T.next().value;T=T.next().value;E=v.coordinatorSupplier.get(E).queueAll(T);E=_.a(E);var S=E.next();for(T={};!S.done;T={taskId$jscomp$9:void 0},S=E.next()){var O=_.a(S.value);S=O.next().value;O=O.next().value;T.taskId$jscomp$9=
S;S=O;e.push(T.taskId$jscomp$9);v.queuedPromisesByTask.set(T.taskId$jscomp$9,_.j9(S,function(b){return function(){Bns(v,b.taskId$jscomp$9)}}(T)))}}}}else _.xf(new _.kL("Unexpected malformed TriggerEvent."))};
IL.prototype.trigger=function(v,e){var d=this,E=this.tasks.get(v);if(!E||this.queuedPromisesByTask.has(v))return!1;Xc_(this,v,E.triggerOn);e!=="UNDEFINED_CSN"&&(E.csn=e);e=this.coordinatorSupplier.get(E.taskType).queue(E);this.queuedPromisesByTask.set(v,_.j9(e,function(){Bns(d,v)}));
return!0};
IL.prototype.cancel=function(v){var e=this.queuedPromisesByTask.get(v);if(e)e.cancel();else return Bns(this,v)};
var Bns=function(v,e){v.queuedPromisesByTask.delete(e);var d=v.tasks.get(e);if(!d)return!1;v.tasks.delete(e);Xc_(v,e,d.triggerOn);(d=efs(d.cancelOn))&&(v=v.taskIdByCancelId.get(d))&&v.delete(e);return!0},Xc_=function(v,e,d){(d=Object.keys(d)[0])&&(v=v.taskIdByTriggerId.get(d))&&v.delete(e)};var xi_={taskRegistered:{}},bQ=function(){IL.instance||(IL.instance=new IL);this.JSC$18240_taskManager=IL.instance};
_.V(bQ,AT);
bQ.prototype.resolveCommand=function(v){var e=this,d,E;return _.I(function(T){d=_.L(v,tNB);if((E=d)==null||!E.tasks){var S=new _.kL("RegisterTasksCommand is missing tasks.");_.RI(S);return T.return()}S=e.JSC$18240_taskManager;for(var O=_.a(d.tasks),b=O.next();!b.done;b=O.next())if(b=b.value,b=b.id&&b.triggerOn&&b.cancelOn&&b.command?new f0_(b.id,b.triggerOn,b.cancelOn,b.command,b):void 0,b){var Y=Object.keys(b.triggerOn)[0];if(Y){var q=efs(b.cancelOn);q?(S.tasks.set(b.id,b),S.taskIdByTriggerId.has(Y)||S.taskIdByTriggerId.set(Y,
new Set),S.taskIdByTriggerId.get(Y).add(b.id),S.taskIdByCancelId.has(q)||S.taskIdByCancelId.set(q,new Set),S.taskIdByCancelId.get(q).add(b.id)):_.xf(new _.kL("Unexpected malformed cancelOn field."))}else _.xf(new _.kL("Unexpected malformed triggerOn field."))}else _.xf(new _.kL("Unexpected malformed Task proto."));CMS(e.JSC$18240_taskManager);_.s9(T)})};var zuS={},l0t=(zuS.rendered={priority:_.N("web_adaptive_early_init")?8:0,callback:function(){var v={};v.numCpu=navigator.hardwareConcurrency;var e={};e.ramGb=_.TO.navigator.deviceMemory;var d={staticContext:{}};e.ramGb&&EU0(e.ramGb)&&(d.staticContext.memoryTotalKbytes=(e.ramGb*1048576).toString());v.numCpu&&EU0(v.numCpu)&&(d.staticContext.cpuCores=v.numCpu);if(_.N("web_enable_adaptive_appl_signal")){v={};e=_.AU("rses_dpj");var E=_.AU("rsef_dpj");e&&e>0&&E&&E>0&&(e=Math.ceil(E-e),e>0&&(v.loadLatency=
e));v.loadLatency&&EU0(v.loadLatency)&&(d.appL=v.loadLatency.toString())}_.tI("applicationStarted",d)}},zuS);var H7v=new _.nC("WINDOW_ON_ERROR"),Ae9=new _.nC("ERROR_WEIGHT_MAPS"),Z7s=new _.nC("INIT_ERROR");var ceQ={},wcC=(ceQ.initialized={priority:10,callback:function(v){v.injector.resolve(Z7s)()}},ceQ);var FgQ=function(){},QEi=function(){var v=_.AE("meta_logger_impl");
v||(v=new FgQ,_.pw("meta_logger_impl",v));return v},gIs=function(){QEi().csiSubscriptionKey=rGS("meta_logging_csi_event",function(v){var e=v.timerName;
if(v=v.timelineData){_.Xq(e,{startTime:v.startTime},e);v.infos&&_.BF(v.infos,e);for(var d=_.a(Object.keys(v.ticks)),E=d.next();!E.done;E=d.next())E=E.value,_.zE(E,v.ticks[E],e)}})};
FgQ.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&$r$(this.csiSubscriptionKey)};var uJ9={},nIs=(uJ9.initialized={priority:10,callback:function(){gIs()}},uJ9);var DiS=function(v,e){this.innertubeClientName=v;this.JSC$18256_prefCookie=e};
DiS.prototype.record=function(){if(_.N("web_li_record_binary_eval_tick")){var v=_.AU("rsef_dpj");var e=_.AU("rses_dpj");v=v!==void 0&&e!==void 0?Math.round(v-e):void 0;if(v!==void 0&&v>0){e=_.yy(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var d=this.poolSize;if(!(e.valuesSeen>=1E9)){if(e.valuesSample.length<d)e.valuesSample.push(v);else{var E=Math.floor(Math.random()*(e.valuesSeen+1));E<d&&(e.valuesSample[E]=v)}e.valuesSeen+=1}_.mZ(this.storagePrefix+"-"+this.innertubeClientName,
e,2592E3);v=e.valuesSample;e=T2H(v);v=v.length<this.poolSize?void 0:e<400?1:e<1700?2:3;v!==void 0&&(this.JSC$18256_prefCookie.set(this.cookiePrefix+this.innertubeClientName,v),this.JSC$18256_prefCookie.save())}}else _.q$(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18256_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18256_prefCookie.save()};
DiS[ua]=[RV,bN];var Uii=function(){DiS.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.V(Uii,DiS);var pc9=new _.nC("PAGE_LOAD_TIME_TOKEN");var vsv=function(v){this.signal=v;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;v.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.LI(_.RM,this.disableLoggingAndSendPayload,1E4)};
vsv.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.RM.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),e_i(this))};
var e_i=function(v){var e=_.Xf();if(e){var d={webClientComponentsData:{components:Array.from(v.ids,function(E){return{id:E}})}};
v.ids.clear();_.NC().visualElementStateChanged(e,d)}};var d1s=q5t({a11y:Wde});_.EsO=h6L(d1s)(d1s.a11y,{ephemeralActionSelector:function(v){return v.ephemeralAction||null}});var T9i=q5t({continuation:iGB});var Sit=h6L(T9i)(T9i.continuation,{continuationCommandSelector:function(v){return v.continuationCommand}});var Wff=new _.nC("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Yy=function(v,e){this.JSC$18285_storeWithEntities=v;this.JSC$18285_commandHandler=e;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Yy.prototype.start=function(){this.JSC$18285_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Yy.prototype.observeDownloadingEntities=function(){var v=_.E_W(this.JSC$18285_storeWithEntities.getState().entities).map(function(E){return Tos(E)});
if(v.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var e={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:WoM()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.WK(_.sz("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18285_commandHandler.resolveCommand(e)}this.downloadingEntities=v}else if(this.downloadingEntities.length){var d=dNM(this.JSC$18285_storeWithEntities.getState().entities).map(function(E){return Tos(E)});
this.downloadingEntities.filter(function(E){return d.includes(E)}).length&&(v={openPopupAction:H_W()},this.JSC$18285_commandHandler.resolveCommand(v));
this.downloadingEntities=[]}};
Yy[ua]=[v0,_.EI];var awf;_.m9=function(v,e,d,E,T,S,O,b){this.JSC$18288_playerApiPromise=v;this.JSC$18288_commandHandler=e;this.JSC$18288_screenManager=d;this.offlineWebClientEligibility=E;this.JSC$18288_prefStorage=T;this.JSC$18288_actionRouter=S;this.entityTypeMap=O;this.JSC$18288_persistentStorePromiseAccessor=b;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
awf=function(){var v=_.dk().resolve(_.m9),e;_.I(function(d){if(d.nextAddress==1)return v.downloadFailureListenerBound?d.return():d.yield(v.JSC$18288_playerApiPromise,2);e=d.yieldResult;e.addEventListener("onOfflineOperationFailure",function(E){if(E.failureReason&&E.entityKey&&E.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(E.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var T=_.bq(E.entityKey).entityId;T&&v.JSC$18288_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
T)}else if(_.N("kevlar_woffle")){T=v.JSC$18288_commandHandler;var S=T.resolveCommand;E=E.failureReason;var O=_.sz("TRANSFER_FAILED",void 0,"Download failed");E==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(O=_.sz("STORAGE_FULL",void 0,"Storage full"));S.call(T,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.WK(O),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
v.downloadFailureListenerBound=!0;_.s9(d)})};
_.m9.prototype.deleteVideo=function(v,e){var d=this,E,T,S;return _.I(function(O){if(O.nextAddress==1)return O.yield(d.JSC$18288_playerApiPromise,2);E=O.yieldResult;S={offlineLoggingData:{offlineDeleteReason:(T=e)!=null?T:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return O.yield(E.queueOfflineAction(v,d.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",S),0)})};
_.m9.prototype.pauseVideoDownload=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(e.JSC$18288_playerApiPromise,2);d=E.yieldResult;d.pauseVideoDownload(v);_.s9(E)})};
_.m9.prototype.resumeVideoDownload=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(e.JSC$18288_playerApiPromise,2);d=E.yieldResult;return E.yield(d.resumeVideoDownload(v),0)})};
_.m9[ua]=[_.a7,_.EI,_.t5,Wff,qv,UA,E82,rT];var i9S=new _.nC("DOWNLOAD_STATE_STORE_TOKEN");var O9v=function(v,e){this.JSC$18308_persistentStorePromiseAccessor=v;this.store=e;this.upliftCompletionResolver=new _.r1},Yiv=function(){var v=_.dk().resolve(IwS),e;
_.I(function(d){switch(d.nextAddress){case 1:if(v.upliftImplPromise)return d.return(v.upliftImplPromise);_.qq(d,2);v.upliftImplPromise=b9s(v);return d.yield(v.upliftImplPromise,4);case 4:v.upliftCompletionResolver.resolve();_.wk(d,3);break;case 2:throw e=_.jl(d),v.upliftCompletionResolver.reject(e),e;case 3:return d.return(v.upliftImplPromise)}})},b9s=function(v){var e,d,E;
return _.I(function(T){switch(T.nextAddress){case 1:return _.zr("LOGGED_IN")?T.yield(v.JSC$18308_persistentStorePromiseAccessor(),2):T.return();case 2:e=T.yieldResult;if(!e)return _.zE("vdeur"),T.return();_.zE("vdeus");_.qq(T,3);return T.yield(m1s(e),5);case 5:d=T.yieldResult;v.store.dispatch(Ay3(d));e.observe(function(S){Z6j(v.store,S)});
_.wk(T,4);break;case 3:throw E=_.jl(T),_.zE("vdeur"),E;case 4:_.zE("vdeuc"),_.s9(T)}})},m1s=function(v){var e;
return _.I(function(d){if(d.nextAddress==1)return d.yield(IL7(v),2);e=d.yieldResult;return d.return(e.reduce(function(E,T){if(!T.data||!T.key||!T.entityType)return E;E[T.entityType]||(E[T.entityType]={});E[T.entityType][T.key]=T.data;return E},{}))})};
O9v[ua]=[rT,_.Hl];var IwS;IwS=new _.nC("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.yn=new _.nC("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var qM=function(v,e){this.JSC$18311_persistentStorePromiseAccessor=v;this.transportService=e};
qM.prototype.refresh=function(){var v=this,e,d,E,T;return _.I(function(S){if(S.nextAddress==1)return _.zr("LOGGED_IN")?S.yield(v.JSC$18311_persistentStorePromiseAccessor(),2):S.return();if(S.nextAddress!=3)return(e=S.yieldResult)?S.yield(QSL(e),3):S.return();if((d=S.yieldResult)&&!(Number(d.data.refreshTimestampMs||0)<(0,_.E$)()))return S.return();E={browseId:"SPaccount_downloads"};T=_.Ej(wp);_.XB(v.transportService,E,T).then(function(O){var b;if(e&&(O==null?void 0:(b=O.responseContext)==null?void 0:
b.maxAgeSeconds)!==0){var Y;b=(O==null?void 0:(Y=O.responseContext)==null?void 0:Y.maxAgeSeconds)||604800;Y=String(Math.floor((0,_.E$)())+b*1E3);e.put("service:downloads_settings:fallback",new _.qp({innertubeResponse:O,refreshTimestampMs:Y}))}});
_.s9(S)})};
qM[ua]=[_.Se,_.lX];var r8=function(v,e){this.JSC$18315_playerPromise=v;this.store=e;this.started=!1};
r8.prototype.start=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return v.started?d.return():d.yield(v.JSC$18315_playerPromise,2);e=d.yieldResult;e.addEventListener("onOrchestrationBecameLeader",v.updateIsLeader.bind(v,!0));e.addEventListener("onOrchestrationLostLeader",v.updateIsLeader.bind(v,!1));if(e.isOrchestrationLeader)v.updateIsLeader(e.isOrchestrationLeader());else{var E=new _.kL("Function isOrchestrationLeader is undefined",{"player.isReady":e.isReady(),"player.playVideo":e.playVideo?
"defined":"undefined"});_.RI(E);v.updateIsLeader(!1)}v.started=!0;_.s9(d)})};
r8.prototype.updateIsLeader=function(v){this.store.dispatch(_.Oo({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:v}}))};
r8[ua]=[_.a7,_.Hl];var yi9=function(v,e){this.networkStatusManager=v;this.JSC$18318_prefStoragePromise=e;this.redirectsToPreload=["https://youtube.com"]},qiS=function(){var v=_.dk().resolve(yi9),e,d,E,T,S,O;
_.I(function(b){switch(b.nextAddress){case 1:return b.yield(v.JSC$18318_prefStoragePromise,2);case 2:e=b.yieldResult;if(!(d=e)){b.jumpTo(3);break}return b.yield(e.get("yt-redirect-prefetch-id"),4);case 4:d=b.yieldResult;case 3:if(d||!v.networkStatusManager.isNetworkAvailable())return b.return();E={cache:"reload",redirect:"manual"};T=_.a(v.redirectsToPreload);S=T.next();case 5:if(S.done){if(!e){b.jumpTo(0);break}return b.yield(e.set("yt-redirect-prefetch-id",!0,86400),0)}O=S.value;_.qq(b,8);return b.yield(_.TO.fetch(O,
E),10);case 10:_.wk(b,6);break;case 8:_.jl(b);case 6:S=T.next(),b.jumpTo(5)}})};var hq=function(v){v?(this.container=v,this.containerWasInjected=!0):this.containerWasInjected=!1};
hq.prototype.openDialog=function(v,e,d){var E=this,T;return _.I(function(S){(T=E.container)==null||T.openDialog(v,e,d);_.s9(S)})};
hq.prototype.closeDialog=function(){var v=this,e;return _.I(function(d){(e=v.container)==null||e.closeDialog();_.s9(d)})};
hq.prototype.isDialogOpen=function(){var v=this,e,d;return _.I(function(E){return E.return((d=(e=v.container)==null?void 0:e.isDialogOpen())!=null?d:!1)})};
hq[ua]=[_.eG(Alc)];_.riQ=new _.nC("POPUP_CONTROLLER_TOKEN");var h_S=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
h_S.prototype.registerPanel=function(v,e){if(v){this.panelMap.set(v,e);var d=this.pendingPanelResolvers.get(v);d&&(d.resolve(e),this.pendingPanelResolvers.delete(v))}};
h_S.prototype.getPanel=function(v){var e=this,d;return _.I(function(E){return(d=e.panelMap.get(v))?E.return(d):E.return(Kf_(e,v))})};
var Kf_=function(v,e){var d,E;return _.I(function(T){if(d=v.pendingPanelResolvers.get(e))return T.return(d.promise);E=new _.r1;v.pendingPanelResolvers.set(e,E);return T.return(E.promise)})},$1C=function(v){h_S.call(this);
var e=this;this.popupController=v;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return e.panelMap.size}}};
_.V($1C,h_S);_.W=$1C.prototype;_.W.getReloadContinuation=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(e.getPanel(v),2);d=E.yieldResult;return E.return(d.getReloadContinuation())})};
_.W.showPanel=function(v,e,d,E,T,S,O){var b=this,Y,q,r,h;return _.I(function(K){if(K.nextAddress==1){O&&b.updatePanelContinuationDatas.set(v,O);if((Y=d)==null?0:(q=Y.engagementPanelPopupPresentationConfig)==null?0:q.popupType){r=d.engagementPanelPopupPresentationConfig.popupType;T===void 0&&(T=document.body);var k=K.return,J=b.popupController,R=J.openPopup;a:switch(r){case "PANEL_POPUP_TYPE_DIALOG":var B="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":B="DROPDOWN";break a;default:throw Error("hj`"+
r);}return k.call(K,R.call(J,v,e,B,T))}return K.yield(b.getPanel(v),2)}h=K.yieldResult;(e||S)&&h.updatePanel(e,!1,E,S);h.showPanel(E);_.s9(K)})};
_.W.hidePanel=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(e.getPanel(v),2);d=E.yieldResult;d.hidePanel();e.popupController.closePopup(v);_.s9(E)})};
_.W.isVisible=function(v,e){var d=this,E;return _.I(function(T){if(T.nextAddress==1)return e&&!d.panelMap.has(v)?T.return(!1):T.yield(d.getPanel(v),2);E=T.yieldResult;return T.return(E.isVisible())})};
_.W.updatePanel=function(v,e,d,E,T,S){d=d===void 0?!1:d;var O=this,b;return _.I(function(Y){if(Y.nextAddress==1){if(!e&&!T)return Y.return();S&&O.updatePanelContinuationDatas.set(v,S);return Y.yield(O.getPanel(v),2)}b=Y.yieldResult;b.updatePanel(e,d,E,T);_.s9(Y)})};
_.W.registerPanelContent=function(v,e){v&&this.panelContentMap.set(v,e)};
_.W.unregisterPanelContent=function(v){this.panelContentMap.delete(v)};
_.W.getPanelContent=function(v){return this.panelContentMap.get(v)};
_.W.getUpdatePanelContinuationData=function(v){return this.updatePanelContinuationDatas.get(v)};
$1C[ua]=[_.riQ];var KH=function(v,e){this.innertubeTransportService=v;this.JSC$18334_screenManager=e},jCt=function(v){var e;
return!((e=v.panelLoadingStrategy)==null||!e.requestTemplate)};
KH.prototype.makeRequest=function(v){var e=this,d,E;return _.I(function(T){switch(T.nextAddress){case 1:if(!jCt(e)){T.jumpTo(2);break}_.qq(T,3);return T.yield(_.Qw(e.innertubeTransportService,v),5);case 5:return d=T.yieldResult,d?T.return(d.content):(_.RI(Error("ij")),T.return(void 0));case 3:E=_.jl(T),_.RI(E);case 2:return T.return(void 0)}})};
KH.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
KH.prototype.execute=function(v){var e=this,d,E,T,S,O,b,Y,q,r,h;return _.I(function(K){if(K.nextAddress==1){d=v;E=d.data;T=d.fallbackVe;S=d.parentVe;O=d.createScreenConfig;b=d.renderFn;Y=d.command;e.panelLoadingStrategy=E;var k,J,R=((k=e.panelLoadingStrategy)==null?0:k.screenVe)?(J=e.panelLoadingStrategy)==null?void 0:J.screenVe:T;R&&_.Ig(e.JSC$18334_screenManager,R,S,O);return(q=e.getContent())?K.yield(b(q),2):K.jumpTo(2)}return K.nextAddress!=4?jCt(e)?K.yield(e.makeRequest(Y),4):K.return():(h=r=
K.yieldResult)?K.yield(b(h),0):K.return()})};
KH[ua]=[_.lX,_.t5];var $y=function(){};
$y.prototype.getContainer=function(){return _.SX()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
$y.prototype.openSheet=function(v,e){var d=this,E,T,S,O,b,Y;return _.I(function(q){switch(q.nextAddress){case 1:return E={stack:[],error:void 0,hasError:!1},_.qq(q,2,3),T=uZ,q.yield(d.isSheetOpen(),5);case 5:S=q.yieldResult;wss(E,LYS(T));if(S){if(_.N("web_close_sheet_if_same_target_killswitch")&&e&&d.currentTarget===e)return(O=d.getContainer())==null||O.closeSheet(),q.return();d.pendingData={data:v,target:L0i(d,e)};return q.return()}v.viewModel&&(v={viewModel:v.viewModel});(b=d.getContainer())==null||
b.openSheet(v,e);d.currentTarget=e;case 3:_.h7(q);FDO(E);_.$a(q,0);break;case 2:Y=_.jl(q),E.error=Y,E.hasError=!0,q.jumpTo(3)}})};
$y.prototype.closeSheet=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return d.yield((e=v.getContainer())==null?void 0:e.closeSheet(),2);if(d.nextAddress!=4)return v.currentTarget=void 0,v.pendingData?d.yield(v.openSheet(v.pendingData.data,v.pendingData.target),4):d.jumpTo(0);v.pendingData=void 0;_.s9(d)})};
$y.prototype.isSheetOpen=function(){var v=this,e,d;return _.I(function(E){return E.return((d=(e=v.getContainer())==null?void 0:e.isSheetOpen())!=null?d:!1)})};
var L0i=function(v,e){if(!_.N("web_parent_target_for_sheets"))return e;var d,E;return(E=(d=v.getContainer())==null?void 0:d.getParentTarget(e))!=null?E:e};var ed=window.documentPictureInPicture;var N20=_.Z9(["dark"]),k4S=_.Z9(["system-icons"]),LQS=_.Z9(["typography"]),V0W=_.Z9(["lang"]),oUj=_.Z9(["style"]),KQS=_.Z9(["dir"]),$t$=_.Z9(["rounded-container"]),j8S=_.Z9(["style"]),G40=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],je=function(v){this.JSC$18346_clientRoot=v;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
je.prototype.openWindow=function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1)return window.documentPictureInPicture&&_.M7()&&!e.currentPipWindow?T.yield((d=ed?ed:null)==null?void 0:d.requestWindow(v),2):T.return(!1);if(T.nextAddress!=3){E=T.yieldResult;if(!E)return T.return(!1);E.addEventListener("pagehide",function(){sCt(e)});
E.addEventListener("resize",e.handlePipWindowResize);e.pipWindowResizeDelay=new _.Ew(function(){e.currentPipWindow&&_.b4(e.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.$x(e.currentPipWindow.innerWidth,e.currentPipWindow.innerHeight)])},E);
JL0(E);t00(E);return T.yield(hfU(E),3)}if(!yLt())return T.return(!1);e.currentPipWindow=E;e.JSC$18346_eventForwarder=M0t(E,e.JSC$18346_clientRoot);e.pipWindowResizeDelay.start();return T.return(!0)})};
je.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var sCt=function(v){if(v.currentPipWindow){var e,d;(e=ed?ed:null)==null||(d=e.window)==null||d.close();v.currentPipWindow.removeEventListener("resize",v.handlePipWindowResize);var E;(E=v.pipWindowResizeDelay)==null||E.dispose();v.pipWindowResizeDelay=void 0;var T;(T=v.JSC$18346_eventForwarder)==null||T.stop();v.JSC$18346_eventForwarder=void 0;e=_.a(v.onCloseCallbacks);for(d=e.next();!d.done;d=e.next())d=d.value,d();v.onCloseCallbacks=[];v.currentPipWindow=null}};
je.prototype.getWindow=function(){return this.currentPipWindow};
var N9C=function(v,e){var d;(d=v.onCloseCallbacks)==null||d.push(e)};
je.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.M7()};
_.vP.Object.defineProperties(je.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
je[ua]=[azE];var kQi=new _.nC("PICTURE_IN_PICTURE_CONTROLLER");var fL$=function(v,e){this.lengthY=this.lengthX=0;this.lengthX=e.x-v.x;this.lengthY=e.y-v.y};var LfS=function(){},BHt=function(v,e){var d;
(d=v.headerElement)==null||d.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:e}))};var VsC=function(){};
VsC.prototype.openPopup=function(v,e,d,E){var T=this,S;return _.I(function(O){if(!T.container)return O.return();S={openPopupAction:{popup:e,popupType:d,uniqueId:v}};return O.return(T.container.handleOpenPopupAction(S,E))})};
VsC.prototype.closePopup=function(v){this.container&&this.container.closePopup(v)};var osi=function(){this.openTunnels=new Map},PQH=function(v,e,d){if(XGW(d)){var E=_.lZ(d,"gclid");
d={handleEvent:function(b){e&&!e.closed&&typeof e.postMessage==="function"&&b&&b.origin&&b.source===e&&b.data&&b.data.action==="gcl_setup"&&e.postMessage(Object.assign({},{action:"gcl_transfer"},E&&{gclid:E},{gadSource:2}),b.origin)}};
for(var T=_.a(v.openTunnels),S=T.next();!S.done;S=T.next()){var O=_.a(S.value);S=O.next().value;O=O.next().value;if(S.closed)try{window.removeEventListener("message",O),v.openTunnels.delete(S)}catch(b){_.RI(b)}}e&&v.openTunnels.size<15&&(v.openTunnels.set(e,d),window.addEventListener("message",d))}};var JiO=function(){this.clientParams=new Map},orn=function(v){for(var e=_.a(v.clientParams.keys()),d=e.next();!d.done;d=e.next())d=d.value,d.startsWith("yt-mini-app-share")&&v.clientParams.delete(d)};var MsC=function(v){_.kh.call(this);this.JSC$18368_shortsController=v;GQQ(this);this.addOnDisposeCallback(this.removeAudioTrackEventListener.bind(this))};
_.V(MsC,_.kh);var GQQ=function(v){var e,d;(e=v.JSC$18368_shortsController)==null||(d=e.playerApi)==null||d.then(function(E){E&&(E.addEventListener("onPlaybackAudioChange",function(){ts_(v,E)}),ts_(v,E))})};
MsC.prototype.removeAudioTrackEventListener=function(){var v=this,e,d;(e=this.JSC$18368_shortsController)==null||(d=e.playerApi)==null||d.then(function(E){E&&E.removeEventListener("onPlaybackAudioChange",function(){ts_(v,E)})})};
var ts_=function(v,e){e=(e==null?void 0:e.getAvailableAudioTracks().length)>1&&(e==null?void 0:e.getAudioTrack())||void 0;if((v=v.JSC$18368_shortsController)!=null){var d=_.rg("/youtube/app/player_audio_track_entity_key","stringEntity",2);if(e){var E,T=(E=_.Kv(_.l2,d)())==null?void 0:E.value;E=e.getLanguageInfo().getName();T!==E&&v.store.dispatch(_.Lv("stringEntity",d,{key:d,value:E.toString()}))}else v.store.dispatch(_.Lv("stringEntity",d,{key:d,value:"ALTERNATE_AUDIO_TRACK_UNAVAILABLE"}))}};var R__=function(v){_.kh.call(this);this.JSC$18371_shortsController=v;fwv(this);this.addOnDisposeCallback(this.removeCaptionTrackEventListener.bind(this))};
_.V(R__,_.kh);var fwv=function(v){v.JSC$18371_shortsController.playerApi.then(function(e){e&&(e.addEventListener("captionschanged",function(){PSs(v,e)}),PSs(v,e))})};
R__.prototype.removeCaptionTrackEventListener=function(){var v=this;this.JSC$18371_shortsController.playerApi.then(function(e){e&&e.removeEventListener("captionschanged",function(){PSs(v,e)})})};
var PSs=function(v,e){e=e==null?void 0:e.getOption("captions","track");v=v.JSC$18371_shortsController;var d=_.rg("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(e){var E,T=(E=_.Kv(_.l2,d)())==null?void 0:E.value,S;E=typeof(e==null?void 0:e.translationLanguage)==="object"&&((S=e.translationLanguage)==null?void 0:S.languageName)||e.displayName||"";T!==E&&v.store.dispatch(_.Lv("stringEntity",d,{key:d,value:E.toString()}))}else v.store.dispatch(_.Lv("stringEntity",d,{key:d,value:"CAPTIONS_UNAVAILABLE"}))};var x1s=function(v,e){_.kh.call(this);var d=this;this.JSC$18374_shortsController=v;this.storeWithShorts=e;v=_.ji(this.storeWithShorts,_.S87,function(E){if(E){var T,S=(T=d.JSC$18374_shortsController.getRoot())==null?void 0:T.getPlayer(),O;(T=(O=d.JSC$18374_shortsController.alternativePlayerContainerElement)==null?void 0:O.getPlayerContainer())&&(S==null||S.appendTo(T))}else{var b;O=(b=d.JSC$18374_shortsController.alternativePlayerContainerElement)==null?void 0:b.getPlayerContainer().querySelector("#player");
T=d.JSC$18374_shortsController.activeIndex;(b=(S=d.JSC$18374_shortsController.getRoot())==null?void 0:S.querySelector('ytd-reel-video-renderer[id="'+T+'"] #player-container'))&&(O==null||O.appendTo(b,void 0,!0))}});
this.addOnDisposeCallback(v)};
_.V(x1s,_.kh);var sM=function(v,e,d,E,T){var S=this;this.storeWithShorts=v;this.ephemeralResponseStore=e;this.store=d;this.innertubeTransportService=E;this.innertubeTransportLoader=T;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Xj(_.SB);this.isShortsPipActive=_.Xj(_.Wj);this.nextReelVe=_.bH(56921);this.prevReelVe=_.bH(56922);this.backButtonVe=_.bH(22156);this.TEST_ONLY={getActiveModules:function(){return S.activeModules}}},B9Q=function(v){v.unsubscribeFromStore=
_.ji(v.storeWithShorts,_.TMU,function(e){v.initOrDisposeActiveModules(e);
!e&&v.storeWithShorts.getState().shorts.isFullscreen&&(_.WF(document.documentElement),v.storeWithShorts.dispatch(_.OGM(!1)))});
v.initOrDisposeActiveModules(_.TMU(v.storeWithShorts.getState()))},I6c,bKc,CSv;
sM.prototype.initOrDisposeActiveModules=function(v){v?this.activeModules.push.apply(this.activeModules,[new x1s(this,this.storeWithShorts)].concat(_.t7(_.N("web_shorts_audio_track_picker")?[new MsC(this)]:[]),_.t7(_.N("enable_web_shorts_captions_language_command")?[new R__(this)]:[]))):(_.vw(this.activeModules),this.activeModules.length=0)};
sM.prototype.registerRootElement=function(v){this.rootElement=v;B9Q(this)};
sM.prototype.getRoot=function(){return this.rootElement};
sM.prototype.setActiveIndex=function(v){this.activeIndex=v};
_.Tzn=function(v,e){var d,E,T,S,O,b,Y;return _.I(function(q){switch(q.nextAddress){case 1:return d=new GG,(E=d.JSC$13097_getStoreKey(e))&&v.ephemeralResponseStore.has(E)?q.yield(v.ephemeralResponseStore.get(E),7):q.yield(CSv(v,e),4);case 4:T=q.yieldResult;if(!E){q.jumpTo(3);break}S=OK(T,3600);return q.yield(v.ephemeralResponseStore.put(E,new _.qp(S)),3);case 7:T=(O=q.yieldResult)==null?void 0:_.UR(O);case 3:return((b=T)==null?0:b.replacementEndpoint)&&(Y=_.L(T.replacementEndpoint,_.Go))&&T.sequenceContinuation&&
(Y.sequenceParams=T.sequenceContinuation),q.return(T)}})};
I6c=function(v,e){e=(new Mo).JSC$13097_getStoreKey(e);return!!e&&v.ephemeralResponseStore.has(e)};
bKc=function(v,e,d){var E,T,S,O,b;_.I(function(Y){if(Y.nextAddress==1){E=new Mo;T=E.JSC$13097_getStoreKey(e);if(!T)return Y.return();if(d.reelWatchSequenceResponse)return S=OK(d.reelWatchSequenceResponse,3600),v.ephemeralResponseStore.put(T,new _.qp(S)),Y.jumpTo(0);if(!v.ephemeralResponseStore.has(T))return Y.jumpTo(0);b=d;return Y.yield(v.ephemeralResponseStore.get(T),4)}b.reelWatchSequenceResponse=(O=Y.yieldResult)==null?void 0:_.UR(O);_.s9(Y)})};
CSv=function(v,e){var d=d===void 0?{}:d;var E,T,S;return _.I(function(O){switch(O.nextAddress){case 1:if(v.innertubeTransportService){E=v.innertubeTransportService;O.jumpTo(2);break}if(!v.innertubeTransportLoader){_.lg(Error("kj"));O.jumpTo(2);break}return O.yield(v.innertubeTransportLoader(),4);case 4:E=O.yieldResult;case 2:return O.yield((T=E)==null?void 0:_.Qw(T,e,d),5);case 5:return S=O.yieldResult,O.return(S)}})};
_.vP.Object.defineProperties(sM.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
sM[ua]=[ugu,_.yc,v0,_.eG(_.lX),_.eG(cTI)];_.XOQ=new _.nC("STORAGE_MANAGER_TOKEN");var FQO=["touchmove","scroll"];var z_9=!1;var Q8L={onSpanEnd:function(v){v.parentId==null&&(z_9||(ALU(),setInterval(ALU,6E5),z_9=!0),Zz7(v,"web_tracing_action"))}};var lwO=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},H9C;
lwO.prototype.enqueue=function(v,e){e===1?this.currentPersistentToast=v:this.queue.push(v);this.openToast()};
lwO.prototype.openToast=function(){var v;(v=this.currentToast)!=null&&v.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.NM=new _.nC("TOAST_MANAGER_TOKEN");var Ai9=new _.nC("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var Z9f=new _.nC("VIEW_TRANSITION_COORDINATOR_TOKEN");var cis=function(v){this.config=v;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;v=_.a(v.transitionConfigs);for(var e=v.next();!e.done;e=v.next())e=_.a(e.value).next().value,this.transitionTasksMap.set(e,[])};
cis.prototype.registerElement=function(v,e,d){d=d===void 0?!1:d;for(var E=_.a(Object.keys(e)),T=E.next(),S={};!T.done;S={viewTransitionName:void 0},T=E.next()){T=T.value;S.viewTransitionName=e[T];var O=this.elementTasksMap.get(v),b=void 0;if((b=O)==null?0:b.has(T)){_.PV(new _.kL("Element already registered for transition",v.tagName,T));break}O=O||new Map;O.set(T,{beforeTransition:function(Y){return function(){v.style.viewTransitionName=Y.viewTransitionName}}(S),
afterTransition:function(){v.style.viewTransitionName&&(v.style.viewTransitionName="")},
runOnce:d});this.elementTasksMap.set(v,O)}};
_.zn=function(v,e){var d=v.elementTasksMap.get(e);d&&(d.clear(),d.size===0&&v.elementTasksMap.delete(e))};
cis[ua]=[Ai9];var wOO;_.FfC=_.l(function(v){return _.m("basic-content-view-model",{class:_.qe("ytBasicContentViewModelHost",_.e2(v.className))},_.m(_.y,{cond:function(){return v.data().headline},
then:function(e){return _.m("div",{class:"ytBasicContentViewModelHeadline"},_.m(_.Dh,{text:e}))}}),_.m(_.jI,{each:function(){return v.data().paragraphs||[]},
keyBy:"INDEX"},function(e){return _.m("div",{class:"ytBasicContentViewModelParagraph"},_.m(_.y,{cond:function(){var d=e();return!!(d.header||d.customHeader||d.headline)},
then:function(){return _.m(wOO,{paragraph:e})}}),_.m(_.y,{cond:function(){return e().asset||e().text},
then:function(){return _.m("div",{class:"ytBasicContentViewModelParagraphContent"},_.m(_.y,{cond:function(){return e().asset},
then:function(d){return _.m("div",{class:"ytBasicContentViewModelParagraphAsset"},_.m(_.kz,{data:d},{contentPreviewImageViewModel:_.a3}))}}),_.m(_.y,{cond:function(){return e().text},
then:function(d){return _.m("div",{class:"ytBasicContentViewModelParagraphText"},_.m(_.Dh,{text:d}))}}))}}))}))},"Me");
wOO=_.l(function(v){var e=v.paragraph;return _.m(_.eI,null,_.m(_.y,{cond:function(){return e().headline},
then:function(d){return _.m(_.Dh,{text:d,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.m(_.kz,{data:function(){return e().header||e().customHeader}},{sectionHeaderViewModel:function(d){return _.m(_.mz,{data:d.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ne");var gsf=_.l(function(v){var e=_.nI("yt-expandable-metadata-header-view-model"),d=_.rq(function(E){if(!_.R7(_.fv(E),e.value,["A".toString(),"BUTTON".toString()])){var T;(T=v.expandedCallback)==null||T.call(v,!1)}});
return _.m("yt-expandable-metadata-header-view-model",{el:e,class:"ytExpandableMetadataHeaderViewModelHost"},_.m(_.y,{cond:function(){return v.expanded()},
then:function(){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":d},_.m("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.m(_.y,{cond:function(){return v.data().expandedTitleImage},
then:function(E){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.m(_.va,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:E}))}}),_.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.m(_.Dh,{text:function(){return v.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.m(_.Dh,{text:function(){return v.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.m(_.Dh,{text:function(){return v.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.m("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.m(_.kz,{data:function(){return v.data().infoButton}},{buttonViewModel:_.yi}),_.m(_.kz,{data:function(){return v.data().collapseButton}},{buttonViewModel:function(E){return _.m(_.yi,{data:E.data,
onClick:function(){var T;(T=v.expandedCallback)==null||T.call(v,!1)}})}})))},
else:function(){return _.m(QC1,Object.assign({},v))}}))},"Oe"),uts=_.l(function(v){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.m(_.y,{cond:function(){return v.data().collapsedLabelImage},
then:function(e){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.m(_.va,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:e,alt:""}))}}),_.m(_.Dh,{text:function(){return v.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Pe"),QC1=_.l(function(v){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.rq(function(){var e;return void((e=v.expandedCallback)==null?void 0:e.call(v,!0))})},_.m("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.m(_.y,{cond:function(){return v.data().collapsedImage},
then:function(e){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.m(_.va,{width:16,height:16,data:e,alt:""}))}}),_.m(_.y,{cond:function(){return v.data().showLeadingCollapsedLabel},
then:function(){return _.m(uts,Object.assign({},v))}}),_.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.m(_.Dh,{text:function(){return v.data().collapsedTitle}}))),_.m("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.m(_.y,{cond:function(){return!v.data().showLeadingCollapsedLabel},
then:function(){return _.m(uts,Object.assign({},v))}}),_.m(_.kz,{data:function(){return v.data().infoButton}},{buttonViewModel:_.yi}),_.m(_.kz,{data:function(){return v.data().expandButton}},{buttonViewModel:function(e){return _.m(_.yi,{data:e.data,
onClick:function(){var d;(d=v.expandedCallback)==null||d.call(v,!0)}})}})))},"Qe");_.nsQ=_.l(function(v){var e=_.a(_.KM(function(){return v.data().initiallyExpanded})),d=e.next().value,E=e.next().value,T,S=(T=_.dk().resolve(_.eG(_.n1)))==null?void 0:T(),O=function(){var b=v.data().colorData;
if(b)return S?b==null?void 0:b.darkColorPalette:b==null?void 0:b.lightColorPalette};
return _.m("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.jM({"background-color":function(){var b=O();return(b==null?0:b.section2Color)?_.w1(b.section2Color):""}})},_.m(_.kz,{data:function(){return v.data().header}},{expandableMetadataHeaderViewModel:function(b){return _.m(gsf,{data:b.data,
expanded:function(){return!!d()},
expandedCallback:function(Y){E(Y)}})}}),_.m(_.y,{cond:function(){return d()},
then:function(){return _.m("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.m(_.kz,{data:function(){return v.data().expandedContent}},{horizontalShelfViewModel:function(b){return _.m(_.lD,{data:b.data,
includeMargin:!0,forceNarrowLayout:!0,palette:O})},
videoSummaryContentViewModel:function(b){return _.m(lu0,{data:b.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(b){return _.m(_.Y8,{data:b.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(b){return _.m(_.FfC,{data:b.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.m(_.kz,{data:function(){return v.data().expandedBottomButtons}},{buttonViewModel:function(b){return _.m("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.m(_.yi,{data:b.data}))}}))}}))},"Re");var D19=_.l(function(v){var e=v.text;var d=v.marqueeSpacing;var E=v.scrollDelay;var T=v.scrollDuration;var S=v.enableMarqueeScroll;v=v.large;var O=_.a(_.OE(!1,void 0,"kfNqfd")),b=O.next().value,Y=O.next().value,q=_.a(_.OE(0,void 0,"bYgZbf"));O=q.next().value;var r=q.next().value,h=_.nI("marquee-scroll");q=_.nI("div");var K=_.nI("span"),k=_.dk().resolve(_.U_);_.o_(function(){if(S()){var B=K.value.getBoundingClientRect().width,X=h.value.getBoundingClientRect().width;if(B>X){var Z=(k==="ltr"?-1:1)*(B+
(d?d():16));Promise.resolve().then(function(){Y(!0);r(Z)})}}},"giRlme");
var J={},R={};return _.m("marquee-scroll",{class:_.qe("ytMarqueeScrollHost",(J.ytMarqueeScrollHostLarge=v,J)),el:h},_.m("div",{id:"marquee-scroll-inner-container",class:_.qe("ytMarqueeScrollInnerContainer",(R.ytMarqueeScrollAnimationEnabled=function(){return b()},R)),
el:q,style:_.jM({gap:d?(0,_.Pe)(d):"16px","animation-duration":T?xmI(T):"16s","animation-delay":E?xmI(E):"3s","--marquee-translate":(0,_.Pe)(O)})},_.m("span",{el:K,dir:"auto"},_.m(_.Dh,{text:e,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.m(_.y,{cond:b,then:function(){return _.m("span",{"aria-hidden":"true",dir:"auto"},_.m(_.Dh,{text:e,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Se");_.U11=_.l(function(v){var e=v.data;var d=v.overlayDensity;v=_.rq(function(){e().onTapCommand&&_.wC(e().onTapCommand);return!1});
var E=_.UWM(),T=function(){return(d==null?void 0:d())===1?22:16},S={};
return _.m("reel-sound-metadata-view-model",{class:_.qe("ytReelSoundMetadataViewModelHost",(S.ytReelSoundMetadataViewModelHostLarge=function(){return(d==null?void 0:d())===1},S)),
"on:click":v,tabindex:0,role:"button","on:keydown":E},_.m("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.m(_.y,{cond:function(){return e().musicIcon},
then:function(O){return _.m(_.va,{data:O,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:T})}}),_.m("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.m(D19,{text:function(){return e().soundMetadata},
enableMarqueeScroll:function(){return!!e().enableMarqueeScroll},
large:function(){return(d==null?void 0:d())===1}}))))},"Te");var pO1,vmi,ky,Tuw,WV9,EmS,OYv,iYO;pO1=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];vmi=_.Wi("wil_icon_max_concurrent_fetches",Infinity);
ky=function(v,e,d){var E=this;this.iconSet=v;this.appDirection=e;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.TO.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.N("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.N("wil_icon_network_first");this.renderWhenIdle=_.N("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.N("wil_icon_load_immediately");this.isPurging=!1;v=function(){E.cacheStorageAvailable&&(E.cacheStorageAsync=_.TO.caches.open("yt-icons").then(function(S){return E.cacheStorageSync=S}).catch(function(){E.cacheStorageAvailable=!1}))};
d=(d==null?void 0:d())||{};d=_.a(Object.entries(d));for(e=d.next();!e.done;e=d.next()){var T=_.a(e.value);e=T.next().value;T=T.next().value;T=yU(T);eTt(T);this.iconCache[e]=T.cloneNode(!0)}this.isPurging=dfs(this);this.isPurging instanceof Promise?this.isPurging.then(v):v()};
_.e67=function(v,e){var d=v.resolveIcon(e);return d?v.renderingMode===1?EmS(v,d,v.renderingMode):(e=v.iconCache[d.url])?(e=e.cloneNode(!0),Tuw(v,e),EmS(v,d,v.renderingMode,e)):_.SJO(v,d).then(function(E){var T=E?0:1;Tuw(v,E);return EmS(v,d,T,E)}):(_.PV(new _.kL("Icon not found",{iconShape:e})),function(){})};
Tuw=function(v,e){if(e){v.counter+=1;v="_yt"+v.counter;e=[e].concat(_.t7(e.getElementsByTagName("*")));e=_.a(e);for(var d=e.next();!d.done;d=e.next())if(d=d.value,d.tagName==="style"&&d.textContent)d.textContent=WV9(d.textContent,v,!0);else for(var E=_.a(d.attributes),T=E.next();!T.done;T=E.next()){T=T.value;T.name==="id"&&(T.value+=v);["mask","fill","clip-path"].includes(T.name)&&(T.value=WV9(T.value,v));if(T.name==="style"){var S=d.style;try{S.cssText=WV9(S.cssText,v,!0)}catch(r){var O=void 0,b=
void 0,Y=void 0,q=void 0;LH({error:((O=r)==null?void 0:(Y=(b=O).toString)==null?void 0:Y.call(b))||"",el:d.outerHTML,style:!!S,cssText:(q=S)==null?void 0:q.cssText})}}T.name==="xlink:href"&&(T.value=T.value.replace(/#(.*)/,"#$1"+v))}}};
WV9=function(v,e,d){var E=/url\(["']?#(.*?)["']?\)/;(d===void 0?0:d)&&(E=/url\(["']?#(.*?)["']?\)/g);return v.replace(E,"url(#$1"+e+")")};
EmS=function(v,e,d,E){return function(T,S){var O=Object.assign({},{iconColor:"currentcolor",iconWidth:e.size+"px",iconHeight:e.size+"px",iconDisplay:"block"},S);S=_.hz("DIV");var b=O.iconColor,Y=O.iconFilter;O="width: "+O.iconWidth+"; height: "+O.iconHeight+"; display: "+O.iconDisplay+";";Y&&(O+=" filter: "+Y+";");d===0&&(O+=" fill: "+b+";");d===1&&(Y=e.url,O+=" -webkit-mask: url("+Y+") no-repeat center / cover; mask: url("+(Y+") no-repeat center / cover; background-color: ")+b);e.allowMirroring&&
v.appDirection==="rtl"&&(O+=" transform: scale(-1, 1); transform-origin: center center;");S.setAttribute("style",O);d===0&&E&&S.appendChild(E);T.appendChild(S)}};
_.SJO=function(v,e){var d,E,T;return _.I(function(S){d=function(O){return Ar(O)};
E=e.url;if(!aBf(E))throw Error("nj");T=iYO(v,E);return S.return(T.then(function(O){return O.clone().text()}).then(function(O){var b=d(O);
O=e.size;var Y=_.hz("DIV");_.UJ(Y,b);b=_.KX(Y.firstElementChild!==void 0?Y.firstElementChild:_.gII(Y.firstChild,!0));O=eTt(b,O);v.iconCache[E]=O.cloneNode(!0);delete v.responsePromises[E];return O}).catch(function(){}))})};
OYv=function(v){var e,d=(e=v.requestAninmationFrameResolver)==null?void 0:e.promise;d||(v.requestAninmationFrameResolver=new _.r1,d=v.requestAninmationFrameResolver.promise,_.TO.requestAnimationFrame(function(){var E;(E=v.requestAninmationFrameResolver)==null||E.resolve();v.requestAninmationFrameResolver=null}));
return d};
iYO=function(v,e){var d,E;return _.I(function(T){if(T.nextAddress==1)return v.waitForAnimationFrame?T.yield(OYv(v),2):T.jumpTo(2);d=v.responsePromises[e];d||(E=function(){var S,O,b;return _.I(function(Y){switch(Y.nextAddress){case 1:if(!v.cacheStorageAvailable){S=void 0;Y.jumpTo(2);break}if(O=v.cacheStorageSync){Y.jumpTo(3);break}return Y.yield(v.cacheStorageAsync,4);case 4:O=Y.yieldResult;case 3:S=O;case 2:return b=S,v.isNetworkFirstStrategy?Y.return(v.fetchAndUpdateCache(e,b).catch(v.getCacheStorageResponse.bind(v,
e,b))):Y.return(v.getCacheStorageResponse(e,b).catch(v.fetchAndUpdateCache.bind(v,e,b)))}})},d=v.renderWhenIdle?new Promise(function(S,O){_.LI(_.RM,function(){E().then(S).catch(O)},10)}):E(),v.responsePromises[e]=d);
return T.return(d.catch(function(S){delete v.responsePromises[e];LH({error:(S==null?0:S.toString)?S.toString():"",url:e});throw S;}))})};
ky.prototype.fetchAndUpdateCache=function(v,e){var d=this;return _.I(function(E){return E.return(IB1(d,v).then(function(T){bY9(d,v,T,e);return T}))})};
var IB1=function(v,e){var d;return _.I(function(E){if(v.numFetches<vmi)return v.numFetches+=1,E.return(YJQ(v,e).finally(function(){--v.numFetches;if(Object.keys(v.queuedResponseResolvers).length){var T=Object.keys(v.queuedResponseResolvers)[0],S=v.queuedResponseResolvers[T];delete v.queuedResponseResolvers[T];S.resolve(IB1(v,T))}}));
d=new _.r1;v.queuedResponseResolvers[e]=d;return E.return(d.promise)})},YJQ=function(v,e,d){d=d===void 0?2:d;
var E;return _.I(function(T){E={credentials:"same-origin",priority:"low"};return T.return(_.TO.fetch(e,E).then(function(S){return S.ok?S:Promise.reject(Error("oj`"+S.status+"`"+S.statusText))}).catch(function(S){if(d>0)return YJQ(v,e,d-1);
throw S;}))})},bY9=function(v,e,d,E){_.I(function(T){return E?T.return(new Promise(function(S){_.LI(_.RM,function(){var O,b;
return _.I(function(Y){switch(Y.nextAddress){case 1:if(!v.isNetworkFirstStrategy){O=void 0;Y.jumpTo(2);break}return Y.yield(E.match(e).catch(function(){}),3);
case 3:O=Y.yieldResult;case 2:if(b=O){Y.jumpTo(4);break}return Y.yield(E.put(e,d.clone()).catch(function(q){LH({error:(q==null?0:q.toString)?q.toString():"",url:e})}),4);
case 4:S(),_.s9(Y)}})},50)})):T.return()})};
ky.prototype.getCacheStorageResponse=function(v,e){return _.I(function(d){return e?d.return(e.match(v).then(function(E){return E&&E.ok?E:Promise.reject()})):d.return(Promise.reject())})};
var eTt=function(v,e){e===void 0||v.getAttribute("viewBox")||v.setAttribute("viewBox","0 0 "+e+" "+e);v.setAttribute("focusable","false");v.setAttribute("aria-hidden","true");try{v.style.pointerEvents="none",v.style.display="inherit",v.style.width="100%",v.style.height="100%"}catch(T){var d;LH({error:((d=T)==null?0:d.toString)?T.toString():""});try{v.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(S){var E;LH({error:((E=S)==null?0:E.toString)?S.toString():
""})}}return v},aBf=function(v){for(var e=_.a(pO1),d=e.next();!d.done;d=e.next())if(v.startsWith(d.value)&&v.endsWith(".svg"))return!0;
return!1};
ky.prototype.resolveIcon=function(v){return this.iconSet.resolveIcon(v)};
var LH=function(v){_.xf(new _.kL("Error in IconManager",v))},dfs=function(v){if(_.N("wil_icons_cache_purge_killswitch"))return!1;
try{var e=_.TO.localStorage}catch(S){return!1}if(!e||!v.cacheStorageAvailable)return!1;var d=function(S){try{var O;(O=e)==null||O.setItem("yt-icons-last-purged",S.toString())}catch(Y){var b;LH({error:((b=Y)==null?0:b.toString)?Y.toString():""})}},E=Number(e.getItem("yt-icons-last-purged"));
if(!E)return E=new Date,E=E.setDate(E.getDate()-Math.floor(Math.random()*90+1)),d(E),!1;if(function(S,O){S=new Date(S);O=new Date(O);return O.getMonth()-S.getMonth()+12*(O.getFullYear()-S.getFullYear())}(E,Date.now())<3)return!1;
try{return _.TO.caches.delete("yt-icons").then(function(S){S&&d(Date.now());return S}).catch(function(){return!1}).finally(function(){v.isPurging=!1})}catch(S){var T;
LH({error:((T=S)==null?0:T.toString)?S.toString():""});return!1}};
ky[ua]=[vS9,_.U_,_.eG(ESv)];_.Vn=function(v,e){this.iconManager=v;this.iconsToFetch=e};
_.Vn[ua]=[_.rC,_.eG(d7S)];var mff=function(){};var yrt=function(v,e,d){this.requestKey=v;this.tEu=e;this.hHs=d;this.wRM=function(){return new XMLHttpRequest};
this.xIG=void 0;this.cvW=[]};
yrt.prototype.getLatestChallengeResponse=function(){return this.hHs};
var pnM=function(v,e,d){var E,T,S,O;return _.I(function(b){if(b.nextAddress==1){_.Xq("attestation_challenge_fetch");_.zE("att_fs",void 0,"attestation_challenge_fetch");if(!v.xIG)throw new _.Ns(9,"Missing fetcher");return b.yield(v.xIG(e,d),2)}E=b.yieldResult;S=(T=E)==null?void 0:T.bgChallenge;if(!S)throw new _.Ns(15,"Missing field");v.hHs=E;v.cvW.forEach(function(Y){Y(E)});
O=Zut(S);_.zE("att_fc",void 0,"attestation_challenge_fetch");CB("attestation_challenge_fetch");return b.return(O)})},suE=function(v,e){var d,E,T,S,O;
return _.I(function(b){switch(b.nextAddress){case 1:d=new Ol(100,3E5,.25,2),E=void 0;case 2:if(!(d.currBackoffCount_<10)){b.jumpTo(4);break}_.qq(b,5);if(!(d.currBackoffCount_>0)){b.jumpTo(7);break}return b.yield(uIM(d.getValue()),7);case 7:return b.yield(qJs(v,e),9);case 9:return T=b.yieldResult,b.return(T);case 5:S=_.jl(b);S instanceof _.Ns?E=S:(O=S instanceof Error?S.message:"Unknown",E=new _.Ns(9,O));OFE(d);b.jumpTo(2);break;case 4:if(E)throw E;throw new _.Ns(9,"Unknown error");}})},qJs=function(v,
e){e=Acc(Z06(new H0e,e),v.requestKey);
var d=new _.r1,E=v.wRM();E.open("POST",v.tEu);E.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");E.setRequestHeader("Content-Type","application/json+protobuf");E.onload=function(){if(_.C40(E)){var T=DuJ(E.responseText);d.resolve(T)}else d.reject(new _.Ns(_.ncj(_.OI(E)),E.statusText))};
E.onerror=function(){d.reject(new _.Ns(_.ncj(_.OI(E)),E.statusText))};
E.send(e.serialize());return d.promise};var hTf=function(v){this.networkStatusManager=v;this.isDownloaded=g2j===void 0?function(){return!1}:g2j;
this.isReady=!1;this.aqZ=rrO(this)},rrO=function(v){var e;
return _.I(function(d){if(d.nextAddress==1)return d.yield(MIL(),2);if(d.nextAddress!=3)return e=d.yieldResult,d.yield(YJ2(e),3);v.oX=d.yieldResult;DtU(v.oX).then(function(){v.isReady=!0});
return d.return(v.oX)})},KVv=function(v,e,d){v.oX?(v=v.oX.xdC({vp:d,
lQW:!0,dFA:!0}),e.serviceIntegrityDimensions={poToken:v}):_.RI(Error("qj"))};
hTf.prototype.processContext=function(v){var e=this;if(!v.input.match(_.Ej(IdI)))return _.QM();var d=v.innerTubeRequest,E=d.videoId;return!E||this.isDownloaded(d)||this.networkStatusManager&&!this.oX&&!this.networkStatusManager.isNetworkAvailable()?_.QM():this.oX?this.isReady?(KVv(this,d,E),_.QM()):new FY(DtU(this.oX).then(function(){KVv(e,d,E)})):new FY(this.aqZ.then(function(T){return _.I(function(S){if(S.nextAddress==1)return S.yield(DtU(T),2);
KVv(e,d,E);_.s9(S)})}))};var $fi=new _.nC("WEB_PO_CONTEXT_PROCESSOR");var j$S=function(v,e){var d=this;this.pUA=0;var E;this.maa=(E=e==null?void 0:e.maa)!=null?E:window;this.networkStatusManagerPromise=e==null?void 0:e.networkStatusManagerPromise;var T;this.requestKey=(T=e==null?void 0:e.requestKey)!=null?T:_.aH("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var S;this.c0B=(S=e==null?void 0:e.c0B)!=null?S:function(Y){return new Ms(Y)};
var O;E=(O=e==null?void 0:e.g1s)!=null?O:function(Y,q,r){return new yrt(Y,q,r)};
this.bgChallenge=Zut(v.bgChallenge);this.ttlSeconds=cF3(Z7(v.challenge||""));this.rq=E(this.requestKey,_.N("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.TO.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",v);nU0(this.rq);var b;this.nel=(b=e==null?void 0:e.nel)!=null?b:function(Y){_.MC(d.maa.document,"visibilitychange",function(){d.maa.document.visibilityState===
"visible"&&Y()})}},NuC=function(v){if(!v.vm){var e={maxAttempts:5,
ctX:v.ttlSeconds*1E3};Ut$(v.maa);v.vm=v.c0B({rq:v.rq,ou9:{disable:_.N("html5_web_po_disable_remote_logging"),jo:"aGIf",rL4:fmL("html5_web_po_experiment_ids"),uIf:_.N("wpo_dis_lfdms")?0:1E3,nZC:function(E){var T=IJA.get(E);T||(T=new O57(E),T=new mi(T),IJA.set(E,T));return T}},
vJD:e,bqx:v.bgChallenge,g9e:pGt});v.pUA=Date.now();gx7(v.vm,function(){v.pUA=Date.now()});
PgL(v.vm,function(){return _.I(function(E){return E.return(s$s(v))})});
var d=v.dv0.bind(v);v.networkStatusManagerPromise&&v.ttlSeconds>0&&v.networkStatusManagerPromise.then(function(E){E.listen("publicytnetworkstatus-online",d)});
v.nel(d)}};
j$S.prototype.dv0=function(){if(Date.now()>this.pUA+this.ttlSeconds*1E3){var v;(v=this.vm)==null||Q2e(v)}};
var s$s=function(v){if(v.nKd)return v.nKd;if(!v.vm)throw Error("rj");v.nKd=new PJ({vm:v.vm,rq:v.rq,jP3:!0,onError:pGt});return v.nKd},eSj=function(v,e){v=new j$S(v,e);
NuC(v);s$s(v)};var kD1=_.EsO.ephemeralActionSelector,oL=function(v,e){this.store=v;this.queue=[];e==null||e.addEventListener("yt-navigate-start",this.reset.bind(this))};
oL.prototype.enqueue=function(v){var e=v.command,d=v.durationMs,E=v.elementToFocus;var T=v.label;var S=v.elementToFocus;v.command?T=_.sz("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:T,shortcut:_.sz("SHIFT_PLUS_ENTER")}):S&&(v=T+". "+_.sz("SHIFT_PLUS_ENTER")+" for more information.",T=_.sz("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:T,shortcut:_.sz("SHIFT_PLUS_ENTER")},v));d={announcement:T,durationMs:d!=null?d:8E3};e?d.command=e:E&&(E.classList.add("ephemeral-action-focusable-element"),d.selector=E.tagName+
".ephemeral-action-focusable-element");this.queue.push(d);LVt(this)};
oL.prototype.activate=function(v){var e=kD1(this.store.getState());if(e){if(e==null?0:e.command)_.Hz(e.command),this.store.dispatch(Smu(null));if(e==null?0:e.selector)e=document.querySelector(e.selector),_.uo3(e);v.preventDefault()}};
var LVt=function(v){if(!kD1(v.store.getState())&&v.queue.length){var e=v.queue.shift();e&&(v.previousAnnouncement===e.announcement&&(e.announcement+="\u00a0"),v.store.dispatch(Smu(e)),v.previousAnnouncement=e.announcement,v.timeoutId=setTimeout(function(){if(e.selector){var d;(d=document.querySelector(e.selector))==null||d.classList.remove("ephemeral-action-focusable-element")}v.store.dispatch(Smu(null));LVt(v)},e.durationMs))}};
oL.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Smu(null));this.queue.length=0;this.timeoutId=void 0};
oL[ua]=[_.Hl,_.eG(_.Vy)];_.Jq=new _.nC("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Vm9=window.AbortController||$0O;var om_=new _.nC("AUTH_SERVICE_TOKEN");var Tdj=_.Z9(["about:blank"]),EYt;var G6=new _.nC("API_IFRAME_TOKEN"),Jri=new _.nC("FETCH_FN_TOKEN"),GDQ=new _.nC("PARSE_FN_TOKEN"),MmC=new _.nC("WINDOW_REQUEST_TOKEN"),tm_=new _.nC("TEXT_DECODER_TOKEN");var pwE;pwE=new _.nC("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.fBs=new _.nC("MISC_UI_SHARED_FLAGS_TOKEN");var RTt=function(){};
RTt.prototype.getFlag=function(v){if(v.configType!==2)throw Error("sj");return P6f(v)};
var P6f=function(v){switch(v.flagType){case "bool":return _.N(v.flagName);case "int":return _.Bc(_.Wi(v.flagName));case "double":return _.Wi(v.flagName);case "string":return _.aH(v.flagName);case "int32_list":return fmL(v.flagName);case "int64_list":return fmL(v.flagName).map(function(e){return _.Bc(e)});
case "string_list":return _.iY(v.flagName);default:throw Error("tj");}};var MM=function(v,e,d){e=e===void 0?{}:e;MY.call(this,d===void 0?"uninitialized":d);this.env=v;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];e.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=e.shouldWaitOnAsyncImmediate)};
_.V(MM,MY);MM.prototype.init=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?E.yield(v(e.env),2):(v(e.env),E.jumpTo(2));if(E.nextAddress!=4)return e.jobSet?E.yield(e.jobSet.completedResolver.promise,4):E.jumpTo(4);d=_.HH();d.parkOrScheduleJob(function(){e.transition("rendering")},10,"ci");
_.s9(E)})};
MM.prototype.initialRender=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?E.yield(v(e.env),2):(v(e.env),E.jumpTo(2));if(E.nextAddress!=4)return e.jobSet?E.yield(e.jobSet.completedResolver.promise,4):E.jumpTo(4);d=_.HH();d.parkOrScheduleJob(function(){e.transition("rendered")},10,"cr");
_.s9(E)})};
MM.prototype.afterRenderImmediate=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?E.yield(v(e.env),2):(v(e.env),E.jumpTo(2));if(E.nextAddress!=4)return e.jobSet?E.yield(e.jobSet.completedResolver.promise,4):E.jumpTo(4);d=_.HH();d.parkOrScheduleJob(function(){e.transition("after-render-deferred")},10,"carml");
_.s9(E)})};
MM.prototype.afterRenderDeferred=function(v){var e=this;return _.I(function(d){v(e.env);_.s9(d)})};var xff;_.xc("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});xff={};_.Buv=(xff.CSI=bV7(),xff.ECATCHER=IQt(),xff);var C6s={},X$s=(C6s.rendered={priority:0,callback:function(v){CWe(v.injector.resolve(Vf))}},C6s);var dKO=new _.nC("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),zTv=new _.nC("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var lB9=function(v){this.callbackFnMap=v;this.configMap={}};
lB9.prototype.handleResponse=function(v){var e;if(v=(e=v.responseContext)==null?void 0:e.serviceTrackingParams)for(e=_.a(v),v=e.next();!v.done;v=e.next()){v=v.value;var d=v.params,E=v.service;if(d&&E){this.configMap[E]||(this.configMap[E]=new XWB);v=this.configMap[E];var T=void 0,S=(T=this.callbackFnMap)==null?void 0:T[E];d=_.a(d);for(E=d.next();!E.done;E=d.next())T=E.value,E=T.key,T=T.value,E&&T&&(v.set(E,T),S&&S(E,T))}}};
lB9[ua]=[_.eG(zTv)];var HYS=!1,rAO=0,Yct=null,qcW=null;var ArQ=new _.nC("NETWORK_SLI_TOKEN");var ZYC=function(v,e,d,E,T){this.networkSli=v;this.fetchFn=e;this.parseFn=d;this.requestFn=E;this.JSC$18481_textDecoder=T};
ZYC.prototype.fetch=function(v,e,d){var E=this,T,S,O;return _.I(function(b){T=crt(E,v,e);O=(S=E.fetchFn)!=null?S:fetch;return b.return(O(T).then(function(Y){return E.handleResponse(Y,d)}).catch(function(Y){_.xf(Y);
if((d==null?0:d.expectJsonStrict)&&Y instanceof N$&&Y.errorType===1)return Promise.reject(Y)}))})};
var mvB=function(v,e,d,E){var T,S,O,b,Y,q,r;return _.I(function(h){switch(h.nextAddress){case 1:return T=crt(v,e,d),_.qq(h,2),h.yield(fetch(T),4);case 4:S=h.yieldResult;_.wk(h,3);break;case 2:throw _.jl(h),new N$(2,"Failed to parse streaming response",T.url);case 3:if(!S.redirected&&!S.ok)throw(O=v.networkSli)==null||O.failure(),new _.kL("Streaming fetch request not ok",T.url);if(!S.body)throw new _.kL("No response body in streaming response",T.url);b={};if(_.N("web_streaming_fast"))return Y=S.body.getReader(),
h.return(w$Q(v,Y,b,E));q=S.body.pipeThrough(new TextDecoderStream).getReader();r=new _.EQ;return h.return(FVs(v,q,r,VJ7,b,E))}})},crt=function(v,e,d){if(v.networkSli){var E=_.mq(_.TE(e,"key"))||"/UNKNOWN_PATH";
v.networkSli.start(E)}E=d;_.N("wug_networking_gzip_request")&&(E=cG$(d));var T;return new ((T=v.requestFn)!=null?T:window.Request)(e,E)},w$Q=function(v,e,d,E){var T,S,O,b,Y,q,r,h,K,k,J;
return _.I(function(R){switch(R.nextAddress){case 1:T=v.JSC$18481_textDecoder?new v.JSC$18481_textDecoder("utf-8"):new TextDecoder("utf-8"),S="",O=function(B){B=B.trim();B.length!==0&&B!=="]"&&B!=="["?(B.startsWith("[")&&(B=B.substring(1)),B.endsWith("]")&&(B=B.slice(0,-1)),B.endsWith(",")&&(B=B.slice(0,-1)),B=B.trim()):B=void 0;if(B)try{var X=JSON.parse(B);VJ7(d,X);E==null||E(d,X)}catch(Z){throw new N$(1,"Failed to parse streaming response",B);}},_.qq(R,2,3);
case 5:return R.yield(e.read(),8);case 8:b=R.yieldResult;Y=b.value;if(q=b.done)return S.length>0&&O(S),r=void 0,(r=v.networkSli)==null||r.success(),R.return(d);S+=T.decode(Y,{stream:!0});h=S.split("\n");S=h.pop()||"";K=_.a(h);for(k=K.next();!k.done;k=K.next())J=k.value,O(J);R.jumpTo(5);break;case 3:_.h7(R);e.releaseLock();_.$a(R,0);break;case 2:throw _.jl(R),new N$(1,"Failed to parse streaming response");}})},FVs=function(v,e,d,E,T,S){var O,b,Y,q,r,h,K,k,J;
return _.I(function(R){if(R.nextAddress==1)return R.yield(e.read(),2);O=R.yieldResult;b=O.value;if(Y=O.done)return(q=v.networkSli)==null||q.success(),R.return(T);try{r=d.parse(b)}catch(B){throw new N$(1,"Failed to parse streaming response",b);}if(r!=null)for(h=_.a(r),K=h.next();!K.done;K=h.next())k=K.value,E(T,k),J=void 0,(J=S)==null||J(T,k);return R.return(FVs(v,e,d,E,T,S))})};
ZYC.prototype.handleResponse=function(v,e){var d,E=(d=this.parseFn)!=null?d:JSON.parse;d=v.text().then(function(T){if((e==null?0:e.jspbResponseCtor)&&v.ok)return zTj(e.jspbResponseCtor,T);T=T.replace(")]}'","");if((e==null?0:e.expectJsonStrict)&&T)try{var S=E(T)}catch(b){throw new N$(1,"JSON parsing failed after fetch");}var O;return(O=S)!=null?O:E(T)});
v.redirected||v.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),d=d.then(function(T){_.xf(new _.kL("Error: API fetch failed",v.status,v.url,T));return Object.assign({},T,{errorMetadata:{status:v.status}})}));
return d};
ZYC[ua]=[_.eG(ArQ),_.eG(Jri),_.eG(GDQ),_.eG(MmC),_.eG(tm_)];var Q$s=new _.nC("NETWORK_MANAGER_TOKEN");var gms=[1,2,4,8,16,30],nmt=function(v){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=v.maxTimeMs;this.maxFrameCount=v.maxFrameCount===void 0?Math.ceil(60*v.maxTimeMs/1E3):v.maxFrameCount;v=_.a(gms);for(var e=v.next();!e.done;e=v.next())this.brokenFrameSummarizers.push(new uas(e.value/60*1E3))},Dff=function(v){var e=v.frameCountInternal>=v.maxFrameCount;
return v.elapsedTimeMs>=v.maxTimeMs||e};
nmt.prototype.summarize=function(){for(var v=[],e=_.a(this.brokenFrameSummarizers),d=e.next();!d.done;d=e.next())d=d.value,d=d.brokenFrameCount!==0?{severityMs:Math.round(d.targetFrameTimeMs),eventCount:d.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(d.averageDurationBetweenEventsMs)}:void 0,d&&v.push(d);return{summaries:v,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.vP.Object.defineProperties(nmt.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 uas=function(v){this.targetFrameTimeMs=v;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.vP.Object.defineProperties(uas.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var UfO=function(){};
UfO.prototype.start=function(v,e){var d=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var E=new nmt({maxTimeMs:v});this.monitor=E;this.lastSummaryInternal=void 0;this.metadataToLog=e;return new Promise(function(T){var S=function(O){if(O===void 0)d.stop(),T(void 0);else if(d.monitor!==E)O=Object.assign({},E.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),T(O);else{var b=d.monitor;if(!Dff(b)){b.frameCountInternal++;if(b.prevTime===
void 0)b.startTime=O;else for(var Y=O-b.prevTime,q=_.a(b.brokenFrameSummarizers),r=q.next();!r.done;r=q.next()){r=r.value;var h=r.currTimeMs;r.currTimeMs+=Y;Y>r.targetFrameTimeMs+2&&(r.brokenFrameCount++,r.timeOfFirstBrokenFrameMs===void 0&&(r.timeOfFirstBrokenFrameMs=h),r.timeOfLastBrokenFrameMs=h)}b.prevTime=O}Dff(d.monitor)?T(d.stop()):_.RM.addJob(S,5,0)}};
_.RM.addJob(S,5,0)})};
UfO.prototype.stop=function(v){if(!this.monitor)return this.lastSummaryInternal;var e=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(e.monitoringDurationMs){v=v!=null?v:this.metadataToLog;var d={droppedFramesSummary:e,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};v&&(d[v.type]=v.data);_.tI("manualSmoothnessMeasurement",d)}this.monitor=void 0;this.lastSummaryInternal=e;this.metadataToLog=void 0;return e};_.p$s=new _.nC("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var vas;vas=function(v){this.JSC$18504_expiringStorage=new V8(v)};
_.eUs=function(v){if(_.hSt()&&(v=_.jG3(_.sI()+"::"+v)))return new vas(v)};
vas.prototype.set=function(v,e,d){d=d!==void 0?Date.now()+d:void 0;this.JSC$18504_expiringStorage.set(v,e,d)};
vas.prototype.get=function(v){return this.JSC$18504_expiringStorage.get(v)};
vas.prototype.remove=function(v){this.JSC$18504_expiringStorage.remove(v)};var dq9=new _.nC("SESSION_STORAGE");_.tq=function(){};
_.tq.getInstance=function(){var v=_.AE("ytglobal.storage_");v||(v=new _.tq,_.pw("ytglobal.storage_",v));return v};
_.tq.prototype.estimate=function(){var v,e,d;return _.I(function(E){v=navigator;return((e=v.storage)==null?0:e.estimate)?E.return(v.storage.estimate()):((d=v.webkitTemporaryStorage)==null?0:d.queryUsageAndQuota)?E.return(Kps()):E.return()})};
_.pw("ytglobal.storageClass_",_.tq);var VSM=0;var RSU=!1;var Ea9=_.Z9(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),T5v=_.Z9(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var D71={"/":_.$_,"/?feature=ytca":_.$_,"/feed/downloads":_.dQ3};var S9Q=Sit.continuationCommandSelector,Ok=function(v,e,d){this.JSC$18520_upliftPromise=v;this.store=e;this.JSC$18520_persistentStorePromiseAccessor=d};
Ok.prototype.shouldPreferLocalResponse=function(v){return v.browseId==="FEdownloads"||v.browseId==="FEsmart_downloads"&&_.N("kevlar_modern_downloads_page")?!0:!1};
Ok.prototype.localInnertubeResponse=function(v){var e=this;return _.I(function(d){return v.browseId==="FEdownloads"?_.N("kevlar_modern_downloads_page")?d.return(W7s(e)):d.return(a2s(e)):v.browseId==="FEsmart_downloads"&&_.N("kevlar_modern_downloads_page")?d.return(iFs(e)):d.return(Promise.reject(Error("vj")))})};
Ok.prototype.canProvideFallbackResponse=function(){return!0};
Ok.prototype.localFallbackInnertubeResponse=function(v){var e=this,d,E,T;return _.I(function(S){switch(S.nextAddress){case 1:return S.yield(e.JSC$18520_persistentStorePromiseAccessor(),2);case 2:d=S.yieldResult;if(v.browseId!=="SPaccount_downloads"||!d){S.jumpTo(3);break}return S.yield(QSL(d),4);case 4:if(E=S.yieldResult)return S.return(_.UR(E));case 3:return v.browseId==="FEwhat_to_watch"?S.return(OFC(e)):(T=_.N("web_offline_continuation_automatic_retry")||_.N("web_offline_continuation_retry_button"))&&
v.continuation?S.return(I2O(e)):S.return(bFv(e))}})};
var OFC=function(v){var e;return _.I(function(d){if(d.nextAddress==1)return d.yield(v.JSC$18520_upliftPromise,2);e=_.xNt(v.store.getState().entities);return e.length?d.return(Y9f(v,e)):d.return(bFv(v))})},a2s=function(v){var e,d;
return _.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$18520_upliftPromise,2);if(E.nextAddress!=3)return e=mqs([{offlineItemSectionRenderer:{}}]),E.yield(y7i(v,e),3);d=E.yieldResult;d.onResponseReceivedActions=[rp("REFRESH_DOWNLOADS")];return E.return(d)})},W7s=function(v){var e,d,E,T,S,O,b,Y,q,r,h,K,k,J,R,B;
return _.I(function(X){if(X.nextAddress==1)return X.yield(v.JSC$18520_upliftPromise,2);if(X.nextAddress!=3)return e=v.store.getState(),d=e.entities,E=_.PK(d),T=_.xH(d),S=_.Y1W(e),O=_.bst(e),b=_.m$0(e),Y=_.XH0(d),q=_.J_(E),r=_.BK(d),h=_.AdW(d),K=_.q1W(e),k=_.HK(e),J={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.h9S(E,T,Y,h,S,O,q,r,b,K,k),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},R="",_.N("kevlar_modern_downloads_skip_downloads_title")||
(R=_.sz("DOWNLOADS",void 0,"Downloads")),X.yield(q9w(v,J,R),3);B=X.yieldResult;B.onResponseReceivedActions=[rp("REFRESH_DOWNLOADS")];return X.return(B)})},iFs=function(v){var e,d,E,T,S,O,b,Y,q;
return _.I(function(r){if(r.nextAddress==1)return r.yield(v.JSC$18520_upliftPromise,2);if(r.nextAddress!=3)return e=v.store.getState(),d=e.entities,E=_.PK(d),T=_.J_(E),S=_.BK(d),O={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.$QL(E),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},b=_.sz("SMART_DOWNLOADS",void 0,"Smart downloads"),Y=qxM(T,S),r.yield(q9w(v,O,b,Y),3);q=r.yieldResult;q.onResponseReceivedActions=
[rp("REFRESH_DOWNLOADS")];return r.return(q)})},bFv=function(v){var e,d;
return _.I(function(E){if(E.nextAddress==1)return E.yield(D7(v.JSC$18520_upliftPromise,v.store),2);e=E.yieldResult;d=mqs([Z_U(e)]);return E.return(y7i(v,d))})},I2O=function(v){var e,d,E,T;
return _.I(function(S){if(S.nextAddress==1)return e={},d=S9Q(v.store.getState()),_.xJ(e,_.Ha,d),S.yield(D7(v.JSC$18520_upliftPromise,v.store,e,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);E=S.yieldResult;T={};_.xJ(T,_.zwu,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:E}}}],targetId:"browse-feedFEwhat_to_watch"});return S.return({responseContext:{},onResponseReceivedActions:[T]})})},mqs=function(v){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:v}}}}]}}},Y9f=function(v,e){var d,E;
return _.I(function(T){var S={contents:h1(e)};d=S&&S.contents?S:{};_.N("kevlar_modern_downloads_page")&&(d=Object.assign({},_.jXU(e),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));E={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:d}}}]}};return T.return(y7i(v,E))})},y7i=function(v,e){var d,E;
return _.I(function(T){if(T.nextAddress==1)return T.yield(v.JSC$18520_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3)return d=T.yieldResult,T.yield(pr(d),3);E=T.yieldResult;return T.return({responseContext:{},contents:e,topbar:E})})},q9w=function(v,e,d,E){var T,S;
return _.I(function(O){if(O.nextAddress==1)return O.yield(v.JSC$18520_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return T=O.yieldResult,O.yield(pr(T),3);S=O.yieldResult;var b=O.return;var Y=d;var q=E;Y=Y===void 0?"":Y;q=q===void 0?"":q;Y={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:Y}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.sz("SETTINGS",void 0,"Settings"),accessibilityText:_.sz("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:_.Ta("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:q}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:Y};
return b.call(O,{responseContext:{},contents:e,topbar:S,header:{pageHeaderRenderer:Y}})})};var r7t=function(){this.moduleRegistry={};this.fetchCount=0};
r7t.prototype.isFetching=function(){return this.fetchCount>0};
var x5=function(v,e){v.moduleRegistry[e.toString()]={asyncId:e,isFetching:!1};return v};
r7t.prototype.JSC$18531_loadModules=function(){for(var v=this,e=new Map,d=[],E=_.a(_.Xa.apply(0,arguments)),T=E.next();!T.done;T=E.next()){T=T.value;var S=this.moduleRegistry[T];S?S.resolver?e.set(T,S.resolver):(S.resolver=new _.r1,e.set(T,S.resolver),d.push(S.asyncId),S.isFetching=!0):(S=new _.r1,e.set(T,S),S.resolve(void 0))}d.length&&(this.fetchCount+=1,_.j9(_.O1.getMultipleAsync.apply(_.O1,_.t7(d)).then(function(O){for(var b=0;b<d.length;b++){var Y=O[b],q=v.moduleRegistry[d[b].toString()];q.isFetching=
!1;q.resolver.resolve(Y)}}).catch(function(O){for(var b=_.a(d),Y=b.next();!Y.done;Y=b.next()){Y=Y.value;
var q=v.moduleRegistry[Y.toString()];q.resolver=void 0;q.isFetching=!1;e.get(Y.toString()).reject(O)}}),function(){--v.fetchCount}));
return Promise.all([].concat(_.t7(e.values())).map(function(O){return O.promise}))};_.B0=new _.nC("MODULE_REGISTRY_TOKEN");var hU1={},K71=(hU1.rendered={priority:0,callback:function(v){a:{var e=void 0;try{var d;b:{if(_.Kmt()){var E=_.$Et(_.sI()+"::pom");if(E){var T=new Gf(E);break b}}T=void 0}var S=(d=T)==null?void 0:d.get("role_text");if(!S)break a;e={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:S}]}}}}}}catch(Y){}e&&v.injector.resolve(_.EI).resolveCommand(e)}try{var O=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(O){var b=JSON.parse(O);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
b&&v.injector.resolve(_.EI).resolveCommand(b)}}catch(Y){}}},hU1);var $qs,j0S={},s09=(j0S.initialized={priority:10,callback:function(){$qs=KO()}},j0S.rendering={callback:function(v){var e;
return _.I(function(d){if(d.nextAddress==1)return d.yield($qs,2);e=d.yieldResult;if(!e.endpoint)throw Error("xj`"+_.TO.location.href);N3(v,e);_.s9(d)})}},j0S);var N5C={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(_.t7(_.N("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(v){var e=v.stack;if(e.includes("chrome://")||e.includes("chrome-extension://")||v.message.includes("chrome-extension://")||e.includes("moz-extension://")||e.includes("local.adguard.org")||e.includes("auctioneer3.50million.club")||e.includes("youtubedownloader")||e.includes("youtube_home_page")||e.includes("is_youtube_video_no_longer_available")||
e.includes("switchScreenSizeHack")||e.includes("yt_main_big_banner.js")||e.includes("YouTubeCenter.js")||e.includes("/mytube.js")||e.includes("JSON.parseWrapper")||e.includes("/inj_js/common.js")||e.includes("firebug-lite")||e.includes(".repl.co/")||e.includes("linkfix")||e.includes("playAfterAd")||v.message.includes("Access is denied for this document")&&e.includes("<anonymous>")||v.fileName==="user-script"||v.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
e.includes("<anonymous>"))return!0;if(e.includes("https://www.youtube.com"))return!1;v=e.split("\n");if(!v.length)return!1;if(v.length<=3&&e.includes("s.onloadeddata"))return!0;e=0;for(var d=_.a(v),E=d.next();!E.done;E=d.next())E=E.value,(E.includes("https://")||E.includes("http://"))&&e++;return e/v.length>.95},
weight:0},{callback:function(v){return v.message==="Unknown Error"&&v.name.indexOf("NS_")===0},
weight:100},{callback:function(v){if(!_.Tw)return!1;var e=v.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||v.message.includes("available to complete this operation"),d=v.stack.includes("webcomponents")&&v.message==="Object doesn't support this action";v=v.message.includes("object that does not implement interface Element");return e||d||v},
weight:0},{callback:function(v){return v.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(v){return v.message==="Operation is not supported"&&(v.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(v){return v.stack.includes("eval code (eval (code:1:1)")||v.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(v){return v.message.includes("Permission denied")&&v.stack.includes("this.domHandler")?!0:v.name.includes("TypeError")&&v.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(v){if(!v.stack)return!1;var e=v.stack.trim().split("\n");e.length&&e[0].endsWith("Error: "+v.message)&&e.shift();e.length&&e[e.length-1].includes("at window.onerror (")&&e.pop();if(!e.length)return!0;if(v.message==="Script error.")return e[0].includes("www.youtube.com")||e.length>=2&&e[0].startsWith("at new")&&e[1].startsWith("at window.onerror");if(v.message==="Unexpected token")return!0;v=_.a(e);for(e=v.next();!e.done;e=v.next())if(e=e.value,!(e.includes("<anonymous>")||
e.startsWith("load@")||e.startsWith("global code@")||e.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(v){return v.message==="Cannot read property 'experiments'"&&v.stack.includes("/s/player/")},
weight:500},{callback:function(v){return v.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(v){return v.stack.includes("/embed.js")?(v.params&&v.params&&(v.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.N("use_error_suppression"))var v=_.Bb("SUPPRESS_CLIENT_ERRORS",!1);else{if(v=_.OU)v=/Chrome\/(\d+)/.exec(_.Kt()),v=(v?parseFloat(v[1]):NaN)>=66;v=!(v||_.i1&&_.aW(65)||_.Xo&&_.aW(12.1)||DT&&_.aW(79))}return v},
weight:500}]};var kM_={},L7i=(kM_.initialized={priority:10,callback:function(v){v.injector.addProvider({provide:azE,useValue:v.root});v.injector.addProvider({provide:H7v,useValue:yX$});v.injector.addProvider({provide:Ae9,useValue:N5C});var e={};v.injector.addProvider((e.provide=Z7s,e.useFactory=function(d,E){return function(){aL0(d,E)}},e[ua]=[H7v,
Ae9],e));v.injector.addProvider({provide:jq,useClass:jq})}},kM_);var Vls={},oa9=(Vls.initialized={priority:3,callback:function(){var v;if(v=YoU()){v=v.replace("/",".");var e=_.LB();e.set("tz",v);e.save();v=!0}else v=!1;v||(v=_.LB(),v.set("utco",-Math.floor((new Date).getTimezoneOffset())),v.save())}},Vls);var J71={},GM9=(J71.initialized={priority:10,callback:function(v){v.injector.resolve(jq).start();v=_.no();var e=_.zr("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.zr("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.zr("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.zr("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Sd(_.git(),{mainAppWeb:Object.assign({},v,{pageType:e})});_.Sd(nit(),{mainAppWeb:Object.assign({},v,{pageType:e})});
_.Sd(DYH(),{mainAppWeb:v});_.Sd(UYM(),{mainAppWeb:v});uTe(function(){_.W0(DYH(),"FAILURE");_.W0(UYM(),"FAILURE")});
gY3();uGO();ijU()}},J71);var Mlt={},tlw=(Mlt.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.zE("dl"),_.HH().processSignal("pcl");else{var v=function(){_.zE("dl");_.HH().processSignal("pcl");window.removeEventListener("load",v)};
window.addEventListener("load",v)}}},Mlt);var f2v={},RUi=(f2v.rendering={priority:0,callback:function(){var v=_.HH();v.parkOrScheduleJob(function(){v.processSignal("eocs")},10,"eor",5E3)}},f2v);var P9s=function(){};
_.V(P9s,AT);
P9s.prototype.resolveCommand=function(v,e){var d,E,T,S,O,b,Y,q;return _.I(function(r){T=(d=_.L(v,_.M$c))==null?void 0:(E=d.dialog)==null?void 0:E.commentReplyDialogRenderer;if(!T)throw new _.kL("No dialog in createCommentReplyDialogEndpoint");O=(S=e.form)==null?void 0:S.event;if(!O)throw new _.kL("Event not passed in when resolving command");b=_.a(O.composedPath());for(Y=b.next();!Y.done;Y=b.next())if(q=Y.value,q.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||q.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return q.showReplyDialog(T),r.return();
_.s9(r)})};var fH=function(v){this.pageRequestService=v;this.JSC$18546_prefetchCoordinator=Jew()};
_.V(fH,AT);fH.prototype.resolveCommand=function(v){var e=this,d,E,T,S;return _.I(function(O){if(O.nextAddress==1){d=_.L(v,O6M);if((E=d)==null||!E.taskId)throw Error("yj");T=d.taskId;_.qq(O,2);return O.yield(_.iKA(e.pageRequestService,v,{},"").then(function(b){if(!b)throw Error("zj");},function(b){throw Error("Aj`"+b);
}),4)}if(O.nextAddress!=2)return tAC(e.JSC$18546_prefetchCoordinator,T),_.wk(O,0);
S=_.jl(O);OM(e.JSC$18546_prefetchCoordinator,T,S);_.s9(O)})};
fH[ua]=[hR];var RL=function(v){this.innertubeTransportService=v};
_.V(RL,AT);RL.prototype.resolveCommand=function(v){var e=this,d,E;return _.I(function(T){d=_.L(v,iei);if(d.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||d.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")E=d.boolValue?2:1,_.p6.getInstance().setState(E,!0,!0);return T.yield(_.Qw(e.innertubeTransportService,v),0)})};
RL[ua]=[_.lX];var PN={},xqi=(PN.addToPlaylistEndpoint=Eo(x4),PN.addToToastAction=Eo(zm),PN.adsControlFlowOpportunityReceivedCommand=Eo(rR),PN.audioTrackSelectActionCommand=Eo(VWS),PN.backgroundAudioPlaybackCommand=Eo(uo),PN.captionLanguageSelectActionCommand=Eo(nT),PN.captionPickerEndpoint=Eo(DM),PN.changeMiniAppPlayStateCommand=Eo(BQ),PN.changeTimelyActionVisibilityCommand=Eo(X0),PN.channelCreationFormEndpoint=Eo(Gg),PN.clearLocationCommand=Eo(PQ),PN.clearUrlParamCommand=Eo(CT),PN.copyLinkCommand=Eo(Tm),PN.copyTextEndpoint=
Eo($4),PN.createCommentReplyDialogEndpoint=nlt(P9s),PN.createPlaylistServiceEndpoint=Eo(S3),PN.dismissDialogEndpoint=Eo(zg),PN.dismissPlayerOverlayCommand=Eo(UL),PN.entityUpdateCommand=Eo(sL),PN.feedbackEndpoint=Eo(LT),PN.getAnswerCommand=Eo(CL1),PN.getPaymentsClientTokenCommand=Eo(Aj),PN.getTranscriptEndpoint=Eo(lN),PN.googlePaymentBillingCommand=Eo(Zs),PN.googlePaymentPurchaseManagerCommand=Eo(ct),PN.hideEngagementPanelEndpoint=Eo(lo),PN.hideSnackbarCommand=Eo(tj),PN.insertRichSectionCommand=Eo(tp),
PN.listMutationCommand=Eo(fT),PN.logGtmCommand=Eo(MB),PN.notifyDropdownOptionSelectedCommand=Eo(X3),PN.openAdAllowlistInstructionCommand=Eo(_.hp),PN.openOnePickAddVideoModalCommand=Eo(Wt),PN.persistSubscriptionsDisplayPreferencesCommand=Eo(Y$),PN.pingingEndpoint=Eo(KT),PN.playlistEditEndpoint=Eo(iN),PN.playlistVotingRefreshPopupCommand=Eo(Op),PN.profileCardCommand=Eo(qB),PN.refreshPanelEndpoint=Eo(HQ),PN.saveImageToDeviceEndpoint=Eo(jn),PN.scrollToSectionEndpoint=nlt(X3f),PN.seekToVideoTimestampCommand=
Eo(pT),PN.selectCountryCommand=Eo(mn),PN.setCookieCommand=Eo(yA),PN.setLocalStorageCommand=Eo(RR),PN.setPrefStorageEntryCommand=Eo(rw),PN.setSettingEndpoint=Eo(RL),PN.sfvAudioItemPlaybackCommand=Eo(e3),PN.shareImageCommand=Eo(hj),PN.sharingProviderDataCommand=Eo(Kc),PN.showAudioTrackPickerActionCommand=Eo(x79),PN.showCaptionLanguageSelectActionCommand=Eo(dw),PN.showDialogCommand=Eo(cQ),PN.showEngagementPanelEndpoint=Eo(wR),PN.showSheetCommand=Eo(F3),PN.showSnackbarCommand=Eo(fc),PN.showTransientPlayerScrimOverlayCommand=
Eo(Ep),PN.submitFormWithValidationFlowCommand=Eo(Jp),PN.talkToRecsDeselectCommand=Eo(Pt),PN.talkToRecsNextCommand=Eo(x$),PN.talkToRecsSelectCommand=Eo(Bt),PN.talkToRecsUpdateTextCommand=Eo(Cc),PN.toggleEngagementPanelCommand=Eo(Qh),PN.undoFeedbackEndpoint=Eo(oV),PN.updateEngagementPanelContentCommand=Eo(gR),PN.updateUrlParamCommand=Eo(Ht),PN.verifyCommand=Eo(Gg),PN.webNativeShareCommand=Eo($$),PN.webSubmitFormCommand=Eo(IR),PN.ACK_PLAYABLES_3P_DATA_CONSENT=Eo(j3),PN.CANCEL_NAVIGATION=Eo(sp),PN.COPY_SHARE_URL=
Eo(Nv),PN.MINI_APP_EXIT_DIALOG_SEEN=Eo(Lc),PN.MINI_APP_OPEN_URL=Eo(k$),PN.REQUEST_MINI_APP_FULLSCREEN=Eo(VA),PN.RESUME_NAVIGATION=Eo(oR),PN.SHARE_PLAYABLE_WITH_HIGH_SCORE=Eo(Jj),PN.TELL_US_WHY=Eo(Vh),PN);_.N("web_enable_prefetching_videos_on_home")&&(xqi.prefetchWatchCommand=Eo(fH),xqi.registerTasksCommand=Eo(bQ));_.N("enable_share_panel_navigation_logging_fix_on_web")&&(xqi.shareEntityServiceEndpoint=Eo(Ap));var rQA=Object.assign({},xqi);var B5f={},C9S=(B5f.initialized={priority:10,callback:vC0},B5f);var Xuv={},zUt=(Xuv.initialized={callback:function(v){var e={},d={};$MO().install((e.document_disposed={callback:function(){_.N("finalize_all_timelines")?r90():xB();mmW("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.te3();var E=v.injector.resolve(jq);E.intervalId!==void 0&&(E.intervalId&&_.RM.cancelJob(E.intervalId),E.intervalId=void 0,--E.currentPartitionIndex,E=uN2(E),E>0&&eB7({mainAppWeb:_.no(),survivalSli:{partitionMinute:E,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Qei(cD);w$!=null&&
w$.flush();bX&&bX.snapshotAndFlush();E=_.a(IJA.values());for(var T=E.next();!T.done;T=E.next())T.value.snapshotAndFlush()}},e),(d.flush_logs={callback:function(){_.fI()}},d))}},Xuv);var l2v={},HFO=(l2v.rendered={priority:0,callback:function(){var v=new f4I;v.increment("STARTED");if(_.Bb("LOGGED_IN")&&!_.Bb("IS_DBSC",!1)&&_.Bb("SERVER_VERSION")!=="test"&&_.Bb("SERVER_VERSION")!=="dev"&&!I0A()&&!O70()){v.increment("EXECUTING");var e=document.createElement("iframe");e.style.display="none";_.T5j(e,2,_.xm("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(e);v.increment("DONE")}}},
l2v);var A7S={},ZF9=(A7S.rendered={callback:function(){Jew().resume()}},A7S);var c79={acknowledgeChannelTouStrikeCommand:Md(jz),addToPlaylistServiceEndpoint:Md(kP),addToPlaylistEndpoint:Md(kP),addUpcomingEventReminderEndpoint:Md(xR),browseEndpoint:Md(b71),channelCreationFormEndpoint:Md(me),channelCreationServiceEndpoint:Md(yr),claimLegacyYoutubeChannelEndpoint:Md(pc),clearSearchHistoryEndpoint:Md(J3),clearWatchHistoryEndpoint:Md(G_),commerceActionCommand:tk(wO),createBackstagePostEndpoint:Md(QA),createBroadcastCommand:Md(BL),createCommentEndpoint:Md(Ot),createCommentReplyEndpoint:Md(af),
createLiveChatPollEndpoint:Md(CZ),createPlaylistServiceEndpoint:Md(LS),crossAccountChannelTransferEndpoint:Md(fZ),deleteLiveChatMessageCommand:Md(Xw),deletePlaylistEndpoint:Md(Vz),deleteVideoEndpoint:Md(HE),dismissalEndpoint:Md(st),feedbackEndpoint:Md(NI),flagEndpoint:Md(fS),getAccountSwitcherEndpoint:Md(t3),verifyCommand:Md(F0),getAccountsListInnertubeEndpoint:Md(PL),getCommentsFromInboxCommand:Md(pZ),getDownloadActionCommand:Md(mG),getFlowCommand:tk(of),getKidsBlocklistPickerCommand:Md(R1),getNotificationMenuEndpoint:Md(yei),
getPaymentInstrumentsParamsCommand:Md(DR),getPaymentsClientTokenCommand:tk(wO),getPdgBuyFlowCommand:Md(s5),getReportFormEndpoint:Md(PE),getSearchInVideoCommand:Md(CS),getAnswerCommand:Md(BE),getSurveyCommand:Md(l7),getTranscriptEndpoint:Md(ZR),getPostVideoPreviewEndpoint:Md(uN),decorateMessageEndpoint:Md(gw),likeEndpoint:Md(qI),liveChatActionEndpoint:Md(A3),liveChatEndpoint:Md(HL),liveChatItemContextMenuEndpoint:Md(z_),liveChatPurchaseMessageEndpoint:Md(ZO),liveChatReplayEndpoint:Md(lt),manageLiveChatUserEndpoint:Md(w7),
metadataUpdateCommand:Md(DO),moderateLiveChatEndpoint:Md(Fw),modifyChannelNotificationPreferenceEndpoint:Md(I1),notificationOptOutEndpoint:Md(b7),openSuperStickerBuyFlowCommand:Md(cL),performCommentActionEndpoint:Md(T_),playlistEditEndpoint:Md(JB),playlistEditorEndpoint:Md(o1),recordNotificationInteractionsEndpoint:Md(YP),reelWatchEndpoint:Md(GG),refreshPanelEndpoint:Md(qo),removeUpcomingEventReminderEndpoint:Md(Qr),resolveLocationCommand:Md(nZ),revealBusinessEmailCommand:Md(vL),searchEndpoint:Md(_.q6S),
sendLiveChatMessageEndpoint:Md(g7),sendLiveChatVoteEndpoint:Md(ut),setSettingEndpoint:Md(r7),shareEntityServiceEndpoint:tk($R),sharingProviderDataCommand:Md(zG),showEngagementPanelEndpoint:Md(rO),showMoreDrawerCommand:Md(KS),showSheetCommand:Md($P),showDialogCommand:Md(hB),subscribeEndpoint:Md(h3),transcriptSubmitCaptionCorrectionCommand:Md(AB),undoFeedbackEndpoint:Md(LZ),unsubscribeEndpoint:Md(KZ),updateBackstagePostEndpoint:Md(Ds),updateCommentEndpoint:Md(bt),updateCommentReplyEndpoint:Md(If),updateCommentsSettingsEndpoint:Md(YR),
updateCreatorChannelInnertubeCommand:Md(d7),updateKidsBlacklistEndpoint:Md(xP),updateEngagementPanelContentCommand:Md(jJ),updatePdgFeatureEnablementCommand:Md(No),updatedMetadataEndpoint:Md(Ut),validateChannelHandleCommand:Md(Et),updateChannelPageSettingsEndpoint:Md(ez),verifyAgeEndpoint:Md(Vr),watchEndpoint:tk(hb),whitelistEditEndpoint:Md(cE),ypcCancelRecurrenceEndpoint:Md(FH),ypcCompleteTransactionEndpoint:Md(Qz),ypcFixInstrumentEndpoint:Md(u7),ypcGetCartEndpoint:Md(gO),ypcGetOffersEndpoint:Md(nS),
ypcHandleTransactionEndpoint:tk(U5),ypcLogWalletAnalyticDataEndpoint:Md(pS),ypcOffersEndpoint:Md(vN),ypcPauseSubscriptionCommand:Md(ee),ypcRedeemCodeEndpoint:Md(d8),ypcResumeSubscriptionCommand:Md(EM),ypcUpdateFopEndpoint:Md(u7)},xy={},wuS=(xy.GET_ACCOUNT_MENU=Md(Rf),xy.GET_NOTIFICATIONS_MENU=Md(miw),xy.GET_NOTIFICATIONS_INBOX=Md(vE),xy.GET_UNSEEN_NOTIFICATION_COUNT=Md(O5),xy.GET_USER_MENTION_SUGGESTIONS=Md(nc),xy.LOAD_GUIDE=Md(Y6s),xy.SUBMIT_FEEDBACK=Md(kR),xy),BN={},F71=(BN.CONTINUATION_REQUEST_TYPE_BROWSE=
Md(Up),BN.CONTINUATION_REQUEST_TYPE_SEARCH=Md(XH),BN.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Md($K),BN.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Md(MI),BN.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Md(WL),BN.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Md(Sz),BN.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Md(tB),BN.CONTINUATION_REQUEST_TYPE_GET_PANEL=Md(yz),BN),Q0f={player:tk(hb),watchNext:Md(Ks)},gas={player:tk(hb),reelItemWatch:Md(GG),reelWatchSequence:Md(Mo)},usf={watchEndpoint:tk(jN)},nav=
{commandEndpointMap:c79,signalEndpointMap:wuS,continuationEndpointMap:F71,watchEndpointMap:Q0f,reelWatchEndpointMap:gas,streamingEndpointMap:usf};var DqC,Uqi,puv;_.vxS=((Uqi=(DqC=window).matchMedia)==null?void 0:(puv=Uqi.call(DqC,"(prefers-reduced-motion: reduce)"))==null?void 0:puv.matches)||!document.startViewTransition;var eWi={},dRv={disableAllTransitions:_.vxS,ignoredErrors:(eWi.DOCUMENT_HIDDEN=!0,eWi.WINDOW_SIZE_CHANGED=!0,eWi.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,eWi),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var Exi=_.Z9("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),Tri=function(v){this.viewTransitionCoordinator=v;this.isBrowseTransitionEnabled=_.aH("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.N("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.N("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.N("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){v=_.Wi("web_page_transition_exit_ms");var e=_.Wi("web_page_transition_wait_ms"),
d=_.Wi("web_page_transition_enter_ms"),E=_.Wi("web_page_transition_watch_exit_ms"),T=_.Wi("web_page_transition_watch_wait_ms"),S=_.Wi("web_page_transition_watch_enter_ms");if(!isNaN(v)||!isNaN(e)||!isNaN(d))if(v=fP$(Exi,v,e,d,E,T,S))e=document.createElement("style"),e.textContent=OFU(v),document.head.appendChild(e)}};
Tri.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var v={};this.viewTransitionCoordinator.registerElement(document.documentElement,(v.slide="root-slide",v["lockup-to-watch"]="root-lockup-to-watch",v["learning-journey"]="root-learning-journey",v))}};
_.K_I=function(v,e){v.isLockupToWatchTransitionEnabled&&v.isLockupThumbnailRegistrationEnabled&&(v.registeredLockupThumbnail?v.lockupThumbnailRegisteredFromWatchEndpoint?_.xf(new _.kL("Lockup thumbnail registration order is incorrect.")):_.xf(new _.kL("Lockup thumbnail already registered.")):(v.registeredLockupThumbnail=e,_.Sa_(v,e)))};
_.Sa_=function(v,e){var d={};v.viewTransitionCoordinator.registerElement(e,(d["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",d),!0)};
Tri[ua]=[Z9f];var em0={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 ECL=["videoPrimaryInfoRenderer","title"],TeO=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var W1i;W1i=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.aPi=_.l(function(v){v=_.dC(v,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var e=v.data,d=v.playlistData,E=v.expanded,T=v.onExpandClick,S=v.isReadyToResume,O=function(){var r;return!((r=d())==null||!r.contents)},b=function(){var r=d();
return r&&r.totalVideos&&r.currentIndex!==void 0?r.currentIndex+1+" / "+r.totalVideos:""};
v=_.rq(function(){_.CH(_.dk().resolve(_.P0));return!1});
var Y=_.rq(function(){O()&&T&&T()}),q={};
return _.m("ytd-miniplayer-info-bar",{class:_.qe("ytdMiniplayerInfoBarHost",(q.ytdMiniplayerInfoBarHasPlaylistData=O,q)),"on:click":Y},_.m("div",{class:"ytdMiniplayerInfoBarContent"},_.m("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":v},_.m(_.Dh,{text:function(){var r=e();var h=d();if(h==null?0:h.contents){var K;r=(K=_.ru7(h))==null?void 0:K.title}else r=r==null?void 0:r.miniplayerTitle;return SVt(r)},
noEndpoints:!0,ellipsisTruncate:!0})),_.m("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.m(_.y,{cond:S,then:function(){return _.m(Wtn,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:W1i})}}),_.m("h1",null,_.m(_.Dh,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var r=e();var h=d();r=S()?{simpleText:_.sz("CONTINUE_WATCHING",void 0,"Continue watching")}:(h==null?0:h.contents)?h.titleText:r==null?void 0:r.miniplayerSubtitle;return SVt(r)},
noEndpoints:!0,ellipsisTruncate:!0})),_.m(_.y,{cond:function(){return!!b()&&!S()},
then:function(){return _.m("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.m("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.m("span",null,b))}}))),_.m(_.y,{cond:O,
then:function(){return _.m("div",{class:"ytdMiniplayerInfoBarExpand"},_.m(_.mO,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(r){T&&(T(),r.stopPropagation())}}},
iconName:function(){return E()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ue");var i0Q;i0Q=_.l(function(v){return _.m("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.m(_.mO,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:v.onTap}},
iconName:"yt-icons:close"}))},"Ve");
_.O0i=_.l(function(v){v=_.dC(v,{playabilityStatus:void 0,isDisabled:!1});var e=v.size,d=v.playabilityStatus,E=v.isDisabled,T=_.nI("div");v=_.a(_.OE(void 0,void 0,"bJr0Se"));var S=v.next().value,O=v.next().value;v=_.Xj(_.Wj);var b=!1,Y=function(){return e().height<=0};
_.o_(function(){var K=e(),k=Y(),J=S();J&&!k&&J.setInternalSize(K.width,K.height)},"OUOyKb");
_.JE(function(){var K,k,J;return _.I(function(R){if(R.nextAddress==1){K=_.dk().resolve(_.P0);k=K.getPlayerElement();if(!K.isMiniplayerActive()||!k||!T.value)return R.return();k.appendTo(T.value);return R.yield(k.getPlayerPromise(),2)}J=R.yieldResult;J.setSizeStyle(!1,!0);O(J);_.s9(R)})});
_.Jf(function(){q()});
_.o_(function(){var K=S();if(K)if(E()){var k=K.getPlayerState();(b=k===-1||k===1||k===3)&&K.pauseVideo()}else q()},"KKHe5");
var q=function(){if(b){b=!1;var K;(K=S())==null||K.playVideo()}},r=_.rq(function(){_.CH(_.dk().resolve(_.P0))}),h={};
return _.m("ytd-miniplayer-player-container",{class:_.qe("ytdMiniplayerPlayerContainerHost",(h.ytdMiniplayerPlayerContainerHidden=Y,h.ytdMiniplayerPlayerContainerHostShortsPip=v,h)),style:_.jM({width:function(){return e().width+"px"},
height:function(){return e().height+"px"}})},_.m("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:T}),_.m(_.y,{cond:function(){return!!d()&&!_.xt$(d())},
then:function(){return _.m(K2A,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var K;return((K=d())==null?void 0:K.errorScreen)||null},
status:function(){var K;return((K=d())==null?void 0:K.status)||null}})}}),_.m(_.y,{cond:E,
then:function(){return _.m("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":r},_.m(i0Q,{onTap:function(){_.dk().resolve(_.P0).close()}}))}}))},"We");_.IPs=_.l(function(v){var e=v.toastData;var d=_.nI("ytd-miniplayer-toast");v=_.a(_.KM(function(){return!!e()}));
var E=v.next().value,T=v.next().value;v=_.a(_.OE(!1,void 0,"xkrBze"));var S=v.next().value,O=v.next().value,b=function(){var r;return _.vv((r=e())==null?void 0:r.data.title)};
_.Gr(function(){_.C$.requestAvailability();e()&&T(!1)});
var Y,q;_.o_(function(){E()&&(_.Iq(d.value,"iron-announce",{text:e().label+" "+b()}),Y&&_.RM.cancelJob(Y),Y=_.RM.addLowPriorityJob(function(){O(!0)},2500))},"OTdL1e");
_.o_(function(){S()&&(q&&_.RM.cancelJob(q),q=_.RM.addLowPriorityJob(function(){T(!1);O(!1)},300))},"yybqib");
v={};return _.m("ytd-miniplayer-toast",{el:d,class:_.qe("ytdMiniplayerToastHost",(v.ytdMiniplayerToastOpening=function(){return E()},v.ytdMiniplayerToastClosing=function(){return S()},v))},_.m(_.y,{cond:function(){var r;
return(r=e())==null?void 0:r.data},
then:function(r){return _.m(q72,{className:"ytdMiniplayerToastThumbnail",data:r,width:78})}}),_.m("div",{class:"ytdMiniplayerToastInfo"},_.m("div",{class:"ytdMiniplayerToastLabel"},function(){var r;
return(r=e())==null?void 0:r.label}),_.m("div",{class:"ytdMiniplayerToastTitle"},b)))},"Xe");var qV3;var KT7=null;var Yas=_.l(function(v){var e=v.progressState;var d=v.multiMarkersPlayerBarRenderer;var E=v.progressBarWidth;var T=function(){return NeS(d())},S=function(){return VCS(e())},O=function(){return E()*(e().playedTime/e().videoDuration)};
return _.m("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.m(_.jI,{each:T},function(b,Y){return _.m(b0S,{modifiedProps:S,chapters:T,index:Y,playedProgressWidth:O,backgroundGradientPosition:function(){var q=S(),r=T(),h=Y(),K=O();return(q.playedTime-fO(_.L(r[h],tR)))/q.playedTime*K}})}))},"Ye"),b0S=_.l(function(v){var e=v.modifiedProps;
var d=v.chapters;var E=v.index;var T=v.playedProgressWidth;var S=v.backgroundGradientPosition;v={};v=_.qe("ytChapteredProgressBarChapteredPlayerBarChapter",(v.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return O().isScrubbing},v.ytChapteredProgressBarHoveredMacroMarker=function(){return O().scrubberHovering},v.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return O().videoPosition==="seen"},v));
var O=function(){return oCS(e(),d(),E())},b=function(){var Y=e();
var q=d(),r=E();if(oCS(Y,q,r).videoPosition!=="active")Y=0;else{var h=fO(_.L(q[r],tR));Y=(Y.playedTime-h)/((fO(_.L(q[r+1],tR))||Y.videoDuration)-h)}return Y};
return _.m("div",{class:v,style:_.jM({width:function(){var Y=e(),q=d(),r=E(),h=_.L(q[r],tR);q=_.L(q[r+1],tR);return(q?fO(q)-fO(h):Y.videoDuration-fO(h))/Y.videoDuration*100+"%"},
"background-color":function(){a:{var Y=O();switch(Y.videoPosition){case "pending":Y=Y.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":Y=Y.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:Y=""}}return Y},
"background-size":function(){return(JKj(O())?T():"")+"px"},
"background-position-x":function(){return(JKj(O())?S():"")+"px"}})},_.m("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var Y=e(),q=d(),r=E();if(oCS(Y,q,r).videoPosition==="seen")var h=0;else h=fO(_.L(q[r],tR)),q=fO(_.L(q[r+1],tR))||Y.videoDuration,Y=Y.videoDuration*Y.percentLoaded,h=q<=Y?1:h>=Y?0:(Y-h)/(q-h);return"width: "+h*100+"%"}}),_.m("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.jM({width:function(){return b()*100+"%"},
"background-size":function(){return(JKj(O(),b())?T():"")+"px"},
"background-position-x":function(){return(JKj(O(),b())?S():"")+"px"}})}))},"Ze");var mR9=function(v,e){e=e===void 0?iv0:e;var d,E=[],T,S=!1;return function(){var O=_.Xa.apply(0,arguments);if(S&&d===this&&e(O,E))return T;T=v.apply(this,O);S=!0;d=this;E=O;return T}}(function(v){var e=v.heatMarkers,d=v.minHeightDp===void 0?0:v.minHeightDp,E=v.maxHeightDp===void 0?60:v.maxHeightDp;
var T=T===void 0?!1:T;var S=1E3/e.length;v=[];v.push({x:0,y:100});for(var O=0;O<e.length;O++){var b=void 0,Y=((b=_.L(e[O],Yee))==null?void 0:b.heatMarkerIntensityScoreNormalized)||0;b=(O+.5)*S;Y=100-_.M3(Y*100,d/321*100,E/321*100);O!==0||T||v.push({x:0,y:Y});v.push({x:b,y:Y});O===e.length-1&&v.push({x:1E3,y:Y})}v.push({x:1E3,y:100});e="";for(d=0;d<v.length;d++)T=v[d],d===0?T="M "+T.x.toFixed(1)+","+T.y.toFixed(1):(E=RfU(v[d-1],v[d-2],T),S=RfU(T,v[d-1],v[d+1],!0),T=" C "+(E.x.toFixed(1)+","+E.y.toFixed(1)+
" "+S.x.toFixed(1)+","+S.y.toFixed(1)+" "+T.x.toFixed(1)+","+T.y.toFixed(1))),e+=T;return e});var ycs=_.l(function(v){var e=v.progressBarProps;var d=v.config;var E={};v=_.qe("ytHeatSeekerHost",(E.ytHeatSeekerHighContrast=v.highContrast,E));var T=function(){return IDM(d().chapterData)};
return _.m("yt-progress-bar-heatseeker",{class:v,style:function(){var S;return"height: 320px; display: "+(e().isDragging&&((S=T())==null?0:S.heatMarkers)?"block":"none")}},_.m(_.y,{cond:T,
then:function(S){return _.m(_.y,{cond:function(){return S().heatMarkers},
then:function(){return _.m("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.m("path",{d:function(){return mR9(S())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"$e");var qas=_.l(function(v){var e=v.progressBarProps;var d=v.config;v={};v=_.qe("ytProgressBarLineProgressBarLine",(v.ytProgressBarLineProgressBarLineRounded=function(){return d().rounded},v.ytProgressBarLineProgressBarLineBottomInset=function(){return d().position===2},v));
return _.m("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.m("div",{class:v},_.m("div",{class:"ytProgressBarLineProgressBarBackground"}),_.m("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+e().percentLoaded*100+"%"}}),_.m("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var E=e();return"width: "+(E.videoDuration?_.M3(E.hoveredTime/E.videoDuration,0,1):0)*100+"%"}}),_.m("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+aDW(e())*100+"%"}})))},"af");
qas.idomCompat=!0;var rcs=_.l(function(v){var e=v.progressBarProps;var d=v.playheadData;var E=v.interpolateDotPosition;var T=v.hidePlayhead;v={};var S=_.qe("ytProgressBarPlayheadProgressBarPlayheadDot",(v.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return e().isDragging},v.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!e().isDragging&&T()},v));
return _.m("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.jM({"margin-left":function(){return iiL(e())*100+"%"},
transform:function(){return"translateX(-"+(E()?iiL(e())*12:6)+"px)"}})},_.m(_.y,{cond:function(){var O;
return(O=_.e2(d)())==null?void 0:O.playheadImage},
then:function(O){var b={};return _.m("div",{class:_.qe("ytProgressBarPlayheadProgressBarPlayheadCustom",(b.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return e().isDragging},b.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!e().isDragging&&T()},b)),
style:_.jM({"transform-origin":function(){return(E()?iiL(e())*20:10)+"px center"}})},_.m(_.va,{data:O,
alt:"","aria-hidden":"true"}))},
else:function(){return _.m("div",{class:S,style:_.jM({"transform-origin":function(){return(E()?iiL(e())*12:6)+"px center"}})})}}))},"bf");
rcs.idomCompat=!0;var XN=function(v,e,d,E,T,S){this.getProgressBarRect=v;this.updateProgressBarRect=e;this.getFilmstripYPosition=d;this.setFineScrubbingDraggedTime=E;this.updateFilmStripDraggedYDistance=T;this.resetFilmStripYOffset=S;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.wB(this.onThrottledSeek,100,this)},hWQ=function(v,e,d){return function(E){v.handleClick(E,e(),d())}},j2O=function(v,e){return function(d){K1s(v,
d,$Ri(d),e())}},s2i=function(v,e){return function(d){K1s(v,d,{x:d.clientX,
y:d.clientY},e())}},k81=function(v,e,d){return function(E){var T=e(),S=d();
Nrt(v,E,$Ri(E),T,S,!0);if(S.onTouchMove)S.onTouchMove(T)}},Vys=function(v,e,d){return function(E){L1Q(v,E,e(),d())}},oxt=function(v,e){return function(){v.handleMouseLeave(e())}},JcQ=function(v,e,d){return function(){var E=e(),T=d();
z6(v,E,T);if(T.onTouchEnd)T.onTouchEnd(E)}},G8t=function(v,e,d){return function(){var E=e(),T=d();
z6(v,E,T);if(T.onTouchEnd)T.onTouchEnd(E)}},MyS=function(v,e,d){return function(){z6(v,e(),d())}},tys=function(v){return function(e){if(e.keyCode===39||e.keyCode===38){var d,E;
(d=v())==null||(E=d.playerApi)==null||E.seekBy(5,void 0,void 0,72)}else if(e.keyCode===37||e.keyCode===40){var T,S;(T=v())==null||(S=T.playerApi)==null||S.seekBy(-5,void 0,void 0,71)}}},fP_=function(v,e,d){return function(E){!d().disableScrubbing&&v.startPosition&&L1Q(v,E,e(),d())}},RW9=function(v,e,d){return function(){if(!d().disableScrubbing)if(v.startPosition){var E=e(),T=d();
z6(v,e(),d());if(T.onTouchEnd)T.onTouchEnd(E)}else e().setState({isDragging:!1})}},$Ri=function(v){v=v.touches[0];
return{x:v.clientX,y:v.clientY}},L1Q=function(v,e,d,E){if(e.buttons!==1){if(e.movementX||e.movementY)e.preventDefault(),e.stopPropagation(),v=Pe_(v,d,e.clientX),d.setState({isHovering:!0,
hoveredTime:v*d.videoDuration})}else xRf(d),Nrt(v,e,{x:e.clientX,y:e.clientY},d,E,!1)};
XN.prototype.handleMouseLeave=function(v){xRf(v)};
var xRf=function(v){v.isHovering&&v.setState({isHovering:!1,hoveredTime:0})},K1s=function(v,e,d,E){v.startPosition||(v.startPosition=d,v.updateProgressBarRect(),v.controlsWereVisibleBeforeDragging=E.controlsVisible,e.stopPropagation(),_.N("medium_progress_bar_modification")||e.preventDefault())},Nrt=function(v,e,d,E,T,S){if(v.startPosition)if(S&&T.isInlinePlayback&&v.startPosition&&!v.hasDraggedTheMinimumDistance&&Math.abs(d.y-v.startPosition.y)>Math.abs(d.x-v.startPosition.x))z6(v,E,T);
else if(e.preventDefault(),e.stopPropagation(),E.videoDuration&&(v.startPosition&&!v.hasDraggedTheMinimumDistance&&(v.hasDraggedTheMinimumDistance=Math.abs(d.x-v.startPosition.x)>=1),T.enableFineScrubbing&&(v.startPosition&&(v.isDraggedForFineScrubbing=-(d.y-v.startPosition.y)>=60),!v.startPosition||d.y>=v.startPosition.y||(E.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:GA0(E.draggedTime,E,T.chapterData)}),v.setFineScrubbingDraggedTime(E.draggedTime),v.updateFilmStripDraggedYDistance(v.startPosition.y,
d.y,E))),v.hasDraggedTheMinimumDistance)){e=Pe_(v,E,d.x);if(v.isDraggedForFineScrubbing){var O;(O=E.playerApi)==null||O.pauseVideo();E.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:E.draggedTime,filmStripXDistance:GA0(e*E.videoDuration,E,T.chapterData)})}T.enableFineScrubbing&&(!T.enableFineScrubbing||v.getFilmstripYPosition(E)<68)||E.setState({draggedTime:e*E.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:v.controlsWereVisibleBeforeDragging});var b;(b=
T.cancelAutohideControlsFn)==null||b.call(T)}},z6=function(v,e,d){var E=d.enableFineScrubbing&&e.fineScrubbingActiveState!=="off";
if(e.isDragging||E){E={isDragging:!1,playedTime:e.draggedTime,controlsVisible:v.controlsWereVisibleBeforeDragging};d.enableFineScrubbing&&e.fineScrubbingActiveState!=="on"&&(v.resetFilmStripYOffset(),E.fineScrubbingActiveState="off");var T=T===void 0?KT7:T;var S=_.zz(0);if(S&&T){var O=Math.round(e.playedTime*1E3),b=Math.round(e.draggedTime*1E3);O>2147483647||b>2147483647||_.pB(S,T,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(O),endMediaTimeMs:String(b),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}e.setState(E);
v.seekThrottle.fire(e.draggedTime,e,7);_.N("mweb_new_progress_bar_play_on_seek")&&v.resumeVideo(e);d.unmuteOnSeek&&(d=e.playerApi,e.volumeMuted&&(d==null||d.unMute()))}else e.setState({controlsVisible:!e.controlsVisible}),(S=d.triggerAutohideControlsAfterDelayFn)==null||S.call(d);v.startPosition=null;v.hasDraggedTheMinimumDistance=!1;v.isDraggedForFineScrubbing=!1;v.controlsWereVisibleBeforeDragging=!1};
XN.prototype.handleClick=function(v,e,d){this.updateProgressBarRect();v.stopPropagation();v=Pe_(this,e,v.clientX)*e.videoDuration;e.setState({playedTime:v});if(e.playerState!==2){var E;(E=d.triggerAutohideControlsAfterDelayFn)==null||E.call(d)}this.seekThrottle.fire(v,e,7)};
var Pe_=function(v,e,d){v=v.getProgressBarRect(e);return _.M3(0,(d-v.left)/v.width,1)};
XN.prototype.resumeVideo=function(v){if(v.draggedTime<v.videoDuration){var e;(e=v.playerApi)==null||e.playVideo()}};
XN.prototype.onThrottledSeek=function(v,e,d){if(e=e.playerApi){var E;if((E=e.getVideoData())==null?0:E.isLive)E=this.getProgressState(e),v+=(E==null?void 0:E.seekableStart)||0;e.seekTo(v,void 0,void 0,void 0,d)}};
XN.prototype.getProgressState=function(v){var e=v==null?void 0:v.getPresentingPlayerType();return v==null?void 0:v.getProgressState(e)};var XnC,Ces,zWw,H0i,Brt,AcO,Z0i,ccO,wns;XnC=_.l(function(v){var e=v.progressBarProps;var d=v.config;var E=v.progressBarWidthPx;var T=v.chapterData;var S=P80(e,function(){return d().isShortsPage}),O=function(){return!e().isHovering&&!d().isShortsPage};
v={};var b=_.qe("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(v.ytPlayerStoryboardHostMwebShorts=function(){return d().isShortsPage&&!1},v));
return _.m("yt-player-storyboard",null,_.m(_.y,{cond:function(){return e().isDragging||e().isHovering},
then:function(){return _.m(_.y,{cond:S,then:function(Y){return _.m(_.y,{cond:O,then:function(){return _.m("div",{class:b,"aria-hidden":"true"},_.m(Brt,{props:e,config:d,isBigboard:!0,chapterData:T}))},
else:function(){return _.m(Ces,{props:e,frame:Y,config:d,progressBarWidthPx:E,chapterData:T})}})}})}}))},"cf");
_.lPC=_.l(function(v){var e=v.progressBarProps;var d=P80(e,v.isShortsPage);return _.m("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.m(_.y,{cond:function(){return e().isDragging||e().isHovering},
then:function(){return _.m(_.y,{cond:d,then:function(E){return _.m(zWw,{frame:E,props:e,isBigboard:!0})}})}}))},"df");
Ces=_.l(function(v){var e=v.props;var d=v.frame;var E=v.config;var T=v.progressBarWidthPx;v=v.chapterData;var S={};S=_.qe("ytPlayerStoryboardHost",(S.ytPlayerStoryboardHostMwebShorts=function(){return E().isShortsPage&&!1},S.ytPlayerStoryboardHostInlinePlayer=function(){return E().isInlinePlayer},S.ytPlayerStoryboardHostFadeIn=function(){return E().useFadeInAnimation},S));
return _.m("div",{class:S,"aria-hidden":"true",style:function(){var O=e(),b=MCO(d()),Y=T();O=tCM(O)/O.videoDuration;var q=Y*O,r=b/2+6;b=Y-(b/2+6);return"left: "+(q<=r?r/Y*100:q>=b?b/Y*100:O*100)+"%"}},_.m(_.y,{cond:function(){var O=e();
return!(E().isShortsPage&&O.videoDuration<15)},
then:function(){return _.m(zWw,{frame:d,props:e,isBigboard:!1})}}),_.m(Brt,{props:e,
config:E,isBigboard:!1,chapterData:v}))},"ef");
zWw=_.l(function(v){var e=v.frame;var d=v.props;var E=v.isBigboard;var T=function(){var b,Y;return(Y=(b=d().playerApi)==null?void 0:b.getVideoContentRect())!=null?Y:{width:0,height:0}},S=function(){return MCO(e())},O=function(){var b=e();
return b?b.height/b.rows:0};
v={};v=_.qe((v.ytPlayerStoryboardBigboardImageWrapper=E,v.ytPlayerStoryboardStoryboardImageWrapper=function(){return!E()},v));
return _.m("div",{class:v,style:function(){return"width: "+(E()?T().width:S())+"px; height: "+(E()?T().height:O())+"px;"}},_.m(H0i,{frame:e,
storyboardWidth:S,storyboardHeight:O,storyboardScale:function(){return(E()?T().width:S())/S()}}))},"ff");
H0i=_.l(function(v){var e=v.frame;var d=v.storyboardWidth;var E=v.storyboardHeight;var T=v.storyboardScale;var S=function(){var O=e().row,b=e().column,Y=d(),q=E(),r=T();return{left:-b*Y*r,top:-O*q*r}};
return _.m("img",{src:function(){return e().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+S().left+"px; top: "+S().top+"px; width: "+e().width*T()+"px; height: "+e().height*T()+"px;"}})},"gf");
Brt=_.l(function(v){var e=v.props;var d=v.config;var E=v.isBigboard;var T=v.chapterData;v={};v=_.qe("ytPlayerStoryboardMetadata",(v.ytPlayerStoryboardMetadataBigboard=E,v));return _.m("div",{class:v},_.m(_.y,{cond:E,then:function(){return _.m(_.eI,null,_.m(AcO,{props:e,config:d}),_.m(_.y,{cond:function(){a:{var S=e();var O=d(),b=T(),Y;if((O==null?0:O.activeChapter)&&((Y=_.L(O==null?void 0:O.activeChapter,tR))==null?0:Y.title))S=!0;else{O=_.a(biW(b));for(O=O.next();!O.done;O=O.next()){S=(O=_.L(O.value,
y57))&&fD0(S,O);break a}S=!1}}return S},
then:function(){return _.m(Z0i,{props:e,config:d,isBigboard:!0,chapterData:T})}}))},
else:function(){return _.m(_.eI,null,_.m(Z0i,{props:e,config:d,isBigboard:!0,chapterData:T}),_.m(AcO,{props:e,config:d}))}}))},"hf");
AcO=_.l(function(v){var e=v.props;var d=v.config;v={};v=_.qe("ytPlayerStoryboardTimestamp",(v.ytPlayerStoryboardTimestampShorts=function(){return d().isShortsPage},v.ytPlayerStoryboardTimestampIsHovering=function(){return e().isHovering||d().isShortsPage&&!0},v));
return _.m("div",{class:v},_.m(_.eI,null,function(){return _.Rmj(tCM(e()))}))},"jf");
Z0i=_.l(function(v){var e=v.props;var d=v.config;var E=v.isBigboard;var T=v.chapterData;v={};E=_.qe("ytPlayerStoryboardTitle",(v.ytPlayerStoryboardTitleBigboard=E,v));return _.m("div",{class:E},_.m(_.y,{cond:function(){return!d().isShortsPage},
then:function(){return _.m(ccO,{props:e,activeChapter:function(){return d().activeChapter},
chapterData:T})}}))},"kf");
ccO=_.l(function(v){var e=v.props;var d=v.activeChapter;var E=v.chapterData;return _.m(_.eI,null,_.m(_.jI,{each:function(){return biW(E())},
keyBy:"INDEX"},function(T){return _.m(_.eI,null,_.m(_.y,{cond:function(){return _.L(T(),y57)&&fD0(e(),_.L(T(),y57))},
then:function(){return _.m(wns,{timedMarker:function(){return _.L(T(),y57)}})}}))}),_.m(_.y,{cond:function(){var T;
return d()&&((T=_.L(d(),tR))==null?void 0:T.title)},
then:function(T){return _.m(_.Dh,{text:T,noPreWrap:!0})}}))},"lf");
wns=_.l(function(v){var e=v.timedMarker;return _.m(_.eI,null,_.m("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.m(_.sG,{icon:function(){return e().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.m(_.Dh,{text:function(){return e().label},
noPreWrap:!0}))},"mf");_.F1i=_.l(function(v){var e=v.progressBarProps;var d=v.playheadData;var E=v.config;v=_.nI("yt-progress-bar");var T=_.nI("div"),S=_.nI("div"),O=_.a(_.OE({width:0,left:0},void 0,"NcXsUb")),b=O.next().value,Y=O.next().value,q=function(){S.value&&Y(S.value.getBoundingClientRect())},r=function(){b().width<=0&&q();
return b()};
eO("resize",q);var h=new XN(r,function(){},function(){return 0},function(){},function(){},function(){}),K=function(){return e()};
O=_.a(_.OE(!1,void 0,"ZsF6Xc"));var k=O.next().value,J=O.next().value;O=_.rq(function(){J(!0);E().position===2?setTimeout(function(){q()},100):q()});
var R=_.rq(function(){J(!1);oxt(h,K)()}),B=_.rq(function(Ct){E().doSeekOnClick&&hWQ(h,K,E)(Ct);
return!1}),X=_.rq(function(Ct){j2O(h,K)(Ct);
return!1}),Z=_.rq(function(Ct){s2i(h,K)(Ct);
return!1}),U=_.rq(function(Ct){k81(h,K,E)(Ct);
return!1}),F=_.rq(function(Ct){Vys(h,K,E)(Ct);
return!1}),g=_.rq(function(){JcQ(h,K,E)();
return!1}),Q=_.rq(function(){G8t(h,K,E)();
return!1}),v3=_.rq(function(){MyS(h,K,E)();
return!1}),q7=_.rq(function(Ct){tys(K)(Ct);
return!1});
eO("mousemove",fP_(h,K,E));eO("mouseup",RW9(h,K,E));_.Gr(function(){$lj(T.value);J(!1);q();RW9(h,K,E)()});
var m0={};m0=_.qe("ytPlayerProgressBarHost",function(){return E().className},(m0.ytPlayerProgressBarHostReadOnly=function(){return E().disableScrubbing},m0.ytPlayerProgressBarHostHidden=function(){return E().hideProgressBar&&!k()},m0.ytPlayerProgressBarHostLowerPlayer=function(){return E().position===0},m0.ytPlayerProgressBarHostBottomEdge=function(){return E().position===1},m0.ytPlayerProgressBarHostBottomInset=function(){return E().position===2},m0.ytPlayerProgressBarHostCustom=function(){return E().position===
3},m0));
var $S={},kS=_.qe("ytPlayerProgressBarBackground",($S.ytPlayerProgressBarBackgroundHide=function(){return E().position===2&&!k()&&!e().isDragging},$S));
$S={};$S=_.qe("ytPlayerProgressBarDragContainer",($S.ytPlayerProgressBarDragContainerBottomEdge=function(){return E().position===1},$S));
var N7={};N7=_.qe("ytPlayerProgressBarProgressBar",(N7.ytPlayerProgressBarProgressBarInset=function(){return E().position===2},N7.ytPlayerProgressBarProgressBarInsetMinimized=function(){return E().position===2&&!k()&&!e().isDragging},N7));
var As=function(){return Math.floor(aDW(e())*100)};
return _.m("yt-progress-bar",{el:v,class:m0},_.m(_.y,{cond:function(){return E().position===2},
then:function(){return _.m("div",{class:kS})}}),_.m("div",{el:T,
"on:click":B,"on:touchstart":X,"on:touchmove":U,"on:mouseenter":O,"on:mousedown":Z,"on:mouseleave":R,"on:mousemove":F,"on:mouseup":Q,"on:touchend":g,"on:touchcancel":v3,"on:keydown":q7,class:$S,role:"slider","aria-valuenow":As,"aria-valuetext":function(){return As()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return e().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.sz("SEEK_SLIDER")},_.m("div",{el:S,class:N7},_.m(ycs,{progressBarProps:e,config:E,highContrast:function(){return!!E().isInlinePlayback}}),_.m(_.y,{cond:function(){return E().chapterData&&YV0(E().chapterData)},
then:function(){return _.m(Yas,{progressState:e,multiMarkersPlayerBarRenderer:function(){return E().chapterData},
progressBarWidth:function(){return b().width}})},
else:function(){return _.m(qas,{progressBarProps:e,config:E})}}),_.m(rcs,{progressBarProps:e,
playheadData:d,interpolateDotPosition:function(){return E().position!==2},
hidePlayhead:function(){return E().playheadDotBehavior===1&&!k()}}))),_.m(XnC,{progressBarProps:e,
config:function(){return{activeChapter:LTO(e(),E().chapterData),getProgressBarWidthPx:function(){return r().width},
isShortsPage:!!E().isShortsPage,isInlinePlayer:!!E().isInlinePlayback,useFadeInAnimation:!!E().isInlinePlayback}},
progressBarWidthPx:function(){return b().width},
chapterData:function(){return E().chapterData}}))},"nf");
_.F1i.idomCompat=!0;Object.assign({},_.ml7(),{setState:function(){},
domMeasurements:{},appApi:_.WTM(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Q2i;
_.gx9=_.l(function(){var v,e=(v=_.Ra(xl$().playerApi))!=null?v:void 0;v=_.a(_.OE(!1,void 0,"HLFBmb"));var d=v.next().value,E=v.next().value;v=_.a(_.OE(!1,void 0,"lHH9bc"));var T=v.next().value,S=v.next().value;v=_.a(_.OE(!1,void 0,"zsY7yd"));var O=v.next().value,b=v.next().value;v=_.a(_.OE(!1,void 0,"KeHQgc"));var Y=v.next().value,q=v.next().value;v=_.a(_.OE(0,void 0,"gLLCj"));var r=v.next().value,h=v.next().value;v=_.a(_.OE(0,void 0,"s3RYkf"));var K=v.next().value,k=v.next().value;v=_.a(_.OE(!1,void 0,
"Dn608e"));var J=v.next().value,R=v.next().value;v=_.a(_.OE(0,void 0,"AnkH1b"));var B=v.next().value,X=v.next().value;v=_.a(_.OE(0,void 0,"QYNL0b"));var Z=v.next().value,U=v.next().value;v=_.a(_.OE("",void 0,"Yzw45d"));var F=v.next().value,g=v.next().value;v=_.a(_.OE(-1,void 0,"iiVI0c"));var Q=v.next().value,v3=v.next().value,q7=_.yl(function(){var m0={controlsVisible:d(),isOverlayHidden:T(),shouldWaitToHideControls:O(),isDragging:Y(),isHovering:J(),videoDuration:B(),playedTime:Z(),videoId:F(),draggedTime:K(),
hoveredTime:r(),playerState:Q()};return Object.assign({},_.ml7(),m0,{domMeasurements:{},setState:function($S){$S.controlsVisible!==void 0&&E($S.controlsVisible);$S.isOverlayHidden!==void 0&&S($S.isOverlayHidden);$S.shouldWaitToHideControls!==void 0&&b($S.shouldWaitToHideControls);$S.isDragging!==void 0&&q($S.isDragging);$S.isHovering!==void 0&&R($S.isHovering);$S.draggedTime!==void 0&&k($S.draggedTime);$S.hoveredTime!==void 0&&h($S.hoveredTime);$S.videoDuration!==void 0&&X($S.videoDuration);$S.playedTime!==
void 0&&U($S.playedTime);$S.videoId!==void 0&&g($S.videoId);$S.playerState!==void 0&&v3($S.playerState)},
appApi:_.WTM(),playerApi:e})},void 0,"ZW7y9");
_.JE(function(){e==null||e.addEventListener("onVideoProgress",hm0(q7));e==null||e.addEventListener("onVideoDataChange",rKH(q7));e==null||e.addEventListener("onStateChange",yKU(q7))});
_.Jf(function(){if(e==null?0:e.isReady())e==null||e.removeEventListener("onVideoProgress",hm0(q7)),e==null||e.removeEventListener("onVideoDataChange",rKH(q7)),e==null||e.removeEventListener("onStateChange",yKU(q7))});
return _.m("desktop-shorts-player-controls",null,_.m(Q2i,{playerControlsProps:q7}))},"of");
Q2i=_.l(function(v){var e=v.playerControlsProps;return _.m("div",{class:"desktopShortsPlayerControlsWizHost"},_.m(_.F1i,{progressBarProps:e,config:function(){return{isShortsPage:!0,hideProgressBar:e().videoDuration<30&&e().playerState!==2&&!e().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"pf");_.uv_=_.l(function(v){function e(m0){m0!==0||h()?m0>50&&(h()||!k())?(K(!1),J(!0)):m0<=50&&(h()||k())&&(K(!1),J(!1)):K(!0)}
function d(m0,$S){var kS;return _.I(function(N7){if(N7.nextAddress==1)return N7.yield(_.Yz(),2);kS=N7.yieldResult;$S&&kS?(kS.unMute(!0),m0&&(C8O(m0,kS.getVolume()),B(kS.getVolume()))):kS&&(kS.mute(!0),m0&&C8O(m0,0));_.s9(N7)})}
function E(m0){var $S,kS;return _.I(function(N7){if(N7.nextAddress==1)return N7.yield(_.Yz(),2);$S=N7.yieldResult;kS=50;$S&&(kS=$S.getVolume(),$S.isMuted()?C8O(m0,0):C8O(m0,kS));B(kS);_.s9(N7)})}
var T=v.orientation;v=_.nI("desktop-shorts-volume-controls");var S=_.nI("button"),O=_.Dq("input"),b=_.a(_.OE(!1,void 0,"F6vt0d")),Y=b.next().value,q=b.next().value,r=_.a(_.OE(!1,void 0,"S5PCqb"));b=r.next().value;r=r.next().value;var h=b,K=r;r=_.a(_.OE(!0,void 0,"Tgy4e"));b=r.next().value;r=r.next().value;var k=b,J=r;b=_.a(_.OE(50,void 0,"Dq3efd"));var R=b.next().value,B=b.next().value;b=_.yl(function(){var m0=h();return _.N("web_shorts_keyboard_enable_mute_shortcut")?m0?_.sz("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.sz("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):m0?_.sz("UNMUTE_VOLUME",void 0,"Unmute"):_.sz("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
r=_.yl(function(){var m0=h(),$S=k();return{sources:[{clientResource:{imageName:m0?_.N("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":$S?_.N("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.N("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var X=_.yl(function(){var m0=R();return h()?m0+"% volume muted":m0+"% volume"},void 0,"kvkmyc"),Z=_.yl(function(){return T()==="vertical_down"},void 0,"zaNsZ");
_.Gr(function(){function m0(){q(!0)}
function $S(){q(!1)}
O&&O.value&&(O.value.addEventListener("focus",m0),O.value.addEventListener("focusout",$S),E(O.value).then(function(){e(Number(XTS(O.value)))}));
S&&S.value&&(S.value.addEventListener("focus",m0),S.value.addEventListener("focusout",$S));_.Jf(function(){var kS;O==null||(kS=O.value)==null||kS.removeEventListener("focus",m0);var N7;O==null||(N7=O.value)==null||N7.removeEventListener("focusout",$S);var As;S==null||(As=S.value)==null||As.removeEventListener("focus",m0);var Ct;S==null||(Ct=S.value)==null||Ct.removeEventListener("focusout",$S)})});
var U=_.rq(function(){if(O&&O.value){var m0=Number(XTS(O.value));Be0(m0);B(m0);O.value.style.setProperty("--gradient-percent",m0+"%");e(m0)}return!1}),F=_.rq(function(){q(!0)}),g=_.rq(function(){O&&O.value&&(d(O.value,h()),K(!h()));
return!1}),Q={},v3={},q7={};
return _.m("desktop-shorts-volume-controls",{"on:pointerleave":_.rq(function(){q(!1)}),
class:_.qe("ytdDesktopShortsVolumeControlsHost",(Q.ytdDesktopShortsVolumeControlsHostVertical=Z,Q.ytdDesktopShortsVolumeControlsHostExpanded=Y,Q)),el:v},_.m(_.y,{cond:function(){return!Z()},
then:function(){var m0={};return _.m("div",{class:_.qe("ytdDesktopShortsVolumeControlsBackgroundScrim",(m0.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=Y,m0))})}}),_.m("div",{class:_.qe((v3.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=Z,v3))},_.m("button",{"aria-label":b,
title:b,el:S,"on:click":g,"on:pointerenter":F,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},r?_.m(_.va,{data:r,alt:b,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.m("div",{class:_.qe("ytdDesktopShortsVolumeControlsSliderContainer",(q7.ytdDesktopShortsVolumeControlsSliderContainerExpanded=Y,q7.ytdDesktopShortsVolumeControlsSliderContainerVertical=Z,q7.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=Z,q7.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return Y()&&Z()},q7))},_.m("input",{"aria-label":_.sz("VOLUME"),
title:_.sz("VOLUME"),el:O,"on:input":U,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":R,"aria-valuetext":X,"aria-valuemin":0,"aria-valuemax":100})))},"qf");_.nx1=_.l(function(v){var e=v.data;return _.m("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.m(_.Oe,{command:function(){return e().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.m(_.y,{cond:function(){return e().iconName},
then:function(d){return _.m(_.sG,{icon:d})}}),_.m("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return e().text}),_.m(_.y,{cond:function(){return e().showEndChevron},
then:function(){return _.m(_.sG,{icon:"CHEVRON_RIGHT"})}})))},"rf");var DRO=_.l(function(v){var e=v.data;var d=v.overlayDensity;v={};return _.m("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.m(_.kz,{data:function(){return e().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(E){var T=E.data;
return _.m(_.By,{data:function(){return(d==null?void 0:d())===1?Object.assign({},T(),{avatar:{avatarViewModel:Object.assign({},_.L(T().avatar,_.Cv),{avatarImageSize:"AVATAR_SIZE_48"})}}):T()}})}}),_.m(_.kz,{data:function(){return e().avatarStackViewModel}},{avatarStackViewModel:function(E){return _.m(_.Cj,{data:E.data})}}),_.m(_.Dh,{className:_.qe("ytReelChannelBarViewModelChannelName",(v.ytReelChannelBarViewModelChannelNameLarge=function(){return(d==null?void 0:d())===1},v)),
text:function(){return e().channelName},
linkInheritColor:!0,userInput:!0}),_.m("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.m(_.kz,{data:function(){return e().subscribeButtonViewModel}},{subscribeButtonViewModel:function(E){var T=E.data;
return _.m(_.x1,{data:function(){return(d==null?void 0:d())===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:_.yi})),_.m("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.m(_.kz,{data:function(){var E,T;return(T=_.L((E=e())==null?void 0:E.sponsorButtonViewModel,Jyi))==null?void 0:T.sponsorButton}},{buttonViewModel:function(E){return _.m(_.yi,{data:E.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"sf");var URO=_.l(function(v){var e=function(){var E;return(v==null?void 0:(E=v.overlayDensity)==null?void 0:E.call(v))===1?22:16},d={};
return _.m("yt-reel-multi-format-link-view-model",{class:_.qe("ytReelMultiFormatLinkViewModelHost",(d.ytReelMultiFormatLinkViewModelHostTall=!0,d.ytReelMultiFormatLinkViewModelHostLarge=function(){var E;return((E=v.overlayDensity)==null?void 0:E.call(v))===1},d))},_.m(_.Oe,{ariaLabel:function(){return v.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return v.data().command}},_.m("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.m(_.y,{cond:function(){return v.data().icon},
then:function(E){return _.m(_.va,{data:E,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:e})}}),_.m(_.Dh,{text:function(){return v.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"tf");
URO.idomCompat=!0;var pnS=_.l(function(v){var e=v.data;var d=v.overlayDensity;var E=_.nI("yt-shorts-suggested-action-view-model");v=_.a(_.OE(!1,void 0,"xDqzhe"));var T=v.next().value,S=v.next().value;v=_.a(_.OE(!1,void 0,"LI9CFd"));var O=v.next().value,b=v.next().value,Y=function(){return e().isMultiLineSa},q=_.Kv(ZZH,function(){var F,g;
return(g=(F=e().toggleableContent)==null?void 0:F.entityKey)!=null?g:""}),r=function(){var F,g,Q;
return(Q=e().toggleableContent)!=null&&Q.entityKey?(g=(F=q())==null?void 0:F.value)!=null?g:!1:!1},h=function(){var F,g,Q,v3,q7,m0,$S,kS,N7,As,Ct;
return e().toggleableContent?r()?(F=e().toggleableContent)==null?void 0:F.toggledData:(g=e().toggleableContent)==null?void 0:g.untoggledData:{primaryText:(kS=(Q=e().defaultContent)==null?void 0:Q.primaryText)!=null?kS:e().text,secondaryText:(v3=e().defaultContent)==null?void 0:v3.secondaryText,onTapCommand:(N7=(q7=e().defaultContent)==null?void 0:q7.onTapCommand)!=null?N7:e().onTapCommand,icon:(As=(m0=e().defaultContent)==null?void 0:m0.icon)!=null?As:e().icon,image:(Ct=($S=e().defaultContent)==null?
void 0:$S.image)!=null?Ct:e().image}},K=function(){return Y()?e().trailingTapTarget:void 0},k=function(F,g){return function(){return T()?g:F}},J=function(){return{leadingSection:k("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(d==null?void 0:d())===1?k("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):k("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:k("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:k("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
v={};v=_.qe((v.ytShortsSuggestedActionViewModelStaticHost=function(){return!Y()},v.ytShortsSuggestedActionViewModelDynamicHost=Y,v.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return Y()&&O()},v.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return Y()&&!O()},v));
_.Gr(function(){if(Y()){var F=0,g;if((g=e().animationParams)==null?0:g.shouldExpand){var Q,v3;F=((v3=(Q=e().animationParams)==null?void 0:Q.expansionDelaySecs)!=null?v3:0)*1E3}var q7,m0=((q7=e().animationParams)==null?0:q7.shouldExpand)?setTimeout(function(){S(!0)},F):void 0,$S,kS;
F=(($S=e().animationParams)==null?0:$S.visibilityDelaySecs)?((kS=e().animationParams)==null?NaN:kS.visibilityDelaySecs)*1E3:0;var N7=setTimeout(function(){b(!0)},F);
_.Jf(function(){m0&&clearTimeout(m0);clearTimeout(N7)})}});
var R=function(F){_.wC(F,Object.assign({},{form:{element:E.value}}))},B=_.rq(function(){var F,g=(F=h())==null?void 0:F.onTapCommand;
g&&R(g)}),X=_.rq(function(){var F,g;
if(F=(g=K())==null?void 0:g.onTapCommand)return R(F),!1}),Z=_.jM({"vertical-align":"bottom",
"border-radius":function(){var F;return Y()?((F=e().defaultContent)==null?0:F.isCircleImage)?"50%":"4px":"0px"},
width:function(){var F,g,Q;return Y()&&((F=e().defaultContent)==null?0:F.imageSize)?((Q=(g=e().defaultContent)==null?void 0:g.imageSize)!=null?Q:24)+"px":null},
height:function(){var F,g,Q;return Y()&&((F=e().defaultContent)==null?0:F.imageSize)?((Q=(g=e().defaultContent)==null?void 0:g.imageSize)!=null?Q:24)+"px":null}}),U={};
return _.m("yt-shorts-suggested-action-view-model",{class:v,el:E},_.m("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.m("button",{class:_.qe(function(){return Y()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var F;
return(F=e().useFullRoundedBorder)!=null&&F?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!K()&&Y()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":Y()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var F;
return(F=e().disableFixedHeight)!=null&&F?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(U.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(d==null?void 0:d())===1},U)),
"on:click":B},_.m(_.Ie,{model:{color:4}}),_.m("div",{class:_.qe(function(){return Y()?J().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.m(_.y,{cond:function(){var F;
return(F=h())==null?void 0:F.image},
then:function(F){return _.m(_.va,{data:F,alt:"",className:function(){return Y()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:Z})}}),_.m(_.y,{cond:function(){var F,g;
return(F=h())==null?void 0:(g=F.icon)==null?void 0:g.iconType},
then:function(F){return _.m(_.sG,{icon:F,active:r,className:function(){return Y()?T()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.m("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.m(_.y,{cond:function(){var F;
return(F=h())==null?void 0:F.primaryText},
then:function(F){return _.m("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.m(_.Dh,{text:F}))}}),_.m(_.y,{cond:function(){var F;
return(F=h())==null?void 0:F.secondaryText},
then:function(F){return _.m("div",{class:function(){return J().secondaryText()}},_.m(_.Dh,{text:F}))}}))),_.m(_.y,{cond:K,
then:function(F){return _.m("div",{class:function(){return J().trailingSection()},
"aria-label":function(){var g;return(g=F().a11yLabel)!=null?g:""},
"on:click":X,role:"button",tabindex:0},_.m(_.Ie,{model:{color:4}}),_.m(_.sG,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"uf");var vhQ=_.l(function(v){var e=v.data;var d=v.overlayDensity;var E=_.nI("yt-shorts-video-title-view-model");v=_.rq(function(O){if(_.R7(_.fv(O),E.value,["A".toString()]))return!1;(O=e().truncatedTextOnTapCommand)&&_.wC(O);return!1});
var T={},S={};return _.m("yt-shorts-video-title-view-model",{el:E,class:_.qe("ytShortsVideoTitleViewModelHost",(T.ytShortsVideoTitleViewModelHostClickable=function(){return!!e().truncatedTextOnTapCommand},T)),
"on:click":v},_.m("h2",{class:_.qe("ytShortsVideoTitleViewModelShortsVideoTitle",(S.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(d==null?void 0:d())===1},S))},_.m(_.Dh,{text:function(){return e().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"vf");_.eHt=_.l(function(v){var e=v.data;var d=v.overlayDensity;return _.m("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.m(_.kz,{data:function(){return e().metadataItems}},{badgeViewModel:function(E){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(_.W4,{data:E.data}))},
playerDisclosureViewModel:function(E){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(_.nx1,{data:E.data}))},
shortsSuggestedActionViewModel:function(E){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(pnS,{data:E.data,overlayDensity:d}))},
reelChannelBarViewModel:function(E){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(DRO,{data:E.data,overlayDensity:d}))},
reelMultiFormatLinkViewModel:function(E){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(URO,{data:E.data,overlayDensity:d}))},
shortsVideoTitleViewModel:function(E){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(vhQ,{data:E.data,overlayDensity:d}))},
reelSoundMetadataViewModel:function(E){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(_.U11,{data:E.data,overlayDensity:d}))},
toggleButtonViewModel:function(E){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(_.fR,{data:E.data}))}}))},"wf");var duS=_.l(function(v){var e=_.dC(v,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),d=e.size,E=e.onTap,T=e.disabled,S=e.tooltipText;return _.m("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.m(_.mO,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:d(),disabled:T(),tooltipText:S(),onTap:E}},
iconName:v.iconType}))},"xf"),Eh_=_.l(function(v){function e(r){r.stopPropagation();
r.code==="ArrowUp"?(r.preventDefault(),Hi0(b.value)):r.code==="ArrowDown"?(r.preventDefault(),AKH(b.value)):r.code==="KeyM"?zmH():(r.code==="KeyK"||r.code==="Space")&&lDL(Y())}
var d=_.dC(v,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});v=d.previousButtonDisabled;var E=d.nextButtonDisabled,T=d.data,S=d.playabilityStatus,O=d.previewThumbnail,b=_.nI("ytd-shorts-miniplayer-overlay"),Y=_.Xj(_.vKO),q;_.JE(function(){(q=_.Bn(b.value))&&q.addEventListener("keydown",e)});
_.Jf(function(){var r;(r=q)==null||r.removeEventListener("keydown",e)});
d=function(){var r,h,K;return(r=T())==null?void 0:(h=r.reelPlayerOverlayRenderer)==null?void 0:(K=h.likeButton)==null?void 0:K.likeButtonRenderer};
return _.m("ytd-shorts-miniplayer-overlay",{el:b,class:"ytdShortsMiniplayerOverlayHost"},_.m("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.jM({"background-image":function(){var r=O();return r?'url("'+_.OG(r.thumbnails)+'")':""}})}),_.m("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.m("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.m(duS,{iconType:function(){var r=Y();
return r===2||r===-1||r===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){lDL(Y())},
tooltipText:function(){var r=Y();return r===1||r===3?_.sz("PLAYER_LABEL_PAUSE"):_.sz("PLAYER_LABEL_PLAY")}}),_.m(_.uv_,{orientation:"horizontal_right"})),_.m("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.m(duS,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:v,onTap:function(){Hi0(b.value)},
tooltipText:_.sz("PREVIOUS_VIDEO_LABEL")}),_.m(duS,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:E,onTap:function(){AKH(b.value)},
tooltipText:_.sz("NEXT_VIDEO_LABEL")}),_.N("web_shorts_pip_like_button")?_.m("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.m(D2c,{buttonTooltipPosition:"left",data:d,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.m("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.m(_.y,{cond:function(){var r,h;return _.L((r=T())==null?void 0:(h=r.reelPlayerOverlayRenderer)==null?void 0:h.metapanel,
_.k1e)},
then:function(r){return _.m("div",{class:_.qe("ytdShortsMiniplayerOverlayInteractive")},_.m(_.eHt,{data:r}))}})),_.m("div",{class:_.qe("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var r;return!((r=T())==null||!r.adsOverlay)||S()&&!PB0(S())}},_.m("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.m(_.gx9,null)))),_.m(_.y,{cond:function(){var r=T(),h,K;
r=_.L(r==null?void 0:(h=r.adsOverlay)==null?void 0:(K=h.fulfillmentContent)==null?void 0:K.fulfilledLayout,z37);return _.L(r==null?void 0:r.renderingContent,wBM)},
then:function(r){return _.m("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.m(Xm7,{data:r}))}}))},"yf");var ZiL=_.l(function(){var v=_.a(_.OE(new _.$x(NaN,NaN),void 0,"HSMFk")),e=v.next().value,d=v.next().value;v=_.a(_.OE(!1,void 0,"uaAxwf"));var E=v.next().value,T=v.next().value,S=_.a(_.OE(!1,void 0,"nVSwef"));v=S.next().value;var O=S.next().value,b=_.dk().resolve(_.P0).miniplayerPropSignalMap[0],Y=b.data,q=b.shortsData,r=b.nextButtonDisabled,h=b.shortsPreviewThumbnail,K=b.previousButtonDisabled,k=b.externalPlaylistData;S=b.toastData;var J=b.playabilityStatus,R=b.isDisabled,B=b.playerVe,X=b.closeVe;
b=_.Xj(_.Wj);_.ul("yt-pip-window-resized",function(g){d(g)});
_.ul("yt-activate-pip-miniplayer",function(){return _.I(function(g){O(!0);_.s9(g)})});
var Z=function(){var g;return!((g=k())==null||!g.contents)&&E()},U=function(){var g=e(),Q=!!Y(),v3=Z();
g=g.clone();Q&&(g.height-=76);v3&&(g.height-=285);return g},F=function(){T(!E())};
_.o_(function(){var g=B(),Q=_.zz(11),v3=_.Xf(11);Q&&v3&&g&&(_.Qa(Q,v3,g),v3=X())&&(_.gV(Q,g,[v3]),_.nB(Q,[v3]))},"HPkp0c");
return _.m("ytd-pip-container",{class:"ytdPipContainerHost"},_.m(_.y,{cond:v,then:function(){return _.m(_.O0i,{isDisabled:R,playabilityStatus:J,size:U})}}),_.m(_.y,{cond:Y,
then:function(){return _.m(_.aPi,{data:Y,expanded:E,onExpandClick:F,playlistData:k})}}),_.m(_.y,{cond:Z,
then:function(){return _.m("div",{class:"ytdPipContainerPlaylistPanel"},_.m(_.uS7,{data:k,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.m(_.y,{cond:b,
then:function(){return _.m(Eh_,{data:q,nextButtonDisabled:r,previousButtonDisabled:K,playabilityStatus:J,previewThumbnail:h})}}),_.m("div",{class:"ytdPipContainerToast"},_.m(_.IPs,{toastData:S})))},"zf");var lQ=function(v,e){var d=this;this.pipController=v;this.JSC$18682_clientRoot=e;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=dl3();this.watchPipEnabled=_.N("web_watch_pip");this.shortsPipEnabled=_.N("web_shorts_pip");this.JSC$18682_watchWhileEnabled=_.N("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;_.ji(_.d1(),uBs,function(E){d.isSingleOptionSurveyActive=E});
this.JSC$18682_onPlayerPlayVideo=this.JSC$18682_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);_.Qf(_.FT.getInstance(),this.miniplayerServiceActionMap,this.JSC$18682_clientRoot);v.pictureInPictureSupported()&&_.tI("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Iz2,muC,OXs,yzQ,qlt,j8I;
lQ.prototype.handleMediaSessionPipActivation=function(){var v=this,e;return _.I(function(d){_.Ke().mediaSessionPipActivation=!0;e=_.dk().resolve(_.v5);return e.isOnWatch()&&v.watchPipEnabled?(_.Ke().watchPipActivation=!0,_.TfC(v,e.data),d.jumpTo(0)):e.isOnShorts()&&v.shortsPipEnabled?(_.Ke().shortsPipActivation=!0,_.Sl_(v),d.jumpTo(0)):v.isMiniplayerActive()&&v.watchPipEnabled&&!v.watchWhileMode?d.yield(WiO(v),0):d.jumpTo(0)})};
var WiO=function(v){var e,d,E,T;return _.I(function(S){if(S.nextAddress==1)return e=!v.miniplayerToPipMode,d=v.playerElement,E=v.miniplayerData,T=v.watchResponse,S.yield(v.deactivate(),2);if(S.nextAddress!=3)return e?(_.Ke().mediaSessionPipActivation=!0,_.Ke().watchPipActivation=!0):_.Ke().miniplayerButtonActivation=!0,S.yield(v.activate(d,E,T),3);v.miniplayerToPipMode=e;_.s9(S)})};
lQ.prototype.onDownloadedVideoDeleted=function(v){var e,d=_.L((e=this.miniplayerData)==null?void 0:e.watchEndpoint,_.p2),E,T;d&&((E=this.watchResponse)==null?void 0:(T=E.playerResponse)==null?void 0:T.offlineState)!==void 0&&(e=d.videoId)&&v&&e===v&&this.close()};
lQ.prototype.onShowMiniplayerCommand=function(v){var e=this,d,E,T,S,O,b,Y,q,r,h,K;return _.I(function(k){switch(k.nextAddress){case 1:return d=_.L(v,m66),T=(E=d)==null?void 0:E.miniplayerCommand,S=_.L(T,_.p2),T&&S&&!e.active?k.yield(_.Jd.getInstance(),2):k.return();case 2:return O=k.yieldResult,k.yield((b=O)==null?void 0:b.get("yt-miniplayer-shown-video-id"),3);case 3:Y=k.yieldResult;q=S.videoId;if(!q||Y===q)return k.return();r=_.dk().resolve(_.v5);if(r.isOnWatch())return _.xf(Error("Jj")),k.return();
h={channelItem:{externalId:btoa(q)}};e.readyToResumeVe=_.bH(121253,void 0,void 0,h);_.Ke().showMiniplayerCommandActivation=!0;return k.yield(_.s8n(e,T,!0),4);case 4:return e.active&&(_.HN(e,{readyToResumeVe:e.readyToResumeVe,isReadyToResume:!0}),e.isReadyToResume=!0),k.yield((K=O)==null?void 0:K.set("yt-miniplayer-shown-video-id",S.videoId),5);case 5:e.readyToResumeVe=void 0,_.s9(k)}})};
lQ.prototype.init=function(v){this.miniplayerEl?_.xf(new _.kL("MiniplayerService already initialized.")):this.miniplayerEl=v};
lQ.prototype.isInitialized=function(){var v=!!this.miniplayerEl;v||_.xf(new _.kL("MiniplayerService used before initialized."));return v};
_.TfC=function(v,e){if(v.isInitialized()){var d=_.Gp(e.response,!1,e.playerResponse),E=_.dk().resolve(_.v5).getPlayerFromWatch();_.Ke().currentEndpoint=d.watchEndpoint||null;v.activate(E,d,e)}};
_.Sl_=function(v){if(v.isInitialized()){var e=_.dk().resolve(_.v5).getPlayerFromShorts();v.activate(e)}};
Iz2=function(v,e){var d;(d=!v.isInitialized())||(d=_.dk().resolve(_.v5).isOnWatch()&&v.watchPipMode,d=!(v.isMiniplayerActive()&&(_.Ke().userActivation||_.Ke().lockupActivation||d)));if(d)return!1;a4v(v,e)?_.CH(v):j8I(v,e);return v.watchPipMode?!_.dk().resolve(_.v5).isOnWatch():!0};
lQ.prototype.isMiniplayerActive=function(){return this.active};
var a4v=function(v,e){var d;e=(d=_.L(e,_.p2))==null?void 0:d.videoId;var E,T;v=(T=_.L((E=v.miniplayerData)==null?void 0:E.watchEndpoint,_.p2))==null?void 0:T.videoId;return e!=null&&e===v};
lQ.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Iq(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.b4(this.miniplayerEl,"yt-navigate-home-action"))};
_.s8n=function(v,e,d,E){d=d===void 0?!1:d;var T,S,O;return _.I(function(b){switch(b.nextAddress){case 1:if(v.active){b.jumpTo(2);break}T=_.dk().resolve(_.v5);if(O=(S=v.playerElement)!=null?S:T.getPlayerFromWatch()){b.jumpTo(3);break}return b.yield(_.dk().resolve(_.a7),4);case 4:O=T.getPlayerFromWatch();case 3:if(!O){_.xf(Error("Lj"));b.jumpTo(2);break}return b.yield(v.activate(O,E),2);case 2:return v.active?b.yield(j8I(v,e,d),0):b.return()}})};
lQ.prototype.activate=function(v,e,d){var E=this,T,S,O,b,Y,q,r,h,K;return _.I(function(k){switch(k.nextAddress){case 1:if(!E.isInitialized())return k.return();if(!v)return _.xf(Error("Lj")),k.return();if(_.VYM()||E.isMiniplayerActive())var J=!0;else J=_.Ke().watchPipActivation||_.Ke().watchWhileActivation,_.dk().resolve(_.v5).isOnWatch()&&!J?(_.xf(new _.kL("miniplayer activated on watch page")),J=!0):J=_.Ke().watchWhileActivation?E.userDeactivatedWatchWhile||!!document.pictureInPictureElement||yLt():
!1;if(J)return Lmu(),k.return();T=_.Ke().mediaSessionPipActivation;S=_.Ke().shortsPipActivation;O=_.Ke().watchPipActivation;Y=(b=_.Ke().watchWhileActivation)||O;q=O||S;if(!E.pictureInPictureEnabled()||!q){k.jumpTo(2);break}return k.yield(iXf(E,T),3);case 3:if(!k.yieldResult)return _.xf(Error("Kj")),Lmu(),k.return();case 2:return E.setActive(!0),E.watchResponse=d,E.playerElement=v,E.updateMiniplayerData(e),k.yield(OXs(E,v),4);case 4:if(!E.active)return _.xf(new _.kL("miniplayer deactivated during activation")),
E.removePlayerListeners(),k.return();J=_.dk().resolve(_.zJ);J.addEventListener("yt-navigate",_.hG(E,E.onPlaylistNavigate));J.addEventListener("yt-playlist-data-updated",_.hG(E,E.JSC$18682_onPlaylistDataUpdated));E.JSC$18682_onPlaylistDataUpdated();Lmu();E.JSC$18682_watchWhileEnabled&&_.I4f(E,b);E.pictureInPictureEnabled()&&E.shortsPipEnabled&&(E.shortsPipMode=S,_.d1().dispatch(IlB(E.shortsPipMode)));E.pictureInPictureEnabled()&&E.watchPipEnabled&&(E.watchPipMode=O,_.rL0(E.handleMediaSessionPipActivation));
E.player&&(r=E.player.getPlayerState(),h=r===1,_.d1().dispatch(KdI(r)),_.YB(E.miniplayerEl,"yt-miniplayer-play-state-changed",[h]),_.Ke().isVideoPlaying=h);_.YB(E.miniplayerEl,"yt-miniplayer-endpoint-changed");bX9(E);_.Yli(E);if(E.shortsPipMode||E.watchPipMode)k=k.yield(_.b4(E.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{J=k.yield;var R=_.b4(E.miniplayerEl,"yt-activate-miniplayer",[Y])[0];k=J.call(k,R,6)}return k;case 6:if(E.watchResponse&&!_.N("miniplayer_copy_screen_on_activation_killswitch")){J=
E.getScreenLayer();R=_.zz(0);var B=PPt(0);R&&B&&(_.HP(R,B,J),J===0&&fct(void 0,0))}muC(E);yzQ(E,!0);(K=E.getPlayerElement())==null||K.focusOnPlayer();_.s9(k)}})};
lQ.prototype.updateMiniplayerData=function(v){this.miniplayerData=v;_.HN(this,{data:v})};
_.Yli=function(v){var e,d,E=((e=v.miniplayerData)==null?void 0:(d=e.miniplayerRenderer)==null?void 0:d.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";e=v.watchWhileMode||v.watchPipMode?E&&!_.dk().resolve(_.v5).isOnWatch():E;_.HN(v,{isDisabled:e});var T,S;d=_.L((T=v.miniplayerData)==null?void 0:(S=T.miniplayerRenderer)==null?void 0:S.minimizedEndpoint,_.L6);e&&d&&_.dk().resolve(_.fE).openSheet({openPopupActionCommand:{openPopupAction:d}},v.miniplayerEl)};
muC=function(v){if(v.watchResponse&&!qlt(v)){var e,d=(e=v.watchResponse.playerResponse)==null?void 0:e.trackingParams;d&&(_.HN(v,{expandVe:_.bH(35989),closeVe:_.bH(34699),readyToResumeCloseVe:_.bH(131070),repositionVe:_.bH(226204),resizeVe:_.bH(226205)}),_.HN(v,{playerVe:_.Jg(d)}))}};
OXs=function(v,e){return _.I(function(d){if(d.nextAddress==1)return e.preparePlayer(),d.yield(e.getPlayerPromise(),2);v.player=d.yieldResult;v.player&&(v.player.addEventListener("onPlayVideo",v.JSC$18682_onPlayerPlayVideo),v.player.addEventListener("onCloseMiniplayer",v.onPlayerCloseMiniplayer),v.player.addEventListener("onExpandMiniplayer",v.onPlayerExpandMiniplayer),v.player.addEventListener("onStateChange",v.onPlayerStateChange));_.s9(d)})};
_.W=lQ.prototype;_.W.JSC$18682_onPlayerPlayVideo=function(v){var e=v.sessionData&&"autonav"in v.sessionData,d;v.sessionData&&v.sessionData.itct&&(d=v.sessionData.itct);var E=v.watchEndpoint;e=E&&e?_.EyS(E,d):_.S7(v.videoId,v.listId||void 0,d);v.sessionData&&_.Ez(_.L(e.commandMetadata,_.$B).url,v.sessionData);j8I(this,e)};
_.W.onPlayerExpandMiniplayer=function(){_.CH(this)};
_.W.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.W.onPlayerStateChange=function(){if(this.player){var v=this.player.getPlayerState(),e=v===1;_.d1().dispatch(KdI(v));_.d1().dispatch(_.s37(v));_.YB(this.miniplayerEl,"yt-miniplayer-play-state-changed",[e]);_.Ke().isVideoPlaying=e;if(v===0){e=!_.p6.getInstance().isAutoplaySetExplicitly();var d,E,T,S,O,b,Y=(d=this.watchResponse.response)==null?void 0:(E=d.contents)==null?void 0:(T=E.twoColumnWatchNextResults)==null?void 0:(S=T.autoplay)==null?void 0:(O=S.autoplay)==null?void 0:(b=O.autoplayExplicitChoiceDialogRenderer)==
null?void 0:b.confirmDialogRenderer;e&&Y&&this.player.setAutonavState(1)}v===0&&this.watchWhileMode&&this.deactivate()}};
_.W.onPlaylistNavigate=function(v,e){var d=this,E,T,S,O,b,Y,q;return _.I(function(r){if(r.nextAddress==1){if(!_.L(e.endpoint,_.p2))return r.return();_.Ke().currentEndpoint=e.endpoint;_.YB(d.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.dk().resolve(_.v5).isOnWatch()&&(d.watchWhileMode||d.watchPipMode))return r.return();v.stopPropagation();(S=(T=_.L((E=e.endpoint)==null?void 0:E.commandMetadata,_.$B))==null?void 0:T.url)&&e.tempData&&!_.f0.isEmpty(e.tempData)&&_.Ez(S,e.tempData);O={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};b=new kLE(function(){return d.getPlayerElement()},O,{layer:d.getScreenLayer()});
Y=function(h){b.processChunk({endpoint:e.endpoint,data:h})};
rzi(d);d.miniplayerFetchRequest=hHf(d,e.endpoint,Y);_.qq(r,2);return r.yield(d.miniplayerFetchRequest,4)}if(r.nextAddress!=2)return q=r.yieldResult,Kiv(d,q),_.wk(r,0);_.jl(r);_.s9(r)})};
_.W.JSC$18682_onPlaylistDataUpdated=function(){var v=_.dk().resolve(_.zJ).getPlaylistData();this.hasPlaylistData=!!v;_.HN(this,{externalPlaylistData:v||{}})};
_.W.close=function(v){if(this.isInitialized())if(v){if(!((this.watchWhileMode||this.watchPipMode)&&_.dk().resolve(_.v5).isOnWatch()||this.shortsPipMode)){var e;(e=this.getPlayerElement())==null||e.stop()}this.deactivate()}else _.cH().closeMiniplayer(this.miniplayerEl)};
_.W.deactivate=function(v){var e=this,d,E,T,S;return _.I(function(O){if(O.nextAddress==1){if(!e.isInitialized()||!e.active)return O.return();e.setActive(!1);rzi(e);(d=!!v&&a4v(e,v))&&e.isSingleOptionSurveyActive&&_.b4(e.miniplayerEl,"yt-show-watch-page-survey",[e.isSingleOptionSurveyActive]);return O.yield($ut(e),2)}if(O.nextAddress!=3){yzQ(e,!1);e.isReadyToResume=!1;e.watchResponse=void 0;e.updateMiniplayerData(void 0);e.shortsPipMode&&(e.shortsPipMode=!1,_.d1().dispatch(IlB(e.shortsPipMode)),sCt(e.pipController),
(E=e.player)==null||E.setInternalSize(NaN,NaN));e.watchPipMode&&(e.watchPipMode=!1,sCt(e.pipController));(T=e.watchWhileMode)&&_.I4f(e,!1);e.removePlayerListeners();var b=_.dk().resolve(_.zJ);b.removeEventListener("yt-navigate",_.hG(e,e.onPlaylistNavigate));b.removeEventListener("yt-playlist-data-updated",_.hG(e,e.JSC$18682_onPlaylistDataUpdated));_.Ke().currentEndpoint=null;_.YB(e.miniplayerEl,"yt-miniplayer-endpoint-changed");e.playerElement=null;Lmu();if(e.shortsPipMode||e.watchPipMode)O=O.jumpTo(3);
else{b=O.yield;var Y=_.b4(e.miniplayerEl,"yt-deactivate-miniplayer",[d,T])[0];O=b.call(O,Y,3)}return O}(S=e.player)==null||S.setInternalSize(NaN,NaN);e.player=null;_.s9(O)})};
var $ut=function(v){var e;return _.I(function(d){e=_.dk().resolve(_.v5);return v.shortsPipMode?d.yield(e.movePlayerToShorts(v.playerElement),0):d.yield(e.movePlayerToWatch(v.playerElement),0)})};
lQ.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18682_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
lQ.prototype.setActive=function(v){this.active=v;this.isSingleOptionSurveyActive?_.b4(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.b4(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.d1().dispatch(_.Oo({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.I4f=function(v,e){v.watchWhileMode=e;_.HN(v,{watchWhile:e})};
yzQ=function(v,e){if(!qlt(v))if(v.shortsPipMode||v.watchPipMode){var d;(d=v.player)==null||d.setDocumentPictureInPicture(e)}else{var E;(E=v.player)==null||E.setMinimized(e)}};
qlt=function(v){return v.watchWhileMode&&_.N("kevlar_watch_while_counterfactual")};
_.CH=function(v){var e;return _.I(function(d){switch(d.nextAddress){case 1:if(!v.isInitialized())return d.return();_.qq(d,2);return d.yield(v.miniplayerFetchRequest,4);case 4:_.wk(d,3);break;case 2:_.jl(d);case 3:v.watchResponse&&v.miniplayerData&&v.miniplayerData.watchEndpoint?(e={url:v.watchResponse.url,endpoint:v.miniplayerData.watchEndpoint,data:v.watchResponse,miniplayer:!0},_.Iq(v.miniplayerEl,"yt-navigate-cache",e)):v.miniplayerData&&v.miniplayerData.watchEndpoint&&_.Iq(v.miniplayerEl,"yt-navigate",
{endpoint:v.miniplayerData.watchEndpoint}),_.s9(d)}})};
j8I=function(v,e,d){var E,T,S,O;return _.I(function(b){if(b.nextAddress==1){if(a4v(v,e))return b.return();_.Ke().currentEndpoint=e;_.YB(v.miniplayerEl,"yt-miniplayer-endpoint-changed");_.YB(v.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Ke().isVideoPlaying=!1;E={clientParams:{miniplayer:!0,autoSaveToQueue:!d}};T=new kLE(function(){return v.getPlayerElement()},E,{layer:v.getScreenLayer(),
parentLayer:0},void 0,v.readyToResumeVe);S=function(Y){var q,r,h=Object.assign({},(q=Y.playerResponse)==null?void 0:(r=q.playerConfig)==null?void 0:r.playbackStartConfig,{startPaused:!0}),K;d&&((K=Y.playerResponse)==null?0:K.playerConfig)&&(Y.playerResponse.playerConfig.playbackStartConfig=h);T.processChunk({endpoint:e,data:Y})};
rzi(v);v.miniplayerFetchRequest=hHf(v,e,S);_.qq(b,2);return b.yield(v.miniplayerFetchRequest,4)}if(b.nextAddress!=2)return O=b.yieldResult,Kiv(v,O),_.wk(b,0);_.jl(b);_.s9(b)})};
lQ.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var rzi=function(v){v.miniplayerFetchRequest&&(v.miniplayerFetchRequest.cancel&&v.miniplayerFetchRequest.cancel("Active request obsolete"),v.miniplayerFetchRequest=null)},hHf=function(v,e,d){var E=_.kK.instance,T,S=(T=_.L(e.commandMetadata,_.$B))==null?void 0:T.url,O;
T=!S||_.N("disable_miniplayer_tempdata")?{}:(O=$6M(S))!=null?O:{};return CO(E,e,T,window.location.href,"watch",function(b,Y){d(Y)},function(b){return b!==v.miniplayerFetchRequest})},Kiv=function(v,e){var d;
_.I(function(E){if(!e)return E.return();v.watchResponse=e;muC(v);bX9(v);d=_.Gp(e.response,!1,e.playerResponse);if(v.isMiniplayerActive()){e.response&&(v.playerElement.watchNextData=e.response);var T=_.f0.getValueByKeys.apply(_.f0,[e].concat(_.t7(P5M)));_.f0.getValueByKeys.apply(_.f0,[e].concat(_.t7(z5I)))&&T&&_.dk().resolve(_.zJ).setAutoplayRenderer(T);if(T)if(_.N("kevlar_is_pupi_enabled")){var S,O,b,Y,q,r=((S=e.response)==null?0:(O=S.playerOverlays)==null?0:(b=O.playerOverlayRenderer)==null?0:(Y=
b.autonavToggle)==null?0:(q=Y.autoplaySwitchButtonRenderer)==null?0:q.enabled)?2:1;_.p6.getInstance().setState(r,!1,!1)}else S=RDj()?2:1,(r=v.player)==null||r.setAutonavState(S);v.updateMiniplayerData(d);_.Yli(v)}_.s9(E)})},bX9=function(v){var e,d,E=(e=v.watchResponse)==null?void 0:(d=e.playerResponse)==null?void 0:d.playabilityStatus,T;
e=E==null?void 0:(T=E.miniplayer)==null?void 0:T.miniplayerRenderer;(e==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&e.minimizedEndpoint&&_.mN(v.miniplayerEl,[e.minimizedEndpoint]);_.HN(v,{playabilityStatus:E})};
lQ.prototype.openToast=function(v,e){_.HN(this,{toastData:{data:v,label:e}})};
_.HN=function(v,e){(0,v.miniplayerPropSignalMap[1])(e)};
lQ.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var v;return this.playerElement?this.playerElement:(v=_.IB(this.miniplayerEl).querySelector("#player-container"))==null?void 0:v.firstElementChild};
lQ.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var iXf=function(v,e){e=e===void 0?!1:e;var d,E,T,S,O,b,Y;return _.I(function(q){if(q.nextAddress==1){d=navigator.userActivation.isActive||e;if(!d||!v.pictureInPictureSupported())return q.return(!1);E=juf(v);T=E.width;S=E.height;return q.yield(v.pipController.openWindow({width:T,height:S}),2)}O=q.yieldResult;b=v.pipController.getWindow();if(!b||!O)return q.return(!1);b.document.body.style.overflow="hidden";Y=cK$(b);N9C(v.pipController,function(){suC(v);Y()});
return q.return(!0)})},juf=function(v){var e=_.Ke().shortsPipActivation,d,E;
v=e?.5625:(E=(d=v.player)==null?void 0:d.getVideoAspectRatio())!=null?E:16/9;d=Math.min(window.innerWidth,window.innerHeight)/2;e=e?0:76;return v>1?new _.$x(d,e+d/v):new _.$x(d*v,e+d)},suC=function(v){var e;
_.I(function(d){e=_.dk().resolve(_.v5);return e.isOnWatch()&&v.watchPipMode||e.isOnShorts()&&v.shortsPipMode?d.yield(v.deactivate(),0):v.miniplayerToPipMode?d.yield(WiO(v),0):v.watchPipMode?d.yield(_.CH(v),0):d.jumpTo(0)})};
lQ.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.vP.Object.defineProperties(lQ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
lQ[ua]=[kQi,azE];var Nfi="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(" "),
kZv="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(" "),Lis="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
Vt1="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var ohQ=null;var JzC={},GZS=(JzC.initialized={priority:10,callback:function(v){var e=_.dk();e.addProvider({provide:pwE,useClass:RTt});e.addProvider({provide:_.fBs,useFactory:function(){return new vGA}});
e.addProvider({provide:RV,useValue:_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});e.addProvider({provide:sUf,useValue:5184E6});e.addProvider({provide:w31,useValue:_.jd()});e.addProvider({provide:pc9,useClass:aWn});e.addProvider({provide:c4,useClass:c4});e.addProvider({provide:_.a7,useFactory:function(){return bGE.promise}});
e.addProvider({provide:_.mxB,useFactory:function(){return _.YmE.promise}});
e.addProvider({provide:vDt,useValue:function(){var Y;return((Y=_.dB())==null?void 0:Y.getPlayer())||null}});
var d={};e.addProvider((d.provide=_.Se,d.useFactory=function(Y,q){return function(){return vUt(Y,q)}},d[ua]=[RV,
sUf],d));d={};e.addProvider((d.provide=_.yc,d.useClass=ref,d[ua]=[RV,sUf],d));d={};e.addProvider((d.provide=_.WDU,d.useClass=jE9,d[ua]=[_.yc],d));e.addProvider({provide:k4,useFactory:_.d1});e.addProvider({provide:v0,useFactory:_.d1});e.addProvider({provide:i9S,useFactory:_.d1});e.addProvider({provide:ugu,useFactory:_.d1});e.addProvider({provide:_.Hl,useFactory:_.d1});e.addProvider({provide:rT,useValue:_.j7});e.addProvider({provide:om_,useClass:koH});e.addProvider({provide:UaJ,useClass:Dan});e.addProvider({provide:wO,
useClass:wO});e.addProvider({provide:hb,useClass:hb});e.addProvider({provide:Ks,useClass:Ks});e.addProvider({provide:jN,useClass:jN});e.addProvider({provide:U5,useClass:U5});e.addProvider({provide:of,useClass:of});e.addProvider({provide:$R,useClass:$R});e.addProvider({provide:_.S6s,useValue:nav});e.addProvider({provide:_.t5,useFactory:_.NC});e.addProvider({provide:bN,useFactory:_.LB});d={};e.addProvider((d.provide=wqL,d.useFactory=function(Y){return function(q){var r=r===void 0?{}:r;var h,K,k=(K=
_.L((h=q.endpoint)==null?void 0:h.commandMetadata,_.$B))==null?void 0:K.rootVe;if(k){var J,R;if(h=q.previousCsn||((R=_.L((J=q.endpoint)==null?void 0:J.commandMetadata,Z6B))==null?void 0:R.parentCsn)){var B=B===void 0?{}:B;if(h!==_.zz(B.layer)||k!==PPt(B.layer))z8S(h,B.cttAuthInfo,B.layer||0),fct(h,B.layer||0),J=B.layer||0,_.xc(R8U(J===void 0?0:J),k);r.parentCsn=h}q.endpoint&&h?ijE(Y,q.endpoint,r):_.Ig(Y,k,void 0,r);var X;((X=q.response)==null?0:X.trackingParams)&&Y.graftServerVe(q.response.trackingParams);
var Z;((Z=q.playerResponse)==null?0:Z.trackingParams)&&Y.graftServerVe(q.playerResponse.trackingParams);var U;((U=q.reelWatchSequenceResponse)==null?0:U.trackingParams)&&Y.graftServerVe(q.reelWatchSequenceResponse.trackingParams)}}},d[ua]=[_.t5],d));
d={};e.addProvider((d.provide=IwS,d.useClass=O9v,d[ua]=[rT,_.Hl],d));d={};e.addProvider((d.provide=r8,d.useClass=r8,d[ua]=[_.a7,_.Hl],d));d={};e.addProvider((d.provide=Yy,d.useClass=Yy,d[ua]=[v0,_.EI],d));e.addProvider({provide:_.riQ,useClass:VsC});d={};e.addProvider((d.provide=_.tx,d.useClass=$1C,d[ua]=[_.riQ],d));e.addProvider({provide:_.fE,useClass:$y});e.addProvider({provide:_.z$f,useClass:mff});e.addProvider({provide:_.Rj,useClass:hq});d={};e.addProvider((d.provide=_.aR,d.useClass=LfS,d[ua]=
[_.aR],d));e.addProvider({provide:_.OZ,useClass:wd0});e.addProvider({provide:Gg,useClass:Gg});e.addProvider({provide:uo,useClass:uo});e.addProvider({provide:x4,useClass:x4});d={};e.addProvider((d.provide=qB,d.useClass=qB,d[ua]=[_.EI,_.lX],d));e.addProvider({provide:ZM,useClass:KH});d={};e.addProvider((d.provide=F3,d.useClass=F3,d[ua]=[_.fE,ZM],d));_.N("web_enable_feedback_endpoint_resolver")&&(d={},e.addProvider((d.provide=LT,d.useClass=LT,d[ua]=[k4,NB],d)),e.addProvider({provide:NB,useClass:ysS}));
_.N("web_enable_feedback_endpoint_resolver_batch_2")&&(d={},e.addProvider((d.provide=oV,d.useClass=oV,d[ua]=[k4],d)),d={},e.addProvider((d.provide=Vh,d.useClass=Vh,d[ua]=[NB],d)));d={};e.addProvider((d.provide=cQ,d.useClass=cQ,d[ua]=[_.Rj,ZM],d));d={};e.addProvider((d.provide=zg,d.useClass=zg,d[ua]=[_.Rj],d));d={};e.addProvider((d.provide=wR,d.useClass=wR,d[ua]=[_.lX,_.tx],d));d={};e.addProvider((d.provide=Ap,d.useClass=Ap,d[ua]=[_.lX,_.t5],d));e.addProvider({provide:hj,useClass:hj});d={};e.addProvider((d.provide=
IR,d.useClass=IR,d[ua]=[k4],d));e.addProvider({provide:fc,useClass:fc});e.addProvider({provide:tj,useClass:tj});d={};e.addProvider((d.provide=Pt,d.useClass=Pt,d[ua]=[k4],d));d={};e.addProvider((d.provide=x$,d.useClass=x$,d[ua]=[_.lX,k4],d));d={};e.addProvider((d.provide=Bt,d.useClass=Bt,d[ua]=[k4],d));d={};e.addProvider((d.provide=Cc,d.useClass=Cc,d[ua]=[k4],d));d={};e.addProvider((d.provide=lo,d.useClass=lo,d[ua]=[_.tx],d));d={};e.addProvider((d.provide=Nv,d.useClass=Nv,d[ua]=[_.t5],d));d={};e.addProvider((d.provide=
Gm,d.useClass=Gm,d[ua]=[qv],d));d={};e.addProvider((d.provide=Mv,d.useClass=Mv,d[ua]=[qv],d));e.addProvider({provide:VA,useClass:VA});e.addProvider({provide:oR,useClass:oR});e.addProvider({provide:sp,useClass:sp});d={};e.addProvider((d.provide=Qh,d.useClass=Qh,d[ua]=[_.tx,_.EI],d));e.addProvider({provide:fT,useClass:fT});d={};e.addProvider((d.provide=HQ,d.useClass=HQ,d[ua]=[_.lX,_.tx],d));e.addProvider({provide:BQ,useClass:BQ});d={};e.addProvider((d.provide=iN,d.useClass=iN,d[ua]=[k4,_.lX,_.aR],d));
d={};e.addProvider((d.provide=S3,d.useClass=S3,d[ua]=[_.lX,_.EI],d));e.addProvider({provide:DXI,useValue:YbS});e.addProvider({provide:EbI,useValue:Knt});e.addProvider({provide:Wt,useClass:Wt});d={};e.addProvider((d.provide=Tm,d.useClass=Tm,d[ua]=[k4],d));d={};e.addProvider((d.provide=Op,d.useClass=Op,d[ua]=[_.OZ,_.EI],d));d={};e.addProvider((d.provide=Jp,d.useClass=Jp,d[ua]=[_.EI],d));e.addProvider({provide:sL,useFactory:function(){return new sL(_.d1())}});
e.addProvider({provide:Ijs,useFactory:_.Co.getInstance});d={};e.addProvider((d.provide=PQ,d.useClass=PQ,d[ua]=[RV,Ijs,_.EI],d));e.addProvider({provide:MB,useClass:MB});e.addProvider({provide:rR,useClass:rR});e.addProvider({provide:KT,useClass:KT});e.addProvider({provide:_.hp,useClass:_.hp});e.addProvider({provide:lN,useClass:lN});d={};e.addProvider((d.provide=e3,d.useClass=e3,d[ua]=[v0],d));d={};e.addProvider((d.provide=dw,d.useClass=dw,d[ua]=[_.EI],d));_.N("web_enable_prefetching_videos_on_home")&&
(e.addProvider({provide:bQ,useClass:bQ}),e.addProvider({provide:fH,useClass:fH}));d={};e.addProvider((d.provide=zm,d.useClass=zm,d[ua]=[_.EI],d));e.addProvider({provide:$4,useClass:$4});d={};e.addProvider((d.provide=Kc,d.useClass=Kc,d[ua]=[_.lX,_.EI],d));d={};e.addProvider((d.provide=jn,d.useClass=jn,d[ua]=[_.EI],d));e.addProvider({provide:RL,useClass:RL});e.addProvider({provide:DM,useClass:DM});d={};e.addProvider((d.provide=nT,d.useClass=nT,d[ua]=[v0,_.EI],d));e.addProvider({provide:UL,useClass:UL});
d={};e.addProvider((d.provide=Zs,d.useClass=Zs,d[ua]=[v0,_.EI,_.lX],d));d={};e.addProvider((d.provide=ct,d.useClass=ct,d[ua]=[_.EI],d));d={};e.addProvider((d.provide=Aj,d.useClass=Aj,d[ua]=[_.EI,_.lX],d));d={};e.addProvider((d.provide=Ep,d.useClass=Ep,d[ua]=[_.a7],d));d={};e.addProvider((d.provide=pT,d.useClass=pT,d[ua]=[_.a7],d));e.addProvider({provide:yA,useClass:yA});e.addProvider({provide:rw,useClass:rw});e.addProvider({provide:RR,useClass:RR});e.addProvider({provide:$$,useClass:$$});e.addProvider({provide:mn,
useClass:mn});e.addProvider({provide:CT,useClass:CT});e.addProvider({provide:Y$,useClass:Y$});_.N("kevlar_enable_mss_lazy_load")&&e.addProvider({provide:_.B0,useClass:r7t});e.addProvider({provide:_.s1,useClass:sM});e.addProvider({provide:UA,useFactory:function(){return _.FT.getInstance()}});
e.addProvider({provide:Wff,useFactory:mtL});e.addProvider({provide:qv,useFactory:function(){return _.Jd.getInstance()}});
e.addProvider({provide:E82,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});d={};e.addProvider((d.provide=_.m9,d.useClass=_.m9,d[ua]=[_.a7,_.EI,_.t5,Wff,qv,UA,E82,rT],d));e.addProvider({provide:_.$1,useClass:wNI});e.addProvider({provide:_.kO1,useClass:NHC});d={};e.addProvider((d.provide=X3,d.useClass=X3,d[ua]=[_.kO1],d));d={};e.addProvider((d.provide=_.yn,d.useFactory=function(Y){return Y.upliftCompletionResolver.promise},d[ua]=[IwS],d));
d=_.zr("IS_SHELL_LOAD")?"aa":"eocs";var E=_.zr("IS_SHELL_LOAD")?3:2;_.HH().parkOrScheduleJob(function(){Yiv()},E,d);
_.HH().parkOrScheduleJob(function(){_.dk().resolve(r8).start()},2,"eocs");
_.HH().parkOrScheduleJob(function(){awf()},2,"eocs");
_.HH().parkOrScheduleJob(function(){_.dk().resolve(Yy).start()},2,"eocs");
_.N("kevlar_debug_data_app_registration_ks")||Ve0();e.addProvider({provide:_.oZ,useValue:new eRc(v.root)});e.addProvider({provide:cV,useValue:new Hvt});e.addProvider({provide:_.OJI,useValue:new aZM(v.root)});e.addProvider({provide:_.zo,useValue:new iJE});e.addProvider({provide:_.Vy,useClass:k1});e.addProvider({provide:kQi,useClass:je});_.N("kevlar_network_sli_killswitch")||e.addProvider({provide:ArQ,useValue:gOE});e.addProvider({provide:G6,useFactory:Sct});_.N("web_bind_fetch")&&(d={},e.addProvider((d.provide=
Jri,d.useFactory=WpL,d[ua]=[_.eG(G6)],d)));_.N("web_bind_parse")&&(d={},e.addProvider((d.provide=GDQ,d.useFactory=aQ0,d[ua]=[_.eG(G6)],d)));_.N("web_bind_window_request")&&(d={},e.addProvider((d.provide=MmC,d.useFactory=iVS,d[ua]=[_.eG(G6)],d)));_.N("web_bind_text_decoder")&&(d={},e.addProvider((d.provide=tm_,d.useFactory=OVL,d[ua]=[_.eG(G6)],d)));d={};e.addProvider((d.provide=uMO,d.useFactory=AA0,d[ua]=[_.yn,k4,_.Se],d));d={};e.addProvider((d.provide=gSi,d.useClass=ww,d[ua]=[uMO],d));e.addProvider({provide:I0s,
useClass:Wgs});e.addProvider({provide:cs9,useClass:F0_});d=[].concat(_.t7(u2));_.N("web_continuation_response_processing")&&d.push(_.Ha);d.push($Zu);_.N("enable_share_panel_navigation_logging_fix_on_web")&&d.push(_.XAu);e.addProvider({provide:HSU,useValue:d});e.addProvider({provide:mK$,useClass:ZtO});e.addProvider({provide:Q$s,useClass:ZYC});d={};e.addProvider((d.provide=OWt,d.useClass=$an,d[ua]=[v0],d));_.RM.addLowPriorityJob(function(){Ps$()});
d={};e.addProvider((d.provide=UhB,d.useFactory=function(Y){return function(q){var r,h=(r=_.L(q.commandMetadata,_.$B))==null?void 0:r.url;if(!h)throw new _.kL("No URL for PBJ Command",q);h=jq3(h,{pbj:"1"});r=HB0(h,{})||{};r=Object.assign({},r,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Bb("STS").toString()});q=_.q_({command:JSON.stringify(q),session_token:_.Bb("XSRF_TOKEN")});return Y.fetch(h,{method:"POST",headers:r,body:q})}},d[ua]=[Q$s],d));
d=[];d.push(e.resolve(cs9));E={};E=(E.client_location=_.Co.getInstance(),E.consistency=_.BY7(),E.entities=e.resolve(UaJ),E.response_received_commands=e.resolve(mK$),E.store=e.resolve(_.WDU),E.tokens=e.resolve(cs9),E);_.N("web_service_params_response_processor")&&(e.addProvider({provide:zTv,useFactory:function(){var Y={};return Y.CSI=bV7(),Y.ECATCHER=IQt(),Y}}),e.addProvider({provide:dKO,
useClass:lB9}),E.service_params=e.resolve(dKO));if(_.N("web_shorts_prefetch_service_enabled")){var T=new sEO(e.resolve(_.yc));E.shorts_prefetch=T}E.adblock_detection=e.resolve(OWt);e.addProvider({provide:_.wt,useClass:_.wt});T=e.resolve(_.S6s);var S=[];_.N("PremiumClientSharedConfig__enable_att_context_processor")&&(e.addProvider({provide:BLc,useClass:RRn}),S.push(e.resolve(BLc)));if(_.N("owl_pl_await")){var O={};e.addProvider((O.provide=$fi,O.useFactory=function(Y){return new hTf(Y)},O[ua]=[_.wt],
O));
S.push(e.resolve($fi))}Oc2(T,e.resolve(Q$s),e.resolve(om_),E,e.resolve(_.yc),d,S,e.resolve(gSi),e.resolve(I0s));e.addProvider({provide:_.lX,useValue:_.wq.instance});_.N("start_client_gcf")&&e.addProvider({provide:Vf,useValue:PW0()});e.addProvider({provide:yi9,useFactory:function(){return new yi9(_.dk().resolve(_.wt),_.Jd.getInstance())}});
_.HH().parkOrScheduleJob(function(){qiS()},1,"eocs");
d={};e.addProvider((d.provide=qM,d.useClass=qM,d[ua]=[_.Se,_.lX],d));e.addProvider({provide:_.XOQ,useFactory:_.tq.getInstance});_.HH().parkOrScheduleJob(function(){_.dk().resolve(qM).refresh()},0,"eocs");
pWu(nav.watchEndpointMap||{},T.reelWatchEndpointMap||{},v.injector.resolve(_.lX));e.addProvider({provide:hR,useValue:_.kK.instance});_.N("kevlar_signal_collection_killswitch")||(d={},e.addProvider((d.provide=Uii,d.useClass=Uii,d[ua]=[RV,bN],d)),_.HH().parkOrScheduleJob(function(){_.dk().resolve(Uii).record()},1,"eocs"));
_.N("web_debug_handler_registration_killswitch")||_.HH().parkOrScheduleJob(function(){k60("DOWNLOAD_PES",Yy7);_.N("offline_client_state_export_ks")||k60("OFFLINE_CLIENT_STATE",Ozs)},0,"eocs");
_.N("kevlar_prevent_polymer_dynamic_font_load")&&_.HH().parkOrScheduleJob(function(){var Y=[_.ie(Ea9),_.ie(T5v)];Y=_.a(Y);for(var q=Y.next();!q.done;q=Y.next()){q=q.value;var r=document.createElement("link");_.vu(r,q,"stylesheet");document.head.appendChild(r)}},1,"eocs");
d=v.injector.resolve(_.lX);_.xae.instance=new _.xae(d);FR7(oWI(new PGM(d)));d={};v.injector.addProvider((d.provide=dm,d.useFactory=function(Y){(Y=Y==null?void 0:Y.getCurrentPage())?Y=Y.visibilityObserver:(ohQ||(ohQ=AxW()),Y=ohQ);return Y},d[ua]=[_.eG(_.v5)],d.skipCache=!0,d));
e.addProvider({provide:_.P0,useClass:lQ});e.addProvider({provide:Np,useClass:UM6});v.injector.addProvider({provide:QJ6,useValue:vW0});e.addProvider({provide:B0B,useValue:iuO});e.addProvider({provide:_.n1,useValue:$O3});v=e.addProvider;H9C||(H9C=new lwO);v.call(e,{provide:_.NM,useValue:H9C});e.addProvider({provide:_.U_,useValue:_.Bb("HTML_DIR")==="rtl"?"rtl":"ltr"});e.addProvider({provide:vS9,useClass:btf});e.addProvider({provide:_.rC,useClass:ky});_.dk().addProvider({provide:d7S,useValue:_.N("enable_web_delhi_icons")?
kZv.concat(Vt1):Nfi.concat(Lis)});e.addProvider({provide:_.Vn,useClass:_.Vn});e.addProvider({provide:_.p$s,useValue:new UfO});e.addProvider({provide:D8I,useClass:uu2});e.addProvider({provide:j3,useClass:j3});e.addProvider({provide:k$,useClass:k$});v={};e.addProvider((v.provide=gR,v.useClass=gR,v[ua]=[_.lX,_.tx],v));e.addProvider({provide:Ht,useClass:Ht});e.addProvider({provide:rJ2,useClass:JiO});e.addProvider({provide:Jj,useClass:Jj});e.addProvider({provide:xL7,useValue:$LE});e.addProvider({provide:_.Q6,
useClass:nWI});_.N("enable_payments_purchase_manager")&&e.addProvider({provide:lZe,useClass:CG2});e.addProvider({provide:dq9,useFactory:function(){return function(Y){return _.eUs(Y)}}});
e.addProvider({provide:_.Hts,useClass:Ass});v={};e.addProvider((v.provide=X0,v.useClass=X0,v[ua]=[_.Hts],v));e.addProvider({provide:Lc,useClass:Lc});e.addProvider({provide:Ije,useValue:AJe});e.addProvider({provide:YXu,useValue:_.nsQ});e.addProvider({provide:xMW,useClass:osi});e.addProvider({provide:Ai9,useValue:dRv});v={};e.addProvider((v.provide=Z9f,v.useClass=cis,v[ua]=[Ai9],v));v={};e.addProvider((v.provide=_.j_,v.useClass=Tri,v[ua]=[Z9f],v));v={};e.addProvider((v.provide=_.Jq,v.useClass=oL,v[ua]=
[_.Hl,_.Vy],v));if(_.N("web_explore_hub_on_hover")||_.N("web_client_explore_hub_on_hover"))v={},e.addProvider((v.provide=tp,v.useClass=tp,v[ua]=[_.lX,UA],v));if(_.N("web_enable_renderer_logger")){var b=new Vm9;LjW(function(){b.abort()});
e.addProvider({provide:ekt,useValue:new vsv(b.signal)})}e.addProvider({provide:non,useValue:Qft});v={};e.addProvider((v.provide=lzO,v.useClass=Nni,v[ua]=[_.lX],v))}},JzC);var Mtw={},tti=(Mtw.initialized={priority:10,callback:function(){if(!HYS){gJt();mmW("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.bY(_.kB(mmW,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.N("log_heartbeat_with_lifecycles")){var v={};EC.instance||(EC.instance=new EC);EC.instance.install((v.document_visible={callback:yAt,priority:10},v.document_hidden={callback:yAt,priority:10},v))}else _.eh(document,"visibilitychange",yAt);HYS=!0}(v=_.zz())&&v!=="UNDEFINED_CSN"&&MTL(v)}},Mtw);var f4s={},RHi=(f4s.initialized={callback:function(v){var e=_.bH(232091),d=v.injector.resolve(_.t5);_.bj(d,e);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?wTL()&&_.m3(d,e):(v=v.injector.resolve(dq9)("refresh_detector"))&&(v.get("first_tab_load")?_.m3(d,e):v.set("first_tab_load","1"))}},f4s);var PZt={},xu1=(PZt.initialized={priority:10,callback:pTM},PZt);var Bfs={},CZt=(Bfs.initialized={priority:0,callback:function(){var v=new tt6,e="other";_.OU?e="chrome":_.i1?e="firefox":_.Xo?e="safari":DT&&(e="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(d){v.increment(_.jG(),d,e)}).catch(function(){v.increment(_.jG(),!1,e)}):v.increment(_.jG(),!1,e)}},Bfs);var Xws={},zHi=(Xws.rendering={priority:8,callback:vn$},Xws);var l4v={},HXs=(l4v.rendering={priority:10,callback:q4H},l4v.rendered={callback:yv0},l4v),Azf={},ZXt=(Azf.rendering={callback:q4H},Azf.rendered={callback:yv0},Azf);var czS=!1,wwf={},Fiv=(wwf.initialized={priority:10,callback:function(){czS||(K$j({didPatch:function(v){v.el&&Lpj(v.el,v.props)},
didUnmount:function(v){Nd0(v.el)}}),czS=!0)}},wwf);var Quv=/^\/shorts\/?$/;_.xc("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:{}}}}}}});_.N("kevlar_enable_mss")&&(_.U_L(new kEe),tBH());
(function(){var v=document.querySelector("ytd-app");if(!v)throw Error("Mj");v=new MM({root:v,injector:_.dk()});v.install(tti);var e={};v.install((e.initialized={priority:10,callback:R13},e));_.N("wp_lat_b")&&(e={},v.install((e.initialized={priority:10,callback:function(){dmM()}},e)));
e={};v.install((e.rendered={priority:0,callback:MY$},e));e={};v.install((e.rendered={priority:0,callback:function(){_.RM.addLowPriorityJob(function(){_.Y0s>1&&(Nvt(),JQt())},4E4)}},e));
v.install(tlw);v.install(RHi);v.install(Fiv);CcM();v.install(zUt);v.install(L7i);v.install(GM9);v.install(wcC);v.install(nIs);v.install(C9S);v.install(GZS);_.N("kevlar_enable_mss_lazy_load")&&v.install(xu1);v.install(oa9);v.install(CZt);if(!_.zr("IS_SHELL_LOAD")||_.N("kevlar_fetch_initial_data_promise_client")||_.N("sw_nav_preload_pbj")){var d=_.mq(window.location.href);e=d&&d==="/watch";d=d&&d.match(Quv);e?v.install(ZXt):d?v.install(zHi):v.install(HXs)}else v.install(s09);v.install(RUi);_.N("web_enable_prefetching_videos_on_home")&&
v.install(ZF9);_.N("start_client_gcf")&&v.install(X$s);v.install(l0t);(new f4I).increment("INSTALLED");v.install(HFO);v.install(K71);v.transition("initialized");gUH()})();
_.qd=[[["Y2Vsbmx1OGFkcGtpbmQjeQ==","YXRzcGoxdmFsdWUjbmViYWt1"],"RF9QTEFDRU1FTlRfS0lORF9NSUxMSVNFQ09ORFMjd2JuN2lmM2podjhxQQ=="]];_.yd=["cyMzejBpM28xY3M0emdnbG9iYWxDYWxsYmFjaw==","emFta2pvaWpob25BYm5vcm1hbGl0eURldGVjdGVkI3Zu","b25BZFNraXAjOTQ3bmFtdGNtbjlk","OTFjc3BwbTJ1OHJhd19wbGF5ZXJfcmVzcG9uc2UjeHM=","YXllckFkcyNoY2Z4OXpqOW45NnFwbA=="];_.QV="cyMzejBpM28xY3M0emdnbG9iYWxDYWxsYmFjaw== emFta2pvaWpob25BYm5vcm1hbGl0eURldGVjdGVkI3Zu b25BZFNraXAjOTQ3bmFtdGNtbjlk OTFjc3BwbTJ1OHJhd19wbGF5ZXJfcmVzcG9uc2UjeHM= eWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjNzFnYTJ0bjVzZjNnd2ViX3BsYQ== YWJfc2FfZWYjOTY1cTVuZjJqanlu YXllckFkcyNoY2Z4OXpqOW45NnFwbA==".split(" ");
_._ModuleManager_initialize=function(v,e){if(!_.Jz){if(!_.GZ)return;_.U_L(_.GZ())}_.Jz.setAllModuleInfoString(v,e)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.w8=function(v,e,d,E,T){var S={};e&&(S[e]=d);E?S.errorType=E:T&&(S.errorReason=T);_.tI(v,S);_.fI()};
_.FN=function(v){var e=_.HH();return _.Fdc(e,v,1)};
_.xv({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 v=this.query;v&&(this.full||v[0]==="("||(v="("+v+")"),this._mq=window.matchMedia(v),this._add(),this.queryHandler(this._mq))},
queryHandler:function(v){this._setQueryMatches(v.matches)}});var Thi;var SEi;var Wsf=function(){};
_.W=Wsf.prototype;_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W._tapHandler=function(){};
_.W._focusChanged=function(){};
_.W._detectKeyboardFocus=function(){};
_.W._userActivate=function(){};
_.W._upHandler=function(){};
_.W._spaceKeyDownHandler=function(){};
_.W._spaceKeyUpHandler=function(){};
_.W._asyncClick=function(){};
_.W._pressedChanged=function(){};
_.W._ariaActiveAttributeChanged=function(){};
_.W._activeChanged=function(){};
_.W._controlStateChanged=function(){};
_.W._changedButtonState=function(){};
_.W._focusBlurHandler=function(){};
_.W._disabledChanged=function(){};
_.W._changedControlState=function(){};
_.W._downHandler=function(){};
_.W.ensureRipple=function(){};
_.W.getRipple=function(){};
_.W.hasRipple=function(){};
_.W._noinkChanged=function(){};
_.W._focusedChanged=function(){};
_.W._createRipple=function(){};
_.W.registered=function(){};
_.W._invalidChanged=function(){};
_.W.hasValidator=function(){};
_.W.validate=function(){};
_.W._getValidity=function(){};
_.W._requiredChanged=function(){};
_.W._valueChanged=function(){};
_.W._checkedChanged=function(){};
_.W._buttonStateChanged=function(){};
_.W._setPressed=function(){};
_.W._setPointerDown=function(){};
_.W._setReceivedFocusFromKeyboard=function(){};
_.W._setFocused=function(){};
Wsf=_.xv({is:"tp-yt-paper-radio-button",_template:function(){if(SEi!==void 0)return SEi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Thi===void 0&&(Thi=document.createElement("template"));var E=Thi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return SEi=v},
behaviors:[_.OO7],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(){_.Uh(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var v=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),e=Math.floor(3*v);e%2!==v%2&&e++;this.updateStyles({"--paper-radio-button-ink-size":e+"px"})}})}});var ags;var iDf;_.xv({_template:function(){if(iDf!==void 0)return iDf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;ags===void 0&&(ags=document.createElement("template"));var E=ags;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return iDf=v},
is:"tp-yt-paper-radio-group",behaviors:[_.NBJ],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(v){var e=this._valueToItem(v);if(!e||!e.hasAttribute("disabled")){if(this.selected){e=this._valueToItem(this.selected);if(this.selected==v)if(this.allowEmptySelection)v="";else{e&&(e.checked=!0);return}e&&
(e.checked=!1)}_.nq.select.apply(this,[v]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(v){this._focusPrevious();v.preventDefault();this._activateFocusedItem()},
_onDownKey:function(v){this._focusNext();v.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(v){_.s7n._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(v){_.s7n._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.nq._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.ox._resetTabindices.apply(this,arguments);this.items.forEach(function(v){v.removeAttribute("aria-selected")},this)}});var ODS;_.RZ("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Qn=function(){return _.P.apply(this,arguments)||this};
_.V(Qn,_.P);_.W=Qn.prototype;_.W.computeHasPrimaryIcon=function(v){return!(!v.icon&&!v.thumbnail)};
_.W.computeHasSecondary=function(v){return!(!v.secondaryIcon&&!v.secondaryNotificationText)};
_.W.computeHideSecondaryString=function(v){return!_.N("disable_hide_empty_secondary_string")&&!v.secondaryNotificationText};
_.W.computeCompactLinkStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.W.computeHasFitHeight=function(v){return v==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.W.isActiveEndpoint=function(v){return(v=this.get("commandMetadata.webCommandMetadata.url",v))?_.mq(window.location.href)!=="/account_transfer_channel"&&_.mq(window.location.href)!=="/gaia_link"&&_.mq(window.location.href)!=="/channel_switcher"||v!=="/account"?_.mq(window.location.href)===v:!0:!1};
_.W.onTap=function(){var v;((v=this.data)==null?0:v.serviceEndpoint)&&_.mN(this.hostElement,[this.data.serviceEndpoint])};
Qn.prototype.onTap=Qn.prototype.onTap;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Qn.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.w("design:type",Boolean)],Qn.prototype,"active",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.w("design:type",String)],Qn.prototype,"compactLinkStyle",void 0);
_.c([_.f({computed:"computeIcon_(data.icon)"}),_.w("design:type",Object)],Qn.prototype,"icon",void 0);_.c([_.f({computed:"computeIcon_(data.secondaryIcon)"}),_.w("design:type",Object)],Qn.prototype,"secondaryIcon",void 0);_.c([_.f({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Qn.prototype,"hasSecondary",void 0);_.c([_.f({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Qn.prototype,"hideSecondaryString",void 0);
_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qn.prototype,"onTap",null);_.c([_.z({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],Qn);
_.A(Qn,"ytd-compact-link-renderer",function(){if(ODS!==void 0)return ODS;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ODS=v},{mode:1});var Igw;_.RZ("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var g8=function(){var v=_.P.apply(this,arguments)||this;v.role="link";v.tabindex="0";v.actionMap=_.N("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 v};
_.V(g8,_.P);_.W=g8.prototype;_.W.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Pv()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.W.getCurrentTheme=function(){return _.xE()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Pv()};
_.W.onThemeSelected=function(v,e){var d=v||e?v:_.Rb(),E=(d&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!d&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Rns(_.mq(window.location.href));_.Va(0,165,v);_.Va(0,174,e);this.prefs.save();E&&_.b4(this.hostElement,"yt-dark-mode-toggled-action",[d]);_.b4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.W.onTap=function(){this.data.serviceEndpoint&&_.mN(this.hostElement,[this.data.serviceEndpoint])};
_.W.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.W.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.W.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
g8.prototype.onTap=g8.prototype.onTap;g8.prototype.dataChanged=g8.prototype.dataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],g8.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ws),_.w("design:type",Object)],g8.prototype,"paperItemBehaviors",void 0);_.c([_.f(),_.w("design:type",Object)],g8.prototype,"data",void 0);_.c([_.f({value:function(){return _.LB()}}),
_.w("design:type",_.U3)],g8.prototype,"prefs",void 0);_.c([_.f(),_.w("design:type",Object)],g8.prototype,"label",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],g8.prototype,"role",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],g8.prototype,"tabindex",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],g8.prototype,"dataChanged",null);
_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],g8.prototype,"onTap",null);_.c([_.z({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],g8);
_.I5()(g8,"ytd-toggle-theme-compact-link-renderer",function(){if(Igw===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);Igw=v}v=Igw;return v},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var YEv,m4O;_.uQ=function(v){return!!v.getOptions("captions")};
_.bDC=function(v){return(v=v.getOption("captions","track"))?!!v.displayName:!1};
_.nH=function(v,e){_.kp(e,v,function(){return YEv[e]},function(d){YEv[e]=d;
if(!_.N("mweb_player_ve_show_ks")){var E=_.zz(0);E&&d&&_.u4(E,d)}})};
_.D$=function(v){(v=YEv[v])&&_.m3(_.NC(),v)};
YEv={};var yf9;/*

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
*/
_.xv({_template:function(){if(yf9!==void 0)return yf9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;m4O===void 0&&(m4O=document.createElement("template"));var E=m4O;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return yf9=v},
is:"tp-yt-paper-checkbox",behaviors:[_.OO7],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Uh(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var v=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),e="px",d=v.match(/[A-Za-z]+$/);d!==null&&(e=d[0]);v=parseFloat(v);d=8/3*v;e==="px"&&(d=Math.floor(d),d%2!==v%2&&d++);this.updateStyles({"--paper-checkbox-ink-size":d+
e})}})},
_computeCheckboxClass:function(v,e){var d="";v&&(d+="checked ");e&&(d+="invalid");return d},
_computeCheckmarkClass:function(v){return v?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.a9n._createRipple.call(this)}});var qES=new _.gG("radioButtonSurveyOptionRenderer"),rfS=new _.gG("checkboxSurveyOptionRenderer");var hdw;var KsQ;var $41=0,UM=function(){var v=_.P.call(this)||this;v.selected=!1;v.isOverlay=!1;v.inputId="toggle-option-"+$41;$41++;return v};
_.V(UM,_.P);UM.prototype.onTap=function(){_.Iq(this.hostElement,"ytd-toggle-option-clicked")};
_.c([_.f(),_.w("design:type",String)],UM.prototype,"label",void 0);_.c([_.f(),_.w("design:type",String)],UM.prototype,"inputId",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],UM.prototype,"selected",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],UM.prototype,"isOverlay",void 0);_.c([_.z({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.w("design:paramtypes",[])],UM);
_.A(UM,"ytd-toggle-option-renderer",function(){if(KsQ!==void 0)return KsQ;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return KsQ=v},{mode:1});var pH=function(){var v=_.P.apply(this,arguments)||this;v.isToggleOption=!1;v.isOverlay=!1;return v};
_.V(pH,_.P);pH.prototype.onTap=function(v){v.preventDefault();this.data&&(v=!this.data.checked,this.set("data.checked",v),_.Iq(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:v,value:this.data.value}))};
_.vP.Object.defineProperties(pH.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
pH.prototype.onTap=pH.prototype.onTap;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pH.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],pH.prototype,"isToggleOption",void 0);_.c([_.f(),_.w("design:type",Object)],pH.prototype,"isOverlay",void 0);_.c([_.t("data.responseText"),_.w("design:type",String),_.w("design:paramtypes",[])],pH.prototype,"label",null);
_.c([_.Kq("ytd-toggle-option-clicked"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],pH.prototype,"onTap",null);_.c([_.z({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],pH);
_.A(pH,"ytd-checkbox-survey-option-renderer",function(){if(hdw!==void 0)return hdw;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return hdw=v},{mode:1});var j_s;var s_s;var vf=function(){var v=_.P.apply(this,arguments)||this;v.checked=!1;v.isToggleOption=!1;return v};
_.V(vf,_.P);vf.prototype.onTap=function(){this.data&&(this.checked?_.b4(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.b4(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
vf.prototype.onTap=vf.prototype.onTap;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],vf.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],vf.prototype,"checked",void 0);_.c([_.f(),_.w("design:type",Object)],vf.prototype,"isToggleOption",void 0);_.c([_.Kq("ytd-toggle-option-clicked"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],vf.prototype,"onTap",null);
_.c([_.z({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],vf);
_.A(vf,"ytd-radio-button-survey-option-renderer",function(){if(s_s!==void 0)return s_s;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return s_s=v},{mode:1});var eH=function(){var v=_.P.apply(this,arguments)||this;v.disableAnimation=!1;v.isToggleOption=!0;v.followUpSurveyCommand=null;v.selectedRatingEndpoint=null;v.isSlimlineSurveyFollowUp=!1;v.isShortsStyle=!1;v.styleOverrideAttribute=!0;v.isDarkMode=!1;v.isSubmitted=!1;v.roundedContainer=!0;v.improveShortsResponseRate=_.N("web_improve_shorts_response_rate");v.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 v};
_.V(eH,_.P);_.W=eH.prototype;
_.W.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"}}}}};
_.W.attached=function(){var v=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(d){var E;if((E=d[0])!=null&&E.isIntersecting){_.j2().reportShown(v.hostElement);var T;(T=v.intersectionObserver)==null||T.unobserve(v.hostElement)}},{rootMargin:"0px",
threshold:.6});var e;(e=this.intersectionObserver)==null||e.observe(this.hostElement)};
_.W.onDarkModeToggledAction=function(v){this.isDarkMode=v};
_.W.dataChanged=function(){var v;if(((v=this.data)==null?void 0:v.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var e;((e=this.data)==null?void 0:e.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var d,E,T,S;this.darkColorPalette=(d=this.data)==null?void 0:(E=d.inlineContent)==null?void 0:(T=E.compactVideoRenderer)==null?void 0:(S=T.thumbnail)==null?
void 0:S.darkColorPalette;var O,b,Y,q;this.lightColorPalette=(O=this.data)==null?void 0:(b=O.inlineContent)==null?void 0:(Y=b.compactVideoRenderer)==null?void 0:(q=Y.thumbnail)==null?void 0:q.lightColorPalette;var r,h;if(((r=this.data)==null?0:(h=r.inlineContent)==null?0:h.compactVideoRenderer)&&this.isShortsStyle){var K,k,J,R;v=_.OG((K=this.data)==null?void 0:(k=K.inlineContent)==null?void 0:(J=k.compactVideoRenderer)==null?void 0:(R=J.thumbnail)==null?void 0:R.thumbnails);_.qr(this.hostElement,
{"--yt-background-url":"url("+v+")"})}};
_.W.handleRequestCompletion=function(){this.hostElement.hidden&&_.Iq(this.hostElement,"yt-dismissible-item-dismissed")};
_.W.onPopupClosed=function(v){var e;((e=v.detail)==null?void 0:e.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.b4(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.W.handleInlineSurveyRatingSelect=function(v,e){var d=this;this.selectedRatingEndpoint=v;this.followUpSurveyCommand=e;this.expanded=!!v;this.getOptionRenderers().forEach(function(E,T){d.notifyPath("followUpSurveyCommand.followUpOptions."+T+".checkboxSurveyOptionRenderer.checked");d.set("followUpSurveyCommand.followUpOptions."+T+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),v=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.b4(this.hostElement,"yt-reel-non-video-content-dismissal-command",[v]))};
_.W.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.b4(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var v,e=(v=this.data)==null?void 0:v.dismissalEndpoint;e&&this.ytComponentBehavior.resolveCommand(e)}};
_.W.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.b4(this.hostElement,"yt-close-popup-action"))};
_.W.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var v=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{v=this.getOptionRenderers().filter(function(E){return E.checked});
if(v.length===0)return;v=v.map(function(E){return E.responseEndpoint})}var e=[];
v.forEach(function(E,T){T!==0&&(E=_.L(E,_.LO))&&E.feedbackToken&&e.push(E.feedbackToken)});
if(v=v[0]){var d={};e.length>0&&(d.extra_feedback_tokens=e);this.ytComponentBehavior.resolveCommand(v,{form:d})}}};
_.W.getOptionRenderers=function(){var v=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(e){v.isSingleSelect=!!_.L(e,qES);return v.isSingleSelect?_.L(e,qES):_.L(e,rfS)}):[]};
_.W.handleInlineSurveyOptionSelect=function(v){v=this.optionSelector.indexOf(v);v!==-1&&this.optionSelector.selectIndex(v)};
_.W.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.W.maybeGetBackgroundColor=function(v){return this.isDarkMode?v.section2Color:v.section3Color};
_.W.colorPaletteChanged=function(){var v=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;v=v&&this.maybeGetBackgroundColor(v);this.dismissibleEl.style.backgroundColor=!v||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.cv(v)};
_.vP.Object.defineProperties(eH.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
eH.prototype.colorPaletteChanged=eH.prototype.colorPaletteChanged;eH.prototype.onPopupClosed=eH.prototype.onPopupClosed;eH.prototype.handleRequestCompletion=eH.prototype.handleRequestCompletion;eH.prototype.dataChanged=eH.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],eH.prototype,"actionHandlerBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],eH.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],eH.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.sg("#follow-up-survey-options"),_.w("design:type",Object)],eH.prototype,"optionSelector",void 0);_.c([_.f(),_.w("design:type",Object)],eH.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],eH.prototype,"disableAnimation",void 0);_.c([_.f(),_.w("design:type",Object)],eH.prototype,"isToggleOption",void 0);_.c([_.f(),_.w("design:type",Object)],eH.prototype,"followUpSurveyCommand",void 0);_.c([_.f(),_.w("design:type",Object)],eH.prototype,"selectedRatingEndpoint",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eH.prototype,"expanded",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],eH.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],eH.prototype,"isShortsStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],eH.prototype,"styleOverrideAttribute",void 0);_.c([_.f(),_.w("design:type",Boolean)],eH.prototype,"isSingleSelect",void 0);_.c([_.f(),_.w("design:type",Object)],eH.prototype,"isDarkMode",void 0);
_.c([_.f(),_.w("design:type",Object)],eH.prototype,"lightColorPalette",void 0);_.c([_.f(),_.w("design:type",Object)],eH.prototype,"darkColorPalette",void 0);_.c([_.t("selectedRatingEndpoint","isShortsStyle"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],eH.prototype,"isOptionSelected",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],eH.prototype,"roundedContainer",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],eH.prototype,"improveShortsResponseRate",void 0);_.c([_.sg("#dismissible"),_.w("design:type",HTMLElement)],eH.prototype,"dismissibleEl",void 0);_.c([_.sg("#dismiss-button yt-icon-button"),_.w("design:type",HTMLElement)],eH.prototype,"dismissButtonEl",void 0);_.c([_.sg("#inline-survey-header yt-icon-button"),_.w("design:type",HTMLElement)],eH.prototype,"inlineHeaderDismissButtonEl",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eH.prototype,"dataChanged",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eH.prototype,"handleRequestCompletion",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],eH.prototype,"onPopupClosed",null);
_.c([_.$v("darkColorPalette","lightColorPalette","isDarkMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eH.prototype,"colorPaletteChanged",null);_.c([_.z({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],eH);
_.A(eH,"ytd-inline-survey-renderer",function(){if(j_s!==void 0)return j_s;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return j_s=v},{mode:1});var Nhw=["en-CA","en","es-MX","fr-CA"];_.kq_=_.l(function(v){var e=_.dC(v,{isOverlay:!1,isModern:!1}),d=e.captionIconType,E=e.onClick;v=e.ariaLabel;var T=e.ariaPressed,S=e.isOverlay,O=e.isModern;e=_.nI("button",function(q){_.nH(q,127299)});
var b=_.rq(function(q){_.D$(127299);E==null||E(q);return!1}),Y={};
return _.m("ytm-closed-captioning-button",{class:_.qe("ytmClosedCaptioningButtonHost",(Y.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return d()===-1&&S()},Y.ytmClosedCaptioningButtonIconDisabled=function(){return d()===-1&&!S()},Y))},_.m("button",{el:e,
class:"ytmClosedCaptioningButtonButton",title:v,"aria-label":v,"aria-pressed":T,"on:click":b},_.m(_.sG,{icon:function(){var q="",r=O();var h=r?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";r=r?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var K=_.LB().get("hl");h=!K||Nhw.includes(K)?h:r;r=d();switch(r){case -1:case 0:q=h;break;case 1:q=h+"_FILLED";break;default:_.Z0(r)}return q}})))},"Bf");
_.kq_.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Iw=function(v){return function(e,d){var E=v||d.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(e,d,{get:function(){var T;return this.$?this.$[E]:(T=_.jw(this))==null?void 0:T.querySelector("#"+E)},
enumerable:!0,configurable:!0})}};_.bC=function(v){v=v===void 0?!1:v;_.kh.call(this);this.pubSub_=new _.rk(v);_.Yh(this,this.pubSub_)};
_.vM(_.bC,_.kh);_.bC.prototype.subscribe=function(v,e,d){return this.isDisposed()?0:this.pubSub_.subscribe(v,e,d)};
_.bC.prototype.unsubscribe=function(v,e,d){return this.isDisposed()?!1:this.pubSub_.unsubscribe(v,e,d)};
_.bC.prototype.unsubscribeByKey=function(v){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(v)};
_.bC.prototype.publish=function(v,e){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var bV1=function(){_.w8("ypcRedeemFlowStarted")},YY=function(v){_.w8("ypcRedeemFlowFailed",void 0,void 0,void 0,v)},Ycw=function(v,e,d){e&&d&&(v.videos.forEach(function(E){E.videoId===e&&(E.itemId=d)}),v.recommendedVideos.forEach(function(E){E.videoId===e&&(E.itemId=d)}))};var mms;var yAw;/*

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
*/
_.xv({_template:function(){if(yAw!==void 0)return yAw;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;mms===void 0&&(mms=document.createElement("template"));var E=mms;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return yAw=v},
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(v,e){var d=this._resolveSrc(v);d!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",v===""||e?this._setLoading(!1):(this._resolvedSrc=d,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 v=this.$.sizedImgDiv.style,e=this.$.placeholder.style;v.backgroundSize=e.backgroundSize=this.sizing;v.backgroundPosition=e.backgroundPosition=this.sizing?this.position:"";v.backgroundRepeat=e.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(v){v=_.aO(v,this.$.baseURIAnchor.href);v.length>=2&&v[0]==="/"&&v[1]!=="/"&&(v=(location.origin||location.protocol+"//"+location.host)+v);return v}});var qcs;var rAQ;_.xv({_template:function(){if(rAQ!==void 0)return rAQ;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;qcs===void 0&&(qcs=document.createElement("template"));var E=qcs;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return rAQ=v},
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(v){return v?"false":"true"},
_headingChanged:function(v){var e=this.getAttribute("heading"),d=this.getAttribute("aria-label");typeof d==="string"&&d!==e||this.setAttribute("aria-label",v)},
_computeHeadingClass:function(v){return v?" over-image":""},
_computeAnimated:function(v){return v}});var hSw=new _.gG("addRendererToItemSectionAction");var Kpi;var mp=function(){return _.P.apply(this,arguments)||this};
_.V(mp,_.P);mp.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],mp.prototype,"rendererBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],mp.prototype,"dismissibleItemBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],mp.prototype,"rendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],mp.prototype,"data",void 0);_.c([_.z({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],mp);
_.A(mp,"ytd-comment-history-entry-renderer",function(){if(Kpi!==void 0)return Kpi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Kpi=v},{mode:1});var $mw;_.RZ("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.RZ("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var yH=function(){return _.P.apply(this,arguments)||this};
_.V(yH,_.P);_.W=yH.prototype;_.W.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.onKeyUp=function(v){if(v.keyCode===13)this.onTap()};
_.W.onTap=function(){this.data.recordClickEndpoint&&_.dk().resolve(_.EI).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var v=this.data.navigationEndpoint;v&&_.L(v,_.f6)&&_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}})};
_.W.readChanged=function(){var v;_.Yv(this.hostElement,"unread",!((v=this.data)==null?0:v.read))};
_.W.dataChanged=function(){this.data&&_.Yv(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.W.computeThumbnailSize=function(){var v;return((v=this.data)==null?0:v.highPriorityNotification)?32:48};
_.W.getEndpointURL=function(v){return v&&!_.L(v,_.f6)?this.componentBehavior.computeHref_(v):null};
_.W.getEndpointData=function(v){return v&&!_.L(v,_.f6)?v:null};
yH.prototype.computeThumbnailSize=yH.prototype.computeThumbnailSize;yH.prototype.dataChanged=yH.prototype.dataChanged;yH.prototype.readChanged=yH.prototype.readChanged;yH.prototype.onKeyUp=yH.prototype.onKeyUp;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],yH.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],yH.prototype,"data",void 0);_.c([_.f({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.w("design:type",Number)],yH.prototype,"thumbnailSize",void 0);_.c([_.Kq("keyup"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],yH.prototype,"onKeyUp",null);
_.c([_.$v("data.read"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yH.prototype,"readChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yH.prototype,"dataChanged",null);_.c([_.$v("data.highPriorityNotification"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yH.prototype,"computeThumbnailSize",null);
_.c([_.z({is:"ytd-notification-renderer",disableElementRegistration:!0})],yH);
_.A(yH,"ytd-notification-renderer",function(){if($mw!==void 0)return $mw;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return $mw=v},{mode:1});var jrs;var qm=function(){return _.P.apply(this,arguments)||this};
_.V(qm,_.P);qm.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"}}}};
qm.prototype.computeActionButtonClass=function(v){return!v.actionButtons||v.actionButtons.length<=1?"single-button":v.description?"vertical-buttons":"horizontal-buttons"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],qm.prototype,"data",void 0);_.c([_.z({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],qm);
_.A(qm,"ytd-playlist-show-metadata-renderer",function(){if(jrs!==void 0)return jrs;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return jrs=v},{mode:1});var srs;_.RZ("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var rd=function(){return _.P.apply(this,arguments)||this};
_.V(rd,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],rd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],rd.prototype,"data",void 0);_.c([_.z({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],rd);
_.A(rd,"ytd-purchase-item-renderer",function(){if(srs!==void 0)return srs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return srs=v},{mode:1});var Ndf;var kts={};kts.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(v){if(v)return v.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(v){if(v==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.RZ("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var hA=function(){return _.P.apply(this,arguments)||this};
_.V(hA,_.P);hA.prototype.onYtNavigate=function(v){var e=this.openPopupBehavior.getNavigationEndpointPopupAction(v.detail.endpoint);e&&(v.stopPropagation(),this.openPopupBehavior.openPopup(e))};
hA.prototype.onYtNavigate=hA.prototype.onYtNavigate;_.c([_.M(kts.YtSimpleTextSectionBehavior),_.w("design:type",Object)],hA.prototype,"ytSimpleTextSectionBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],hA.prototype,"openPopupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],hA.prototype,"data",void 0);
_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hA.prototype,"onYtNavigate",null);_.c([_.z({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],hA);
_.A(hA,"ytd-simple-text-section-renderer",function(){if(Ndf!==void 0)return Ndf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Ndf=v},{mode:1});var Lpv;_.RZ("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var KV=function(){return _.P.apply(this,arguments)||this};
_.V(KV,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],KV.prototype,"data",void 0);_.c([_.z({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],KV);
_.A(KV,"ytd-unlimited-page-feature-info-renderer",function(){if(Lpv!==void 0)return Lpv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Lpv=v},{mode:1});var VSt;var oY_;var $Y=function(){return _.P.apply(this,arguments)||this};
_.V($Y,_.P);$Y.prototype.dataChanged=function(){if(this.data){var v=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);v&&(v=_.i2(v,screen.width),this.hostElement.style.backgroundImage="url("+v+")")}};
$Y.prototype.dataChanged=$Y.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$Y.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$Y.prototype,"dataChanged",null);_.c([_.z({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],$Y);
_.A($Y,"ytd-post-redemption-section-renderer",function(){if(oY_!==void 0)return oY_;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return oY_=v},{mode:1});var JAi;var jS=function(){return _.P.apply(this,arguments)||this};
_.V(jS,_.P);jS.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],jS.prototype,"data",void 0);_.c([_.z({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],jS);
_.A(jS,"ytd-ypc-post-redemption-renderer",function(){if(JAi!==void 0)return JAi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return JAi=v},{mode:1});_.RZ("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var sc=function(){var v=_.P.apply(this,arguments)||this;v.MIN_CODE_LENGTH=12;v.MAX_CODE_LENGTH=24;return v};
_.V(sc,_.P);_.W=sc.prototype;_.W.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.W.created=function(){this.riskService=new _.Pv$;this.loadPaymentThenable=_.Ba7(_.Bb("YPC_MB_URL"))};
_.W.ready=function(){var v=this;this.code.addEventListener("keypress",function(e){v.onCodeInputKeypress(e)})};
_.W.dataChanged=function(){var v=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(e){e=_.a(e);for(var d=e.next();!d.done;d=e.next())d=d.value,d.type==="attributes"&&d.attributeName==="dark"&&v.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.W.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var v=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+v+")")}};
_.W.computeRedeemButton=function(v){(v=this.get("redeemButton.buttonRenderer",v))&&(v=Object.assign({},v,{serviceEndpoint:void 0}));return v};
_.W.onRedeemButtonTap=function(v){v.stopPropagation();bV1();this.redeemCode()};
_.W.redeemCode=function(){var v=this;this.isLoading=!0;var e=this.riskService.init();_.$N([e,this.loadPaymentThenable]).then(function(){var d=v.data.redeemButton.buttonRenderer.serviceEndpoint,E=_.xLt(),T=payments.business.integration.ClientTokenFactory.createClientToken(_.L(d,_.c5c).countryCode,E);E={c:v.code.value.trim(),rd:window.btoa(E),ctk:T};d&&_.dk().resolve(_.EI).resolveCommand(d,{form:Object.assign({},E,{element:v.hostElement})})},function(){v.showGenericError();
YY("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.lg(Error("vo"))})};
_.W.onYtServiceRequestCompleted=function(v){v.stopPropagation();this.isLoading=!1;var e,d;this.errorMessage=(e=v.detail)==null?void 0:(d=e.data)==null?void 0:d.errorMessage;var E,T;this.postRedemptionRenderer=(E=v.detail)==null?void 0:(T=E.data)==null?void 0:T.renderer;var S,O;if(v=(S=v.detail)==null?void 0:(O=S.data)==null?void 0:O.redirectEndpoint)this.isLoading=!0,_.Iq(this.hostElement,"yt-navigate",{endpoint:v});this.errorMessage?YY("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
v)&&_.w8("ypcRedeemFlowSucceeded")};
_.W.onYtServiceRequestError=function(v){v.stopPropagation();this.isLoading=!1;if(v=this.get("detail.error.message",v))this.errorMessage=_.pQ(v);YY("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.W.onInvokeInstrumentManagerActionCompleted=function(v){v.stopPropagation();this.redeemCode()};
_.W.onInvokeInstrumentManagerActionError=function(v){v.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",v)){case "instrumentManagerLoadError":this.showGenericError();YY("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();YY("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.w8("ypcRedeemFlowCancelled")}};
_.W.onInput=function(){var v=this;_.gi(this,"onInput",function(){var e=v.code.value.trim();v.redeemButtonDisabled=e.length<v.MIN_CODE_LENGTH||e.length>v.MAX_CODE_LENGTH},200)};
_.W.onCodeInputKeypress=function(v){v.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(bV1(),this.redeemCode())};
_.W.computeImageUrl=function(v){return v?_.i2(v.thumbnails,600):null};
_.W.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
sc.prototype.onInvokeInstrumentManagerActionError=sc.prototype.onInvokeInstrumentManagerActionError;sc.prototype.onInvokeInstrumentManagerActionCompleted=sc.prototype.onInvokeInstrumentManagerActionCompleted;sc.prototype.onYtServiceRequestError=sc.prototype.onYtServiceRequestError;sc.prototype.onYtServiceRequestCompleted=sc.prototype.onYtServiceRequestCompleted;sc.prototype.dataChanged=sc.prototype.dataChanged;
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sc.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],sc.prototype,"isLoading",void 0);_.c([_.f(),_.w("design:type",Boolean)],sc.prototype,"redeemButtonDisabled",void 0);
_.c([_.f(),_.w("design:type",Object)],sc.prototype,"errorMessage",void 0);_.c([_.f(),_.w("design:type",Object)],sc.prototype,"postRedemptionRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],sc.prototype,"observer",void 0);_.c([_.sg("#code"),_.w("design:type",HTMLInputElement)],sc.prototype,"code",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sc.prototype,"dataChanged",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],sc.prototype,"onYtServiceRequestCompleted",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],sc.prototype,"onYtServiceRequestError",null);
_.c([_.Kq("yt-invoke-instrument-manager-action-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],sc.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.c([_.Kq("yt-invoke-instrument-manager-action-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],sc.prototype,"onInvokeInstrumentManagerActionError",null);_.c([_.z({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],sc);
_.A(sc,"ytd-redeem-code-renderer",function(){if(VSt!==void 0)return VSt;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return VSt=v},{mode:1});var Gt1;_.RZ("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Nm=function(){var v=_.P.apply(this,arguments)||this;v.businessEmailDisplayState="HIDE_SECTION";return v};
_.V(Nm,_.P);_.W=Nm.prototype;_.W.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}}}}}};
_.W.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"};
_.W.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.W.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Ff(_.Z_E),this.businessEmailDisplayState="CAPTCHA"))};
_.W.onYtServiceRequestCompleted=function(v){var e;if((e=v.detail.data)==null?0:e.businessEmail)this.businessEmail=v.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var d;if((d=v.detail.data)==null?0:d.errorMessage)this.businessEmailErrorMessage=v.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.W.computeEmailHref=function(v){return"mailto:"+v};
_.W.computeSafeUrl=function(v){if(v)return _.xm(v)};
_.W.onBusinessEmailCaptchaSubmit=function(){var v;(v=this.data)!=null&&v.onBusinessEmailRevealClickCommand&&(v=this.JSC$21667_captchaTextarea.value)&&(v={recaptcha_response_token:v,channel_id:this.data.channelId},_.dk().resolve(_.EI).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},v,{element:this.hostElement})}))};
_.W.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.vP.Object.defineProperties(Nm.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 v,e;return!((v=this.data)==null||!v.primaryLinks)&&!((e=this.data)==null?0:e.links)&&this.data.primaryLinks.every(function(d){return d.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var v,e;return!((v=this.data)==null||!v.primaryLinks)&&!((e=this.data)==null?0:e.links)&&!this.shouldShowNewLinks}}});
Nm.prototype.onYtServiceRequestCompleted=Nm.prototype.onYtServiceRequestCompleted;Nm.prototype.dataChanged=Nm.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Nm.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.sg("#g-recaptcha-response"),_.w("design:type",HTMLTextAreaElement)],Nm.prototype,"JSC$21667_captchaTextarea",void 0);_.c([_.f(),_.w("design:type",Object)],Nm.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],Nm.prototype,"businessEmailDisplayState",void 0);_.c([_.f(),_.w("design:type",String)],Nm.prototype,"businessEmail",void 0);_.c([_.f(),_.w("design:type",String)],Nm.prototype,"businessEmailErrorMessage",void 0);
_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Nm.prototype,"hideDetailsSection",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Nm.prototype,"dataChanged",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Nm.prototype,"shouldShowNewLinks",null);_.c([_.t("data","shouldShowLinks"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Nm.prototype,"shouldShowLegacyLinks",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Nm.prototype,"onYtServiceRequestCompleted",null);_.c([_.z({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Nm);
_.A(Nm,"ytd-channel-about-metadata-renderer",function(){if(Gt1!==void 0)return Gt1;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Gt1=v},{mode:1});var MS_;_.RZ("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var kY=function(){return _.P.apply(this,arguments)||this};
_.V(kY,_.P);kY.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kY.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Number)],kY.prototype,"lockupContainerType",void 0);_.c([_.f(),_.w("design:type",String)],kY.prototype,"thumbnailFixedWidth",void 0);
_.c([_.z({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],kY);
_.A(kY,"ytd-channel-featured-content-renderer",function(){if(MS_!==void 0)return MS_;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return MS_=v},{mode:1});var tSs;_.RZ("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var LV=function(){var v=_.P.apply(this,arguments)||this;v.roundContainer=!0;v.amsterdamEnabled=_.N("enable_desktop_amsterdam_info_panels");return v};
_.V(LV,_.P);_.W=LV.prototype;_.W.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.W.dataChanged=function(){this.imageWidth=this.imageHeight=24;var v=this.data;v.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!v.style&&v.image&&v.image.thumbnails.length&&(v=v.image.thumbnails[0],this.imageWidth=v.width||0,this.imageHeight=v.height||0)};
_.W.computeSource=function(v){return v.secondarySource?_.vv(v.secondarySource):_.vv(v.source)};
_.W.computeClarifyStyle=function(v){return v?v.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.W.isLargeStyle=function(v){return v==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.W.computeBackgroundStyle=function(v){return v?v.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.W.computeHasActionButton=function(v){return!!v.actionButton};
_.W.computeHasBottomSection=function(v){return!!v.ctaHasBottomSection};
_.W.computeIsSourceMissing=function(v){return v.ctaHasBottomSection===!1?!0:v&&this.computeSource(v)?!1:!0};
_.W.computeSecondaryEndpoint=function(v){return v.secondaryEndpoint||v.endpoint};
LV.prototype.dataChanged=LV.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],LV.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Number)],LV.prototype,"imageWidth",void 0);_.c([_.f(),_.w("design:type",Number)],LV.prototype,"imageHeight",void 0);
_.c([_.f({computed:"computeSecondaryEndpoint(data)"}),_.w("design:type",Object)],LV.prototype,"secondaryEndpoint",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.w("design:type",Boolean)],LV.prototype,"hasActionButton",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.w("design:type",Boolean)],LV.prototype,"hasBottomSection",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.w("design:type",Boolean)],LV.prototype,"missingSource",void 0);_.c([_.f({computed:"computeIcon_(data.icon)"}),_.w("design:type",String)],LV.prototype,"icon",void 0);_.c([_.f({computed:"computeIcon_(data.secondaryIcon)"}),_.w("design:type",String)],LV.prototype,"secondaryIcon",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.w("design:type",String)],LV.prototype,"clarifyStyle",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.w("design:type",String)],LV.prototype,"backgroundStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],LV.prototype,"roundContainer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],LV.prototype,"amsterdamEnabled",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LV.prototype,"dataChanged",null);
_.c([_.z({is:"ytd-clarification-renderer",disableElementRegistration:!0})],LV);
_.A(LV,"ytd-clarification-renderer",function(){if(tSs!==void 0)return tSs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return tSs=v},{mode:1});var fQt;var RSC;var VH=function(){var v=_.P.apply(this,arguments)||this;v.amsterdamEnabled=_.N("enable_desktop_amsterdam_info_panels");return v};
_.V(VH,_.P);_.W=VH.prototype;_.W.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.W.computeIcon=function(v){return v?"yt-icons:"+v.toLowerCase():null};
_.W.computeUseContacts=function(v){return!!v.contacts&&v.contacts.length>0};
_.W.computePhoneContact=function(v){var e,d;return(e=v.contacts)==null?void 0:(d=e.find(function(E){var T;return(E==null?void 0:(T=E.icon)==null?void 0:T.iconType)==="PHONE"}))==null?void 0:d.actionText};
_.W.computeSmsContact=function(v){var e,d;return(e=v.contacts)==null?void 0:(d=e.find(function(E){var T;return(E==null?void 0:(T=E.icon)==null?void 0:T.iconType)==="SMS"}))==null?void 0:d.actionText};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],VH.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],VH.prototype,"amsterdamEnabled",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.w("design:type",Boolean)],VH.prototype,"useContacts",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.w("design:type",String)],VH.prototype,"phoneContact",void 0);_.c([_.z({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],VH);
_.A(VH,"ytd-single-action-emergency-support-renderer",function(){if(RSC!==void 0)return RSC;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return RSC=v},{mode:1});_.RZ("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var or=function(){var v=_.P.apply(this,arguments)||this;v.roundedContainer=!0;v.amsterdamEnabled=_.N("enable_desktop_amsterdam_info_panels");return v};
_.V(or,_.P);or.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],or.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],or.prototype,"roundedContainer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],or.prototype,"amsterdamEnabled",void 0);
_.c([_.z({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],or);
_.A(or,"ytd-emergency-onebox-renderer",function(){if(fQt!==void 0)return fQt;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return fQt=v},{mode:1});var Pc9;_.RZ("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var JA=function(){return _.P.apply(this,arguments)||this};
_.V(JA,_.P);JA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JA.prototype,"data",void 0);_.c([_.z({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],JA);
_.A(JA,"ytd-exploratory-results-renderer",function(){if(Pc9!==void 0)return Pc9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Pc9=v},{mode:1});var xms;_.RZ("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Gt=function(){var v=_.P.apply(this,arguments)||this;v.messageData=null;return v};
_.V(Gt,_.P);_.W=Gt.prototype;_.W.onServiceRequestCompleted=function(v,e){v=e.actions||[];e=0;for(var d=v.length;e<d;e++){var E=v[e],T=void 0,S=void 0;if((T=_.L(E,_.j6))==null?0:(S=T.item)==null?0:S.messageRenderer)this.messageData=_.L(E,_.j6).item.messageRenderer}};
_.W.dataChanged=function(){var v=this.data;this.hostElement.hidden=!1;_.Yv(this.hostElement,"is-channel",v&&!v.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.W.computeThumbnailWidth=function(v){return v?126:56};
_.W.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.W.onSubmitTap=function(){var v=this.data,e=this.selectedResponseIndex;v!==void 0&&e!==void 0&&(v=v.responses[e],v.responseData&&_.dk().resolve(_.EI).resolveCommand(v.responseData,{form:{element:this.hostElement}}))};
_.W.onDismissTap=function(){this.hostElement.hidden=!0;var v=this.data;v!==void 0&&v.dismissalEndpoint&&_.dk().resolve(_.EI).resolveCommand(v.dismissalEndpoint,{form:{element:this.hostElement}})};
_.W.updateSelectedResponseIndexFromBinding=function(v){this.selectedResponseIndex=v.detail.value};
Gt.prototype.onSelectedResponseIndexChange=Gt.prototype.onSelectedResponseIndexChange;Gt.prototype.dataChanged=Gt.prototype.dataChanged;Gt.prototype.onServiceRequestCompleted=Gt.prototype.onServiceRequestCompleted;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Gt.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Gt.prototype,"messageData",void 0);
_.c([_.f(),_.w("design:type",Number)],Gt.prototype,"selectedResponseIndex",void 0);_.c([_.sg("#submit-button"),_.w("design:type",HTMLButtonElement)],Gt.prototype,"submitButton",void 0);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],Gt.prototype,"onServiceRequestCompleted",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Gt.prototype,"dataChanged",null);
_.c([_.$v("selectedResponseIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Gt.prototype,"onSelectedResponseIndexChange",null);_.c([_.z({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Gt);
_.A(Gt,"ytd-feedback-elicitation-single-question-renderer",function(){if(xms!==void 0)return xms;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return xms=v},{mode:1});var Bd9;var Mm=function(){return _.P.apply(this,arguments)||this};
_.V(Mm,_.P);Mm.prototype.computeThumbnailWidth=function(v){return v?602:428};
Mm.prototype.updateWideFromBinding=function(v){this.wide=v.detail.value};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Mm.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],Mm.prototype,"wide",void 0);_.c([_.z({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Mm);
_.A(Mm,"ytd-newspaper-hero-video-renderer",function(){if(Bd9!==void 0)return Bd9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Bd9=v},{mode:1});var Cct;var tA=function(){return _.P.apply(this,arguments)||this};
_.V(tA,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tA.prototype,"rendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],tA.prototype,"data",void 0);_.c([_.z({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],tA);
_.A(tA,"ytd-newspaper-mini-video-renderer",function(){if(Cct!==void 0)return Cct;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Cct=v},{mode:1});var Xqs;_.RZ("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var fV=function(){return _.P.apply(this,arguments)||this};
_.V(fV,_.P);fV.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fV.prototype,"data",void 0);_.c([_.z({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],fV);
_.A(fV,"ytd-newspaper-renderer",function(){if(Xqs!==void 0)return Xqs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Xqs=v},{mode:1});var zSs;_.RZ("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Rr=function(){var v=_.P.apply(this,arguments)||this;v.isSegment=!1;v.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};v.nextContinuation={continuationType:"playlistVideoListContinuation"};return v};
_.V(Rr,_.P);_.W=Rr.prototype;_.W.attached=function(){_.dk();var v;(v=_.dk().resolve(_.eG(_.aR)))!=null&&(v.playlistVideoListElement=this.hostElement)};
_.W.detached=function(){var v;(v=_.dk().resolve(_.eG(_.aR)))!=null&&(v.playlistVideoListElement=void 0);v=_.dk().resolve(_.eG(_.OZ));_.N("web_enable_voting_animation")&&v&&(v.parentElem=void 0,v.videos=[],v.continuationsPresent=!1,v.showRefreshPill=!1)};
_.W.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"}}}}}};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.W.dataChanged=function(){var v=_.dk().resolve(_.eG(_.OZ));if(_.N("web_enable_voting_animation")&&this.data&&v){var e=_.IB(this.hostElement).querySelector("#contents");e&&(v.parentElem=e);v.addVideos(this.data.contents)}_.k66(this.ytReorderableBehavior)};
_.W.onRendererstamperFinished=function(){this.canReorder&&_.L9M(this.ytReorderableBehavior,_.IB(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.W.onPlaylistReloading=function(){this.isReloading=!0};
_.W.onUpdateSetVideoId=function(v){if(v.detail&&this.data&&this.data.contents){var e=v.detail;v=this.data.contents.findIndex(function(T){var S;return((S=T.playlistVideoRenderer)==null?void 0:S.videoId)===e.videoId});
if(!(v<0)&&e.setVideoId&&(this.set("data.contents."+v+".playlistVideoRenderer.setVideoId",e.setVideoId),_.N("web_enable_voting_animation"))){var d;if(v=_.L((d=this.data.contents[v].playlistVideoRenderer)==null?void 0:d.engagementBar,_.v2U)){var E;(E=v.actions)==null||E.forEach(function(T){if(T=_.L(T,_.eQj))T.itemId=e.setVideoId})}(d=_.dk().resolve(_.eG(_.OZ)))&&Ycw(d,e.videoId,e.setVideoId)}}};
_.W.computeContentsClass=function(v){return v?"reloading":""};
_.W.computeIsSortable=function(v,e){return v&&e>0&&!this.isSegment&&!_.N("shorts_in_playlists_web")};
_.W.computeIsEditable=function(v){return v};
_.W.computeCanReorder=function(v){return v};
_.W.handlePlaylistRemoveVideosAction=function(v){if(this.get("playlistRemoveVideosAction.setVideoIds",v)&&this.data&&this.data.contents){v=_.L(v,_.ctc).setVideoIds;for(var e=this.data.contents.length-1;e>=0;){var d=this.data.contents[e].playlistVideoRenderer;d&&d.setVideoId&&v.includes(d.setVideoId)&&this.splice("data.contents",e,1);e--}_.b4(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.W.updateIndices=function(){if(this.data&&this.data.contents)for(var v=0;v<this.data.contents.length;v++)this.set("data.contents."+v+".playlistVideoRenderer.index",_.pQ(String(v+1)))};
_.W.handleDrop=function(v){v=v.currDragItem;var e=_.XM(v.parentNode.childNodes,v),d=this.data.contents.splice(Number(_.vv(v.data.index))-1,1)[0];this.data.contents.splice(e,0,d);e=e?this.get("contents."+(e-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();v=this.buildReorderServiceEndpoint(v.data.setVideoId,e);this.ytComponentBehavior.resolveCommand(v)};
_.W.buildReorderServiceEndpoint=function(v,e){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",v),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",e),this.data.onReorderEndpoint):null};
_.W.handleUpdatePlaylistAction=function(v){var e;(v=_.L((e=_.L(v,_.wJM))==null?void 0:e.updatedRenderer,_.yyM))&&this.canReorder!==v.canReorder&&this.set("data.canReorder",v.canReorder);v&&v.contents&&(this.set("data.contents",v.contents),this.isReloading=!1);v&&v.continuations&&this.set("data.continuations",v.continuations)};
_.W.handleAddRendererToItemSectionAction=function(v){var e,d=(e=_.L(v,hSw))==null?void 0:e.renderer,E;d&&((E=_.L(v,hSw))==null?void 0:E.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,d),v=_.dk().resolve(_.eG(_.OZ)),_.N("web_enable_voting_animation")&&v&&(d&&(e=_.p9L(d))&&v.recommendedVideos.push({itemId:e,videoId:_.dLs(d),voteCount:_.E2W(d),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.W.isVotingEnabledOnPlaylist=function(v){if(!v)return!1;v=_.a(v);for(v=v.next();!v.done;v=v.next()){var e=void 0;return!!_.L((e=v.value.playlistVideoRenderer)==null?void 0:e.engagementBar,_.v2U)}return!1};
_.W.onAppendContinuationItemsActionFinished=function(){var v;this.isVotingEnabledOnPlaylist((v=this.data)==null?void 0:v.contents)&&(this.updateIndices(),v=_.dk().resolve(_.eG(_.OZ)),_.N("web_enable_voting_animation")&&v&&this.data&&v.addVideos(this.data.contents))};
_.W.updateVideoData=function(v){if(v.detail&&this.data&&this.data.contents){var e=v.detail;v=e.toIdx;var d=e.itemId,E=e.newVoteCount,T=e.voteStatus;e=e.hideItem;var S,O,b=(S=this.data)==null?void 0:(O=S.contents)==null?void 0:O.findIndex(function(h){return _.p9L(h)===d});
if(!(b<0)){S=this.data.contents[b];var Y;if((Y=S.playlistVideoRenderer)==null?0:Y.voteCount)S.playlistVideoRenderer.voteCount=E;var q;if(Y=_.L((q=S.playlistVideoRenderer)==null?void 0:q.engagementBar,_.v2U)){var r;(r=Y.actions)==null||r.forEach(function(h){(h=_.L(h,_.eQj))&&h.initialState&&(h.initialState.votes=E,h.initialState.status=T)})}this.data.contents.splice(b,1);
e||this.data.contents.splice(v,0,S);this.updateIndices()}}};
Rr.prototype.updateVideoData=Rr.prototype.updateVideoData;Rr.prototype.onAppendContinuationItemsActionFinished=Rr.prototype.onAppendContinuationItemsActionFinished;Rr.prototype.onUpdateSetVideoId=Rr.prototype.onUpdateSetVideoId;Rr.prototype.onPlaylistReloading=Rr.prototype.onPlaylistReloading;Rr.prototype.onRendererstamperFinished=Rr.prototype.onRendererstamperFinished;Rr.prototype.dataChanged=Rr.prototype.dataChanged;
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Rr.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.QL.YtNextContinuationBehavior),_.w("design:type",Object)],Rr.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.M(_.Ve6),_.w("design:type",Object)],Rr.prototype,"ytReorderableBehavior",void 0);_.c([_.M(_.FL),_.w("design:type",Object)],Rr.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Rr.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Rr.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],Rr.prototype,"isReloading",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Rr.prototype,"isSegment",void 0);_.c([_.f({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.w("design:type",Boolean)],Rr.prototype,"isSortable",void 0);_.c([_.f({computed:"computeIsEditable(data.isEditable)"}),_.w("design:type",Boolean)],Rr.prototype,"isEditable",void 0);_.c([_.f({computed:"computeCanReorder(data.canReorder)"}),_.w("design:type",Boolean)],Rr.prototype,"canReorder",void 0);
_.c([_.f({value:101}),_.w("design:type",Number)],Rr.prototype,"scrollMargin",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Rr.prototype,"dataChanged",null);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Rr.prototype,"onRendererstamperFinished",null);
_.c([_.Kq("yt-playlist-reloading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Rr.prototype,"onPlaylistReloading",null);_.c([_.Kq("yt-update-set-video-id"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Rr.prototype,"onUpdateSetVideoId",null);
_.c([_.Kq("yt-append-continuation-items-action-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Rr.prototype,"onAppendContinuationItemsActionFinished",null);_.c([_.Kq("yt-update-video-data-voting-animation"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Rr.prototype,"updateVideoData",null);_.c([_.z({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Rr);
_.A(Rr,"ytd-playlist-video-list-renderer",function(){if(zSs!==void 0)return zSs;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return zSs=v},{mode:_.bk("kevlar_poly_si_batch_j047")?1:2});var lQt;var Pq=function(){return _.P.apply(this,arguments)||this};
_.V(Pq,_.P);Pq.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"}}}}};
Pq.prototype.onTextWrapperTap=function(v){var e=this.data&&this.data.navigationEndpoint;e&&!_.UG(_.vg(v),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Iq(this.hostElement,"yt-navigate",{endpoint:e})};
Pq.prototype.dataChanged=function(){var v=this.get("data.offerButton.buttonRenderer.serviceEndpoint");v&&v.commandMetadata&&_.L(v.commandMetadata,_.VM)&&_.L(v.commandMetadata,_.VM).fireAutomatically&&_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}})};
Pq.prototype.dataChanged=Pq.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.uV),_.w("design:type",Object)],Pq.prototype,"ytdLockupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Pq.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],Pq.prototype,"useBiggerThumbs",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],Pq.prototype,"biggerThumbsStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Pq.prototype,"leftAligned",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Pq.prototype,"dataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Pq);
_.A(Pq,"ytd-movie-renderer",function(){if(lQt!==void 0)return lQt;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return lQt=v},{mode:1});var HVS;var xY=function(){var v=_.P.apply(this,arguments)||this;v.rounded=!0;v.pageAttachedTo=void 0;v.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return v};
_.V(xY,_.P);xY.prototype.attached=function(){this.pageAttachedTo=_.dk().resolve(_.v5).getCurrentPage();_.Iq(this.hostElement,"yt-player-attached",this.player)};
xY.prototype.detached=function(){var v;if((v=this.pageAttachedTo)==null?0:v.hostElement)_.Iq(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
xY.prototype.dataChanged=function(){var v;if((v=this.data)==null?0:v.videoId)v={video_id:this.data.videoId,autoplay:!0},!_.N("miniplayer_stop_channel_video_autoplay_killswitch")&&_.dk().resolve(_.P0).isMiniplayerActive()&&(v.pause_at_start=!0,v.autoplay=!1),this.player.loadVideoWithPlayerVars(v)};
xY.prototype.handleSignalActionPausePlayer=function(){_.EK().pause()};
xY.prototype.dataChanged=xY.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],xY.prototype,"data",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],xY.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],xY.prototype,"rounded",void 0);_.c([_.sg("#player"),_.w("design:type",Object)],xY.prototype,"player",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xY.prototype,"dataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],xY);
_.A(xY,"ytd-channel-video-player-renderer",function(){if(HVS!==void 0)return HVS;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return HVS=v},{mode:1});var AAf;var ZVi;var cAs;var Bq=function(){var v=_.P.apply(this,arguments)||this;v.playing=!1;v.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.gH(v);v.active=!1;return v};
_.V(Bq,_.P);_.W=Bq.prototype;_.W.detached=function(){this.stop()};
_.W.play=function(){var v=this,e,d,E,T,S;return _.I(function(O){if(O.nextAddress==1)return v.active=!0,e=v.get("data.inlinePlaybackEndpoint.watchEndpoint"),d=e.videoId||v.data.videoId,E=e.startTimeSeconds||0,T=e.playerParams||null,_.N("kevlar_player_update_killswitch")?O.yield(v.playerEl.update({args:{video_id:d,startSeconds:E,player_params:T}}),2):(v.playerEl.loadVideoWithPlayerVars({video_id:d,startSeconds:E,player_params:T,autoplay:!0}),O.jumpTo(2));if(O.nextAddress!=4)return O.yield(v.playerEl.getPlayerPromise(),
4);S=O.yieldResult;S.unloadModule("annotations_module");S.addEventListener("onStateChange",function(b){v.onPlayerStateChange(b)});
_.s9(O)})};
_.W.onPlayerStateChange=function(v){if(this.active)switch(this.playing=v===1,v){case 1:_.Iq(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Iq(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.W.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.W.resize=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return d.yield(v.playerEl.getPlayerPromise(),2);e=d.yieldResult;e.setSize(NaN,NaN);_.s9(d)})};
_.c([_.f(),_.w("design:type",Object)],Bq.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Bq.prototype,"playing",void 0);_.c([_.f(),_.w("design:type",Object)],Bq.prototype,"playerId",void 0);_.c([_.sg("#player"),_.w("design:type",Object)],Bq.prototype,"playerEl",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Bq);
_.A(Bq,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(cAs!==void 0)return cAs;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return cAs=v},{mode:1});var wqS;var Fpt;var CV=function(){var v=_.P.apply(this,arguments)||this;v.width=0;return v};
_.V(CV,_.P);_.W=CV.prototype;_.W.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.hG(this,this.onEnded));this.mp4El.addEventListener("error",_.hG(this,this.onError))};
_.W.detached=function(){this.videoEl.removeEventListener("ended",_.hG(this,this.onEnded));this.mp4El.removeEventListener("error",_.hG(this,this.onError))};
_.W.play=function(){var v=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var e=this.videoEl.play();e?e.then(function(){v.handleVideoStartPlaying()}).catch(function(){_.Iq(v.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Iq(this.hostElement,"yt-video-thumbnail-not-playing")};
_.W.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.W.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.W.dataChanged=function(){var v;if((v=this.data)==null?0:v.thumbnailPlaceholder)v=_.i2(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+v+")";this.stop();this.autoplay&&this.play()};
_.W.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.W.onEnded=function(){this.stop();_.Iq(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.W.onError=function(){_.Iq(this.hostElement,"yt-video-thumbnail-error")};
_.W.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.W.getVideoThumbnail=function(v){if(v&&v.length)return v[0]};
CV.prototype.dataChanged=CV.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],CV.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],CV.prototype,"animatePlaceholderOnEntrance",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],CV.prototype,"autoplay",void 0);_.c([_.f({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.w("design:type",Object)],CV.prototype,"videoThumbnail",void 0);
_.c([_.f(),_.w("design:type",Boolean)],CV.prototype,"loop",void 0);_.c([_.f(),_.w("design:type",Boolean)],CV.prototype,"isVideoPlaying",void 0);_.c([_.f(),_.w("design:type",Object)],CV.prototype,"width",void 0);_.c([_.sg("#mp4"),_.w("design:type",HTMLElement)],CV.prototype,"mp4El",void 0);_.c([_.sg("#placeholder"),_.w("design:type",HTMLElement)],CV.prototype,"placeholderEl",void 0);_.c([_.sg("#video"),_.w("design:type",HTMLVideoElement)],CV.prototype,"videoEl",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CV.prototype,"dataChanged",null);_.c([_.lh({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],CV);
_.A(CV,"yt-video-as-thumbnail-details",function(){if(Fpt===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;wqS===void 0&&(wqS=document.createElement("template"));var E=wqS;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Fpt=v}v=Fpt;return v},{mode:2});var XG=function(){var v=_.P.apply(this,arguments)||this;v.disableGridStateAware=!1;v.animationEnabled=_.N("enable_web_ketchup_hero_animation");v.transitioningOut=!1;v.narrow=!1;v.narrower=!1;v.isCarouselInFeed=!1;v.videoTimeoutJobId=0;v.panelTimeoutJobId=0;v.panelTimeoutJobStartMs=0;v.actionMap={"yt-window-resized":"onWindowResized"};return v};
_.V(XG,_.P);_.W=XG.prototype;_.W.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.W.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var v;this.player&&((v=this.data)==null?0:v.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.W.attached=function(){this.onWindowResized()};
_.W.detached=function(){this.clearTimeouts()};
_.W.onWindowResized=function(){this.updateSize()};
_.W.computePanelLayout=function(v){return v&&v.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.W.playVideo=function(){var v;this.video&&((v=this.data)==null?0:v.videoThumbnail)&&this.video.play();var e;this.player&&((e=this.data)==null?0:e.inlinePlaybackRenderer)&&this.player.play()};
_.W.stopVideo=function(){var v;this.video&&((v=this.data)==null?0:v.videoThumbnail)&&this.video.stop();var e;this.player&&((e=this.data)==null?0:e.inlinePlaybackRenderer)&&this.player.stop()};
_.W.transitionOut=function(){var v=this;this.transitioningOut=!0;return new Promise(function(e){var d=function(){_.IB(v.hostElement).querySelector("#action-button").removeEventListener("animationend",d);_.RM.cancelJob(E);e();v.transitioningOut=!1};
var E=_.LI(_.RM,d,1E3);_.IB(v.hostElement).querySelector("#action-button").addEventListener("animationend",d);v.player&&(v.player.playing=!1)})};
_.W.computeMetadataOrder=function(v){return v&&v.metadataOrder&&v.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?v.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.W.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.W.computeAvatarSize=function(v){return v&&v.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.W.onContentClick=function(v){if(!_.UG(_.vg(v),this.hostElement,["A".toString(),"BUTTON".toString()])){var e;if((e=this.data)==null?0:e.navigationEndpoint){var d;this.componentBehavior.resolveCommand((d=this.data)==null?void 0:d.navigationEndpoint)}}};
_.W.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.W.setBackgroundImage=function(v){if(v=this.getBackgroundImageUrl(v))_.IB(this.hostElement).querySelector("#hero").style.backgroundImage="url("+v+")"};
_.W.setScrimLayer=function(v){var e=this.getScrimLayerColorStops(v);v=((v==null?void 0:v.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(v=180);_.Bb("HTML_DIR")==="rtl"&&(v=-v);e&&(_.IB(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+v+"deg, "+e+")")};
_.W.isNarrower=function(){return this.hostElement.clientWidth<XG.NARROW_VERSION_SIZE};
_.W.getScrimLayerColorStops=function(){var v,e=(v=this.data)==null?void 0:v.scrimColorValues;if(!e)return null;if(e.length===1)return v=_.w1(e[0]),v+" 0%, "+v+" 100%";if(e.length===3){var d=[0,72,98];return e.map(function(E,T){return _.w1(E)+" "+d[T]+"%"}).join(",")}return null};
_.W.getBackgroundImageUrl=function(v){return v&&v.largeFormFactorBackgroundThumbnail?_.i2((v.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||v.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.W.onPlaying=function(){this.startVideoTimeout()};
_.W.onEnded=function(){this.rotate()};
_.W.startPanelTimeout=function(){var v=this;if(!this.panelTimeoutJobId){var e=this.get("data.minPanelDisplayDurationMs");e&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.LI(_.RM,function(){v.rotate()},e))}};
_.W.startVideoTimeout=function(){var v=this;if(!this.videoTimeoutJobId){_.RM.cancelJob(this.panelTimeoutJobId);var e=Date.now()-this.panelTimeoutJobStartMs;e=Math.max(0,this.get("data.minPanelDisplayDurationMs")-e);e=Math.max(this.get("data.minVideoPlayDurationMs")||0,e);this.videoTimeoutJobId=_.LI(_.RM,function(){v.rotate()},e)}};
_.W.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.RM.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.RM.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.W.rotate=function(){this.clearTimeouts();_.Iq(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.vP.Object.defineProperties(XG.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.IB(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.IB(this.hostElement).querySelector("#video")}}});
_.vP.Object.defineProperties(XG,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
XG.prototype.onEnded=XG.prototype.onEnded;XG.prototype.onPlaying=XG.prototype.onPlaying;XG.prototype.dataChanged=XG.prototype.dataChanged;_.c([_.M(_.ck),_.w("design:type",Object)],XG.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],XG.prototype,"componentBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],XG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.M(_.JmM),_.w("design:type",Object)],XG.prototype,"ytBooleanLogicBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],XG.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],XG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],XG.prototype,"disableGridStateAware",void 0);_.c([_.f(),_.w("design:type",Object)],XG.prototype,"data",void 0);_.c([_.f({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.w("design:type",String)],XG.prototype,"panelLayout",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],XG.prototype,"animationEnabled",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],XG.prototype,"transitioningOut",void 0);
_.c([_.f({computed:"computeMetadataOrder(data)"}),_.w("design:type",Boolean)],XG.prototype,"metadataOrder",void 0);_.c([_.f({computed:"computeByline(data)"}),_.w("design:type",Object)],XG.prototype,"byline",void 0);_.c([_.f({computed:"computeAvatarSize(data)"}),_.w("design:type",Number)],XG.prototype,"avatarSize",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],XG.prototype,"narrow",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],XG.prototype,"narrower",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],XG.prototype,"layoutStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],XG.prototype,"isCarouselInFeed",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],XG.prototype,"dataChanged",null);_.c([_.Kq("yt-default-promo-panel-renderer-playing"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],XG.prototype,"onPlaying",null);
_.c([_.Kq("yt-default-promo-panel-renderer-ended"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],XG.prototype,"onEnded",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],XG);
_.A(XG,"ytd-default-promo-panel-renderer",function(){if(ZVi!==void 0)return ZVi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ZVi=v},{mode:1});_.RZ("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var zt=function(){var v=_.P.apply(this,arguments)||this;v.narrower=!1;v.dotMenuVisible=!1;v.paginationThumbnailsVisible=!1;v.active=!0;v.disableGridStateAware=!1;v.actionMap={"yt-window-resized":"onWindowResized"};return v};
_.V(zt,_.P);_.W=zt.prototype;_.W.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]]"}}}}}};
_.W.attached=function(){document.addEventListener("yt-page-type-changed",_.hG(this,this.onPageTypeChange));this.currentPageSubtype=_.Nd(location.pathname);this.onWindowResized()};
_.W.detached=function(){this.jobId&&_.RM.cancelJob(this.jobId);this.updateSizeJobId&&_.RM.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.hG(this,this.onPageTypeChange))};
_.W.onPageTypeChange=function(v){this.active=v.detail.newPageSubtype===this.currentPageSubtype};
_.W.onWindowResized=function(){this.updateSize()};
_.W.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.W.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.W.setCarouselItem=function(v){v>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.RM.cancelJob(this.jobId);var e=this.getCurrentPanelElement();e&&e.stopVideo();this.currentItemIndex=v%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(e||(e=this.getCurrentPanelElement()),e.playVideo()):this.startRotationJob()};
_.W.scrollThumbnails=function(v){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var e=this.getCurrentPaginationElement();if(e){var d=_.IB(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?d.style.transform="translateX(0)":(e=e.offsetWidth+8,d.style.transform="translateX(-"+e*(v-Math.ceil(Math.floor(this.overlay.offsetWidth/e)/2)+1)+"px)")}}};
_.W.onDataChanged=function(){var v=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.NP(_.RM,function(){var e;(e=v.getCurrentPanelElement())==null||e.updateSize();v.updateSize()}))};
_.W.getCurrentPanelElement=function(){return _.IB(_.IB(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.W.getCurrentPaginationElement=function(){return _.IB(_.IB(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.W.getNavigationClass=function(v,e){return v===e?"selected":""};
_.W.getNavigationDurationStyle=function(v){return"animation-duration:"+(this.get("data.carouselItems."+v+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.W.onNavigationTap=function(v){var e=this,d=v.model.index;d!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){e.setCarouselItem(d)}),this.autorotateActive=!1)};
_.W.onVideoThumbnailEnded=function(){var v=this;if(this.shouldRotate()){var e=this.getCurrentPaginationElement();e&&(e.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){e.classList.remove("finished");v.setNextCarouselItem()}))}};
_.W.onVideoThumbnailError=function(){this.startRotationJob()};
_.W.onVideoNotPlaying=function(){this.startRotationJob()};
_.W.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.W.startRotationJob=function(){var v=this;_.RM.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.RM.addLowPriorityJob(function(){v.getCurrentPanelElement().transitionOut().then(function(){v.setNextCarouselItem()})},this.rotationTimeout))};
_.W.computeDotMenuVisible=function(v,e){return!!v&&!!v.carouselItems&&v.carouselItems.length>1&&!v.paginationThumbnails||!!e};
_.W.computePaginationThumbnailsVisible=function(v,e){var d,E;return((E=v==null?void 0:(d=v.paginationThumbnails)==null?void 0:d.length)!=null?E:0)>1&&!e};
_.W.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.W.computePaginatorAlignment=function(v){return(v==null?void 0:v.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.W.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.W.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.W.isNarrower=function(v){return(v!=null?v:0)<XG.NARROW_VERSION_SIZE};
zt.prototype.activeChanged=zt.prototype.activeChanged;zt.prototype.onVideoNotPlaying=zt.prototype.onVideoNotPlaying;zt.prototype.onVideoThumbnailError=zt.prototype.onVideoThumbnailError;zt.prototype.onVideoThumbnailEnded=zt.prototype.onVideoThumbnailEnded;zt.prototype.onDataChanged=zt.prototype.onDataChanged;_.c([_.M(_.ck),_.w("design:type",Object)],zt.prototype,"ytdGridStateAwareBehavior",void 0);
_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],zt.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],zt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],zt.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],zt.prototype,"currentItem",void 0);
_.c([_.f(),_.w("design:type",Number)],zt.prototype,"currentItemIndex",void 0);_.c([_.f(),_.w("design:type",Number)],zt.prototype,"rotationTimeout",void 0);_.c([_.f(),_.w("design:type",Number)],zt.prototype,"loopCount",void 0);_.c([_.f({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.w("design:type",String)],zt.prototype,"paginatorAlignment",void 0);_.c([_.f(),_.w("design:type",Number)],zt.prototype,"jobId",void 0);
_.c([_.f(),_.w("design:type",Number)],zt.prototype,"updateSizeJobId",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],zt.prototype,"isCarouselInFeed",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zt.prototype,"narrower",void 0);_.c([_.f({computed:"computeDotMenuVisible(data, narrower)"}),_.w("design:type",Object)],zt.prototype,"dotMenuVisible",void 0);
_.c([_.f({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.w("design:type",Object)],zt.prototype,"paginationThumbnailsVisible",void 0);_.c([_.f({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.w("design:type",String)],zt.prototype,"layoutType",void 0);_.c([_.f({value:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],zt.prototype,"autorotateActive",void 0);_.c([_.f(),_.w("design:type",Object)],zt.prototype,"active",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zt.prototype,"disableGridStateAware",void 0);_.c([_.sg("#overlay"),_.w("design:type",HTMLElement)],zt.prototype,"overlay",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zt.prototype,"onDataChanged",null);
_.c([_.Kq("yt-video-thumbnail-ended"),_.Kq("yt-default-promo-panel-renderer-rotate"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zt.prototype,"onVideoThumbnailEnded",null);_.c([_.Kq("yt-video-thumbnail-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zt.prototype,"onVideoThumbnailError",null);
_.c([_.Kq("yt-video-thumbnail-not-playing"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zt.prototype,"onVideoNotPlaying",null);_.c([_.V1("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zt.prototype,"activeChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],zt);
_.A(zt,"ytd-carousel-item-renderer",function(){if(AAf!==void 0)return AAf;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return AAf=v},{mode:2});var Qrt;var gYO;var uGQ;var nYC;var lc=function(){var v=_.P.apply(this,arguments)||this;v.originalQuery=null;v.originalEndpoint=null;return v};
_.V(lc,_.P);lc.prototype.computeShowOriginalQueryWithoutEndpoint_=function(v,e){return!(!v||e)};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],lc.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],lc.prototype,"correctedText",void 0);_.c([_.f(),_.w("design:type",Object)],lc.prototype,"correctedQuery",void 0);_.c([_.f(),_.w("design:type",Object)],lc.prototype,"correctedEndpoint",void 0);_.c([_.f(),_.w("design:type",Object)],lc.prototype,"originalText",void 0);_.c([_.f(),_.w("design:type",Object)],lc.prototype,"originalQuery",void 0);
_.c([_.f(),_.w("design:type",Object)],lc.prototype,"originalEndpoint",void 0);_.c([_.f({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.w("design:type",Boolean)],lc.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.c([_.lh({is:"yt-search-query-correction",disableElementRegistration:!0})],lc);
_.A(lc,"yt-search-query-correction",function(){if(nYC===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;uGQ===void 0&&(uGQ=document.createElement("template"));var E=uGQ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);nYC=v}v=nYC;return v},{mode:2});_.RZ("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Hq=function(){return _.P.apply(this,arguments)||this};
_.V(Hq,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Hq.prototype,"data",void 0);_.c([_.lh({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Hq);
_.A(Hq,"yt-did-you-mean-renderer",function(){if(gYO===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Qrt===void 0&&(Qrt=document.createElement("template"));var E=Qrt;d.call(e,E.content.cloneNode(!0),v.content.firstChild);gYO=v}v=gYO;return v},{mode:2});var DmC;var UmS;_.RZ("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var AA=function(){return _.P.apply(this,arguments)||this};
_.V(AA,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],AA.prototype,"data",void 0);_.c([_.lh({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],AA);
_.A(AA,"yt-including-results-for-renderer",function(){if(UmS===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;DmC===void 0&&(DmC=document.createElement("template"));var E=DmC;d.call(e,E.content.cloneNode(!0),v.content.firstChild);UmS=v}v=UmS;return v},{mode:2});var pq9;var vCf;_.RZ("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var ZQ=function(){return _.P.apply(this,arguments)||this};
_.V(ZQ,_.P);ZQ.prototype.computeExtraClasses_=function(v,e){var d="";v&&(d+=" "+v.toLowerCase().replace(/_/g,"-"));e&&(d+=" "+e.toLowerCase().replace(/_/g,"-"));return d};
ZQ.prototype.computeUrlImg_=function(){var v=this.data;v.image&&(_.IB(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.i2(v.image.thumbnails,Number.MAX_VALUE)+")")};
ZQ.prototype.computeUrlImg_=ZQ.prototype.computeUrlImg_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ZQ.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZQ.prototype,"computeUrlImg_",null);_.c([_.lh({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],ZQ);
_.A(ZQ,"yt-music-pass-feature-info-renderer",function(){if(vCf===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;pq9===void 0&&(pq9=document.createElement("template"));var E=pq9;d.call(e,E.content.cloneNode(!0),v.content.firstChild);vCf=v}v=vCf;return v},{mode:2});var emf;var dlO;_.RZ("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var cq=function(){return _.P.apply(this,arguments)||this};
_.V(cq,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],cq.prototype,"data",void 0);_.c([_.lh({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],cq);
_.A(cq,"yt-no-results-found-showing-results-for-renderer",function(){if(dlO===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;emf===void 0&&(emf=document.createElement("template"));var E=emf;d.call(e,E.content.cloneNode(!0),v.content.firstChild);dlO=v}v=dlO;return v},{mode:2});var ECS;var TeQ;_.RZ("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var wd=function(){return _.P.apply(this,arguments)||this};
_.V(wd,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wd.prototype,"data",void 0);_.c([_.lh({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],wd);
_.A(wd,"yt-results-without-quotes-renderer",function(){if(TeQ===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;ECS===void 0&&(ECS=document.createElement("template"));var E=ECS;d.call(e,E.content.cloneNode(!0),v.content.firstChild);TeQ=v}v=TeQ;return v},{mode:2});var SVw;var WTt;_.RZ("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var FG=function(){return _.P.apply(this,arguments)||this};
_.V(FG,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],FG.prototype,"data",void 0);_.c([_.lh({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],FG);
_.A(FG,"yt-search-no-results-renderer",function(){if(WTt===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;SVw===void 0&&(SVw=document.createElement("template"));var E=SVw;d.call(e,E.content.cloneNode(!0),v.content.firstChild);WTt=v}v=WTt;return v},{mode:2});var aDs;var iiS;_.RZ("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var QH=function(){return _.P.apply(this,arguments)||this};
_.V(QH,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],QH.prototype,"data",void 0);_.c([_.lh({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],QH);
_.A(QH,"yt-showing-results-for-renderer",function(){if(iiS===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;aDs===void 0&&(aDs=document.createElement("template"));var E=aDs;d.call(e,E.content.cloneNode(!0),v.content.firstChild);iiS=v}v=iiS;return v},{mode:2});var OiS;var IDt;var bis;var YVf;var gd=function(){var v=_.P.apply(this,arguments)||this;v.answerExpanded=!1;return v};
_.V(gd,_.P);gd.prototype.toggleAnswer_=function(v){var e=_.ew(v);e&&e.classList.contains("yt-simple-endpoint")||(v.preventDefault(),v.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
gd.prototype.toggleAnswer_=gd.prototype.toggleAnswer_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],gd.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],gd.prototype,"answerExpanded",void 0);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],gd.prototype,"toggleAnswer_",null);
_.c([_.lh({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],gd);
_.A(gd,"yt-generic-faq-question-renderer",function(){if(YVf===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;bis===void 0&&(bis=document.createElement("template"));var E=bis;d.call(e,E.content.cloneNode(!0),v.content.firstChild);YVf=v}v=YVf;return v},{mode:2});_.RZ("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var uc=function(){return _.P.apply(this,arguments)||this};
_.V(uc,_.P);uc.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],uc.prototype,"data",void 0);_.c([_.lh({is:"yt-faq-section-renderer",disableElementRegistration:!0})],uc);
_.A(uc,"yt-faq-section-renderer",function(){if(IDt===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;OiS===void 0&&(OiS=document.createElement("template"));var E=OiS;d.call(e,E.content.cloneNode(!0),v.content.firstChild);IDt=v}v=IDt;return v},{mode:2});var ml1;var yKC;_.RZ("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var nV=function(){return _.P.apply(this,arguments)||this};
_.V(nV,_.P);
nV.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],nV.prototype,"data",void 0);_.c([_.lh({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],nV);
_.A(nV,"yt-offer-item-expanded-renderer",function(){if(yKC===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;ml1===void 0&&(ml1=document.createElement("template"));var E=ml1;d.call(e,E.content.cloneNode(!0),v.content.firstChild);yKC=v}v=yKC;return v},{mode:2});var qVO;var rK9;_.RZ("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var DQ=function(){return _.P.apply(this,arguments)||this};
_.V(DQ,_.P);
DQ.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"}}}}};
DQ.prototype.computeFullWidthMode=function(v){return!(!v||!v.fullWidthMode)};
DQ.prototype.computeBorderlessMode=function(v){return!(!v||!v.borderlessMode)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],DQ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.w("design:type",Boolean)],DQ.prototype,"fullWidthMode",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.w("design:type",Boolean)],DQ.prototype,"borderlessMode",void 0);_.c([_.lh({is:"yt-offer-item-renderer",disableElementRegistration:!0})],DQ);
_.A(DQ,"yt-offer-item-renderer",function(){if(rK9===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;qVO===void 0&&(qVO=document.createElement("template"));var E=qVO;d.call(e,E.content.cloneNode(!0),v.content.firstChild);rK9=v}v=rK9;return v},{mode:2});var hmf;var KT1;_.RZ("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Uc=function(){return _.P.apply(this,arguments)||this};
_.V(Uc,_.P);Uc.prototype.computeAriaLevel_=function(v){return this.getLevelID_(v)};
Uc.prototype.getLevelID_=function(v){return(v=v.match(/[0-9]+$/))&&v.length==1?v[0]:"1"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Uc.prototype,"data",void 0);_.c([_.f({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.w("design:type",String)],Uc.prototype,"ariaLevel",void 0);_.c([_.f({value:"heading",reflectToAttribute:!0}),_.w("design:type",String)],Uc.prototype,"role",void 0);
_.c([_.f({value:-1,reflectToAttribute:!0}),_.w("design:type",Number)],Uc.prototype,"tabindex",void 0);_.c([_.lh({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Uc);
_.A(Uc,"yt-subscription-product-header-renderer",function(){if(KT1===void 0){var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;hmf===void 0&&(hmf=document.createElement("template"));var E=hmf;d.call(e,E.content.cloneNode(!0),v.content.firstChild);KT1=v}v=KT1;return v},{mode:2});var $lv;var jpi;_.RZ("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var pV=function(){return _.P.apply(this,arguments)||this};
_.V(pV,_.P);pV.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:_.Pa("menuRenderer"),events:!0}}};
pV.prototype.onStampFinished_=function(){_.IB(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
pV.prototype.onStampFinished_=pV.prototype.onStampFinished_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pV.prototype,"data",void 0);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pV.prototype,"onStampFinished_",null);
_.c([_.lh({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],pV);
_.A(pV,"yt-subscription-product-renderer",function(){if(jpi===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;$lv===void 0&&($lv=document.createElement("template"));var E=$lv;d.call(e,E.content.cloneNode(!0),v.content.firstChild);jpi=v}v=jpi;return v},{mode:2});var sps;var Nes;_.RZ("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var vT=function(){return _.P.apply(this,arguments)||this};
_.V(vT,_.P);vT.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
vT.prototype.imageScrimColorValuesChanged_=function(){var v,e=(v=this.data)==null?void 0:v.imageScrimColorValues;_.IB(this.hostElement).querySelector("#scrim").style.backgroundColor=e?_.w1(e[0]):"transparent"};
vT.prototype.imageScrimColorValuesChanged_=vT.prototype.imageScrimColorValuesChanged_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],vT.prototype,"data",void 0);
_.c([_.$v("data.imageScrimColorValues"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vT.prototype,"imageScrimColorValuesChanged_",null);_.c([_.lh({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],vT);
_.A(vT,"yt-subscription-product-upsell-offer-renderer",function(){if(Nes===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;sps===void 0&&(sps=document.createElement("template"));var E=sps;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Nes=v}v=Nes;return v},{mode:2});var kA9;var LTQ;var VCs;var oCs;var JKv;var GAf;var eC=function(){return _.P.apply(this,arguments)||this};
_.V(eC,_.P);eC.prototype.onYtServiceRequestError_=function(v){_.Q0(this.hostElement,v.detail.error.message)};
eC.prototype.onYtServiceRequestError_=eC.prototype.onYtServiceRequestError_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],eC.prototype,"data",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],eC.prototype,"collapsible",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eC.prototype,"isManageRed",void 0);
_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],eC.prototype,"onYtServiceRequestError_",null);_.c([_.lh({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],eC);
_.A(eC,"yt-single-ypc-offer-renderer",function(){if(GAf===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;JKv===void 0&&(JKv=document.createElement("template"));var E=JKv;d.call(e,E.content.cloneNode(!0),v.content.firstChild);GAf=v}v=GAf;return v},{mode:2});var de=function(){return _.P.apply(this,arguments)||this};
_.V(de,_.P);de.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],de.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],de.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],de.prototype,"isManageRed",void 0);_.c([_.lh({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],de);
_.A(de,"yt-single-ypc-offer-list-renderer",function(){if(oCs===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;VCs===void 0&&(VCs=document.createElement("template"));var E=VCs;d.call(e,E.content.cloneNode(!0),v.content.firstChild);oCs=v}v=oCs;return v},{mode:2});var MCQ;var tCt;_.RZ("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var EV=function(){return _.P.apply(this,arguments)||this};
_.V(EV,_.P);EV.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],EV.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],EV.prototype,"isManageRed",void 0);_.c([_.lh({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],EV);
_.A(EV,"yt-ypc-offers-list-renderer",function(){if(tCt===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;MCQ===void 0&&(MCQ=document.createElement("template"));var E=MCQ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);tCt=v}v=tCt;return v},{mode:2});_.RZ("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var TA=function(){return _.P.apply(this,arguments)||this};
_.V(TA,_.P);
TA.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],TA.prototype,"data",void 0);_.c([_.lh({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],TA);
_.A(TA,"yt-unlimited-manage-subscription-page-renderer",function(){if(LTQ===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;kA9===void 0&&(kA9=document.createElement("template"));var E=kA9;d.call(e,E.content.cloneNode(!0),v.content.firstChild);LTQ=v}v=LTQ;return v},{mode:2});var fDi;var Rmv;var SC=function(){return _.P.apply(this,arguments)||this};
_.V(SC,_.P);_.W=SC.prototype;_.W.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.W.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.W.onKeypress_=function(v){v.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.W.handleHeaderTap_=function(v){v.preventDefault();v.stopPropagation();this.expandOffers_()};
_.W.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.W.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
SC.prototype.dataChanged_=SC.prototype.dataChanged_;_.c([_.M(_.K$),_.w("design:type",Object)],SC.prototype,"ironA11yKeysBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],SC.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],SC.prototype,"offersVisible_",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SC.prototype,"dataChanged_",null);_.c([_.lh({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],SC);
_.A(SC,"yt-collapsible-ypc-offer-renderer",function(){if(Rmv===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;fDi===void 0&&(fDi=document.createElement("template"));var E=fDi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Rmv=v}v=Rmv;return v},{mode:2});var P8i;var xl_;_.RZ("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var WT=function(){return _.P.apply(this,arguments)||this};
_.V(WT,_.P);_.W=WT.prototype;_.W.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.W.dataChanged_=function(){if(this.data.backgroundImage){var v=_.i2(this.data.backgroundImage.thumbnails,screen.width),e=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=e?"linear-gradient(180deg, "+e+"), url("+v+")":"url("+v+")";this.data.gtmId&&_.tb(this.data.gtmId,_.Bb("GL",""))}};
_.W.onYtServiceRequestError_=function(v){_.Q0(this.hostElement,v.detail.error.message)};
_.W.getScrimLayerColorStops_=function(){var v,e,d=(v=this.data.unlimitedHeaderV2Data)==null?void 0:(e=v.unlimitedHeaderV2Data)==null?void 0:e.scrimLayerColors;if(!d)return null;var E=100/d.length;return d.map(function(T,S){S*=E;return _.w1(T)+" "+S+"%"}).join(",")};
_.W.computeLogoWithPadding=function(v){var e,d,E;return(v=(e=v.unlimitedLogoImage)==null?void 0:(d=e.thumbnails)==null?void 0:(E=d[0])==null?void 0:E.height)&&v%31===0?!0:!1};
WT.prototype.onYtServiceRequestError_=WT.prototype.onYtServiceRequestError_;WT.prototype.dataChanged_=WT.prototype.dataChanged_;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],WT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],WT.prototype,"ytRendererBehavior",void 0);_.c([_.f({computed:"computeLogoWithPadding(data)"}),_.w("design:type",Boolean)],WT.prototype,"logoWithPadding",void 0);
_.c([_.f(),_.w("design:type",Object)],WT.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WT.prototype,"dataChanged_",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],WT.prototype,"onYtServiceRequestError_",null);_.c([_.lh({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],WT);
_.A(WT,"yt-unlimited-page-header-renderer",function(){if(xl_===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;P8i===void 0&&(P8i=document.createElement("template"));var E=P8i;d.call(e,E.content.cloneNode(!0),v.content.firstChild);xl_=v}v=xl_;return v},{mode:2});var Bef;var C8Q;_.RZ("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var ap=function(){return _.P.apply(this,arguments)||this};
_.V(ap,_.P);ap.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ap.prototype,"data",void 0);_.c([_.lh({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],ap);
_.A(ap,"yt-unlimited-user-notification-renderer",function(){if(C8Q===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Bef===void 0&&(Bef=document.createElement("template"));var E=Bef;d.call(e,E.content.cloneNode(!0),v.content.firstChild);C8Q=v}v=C8Q;return v},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.W$v=_.l(function(v){var e=_.dC(v,{numberOfChips:5}).numberOfChips;return _.m("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.m(_.jI,{each:function(){return Array(e==null?void 0:e())}},function(){return _.m("div",{class:"ytGhostChipShelfChip"})}))},"eh");_.a_v=_.l(function(v){var e=function(){var S;return((S=v.data)==null?void 0:S.call(v).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},d=_.y0(),E=_.dk().resolve(_.U_);
_.JE(function(){requestAnimationFrame(function(){var S;(S=d.lottieEl)==null||S.addEventListener("DOMLoaded",function(){var O;(O=v.onLottieLoaded)==null||O.call(v)})})});
var T={};return _.m("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var S;return((S=v.data)==null?void 0:S.call(v).targetId)||""}},_.m(_.jZ,{className:_.qe((T.ytChatLoadingViewModelRtl=E==="rtl",T)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:e()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||e()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:e()}}},
animationRef:d}))},"fh");
}catch(e){_._DumpException(e)}
try{
var vcf,eZ9,Ec_,TZv,SWt,WE1,aV_,i4s,qWs,yD,yEs,IVi,m9S,YWC,b49,O4C,rEf,hZ9,KEt,$9v,qV,jsO,ssC,LE9,hl,NZi,jH,rl,K8,krO,$D,VIv,ocs,JEQ,Grw,MIS,tI9,fV_,PgS,x9v,BZt,Cg9,Xbt,zZv,lVi,H49,AE1,Z4S,wbf,Qsf,uy1,ncv,D9i,U9f,eh1,d__,ELt,Tki,SIO,WqS,aTs,Ow9,m_i,YIw,IT9,yav,bwC,qIi,$__,Kq9,ras,hhQ,NV,jHi,sHt,kRf,MGf,tG9,fT9,Rh_,PYs,x_C,Bki,CYi,Xii,zhi,HwQ,Aas,ZwQ,oLC;
_.YD=function(v){var e=new _.kL("Error accessing DB");return _.Qj3().then(function(d){return new Promise(function(E,T){try{var S=d.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(v);S.onsuccess=function(){var O=S.result;E(O?O.value:null)};
S.onerror=function(){e.params={key:v,source:"onerror"};T(e)}}catch(O){e.params={key:v,
thrownError:String(O)},T(e)}})},function(){return null})};
_.px1=function(v,e){var d=_.vaS(e);d!=="javascript:"&&d!=="data:"&&v.setAttribute("href",e)};
vcf=function(v,e){return _.h_(v.entities,"flowStateEntity",e)};
eZ9=function(v,e){return _.h_(v.entities,"contextNoteUserRatingEntityPayload",e)};
_.d99=function(v,e){if(v&&e){var d=_.Xf0();d().set(v,e);_.zc$(d())}};
Ec_=function(v){return _.xS(v,function(e){return e.languageCode==="en"})};
TZv=function(v){var e=mP;if(_.bDC(v))v.setOption("captions","stickyLoading",{}),v.setOption("captions","track",{});else{var d=_.xS(_.ks7(v),function(E){return E.displayName===e});
v.setOption("captions","track",d)}};
SWt=function(v){if(!v)return 0;var e=v.getPresentingPlayerType(),d=v.getVideoData();return d&&d.isLive?(v=v.getProgressState(e),v.seekableEnd-v.seekableStart):v.getDuration(e)};
WE1=function(v,e){for(var d=_.a(Object.keys(v)),E=d.next();!E.done;E=d.next())if(E=E.value,v[E]!==e[E])return!1;return!0};
aV_=function(){return document.getElementById("player-control-overlay")};
i4s=function(v){v!==-1&&!_.N("player_controls_log_creation_killswitch")&&aV_()&&(_.zE("pcu_cs",v),_.zE("pcu_ce"))};
qWs=function(v,e){var d=_.e2(v,{}),E=O4C("top",e),T=O4C("bottom",e),S=O4C("left",e),O=O4C("right",e);return _.jM({top:function(){return yD(d().position,E)},
bottom:function(){return yD(d().position,T)},
left:function(){return yD(d().position,S)},
right:function(){return yD(d().position,O)},
position:function(){return yD(d().positionType,IVi)},
height:function(){return yD(d().height,qV)},
width:function(){return yD(d().width,qV)},
"min-width":function(){return yD(d().minWidth,qV)},
"min-height":function(){return yD(d().minHeight,qV)},
"max-width":function(){return yD(d().maxWidth,qV)},
"max-height":function(){return yD(d().maxHeight,qV)},
"aspect-ratio":function(){return yD(d().aspectRatio,String)},
"margin-top":function(){return yD(d().margin,E)},
"margin-bottom":function(){return yD(d().margin,T)},
"margin-left":function(){return yD(d().margin,S)},
"margin-right":function(){return yD(d().margin,O)},
"padding-top":function(){return yD(d().padding,E)},
"padding-bottom":function(){return yD(d().padding,T)},
"padding-left":function(){return yD(d().padding,S)},
"padding-right":function(){return yD(d().padding,O)},
"flex-direction":function(){return yD(d().flexDirection,b49)},
"justify-content":function(){return yD(d().justifyContent,YWC)},
"align-items":function(){return yD(d().alignItems,m9S)},
"flex-grow":function(){return yD(d().flexGrow,String)},
"flex-shrink":function(){return yD(d().flexShrink,String)},
"flex-basis":function(){return yD(d().flexBasis,qV)},
"align-self":function(){return yD(d().alignSelf,m9S)},
"flex-wrap":function(){return yD(d().flexWrap,yEs)},
"align-content":function(){return yD(d().alignContent,m9S)}})};
yD=function(v,e){return v!==void 0?e(v):void 0};
yEs=function(v){switch(v){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
IVi=function(v){switch(v){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
m9S=function(v){switch(v){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"}};
YWC=function(v){switch(v){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"}};
b49=function(v){switch(v){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"}};
O4C=function(v,e){var d=e==="rtl";switch(v){case "top":var E=rEf;break;case "bottom":E=hZ9;break;case "left":E=KEt;break;default:E=$9v}return function(T){return yD(E(T,d),qV)}};
rEf=function(v){var e=v.top;var d=v.vertical;v=v.all;var E;return(E=e!=null?e:d)!=null?E:v};
hZ9=function(v){var e=v.bottom;var d=v.vertical;v=v.all;var E;return(E=e!=null?e:d)!=null?E:v};
KEt=function(v,e){var d=v.left;var E=v.end;var T=v.start;var S=v.horizontal;v=v.all;var O,b;return(b=(O=d!=null?d:e?E:T)!=null?O:S)!=null?b:v};
$9v=function(v,e){var d=v.right;var E=v.end;var T=v.start;var S=v.horizontal;v=v.all;var O,b;return(b=(O=d!=null?d:e?T:E)!=null?O:S)!=null?b:v};
qV=function(v){var e=v.value;switch(v.unit){case "YPC_DIMENSION_UNIT_POINT":return e+"px";case "YPC_DIMENSION_UNIT_FRACTION":return e+"%";default:return""+e}};
jsO=function(v){switch(v){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"}};
ssC=function(v){var e=v!=null?v:{};v=e.fontRole;var d=e.fontSize;e=e.fontWeight;if(v!==null&&d!==null)switch(v){case "YPC_FONT_ROLE_DISPLAY":switch(d){case "YPC_FONT_SIZE_L":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(d){case "YPC_FONT_SIZE_L":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return e===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(d){case "YPC_FONT_SIZE_XL":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
LE9=function(v,e,d){function E(h){return Object.values(h).map(function(K){var k=K.productId;K=K.pricingOptionIndex;return rl(T(k).pricingOptions,K).pricingOptionId})}
function T(h){return Y().get(h)}
function S(h){h=E(h);d(h)}
function O(h,K){return Array.from(hl(h.pricingOptions)).filter(function(k){k=_.a(k);k.next();k=k.next().value;return K8(k.pricingGroupAttributes,K)}).map(function(k){return _.a(k).next().value})}
var b=$D([v,e],function(h,K){var k=h==null?void 0:h.selectedPricingOptions;h={};var J=!0;if(k&&K.length)for(var R=_.a(K),B=R.next();!B.done;B=R.next()){B=B.value;var X=NZi(B.pricingOptions,function(F){a:{F=F.pricingOptionId;for(var g=_.a(k),Q=g.next();!Q.done;Q=g.next())if(Q.value===F){F=!0;break a}F=!1}return F});
if(X>=0){J=!1;var Z=rl(B.pricingOptions,X),U=void 0;h[B.groupId]={productId:B.productId,pricingOptionIndex:X,pricingGroupAttributes:(U=Z)==null?void 0:U.pricingGroupAttributes}}}J&&K.length&&(J=rl(K[0].pricingOptions,0),h[K[0].groupId]={productId:K[0].productId,pricingOptionIndex:0,pricingGroupAttributes:J==null?void 0:J.pricingGroupAttributes});return h}),Y=$D([e],function(h){return new Map(h.map(function(K){return[K.productId,
K]}))}),q=$D([e],function(h){var K=new Map;
h=_.a(h);for(var k=h.next();!k.done;k=h.next()){var J=k.value;k=J.groupId;var R=J.productId;J=_.a(hl(J.pricingOptions));for(var B=J.next();!B.done;B=J.next()){var X=_.a(B.value);B=X.next().value;X=X.next().value;K.set(X.pricingOptionId,{groupId:k,productId:R,index:B,pricingOption:X,pricingGroupAttributes:X.pricingGroupAttributes})}}return K}),r=$D([e],function(h){var K=new Map;
h=_.a(h);for(var k=h.next();!k.done;k=h.next()){var J=k.value;k=J.groupId;var R=J.productId,B=void 0;J=_.a(hl((B=J.pricingGroups)!=null?B:[]));for(B=J.next();!B.done;B=J.next()){var X=_.a(B.value);B=X.next().value;X=X.next().value;K.set(X.pricingGroupId,{groupId:k,productId:R,index:B,pricingGroup:X,pricingGroupAttributes:X.pricingGroupAttributes})}}return K});
return{getProductById:T,isProductSelected:function(h){var K=T(h);if(!K)return!1;var k;return((k=b()[K.groupId])==null?void 0:k.productId)===h},
getSelectedPricingOptions:function(){return Object.values(b()).map(function(h){var K=h.productId;h=h.pricingOptionIndex;return rl(T(K).pricingOptions,h)})},
getSelectedPricingGroupAttributesByGroupId:function(h){var K;return(h=(K=b()[h])==null?void 0:K.pricingGroupAttributes)?Array.from(h):void 0},
getSelectedProductByGroupId:function(h){var K;return(h=(K=b()[h])==null?void 0:K.productId)?T(h):void 0},
onProductSelected:function(h){var K=T(h);if(K){var k=b(),J;if(((J=k[K.groupId])==null?void 0:J.productId)!==h){var R=(J=(R=k[K.groupId])==null?void 0:R.productId)?T(J):void 0;var B;J=(B=k[K.groupId])==null?void 0:B.pricingGroupAttributes;var X;B=(X=k[K.groupId])==null?void 0:X.pricingOptionIndex;if(R&&J&&B!==void 0){X=O(R,J).indexOf(B);if(X===-1)throw Error("Nj`"+B+"`"+R.productId);B=O(K,J);X=X<B.length?B[X]:B.length>0?B[0]:0}else X=0;jH(K.pricingOptions)<=X&&(X=0);B=rl(K.pricingOptions,X);var Z;
R={};S(Object.assign({},k,(R[K.groupId]={productId:h,pricingOptionIndex:X,pricingGroupAttributes:(Z=B==null?void 0:B.pricingGroupAttributes)!=null?Z:[]},R)))}}},
onPricingOptionSelected:function(h){var K=q().get(h);if(K){h=K.groupId;var k=K.productId;K=K.index;var J=b(),R,B;if(((R=J[h])==null?void 0:R.productId)!==k||((B=J[h])==null?void 0:B.pricingOptionIndex)!==K){var X,Z;R={};S(Object.assign({},J,(R[h]={productId:k,pricingOptionIndex:K,pricingGroupAttributes:(Z=(X=J[h])==null?void 0:X.pricingGroupAttributes)!=null?Z:[]},R)))}}},
onPricingGroupSelected:function(h){var K=r().get(h);if(K){h=K.groupId;var k=K.productId,J=K.pricingGroup.pricingGroupAttributes,R=T(k);if(R){K=b();var B=K[h].pricingGroupAttributes,X;if(((X=K[h])==null?void 0:X.productId)!==k||!K8(krO(B,jH(J)),J)){X=Array.from(J);for(J=jH(J);J<jH(B);J++){var Z="",U=!1,F=Array.from(X);F.push(rl(B,J));for(var g=_.a(R.pricingGroups),Q=g.next();!Q.done;Q=g.next())if(Q=Q.value,K8(Q.pricingGroupAttributes,F)){X.push(rl(B,J));U=!0;break}else Z===""&&jH(Q.pricingGroupAttributes)===
F.length&&K8(krO(Q.pricingGroupAttributes,X.length),X)&&(Z=rl(Q.pricingGroupAttributes,J));U||X.push(Z)}Z=K[h].pricingOptionIndex;J=[];U=new Map;F=0;R=_.a(hl(R.pricingOptions));for(g=R.next();!g.done;g=R.next())Q=_.a(g.value),g=Q.next().value,Q=Q.next().value,K8(Q.pricingGroupAttributes,X)&&J.push(g),K8(Q.pricingGroupAttributes,B)&&U.set(g,F++);J.length===0?B=0:(B=U.get(Z),B=B!==void 0&&B<J.length?J[B]:J[0]);R={};S(Object.assign({},K,(R[h]={productId:k,pricingOptionIndex:B,pricingGroupAttributes:X},
R)))}}}},
onClearGroupSelected:function(h){var K=b();K[h]&&(K=Object.fromEntries(Object.entries(K).filter(function(k){return _.a(k).next().value!==h})),S(K))}}};
hl=function(v){return function d(){var E,T,S,O,b;return _.Ek(d,function(Y){switch(Y.nextAddress){case 1:_.KF(Y,2),E=0,T=_.a(v),S=T.next();case 4:if(S.done){Y.jumpTo(2);break}O=S.value;b=_.Tp;return Y.yield([E++,O],7);case 7:b(Y.yieldResult);S=T.next();Y.jumpTo(4);break;case 2:_.h7(Y),_.$a(Y,0)}})}()};
NZi=function(v,e){v=_.a(hl(v));for(var d=v.next();!d.done;d=v.next()){var E=_.a(d.value);d=E.next().value;E=E.next().value;if(e(E))return d}return-1};
jH=function(v){var e=0;for(v=v[Symbol.iterator]();!v.next().done;)++e;return e};
rl=function(v,e){v=_.a(hl(v));for(var d=v.next();!d.done;d=v.next()){var E=_.a(d.value);d=E.next().value;E=E.next().value;if(d===e)return E}};
K8=function(v,e){if(!v&&!e)return!0;if(!v||!e)return!1;v=Array.from(v);e=Array.from(e);if(v.length!==e.length)return!1;for(var d=0;d<v.length;d++)if(v[d]!==e[d])return!1;return!0};
krO=function(v,e){e=e===void 0?Infinity:e;var d=[];v=_.a(hl(v));for(var E=v.next();!E.done;E=v.next()){var T=_.a(E.value);E=T.next().value;T=T.next().value;if(E>=e)break;E>=0&&d.push(T)}return d};
$D=function(v,e){var d,E;return function(){for(var T=v.map(function(O){return O()}),S=0;S<T.length;S++)if(!d||T[S]!==d[S]){d=T;
E=e.apply(null,_.t7(T));break}return E}};
VIv=function(v,e,d){var E=[];v=_.a(v);for(var T=v.next();!T.done;T=v.next()){T=T.value;var S=void 0;((S=e)==null?0:S.length)&&!K8(T.pricingGroupAttributes,e)||E.push({pricingOption:T,isSelected:d.includes(T.pricingOptionId)})}return E};
ocs=function(v,e){return _.h_(v.entities,"pdpStateEntity",e)};
JEQ=function(v){var e,d;return!!(v.productId&&v.groupId&&((e=v.pricingOptions)==null?0:e.length)&&v.pricingOptions.every(function(E){return E.pricingOptionId})&&((d=v.pricingGroups)==null||!d.length||Array.isArray(v.pricingGroups)&&v.pricingGroups.every(function(E){return E.pricingGroupId&&E.pricingGroupAttributes&&E.pricingGroupAttributes.length>0})))};
Grw=function(v,e,d){return LE9(v,$D([e],function(E){return E.filter(JEQ)}),d)};
MIS=function(v){var e=void 0,d;for(d in v)if(v.hasOwnProperty(d)){e=d;break}return e};
tI9=function(v,e){return e.length===0?[v]:[v.slice(0,e[0]),v.slice(e[0])].filter(function(d){return d.length>0})};
fV_=function(v){switch(v){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""}};
PgS=function(v,e,d,E){E=Object.assign({},E);_.xJ(E,RZt,{selectedOptionId:v,primaryButtonOverride:d});_.pq().dispatch(_.Lv("flowStateEntity",e,E))};
x9v=function(v){switch(v){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
BZt=function(v){switch(v){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
Cg9=function(v,e){e.includes(v)?e=e.filter(function(d){return d!==v}):e.push(v);
return[].concat(_.t7(e))};
Xbt=function(v,e){return _.h_(v.entities,"contextNoteFeedEntityPayload",e)};
zZv=function(v,e){switch(v){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return e==null?void 0:e.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return e==null?void 0:e.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return e==null?void 0:e.ratingNotHelpfulText}};
lVi=function(v,e){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:v.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:v.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:v.deleteDialogTitle}]},dialogMessages:[{runs:[{text:v.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:v.deleteActionText}]},command:{performCommentActionEndpoint:{action:e}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:v.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
H49=function(v,e,d){var E;if(v&&((E=e())==null?0:E.includes(v))){var T;d((T=e())==null?void 0:T.filter(function(S){return S!==S}))}else d([].concat(_.t7(e()||[]),[v]))};
AE1=function(v){v.style.height="auto";v.style.height=v.scrollHeight+"px"};
Z4S=function(v){return[v.syncStep,v.asyncStep].filter(function(e){return e!==void 0})};
wbf=function(v){var e,d,E;if(v=(e=v.structuredContextNoteFormSchema)==null?void 0:(d=e.fieldSchemas)==null?void 0:(E=d.noteBody)==null?void 0:E.validationSchema)for(e=_.a(Z4S(v)),d=e.next();!d.done;d=e.next()){d=d.value.rules;if(!d)break;d=_.a(d);for(d=d.next();!d.done;d=d.next())return _.L(d.value,_.cE9)}};
Qsf=function(v){if(v){v=_.a(Z4S(v));for(var e=v.next();!e.done;e=v.next()){e=e.value.rules;if(!e)break;e=_.a(e);for(e=e.next();!e.done;e=e.next())return _.L(e.value,FEO)}}};
uy1=function(v){if(v){v=_.a(Z4S(v));for(var e=v.next();!e.done;e=v.next()){e=e.value.rules;if(!e)break;e=_.a(e);for(e=e.next();!e.done;e=e.next())return _.L(e.value,gc9)}}};
ncv=function(v){v=/^https?:\/\//.test(v)?v:"http://"+v;try{var e=_.Az(v)}catch(d){return!1}if(e.toString()!==v)return!1;v=e.JSC$10022_domain_.split(".");return v.length>1&&v.every(function(d){return!!d})};
D9i=function(v,e,d,E){var T;E=(T=E.structuredContextNoteData)==null?void 0:T.createCommentEndpoint;if(T=_.L(E,_.U5c))return T.commentText=_.pQ(v),T.videoPositionMention=e,T.sources=d,E};
U9f=function(v){return v==null?void 0:v.stringValue};
_.pb_=function(v){return v.talkToRecs};
eh1=function(v,e,d){v=v.map(function(E,T){return{listItemViewModel:{title:E.title,subtitle:E.subtitle,leadingImage:E.leadingImage,trailingImage:T===e?vLf:void 0,rendererContext:{commandContext:{onTap:E.onTap}}}}});
return Object.assign({},d&&{header:{panelHeaderViewModel:{title:d}}},{content:{listViewModel:{listItems:v}}})};
d__=function(v,e){if(v&&e)switch(e){case "SELECTION_TYPE_BOOL":return v.boolValue;case "SELECTION_TYPE_INT":return v.intValue;case "SELECTION_TYPE_STRING":return v.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return v.privacyStatusValue}};
ELt=function(v){var e;v=(e=v.options)==null?void 0:e.findIndex(function(d){return d.isSelected});
return v===void 0?-1:v};
Tki=function(v,e,d){var E=function(){return v().label},T={},S=_.qe("ytDropdownViewModelLabel",(T.ytDropdownViewModelLabelError=e,T));
return _.m(_.y,{cond:function(){return v().label&&!(d()===-1&&v().label&&!v().placeholderText)},
then:function(){return _.m("div",{class:S},_.m(_.Dh,{text:E}))}})};
SIO=function(v,e){var d={};d=_.qe("ytDropdownViewModelTitle",(d.ytDropdownViewModelTitlePlaceholder=function(){return e()===-1},d));
return _.m("div",{class:d},_.m(_.Dh,{text:function(){var E=v();var T=e();if(T===-1)E=E.placeholderText?E.placeholderText:E.label;else{var S,O;E=(S=E.options)==null?void 0:(O=S[T])==null?void 0:O.title}return E}}))};
WqS=function(v,e){var d=function(){return v().hint};
return _.m(_.eI,null,_.m(_.y,{cond:function(){return d()&&!e()},
then:function(){return _.m("div",{class:_.qe("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.m(_.Dh,{text:d,className:"ytDropdownViewModelSupportText"}))}}),_.m(_.y,{cond:e,
then:function(){return _.m("div",{id:"dropdown-view-model-error",role:"alert",class:_.qe("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.m(_.sG,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.m(_.Dh,{text:e,className:"ytDropdownViewModelSupportText"}))}}))};
aTs=function(v,e){var d=_.dk().resolve(_.kO1);_.Gr(function(){var E=v().id;E&&d!=null&&d.dropdownMap.set(E,e)})};
Ow9=function(v){v=_.L(v.scheduleButton,iwf);v=_.L(v==null?void 0:v.primaryButton,_.lx);v=_.L(v==null?void 0:v.onTap,_.zj);var e,d,E=((d=_.L(v,_.rV))==null?void 0:d.commands)||[v];d=_.a(E);for(v=d.next();!v.done&&!(e=_.L(v.value,_.pXn));v=d.next());var T;e=(T=e)==null?void 0:T.createBroadcastRequest;if(!e)throw Error("Uj");return e};
m_i=function(v,e,d){d=d===void 0?{}:d;var E,T;return _.I(function(S){if(E=IT9(e))return S.return(E);(T=bwC(v,e,d))&&YIw(e,T);return S.return(T)})};
YIw=function(v,e){var d=yav(v);d&&e.then(function(E){_.dk().resolve(_.yc).put(d,new _.qp({innertubeResponse:E}))})};
IT9=function(v){if(v=yav(v)){var e=_.dk().resolve(_.yc);if(e.has(v))return e.get(v).then(function(d){return d==null?void 0:_.UR(d)})}return null};
yav=function(v){var e=_.L(v.endpoint,_.p2);if(e!=null&&e.videoId)return e={videoId:e.videoId},_.N("web_imp_player_mute_params")&&(e.mutedAtStart=v.startPlaybackInMutedState),_.Uw("inline_playback",e)};
bwC=function(v,e,d){v=_.Qw(v,e.endpoint,qIi(e,d)).then(function(E){return E});
return Promise.resolve(v)};
qIi=function(v,e){e=_.N("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!v.startPlaybackInMutedState},e):Object.assign({},{vis:5,autonav:"1"},e);var d;e={contentPlaybackContext:_.fo(e,(d=_.L(v.endpoint.commandMetadata,_.$B))==null?void 0:d.url,window.location.href)};_.N("web_imp_player_mute_params")&&(e.overrideMutedAtStart=!v.startPlaybackInMutedState);return e};
$__=function(v,e){var d=window.MutationObserver;d&&(sv=new d(function(E,T){E=_.a(E);for(var S=E.next();!S.done;S=E.next()){S=S.value;var O;if(O=S.type==="childList"&&S.target)a:{O=v;S=ras(S.target);O=ras(O);for(var b=null,Y=0;Y<S.length;Y++)if(O.includes(S[Y])){if(Y===0){O=!1;break a}b=S[Y];break}b?(S=hhQ(S,b),O=hhQ(O,b),O=S<O):O=!1}if(O){e();T.disconnect();break}}}),(d=Kq9())&&sv.observe(d,{childList:!0,
subtree:!0}))};
Kq9=function(){var v=document.getElementsByTagName("ytd-rich-grid-renderer");if(v.length>0)return v[0];v=document.getElementsByTagName("ytd-section-list-renderer");return v.length>0?v[0]:null};
ras=function(v){for(var e=[];v;)e.push(v),v=v.parentElement;return e};
hhQ=function(v,e){var d=Array.from(e.children);e=v.indexOf(e);return e>0?d.indexOf(v[e-1]):-1};
NV=function(v,e,d){d=d===void 0?{}:d;return _.sz(v,d,e)};
jHi=function(v){switch(v){case "MUSIC":return!0;default:return!1}};
sHt=function(v){return v==null?void 0:v.filter(function(e){return e.premiereTrailerBadgeRenderer})};
kRf=function(v){var e,d=v==null?void 0:(e=v.find(function(h){return h.thumbnailOverlayTimeStatusRenderer}))==null?void 0:e.thumbnailOverlayTimeStatusRenderer,E,T;
if((d==null?0:(E=d.icon)==null?0:E.iconType)&&jHi(d==null?void 0:(T=d.icon)==null?void 0:T.iconType)){var S;return{icon:d==null?void 0:(S=d.icon)==null?void 0:S.iconType}}var O,b;var Y=(v=(O=v==null?void 0:(Y=v.find(function(h){return h.thumbnailBottomOverlayViewModel}))==null?void 0:Y.thumbnailBottomOverlayViewModel)==null?void 0:(b=O.badges)==null?void 0:b.find(function(h){var K,k;
return((K=_.L(h,Nkf))==null?void 0:(k=K.inlinePlaybackBadgeData)==null?void 0:k.replicateAsTimestamp)===!0}))?_.L(v,Nkf):void 0;
if(Y==null?0:Y.icon){var q,r;if((Y=(q=_.Vn7(Y==null?void 0:Y.icon))==null?void 0:(r=q.clientResource)==null?void 0:r.imageName)&&jHi(Y))return{icon:Y}}return{}};
MGf=function(v,e){var d=LqC,E=_.a(_.OE(VGt(new oLC(function(){},d,e)),void 0,"PAnyd")),T=E.next().value,S=E.next().value,O=new oLC(function(b){S(b)},d,e);
_.o_(function(){Promise.resolve().then(function(){var b,Y=(b=v())!=null?b:{};O.playerControlsData=Y;_.N("player_controls_skip_double_signal_old")&&(O.lastSeenPlayerApi=_.Ra(Y.playerApi));_.N("player_controls_skip_double_signal_old")||(O.lastSeenPlayerApi=_.Ra(Y.playerApi));Jai(O)});
_.Jf(function(){GRC(O)})},"HikUP");
_.Jf(function(){GRC(O)});
return function(){return T()}};
tG9=function(v){return function(e){var d=v(),E={playerState:e};if(e===1){var T;(T=d.playerApi)==null||T.loadModule("captions")}if(e===0){var S;(S=d.playerApi)==null||S.unloadModule("captions")}e!==-1&&d.setState(E)}};
fT9=function(v){return function(e){v().setState({playbackRate:e})}};
Rh_=function(v){return function(e){var d=v(),E=d.playerApi,T=E==null?void 0:E.getVideoData(),S=(T==null?void 0:T.isLive)||!1;T=T==null?void 0:T.video_id;S={videoDuration:SWt(E||void 0),isLive:S,videoId:T};S.videoId!==d.videoId&&(S=Object.assign({},_.ml7(E),S));if(e==null?0:e.playertype)S.playerType=e.playertype;if(E){S.captionsAvailable=_.uQ(E);e=S;var O;T=(O=E.getStoryboardLevel(E.getNumberOfStoryboardLevels()-1))==null?void 0:O.intervalMs;e.storyboardInterval=T?T/1E3:void 0;S.captionsAvailable&&
(S.captionsEnabled=_.bDC(E))}S.volumeMuted=!(E==null||!E.isMuted());d.setState(S)}};
PYs=function(v){return function(e){var d=v(),E=d.playerApi;if(E){var T=E.getPresentingPlayerType();e={playedTime:e||0,percentLoaded:E.getVideoLoadedFraction(),playerType:T};d.playerState===0&&(e.playedTime=d.videoDuration);d.isLive&&(T=E.getProgressState(T),e.playedTime-=T.seekableStart,e.videoDuration=SWt(E));if(d.playerType===1)E=!1;else{var S;if((S=d.uxConfig)==null?0:S.showCuedOverlay){var O;E=!((O=d.playerApi)==null?0:O.getPlayerStateObject(d.playerType).isDomPaused)}else E=!0}E&&delete e.playedTime;
d.setState(e)}}};
x_C=function(v){return function(){var e=v(),d,E,T,S={volume:(T=(d=e.playerApi)==null?void 0:d.getVolume())!=null?T:0,volumeMuted:!((E=e.playerApi)==null||!E.isMuted())};e.setState(S)}};
Bki=function(v){return function(){var e=v(),d=e.playerApi;if(d){var E={captionsAvailable:_.uQ(d)};E.captionsAvailable&&(E.captionsEnabled=_.bDC(d));e.setState(E)}}};
CYi=function(v){return function(){var e=v();if(e.playerApi&&!(e.volumeMuted||e.controlsVisible&&e.isProbablyAScreenreaderUser)){e.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var d;(d=document.querySelector(".player-control-play-pause-icon"))==null||d.focus()}}};
Xii=function(v){return{appApi:Object.assign({},_.WTM(),{showCaptionsToggleToast:function(e){var d,E;(E=(d=v()).showCaptionsToggleToast)==null||E.call(d,e)},
openInMiniplayer:function(){var e,d;(d=(e=v()).openInMiniplayer)==null||d.call(e)}})}};
zhi=function(v,e){var d,E,T;return!!(v==null?0:(d=v.playerResponse)==null?0:(E=d.playerConfig)==null?0:(T=E.inlinePlaybackConfig)==null?0:T.showScrubbingControls)&&!(e==null?0:e.hideScrubbingControls)};
_.lTv=function(v){var e=!v.miniplayerIsActive;return[5,2,0].includes(v.miniplayerPlaybackState)||e};
HwQ={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Aas=function(v,e){var d,E,T,S,O;_.I(function(b){if(!e.length)return b.return([]);d=[];E=_.a(e);for(T=E.next();!T.done;T=E.next())S=T.value,(O=v.resolveIcon(S))&&!v.iconCache[O.url]&&d.push(_.SJO(v,O).then(function(){}).catch(function(){}));
return b.return(Promise.all(d))})};
ZwQ=function(v,e){var d=[];e=(new Set(e)).values();e=_.a(e);for(var E=e.next();!E.done;E=e.next()){E=E.value;for(var T=_.a(Object.values(HwQ)),S=T.next();!S.done;S=T.next())d.push({iconName:E,iconStyle:S.value})}Aas(v.iconManager,d)};
_.ca9=function(v,e,d){var E=d!=null?d:v.iconsToFetch;E!=null&&E.length?e!==void 0&&e>=0?_.LI(_.RM,function(){ZwQ(v,E)},e):ZwQ(v,E):Promise.resolve()};
oLC=function(v,e,d){var E=this;this.renderFn=v;this.listeners=e;this.context=d;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var T;this.lastSeenPlayerApi=_.Ra((T=this.playerControlsData)==null?void 0:T.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.ml7(),void 0);_.N("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){VGt(E).setState({playerState:-1});E.resetRecentlyNavigatedJobId&&_.RM.cancelJob(E.resetRecentlyNavigatedJobId);
E.recentlyNavigated=!0;E.resetRecentlyNavigatedJobId=_.RM.addJob(function(){E.recentlyNavigated=!1},8,1E4)})};
oLC.prototype.setState=function(v){if(!_.N("mweb_player_skip_no_op_state_changes")||!WE1(v,this.state))if(this.state=Object.assign({},this.state,v),!_.N("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)v=-1,_.N("player_controls_log_creation_killswitch")||aV_()||(v=(0,_.E$)()),_.zE("pcu_s"),_.zE("pcu_se"),_.zE("pcu_rs"),this.renderFn(VGt(this)),_.zE("pcu_re"),i4s(v),_.RM.addJob(function(){_.zE("pcu_ap")},8)};
var VGt=function(v){var e;var d=_.Ra((e=v.playerControlsData)==null?void 0:e.playerApi);return Object.assign({},v.state,{setState:v.boundSetState,domMeasurements:{progressBarLineRect:v.progressBarLineRect},playerApi:d,appApi:v.context.appApi,playerContainer:v.context.playerContainer,playerControlContainer:v.context.playerControlContainer,uxConfig:v.context.uxConfig})},Jai=function(v){v.listeners.forEach(function(e){v.eventListenerCleanupFunctions.push(e.register(function(){return VGt(v)},function(){return v.getData()}))})},
GRC=function(v){v.eventListenerCleanupFunctions.forEach(function(e){e()});
v.eventListenerCleanupFunctions.length=0};
oLC.prototype.getData=function(){return this.playerControlsData};
var wis=new _.gG("crowdsourcedContextUserRatingFormFlowState");var Fq_=new _.gG("noteViewModel");var kD=new _.gG("abuseReportFlowState");var QHt=new _.gG("feedbackFormFlowState");var gLO=new _.gG("inputBoxViewModel");var uoO=new _.gG("flowNextStepCommand");var nLi=new _.gG("flowPrevStepCommand");var D_i=new _.gG("updateFlowCommand");_.U_S=new _.gG("flowStepRenderer");_.cE9=new _.gG("lengthValidationRule");var FEO=new _.gG("regexValidationRule");var gc9=new _.gG("selectedValidationRule");var piO=new _.gG("talkToRecsViewModel");var ve1=new _.gG("creatorGoalSetUpFlowDropdownItemViewModel");var eN9=new _.gG("creatorGoalSetUpFlowDropdownViewModel");var Nkf=new _.gG("thumbnailBadgeViewModel");var dk9=new _.gG("checkboxGroupViewModel");_.L8=new _.gG("radioButtonGroupViewModel");var Eei=new _.gG("radioButtonItemViewModel");var iwf=new _.gG("panelFooterViewModel");var Tti=new _.gG("ypcCancelRecurrenceCommand");var S$t=new _.gG("cancellationFlowState");var RZt=new _.gG("premiumPurchaseFlowState");var WYt=new _.gG("surveyAnswerCardRenderer");var aFQ=new _.gG("showMoreButtonRenderer");var iU9;var OUt,IFi=function(){if(OUt!==void 0)return OUt;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;iU9===void 0&&(iU9=document.createElement("template"));var E=iU9;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return OUt=v};var VD=function(){var v=_.P.apply(this,arguments)||this;v.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";v.goalDescription="";v.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";v.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";v.startButtonId="start-button";v.exampleButtonId="example-button";return v};
_.V(VD,_.P);_.W=VD.prototype;_.W.getGoalDropdownItems=function(){var v,e;return(e=_.L((v=this.data)==null?void 0:v.purchaseTargetDropdown,eN9))==null?void 0:e.dropdownItems};
_.W.getTimerDropdownItems=function(){var v,e;return(e=_.L((v=this.data)==null?void 0:v.timerDropdown,eN9))==null?void 0:e.dropdownItems};
_.W.getColorDropdownItems=function(){var v,e;return(e=_.L((v=this.data)==null?void 0:v.colorDropdown,eN9))==null?void 0:e.dropdownItems};
_.W.getDropdownItemText=function(v){var e;return(e=_.L(v,ve1))==null?void 0:e.itemLabel};
_.W.getDropdownItemValue=function(v){v=_.L(v,ve1);return(v==null?void 0:v.timeLimit)||(v==null?void 0:v.purchaseTarget)||(v==null?void 0:v.eligiblePurchaseType)};
_.W.updateFlowState=function(v){_.b4(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:v}])};
_.W.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.W.updateGoalValue=function(v){this.goal=v.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.W.onTextValueChanged=function(v){this.goalDescription=v.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.W.updateTimerValue=function(v){this.timer=v.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.W.updateTierValue=function(v){this.tier=v.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.W.getButtonViewModel=function(v){v=(v==null?void 0:v.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var e,d=_.L((e=this.data)==null?void 0:e.startGoalButton,_.lx);return Object.assign({},d,{state:v})};
_.vP.Object.defineProperties(VD,{template:{configurable:!0,enumerable:!0,get:function(){return IFi()}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],VD.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],VD.prototype,"goal",void 0);_.c([_.f(),_.w("design:type",Object)],VD.prototype,"goalDescription",void 0);_.c([_.f(),_.w("design:type",Object)],VD.prototype,"timer",void 0);_.c([_.f(),_.w("design:type",Object)],VD.prototype,"tier",void 0);
_.c([_.f(),_.w("design:type",Object)],VD.prototype,"startButtonId",void 0);_.c([_.f(),_.w("design:type",Object)],VD.prototype,"exampleButtonId",void 0);_.c([_.lh({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],VD);_.A(VD,"yt-creator-goal-set-up-flow-view-model",function(){return IFi()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var bUs;var Y$C;var mkt;var yo9=function(){return _.P.apply(this,arguments)||this};
_.V(yo9,_.P);_.c([_.f(),_.w("design:type",Object)],yo9.prototype,"data",void 0);_.c([_.lh({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],yo9);
_.A(yo9,"yt-survey-answer-card-renderer",function(){if(mkt===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Y$C===void 0&&(Y$C=document.createElement("template"));var E=Y$C;d.call(e,E.content.cloneNode(!0),v.content.firstChild);mkt=v}v=mkt;return v},{mode:2});var q$s;var ro9;var oD=function(){return _.P.apply(this,arguments)||this};
_.V(oD,_.P);_.W=oD.prototype;_.W.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.W.selectedItemChanged=function(v){_.b4(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[v.feedbackToken||""]}])};
_.W.surveyAnswerCardRendererClicked=function(v){if(v.target&&_.L(v.model.item,WYt)){var e=v.target;v=_.L(v.model.item,WYt);v.onTapCommand?_.ya(e,[v.onTapCommand],e):this.data.onTapCommand&&_.ya(e,[this.data.onTapCommand],e);this.selectedItemChanged(v)}};
_.W.checkIsCancellationStyle=function(v){return v==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.W.updateSelectedItemFromBinding=function(v){this.selectedItem=v.detail.value};
oD.prototype.onSelectedItemChanged=oD.prototype.onSelectedItemChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],oD.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],oD.prototype,"selectedItem",void 0);_.c([_.f({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.w("design:type",Boolean)],oD.prototype,"isCancellationStyle",void 0);
_.c([_.$v("selectedItem"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oD.prototype,"onSelectedItemChanged",null);_.c([_.lh({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],oD);
_.A(oD,"yt-survey-flow-step-renderer",function(){if(ro9===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;q$s===void 0&&(q$s=document.createElement("template"));var E=q$s;d.call(e,E.content.cloneNode(!0),v.content.firstChild);ro9=v}v=ro9;return v},{mode:2});var Jl=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return v};
_.V(Jl,_.P);Jl.prototype.handleSurveyFlowStepOptionChanged=function(v){this.ytdReduxBehavior.dispatch(_.Oo({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:v}));_.b4(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:v}}])};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Jl.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Jl.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Jl.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Jl);
_.A(Jl,"ytd-survey-flow-step-renderer",function(){if(bUs!==void 0)return bUs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return bUs=v},{mode:1});_.jMt=_.l(function(v){var e=v.data;var d=v.hideDivider;var E=v.isChannelInfoCard;v={};return _.m("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.m("div",{class:_.qe("yt-profile-identity-info-view-model-wiz__frame",(v["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=function(){return!e().channelBanner},v))},_.m(hN9,{profileIdentityInfoData:e}),_.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},_.m("div",
{class:"yt-profile-identity-info-view-model-wiz__avatar"},_.m(_.kz,{data:function(){return e().avatar}},{avatarViewModel:_.x7})),_.m(KYS,{profileIdentityInfoData:e})),_.m(_.y,{cond:function(){return e().channelDescription},
then:function(T){var S={};return _.m("div",{class:_.qe((S["yt-profile-identity-info-view-model-wiz__channel-description-alternate"]=function(){return!(E==null||!E())},S["yt-profile-identity-info-view-model-wiz__channel-description"]=function(){return!(E==null?0:E())},S))},T)}}),_.m($kQ,{profileIdentityInfoData:e}),_.m(_.y,{cond:function(){return!(d==null?0:d())},
then:function(){return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__divider"})}})))},"Cf");
_.jMt.idomCompat=!0;var $kQ=_.l(function(v){var e=v.profileIdentityInfoData;return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},_.m(_.jI,{each:function(){return e().subscribeButton?[e().subscribeButton,e().channelAccess]:[e().channelAccess]}},function(d){return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.m("div",{class:"yt-profile-identity-info-view-model-wiz--button"},_.m(_.kz,{data:function(){return d}},{buttonViewModel:_.yi,
subscribeButtonViewModel:_.x1})))}))},"Df"),KYS=_.l(function(v){var e=v.profileIdentityInfoData;
return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},_.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},_.m(sMs,{profileIdentityInfoData:e}),_.m(_.kz,{data:function(){return e().threeDotMenu}},{buttonViewModel:_.yi})),_.m(Nt_,{profileIdentityInfoData:e}))},"Ef"),sMs=_.l(function(v){var e=v.profileIdentityInfoData;
return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},function(){return e().channelDisplayName}),_.m(_.y,{cond:function(){return e().verifiedOrOacBadge},
then:function(d){return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.m(_.va,{data:function(){return{thumbnails:[{url:d().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Ff"),hN9=_.l(function(v){var e=v.profileIdentityInfoData;
return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},_.m(_.kz,{data:function(){var d=e().channelBanner;if(d)return{imageBannerViewModel:{image:d.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(d){return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},_.m(_.AH,{data:d.data,
isPositionRelative:!0}))}}))},"Gf"),Nt_=_.l(function(v){var e=v.profileIdentityInfoData;
return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.m("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.m("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},function(){return e().channelHandle}),_.m(_.y,{cond:function(){return e().channelPronouns&&e().channelHandle},
then:function(){return _.m("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.m("div",{dir:"auto",
class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},function(){return e().channelPronouns})),_.m("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.m("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return e().leftOfBulletInfo}),_.m(_.y,{cond:function(){return e().leftOfBulletInfo&&e().rightOfBulletInfo},
then:function(){return _.m("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.m("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return e().rightOfBulletInfo})))},"Hf");var kds;var G7=function(){return _.P.apply(this,arguments)||this};
_.V(G7,_.P);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],G7.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],G7.prototype,"data",void 0);_.c([_.z({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],G7);
_.A(G7,"ytd-channel-history-renderer",function(){if(kds!==void 0)return kds;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return kds=v},{mode:1});var LYs;var VaS=function(){return _.P.apply(this,arguments)||this};
_.V(VaS,_.P);_.c([_.f(),_.w("design:type",Object)],VaS.prototype,"data",void 0);_.c([_.z({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],VaS);
_.A(VaS,"ytd-feature-enablement-info-renderer",function(){if(LYs!==void 0)return LYs;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return LYs=v},{mode:1});var oe9;var Jow;var MV=function(){var v=_.P.apply(this,arguments)||this;v.textBoxMaxLength=_.N("enable_tvod_campaign_code_integration")?15:12;return v};
_.V(MV,_.P);_.W=MV.prototype;_.W.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.W.onSubmit=function(){var v=this.data.serviceEndpoint,e=_.L(v,_.nv);e&&v&&(e.couponCode=this.userInput,_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}}))};
_.W.validate=function(){var v=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=v&&!this.data.errorMessage;this.showErrorMessage=v&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.N("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.W.computeStyle=function(v){return v};
_.W.computeShowValidationBelowInput=function(v){return v!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.W.updateUserInputFromBinding=function(v){this.userInput=v.currentTarget.value};
_.W.updateShowErrorMessageFromBinding=function(v){this.showErrorMessage=v.detail.value};
_.vP.Object.defineProperties(MV.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
MV.prototype.dataChanged=MV.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],MV.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],MV.prototype,"userInput",void 0);_.c([_.f(),_.w("design:type",Boolean)],MV.prototype,"disableApplyButton",void 0);_.c([_.f(),_.w("design:type",Boolean)],MV.prototype,"hideApplyButton",void 0);
_.c([_.f(),_.w("design:type",Boolean)],MV.prototype,"hideErrorMessage",void 0);_.c([_.f(),_.w("design:type",Boolean)],MV.prototype,"showTick",void 0);_.c([_.f(),_.w("design:type",Boolean)],MV.prototype,"showErrorMessage",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],MV.prototype,"couponStyle",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.w("design:type",Boolean)],MV.prototype,"showValidationBelowInput",void 0);_.c([_.f(),_.w("design:type",Object)],MV.prototype,"textBoxMaxLength",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MV.prototype,"dataChanged",null);
_.c([_.t("showTick","showErrorMessage","userInput"),_.w("design:type",String),_.w("design:paramtypes",[])],MV.prototype,"validationState",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],MV);
_.A(MV,"ytd-ypc-coupon-renderer",function(){if(Jow!==void 0)return Jow;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Jow=v},{mode:1});var tl=function(){return _.P.apply(this,arguments)||this};
_.V(tl,_.P);tl.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"}}}};
tl.prototype.computeStyle=function(v){return v};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],tl.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],tl.prototype,"buttonStyle",void 0);_.c([_.z({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],tl);
_.A(tl,"ytd-flow-bottom-bar-renderer",function(){if(oe9!==void 0)return oe9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return oe9=v},{mode:1});var GdO;var Mai;var taC;var f8=function(){return _.P.apply(this,arguments)||this};
_.V(f8,_.P);f8.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
f8.prototype.focus=function(v){this.title&&_.gt(this.title,v)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],f8.prototype,"data",void 0);_.c([_.sg("#title"),_.w("design:type",HTMLElement)],f8.prototype,"title",void 0);_.c([_.z({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],f8);
_.A(f8,"ytd-flow-top-bar-renderer",function(){if(taC!==void 0)return taC;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return taC=v},{mode:1});var fF1;var RNQ;var PRQ;var RD=function(){return _.P.apply(this,arguments)||this};
_.V(RD,_.P);RD.prototype.freeTextValueChanged=function(){_.b4(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
RD.prototype.updateFreeTextValueFromBinding=function(v){this.freeTextValue=v.detail.value};
_.vP.Object.defineProperties(RD.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(e=(v=this.data)==null?void 0:v.responseMaxLength)!=null?e:500,E;return((E=this.freeTextValue)!=null?E:"").length>=d?"maxed-out":""}}});
RD.prototype.freeTextValueChanged=RD.prototype.freeTextValueChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],RD.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],RD.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],RD.prototype,"freeTextValue",void 0);_.c([_.sg("#user-input"),_.w("design:type",HTMLTextAreaElement)],RD.prototype,"input",void 0);
_.c([_.t("freeTextValue"),_.w("design:type",Object),_.w("design:paramtypes",[])],RD.prototype,"characterLimitClass",null);_.c([_.$v("freeTextValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],RD.prototype,"freeTextValueChanged",null);_.c([_.lh({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],RD);
_.A(RD,"yt-free-text-input-flow-step-renderer",function(){if(PRQ===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;RNQ===void 0&&(RNQ=document.createElement("template"));var E=RNQ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);PRQ=v}v=PRQ;return v},{mode:2});var Pf=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return v};
_.V(Pf,_.P);Pf.prototype.handleFreeTextFlowStepInputChanged=function(v){_.b4(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:v}}])};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Pf.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Pf.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Pf.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Pf);
_.A(Pf,"ytd-free-text-input-flow-step-renderer",function(){if(fF1!==void 0)return fF1;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return fF1=v},{mode:1});var xk9;var Bt1;var CRi=function(){return _.P.apply(this,arguments)||this};
_.V(CRi,_.P);_.c([_.f(),_.w("design:type",Object)],CRi.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],CRi);
_.A(CRi,"ytd-metadata-line-renderer",function(){if(Bt1!==void 0)return Bt1;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Bt1=v},{mode:1});var xD=function(){return _.P.apply(this,arguments)||this};
_.V(xD,_.P);xD.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],xD.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],xD.prototype,"isMasthead",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],xD);
_.A(xD,"ytd-media-product-renderer",function(){if(xk9!==void 0)return xk9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return xk9=v},{mode:1});var X8s;var Bf=function(){return _.P.apply(this,arguments)||this};
_.V(Bf,_.P);Bf.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Bf.prototype.onBillboardImageLoaded=function(){_.Iq(this.hostElement,"yt-refit")};
Bf.prototype.onBillboardImageLoaded=Bf.prototype.onBillboardImageLoaded;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Bf.prototype,"data",void 0);_.c([_.sg("#billboardImage"),_.w("design:type",Object)],Bf.prototype,"billboardImage",void 0);_.c([_.Kq("yt-img-shadow-loaded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Bf.prototype,"onBillboardImageLoaded",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Bf);
_.A(Bf,"ytd-billboard-masthead-renderer",function(){if(X8s!==void 0)return X8s;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return X8s=v},{mode:1});var zNQ;var C8=function(){var v=_.P.apply(this,arguments)||this;v.smallSize=!1;return v};
_.V(C8,_.P);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],C8.prototype,"ytComponentBehaviorType",void 0);_.c([_.f(),_.w("design:type",Object)],C8.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],C8.prototype,"smallSize",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],C8);
_.A(C8,"ytd-bullet-formatted-string",function(){if(zNQ!==void 0)return zNQ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return zNQ=v},{mode:1});var lFv;var XC=function(){return _.P.apply(this,arguments)||this};
_.V(XC,_.P);XC.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],XC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],XC.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],XC);
_.A(XC,"ytd-offer-detail-renderer",function(){if(lFv!==void 0)return lFv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return lFv=v},{mode:1});var HUi;var z7=function(){return _.P.apply(this,arguments)||this};
_.V(z7,_.P);z7.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],z7.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],z7);
_.A(z7,"ytd-offer-detail-step-renderer",function(){if(HUi!==void 0)return HUi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return HUi=v},{mode:1});var Ao9;var li=function(){var v=_.P.apply(this,arguments)||this;v.isInOfferModule=!1;return v};
_.V(li,_.P);_.W=li.prototype;_.W.computeHasEndpoint=function(){var v;return!((v=this.data)==null||!v.onClickCommand)};
_.W.dataChanged=function(){var v;if((v=this.data)==null?0:v.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")};
_.W.detached=function(){var v;if((v=this.data)==null?0:v.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.W.handleClickEvent=function(){var v;if((v=this.data)==null?0:v.onClickCommand){var e;this.componentBehavior.resolveCommand((e=this.data)==null?void 0:e.onClickCommand)}};
_.W.onContentKeyDown=function(v){v.key==="Enter"?this.handleClickEvent(v):v.key===" "&&v.preventDefault()};
_.W.onContentKeyUp=function(v){v.key===" "&&this.handleClickEvent(v)};
li.prototype.dataChanged=li.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],li.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],li.prototype,"data",void 0);_.c([_.f({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],li.prototype,"hasEndpoint",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],li.prototype,"isInOfferModule",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],li.prototype,"dataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],li);
_.A(li,"ytd-channel-masthead-renderer",function(){if(Ao9!==void 0)return Ao9;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Ao9=v},{mode:1});var ZU9;var Hf=function(){var v=_.P.apply(this,arguments)||this;v.thumbnailObjectFit="CONTAIN";v.thumbnailObjectPosition="LEFT";v.isExpanded=!1;return v};
_.V(Hf,_.P);_.W=Hf.prototype;_.W.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.W.dataChanged=function(){this.resetStates()};
_.W.computeisTapOnOfferInfoContainerEnabled=function(){var v;return((v=this.data)==null?void 0:v.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.W.onExpandBtnClick=function(){var v,e=_.L((v=this.data)==null?void 0:v.showMoreButtonRenderer,aFQ);e&&_.yV(_.NC(),e.trackingParams);this.isExpanded=!this.isExpanded};
_.W.onOfferInfoClick=function(v){this.isTapOnOfferInfoContainerEnabled&&(_.UG(_.vg(v)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.pM(_.vg(v)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.W.onBottomBarClick=function(){this.executeTapCommand()};
_.W.executeTapCommand=function(){var v,e=(v=this.data)==null?void 0:v.tapCommand;e&&this.ytComponentBehavior.resolveCommand(e)};
_.W.resetStates=function(){this.isExpanded=!1};
_.vP.Object.defineProperties(Hf.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var v=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),e,d,E;return((e=this.data)==null?void 0:e.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&v&&!!((d=this.data)==null?0:(E=d.benefits)==null?0:E.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((e=_.L((v=this.data)==null?void 0:v.showMoreButtonRenderer,aFQ))==null?void 0:e.showMoreButtonTitle)||((d=this.data)==null?void 0:d.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((e=_.L((v=this.data)==null?void 0:v.showMoreButtonRenderer,aFQ))==null?void 0:e.showLessButtonTitle)||((d=this.data)==null?void 0:d.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var v;return(v=this.showLessButtonTitle)!=null?v:""}var e;return(e=this.showMoreButtonTitle)!=null?e:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((v=this.data)==null?void 0:v.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((e=this.data)==null?0:e.footerTitle)||((d=this.data)==null?0:d.footerSubtitle))}}});
Hf.prototype.dataChanged=Hf.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Hf.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",String)],Hf.prototype,"thumbnailObjectFit",void 0);
_.c([_.f(),_.w("design:type",String)],Hf.prototype,"thumbnailObjectPosition",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.w("design:type",Boolean)],Hf.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.c([_.f(),_.w("design:type",Object)],Hf.prototype,"isExpanded",void 0);_.c([_.f(),_.w("design:type",Object)],Hf.prototype,"data",void 0);_.c([_.f({computed:"computeIcon_(data.footerIcon)"}),_.w("design:type",String)],Hf.prototype,"icon",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Hf.prototype,"dataChanged",null);_.c([_.t("data.thumbnail"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Hf.prototype,"hasThumbnail",null);_.c([_.t("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Hf.prototype,"enableExpandButton",null);
_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Hf.prototype,"enableOfferContentIcon",null);_.c([_.t("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.w("design:type",Object),_.w("design:paramtypes",[])],Hf.prototype,"showMoreButtonTitle",null);_.c([_.t("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.w("design:type",Object),_.w("design:paramtypes",[])],Hf.prototype,"showLessButtonTitle",null);
_.c([_.t("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.w("design:type",String),_.w("design:paramtypes",[])],Hf.prototype,"expandedBtnText",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Hf.prototype,"enableBottomBar",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Hf);
_.A(Hf,"ytd-offer-card-renderer",function(){if(ZU9!==void 0)return ZU9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ZU9=v},{mode:1});var coO;var Al=function(){return _.P.apply(this,arguments)||this};
_.V(Al,_.P);Al.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"}}}};
Al.prototype.onClick=function(v){if(!_.UG(v.composedPath()||[],this.hostElement,["A".toString()])){var e,d;if((v=(d=_.L((e=this.data)==null?void 0:e.actionButton,_.BD))==null?void 0:d.command)&&!this.ytComponentBehavior.resolveCommand(v)){var E;(E=_.NC())==null||E.clickCommand(v);_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}})}}};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Al.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Al.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Al);
_.A(Al,"ytd-offer-content-renderer",function(){if(coO!==void 0)return coO;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return coO=v},{mode:1});var w8C;var Zz=function(){return _.P.apply(this,arguments)||this};
_.V(Zz,_.P);Zz.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.vP.Object.defineProperties(Zz.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var v,e;return!((v=this.data)==null||!v.title)||!((e=this.data)==null||!e.description)}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Zz.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Zz.prototype,"hasHeaderData",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Zz);
_.A(Zz,"ytd-offer-section-renderer",function(){if(w8C!==void 0)return w8C;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return w8C=v},{mode:1});var FYC;var cf=function(){return _.P.apply(this,arguments)||this};
_.V(cf,_.P);
cf.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],cf.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],cf);
_.A(cf,"ytd-offer-selection-step-renderer",function(){if(FYC!==void 0)return FYC;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return FYC=v},{mode:1});var QMs;var wl=function(){return _.P.apply(this,arguments)||this};
_.V(wl,_.P);wl.prototype.computeStyle=function(v){return v};
wl.prototype.computeImageWidth=function(v){return v==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.c([_.f({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.w("design:type",String)],wl.prototype,"containerStyle",void 0);_.c([_.f({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.w("design:type",String)],wl.prototype,"imageWidth",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wl.prototype,"data",void 0);
_.c([_.z({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],wl);
_.A(wl,"ytd-confirmation-masthead-renderer",function(){if(QMs!==void 0)return QMs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return QMs=v},{mode:1});var get;var FC=function(){return _.P.apply(this,arguments)||this};
_.V(FC,_.P);FC.prototype.computeStyle=function(v){return v};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],FC.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.w("design:type",String)],FC.prototype,"containerStyle",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],FC);
_.A(FC,"ytd-purchase-complete-detail-renderer",function(){if(get!==void 0)return get;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return get=v},{mode:1});var uns;var QD=function(){var v=_.P.apply(this,arguments)||this;v.scriptsAppended=!1;return v};
_.V(QD,_.P);QD.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"}}}};
QD.prototype.onDataChanged=function(){var v=this.get("data.gtmId");v&&(_.tb(v,_.Bb("GL","")),this.setupConversionTracking())};
QD.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var v=document.createElement("noscript");v.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(v);this.scriptsAppended=!0}};
QD.prototype.onDataChanged=QD.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],QD.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],QD.prototype,"scriptsAppended",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QD.prototype,"onDataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],QD);
_.A(QD,"ytd-purchase-complete-step-renderer",function(){if(uns!==void 0)return uns;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return uns=v},{mode:1});var nef;var gl=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(gl,_.P);gl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],gl.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],gl.prototype,"darkerDarkTheme",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],gl);
_.A(gl,"ytd-ypc-transaction-error-message-renderer",function(){if(nef!==void 0)return nef;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return nef=v},{mode:1});var DkO;var Uk9;var ui=function(){var v=_.P.apply(this,arguments)||this;v.handlePhoneVerificationSuccess=function(e){if(v.isValidPhoneVerificationCompletionMessageEvent(e)){var d;((d=v.data)==null?0:d.nextStepCommand)&&v.ytComponentBehavior.resolveCommand(v.data.nextStepCommand)}};
return v};
_.V(ui,_.P);ui.prototype.isValidPhoneVerificationCompletionMessageEvent=function(v){if(v.data!=="yt-phone-verification-complete")return!1;v=_.DV(v.origin);return v!==null&&v.includes("youtube.com")};
ui.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
ui.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ui.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ui.prototype,"data",void 0);_.c([_.lh({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],ui);
_.A(ui,"yt-feature-enablement-soft-entry-renderer",function(){if(Uk9===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;DkO===void 0&&(DkO=document.createElement("template"));var E=DkO;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Uk9=v}v=Uk9;return v},{mode:1});var p8i;var vf9;var eeC;var dG9;var Efi=function(){return _.P.apply(this,arguments)||this};
_.V(Efi,_.P);_.c([_.f(),_.w("design:type",Object)],Efi.prototype,"data",void 0);_.c([_.lh({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Efi);
_.A(Efi,"yt-benefits-item-renderer",function(){if(dG9===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;eeC===void 0&&(eeC=document.createElement("template"));var E=eeC;d.call(e,E.content.cloneNode(!0),v.content.firstChild);dG9=v}v=dG9;return v},{mode:2});var Tb1;var SNS;var n8=function(){return _.P.apply(this,arguments)||this};
_.V(n8,_.P);n8.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
n8.prototype.computeisWithoutPadding=function(){var v;return((v=this.data)==null?void 0:v.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],n8.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.w("design:type",Boolean)],n8.prototype,"isWithoutPadding",void 0);_.c([_.lh({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],n8);
_.A(n8,"yt-benefits-section-renderer",function(){if(SNS===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Tb1===void 0&&(Tb1=document.createElement("template"));var E=Tb1;d.call(e,E.content.cloneNode(!0),v.content.firstChild);SNS=v}v=SNS;return v},{mode:2});var Dz=function(){return _.P.apply(this,arguments)||this};
_.V(Dz,_.P);Dz.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Dz.prototype.computeisUsingLargeWidth=function(){var v;return((v=this.data)==null?void 0:v.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Dz.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.w("design:type",Boolean)],Dz.prototype,"isUsingLargeWidth",void 0);_.c([_.lh({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Dz);
_.A(Dz,"yt-benefits-flow-step-renderer",function(){if(vf9===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;p8i===void 0&&(p8i=document.createElement("template"));var E=p8i;d.call(e,E.content.cloneNode(!0),v.content.firstChild);vf9=v}v=vf9;return v},{mode:2});var WHf;var aqs;var Uv=function(){return _.P.apply(this,arguments)||this};
_.V(Uv,_.P);Uv.prototype.checkIsUsingLargeWidth=function(){var v;return((v=this.data)==null?void 0:v.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.c([_.f(),_.w("design:type",Object)],Uv.prototype,"data",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.c([_.f({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.w("design:type",Boolean)],Uv.prototype,"isUsingLargeWidth",void 0);_.c([_.lh({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Uv);
_.A(Uv,"yt-confirmation-flow-step-renderer",function(){if(aqs===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;WHf===void 0&&(WHf=document.createElement("template"));var E=WHf;d.call(e,E.content.cloneNode(!0),v.content.firstChild);aqs=v}v=aqs;return v},{mode:2});var iI9;var OIv;var Iqv=function(){return _.P.apply(this,arguments)||this};
_.V(Iqv,_.P);_.c([_.f(),_.w("design:type",Object)],Iqv.prototype,"data",void 0);_.c([_.lh({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Iqv);
_.A(Iqv,"yt-info-flow-step-renderer",function(){if(OIv===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;iI9===void 0&&(iI9=document.createElement("template"));var E=iI9;d.call(e,E.content.cloneNode(!0),v.content.firstChild);OIv=v}v=OIv;return v},{mode:2});var bIs;var YNO;var mGO=function(){return _.P.apply(this,arguments)||this};
_.V(mGO,_.P);_.c([_.f(),_.w("design:type",Object)],mGO.prototype,"data",void 0);_.c([_.lh({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],mGO);
_.A(mGO,"yt-info-list-flow-step-renderer",function(){if(YNO===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;bIs===void 0&&(bIs=document.createElement("template"));var E=bIs;d.call(e,E.content.cloneNode(!0),v.content.firstChild);YNO=v}v=YNO;return v},{mode:2});var yI9=_.l(function(v){var e=v.data;return _.m("styled-text-view-model",{class:_.qe("ytStyledTextViewModelHost",function(){return ssC(e().fontAttributes)},function(){return jsO(e().color)})},_.m(_.Dh,{text:function(){return e().text},
ariaLabel:function(){var d,E,T;return(T=(d=e().accessibility)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label)!=null?T:""}}))},"If");
yI9.idomCompat=!0;var qNO=_.l(function(v){var e=function(){var T,S,O,b;return(b=(O=(T=v.alt)==null?void 0:T.call(v))!=null?O:(S=v.data().accessibilityData)==null?void 0:S.label)!=null?b:""},d=function(){return v.data().imageWidth},E=function(){return v.data().imageHeight};
return _.m("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.m(_.y,{cond:function(){var T=v.data();if(T){var S,O,b;var Y=((S=_.dk().resolve(_.eG(_.n1)))==null?0:S())?(O=T.imageDark)!=null?O:T.imageLight:(b=T.imageLight)!=null?b:T.imageDark}else Y=void 0;return Y},
then:function(T){return _.m(_.va,Object.assign({},v,{data:T,alt:e,targetWidth:d,targetHeight:E,preserveHeight:!0,preserveWidth:!0}))}}))},"Jf");
qNO.idomCompat=!0;var p8=_.l(function(v){var e=v.data;v=_.e2(function(){return e().slots},[]);
var d=_.e2(function(){return e().layoutProperties},{}),E=_.dk().resolve(_.U_);
return _.m("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:qWs(d,E)},_.m(_.jI,{each:v,keyBy:"INDEX"},function(T){return _.m("div",{class:"ytContainerLayoutViewModelSlot",style:qWs(function(){return T().layoutProperties},E)},_.m(_.kz,{data:function(){return T().contents}},{containerLayoutViewModel:p8,
badgeViewModel:_.W4,buttonViewModel:_.yi,styledTextViewModel:yI9,contentPreviewImageViewModel:function(S){return _.m(_.a3,{data:S.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(S){return _.m(qNO,{data:S.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Kf");
p8.idomCompat=!0;var rIw=_.l(function(v){var e=v.data;var d=v.stateFns;var E=function(){var q=e(),r=q.productId;return!(!q.clearGroupId&&!r)},T=function(){var q=e(),r=q.clearGroupId;
return(q=q.productId)?d().isProductSelected(q):r?d().getSelectedProductByGroupId(r)==null:!1},S=function(){var q=e(),r=q.clearGroupId;
if(q=q.productId)d().onProductSelected(q);else if(r)d().onClearGroupSelected(r)},O=function(){var q=e(),r=q.clearGroupId;
if(q=q.productId){var h;return"group:"+(((h=d().getProductById(q))==null?void 0:h.groupId)||"")}return r?"group:"+r:""},b=_.e2(function(){return e().header},[]),Y=_.e2(function(){return e().body},[]);
return _.m("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.m(_.y,{cond:function(){return b().length>0||E()},
then:function(){return _.m("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.m("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.m(_.kz,{data:b},{containerLayoutViewModel:function(q){return _.m("div",{class:"ytPdpCardSectionViewModelContentItem"},_.m(p8,{data:q.data}))},
styledTextViewModel:function(q){return _.m("div",{class:"ytPdpCardSectionViewModelContentItem"},_.m(yI9,{data:q.data}))}})),_.m(_.y,{cond:E,
then:function(){return _.m("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.m(_.Ca,{checked:T,name:O,onChange:S}))}}))}}),_.m(_.y,{cond:function(){return Y().length>0},
then:function(){return _.m("div",null,_.m(_.kz,{data:Y},{containerLayoutViewModel:function(q){return _.m("div",{class:"ytPdpCardSectionViewModelContentItem"},_.m(p8,{data:q.data}))}}))}}))},"Lf");
rIw.idomCompat=!0;var heC=_.l(function(v){var e=v.data;var d=v.stateFns;return _.m("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.m(_.y,{cond:function(){return e().banner},
then:function(E){return _.m("div",{class:"ytPdpCardViewModelBanner"},_.m(_.Dh,{text:E}))}}),_.m(_.kz,{data:function(){return e().sections}},{pdpCardSectionViewModel:function(E){E=E.data;
var T={};return _.m("div",{class:_.qe("ytPdpCardViewModelSectionContainer",(T.ytPdpCardViewModelShowDividers=function(){return e().showDividers},T))},_.m(rIw,{data:E,
stateFns:d}))}}))},"Mf");
heC.idomCompat=!0;var KHf=_.l(function(v){var e=v.data;var d=v.isOverlay;v={};return _.m("pdp-masthead-view-model",{class:_.qe("ytPdpMastheadViewModelHost",(v.ytPdpMastheadViewModelIsOverlay=d,v))},_.m(_.kz,{data:function(){return e().image}},{contentPreviewImageViewModel:_.a3,
themedImageViewModel:function(E){return _.m(qNO,{data:E.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.m(_.y,{cond:function(){return e().title},
then:function(E){return _.m("h1",{class:"ytPdpMastheadViewModelHeading"},_.m(_.Dh,{text:E,isOverlay:d}))}}),_.m(_.jI,{each:function(){var E;
return(E=e().finePrint)!=null?E:[]}},function(E){return _.m("div",{class:"ytPdpMastheadViewModelFinePrint"},_.m(_.Dh,{text:E,
isOverlay:d}))}))},"Nf");
KHf.idomCompat=!0;var $Gw=_.l(function(v){var e=v.data;var d=v.stateFns;var E=function(){return"pdp-pricing-group-selector-"+e().pricingGroupAttributeIds},T=_.e2(function(){return e().pricingGroupSelectorSectionHeader});
return _.m("pdp-pricing-group-selector-view-model",null,_.m(_.y,{cond:function(){return!!T()},
then:function(){return _.m(_.kz,{data:T},{sectionHeaderViewModel:function(S){S=S.data;var O={};return _.m("div",{class:_.qe("ytPdpPricingGroupSelectorViewModelSectionHeader",(O.ytPdpPricingGroupSelectorViewModelFullBleed=!0,O.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,O))},_.m(_.mz,{data:S}))}})}}),_.m("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.m(_.jI,{each:function(){var S=d().getSelectedProductByGroupId(e().groupId);
if(!S)return _.PV(Error("Oj`"+e().groupId)),[];var O,b=(O=e().pricingGroupAttributeIds)!=null?O:[],Y;if((Y=S.pricingGroups)==null||!Y.length||!b.length)return[];O=S.pricingGroups.filter(function(K){return b.length?K.pricingGroupAttributes.every(function(k){return b.includes(k)}):!1});
S=[];if(b.length>0){O=[].concat(_.t7(O));Y=_.a(b);for(var q=Y.next(),r={};!q.done;r={targetAttrId:void 0},q=Y.next())r.targetAttrId=q.value,q=O.findIndex(function(K){return function(k){return k.pricingGroupAttributes.includes(K.targetAttrId)}}(r)),q!==-1&&(S.push(O[q]),O.splice(q,1))}var h=d().getSelectedPricingGroupAttributesByGroupId(e().groupId);
return S.map(function(K){var k=!1;h&&K.pricingGroupAttributes&&(k=K8(K.pricingGroupAttributes,h));return{pricingGroup:K,isSelected:k}})},
keyBy:function(S){return S.pricingGroup.pricingGroupId}},function(S){return _.m("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.m("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.m(_.kz,{data:function(){return S().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:p8})),_.m("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.m(_.Ca,{checked:function(){return S().isSelected},
name:E,onClick:function(){d().onPricingGroupSelected(S().pricingGroup.pricingGroupId)}})))})))},"Of");
$Gw.idomCompat=!0;var jIv=_.l(function(v){var e=v.data;var d=v.stateFns;var E=function(){var O=d().getSelectedPricingOptions().map(function(q){return q.pricingOptionId}),b=d().getSelectedProductByGroupId(e().groupId);
if(!b)return _.PV(Error("Pj`"+e().groupId)),[];var Y=d().getSelectedPricingGroupAttributesByGroupId(e().groupId);return VIv(b.pricingOptions,Y,O)},T=_.e2(function(){return e().pricingOptionSelectorSectionHeader}),S=function(){return E().length>1};
return _.m("pdp-pricing-option-selector-view-model",null,_.m(_.y,{cond:function(){return!!T()&&S()},
then:function(){return _.m(_.kz,{data:T},{sectionHeaderViewModel:function(O){O=O.data;var b={};return _.m("div",{class:_.qe("ytPdpPricingOptionSelectorViewModelSectionHeader",(b.ytPdpPricingOptionSelectorViewModelFullBleed=!0,b.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,b))},_.m(_.mz,{data:O}))}})}}),_.m(_.y,{cond:S,
then:function(){return _.m("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.m(_.jI,{each:E,keyBy:"INDEX"},function(O){return _.m("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.m("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.m(_.kz,{data:function(){return O().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:p8})),_.m("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.m(_.Ca,{checked:function(){return O().isSelected},
onClick:function(){d().onPricingOptionSelected(O().pricingOption.pricingOptionId);var b=O().pricingOption.onSelectPricingOption;if(b=_.lk(b)){var Y;(Y=_.dk().resolve(_.EI))==null||Y.resolveCommand(b)}}})))}))}}))},"Pf");
jIv.idomCompat=!0;var sI_=_.l(function(v){var e=v.data;var d=v.stateFns;return _.m("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.m(_.kz,{data:function(){var E,T;return(T=(E=d().getSelectedPricingOptions()[0])==null?void 0:E.primaryButton)!=null?T:e().emptyStateButton}},{buttonViewModel:_.yi}))},"Qf");
sI_.idomCompat=!0;var NbQ=_.l(function(v){var e=v.stateFns;return _.m("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.m(_.kz,{data:function(){return e().getSelectedPricingOptions().flatMap(function(d){return d.summaryLines}).filter(function(d){return!!d})}},{containerLayoutViewModel:function(d){return _.m("div",{class:"ytPdpSummaryViewModelLineItem"},_.m(p8,{data:d.data}))}}))},"Rf");
NbQ.idomCompat=!0;var kNv=_.l(function(v){function e(B){var X=O();_.vz(_.M0("pdpStateEntity",X,{key:X,selectedPricingOptions:B}))}
var d=v.data;var E=v.internalScrolling;var T=v.stateFnsForTesting;var S=_.e2(function(){return d().allProducts},[]),O=_.e2(function(){return d().pdpStateEntityKey},""),b=_.Kv(ocs,O),Y=_.yl(function(){_.M4(!0);
var B;return(B=T==null?void 0:T())!=null?B:Grw(b,S,e)},void 0,"pjJzrd"),q=_.e2(function(){return d().body},[]),r=_.e2(function(){return d().columnBreakHints},[]),h=function(){return d().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},K=function(){return h()||d().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},k=_.yl(function(){var B=_.Zx(d().background),X;
if(B==null?0:(X=B.sources)==null?0:X.length){var Z=Z===void 0?!0:Z;B=_.Gg$(void 0,B.sources,void 0,Z,Z?1E3:void 0,Z?void 0:1E3)}else B=null;return B},void 0,"GO4GAe");
v=_.jM({"--pdp-view-model-background":function(){return k()?"url("+k()+")":void 0}});
var J={};E=_.qe("ytPdpViewModelHost",(J.ytPdpViewModelHasBackground=function(){return K()||!!k()},J.ytPdpViewModelHasDarkBackground=K,J.ytPdpViewModelHasScrim=h,J.ytPdpViewModelInternalScrolling=_.e2(E,!1),J));
var R=function(B){var X={};return _.qe("ytPdpViewModelItem",(X.ytPdpViewModelFullBleed=function(){return MIS(B())==="dividerViewModel"||MIS(B())==="sectionHeaderViewModel"},X.ytPdpViewModelNoVerticalPadding=function(){return MIS(B())==="sectionHeaderViewModel"},X))};
_.Gr(function(){var B=d().onStartCommand;if(B&&(B=_.lk(B))){var X;(X=_.dk().resolve(_.EI))==null||X.resolveCommand(B)}});
return _.m("pdp-view-model",{class:E,style:v},_.m("div",{class:"ytPdpViewModelColumnContainer"},_.m(_.jI,{each:function(){return tI9(q(),r())},
keyBy:"INDEX"},function(B){return _.m("div",{class:"ytPdpViewModelColumn"},_.m(_.kz,{data:B},{containerLayoutViewModel:function(X,Z){X=X.data;return _.m("div",{class:R(function(){return B()[Z()]})},_.m(p8,{data:X}))},
dividerViewModel:function(X,Z){X=X.data;return _.m("div",{class:R(function(){return B()[Z()]})},_.m(_.RSE,{data:X}))},
pdpCardViewModel:function(X,Z){X=X.data;return _.m("div",{class:R(function(){return B()[Z()]})},_.m(heC,{data:X,
stateFns:Y}))},
pdpMastheadViewModel:function(X,Z){X=X.data;return _.m("div",{class:R(function(){return B()[Z()]})},_.m(KHf,{data:X,
isOverlay:K}))},
pdpPricingGroupSelectorViewModel:function(X,Z){X=X.data;return _.m("div",{class:R(function(){return B()[Z()]})},_.m($Gw,{data:X,
stateFns:Y}))},
pdpPricingOptionSelectorViewModel:function(X,Z){X=X.data;return _.m("div",{class:R(function(){return B()[Z()]})},_.m(jIv,{data:X,
stateFns:Y}))},
pdpPrimaryButtonViewModel:function(X,Z){X=X.data;return _.m("div",{class:R(function(){return B()[Z()]})},_.m(sI_,{data:X,
stateFns:Y}))},
pdpSummaryViewModel:function(X,Z){X=X.data;return _.m("div",{class:R(function(){return B()[Z()]})},_.m(NbQ,{data:X,
stateFns:Y}))},
sectionHeaderViewModel:function(X,Z){X=X.data;return _.m("div",{class:R(function(){return B()[Z()]})},_.m(_.mz,{data:X}))}}))})))},"Sf");
kNv.idomCompat=!0;_.aZ(kNv,"pdp-view-model",{props:{data:_.U1,stateFnsForTesting:_.SM,internalScrolling:_.SM}});var LH9=_.l(function(v){var e=v.data;var d=v.className;var E=_.Kv(_.QZ,function(){return e().flowStateEntityKey});
return _.m("ytm-premium-purchase-button-renderer",{class:_.qe("ytPremiumPurchaseButtonRendererHost",d)},_.m(_.kz,{data:function(){var T;return(T=_.L(E(),RZt))==null?void 0:T.primaryButtonOverride}},{buttonRenderer:function(T){return _.m(_.D3,{data:T.data,
className:d})},
buttonViewModel:function(T){return _.m(_.yi,{data:T.data,className:d})}}))},"Tf");
LH9.idomCompat=!0;var Vhs=_.l(function(v){var e=v.data;v=v.className;var d=function(){return fV_(e().style)},E=_.qe("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",d),T=_.qe("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",d);
return _.m("yt-flow-bottom-bar-renderer",{class:_.qe("yt-flow-bottom-bar-renderer",v,d)},_.m(_.kz,{data:function(){return e().secondaryButton}},{buttonRenderer:function(S){return _.m(_.D3,{data:S.data,
className:T})},
buttonViewModel:function(S){return _.m(_.yi,{data:S.data,className:T})},
premiumPurchaseButtonRenderer:function(S){return _.m(LH9,{data:S.data,className:T})}}),_.m(_.kz,{data:function(){return e().primaryButton}},{buttonRenderer:function(S){return _.m(_.D3,{data:S.data,
className:E})},
buttonViewModel:function(S){return _.m(_.yi,{data:S.data,className:E})},
premiumPurchaseButtonRenderer:function(S){return _.m(LH9,{data:S.data,className:E})}}))},"Uf");
Vhs.idomCompat=!0;_.aZ(Vhs,"yt-flow-bottom-bar-renderer",{props:{data:_.U1,className:_.U1}});var off=_.l(function(v){var e=_.qe(v.className,"ytOfferSummaryRendererHost");return _.m("yt-offer-summary-renderer",{class:e},_.m("div",{class:"ytOfferSummaryRendererTextContainer"},_.m("div",{class:"ytOfferSummaryRendererEyebrowText"},_.m(_.Dh,{text:function(){return v.data().eyebrowText}})),_.m("div",{class:"ytOfferSummaryRendererTitle"},_.m(_.Dh,{text:function(){return v.data().title}})),_.m("div",{class:"ytOfferSummaryRendererSubtitle"},_.m(_.Dh,{text:function(){return v.data().subtitle}})),_.m("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.m(_.jI,{each:function(){var d;
return(d=v.data().featureListData)!=null?d:[]}},function(d){var E;
return _.m("div",{class:"ytOfferSummaryRendererFeatureList"},_.m(_.sG,{icon:(E=d.icon)==null?void 0:E.iconType,active:function(){return d.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(d.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"}}}),_.m("div",{class:"ytOfferSummaryRendererFeatureListText"},_.m(_.Dh,{text:d.text,
className:function(){return d.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.m("div",{class:"ytOfferSummaryRendererDescription"},_.m(_.Dh,{text:function(){return v.data().description}}))))},"Vf");_.aZ(_.l(function(v){var e={};e=_.qe("ytOfferSummaryFlowStepRendererHost",(e.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=v.shouldDisableHeaderTopMargin,e));return _.m("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:e},_.m("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.m("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.m(_.Dh,{text:function(){return v.data().header}})),_.m("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.m(_.Dh,{text:function(){return v.data().subtitle}}))),_.m("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.m(_.kz,{data:function(){return v.data().offerSummary}},{offerSummaryRenderer:function(d){return _.m(off,{data:d.data,
className:v.flowClassName})}})))},"Wf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.SM,
flowClassName:_.SM,flowStateEntityKey:_.SM,shouldDisableHeaderTopMargin:_.SM}});var JIQ=_.l(function(v){var e=v.data;var d=v.className;var E=v.flowStateEntityKey;var T=v.selectionStepStyle;v=_.rq(function(Y){var q=e(),r=E==null?void 0:E();Y.target&&(Y.stopPropagation(),Y=r||"",r=_.QZ(_.pq().getState(),Y),q=Object.assign({},r,{premiumPurchaseFlowState:{selectedOptionId:q.optionId,primaryButtonOverride:q.primaryButtonOverride}}),_.pq().dispatch(_.Lv("flowStateEntity",Y,q)));return!1});
var S=function(){return(E==null?void 0:E())||""},O=_.Kv(_.QZ,S);
_.Gr(function(){var Y=e(),q=S(),r=O();Y.defaultSelected&&q!==""&&Y.primaryButtonOverride&&PgS(Y.optionId||"",q,Y.primaryButtonOverride,r)});
var b={};return _.m("ytm-option-item-renderer",{"on:click":v,class:_.qe(d,"ytm-option-item-renderer",(b["ytm-option-item-renderer--lp2-style"]=function(){return(T==null?void 0:T())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},b))},_.m("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.m("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var Y=e(),q=S(),r=O();r=_.L(r,RZt);return(r?(r==null?void 0:r.selectedOptionId)||"":Y.defaultSelected&&q!==""?(Y==null?void 0:Y.optionId)||"":"")===e().optionId},
name:("input"+_.Ge(_.RJ)).toString()})),_.m("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.m(_.kz,{data:function(){return e().titleBadge}},{badgeViewModel:function(Y){return _.m(_.W4,{data:Y.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.m(_.y,{cond:function(){return e().eyebrowText},
then:function(){return _.m("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.m(_.Dh,{text:function(){return e().eyebrowText}}))}}),_.m("div",{class:"ytm-option-item-renderer__option-item-title"},_.m(_.Dh,{text:function(){return e().title}})),_.m("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.m(_.Dh,{text:function(){return e().subtitle}})),_.m(_.y,{cond:function(){return e().featureListData},
then:function(){return _.m("div",{class:"ytm-option-item-renderer__feature-list-data"},_.m(_.jI,{each:function(){return e().featureListData||[]}},function(Y){var q,r=(q=Y.icon)==null?void 0:q.iconType;
a:switch(Y.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":q="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":q="ytm-option-item-renderer__feature-list-icon-small";break a;default:q="ytm-option-item-renderer__feature-list-icon-default"}return _.m("div",{class:"ytm-option-item-renderer__feature-list"},_.m(_.sG,{icon:r,className:q,active:function(){return Y.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.m("div",{class:"ytm-option-item-renderer__feature-list-text"},_.m(_.Dh,{text:Y.text,
className:function(){return Y.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.m("div",{class:"ytm-option-item-renderer__option-item-description"},_.m(_.Dh,{text:function(){return e().description}}))))},"Xf");var GNt=_.l(function(v){var e=v.data;var d=v.flowClassName;var E=v.flowStateEntityKey;var T=v.selectionStepStyle;return _.m("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.m("div",{class:"yt-option-section-renderer__option-section-header-section"},_.m("div",{class:"yt-option-section-renderer__option-section-header"},_.m(_.Dh,{text:function(){return e().title}}),_.m(_.kz,{data:function(){return e().titleBadge}},{badgeViewModel:function(S){return _.m(_.W4,
{data:S.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.m(_.y,{cond:function(){return e().subtitle},
then:function(){return _.m("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.m(_.Dh,{text:function(){return e().subtitle}}))}}),_.m(_.y,{cond:function(){return e().featureListData},
then:function(S){return _.m("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.m(_.jI,{each:S},function(O){var b;return _.m("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.m(_.sG,{icon:(b=O.icon)==null?void 0:b.iconType,active:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(O.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"}}}),_.m("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.m(_.Dh,{text:O.text,
className:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.m(_.y,{cond:function(){return e().secondaryTitle},
then:function(){return _.m("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.m(_.Dh,{text:function(){return e().secondaryTitle}}))}}),_.m(_.jI,{each:function(){return e().sectionDisclaimers||[]}},function(S){return _.m("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.m(_.Dh,{text:S}))})),_.m(_.kz,{data:function(){return e().optionItems}},{optionItemRenderer:function(S){return _.m("div",{class:"yt-option-section-renderer__option-item"},_.m(JIQ,{data:S.data,
className:d,flowStateEntityKey:E,selectionStepStyle:T}))}}),_.m(_.y,{cond:function(){return e().offerText},
then:function(){return _.m("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.m(_.Dh,{text:function(){return e().offerText}}))}}))},"Yf");
GNt.idomCompat=!0;var MhC=_.l(function(v){var e=v.data;var d=v.flowClassName;var E=v.flowStateEntityKey;v=v.isDesktop;var T=function(){var q;return(q=e().flowStateEntityKey)!=null?q:E==null?void 0:E()},S=function(){return(T==null?void 0:T())||""},O=function(){return e().style},b=_.Kv(_.QZ,S);
_.Gr(function(){var q=e(),r=S(),h=b();!_.L(h,RZt)&&q.noPreselect&&r!==""&&q.defaultButtonOverride&&PgS("default",r,q.defaultButtonOverride,h)});
var Y={};return _.m("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.qe("ytm-option-selection-flow-step-renderer",(Y["ytm-option-selection-flow-step-renderer--desktop"]=v,Y["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return e().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},Y))},_.m("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"},
_.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.m(_.Dh,{text:function(){return e().header}})),_.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.m(_.Dh,{text:function(){return e().subtitle}}))),_.m(_.kz,{data:function(){return e().optionItems||[]}},{optionItemRenderer:function(q){return _.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.m(JIQ,{data:q.data,
className:d,flowStateEntityKey:T,selectionStepStyle:O}))},
optionSectionRenderer:function(q){return _.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.m(GNt,{data:q.data,flowClassName:d,flowStateEntityKey:T,selectionStepStyle:O}))}}))},"Zf");
MhC.idomCompat=!0;_.aZ(MhC,"yt-option-selection-flow-step-renderer",{props:{data:_.U1,flowClassName:_.U1,flowStateEntityKey:_.U1,isDesktop:_.U1}});_.vR=_.l(function(v){var e=_.dC(v,{type:1,disablePadding:!1,disablePrimaryButton:!1}),d=e.data,E=e.type;v=e.disablePadding;var T=e.disablePrimaryButton,S=e.onClickPrimaryButton,O=function(){return d().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},b=function(){return{disabled:T(),
state:T()?"disabled":"active"}},Y=function(){return d().leadingLabel||d().trailingLabel};
e={};return _.m("yt-panel-footer-view-model",{class:_.qe("yt-panel-footer-view-model-wiz",(e["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return d().shouldHideDivider},e["yt-panel-footer-view-model-wiz--disable-padding"]=v,e))},_.m(_.y,{cond:Y,
then:function(){var q={},r={};return _.m("div",{class:_.qe("yt-panel-footer-view-model-wiz__text-row",(q["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var h=d();return!(!h.leadingLabel&&!h.trailingLabel||!h.primaryButton&&!h.secondaryButton)},q))},_.m(_.Dh,{text:function(){return d().leadingLabel},
className:_.qe((r["yt-panel-footer-view-model-wiz--text-padding"]=Y,r))}),_.m(_.Dh,{text:function(){return d().trailingLabel}}))}}),_.m(_.y,{cond:O,
then:function(){var q={};return _.m("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.m("div",{class:_.qe("yt-panel-footer-view-model-wiz__primary-button",(q["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return d().secondaryButton},q))},_.m(_.kz,{data:function(){return d().primaryButton}},{buttonViewModel:function(r){return _.m(_.yi,{data:r.data,
buttonOverrides:b,onClick:S})}})),_.m(_.kz,{data:function(){return d().secondaryButton}},{buttonViewModel:_.yi}))}}),_.m(_.y,{cond:function(){return!O()},
then:function(){var q={},r={},h={};return _.m("div",{class:_.qe("yt-panel-footer-view-model-wiz__button-row",(q["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===E()},q))},_.m("div",{class:_.qe("yt-panel-footer-view-model-wiz__button-row--left-button",(r["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===E()},r["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!d().secondaryButton||0===E()},r["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===E()},r))},_.m(_.kz,{data:function(){return d().secondaryButton}},{buttonViewModel:_.yi})),_.m("div",{class:_.qe("yt-panel-footer-view-model-wiz__primary-button",(h["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===E()||1===E()},h["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===E()},h))},_.m(_.kz,{data:function(){return d().primaryButton}},{buttonViewModel:function(K){return _.m(_.yi,{data:K.data,
buttonOverrides:b,onClick:S})}})))}}))},"$f");
_.vR.idomCompat=!0;_.th_=_.l(function(v){v=_.dC(v,{disablePadding:!1});var e=v.data,d=v.disablePadding;v=_.xVs(function(){return e().formId});
var E=v.submitForm,T=v.isValid,S=v.isSubmitting;return _.m("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.m(_.kz,{data:function(){return e().panelFooter}},{panelFooterViewModel:function(O){return _.m(_.vR,{data:O.data,
onClickPrimaryButton:function(){E()},
disablePrimaryButton:function(){return!T()||S()},
disablePadding:d})}}))},"ag");_.aZ(_.th_,"yt-form-footer-view-model",{props:{data:_.U1,disablePadding:_.U1}});var fqi=_.l(function(v){var e=_.N("enable_user_rating_web");return _.m("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.m("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.m(_.y,{cond:function(){var d;return(d=v.data())==null?void 0:d.image},
then:function(d){return _.m(_.va,{data:d,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.m("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.m(_.Dh,{text:function(){var d;
return(d=v.data())==null?void 0:d.title}})),_.m("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.m(_.Dh,{text:function(){var d;
return(d=v.data())==null?void 0:d.subtitle}})),_.m(_.y,{cond:function(){return!e},
then:function(){return _.m(_.kz,{data:function(){var d;return(d=v.data())==null?void 0:d.viewTipsButton}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"bg");_.aZ(fqi,"yt-contributor-zero-state-view-model",{props:{data:_.U1}});var Ret=_.l(function(v){var e=function(){var d;return(d=v.data())==null?void 0:d.image};
return _.m("yt-featured-content-item-view-model",{class:_.qe("ytFeaturedContentItemViewModelHost")},_.m("div",{class:_.qe(function(){return e()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.m("div",{class:function(){return e()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.m(_.y,{cond:e,
then:function(){return _.m("div",{class:"ytFeaturedContentItemViewModelImage"},_.m(_.kz,{data:function(){return v.data().image}},{themedImageViewModel:function(d){return _.m(qNO,{data:d.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.m(_.y,{cond:function(){var d;
return!e()&&((d=v.data())==null?void 0:d.iconName)},
then:function(){return _.m("div",{class:"ytFeaturedContentItemViewModelIcon"},_.m(_.sG,{icon:function(){return v.data().iconName}}))}}),_.m("div",{class:"ytFeaturedContentItemViewModelContent"},_.m(_.y,{cond:function(){var d;
return(d=v.data())==null?void 0:d.title},
then:function(){return _.m("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.m(_.Dh,{text:function(){return v.data().title}}))}}),_.m(_.y,{cond:function(){var d;
return(d=v.data())==null?void 0:d.body},
then:function(){return _.m("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.m(_.Dh,{text:function(){return v.data().body}}))}})))))},"cg");var PlQ=_.l(function(v){var e=function(){var T;return x9v((T=v.data())==null?void 0:T.titleFontSize)},d=function(){var T;
return BZt((T=v.data())==null?void 0:T.descriptionFontSize)},E=function(){var T;
return((T=v.data())==null?void 0:T.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.m("yt-landing-page-view-model",{class:_.qe("ytLandingPageViewModelHost",v.className)},_.m("div",{class:"ytLandingPageViewModelHeader"},_.m(_.y,{cond:function(){var T;return(T=v.data())==null?void 0:T.bannerImage},
then:function(T){return _.m("div",{class:"ytLandingPageViewModelHeaderImage"},_.m(_.kz,{data:function(){return T()}},{imageBannerViewModel:function(S){return _.m(_.AH,{data:S.data,
isPositionRelative:!0})}}))}}),_.m(_.y,{cond:function(){var T;
return(T=v.data())==null?void 0:T.bannerAnimation},
then:function(T){return _.m(_.jZ,{data:function(){var S=T();if(S==null?0:S.url){var O;S={path:(O=S==null?void 0:S.url)!=null?O:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(S==null?0:S.payload){var b;S={animationData:JSON.parse((b=S==null?void 0:S.payload)!=null?b:""),autoplay:!0,loop:!0,renderer:"svg"}}else S=void 0;return{animationConfig:S}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.m("div",{class:"ytLandingPageViewModelHeaderTitle"},_.m(_.y,{cond:function(){var T;
return(T=v.data())==null?void 0:T.title},
then:function(T){return _.m("div",{class:_.qe("ytLandingPageViewModelHeaderTitleContent",e)},_.m(_.Dh,{text:function(){return T()}}))}}),_.m(_.y,{cond:function(){var T;
return(T=v.data())==null?void 0:T.description},
then:function(T){var S={};return _.m(_.Dh,{className:_.qe("ytLandingPageViewModelHeaderTitleDescription",d,(S.ytLandingPageViewModelHeaderTitleDescriptionMargin=E,S)),text:function(){return T()}})}}))),_.m(_.y,{cond:function(){var T,S;
return(T=v.data())==null?void 0:(S=T.featuredContentList)==null?void 0:S.length},
then:function(){return _.m("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.m(_.kz,{data:function(){return v.data().featuredContentList}},{featuredContentItemViewModel:function(T){return _.m(Ret,{data:T.data})}}))}}),_.m(_.y,{cond:function(){var T,S;
return(T=v.data())==null?void 0:(S=T.expandableContentList)==null?void 0:S.length},
then:function(){return _.m("div",{class:"ytLandingPageViewModelFaqSection"},_.m(_.kz,{data:function(){return v.data().expandableContentList}},{faqEntryViewModel:function(T){return _.m("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.m(_.qcA,{data:T.data}))}}))}}),_.m("div",{class:"ytLandingPageViewModelFooter"},_.m(_.y,{cond:function(){var T;
return(T=v.data())==null?void 0:T.legalCopy},
then:function(T){return _.m("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.m(_.Dh,{text:function(){return T()}}))}}),_.m(_.y,{cond:function(){var T;
return(T=v.data())==null?void 0:T.actions},
then:function(T){return _.m("div",null,_.m(_.kz,{data:function(){return T()}},{flexibleActionsViewModel:function(S){return _.m(_.CE,{data:S.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"dg");_.aZ(_.l(function(v){return _.m("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.m("div",{class:"ytLpSectionGroupViewModelContainer"},_.m(_.kz,{data:function(){return v.data().sections}},{landingPageViewModel:function(e){return _.m(PlQ,{data:e.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"eg"),"yt-lp-section-group-view-model",{props:{data:_.U1}});var xGv=_.l(function(v){var e=v.data;var d=v.selectedKey;var E=v.onSelected;var T=v.groupName;var S=function(){return e().text},O=function(){return e().attributedText},b=function(){return e().subtext},Y=function(){return e().attributedSubtext},q=_.m("div",{class:"ytRadioButtonItemViewModelLabel"},_.m(_.y,{cond:S,
then:function(){return _.m("div",null,S)}}),_.m(_.y,{cond:O,
then:function(){return _.m(_.Dh,{text:O})}}),_.m(_.y,{cond:b,
then:function(){return _.m("div",{class:"ytRadioButtonItemViewModelSubText"},b)}}),_.m(_.y,{cond:Y,
then:function(){return _.m("div",{class:"ytRadioButtonItemViewModelSubText"},_.m(_.Dh,{text:Y}))}})),r=function(){if(O()){var K;
return(K=O())==null?void 0:K.content}return S()},h=function(){if(Y()){var K;
return(K=Y())==null?void 0:K.content}return b()};
v={};return _.m("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.m(_.Ca,{name:T,checked:function(){return!(d==null||!d()||e().key!==(d==null?void 0:d()))},
onChange:function(K){E==null||E(K.target,e(),T==null?void 0:T())},
labelRenderable:function(){return q},
ariaLabel:function(){return h()?r()+", "+h():r()},
className:_.qe((v.ytRadioButtonItemViewModelSubTitle=function(){return!!e().subtext},v))}))},"fg");_.Bbt=_.l(function(v){var e=v.data;var d=v.onSelected;var E=v.selectedKey;var T=v.groupName;var S=function(){return(T==null?void 0:T())||e().key};
return _.m("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.m("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.m(_.kz,{data:function(){return e().radioButtons}},{radioButtonItemViewModel:function(O){return _.m(xGv,{data:O.data,
onSelected:d,selectedKey:E,groupName:S})}})))},"gg");var Clw=_.l(function(v){_.Gr(function(){if(v.controlledMode()&&v.data().defaultSelected)_.RI(Error("Qj"));else{var S;!v.controlledMode()&&((S=v.selected)==null?0:S.call(v))&&_.RI(Error("Rj"))}});
var e=_.a(_.KM(function(){if(!v.controlledMode())return v.data().defaultSelected})),d=e.next().value,E=e.next().value,T=function(){if(!v.controlledMode())return d();
var S;return(S=v.selected)==null?void 0:S.call(v)};
return _.m("yt-checkbox-item-view-model",{class:_.qe("ytCheckboxItemViewModelHost")},_.m(_.X6,{data:function(){var S=v.data(),O=T();return{title:S.text,subtitle:S.subtext,superlabel:S.superlabel,isSelected:!!O,isDisabled:S.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!v.controlledMode()&&E(!d());var S,O;(O=v.onTap)==null||O.call(v,!!T(),v.data(),(S=v.groupName)==null?void 0:S.call(v))}}))},"hg");var XVw=_.l(function(v){var e=v.data;var d=v.controlledMode;var E=v.selectedKeys;var T=v.onItemTap;var S=v.groupName;var O=function(){return(S==null?void 0:S())||e().key};
_.Gr(function(){d()&&e().defaultSelectedKeys?_.RI(Error("Sj")):!d()&&(E==null?0:E())&&_.RI(Error("Tj"))});
v=_.a(_.KM(function(){if(!d())return e().defaultSelectedKeys}));
var b=v.next().value,Y=v.next().value,q=function(r,h,K){r=[];!d()&&h.key&&(r=Cg9(h.key,b()||[]),Y(r));T==null||T(h,r,K)};
return _.m("yt-checkbox-group-view-model",{class:_.qe("ytCheckboxGroupViewModelHost")},_.m("fieldset",{class:_.qe("ytCheckboxGroupViewModelFieldset")},_.m(_.kz,{data:function(){return e().checkboxes}},{checkboxItemViewModel:function(r){var h=r.data;
return _.m(Clw,{data:h,controlledMode:!0,selected:function(){var K=d()?(E==null?void 0:E())||[]:b()||[],k=h().key;return k?K.includes(k):!1},
onTap:q,groupName:O})}})))},"ig");var eg=_.l(function(v){var e=_.Kv(Xbt,_.e2(function(){var b;return(b=v.data())==null?void 0:b.noteFeedEntityKey},"")),d=_.Kv(eZ9,_.e2(function(){var b;
return(b=v.data())==null?void 0:b.userRatingEntityKey},"")),E=_.N("enable_user_rating_web"),T=function(){var b,Y,q;
return((b=e())==null?0:b.contributorNote)?(Y=e())==null?void 0:Y.contributorNote:(q=v.data())==null?void 0:q.existingNote},S=function(){var b,Y;
return!!d()&&!!zZv((b=d())==null?void 0:b.helpfulnessValue,(Y=v.data())==null?void 0:Y.noteData)};
if(E){var O={};return _.m("yt-note-view-model",{class:_.qe("ytNoteViewModelHostUserRating",(O.ytNoteViewModelHostUserRatingPublishedNote=function(){var b,Y,q,r;return((b=v.data())==null?void 0:(Y=b.noteData)==null?void 0:Y.isPublished)&&!((q=v.data())==null?0:(r=q.noteData)==null?0:r.isUserRatingForm)},O))},_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.m(_.y,{cond:function(){var b,Y;
return(b=v.data())==null?void 0:(Y=b.noteData)==null?void 0:Y.isPinned},
then:function(){return _.m(_.sG,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.m(_.y,{cond:function(){var b,Y;return(b=v.data())==null?void 0:(Y=b.noteData)==null?void 0:Y.isPublished},
then:function(){return _.m(_.sG,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.m(_.kz,{data:function(){var b;
return(b=v.data())==null?void 0:b.metadata}},{contentMetadataViewModel:_.i5}),_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var b,Y;
return(Y=_.L((b=v.data())==null?void 0:b.metadata,_.wlu))==null?void 0:Y.delimiter}),_.m(_.Dh,{text:function(){var b;
return(b=T())==null?void 0:b.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.m(_.y,{cond:function(){var b,Y;return!((b=v.data())==null?0:(Y=b.noteData)==null?0:Y.isUserRatingForm)},
then:function(){return _.m(_.kz,{data:function(){var b,Y,q,r,h,K,k,J=!!((b=v.data())==null?0:(Y=b.noteData)==null?0:Y.isPinned);b=S();Y=(q=v.data())==null?void 0:q.noteData;q=(r=e())==null?void 0:(h=r.contributorNote)==null?void 0:h.deleteAction;r=(K=v.data())==null?void 0:K.overflowButtonNoteWithRatingOnTapOverride;K=(k=v.data())==null?void 0:k.overflowButton;return J?lVi(Y,q):b?{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:r}}:K}},{buttonViewModel:function(b){return _.m(_.yi,{data:b.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.m("div",{class:"ytNoteViewModelNoteContent"},_.m(_.Dh,{text:function(){var b;
return(b=T())==null?void 0:b.text}})),_.m(_.y,{cond:function(){var b,Y,q,r;
return!((b=v.data())==null?0:(Y=b.noteData)==null?0:Y.isPinned)&&!((q=v.data())==null?0:(r=q.noteData)==null?0:r.isUserRatingForm)},
then:function(){return _.m(_.y,{cond:S,then:function(){return _.m("div",{class:"ytNoteViewModelUserRatingContainer"},_.m(_.Dh,{text:function(){var b,Y;return zZv((b=d())==null?void 0:b.helpfulnessValue,(Y=v.data())==null?void 0:Y.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.m(_.kz,{data:function(){var b;return(b=v.data())==null?void 0:b.userRatingButton}},{buttonViewModel:function(b){return _.m(_.yi,{data:b.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.m(_.y,{cond:function(){var b,Y,q,r;
return!((b=v.data())==null?0:(Y=b.noteData)==null?0:Y.ignoreDivider)&&!((q=v.data())==null?0:(r=q.noteData)==null?0:r.isUserRatingForm)},
then:function(){return _.m("div",{class:"ytNoteViewModelDivider"},_.m(_.kz,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(b){return _.m(_.RSE,{data:b.data})}}))}}))}return _.m("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.m(_.y,{cond:function(){var b,Y;return(b=v.data())==null?void 0:(Y=b.noteData)==null?void 0:Y.isPinned},
then:function(){return _.m(_.sG,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.m(_.y,{cond:function(){var b,Y;return(b=v.data())==null?void 0:(Y=b.noteData)==null?void 0:Y.isPublished},
then:function(){return _.m(_.sG,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.m(_.y,{cond:function(){return E},
then:function(){return _.m(_.kz,{data:function(){var b;return(b=v.data())==null?void 0:b.metadata}},{contentMetadataViewModel:function(b){return _.m(_.i5,{data:b.data})}})}}),_.m(_.Dh,{text:function(){var b,Y;
return(b=v.data())==null?void 0:(Y=b.noteData)==null?void 0:Y.headerText}}),_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.m(_.Dh,{text:function(){var b,Y;
return(b=v.data())==null?void 0:(Y=b.noteData)==null?void 0:Y.delimiter}})),_.m(_.Dh,{text:function(){var b,Y;
return(b=e())==null?void 0:(Y=b.contributorNote)==null?void 0:Y.publishedTimeText}})),_.m(_.kz,{data:function(){var b,Y,q;
return lVi((b=v.data())==null?void 0:b.noteData,(Y=e())==null?void 0:(q=Y.contributorNote)==null?void 0:q.deleteAction)}},{buttonViewModel:function(b){return _.m(_.yi,{data:b.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.m("div",{class:"ytNoteViewModelNoteContent"},_.m(_.Dh,{text:function(){var b,Y;
return(b=e())==null?void 0:(Y=b.contributorNote)==null?void 0:Y.text}})))},"jg");
eg.idomCompat=!0;_.aZ(_.l(function(v){var e=_.Kv(_.QZ,_.e2(function(){var B;return(B=v.data())==null?void 0:B.flowStateEntityKey},"")),d=_.a(_.KM(function(){var B;
return(B=_.L(v.data().helpfulnessValue,_.L8))==null?void 0:B.defaultSelectedKey})),E=d.next().value,T=d.next().value;
d=_.a(_.KM(function(){var B,X,Z;return(Z=_.L((B=_.L(v.data().helpfulnessValue,_.L8))==null?void 0:(X=B.radioButtons)==null?void 0:X.find(function(U){var F;return((F=_.L(U,Eei))==null?void 0:F.key)===E()}),Eei))==null?void 0:Z.value}));
var S=d.next().value,O=d.next().value,b=function(B,X){T(X.key);O(X.value)},Y=function(){var B,X;
return((B=S())==null?void 0:B.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((X=S())==null?void 0:X.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},q=function(){var B,X;
return((B=S())==null?void 0:B.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((X=S())==null?void 0:X.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
d=_.a(_.KM(function(){var B;return(B=_.L(v.data().helpfulReasons,dk9))==null?void 0:B.defaultSelectedKeys}));
var r=d.next().value,h=d.next().value,K=function(B){H49(B.key,r,h)};
d=_.a(_.KM(function(){var B;return(B=_.L(v.data().notHelpfulReasons,dk9))==null?void 0:B.defaultSelectedKeys}));
var k=d.next().value,J=d.next().value,R=function(B){H49(B.key,k,J)};
return _.m("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.m(_.kz,{data:function(){var B=_.L(e(),wis);if(B){var X;var Z={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:B==null?void 0:(X=B.note)==null?void 0:X.headerText}]}],delimiter:"\u2022"}},existingNote:B.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else Z=void 0;return Z}},{noteViewModel:function(B){return _.m("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.m(eg,{data:B.data}))}}),_.m(_.kz,{data:function(){var B;
return(B=v.data())==null?void 0:B.helpfulnessValue}},{radioButtonGroupViewModel:function(B){return _.m("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.m(_.Bbt,{data:B.data,
onSelected:b,selectedKey:E}))}}),_.m(_.y,{cond:Y,
then:function(){return _.m("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.m("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.m(_.Dh,{text:function(){var B;return(B=v.data())==null?void 0:B.helpfulReasonQuestion}})),_.m(_.kz,{data:function(){var B;
return(B=v.data())==null?void 0:B.helpfulReasons}},{checkboxGroupViewModel:function(B){return _.m(XVw,{data:B.data,
onItemTap:K,selectedKeys:r,controlledMode:!0})}}))}}),_.m(_.y,{cond:q,
then:function(){return _.m("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.m("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.m(_.Dh,{text:function(){var B;return(B=v.data())==null?void 0:B.notHelpfulReasonQuestion}})),_.m(_.kz,{data:function(){var B;
return(B=v.data())==null?void 0:B.notHelpfulReasons}},{checkboxGroupViewModel:function(B){return _.m(XVw,{data:B.data,
onItemTap:R,selectedKeys:k,controlledMode:!0})}}))}}),_.m(_.y,{cond:function(){return!Y()&&!q()},
then:function(){return _.m(_.kz,{data:function(){var B;return(B=v.data())==null?void 0:B.helpfulNoteFeatures}},{alertBannerViewModel:function(B){return _.m("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.m(_.lQJ,{data:B.data}))}})}}))},"kg"),"yt-note-user-rating-view-model",{props:{data:_.U1}});_.aZ(eg,"yt-note-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=_.Kv(Xbt,_.e2(function(){var d;return(d=v.data())==null?void 0:d.noteFeedEntityKey},""));
return _.m("yt-notes-wrapper-view-model",{class:_.qe("ytNotesWrapperViewModelHost")},_.m(_.y,{cond:function(){var d,E,T;return!((d=v.data())==null||!d.existingNotes)||!((E=v.data())==null||!E.currentNote)&&!((T=e())==null||!T.contributorNote)},
then:function(){return _.m(_.eI,null,_.m(_.kz,{data:function(){var d,E,T,S;return((E=_.L((d=v.data())==null?void 0:d.currentNote,Fq_))==null?0:(T=E.noteData)==null?0:T.isPublished)?(S=v.data())==null?void 0:S.currentNote:void 0}},{noteViewModel:function(d){return _.m(eg,{data:d.data})}}),_.m(_.kz,{data:function(){var d;
return(d=v.data())==null?void 0:d.existingNotes}},{noteViewModel:function(d){var E=d.data;
return _.m(_.y,{cond:function(){var T,S;return(T=E())==null?void 0:(S=T.noteData)==null?void 0:S.isPublished},
then:function(){return _.m(eg,{data:E})}})}}),_.m(_.kz,{data:function(){var d,E,T,S;
return((E=_.L((d=v.data())==null?void 0:d.currentNote,Fq_))==null?0:(T=E.noteData)==null?0:T.isPublished)?void 0:(S=v.data())==null?void 0:S.currentNote}},{noteViewModel:function(d){return _.m(eg,{data:d.data})}}),_.m(_.kz,{data:function(){var d;
return(d=v.data())==null?void 0:d.existingNotes}},{noteViewModel:function(d){var E=d.data;
return _.m(_.y,{cond:function(){var T,S;return!((T=E())==null?0:(S=T.noteData)==null?0:S.isPublished)},
then:function(){return _.m(eg,{data:E})}})}}))},
else:function(){return _.m(_.kz,{data:function(){var d;return(d=v.data())==null?void 0:d.zeroStateData}},{contributorZeroStateViewModel:fqi})}}))},"lg"),"yt-notes-wrapper-view-model",{props:{data:_.U1}});var dE=_.l(function(v){var e=_.dC(v,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),d=e.label,E=e.text,T=e.placeholder,S=e.hint;v=e.rows;var O=e.overflowStyle,b=e.outline,Y=e.disabled,q=e.disableNewLines,r=e.characterLimit,h=e.validation,K=e.onInput,k=_.nI("textarea");e=_.a(_.KM(function(){return E()}));
var J=e.next().value,R=e.next().value;e=_.a(_.OE(!1,void 0,"fXvinf"));var B=e.next().value,X=e.next().value,Z=function(){X(!0)},U=function(){X(!1)};
_.Gr(function(){var As=k.value,Ct=O(),SA=J();Ct==="expand-vertically"&&SA&&AE1(As);k.value.addEventListener("focusin",Z);k.value.addEventListener("focusout",U)});
_.Jf(function(){k.value.removeEventListener("focusin",Z);k.value.removeEventListener("focusout",U)});
var F=function(){var As;return(As=h())==null?void 0:As.validate(J())},g=function(){return r()&&!F()&&J().length>r().maxChars},Q=function(){return!!F()||g()};
e=_.rq(function(As){if(!As.currentTarget)return!1;As=As.currentTarget;R(As.value);O()==="expand-vertically"&&AE1(As);K==null||K(As.value);return!0});
var v3=_.rq(function(As){q()&&As.key==="Enter"&&As.preventDefault();return!1}),q7=_.rq(function(){k.value.focus()}),m0=function(){return T()||d()},$S={},kS={},N7={};
return _.m("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.m("div",{class:_.qe("ytStandardsTextareaShapeTextareaContainer",($S.ytStandardsTextareaShapeTextareaContainerOutline=b,$S.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=Y,$S.ytStandardsTextareaShapeTextareaContainerOutlineError=Q,$S)),"on:click":q7},_.m("label",{class:_.qe("ytStandardsTextareaShapeLabel",(kS.ytStandardsTextareaShapeLabelFocused=B,kS.ytStandardsTextareaShapeLabelDisabled=Y,kS.ytStandardsTextareaShapeLabelError=
function(){return Q()&&!Y()},kS.ytStandardsTextareaShapeLabelHidden=function(){return!B()&&!J()&&!!m0()},kS))},d),_.m("div",{class:_.qe("ytStandardsTextareaShapePlaceholder",(N7.ytStandardsTextareaShapePlaceholderVisible=function(){return!B()&&!J()},N7)),
"aria-hidden":"true"},m0),_.m("textarea",{el:k,class:"ytStandardsTextareaShapeTextarea",rows:v,disabled:Y,placeholder:m0,"on:input":e,"on:keydown":v3},J)),_.m(_.y,{cond:function(){return S()&&!Q()},
then:function(){var As={};return _.m("div",{class:_.qe("ytStandardsTextareaShapeHint",(As.ytStandardsTextareaShapeHintDisabled=Y,As))},_.m("div",{class:"ytStandardsTextareaShapeHintHintMessage"},S))}}),_.m(_.y,{cond:F,
then:function(){return _.m(zeS,{disabled:Y},_.m("div",{class:"ytStandardsTextareaShapeErrorMessage"},F))}}),_.m(_.y,{cond:r,
then:function(As){return _.m(_.y,{cond:g,then:function(){return _.m(zeS,{disabled:Y},_.m("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return As().errorMessage}),_.m("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return J().length+"/"+As().maxChars}))}})}}))},"mg");
dE.idomCompat={callbacks:{onInput:!0}};var zeS=_.l(function(v){var e={};return _.m("div",{class:_.qe("ytStandardsTextareaShapeError",(e.ytStandardsTextareaShapeErrorDisabled=v.disabled,e)),role:"alert"},_.m(_.sG,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),v.children)},"ng");_.lq9=_.l(function(v){var e=v.data;return _.m("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.m(dE,{text:v.text,label:function(){var d;return(d=e().contentProperties)==null?void 0:d.labelText},
placeholder:function(){var d;return(d=e().contentProperties)==null?void 0:d.placeholderText},
hint:function(){var d;return(d=e().contentProperties)==null?void 0:d.hintText},
outline:function(){var d;return!((d=e().displayProperties)==null?0:d.hideBorder)},
overflowStyle:function(){var d;return((d=e().displayProperties)==null?0:d.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:v.disabled,disableNewLines:function(){var d;return(d=e().displayProperties)==null?void 0:d.disableNewLines},
onInput:v.onInput,characterLimit:v.characterLimit,validation:v.validation,rows:function(){var d;return(d=e().displayProperties)==null?void 0:d.rows}}))},"og");_.HIf=_.l(function(v){var e=v.data;return _.m("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.m(dE,{text:v.text,label:function(){var d;return(d=e().contentProperties)==null?void 0:d.labelText},
placeholder:function(){var d;return(d=e().contentProperties)==null?void 0:d.placeholderText},
hint:function(){var d;return(d=e().contentProperties)==null?void 0:d.hintText},
outline:function(){var d;return!((d=e().displayProperties)==null?0:d.hideBorder)},
overflowStyle:function(){var d;return((d=e().displayProperties)==null?0:d.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var d;return(d=e().displayProperties)==null?void 0:d.disableNewLines},
onInput:v.onInput,characterLimit:v.characterLimit,validation:v.validation,rows:function(){var d;return(d=e().displayProperties)==null?void 0:d.rows}}))},"pg");var AI_=_.l(function(v){var e=_.a(_.KM(function(){var m0,$S;return((m0=v.data().structuredContextNoteFormSchema)==null?0:($S=m0.initialValues)==null?0:$S.noteBody)?v.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),d=e.next().value,E=e.next().value;
e=_.a(_.KM(function(){v.data();return!1}));
var T=e.next().value,S=e.next().value;e=_.a(_.KM(function(){v.data();return!1}));
var O=e.next().value,b=e.next().value;e=_.a(_.KM(function(){var m0,$S;return((m0=v.data().structuredContextNoteFormSchema)==null?0:($S=m0.initialValues)==null?0:$S.timestamp)?v.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var Y=e.next().value,q=e.next().value;e=_.a(_.KM(function(){v.data();return!1}));
var r=e.next().value,h=e.next().value;e=_.a(_.KM(function(){var m0,$S;return((m0=v.data().structuredContextNoteFormSchema)==null?0:($S=m0.initialValues)==null?0:$S.sources)?[v.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var K=e.next().value,k=e.next().value;e=_.a(_.KM(function(){v.data();return!1}));
var J=e.next().value,R=e.next().value;e=_.a(_.KM(function(){return!1}));
var B=e.next().value,X=e.next().value;_.Gr(function(){var m0;_.d99((m0=v.data().structuredContextNoteFormSchema)==null?void 0:m0.id,{isSubmitting:B,onSubmit:function(){X(!0);var $S=D9i(d(),Y(),K(),v.data()),kS=_.dk().resolve(_.EI);$S&&kS&&kS.resolveCommand($S,{commandController:{onSuccess:function(){X(!1)}}})},
isValid:function(){return T()&&!O()&&!r()&&!J()}})});
var Z=function(m0){if(m0!==void 0&&(E(m0),!T()&&m0.length>0&&S(!0),T())){var $S=wbf(v.data());if($S){var kS=$S.minLength;$S=$S.maxLength;kS&&m0.length<kS?b(!0):$S&&m0.length>$S?b(!0):b(!1)}}},U=function(m0){if(m0!==void 0){q(m0);
if(m0.length>0){var $S,kS,N7,As,Ct=Qsf(($S=v.data())==null?void 0:(kS=$S.structuredContextNoteFormSchema)==null?void 0:(N7=kS.fieldSchemas)==null?void 0:(As=N7.timestamp)==null?void 0:As.validationSchema);if(Ct&&($S=Ct.regex)&&!(new RegExp($S)).test(m0)){h(!0);return}}h(!1)}},F=function(m0){if(m0!==void 0){var $S=m0.split(/[ \n]/).map(function(kS){return kS.trim()});
k($S);if(m0.length>0)for(m0=_.a($S),$S=m0.next();!$S.done;$S=m0.next())if(!ncv($S.value)){R(!0);return}R(!1)}},g=function(){return{validate:function(m0){if(T()){var $S=wbf(v.data());
if($S){var kS=$S.minLength;$S=$S.translations;if(kS&&m0.length<kS)return $S==null?void 0:$S.minLengthErrorMessage}}}}},Q=function(){var m0=wbf(v.data()),$S=m0==null?void 0:m0.maxLength,kS;
m0=m0==null?void 0:(kS=m0.translations)==null?void 0:kS.maxLengthErrorMessage;if($S&&m0)return{maxChars:$S,errorMessage:m0}},v3=function(){return{validate:function(m0){if(m0){var $S,kS,N7,As,Ct=Qsf(($S=v.data())==null?void 0:(kS=$S.structuredContextNoteFormSchema)==null?void 0:(N7=kS.fieldSchemas)==null?void 0:(As=N7.timestamp)==null?void 0:As.validationSchema);
if(Ct&&($S=Ct.regex,Ct=Ct.translations,$S&&!(new RegExp($S)).test(m0)))return Ct==null?void 0:Ct.regexErrorMessage}}}},q7=function(){return{validate:function(m0){if(m0){var $S,kS,N7,As,Ct=uy1(($S=v.data())==null?void 0:(kS=$S.structuredContextNoteFormSchema)==null?void 0:(N7=kS.fieldSchemas)==null?void 0:(As=N7.sources)==null?void 0:As.validationSchema);
if(Ct&&($S=Ct.translations,$S==null?0:$S.selectedErrorMessage))for(m0=m0.split(/[ \n]/).map(function(SA){return SA.trim()}),m0=_.a(m0),kS=m0.next();!kS.done;kS=m0.next())if(!ncv(kS.value))return m0=void 0,(m0=$S)==null?void 0:m0.selectedErrorMessage}}}};
return _.m("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.m("div",{class:"ytStructuredContextNoteViewModelTextField"},_.m(_.kz,{data:function(){var m0;return(m0=v.data())==null?void 0:m0.noteContents}},{textFormFieldViewModel:function(m0){return _.m(_.HIf,{data:m0.data,
onInput:Z,validation:g,characterLimit:Q})},
textFieldViewModel:function(m0){return _.m(_.lq9,{data:m0.data,onInput:Z,validation:g,characterLimit:Q})}})),_.m("div",{class:"ytStructuredContextNoteViewModelTextField"},_.m(_.kz,{data:function(){var m0;
return(m0=v.data())==null?void 0:m0.noteTimestamp}},{textFormFieldViewModel:function(m0){return _.m(_.HIf,{data:m0.data,
onInput:U,validation:v3})},
textFieldViewModel:function(m0){return _.m(_.lq9,{data:m0.data,onInput:U,validation:v3})}})),_.m("div",{class:"ytStructuredContextNoteViewModelTextField"},_.m(_.kz,{data:function(){var m0;
return(m0=v.data())==null?void 0:m0.noteSources}},{textFormFieldViewModel:function(m0){return _.m(_.HIf,{data:m0.data,
onInput:F,validation:q7})},
textFieldViewModel:function(m0){return _.m(_.lq9,{data:m0.data,onInput:F,validation:q7})}})))},"qg");
AI_.idomCompat=!0;_.aZ(AI_,"yt-structured-context-note-view-model",{props:{data:_.U1}});var ZIO=_.l(function(v){var e=_.a(_.KM(function(){var S;if((S=v.controlled)==null?0:S.call(v))return[];var O;return(((O=v.data())==null?void 0:O.chips)||[]).map(function(b){b=_.L(b,_.HD);if(b==null?0:b.selected)return U9f(b.chipValue)}).filter(function(b){return b!==void 0})})),d=e.next().value,E=e.next().value,T=function(S){var O=U9f(S.chipValue);
if(O!==void 0){var b;if((b=v.controlled)==null?0:b.call(v))return void v.controlled().onTap(O);S=d().includes(O)?[].concat(_.t7(d().filter(function(q){return q!==O}))):[].concat(_.t7(d()),[O]);
E(S);var Y;if((Y=v.uncontrolled)==null?0:Y.call(v))v.uncontrolled().onUpdate(S)}};
return _.m("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.m(_.jI,{each:function(){return v.data().chips||[]}},function(S){return _.m("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.m(_.tSI,{data:function(){return _.L(S,_.HD)},
selected:function(){var O;if(O=_.L(S,_.HD)){var b=U9f(O.chipValue);if(b!==void 0){var Y;O=((Y=v.controlled)==null?0:Y.call(v))?v.controlled().selectedValues.includes(b):d().includes(b)}else O=void 0}else O=!1;return O},
callback:T}))}))},"rg");var cIv=_.l(function(v){var e=v.data;var d=function(){var b;return((b=e())==null?void 0:b.flowStateKey)||""},E=_.Kv(_.QZ,d),T=function(){var b;
return(b=_.L(E(),QHt))==null?void 0:b.chips},S=function(b){if(b!==void 0){var Y=T()||[];
Y=Y.find(function(q){return q===b})?Y.filter(function(q){return q!==b}):[].concat(_.t7(Y),[b]);
Y=Object.assign({},E(),{feedbackFormFlowState:Object.assign({},_.L(E(),QHt),{chips:Y})});_.vz(_.Lv("flowStateEntity",d(),Y))}},O=function(){var b;
return _.L((b=e())==null?void 0:b.inputBox,gLO)};
v=_.rI(function(b){var Y=O();Y=!(Y==null?0:Y.maxChars)||b.length<=Y.maxChars;b=Object.assign({},E(),{feedbackFormFlowState:Object.assign({},_.L(E(),QHt),{detail:b}),abuseReportFlowState:Object.assign({},_.L(E(),kD),{navigationEnabled:Y})});_.vz(_.Lv("flowStateEntity",d(),b))},150);
return _.m("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.m("div",{class:"ytFeedbackFormViewModelChips"},_.m(_.kz,{data:function(){var b;return(b=e())==null?void 0:b.chipSelection}},{chipSelectionFormFieldViewModel:function(b){return _.m(ZIO,{data:b.data,
controlled:function(){return{selectedValues:T()||[],onTap:S}}})}})),_.m("div",{class:"ytFeedbackFormViewModelInputBox"},_.m(dE,{text:function(){var b;
return(b=_.L(E(),QHt))==null?void 0:b.detail},
placeholder:function(){var b;return((b=O())==null?void 0:b.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var b=O();if(b&&b.maxChars)return{maxChars:b.maxChars,errorMessage:b.maxCharsExceededErrorMessage||""}},
onInput:v})),_.m("div",{class:"ytFeedbackFormViewModelFooterText"},_.m(_.Dh,{text:function(){return e().footerText}})))},"sg");
cIv.idomCompat=!0;_.aZ(cIv,"yt-feedback-form-view-model",{props:{data:_.U1}});var wVO=_.l(function(v){var e=v.data;var d=function(){return e().flowStateKey||""},E=_.Kv(vcf,d),T=function(){return _.L(E(),kD)},S=function(){if(_.N("enable_gff_accessibility_fix")){var O=!0,b;
if((b=T())==null?0:b.navigationEnabled){var Y;_.wC((Y=T())==null?void 0:Y.navigationCommand);O=!1}b=Object.assign({},E(),{abuseReportFlowState:Object.assign({},T(),{isReportFormDirty:O})});_.vz(_.Lv("flowStateEntity",d(),b))}else _.wC((O=T())==null?void 0:O.navigationCommand)};
return _.m("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.m("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.m(_.kz,{data:function(){return e().cancelButton}},{buttonViewModel:function(O){return _.m(_.yi,{data:O.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:S})}}),_.m(_.kz,{data:function(){var O;
if(e().navButton){var b=Object;var Y=b.assign,q=_.L(e().navButton,_.lx),r=((O=T())==null?0:O.navigationEnabled)||_.N("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",h,K;O=_.L((h=T())==null?void 0:h.navigationCommand,_.zj);h=(K=_.L(O,_.wb))==null?void 0:K.url;b={buttonViewModel:Y.call(b,{},q,{state:r,iconName:h?"OPEN_IN_NEW":""})}}else b=void 0;return b}},{buttonViewModel:function(O){return _.m(_.yi,{data:O.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:S})}})))},"tg");
wVO.idomCompat=!0;_.aZ(wVO,"yt-report-form-bottom-bar-view-model",{props:{data:_.U1}});var FHi=_.l(function(v){var e=v.nextStep;return _.m("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.m("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.m(_.sG,{icon:function(){return e().iconName||""}})),_.m("div",null,_.m(_.Dh,{text:function(){return e().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ug"),QIf=_.l(function(v){var e=v.data;
var d,E=(d=_.dk().resolve(_.eG(_.n1)))==null?void 0:d(),T=_.Kv(_.QZ,function(){return e().flowStateKey||""});
return _.m("yt-report-form-confirmation-page-view-model",{class:function(){var S;return((S=_.L(T(),kD))==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.m("div",{class:function(){var S;
return((S=_.L(T(),kD))==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.m(_.va,{data:function(){return E&&e().imageDark?e().imageDark:e().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.m("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.m("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return e().confirmationHeader}),_.m("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.m(_.Dh,{text:function(){return e().confirmationText}})),_.m("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.m(_.Dh,{text:function(){return e().lawEnforcementText}})),
_.m("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return e().whatToExpectHeader}),_.m(_.y,{cond:function(){return e().nextSteps},
then:function(S){return _.m("div",null,_.m(_.jI,{each:S},function(O){return _.m(FHi,{nextStep:O})}))}}),_.m(_.y,{cond:function(){return e().legalReportText},
then:function(S){return _.m("div",null,_.m(_.Dh,{text:S,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vg");
QIf.idomCompat=!0;_.aZ(QIf,"yt-report-form-confirmation-page-view-model",{props:{data:_.U1}});var gfO=_.l(function(v){var e=v.data;var d=function(){var S;return((S=_.L(e().inputBox,gLO))==null?void 0:S.maxChars)||500},E=function(){return e().flowStateKey||""},T=_.Kv(_.QZ,E);
v=_.rI(function(S){S=Object.assign({},T(),{flowFormState:{isValid:S.length<=d()},abuseReportFlowState:{userComments:S,navigationEnabled:!(S.length>d()),isReportFormDirty:!0}});_.pq().dispatch(_.M0("flowStateEntity",E(),S))},150);
_.Gr(function(){var S=Object.assign({},T(),{flowFormState:{isValid:!0}});_.pq().dispatch(_.M0("flowStateEntity",E(),S))});
return _.m("yt-report-form-details-page-view-model",{class:function(){var S;return((S=_.L(T(),kD))==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.m("h1",{class:function(){var S;
return((S=_.L(T(),kD))==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return e().detailsPageHeader}),_.m("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.m(_.Dh,{text:function(){return e().bodyText}})),_.m("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.m(dE,{label:function(){var S;
return((S=_.L(e().inputBox,gLO))==null?void 0:S.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var S;return{errorMessage:((S=_.L(e().inputBox,gLO))==null?void 0:S.maxCharsExceededErrorMessage)||"",maxChars:d()}},
onInput:v})))},"wg");
gfO.idomCompat=!0;_.aZ(gfO,"yt-report-form-details-page-view-model",{props:{data:_.U1}});var uTi=_.l(function(v){var e=v.data;var d=_.Dq("div"),E=function(){return e().flowStateKey||""},T=_.Kv(_.QZ,E),S=function(){return _.L(T(),kD)};
_.o_(function(){var O,b;if(((O=S())==null?0:O.isReportFormDirty)&&((b=S())==null||!b.navigationEnabled)&&_.N("enable_gff_accessibility_fix")){var Y;if(((Y=S())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var q;(q=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||q.scrollIntoView()}else{var r;(r=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||r.scrollIntoView()}}},"VvP2Ne");
return _.m("yt-report-form-reason-select-page-view-model",{class:function(){var O;return((O=S())==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.m("h1",{class:function(){var O;
return((O=S())==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return e().pageHeader}),_.m("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.m(_.Dh,{text:function(){return e().bodyText}})),_.m("div",{class:function(){var O;
return((O=S())==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.m(_.y,{cond:function(){var O,b;
return((O=S())==null?void 0:O.isReportFormDirty)&&!((b=S())==null?0:b.navigationEnabled)&&_.N("enable_gff_accessibility_fix")},
then:function(){return _.m("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:d},_.m(_.sG,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.m("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return e().emptyReasonSelectErrorMessage}))}}),_.m(_.Bbt,{data:function(){return _.L(e().radioButtonGroup,_.L8)},
onSelected:function(O,b){O=Object.assign({},T(),{abuseReportFlowState:Object.assign({},S(),{reasonKey:b.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:b.command})});_.vz(_.Lv("flowStateEntity",E(),O))},
selectedKey:function(){var O;return(O=S())==null?void 0:O.reasonKey},
groupName:"report-form-reason-select-page"})))},"xg");
uTi.idomCompat=!0;_.aZ(uTi,"yt-report-form-reason-select-page-view-model",{props:{data:_.U1}});var nfS=_.l(function(v){var e=v.data;var d,E=(d=_.dk().resolve(_.eG(_.n1)))==null?void 0:d();return _.m("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.m("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.m(_.va,{data:function(){return E&&e().imageDark?e().imageDark:e().image},
alt:""})),_.m("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.m("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return e().header}),_.m(_.Dh,{text:function(){return e().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"yg");
nfS.idomCompat=!0;_.aZ(nfS,"yt-report-form-sign-in-page-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;var d=_.Xj(_.pb_),E=function(){return e().titleSuperscript},T=function(){return e().answersShelf},S=function(){return e().videoShelf},O=function(){var Q;
return(Q=e().textInputPlaceholder)==null?void 0:Q.content},b=function(){return e().showOpenTextInput&&!_.N("web_hide_explore_hub_until_user_navigates_back_to_home")},Y=function(){var Q;
return(Q=e().textInputValue)==null?void 0:Q.content},q=function(){return e().isMultiTurnFlow?e().resetButtonViewModel:void 0},r=!1;
v=_.a(_.OE(!1,void 0,"Ma3kC"));var h=v.next().value,K=v.next().value;v=_.a(_.OE("",void 0,"gZZxVc"));var k=v.next().value,J=v.next().value,R=function(){return{state:h()?"active":"disabled"}};
_.JE(function(){if(b()){Y()&&J(Y());var Q;if(!q()&&((Q=d())==null?0:Q.stepStates)){var v3;Q=Object.keys((v3=d())==null?void 0:v3.stepStates);v3=Q[Q.length-1];var q7,m0;(v3=(q7=d().stepStates[v3])==null?void 0:(m0=q7.userQuery)==null?void 0:m0.userQuery)&&J(v3)}}});
var B=function(Q){var v3=e().onUpdateText;v3&&_.wC(v3,{form:{userQuery:Q}});J(Q)},X=_.rI(function(Q){B(Q.target.value.trim())},150),Z=_.rq(function(Q){var v3;
K(!((v3=Q.target.value)==null||!v3.trim())||r);X(Q);return!1}),U=_.rq(function(Q){if(Q.key==="Enter"&&h()){B(Q.target.value.trim());
Q=void 0;var v3=_.L(e().nextButtonViewModel,_.lx),q7,m0;if(v3==null?0:(q7=v3.loggingDirectives)==null?0:(m0=q7.clientVeSpec)==null?0:m0.uiType){var $S,kS;Q=_.bH(($S=v3.loggingDirectives)==null?void 0:(kS=$S.clientVeSpec)==null?void 0:kS.uiType)}(q7=e().onNextStepCommand)&&_.wC(q7,{forceClickLogging:!0,clickedVisualElement:Q})}return!1}),F=function(Q,v3){r=v3;
K(v3);if(e().isMultiTurnFlow&&v3){var q7;B((q7=Q==null?void 0:Q.text)!=null?q7:"")}if(_.N("web_hide_explore_hub_until_user_navigates_back_to_home")){var m0,$S,kS;(kS=($S=(m0=g.value)==null?void 0:m0.closest("ytd-flow-step-renderer"))==null?void 0:$S.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||kS.click()}},g=_.nI("yt-talk-to-recs-view-model");
v={};return _.m("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:g},_.m("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.m(_.kz,{data:function(){return e().topCornerButton}},{buttonViewModel:_.yi})),_.m("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.m("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.m(_.Dh,{text:function(){return e().title}}),_.m(_.y,{cond:E,
then:function(){return _.m("sup",{class:"ytwTalkToRecsSuperScript"},_.m(_.Dh,{text:E}))}})),_.m("div",{class:"ytwTalkToRecsSubtitle"},_.m(_.Dh,{text:function(){return e().subtitle}})),_.m("div",{class:"ytwTalkToRecsResultsShelf"},_.m(_.y,{cond:T,
then:function(){return _.m(_.kz,{data:T},{chipsShelfViewModel:function(Q){return _.m("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.m(_.x3,{data:Q.data,callback:F,selectionBehavior:1}))}})}}),_.m(_.y,{cond:S,
then:function(){return _.m(_.kz,{data:S},{horizontalShelfViewModel:function(Q){return _.m("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.m(_.lD,{data:Q.data,includeMargin:!0,thumbnailAspectRatio:0}))}})}})),_.m("div",{class:_.qe("ytwTalkToRecsRefinementContainer",(v.ytwTalkToRecsBottomMargin=function(){return e().isMultiTurnFlow},v))},_.m(_.y,{cond:b,
then:function(){return _.m("div",{class:"ytwTalkToRecsUserInputBox"},_.m("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:O,value:k,"on:input":Z,"on:keyup":U,maxlength:200}))}}),_.m(_.kz,{data:function(){return e().isMultiTurnFlow?e().nextButtonViewModel:void 0}},{buttonViewModel:function(Q){return _.m("div",{class:"ytwTalkToRecsFlowControlButtons"},_.m(_.yi,{data:Q.data,
buttonOverrides:R}))}}),_.m(_.kz,{data:q},{buttonViewModel:function(Q){return _.m("div",{class:"ytwTalkToRecsFlowControlButtons"},_.m(_.yi,{data:Q.data,
onClick:function(){var v3=_.L(e().resetButtonViewModel,_.lx);B(k());(v3=v3==null?void 0:v3.onTap)&&_.wC(v3)}}))}}))))},"zg"),"yt-talk-to-recs-view-model",{props:{data:_.U1}});var vLf={sources:[{clientResource:{imageName:"CHECK"}}]};_.DGf=_.l(function(v){var e=_.nI("div");v=_.dC(v,{error:void 0});var d=v.data,E=v.error,T=v.onSelected;v=_.a(_.KM(function(){return ELt(d())}));
var S=v.next().value,O=v.next().value;aTs(d,function(K){O(K);var k,J,R=d__((k=d().options)==null?void 0:(J=k[K])==null?void 0:J.value,d().type);T==null||T(R);e.value.focus()});
v=_.rq(function(){if(!d().disabled){var K=d(),k=S(),J=e.value;K.options&&(K=eh1(K.options,k,K.label),_.dk().resolve(_.fE).openSheet({viewModel:K},J))}});
var b=_.pRt(),Y=function(){return!!E()},q=function(){return!!d().disabled},r={},h={};
return _.m("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.m("div",{class:_.qe("ytDropdownViewModelDropdownContainer",(r.ytDropdownViewModelDropdownContainerErrorBorder=Y,r.ytDropdownViewModelDropdownContainerDisabled=q,r)),"on:click":v,el:e,role:"combobox",tabindex:0,"on:keydown":b,"aria-invalid":Y,"aria-disabled":q,"aria-describedby":function(){return Y()?"dropdown-view-model-error":void 0}},_.m("div",{class:"ytDropdownViewModelText"},Tki(d,Y,S),SIO(d,S)),_.m("div",{class:_.qe("ytDropdownViewModelChevronDown",
(h.ytDropdownViewModelChevronDownDisabled=q,h))},_.m(_.sG,{icon:"CHEVRON_DOWN"}))),WqS(d,E))},"Ag");_.aZ(_.l(function(v){var e=v.data;var d=function(T){var S=Ow9(e());S.videoMetadata||(S.videoMetadata={});S.videoMetadata.sponsorshipsMetadata||(S.videoMetadata.sponsorshipsMetadata={});S.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(T)},E=function(T){var S=Ow9(e());
S.scheduledRedirectMetadata||(S.scheduledRedirectMetadata={});S.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(T)};
return _.m("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.m("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.m("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.m(_.Dh,{text:function(){return e().title}}),_.m(_.sG,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.m(_.Dh,{text:function(){return e().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.m(_.kz,{data:function(){return e().tierChoices}},{dropdownViewModel:function(T){return _.m("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.m(_.DGf,{data:T.data,
onSelected:d}))}}),_.m(_.kz,{data:function(){return e().startTimeChoices}},{dropdownViewModel:function(T){return _.m("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.m(_.DGf,{data:T.data,
onSelected:E}))}}),_.m(_.Dh,{text:function(){return e().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.m("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.m(_.kz,{data:function(){return e().scheduleButton}},{panelFooterViewModel:_.vR})))},"Bg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;v=v.className===void 0?"":v.className;var d=_.Kv(vcf,function(){return e().flowStateEntityKey||""}),E={};
E=_.qe("ytFlowBottomBarViewModelFlowBottomBarButtons",(E.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},E));
var T={},S=_.qe("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",E,(T.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},T.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},T));
T={};var O=_.qe("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",E,(T.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},T.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},T));
E={};E=_.qe("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(E.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},E.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},E.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
E));
v=_.qe("ytFlowBottomBarViewModelHost",v);return _.m("yt-flow-bottom-bar-view-model",{class:v},_.m(_.y,{cond:function(){var b;return(b=e())==null?void 0:b.textSection},
then:function(b){return _.m("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.m(_.Dh,{text:b}))}}),_.m("div",{class:E},_.m(_.kz,{data:function(){return e().secondaryButton}},{buttonViewModel:function(b){return _.m(_.yi,{data:b.data,
className:O})}}),_.m(_.kz,{data:function(){return e().primaryButton}},{buttonViewModel:function(b){return _.m(_.yi,{data:b.data,
className:S,buttonOverrides:function(){var Y;return{disabled:!((Y=d())==null||!Y.primaryButtonDisabled)}}})}})))},"Cg"),"yt-flow-bottom-bar-view-model",{props:{data:_.U1,
className:_.SM}});var UGC="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),EH=function(){var v=_.P.apply(this,arguments)||this;v.enableScrollingFix=!0;v.bottomBar=!1;v.hideBottomBar=!1;v.fitContent=!1;return v};
_.V(EH,_.P);_.W=EH.prototype;_.W.ready=function(){_.N("enable_pdp_icon_prefetch")&&_.ca9(_.dk().resolve(_.Vn),0,UGC)};
_.W.focus=function(v){this.topBar?_.gt(this.topBar,v):this.paperDialog.focus(v)};
_.W.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19057_scroller&&(this.JSC$19057_scroller.dialogElement=this.paperDialog,this.JSC$19057_scroller.attached&&typeof this.JSC$19057_scroller.attached==="function"&&this.JSC$19057_scroller.attached())};
_.W.onDataChanged=function(){var v;this.fitContent=!((v=this.data)==null||!v.fitContent);var e;this.bottomBar=!((e=this.data)==null||!e.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.W.onProgressChanged=function(){var v,e,d=((e=(v=this.data)==null?void 0:v.progress)!=null?e:0)*100;this.progressElement.style.width=d+"%"};
_.W.isProgressHidden=function(){var v;return!((v=this.data)==null?0:v.progress)};
_.W.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(v){return _.N("enable_wiz_next_lp2_msof")&&v&&!v.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.vP.Object.defineProperties(EH.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var v;return _.N("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.L((v=this.data)==null?void 0:v.content,piO)}}});
EH.prototype.onProgressChanged=EH.prototype.onProgressChanged;EH.prototype.onDataChanged=EH.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],EH.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],EH.prototype,"enableScrollingFix",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],EH.prototype,"bottomBar",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],EH.prototype,"hideBottomBar",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],EH.prototype,"containsExploreHub",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],EH.prototype,"fitContent",void 0);_.c([_.sg("#progress"),_.w("design:type",HTMLElement)],EH.prototype,"progressElement",void 0);
_.c([_.sg("#scroller"),_.w("design:type",Object)],EH.prototype,"JSC$19057_scroller",void 0);_.c([_.sg("ytd-flow-top-bar-renderer"),_.w("design:type",HTMLElement)],EH.prototype,"topBar",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EH.prototype,"onDataChanged",null);_.c([_.$v("data.progress"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EH.prototype,"onProgressChanged",null);
_.c([_.z({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],EH);
_.A(EH,"ytd-flow-step-renderer",function(){if(Mai!==void 0)return Mai;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Mai=v},{mode:1});var pV_=function(v){this.resolveCommand=v;this.steps={}},vki=function(v,e){e=_.a(e||[]);
for(var d=e.next();!d.done;d=e.next()){d=d.value;var E=Object.values(d)[0],T=void 0;if((T=E)==null?0:T.stepId)v.steps[E.stepId]=d}},Ek9=function(v,e){var d,E,T,S,O;
return _.I(function(b){if((d=v.state)==null||!d.currentStepId)return b.return(void 0);E=eI9(v);if(!E)return b.return(dy1(v));if(T=_.L(E,_.U_S)){var Y;((Y=T.screenLoggingData)==null?0:Y.screenVeType)&&_.Ig(_.NC(),T.screenLoggingData.screenVeType);((S=T)==null?0:S.onStepStartCommand)&&v.resolveCommand((O=T)==null?void 0:O.onStepStartCommand,{})}if(T&&e){Y=T;var q,r,h,K;((q=e.flowLoggingData)==null?0:q.eventNamespace)&&((r=Y.flowEventData)==null?0:r.eventType)&&((h=Y.flowEventData)==null?0:h.eventMetadata)&&
((K=e.flowLoggingData)==null?0:K.flowType)&&(q=_.hk(e.flowLoggingData.eventNamespace,Y.flowEventData.eventType,Y.flowEventData.eventMetadata),_.$E(_.jU(),q,e.flowLoggingData.flowType));e.steps&&!e.steps.includes(E)&&e.steps.push(E)}return b.return(E)})};
pV_.prototype.back=function(){var v;(v=this.state)!=null&&v.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
pV_.prototype.handleUpdateFlowCommand=function(v){v.steps&&vki(this,v.steps);v.entityUpdateCommand&&this.resolveCommand(v.entityUpdateCommand,{});v.flowContinuationCommand&&(v=v.flowContinuationCommand)&&(this.getFlowContinuationCommand=v);this.awaitFlowContinuation&&(this.awaitFlowContinuation(eI9(this)),this.awaitFlowContinuation=void 0)};
pV_.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var dy1=function(v){return _.I(function(e){return v.getFlowContinuationCommand?e.return(new Promise(function(d){v.awaitFlowContinuation=d;v.getFlowContinuationCommand&&v.resolveCommand(v.getFlowContinuationCommand,{flow_state:v.state})})):e.return(Promise.resolve(void 0))})},eI9=function(v){var e;
if((e=v.state)!=null&&e.currentStepId)return v.steps[v.state.currentStepId]};var TW=function(){var v=_.P.apply(this,arguments)||this;v.flowState=new pV_(function(e,d){d=d===void 0?{}:d;_.hg.instance.resolveCommand(e,{form:{form:d,element:v.hostElement}})});
v.initialState=!0;v.isLoading=!1;v.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"};v.containsTalkToRecs=!1;return v};
_.V(TW,_.P);_.W=TW.prototype;_.W.onPopupClosed=function(v){v&&this.hostElement!==v.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.W.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"}}}};
_.W.focus=function(v){var e=this;_.Q1(function(){var d=_.IB(e.hostElement).querySelector("ytd-flow-step-renderer");(d==null?0:d.topBar)?d.focus(v):e.topBar&&_.gt(e.topBar,v)},1)};
_.W.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.W.computeTopBarHidden=function(v){var e;return!((e=_.L(v,_.U_S))==null||!e.topBarOverride)};
_.W.dataChanged=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1){((e=v.data)==null?0:e.steps)&&vki(v.flowState,v.data.steps);if((d=v.data)==null?0:d.flowContinuationCommand){var T=v.flowState,S=v.data.flowContinuationCommand;S&&(T.getFlowContinuationCommand=S)}return E.yield(Ek9(v.flowState,v.data),2)}v.currentFlowStep=E.yieldResult;_.s9(E)})};
_.W.flowChanged=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1){if(!v.flow)return d.return();v.flowState.state=v.flow;v.isLoading=!0;return d.yield(Ek9(v.flowState,v.data),2)}e=d.yieldResult;if(!e||v.flow.isLoading)return d.return();v.currentFlowStep=e;v.initialState=!1;v.isLoading=!1;v.autofocusAndRefit();v.updateContainsTalkToRecs();_.s9(d)})};
_.W.updateContainsTalkToRecs=function(){var v,e=(v=_.L(this.currentFlowStep,_.U_S))==null?void 0:v.content;this.containsTalkToRecs=!!e&&!!_.L(e,piO)};
_.W.autofocusAndRefit=function(){var v=this,e=_.dk().resolve(_.eG(_.i$)),d=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),E=document.querySelector("yt-report-form-confirmation-page-view-model"),T=document.querySelector("yt-report-form-details-page-view-model"),S=document.querySelector("yt-report-form-reason-select-page-view-model"),O=document.querySelector("yt-contributor-zero-state-view-model"),
b=document.querySelector("yt-structured-context-note-view-model"),Y=document.querySelector("yt-note-view-model");(!d&&e&&e.isKeyBoardInUse()||E||!d&&T||!d&&S||O||b||Y)&&_.nU(this.hostElement);_.Uh(this,function(){_.Iq(v.hostElement,"yt-refit")})};
_.W.handleUpdateFlowCommand=function(v){this.data&&(v=_.L(v,D_i),v.targetId===this.data.targetId&&(v.flowContinuationCommand&&(this.data.flowContinuationCommand=v.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(v),this.autofocusAndRefit()))};
_.W.handleFlowNextStepCommand=function(v){this.data&&this.flow&&this.flow.key&&(v=_.L(v,uoO),v.targetId===this.data.targetId&&(v=v.stepId||"",this.ytdReduxBehavior.dispatch(_.M0("flowStateEntity",this.flow.key,{currentStepId:v,stepIdStack:(this.flow.stepIdStack||[]).concat(v)}))))};
_.W.handleFlowPrevStepCommand=function(v){if(this.data&&this.flow&&this.flow.key&&(v=_.L(v,nLi),v.targetId===this.data.targetId)){var e=[].concat(_.t7(this.flow.stepIdStack||[]));e.length>1?(e.pop(),this.ytdReduxBehavior.dispatch(_.M0("flowStateEntity",this.flow.key,{currentStepId:e[e.length-1],stepIdStack:e}))):v.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(v.onFirstStepCommand)}};
_.W.handleYpcCancelRecurrenceCommand=function(v){if(this.data&&this.flow&&this.flow.key&&(v=_.L(v,Tti),v.targetId===this.data.targetId&&v.endpointCommand)){var e=_.L(this.flow,S$t);e&&_.L(v.endpointCommand,_.lbg)&&(_.L(v.endpointCommand,_.lbg).feedbackData=e.surveyFeedback);this.ytComponentBehavior.resolveCommand(v.endpointCommand)}};
_.W.handlePartialUpdateFlowStateEntity=function(v){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.M0("flowStateEntity",this.flow.key,v,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
TW.prototype.flowChanged=TW.prototype.flowChanged;TW.prototype.dataChanged=TW.prototype.dataChanged;TW.prototype.onPopupClosed=TW.prototype.onPopupClosed;_.c([_.M(_.lV),_.w("design:type",Object)],TW.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],TW.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],TW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],TW.prototype,"initialState",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],TW.prototype,"isLoading",void 0);_.c([_.f(),_.w("design:type",Object)],TW.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],TW.prototype,"currentFlowStep",void 0);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],TW.prototype,"onPopupClosed",null);_.c([_.f({selectorArgs:["data.flowStateEntityKey"],selector:vcf}),_.w("design:type",Object)],TW.prototype,"flow",void 0);_.c([_.sg("ytd-flow-top-bar-renderer"),_.w("design:type",HTMLElement)],TW.prototype,"topBar",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],TW.prototype,"dataChanged",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],TW.prototype,"containsTalkToRecs",void 0);_.c([_.V1("flow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],TW.prototype,"flowChanged",null);_.c([_.z({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],TW);
_.Tm9=_.I5()(TW,"ytd-flow-root-renderer",function(){if(GdO!==void 0)return GdO;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return GdO=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var Shs;var sv=null;_.aZ(_.l(function(v){return _.m("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.m("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.m(_.Dh,{text:function(){return v.data().text}}),_.m("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Dg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.U1}});var WhO=_.l(function(v){var e=v.playerControlsProps;var d=v.isShortsPage;return _.m("yt-bigboard",null,_.m(_.y,{cond:function(){return e().isDragging},
then:function(){return _.m("div",{class:"ytBigboardStoryboardHost"},_.m(_.lPC,{progressBarProps:e,isShortsPage:d}))}}))},"Eg");
WhO.idomCompat=!0;_.Sg={ACCOUNT_LABEL:NV("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:NV("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:NV("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:NV("AD_BADGE_HINT"),AD_BADGE_TEXT:NV("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:NV("ALL_CHANNELS_LABEL"),AMBIENT_MODE:NV("AMBIENT_MODE"),AMBIENT_MODE_OFF:NV("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:NV("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:NV("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:NV("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:NV("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:NV("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:NV("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:NV("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:NV("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:NV("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:NV("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:NV("AUTO_ZOOM","Auto zoom"),BACK:NV("BACK"),CANCEL:NV("CANCEL"),CHANNEL_SWITCHER_LABEL:NV("CHANNEL_SWITCHER_LABEL"),CLOSE:NV("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:NV("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:NV("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:NV("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:NV("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:NV("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:NV("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:NV("COMMENT_MODAL_CONTENT"),CONFIRM_OK:NV("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:NV("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:NV("COPIED_TO_CLIPBOARD"),COPY:NV("COPY"),COPY_DEBUG_INFO:NV("COPY_DEBUG_INFO"),COPY_EMBED_CODE:NV("COPY_EMBED_CODE"),
COPY_LINK_LABEL:NV("COPY_LINK_LABEL"),COPY_VIDEO_URL:NV("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:NV("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:NV("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:NV("DELETE_FROM_DOWNLOADS"),DIALOG:NV("DIALOG"),DONE:NV("DONE"),DOWNLOAD:NV("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:NV("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:NV("FLAG_CONFIRM"),FLAG_CONTENT:NV("FLAG_CONTENT"),FLAG_LABEL:NV("FLAG_LABEL"),FLAG_TITLE:NV("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:NV("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:NV("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:NV("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:NV("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:NV("HIDE_SEARCH_FILTERS_LABEL"),HOME:NV("HOME","Home"),INVALID_RESPONSE_RECEIVED:NV("INVALID_RESPONSE_RECEIVED"),LIBRARY:NV("LIBRARY","Library"),LISTENING:NV("LISTENING"),LOADING:NV("LOADING"),LONG_PRESS_MIC_TO_SPEAK:NV("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:NV("LOOP"),MENU_DESKTOP:NV("MENU_DESKTOP"),
MENU_EXIT:NV("MENU_EXIT"),MENU_FEEDBACK:NV("MENU_FEEDBACK"),MENU_HELP:NV("MENU_HELP"),MENU_IMPRESSUM:NV("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:NV("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:NV("MENU_SETTINGS"),MENU_SIGN_IN:NV("MENU_SIGN_IN"),MENU_TITLE:NV("MENU_TITLE"),MENU_YOUR_DATA:NV("MENU_YOUR_DATA"),MORE_INFO:NV("MORE_INFO"),MORE_OPTIONS:NV("MORE_OPTIONS"),MUTE_VOLUME:NV("MUTE_VOLUME"),NEW_PLAYLIST:NV("NEW_PLAYLIST"),NEXT_VIDEO:NV("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:NV("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:NV("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:NV("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:NV("NOT_FOUND_TITLE"),NO_DOWNLOADS:NV("NO_DOWNLOADS"),NO_MIC_INPUT:NV("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:NV("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:NV("OOPS_MESSAGE"),OPEN_APP:NV("OPEN_APP"),OPEN_YOUTUBE:NV("OPEN_YOUTUBE"),PAUSE:NV("PAUSE"),PLAY:NV("PLAY"),PLAYER_CAPTION:NV("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:NV("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:NV("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:NV("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:NV("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:NV("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:NV("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:NV("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:NV("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:NV("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:NV("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:NV("PLAYER_MINIMIZE"),PLAYER_NEXT:NV("PLAYER_NEXT"),PLAYER_PAUSE:NV("PLAYER_PAUSE"),PLAYER_PLAY:NV("PLAYER_PLAY"),
PLAYER_PREVIOUS:NV("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:NV("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:NV("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:NV("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:NV("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:NV("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:NV("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:NV("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:NV("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:NV("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:NV("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:NV("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:NV("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:NV("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:NV("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:NV("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:NV("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:NV("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:NV("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:NV("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:NV("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:NV("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:NV("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:NV("PLAY_ALL"),PLEASE_FIX_ERRORS:NV("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:NV("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:NV("PREVIOUS_VIDEO"),PRIVACY_POLICY:NV("PRIVACY_POLICY"),RELOAD:NV("RELOAD"),REQUIRED_LABEL:NV("REQUIRED_LABEL"),SAVE_PLAYLIST:NV("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:NV("SCRUB_SLIDE_USER_EDU"),SEARCH:NV("SEARCH","Search"),
SEARCH_APPEND_LABEL:NV("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:NV("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:NV("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:NV("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:NV("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:NV("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:NV("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:NV("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:NV("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:NV("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:NV("SEEK_SLIDER"),SETTINGS_LABEL:NV("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:NV("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:NV("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:NV("SHOW_LESS"),SHOW_MORE:NV("SHOW_MORE"),SHOW_PLAYER_CONTROLS:NV("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:NV("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:NV("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:NV("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:NV("SIGN_IN_ON_WEB"),STABLE_VOLUME:NV("STABLE_VOLUME"),STABLE_VOLUME_OFF:NV("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:NV("STABLE_VOLUME_ON"),STATS_FOR_NERDS:NV("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:NV("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:NV("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:NV("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:NV("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:NV("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:NV("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:NV("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:NV("TIMESTAMP_SECONDS"),TOGGLE_OFF:NV("TOGGLE_OFF"),TOGGLE_ON:NV("TOGGLE_ON"),TRENDING:NV("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:NV("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:NV("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:NV("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:NV("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:NV("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:NV("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:NV("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:NV("VIDEO_LINK_LABEL")};var a8s=_.l(function(v){var e=v.playerApi;v=_.nI("button",function(E){_.nH(E,36843)});
var d=NV("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.m("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.m("button",{el:v,class:"ytPlayerControlsJumpForwardButtonButton",title:d,"aria-label":d,"on:click":_.rq(function(){_.D$(36843);e&&e().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.m("span",null,_.m(_.sG,{icon:"FAST_FORWARD"}))))},"Fg");var ikO=_.l(function(v){var e=v.appApi;v=_.nI("button",function(E){_.nH(E,62946)});
var d=NV("OPEN_IN_MINIPLAYER");return _.m("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.m("button",{el:v,class:"ytMiniplayerButtonButton",title:d,"aria-label":d,"on:click":_.rq(function(){_.D$(62946);var E,T;(T=(E=e()).openInMiniplayer)==null||T.call(E);return!1})},_.m(_.sG,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Gg");var Oks=_.l(function(v){var e=v.playerApi;v=_.nI("button",function(S){_.nH(S,142812)});
var d=_.a(_.OE(!1,void 0,"I3VCyb")),E=d.next().value,T=d.next().value;d=function(){return NV("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(E()?1:2)})};
return _.m("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.m("button",{el:v,class:"ytPlaybackSpeedButtonButton",title:d,"aria-label":d,"on:click":_.rq(function(){_.D$(142812);if(e){var S=e(),O=E();S.setPlaybackRate(O?1:2);T(!E())}return!1})},_.m("span",null,_.m(_.sG,{icon:function(){return E()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Hg");var I8v=_.l(function(v){var e=v.title;var d=v.ariaLabel;var E=v.icon;var T=v.command;var S=v.veType;v=_.nI("button",function(O){S&&_.nH(O,S())});
return _.m("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.m("button",{el:v,class:"ytdThumbnailOverlayButtonButton",title:e,"aria-label":d,"on:click":_.rq(function(){S&&_.D$(S());T&&_.dk().resolve(_.EI).resolveCommand(T())})},_.m(_.sG,{icon:E})))},"Ig");var mP="";var bki=_.l(function(v){var e=v.playerControlsProps,d=v.onClickFn;v=_.yl(function(){var S=e(),O=-1;S.captionsAvailable&&(O=S.captionsEnabled?1:0);return O},void 0,"WecR8e");
var E=_.yl(function(){var S=e();return S.captionsAvailable?_.sz(S.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.sz("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),T=_.yl(function(){var S=e();
S=S.captionsAvailable?S.captionsEnabled:void 0;return S},void 0,"Q17ly");
return _.m("yt-closed-captions-toggle-button",null,_.m(_.kq_,{captionIconType:v,ariaLabel:E,ariaPressed:T,onClick:function(S){var O=e();if(O.captionsAvailable){var b=O.playerApi;if(b){var Y=O.playerApi;if(Y){var q=mP;if(q){Y=Y.getOption("captions","track");var r;mP=(r=Y?Y.displayName:null)!=null?r:q}else _.uQ(Y)?(q=_.ks7(Y),mP=q.length?(r=Ec_(q))?r.displayName:q[0].displayName:""):mP=""}TZv(b);_.N("mweb_disable_set_state_captions_killswitch")&&O.setState({captionsEnabled:!O.captionsEnabled})}}var h,
K;(K=(h=O.appApi).showCaptionsToggleToast)==null||K.call(h,O);d==null||d(S)},
isOverlay:!0}))},"Jg");var Yh1=_.l(function(v){var e=v.data;return _.m("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.m(_.H7,{data:function(){return{type:17,text:_.ulU(e().label)}}}))},"Kg");var my_=_.l(function(v){var e=_.qe("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return v.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return v.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return v.size()==="small"?v.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
v.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.m("animated-seek-arrows",{class:_.qe("ytPlayerControlsAnimatedSeekArrowsHost")},_.m("span",{class:e}),_.m("span",{class:e}),_.m("span",{class:e}))},"Lg");
my_.idomCompat=!0;var y0t=_.l(function(){var v=_.sz("PLAYER_SECONDS",{seconds_placeholder:"30"}),e=_.a(_.OE(!1,void 0,"Yj8msb")),d=e.next().value,E=e.next().value,T=_.a(_.OE(!1,void 0,"r9Z50e"));e=T.next().value;var S=T.next().value;T={};var O=_.qe("jumpForwardOverlayOverlay",(T.jumpForwardOverlayOverlayHidden=e,T));_.Gr(function(){var b=null,Y=null,q=function(){b!==null&&_.jd().cancelJob(b);Y!==null&&_.jd().cancelJob(Y);S(!0);E(!0);_.Yj(_.jd(),function(){S(!1)});
b=_.Yj(_.jd(),function(){S(!0);Y=_.Yj(_.jd(),function(){E(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",q);_.Jf(function(){window.removeEventListener("jump-forward-clicked",q)})});
return _.m("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.m(_.y,{cond:d,then:function(){return _.m("div",{class:O},_.m(my_,{direction:1,size:"large"}),_.m("div",null,v))}}))},"Mg");var qhf=_.Sg.MUTE_VOLUME,r0s=_.Sg.UNMUTE_VOLUME,hIS=_.l(function(v){var e=v.muteIconType;var d=v.onClick;var E=v.useOutlineIcon;var T=v.useDelhiIcons;v=_.nI("button",function(b){_.nH(b,28662)});
var S=function(){var b=e(),Y=E==null?void 0:E(),q=T==null?void 0:T(),r="",h="";switch(b){case -1:case 0:r=Y?"VOLUME_OFF":q?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";h=r0s;break;case 1:r=Y?"VOLUME_UP_OUTLINE":q?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";h=qhf;break;case 2:r=Y?"VOLUME_DOWN_OUTLINE":q?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";h=qhf;break;default:_.Z0(b)}return{iconName:r,ariaLabel:h}},O=function(){return S().ariaLabel};
return _.m("ytm-mute-button",{class:"ytmMuteButtonHost"},_.m("button",{el:v,class:"ytmMuteButtonButton",title:O,"aria-label":O,"on:click":_.rq(function(b){_.D$(28662);d==null||d(b);return!1})},_.m("span",null,_.m(_.sG,{icon:function(){return S().iconName}}))))},"Ng");var Khs=_.l(function(v){var e=v.volumeProps;var d=v.onClickFn;var E=v.useOutlineIcon;var T=v.useDelhiIcons;return _.m("yt-mute-toggle-button",null,_.m(hIS,{muteIconType:function(){var S=e();return S.volumeMuted||S.volume===0?0:S.volume>50?1:2},
onClick:function(S){var O=e().playerApi;O&&(O.isMuted()?O.unMute():O.mute(!1));d==null||d(S)},
useOutlineIcon:function(){return!(E==null||!E())},
useDelhiIcons:function(){return!(T==null||!T())}}))},"Og");
Khs.idomCompat=!0;var $yf=_.l(function(v){var e=v.data;var d=_.nI("ytm-paid-content-overlay-renderer");return _.m("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:d,"on:animationend":_.rq(function(){d.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.m(_.Oe,{command:function(){return e().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.m(_.y,{cond:function(){var E;return(E=e().icon)==null?void 0:E.iconType},
then:function(){return _.m("span",null,_.m(_.sG,{icon:function(){var E;return(E=e().icon)==null?void 0:E.iconType}}))}}),_.m("div",{class:"ytmPaidContentOverlayText"},_.m(_.Dh,{text:function(){return e().text}})),_.m(_.y,{cond:function(){return e().navigationEndpoint},
then:function(){return _.m(_.sG,{icon:"CHEVRON_RIGHT"})}})))},"Pg");
$yf.idomCompat=!0;var LqC=[].concat(_.t7([{register:function(v){var e=x_C(v),d;(d=v().playerApi)==null||d.addEventListener("onVolumeChange",e);return function(){}}},
{register:function(v){var e=Bki(v);v=v().playerApi;v==null||v.addEventListener("captionschanged",e);v==null||v.addEventListener("captionssettingschanged",e);v==null||v.addEventListener("onCaptionsTrackListChanged",e);return function(){}}},
{register:function(v){if(!_.N("mweb_screenreader_accessible_player"))return function(){};
var e=CYi(v),d=document.querySelector("video");d==null||d.addEventListener("touchend",e);return function(){d==null||d.removeEventListener("touchend",e)}}},
{register:function(v){if(!_.N("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var e=CYi(v),d=document.querySelector("video");d==null||d.addEventListener("focus",e);return function(){d==null||d.removeEventListener("focus",e)}}}]),[{register:function(v){var e=tG9(v),d;
(d=v().playerApi)==null||d.addEventListener("onStateChange",e);return function(){}}},
{register:function(v){var e=fT9(v),d;(d=v().playerApi)==null||d.addEventListener("onPlaybackRateChange",e);return function(){}}},
{register:function(v){var e=Rh_(v),d;(d=v().playerApi)==null||d.addEventListener("onVideoDataChange",e);return function(){}}},
{register:function(v){var e=PYs(v),d,E;(d=v())==null||(E=d.playerApi)==null||E.addEventListener("onVideoProgress",e);return function(){}}}]);var jOi=_.l(function(v){var e=v.data;var d=function(){return _.sz("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+e().playbackRate})};
return _.m(_.y,{cond:function(){return e().playbackRate&&e().playbackRate!==1},
then:function(){return _.m("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.m("div",{class:"ytPlaybackRateOverlayOverlay"},_.m(my_,{direction:1,size:"small"}),_.m("div",{class:"ytPlaybackRateOverlayLabel"},d)))}})},"Qg");var sO_=_.l(function(v){var e=v.data;return _.m("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.m(_.y,{cond:function(){var d,E=(d=e())==null?void 0:d.playerResponse,T;return E==null?void 0:(T=E.paidContentOverlay)==null?void 0:T.paidContentOverlayRenderer},
then:function(d){return _.m($yf,{data:d})}}))},"Sg"),Nm9=_.l(function(v){var e=v.props;
var d=v.data;var E=v.options;var T=function(){var q,r,h,K;return(q=d())==null?void 0:(r=q.playerResponse)==null?void 0:(h=r.playerConfig)==null?void 0:(K=h.inlinePlaybackConfig)==null?void 0:K.showAudioControls},S=function(){var q,r;
if(T()&&((q=E())==null?void 0:(r=q.additionalButton)==null?void 0:r.button)!==void 0){var h,K,k;q=(h=d())==null?void 0:(K=h.playerApi)==null?void 0:(k=K.getSize())==null?void 0:k.height;if(!(q===void 0||q<180)){var J,R;return(J=E())==null?void 0:(R=J.additionalButton)==null?void 0:R.button}}},O=function(){var q,r;
return(q=E())==null?void 0:(r=q.additionalButton)==null?void 0:r.thumbnailOverlayButtonRenderers},b=function(){var q,r;
return(q=E())==null?void 0:(r=q.additionalButton)==null?void 0:r.thumbnailOverlayButtonViewModels},Y=function(){var q=[_.m(Khs,{volumeProps:e}),
_.m(bki,{playerControlsProps:e})];S()===1&&q.push(_.m(a8s,{playerApi:function(){return e().playerApi}}));
S()===2&&q.push(_.m(ikO,{appApi:function(){return e().appApi}}));
S()===3&&q.push(_.m(Oks,{playerApi:function(){return e().playerApi}}));
var r=O();if(S()===4&&r){r=_.a(r);for(var h=r.next(),K={};!h.done;K={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$587:void 0},h=r.next()){h=h.value;K.tooltip$jscomp$2=h.tooltip;var k=void 0,J=void 0;K.ariaLabel$jscomp$20=((k=h.accessibility)==null?void 0:(J=k.accessibilityData)==null?void 0:J.label)||K.tooltip$jscomp$2;k=void 0;K.icon$jscomp$50=(k=h.icon)==null?void 0:k.iconType;K.command$jscomp$587=h.command;K.tooltip$jscomp$2&&K.ariaLabel$jscomp$20&&K.icon$jscomp$50&&
q.push(_.m(I8v,{title:function(R){return function(){return R.tooltip$jscomp$2}}(K),
ariaLabel:function(R){return function(){return R.ariaLabel$jscomp$20}}(K),
icon:function(R){return function(){return R.icon$jscomp$50}}(K),
command:function(R){return function(){return R.command$jscomp$587}}(K)}))}}r=b();
if(S()===4&&r)for(r=_.a(r),h=r.next(),K={};!h.done;K={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$588:void 0},h=r.next())h=h.value,K.tooltip$jscomp$3=h.title,K.ariaLabel$jscomp$21=h.accessibilityText||K.tooltip$jscomp$3,K.icon$jscomp$51=h.iconName,K.command$jscomp$588=_.lk(h.onTap),K.tooltip$jscomp$3&&K.ariaLabel$jscomp$21&&K.icon$jscomp$51&&q.push(_.m(I8v,{title:function(R){return function(){return R.tooltip$jscomp$3}}(K),
ariaLabel:function(R){return function(){return R.ariaLabel$jscomp$21}}(K),
icon:function(R){return function(){return R.icon$jscomp$51}}(K),
command:function(R){return function(){return R.command$jscomp$588}}(K)}));
return q};
return _.m(_.y,{cond:T,then:function(){return _.m("div",{class:"ytInlinePlayerControlsTopRightControls"},_.m(_.jI,{each:Y},function(q){return _.m("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.m("div",{class:"ytInlinePlayerControlsButtonIcon"},q))}))}})},"Tg"),VO9=_.l(function(v){var e=v.props;
var d=v.data;var E=v.options;v={};v=_.qe("ytInlinePlayerControlsBottomRightControls",(v.ytInlinePlayerControlsBottomRightControlsHidden=function(){var T;return zhi(d(),E())&&((T=E())==null?void 0:T.insetProgressBar)&&(e().isHovering||e().isDragging)},v));
return _.m("div",{class:v},_.m(kv_,{data:d}),_.m(_.y,{cond:function(){var T;return!((T=E())==null?0:T.hideTimeDisplay)},
then:function(){return _.m(Lh9,{props:e,data:d})}}))},"Ug"),kv_=_.l(function(v){var e=v.data;
return _.m(_.kz,{data:function(){var d;return sHt((d=e())==null?void 0:d.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Yh1})},"Vg"),Lh9=_.l(function(v){var e=v.props;
var d=v.data;return _.m(_.y,{cond:function(){return e().isLive},
then:function(){return _.m(oks,null)},
else:function(){return _.m(J0C,{props:e,data:d})}})},"Wg"),J0C=_.l(function(v){var e=v.props;
var d=v.data;var E=_.yl(function(){var T;return kRf((T=d())==null?void 0:T.thumbnailOverlays)},void 0,"kUmuA");
return _.m("div",{class:_.qe("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Sg.PLAYER_TIME_ELAPSED+" "+_.Rmj(e().playedTime)}},_.m(_.H7,{data:function(){var T=_.Rmj(e().videoDuration-e().playedTime);
return Object.assign({},{type:17,text:T},E())}}))},"Xg"),oks=_.l(function(){var v=_.qe("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.m("div",{class:v},_.m(_.H7,{data:{type:18,text:_.Sg.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Yg"),Gvs=_.l(function(v){var e=v.props;
var d=v.data;var E=v.options;return _.m(_.F1i,{progressBarProps:e,config:function(){var T,S=_.L((T=d())==null?void 0:T.multiMarkersPlayerBar,_.bR6),O;T=((O=E())==null?0:O.insetProgressBar)?2:1;var b;O=(b=E())==null?void 0:b.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:T,chapterData:S,isInlinePlayback:!0,doSeekOnClick:O,playheadDotBehavior:O?1:0}}})},"Zg");_.aZ(_.l(function(v){var e=v.data;var d=v.appApi;var E=v.options;var T=MGf(e,Xii(d));v={};d={};return _.m("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.m("div",{class:_.qe("ytInlinePlayerControlsDarkenedOverlay",(v.ytInlinePlayerControlsDarkenedOverlayShow=function(){return T().isHovering},v))}),_.m(y0t,null),_.m(jOi,{data:T}),_.m(sO_,{data:e}),_.m(WhO,{playerControlsProps:T,
isShortsPage:!1}),_.m("div",{class:_.qe((d.ytInlinePlayerControlsControlsHidden=function(){return T().isDragging},d))},_.m(Nm9,{props:T,
data:e,options:E}),_.m(VO9,{props:T,data:e,options:E})),_.m(_.y,{cond:function(){return zhi(e(),E())},
then:function(){return _.m(Gvs,{props:T,data:e,options:E})}}))},"Rg"),"yt-inline-player-controls",{props:{data:_.U1,
appApi:_.SM,options:_.U1}});var WR=function(){var v=_.P.apply(this,arguments)||this;v.opts=null;v.playerControlsData=null;v.playerControlsAppApi={openInMiniplayer:function(){v.openInMiniplayer()}};
v.playerControlsOptions={};v.noAnimation=!1;v.playbackIntentTriggered=!1;v.positionData=null;v.hidden=!0;v.active=!1;v.playing=!1;v.videoPreviewDataIndex=0;v.JSC$19113_playerPromise=null;v.player=null;v.enableAudioControls=!1;v.hasBeenUnmuted=!1;v.captionsHaveBeenTurnedOff=!1;v.JSC$19113_playerEvents=new Map;v.videoPreviewFetchRequest=null;v.scheduledPreviewEndJobId=null;v.JSC$19113_preventProgressSaveTimer=null;v.watchEndpointStartTimeUpdaterInterval=null;v.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};v.windowOnBlurFn=function(){v.deactivate()};
return v};
_.V(WR,_.P);_.W=WR.prototype;
_.W.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.N("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"}}}};
_.W.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19113_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19113_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19113_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19113_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.hG(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.hG(this,this.onScroll))};
_.W.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.hG(this,this.onScroll))};
_.W.onPageTypeChange=function(){this.deactivate()};
_.W.onWindowResized=function(){this.deactivate()};
_.W.onCaptionsChanged=function(v){v=!!v.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!v);this.setCaptionSize()};
_.W.setCaptionSize=function(){var v;if(this.active&&!this.captionsHaveBeenTurnedOff&&((v=this.player)==null?0:v.getCaptionWindowContainerId())){var e;(e=this.player)==null||e.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.W.currentPageAllowed=function(){return!this.isWatchPage};
_.W.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var v=this.positionData,e=v.initialTopPosition,d=v.initialHorizontalPosition;_.qr(this.hostElement,{"--ytd-video-preview-translate-left":v.finalHorizontalPosition-d+"px","--ytd-video-preview-translate-top":v.finalTopPosition-e+"px","--ytd-video-preview-original-top-position":e+"px","--ytd-video-preview-original-horizontal-position":d+"px",
"--ytd-video-preview-initial-scale":"scale("+v.initialScale+")","--ytd-video-preview-width":v.videoPreviewWidth+"px","--ytd-video-preview-height":v.videoPreviewHeight+"px"});return!0};
_.W.handleOpenVideoPreviewAction=function(v){var e=this,d;return _.I(function(E){if(!e.currentPageAllowed())return E.return(0);e.opts=v;return(d=e.alignVideoPreviewForAnimation(v.thumbnail))?E.return(e.activate()):E.return(0)})};
_.W.onMouseLeave=function(v){this.shouldDeactivateOnMouseLeave(v)&&this.deactivate()};
_.W.onScroll=function(){var v,e;((v=this.opts)==null?0:v.isAutoplay)&&((e=this.opts)==null?0:e.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.W.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.RM.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.W.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.W.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",WR.JSC$19112_DEFAULT_CLICK_LOCATION_BEHAVIOR,WR.JSC$19112_CLICK_LOCATION_ID_MAP)};
_.W.shouldDeactivateOnMouseLeave=function(v){v=v.relatedTarget;if(!v)return!0;var e;return(e=this.opts)!=null&&e.mediaRenderer?!_.bh(this.opts.mediaRenderer).contains(v):!0};
_.W.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.W.onPlaybackStart=function(){var v=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$19113_preventProgressSaveTimer=
_.Yj(_.RM,function(){v.resetPreventProgressSaveTimer()},1E4);
var e;if((e=this.opts)==null?0:e.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Yj(_.RM,function(){v.hasMultipleVideoPreviews()?v.startPlaybackForNextVideo():v.deactivate()},this.opts.videoPreviewDurationMs);
var d;this.player.setGlobalCrop(((d=this.opts)==null?0:d.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.W.getRoundedCornersSize=function(){var v;if((v=this.opts)==null?0:v.roundedCornersSize){var e;return(e=this.opts)==null?void 0:e.roundedCornersSize}var d;if((d=this.opts)==null?0:d.enableRounding){var E;if(((E=this.opts)==null?void 0:E.thumbnailSize)==="small")return 1;var T;if(((T=this.opts)==null?void 0:T.thumbnailSize)==="medium")return 2;var S;if(((S=this.opts)==null?void 0:S.thumbnailSize)==="large")return 3}return _.N("web_imp_inset_progress_bar")?3:0};
_.W.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.W.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.W.onMediaContainerClick=function(v){this.isShortcutClick(v)||(this.navigateToWatch(v),v.preventDefault(),v.stopPropagation())};
_.W.activate=function(){var v=this,e,d,E,T,S,O,b,Y,q;return _.I(function(r){switch(r.nextAddress){case 1:if(!v.currentPageAllowed())return r.return(0);d=(e=v.videoPreviewData)==null?void 0:e.inlinePlaybackEndpoint;E=_.wq.instance;if(!d||!E)return r.return(0);v.playbackIntentTriggered=!0;((T=v.opts)==null?0:T.mediaRenderer)&&((S=v.opts)==null||!S.isAutoplay)&&$__(v.opts.mediaRenderer,function(){v.deactivate()});
_.Uh(v,function(){v.revealPreviewUi()});
O={};_.N("enable_unknown_lact_fix_on_html5")&&(_.dk().resolve(_.oZ),O.lact=_.TN());v.videoPreviewFetchRequest=m_i(E,v.getInlinePlaybackRequestData(v.videoPreviewData),O);_.qq(r,2);return r.yield(v.videoPreviewFetchRequest,4);case 4:b=r.yieldResult;if(((Y=b)==null?void 0:(q=Y.playabilityStatus)==null?void 0:q.status)==="OK")return r.return(v.handlePlayerResponse(b));throw Error("Vj");case 2:_.jl(r),v.deactivate();case 3:return r.return(1)}})};
_.W.getInlinePlaybackRequestData=function(v){var e,d=_.N("web_imp_player_mute_params")?((e=this.opts)==null?void 0:e.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:v.inlinePlaybackEndpoint,startPlaybackInMutedState:d}};
_.W.handlePlayerResponse=function(v){var e=this,d,E,T,S,O,b,Y,q,r,h;return _.I(function(K){if(K.nextAddress==1){d=e.getInlinePlaybackVideoId();if(!(((E=v)==null?0:(T=E.videoDetails)==null?0:T.videoId)&&e.currentPageAllowed()&&e.playbackIntentTriggered&&e.opts&&d))return e.deactivate(),K.return(0);if(v.videoDetails.videoId!==d)return K.return(0);e.enableAudioControls=!!((S=v.playerConfig)==null?0:(O=S.inlinePlaybackConfig)==null?0:O.showAudioControls);v.trackingParams=e.getInlinePlaybackTrackingParams();
if(!e.inlinePlayer)return K.return(0);b={};if(q=_.L((Y=e.videoPreviewData)==null?void 0:Y.inlinePlaybackEndpoint,_.p2))b.watch_endpoint=q;if(e.videoPreviewData){var k,J=(k=_.L(e.videoPreviewData.inlinePlaybackEndpoint,_.p2))==null?void 0:k.startTimeSeconds;J!==void 0&&(v.playerConfig||(v.playerConfig={}),v.playerConfig.playbackStartConfig||(v.playerConfig.playbackStartConfig={}),v.playerConfig.playbackStartConfig.startPosition||(v.playerConfig.playbackStartConfig.startPosition={}),v.playerConfig.playbackStartConfig.startSeconds=
J,v.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(J*1E3))}e.inlinePlayer.loadVideoWithPlayerResponse(v,b);if(e.JSC$19113_playerPromise)return K.jumpTo(2);e.JSC$19113_playerPromise=e.inlinePlayer.getPlayerPromise();return K.yield(e.JSC$19113_playerPromise,3)}K.nextAddress!=2&&(r=K.yieldResult,r.setInlinePreview(!0),r.setSizeStyle(!1,!0),e.ytPlayerListenerBehavior.listenToPlayerEvents(r,e.JSC$19113_playerEvents),e.player=r,_.Iq(e.hostElement,"player-api-ready"));((h=e.opts)==
null?0:h.showPlayerControls)&&e.videoPreviewData&&e.player&&(e.playerControlsData={playerResponse:v,isInlinePlayback:!0,thumbnailOverlays:e.videoPreviewData.thumbnailOverlays,playerApi:e.player},e.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!e.unroundCornersForPlayback,additionalButton:e.getAdditionalButtonType(e.videoPreviewData.thumbnailOverlays)});return K.return(2)})};
_.W.revealPreviewUi=function(){var v=this;this.playbackIntentTriggered&&_.Zpt(this,function(){v.hasThumbnailPositionChangedSinceTriggered()||(v.updateActiveState(!0),v.noAnimation=!1)})};
_.W.hasThumbnailPositionChangedSinceTriggered=function(){var v=this.positionData,e=this.getThumbnailPositionData();return(v==null?void 0:v.initialTopPosition)!==(e==null?void 0:e.initialTopPosition)||(v==null?void 0:v.initialHorizontalPosition)!==(e==null?void 0:e.initialHorizontalPosition)};
_.W.getThumbnailPositionData=function(){var v,e;if((e=this.opts)==null||!e.thumbnail)return null;e=this.opts.thumbnail;var d=((v=this.opts)==null?0:v.cropPlayerToFillThumbnailHorizontally)?!1:!0;var E=e.getBoundingClientRect();v=E.width;e=E.height;var T=E.top+window.scrollY;E=E.left+window.scrollX;var S=d?Math.ceil(v):v;d=d?Math.ceil(e):e;var O=v/S;v={initialScale:O,initialTopPosition:T-12*O,finalTopPosition:T-12-(d-e)/2,initialHorizontalPosition:E-(12+(S-v)/2),finalHorizontalPosition:E-12-(S-v)/
2,videoPreviewWidth:S,videoPreviewHeight:d};return v};
_.W.updateActiveState=function(v){this.active=v;this.ytdReduxBehavior.dispatch(_.Oo({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:v}))};
_.W.stopPlayer=function(v){v=v.resetWatchEndpointStartTime===void 0?!1:v.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(v)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.RM.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.W.deactivate=function(v){v=v===void 0?{}:v;v=v.resetWatchEndpointStartTime===void 0?!1:v.resetWatchEndpointStartTime;sv&&(sv.disconnect(),sv=null);this.stopPlayer({resetWatchEndpointStartTime:v});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.W.isValidThumbnailOverlayButton=function(v,e){v=v.thumbnailOverlayButtonRenderer;var d;return!!v&&!!v.tooltip&&!((d=v.icon)==null||!d.iconType)&&e.includes(v.icon.iconType)};
_.W.isValidThumbnailOverlayButtonViewModel=function(v,e){var d;v=_.L((d=v.thumbnailOverlayButtonViewModel)==null?void 0:d.overlayButton,_.lx);return!!v&&!!v.title&&!!v.iconName&&e.includes(v.iconName)};
_.W.getAdditionalButtonType=function(v){var e=this;if(_.N("web_imp_fastforward_button"))return{button:1};if(_.N("web_imp_miniplayer_button"))return{button:2};if(_.N("web_imp_playback_speed_button"))return{button:3};var d=["BOX_STACK_3"],E=(v||[]).filter(function(S){return e.isValidThumbnailOverlayButton(S,d)}).map(function(S){return S.thumbnailOverlayButtonRenderer});
if(E.length)return{button:4,thumbnailOverlayButtonRenderers:E};var T=["BOX_STACK_3"];v=(v||[]).filter(function(S){return e.isValidThumbnailOverlayButtonViewModel(S,T)}).map(function(S){return _.L(S.thumbnailOverlayButtonViewModel.overlayButton,_.lx)});
if(v.length)return{button:4,thumbnailOverlayButtonViewModels:v}};
_.W.allowCaptions=function(){var v;return!((v=this.opts)==null?0:v.forceCaptionsOff)};
_.W.allowUnmuting=function(){var v;return this.enableAudioControls&&!((v=this.opts)==null?0:v.forceMutedVolume)};
_.W.beginStartTimeUpdater=function(){var v=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.bY(function(){v.updateWatchEndpointStartTime()},1E3)};
_.W.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.W.resetPreventProgressSaveTimer=function(){this.JSC$19113_preventProgressSaveTimer!==null&&(_.RM.cancelJob(this.JSC$19113_preventProgressSaveTimer),this.JSC$19113_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.W.updateWatchEndpointStartTime=function(v){var e=this.videoPreviewData;if(this.player&&e!=null&&e.inlinePlaybackEndpoint&&!this.JSC$19113_preventProgressSaveTimer){v=v?0:Math.floor(this.player.getCurrentTime());var d=_.L(e.navigationEndpoint,_.p2);d&&(d.startTimeSeconds=v);if(e=_.L(e.inlinePlaybackEndpoint,_.p2))e.startTimeSeconds=v}};
_.W.isShortcutClick=function(v){return!!v&&(v.ctrlKey||v.shiftKey||v.metaKey)};
_.W.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.W.openInMiniplayer=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1){d=(e=v.videoPreviewData)==null?void 0:e.navigationEndpoint;if(!d)return E.return();_.Ke().lockupActivation=!0;return E.yield(_.s8n(_.dk().resolve(_.P0),d),2)}_.Ke().userActivation=!0;_.s9(E)})};
_.W.navigateToWatch=function(v){var e,d=(e=this.videoPreviewData)==null?void 0:e.navigationEndpoint;if(d){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(d,v,!0);else{var E;_.N("web_thumbnail_to_watch_transition")&&((E=this.opts)==null?0:E.thumbnail)&&_.K_I(_.dk().resolve(_.j_),this.opts.thumbnail);_.Iq(this.hostElement,"yt-navigate",{endpoint:d})}this.deactivate()}};
_.W.getInlinePlaybackVideoId=function(){var v,e;return(e=_.L((v=this.videoPreviewData)==null?void 0:v.inlinePlaybackEndpoint,_.p2))==null?void 0:e.videoId};
_.W.getInlinePlaybackTrackingParams=function(){var v,e;return(v=this.videoPreviewData)==null?void 0:(e=v.inlinePlaybackEndpoint)==null?void 0:e.clickTrackingParams};
_.W.hasMultipleVideoPreviews=function(){var v;return!!(((v=this.opts)==null?0:v.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.W.startPlaybackForNextVideo=function(){var v;(v=this.opts)!=null&&v.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())};
_.vP.Object.defineProperties(WR.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.opts)==null?0:v.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.opts)==null||!v.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 v;if(Array.isArray((v=this.opts)==null?void 0:v.videoPreviewData)){var e;return(e=this.opts)==null?void 0:e.videoPreviewData[this.videoPreviewDataIndex]}var d;return(d=this.opts)==null?void 0:d.videoPreviewData}}});
WR.prototype.onIsAdsVideoChange=WR.prototype.onIsAdsVideoChange;WR.prototype.onInlinePreviewIsEnabledChange=WR.prototype.onInlinePreviewIsEnabledChange;WR.prototype.optsChanged=WR.prototype.optsChanged;WR.prototype.onMouseLeave=WR.prototype.onMouseLeave;WR.JSC$19112_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);WR.JSC$19112_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],WR.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],WR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],WR.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],WR.prototype,"componentBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],WR.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.aj.YtSparklesClickLocationBehavior),_.w("design:type",Object)],WR.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],WR.prototype,"opts",void 0);_.c([_.f(),_.w("design:type",Object)],WR.prototype,"playerControlsData",void 0);
_.c([_.f(),_.w("design:type",Object)],WR.prototype,"playerControlsAppApi",void 0);_.c([_.f(),_.w("design:type",Object)],WR.prototype,"playerControlsOptions",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WR.prototype,"noAnimation",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WR.prototype,"hidden",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WR.prototype,"active",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WR.prototype,"playing",void 0);_.c([_.f({selector:_.pHH}),_.w("design:type",Boolean)],WR.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.f(),_.w("design:type",String)],WR.prototype,"pagePath",void 0);_.c([_.f({selector:_.n_j}),_.w("design:type",Boolean)],WR.prototype,"isWatchPage",void 0);_.c([_.t("videoPreviewData"),_.w("design:type",Object),_.w("design:paramtypes",[])],WR.prototype,"thumbnailData",null);
_.c([_.t("opts","active"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WR.prototype,"hidePlayerControls",null);_.c([_.t("opts"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WR.prototype,"isAdsVideo",null);_.c([_.t("opts"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WR.prototype,"roundedCornersSmall",null);
_.c([_.t("opts"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WR.prototype,"roundedCornersMedium",null);_.c([_.t("opts"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WR.prototype,"roundedCornersLarge",null);_.c([_.t("opts"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WR.prototype,"unroundCornersForPlayback",null);
_.c([_.t("opts","videoPreviewDataIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],WR.prototype,"videoPreviewData",null);_.c([_.f(),_.w("design:type",Object)],WR.prototype,"videoPreviewDataIndex",void 0);_.c([_.sg("#inline-player"),_.w("design:type",Object)],WR.prototype,"inlinePlayer",void 0);_.c([_.Kq("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[MouseEvent]),_.w("design:returntype")],WR.prototype,"onMouseLeave",null);
_.c([_.V1("opts"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WR.prototype,"optsChanged",null);_.c([_.V1("inlinePreviewIsEnabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WR.prototype,"onInlinePreviewIsEnabledChange",null);_.c([_.$v("isAdsVideo"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WR.prototype,"onIsAdsVideoChange",null);
_.c([_.z({is:"ytd-video-preview",disableElementRegistration:!0})],WR);
_.A(WR,"ytd-video-preview",function(){if(Shs!==void 0)return Shs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Shs=v},{mode:2});
}catch(e){_._DumpException(e)}
try{
var sls,NL9,khf;sls=function(v){return _.N("kevlar_watch_cinematics_invisible")||v.fullscreen&&_.N("kevlar_watch_cinematics_invisible_in_fullscreen")||v.theater&&!v.fullscreen&&_.N("kevlar_watch_cinematics_invisible_in_theater")};
NL9=function(){var v=document.createElement("canvas"),e=v.getContext("2d");if(!e)throw Error("zo");_.ff(v,{position:"absolute",width:"100%",height:"100%"});return{element:v,context:e}};
khf=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.N("kevlar_watch_cinematics_css_blur")};
_.L2_=function(v,e,d){return Math.abs(v-e)<=(d||1E-6)};
_.VQO=function(v,e){return v==e?!0:v&&e?v.width==e.width&&v.height==e.height:!1};_.oWs=new _.gG("notificationActionRenderer");var J2i=function(v){var e=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.r1;this.element.addEventListener("load",function(){e.loaded=!0;e.resolver.resolve(e.element)});
this.element.addEventListener("error",function(){e.failed=!0});
this.element.src=v};var Gh1=function(v,e){this.image=v;this.frame=e};
Gh1.prototype.drawToCanvas=function(v,e){var d=this.frame.width/this.frame.columns,E=this.frame.height/this.frame.rows,T=e.offsetX,S=e.offsetY;sls(e)?(v.fillStyle=e.fullscreen?"#000":"#0f0f0f",v.fillRect(T,S,(e==null?void 0:e.width)||d,(e==null?void 0:e.height)||E)):v.drawImage(this.image,this.frame.column*d,this.frame.row*E,d,E,T,S,(e==null?void 0:e.width)||d,(e==null?void 0:e.height)||E)};
var MQi=function(v){this.color=v};
MQi.prototype.drawToCanvas=function(v,e){var d=e.offsetX,E=e.offsetY,T=e.width,S=e.height;v.fillStyle=sls(e)?e.fullscreen?"#000":"#0f0f0f":this.color;v.fillRect(d,E,T,S)};var pW=function(v,e){_.bC.call(this);this.playerApi=e;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.$x(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();tQi(this,v);fZQ(this);this.update()};
_.V(pW,_.bC);pW.prototype.addEventListeners=function(){var v=this,e=function(){v.update()},d=function(T){v.paused||(T.type==="newdata"&&(v.mosaics.clear(),RR9(v),vo(v)),fZQ(v),v.update())},E=function(){v.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",e);this.playerApi.addEventListener("onVideoDataChange",d);this.playerApi.addEventListener("onStateChange",E);this.addOnDisposeCallback(function(){v.playerApi.removeEventListener("onVideoProgress",e);v.playerApi.removeEventListener("onVideoDataChange",d);v.playerApi.removeEventListener("onStateChange",E)})};
var tQi=function(v,e){v.cinematicContainerRenderer!==e&&(v.cinematicContainerRenderer=e,RR9(v),vo(v),v.colorStoreUpdateJobId=_.RM.addLowPriorityJob(function(){var d;if((d=v.cinematicContainerRenderer.colorStore)!=null&&d.sampledColors){d=Infinity;for(var E=_.a(v.cinematicContainerRenderer.colorStore.sampledColors),T=E.next();!T.done;T=E.next()){T=T.value;var S=Number(T.key);S!==0&&S<d&&(d=S);S=_.w1(T.value);v.colorStore.set(T.key,S)}v.colorStoreTimeInterval=d}}))},RR9=function(v){v.colorStoreUpdateJobId&&
(_.RM.cancelJob(v.colorStoreUpdateJobId),v.colorStoreUpdateJobId=void 0);
v.colorStore.clear();v.currentStoryboardColor=void 0},PGS=function(v,e){var d;
return(d=v.getStoryboardFrame(e))==null?void 0:d.url};
pW.prototype.onPlayerStateChange=function(){this.update()};
pW.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var fZQ=function(v){var e=v.getStoryboardFrame(0);e&&(e=new _.$x(e.width/e.columns,e.height/e.rows),_.VQO(v.currentStoryboardSize,e)||(v.currentStoryboardSize=e,v.publish("STORYBOARD_SIZE_CHANGED",v.currentStoryboardSize)))},xai=function(v,e){v.currentStoryboardIndex=e;
v.pendingStoryboardIndex=NaN;e=v.getStoryboardFrame(v.currentStoryboardIndex);v.currentStoryboard=new Gh1(v.mosaics.get(e.url).element,e);v.publish("STORYBOARD_CHANGED",v.currentStoryboard);v.lastUpdateTime=(0,_.E$)()};
pW.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var vo=function(v){v.currentStoryboardIndex=NaN;v.pendingStoryboardIndex=NaN;v.currentStoryboard&&(v.currentStoryboard=void 0,v.publish("STORYBOARD_CHANGED",void 0));v.lastUpdateTime=NaN};
pW.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)vo(this);else{var v=this.playerApi.getPlayerState(1);if(v===-1||v===5||v===0)vo(this);else if(isNaN(this.lastUpdateTime)||!((0,_.E$)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(v=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){v=""+Math.round(v*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var e=this.colorStore.get(v);e?e!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=e,this.currentStoryboard=new MQi(e),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.E$)()):(_.xf(new _.kL("Could not find color for timestamp: "+v,this.cinematicContainerRenderer)),vo(this))}else vo(this);else BLO(this,v)}};
var BLO=function(v,e){var d=v.getStoryboardFrameIndex(e);if(d!==v.currentStoryboardIndex&&d!==v.pendingStoryboardIndex){e=PGS(v,d);var E=v.mosaics.get(e);E?E.loaded&&xai(v,d):(v.pendingStoryboardIndex=d,d=new J2i(e),v.mosaics.set(e,d),d.resolver.promise.then(function(){if(!v.isDisposed()&&!v.paused&&!isNaN(v.pendingStoryboardIndex)){var T=PGS(v,v.pendingStoryboardIndex);if(T){var S;(S=v.mosaics.get(T))!=null&&S.loaded&&xai(v,v.pendingStoryboardIndex)}else vo(v)}}))}};
pW.prototype.getStoryboardFrameIndex=function(v){var e=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(v,e)};
pW.prototype.getStoryboardFrame=function(v){var e=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,d,E;return((E=(d=this.playerApi).getStoryboardFrame)==null?void 0:E.call(d,v,e))||null};
pW.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var dc=function(v,e,d,E){E=E===void 0?!1:E;_.kh.call(this);this.cinematicContainerRenderer=e;this.playerApi=d;this.theater=this.fullscreen=!1;var T;this.ambientLightThemeEnabled=!E&&!!(e==null?0:(T=e.config)==null?0:T.enableInLightTheme);this.ambientFullscreenEnabled=E&&_.N("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=E&&_.N("web_cinematic_theater_mode");this.container=document.createElement("div");v.appendChild(this.container);var S;if(_.N("web_cinematic_theater_mode")||_.N("web_cinematic_fullscreen")||
(e==null?0:(S=e.config)==null?0:S.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);CGQ(this);v=this.ambientV2Container||this.container;this.backCanvas=NL9();this.frontCanvas=NL9();v.appendChild(this.backCanvas.element);v.appendChild(this.frontCanvas.element);this.storyboardManager=new pW(e,this.playerApi);_.Yh(this,this.storyboardManager);this.addEventListeners();Xds(this)?zRs(this,100+ec(this)*3*2,100+ec(this)*3*2):lZi(this);
HJO(this,this.storyboardManager.currentStoryboard)};
_.V(dc,_.kh);var CGQ=function(v){v.ambientV2Container?A29(v):(_.ff(v.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+ZJ1(v)+", "+c2s(v)+")"}),khf()&&_.ff(v.container,"filter","blur("+_.Wi("cinematic_watch_css_filter_blur_strength",40)+"px)"))},A29=function(v){if(v.ambientV2Container){var e=v.playerApi.getVideoAspectRatio();
_.ff(v.container,{"aspect-ratio":""+e,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.ff(v.ambientV2Container,{"aspect-ratio":""+e,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+ZJ1(v)+", "+c2s(v)+")"});khf()&&_.ff(v.ambientV2Container,"filter","blur("+_.Wi("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
dc.prototype.setFullscreen=function(v,e){this.fullscreen=v;this.theater=!!e;CGQ(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),v=this.storyboardManager.currentStoryboard,wdw(this),v&&F2O(this,v)};
dc.prototype.addEventListeners=function(){var v=this,e=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(T){HJO(v,T)}),d=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){lZi(v)});
this.addOnDisposeCallback(function(){v.storyboardManager.unsubscribeByKey(e);v.storyboardManager.unsubscribeByKey(d)});
if(this.ambientV2Container){var E=function(){A29(v)};
this.playerApi.addEventListener("onVideoDataChange",E);this.addOnDisposeCallback(function(){v.playerApi.removeEventListener("onVideoDataChange",E)})}};
var lZi=function(v){if(!Xds(v)){var e=v.storyboardManager.currentStoryboardSize;isNaN(e.width)||isNaN(e.height)||zRs(v,Number(e.width)+ec(v)*3*2,Number(e.height)+ec(v)*3*2)}},zRs=function(v,e,d){v.backCanvas.element.width=e;
v.backCanvas.element.height=d;v.frontCanvas.element.width=e;v.frontCanvas.element.height=d},Xds=function(v){return v.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},HJO=function(v,e,d){d=d===void 0?!1:d;
var E=v.frontCanvas.element.getAnimations()[0];E?(E.pause(),v.backCanvas.context.globalAlpha=Number(getComputedStyle(v.frontCanvas.element).opacity),v.frontCanvas.element.style.opacity="0",E.finish()):v.backCanvas.context.globalAlpha=1;v.backCanvas.context.drawImage(v.frontCanvas.element,0,0,v.backCanvas.element.width,v.backCanvas.element.height);wdw(v);e&&F2O(v,e);e=e?v.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Wi("cinematic_watch_fade_out_duration",500);E=_.Wi("cinematic_watch_transition_frame_rate")/
1E3;var T={};E&&(T={easing:"steps("+Math.round(e*E)+")"});(d===void 0?0:d)||v.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:e,iterations:1},T));v.frontCanvas.element.style.opacity="1"},wdw=function(v){var e=v.ambientLightThemeEnabled||v.ambientTheaterModeEnabled,d=v.ambientLightThemeEnabled||v.ambientFullscreenEnabled;
v.frontCanvas.context.fillStyle=v.theater&&e||v.fullscreen&&d?"#000":"#0f0f0f";khf()||(v.frontCanvas.context.filter="blur(0)");v.frontCanvas.context.fillRect(0,0,v.frontCanvas.element.width,v.frontCanvas.element.height)},F2O=function(v,e){khf()||(v.frontCanvas.context.filter="blur("+ec(v)+"px)");
v.frontCanvas.context.globalAlpha=v.fullscreen&&v.ambientFullscreenEnabled||v.theater&&v.ambientTheaterModeEnabled?_.Wi("cinematic_watch_effect_letterbox_opacity",.4):_.Wi("cinematic_watch_effect_opacity",.4);var d={offsetX:ec(v)*3,offsetY:ec(v)*3,theater:v.theater,fullscreen:v.fullscreen};Xds(v)&&(d.width=100,d.height=100);e.drawToCanvas(v.frontCanvas.context,d);v.frontCanvas.context.globalAlpha=1},ec=function(v){var e;
return(e=v.cinematicContainerRenderer.config.blurStrength)!=null?e:5},ZJ1=function(v){var e,d;
if((v.fullscreen||v.theater)&&((e=v.cinematicContainerRenderer.config)==null?0:(d=e.watchFullscreenConfig)==null?0:d.colorSourceWidthMultiplier))return v.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var E;return(E=v.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?E:v.cinematicContainerRenderer.config.colorSourceSizeMultiplier},c2s=function(v){var e,d;
if((v.fullscreen||v.theater)&&((e=v.cinematicContainerRenderer.config)==null?0:(d=e.watchFullscreenConfig)==null?0:d.colorSourceHeightMultiplier))return v.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var E;return(E=v.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?E:v.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
dc.prototype.disposeInternal=function(){_.kh.prototype.disposeInternal.call(this);this.container.remove()};
dc.prototype.clear=function(){HJO(this,void 0,!0)};
dc.prototype.pause=function(){this.storyboardManager.pause()};var Qli;Qli=_.qF(function(){var v,e,d=!((e=(v=document.createElement("canvas")).getContext)==null||!e.call(v,"2d")),E;v=!((E=CSS)==null||!E.supports("filter: blur(0)"));E=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var T;return d&&v&&E&&!((T=CSS)==null||!T.supports("aspect-ratio: 1 / 1"))});
_.EO=function(v,e){_.bC.call(this);this.container=v;this.playerApi=e;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=gW9(this);this.update()};
_.V(_.EO,_.bC);_.uuQ=function(v){var e=document.documentElement.hasAttribute("dark");v.isDarkModeEnabled=e;v.update()};
_.nWs=function(v,e){v.settingEnabled=e;v.update()};
_.EO.prototype.setFullscreen=function(v,e){this.fullscreen=v;this.theater=!!e;this.update()};
_.Da9=function(v,e){v.cinematicContainerRenderer=e;v.cinematicContainerRenderer&&(v.cinematicsVe=_.bH(v.isShorts()?227858:159022),_.bj(_.NC(),v.cinematicsVe),v.loggingClientData={watchCinematicContainerData:{presentationStyle:v.cinematicContainerRenderer.presentationStyle}});v.update()};
_.EO.prototype.isShorts=function(){var v,e;return((v=this.cinematicContainerRenderer)==null?void 0:(e=v.config)==null?void 0:e.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.EO.prototype.isAllowed=function(){var v;if(v=Qli()){var e,d,E;v=((d=this.cinematicContainerRenderer)==null?void 0:d.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((E=this.cinematicContainerRenderer)==null||!E.colorStore)||((e=this.cinematicContainerRenderer)==null?void 0:e.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(v)if(_.N("web_cinematics_pausing")){var T,S;v=this.isDarkModeEnabled||!!((T=this.cinematicContainerRenderer)==
null?0:(S=T.config)==null?0:S.enableInLightTheme)}else{var O,b;T=!!((O=this.cinematicContainerRenderer)==null?0:(b=O.config)==null?0:b.enableInLightTheme)&&(_.Bb("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);v=this.isDarkModeEnabled||T}if(O=v){var Y,q;O=!((q=(Y=this.prefersReducedMotionQuery)==null?void 0:Y.matches)!=null&&q)}return O};
_.Uat=function(v){(v=v.currentCinematicEffect)!=null&&(v=v.storyboardManager,v.paused=!1,fZQ(v),v.update())};
_.EO.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var gW9=function(v){if(!_.N("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),d=function(){v.update()};
e.addListener(d);v.addOnDisposeCallback(function(){e.removeListener(d)});
return e}};
_.EO.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var v=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new dc(this.container,v,this.playerApi,this.isDarkModeEnabled),_.Yh(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var e=this.currentCinematicEffect;e.cinematicContainerRenderer!==
v&&(e.cinematicContainerRenderer=v,tQi(e.storyboardManager,v),CGQ(e));v=_.LB();_.Va(0,194,!0);v.save();v=_.zz();this.cinematicsVe&&v&&_.nB(v,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(v=_.zz(),this.cinematicsVe&&v&&_.Dm(v,[this.cinematicsVe],!1,this.loggingClientData),_.p0(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.vP.Object.defineProperties(_.EO.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var U21;var pUv;_.xv({_template:function(){if(pUv!==void 0)return pUv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=
v.content,d=e.insertBefore;U21===void 0&&(U21=document.createElement("template"));var E=U21;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return pUv=v},
is:"tp-yt-iron-pages",behaviors:[_.J9,_.nq],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var d8i;_.EVQ=function(){if(_.N("kevlar_home_skeleton")&&!d8i){var v=document.querySelector("#home-page-skeleton");v&&(_.zE("hgcr"),_.KX(v),d8i=!0)}};
d8i=!1;_.GA=new _.gG("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var zm9,Hii,AK9,ZiS,cK_,wTS,FT9,Qps,ups,nCi,pTt,ezi,dKQ,vn_,Dls,UlC,S4C;_.XTs=function(v,e,d){e=e===void 0?5:e;if(e!==0){var E=typeof v==="function"?v():document.querySelector(v);E?(d==null?0:d.enableSmartFocus)?_.uo3(E):E.focus():setTimeout(function(){_.XTs(v,e-1,d)},500)}};
zm9=function(v){return String.raw.apply(String,[{raw:v}].concat(_.t7(_.Xa.apply(1,arguments).map(function(e){return e instanceof Array?e.join(""):e}))))};
Hii=function(v){var e=_.Xa.apply(1,arguments),d=e.length;if(!Array.isArray(v)||!Array.isArray(v.raw)||v.length!==v.raw.length||!_.Y0A&&v===v.raw||!(_.Y0A&&!_.m7E||_.Vk(v))||d+1!==v.length)throw new TypeError("$");return new lDS(Object.freeze({strings:Object.freeze(v),args:Object.freeze(e)}))};
AK9=function(v){return _.h1L(_.rQW(v&16777215))<.5};
ZiS=function(v,e,d){var E=d.minimumRowsOfVideosBetweenSections===void 0?1:d.minimumRowsOfVideosBetweenSections;return v<(d.minimumRowsOfVideosAtStart===void 0?2:d.minimumRowsOfVideosAtStart)||e!==null&&v-e<=E?!1:!0};
cK_=function(v,e){var d=0,E=0;v=_.a(v);for(var T=v.next();!T.done;T=v.next()){var S=T.value;if(S.richItemRenderer)S.richItemRenderer.rowIndex=E,S.richItemRenderer.colIndex=d++,d===e&&(d=0,E++);else if(S.richGroupRenderer&&S.richGroupRenderer.numColumns!==void 0)S.richGroupRenderer.rowIndex=E,S.richGroupRenderer.colIndex=d,d+=S.richGroupRenderer.numColumns,d===e&&(d=0,E++);else if(S.richSectionRenderer){var O=T=void 0;if(S=_.L((T=S)==null?void 0:(O=T.richSectionRenderer)==null?void 0:O.content,_.VPA))S.rowIndex=
E++}}};
wTS=function(v,e){var d=e.contentElement;e=e.rendererToTagNameMap;if(d&&e&&e.size!==0){for(var E=new Map,T=_.a(d.children),S=T.next();!S.done;S=T.next()){S=S.value;var O=S.tagName.toLowerCase(),b=E.get(O);b||(b=[],E.set(O,b));b.push(S)}if(E.size!==0)for(T=Math.min(v.length,d.children.length),S=new Map,O=0;O<T;O++){b=Object.keys(v[O])[0];b=e.get(b);if(!b)break;var Y=S.get(b);Y===void 0&&(Y=0,S.set(b,Y));var q=E.get(b);if(!q||Y>=q.length)break;S.set(b,Y+1);b=q[Y];Y=d.children[O];Y!==b&&(_.icH=!0,_.OcO.set(b,
!0),d.insertBefore(b,Y),_.OcO.delete(b),_.icH=!1)}}};
FT9=function(v,e,d,E,T,S,O){E=E===void 0?{}:E;if(!v||!v.length)return{orderedContent:[]};v=v.slice();var b=[],Y=[];T=null;for(var q=0,r=function(U){Y.sort(function(Q,v3){return v3.skippedOnRow-Q.skippedOnRow});
for(var F,g=(F=Y.shift())==null?void 0:F.content;g;)!g.richSectionRenderer&&U||b.push(g),F=void 0,g=(F=Y.shift())==null?void 0:F.content},h=void 0,K=void 0,k=new Set;v.length>0||Y.length>0;){for(var J=[],R=e;R>0;){var B=void 0,X=void 0,Z=(X=Y[0]&&Y[0].skippedOnRow<q?(B=Y.shift())==null?void 0:B.content:void 0)!=null?X:v.shift();
if(!Z)break;if(Z.richItemRenderer)B=Z.richItemRenderer.targetId,X=void 0,B&&((X=O)==null?0:X.has(B))&&(X=O.get(B),!h||X&&X.timestamp>h.timestamp)&&(h=X,K&&k.add(K),K=B),J.push(Z),R--;else if(Z.richGroupRenderer&&Z.richGroupRenderer.numColumns!==void 0)Z.richGroupRenderer.numColumns<=R?(J.push(Z),R-=Z.richGroupRenderer.numColumns):R===e&&Z.richGroupRenderer.numColumns>e?(J.push({richGroupRenderer:Object.assign({},Z.richGroupRenderer,{numColumns:e})}),R=0):Y.push({content:Z,skippedOnRow:q});else if(Z.richSectionRenderer)if(ZiS(q,
T,E)&&R===e){b.push(Z);T=q;q++;continue}else Y.push({content:Z,skippedOnRow:q});else if(Z.continuationItemRenderer){r(!0);b.push(Z);R=0;break}if(R===0)b.push.apply(b,_.t7(J));else if(!d&&v.length===0){r(!1);b.push.apply(b,_.t7(J));R=0;break}}q++;h&&(b.push(h.content),q++);K=h=void 0}cK_(b,e);S&&wTS(b,S);return{orderedContent:b,pinnedContentNotShownTargetIds:k}};
Qps=function(){return _.Xa.apply(0,arguments).flat().filter(function(v){return v}).join(";")};
ups=function(){return Hii(gCi,Qps.apply(null,_.t7(_.Xa.apply(0,arguments))))};
nCi=function(v){switch(v){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
pTt=function(v,e){if(e){var d=_.d1().getState().entities.flowStateEntity,E=Dls(v),T=[e];E&&E!==e&&T.push(E);var S=!0,O;if(d&&v.flowStateEntityKey&&((O=d[v.flowStateEntityKey])==null?void 0:O.primaryButtonDisabled)!==void 0){var b;S=!((b=d[v.flowStateEntityKey])==null||!b.primaryButtonDisabled)}UlC(v,E!=null?E:e,T,S)}};
ezi=function(v){return _.ji(_.d1(),function(e){return e.entities.flowStateEntity},function(e,d){if(v.flowStateEntityKey){var E,T=e==null?void 0:(E=e[v.flowStateEntityKey])==null?void 0:E.currentStepId,S;
d=d==null?void 0:(S=d[v.flowStateEntityKey])==null?void 0:S.currentStepId;S=_.d1().getState().talkToRecs;if(T&&T!==d){var O;e=(e==null?void 0:(O=e[v.flowStateEntityKey])==null?void 0:O.stepIdStack)||Object.keys(S.stepStates);O=!vn_(S==null?void 0:S.stepStates[T]);UlC(v,T,e,O)}}})};
dKQ=function(v){return _.ji(_.d1(),_.pb_,function(e){var d=Dls(v);if(d){var E=Object.keys(e.stepStates);e=!vn_(e==null?void 0:e.stepStates[d]);UlC(v,d,E,e)}})};
vn_=function(v){var e=Object.keys((v==null?void 0:v.selectionStates)||{}).reduce(function(S,O){return S||(v==null?void 0:v.selectionStates[O].isSelected)},!1),d,E,T=!!(v==null?0:(d=v.userQuery)==null?0:(E=d.userQuery)==null?0:E.trim());
return e||T};
Dls=function(v){if(v.flowStateEntityKey){var e,d,E=(e=_.d1().getState().entities.flowStateEntity)==null?void 0:(d=e[v.flowStateEntityKey])==null?void 0:d.currentStepId;if(E)return E}};
UlC=function(v,e,d,E){_.d1().dispatch(_.Lv("flowStateEntity",v.flowStateEntityKey,{currentStepId:e,stepIdStack:d,key:v.flowStateEntityKey,primaryButtonDisabled:E}))};
_.Ens=function(v,e){return _.h_(v.entities,"youchatPendingResponseEntity",e)};
_.TX_=function(v){return function(e){_.vz(_.Lv("youchatPendingResponseEntity",v,{entityKey:v,isPendingResponse:e}))}};
S4C=function(v){v==null||v.addEventListener("DOMLoaded",function(){v.goToAndPlay(v.totalFrames-48,!0)})};
_.UE=function(v){this.__isSoyCss=!0;this.css=zm9.apply(null,[v.strings].concat(_.t7(v.args)))};
_.UE.prototype.toString=function(){return this.css};
var lDS=function(){_.UE.apply(this,arguments)};
_.V(lDS,_.UE);var gCi=_.Z9(["",""]);var WDC;var aj_;_.xv({_template:function(){if(aj_!==void 0)return aj_;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
var e=v.content,d=e.insertBefore;WDC===void 0&&(WDC=document.createElement("template"));var E=WDC;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return aj_=v},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var iWf=new _.gG("talkToRecsFlowRenderer");var OW9=new _.gG("flowRootRenderer");var Iji=new _.gG("learningJourneyQuizViewModel");var bWO=new _.gG("chipsShelfViewModel");var Y4C=new _.gG("responsiveContainerConfiguration");var mK_=new _.gG("horizontalShelfViewModel");_.yvf=new _.gG("engagementPanelSectionListRenderer");var q49=new _.gG("conversationResourceViewModel");var rvt=function(){this.horizontal=!1},hzv=function(v,e){v.horizontal=e};
rvt.prototype.position=function(v,e,d,E){E=E===void 0?1:E;v=this.delta(v)*E+e;E=Math.max(e,d);return v>=Math.min(e,d)&&v<=E?v:d};
rvt.prototype.axis=function(v){v=this.direction(v);return v==="up"||v==="down"?"Y":"X"};var i8=function(v,e,d){e=e===void 0?_.Jb():e;this.target=v;this.manager=e;this.touchAction=d;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
i8.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(_.t7(this.events)));for(var v=_.a(this.events),e=v.next();!e.done;e=v.next())this.listen(e.value)}};
i8.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.t7(this.events)));for(var v=_.a(this.events),e=v.next();!e.done;e=v.next())this.unlisten(e.value)}};
i8.prototype.listen=function(v){this.eventMap[v]&&this.target.addEventListener(v,this.eventMap[v])};
i8.prototype.unlisten=function(v){this.eventMap[v]&&this.target.removeEventListener(v,this.eventMap[v])};var OV=function(){rvt.apply(this,arguments)};
_.V(OV,rvt);OV.prototype.direction=function(v){var e=v.detail;v=e.deltaY;e=e.deltaX;return v&&!this.horizontal?v>0?"down":"up":e&&this.horizontal?e>0?"right":"left":"none"};
OV.prototype.distance=function(v){return Math.abs(this.delta(v))};
OV.prototype.delta=function(v){var e=this.direction(v),d=v.detail;v=d.deltaX;d=d.deltaY;return e==="up"||e==="down"?d||0:v||0};
OV.prototype.velocity=function(v){var e=this.direction(v),d=v.detail;v=d.velocityX;d=d.velocityY;return Math.abs(e==="up"||e==="down"?d||0:v||0)};_.Ip=function(v,e,d,E,T,S){T=T===void 0?new OV:T;S=S===void 0?_.Jb():S;i8.call(this,e,S,E);var O=this;this.element=v;this.target=e;this.config=d;this.input=T;this.manager=S;this.events=["panstart","panmove","panend"];this.onPanStart=function(){O.config.draggingClass&&O.element.classList.add(O.config.draggingClass);O.config.startAction&&O.config.startAction()};
this.onPanMove=function(b){var Y=KDw(O,b);if(Y){O.move(b,Y);Y.fade&&O.fade(b,Y);var q=O.input.direction(b);Y.moveAction&&Y.moveAction($Ks(O,b,Y),q)}};
this.onPanEnd=function(b){var Y,q,r,h,K,k;return _.I(function(J){if(J.nextAddress==1){O.animationRequestId&&cancelAnimationFrame(O.animationRequestId);O.animationRequestId=void 0;Y=KDw(O,b);if(!Y)return J.return();q=Y;r=q.triggerAction;h=q.fade;K=q.disableFinish;k=q.translateBack;var R=O.input.velocity(b),B=O.input.distance(b),X=O.threshold(Y);return R>.3&&B>10||B>X?K?J.jumpTo(6):h?J.yield(jkt(O,b),6):J.yield(ski(O,b,Y),6):k?J.yield(O.translateBack(b),3):J.jumpTo(3)}J.nextAddress!=3&&r&&r();O.config.draggingClass&&
O.element.classList.remove(O.config.draggingClass);O.reset();_.s9(J)})};
v=Object.keys(d.triggers);this.directions=new Set(v);hzv(this.input,this.directions.has("right")||this.directions.has("left"))};
_.V(_.Ip,i8);_.Ip.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var KDw=function(v,e){e=v.input.direction(e);return v.config.triggers[e]};
_.Ip.prototype.move=function(v,e){var d=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var E=d.input.axis(v),T=d.input.position(v,d.config.startPosition,e.endPosition,e.moveRatio||1);d.element.style.transform="translate"+E+"("+T+"px)";d.animationRequestId=void 0}))};
var $Ks=function(v,e,d){var E=d.moveRatio||1;d=Math.abs(v.config.startPosition-d.endPosition);return Math.min(v.input.distance(e)*E,d)/d};
_.Ip.prototype.fade=function(v,e){var d=e.endOpacity;v=$Ks(this,v,e);v>0&&(this.element.style.opacity=""+(((d||0)-1)*v+1))};
_.Ip.prototype.threshold=function(v){return v.threshold?v.threshold:Math.abs(v.endPosition-this.config.startPosition)/3};
var ski=function(v,e,d){var E,T,S,O,b,Y,q;return _.I(function(r){if(r.nextAddress==1)return E=v.input.delta(e)+v.config.startPosition,T=v.input.axis(e),S=d,O=S.endPosition,b=S.transitionEndPosition,q=(Y=b)!=null?Y:O,r.yield(v.element.animate([{transform:"translate"+T+"("+E+"px)"},{transform:"translate"+T+"("+q+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);v.element.style.transform="translate"+T+"("+q+"px)";_.s9(r)})};
_.Ip.prototype.translateBack=function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1){if(!e.element.style.transform)return T.return();d=e.input.axis(v);E=e.config.startPosition;return T.yield(e.element.animate([{transform:e.element.style.transform},{transform:"translate"+d+"("+E+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}e.element.style.transform="translate"+d+"("+E+"px)";_.s9(T)})};
var jkt=function(v,e){var d,E,T,S;return _.I(function(O){if(O.nextAddress==1)return d=v.input.delta(e)+v.config.startPosition,E=v.input.axis(e),T=d+70,S=v.element.style.opacity===""?1:v.element.style.opacity,O.yield(v.element.animate([{transform:"translate"+E+"("+d+"px)",opacity:S},{transform:"translate"+E+"("+T+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);v.element.style.transform="translate"+E+"("+T+"px)";v.element.style.opacity="0";_.s9(O)})};var b8=function(){var v=_.kv.apply(this,arguments)||this;v._noAccessors=!0;v.scrollRate=3;v.autoScrollAnimationStart=0;v.autoScrollPaused=!1;v.autoScrollRafId=0;return v};
_.V(b8,_.kv);_.W=b8.prototype;_.W.created=function(){var v=this;this.boundAutoScrollHandler=function(e){v.autoScroll(e)}};
_.W.detached=function(){this.hostElement.removeEventListener("mouseout",_.hG(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.hG(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.hG(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.W.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.hG(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.hG(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.hG(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.hG(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.hG(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.hG(this,this.endAutoScroll)),this.endAutoScroll())};
_.W.autoScroll=function(v){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=v);var e;if(e=!this.autoScrollPaused&&this.scrollTarget)e=this.scrollTarget,e=e.scrollHeight-e.scrollTop!==e.clientHeight;e&&(e=1E3/this.scrollRate,v-=this.autoScrollAnimationStart,v>e&&(this.scrollTarget.scrollTop+=Math.ceil(v/e),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.W.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.W.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
b8.prototype.autoScrollEnabledChanged=b8.prototype.autoScrollEnabledChanged;_.c([_.f(),_.w("design:type",Object)],b8.prototype,"scrollRate",void 0);_.c([_.f(),_.w("design:type",Object)],b8.prototype,"scrollTarget",void 0);_.c([_.f(),_.w("design:type",Boolean)],b8.prototype,"autoScrollEnabled",void 0);_.c([_.$v("autoScrollEnabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],b8.prototype,"autoScrollEnabledChanged",null);_.c([_.Lq()],b8);_.NXt=[b8.prototype];var kYv;var YC=function(){var v=_.P.apply(this,arguments)||this;v.buttonUpdate=_.N("web_button_rework");v.dismissButtonOverrides=_.N("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;v.forceDarkTheme=!1;v.forceLightTheme=!1;v.dynamicTextHeight=94;v.hasOverflowButton=!1;v.isInfeedModernization=!1;return v};
_.V(YC,_.P);_.W=YC.prototype;_.W.computeUrlImg=function(v){if(v)return _.OG(v.thumbnails)};
_.W.getLogoHeight=function(v){return this.logoWithPadding(v)?"31":"24"};
_.W.getLogoClassName=function(v){return this.logoWithPadding(v)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.W.logoWithPadding=function(v){var e,d;return(v=(e=v.thumbnails)==null?void 0:(d=e[0])==null?void 0:d.height)&&v%31===0?!0:!1};
_.W.sendImpressionEndpoints=function(v){v.impressionEndpoints&&_.mN(this.hostElement,v.impressionEndpoints)};
_.W.observeBasicPalette=function(){var v,e,d=(v=this.data)==null?void 0:(e=v.colorData)==null?void 0:e.basicColorPaletteData;d?_.t8(this.hostElement,d):_.t8(this.hostElement,{})};
_.W.observeDataChanged=function(){var v;this.dynamicTextHeight=((v=this.data)==null?0:v.supplementalText)?74:94;var e;this.hasSupplementalText=!((e=this.data)==null||!e.supplementalText);if(_.N("web_button_rework")){var d,E,T,S;v=(d=this.data)==null?void 0:(E=d.actionButton)==null?void 0:(T=E.buttonRenderer)==null?void 0:(S=T.colorData)==null?void 0:S.basicColorPaletteData;var O,b,Y;if(!((O=this.data)==null?0:(b=O.actionButton)==null?0:(Y=b.buttonRenderer)==null?0:Y.style)&&v){this.computeIsInfeedModernization(this.data)||
(v.borderColor=v.foregroundTitleColor);var q,r;this.set("data.actionButton.buttonRenderer",_.f0.unsafeClone((q=this.data)==null?void 0:(r=q.actionButton)==null?void 0:r.buttonRenderer))}}};
_.W.observeDataForCounterfactual=function(){if(_.N("kevlar_banner_cf_extra_logging")){var v;((v=this.data)==null?0:v.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.W.computeSupplementalStyle=function(){var v;if((v=this.data)!=null&&v.supplementalText){var e,d,E;if((e=this.data)==null?0:(d=e.colorData)==null?0:(E=d.basicColorPaletteData)==null?0:E.foregroundActivatedColor)return v=_.cv(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+v+"; --yt-endpoint-hover-color:"+v+"; --yt-endpoint-visited-color:"+v+"; --yt-formatted-string-bold-font-weight:700;"}};
_.W.computeForcedDarkTheme=function(){var v,e,d,E=(v=this.data)==null?void 0:(e=v.actionButton)==null?void 0:(d=e.buttonRenderer)==null?void 0:d.style,T,S,O;v=AK9(((T=this.data)==null?void 0:(S=T.colorData)==null?void 0:(O=S.basicColorPaletteData)==null?void 0:O.backgroundColor)||0);return E&&v};
_.W.computeForcedLightTheme=function(){var v,e,d,E=(v=this.data)==null?void 0:(e=v.actionButton)==null?void 0:(d=e.buttonRenderer)==null?void 0:d.style,T,S,O;v=!AK9(((T=this.data)==null?void 0:(S=T.colorData)==null?void 0:(O=S.basicColorPaletteData)==null?void 0:O.backgroundColor)||0);return E&&v};
_.W.computeHasOverflowButton=function(v){return!!v.overflowButton};
_.W.computeHasTitle=function(v){return!!v.title};
_.W.computeTitleMaxFontSize=function(v){return this.computeHasOverflowButton(v)?28:64};
_.W.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.W.computeIsInfeedModernization=function(){var v,e,d,E,T=(v=this.data)==null?void 0:(e=v.actionButton)==null?void 0:(d=e.buttonRenderer)==null?void 0:(E=d.colorData)==null?void 0:E.basicColorPaletteData;return(T==null?void 0:T.backgroundColor)===452984831||(T==null?void 0:T.backgroundColor)===218103808};
YC.prototype.observeDataForCounterfactual=YC.prototype.observeDataForCounterfactual;YC.prototype.observeDataChanged=YC.prototype.observeDataChanged;YC.prototype.observeBasicPalette=YC.prototype.observeBasicPalette;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],YC.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],YC.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],YC.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],YC.prototype,"buttonUpdate",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],YC.prototype,"hasSupplementalText",void 0);_.c([_.f(),_.w("design:type",Object)],YC.prototype,"dismissButtonOverrides",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.w("design:type",Boolean)],YC.prototype,"hasTitle",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.w("design:type",Object)],YC.prototype,"forceDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.w("design:type",Object)],YC.prototype,"forceLightTheme",void 0);_.c([_.f(),_.w("design:type",Object)],YC.prototype,"dynamicTextHeight",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.w("design:type",Object)],YC.prototype,"hasOverflowButton",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.w("design:type",Object)],YC.prototype,"isInfeedModernization",void 0);_.c([_.$v("data.colorData.basicColorPaletteData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],YC.prototype,"observeBasicPalette",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],YC.prototype,"observeDataChanged",null);_.c([_.$v("data.isVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],YC.prototype,"observeDataForCounterfactual",null);_.c([_.z({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],YC);
_.A(YC,"ytd-banner-promo-renderer",function(){if(kYv!==void 0)return kYv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return kYv=v},{mode:1});var LDO;var Vv9;var on9;var mT=function(){return _.P.apply(this,arguments)||this};
_.V(mT,_.P);_.c([_.f(),_.w("design:type",Object)],mT.prototype,"data",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.c([_.z({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],mT);
_.A(mT,"ytd-hashtag-grid-tile-renderer",function(){if(on9!==void 0)return on9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return on9=v},{mode:1});var y2=function(){return _.P.apply(this,arguments)||this};
_.V(y2,_.P);y2.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
y2.prototype.updateRichGridTrendingHashtagsVisibility=function(){var v,e;if(((v=this.data)==null||!v.isExpanded)&&(e=this.data)!=null&&e.tiles){v=this.data.tiles.length;e=v>this.richGridItemsPerRow?this.richGridItemsPerRow+1:v;var d=Math.ceil(v/e);this.fullyVisibleRows=v%e===1&&d===2?1:Math.min(d,2);this.isShowMoreVisible=this.fullyVisibleRows<d}};
y2.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
y2.prototype.updateRichGridTrendingHashtagsVisibility=y2.prototype.updateRichGridTrendingHashtagsVisibility;_.c([_.f(),_.w("design:type",Object)],y2.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Number)],y2.prototype,"fullyVisibleRows",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],y2.prototype,"isShowMoreVisible",void 0);_.c([_.f({selector:_.X1,value:0}),_.w("design:type",Number)],y2.prototype,"richGridItemsPerRow",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],y2.prototype,"ytdReduxBehavior",void 0);_.c([_.$v("data","richGridItemsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],y2.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.c([_.z({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],y2);
_.A(y2,"ytd-hashtag-grid-shelf-renderer",function(){if(Vv9!==void 0)return Vv9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Vv9=v},{mode:1});var JvO;var GYw;var ql=function(){var v=_.P.apply(this,arguments)||this;v.visibleVideos=[];v.hiddenVideos=[];v.modern=_.N("web_modern_buttons");v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(ql,_.P);_.W=ql.prototype;_.W.attached=function(){var v=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",v);this.onDarkModeToggledAction(v)};
_.W.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"}}}};
_.W.dataChanged=function(){var v=this;this.requestElementsPerRow();var e,d;this.currentColorPalette=this.isDarkTheme?(e=this.data)==null?void 0:e.darkColorData:(d=this.data)==null?void 0:d.lightColorData;var E;if((E=this.currentColorPalette)==null?0:E.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Uh(this,function(){v.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.W.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.W.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.W.computeIsFirstFeedItem=function(v){return v};
_.W.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v);this.data&&(this.currentColorPalette=v?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.W.getCurrentLogo=function(v,e){if(v)return e?v.darkLogoImage:v.lightLogoImage};
_.W.computeTitleStyle=function(v){var e;if((e=this.data)!=null&&e.title&&v&&v.textPrimary!==void 0)return"color:"+_.cv(v.textPrimary)+";"};
_.W.computeSubtitleStyle=function(v){var e;if((e=this.data)!=null&&e.subtitle&&v&&v.textSecondary!==void 0)return"color:"+_.cv(v.textSecondary)+";"};
_.W.computeDismissIconStyle=function(v){if(this.data&&this.data.dismissButton&&v&&v.textPrimary!==void 0)return"--yt-button-color:"+_.cv(v.textPrimary)+";"};
_.W.computeOverflowButtonStyle=function(v){if(this.data&&this.data.overflowButton&&v&&v.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.cv(v.textPrimary)+";--yt-spec-icon-active-other:"+_.cv(v.textPrimary)+";"};
_.W.computeBackgroundStyle=function(v){if(v&&this.data){var e="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var d=_.OG((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);d&&(e+='background-image:url("'+d+'");')}v.backgroundColor!==void 0&&(e+="background-color:"+_.w1(v.backgroundColor)+";");return e}};
_.W.computeButton=function(){var v,e=Object.assign({},_.L((v=this.data)==null?void 0:v.showMoreButton,_.BD));if(this.modern&&e){e.style="STYLE_MONO_OUTLINE";var d;if(v=(d=this.currentColorPalette)==null?void 0:d.textPrimary)e.colorData={basicColorPaletteData:{foregroundTitleColor:v,borderColor:v}}}return e};
_.W.shouldShowBottomButton=function(v,e){return!(v==null?0:v.header)&&!(v==null||!v.primaryButton)&&e<3};
_.W.checkExpanded=function(v){this.isExpanded=v&&v.content?this.hiddenVideos.length===0:!0};
_.W.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.W.getLogoHeight=function(v){return this.logoWithPadding(v)?"26":"20"};
_.W.getLogoImageId=function(v){return this.logoWithPadding(v)?"logo-image-with-padding":"logo-image"};
_.W.computeHasSectionHeader=function(v){return!!v.header};
_.W.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var v;if((v=this.data.primaryButton)==null?0:v.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var e;((e=this.data.dismissButton)==null?0:e.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var d,E;((d=this.data)==null?0:(E=d.primaryButton)==null?0:E.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.W.setVisibleVideos=function(v){if(this.data&&this.data.content)if(this.data.content.length){var e=this.data.content.length;this.data.header?v?(this.visibleVideos=this.data.content.slice(0,Math.min(e,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.slimItemsPerRow),e)):(this.visibleVideos=this.data.content.slice(0,Math.min(e,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.elementsPerRow),e)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(e,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.elementsPerRow),e)):(this.visibleVideos=this.data.content.slice(0,Math.min(e,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.elementsPerRow-1),e))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.W.setHasMovieRenderer=function(){var v;if((v=this.data)!=null&&v.content){var e;this.hasMovieRenderer=!!_.L((e=this.data)==null?void 0:e.content[0],_.Wk7)}else this.hasMovieRenderer=!1};
_.W.requestElementsPerRow=function(){_.Iq(this.hostElement,"yt-request-elements-per-row")};
_.W.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var v=_.a(this.hiddenMediaRenderers),e=v.next();!e.done;e=v.next())e.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(v=_.IB(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&v.focus()}};
_.W.updateTitleSpec=function(){var v;(v=this.data)!=null&&v.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.W.logoWithPadding=function(v){var e,d,E;return(v=(e=this.getCurrentLogo(v,this.isDarkTheme))==null?void 0:(d=e.thumbnails)==null?void 0:(E=d[0])==null?void 0:E.height)&&v%31===0?!0:!1};
_.W.onUpdateElementsPerRowAction=function(v,e,d){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v);d&&this.slimItemsPerRow!==d&&(this.slimItemsPerRow=d)};
ql.prototype.slimItemsPerRowChanged=ql.prototype.slimItemsPerRowChanged;ql.prototype.elementsPerRowChanged=ql.prototype.elementsPerRowChanged;ql.prototype.dataChanged=ql.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ql.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],ql.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],ql.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],ql.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ql.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],ql.prototype,"currentColorPalette",void 0);_.c([_.f(),_.w("design:type",Array)],ql.prototype,"visibleVideos",void 0);_.c([_.f(),_.w("design:type",Array)],ql.prototype,"hiddenVideos",void 0);
_.c([_.f(),_.w("design:type",Object)],ql.prototype,"primaryButton",void 0);_.c([_.f({reflectToAttribute:!0,value:3}),_.w("design:type",Number)],ql.prototype,"elementsPerRow",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],ql.prototype,"isDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],ql.prototype,"isExpanded",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],ql.prototype,"largeTitle",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],ql.prototype,"hasMovieRenderer",void 0);_.c([_.f(),_.w("design:type",Number)],ql.prototype,"slimItemsPerRow",void 0);_.c([_.f(),_.w("design:type",Boolean)],ql.prototype,"showLightVideoMetadata",void 0);_.c([_.f(),_.w("design:type",Boolean)],ql.prototype,"showDarkVideoMetadata",void 0);_.c([_.f(),_.w("design:type",Number)],ql.prototype,"videoMetadataColor",void 0);
_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],ql.prototype,"miniMode",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.w("design:type",Boolean)],ql.prototype,"isFirstFeedItem",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.w("design:type",Boolean)],ql.prototype,"hasSectionHeader",void 0);
_.c([_.f({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],ql.prototype,"roundedContainer",void 0);_.c([_.Nr("#visible-video-container ytd-rich-grid-media"),_.w("design:type",Array)],ql.prototype,"visibleMediaRenderers",void 0);_.c([_.Nr("#hidden-video-container ytd-rich-grid-media"),_.w("design:type",Array)],ql.prototype,"hiddenMediaRenderers",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ql.prototype,"modern",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ql.prototype,"dataChanged",null);_.c([_.$v("elementsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ql.prototype,"elementsPerRowChanged",null);_.c([_.$v("slimItemsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ql.prototype,"slimItemsPerRowChanged",null);
_.c([_.z({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],ql);
_.A(ql,"ytd-brand-video-shelf-renderer",function(){if(GYw!==void 0)return GYw;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return GYw=v},{mode:1});var Mvf;var re=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(re,_.P);_.W=re.prototype;_.W.attached=function(){var v=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",v);this.onDarkModeToggledAction(v)};
_.W.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"}}}};
_.W.dataChanged=function(){this.requestElementsPerRow();var v,e;this.currentColorPalette=this.isDarkTheme?(v=this.data)==null?void 0:v.darkColorData:(e=this.data)==null?void 0:e.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.W.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.W.computeIsFirstFeedItem=function(v){return v};
_.W.onDarkModeToggledAction=function(v){v!==this.isDarkTheme&&this.set("isDarkTheme",v);this.data&&(this.currentColorPalette=v?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(v),this.updateButtonPalette())};
_.W.shouldShowThumbnailInMetadata=function(v){return v<=1};
_.W.computeVideoMetadataColor=function(){if(this.data){var v;if((v=this.currentColorPalette)==null?0:v.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.W.computeTitleStyle=function(v){var e;if((e=this.data)!=null&&e.title&&v&&v.textPrimary!==void 0)return"color:"+_.cv(v.textPrimary)+";"};
_.W.computeSubtitleStyle=function(v){var e;if((e=this.data)!=null&&e.subtitle&&v&&v.textSecondary!==void 0)return"color:"+_.cv(v.textSecondary)+";"};
_.W.computeOverflowButtonStyle=function(v){if(this.data&&this.data.overflowButton&&v.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.cv(v.textPrimary)+";--yt-spec-icon-active-other:"+_.cv(v.textPrimary)+";"};
_.W.computeBackgroundStyle=function(v){if(v&&this.data){var e="";v.backgroundColor!==void 0&&(e+="background-color:"+_.w1(v.backgroundColor)+";");return e}};
_.W.computeHasOverflowButton=function(v){return!!v.overflowButton};
_.W.updateButtonPalette=function(){if(this.data){var v;if((v=this.data.primaryButton)==null?0:v.buttonRenderer){var e;if((e=this.currentColorPalette)==null?0:e.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var d;((d=this.currentColorPalette)==null?0:d.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)})}}};
_.W.requestElementsPerRow=function(){_.Iq(this.hostElement,"yt-request-elements-per-row")};
_.W.updateTitleSpec=function(){var v;(v=this.data)!=null&&v.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")};
_.W.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v)};
re.prototype.elementsPerRowChanged=re.prototype.elementsPerRowChanged;re.prototype.dataChanged=re.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],re.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],re.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],re.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],re.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],re.prototype,"currentColorPalette",void 0);_.c([_.f(),_.w("design:type",Object)],re.prototype,"primaryButton",void 0);
_.c([_.f({reflectToAttribute:!0,value:3}),_.w("design:type",Number)],re.prototype,"elementsPerRow",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],re.prototype,"isDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],re.prototype,"titleSize",void 0);_.c([_.f(),_.w("design:type",Number)],re.prototype,"videoMetadataColor",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],re.prototype,"miniMode",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.w("design:type",Boolean)],re.prototype,"isFirstFeedItem",void 0);_.c([_.f({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],re.prototype,"roundedContainer",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.w("design:type",Boolean)],re.prototype,"hasOverflowButton",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],re.prototype,"dataChanged",null);_.c([_.$v("elementsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],re.prototype,"elementsPerRowChanged",null);_.c([_.z({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],re);
_.A(re,"ytd-brand-video-singleton-renderer",function(){if(Mvf!==void 0)return Mvf;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Mvf=v},{mode:_.bk("kevlar_poly_si_batch_j070")?1:2});var tvi;var fjt=_.l(function(v){var e=v.data;return _.m(_.va,{data:function(){return e().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(e().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var d=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":d=88;break a;default:d=88}return d},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return e().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Sj"),PUi=_.l(function(v){var e=v.metadataRow;
var d=v.delimiter;return _.m(_.jI,{each:function(){return e().textParts||[]},
keyBy:"INDEX"},function(E,T){return _.m(_.eI,null,_.m(_.Dh,{text:E,noWrap:!0,userInput:!0}),_.m(Rzi,{delimiter:d,max:function(){return e().textParts.length},
index:T}))})},"Tj"),Rzi=_.l(function(v){var e=v.delimiter;
var d=v.max;var E=v.index;return _.m(_.y,{cond:function(){return(e==null?void 0:e())&&d()-1>E()},
then:function(){return _.m("span",null,e)}})},"Uj"),xKw=_.l(function(v){var e=v.data;
v={};return _.m("yt-profile-page-header-information-view-model",{class:_.qe("profile-page-header-information-view-model-wiz",(v["profile-page-header-information-view-model-wiz--mobile"]=!1,v))},_.m(_.y,{cond:function(){return e().onTap},
then:function(){return _.m(_.Oe,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.lk(e().onTap)}},_.m(_.kz,{data:function(){return e().thumbnail}},{profilePageHeaderThumbnailViewModel:fjt}))},
else:function(){return _.m("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.m(_.kz,{data:function(){return e().thumbnail}},{profilePageHeaderThumbnailViewModel:fjt}))}}),_.m("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.m(_.y,{cond:function(){return e().onTap},
then:function(){return _.m(_.kz,{data:function(){return e().title}},{profilePageHeaderTitleViewModel:function(d){var E=d.data;
return _.m(_.Oe,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.lk(E().onTap)}},_.m(_.Dh,{text:function(){return E().title}}))}})},
else:function(){return _.m(_.kz,{data:function(){return e().title}},{profilePageHeaderTitleViewModel:function(d){var E=d.data;
return _.m(_.Dh,{text:function(){return E().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.m(_.kz,{data:function(){return e().metadata}},{profilePageHeaderMetadataViewModel:function(d){var E=d.data;
return _.m(_.y,{cond:function(){return E().metadataRows},
then:function(T){return _.m("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.m(_.jI,{each:T,keyBy:"INDEX"},function(S,O){return _.m(_.eI,null,_.m(PUi,{metadataRow:S,delimiter:" \u2022 "}),_.m(Rzi,{delimiter:" \u2022 ",max:function(){return T().length},
index:O}))}))}})}})))},"Vj");
xKw.idomCompat=!0;_.aZ(xKw,"yt-profile-page-header-information-view-model",{props:{data:_.U1}});var hK=function(){return _.P.apply(this,arguments)||this};
_.V(hK,_.P);hK.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],hK.prototype,"data",void 0);_.c([_.z({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],hK);
_.A(hK,"ytd-effect-pivot-header-view-model",function(){if(tvi!==void 0)return tvi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return tvi=
v},{mode:1});var BX9;var Ki=function(){return _.P.apply(this,arguments)||this};
_.V(Ki,_.P);Ki.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ki.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ki.prototype,"data",void 0);_.c([_.z({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Ki);
_.A(Ki,"ytd-source-pivot-header-renderer",function(){if(BX9!==void 0)return BX9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return BX9=v},{mode:1});_.CUs=_.l(function(v){var e=v.data;var d=function(){var E;return _.xz((E=e())==null?void 0:E.rendererContext)};
v={};return _.m("content-list-item-view-model",{el:_.dq(_.B5(function(){return e().rendererContext})),
class:_.qe("ytContentListItemViewModelHost",(v.ytContentListItemViewModelTappable=d,v)),role:function(){return d()?"listitem":void 0},
tabindex:function(){return d()?0:void 0}},_.m("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.m("div",{class:"ytContentListItemViewModelImageContainer"},_.m(_.y,{cond:function(){return e().image},
then:function(E){return _.m(_.va,{data:E,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.m(_.kz,{data:function(){var E;
return(E=e())==null?void 0:E.avatar}},{avatarViewModel:_.x7})),_.m("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.m("div",{class:_.qe("ytContentListItemViewModelTitle",function(){a:{switch(e().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var E="ytContentListItemViewModelProminentTitle";
break a}E=void 0}return E})},_.m(_.Dh,{text:function(){return e().title}})),_.m("div",{class:"ytContentListItemViewModelMetadata"},_.m(_.kz,{data:function(){return e().metadata}},{contentMetadataViewModel:function(E){return _.m(_.i5,{data:E.data,
layout:1})}})))),_.m("div",{class:"ytContentListItemViewModelActionButton"},_.m(_.kz,{data:function(){var E;
return(E=e())==null?void 0:E.actionButton}},{buttonViewModel:_.yi,
toggleButtonViewModel:_.fR})))},"Wj");_.aZ(_.l(function(v){var e=function(){return v.data().background},d=function(){return v.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},E=function(){return v.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.m("yt-card-view-model",{class:_.qe("ytCardViewModelHost",v.className)},_.m(_.Om,{contentId:function(){return v.data().contentId}},function(){return _.m("div",{class:_.qe("ytCardViewModelCardViewModelInner",function(){return nCi(v.data().cardStyle)},function(){var T;
a:{switch((T=v.data().cardState)==null?void 0:T.selectionState){case "CARD_SELECTION_STATE_SELECTED":T="ytCardViewModelSelected";break a}T=void 0}return T})},_.m(_.kz,{data:e},{cinematicContainerViewModel:function(T){return _.m(_.VCI,{data:T.data})}}),_.m("div",{class:"ytCardViewModelContentWrapper"},_.m(_.y,{cond:function(){return!d()},
then:function(){var T={};return _.m("div",{class:"ytCardViewModelTopContent"},_.m(_.kz,{data:function(){return v.data().topContent}},{contentListItemViewModel:function(S){return _.m(_.CUs,{data:S.data})}}),_.m("div",{class:_.qe("ytCardViewModelInlineTrailingAction",(T.ytCardViewModelInlineCenterTrailingAction=E,T))},_.m(_.kz,{data:function(){return v.data().trailingAction}},{buttonViewModel:function(S){return _.m(_.yi,{data:S.data})}})))}}),_.m("div",{class:"ytCardViewModelBodyContent"},_.m(_.kz,
{data:function(){return v.data().bodyContent}},{contentListItemViewModel:function(T){return _.m(_.CUs,{data:T.data})}}))),_.m(_.y,{cond:function(){return d()},
then:function(){return _.m("div",{class:"ytCardViewModelOverlayTrailingAction"},_.m(_.kz,{data:function(){return v.data().trailingAction}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data})}}))}}))}))},"Xj"),"yt-card-view-model",{props:{data:_.U1,
className:_.U1}});_.aZ(_.l(function(v){var e=function(){return _.L(v.data().flowRoot,OW9)};
_.Gr(function(){var d=e(),E=function(){},T=function(){};
if(d){var S,O,b,Y=((b=_.L((S=e())==null?void 0:(O=S.steps)==null?void 0:O[0],_.U_S))==null?void 0:b.stepId)||"";pTt(d,Y);E=ezi(d);T=dKQ(d)}_.Jf(function(){var q=e();q&&_.d1().dispatch(_.Lv("flowStateEntity",q.flowStateEntityKey));E();E=function(){};
T();T=function(){}})});
return _.m("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.m(_.Om,{contentId:function(){return v.data().contentId}},function(){return _.m("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.m(_.y,{cond:e,
then:function(d){return _.m(_.Tm9,{data:d})}}))}))},"Yj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.U1}});_.aZ(_.l(function(){return _.m("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.m("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.m("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.m(_.W$v,null)),_.m(_.fEg,{data:{rows:1},isExploreHub:!0}))},"Zj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.aZ(_.l(function(v){var e=v.data;var d=v.standardUnitMinWidth;v=_.a((0,_.BMc)(e));var E=v.next().value,T=v.next().value,S=function(){var b,Y=(b=E())==null?void 0:b.contents;return Y==null||Y.length===0},O=function(){T(Object.assign({},E(),{contents:[]}))};
return _.m("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.dq(_.Eh({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var b=_.L(e().chipsShelf,bWO);if(b!=null&&b!=null&&b.autoselectChipOnVisible){var Y,q,r=_.L(b==null?void 0:(Y=b.contents)==null?void 0:Y[(q=b.autoselectedChipIndex)!=null?q:0],_.HD);r&&r.tapCommand&&_.wC(r.tapCommand)}}}))},_.m(_.Om,{contentId:function(){return e().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.m("div",null,_.m("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.m(_.kz,{data:function(){return e().header}},{sectionHeaderViewModel:function(b){return _.m(_.mz,{data:b.data,
disableHorizontalPadding:!0})}})),_.m("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.m(_.kz,{data:function(){return e().chipsShelf}},{chipsShelfViewModel:function(b){return _.m(_.x3,{data:b.data,
callback:O,selectionBehavior:1})}})),_.m("div",null,_.m(_.y,{cond:S,
then:function(){return _.m("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.m(_.fEg,{data:{rows:1},isExploreHub:!0}))}}),_.m(_.kz,{data:function(){var b;
return(b=E())==null?void 0:b.contents}},{richShelfRenderer:function(b){return _.m(_.XZM,{data:b.data,
isInnerShelf:!0,standardUnitMinWidth:d})}})))}))},"$j"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.U1,
standardUnitMinWidth:_.U1}});var $C=function(){return _.P.apply(this,arguments)||this};
_.V($C,_.P);
$C.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}}};
$C.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.c([_.M(_.lV),_.w("design:type",Object)],$C.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$C.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.FL),_.w("design:type",Object)],$C.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$C.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Number)],$C.prototype,"standardUnitMinWidth",void 0);_.c([_.z({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],$C);
_.A($C,"ytd-rich-section-renderer",function(){if(JvO!==void 0)return JvO;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return JvO=v},{mode:_.bk("kevlar_poly_si_batch_j029")?
1:2});_.aZ(_.jMt,"yt-profile-identity-info-view-model",{props:{data:_.U1,hideDivider:_.U1,isChannelInfoCard:_.U1}});_.aZ(_.P86,"yt-page-header-view-model",{props:{data:_.U1,noPadding:_.U1,enableBanner:_.U1,cinematicContainerTopbarOffset:_.U1,allowCinematicContainerOverflow:_.U1,displayAsSidebar:_.U1,displayAsPanel:_.U1,alwaysUseMediumTextDescription:_.U1}});_.aZ(_.l(function(v){var e=v.data;var d=function(){var T;return(T=e().numColumns)!=null?T:2},E=function(){return d()>1?3:2};
v={};return _.m("ytd-rich-grid-group",{class:_.qe("ytdRichGridGroupHost",(v.ytdRichGridGroupHostFirstColumn=function(){return e().colIndex===0},v)),
style:_.jM({"--ytd-rich-grid-group-num-columns":d,"--ytd-rich-grid-items-per-group":E})},_.m("div",{class:"ytdRichGridGroupContents"},_.m(_.kz,{data:function(){var T;return(T=e().contents)==null?void 0:T.slice(0,E())}},{richItemRenderer:function(T){return _.m(_.Bai,{data:T.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ak"),"ytd-rich-grid-group",{props:{data:_.U1}});var jC=function(){var v=_.P.apply(this,arguments)||this;v.resizeOnObserverInit=!1;v.isInlinePreviewDisabled=_.N("web_disable_inline_preview");v.disableStickyFilterBar=!1;v.transparentBackgroundChipsBar=!1;v.hideChipsBar=!1;v.isWatchDefaultLayout=!0;v.continuationShowButton=!1;v.rowReducedHorizontalMargin=!1;v.useCompactList=!1;v.manualDownloadsPresent=!1;v.smartDownloadsPresent=!1;v.isOnline=!1;v.shouldRenderDownloadsBanner=!1;v.shouldRenderDownloadsBannerUpsell=!1;v.hasOptedIntoSmartDownloads=!1;
v.elementsPerRow=4;v.typographyBump=!1;v.showGnomeContents=!1;v.showExploreHubContents=!1;v.slimItemsPerRow=1;v.pageLoadingFromNavigation=!1;v.loggingRefactor=_.N("kevlar_rich_grid_logging_fix");v.resizeObserver=null;v.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"};
v.rendererToTagNameMap=new Map(Object.entries(v.contentMapping()).map(function(e){var d=_.a(e);e=d.next().value;d=d.next().value;return[e,d.component]}));
v.insertedContent=new Map;return v};
_.V(jC,_.P);_.W=jC.prototype;_.W.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var v=_.a(_.IB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),e=v.next();!e.done;e=v.next())e.value.useCompactList=this.useCompactList};
_.W.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var v=_.a(_.IB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),e=v.next();!e.done;e=v.next())e=e.value,e.sizing=this.sizing,e.typographyBump=this.typographyBump};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.W.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]]"}}}};
_.W.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}}};
_.W.attached=function(){document.addEventListener("yt-page-type-changed",_.hG(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21858_throttledOnResize=new _.wB(this.resizeObserved,_.Wi("rich_grid_resize_delay_ms",50),this)};
_.W.detached=function(){var v;(v=this.resizeObserver)==null||v.disconnect();document.removeEventListener("yt-page-type-changed",_.hG(this,this.onPageChange))};
_.W.insertRichSection=function(v){var e=v.richItemTargetId;v=v.richSectionRendererToInsert;e&&v&&(this.insertedContent.set(e,{content:v,timestamp:Date.now()}),this.reflowContent())};
_.W.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.W.computeIsInlinePreviewEnabled=function(v,e,d){return _.N("web_disable_inline_preview")?!1:!d&&_.lTv({miniplayerIsActive:v,miniplayerPlaybackState:e})};
_.W.computeSizing=function(){var v=_.gFt(this.data);if(v||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return v?this.useCompactList?"COMPACT":v:this.miniMode?"COMPACT":_.N("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.W.updateItemMinAndMaxWidth=function(){var v=_.Wi("rich_grid_max_item_width",500);v>0&&_.qr(this.hostElement,{"--ytd-rich-grid-item-max-width":v+"px"});var e;v=this.getRichItemMinWidth((e=this.hostElement)==null?void 0:e.clientWidth);v>0&&_.qr(this.hostElement,{"--ytd-rich-grid-item-min-width":v+"px"})};
_.W.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.W.resizeObserved=function(){_.YB(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.W.navigateBackToHome=function(){_.N("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.N("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var v=_.dk().resolve(_.v5).isOnWatch(),e,d=((e=_.Nd(location.pathname))==null?void 0:e.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(d)||v)&&this.gnomeContents&&_.N("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);v&&this.exploreHubContents&&_.N("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.d1().dispatch(_.Oo({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.W.onPageChange=function(){var v=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.N("disable_chip_select_on_nav")||_.YB(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.RM.addJob(function(){v.pageLoadingFromNavigation=!1;_.N("disable_chip_select_on_nav")&&_.N("h5_reset_cache_and_filter_before_update_masthead")&&v.resetCacheAndIsFilteredFeed();v.setMasthead();v.maybeSetBigYoodle();v.forceRefreshAndLog();v.terminateVideoPreview();_.N("web_hide_gnome_until_user_navigates_back_to_home")&&
(v.dataChanged(),_.Uh(v,function(){if(v.showGnomeContents){var e=Array.from(_.IB(v.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(E){E=_.IB(E).querySelector("ytd-rich-shelf-renderer");return!!E&&E.isGnomeShelf()});
if(e){e=e.offsetTop-v.contentsElement.offsetTop;var d=_.dk().resolve(_.v5).getCurrentPage();d&&d.getPageScrollingElement().scrollTo({top:e,behavior:"smooth"})}}}));
_.N("web_hide_explore_hub_until_user_navigates_back_to_home")&&(v.dataChanged(),_.Uh(v,function(){if(v.showExploreHubContents&&!_.N("web_explore_hub_no_scroll")){var e=Array.from(_.IB(v.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(E){return!!E.querySelector("ytd-talk-to-recs-flow-renderer")});
if(e){e=e.offsetTop-v.contentsElement.offsetTop;var d=_.dk().resolve(_.v5).getCurrentPage();d&&d.getPageScrollingElement().scrollTo({top:e,behavior:"smooth"})}}}))},8)):((_.N("web_hide_gnome_until_user_navigates_back_to_home")||_.N("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.W.dataChanged=function(){var v=this;_.YB(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Uh(this,function(){v.updateRichItemGridPositions();v.contentsElement&&_.qr(v.hostElement,{"--ytd-rich-grid-content-offset-top":v.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.W.initResizeObserver=function(){var v=this;if(window.ResizeObserver){var e;(e=this.resizeObserver)==null||e.disconnect();var d=!1;this.resizeObserver=new ResizeObserver(function(){if(d){var E;(E=v.resizeObserver)==null||E.disconnect();var T;(T=v.JSC$21858_throttledOnResize)==null||T.fire();requestAnimationFrame(function(){var O;(O=v.JSC$21858_throttledOnResize)==null||O.fire();v.initResizeObserver()})}else if(d=!0,v.resizeOnObserverInit){var S;
(S=v.JSC$21858_throttledOnResize)==null||S.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.W.contentLengthChanged=function(){if(_.N("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.YB(this.hostElement,"ytd-rich-item-index-update-action")};
_.W.updateElementsPerRow=function(){_.YB(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Oo({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Oo({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.W.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.W.onRichShelfRendererCollapse=function(v){if(this.shownItems){var e=v.detail;v=this.shownItems.findIndex(function(E){var T,S;return((S=_.L(E==null?void 0:(T=E.richSectionRenderer)==null?void 0:T.content,_.VPA))==null?void 0:S.trackingParams)===e});
var d=v+1;v<0||d>=this.contentsElement.children.length||!this.shownItems[d].richItemRenderer||this.contentsElement.children[d].scrollIntoView({behavior:"smooth",block:"start"})}};
_.W.onSoftReloadPage=function(){this.scrollUpToTop()};
_.W.handleRerenderDownloadsData=function(){_.N("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.W.handlePlaylistRemoveVideosAction=function(v){var e;if(((e=_.L(v,_.ctc))==null?0:e.setVideoIds)&&this.data&&this.data.contents){v=_.L(v,_.ctc).setVideoIds;for(e=this.data.contents.length-1;e>=0;){var d=_.L(this.data.contents[e],_.oi);(d=d&&_.L(d.content,_.xw))&&d.setVideoId&&v.includes(d.setVideoId)&&this.splice("data.contents",e,1);e--}this.updateIndices()}};
_.W.updateIndices=function(){if(this.data&&this.data.contents)for(var v=0;v<this.data.contents.length;v++)this.set("data.contents."+v+".richItemRenderer.index",_.pQ(String(v+1)))};
_.W.hasTopRowInlinePlayableVideoWithEndorsement=function(v){var e;return!((e=v.slice(0,this.getItemsPerRow()))==null||!e.some(function(d){var E;d=_.L(d==null?void 0:(E=d.richItemRenderer)==null?void 0:E.content,_.XY);var T;return(d==null?void 0:d.inlinePlaybackEndpoint)&&(d==null?void 0:(T=d.thumbnailOverlays)==null?void 0:T.some(function(S){return S.thumbnailOverlayEndorsementRenderer}))}))};
_.W.refreshGridLayoutNew=function(v,e,d,E){var T=E.postsPerRow;var S=E.slimItemsPerRow;var O=E.gameCardsPerRow;E=E.miniGameCardsPerRow;var b;if((b=this.data)==null||!b.contents||!this.containerWidth)return!1;var Y;if((Y=this.data.responsiveContainerConfiguration)==null?0:Y.responsiveSize){var q=_.Lo0(this.data.responsiveContainerConfiguration,this.containerWidth),r;b=_.AX(Object.assign({},q,{standardUnitMinWidth:(r=this.data)==null?void 0:r.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&q.isCompactList)}else b=_.AX({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(q=this.data)==null?void 0:q.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=b.typographyBump;r=!1;if(v||this.elementsPerRow!==b.numItems||this.postsPerRow!==T||this.slimItemsPerRow!==S||this.gameCardsPerRow!==
O||this.miniGameCardsPerRow!==E||this.gutter!==b.gutter)r=this.elementsPerRow!==b.numItems,this.elementsPerRow=b.numItems,this.postsPerRow=T,this.slimItemsPerRow=S,this.gameCardsPerRow=O,this.miniGameCardsPerRow=E,this.gutter=b.gutter,this.itemWidth=b.itemWidth,this.reflowContent(e),_.qr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":b.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(d);this.ytdReduxBehavior.dispatch(_.Oo({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:b.maxContainerWidth}));return r};
_.W.refreshGridLayout=function(v,e){var d,E=(d=this.hostElement)==null?void 0:d.clientWidth;this.containerWidth=this.adjustRichGridWidth(E,!0);var T;if((T=this.data)==null||!T.contents||!this.containerWidth)return v&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.N("rg_pending_reflow_ks")&&(v=!0,this.pendingForceReflow=!1);d=this.getRichItemMinWidth(E);var S=this.isShortsPanel?146:194,O=this.getMiniGameCardMinWidth(),b=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
E=d=this.calcElementsPerRow(d,b);(T=d<=3&&this.miniModeAllowed())&&(d=this.calcElementsPerRow(240,4));var Y=this.calcMaxSlimElementsPerRow(d,b,this.isDefaultGrid);b=this.calcElementsPerRow(S,Y);var q=this.calcElementsPerRow(this.isCompactGrid?S:154,Y);S=this.calcElementsPerRow(this.isCompactGrid?S:O,Y);O=!1;if(this.sizing)return this.refreshGridLayoutNew(v,e,T,{postsPerRow:E,slimItemsPerRow:b,gameCardsPerRow:q,miniGameCardsPerRow:S});if(v||this.elementsPerRow!==d||this.postsPerRow!==E||this.slimItemsPerRow!==
b||this.gameCardsPerRow!==q||this.miniGameCardsPerRow!==S)O=this.elementsPerRow!==d,this.elementsPerRow=d,this.postsPerRow=E,this.slimItemsPerRow=b,this.gameCardsPerRow=q,this.miniGameCardsPerRow=S,this.reflowContent(e),this.updateElementsPerRow(),_.qr(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)&&_.qr(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(T);_.YB(this.hostElement,"yt-rich-grid-layout-refreshed");return O};
_.W.getRichItemMinWidth=function(v){var e=_.Wi("rich_grid_min_item_width",310);if(!_.N("kevlar_disable_min_width_override")){var d,E;e=(E=(d=this.data)==null?void 0:d.minItemWidth)!=null?E:e}return e+_.HN3(v)};
_.W.calcMaxSlimElementsPerRow=function(v,e,d){return(d===void 0?0:d)?v===1?2:v%2===0?_.N("web_shorts_2_by_3_reduce_items_per_row")&&v>=4?v/2*3-1:v/2*3:_.N("web_shorts_2_by_3_reduce_items_per_row")&&v>=3?v+1:v+2:e*2};
_.W.adjustRichGridWidth=function(v,e){var d=_.N("disable_rich_grid_guide_compensation");if(!this.isWatch&&!d){d=_.dk().resolve(_.eG(_.wK));var E=d==null?void 0:d.guideElement;if(!(!d||d.getData()||E!=null&&E.opened||d.getMiniGuideVisible()))if(d.canFitPersistentGuide(v)&&d.getGuideExpandsAutomatically()){var T,S,O=Number((T=window.getComputedStyle(this.hostElement))==null?void 0:(S=T.getPropertyValue("--app-drawer-width"))==null?void 0:S.replace("px",""));v-=O||0}else if(d.canFitMiniGuide(v)){var b;
T=Number((O=window.getComputedStyle(this.hostElement))==null?void 0:(b=O.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:b.replace("px",""));v-=T||0}}v>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(v-=e?32:48));return v};
_.W.calcElementsPerRow=function(v,e){var d=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),E=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((d+E)/(v+E))||1,e)};
_.W.reflowContent=function(v){var e=this;if(!this.isReflowing){this.isReflowing=!0;var d,E,T=!!((d=this.data)==null?0:(E=d.contents)==null?0:E.some(function(k){return _.L(k,_.uw)}));
d=this.getItemsPerRow();var S;E=(S=this.data)==null?void 0:S.reflowOptions;v&&(_.zE("rgr_s"),_.Uh(this,function(){_.zE("rgr_nrf")}));
v={};(S=_.IB(this.hostElement).querySelector("#contents"))&&(v={contentElement:S,rendererToTagNameMap:this.rendererToTagNameMap});S=(S=this.data.contents)?S.slice():[];var O=(_.N("web_hide_gnome_behind_feed_filter_chip")||_.N("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,b=_.N("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,Y=-1,q=-1;if(this.isHomePage&&b){for(b=0;b<S.length;b++){var r=void 0,h=void 0;_.L((r=S[b])==null?void 0:
(h=r.richSectionRenderer)==null?void 0:h.content,iWf)&&(q=b)}q>-1&&(this.exploreHubContents=S.splice(q,1))}if(this.isHomePage&&O){for(q=0;q<S.length;q++)h=r=void 0,(b=_.L((r=S[q])==null?void 0:(h=r.richSectionRenderer)==null?void 0:h.content,_.VPA))&&O&&(h=r=void 0,b=_.L((r=b)==null?void 0:(h=r.contents)==null?void 0:h[0],_.oi),r=void 0,_.L((r=b)==null?void 0:r.content,_.VTE)&&(Y=q));Y>-1&&(this.gnomeContents=S.splice(Y,1))}T=FT9(S,d,T,E,this.getRichGridStyle(),v,this.insertedContent);var K=T.orderedContent;
if(T=T.pinnedContentNotShownTargetIds)for(T=_.a(T),d=T.next();!d.done;d=T.next())this.insertedContent.delete(d.value);T=function(){e.shownItems=K;e.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(K),_.Uh(this,T)):T()}};
_.W.getFirstRowItems=function(v){for(var e=[],d=0;d<v.length;d++){var E=void 0,T=void 0,S=void 0,O=void 0,b=void 0,Y=void 0;if(((E=v[d])==null?void 0:(T=E.richItemRenderer)==null?void 0:T.rowIndex)===0||((S=v[d])==null?void 0:(O=S.richGroupRenderer)==null?void 0:O.rowIndex)===0||((b=v[d])==null?void 0:(Y=b.richSectionRenderer)==null?void 0:Y.rowIndex)===0)e.push(v[d]);else break}return e};
_.W.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.W.resetInsertedContentIfNeeded=function(){(_.N("web_explore_hub_on_hover")||_.N("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.W.handleChipCloudChipSelectAction=function(v,e){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.N("web_hide_gnome_behind_feed_filter_chip")&&(e?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.W.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.N("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.W.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.N("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.W.terminateVideoPreview=function(){_.YB(this.hostElement,"yt-terminate-video-preview-action")};
_.W.updateRichItemGridPositions=function(){var v={gridData:{gridColumnCount:this.elementsPerRow}},e;if((e=this.data)==null?0:e.trackingParams)this.loggingRefactor?_.NC().stateChanged(this.data.trackingParams,v):(e=_.zz())&&_.vK(e,_.Jg(this.data.trackingParams),v);_.YB(this.hostElement,"ytd-rich-item-index-update-action")};
_.W.miniModeAllowed=function(){return this.isChannelPage};
_.W.getMiniGameCardMinWidth=function(){return 154};
_.W.updateMiniMode=function(v){this.miniMode=this.miniModeAllowed()&&v;this.ytdReduxBehavior.dispatch(_.Oo({type:"SET_RICH_GRID_MINI_MODE",payload:v}))};
_.W.isCurrentPage=function(){return location.pathname===this.pagePath};
_.W.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var v=_.dk().resolve(_.v5).getCurrentPage();v&&v.setScrollTop(0)}};
_.W.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.W.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.W.maybeSetBigYoodle=function(){var v,e=(v=this.data)==null?void 0:v.bigYoodle;this.bigYoodleData!==e&&(this.bigYoodleData=e)};
_.W.setMasthead=function(){var v;((v=this.data)==null?0:v.masthead)?this.mastheadData=this.data.masthead:_.N("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.W.getRichGridStyle=function(){var v,e;return(e=(v=this.data)==null?void 0:v.style)!=null?e:"RICH_GRID_STYLE_UNKNOWN"};
_.W.onIsShortsGridChange=function(){var v=this.ytdReduxBehavior,e=v.dispatch,d=this.getRichGridStyle();e.call(v,_.Oo({type:"SET_RICH_GRID_STYLE",payload:d}))};
_.vP.Object.defineProperties(jC.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var v=_.dk().resolve(_.v5).getCurrentPage(),e,d,E;return(((e=this.data)==null?void 0:e.targetId)==="browse-feedFEsfv_audio_pivot"||_.N("web_enable_channel_pivot_panel")&&((d=this.data)==null?void 0:d.targetId)==="browse-feedFEsfv_channel_pivot"||_.N("web_enable_effect_pivot_panel")&&((E=this.data)==null?void 0:E.targetId)==="browse-feedFEsfv_effect_pivot")&&(v==null?void 0:v.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.N("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 v;return!((v=this.data)==null?0:v.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var v;return((v=_.dk().resolve(_.v5).getCurrentPage())==null?void 0:v.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var v;return((v=_.dk().resolve(_.v5).getCurrentPage())==null?void 0:v.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 v;return this.hideChipsBar||(((v=this.data)==null?void 0:v.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.N("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.targetId)||"")==="watch-next-feed"&&!_.N("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((v=this.data)==null?0:v.enableContentSpecificAspectRatio)||((e=this.data)==null?0:(d=e.responsiveContainerConfiguration)==null?0:d.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Wi("web_continuation_handler_margin",0):0}}});
jC.prototype.onIsShortsGridChange=jC.prototype.onIsShortsGridChange;jC.prototype.onReloadContinuationFinish=jC.prototype.onReloadContinuationFinish;jC.prototype.reflowContent=jC.prototype.reflowContent;jC.prototype.handleRerenderDownloadsData=jC.prototype.handleRerenderDownloadsData;jC.prototype.onRichShelfRendererCollapse=jC.prototype.onRichShelfRendererCollapse;jC.prototype.onRequestElementsPerRow=jC.prototype.onRequestElementsPerRow;jC.prototype.contentLengthChanged=jC.prototype.contentLengthChanged;
jC.prototype.dataChanged=jC.prototype.dataChanged;jC.prototype.onSizingChange=jC.prototype.onSizingChange;jC.prototype.onUseCompactListChange=jC.prototype.onUseCompactListChange;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],jC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.J9),_.w("design:type",Object)],jC.prototype,"ironResizableBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],jC.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.FL),_.w("design:type",Object)],jC.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],jC.prototype,"componentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],jC.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],jC.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],jC.prototype,"miniMode",void 0);_.c([_.f({value:[]}),_.w("design:type",Array)],jC.prototype,"shownItems",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],jC.prototype,"isReflowing",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],jC.prototype,"isFilteredFeed",void 0);_.c([_.f({selector:_.g_M}),_.w("design:type",Boolean)],jC.prototype,"guideIsExpanded",void 0);
_.c([_.f({selectorArgs:["entitySelectorType"],selector:function(v,e){if(_.N("kevlar_modern_downloads_page")&&e&&e!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(e){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":e=v.entities;var d=_.PK(e),E=_.xH(e),T=_.Y1W(v),S=_.bst(v),O=_.m$0(v),b=_.XH0(e),Y=_.J_(d),q=_.BK(e);return _.h9S(d,E,b,_.AdW(e),T,S,Y,q,O,_.q1W(v),_.HK(v));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return v=_.PK(v.entities),_.$QL(v);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return v=
_.xNt(v.entities),_.jXU(v);default:_.xf(new _.kL("Error: entitySelectorType defined but not matched in selector.",v,e))}}}),
_.w("design:type",Object)],jC.prototype,"entityDrivenRichGridData",void 0);_.c([_.f(),_.w("design:type",Object)],jC.prototype,"resizeOnObserverInit",void 0);_.c([_.f(),_.w("design:type",Object)],jC.prototype,"bigYoodleData",void 0);_.c([_.f(),_.w("design:type",Object)],jC.prototype,"mastheadData",void 0);_.c([_.f(),_.w("design:type",Boolean)],jC.prototype,"isInlinePreviewDisabled",void 0);_.c([_.f(),_.w("design:type",Object)],jC.prototype,"disableStickyFilterBar",void 0);
_.c([_.f(),_.w("design:type",Object)],jC.prototype,"transparentBackgroundChipsBar",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jC.prototype,"hideChipsBar",void 0);_.c([_.f(),_.w("design:type",Object)],jC.prototype,"isWatchDefaultLayout",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jC.prototype,"continuationShowButton",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jC.prototype,"rowReducedHorizontalMargin",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jC.prototype,"useCompactList",void 0);_.c([_.f({selector:function(v){return _.xH(v.entities).length>0}}),
_.w("design:type",Object)],jC.prototype,"manualDownloadsPresent",void 0);_.c([_.f({selector:function(v){return _.PK(v.entities).length>0}}),
_.w("design:type",Object)],jC.prototype,"smartDownloadsPresent",void 0);_.c([_.f({selector:_.HK}),_.w("design:type",Object)],jC.prototype,"isOnline",void 0);_.c([_.f({selector:_.bst}),_.w("design:type",Object)],jC.prototype,"shouldRenderDownloadsBanner",void 0);_.c([_.f({selector:_.q1W}),_.w("design:type",Object)],jC.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.c([_.f({selector:_.Y1W}),_.w("design:type",Object)],jC.prototype,"hasOptedIntoSmartDownloads",void 0);
_.c([_.$v("useCompactList"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jC.prototype,"onUseCompactListChange",null);_.c([_.$v("sizing","typographyBump"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jC.prototype,"onSizingChange",null);_.c([_.f({selector:_.vKO}),_.w("design:type",Number)],jC.prototype,"miniplayerPlaybackState",void 0);_.c([_.f({selector:_.za}),_.w("design:type",Boolean)],jC.prototype,"miniplayerIsActive",void 0);
_.c([_.f({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.w("design:type",Boolean)],jC.prototype,"isInlinePreviewEnabled",void 0);_.c([_.f({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.w("design:type",String)],jC.prototype,"sizing",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jC.prototype,"elementsPerRow",void 0);
_.c([_.f(),_.w("design:type",Object)],jC.prototype,"typographyBump",void 0);_.c([_.f(),_.w("design:type",Number)],jC.prototype,"itemWidth",void 0);_.c([_.sg("#header"),_.w("design:type",HTMLElement)],jC.prototype,"headerElement",void 0);_.c([_.sg("#contents"),_.w("design:type",HTMLElement)],jC.prototype,"contentsElement",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jC.prototype,"dataChanged",null);
_.c([_.V1("data.contents.length"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jC.prototype,"contentLengthChanged",null);_.c([_.Kq("yt-request-elements-per-row"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jC.prototype,"onRequestElementsPerRow",null);
_.c([_.Kq("yt-rich-shelf-renderer-collapse"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],jC.prototype,"onRichShelfRendererCollapse",null);_.c([_.V1("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jC.prototype,"handleRerenderDownloadsData",null);
_.c([_.t("data"),_.w("design:type",String),_.w("design:paramtypes",[])],jC.prototype,"entitySelectorType",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.targetId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"isSub",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.targetId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"isWatch",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data.targetId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"isShortsPanel",null);_.c([_.f({reflectToAttribute:!0}),_.t("isWatch"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"reducedTopMargin",null);_.c([_.f({reflectToAttribute:!0}),_.t("data","isWatch","isWatchDefaultLayout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"noTopMargin",null);
_.c([_.f({reflectToAttribute:!0}),_.t("isInlinePreviewEnabled","shownItems"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"topRowEndorsement",null);_.c([_.t("data.header"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"hideHeader",null);_.c([_.Kq("yt-rich-grid-reflow"),_.w("design:type",Function),_.w("design:paramtypes",[Boolean]),_.w("design:returntype")],jC.prototype,"reflowContent",null);
_.c([_.Kq("yt-reload-continuation-finish"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jC.prototype,"onReloadContinuationFinish",null);_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"isSlimGrid",null);_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"isShortsGrid",null);
_.c([_.t("data","isSlimGrid","isShortsGrid"),_.f(),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"noRichItemGutterMargins",null);_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"isShortsGridSlim",null);_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"isCompactGrid",null);
_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"isDefaultGrid",null);_.c([_.t("data.targetId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"hideChipsBarOnHome",null);_.c([_.t("data.targetId"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"hideChipsBarOnWatch",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jC.prototype,"onIsShortsGridChange",null);_.c([_.t("data.enableContentSpecificAspectRatio"),_.f(),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jC.prototype,"force16By9ThumbnailAspectRatio",null);_.c([_.t("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],jC.prototype,"continuationTriggerOffset",null);_.c([_.z({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],jC);
_.A(jC,"ytd-rich-grid-renderer",function(){if(LDO!==void 0)return LDO;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return LDO=v},{mode:2});var Xs1=_.l(function(v){var e=v.thumbsUp,d=v.thumbsDown,E=v.rightAlignThumbs;v=_.a(_.OE(!1,void 0,"FjNDrf"));var T=v.next().value,S=v.next().value;v=_.a(_.OE(!1,void 0,"Tphjfb"));var O=v.next().value,b=v.next().value;v={};return _.m("div",{class:_.qe("ytwThumbsUpDownThumbs",(v.ytwThumbsUpDownRightAlign=function(){return E==null?void 0:E()},v))},_.m(_.fR,{data:e,
onToggle:function(Y){S(Y);O()&&b(!1)},
buttonShapeOverrides:function(){return{toggled:T()}}}),_.m(_.fR,{data:d,
onToggle:function(Y){b(Y);T()&&S(!1)},
buttonShapeOverrides:function(){return{toggled:O()}}}))},"bk");
Xs1.idomCompat=!0;var ljt=_.l(function(v){var e=function(){return v.data().pendingStateEntityKey||""},d=_.Kv(_.Ens,e),E=function(){var b;
if(!(b=v.disabled())){var Y;b=!((Y=d())==null||!Y.isPendingResponse)}return b},T=_.a(_.OE(ups(""),void 0,"aC8eBe")),S=T.next().value,O=T.next().value;
_.JE(function(){requestAnimationFrame(function(){var b=v.data().onShowAnimationMs||0;b=b>0?ups("--chip-animation-duration: "+b+"ms;"):ups("");O(b)})});
return _.m("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:S},_.m(_.jI,{each:function(){return v.data().chipData||[]},
keyBy:"REFERENCE"},function(b){return _.m(zzi,{data:b,disabled:E,pendingStateKey:e,onError:v.onError})}))},"ck"),zzi=_.l(function(v){var e=_.Dq("button"),d=_.a(_.OE(!0,void 0,"NaMiCd")),E=d.next().value,T=d.next().value,S=function(){return v.data().text.content},O=_.rq(function(b){var Y,q,r,h,K,k,J,R;
return _.I(function(B){switch(B.nextAddress){case 1:b.stopPropagation();if(v.disabled())return B.return();q=String(Math.floor(((Y=_.mS())==null?void 0:Y.getCurrentTime())||0)*1E3);r="youchat-"+Date.now();h=function(){_.Hz(v.data().onClick||{});var X={continuationCommand:{token:v.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},Z={inputComposerFormData:{clientMessageId:r,playerOffsetMs:q}};return new Promise(function(U,F){_.Hz(X,{form:{formData:Z},commandController:{onSuccess:function(g,
Q){U(Q)},
onServerError:function(g,Q){F(Q.error)}}})})};
K=_.TX_(v.pendingStateKey());K(!0);_.XTs("#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);_.qq(B,2);return B.yield(h(),4);case 4:_.wk(B,3);break;case 2:k=_.jl(B),(R=(J=v).onError)==null||R.call(J,k);case 3:K(!1),_.s9(B)}})});
return _.m(_.y,{cond:E,then:function(){return _.m("div",{class:"ytwYouChatChipsDataChipWrapper"},_.m("button",{el:e,class:"ytwYouChatChipsDataChip","data-disabled":v.disabled,"on:click":O,tabindex:0},S))}})},"dk");var HW9=_.l(function(v){var e=v.data;var d=v.initiallyExpanded;var E=function(){var q;return(q=e().conversationResourceData)==null?void 0:q.learningGuideData};
v=_.a(_.KM(function(){var q;return(q=d==null?void 0:d())!=null?q:!1}));
var T=v.next().value,S=v.next().value,O=function(){S(!0)},b=_.yl(function(){var q,r;
return(r=(q=E())==null?void 0:q.sections)!=null?r:[]},void 0,"xl8NRc"),Y=_.yl(function(){return b().length>4},void 0,"oAM7of");
v=_.yl(function(){var q;return!T()&&Y()&&(q=E())!=null&&q.expandButton?b().slice(0,4):b()},void 0,"uzQ9rc");
return _.m("yt-conversation-resource-view-model",{class:_.qe("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.m(_.kz,{data:v},{expandableMetadataViewModel:_.nsQ}),_.m(_.y,{cond:function(){return Y()&&!T()},
then:function(){return _.m("div",{id:"showMoreButton"},_.m(_.kz,{data:function(){var q;return(q=E())==null?void 0:q.expandButton}},{buttonViewModel:function(q){return _.m(_.yi,{data:q.data,
onClick:O})}}))}}))},"ek");var Avv=_.l(function(v){var e=function(){var Q;return(Q=v.data().text)==null?void 0:Q.content},d=function(){var Q,v3;
return(Q=v.data().webData)==null?void 0:(v3=Q.textResult)==null?void 0:v3.content},E=_.dk().resolve(_.U_),T=_.y0(),S=function(){return v.data().chatResponseStyle},O=function(){return!v.data().transparentBackground},b=function(){return v.data().rightAlignThumbs},Y=function(){return v.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||v.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},q=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:Y()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:v.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},r=function(){var Q;
return v.data().webData||((Q=v.data().text)==null?void 0:Q.content)||v.data().videoResultsData||v.data().conversationResourceViewModel||v.data().quiz},h=function(){return!!v.data().sectionHeader||r()},K=function(){var Q;
return(Q=v.data().videoResultsData)==null?void 0:Q.videoShelf},k=function(){var Q;
return _.L(((Q=v.data().videoResultsData)==null?void 0:Q.videoShelf)||{},mK_)},J=function(){var Q;
return(Q=v.data().webData)==null?void 0:Q.sourcesShelf},R=function(){var Q;
return _.L(((Q=v.data().webData)==null?void 0:Q.sourcesShelf)||{},mK_)},B=function(){return _.L(v.data().conversationResourceViewModel||{},q49)},X=function(){return _.L(v.data().quiz||{},Iji)},Z=function(){return S()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||S()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:v.data().thumbsDownViewModel&&v.data().thumbsUpViewModel},U=function(){return _.L(v.data().thumbsUpViewModel,_.Ay)},F=function(){return _.L(v.data().thumbsDownViewModel,_.Ay)};
_.JE(function(){requestAnimationFrame(function(){var Q;(Q=v.shouldAnimateIcon)!=null&&Q.call(v)&&S4C(T.lottieEl)})});
var g={};return _.m("you-chat-item-view-model",{class:_.qe("ytwYouChatItemViewModelYouChatItemViewModel",(g.ytwYouChatItemViewModelColumnLayout=function(){return Y()},g)),
"data-target-id":function(){return v.data().id||""}},_.m(_.y,{cond:function(){return v.data().removeIcon?!1:h()},
then:function(){var Q={};return _.m("div",{"aria-hidden":"true"},_.m(_.jZ,{className:_.qe("ytwYouChatItemViewModelIcon",(Q.ytwYouChatItemViewModelRtl=E==="rtl",Q.ytwYouChatItemViewModelHidden=function(){return!(v.data().hideIcon||S()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||S()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:h())},Q)),
animationName:"YOUCHAT_ICON",data:q,animationRef:T}))}}),_.m(_.y,{cond:h,
then:function(){var Q={};return _.m("div",{class:_.qe("ytwYouChatItemViewModelHost",(Q.ytwYouChatItemViewModelHostNoPadding=function(){return!!v.data().sectionHeader&&!r()},Q.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return S()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},Q.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return S()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},Q.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return S()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
Q.ytwYouChatItemViewModelGradientBackground=O,Q)),
role:"alert"},_.m(_.y,{cond:e,then:function(v3){return _.m(_.ZU,{text:v3,wrapCodeBlocks:!0})}}),_.m(_.kz,{data:function(){return v.data().sectionHeader}},{sectionHeaderViewModel:function(v3){var q7={};
return _.m(_.mz,{data:v3.data,className:_.qe("ytwYouChatItemViewModelSectionHeader",(q7.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!v.data().sectionHeader&&!r()},q7))})}}),_.m(_.y,{cond:d,
then:function(v3){return _.m(_.ZU,{text:v3,wrapCodeBlocks:!0})}}),_.m(_.y,{cond:K,
then:function(){return _.m("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.m(_.lD,{data:k,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.m(_.y,{cond:J,
then:function(){return _.m("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.m(_.lD,{data:R,hasPeek:!0,disableArrows:!1}))}}),_.m(_.y,{cond:B,
then:function(){return _.m(HW9,{data:B})}}),_.m(_.y,{cond:X,
then:function(){return _.m(_.biA,{data:X})}}),_.m(_.y,{cond:Z,
then:function(){return _.m(Xs1,{thumbsUp:U,thumbsDown:F,rightAlignThumbs:b})}}))}}),_.m(_.y,{cond:function(){return v.data().chipsData},
then:function(Q){return _.m(ljt,{data:Q,disabled:v.pending,onError:v.onError})}}))},"fk");
Avv.idomCompat={callbacks:{onError:!0,onSend:!0}};var ZWf=_.l(function(v){var e=function(){return v.data().choiceSelectedText},d=function(){return v.data().hasGradientBackground},E={};
return _.m("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.m(_.y,{cond:e,then:function(){return _.m("div",{class:"ytYouChatUserTurnChoiceSelected"},_.m(_.Dh,{text:e}))}}),_.m("div",{class:_.qe("ytYouChatUserTurnUserMessage",(E.ytYouChatUserTurnGradientContainer=d,E.ytYouChatUserTurnDefaultContainer=function(){return!d()},E))},function(){return v.data().text}))},"gk");var cvt=_.l(function(v){var e=_.a((0,_.zq6)(v.data)).next().value;return _.m("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return v.data().targetId||""}},_.m(_.kz,{data:function(){return v.data().header}},{chipBarViewModel:_.fQJ}),_.m(_.kz,{data:function(){return e().contents}},{accordionViewModel:_.qVc,
alertBannerViewModel:_.lQJ,chatLoadingViewModel:_.a_v,chatUserTurnViewModel:ZWf,learningJourneyLoaderViewModel:_.aDA,lockupViewModel:function(d){return _.m(_.Y8,{data:d.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:v.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
videoOverviewViewModel:_.LT2,youChatItemViewModel:function(d){return _.m(Avv,{data:d.data,pending:!1})}}))},"hk");_.aZ(_.l(function(v){var e=_.a((0,_.zq6)(v.data)).next().value,d=_.nI("yt-section-list-renderer"),E=_.a(_.OE(void 0,void 0,"rQpPgc")),T=E.next().value,S=E.next().value,O=function(){var b;return _.L((b=v.data().sectionListLayoutConfiguration)==null?void 0:b.layoutConfiguration,Y4C)};
_.Gr(function(){var b,Y=(b=d.value)==null?void 0:b.clientWidth;if(O()){b=O();var q=b.responsiveSize;Y=Y<528?"CONTAINER_SIZE_NARROW":Y<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var r=_.a(b.responsiveMap||[]);for(var h=r.next();!h.done;h=r.next())if(h=h.value,h.containerSize===Y){r=h.containerType;break b}r=void 0}if(r&&q){b:{if(r==="CONTAINER_TYPE_VERTICAL_LIST")if(q==="RESPONSIVE_SIZE_STANDARD"){if(Y!=="CONTAINER_SIZE_NARROW"){h="50%";break b}}else{h=Y==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}h=void 0}b={responsiveSize:q,containerSize:Y,containerType:r,force16By9ThumbnailAspectRatio:!b.enableContentSpecificAspectRatio,contentPreviewWidth:h,fullbleed:(r==="CONTAINER_TYPE_VERTICAL_LIST"||r==="CONTAINER_TYPE_GRID")&&Y==="CONTAINER_SIZE_NARROW"&&!1}}else b=void 0}else b=void 0;S(b)});
return _.m("yt-section-list-renderer",{class:_.qe("ytSectionListRendererHost",v.className),el:d,"data-target-id":function(){return v.data().targetId||""}},_.m(_.kz,{data:function(){return e().contents}},{itemSectionRenderer:function(b){return _.m(cvt,{data:b.data,
containerLayoutConfig:T})}}))},"ik"),"yt-section-list-renderer",{props:{data:_.U1,
className:_.SM}});var wsi;var FDQ;var QkQ=function(){return _.P.apply(this,arguments)||this};
_.V(QkQ,_.P);_.c([_.f(),_.w("design:type",Object)],QkQ.prototype,"data",void 0);_.c([_.lh({is:"yt-alert-renderer",disableElementRegistration:!0})],QkQ);
_.A(QkQ,"yt-alert-renderer",function(){if(FDQ===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;wsi===void 0&&(wsi=document.createElement("template"));var E=wsi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);FDQ=v}v=FDQ;return v},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Uut;Uut=function(v,e,d,E){d||(v?E&&(E.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||E.WINDOW_SIZE_CHANGED&&(e.width!==window.innerWidth||e.height!==window.innerHeight)||E.SAFARI_ABORTED_BY_NEW_TRANSITION&&v instanceof DOMException&&v.name==="AbortError"&&v.message.includes("Old view transition aborted by new view transition"))||_.RI(v):_.RI(Error("mj")))};
_.pwC=function(v,e){e=e===void 0?{}:e;var d,E,T,S,O,b,Y,q,r,h,K,k,J;return _.I(function(R){switch(R.nextAddress){case 1:d=e;E=d.shouldWrap===void 0?!0:d.shouldWrap;T=d.skipTransitionTimeoutMs===void 0?300:d.skipTransitionTimeoutMs;S=d.beforeTransition;O=d.afterTransition;if(!E||!document.startViewTransition||document.visibilityState==="hidden")return R.return(v());b={width:window.innerWidth,height:window.innerHeight};Y=!1;(q=S)==null||q();_.qq(R,2);r=document.startViewTransition(v);h=setTimeout(function(){r.skipTransition();
Y=!0},T);
return R.yield(r.ready,4);case 4:return clearTimeout(h),R.yield(r.finished,5);case 5:clearTimeout(h);(K=O)==null||K();_.wk(R,0);break;case 2:k=_.jl(R),(J=O)==null||J(),Uut(k,b,Y,e.ignoredErrors),_.s9(R)}})};
_.Aq=function(){for(var v=Array(36),e=0,d,E=0;E<36;E++)E==8||E==13||E==18||E==23?v[E]="-":E==14?v[E]="4":(e<=2&&(e=33554432+Math.random()*16777216|0),d=e&15,e>>=4,v[E]=_.tKu[E==19?d&3|8:d]);return v.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 vGs=_.Z9(['<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>']),
edf=_.KUE(vGs);edf.setAttribute("style","display: none;");document.head.appendChild(edf.content);_.Z$=_.hNt(function(v){var e=_.hz("DIV");v&&(e.className=v);e.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";v=_.hz("DIV");_.b9I(v,"200px","200px");e.appendChild(v);document.body.appendChild(e);v=e.offsetWidth-e.clientWidth;_.KX(e);return v});var d4t;var EGC;var cN=function(){var v=_.P.apply(this,arguments)||this;v.icon=null;return v};
_.V(cN,_.P);cN.prototype.dismiss=function(){_.Iq(this.hostElement,"yt-live-chat-error-message-dismiss")};
cN.prototype.computeIcon=function(v){return v&&v.iconType?"yt-icons:"+v.iconType.toLowerCase():"yt-icons:close"};
_.c([_.f(),_.w("design:type",Object)],cN.prototype,"data",void 0);_.c([_.f({computed:"computeIcon(data.icon)"}),_.w("design:type",Object)],cN.prototype,"icon",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],cN);
_.A(cN,"yt-live-chat-error-message-renderer",function(){if(EGC===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;d4t===void 0&&(d4t=document.createElement("template"));var E=d4t;d.call(e,E.content.cloneNode(!0),v.content.firstChild);EGC=v}v=EGC;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var eum,dim,EIJ,Tnf,S6m,Wgm,I0m,yer,q66,reV,huJ,VC,Kg6,$i6,oh,jEY,sE$,Nnr,k2J,LgJ,VAV,oI6,JeB,G2B,MAT,tA$,f0T,RuY,PMk,xiT,Bnm,CM6,XcT,zu6,l0a,Jm,H7k,AeY,Z7m,FgD,QEJ,gIm,uJu,nIm,Di6,ceD,wc$,pcu,vsk,e_J,d1m,Es$,UiJ,miB,Sia;eum=function(v){var e=_.nI("__slot-el");_.Gr(function(){for(var d=_.a(v.slotContent),E=d.next();!E.done;E=d.next())e.value.appendChild(E.value)});
return _.m("__slot-el",{el:e,skip:!0})};
dim=function(v){return _.Wa==="yt-animated-rolling-number"?(v.isInert=!0,_.Wa="",!0):_.qZt==="yt-animated-rolling-number"?(v.isInert=!0,_.qZt="",!0):!1};
EIJ=function(v,e){return _.h_(v.entities,"liveReactionsDataEntity",e)};
Tnf=function(v,e){v=_.h_(v.entities,"booleanEntity",e);return!(!v||!v.value)};
S6m=function(v,e){var d=_.zz();d&&v&&_.Qa(d,_.Jg(v),e)};
Wgm=function(v,e){return _.h_(v.entities,"timedMarkersListSyncEntity",e)};
_.a0J=function(v){return v.watch.isWatchActive};
_.i7$=function(v){return _.xj(v)||_.Ba(v)||_.KGt(v)};
_.O7B=function(v){return!_.i7$(v)};
_.Lh=function(v){return v.watch.watchScrollTop};
I0m=function(v){return v.watch.isLiveChatCollapsed};
_.b7f=function(){_.N("web_watch_log_theater_mode")&&_.l5W("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.Y6m=function(v,e,d){if(!v.includes("START_TIME_PLACEHOLDER")||!v.includes("END_TIME_PLACEHOLDER"))return v;var E=new Date(0),T=new Date(0);E.setUTCMilliseconds(e);T.setUTCMilliseconds(d);return v.replace("START_TIME_PLACEHOLDER",_.uq(E,7)).replace("END_TIME_PLACEHOLDER",_.uq(T,7))};
yer=function(){var v={propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]};v=v===void 0?miB:v;_.ik.add("yt-animated-rolling-number");var e;(e=v).propNames!=null||(e.propNames=[]);var d=new Set(v.propNames),E=_.Spj();e=function(){var b=E.call(this)||this;b.props={};b.isUpdating=!1;b.hasAttached=!1;b.isInert=!1;b.updateQueued=!1;b.initialClasses=[];dim(b);return b};
_.V(e,E);e.prototype.forwardKebabCaseProp=function(b,Y){b=_.kq(b);if(d.has(b)||b==="children")this.props[b]=Y};
e.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var b=_.a(this.initialClasses),Y=b.next();!Y.done;Y=b.next())(Y=Y.value)&&this.classList.add(Y);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
e.prototype.handleSlottedContent=function(){for(var b=new Map,Y=_.a(this.children),q=Y.next();!q.done;q=Y.next()){q=q.value;var r=void 0,h=(r=q.getAttribute("slot"))!=null?r:"children";(r=b.get(h))?r.push(q):b.set(h,[q]);if(!q.getAttribute("key")){var K=void 0,k=void 0;q.setAttribute("key",h+"_"+((k=(K=r)==null?void 0:K.length)!=null?k:0))}}b=_.a(b);for(Y=b.next();!Y.done;Y=b.next())q=_.a(Y.value),Y=q.next().value,q=q.next().value,this.forwardKebabCaseProp(Y,_.m(eum,{slotContent:q}))};
e.prototype.connectedCallback=function(){var b=this;if(!dim(this)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var Y=_.a(this.attributes),q=Y.next();!q.done;q=Y.next())q=q.value,this.forwardKebabCaseProp(q.name,_.dv7(q));this.handleSlottedContent();v.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){b.afterFirstPatch()});
this.hasAttached=!0}};
e.prototype.attributeChangedCallback=function(b,Y,q){this.isInert||this.isUpdating||this.isConnected||b!=="class"||this.initialClasses.push.apply(this.initialClasses,_.t7(q.split(" ")))};
e.prototype.disconnectedCallback=function(){_.xnj(this)};
e.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var b,Y;_.UP3(this,_.m(_.Mku,Object.assign({},this.props,{idomKey:(Y=(b=this.__incrementalDOMData)==null?void 0:b.key)!=null?Y:"yt-animated-rolling-number"})),!0)}catch(r){var q=r instanceof Error?r:new _.kL("Wiz rendering error");q.args||(q.args=[]);q.args.push("Error in deprecated web component wrapper");q.args.push("yt-animated-rolling-number");_.RI(q);throw r;}finally{this.updateQueued=this.isUpdating=!1}}};
e.prototype.enqueueUpdate=function(){var b=this;return _.I(function(Y){if(v.synchronous)return b.update(),Y.return();if(b.updateQueued)return Y.return();b.updateQueued=!0;return Y.return(Promise.resolve().then(function(){b.update()}))})};
e.prototype.notifyPath=function(){v.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.vP.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var T=_.a(v.propNames),S=T.next(),O={};!S.done;O={prop$jscomp$107:void 0},S=T.next())O.prop$jscomp$107=S.value,Object.defineProperty(e.prototype,O.prop$jscomp$107,{set:function(b){return function(Y){this.isInert||Y===this.props[b.prop$jscomp$107]||(this.props[b.prop$jscomp$107]=Y,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(O)});
customElements.define("yt-animated-rolling-number",e)};
q66=function(v,e){return _.h_(v.entities,"booleanEntity",e)};
reV=function(){return function(v){_.vz(_.Lv("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:v}))}};
huJ=function(v){switch(v){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}};
VC=function(v,e,d){var E=_.lk(d);v&&e&&E&&v.getPlayerPromise().then(function(T){_.Aqt(E)&&_.fI();(new _.GS(T)).executeCommand(E,e);_.N("continue_playback_on_desktop_companion_click")||T.pauseVideo()})};
Kg6=function(v){var e=_.dB(),d;if(d=_.AE("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;d=(E=d())==null?void 0:E.layoutId}else d=null;VC(e,d,v)};
$i6=function(v){var e=_.dB(),d;if(d=_.AE("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;d=(E=d())==null?void 0:E.layoutId}else d=null;VC(e,d,v)};
oh=function(v,e){var d=v<0?"-":"";v=Math.abs(v);var E=Math.floor(v/3600),T=Math.floor(v)%3600,S=Math.floor(T/60);T=Math.floor(T)%60;var O="";(e===void 0?0:e)&&(O="."+Math.round((v-Math.floor(v))*10));return E>0?d+E+":"+(S<10?"0"+S:""+S)+":"+(T<10?"0"+T:""+T)+O:d+S+":"+(T<10?"0"+T:""+T)+O};
jEY=function(v){var e=v.match(/[^0-9:\.]/g);if(e&&e.length>0)return null;v=v.split(":");if(v.length===0||v.length>3)return null;e=1;for(var d=0;v.length>0;){var E=v.pop();if(E===void 0)break;var T=Number(E);if(E===""||isNaN(T))return null;d+=T*e;e*=60}return d};
sE$=function(v,e,d,E){v=Math.max(d,v);e=Math.min(e,E-d);v+e>E?(d=E,v=d-e):d=v+e;return{start:v,end:d}};
Nnr=function(v,e,d,E,T,S){v<d?v=d:v+T>E&&(v=E-T);e>E&&(e=E);e=Math.min(v+S,Math.max(v+T,e));return{start:v,end:e}};
k2J=function(v,e,d,E,T,S){e>E?e=E:e-T<d&&(e=d+T);v<d&&(v=d);v=Math.min(e-T,Math.max(e-S,v));return{start:v,end:e}};
LgJ=function(v){return _.N("web_transcript_cue_id_killswitch")?String(v):"ytd-transcript-renderer_"+v};
VAV=function(v){return _.N("web_transcript_cue_id_killswitch")?!0:v.startsWith("ytd-transcript-renderer")};
oI6=function(v){var e=_.dB(),d;if(d=_.AE("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;d=(E=d())==null?void 0:E.layoutId}else d=null;VC(e,d,v)};
JeB=function(v){v.style.height="auto";v.style.height=Math.min(v.scrollHeight||20,80)+"px"};
G2B=function(v,e,d){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:e,hasGradientBackground:d}}],insertByPositionInSection:{sectionTargetId:v,position:"INSERTION_POSITION_LAST"}}}]}}}};
MAT=function(v){var e=_.dB(),d;d=(d=_.AE("yt.www.ads.eventcache.getLastCompanionData"))?(d=d())&&d.layoutId:null;VC(e,d,v)};
tA$=function(v){var e=_.dB(),d;d=(d=_.AE("yt.www.ads.eventcache.getLastCompanionData"))?(d=d())&&d.layoutId:null;VC(e,d,v)};
f0T=function(v,e){e=e===void 0?!1:e;if(v.simpleText)v=[{text:v.simpleText}];else{var d;v=((d=v.runs)!=null?d:[]).map(function(E){return Object.assign({},E)})}if(e)for(e=_.a(v),d=e.next();!d.done;d=e.next())d.value.bold=!0;
return v};
RuY=function(v){var e=v.startEndTimeTemplate,d=v.startTimeUtcMillis;v=v.endTimeUtcMillis;if(e&&d&&v)return _.pQ(_.Y6m(_.vv(e),Number(d),Number(v)))};
PMk=function(v,e){var d,E,T=v==null?void 0:(d=v.viewCount)==null?void 0:(E=d.videoViewCountRenderer)==null?void 0:E.shortViewCount;if(!e&&T)return T;var S,O;return v==null?void 0:(S=v.viewCount)==null?void 0:(O=S.videoViewCountRenderer)==null?void 0:O.viewCount};
xiT=function(v,e){var d=v==null?void 0:v.relativeDateText;return!e&&d?[d,!0]:[v==null?void 0:v.dateText,!1]};
Bnm=function(v,e,d,E,T){E=E===void 0?!0:E;T=T===void 0?"":T;var S=PMk(v,e),O=_.a(xiT(v,e)),b=O.next().value;O=O.next().value;e=e?v==null?void 0:v.sponsorsOnlyFirstTimeLongText:v==null?void 0:v.sponsorsOnlyFirstTimeShortText;var Y=[];d&&S&&Y.push(S);!d&&O||!b||Y.push(b);v=[].concat(_.t7(Y),[e,v==null?void 0:v.stationName,v==null?void 0:v.rating,v?RuY(v):void 0,v==null?void 0:v.upNextProgramText,v==null?void 0:v.superTitleLink]).filter(function(q){return!!q});
d={runs:[]};for(S=0;S<v.length;S++)d.runs.push.apply(d.runs,_.t7(f0T(v[S],E))),S<v.length-1&&d.runs.push({text:" "+T+" ",bold:E});return d};
CM6=function(v){if(v)return{runs:[{text:v,bold:!0}]}};
XcT=function(v){return v.filter(function(e){return!_.L(e,_.M5)})};
zu6=function(v){var e,d,E,T;if(v=v==null?void 0:(e=v.contents)==null?void 0:(d=e.twoColumnWatchNextResults)==null?void 0:(E=d.results)==null?void 0:(T=E.results)==null?void 0:T.contents){var S,O;return(O=(S=v.find(function(b){return!!b.videoPrimaryInfoRenderer}))==null?void 0:S.videoPrimaryInfoRenderer)==null?void 0:O.updatedMetadataEndpoint}};
l0a=function(v,e){var d;return(d=v.sourceConfigs)==null?void 0:d.find(function(E){return E.videoId===e})};
Jm=function(v){return v==="End of video"||v==="End of playlist"};
H7k=function(v){var e,d,E,T;return(e=v.getWatchNextResponse())==null?void 0:(d=e.contents)==null?void 0:(E=d.twoColumnWatchNextResults)==null?void 0:(T=E.playlist)==null?void 0:T.playlist};
AeY=function(v){var e,d,E,T,S,O;return(e=H7k(v))==null?void 0:(d=e.playlistButtons)==null?void 0:(E=d.menuRenderer)==null?void 0:(T=E.topLevelButtons)==null?void 0:(S=T[0])==null?void 0:(O=S.playlistLoopButtonRenderer)==null?void 0:O.playlistLoopStateEntityKey};
Z7m=function(v){var e=_.dk().resolve(_.zJ),d;return(e=(d=_.L(e.getAutoplayEndpoint(),_.p2))==null?void 0:d.playlistId)&&e===v};
FgD=function(v,e,d,E,T){function S(){_.RM.cancelJob(Gb);var O=ceD(e,d/v.getPlaybackRate()),b=O.hours,Y=O.minutes;O=(O.seconds*1E3||6E4)/v.getPlaybackRate();v.setVideoTimeLeft(wc$(b,Y));E&&v.getPlayerState()!==0&&v.setSleepTimerTimeLeft(wc$(b,Y,!0));(b>0||Y>0)&&!T&&(Gb=_.JX(_.RM,S,O))}
_.RM.cancelJob(Gb);Gb=_.JX(_.RM,S)};
QEJ=function(v,e,d){function E(){_.RM.cancelJob(M8);var T=ceD(e,d),S=T.hours;T=T.minutes;var O=6E4/v.getPlaybackRate();if(S>0||T>0)v.setSleepTimerTimeLeft(wc$(S,T,!0)),M8=_.JX(_.RM,E,O)}
_.RM.cancelJob(M8);M8=_.JX(_.RM,E)};
gIm=function(v,e){var d=v.getVolume()/(e/500),E=function(T){_.RM.cancelJob(tm);var S=Math.floor(T-d);v.setVolume(S,!1);S>0&&(tm=_.JX(_.RM,function(){E(S)},500))};
_.RM.cancelJob(tm);tm=_.JX(_.RM,function(){E(v.getVolume())})};
uJu=function(v,e){_.RM.cancelJob(tm);e&&v.syncVolume()};
nIm=function(){var v={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.sz("SLEEP_TIMER_DISRUPTED")}}}}};_.dk().resolve(_.EI).resolveCommand(v)};
Di6=function(v){return(v.getDuration()-v.getProgressState().current)*1E3};
ceD=function(v,e){v=v+e-(0,_.E$)();if(v<=0)return{hours:0,minutes:0,seconds:0};var d=new UiJ(0,0,0,0,0,0,v);v=d.getHours();e=d.getMinutes();d=d.getSeconds();d!==0&&e++;e!==0&&e%60===0&&(v++,e=0);return{hours:v,minutes:e,seconds:d}};
wc$=function(v,e,d){return v>0&&e>0?d?_.sz("TIME_LEFT_HOURS_MINUTES",{hours:v.toString(),minutes:e.toString()}):_.sz("TIME_HOURS_MINUTES",{hours:v.toString(),minutes:e.toString()}):v>0?d?_.Ng("TIME_LEFT_HOURS",v):_.Ng("TIME_HOURS",v):d?_.sz("TIME_LEFT_MINUTES",{minutes:e.toString()}):_.sz("TIME_MINUTES",{minutes:e.toString()})};
pcu=function(v,e){if(v.timelyActions)return v.timelyActions.find(function(d){var E;return((E=_.L(d,fh))==null?void 0:E.cueRangeId)===e})};
vsk=function(v){var e=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.E3(v);v.keyMap_.forEach(function(d,E){_.lL(e,E)||this.remove(E)},v)};
eum.componentType=_.N4;e_J=function(v,e){v.reloadContinuationItemsCommandMatcher=e};
_.Rh=function(v,e){v.insertBefore(e,v.childNodes[0]||null)};
d1m=function(v){if(v>=48&&v<=57||v>=96&&v<=106||v>=65&&v<=90||_.WM&&v==0)return!0;switch(v){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 _.S1;default:return!1}};
Es$=function(v){if(v.altKey&&!v.ctrlKey||v.metaKey||v.keyCode>=112&&v.keyCode<=123)return!1;if(d1m(v.keyCode))return!0;switch(v.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!_.S1;default:return v.keyCode<166||v.keyCode>183}};
UiJ=function(v,e,d,E,T,S,O){this.date=typeof v==="number"?new Date(v,e||0,d||1,E||0,T||0,S||0,O||0):new Date(v&&v.getTime?v.getTime():_.pO())};
_.vM(UiJ,_.sY);_.W=UiJ.prototype;_.W.getHours=function(){return this.date.getHours()};
_.W.getMinutes=function(){return this.date.getMinutes()};
_.W.getSeconds=function(){return this.date.getSeconds()};
_.W.getMilliseconds=function(){return this.date.getMilliseconds()};
_.W.getUTCDay=function(){return this.date.getUTCDay()};
_.W.getUTCHours=function(){return this.date.getUTCHours()};
_.W.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.W.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.W.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.W.setHours=function(v){this.date.setHours(v)};
_.W.setMinutes=function(v){this.date.setMinutes(v)};
_.W.setSeconds=function(v){this.date.setSeconds(v)};
_.W.setMilliseconds=function(v){this.date.setMilliseconds(v)};
_.W.setUTCHours=function(v){this.date.setUTCHours(v)};
_.W.setUTCMinutes=function(v){this.date.setUTCMinutes(v)};
_.W.setUTCSeconds=function(v){this.date.setUTCSeconds(v)};
_.W.setUTCMilliseconds=function(v){this.date.setUTCMilliseconds(v)};
_.W.add=function(v){_.sY.prototype.add.call(this,v);v.hours&&this.setUTCHours(this.date.getUTCHours()+v.hours);v.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+v.minutes);v.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+v.seconds)};
_.W.JSC$11310_toIsoString=function(v){var e=_.sY.prototype.JSC$11310_toIsoString.call(this,v);return v?e+"T"+_.UU(this.getHours(),2)+":"+_.UU(this.getMinutes(),2)+":"+_.UU(this.getSeconds(),2):e+"T"+_.UU(this.getHours(),2)+_.UU(this.getMinutes(),2)+_.UU(this.getSeconds(),2)};
_.W.equals=function(v){return this.getTime()==v.getTime()};
_.W.toString=function(){return this.JSC$11310_toIsoString()};
_.W.clone=function(){var v=new UiJ(this.date);v.firstDayOfWeek_=this.firstDayOfWeek_;v.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return v};
_.T9J=function(v){return _.Oo({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:v}})};
miB={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};Sia=new _.gG("imageTileRenderer");var WfV=new _.gG("adGridCardCollectionViewModel");var awV=new _.gG("carouselTitleViewModel");var i96=new _.gG("ctaCarouselItemViewModel");var O9k=new _.gG("textFieldViewModel");_.Iw6=new _.gG("engagementPanelHeaderShowNavigationButtonCommand");var b9m=new _.gG("hideEngagementPanelScrimAction");var Yik=new _.gG("setActivePanelItemAction");var m1m=new _.gG("showEngagementPanelScrimAction");var yiY=new _.gG("updateEngagementPanelAction");var qi6=new _.gG("updateSearchInVideoResultsAction");var riD=new _.gG("transcriptCueGroupRenderer");var h_6=new _.gG("transcriptCueRenderer");var KfT=new _.gG("transcriptFooterRenderer");var $1$=new _.gG("engagementPanelAdSubtitleRenderer");var jCa=new _.gG("videoDescriptionFantasySectionViewModel");var sCa=new _.gG("deleteClipEngagementPanelCommand");var N9$=new _.gG("loopCommand");var kQJ=new _.gG("changeCreatorEndscreenVisibilityCommand");var Lf6=new _.gG("liveChatCallForQuestionsRenderer");var Vs$=new _.gG("updateTimedMarkersSyncObserverCommand");var fh=new _.gG("timelyActionViewModel");var osr=new _.gG("timelyActionsOverlayViewModel");var Ji$=new _.gG("repeatChapterCommand");var GQD=new _.gG("watchPlayerOverflowMenuCommand");var Ms$=new _.gG("compositeVideoOverlayRenderer");var tsT=new _.gG("sortFilterSubMenuRenderer");var fwk=new _.gG("switchListItemViewModel");var R_T=new _.gG("inputComposerViewModel");var PSm=new _.gG("transcriptEditSegmentCommand");var x1m=new _.gG("transcriptUpdateSegmentTextCommand");var B9D=new _.gG("transcriptSearchBoxRenderer");var CSk=new _.gG("transcriptSegmentListRenderer");var XOD=new _.gG("transcriptSegmentRenderer");_.z_Y=new _.gG("updateDateTextAction");var lw$=new _.gG("updateTitleAction");var H9$=new _.gG("updateViewershipAction");var Aiu=new _.gG("carouselLockupRenderer");var Po=new _.gG("expandableVideoDescriptionBodyRenderer");var Z9V=new _.gG("videoDescriptionHeaderRenderer");var cim=new _.gG("videoDescriptionYouchatSectionViewModel");_.xV=_.Wi("kevlar_watch_page_horizontal_margin",24);_.wO$=_.Wi("kevlar_watch_page_columns_top_padding",24);_.Ff$=426+_.xV*2;_.Bo=_.Wi("kevlar_watch_two_column_width_threshold",1E3);_.QCf=_.xV*2;_.gsV=_.Wi("kevlar_watch_secondary_width",402);_.utm=_.Wi("kevlar_watch_max_player_width",1280);_.nsD=_.Wi("kevlar_watch_flexy_metadata_height",136);_.D1Y=_.QCf+310+_.xV;_.U1f=_.QCf+360+_.xV;var pOf={PAUSE_CHAT:18};var vmr;var eTa;var Ch=function(){return _.P.apply(this,arguments)||this};
_.V(Ch,_.P);Ch.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Ch.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var v=_.L(this.data.button,_.lx);v&&(v.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.vP.Object.defineProperties(Ch,{template:{configurable:!0,enumerable:!0,get:function(){if(eTa===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;vmr===void 0&&(vmr=document.createElement("template"));var E=vmr;d.call(e,E.content.cloneNode(!0),v.content.firstChild);eTa=v}v=eTa;return v}}});
_.c([_.M(_.Ab),_.w("design:type",Object)],Ch.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f({selectorArgs:["data.enabledEntityKey"],selector:Tnf,observer:"onEnabledChange"}),_.w("design:type",Boolean)],Ch.prototype,"enabled",void 0);_.c([_.f(),_.w("design:type",Object)],Ch.prototype,"data",void 0);_.c([_.lh({is:"yt-disableable-button-view-model",noInjection:!0})],Ch);var dfm;var Em6;var TuB=["transVert01","transVert02","transVert03"],SJ$="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),X7=function(){var v=_.P.apply(this,arguments)||this;v.emojiManager=_.FW;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};v.reactionBuckets=[];v.noEmojiIdentifier="NO_EMOJI";return v};
_.V(X7,_.P);_.W=X7.prototype;_.W.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.W.desktopFountainEmojiSizePxChanged=function(){_.qr(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.W.createUserReactionAnimation=function(v){this.createEmojiAnimation(v,!0)};
_.W.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var v;((v=this.data)==null?0:v.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Lv("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.t7(this.emojiContainer.children)).forEach(function(e){e.remove()})};
_.W.detached=function(){this.cleanupFountain()};
_.W.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var v;this.reactionBuckets=_.f0.unsafeClone((v=this.emojiFountainData)==null?void 0:v.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.W.processEmojiBucket=function(v){var e=this;if(this.reactionBuckets&&!(v>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var d=this.reactionBuckets[v];this.generateEmojiAnimations(d);if(v<this.reactionBuckets.length-1){var E;if(d==null?0:(E=d.duration)==null?0:E.seconds)this.emojiBucketTimerId=setTimeout(function(){e.processEmojiBucket(v+1)},Number(d.duration.seconds)*1E3)}}};
_.W.generateEmojiAnimations=function(v){var e=this,d=this.getRandomEmojiIdFromBucketWithOverride(v);if(d&&d!==this.noEmojiIdentifier){var E=0;v.targetEps?(E=this.linearInterpolateBounded(1,20,100,12,v.emojiSizeIndex||0),this.createEmojiAnimation(d,!1,v.emojiAnimationMs,E),E=this.getEmojiDelayMsFromTargetEps(v.targetEps)):(this.createEmojiAnimation(d),E=this.getEmojiDelayMsFromDistribution(v.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){e.generateEmojiAnimations(v)},E)}};
_.W.getRandomEmojiIdFromBucketWithOverride=function(v){if(!(v&&v.reactionsData&&v.reactionsData.length&&v.totalReactions))return this.noEmojiIdentifier;for(var e=v.totalReactions,d=1,E=_.a(v.reactionsData),T=E.next();!T.done;T=E.next())T=T.value,(T.reactionWeightOverride||T.reactionWeightOverride===0)&&T.reactionCount&&(e-=T.reactionCount,d-=T.reactionWeightOverride);E=!0;d<0&&(E=!1,e=v.totalReactions,d=1);if(E&&d>0&&e===0)if(d===1){T=0;for(var S=_.a(v.reactionsData),O=S.next();!O.done;O=S.next())O=
O.value,O.reactionCount&&O.reactionCount>0&&T++;T=1/T;S=_.a(v.reactionsData);for(O=S.next();!O.done;O=S.next())O.value.reactionWeightOverride=T}else for(T=1/(1-d),S=_.a(v.reactionsData),O=S.next();!O.done;O=S.next())O=O.value,O.reactionWeightOverride&&(O.reactionWeightOverride*=T);T=Math.random();S=0;O=_.a(v.reactionsData);for(var b=O.next();!b.done;b=O.next())if(b=b.value,b.reactionCount&&(S=(b.reactionWeightOverride||b.reactionWeightOverride===0)&&E?S+b.reactionWeightOverride:S+d*b.reactionCount/
e,S>T&&(b.reactionCount--,v.totalReactions--,b=this.reactionItemToEmojiString(b),b!==this.noEmojiIdentifier)))return b;return this.noEmojiIdentifier};
_.W.reactionItemToEmojiString=function(v){if(v.unicodeEmojiId)return v.unicodeEmojiId;if(v.emoteId)return v.emoteId;if(v.videoReactionType)switch(v.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.W.createEmojiAnimation=function(v,e,d,E){e=e===void 0?!1:e;this.lastEmojiRequestedForTesting=v;var T=v.startsWith("yt-icons:"),S=_.ch(this.emojiManager,v);if(S||T){var O=document.createElement("emoji");O.classList.add("yt-emoji-fountain-view-model");O.classList.add(TuB[Math.floor(Math.random()*TuB.length)]);var b=document.createElement("div");b.classList.add("yt-emoji-fountain-view-model");b.classList.add("horizontal-container");b.classList.add(SJ$[Math.floor(Math.random()*SJ$.length)]);e?(d=document.createElement("div"),
d.classList.add("user-reaction-bubble"),d.classList.add("yt-emoji-fountain-view-model"),b.appendChild(d)):(d&&(O.style.animationDuration=d+"ms",b.style.animationDuration=d+"ms"),E&&(O.style.width=E+"px",O.style.height=E+"px"));T?(T=document.createElement("yt-icon"),T.polymerController.icon=v,E&&(T.style.width=E+"px",T.style.height=E+"px"),v=T):v=this.emojiManager.createEmoji(S,!1);v.classList.add("yt-emoji-fountain-view-model");b.appendChild(v);O.appendChild(b);this.emojiContainer.appendChild(O);
O.addEventListener("animationend",function(){O.remove()});
var Y,q;if((Y=this.data)==null?0:(q=Y.loggingDirectives)==null?0:q.trackingParams)e=e?_.bH(183501):_.bH(183500),S6m(this.data.loggingDirectives.trackingParams,e),_.k_s(e);setTimeout(function(){O&&O.remove()},2E3)}};
_.W.getEmojiDelayMsFromDistribution=function(v){return Math.random()*(v||1)*1E3};
_.W.getEmojiDelayMsFromTargetEps=function(v){return Math.random()*2*(1/v)*1E3};
_.W.linearInterpolateBounded=function(v,e,d,E,T){T=Math.min(Math.max(T,v),d);return(e*(d-T)+E*(T-v))/(d-v)};
X7.prototype.onEmojiFountainDataEntityUpdate=X7.prototype.onEmojiFountainDataEntityUpdate;X7.prototype.desktopFountainEmojiSizePxChanged=X7.prototype.desktopFountainEmojiSizePxChanged;X7.prototype.isActiveChanged=X7.prototype.isActiveChanged;_.c([_.f(),_.w("design:type",_.Zb)],X7.prototype,"emojiManager",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],X7.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],X7.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],X7.prototype,"data",void 0);_.c([_.f({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(v,e){return _.h_(v.entities,"emojiFountainDataEntity",e)}}),
_.w("design:type",Object)],X7.prototype,"emojiFountainData",void 0);_.c([_.f(),_.w("design:type",Boolean)],X7.prototype,"isActive",void 0);_.c([_.$v("isActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],X7.prototype,"isActiveChanged",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],X7.prototype,"isDarkTheme",void 0);_.c([_.f(),_.w("design:type",String)],X7.prototype,"lastEmojiRequestedForTesting",void 0);
_.c([_.f({value:function(){return _.Wi("desktop_fountain_emoji_size_px",20)}}),
_.w("design:type",Number)],X7.prototype,"desktopFountainEmojiSizePx",void 0);_.c([_.$v("desktopFountainEmojiSizePx"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],X7.prototype,"desktopFountainEmojiSizePxChanged",null);_.c([_.sg("#emoji-container"),_.w("design:type",HTMLElement)],X7.prototype,"emojiContainer",void 0);
_.c([_.$v("emojiFountainData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],X7.prototype,"onEmojiFountainDataEntityUpdate",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],X7);
_.A(X7,"yt-emoji-fountain-view-model",function(){if(Em6===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;dfm===void 0&&(dfm=document.createElement("template"));var E=dfm;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Em6=v}v=Em6;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var WVu;var aBV;var zb=function(){return _.P.apply(this,arguments)||this};
_.V(zb,_.P);zb.prototype.onChoiceChanged=function(){this.data&&_.qr(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
zb.prototype.onChoiceChanged=zb.prototype.onChoiceChanged;_.c([_.f(),_.w("design:type",Object)],zb.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zb.prototype,"onChoiceChanged",null);_.c([_.z({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],zb);
_.A(zb,"yt-live-chat-banner-poll-choice",function(){if(aBV===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;WVu===void 0&&(WVu=document.createElement("template"));var E=WVu;d.call(e,E.content.cloneNode(!0),v.content.firstChild);aBV=v}v=aBV;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var iY$;var OYk;var lb=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("web_button_rework_with_live");v.small=!1;return v};
_.V(lb,_.P);lb.prototype.computeIsSmall=function(){var v;return((v=this.buttonOverrides)==null?void 0:v.size)==="S"};
lb.prototype.computeId=function(){return this.data&&this.data.targetId};
_.c([_.M(_.Zh.YtLiveChatTooltipTargetingBehavior),_.w("design:type",Object)],lb.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.f({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.w("design:type",String)],lb.prototype,"id",void 0);_.c([_.f(),_.w("design:type",Object)],lb.prototype,"buttonOverrides",void 0);_.c([_.f(),_.w("design:type",Object)],lb.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],lb.prototype,"modern",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.w("design:type",Object)],lb.prototype,"small",void 0);_.c([_.z({disableElementRegistration:!0,is:"yt-live-chat-button"})],lb);
_.A(lb,"yt-live-chat-button",function(){if(OYk===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;iY$===void 0&&(iY$=document.createElement("template"));var E=iY$;d.call(e,E.content.cloneNode(!0),v.content.firstChild);OYk=v}v=OYk;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var IBf;var bYu;var Ho=function(){var v=_.P.apply(this,arguments)||this;v.inCollapsedBanner=!1;v.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};v.questionButtonOverrides={style:"mono",type:"filled"};return v};
_.V(Ho,_.P);_.W=Ho.prototype;_.W.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]]"}}}}}};
_.W.onContextMenuButtonClick=function(v){this.ytLiveChatItemBehavior.showContextMenu(v)};
_.W.onYtRendererstamperFinished=function(){this.menuButton=_.IB(this.hostElement).querySelector("#menu-button")};
_.W.dataChanged=function(){var v,e;if((e=_.L((v=this.data)==null?void 0:v.overflowMenuButton,_.BD))==null?0:e.command)this.data.contextMenuEndpoint=_.L(this.data.overflowMenuButton,_.BD).command};
_.W.onButtonClick=function(){var v,e=_.L((v=this.data)==null?void 0:v.askQuestionButton,_.BD);if(e){if(e.trackingParams&&(v=_.Jg(e.trackingParams))){var d=_.zz();d&&_.Uz(d,v)}_.Iq(this.hostElement,"innertube-command",e.command)}};
Ho.prototype.onYtRendererstamperFinished=Ho.prototype.onYtRendererstamperFinished;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],Ho.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],Ho.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.f({observer:"dataChanged"}),_.w("design:type",Object)],Ho.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ho.prototype,"inCollapsedBanner",void 0);_.c([_.f(),_.w("design:type",Object)],Ho.prototype,"buttonOverrides",void 0);_.c([_.f(),_.w("design:type",Object)],Ho.prototype,"questionButtonOverrides",void 0);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ho.prototype,"onYtRendererstamperFinished",null);
_.c([_.z({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Ho);
_.A(Ho,"yt-live-chat-call-for-questions-renderer",function(){if(bYu===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;IBf===void 0&&(IBf=document.createElement("template"));var E=IBf;d.call(e,E.content.cloneNode(!0),v.content.firstChild);bYu=v}v=bYu;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var YJD={};YJD.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 v=this;window.requestAnimationFrame(function(){v.restoreFocusNode_||(v.restoreFocusNode_=document.activeElement);var e=_.A10(v.hostElement);e.length&&e[e.length-1].focus()})},
isAttachedChanged_:function(v,e){v?this.focusChild_():e&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(v){this.hidden||_.vg(v).indexOf(this.hostElement)!==-1||(v.stopPropagation(),this.focusChild_())}};var mfV;var yra;var Am=function(){return _.P.apply(this,arguments)||this};
_.V(Am,_.P);Am.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Am.prototype.onClick=function(v){v.target!==this.confirmButton&&v.target!==this.cancelButton&&(this.hidden=!0)};
_.c([_.sg("#confirm_button"),_.w("design:type",Object)],Am.prototype,"confirmButton",void 0);_.c([_.sg("#cancel_button"),_.w("design:type",Object)],Am.prototype,"cancelButton",void 0);_.c([_.f(),_.w("design:type",qJm)],Am.prototype,"data",void 0);_.c([_.f({value:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],Am.prototype,"hidden",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(YJD.YtLiveChatDialogBehavior),_.w("design:type",Object)],Am.prototype,"ytLiveChatDialogBehavior",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Am);
var qJm=_.A(Am,"yt-live-chat-dialog-renderer",function(){if(yra===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;mfV===void 0&&(mfV=document.createElement("template"));var E=mfV;d.call(e,E.content.cloneNode(!0),v.content.firstChild);yra=v}v=yra;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var rr$;var hTV,KVk=function(){if(hTV!==void 0)return hTV;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;rr$===void 0&&(rr$=document.createElement("template"));var E=rr$;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return hTV=v};var $fr;var j$6;var ZN=function(){var v=_.P.apply(this,arguments)||this;v.tooltip=null;v.data=null;v.id="";v.active=!1;v.icon="";v.disabled=!1;v.showTooltip=!1;v.useToggledActiveState=!0;v.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return v};
_.V(ZN,_.P);_.W=ZN.prototype;
_.W.dataChanged=function(){var v;((v=this.data)==null?0:v.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,_.y1)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var e;if((e=this.data)==null?0:e.disabled)this.disabled=!0};
_.W.computeId=function(v){return v};
_.W.computeIcon=function(v,e){if(!v)return"";if(this.useToggledActiveState)return"yt-icons:"+v.toLowerCase();var d,E;return e&&((d=this.data)==null?0:(E=d.toggledIcon)==null?0:E.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+v.toLowerCase()};
_.W.logPDGEntryPoint=function(){_.qCH(_.hk("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")};
_.W.immediatelyShowTooltip=function(){var v=_.IB(this.hostElement).querySelector("#tooltip");v.animationDelay=0;v.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};v.show()};
_.W.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.W.onClick=function(v){var e;((e=this.data)==null?0:e.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),v.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Iq(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.W.computeShowTooltip=function(v,e){return!!(v&&v.tooltip&&e)};
_.W.maybeUpdateTooltipText=function(){var v=this,e;if((e=this.data)==null?0:e.tooltip){var d=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.y1)(v.tooltip).textContent=d},250)}};
_.W.handleLiveChatActions=function(v){var e=this;v.length&&(this.id!=="creator"&&this.id!=="product-picker"||v.forEach(function(d){(d=e.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",d))&&d.durationSec===d.fullDurationSec&&e.startBubble(e.colorFromDecimal(d.startBackgroundColor))}))};
_.W.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.W.startBubble=function(v){_.qr(this.hostElement,{"--yt-live-chat-monetization-button-glow":v});this.hostElement.setAttribute("bubble","")};
_.W.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.W.colorFromDecimal=function(v){typeof v==="string"&&(v=Number(v));return"rgba("+[v>>16&255,v>>8&255,v&255,(v>>24&255)/255].join()+")"};
ZN.prototype.onAnimationEnd=ZN.prototype.onAnimationEnd;ZN.prototype.disabledChanged=ZN.prototype.disabledChanged;ZN.prototype.dataChanged=ZN.prototype.dataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],ZN.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.Zh.YtLiveChatTooltipTargetingBehavior),_.w("design:type",Object)],ZN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ZN.prototype,"data",void 0);_.c([_.f({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.w("design:type",Object)],ZN.prototype,"id",void 0);_.c([_.f({notify:!0,reflectToAttribute:!0}),_.w("design:type",Object)],ZN.prototype,"active",void 0);
_.c([_.f({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.w("design:type",Object)],ZN.prototype,"icon",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ZN.prototype,"disabled",void 0);_.c([_.f({computed:"computeShowTooltip(data, disabled)"}),_.w("design:type",Object)],ZN.prototype,"showTooltip",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ZN.prototype,"useToggledActiveState",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZN.prototype,"dataChanged",null);_.c([_.$v("disabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZN.prototype,"disabledChanged",null);_.c([_.Kq("animationend"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],ZN.prototype,"onAnimationEnd",null);
_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],ZN);
_.A(ZN,"yt-live-chat-icon-toggle-button-renderer",function(){if(j$6===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;$fr===void 0&&($fr=document.createElement("template"));var E=$fr;d.call(e,E.content.cloneNode(!0),v.content.firstChild);j$6=v}v=j$6;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var s$m;var Nu$;var co=function(){return _.P.apply(this,arguments)||this};
_.V(co,_.P);co.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.c([_.f(),_.w("design:type",Object)],co.prototype,"data",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.c([_.z({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],co);
_.A(co,"yt-live-chat-message-input-prompt-header-renderer",function(){if(Nu$===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;s$m===void 0&&(s$m=document.createElement("template"));var E=s$m;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Nu$=v}v=Nu$;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var kDf;var LVa;var VmY;var omT;var JrJ;var GDD;var Mm$=function(){return _.P.apply(this,arguments)||this};
_.V(Mm$,_.P);_.c([_.f(),_.w("design:type",Object)],Mm$.prototype,"data",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],Mm$);
_.A(Mm$,"yt-live-chat-message-subtext-renderer",function(){if(GDD===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;JrJ===void 0&&(JrJ=document.createElement("template"));var E=JrJ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);GDD=v}v=GDD;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var wc=function(){var v=_.P.apply(this,arguments)||this;v.subtextOnBottom=!1;v.buttonOverrides={style:"mono",type:"tonal"};return v};
_.V(wc,_.P);wc.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],wc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wc.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wc.prototype,"subtextOnBottom",void 0);_.c([_.f(),_.w("design:type",Object)],wc.prototype,"buttonOverrides",void 0);
_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],wc);
_.A(wc,"yt-live-chat-message-renderer",function(){if(omT===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;VmY===void 0&&(VmY=document.createElement("template"));var E=VmY;d.call(e,E.content.cloneNode(!0),v.content.firstChild);omT=v}v=omT;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var tmT;var fBm;var F7=function(){var v=_.P.apply(this,arguments)||this;v.isRemovable=!1;v.hasPrefilledText=!1;v.isInputDirty=!1;v.overCharacterLimit=!1;v.underCharacterLimit=!1;v.showErrorMessage=!1;return v};
_.V(F7,_.P);_.W=F7.prototype;_.W.computeId=function(){return this.data.id};
_.W.computeInputData=function(){return this.data.inputData};
_.W.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.W.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.W.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.W.getLiveChatRichMessageInput=function(){return _.IB(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.W.clearInput=function(){_.IB(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.W.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.W.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.W.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.W.handleTextInputCharCountChanged=function(v){v=v.detail&&v.detail.characterCount;v!==void 0&&(this.characterCount=v,v!==0&&(this.isInputDirty=!0))};
_.W.onInputFocusOut=function(){this.isInputDirty=!0};
_.W.onClickCloseButton=function(){_.Iq(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
F7.prototype.handleTextInputCharCountChanged=F7.prototype.handleTextInputCharCountChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],F7.prototype,"data",void 0);_.c([_.f({computed:"computeId(data.id)"}),_.w("design:type",String)],F7.prototype,"id",void 0);_.c([_.f({computed:"computeInputData(data.inputData)"}),_.w("design:type",Object)],F7.prototype,"inputData",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.w("design:type",Object)],F7.prototype,"isRemovable",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.w("design:type",Object)],F7.prototype,"hasPrefilledText",void 0);_.c([_.f({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.w("design:type",Number)],F7.prototype,"charactersRemaining",void 0);
_.c([_.f(),_.w("design:type",Number)],F7.prototype,"characterCount",void 0);_.c([_.f(),_.w("design:type",Object)],F7.prototype,"isInputDirty",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.w("design:type",Object)],F7.prototype,"overCharacterLimit",void 0);_.c([_.f({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.w("design:type",Object)],F7.prototype,"underCharacterLimit",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.w("design:type",Object)],F7.prototype,"showErrorMessage",void 0);_.c([_.Kq("yt-live-chat-text-input-field-renderer-character-count-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],F7.prototype,"handleTextInputCharCountChanged",null);
_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],F7);
_.A(F7,"yt-live-chat-poll-editor-input",function(){if(fBm===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;tmT===void 0&&(tmT=document.createElement("template"));var E=tmT;d.call(e,E.content.cloneNode(!0),v.content.firstChild);fBm=v}v=fBm;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var RTa;var P6V;var xfV={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},QC=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("web_button_rework_with_live");v.closeButtonOverrides={iconPosition:"icon-only"};v.startButtonOverrides={style:"mono",type:"filled"};v.addOptionButtonOverrides={style:"mono",type:"text"};return v};
_.V(QC,_.P);_.W=QC.prototype;
_.W.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"}}}}};
_.W.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var v;_.L((v=this.data)==null?void 0:v.startButton,_.BD)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.W.computeId=function(){return this.data&&this.data.id||""};
_.W.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.W.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.W.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.W.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.W.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var v=0;v<this.pollEditorInfoWithDefaults.minPollOptions;v++)this.addPollOptionData()};
_.W.getIsValidPoll=function(){var v=this;if(!this.pollEditorInfoWithDefaults)return!1;var e=this.pollEditorInfoWithDefaults,d=e.minPollOptionChars,E=e.maxPollOptionChars,T=e.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>e.maxPollQuestionChars)return!1;e=_.IB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(e).every(function(S,O){S=S.characterCount;!S&&T[O]&&(S=v.ytRendererBehavior.getSimpleString(T[O]).length);return S!==void 0&&S>=d&&S<=E})};
_.W.isValidPollChanged=function(){var v;_.L((v=this.data)==null?void 0:v.startButton,_.BD)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.W.addPollOptionData=function(){var v=this.pollEditorInfoWithDefaults,e=v.maxPollOptionChars,d=v.optionPlaceholderText,E=v.customOptionPlaceholderText,T=v.pollOptionData;this.currentNumPollOptions>=v.maxPollOptions||(v={liveChatPollOptionInput:{inputData:{placeholder:E[this.currentNumPollOptions]||d,maxCharacterLimit:e},maxCharacterLimit:e,minCharacterLimit:v.minPollOptionChars,hasPrefilledText:!!E[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=v.minPollOptions}},T.charCountErrorText&&
(v.liveChatPollOptionInput.charCountErrorText=T.charCountErrorText),T.charsRemainingAltLabel&&(v.liveChatPollOptionInput.charsRemainingAltLabel=T.charsRemainingAltLabel),T.removeOptionAltText&&(v.liveChatPollOptionInput.removeOptionAltText=T.removeOptionAltText),this.push("pollOptionsData",v),T=Array.from(_.IB(_.IB(this.hostElement).querySelector("#poll-options")).children),T.forEach(function(S,O){S.polymerController.set("data.id",O)}),_.IB(T[T.length-1]).querySelector("#input").focus())};
_.W.getPollOptionInputValues=function(){var v=this,e=[],d=_.IB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),E=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(d).forEach(function(T,S){var O=null;T=T.getLiveChatRichMessageInput();var b;(T==null?0:(b=T.textSegments)==null?0:b.length)?O=_.A8(T):E[S]&&(O=v.formattedStringToLiveChatRichMessageInput(E[S]));e.push(O)});
return e};
_.W.requestCreateAndStartPoll=function(v){var e=this.getPollOptionInputValues();if(!e.some(function(E){return!E})){e={optionText:e};
var d=_.IB(_.IB(this.hostElement).querySelector("#poll-question")).firstChild;d&&d.liveChatRichMessageInput&&(e.questionText=_.A8(d.liveChatRichMessageInput));_.mN(this.hostElement,[v,e])}};
_.W.selectedChanged=function(){if(this.selected){var v=_.IB(_.IB(this.hostElement).querySelector("#start-button")).firstElementChild;if(v){var e;(e=_.IB(v).querySelector("#button")||_.bh(v).querySelector("button"))==null||e.focus()}}};
_.W.handleTextInputChanged=function(v){var e;((e=v.target)==null?void 0:e.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=v.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.W.handleStartButtonAction=function(v){v.detail.actionName==="yt-service-request"&&(v.stopPropagation(),(v=v.detail.args[1])&&this.requestCreateAndStartPoll(v))};
_.W.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.W.handleServiceRequestCompleted=function(v){this.createPollRequestInFlight=!1;(v=v.detail&&v.detail.data)&&v.success&&(_.Iq(this.hostElement,"picker-cancelled"),_.b4(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.W.onCloseClick=function(){_.Iq(this.hostElement,"picker-cancelled");_.b4(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.W.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.W.handlePollEditorInputClosed=function(v){var e=this.pollOptionsData.findIndex(function(d){return d.liveChatPollOptionInput.id===v.detail.id});
this.splice("pollOptionsData",e,1);this.isValidPoll=this.getIsValidPoll()};
_.W.onPickerCancelled=function(){this.reset()};
_.W.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var v=_.IB(_.IB(this.hostElement).querySelector("#poll-question")).firstChild;v&&v.setLiveChatRichMessageInput(null);if(v=_.IB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){v=_.a(Array.from(v));for(var e=v.next();!e.done;e=v.next())e.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.W.formattedStringToLiveChatRichMessageInput=function(v){return v.simpleText?{text_segments:[v.simpleText]}:{text_segments:v.runs}};
_.vP.Object.defineProperties(QC.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(xfV,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
QC.prototype.onPickerCancelled=QC.prototype.onPickerCancelled;QC.prototype.handlePollEditorInputClosed=QC.prototype.handlePollEditorInputClosed;QC.prototype.handleServiceRequestCompleted=QC.prototype.handleServiceRequestCompleted;QC.prototype.handleServiceRequestSent=QC.prototype.handleServiceRequestSent;QC.prototype.handleTextInputChanged=QC.prototype.handleTextInputChanged;QC.prototype.selectedChanged=QC.prototype.selectedChanged;QC.prototype.isValidPollChanged=QC.prototype.isValidPollChanged;
QC.prototype.shouldInitializePollChanged=QC.prototype.shouldInitializePollChanged;QC.prototype.dataChanged=QC.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],QC.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],QC.prototype,"modern",void 0);
_.c([_.f(),_.w("design:type",Object)],QC.prototype,"closeButtonOverrides",void 0);_.c([_.f(),_.w("design:type",Object)],QC.prototype,"startButtonOverrides",void 0);_.c([_.f(),_.w("design:type",Object)],QC.prototype,"addOptionButtonOverrides",void 0);_.c([_.f({computed:"computeId(data.id)",reflectToAttribute:!0}),_.w("design:type",String)],QC.prototype,"id",void 0);_.c([_.f({value:function(){return[]}}),
_.w("design:type",Array)],QC.prototype,"pollOptionsData",void 0);_.c([_.t("pollEditorInfoWithDefaults"),_.w("design:type",Object),_.w("design:paramtypes",[])],QC.prototype,"pollQuestionData",null);_.c([_.f({value:0}),_.w("design:type",Number)],QC.prototype,"pollQuestionCharacterCount",void 0);_.c([_.t("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.w("design:type",Object),_.w("design:paramtypes",[])],QC.prototype,"pollQuestionCharactersRemaining",null);
_.c([_.f({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.w("design:type",Boolean)],QC.prototype,"overQuestionCharacterLimit",void 0);_.c([_.t("data.pollEditorInfo"),_.w("design:type",Object),_.w("design:paramtypes",[])],QC.prototype,"pollEditorInfoWithDefaults",null);_.c([_.f({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.w("design:type",Number)],QC.prototype,"currentNumPollOptions",void 0);
_.c([_.f({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.w("design:type",Boolean)],QC.prototype,"hasMaxNumPollOptions",void 0);_.c([_.t("pollEditorInfoWithDefaults","pollOptionsData"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],QC.prototype,"shouldInitializePoll",null);_.c([_.f(),_.w("design:type",Object)],QC.prototype,"isValidPoll",void 0);
_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],QC.prototype,"createPollRequestInFlight",void 0);_.c([_.f(),_.w("design:type",Object)],QC.prototype,"selected",void 0);_.c([_.f({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.w("design:type",Boolean)],QC.prototype,"showQuestionErrorMessage",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QC.prototype,"dataChanged",null);_.c([_.$v("shouldInitializePoll"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QC.prototype,"shouldInitializePollChanged",null);_.c([_.$v("isValidPoll"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QC.prototype,"isValidPollChanged",null);
_.c([_.$v("selected"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QC.prototype,"selectedChanged",null);_.c([_.Kq("yt-live-chat-text-input-field-renderer-character-count-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],QC.prototype,"handleTextInputChanged",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QC.prototype,"handleServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],QC.prototype,"handleServiceRequestCompleted",null);
_.c([_.Kq("yt-live-chat-poll-editor-input-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],QC.prototype,"handlePollEditorInputClosed",null);_.c([_.Kq("picker-cancelled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QC.prototype,"onPickerCancelled",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],QC);
_.A(QC,"yt-live-chat-poll-editor-panel-renderer",function(){if(P6V===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;RTa===void 0&&(RTa=document.createElement("template"));var E=RTa;d.call(e,E.content.cloneNode(!0),v.content.firstChild);P6V=v}v=P6V;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var Buk;var C6m;var ub=function(){return _.P.apply(this,arguments)||this};
_.V(ub,_.P);ub.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
ub.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.vP.Object.defineProperties(ub.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var v,e;return(v=this.data)==null?void 0:(e=v.title)==null?void 0:e.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var v;return _.lk((v=this.data)==null?void 0:v.onTapCommand)}}});
_.c([_.M(_.KR.YtEndpointBehavior),_.w("design:type",Object)],ub.prototype,"ytEndpointBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ub.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ub.prototype,"itemId",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ub.prototype,"hasPromotion",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ub.prototype,"innertubeCommand",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],ub);
_.A(ub,"yt-live-chat-product-picker-panel-item-view-model",function(){if(C6m===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Buk===void 0&&(Buk=document.createElement("template"));var E=Buk;d.call(e,E.content.cloneNode(!0),v.content.firstChild);C6m=v}v=C6m;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var X$m;var zTk;var nh=function(){var v=_.P.apply(this,arguments)||this;v.id="product-picker";v.selected=!1;v.closeButtonId="close-button";v.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return v};
_.V(nh,_.P);_.W=nh.prototype;_.W.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.W.observeSelected=function(){this.selected&&this.hostElement.focus();var v=_.IB(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");v.length&&v[0].focus()};
_.W.onCloseBuyFlow=function(){_.Iq(this.hostElement,"picker-cancelled")};
_.W.onCloseClick=function(){_.Iq(this.hostElement,"picker-cancelled");var v;((v=this.data)==null?0:v.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.L(this.data.closeButton,_.lx))};
_.W.onCloseEngageWithAudienceEditorPanels=function(){_.Iq(this.hostElement,"picker-cancelled")};
nh.prototype.observeSelected=nh.prototype.observeSelected;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],nh.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],nh.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],nh.prototype,"id",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],nh.prototype,"selected",void 0);_.c([_.f(),_.w("design:type",Object)],nh.prototype,"closeButtonId",void 0);_.c([_.$v("selected"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nh.prototype,"observeSelected",null);
_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],nh);
_.A(nh,"yt-live-chat-product-picker-panel-view-model",function(){if(zTk===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;X$m===void 0&&(X$m=document.createElement("template"));var E=X$m;d.call(e,E.content.cloneNode(!0),v.content.firstChild);zTk=v}v=zTk;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var lBu;var HY6;var DN=function(){var v=_.P.apply(this,arguments)||this;v.iconId="";v.icon="";v.disabled=!1;v.systemIcons=_.N("kevlar_system_icons");return v};
_.V(DN,_.P);_.W=DN.prototype;_.W.computeIconId=function(v){return v&&v.icon&&v.icon.iconType?v.icon.iconType.toLowerCase():""};
_.W.computeIcon=function(v){return v&&v.icon&&v.icon.iconType?(v=v.icon.iconType.toLowerCase(),(v.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+v):""};
_.W.computeDisabled=function(v){return!!v};
_.W.computeCommand=function(v,e){return e?void 0:v};
_.W.computeTooltip=function(v,e){return e&&v?v:""};
_.W.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.vP.Object.defineProperties(DN.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var v="",e,d,E;if((e=this.data)==null?0:(d=e.text)==null?0:(E=d.runs)==null?0:E.length)v=this.data.text.runs[0].text||"";else{var T,S;if((T=this.data)==null?0:(S=T.text)==null?0:S.simpleText)v=this.data.text.simpleText}var O,b,Y;if((O=this.data)==null?0:(b=O.subtext)==null?0:(Y=b.runs)==null?0:Y.length)v&&(v+=". "),v+=this.data.subtext.runs[0].text||"";else{var q,r;if((q=this.data)==null?0:(r=q.subtext)==
null?0:r.simpleText)v&&(v+=". "),v+=this.data.subtext.simpleText}return v}}});
_.c([_.M(_.KR.YtEndpointBehavior),_.w("design:type",Object)],DN.prototype,"ytEndpointBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],DN.prototype,"data",void 0);_.c([_.f({computed:"computeIconId(data)",reflectToAttribute:!0}),_.w("design:type",Object)],DN.prototype,"iconId",void 0);
_.c([_.f({computed:"computeIcon(data)",reflectToAttribute:!0}),_.w("design:type",Object)],DN.prototype,"icon",void 0);_.c([_.f({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.w("design:type",Object)],DN.prototype,"disabled",void 0);_.c([_.f({computed:"computeCommand(data.command, disabled)"}),_.w("design:type",Object)],DN.prototype,"command",void 0);_.c([_.f({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.w("design:type",String)],DN.prototype,"tooltip",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DN.prototype,"systemIcons",void 0);_.c([_.t("data.text","data.subtext"),_.f(),_.w("design:type",String),_.w("design:paramtypes",[])],DN.prototype,"ariaLabel",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],DN);
_.A(DN,"yt-live-chat-product-button-renderer",function(){if(HY6===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;lBu===void 0&&(lBu=document.createElement("template"));var E=lBu;d.call(e,E.content.cloneNode(!0),v.content.firstChild);HY6=v}v=HY6;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var ArD;var ZY$;var UO=function(){var v=_.P.apply(this,arguments)||this;v.selected=!1;v.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 v};
_.V(UO,_.P);_.W=UO.prototype;_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.W.computeId=function(v){return v.id||""};
_.W.onCloseClick=function(){_.Iq(this.hostElement,"picker-cancelled")};
_.W.observeSelected=function(){this.selected&&this.hostElement.focus();var v=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");v.length&&v[0].focus()};
_.W.onCloseBuyFlow=function(){_.Iq(this.hostElement,"picker-cancelled")};
_.W.onCloseEngageWithAudienceEditorPanels=function(){_.Iq(this.hostElement,"picker-cancelled")};
UO.prototype.observeSelected=UO.prototype.observeSelected;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],UO.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],UO.prototype,"data",void 0);
_.c([_.f({computed:"computeId(data)",reflectToAttribute:!0}),_.w("design:type",String)],UO.prototype,"id",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],UO.prototype,"selected",void 0);_.c([_.$v("selected"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UO.prototype,"observeSelected",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],UO);
_.A(UO,"yt-live-chat-product-picker-renderer",function(){if(ZY$===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;ArD===void 0&&(ArD=document.createElement("template"));var E=ArD;d.call(e,E.content.cloneNode(!0),v.content.firstChild);ZY$=v}v=ZY$;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var cra;var w$D;var FVm;var Q$m;var ph=function(){return _.P.apply(this,arguments)||this};
_.V(ph,_.P);ph.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()};
ph.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
ph.prototype.created=function(){this.ids={background:_.Aq(),maskOne:_.Aq(),maskTwo:_.Aq(),gradient:_.Aq(),largeBackground:_.Aq(),largeGradientOne:_.Aq(),largeGradientTwo:_.Aq(),largeGradientPath:_.Aq()}};
ph.prototype.maybeLoadAnimationBackground=ph.prototype.maybeLoadAnimationBackground;_.c([_.f({value:!1}),_.w("design:type",Boolean)],ph.prototype,"useLargeBackground",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],ph.prototype,"useAnimationBackground",void 0);_.c([_.f({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.w("design:type",Boolean)],ph.prototype,"useRegularBackground",void 0);
_.c([_.f(),_.w("design:type",Object)],ph.prototype,"ids",void 0);_.c([_.f(),_.w("design:type",Object)],ph.prototype,"lottieAnimation",void 0);_.c([_.sg("#animation-background"),_.w("design:type",HTMLDivElement)],ph.prototype,"animationBackground",void 0);_.c([_.$v("useAnimationBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ph.prototype,"maybeLoadAnimationBackground",null);
_.c([_.lh({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],ph);
_.A(ph,"yt-live-interactivity-component-background",function(){if(Q$m===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;FVm===void 0&&(FVm=document.createElement("template"));var E=FVm;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Q$m=v}v=Q$m;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var vU=function(){var v=_.P.apply(this,arguments)||this;v.characterCount=0;v.showInputErrorMessage=!1;v.startQnaRequestInFlight=!1;v.modern=_.N("web_button_rework_with_live");v.buttonOverrides={style:"mono",type:"filled"};v.closeButtonOverrides={iconPosition:"icon-only"};v.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return v};
_.V(vU,_.P);_.W=vU.prototype;
_.W.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]]"}}}}}};
_.W.onCharacterCountChanged=function(v){var e,d,E,T,S=(d=_.L(this==null?void 0:(e=this.data)==null?void 0:e.creatorCallForQuestions,Lf6))==null?void 0:(E=d.inputField)==null?void 0:(T=E.liveChatTextInputFieldRenderer)==null?void 0:T.maxCharacterLimit,O,b;S!=null&&(v==null?void 0:(O=v.detail)==null?void 0:O.characterCount)!=null&&_.L(this==null?void 0:(b=this.data)==null?void 0:b.startButton,_.BD)&&(e=v.detail.characterCount>S,this.set("data.startButton.buttonRenderer.isDisabled",v.detail.characterCount===
0||e),this.showInputErrorMessage=e)};
_.W.onCloseClick=function(){_.Iq(this.hostElement,"picker-cancelled");_.b4(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.W.onPickerCancelled=function(){var v=_.IB(this.hostElement).querySelector("#qna-creator-text-input-field");v&&v.setLiveChatRichMessageInput(null)};
_.W.handleOpenQnaStartPanel=function(){var v=_.IB(this.hostElement).querySelector("#qna-creator-text-input-field");v&&v.focus()};
_.W.handleStartButtonAction=function(v){var e=this;if(v.detail.actionName==="yt-service-request"&&(v.stopPropagation(),v=v.detail.args[1])){var d=_.IB(this.hostElement).querySelector("#qna-creator-text-input-field"),E;(d==null?0:(E=d.liveChatRichMessageInput)==null?0:E.textSegments)&&d.liveChatRichMessageInput.textSegments.length!==0&&(E={rich_message:_.A8(d.liveChatRichMessageInput)},_.mN(this.hostElement,[v,E]).then(function(){_.Iq(e.hostElement,"picker-cancelled")}))}};
_.W.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.W.handleServiceRequestCompleted=function(v){var e;v=v==null?void 0:(e=v.detail)==null?void 0:e.data;(v==null?0:v.actions)&&v.actions.length>0?this.startQnaRequestInFlight=!1:_.b4(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.W.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
vU.prototype.handleServiceRequestError=vU.prototype.handleServiceRequestError;vU.prototype.handleServiceRequestCompleted=vU.prototype.handleServiceRequestCompleted;vU.prototype.handleServiceRequestSent=vU.prototype.handleServiceRequestSent;vU.prototype.onPickerCancelled=vU.prototype.onPickerCancelled;vU.prototype.onCharacterCountChanged=vU.prototype.onCharacterCountChanged;_.c([_.f(),_.w("design:type",Object)],vU.prototype,"characterCount",void 0);
_.c([_.f(),_.w("design:type",Object)],vU.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],vU.prototype,"showInputErrorMessage",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],vU.prototype,"startQnaRequestInFlight",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],vU.prototype,"modern",void 0);_.c([_.f(),_.w("design:type",Object)],vU.prototype,"buttonOverrides",void 0);
_.c([_.f(),_.w("design:type",Object)],vU.prototype,"closeButtonOverrides",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],vU.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.M(_.Qi.YtLiveChatItemBehavior),_.w("design:type",_.gD)],vU.prototype,"ytLiveChatItemBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],vU.prototype,"ytActionHandlerBehavior",void 0);_.c([_.Kq("yt-live-chat-text-input-field-renderer-character-count-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],vU.prototype,"onCharacterCountChanged",null);_.c([_.Kq("picker-cancelled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vU.prototype,"onPickerCancelled",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vU.prototype,"handleServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],vU.prototype,"handleServiceRequestCompleted",null);
_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],vU.prototype,"handleServiceRequestError",null);_.c([_.z({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],vU);
_.A(vU,"yt-live-chat-qna-start-panel-renderer",function(){if(w$D===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;cra===void 0&&(cra=document.createElement("template"));var E=cra;d.call(e,E.content.cloneNode(!0),v.content.firstChild);w$D=v}v=w$D;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var gmm;var uam;var eL=function(){return _.P.apply(this,arguments)||this};
_.V(eL,_.P);eL.prototype.dismiss=function(){_.Iq(this.hostElement,"yt-live-chat-error-message-dismiss")};
eL.prototype.edit=function(){_.Iq(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.c([_.f(),_.w("design:type",Object)],eL.prototype,"data",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],eL);
_.A(eL,"yt-live-chat-text-actions-error-message-renderer",function(){if(uam===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;gmm===void 0&&(gmm=document.createElement("template"));var E=gmm;d.call(e,E.content.cloneNode(!0),v.content.firstChild);uam=v}v=uam;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var nma;var DfV;var Uf$;var p$m;var d4=function(){var v=_.P.apply(this,arguments)||this;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.newnessDotEligible=!1;return v};
_.V(d4,_.P);d4.prototype.sendReaction=function(){var v,e,d=((v=this.data)==null?void 0:v.emojiId)||((e=this.data)==null?void 0:e.emoteId),E;d&&((E=this.data)==null?0:E.shouldTriggerAnimation)&&_.b4(this.hostElement,"yt-create-user-reaction-animation",[d]);var T;(v=_.lk((T=this.data)==null?void 0:T.onTap))&&_.K1(v,this.hostElement);this.showNewnessDot&&_.b4(this.hostElement,"yt-hide-newness-dot")};
d4.prototype.onClick=function(v){(!v||v.clientX||v.clientY)&&this.sendReaction()};
d4.prototype.onKeyDown=function(v){v.key!=="Enter"&&v.key!==" "||v.repeat||this.sendReaction()};
_.vP.Object.defineProperties(d4.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var v,e;return!!(((v=this.data)==null?0:v.emojiId)||((e=this.data)==null?0:e.emoteId))}}});
_.c([_.f(),_.w("design:type",Object)],d4.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],d4.prototype,"isDarkTheme",void 0);_.c([_.f(),_.w("design:type",Object)],d4.prototype,"newnessDotEligible",void 0);_.c([_.t("data.maybeShowNewnessDot"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],d4.prototype,"showNewnessDot",null);_.c([_.t("data.emojiId","data.emoteId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],d4.prototype,"useYtImage",null);
_.c([_.lh({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],d4);
_.A(d4,"yt-reaction-control-panel-button-view-model",function(){if(p$m===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Uf$===void 0&&(Uf$=document.createElement("template"));var E=Uf$;d.call(e,E.content.cloneNode(!0),v.content.firstChild);p$m=v}v=p$m;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var vam;var eUm;var En=function(){var v=_.P.apply(this,arguments)||this;v.reactionControlPanelExpanded=!1;v.isDarkTheme=document.documentElement.hasAttribute("dark");v.newnessDotEligible=!1;return v};
_.V(En,_.P);_.W=En.prototype;_.W.expandedButtonsChanged=function(){var v,e;_.qr(this.hostElement,{"--expanded-buttons-height":((e=(v=this.expandedButtonsData)==null?void 0:v.length)!=null?e:0)*36+"px"})};
_.W.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}}};
_.W.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.W.onMouseLeave=function(){var v=this;this.collapseTimer=setTimeout(function(){v.reactionControlPanelExpanded=!1},500)};
_.W.onFocusIn=function(){this.onMouseEnter()};
_.W.onFocusOut=function(){this.onMouseLeave()};
_.W.onCollapsedButtonFocusIn=function(){var v=this;setTimeout(function(){var e;(e=v.expandedButtons.querySelector("button"))==null||e.focus()},100)};
_.W.onCollapsedButtonFocusOut=function(v){v.stopPropagation()};
_.vP.Object.defineProperties(En.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var v,e;return _.f0.unsafeClone((v=this.liveReactionsData)==null?void 0:v.emojiButtonData)||((e=this.data)==null?void 0:e.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var v;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((v=this.data)==null||!v.maybeShowNewnessDot)}}});
En.prototype.expandedButtonsChanged=En.prototype.expandedButtonsChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],En.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],En.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],En.prototype,"reactionControlPanelExpanded",void 0);_.c([_.f({selectorArgs:["data.liveReactionsDataEntityKey"],selector:EIJ}),_.w("design:type",Object)],En.prototype,"liveReactionsData",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],En.prototype,"isDarkTheme",void 0);_.c([_.f(),_.w("design:type",Object)],En.prototype,"newnessDotEligible",void 0);
_.c([_.t("liveReactionsData","data.expandedButtons"),_.w("design:type",Object),_.w("design:paramtypes",[])],En.prototype,"expandedButtonsData",null);_.c([_.t("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.f({reflectToAttribute:!0}),_.w("design:type",Object),_.w("design:paramtypes",[])],En.prototype,"showNewnessDot",null);_.c([_.sg("#expanded-buttons"),_.w("design:type",HTMLElement)],En.prototype,"expandedButtons",void 0);
_.c([_.$v("expandedButtonsData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],En.prototype,"expandedButtonsChanged",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],En);
_.A(En,"yt-reaction-control-panel-view-model",function(){if(eUm===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;vam===void 0&&(vam=document.createElement("template"));var E=vam;d.call(e,E.content.cloneNode(!0),v.content.firstChild);eUm=v}v=eUm;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var T$=new _.Xn("yt-live-chat"),dqY=Date.parse("2024-7-24"),SL=function(){var v=_.P.apply(this,arguments)||this;v.emojiManager=_.FW;v.newnessDotEligible=!1;v.newnessDotImpressionCounted=!1;v.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return v};
_.V(SL,_.P);_.W=SL.prototype;_.W.emojiCustomizationEnabledChanged=function(){var v;((v=this.data)==null?0:v.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((v=T$.getCreationTime("emoji-customization-count"))&&v<dqY&&T$.set("emoji-customization-count","0"),v=Number(T$.get("emoji-customization-count"))||0,v<3&&(this.newnessDotEligible=!0,T$.set("emoji-customization-count",(v+1).toString())),this.newnessDotImpressionCounted=!0)};
_.W.hideNewnessDot=function(){this.newnessDotEligible=!1;T$.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.W.handleReactionsMute=function(v){var e=_.zz(),d=_.bH(206221),E={checkboxData:{state:v?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};e&&_.Uz(e,d,E);this.reactionsMuted=v};
_.W.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.W.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}}};
_.vP.Object.defineProperties(SL.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var v;return(!((v=this.liveReactionsData)==null||!v.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
SL.prototype.liveReactionsSettingChanged=SL.prototype.liveReactionsSettingChanged;SL.prototype.emojiCustomizationEnabledChanged=SL.prototype.emojiCustomizationEnabledChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Ab),_.w("design:type",Object)],SL.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],SL.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],SL.prototype,"data",void 0);_.c([_.f(),_.w("design:type",_.Zb)],SL.prototype,"emojiManager",void 0);_.c([_.f(),_.w("design:type",Object)],SL.prototype,"newnessDotEligible",void 0);_.c([_.f(),_.w("design:type",Object)],SL.prototype,"newnessDotImpressionCounted",void 0);
_.c([_.f({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Tnf}),_.w("design:type",Boolean)],SL.prototype,"liveReactionsSetting",void 0);_.c([_.f({selectorArgs:["data.liveReactionsDataEntityKey"],selector:EIJ}),_.w("design:type",Object)],SL.prototype,"liveReactionsData",void 0);_.c([_.f({value:function(){var v=_.N("enable_lwe_web_mute"),e=T$.get("allow-reactions");return e===void 0?!1:!e&&v}}),
_.w("design:type",Boolean)],SL.prototype,"reactionsMuted",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],SL.prototype,"liveReactionsEnabled",null);_.c([_.$v("data.emojiCustomizationEnabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SL.prototype,"emojiCustomizationEnabledChanged",null);
_.c([_.$v("liveReactionsEnabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SL.prototype,"liveReactionsSettingChanged",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],SL);
_.A(SL,"yt-reaction-control-panel-overlay-view-model",function(){if(DfV===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;nma===void 0&&(nma=document.createElement("template"));var E=nma;d.call(e,E.content.cloneNode(!0),v.content.firstChild);DfV=v}v=DfV;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var EaY={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(v){var e=this.$.pickers.selected;if(e){_.IB(this.hostElement).removeAttribute(e+"-open");var d="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(d="#picker-buttons",e==="emoji"&&_.IB(this.hostElement).querySelector("#emoji-picker-button")&&(d="#emoji-picker-button"));if(d=_.IB(this.hostElement).querySelector(d).querySelector("#"+e))d.active=!1}d=v;e==v&&(d=null);e!=
v&&_.IB(this.hostElement).setAttribute(v+"-open","");this.$.pickers.selected=d;_.b4(this.hostElement,"yt-live-chat-picker-changed",[d])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var WU=function(){var v=_.P.apply(this,arguments)||this;v.numSentMessages=0;v.timeoutDurationMs=0;v.timeoutMs=0;v.lastTimeoutTimeMs=0;v.pendingMessageId="";v.hasFiredInitialFocusActions=!1;v.isBeforeFocusEnabled=!0;v.id="";v.characterCount=0;v.maxCharacterLimit=0;v.remainingCharacterCount=0;v.inputExpanded=!1;v.buttonOverrides={iconPosition:"icon-only"};v.inReplyPanel=!1;v.countdownRatio=0;v.isTooltipVisible=!1;v.tooltipTimeout=1E4;v.systemIcons=_.N("kevlar_system_icons");v.tallerEmojiPicker=_.N("live_chat_taller_emoji_picker");
v.sendReplyMessageInFlight=!1;v.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"};v.onResize=function(){v.maybeToggleCharacterCount()};
return v};
_.V(WU,_.P);_.W=WU.prototype;
_.W.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"}}}};
_.W.attached=function(){window.addEventListener("resize",this.onResize)};
_.W.detached=function(){window.removeEventListener("resize",this.onResize)};
_.W.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.W.sendMessage=function(){var v=this,e,d,E,T;return _.I(function(S){if(v.sendDisabled)return S.return();v.isTooltipVisible&&_.b4(v.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(v.data.sendButton&&v.data.sendButton.buttonRenderer){v.input.completeEmojis();e=v.data.sendButton.buttonRenderer.serviceEndpoint;if(!e)return S.return();E=((d=_.L(e,_.gi7))==null?void 0:d.clientIdPrefix)||"";T={client_message_id:E+String(v.numSentMessages++),rich_message:_.A8(v.input.liveChatRichMessageInput)};
v.pendingMessageId=T.client_message_id;v.inReplyPanel&&(v.sendReplyMessageInFlight=!0);_.mN(v.hostElement,[e,T]);v.input.setLiveChatRichMessageInput(null)}_.s9(S)})};
_.W.handleSendButtonAction=function(v){v.detail.actionName==="yt-service-request"&&(v.stopPropagation(),this.sendMessage())};
_.W.onSendCompleted=function(v,e){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(v=this.get("timeoutDurationUsec",e.data))&&this.handleTimeout(Number(v)/1E3);this.errorMessage=this.get("errorMessage",e.data);this.pendingMessageId=""};
_.W.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.b4(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.W.handlePickerButtonToggle=function(v){v=v.detail.targetId;this.ytPickerBehavior.togglePicker_(v);if(v==="emoji")this.input.focus();else if(v==="qna-start-panel"){var e,d;(e=_.IB(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(d=e.querySelector("#qna-creator-text-input-field"))==null||d.focus()}};
_.W.onComponentReplaced=function(v){var e,d;v.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((e=v.replacement.liveChatMessageInputRenderer)==null?0:(d=e.headerRenderer)==null?0:d.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.W.onEmojiSelect=function(v){this.input.focus();this.input.insertEmoji(v.detail)};
_.W.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.W.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.b4(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.b4(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.W.onOpenPopupAction=function(v,e){var d=this;e===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.b4(d.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.W.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.W.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.W.focusChanged=function(){this.maybeToggleCharacterCount()};
_.W.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var v=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",v>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.W.computeId=function(){return this.data&&this.data.targetId||""};
_.W.computeSendDisabled=function(v,e,d,E){v=!!(!v||e&&v>e||E);(e=_.IB(this.hostElement).querySelector("#send-button"))&&e.children.length&&(e.children[0].disabled=v);return v};
_.W.handleTimeout=function(v){this.timeoutDurationMs=this.timeoutMs=v;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.W.updateTimeout=function(v){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(v-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=v,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.W.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.W.onErrorMessageEdit=function(v){this.input.setLiveChatRichMessageInput(v.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.W.errorMessageChanged=function(){var v=this;_.Q1(function(){_.b4(v.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.W.computeAuthorNameColor=function(v){var e;if(_.N("live_chat_author_name_color_usernames")&&(v==null?0:(e=v.authorName)==null?0:e.simpleText))return _.xD3(_.BxW(v.authorName.simpleText));if(_.N("live_chat_seed_color_usernames")&&(v==null?0:v.authorSeedColorArgb))return _.xD3(_.m5(v.authorSeedColorArgb));if(_.N("live_chat_colored_usernames"))return"#cc0000";var d;return _.N("live_chat_simple_color_usernames")&&(v==null?0:(d=v.authorName)==null?0:d.simpleText)&&(v==null?0:v.authorUsernameColorLight)&&
(v==null?0:v.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.m5(v.authorUsernameColorDark):_.m5(v.authorUsernameColorLight):""};
_.W.onIsTooltipVisibleChanged=function(){var v=_.IB(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){v.hidden=!1;v.setAttribute("role","alert")},0):(v.hidden=!0,v.removeAttribute("role"))};
_.W.onFocusedChanged=function(v){this.inputFocused=v.detail.value};
_.vP.Object.defineProperties(WU.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 v;return!((v=this.data)==null||!v.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:(e=v.pickers)==null?void 0:e.find(function(d){return d.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return v?this.ytRendererBehavior.getSimpleString(v):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
WU.prototype.onIsTooltipVisibleChanged=WU.prototype.onIsTooltipVisibleChanged;WU.prototype.errorMessageChanged=WU.prototype.errorMessageChanged;WU.prototype.onErrorMessageEdit=WU.prototype.onErrorMessageEdit;WU.prototype.onErrorMessageDismiss=WU.prototype.onErrorMessageDismiss;WU.prototype.focusChanged=WU.prototype.focusChanged;WU.prototype.characterCountChanged=WU.prototype.characterCountChanged;WU.prototype.onEmojiSelect=WU.prototype.onEmojiSelect;WU.prototype.handlePickerButtonToggle=WU.prototype.handlePickerButtonToggle;
WU.prototype.onSendError=WU.prototype.onSendError;WU.prototype.onSendCompleted=WU.prototype.onSendCompleted;WU.prototype.sendMessage=WU.prototype.sendMessage;WU.prototype.dataChanged=WU.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],WU.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(EaY.YtPickerBehavior),_.w("design:type",Object)],WU.prototype,"ytPickerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Zh.YtLiveChatTooltipTargetingBehavior),_.w("design:type",Object)],WU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],WU.prototype,"hasFiredInitialFocusActions",void 0);
_.c([_.f(),_.w("design:type",Object)],WU.prototype,"isBeforeFocusEnabled",void 0);_.c([_.f(),_.w("design:type",Object)],WU.prototype,"data",void 0);_.c([_.f({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.w("design:type",Object)],WU.prototype,"id",void 0);_.c([_.f(),_.w("design:type",Object)],WU.prototype,"characterCount",void 0);_.c([_.f(),_.w("design:type",Object)],WU.prototype,"maxCharacterLimit",void 0);
_.c([_.f(),_.w("design:type",Object)],WU.prototype,"remainingCharacterCount",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WU.prototype,"inputExpanded",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],WU.prototype,"inputFocused",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],WU.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.c([_.f(),_.w("design:type",_.Db)],WU.prototype,"participantsManager",void 0);
_.c([_.f(),_.w("design:type",Object)],WU.prototype,"buttonOverrides",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WU.prototype,"inReplyPanel",void 0);_.c([_.t("characterCount, maxCharacterLimit, countdownActive"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WU.prototype,"sendDisabled",null);_.c([_.f(),_.w("design:type",Object)],WU.prototype,"countdownRatio",void 0);
_.c([_.t("countdownRatio"),_.w("design:type",Number),_.w("design:paramtypes",[])],WU.prototype,"countdownStrokeDashOffset",null);_.c([_.t("countdownRatio"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WU.prototype,"countdownActive",null);_.c([_.t("data.interactionMessage"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WU.prototype,"hasInteractionMessage",null);
_.c([_.t("data.emojiPickerButton"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WU.prototype,"hasEmojiPickerButton",null);_.c([_.t("data, characterCount"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WU.prototype,"showAvatar",null);_.c([_.t("data.pickers"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],WU.prototype,"hasProductPickerPanelViewModel",null);
_.c([_.f(),_.w("design:type",Object)],WU.prototype,"errorMessage",void 0);_.c([_.f(),_.w("design:type",Object)],WU.prototype,"genericErrorMessage",void 0);_.c([_.f(),_.w("design:type",Object)],WU.prototype,"isTooltipVisible",void 0);_.c([_.f(),_.w("design:type",Object)],WU.prototype,"tooltipTimeout",void 0);_.c([_.t("data.onInitialFocusCommand"),_.w("design:type",String),_.w("design:paramtypes",[])],WU.prototype,"tooltipMessage",null);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WU.prototype,"systemIcons",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],WU.prototype,"tallerEmojiPicker",void 0);_.c([_.t("data"),_.w("design:type",String),_.w("design:paramtypes",[])],WU.prototype,"authorNameColor",null);_.c([_.f(),_.w("design:type",Object)],WU.prototype,"sendReplyMessageInFlight",void 0);_.c([_.sg("#input"),_.w("design:type",_.zy0)],WU.prototype,"input",void 0);
_.c([_.sg("#count"),_.w("design:type",HTMLElement)],WU.prototype,"count",void 0);_.c([_.sg("#input-container"),_.w("design:type",HTMLElement)],WU.prototype,"inputContainer",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WU.prototype,"dataChanged",null);_.c([_.Kq("yt-live-chat-send-message"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],WU.prototype,"sendMessage",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[Event,_.Dy]),_.w("design:returntype")],WU.prototype,"onSendCompleted",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WU.prototype,"onSendError",null);
_.c([_.Kq("yt-live-chat-icon-toggle-button-renderer-toggle"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],WU.prototype,"handlePickerButtonToggle",null);_.c([_.Kq("yt-emoji-select"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],WU.prototype,"onEmojiSelect",null);
_.c([_.$v("characterCount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WU.prototype,"characterCountChanged",null);_.c([_.$v("inputFocused"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WU.prototype,"focusChanged",null);_.c([_.Kq("yt-live-chat-error-message-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WU.prototype,"onErrorMessageDismiss",null);
_.c([_.Kq("yt-live-chat-error-message-edit"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],WU.prototype,"onErrorMessageEdit",null);_.c([_.$v("errorMessage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WU.prototype,"errorMessageChanged",null);_.c([_.$v("isTooltipVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WU.prototype,"onIsTooltipVisibleChanged",null);
_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],WU);
_.A(WU,"yt-live-chat-message-input-renderer",function(){if(LVa===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;kDf===void 0&&(kDf=document.createElement("template"));var E=kDf;d.call(e,E.content.cloneNode(!0),v.content.firstChild);LVa=v}v=LVa;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var T5k;var S9D;var ay=function(){var v=_.P.apply(this,arguments)||this;v.systemIcons=_.N("kevlar_system_icons");v.firedOnClickCommand=!1;v.inReplyPanel=!1;return v};
_.V(ay,_.P);
ay.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"}}}};
ay.prototype.onButtonToggle=function(v){v.target.disabled||this.ytPickerBehavior.togglePicker_(v.detail.targetId)};
ay.prototype.onClick=function(){var v=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.b4(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return v.firedOnClickCommand=!1},5E3))};
_.vP.Object.defineProperties(ay.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:(e=v.panels)==null?void 0:e.find(function(d){return d.liveChatProductPickerPanelViewModel}))!==void 0}}});
ay.prototype.onButtonToggle=ay.prototype.onButtonToggle;_.c([_.M(EaY.YtPickerBehavior),_.w("design:type",Object)],ay.prototype,"ytPickerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ay.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ay.prototype,"systemIcons",void 0);_.c([_.f({reflectToAttribute:!1}),_.w("design:type",Object)],ay.prototype,"firedOnClickCommand",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ay.prototype,"inReplyPanel",void 0);_.c([_.t("data.pickers"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ay.prototype,"hasProductPickerPanelViewModel",null);
_.c([_.Kq("yt-live-chat-icon-toggle-button-renderer-toggle"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ay.prototype,"onButtonToggle",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],ay);
_.A(ay,"yt-live-chat-restricted-participation-renderer",function(){if(S9D===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;T5k===void 0&&(T5k=document.createElement("template"));var E=T5k;d.call(e,E.content.cloneNode(!0),v.content.firstChild);S9D=v}v=S9D;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var iE=function(){var v=_.P.apply(this,arguments)||this;v.genericErrorMessage=_.pQ("Error, try again.");v.inReplyPanel=!1;v.hideBorder=!1;return v};
_.V(iE,_.P);iE.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}}}}}};
_.vP.Object.defineProperties(iE,{template:{configurable:!0,enumerable:!0,get:function(){return KVk()}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],iE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],iE.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],iE.prototype,"genericErrorMessage",void 0);_.c([_.f(),_.w("design:type",Object)],iE.prototype,"inReplyPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],iE.prototype,"hideBorder",void 0);
_.c([_.lh({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],iE);_.A(iE,"yt-live-chat-engagement-panel-input-renderer",function(){return KVk()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var W7m,a2m;W7m=_.bH(115994);a2m=_.bH(115993);_.On=function(v,e,d){var E=this;var T=d.dragDownAction;this.layer=0;this.JSC$22504_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.JSC$22504_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.fullscreen=!1;var S=_.NC();_.Y_(S,W7m,this.layer);_.Y_(S,a2m,this.layer);this.dragDownAction=function(){T();_.ca(S,{visualElement:E.fullscreen?W7m:a2m})};
this.gesture=new _.Ip(v,e,this.JSC$22504_watchConfig,"pandown");this.attach()};
_.On.prototype.attach=function(){this.gesture.attach()};
_.On.prototype.detach=function(){this.gesture.detach()};
_.On.prototype.update=function(v){this.fullscreen=v;this.gesture.config=v?this.JSC$22504_watchFullScreenConfig:this.JSC$22504_watchConfig};var iFm={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(v){if(v&&v.length==1&&Array.isArray(v[0].loggingUrls)){v=_.f0.unsafeClone(v[0]);var e=this.macros||{},d=this.getAdModuleClient_();if(!d)return _.qg();v.loggingUrls.forEach(function(E){if(E.baseUrl){var T=E.baseUrl;var S=e;S=S===void 0?{}:S;T=d.getOptions().includes("replaceUrlMacros")?_.E6e(d,"replaceUrlMacros",{url:T,additionalMapping:S}):T;E.baseUrl=T}},this);
v=[v]}return _.mN(this.hostElement,v)},
getAdModuleClient_:function(){var v=_.dB(this);return v?(v=v.getPlayer())?new _.GS(v):null:null}}]};var OF$;var Iy=function(){var v=_.P.apply(this,arguments)||this;v.isCollapsed=!1;v.modernPanels=_.N("kevlar_watch_modern_panels");v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return v};
_.V(Iy,_.P);_.W=Iy.prototype;_.W.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.W.onDonateTap=function(){var v=this.get("data.donateButton.buttonRenderer.command");if(v){var e=_.zz(),d=this.get("data.donateButton.buttonRenderer.trackingParams");e&&d&&_.Uz(e,_.Jg(d));this.ytOpenPopupBehavior.openPopup(v)}};
_.W.onShowMore=function(){this.isCollapsed=!1;var v=_.zz(),e=this.get("data.expandButton.buttonRenderer.trackingParams");v&&e&&_.Uz(v,_.Jg(e))};
_.W.onShowLess=function(){this.isCollapsed=!0};
_.W.dataChanged=function(){_.qr(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.W.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.W.handleUpdate=function(v){if(v=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",v))this.set("data.startLabel",v.startLabel),this.set("data.endLabel",v.endLabel),this.set("data.progress",v.progress),this.set("data.amountRaisedLabel",v.amountRaisedLabel),this.dataChanged()};
_.W.handleOpenPopupAction=function(v){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",v)&&_.b4(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.W.computeHeaderBackgroundUrl=function(v,e){if(v)return e?v.headerBackgroundDarkUrl:v.headerBackgroundUrl};
_.W.isProgressBarVisible=function(v){return!(!v||v.progress===void 0)};
_.W.headerBackgroundClass=function(){return _.Bb("HTML_DIR")==="rtl"?"flip":""};
Iy.prototype.dataChanged=Iy.prototype.dataChanged;_.c([_.M(_.h5.YtOpenPopupBehavior),_.w("design:type",Object)],Iy.prototype,"ytOpenPopupBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Iy.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Iy.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Iy.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Iy.prototype,"isCollapsed",void 0);_.c([_.f({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.w("design:type",String)],Iy.prototype,"headerBackgroundUrl",void 0);_.c([_.f(),_.w("design:type",Boolean)],Iy.prototype,"isDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Iy.prototype,"modernPanels",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Iy.prototype,"dataChanged",null);_.c([_.z({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Iy);
_.A(Iy,"ytd-donation-shelf-renderer",function(){if(OF$!==void 0)return OF$;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return OF$=v},{mode:1});var I2$;var bFk=function(){return _.P.apply(this,arguments)||this};
_.V(bFk,_.P);_.c([_.f(),_.w("design:type",Object)],bFk.prototype,"data",void 0);_.c([_.z({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],bFk);
_.A(bFk,"ytd-donation-unavailable-renderer",function(){if(I2$!==void 0)return I2$;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return I2$=v},{mode:1});var Y9V;var bE=function(){return _.P.apply(this,arguments)||this};
_.V(bE,_.P);bE.prototype.computeIconType=function(v){return v?"yt-icons:"+v.toLowerCase():null};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],bE.prototype,"data",void 0);_.c([_.z({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],bE);
_.A(bE,"ytd-limited-state-message-renderer",function(){if(Y9V!==void 0)return Y9V;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Y9V=v},{mode:1});var mqm;var Yr=function(){return _.P.apply(this,arguments)||this};
_.V(Yr,_.P);Yr.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Yr.prototype.onTap=function(v){var e=this.data&&this.data.endpoint;e&&!_.UG(_.vg(v),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Iq(this.hostElement,"yt-navigate",{endpoint:e})};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Yr.prototype,"data",void 0);_.c([_.z({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Yr);
_.A(Yr,"ytd-autotagging-metadata-renderer",function(){if(mqm!==void 0)return mqm;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return mqm=v},{mode:1});var y7r;var mK=function(){return _.P.apply(this,arguments)||this};
_.V(mK,_.P);mK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],mK.prototype,"data",void 0);_.c([_.z({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],mK);
_.A(mK,"ytd-autotagging-metadata-row-renderer",function(){if(y7r!==void 0)return y7r;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return y7r=v},{mode:1});var q9B;var r7a;var yY=function(){var v=_.P.apply(this,arguments)||this;v.engagementPanelContent=!1;return v};
_.V(yY,_.P);yY.prototype.computeHasDividerLine=function(v,e){return v&&!e};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],yY.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.w("design:type",Boolean)],yY.prototype,"hasDividerLine",void 0);_.c([_.f(),_.w("design:type",Object)],yY.prototype,"engagementPanelContent",void 0);
_.c([_.z({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],yY);
_.A(yY,"ytd-metadata-row-header-renderer",function(){if(r7a!==void 0)return r7a;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return r7a=v},{mode:1});var hUf;var q2=function(){return _.P.apply(this,arguments)||this};
_.V(q2,_.P);q2.prototype.computeHasDividerLine=function(v){return v};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],q2.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.w("design:type",Boolean)],q2.prototype,"hasDividerLine",void 0);_.c([_.z({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],q2);
_.A(q2,"ytd-metadata-row-renderer",function(){if(hUf!==void 0)return hUf;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return hUf=v},{mode:1});var K7f;var r4=function(){return _.P.apply(this,arguments)||this};
_.V(r4,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],r4.prototype,"data",void 0);_.c([_.z({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],r4);
_.A(r4,"ytd-metadata-with-image-row-renderer",function(){if(K7f!==void 0)return K7f;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return K7f=v},{mode:1});var $qm;var hJ=function(){var v=_.P.apply(this,arguments)||this;v.rounded=!0;v.fixie=!1;v.fullWidth=!1;return v};
_.V(hJ,_.P);_.W=hJ.prototype;_.W.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.onDataChanged=function(){var v=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(e){v.onEndpointLinkKeyPress(e)}))};
_.W.onEndpointLinkKeyPress=function(v){v.target===this.endpointLink&&v.keyCode===13&&_.Iq(this.hostElement,"click")};
_.W.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var v;if((v=this.data)==null?0:v.endpoint)_.ya(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.W.onYtNavigate=function(v){this.endpointHref||(v.stopPropagation(),v.preventDefault())};
_.W.onInformationButtonContainerClick=function(v){v.target.id!=="information-button-container"&&(v.stopPropagation(),v.preventDefault())};
_.W.computeStyle=function(v){return v};
_.W.computeIsThumbnailStyle=function(v){return v==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.W.computeThumbnailWidth=function(v){switch(v){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}};
_.W.computeThumbnailObjectFit=function(v){switch(v){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.vP.Object.defineProperties(hJ.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?0:v.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
hJ.prototype.onYtNavigate=hJ.prototype.onYtNavigate;hJ.prototype.onClick=hJ.prototype.onClick;hJ.prototype.onDataChanged=hJ.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],hJ.prototype,"componentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],hJ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],hJ.prototype,"componentStyle",void 0);_.c([_.f({computed:"computeIsThumbnailStyle(data.style)"}),_.w("design:type",Boolean)],hJ.prototype,"isThumbnailStyle",void 0);_.c([_.f({computed:"computeThumbnailObjectFit(data.style)"}),_.w("design:type",String)],hJ.prototype,"thumbnailObjectFit",void 0);
_.c([_.f({computed:"computeThumbnailWidth(data.style)"}),_.w("design:type",Number)],hJ.prototype,"thumbnailWidth",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hJ.prototype,"rounded",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hJ.prototype,"fixie",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hJ.prototype,"fullWidth",void 0);_.c([_.sg("#endpoint-link"),_.w("design:type",HTMLAnchorElement)],hJ.prototype,"endpointLink",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hJ.prototype,"onDataChanged",null);_.c([_.t("data.endpoint"),_.w("design:type",Object),_.w("design:paramtypes",[])],hJ.prototype,"endpointHref",null);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],hJ.prototype,"onClick",null);
_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hJ.prototype,"onYtNavigate",null);_.c([_.z({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],hJ);
_.A(hJ,"ytd-rich-metadata-renderer",function(){if($qm!==void 0)return $qm;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return $qm=v},{mode:_.bk("kevlar_poly_si_batch_j075")?1:2});var j06;var KA=function(){var v=_.P.apply(this,arguments)||this;v.fixie=!1;v.fullWidth=!1;return v};
_.V(KA,_.P);KA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
KA.prototype.computeHasDividerLine=function(v){return v};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],KA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],KA.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.w("design:type",Boolean)],KA.prototype,"hasDividerLine",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],KA.prototype,"fixie",void 0);_.c([_.f(),_.w("design:type",Object)],KA.prototype,"fullWidth",void 0);
_.c([_.z({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],KA);
_.A(KA,"ytd-rich-metadata-row-renderer",function(){if(j06!==void 0)return j06;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return j06=v},{mode:1});var $r=function(){var v=_.P.apply(this,arguments)||this;v.engagementPanelContent=!1;v.fixie=!1;v.fullWidth=!1;return v};
_.V($r,_.P);
$r.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"}}}};
$r.prototype.computeCollapsibleItems=function(v,e,d){return v===void 0||e===void 0||d===void 0||d?[]:v.slice(e)};
$r.prototype.computeAlwaysShownItems=function(v,e){return v&&v.length?v.slice(0,e):[]};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$r.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],$r.prototype,"collapsed",void 0);
_.c([_.f({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.w("design:type",Array)],$r.prototype,"alwaysShownItems",void 0);_.c([_.f({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.w("design:type",Array)],$r.prototype,"collapsibleItems",void 0);_.c([_.f(),_.w("design:type",Object)],$r.prototype,"engagementPanelContent",void 0);_.c([_.f(),_.w("design:type",Object)],$r.prototype,"fixie",void 0);
_.c([_.f(),_.w("design:type",Object)],$r.prototype,"fullWidth",void 0);_.c([_.z({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],$r);
_.A($r,"ytd-metadata-row-container-renderer",function(){if(q9B!==void 0)return q9B;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return q9B=v},{mode:1});var s0u;var jL=function(){var v=_.P.apply(this,arguments)||this;v.currentPageUrl="";v.baseUrl="";v.isHiddenByUser=null;v.hidden=!1;v.showAboveScrim=!1;v.watchNextGrid=_.N("kevlar_watch_grid");v.modernButtons=_.N("web_modern_buttons");v.roundedContainer=!0;v.noBorder=!1;v.roundBackground=!_.N("live_chat_round_background_killswitch");v.overflowHideChat=_.N("live_chat_overflow_hide_chat");v.forceDarkTheme=!1;v.theaterWatchWhile=!1;v.isListeningForPlayerProgress=!1;v.JSC$22540_playerEvents=new Map;v.isFrameReady=
!1;v.player=null;v.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 v};
_.V(jL,_.P);_.W=jL.prototype;_.W.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.YB(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.W.created=function(){var v=this;this.handleIframeEventListener=function(e){v.handleIframeEvent(e)};
this.handleKeyboardEventListener=function(e){v.handleKeyboardEvent(e)};
this.JSC$22540_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22540_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22540_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22540_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22540_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.W.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()};
_.W.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};
_.W.computeBaseUrl=function(v){var e="/live_chat";this.isChatReplay()&&(e="/live_chat_replay");return _.Ud(_.DH(_.ny(_.Az(v),e),null),"").toString()};
_.W.dataChanged=function(){_.N("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.W.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var v=this.url;if(this.isChatReplay()&&this.player){var e=Math.floor(this.player.getProgressState().current*1E3);v=_.cw(_.Az(v),"playerOffsetMs",e.toString()).toString()}e=this.chatframe;try{var d=v==="about:blank"?_.ysM:_.xm(v),E=e.contentDocument.location,T=_.zD(d);T!==void 0&&E.replace(T)}catch(S){e.src=v}}};
_.W.collapsedChanged=function(){_.Iq(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.W.handleIframeEvent=function(v){if(v&&this.baseUrl.startsWith(v.origin)&&v.source===this.chatframe.contentWindow&&_.Qj(v.data))if(v.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(v);else if(v.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(v.data["yt-show-feedback-dialog"]){var e=_.dk().resolve(_.eG(_.OJI));if(e){var d=v.ports,E;d&&d.length&&(E=function(){d[0].postMessage({})});
v=v.data["yt-show-feedback-dialog"];e.showFeedbackDialog(v.customProductData,v.feedbackContent,E,v.bucket)}}else if(v.data["yt-show-survey"])_.Iq(this.hostElement,"yt-show-survey",v.data["yt-show-survey"]);else if(v.data["yt-purchase-membership"])_.dk().resolve(_.EI).resolveCommand(v.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(v.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(v.data["yt-tunnel-out-live-service-request"]);else if(v.data["yt-user-activity"])_.EN();
else if(v.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(v.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(v.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(v.data["yt-open-popup"]);else if(v.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(v.data["yt-log-flow-logging-event-command"]);else if(v.data["yt-hide-live-chat"])this.onShowHideChat();else v.data["yt-report-moderation-state-log"]&&
this.player&&(e={cpn:this.player.getVideoData().cpn},_.tI("liveChatBeingModerated",e))};
_.W.attachLiveChatResponseVeTrackingParams=function(v){v=_.Jg(v);var e=_.zz(),d=_.AE("liveChatRenderer.trackingParams",this.data);e&&d&&_.Qa(e,_.Jg(d),v)};
_.W.handleBuyflowMessages=function(v){var e=v.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,d=v.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,E=v.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.zQ0(_.nr(_.po),e.replace(/-/g,"+").replace(/_/g,"/"),function(T){v.ports[0].postMessage({success:!0,buyFlowResponse:T})},void 0,function(T){v.ports[0].postMessage({success:!1,
error:T&&T.message||"Buyflow rejected without error."})},_.LB().get("hl"),void 0,function(){v.ports[0].postMessage({closed:!0})},d,E)};
_.W.setupPlayerProgressRelay=function(){var v=this;if(!this.isListeningForPlayerProgress){var e=_.EK();e!=null&&e.getPlayerPromise&&(e.getPlayerPromise().then(function(d){v.playerApiReady(d)}),this.isListeningForPlayerProgress=!0)}};
_.W.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.W.playerApiReady=function(v){this.setPlayer(v)};
_.W.playerProgressHandler=function(){if(this.player){var v=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":v.current})}};
_.W.playerAdStartHandler=function(v){this.postToContentWindow({"yt-player-ad-start":v})};
_.W.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.W.playerStateChangeHandler=function(v){this.postToContentWindow({"yt-player-state-change":v})};
_.W.setPlayer=function(v){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22540_playerEvents);v&&(this.player=v,this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$22540_playerEvents),_.Iq(this.hostElement,"player-api-ready"))};
_.W.liveChatPageUrl=function(v,e,d,E){return!d||e?"about:blank":d.liveChatRenderer?(e=_.Az(this.currentPageUrl).JSC$10022_queryData_,vsk(e),v=_.Az(v),e.add("continuation",d.liveChatRenderer.continuations[0].reloadContinuationData.continuation),d=_.Pv()==="USER_INTERFACE_THEME_DARK",(E||d)&&e.add("dark_theme","true"),_.DH(v,e),E=_.Az(v.toString()),d=E.JSC$10022_queryData_,"SESSION_INDEX"in _.Pb&&(d.add("authuser",_.Bb("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Pb&&d.add("pageId",_.Bb("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Pb&&d.add("sdc",_.Bb("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),E.toString()):""};
_.W.isCollapsed=function(v,e){return e!==null?e:this.isChatReplay()||v&&v.conversationBarRenderer&&v.conversationBarRenderer.availabilityMessage?!0:v?v.liveChatRenderer?v.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.N("live_chat_hide_premiere_replay_message")||v.conversationBarRenderer&&v.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.W.isHidden=function(v,e,d){var E=e&&e.conversationBarRenderer&&e.conversationBarRenderer.availabilityMessage,T=e&&e.liveChatRenderer&&e.liveChatRenderer.showHideButton,S=e&&e.liveChatRenderer&&e.liveChatRenderer.showButton;return d&&v&&!E&&!S||!d&&v&&!E&&!T?!0:e&&e.liveChatRenderer&&e.liveChatRenderer.initialDisplayState?e.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.W.computeButtonOverride=function(v,e){if(v&&e)return{type:"outline"}};
_.W.setCollapsedState=function(v){_.L(v,_.PP0)&&(this.isHiddenByUser=!!_.L(v,_.PP0).collapsed,!this.isHiddenByUser&&_.N("enable_teaser_framework_web_client")&&_.b4(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.W.forwardReduxActionToIframe=function(v){this.postToContentWindow({"yt-live-chat-forward-redux-action":v})};
_.W.onLoopRangeChange=function(v){this.showAboveScrim=!(v==null||!v.postId)};
_.W.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.W.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.W.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.W.sendDarkThemePostMessage=function(v){this.postToContentWindow({"yt-live-chat-set-dark-theme":v})};
_.W.onLiveChatBuyFlowCallback=function(v){this.postToContentWindow({"yt-live-chat-buy-flow-callback":v})};
_.W.handleKeyboardEvent=function(v){(0,_.f0.containsValue)(pOf,v.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:v.type,keyCode:v.keyCode}})};
_.W.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.W.postToContentWindow=function(v){if(this.isFrameReady)try{var e=window.location.protocol+"//"+window.location.host,d;(d=this.chatframe)!=null&&d.contentWindow?this.chatframe.contentWindow.postMessage(v,e):_.xf(new _.kL("Tried posting a message to an iframe with no content window",v))}catch(E){_.RI(E)}};
_.W.shouldHideChatFrame=function(v){return v&&_.N("hide_live_chat_button_when_collapsed")};
_.vP.Object.defineProperties(jL.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.N("live_chat_overflow_hide_chat")||_.N("web_watch_chat_hide_button_killswitch"))return _.N("live_chat_overflow_hide_chat");var v,e,d,E;return!!((v=this.data)==null?0:(e=v.liveChatRenderer)==null?0:(d=e.header)==null?0:(E=d.liveChatHeaderRenderer)==null?0:E.collapseButton)}}});
jL.prototype.collapsedChanged=jL.prototype.collapsedChanged;jL.prototype.urlChanged=jL.prototype.urlChanged;jL.prototype.dataChanged=jL.prototype.dataChanged;jL.prototype.onShowHideChat=jL.prototype.onShowHideChat;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],jL.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],jL.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],jL.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.M(_.h5.YtOpenPopupBehavior),_.w("design:type",Object)],jL.prototype,"ytOpenPopupBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],jL.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],jL.prototype,"currentPageUrl",void 0);
_.c([_.f({computed:"computeBaseUrl(currentPageUrl,data)"}),_.w("design:type",Object)],jL.prototype,"baseUrl",void 0);_.c([_.f({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.w("design:type",String)],jL.prototype,"url",void 0);_.c([_.f(),_.w("design:type",Object)],jL.prototype,"isHiddenByUser",void 0);_.c([_.f({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.w("design:type",Object)],jL.prototype,"hidden",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.w("design:type",Boolean)],jL.prototype,"collapsed",void 0);_.c([_.f({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.w("design:type",Boolean)],jL.prototype,"hideChatFrame",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jL.prototype,"showAboveScrim",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jL.prototype,"watchNextGrid",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],jL.prototype,"modernButtons",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jL.prototype,"roundedContainer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jL.prototype,"noBorder",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],jL.prototype,"roundBackground",void 0);
_.c([_.f({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.w("design:type",Object)],jL.prototype,"toggleButtonOverride",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],jL.prototype,"overflowHideChat",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jL.prototype,"forceDarkTheme",void 0);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jL.prototype,"enableShowWithoutHideChatButton",null);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jL.prototype,"theaterWatchWhile",void 0);_.c([_.sg("#chatframe"),_.w("design:type",HTMLIFrameElement)],jL.prototype,"chatframe",void 0);_.c([_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jL.prototype,"onShowHideChat",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jL.prototype,"dataChanged",null);
_.c([_.$v("url"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jL.prototype,"urlChanged",null);_.c([_.$v("collapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jL.prototype,"collapsedChanged",null);_.c([_.z({is:"ytd-live-chat-frame",disableElementRegistration:!0})],jL);
_.A(jL,"ytd-live-chat-frame",function(){if(s0u!==void 0)return s0u;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return s0u=v},{mode:1});var N5$;var sn=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("web_modern_buttons");v.buttonOverrides={style:"call-to-action",type:"filled"};return v};
_.V(sn,_.P);sn.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=_.cv(this.data.backgroundColor)))};
sn.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var v=this.getFormattedStringLoggingDirectives(this.data.headline);v&&this.rendererBehavior.logExplicitClick(v)}};
sn.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var v=this.getFormattedStringLoggingDirectives(this.data.description);v&&this.rendererBehavior.logExplicitClick(v)}};
sn.prototype.getFormattedStringLoggingDirectives=function(v){return v&&v.runs&&v.runs.length>0&&v.runs[0]&&v.runs[0].loggingDirectives?v.runs[0].loggingDirectives:null};
sn.prototype.dataChanged=sn.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sn.prototype,"rendererBehavior",void 0);_.c([_.M(iFm.YtMacroReplacementBehavior),_.w("design:type",Object)],sn.prototype,"macroReplacementBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sn.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],sn.prototype,"navigationEndpoint",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],sn.prototype,"enableColors",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],sn.prototype,"modern",void 0);_.c([_.f(),_.w("design:type",Object)],sn.prototype,"buttonOverrides",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sn.prototype,"dataChanged",null);_.c([_.z({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],sn);
_.A(sn,"ytd-action-basic-immersive-content-renderer",function(){if(N5$!==void 0)return N5$;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return N5$=v},{mode:1});var kMT;var L7r;var N2=function(){return _.P.apply(this,arguments)||this};
_.V(N2,_.P);N2.prototype.dataChanged=function(){var v;((v=this.data)==null?void 0:v.backgroundColor)!==void 0&&_.qr(this.hostElement,{"--bgu-color":_.cv(this.data.backgroundColor)})};
N2.prototype.onImageTileClick=function(){var v;((v=this.data)==null?0:v.navigationEndpoint)&&_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var e;((e=this.data)==null?0:e.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.vP.Object.defineProperties(N2.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.data)==null?void 0:v.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 v;return((v=this.data)==null?void 0:v.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var v,e,d;if(((v=this.data)==null?void 0:(e=v.detailsLine)==null?void 0:e.texts)!=null&&((d=this.data)==null?void 0:d.detailsLine.texts.length)>0){var E;return(E=this.data)==null?void 0:E.detailsLine.texts.map(function(T){return T.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var v,e,d;if(((v=this.data)==null?void 0:(e=v.optionalDetailsLine)==null?void 0:e.texts)!=null&&((d=this.data)==null?void 0:d.optionalDetailsLine.texts.length)>0){var E;return(E=this.data)==null?void 0:E.optionalDetailsLine.texts.map(function(T){return T.text}).join("")}return null}}});
N2.prototype.dataChanged=N2.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],N2.prototype,"rendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],N2.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],N2.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data.backgroundColor"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],N2.prototype,"hasBackgroundColor",null);
_.c([_.t("data.objectFit"),_.w("design:type",Object),_.w("design:paramtypes",[])],N2.prototype,"getObjectFit",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.tileRenderingStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],N2.prototype,"hasTileMetadata",null);_.c([_.t("data.detailsLine"),_.w("design:type",Object),_.w("design:paramtypes",[])],N2.prototype,"getSecondaryDetails",null);
_.c([_.t("data.optionalDetailsLine"),_.w("design:type",Object),_.w("design:paramtypes",[])],N2.prototype,"getOptionalDetails",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],N2.prototype,"dataChanged",null);_.c([_.z({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],N2);
_.A(N2,"ytd-image-tile-renderer",function(){if(L7r!==void 0)return L7r;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return L7r=v},{mode:1});var Vlm;var kr=function(){return _.P.apply(this,arguments)||this};
_.V(kr,_.P);kr.prototype.getOpenLinkIcon=function(){return _.N("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
kr.prototype.onSitelinkTap=function(){_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.N("kevlar_command_handler_migration_killswitch"))_.ya(this.hostElement,this.data.clickCommands,this.hostElement);else for(var v=_.a(this.data.clickCommands),e=v.next();!e.done;e=v.next())this.ytComponentBehavior.resolveCommand(e.value)};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],kr.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kr.prototype,"rendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kr.prototype,"data",void 0);_.c([_.z({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],kr);
_.A(kr,"ytd-sitelink-renderer",function(){if(Vlm!==void 0)return Vlm;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Vlm=v},{mode:1});var LA=function(){var v=_.P.apply(this,arguments)||this;v.paddingFix=_.N("enable_ads_web_ep_buenos_aires_and_padding_fix");return v};
_.V(LA,_.P);LA.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"}}}};
LA.prototype.dataChanged=function(){var v=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;v.ytMacroReplacementBehavior.sendServiceRequestAction([e])})};
LA.prototype.shouldHideFooter=function(v){return!(v&&_.N("use_ads_engagement_panel_desktop_footer_cta"))};
_.vP.Object.defineProperties(LA.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:v.imageTileRenderers)===void 0||((e=this.data)==null?void 0:e.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(d){var E;return(E=_.L(d,Sia))==null?void 0:E.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:v.imageTileRenderers)===void 0||((e=this.data)==null?void 0:e.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(d){var E;return((E=_.L(d,Sia))==null?void 0:E.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
LA.prototype.dataChanged=LA.prototype.dataChanged;_.c([_.M(iFm.YtMacroReplacementBehavior),_.w("design:type",Object)],LA.prototype,"ytMacroReplacementBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],LA.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],LA.prototype,"paddingFix",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data.imageTileRenderers"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LA.prototype,"removeBorderFromImageTiles",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.imageTileRenderers"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LA.prototype,"useFooteredMetadataRenderingStyle",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LA.prototype,"dataChanged",null);_.c([_.z({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],LA);
_.A(LA,"ytd-action-engagement-panel-content-renderer",function(){if(kMT!==void 0)return kMT;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return kMT=v},{mode:1});var oaY;var J7f=_.l(function(v){var e=v.data;var d=v.customCommandResolver;return _.m("ad-grid-card-image-full-metadata-view-model",{class:function(){var E;return((E=e().interaction)==null?0:E.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.dq(_.Eh({visibilityCallback:function(E){var T,S=(T=e().interaction)==null?void 0:T.onFirstVisible;E&&S&&_.wC(S)},
showOption:_.Em}),_.lH(function(){return e().interaction},d)),
"aria-label":function(){var E,T;return(E=e().interaction)==null?void 0:(T=E.accessibility)==null?void 0:T.label}},_.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.m(_.kz,{data:function(){return e().adImage}},{adImageViewModel:function(E){return _.m(_.hh,{data:E.data,
customCommandResolver:d})}})),_.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.m(_.y,{cond:function(){return e().headline},
then:function(E){return _.m(_.Dh,{text:E,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.m(_.y,{cond:function(){return e().detailsLine},
then:function(E){return _.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.m(_.kz,{data:E},{adDetailsLineViewModel:function(T){return _.m(_.b5,{data:T.data,customCommandResolver:d,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.m(_.y,{cond:function(){return e().secondaryDetailsLine},
then:function(E){return _.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.m(_.kz,{data:E},{adDetailsLineViewModel:function(T){return _.m(_.b5,{data:T.data,customCommandResolver:d,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"sk");var GMY=_.l(function(v){var e=v.data;var d=v.customCommandResolver;return _.m("ad-grid-card-image-view-model",{class:function(){var E;return((E=e().interaction)==null?0:E.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.dq(_.Eh({visibilityCallback:function(E){var T,S=(T=e().interaction)==null?void 0:T.onFirstVisible;E&&S&&_.wC(S)},
showOption:_.Em}),_.lH(function(){return e().interaction},d)),
"aria-label":function(){var E,T;return(E=e().interaction)==null?void 0:(T=E.accessibility)==null?void 0:T.label}},_.m(_.kz,{data:function(){return e().adImage}},{adImageViewModel:function(E){return _.m(_.hh,{data:E.data,
customCommandResolver:d})}}),_.m("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.m(_.kz,{data:function(){return e().adCardBadge}},{adCardBadgeViewModel:_.odc})))},"tk");var Mla=_.l(function(v){var e=v.data;var d=v.customCommandResolver;return _.m("ad-grid-card-text-view-model",{class:function(){var E;return((E=e().interaction)==null?0:E.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.dq(_.Eh({visibilityCallback:function(E){var T,S=(T=e().interaction)==null?void 0:T.onFirstVisible;E&&S&&_.wC(S)},
showOption:_.Em}),_.lH(function(){return e().interaction},d)),
"aria-label":function(){var E,T;return(E=e().interaction)==null?void 0:(T=E.accessibility)==null?void 0:T.label}},_.m("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.m(_.y,{cond:function(){return e().title},
then:function(E){return _.m(_.Dh,{text:E,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.m("div",{class:function(){return _.N("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.m(_.jI,{each:function(){var E;
return((E=e())==null?void 0:E.descriptions)||[]},
keyBy:"INDEX"},function(E){return _.m(_.Dh,{text:E,className:function(){return _.N("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.m("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.m(_.kz,{data:function(){return e().moreInfoButton}},{adButtonViewModel:function(E){return _.m(_.Sp,{data:E.data,
customCommandResolver:d})}})))},"uk");var tlB=_.l(function(v){var e=v.data;var d=v.customCommandResolver;var E=v.adGridCardCollectionStyle;return _.m("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.dq(_.Eh({visibilityCallback:function(T){var S,O=(S=e().interaction)==null?void 0:S.onFirstVisible;T&&O&&_.wC(O)},
showOption:_.Em})),style:function(){return"grid-template-columns: repeat("+huJ(E?E():e().style)+", minmax(0, 1fr));"}},_.m(_.kz,{data:function(){var T;
return(T=e())==null?void 0:T.gridCards}},{adGridCardImageViewModel:function(T){return _.m(GMY,{data:T.data,
customCommandResolver:d})},
adGridCardImageFullMetadataViewModel:function(T){return _.m(J7f,{data:T.data,customCommandResolver:d})},
adGridCardTextViewModel:function(T){return _.m(Mla,{data:T.data,customCommandResolver:d})}}))},"vk");_.aZ(_.l(function(v){var e=v.data;return _.m("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.dq(_.Eh({visibilityCallback:function(d){var E,T=(E=e().interaction)==null?void 0:E.onFirstVisible;d&&T&&_.wC(T)},
showOption:_.Em}),_.lH(function(){return e().interaction},Kg6))},_.m("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.m(_.y,{cond:_.KyH("(min-width: "+((0,_.Z$)()+_.Bo)+"px)"),
then:function(){return _.m(_.kz,{data:function(){return e().adGridCardCollection}},{adGridCardCollectionViewModel:function(d){return _.m(tlB,{data:d.data,
customCommandResolver:Kg6})}})},
else:function(){return _.m(_.kz,{data:function(){return e().adGridCardCollection}},{adGridCardCollectionViewModel:function(d){return _.m(tlB,{data:d.data,
customCommandResolver:Kg6,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.m("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.m(_.kz,{data:function(){return e().adButton}},{adButtonViewModel:function(d){return _.m(_.Sp,{data:d.data,
customCommandResolver:Kg6})}})))},"wk"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;return _.m("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.dq(_.Eh({visibilityCallback:function(d){var E,T=(E=e().interaction)==null?void 0:E.onFirstVisible;d&&T&&_.wC(T)},
showOption:_.Em}),_.lH(function(){return e().interaction},$i6))},_.m("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.m(_.kz,{data:function(){if(_.KyH("(min-width: "+((0,_.Z$)()+_.Bo)+"px)")())var d=e().adGridCardCollection;
else{d=Object.assign({},_.L(e().adGridCardCollection,WfV));var E;d.gridCards!==void 0&&((E=d.gridCards)==null?void 0:E.length)>1?d.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":d.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";d={adGridCardCollectionViewModel:d}}return d}},{adGridCardCollectionViewModel:function(d){return _.m(tlB,{data:d.data,
customCommandResolver:$i6})}})),_.m("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.m(_.kz,{data:function(){return e().adButton}},{adButtonViewModel:function(d){return _.m(_.Sp,{data:d.data,
customCommandResolver:$i6})}})))},"xk"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.U1}});var VY=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return v};
_.V(VY,_.P);_.W=VY.prototype;_.W.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"}}}};
_.W.attached=function(){this.getDataFromPlayerAndRender()};
_.W.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.W.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.W.getDataFromPlayerAndRender=function(){var v=this,e=_.dB(this.hostElement);e&&e.getPlayerPromise().then(function(d){v.getCachedDataAndListen(d)})};
_.W.getCachedDataAndListen=function(v){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(v,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(v,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=v)};
_.W.resolveCachedActions=function(){var v=_.AE("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(v=v&&v())&&!_.f0.isEmpty(v)&&this.sendUpdateEngagementPanelAction(v);(v=(v=_.AE("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&v())&&!_.f0.isEmpty(v)&&this.sendChangeEngagementPanelVisibilityAction(v);(v=(v=_.AE("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&v())&&!_.f0.isEmpty(v)&&this.sendScrollToEngagementPanelCommand(v)};
_.W.sendUpdateEngagementPanelAction=function(v){var e;_.b4(this.hostElement,"yt-update-engagement-panel-action",[(e=_.f0.get(v,"action"))!=null?e:v])};
_.W.sendChangeEngagementPanelVisibilityAction=function(v){_.b4(this.hostElement,"yt-change-engagement-panel-visibility-action",[v])};
_.W.sendScrollToEngagementPanelCommand=function(v){_.b4(this.hostElement,"yt-scroll-to-engagement-panel-command",[v])};
_.W.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.N("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.xf(Error("Jo"))};
VY.prototype.dataChanged=VY.prototype.dataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],VY.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],VY.prototype,"componentBehavior",void 0);_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],VY.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],VY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],VY.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],VY.prototype,"player",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VY.prototype,"dataChanged",null);_.c([_.z({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],VY);
_.A(VY,"ytd-ads-engagement-panel-content-renderer",function(){if(oaY!==void 0)return oaY;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return oaY=v},{mode:1});var f2k;var oy=function(){var v=_.P.apply(this,arguments)||this;v.player=null;v.JSC$22577_playerEvents=new Map;v.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return v};
_.V(oy,_.P);_.W=oy.prototype;_.W.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]]"}}}}}};
_.W.created=function(){this.player=null;this.JSC$22577_playerEvents=new Map;this.JSC$22577_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22577_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22577_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22577_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.W.attached=function(){var v=this,e=_.dB();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));e&&e.getPlayerPromise().then(function(d){v.setPlayer(d);v.set("isPageLoad",!1)})};
_.W.setPlayer=function(v){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22577_playerEvents);this.set("player",v);v&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$22577_playerEvents),v.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.W.onLoopRangeChange=function(v){var e=_.dk().resolve(_.eG(_.v5));if((!e||e.isOnWatch())&&this.hostElement.clientHeight){var d;!v&&((d=this.data)==null?0:d.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.W.onVideoProgress=function(v){var e,d,E=((e=this.player)==null?void 0:(d=e.getPresentingPlayerType)==null?void 0:d.call(e))===2;this.isAdPlaying!==E&&this.set("isAdPlaying",E);var T;if(!E&&(T=this.player)!=null&&T.getLoopRange()){d=this.player.getLoopRange();e=d.startTimeMs;d=d.endTimeMs;E=this.player.getProgressState(1).seekableStart;var S;e<E*1E3&&((S=this.data)==null?0:S.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
v=d<v*1E3;var O;((O=this.player)==null?0:O.getLoopRange())&&v&&this.player.seekTo(e/1E3)}};
_.W.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.W.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.W.onYtDeleteClipEngagementPanelCommand=function(v){_.L(v,sCa).command&&this.ytComponentBehavior.resolveCommand(_.L(v,sCa).command)};
_.vP.Object.defineProperties(oy.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.voteCount)||_.pQ("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],oy.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],oy.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],oy.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],oy.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],oy.prototype,"isAdPlaying",void 0);_.c([_.f({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],oy.prototype,"isPageLoad",void 0);_.c([_.f({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],oy.prototype,"isDarkTheme",void 0);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],oy.prototype,"voteCount",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],oy.prototype,"channelEndpoint",null);_.c([_.t("channelEndpoint"),_.w("design:type",Object),_.w("design:paramtypes",[])],oy.prototype,"channelHref",null);_.c([_.z({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],oy);
_.A(oy,"ytd-clip-attribution-renderer",function(){if(f2k!==void 0)return f2k;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return f2k=v},{mode:1});var RUr;var JJ=function(){var v=_.P.apply(this,arguments)||this;v.player=null;v.JSC$22582_playerEvents=new Map;return v};
_.V(JJ,_.P);_.W=JJ.prototype;_.W.created=function(){this.player=null;this.JSC$22582_playerEvents=new Map;this.JSC$22582_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22582_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22582_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.W.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.W.attached=function(){var v=this,e=_.dB();e&&e.getPlayerPromise().then(function(d){v.setPlayer(d);v.set("isPageLoad",!1)})};
_.W.setPlayer=function(v){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22582_playerEvents);this.set("player",v);if(v){this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$22582_playerEvents);var e;(v==null?void 0:(e=v.getPresentingPlayerType)==null?void 0:e.call(v))===2&&this.playerAdStartHandler()}};
_.W.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.W.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.W.onVideoProgress=function(){var v,e,d=((v=this.player)==null?void 0:(e=v.getPresentingPlayerType)==null?void 0:e.call(v))===2;this.isAdPlaying!==d&&this.set("isAdPlaying",d)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],JJ.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JJ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],JJ.prototype,"isAdPlaying",void 0);
_.c([_.f({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],JJ.prototype,"isPageLoad",void 0);_.c([_.z({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],JJ);
_.A(JJ,"ytd-clip-section-footer-renderer",function(){if(RUr!==void 0)return RUr;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return RUr=v},{mode:1});var P9m;var xqr;var G$=function(){return _.P.apply(this,arguments)||this};
_.V(G$,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],G$.prototype,"data",void 0);_.c([_.z({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],G$);
_.A(G$,"ytd-clip-ad-state-renderer",function(){if(xqr!==void 0)return xqr;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return xqr=v},{mode:1});var B5V;var M2=function(){var v=_.P.apply(this,arguments)||this;v.value="";v.valid=!1;v.userChangedValue=!1;v.disabled=!1;v.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return v};
_.V(M2,_.P);_.W=M2.prototype;_.W.detached=function(){this.userChangedValue=!1};
_.W.handleKeyDown=function(v){if(_.S1)var e=13;else _.jh$&&_.WM?e=13:e=13;v.keyCode===e&&v.preventDefault()};
_.W.handleInput=function(){var v=_.IB(this.hostElement).querySelector("#title");if(v){var e=(v.value||"").replace(/\r|\n/g," ");this.set("value",e);v.value=e;this.valid=v.validate();this.userChangedValue=!0}};
_.W.handleBlur=function(){this.valid=_.IB(this.hostElement).querySelector("#title").validate()};
_.W.onValueChanged=function(){_.Iq(this.hostElement,"title-changed",{title:this.value})};
_.W.onValidChanged=function(){_.Iq(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.W.setInput=function(v,e){var d=_.IB(this.hostElement).querySelector("#title");d&&(d.value=v,this.handleInput(),e&&(d.invalid=!1,this.valid=!0))};
_.W.onClipCreationDisable=function(){this.set("disabled",!0)};
_.W.onClipCreationEnable=function(){this.set("disabled",!1)};
_.W.onClipCreationVisibilityChange=function(v){var e=this;v.visible?requestAnimationFrame(function(){var d;((d=_.IB(e.hostElement).querySelector("#title"))==null?void 0:d.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
M2.prototype.onValidChanged=M2.prototype.onValidChanged;M2.prototype.onValueChanged=M2.prototype.onValueChanged;M2.prototype.handleBlur=M2.prototype.handleBlur;M2.prototype.handleInput=M2.prototype.handleInput;M2.prototype.handleKeyDown=M2.prototype.handleKeyDown;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],M2.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],M2.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],M2.prototype,"value",void 0);_.c([_.f(),_.w("design:type",Object)],M2.prototype,"valid",void 0);_.c([_.f(),_.w("design:type",Object)],M2.prototype,"userChangedValue",void 0);_.c([_.f(),_.w("design:type",Object)],M2.prototype,"disabled",void 0);_.c([_.Kq("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],M2.prototype,"handleKeyDown",null);
_.c([_.Kq("input"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],M2.prototype,"handleInput",null);_.c([_.Kq("blur"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],M2.prototype,"handleBlur",null);_.c([_.$v("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],M2.prototype,"onValueChanged",null);
_.c([_.$v("valid"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],M2.prototype,"onValidChanged",null);_.c([_.z({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],M2);
_.A(M2,"ytd-clip-creation-text-input-renderer",function(){if(B5V!==void 0)return B5V;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return B5V=v},{mode:1});var C96;var Xuk;var zUa;var l2k;var HF$;var tJ=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};v.pendingStoryboardImages_={};v.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];v.tickLabelInterval=30;v.mediumTickInterval=5;v.largeTickInterval=15;v.aboveRulerHeight=32;v.rulerHeight=50;v.smallTickHeight=4;v.mediumTickHeight=8;v.largeTickHeight=16;v.mediaListeners_=
{};return v};
_.V(tJ,_.P);_.W=tJ.prototype;_.W.attached=function(){var v=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(e){e=_.a(["screen and (min-resolution: "+e+")","screen and (max-resolution: "+e+")"]);for(var d=e.next();!d.done;d=e.next()){d=d.value;var E=window.matchMedia(d);E&&(v.mediaListeners_[d]=v.updatePixelRatio_.bind(v),E.addEventListener?E.addEventListener("change",v.mediaListeners_[d]):E.addListener?E.addListener(v.mediaListeners_[d]):delete v.mediaListeners_[d])}})};
_.W.detached=function(){this.setPlayer(null);for(var v=_.a(Object.keys(this.mediaListeners_)),e=v.next();!e.done;e=v.next()){var d=e.value;e=this.mediaListeners_[d];(d=window.matchMedia(d))&&(d.removeEventListener?d.removeEventListener("change",e):d.removeListener&&d.removeListener(e))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.W.onVisibilityChangedAction_=function(v){var e=this;v.visible&&!this.player_&&(v=_.dB())&&v.getPlayerPromise().then(function(d){e.setPlayer(d)})};
_.W.setPlayer=function(v){v&&this.set("player_",v)};
_.W.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.W.setUpCanvas_=function(){var v=this.rulerWidth,e=this.devicePixelRatio_,d=this.visible;this.set("canvasReady_",!1);if(d&&e!==0){d=this.aboveRulerHeight+this.rulerHeight;var E=_.IB(this.hostElement).querySelector("#ticks");E.width=v*e;E.height=d*e;E.style.width=v+"px";E.style.height=d+"px";E.getContext("2d").scale(e,e);this.set("canvasReady_",!0)}};
_.W.drawRuler_=function(v,e,d,E,T,S,O,b,Y,q,r,h){v&&d&&e&&(v=_.IB(this.hostElement).querySelector("#ticks"),e=v.getContext("2d"),e.clearRect(0,0,v.width,v.height),e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),e.lineWidth=2,e.beginPath(),e.moveTo(0,this.aboveRulerHeight),e.lineTo(v.width,this.aboveRulerHeight),e.moveTo(0,v.height),e.lineTo(v.width,v.height),e.stroke(),this.drawRulerTicks_(v,S,T,E),this.drawStoryboardImages_(v,d,S,T,E),e.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
e.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(O-S,E,!1),this.rulerHeight),d=this.timeToPixels_(b-S,E,!1),e.fillRect(d,this.aboveRulerHeight,v.width-d,this.rulerHeight),this.drawSpeedLines_(v,S,h))};
_.W.drawRulerTicks_=function(v,e,d,E){var T=v.getContext("2d");T.save();T.lineWidth=1;for(var S=Math.floor(Math.max(0,e-this.tickLabelInterval));S<e+d;S++){T.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var O=(S-e)*E;T.beginPath();T.moveTo(O,v.height);var b=this.smallTickHeight;S%this.largeTickInterval===0?b=this.largeTickHeight:S%this.mediumTickInterval===0&&(b=this.mediumTickHeight);T.lineTo(O,v.height-b);T.stroke();S%this.tickLabelInterval===0&&(T.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),T.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),T.fillText(oh(S),O+4,12),T.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),T.moveTo(O,0),T.lineTo(O,this.aboveRulerHeight),T.stroke())}T.restore()};
_.W.percentToHex_=function(v){v=Math.round(v*255).toString(16);v.length<2&&(v="0"+v);return v};
_.W.drawSpeedLines_=function(v,e,d){var E=v.getContext("2d");E.save();var T=Math.min(25,Math.abs(d)-15)/25,S=v.width*.3*T,O=v.width*-.3,b=v.width*1.3,Y=this.aboveRulerHeight;v=v.height;var q=Math.round(4*T),r=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");r.length<7&&(r="#"+r.substring(1,4).repeat(2));var h=this.percentToHex_(.5+T/2);h=r+h;r+="00";if(T>0)for(T=0;T<q;T++){var K=O+Math.random()*(b-O),k=Y+Math.random()*(v-Y),J=S+e%S,R=E.createLinearGradient(K,k,K+J,k);
d<0?(R.addColorStop(0,h),R.addColorStop(.4,h),R.addColorStop(.9,r)):(R.addColorStop(.1,r),R.addColorStop(.6,h),R.addColorStop(1,h));E.strokeStyle=R;E.lineWidth=1;E.beginPath();E.moveTo(K,k);E.lineTo(K+J,k);E.stroke()}E.restore()};
_.W.getStoryboardForTime_=function(v,e,d){d===void 0&&(d=e.getNumberOfStoryboardLevels()-1);v=e.getStoryboardFrameIndex(v,d);return e.getStoryboardFrame(v,d)};
_.W.drawStoryboardImages_=function(v,e,d,E,T){if(!this.disabled){v=v.getContext("2d");var S=this.getStoryboardForTime_(0,e);if(S){var O=S.width/S.columns;S=S.height/S.rows;var b=O/S,Y=this.rulerHeight*b;Y=this.tickLabelInterval*(b<this.tickLabelInterval*T/this.rulerHeight?1/Math.floor(this.tickLabelInterval*T/Y):Math.round(Y/(this.tickLabelInterval*T)));var q=Y*T,r=this.rulerHeight,h=q/this.rulerHeight,K=Math.floor(Math.max(0,d-Y));for(K-=K%Y;K<d+E;K+=Y){var k=this.getStoryboardForTime_(K,e),J=this.getPreloadedStoryboard_(k.url);
if(J){var R=(K-d)*T,B=this.aboveRulerHeight,X=k.column*O,Z=k.row*S;if(b<h){var U=r/(q/b);k=O;U*=S;Z+=(S-U)/2}else k=q/(r*b)*O,U=S,X+=(O-k)/2;v.drawImage(J,X,Z,k,U,R,B,q,r)}else this.fetchStoryboardImage_(k)}}}};
_.W.getPreloadedStoryboard_=function(v){return this.storyboardImages_.find(function(e){if(e.src==v)return!0;var d=e.src.indexOf(v);return d!=-1&&d==e.src.length-v.length})};
_.W.fetchStoryboardImage_=function(v){var e=this,d=this.getPreloadedStoryboard_(v.url),E=this.pendingStoryboardImages_[v.url];d||E!==void 0||(d=new Promise(function(T){var S=new Image(v.width,v.height);S.src=v.url;S.onload=function(){T(S)};
S.onerror=function(){T(null)}}),this.pendingStoryboardImages_[v.url]=d,d.then(function(T){T&&e.push("storyboardImages_",T);
return T}).finally(function(){delete e.pendingStoryboardImages_[v.url]}))};
_.W.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.W.timeToPixels_=function(v,e,d){v*=e;return d===void 0||d?v+"px":v};
_.W.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
tJ.prototype.drawRuler_=tJ.prototype.drawRuler_;tJ.prototype.setUpCanvas_=tJ.prototype.setUpCanvas_;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],tJ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],tJ.prototype,"start",void 0);_.c([_.f({value:30}),_.w("design:type",Number)],tJ.prototype,"end",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],tJ.prototype,"visible",void 0);_.c([_.f(),_.w("design:type",Object)],tJ.prototype,"player_",void 0);_.c([_.f(),_.w("design:type",Number)],tJ.prototype,"tickSpacing",void 0);_.c([_.f(),_.w("design:type",Number)],tJ.prototype,"windowSizeSec",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],tJ.prototype,"rulerWidth",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],tJ.prototype,"rulerShift",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],tJ.prototype,"canvasReady_",void 0);_.c([_.f({value:function(){return[]}}),
_.w("design:type",Array)],tJ.prototype,"storyboardImages_",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],tJ.prototype,"disabled",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],tJ.prototype,"forceRender_",void 0);_.c([_.f({value:1}),_.w("design:type",Number)],tJ.prototype,"devicePixelRatio_",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],tJ.prototype,"windowSpeed",void 0);
_.c([_.$v("visible","devicePixelRatio_","rulerWidth"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tJ.prototype,"setUpCanvas_",null);
_.c([_.$v("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.w("design:type",Function),_.w("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.w("design:returntype")],tJ.prototype,"drawRuler_",null);_.c([_.lh({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],tJ);
_.A(tJ,"yt-clip-creation-scrubber-canvas",function(){if(HF$===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);HF$=v}v=HF$;return v},
{mode:2});var A76;var ZFY;var fA=function(){var v=_.P.apply(this,arguments)||this;v.start=0;v.end=30;v.visible=!1;v.draggingLeft_=!1;v.draggingRight_=!1;v.draggingRuler_=!1;v.draggingWindow_=!1;v.seekableStart=0;v.seekableEnd=0;v.rulerWidth_=0;v.rulerShift_=0;v.windowSlideSpeed=0;v.disabled=!1;v.initialized=!1;v.durationAccessibilityLabel="";v.activeLoopRange_=!1;v.rulerDragMouseStart_=0;v.rulerDragRulerStart_=0;v.rulerDragStartTime_=0;v.rulerDragEndTime_=0;v.dragMouseLastX_=0;v.scrollInterval_=null;v.scrubberVe_=null;v.boundHandlers_=
{};v.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return v};
_.V(fA,_.P);_.W=fA.prototype;
_.W.created=function(){var v=this;this.JSC$22595_playerEvents=new Map;this.JSC$22595_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22595_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22595_playerEvents.set("onStateChange",this.onStateChange_);var e={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(e).forEach(function(d){v.boundHandlers_[d]=e[d].bind(v)})};
_.W.attached=function(){this.activeLoopRange_=!1;_.IB(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.IB(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.bH(156731)};
_.W.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.IB(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.IB(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.W.onVisibilityChangedAction_=function(v){var e=this;v.visible&&!this.player_&&(v=_.dB())&&v.getPlayerPromise().then(function(d){e.setPlayer(d)})};
_.W.setPlayer=function(v){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22595_playerEvents);v&&(this.set("player_",v),this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$22595_playerEvents))};
_.W.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.W.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.W.beginHandleDrag_=function(v){this.disabled||(v.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=v.clientX,v.target===_.IB(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():v.target===_.IB(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.W.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.W.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.W.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.W.beginRulerDrag_=function(v){this.disabled||(v.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=v.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.W.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.W.beginWindowScroll_=function(){var v=this;this.scrollInterval_=setInterval(function(){var e=v.windowSlideSpeed;if(e=_.L2_(v.start,v.boundedRulerStartLimit_())?e-.1:_.L2_(v.end,v.boundedRulerEndLimit_())?e+.1:0){var d=v.capRulerOffset_(v.rulerShift_+e);d==v.rulerShift_?e=0:(v.set("rulerShift_",d),_.Iq(v.hostElement,"set-fixed-length-range",{start:v.start+e,duration:v.end-v.start}))}v.set("windowSlideSpeed",e)},33)};
_.W.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.W.endDrag_=function(){this.logClick();var v=void 0;this.draggingRight_?v=this.end-1:this.draggingLeft_&&(v=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,v);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))};
_.W.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.W.updateRulerSize_=function(){this.set("rulerWidth_",_.IB(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.W.handleMouseDrag_=function(v){v.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(v):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(v):this.draggingWindow_&&this.handleWindowDrag_(v))};
_.W.handleRulerDrag_=function(v){v=this.pixelsToTime_(v.clientX-this.rulerDragMouseStart_);v=this.capRulerOffset_(this.rulerDragRulerStart_-v);this.set("rulerShift_",v);var e=this.rulerDragStartTime_-(this.rulerDragRulerStart_-v);_.Iq(this.hostElement,"set-fixed-length-range",{start:e,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-v)-e})};
_.W.handleWindowDrag_=function(v){var e=v.clientX-this.dragMouseLastX_;this.dragMouseLastX_=v.clientX;v=this.pixelsToTime_(e);_.Iq(this.hostElement,"set-fixed-length-range",{start:this.start+v,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.W.capRulerOffset_=function(v){var e=this.seekableStart-this.pixelsToTime_(16),d=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(e,v),d)};
_.W.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.W.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.W.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.W.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.W.handleWindowHandleDrag_=function(v){var e=v.clientX-this.dragMouseLastX_;this.dragMouseLastX_=v.clientX;v=this.pixelsToTime_(e);if(this.draggingLeft_){var d=this.start+v;var E=this.end}else this.draggingRight_&&(d=this.start,E=this.end+v);_.Iq(this.hostElement,"set-range",{start:d,end:E,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.W.onVideoProgress_=function(v){this.disabled||(v=this.timeToPixels_(v-this.rulerShift_,this.tickSpacing_),_.IB(this.hostElement).querySelector("#playhead").style.transform="translateX("+v+")")};
_.W.onClipCreationDisable_=function(){this.endDrag_()};
_.W.timeToPixels_=function(v,e,d){v*=e;return d===void 0||d?v+"px":v};
_.W.pixelsToTime_=function(v){return v/this.tickSpacing_};
_.W.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.W.centerRuler_=function(v,e,d){this.set("rulerShift_",this.capRulerOffset_(v+(e-v)/2-d/2))};
_.W.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.W.updateLoopRange_=function(v,e,d,E,T,S,O){v&&(e&&E&&!d?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(v.pauseVideo(),v.seekTo(T,!1,void 0,void 0,50)):this.draggingRight_?(v.pauseVideo(),v.seekTo(S-.1,!1,void 0,void 0,50)):(O!==void 0?v.seekTo(O,!0,void 0,void 0,50):(e=v.getCurrentTime(),e<T||e>S?v.seekTo(T,!0,void 0,void 0,50):v.seekTo(e,!0,void 0,void 0,50)),v.playVideo()),v.setLoopRange({startTimeMs:T*1E3,endTimeMs:S*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(v.getCurrentTime())):
this.activeLoopRange_&&(v.setLoopRange(null),this.activeLoopRange_=!1))};
_.W.updateHandles_=function(){_.IB(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.IB(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.W.updateRuler_=function(){var v=this.end,e=this.start,d=this.draggableStartLimit_(),E=this.draggableEndLimit_();(e<d-.001||v>E+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.W.computeDurationLabel_=function(v,e){return v?v.replace("$clip_length",parseFloat(e).toFixed(1)):""};
_.W.computeDuration_=function(v,e){return this.isValidTime_(v)&&this.isValidTime_(e)&&v<e?e-v:0};
_.W.isValidTime_=function(v){return isNaN(parseFloat(v))||v<0?!1:this.player_?v>=this.seekableStart&&v<=this.seekableEnd:!0};
_.W.computeWindowSizeSec_=function(v,e,d){return Math.min((v||12E4)/1E3,d-e)};
_.W.computeTickSpacing_=function(v,e){return e?e/v:1};
_.W.onDragStateChanged_=function(){_.Iq(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.W.centerRangeOnTime_=function(v){var e=this.duration;v=sE$(v-e/2,e,this.seekableStart,this.seekableEnd);_.Iq(this.hostElement,"set-fixed-length-range",{start:v.start,duration:v.end-v.start})};
_.W.nearlyLessThan_=function(v,e,d){return v+(d===void 0?1E-6:d)<e};
_.W.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var v=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(v,this.start)||this.nearlyLessThan_(this.end,v))&&this.centerRangeOnTime_(v)}};
_.W.onStateChange_=function(v){this.visible&&!this.disabled&&v==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.W.computeDragState_=function(v,e,d,E){return v?"left":e?"right":d?"ruler":E?"window":"none"};
_.W.logClick=function(){var v=_.zz(),e=_.Xf();v&&e&&this.scrubberVe_&&(_.N("combine_ve_grafts")?_.bj(_.NC(),this.scrubberVe_,e):_.Qa(v,e,this.scrubberVe_),_.Uz(v,this.scrubberVe_))};
fA.prototype.onDragStateChanged_=fA.prototype.onDragStateChanged_;fA.prototype.updateRuler_=fA.prototype.updateRuler_;fA.prototype.updateHandles_=fA.prototype.updateHandles_;fA.prototype.onUpdateLoopRange=fA.prototype.onUpdateLoopRange;fA.prototype.onInitializedChanged_=fA.prototype.onInitializedChanged_;fA.prototype.onVisibleChanged_=fA.prototype.onVisibleChanged_;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],fA.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",Object)],fA.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"start",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"end",void 0);_.c([_.f({computed:"computeDuration_(start, end)"}),_.w("design:type",Number)],fA.prototype,"duration",void 0);
_.c([_.f(),_.w("design:type",String)],fA.prototype,"lengthTemplate",void 0);_.c([_.f({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.w("design:type",String)],fA.prototype,"durationLabel",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"visible",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"player_",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"draggingLeft_",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"draggingRight_",void 0);
_.c([_.f(),_.w("design:type",Object)],fA.prototype,"draggingRuler_",void 0);_.c([_.f({value:!1}),_.w("design:type",Object)],fA.prototype,"draggingWindow_",void 0);_.c([_.f({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.w("design:type",Number)],fA.prototype,"tickSpacing_",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"seekableStart",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"seekableEnd",void 0);
_.c([_.f(),_.w("design:type",Number)],fA.prototype,"windowSizeMs",void 0);_.c([_.f({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.w("design:type",Number)],fA.prototype,"windowSizeSec_",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"rulerWidth_",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"rulerShift_",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"windowSlideSpeed",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fA.prototype,"disabled",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"initialized",void 0);_.c([_.f(),_.w("design:type",Object)],fA.prototype,"durationAccessibilityLabel",void 0);_.c([_.f({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.w("design:type",String)],fA.prototype,"dragState",void 0);
_.c([_.$v("visible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"onVisibleChanged_",null);_.c([_.$v("initialized"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"onInitializedChanged_",null);_.c([_.$v("player_","visible","disabled","initialized","start","end"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"onUpdateLoopRange",null);
_.c([_.$v("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"updateHandles_",null);_.c([_.$v("start","end"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"updateRuler_",null);
_.c([_.$v("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"onDragStateChanged_",null);_.c([_.lh({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],fA);
_.A(fA,"yt-clip-creation-scrubber-view",function(){if(ZFY===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;A76===void 0&&(A76=document.createElement("template"));var E=A76;d.call(e,E.content.cloneNode(!0),v.content.firstChild);ZFY=v}v=ZFY;return v},{mode:2});var Ry=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};v.startHighlightTimeout=0;v.endHighlightTimeout=0;return v};
_.V(Ry,_.P);_.W=Ry.prototype;_.W.attached=function(){var v=this;this.startInput.addEventListener("input",function(e){return v.handleStartInput_(e)});
this.endInput.addEventListener("input",function(e){return v.handleEndInput_(e)});
this.startInput.addEventListener("focusout",function(e){return v.handleStartBlur_(e)});
this.endInput.addEventListener("focusout",function(e){return v.handleEndBlur_(e)})};
_.W.setPlayer=function(v){this.set("player_",v)};
_.W.onSetFixedLengthRange_=function(v){var e=v.detail;v=e.start;var d=e.duration,E=e.startLimit;e=e.endLimit;E||(E=this.seekableStart_);e||(e=this.seekableEnd_);v=sE$(v,d,E,e);this.start=v.start;this.end=v.end};
_.W.onSetRange_=function(v){var e=v.detail;v=e.start;var d=e.end,E=e.startLimit;e=e.endLimit;E||(E=this.seekableStart_);e||(e=this.seekableEnd_);if(v=Nnr(v,d,E,e,this.minLengthSec,this.maxLengthSec))this.start=v.start,this.end=v.end};
_.W.updateInputs_=function(){var v=this.end,e=this.start;this.startInput.focused||(this.startInput.value=oh(e,!0));this.endInput.focused||(this.endInput.value=oh(v,!0))};
_.W.handleStartInput_=function(v){v=jEY(v.target.value);if(v===null)this.set("startValid",!1);else{var e=this.end,d=Nnr(v,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);d?(this.set("endWillUpdate",d.end!==e),this.set("startValid",d.start===v)):this.set("startValid",!1)}};
_.W.handleEndInput_=function(v){v=jEY(v.target.value);if(v===null)this.set("endValid",!1);else{var e=this.start,d=k2J(this.start,v,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);d?(this.set("startWillUpdate",d.start!==e),this.set("endValid",d.end===v)):this.set("endValid",!1)}};
_.W.handleStartBlur_=function(v){v=jEY(v.target.value);v===null?this.startInput.value=oh(this.start,!0):this.forceUpdateInputs_(Nnr(v,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.W.handleEndBlur_=function(v){v=jEY(v.target.value);v===null?this.endInput.value=oh(this.end,!0):this.forceUpdateInputs_(k2J(this.start,v,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.W.forceUpdateInputs_=function(v){v&&(this.start=v.start,this.end=v.end);this.startInput.value=oh(this.start,!0);this.endInput.value=oh(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.W.initializeClipRange_=function(){var v=this.seekableEnd_,e=this.seekableStart_,d=this.visible_,E=this.player_;if(!E||!d||e===null||!v)this.set("initialized",!1);else if(!this.initialized){var T=E.getCurrentTime(),S=this.getDefaultLengthSec_();d=E.getVideoData();var O=E.getPlayerState()==1,b=d.isLive;S=Math.min(S,v-e);T=Math.max(0,T);v=b?k2J(T-S,T,e,v,this.minLengthSec,this.maxLengthSec):O?sE$(T-S/2,S,e,v):sE$(T,S,e,v);this.start=v.start;this.end=v.end;this.set("initialized",!0);d.isLive&&E.seekTo(v.start);
this.startInput.value=oh(this.start,!0);this.endInput.value=oh(this.end,!0)}};
_.W.onStartChanged_=function(){var v=this;_.Iq(this.hostElement,"start-changed",{start:this.start});var e;isNaN((e=this.oldStart)!=null?e:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){v.set("highlightStart",!1);v.startHighlightTimeout=0;v.oldStart=v.start},3E3))};
_.W.onEndChanged_=function(){var v=this;_.Iq(this.hostElement,"end-changed",{end:this.end});var e;isNaN((e=this.oldEnd)!=null?e:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){v.set("highlightEnd",!1);v.endHighlightTimeout=0;v.oldEnd=v.end},3E3))};
_.W.onVisibilityChangedAction_=function(v){var e=this;this.set("visible_",v.visible);this.visible_&&!this.player_&&(v=_.dB())&&v.getPlayerPromise().then(function(d){e.setPlayer(d)})};
_.W.computeMinLengthSec_=function(v){return v/1E3||5};
_.W.computeMaxLengthSec_=function(v){return v/1E3||60};
_.W.computeDefaultLengthSec_=function(v){return v/1E3};
_.W.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.W.computeSeekableStart_=function(v,e){return v&&e?v.getProgressState(1).seekableStart:0};
_.W.computeSeekableEnd_=function(v,e){return v&&e?v.getProgressState(1).seekableEnd:0};
_.W.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.W.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.W.onDragState_=function(v){this.set("highlightStart",v.detail.startChanging);this.set("highlightEnd",v.detail.endChanging)};
Ry.prototype.onDragState_=Ry.prototype.onDragState_;Ry.prototype.onEndChanged_=Ry.prototype.onEndChanged_;Ry.prototype.onStartChanged_=Ry.prototype.onStartChanged_;Ry.prototype.initializeClipRange_=Ry.prototype.initializeClipRange_;Ry.prototype.updateInputs_=Ry.prototype.updateInputs_;Ry.prototype.onSetRange_=Ry.prototype.onSetRange_;Ry.prototype.onSetFixedLengthRange_=Ry.prototype.onSetFixedLengthRange_;
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Ry.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ry.prototype,"data",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],Ry.prototype,"start",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],Ry.prototype,"startValid",void 0);
_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Ry.prototype,"startWillUpdate",void 0);_.c([_.f({value:30}),_.w("design:type",Number)],Ry.prototype,"end",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],Ry.prototype,"endValid",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Ry.prototype,"endWillUpdate",void 0);_.c([_.f({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.w("design:type",Number)],Ry.prototype,"minLengthSec",void 0);
_.c([_.f({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.w("design:type",Number)],Ry.prototype,"maxLengthSec",void 0);_.c([_.f({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.w("design:type",Number)],Ry.prototype,"defaultLengthSec",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],Ry.prototype,"visible_",void 0);_.c([_.f(),_.w("design:type",Object)],Ry.prototype,"player_",void 0);
_.c([_.f({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.w("design:type",Number)],Ry.prototype,"seekableStart_",void 0);_.c([_.f({computed:"computeSeekableEnd_(player_, visible_)"}),_.w("design:type",Number)],Ry.prototype,"seekableEnd_",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],Ry.prototype,"initialized",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Ry.prototype,"disabled",void 0);
_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Ry.prototype,"highlightStart",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Ry.prototype,"highlightEnd",void 0);_.c([_.sg("#start"),_.w("design:type",HTMLInputElement)],Ry.prototype,"startInput",void 0);_.c([_.sg("#end"),_.w("design:type",HTMLInputElement)],Ry.prototype,"endInput",void 0);
_.c([_.Kq("set-fixed-length-range"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ry.prototype,"onSetFixedLengthRange_",null);_.c([_.Kq("set-range"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ry.prototype,"onSetRange_",null);_.c([_.$v("start","end"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ry.prototype,"updateInputs_",null);
_.c([_.$v("player_","visible_","seekableStart_","seekableEnd_"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ry.prototype,"initializeClipRange_",null);_.c([_.$v("start"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ry.prototype,"onStartChanged_",null);_.c([_.$v("end"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ry.prototype,"onEndChanged_",null);
_.c([_.Kq("clips-drag-state"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ry.prototype,"onDragState_",null);_.c([_.lh({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Ry);
_.A(Ry,"yt-clip-creation-scrubber-renderer",function(){if(l2k===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;zUa===void 0&&(zUa=document.createElement("template"));var E=zUa;d.call(e,E.content.cloneNode(!0),v.content.firstChild);l2k=v}v=l2k;return v},{mode:2});var PU=function(){var v=_.P.apply(this,arguments)||this;v.player_=null;v.JSC$22609_playerEvents=new Map;v.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return v};
_.V(PU,_.P);_.W=PU.prototype;_.W.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"}}}};
_.W.created=function(){this.JSC$22609_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22609_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22609_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22609_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.W.detached=function(){this.setPlayer(null)};
_.W.onVisibilityChangedAction_=function(v){var e=this,d;if((d=this.data)==null?0:d.externalVideoId){var E;this.videoId=(E=this.data)==null?void 0:E.externalVideoId}this.getPlayer().then(function(T){if(v.visible)e.returnTime=T.getCurrentTime(),e.isAtLiveHead=T.getProgressState().isAtLiveHead;else{var S=e.returnTime;e.isAtLiveHead&&(S=Number.POSITIVE_INFINITY);T.seekTo(S,void 0,void 0,void 0,51)}})};
_.W.getPlayer=function(){var v=this;if(!this.player_){var e=_.dB();if(e)return e.getPlayerPromise().then(function(d){v.setPlayer(d);return d})}return Promise.resolve(this.player_)};
_.W.setPlayer=function(v){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22609_playerEvents);if(v){this.player_=v;var e;((e=this.data)==null?0:e.externalVideoId)||this.set("videoId",v.getVideoData().video_id||"");var d;(v==null?void 0:(d=v.getPresentingPlayerType)==null?void 0:d.call(v))===2&&(this.set("isAdPlaying",!0),_.b4(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(v,this.JSC$22609_playerEvents)}};
_.W.ready=function(){_.IB(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.W.onTitleChanged_=function(v){this.set("titleValue",v.detail.title)};
_.W.onStartChanged_=function(v){this.set("start",v.detail.start)};
_.W.onEndChanged_=function(v){this.set("end",v.detail.end)};
_.W.onTitleValidChanged_=function(v){this.set("titleValid",v.detail.valid)};
_.W.onStartValidChanged_=function(v){this.set("startValid",v.detail.valid)};
_.W.onEndValidChanged_=function(v){this.set("endValid",v.detail.valid)};
_.W.onVideoDataChange_=function(){var v;if((v=this.data)==null||!v.externalVideoId){var e;this.set("videoId",((e=this.player_)==null?void 0:e.getVideoData().video_id)||"")}};
_.W.computeFormValid_=function(v,e,d,E){return!!(v&&e&&d&&E)};
_.W.computeCancelButton_=function(v,e,d){return v&&_.L(v,_.BD)?{buttonRenderer:Object.assign({},_.L(v,_.BD),{isDisabled:e||d})}:null};
_.W.computeSubmitButton_=function(v,e,d){return v&&_.L(v,_.BD)?{buttonRenderer:Object.assign({},_.L(v,_.BD),{command:void 0,isDisabled:!this.formValid||e||d})}:null};
_.W.computeSubmitCommand_=function(v){return v||null};
_.W.onSubmit_=function(v){var e=this;v.stopPropagation();v.preventDefault();this.submitCommand_&&(v={},v.comment_text=this.titleValue,v.clip_external_video_id=this.videoId,v.clip_offset_ms=parseInt(this.start*1E3,10),v.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.mN(this.hostElement,[this.submitCommand_,v]).then(function(){e.set("isLoading_",!1)},function(){e.set("isLoading_",!1)}))};
_.W.playerAdStartHandler_=function(){_.b4(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.W.playerAdEndHandler_=function(){_.b4(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.W.onVideoProgress_=function(){var v=this;this.getPlayer().then(function(e){var d,E=(e==null?void 0:(d=e.getPresentingPlayerType)==null?void 0:d.call(e))===2;v.isAdPlaying!==E&&(E?v.playerAdStartHandler_():v.playerAdEndHandler_())})};
PU.prototype.onEndValidChanged_=PU.prototype.onEndValidChanged_;PU.prototype.onStartValidChanged_=PU.prototype.onStartValidChanged_;PU.prototype.onTitleValidChanged_=PU.prototype.onTitleValidChanged_;PU.prototype.onEndChanged_=PU.prototype.onEndChanged_;PU.prototype.onStartChanged_=PU.prototype.onStartChanged_;PU.prototype.onTitleChanged_=PU.prototype.onTitleChanged_;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],PU.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",Object)],PU.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],PU.prototype,"data",void 0);_.c([_.f({value:""}),_.w("design:type",String)],PU.prototype,"titleValue",void 0);
_.c([_.f({value:!1}),_.w("design:type",Boolean)],PU.prototype,"titleValid",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],PU.prototype,"start",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],PU.prototype,"startValid",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],PU.prototype,"end",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],PU.prototype,"endValid",void 0);_.c([_.f({value:""}),_.w("design:type",String)],PU.prototype,"videoId",void 0);
_.c([_.f({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.w("design:type",Boolean)],PU.prototype,"formValid",void 0);_.c([_.f({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.w("design:type",Object)],PU.prototype,"submitButton_",void 0);_.c([_.f({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.w("design:type",Object)],PU.prototype,"submitCommand_",void 0);
_.c([_.f({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.w("design:type",Object)],PU.prototype,"cancelButton_",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],PU.prototype,"isLoading_",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],PU.prototype,"isAdPlaying",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],PU.prototype,"returnTime",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],PU.prototype,"isAtLiveHead",void 0);
_.c([_.Kq("title-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],PU.prototype,"onTitleChanged_",null);_.c([_.Kq("start-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],PU.prototype,"onStartChanged_",null);_.c([_.Kq("end-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],PU.prototype,"onEndChanged_",null);
_.c([_.Kq("title-valid-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],PU.prototype,"onTitleValidChanged_",null);_.c([_.Kq("start-valid-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],PU.prototype,"onStartValidChanged_",null);_.c([_.Kq("end-valid-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],PU.prototype,"onEndValidChanged_",null);
_.c([_.lh({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],PU);
_.A(PU,"yt-clip-creation-renderer",function(){if(Xuk===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;C96===void 0&&(C96=document.createElement("template"));var E=C96;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Xuk=v}v=Xuk;return v},{mode:2});var xr=function(){return _.P.apply(this,arguments)||this};
_.V(xr,_.P);xr.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"}}}};
xr.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(v){return v.hasOwnProperty("clipCreationRenderer")})&&_.b4(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
xr.prototype.onPanelContentVisibleChanged=xr.prototype.onPanelContentVisibleChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Qy.YtVisibilityBehavior),_.w("design:type",Object)],xr.prototype,"ytVisibilityBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],xr.prototype,"ytdReduxBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],xr.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],xr.prototype,"panelContentVisible",void 0);_.c([_.$v("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xr.prototype,"onPanelContentVisibleChanged",null);_.c([_.z({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],xr);
_.A(xr,"ytd-clip-section-renderer",function(){if(P9m!==void 0)return P9m;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return P9m=v},{mode:1});var c7u;var BU=function(){return _.P.apply(this,arguments)||this};
_.V(BU,_.P);_.W=BU.prototype;
_.W.onKeyDown=function(v){if(this.snippetElements.length!==0&&(v=v.keyCode,v===38||v===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);v===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.M3(this.highlightedIndex,-1,this.snippetElements.length);v=this.snippetElements.length;var e=this.highlightedIndex%v;this.highlightedIndex=e*v<0?e+v:e;v=this.snippetElements[this.highlightedIndex];this.highlightSnippet(v);this.ensureVisible(v)}};
_.W.onKeyUp=function(v){var e=this;Es$(v)&&(v.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.RM.cancelJob(this.inputTimerId),this.inputTimerId=_.RM.addLowPriorityJob(function(){e.typedValue&&(e.fetchSnippets(e.typedValue),e.logInputGesture(e.data))},1E3))};
_.W.onClick=function(v){(v=_.awg(v.target,null,"snippet-item"))&&this.selectSnippet(v)};
_.W.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.W.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.W.ready=function(){var v=this;this.inputElement.addEventListener("focus",function(){v.snippetsWrapper.style.removeProperty("display")})};
_.W.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.W.getSourceTimelines=function(){if(!this.data)return[];var v=[];if(this.data.searchInVideoSources)for(var e=_.a(this.data.searchInVideoSources),d=e.next();!d.done;d=e.next())d=d.value,d==="SEARCH_IN_VIDEO_SOURCE_ASR"?v.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):d==="SEARCH_IN_VIDEO_SOURCE_OCR"&&v.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return v};
_.W.fetchSnippets=function(v){var e=_.b4(this.hostElement,"yt-get-current-video-id-action")[0],d=this.getSourceTimelines();v={getSearchInVideoCommand:{externalVideoId:e,query:v!=null?v:"",sourceTimelines:d},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}})};
_.W.filterSnippets=function(v,e){var d=this;if(e){this.filteredSnippets=(0,_.f0.unsafeClone)(v);var E=RegExp(_.Dsj(e),"i");this.filteredSnippets=this.filteredSnippets.filter(function(O){return E.test(d.ytRendererBehavior.getSimpleString(O.snippet))});
v=_.a(this.filteredSnippets);for(var T=v.next();!T.done;T=v.next()){T=T.value;var S=this.ytRendererBehavior.getSimpleString(T.snippet);T.snippet={runs:[{text:S.substring(0,S.toLowerCase().indexOf(e))},{text:S.substring(S.toLowerCase().indexOf(e),S.toLowerCase().indexOf(e)+e.length),bold:!0},{text:S.substring(S.toLowerCase().indexOf(e)+e.length,S.length)}]}}}else this.filteredSnippets=v};
_.W.onUpdateSearchInVideoResults=function(v){if(!(this.snippets.length>0)){var e,d,E;if((E=(e=_.L(v,qi6))==null?void 0:(d=e.results)==null?void 0:d.length)!=null&&E){var T;this.filteredSnippets=this.snippets=((T=_.L(v,qi6))==null?void 0:T.results).map(function(S){var O,b,Y;return{startMs:S==null?void 0:(O=S.searchInVideoResultRenderer)==null?void 0:O.startMs,startTimeText:S==null?void 0:(b=S.searchInVideoResultRenderer)==null?void 0:b.startTimeText,snippet:S==null?void 0:(Y=S.searchInVideoResultRenderer)==
null?void 0:Y.snippet}})}}};
_.W.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};
_.W.highlightSnippet=function(v){v.classList.add("highlighted")};
_.W.removeSnippetHighlight=function(v){v.classList.remove("highlighted")};
_.W.selectSnippet=function(v){this.typedValue=String(v.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(v);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.W.ensureVisible=function(v){var e=this.snippetsWrapper.scrollTop,d=e+this.snippetsWrapper.clientHeight,E=v.offsetTop-this.snippetsWrapper.offsetTop;v=E+v.clientHeight;E<e?this.snippetsWrapper.scrollTop-=e-E:v>d&&(this.snippetsWrapper.scrollTop+=v-d)};
_.W.seekPlayer=function(v){var e,d;return _.I(function(E){if(E.nextAddress==1){if(!v)return E.jumpTo(0);e=Number(v.dataset.startOffset);return E.yield(_.EK().getPlayerPromise(),3)}d=E.yieldResult;d.seekTo(e/1E3,!0);d.wakeUpControls();_.s9(E)})};
_.W.logInputGesture=function(v){var e=_.zz();e&&(v==null?0:v.trackingParams)&&_.pB(e,_.Jg(v.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.W.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("typed-value-changed",this.typedValue))};
_.W.updateTypedValueFromBinding=function(v){this.typedValue=v.currentTarget.value};
BU.prototype.typedValueChangedForBinding=BU.prototype.typedValueChangedForBinding;BU.prototype.dataChanged=BU.prototype.dataChanged;BU.prototype.panelContentVisibleChanged=BU.prototype.panelContentVisibleChanged;BU.prototype.onClick=BU.prototype.onClick;BU.prototype.onKeyUp=BU.prototype.onKeyUp;BU.prototype.onKeyDown=BU.prototype.onKeyDown;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],BU.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],BU.prototype,"data",void 0);_.c([_.f({value:[]}),_.w("design:type",Array)],BU.prototype,"snippets",void 0);_.c([_.f({value:[]}),_.w("design:type",Array)],BU.prototype,"filteredSnippets",void 0);_.c([_.f({value:[]}),_.w("design:type",Array)],BU.prototype,"snippetElements",void 0);
_.c([_.sg("#siv-input"),_.w("design:type",HTMLElement)],BU.prototype,"inputElement",void 0);_.c([_.sg("#siv-snippets-wrapper"),_.w("design:type",HTMLElement)],BU.prototype,"snippetsWrapper",void 0);_.c([_.f(),_.w("design:type",String)],BU.prototype,"typedValue",void 0);_.c([_.f({value:-1}),_.w("design:type",Number)],BU.prototype,"highlightedIndex",void 0);_.c([_.Kq("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[_.YN]),_.w("design:returntype")],BU.prototype,"onKeyDown",null);
_.c([_.Kq("keyup"),_.w("design:type",Function),_.w("design:paramtypes",[_.YN]),_.w("design:returntype")],BU.prototype,"onKeyUp",null);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],BU.prototype,"onClick",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],BU.prototype,"panelContentVisible",void 0);
_.c([_.$v("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],BU.prototype,"panelContentVisibleChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],BU.prototype,"dataChanged",null);_.c([_.$v("typedValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],BU.prototype,"typedValueChangedForBinding",null);
_.c([_.z({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],BU);
_.A(BU,"ytd-search-in-video-renderer",function(){if(c7u!==void 0)return c7u;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return c7u=v},{mode:1});var wu6;var CA=function(){return _.P.apply(this,arguments)||this};
_.V(CA,_.P);CA.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
CA.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]]"}}}}}};
CA.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var v,e,d,E,T=(e=_.L((v=this.data)==null?void 0:v.onClickCommand,_.$w))==null?void 0:(d=e.item)==null?void 0:(E=d.notificationTextRenderer)==null?void 0:E.successResponseText;T&&_.obL(this.hostElement,T)}};
_.vP.Object.defineProperties(CA.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E;return this.isProductPlaceholder&&((v=this.data)==null?void 0:(e=v.hiddenProductOptions)==null?void 0:e.showDropCountdown)&&!!((d=this.data)==null?0:(E=d.hiddenProductOptions)==null?0:E.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var v;return!this.isProductPlaceholder&&!((v=this.data)==null?0:v.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var v,e;return!((v=this.data)==null?0:v.priceReplacementText)&&!((e=this.data)==null||!e.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],CA.prototype,"componentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],CA.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("isProductPlaceholder"),_.w("design:type",Object),_.w("design:paramtypes",[])],CA.prototype,"useCenterLayoutContainer",null);_.c([_.f({computed:"computeButtonOverride(data)"}),_.w("design:type",Object)],CA.prototype,"buttonOverride",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],CA.prototype,"isProductPlaceholder",null);
_.c([_.t("isProductPlaceholder"),_.w("design:type",Object),_.w("design:paramtypes",[])],CA.prototype,"showDropCountdown",null);_.c([_.t("isProductPlaceholder","data"),_.w("design:type",Object),_.w("design:paramtypes",[])],CA.prototype,"showBrandName",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],CA.prototype,"showPriceReplacementText",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],CA.prototype,"showPrice",null);
_.c([_.t("isProductPlaceholder"),_.w("design:type",Object),_.w("design:paramtypes",[])],CA.prototype,"showMetadata",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],CA);
_.A(CA,"ytd-product-list-item-renderer",function(){if(wu6!==void 0)return wu6;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return wu6=v},{mode:1});var F7f;var XS=function(){return _.P.apply(this,arguments)||this};
_.V(XS,_.P);XS.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
XS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
XS.prototype.panelContentVisibleChanged=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return v.playerApi?d.jumpTo(2):d.yield(_.EK().getPlayerPromise(),3);d.nextAddress!=2&&(v.playerApi=d.yieldResult);(e=v.playerApi)==null||e.productsInVideoVisibilityUpdated(!!v.panelContentVisible);_.s9(d)})};
XS.prototype.panelContentVisibleChanged=XS.prototype.panelContentVisibleChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],XS.prototype,"panelContentVisible",void 0);_.c([_.f(),_.w("design:type",Object)],XS.prototype,"data",void 0);
_.c([_.$v("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],XS.prototype,"panelContentVisibleChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],XS);
_.A(XS,"ytd-product-list-renderer",function(){if(F7f!==void 0)return F7f;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return F7f=v},{mode:1});var Q0V;var z$=function(){var v=_.P.apply(this,arguments)||this;v.hideTimestamps=!!_.yy("hide-transcript-timestamps");v.currentCueIndex=-1;v.flatCues=[];v.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};v.TEST_ONLY={getFlatCues:function(){return v.flatCues}};
return v};
_.V(z$,_.P);_.W=z$.prototype;_.W.hideTimestampsChanged=function(){_.mZ("hide-transcript-timestamps",this.hideTimestamps)};
_.W.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.W.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.W.dataChanged=function(){var v;if((v=this.data)!=null&&v.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;v=_.a(this.data.cueGroups);for(var e=v.next();!e.done;e=v.next()){e=_.a(_.L(e.value,riD).cues);for(var d=e.next();!d.done;d=e.next())this.flatCues.push(Number(_.L(d.value,h_6).startOffsetMs))}}};
_.W.onYtPlayerTimeChanged=function(v){if(!(v<0)){for(var e=this.currentCueIndex,d=e;;){var E=d>=0?this.flatCues[d]/1E3:-1;if(v+.5<E)--d;else if(E=d+1<this.flatCues.length?this.flatCues[d+1]/1E3:Infinity,v+.5>E)d+=1;else break}d!==e&&(e>=0&&((v=this.getCueElement(e))&&v.classList.remove("active"),(e=this.getCueGroupElement(e))&&e.classList.remove("active")),(e=this.getCueElement(d))&&e.classList.add("active"),(e=this.getCueGroupElement(d))&&e.classList.add("active"),this.currentCueIndex=d,this.isHovered||
this.scrollElementToTop(d))}};
_.W.scrollElementToTop=function(v){v=this.getCueElement(v>=3?v-3:0);this.hostElement.scrollTop=Math.min(v.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.W.getCueElement=function(v){return _.IB(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[v]+'"]')};
_.W.getCueGroupElement=function(v){return(v=this.getCueElement(v))&&v.parentElement?v.parentElement.parentElement:null};
_.W.onTap=function(v){var e=_.ew(v);v.target.classList.contains("cue")&&this.seekCueElement(e)};
_.W.onKeyPress=function(v){v.keyCode==13&&(v=_.awg(v.target,null,"cue"))&&this.seekCueElement(v)};
_.W.seekCueElement=function(v){v=Number(v.getAttribute("start-offset"));_.b4(this.hostElement,"yt-transcript-player-seek",[v/1E3])};
_.W.onMouseEnter=function(){this.isHovered=!0};
_.W.onMouseLeave=function(){this.isHovered=!1};
z$.prototype.onMouseLeave=z$.prototype.onMouseLeave;z$.prototype.onMouseEnter=z$.prototype.onMouseEnter;z$.prototype.onKeyPress=z$.prototype.onKeyPress;z$.prototype.onTap=z$.prototype.onTap;z$.prototype.dataChanged=z$.prototype.dataChanged;z$.prototype.hideTimestampsChanged=z$.prototype.hideTimestampsChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],z$.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],z$.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],z$.prototype,"hideTimestamps",void 0);_.c([_.f(),_.w("design:type",Boolean)],z$.prototype,"isHovered",void 0);_.c([_.$v("hideTimestamps"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],z$.prototype,"hideTimestampsChanged",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],z$.prototype,"dataChanged",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],z$.prototype,"onTap",null);_.c([_.Kq("keypress"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],z$.prototype,"onKeyPress",null);
_.c([_.Kq("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],z$.prototype,"onMouseEnter",null);_.c([_.Kq("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],z$.prototype,"onMouseLeave",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],z$);
_.A(z$,"ytd-transcript-body-renderer",function(){if(Q0V!==void 0)return Q0V;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Q0V=v},{mode:1});var gam;var lE=function(){var v=_.P.apply(this,arguments)||this;v.darkerPanels=_.N("web_watch_darker_panels");return v};
_.V(lE,_.P);lE.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],lE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],lE.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],lE.prototype,"darkerPanels",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],lE);
_.A(lE,"ytd-transcript-footer-renderer",function(){if(gam!==void 0)return gam;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return gam=v},{mode:1});var usV;var nak;var HU=function(){var v=_.P.apply(this,arguments)||this;v.systemIcons=_.N("kevlar_system_icons");v.showClearButton=!1;return v};
_.V(HU,_.P);_.W=HU.prototype;_.W.handleInput=function(v){var e=this;v.target.value.length?_.gi(this,"ytdTranscriptSearchBoxSearch",function(){e.emitSearchEvent(v)},500):(_.HKs(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=v.target.value.length>0};
_.W.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.W.handleClick=function(){var v,e=(v=this.data)==null?void 0:v.trackingParams;e&&_.yV(_.NC(),e)};
_.W.handleClear=function(){_.HKs(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var v,e,d=(e=_.L((v=this.data)==null?void 0:v.clearButton,_.BD))==null?void 0:e.trackingParams;d&&_.yV(_.NC(),d);this.clear()};
_.W.emitSearchEvent=function(v){_.Iq(this.hostElement,"yt-transcript-search-box-search",{query:v.target.value});var e,d;(v=(d=_.L((e=this.data)==null?void 0:e.searchButton,_.BD))==null?void 0:d.trackingParams)&&_.yV(_.NC(),v)};
_.W.emitClearEvent=function(){_.Iq(this.hostElement,"yt-transcript-search-box-clear")};
_.vP.Object.defineProperties(HU.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.IB(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],HU.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],HU.prototype,"systemIcons",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],HU);
_.A(HU,"ytd-transcript-search-box-renderer",function(){if(nak!==void 0)return nak;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return nak=v},{mode:1});var Dq$;var Uqr;var AJ=function(){return _.P.apply(this,arguments)||this};
_.V(AJ,_.P);AJ.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var v,e;this.sectionHeaderAriaLabel=(v=this.data)==null?void 0:(e=v.accessibility)==null?void 0:e.accessibilityData.label}};
AJ.prototype.fireSelectedEvent=function(v){_.Iq(this.hostElement,"ytd-transcript-section-header",{startMs:v})};
AJ.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
AJ.prototype.handleKeyPress=function(v){this.data&&v.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.vP.Object.defineProperties(AJ.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=(v=this.data)==null?void 0:v.enableTappableTranscriptHeader)!=null?e:!1}}});
AJ.prototype.dataChanged=AJ.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],AJ.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],AJ.prototype,"sectionHeaderAriaLabel",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],AJ.prototype,"enableTappableTranscriptHeader",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],AJ.prototype,"dataChanged",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],AJ);
_.A(AJ,"ytd-transcript-section-header-renderer",function(){if(Uqr!==void 0)return Uqr;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Uqr=v},{mode:1});var puk;var vx6;var Zr=function(){var v=_.P.apply(this,arguments)||this;v.isEditMode=!1;v.touchCaptionsEnabled=!1;v.deleteCaptionCorrectionPopupCommand=null;v.voteCaptionCorrectionPopupCommand=null;v.roundedContainer=!0;v.mouseOver=!1;v.textChanged=!1;v.messages={suggest_correction:_.sz("suggest_correction",void 0,"Edit caption"),suggested_caption:_.sz("suggested_caption",void 0,"Suggested caption"),submit_correction:_.sz("submit_correction",void 0,"Submit for review"),cancel_correction:_.sz("cancel_correction",
void 0,"Cancel"),replay_segment:_.sz("replay_segment",void 0,"Re-play segment"),delete_correction:_.sz("delete_correction",void 0,"Delete correction")};v.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return v};
_.V(Zr,_.P);_.W=Zr.prototype;_.W.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)};
_.W.handleDelete=function(v){if(this.deleteCaptionCorrectionPopupCommand){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);e&&this.ytdOpenPopupBehavior.openPopup(e);v.stopPropagation()}};
_.W.handleSubmit=function(v){if(this.data&&this.data.submitCaptionCorrectionCommand&&(v.stopPropagation(),this.textChanged)){var e;v=(e=_.L(this.data.submitCaptionCorrectionCommand,_.EMu))==null?void 0:e.params;e=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:v,correctionText:String(this.ironTextAreaElement.value),originalText:_.vv(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(e);this.isEditMode=!1}};
_.W.handleUpdateSegmentText=function(v){(v=_.L(v,x1m))&&v.targetId&&this.data&&v.targetId===this.data.targetId&&(v.userCorrection&&(this.editedText=v.userCorrection),v.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.vv(this.data.snippet)),v.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=v.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=v.voteCaptionCorrectionPopupCommand?
v.voteCaptionCorrectionPopupCommand:null,v.accessibility&&(this.segmentAriaLabel=v.accessibility.accessibilityData.label))};
_.W.handleCancel=function(v){this.isEditMode=!1;v.stopPropagation();this.logClientVe(159409)};
_.W.handleEditSegmentCommand=function(v){(v=_.L(v,PSm))&&v.targetId&&this.data&&v.targetId===this.data.targetId&&this.handleEdit()};
_.W.handleEditButtonClick=function(v){this.data&&(this.handleEdit(),v.stopPropagation())};
_.W.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var v;(v=this.ironTextAreaElement.textarea)==null||v.focus();this.logClientVe(159407)}};
_.W.handleMouseEnter=function(){this.mouseOver=!0};
_.W.handleMouseLeave=function(){this.mouseOver=!1};
_.W.handleReplay=function(v){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),v.stopPropagation(),this.logClientVe(159408))};
_.W.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()))};
_.W.handleKeypress=function(v){this.data&&(this.isEditMode?v.stopPropagation():this.isEnterPress(v)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(v)&&this.logClientVe(138758))};
_.W.handleTextboxClick=function(v){v.stopPropagation()};
_.W.handleTextboxKeydown=function(v){this.isControlEnterPress(v)?this.handleSubmit(v):v.key==="Escape"&&this.handleCancel(v)};
_.W.handleTextboxKeyup=function(){this.textChanged=_.vv(this.latestText)!==String(this.ironTextAreaElement.value)};
_.W.fireSelectedEvent=function(v){_.Iq(this.hostElement,"yt-transcript-segment-selected",{startMs:v})};
_.W.fireReplayEvent=function(v,e){_.Iq(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(v-100,0),endMs:e})};
_.W.fireEditEvent=function(v,e){_.Iq(this.hostElement,"yt-transcript-segment-edit",{startMs:v,endMs:e})};
_.W.isEnterPress=function(v){return v.key==="Enter"||v.code==="Enter"||v.code==="NumpadEnter"||v.keyCode===13?!0:!1};
_.W.isControlEnterPress=function(v){var e=v.key==="Enter"||v.code==="Enter"||v.code==="NumpadEnter"||v.keyCode===13;return(v.ctrlKey||v.metaKey)&&e};
_.W.isCopyPress=function(v){var e=v.ctrlKey;return v.key==="c"&&e};
_.W.logClick=function(){var v,e=(v=this.data)==null?void 0:v.trackingParams;e&&_.yV(_.NC(),e)};
_.W.logClientVe=function(v){_.m3(_.NC(),_.bH(v))};
_.vP.Object.defineProperties(Zr.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}}});
Zr.prototype.handleMouseLeave=Zr.prototype.handleMouseLeave;Zr.prototype.handleMouseEnter=Zr.prototype.handleMouseEnter;Zr.prototype.dataChanged=Zr.prototype.dataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Zr.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],Zr.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Zr.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Zr.prototype,"isEditMode",void 0);_.c([_.f(),_.w("design:type",Object)],Zr.prototype,"touchCaptionsEnabled",void 0);_.c([_.f(),_.w("design:type",Object)],Zr.prototype,"editedText",void 0);_.c([_.f(),_.w("design:type",Object)],Zr.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.c([_.f(),_.w("design:type",Object)],Zr.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.c([_.f(),_.w("design:type",String)],Zr.prototype,"segmentAriaLabel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Zr.prototype,"roundedContainer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Zr.prototype,"mouseOver",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Zr.prototype,"textChanged",void 0);_.c([_.f(),_.w("design:type",Object)],Zr.prototype,"messages",void 0);
_.c([_.sg("#suggestion"),_.w("design:type",Object)],Zr.prototype,"ironTextAreaElement",void 0);_.c([_.t("data","editedText"),_.w("design:type",Object),_.w("design:paramtypes",[])],Zr.prototype,"latestText",null);_.c([_.t("touchCaptionsEnabled","isEditMode"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zr.prototype,"enableEditButton",null);
_.c([_.t("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zr.prototype,"enableUndoButton",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Zr.prototype,"dataChanged",null);_.c([_.Kq("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Zr.prototype,"handleMouseEnter",null);
_.c([_.Kq("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Zr.prototype,"handleMouseLeave",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Zr);
_.A(Zr,"ytd-transcript-segment-renderer",function(){if(vx6!==void 0)return vx6;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return vx6=v},{mode:1});var cU=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};v.isError=!1;v.darkerPanels=_.N("web_watch_darker_panels");v.useParentMaxHeight=_.N("web_watch_transscript_use_parent_max_height");v.segmentOffsets=[];v.segmentIndex=-1;return v};
_.V(cU,_.P);_.W=cU.prototype;_.W.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"}}}}};
_.W.segmentsChanged=function(){this.updateOffsets()};
_.W.onYtPlayerTimeChanged=function(v){for(var e=this.segmentIndex,d=e;;){if(d>=0){var E=this.segmentOffsets[d].start;var T=this.segmentOffsets[d].isAutoScrollable}else E=-1,T=!0;var S=v+.5;if(!T){E=d+1<this.segmentOffsets.length?this.segmentOffsets[d+1].start:Infinity;if(S>=E){d+=1;continue}d=-1;break}if(S<E)E=d-1>=0&&this.segmentOffsets[d-1].isAutoScrollable,T=d===0||E?1:2,d-=T;else if(T=d+1<this.segmentOffsets.length&&this.segmentOffsets[d+1].isAutoScrollable?1:2,E=d+T<this.segmentOffsets.length?
this.segmentOffsets[d+T].start:Infinity,S>E)d+=T;else{if(d<0)break;d<this.segmentOffsets.length&&S>this.segmentOffsets[d].end&&(d=-1);break}}if(e!==d){if(e>=0){var O;(O=this.getSegmentElement(e))==null||O.classList.remove("active")}this.segmentIndex=d;if(!(d<0)){var b;(b=this.getSegmentElement(d))==null||b.classList.add("active");this.isHovered||this.scrollElementToTop(d)}}};
_.W.handleSegmentEdit=function(v){v.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=v.target,_.b4(this.hostElement,"yt-transcript-player-edit",[v.detail.startMs/1E3,v.detail.endMs/1E3]))};
_.W.handleSegmentSelected=function(v){_.b4(this.hostElement,"yt-transcript-player-seek",[v.detail.startMs/1E3])};
_.W.handleSegmentReplay=function(v){_.b4(this.hostElement,"yt-transcript-player-replay",[v.detail.startMs/1E3,v.detail.endMs/1E3])};
_.W.handleSectionHeaderSelected=function(v){_.b4(this.hostElement,"yt-transcript-player-seek",[v.detail.startMs/1E3])};
_.W.onMouseEnter=function(){this.isHovered=!0};
_.W.onMouseLeave=function(){this.isHovered=!1};
_.W.onRetryButtonClick=function(){_.Iq(this.hostElement,"transcript-retry-button-click")};
_.W.getSegmentElement=function(v){return _.IB(this.hostElement).querySelector(":nth-child("+(v+1)+")")};
_.W.scrollElementToTop=function(v){v=this.getSegmentElement(v>=2?v-2:0);this.hostElement.scrollTop=Math.min(v.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.W.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(v){var e,d=(e=v.transcriptSegmentRenderer)!=null?e:v.transcriptSectionHeaderRenderer;return{start:Number(d.startMs)/1E3,end:Number(d.endMs)/1E3,isAutoScrollable:v.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.W.clearHighlightedSegments=function(){var v=_.IB(this.hostElement);v=_.a(v.querySelectorAll("ytd-transcript-segment-renderer"));for(var e=v.next();!e.done;e=v.next())e.value.classList.remove("active")};
_.vP.Object.defineProperties(cU.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:v.searchResultSegments)||((e=this.data)==null?void 0:e.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
cU.prototype.onMouseLeave=cU.prototype.onMouseLeave;cU.prototype.onMouseEnter=cU.prototype.onMouseEnter;cU.prototype.handleSectionHeaderSelected=cU.prototype.handleSectionHeaderSelected;cU.prototype.handleSegmentReplay=cU.prototype.handleSegmentReplay;cU.prototype.handleSegmentSelected=cU.prototype.handleSegmentSelected;cU.prototype.handleSegmentEdit=cU.prototype.handleSegmentEdit;cU.prototype.segmentsChanged=cU.prototype.segmentsChanged;
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],cU.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],cU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],cU.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],cU.prototype,"isError",void 0);
_.c([_.f(),_.w("design:type",Object)],cU.prototype,"noResultLabel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],cU.prototype,"darkerPanels",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],cU.prototype,"useParentMaxHeight",void 0);_.c([_.t("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],cU.prototype,"segments",null);
_.c([_.t("segments","noResultLabel"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],cU.prototype,"displayNoResults",null);_.c([_.$v("segments"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cU.prototype,"segmentsChanged",null);_.c([_.Kq("yt-transcript-segment-edit"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],cU.prototype,"handleSegmentEdit",null);
_.c([_.Kq("yt-transcript-segment-selected"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],cU.prototype,"handleSegmentSelected",null);_.c([_.Kq("yt-transcript-segment-replay"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],cU.prototype,"handleSegmentReplay",null);
_.c([_.Kq("ytd-transcript-section-header"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],cU.prototype,"handleSectionHeaderSelected",null);_.c([_.Kq("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cU.prototype,"onMouseEnter",null);_.c([_.Kq("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cU.prototype,"onMouseLeave",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],cU);
_.A(cU,"ytd-transcript-segment-list-renderer",function(){if(puk!==void 0)return puk;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return puk=v},{mode:1});var w4=function(){var v=_.P.apply(this,arguments)||this;v.hideTimestamps=!!_.yy("hide-transcript-timestamps");v.isLoadingTranscripts=!1;v.darkerPanels=_.N("web_watch_darker_panels");v.isError=!1;v.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return v};
_.V(w4,_.P);_.W=w4.prototype;_.W.headerChanged=function(){var v,e;this.baseGetTranscriptsCommand=(e=_.L((v=this.data)==null?void 0:v.header,B9D))==null?void 0:e.onTextChangeCommand};
_.W.bodyChanged=function(){var v=this.getBodyRenderer();v&&(v.initialSegments&&(this.initialTranscriptsRenderer=v),v.noResultLabel&&(this.noResultLabel=v.noResultLabel),v.retryLabel&&(this.retryLabel=v.retryLabel))};
_.W.detached=function(){this.clearSearchBoxText()};
_.W.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.W.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"}}}};
_.W.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.W.fireSearch=function(v){var e=this;if(v){var d=v.detail.query;if(this.baseGetTranscriptsCommand){var E;v=(E=_.L(this.baseGetTranscriptsCommand,_.RY6))==null?void 0:E.params;var T;E=_.L((T=this.data)==null?void 0:T.footer,KfT);var S;if((T=(S=_.L(E==null?void 0:E.languageMenu,tsT))==null?void 0:S.subMenuItems)&&T.length>0&&(S=T.find(function(Y){return Y.selected}))){var O,b;
v=(O=S.continuation)==null?void 0:(b=O.reloadContinuationData)==null?void 0:b.continuation}O=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:v,searchQuery:d}});this.ytComponentBehavior.resolveCommand(O,{commandController:{onServerError:function(){e.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});e_J(this.ytContinuationHandlerBehavior,function(){return d===e.getCurrentSearchBoxText()})}}};
_.W.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.W.onRetryButtonClick=function(){this.isError=!1;var v={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:v}))};
_.W.hideTimestampsChanged=function(){_.mZ("hide-transcript-timestamps",this.hideTimestamps)};
_.W.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.W.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.W.handleSignalActionCopyTranscript=function(){var v=this,e=this.getBodyRenderer();e&&(e=((e==null?void 0:e.searchResultSegments)||(e==null?void 0:e.initialSegments)||[]).map(function(d){return _.L(d,XOD)}).filter(function(d){return!!d}).map(function(d){return{snippet:d.snippet||{runs:[{text:""}]},
startTimeText:d.startTimeText||{simpleText:""}}}).map(function(d){var E=(d.snippet.runs||[]).reduce(function(T,S){return T+S.text},"");
return v.hideTimestamps?E:d.startTimeText.simpleText+" "+E}).join("\n"),this.copyToClipboard(e))};
_.W.copyToClipboard=function(v){navigator.clipboard&&navigator.clipboard.writeText(v)};
_.W.getCurrentSearchBoxText=function(){var v;return(v=this.searchBox)==null?void 0:v.value};
_.W.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.W.getBodyRenderer=function(){var v;return _.L((v=this.data)==null?void 0:v.body,CSk)};
_.W.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.vP.Object.defineProperties(w4.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.IB(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
w4.prototype.hideTimestampsChanged=w4.prototype.hideTimestampsChanged;w4.prototype.searchCleared=w4.prototype.searchCleared;w4.prototype.fireSearch=w4.prototype.fireSearch;w4.prototype.onReloadContinuationFinish=w4.prototype.onReloadContinuationFinish;w4.prototype.bodyChanged=w4.prototype.bodyChanged;w4.prototype.headerChanged=w4.prototype.headerChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],w4.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.FL),_.w("design:type",Object)],w4.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],w4.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],w4.prototype,"hideTimestamps",void 0);
_.c([_.f(),_.w("design:type",Object)],w4.prototype,"isLoadingTranscripts",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],w4.prototype,"darkerPanels",void 0);_.c([_.f(),_.w("design:type",Object)],w4.prototype,"isError",void 0);_.c([_.$v("data.header"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],w4.prototype,"headerChanged",null);
_.c([_.V1("data.body"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],w4.prototype,"bodyChanged",null);_.c([_.Kq("yt-reload-continuation-finish"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],w4.prototype,"onReloadContinuationFinish",null);_.c([_.Kq("yt-transcript-search-box-search"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],w4.prototype,"fireSearch",null);
_.c([_.Kq("yt-transcript-search-box-clear"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],w4.prototype,"searchCleared",null);_.c([_.$v("hideTimestamps"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],w4.prototype,"hideTimestampsChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],w4);
_.A(w4,"ytd-transcript-search-panel-renderer",function(){if(Dq$!==void 0)return Dq$;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Dq$=v},{mode:1});var FS=function(){var v=_.P.apply(this,arguments)||this;v.player=null;v.playerPollJobId=0;return v};
_.V(FS,_.P);_.W=FS.prototype;_.W.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.W.onLoadReloadContinuation=function(v){_.N("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:v.target.data.continuation}}):(v={clickTrackingParams:v.target.data.clickTrackingParams,getTranscriptEndpoint:{params:v.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}}))};
_.W.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"}}}};
_.W.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.W.attached=function(){this.updatePlayerListening()};
_.W.detached=function(){this.updatePlayerListening()};
_.W.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.W.startPlayerListening=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return(e=_.dB())?d.yield(e.getPlayerPromise(),2):d.return();v.player=d.yieldResult;v.playerPollJobId=_.RM.addLowPriorityJob(function(){v.getPlayerVideoProgress()},1E3);
v.player.addEventListener("onCueRangeEnter",function(E){v.onCueRangeEnter(E)});
v.player.addEventListener("onCueRangeExit",function(E){v.onCueRangeExit(E)});
v.player.addEventListener("onStateChange",function(E){v.onPlayerStateChange(E)});
v.player.addEventListener("SEEK_TO",function(E){v.onPlayerSeek(E)});
_.s9(d)})};
_.W.getPlayerVideoProgress=function(){var v=this;_.RM.cancelJob(this.playerPollJobId);if(this.player){var e=this.player.getCurrentTime();_.b4(this.hostElement,"yt-player-time-changed",[e])}this.playerPollJobId=_.RM.addLowPriorityJob(function(){v.getPlayerVideoProgress()},1E3)};
_.W.stopPlayerListening=function(){this.player=null;_.RM.cancelJob(this.playerPollJobId)};
_.W.onPlayerStateChange=function(v){v===2&&this.removePendingCue()};
_.W.onPlayerSeek=function(v){var e;if(e=this.pendingReplayCueId)e=this.pendingReplayCueId,e=v===(_.N("web_transcript_cue_id_killswitch")?Number(e):Number(e.split("_")[1]));e||this.removePendingCue()};
_.W.onCueRangeEnter=function(v){VAV(v)&&(this.pendingReplayCueId=v)};
_.W.onCueRangeExit=function(v){VAV(v)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.W.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.W.onYtTranscriptPlayerSeek=function(v){this.player&&this.player.seekTo(v,!0)};
_.W.onYtTranscriptPlayerReplay=function(v,e){this.player&&(this.player.addCueRange(LgJ(v),v,e),this.player.seekTo(v,!0),this.player.playVideo())};
_.W.onYtTranscriptPlayerEdit=function(v,e){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(LgJ(v),v,e),this.player.seekTo(v,!0))};
FS.prototype.onLoadReloadContinuation=FS.prototype.onLoadReloadContinuation;FS.prototype.panelContentVisibleChanged=FS.prototype.panelContentVisibleChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],FS.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],FS.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],FS.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],FS.prototype,"panelContentVisible",void 0);_.c([_.$v("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FS.prototype,"panelContentVisibleChanged",null);
_.c([_.Kq("yt-load-reload-continuation"),_.w("design:type",Function),_.w("design:paramtypes",[Object]),_.w("design:returntype")],FS.prototype,"onLoadReloadContinuation",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],FS);
_.A(FS,"ytd-transcript-renderer",function(){if(usV!==void 0)return usV;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return usV=v},{mode:1});var eWJ;var dRk;var QY=function(){return _.P.apply(this,arguments)||this};
_.V(QY,_.P);QY.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.ya(this.hostElement,[this.data.clickCommand],this.hostElement))};
QY.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Z$)()+_.Bo)+"px)"};
QY.prototype.updateShouldHideFromBinding=function(v){this.shouldHide=v.detail.value};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],QY.prototype,"rendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],QY.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],QY.prototype,"shouldHide",void 0);_.c([_.z({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],QY);
_.A(QY,"ytd-ad-engagement-panel-banner-renderer",function(){if(dRk!==void 0)return dRk;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return dRk=v},{mode:_.bk("kevlar_poly_si_batch_j070")?1:2});var Exr;var g4=function(){var v=_.P.apply(this,arguments)||this;v.modernPanels=_.N("kevlar_watch_modern_panels");v.buttonUpdate=_.N("web_modern_buttons");v.adsSemanticText=_.N("enable_ads_web_ep_buenos_aires_and_padding_fix");return v};
_.V(g4,_.P);g4.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.c([_.f(),_.w("design:type",Object)],g4.prototype,"data",void 0);_.c([_.f({computed:"computeHideDefaultAdBadge(data)"}),_.w("design:type",Boolean)],g4.prototype,"hideDefaultAdBadge",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],g4.prototype,"modernPanels",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],g4.prototype,"buttonUpdate",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],g4.prototype,"adsSemanticText",void 0);
_.c([_.z({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],g4);
_.A(g4,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Exr!==void 0)return Exr;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Exr=v},{mode:1});var TrJ;var uE=function(){var v=_.P.apply(this,arguments)||this;v.darkerPanels=_.N("web_watch_darker_panels");v.enableSqueezebackPanels=_.N("web_shorts_enable_squeezeback_panels");v.enableAnchoredPanel=_.N("desktop_shorts_v2_anchored_panel");v.modernPanels=_.N("kevlar_watch_modern_panels");v.headerClickListener=function(e){v.onHeaderClick(e)};
v.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return v};
_.V(uE,_.P);_.W=uE.prototype;_.W.computeAdsInfoButton=function(){if(_.N("web_modern_buttons")){var v,e;return(e=_.L((v=this.data)==null?void 0:v.subtitleComplex,$1$))==null?void 0:e.adInfoRenderer}};
_.W.updateHeaderClickListener=function(){var v,e,d;((v=this.data)==null?0:v.navigationEndpoint)||((e=this.data)==null?0:e.onClickCommand)||_.L((d=this.data)==null?void 0:d.visibilityButton,_.C6)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.W.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}}}}}};
_.W.collapsedChanged=function(){var v;(v=this.data)!=null&&v.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.N("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.W.focus=function(v){var e=this;this.titleElement&&_.RM.addJob(function(){_.gt(e.titleElement,v)},0,500)};
_.W.computeTitleAriaLabel=function(v){var e=[];if(v.title){var d,E;e.push(this.ytRendererBehavior.getSimpleString(v.title)||((d=v.title.accessibility)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label))}v.contextualInfo&&e.push(this.ytRendererBehavior.getSimpleString(v.contextualInfo));return e.join(" ")};
_.W.onHeaderClick=function(v){this.shouldTriggerHeaderClick(v)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.ya(this.hostElement,[this.data.onClickCommand],this.hostElement)):(v=this.getVisibilityToggleButton())&&v.click())};
_.W.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var v=_.L(this.data.visibilityButton,_.BD)||_.L(this.data.visibilityButton,_.C6);v&&this.ytRendererBehavior.logExplicitClick(v)}};
_.W.getVisibilityToggleButton=function(){var v=_.IB(this.hostElement).querySelector("#visibility-button").firstElementChild;return(v==null?void 0:v.is)==="ytd-toggle-button-renderer"?v:null};
_.W.shouldTriggerHeaderClick=function(v){return!_.UG(_.vg(v),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.W.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(v){v=_.L(v,_.Iw6);this.targetId&&(v==null?void 0:v.targetId)===this.targetId&&(v=v.navigationButton)&&this.set("data.navigationButton",v)};
_.vP.Object.defineProperties(uE.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.N("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var v;return!!(((v=this.entity)==null?0:v.isActionButtonHidden)||this.hideActionButton)}}});
uE.prototype.collapsedChanged=uE.prototype.collapsedChanged;uE.prototype.updateHeaderClickListener=uE.prototype.updateHeaderClickListener;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],uE.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],uE.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],uE.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],uE.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],uE.prototype,"targetId",void 0);_.c([_.f(),_.w("design:type",Boolean)],uE.prototype,"collapsed",void 0);_.c([_.f(),_.w("design:type",Boolean)],uE.prototype,"hideActionButton",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],uE.prototype,"shortsPanel",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],uE.prototype,"liveChatEngagementPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],uE.prototype,"learningChatEngagementPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],uE.prototype,"darkerPanels",void 0);_.c([_.sg("#title"),_.w("design:type",HTMLElement)],uE.prototype,"titleElement",void 0);_.c([_.sg("#header"),_.w("design:type",HTMLElement)],uE.prototype,"headerElement",void 0);
_.c([_.f({computed:"computeAdsInfoButton(data)"}),_.w("design:type",Object)],uE.prototype,"adsInfoButton",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],uE.prototype,"enableSqueezebackPanels",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],uE.prototype,"enableAnchoredPanel",void 0);_.c([_.f({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(v,e){return _.h_(v.entities,"engagementPanelTitleHeaderEntity",e)}}),
_.w("design:type",Object)],uE.prototype,"entity",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],uE.prototype,"modernPanels",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("targetId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uE.prototype,"adsSemanticText",null);_.c([_.$v("data","data.navigationEndpoint","data.onClickCommand"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uE.prototype,"updateHeaderClickListener",null);
_.c([_.V1("collapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uE.prototype,"collapsedChanged",null);_.c([_.t("entity","hideActionButton"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uE.prototype,"isActionButtonHidden",null);_.c([_.z({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],uE);
_.A(uE,"ytd-engagement-panel-title-header-renderer",function(){if(TrJ!==void 0)return TrJ;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return TrJ=v},{mode:1});var SaT;var nA=function(){return _.P.apply(this,arguments)||this};
_.V(nA,_.P);nA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],nA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],nA.prototype,"data",void 0);_.c([_.z({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],nA);
_.A(nA,"ytd-macro-markers-info-item-renderer",function(){if(SaT!==void 0)return SaT;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return SaT=v},{mode:1});var W1r;var O0r=function(v,e,d,E,T,S){_.kh.call(this);var O=this;this.JSC$22711_containerElement=v;this.hostElement=e;this.supportedSyncItems=d;this.syncEntityKey=E;this.options=T;this.renderLazyListItems=S;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;aPr(this);i0D(this);this.JSC$22711_scrollAnimation=new _.Fi(function(b){v.scrollTop=b});
_.Yh(this,this.JSC$22711_scrollAnimation);this.addOnDisposeCallback(function(){O.exitBrowsingMode(!1);O.activeItem&&O.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.V(O0r,_.kh);var aPr=function(v){var e=_.ji(_.dk().resolve(_.Hl),function(d){return d.entities.markersEngagementPanelSyncEntity||{}},function(d,E){var T;
d[v.syncEntityKey]!==E[v.syncEntityKey]&&((T=d[v.syncEntityKey])==null?void 0:T.activeItemIndex)!==void 0&&v.updatePanelActiveItem(d[v.syncEntityKey].activeItemIndex)});
v.unsubscribeFromTimedMarkersListSyncEntity=e;v.addOnDisposeCallback(e);IPm(v)},IPm=function(v){var e=_.dk().resolve(_.Hl);
e=_.zO0(e.getState(),v.syncEntityKey);(e==null?void 0:e.activeItemIndex)!==void 0&&(e=v.getItemByIndex(e.activeItemIndex))&&v.setActiveItem(e)},i0D=function(v){var e=new _.wB(v.onScroll,50,v);
_.Yh(v,e);var d=function(){e.fire()};
v.JSC$22711_containerElement.addEventListener("scroll",d);v.addOnDisposeCallback(function(){v.JSC$22711_containerElement.removeEventListener("scroll",d)})};
_.W=O0r.prototype;
_.W.updatePanelActiveItem=function(v){var e=this.getItemByIndex(v);if(e){if(this.setActiveItem(e),this.contentVisible)if(this.browsingMode){var d;((d=this.options)==null?void 0:d.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(v=b06(this),e.offsetTop<this.JSC$22711_containerElement.clientHeight+this.JSC$22711_containerElement.scrollTop&&v&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));Yam(this)}else this.scrollToItem(e)}else _.xf(new _.kL("Could not find "+this.supportedSyncItems+
" sync child to set active.",v,this.JSC$22711_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.W.getItemByIndex=function(v){var e;(e=this.renderLazyListItems)==null||e.call(this,v);e=this.JSC$22711_containerElement.querySelectorAll(this.supportedSyncItems);if(e.length>v)return e[v]};
_.W.setActiveItem=function(v){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));v.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=v};
_.W.scrollToItem=function(v){v=this.getScrollPositionForItem(v);this.JSC$22711_containerElement.scrollTop!==v&&this.JSC$22711_scrollAnimation.start(this.JSC$22711_containerElement.scrollTop,v,300)};
_.W.getScrollPositionForItem=function(v){if(this.JSC$22711_containerElement.querySelectorAll(this.supportedSyncItems)[0]===v)return 0;var e,d=((e=this.options)==null?0:e.percentOffset)?this.JSC$22711_containerElement.clientHeight*this.options.percentOffset:0;v=_.C0(v).y+this.JSC$22711_containerElement.scrollTop-(_.C0(this.JSC$22711_containerElement).y+d);return Math.max(0,Math.min(v,this.JSC$22711_containerElement.scrollHeight-this.JSC$22711_containerElement.offsetHeight))};
_.W.onScroll=function(){this.activeItemBelowSyncPosition=b06(this);if(this.activeItem&&!this.JSC$22711_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22711_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var v;switch((v=this.options)==null?void 0:v.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!mRu(this));Yam(this);break;default:this.enterBrowsingMode(!0)}}};
_.W.enterBrowsingMode=function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1){if(e.browsingMode)return T.return();e.browsingMode=!0;v&&e.hostElement.classList.add("browsing-mode");e.playerExitBrowsingModeListener=function(){e.exitBrowsingMode(!1)};
return T.yield(_.Yz(),2)}d=T.yieldResult;(E=d)==null||E.addEventListener("SEEK_TO",e.playerExitBrowsingModeListener);_.s9(T)})};
_.W.exitBrowsingMode=function(v){v=v===void 0?!0:v;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),v&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.W.removePlayerSeekListener=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1)return v.playerExitBrowsingModeListener?E.yield(_.Yz(),3):E.jumpTo(0);e=E.yieldResult;(d=e)==null||d.removeEventListener("SEEK_TO",v.playerExitBrowsingModeListener);v.playerExitBrowsingModeListener=void 0;_.s9(E)})};
var Yam=function(v){var e;((e=v.options)==null?void 0:e.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(mRu(v)?v.hostElement.classList.remove("browsing-mode"):v.activeItem&&v.hostElement.classList.add("browsing-mode"))},b06=function(v){if(!v.activeItem)return!1;
var e,d=((e=v.options)==null?0:e.percentOffset)?v.JSC$22711_containerElement.clientHeight*v.options.percentOffset:0;return v.activeItem.offsetTop>=v.JSC$22711_containerElement.scrollTop+d},mRu=function(v){if(!v.activeItem)return!1;
var e=v.activeItem.offsetTop+14<=v.JSC$22711_containerElement.scrollTop+v.JSC$22711_containerElement.clientHeight;return v.activeItem.offsetTop+v.activeItem.clientHeight-14>=v.JSC$22711_containerElement.scrollTop&&e};
O0r.prototype.panelContentVisibleChanged=function(v){(this.contentVisible=v)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var ycm=function(v,e){v.syncEntityKey=e;var d;(d=v.unsubscribeFromTimedMarkersListSyncEntity)==null||d.call(v);aPr(v)},qam=function(v,e){v.options=e};var Dr=function(){var v=_.P.apply(this,arguments)||this;v.browsingMode=!1;v.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return v};
_.V(Dr,_.P);_.W=Dr.prototype;_.W.activeItemChanged=function(){if(!_.N("synced_panel_scrolling_controller")){var v;((v=this.syncEntity)==null?void 0:v.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.W.created=function(){var v=this;_.N("synced_panel_scrolling_controller")||(this.JSC$22715_scrollAnimation=new _.Fi(function(e){v.contents.scrollTop=e}),this.boundExitBrowsingMode=function(){v.exitBrowsingMode(!1)})};
_.W.detached=function(){if(_.N("synced_panel_scrolling_controller")){var v;(v=this.scrollController)==null||v.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.W.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"}}}};
_.W.dataChanged=function(){var v=this;_.N("synced_panel_scrolling_controller")?_.Uh(this,function(){if(v.scrollController){var e;(e=v.scrollController)==null||e.exitBrowsingMode(!1);var d,E,T;(E=v.scrollController)==null||ycm(E,(T=(d=v.data)==null?void 0:d.syncModelEntityKey)!=null?T:"default-macro-markers-list-renderer-entity-key");var S,O,b;(b=v.scrollController)==null||qam(b,{percentOffset:(S=v.data)==null?void 0:S.selectedItemAlignmentPercentOffset,floatingPillType:(O=v.data)==null?void 0:O.floatingPillType})}else{var Y,
q,r,h;v.scrollController=new O0r(v.contents,v.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(h=(Y=v.data)==null?void 0:Y.syncModelEntityKey)!=null?h:"default-macro-markers-list-renderer-entity-key",{percentOffset:(q=v.data)==null?void 0:q.selectedItemAlignmentPercentOffset,floatingPillType:(r=v.data)==null?void 0:r.floatingPillType},function(K){v.renderLazyListItems(K)})}v.scrollController.panelContentVisibleChanged(!!v.panelContentVisible)}):this.exitBrowsingMode()};
_.W.computeButtonShape=function(){var v=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){v.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.W.computeSyncEnabled=function(v){return!(v==null||!v.syncButtonLabel)};
_.W.renderLazyListItems=function(v){for(var e=this.contents.children,d=0,E=0;E<e.length;E++){var T=void 0;(T=e[E].ytLazyListBehavior)==null||T.fillRemainingListItems();var S=void 0,O=void 0;T=_.L((S=this.data)==null?void 0:(O=S.contents)==null?void 0:O[E],_.lG6);O=S=void 0;if((S=T)==null?0:(O=S.contents)==null?0:O.length)d+=T.contents.length;if(d>=v)break}};
_.W.getItemByIndex=function(v){this.renderLazyListItems(v);var e=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(e.length>v)return e[v]};
_.W.setActiveItem=function(v){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);v.active!==void 0&&(v.active=!0);this.currentActiveItem=v};
_.W.handleSetActivePanelItemAction=function(v){if((v=_.L(v,Yik))&&this.panelTargetId===v.panelTargetId){v=v.itemIndex;if(_.N("synced_panel_scrolling_controller")){var e,d;var E=(d=(e=this.data)==null?void 0:e.syncModelEntityKey)!=null?d:"default-macro-markers-list-renderer-entity-key"}else{var T;E=(T=this.data)==null?void 0:T.syncModelEntityKey}if(E){var S;((S=this.syncEntity)==null?void 0:S.activeItemIndex)!==v&&this.ytdReduxBehavior.dispatch(_.Lv("markersEngagementPanelSyncEntity",E,{key:E,activeItemIndex:v}))}else this.updatePanelActiveItem(v)}};
_.W.updatePanelActiveItem=function(v){var e=this.getItemByIndex(v);e?(this.setActiveItem(e),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(e)):_.xf(new _.kL("Could not find ytd-macro-markers-list-renderer sync child to set active.",v,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.W.scrollToItem=function(v){v=this.getScrollPositionForItem(v);this.contents.scrollTop!==v&&this.JSC$22715_scrollAnimation.start(this.contents.scrollTop,v,300)};
_.W.getScrollPositionForItem=function(v){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===v)return 0;v=_.C0(v).y+this.contents.scrollTop-_.C0(this.contents).y-this.getStickyHeaderHeight(v);return Math.min(v,this.contents.scrollHeight-this.contents.offsetHeight)};
_.W.getStickyHeaderHeight=function(v){if(v.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var e,d,E;return(E=(e=v.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(d=e.header)==null?void 0:d.offsetHeight)!=null?E:0}return 0};
_.W.onScroll=function(){_.N("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22715_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.W.enterBrowsingMode=function(){var v=this;return _.I(function(e){if(e.nextAddress==1){if(v.browsingMode)return e.return();v.browsingMode=!0;return e.yield(_.EK().getPlayerPromise(),2)}v.player=e.yieldResult;v.player.addEventListener("SEEK_TO",v.boundExitBrowsingMode);_.s9(e)})};
_.W.exitBrowsingMode=function(v){this.browsingMode&&(this.browsingMode=!1,(v===void 0||v)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.W.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.W.onSyncClick=function(){if(_.N("synced_panel_scrolling_controller")){var v;(v=this.scrollController)==null||v.exitBrowsingMode()}else this.exitBrowsingMode()};
_.W.panelContentVisibleChanged=function(){if(_.N("synced_panel_scrolling_controller")){var v;(v=this.scrollController)==null||v.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Dr.prototype.panelContentVisibleChanged=Dr.prototype.panelContentVisibleChanged;Dr.prototype.dataChanged=Dr.prototype.dataChanged;Dr.prototype.activeItemChanged=Dr.prototype.activeItemChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Dr.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Dr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Dr.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Dr.prototype,"data",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Dr.prototype,"useCustomColors",void 0);_.c([_.f({computed:"computeSyncEnabled(data)"}),_.w("design:type",Boolean)],Dr.prototype,"syncEnabled",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],Dr.prototype,"panelTargetId",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Dr.prototype,"panelContentVisible",void 0);_.c([_.sg("#contents"),_.w("design:type",HTMLElement)],Dr.prototype,"contents",void 0);_.c([_.sg("#sync-container"),_.w("design:type",HTMLElement)],Dr.prototype,"syncContainer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Dr.prototype,"browsingMode",void 0);
_.c([_.f({selectorArgs:["data.syncModelEntityKey"],selector:_.zO0}),_.w("design:type",Object)],Dr.prototype,"syncEntity",void 0);_.c([_.$v("syncEntity.activeItemIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Dr.prototype,"activeItemChanged",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Dr.prototype,"dataChanged",null);
_.c([_.$v("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Dr.prototype,"panelContentVisibleChanged",null);_.c([_.z({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Dr);
_.A(Dr,"ytd-macro-markers-list-renderer",function(){if(W1r!==void 0)return W1r;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return W1r=v},{mode:1});var rcm;var Un=function(){return _.P.apply(this,arguments)||this};
_.V(Un,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Un.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Un.prototype,"data",void 0);_.c([_.z({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Un);
_.A(Un,"ytd-error-corrections-section-item-renderer",function(){if(rcm!==void 0)return rcm;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return rcm=v},{mode:1});var hWD;var pA=function(){return _.P.apply(this,arguments)||this};
_.V(pA,_.P);pA.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],pA.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],pA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pA.prototype,"data",void 0);_.c([_.z({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],pA);
_.A(pA,"ytd-error-corrections-section-renderer",function(){if(hWD!==void 0)return hWD;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return hWD=v},{mode:1});var K1m;var vd=function(){return _.P.apply(this,arguments)||this};
_.V(vd,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],vd.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],vd.prototype,"data",void 0);_.c([_.z({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],vd);
_.A(vd,"ytd-topic-link-renderer",function(){if(K1m!==void 0)return K1m;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return K1m=v},{mode:1});var $Rr;var eQ=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("kevlar_modern_sd_v2");v.modernLockupV2=_.N("modernize_structured_description_playlist_lockups_v2");v.modernTypography=_.N("web_modern_typography");return v};
_.V(eQ,_.P);eQ.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],eQ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],eQ.prototype,"modern",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],eQ.prototype,"modernLockupV2",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],eQ.prototype,"modernTypography",void 0);_.c([_.z({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],eQ);
_.A(eQ,"ytd-video-description-course-section-renderer",function(){if($Rr!==void 0)return $Rr;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return $Rr=v},{mode:1});var j2$;var dL=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("kevlar_modern_sd_v2");v.modernTypography=_.N("web_modern_typography");return v};
_.V(dL,_.P);dL.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],dL.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dL.prototype,"modern",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dL.prototype,"modernTypography",void 0);
_.c([_.z({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],dL);
_.A(dL,"ytd-video-description-files-section-renderer",function(){if(j2$!==void 0)return j2$;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return j2$=v},{mode:1});var s2J;var Eq=function(){return _.P.apply(this,arguments)||this};
_.V(Eq,_.P);Eq.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Eq.prototype,"data",void 0);_.c([_.z({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Eq);
_.A(Eq,"ytd-video-description-gaming-section-renderer",function(){if(s2J!==void 0)return s2J;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return s2J=v},{mode:1});var Nra;var Th=function(){var v=_.P.apply(this,arguments)||this;v.isExpanded=!1;return v};
_.V(Th,_.P);Th.prototype.computeHasDefaultMetadataEndpoint=function(v){var e;v=v==null?void 0:(e=v.defaultMetadata)==null?void 0:e.runs;return!(!v||v.length!==1||!v[0].navigationEndpoint)};
Th.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.vP.Object.defineProperties(Th.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Th.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Th.prototype,"isExpanded",void 0);_.c([_.f({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Th.prototype,"hasDefaultMetadataEndpoint",void 0);
_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Th.prototype,"isExpandable",null);_.c([_.t("data","isExpandable","isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Th.prototype,"showExpandedMetadata",null);_.c([_.z({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Th);
_.A(Th,"ytd-info-row-renderer",function(){if(Nra!==void 0)return Nra;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Nra=v},{mode:1});var k8f;var SQ=function(){var v=_.P.apply(this,arguments)||this;v.currentIndex=0;v.supportComponentResize=!0;v.modern=_.N("kevlar_modern_sd_v2");v.JSC$22741_lastScrollContainerWidth=NaN;return v};
_.V(SQ,_.P);_.W=SQ.prototype;
_.W.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"}}}};
_.W.getItemsPath=function(){return"videoLockups"};
_.W.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.W.onIronResize=function(){this.updateVideoLockupStyles()};
_.W.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.W.updateVideoLockupStyles=function(){var v;this.JSC$22741_scrollContainer!==void 0&&(v=this.videoLockups)!=null&&v.length&&(v=this.JSC$22741_scrollContainer.clientWidth,v!==this.JSC$22741_lastScrollContainerWidth&&(this.JSC$22741_lastScrollContainerWidth=v,_.qr(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(v*.8,415)+"px"}),_.Iq(this.hostElement,"iron-resize")))};
_.vP.Object.defineProperties(SQ.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var v=[],e;if((e=this.data)==null||!e.carouselLockups)return v;e=_.a(this.data.carouselLockups);for(var d=e.next();!d.done;d=e.next()){d=d.value;var E=void 0;((E=_.L(d,Aiu))==null?0:E.videoLockup)&&v.push(_.L(d,Aiu).videoLockup)}return v}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.videoLockups)==null||!v.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var v=[],e;if((e=this.data)==null||!e.carouselLockups)return v;var d;return(d=_.L(this.data.carouselLockups[this.scrollCount],Aiu))==null?void 0:d.infoRows}}});
SQ.prototype.dataChanged=SQ.prototype.dataChanged;SQ.prototype.onIronResize=SQ.prototype.onIronResize;SQ.prototype.hiddenChanged=SQ.prototype.hiddenChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],SQ.prototype,"componentBehavior",void 0);_.c([_.M(_.OC.YtdHorizontalListBehavior),_.w("design:type",Object)],SQ.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],SQ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],SQ.prototype,"inlineStructuredDescription",void 0);_.c([_.f({value:2}),_.w("design:type",Number)],SQ.prototype,"initialCount",void 0);_.c([_.f(),_.w("design:type",Object)],SQ.prototype,"currentIndex",void 0);
_.c([_.f(),_.w("design:type",Number)],SQ.prototype,"scrollCount",void 0);_.c([_.f(),_.w("design:type",Object)],SQ.prototype,"supportComponentResize",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],SQ.prototype,"contentHidden",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],SQ.prototype,"modern",void 0);_.c([_.sg("#scroll-container"),_.w("design:type",HTMLDivElement)],SQ.prototype,"JSC$22741_scrollContainer",void 0);
_.c([_.$v("contentHidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SQ.prototype,"hiddenChanged",null);_.c([_.t("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],SQ.prototype,"videoLockups",null);_.c([_.t("videoLockups"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],SQ.prototype,"hasVideoLockups",null);
_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SQ.prototype,"onIronResize",null);_.c([_.t("data","scrollCount"),_.w("design:type",Object),_.w("design:paramtypes",[])],SQ.prototype,"infoRows",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SQ.prototype,"dataChanged",null);_.c([_.z({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],SQ);
_.A(SQ,"ytd-video-description-music-section-renderer",function(){if(k8f!==void 0)return k8f;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return k8f=v},{mode:_.bk("kevlar_poly_si_batch_j081")?1:2});var L1D;var Wd=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("kevlar_modern_sd_v2");v.modernTypography=_.N("web_modern_typography");return v};
_.V(Wd,_.P);Wd.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.c([_.f({}),_.w("design:type",Object)],Wd.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Wd.prototype,"modern",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Wd.prototype,"modernTypography",void 0);
_.c([_.z({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Wd);
_.A(Wd,"ytd-video-description-transcript-section-renderer",function(){if(L1D!==void 0)return L1D;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return L1D=v},{mode:1});var Vym;_.aZ(_.l(function(v){var e=_.Kv(_.f5L,function(){return v.data().firstProviderLinkStatusEntityKey}),d=_.Kv(_.f5L,function(){return v.data().secondProviderLinkStatusEntityKey}),E=function(){var T,S;
return((T=e())==null?void 0:T.linked)||((S=d())==null?void 0:S.linked)};
return _.m("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.m(_.Dh,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return v.data().sectionTitle}}),_.m(_.Dh,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return E()?v.data().connectedMessage:v.data().notConnectedMessage}}),_.m(_.y,{cond:E,
then:function(){return _.m(_.kz,{data:function(){return v.data().connectedButton}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.m(_.y,{cond:function(){return!E()},
then:function(){return _.m(_.kz,{data:function(){return v.data().notConnectedButton}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"yk"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;return _.m("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.m("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.m(_.Dh,{text:function(){return e().sectionTitle}})),_.m("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.m(_.Dh,{text:function(){return e().bodyHeader}})),_.m("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.m(_.Dh,{text:function(){return e().bodyText}})),_.m(_.y,{cond:function(){return e().attributionText},
then:function(){return _.m("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.m(_.Dh,{text:function(){return e().attributionText}}))}}))},"zk"),"how-this-was-made-section-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){return _.m("yt-video-description-youchat-section-view-model",{class:_.qe("ytVideoDescriptionYouchatSectionViewModelHost")},_.m("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.m(_.Dh,{text:function(){return v.data().sectionTitle}})),_.m("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.m(_.Dh,{text:function(){return v.data().subHeaderText}})),_.m("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.m(_.yi,{data:function(){return _.L(v.data().primaryButton,
_.lx)}})))},"Ak"),"yt-video-description-youchat-section-view-model",{props:{data:_.U1}});var al=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return v};
_.V(al,_.P);_.W=al.prototype;
_.W.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}}}}}};
_.W.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.W.dataChanged=function(){var v,e;this.hasDescriptionOnly=!(((v=this.data)==null?void 0:(e=v.items)==null?void 0:e.length)!==1||!_.L(this.data.items[0],Po))};
_.W.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.W.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.W.autoFocusDescription=function(){var v;((v=_.dk().resolve(_.eG(_.i$)))==null?0:v.isKeyBoardInUse())&&this.description&&_.nU(this.description)};
_.W.resize=function(){if(_.N("kevlar_disable_sd_resize"))this.JSC$22750_cardList&&_.Iq(this.JSC$22750_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Iq(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Iq(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.W.scrollToSection=function(v){if(v=this.getSectionElement(v))_.b4(this.hostElement,"yt-scroll-to-watch-element",[v]),v.focus()};
_.W.getSectionElement=function(v){switch(v){case "infocards-item-section":var e;return(e=this.infocardsSection)!=null?e:null;case "transcript-item-section":var d;return(d=this.transcriptSection)!=null?d:null;case "how-this-was-made-section-item-section":var E;return(E=this.howThisWasMadeSection)!=null?E:null;case "files-item-section":var T;return(T=this.filesSection)!=null?T:null;default:return null}};
_.W.handleSetActiveItemAction=function(v){var e=_.L(v,Yik),d=e&&(e==null?void 0:e.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22750_cardList;if(e&&d){v=this.currentActiveChapter;var E=this.currentActiveProblem;e=d==null?void 0:d.getItemByIndex(e.itemIndex);var T=d=!0;e&&(e.active=!0,e.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(d=v!==e,T=!1,this.currentActiveChapter=e):(e==null?void 0:e.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(d=!1,T=E!==e,this.currentActiveProblem=e));v&&d&&(v.active=!1);E&&T&&(E.active=!1)}};
_.vP.Object.defineProperties(al.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.N("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
al.prototype.onYtExpanderMoreTapped=al.prototype.onYtExpanderMoreTapped;al.prototype.onHiddenChanged=al.prototype.onHiddenChanged;al.prototype.dataChanged=al.prototype.dataChanged;al.prototype.panelContentVisibleChanged=al.prototype.panelContentVisibleChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],al.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.J9),_.w("design:type",Object)],al.prototype,"ironResizableBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],al.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],al.prototype,"panelContentVisible",void 0);_.c([_.f(),_.w("design:type",Boolean)],al.prototype,"hasDescriptionOnly",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],al.prototype,"inlineStructuredDescription",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],al.prototype,"hidden",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],al.prototype,"shortsPanel",void 0);_.c([_.f(),_.w("design:type",Object)],al.prototype,"videoSummary",void 0);_.c([_.f(),_.w("design:type",Object)],al.prototype,"merchShelf",void 0);
_.c([_.t("videoSummary"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],al.prototype,"showVideoSummary",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],al.prototype,"engagementPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],al.prototype,"watchWhileSdp",void 0);_.c([_.sg("ytd-expandable-video-description-body-renderer"),_.w("design:type",Object)],al.prototype,"description",void 0);
_.c([_.sg("ytd-horizontal-card-list-renderer"),_.w("design:type",Object)],al.prototype,"JSC$22750_cardList",void 0);_.c([_.sg("ytd-horizontal-card-list-renderer[center-items]"),_.w("design:type",Object)],al.prototype,"problemWalkthroughCardList",void 0);_.c([_.sg("ytd-shelf-renderer"),_.w("design:type",Object)],al.prototype,"shelfSection",void 0);_.c([_.sg("ytd-video-description-music-section-renderer"),_.w("design:type",Object)],al.prototype,"musicMetadataSection",void 0);
_.c([_.sg("ytd-video-description-infocards-section-renderer"),_.w("design:type",Object)],al.prototype,"infocardsSection",void 0);_.c([_.sg("ytd-video-description-transcript-section-renderer"),_.w("design:type",Object)],al.prototype,"transcriptSection",void 0);_.c([_.sg("how-this-was-made-section-view-model"),_.w("design:type",Object)],al.prototype,"howThisWasMadeSection",void 0);_.c([_.sg("ytd-video-description-files-section-renderer"),_.w("design:type",Object)],al.prototype,"filesSection",void 0);
_.c([_.$v("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],al.prototype,"panelContentVisibleChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],al.prototype,"dataChanged",null);_.c([_.$v("hidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],al.prototype,"onHiddenChanged",null);
_.c([_.Kq("yt-expander-more-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],al.prototype,"onYtExpanderMoreTapped",null);_.c([_.z({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],al);
_.A(al,"ytd-structured-description-content-renderer",function(){if(Vym!==void 0)return Vym;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Vym=v},{mode:2});var oxa;var JcD;var iG=function(){return _.P.apply(this,arguments)||this};
_.V(iG,_.P);iG.prototype.computeAriaLabel=function(v){var e,d;return(v==null?void 0:(e=v.accessibility)==null?void 0:(d=e.accessibilityData)==null?void 0:d.label)||_.sz("LOADING",void 0,"Loading")};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],iG.prototype,"data",void 0);_.c([_.f({computed:"computeAriaLabel(data)"}),_.w("design:type",String)],iG.prototype,"ariaLabel",void 0);_.c([_.lh({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],iG);
_.A(iG,"yt-content-loading-renderer",function(){if(JcD===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;oxa===void 0&&(oxa=document.createElement("template"));var E=oxa;d.call(e,E.content.cloneNode(!0),v.content.firstChild);JcD=v}v=JcD;return v},{mode:_.bk("kevlar_poly_si_batch_j043")?1:2});_.aZ(_.l(function(v){var e=_.a(_.OE(!1,void 0,"QkPiwb")),d=e.next().value,E=e.next().value;e=_.a(_.OE(!1,void 0,"AFECB"));var T=e.next().value,S=e.next().value;_.Gr(function(){var Y=_.L(v.data().collaboratePlaylistCollaborationSetting,fwk);Y&&E(Y.switchedOnByDefault);var q=_.L(v.data().allowNewCollaboratorsPlaylistCollaborationSetting,fwk);q&&S(q.switchedOnByDefault);if(!Y&&!q||!Y&&v.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")E(!0),S(!0)});
var O=function(Y){E(Y);S(Y);var q=v.data().playlistCollaborationEntityKey||"";var r=_.pq().getState();(r=_.h_(r.entities,"playlistCollaborationEntity",q))&&(r==null?void 0:r.isCollaborative)===Y||_.pq().dispatch(_.Lv("playlistCollaborationEntity",q,Object.assign({},r,{isCollaborative:Y})))},b=function(Y){S(Y)};
return _.m("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.m("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.m(_.kz,{data:function(){return v.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(Y){return _.m(_.gYc,{data:Y.data,
onSwitch:O})}})),_.m(_.y,{cond:d,
then:function(){return _.m(_.eI,null,_.m("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.m(_.kz,{data:function(){return v.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(Y){return _.m(_.gYc,{data:Y.data,
onSwitch:b,overrideDisabled:!1})}})),_.m(_.y,{cond:T,
then:function(){return _.m("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.m(_.kz,{data:function(){return v.data().copyLinkButton}},{buttonViewModel:_.yi}))}}),_.m("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.m(_.kz,{data:function(){return v.data().playlistCollaborators}},{contentListItemViewModel:_.CUs})))}}))},"Bk"),"playlist-collaboration-view-model",{props:{data:_.U1}});var G8a=_.l(function(v){var e=v.data;var d=v.customCommandResolver;return _.m(_.eI,null,_.m("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.m(_.kz,{data:function(){return e().adAvatar}},{adAvatarViewModel:function(E){return _.m(_.Gl7,{data:E.data,
customCommandResolver:d})}})),_.m("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.m(_.y,{cond:function(){return e().headline},
then:function(E){return _.m(_.Dh,{text:E,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.m("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.m(_.kz,{data:function(){return e().adBadge}},{adBadgeViewModel:function(E){return _.m(_.I3,{data:E.data,
hasDot:function(){return e().primaryDetailsLine!==void 0},
customCommandResolver:d,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.m(_.kz,{data:function(){return e().primaryDetailsLine}},{adDetailsLineViewModel:function(E){return _.m(_.b5,{data:E.data,
customCommandResolver:d,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Ck"),My6=_.l(function(v){var e=v.data;
var d=v.customCommandResolver;return _.m("ad-avatar-lockup-view-model",{class:function(){var E;return((E=e().interaction)==null?0:E.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.dq(_.Eh({visibilityCallback:function(E){var T,S=(T=e().interaction)==null?void 0:T.onFirstVisible;E&&S&&_.wC(S)},
showOption:_.Em}),_.lH(function(){return e().interaction},d)),
"aria-label":function(){var E,T;return(E=e().interaction)==null?void 0:(T=E.accessibility)==null?void 0:T.label}},_.m(_.kc,null,_.m(_.sW,{when:function(){return e().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.m(G8a,{data:e,
customCommandResolver:d})}),_.m(_.N9,null,function(){return null})))},"Dk");_.aZ(_.l(function(v){var e=v.data;var d=v.panelContentVisibility;v=_.Eh({visibilityCallback:function(S){var O,b=(O=e().interaction)==null?void 0:O.onFirstVisible;S&&b&&_.wC(b)},
showOption:_.Em});var E=_.lH(function(){return e().interaction},oI6);
_.tf(function(){var S,O;if(O=_.AE("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;O=(b=O())==null?void 0:b.onLayoutVisibleCallback}else O=null;(S=O)==null||S()});
var T=function(){return d()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.m("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.dq(v,E)},_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.m(_.y,{cond:_.KyH("(min-width: "+((0,_.Z$)()+_.Bo)+"px) or (max-width: 600px)"),then:function(){return _.m(_.kz,{data:function(){return e().adImage}},{adImageViewModel:function(S){return _.m(_.hh,{data:S.data,
targetHeight:80,customCommandResolver:oI6})}})}})),_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.m(_.kz,{data:function(){return e().adAvatarLockup}},{adAvatarLockupViewModel:function(S){return _.m(My6,{data:S.data,
customCommandResolver:oI6})}})),_.m(_.y,{cond:T,
then:function(){return _.m(_.kz,{data:function(){return e().adButton}},{adButtonViewModel:function(S){return _.m(_.Sp,{data:S.data,
customCommandResolver:oI6})}})},
else:function(){return _.m(_.kz,{data:function(){return e().menu}},{buttonViewModel:_.yi})}}),_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.m(_.kz,{data:function(){var S=_.L(e().toggleButton,_.Ay);
return{toggleButtonViewModel:Object.assign({},S,{isTogglingDisabled:!0,isToggled:T()})}}},{toggleButtonViewModel:_.fR})))))},"Ek"),"panel-ad-header-image-lockup-view-model",{props:{data:_.U1,
panelContentVisibility:_.U1}});_.aZ(_.l(function(v){var e=function(){return _.L(v.data().inputComposerViewModel,R_T)},d=function(){var J;
return((J=e())==null?void 0:J.youchatPendingResponseEntityKey)||""},E=_.Kv(_.Ens,d),T=function(){var J;
return!((J=E())==null||!J.isPendingResponse)},S=_.a(_.OE(!0,void 0,"DR0q1d")),O=S.next().value,b=S.next().value,Y=function(){return e().sectionTargetId||"youchat_messages_section"};
S=_.Dq("yt-chat-input-view-model");var q=_.nI("textarea"),r=_.Kv(q66,"chat_input_view_model_state"),h=reV(),K=function(){var J;return!((J=r())==null||!J.value)};
_.Gr(function(){var J;if(!K()&&((J=e())==null?0:J.welcomeFeatureContinuation)){var R;((R=e())==null?0:R.setPendingResponseOnWelcome)&&_.TX_(d())(!0);J={continuationCommand:{token:e().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var B;R=String(Math.floor(((B=_.mS())==null?void 0:B.getCurrentTime())||0)*1E3);B={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:R}};_.Hz(J,{form:{formData:B}});h(!0)}var X=Y(),Z;(Z=_.dk().resolve(_.eG(_.Vy)))==null||
Z.addEventListener("yt-navigate-start",function(){_.$z.remove(X);h(!1)},{once:!0})});
var k=function(){var J=q.value.value;q.value.value="";JeB(q.value);var R,B=((R=e())==null?void 0:R.enableGradientColorBg)||!1;R=G2B(Y(),J,B);_.Hz(R);var X=_.TX_(d()),Z;_.wC(((Z=e())==null?void 0:Z.onSubmitCommand)||{});X(!0);var U;Z=String(Math.floor(((U=_.mS())==null?void 0:U.getCurrentTime())||0)*1E3);var F;U={continuationCommand:{token:(F=e())==null?void 0:F.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};J={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:J,
playerOffsetMs:Z}};_.Hz(U,{form:{formData:J},commandController:{onSuccess:function(){X(!1)},
onServerError:function(){var g=Y();_.Hz({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:g}}]}}});X(!1)}}})};
return _.m("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:S},_.m("div",{class:"chatInputViewModelChatInputWrapper"},_.m("form",{class:"chatInputViewModelChatInputForm"},_.m("textarea",{class:"chatInputViewModelChatInput",el:q,"on:keydown":_.rq(function(J){var R=T()||!1;JeB(q.value);R||J.key!=="Enter"||J.shiftKey||(J.preventDefault(),k());return!1}),
"on:keyup":_.rq(function(){b(q.value.value.length===0);return!1}),
placeholder:function(){var J,R;var B=_.L((R=e())==null?void 0:R.inputFormField,O9k);return B==null?void 0:(J=B.contentProperties)==null?void 0:J.placeholderText},
rows:1}),_.m(_.yi,{data:function(){return _.L(v.data().sendButton,_.lx)},
onClick:function(J){J.preventDefault();k();b(q.value.value.length===0)},
buttonOverrides:function(){return{disabled:O()||T()}}})),_.m(_.Dh,{className:"chatInputViewModelChatDisclaimer",
text:function(){var J;return(J=_.L(v.data().disclaimer,_.H67))==null?void 0:J.text}})))},"Fk"),"yt-chat-input-view-model",{props:{data:_.U1}});var tym=["engagement-panel-clip-create","engagement-panel-clip-view"],fPT=0,Oq=function(){var v=_.P.apply(this,arguments)||this;var e;v.headerData=(e=v.data)==null?void 0:e.header;v.darkerPanels=_.N("web_watch_darker_panels");v.matchContentTheme=_.N("web_watch_panel_content_match_theme");v.disableAutoFill=!1;v.isFullscreen=!1;v.isTheaterMode=!1;v.modernPanels=_.N("kevlar_watch_modern_panels");v.liveChatReplyPanel=!1;v.enableAnchoredPanel=_.N("desktop_shorts_v2_anchored_panel");v.disableBackdropFilter=
_.N("web_disable_backdrop_filter");v.trackEngagementPanelVisibility=_.N("web_watch_track_engagement_panel_visibility");v.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 v};
_.V(Oq,_.P);_.W=Oq.prototype;
_.W.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(v){var e;return(v==null?void 0:(e=v.webComponentHint)==null?void 0:e.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.W.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var v;if((v=this.hostElement.parentElement)==null?0:v.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.W.detached=function(){this.updateTheaterDisablement()};
_.W.showPanel=function(){var v=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.RM.addJob(function(){v.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.W.maybeScrollToItemSection=function(v){var e=this,d,E=v==null?void 0:(d=v.sectionListEngagementPanelExtras)==null?void 0:d.scrollToItemSectionIdentifier;E&&_.RM.addJob(function(){var T;(T=e.sectionListRendererElement)==null||T.scrollToItemSection(E)},8)};
_.W.hidePanel=function(){var v=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.RM.addJob(function(){v.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.W.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.W.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.W.updatePanel=function(v,e,d,E){var T=this;if((v=v==null?void 0:v.engagementPanelSectionListRenderer)||E){if(v){E=v.header;var S=v.content,O=v.footer;(v=v.targetId)&&this.set("data.targetId",v);E&&this.set("data.header",E);S&&this.set("data.content",S);O&&this.set("data.footer",O)}else E&&(v=E.content,S=E.secondaryHeaderContent,(E=E.targetId)&&this.set("data.targetId",E),v&&this.set("data.content",v),S&&(this.secondaryHeaderData=S));this.updateChildVisibilityProperties();if(e){var b;_.N("kevlar_update_panel_focus_scroll_killswitch")||
(b={preventScroll:!0});this.focus(b)}_.Uh(this,function(){_.Iq(T.hostElement,"yt-refit");T.maybeScrollToItemSection(d)})}};
_.W.computeHeaderData=function(){var v,e=(0,_.f0.unsafeClone)((v=this.data)==null?void 0:v.header);if(e){v=new _.gG(Object.keys(e)[0]);var d=_.L(e,v),E=_.L(this.secondaryHeaderData,v);E&&_.xJ(e,v,Object.assign({},E,d))}return e};
_.W.getReloadContinuation=function(){var v,e,d,E=_.a(((v=this.data)==null?void 0:(e=v.content)==null?void 0:(d=e.sectionListRenderer)==null?void 0:d.continuations)||[]);for(v=E.next();!v.done;v=E.next())if(v=v.value,v.reloadContinuationData)return v.reloadContinuationData.continuation};
_.W.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var v;((v=this.data)==null?0:v.targetId)&&(v=this.contentElement.firstElementChild)&&v.setAttribute("panel-target-id",this.data.targetId)};
_.W.forwardPopupClosedToFlowRootRenderer=function(){var v=_.IB(this.hostElement).querySelector("ytd-flow-root-renderer");if(v)v.onPopupClosed()};
_.W.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var v;if(!tym.includes((v=this.theaterDisablementPanelIdentifier)!=null?v:""))if(v=_.N("web_watch_imax_theater_mode")&&this.isTheaterMode,v=_.N("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||v,_.N("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||v){var e;this.visibility=(e=this.data)==null?void 0:e.visibility;var d;this.trackEngagementPanelVisibility&&((d=this.data)==null?void 0:d.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var E,T,S,O;this.contentEmpty=!!(((E=this.data)==null?0:(T=E.content)==null?0:T.structuredDescriptionContentRenderer)&&Object.keys((S=this.data)==null?void 0:(O=S.content)==null?void 0:
O.structuredDescriptionContentRenderer).length===0);(e=_.dk().resolve(_.tx))&&e.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.W.isTheaterModeChanged=function(){_.N("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.W.isFullscreenChanged=function(){_.N("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.W.focus=function(v){if(this.header)this.header.focus(v);else{var e;(e=_.IB(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||e.focus(v)}};
_.W.visibilityChanged=function(){if(!_.N("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var v=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",T=E||!this.lastVisibility,S,O,b,Y=((S=this.data)==null?void 0:(O=S.identifier)==null?void 0:
O.tag)||((b=this.data)==null?void 0:b.panelIdentifier);if(v&&T){var q;((q=this.data)==null?0:q.onShowCommands)&&_.ya(this.hostElement,this.data.onShowCommands,this.hostElement);Y&&_.d1().dispatch(_.Oo({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:Y}}))}else if(e&&d){var r;((r=this.data)==null?0:r.onHideCommands)&&_.ya(this.hostElement,this.data.onHideCommands,this.hostElement);Y&&_.d1().dispatch(_.Oo({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:Y}}))}v&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*fPT++));_.N("kevlar_watch_focus_on_engagement_panels")&&v&&E&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.W.notifyVisibilityChanged=function(v){var e;_.YB(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,v,(e=this.data)==null?void 0:e.targetId])};
_.W.updateTheaterDisablement=function(){if(!_.N("kevlar_watch_theater_disablement_killswitch")){var v=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&tym.includes(v)&&!_.N("watch_next_grid_ignore_disallowed_panels")){var e=_.xj(_.d1().getState()),d=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";v!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():d?(this.originalTheaterState===void 0&&(this.originalTheaterState=e,this.theaterDisablementPanelIdentifier=
v),e&&_.b4(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.W.clearTheaterDisablement=function(){_.b4(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.W.updateChildVisibilityProperties=function(){this.hostElement||_.N("kevlar_panel_property_init_killswitch")||this._enableProperties();var v=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=v);var e,d=(e=this.headerElement)==null?void 0:e.firstElementChild;if(d&&!this.adHeaderImageLockupViewModel){e=v==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";d.collapsed=e;d=_.IB(d).querySelector("#visibility-button");if(!d)return;(d=d.firstElementChild)&&
d.polymerController.is==="ytd-toggle-button-renderer"&&d.polymerController.data.isToggled!==e&&d.polymerController.set("data.isToggled",e)}var E;if(e=(E=this.contentElement)==null?void 0:E.firstElementChild)if(v&&v!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")e.removeAttribute("panel-content-visible");else{e.setAttribute("panel-content-visible","");var T;(T=e.markDirty)==null||T.call(e)}};
_.W.onYtChangeEngagementPanelVisibilityAction=function(v){var e=this,d,E=(d=this.data)==null?void 0:d.targetId,T,S,O;d=((T=this.data)==null?void 0:(S=T.identifier)==null?void 0:S.tag)||((O=this.data)==null?void 0:O.panelIdentifier);var b=_.L(v,_.lHJ),Y;v=E&&(b==null?void 0:b.targetId)===E||d&&(b==null?void 0:(Y=b.panelIdentifier)==null?void 0:Y.tag)===d;this.dialog&&v&&(b==null?void 0:b.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(E==="engagement-panel-comments-section"?_.b4(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.b4(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",d]));!_.N("kevlar_use_engagement_panel_management_component")&&v&&(E=b.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!E?_.RM.addJob(function(){e.visibility=b.visibility},2,this.hideDelayMs):this.visibility=b.visibility,b.visibility&&this.notifyVisibilityChanged(b.visibility))};
_.W.onYtScrollToEngagementPanelCommand=function(v){var e,d=(e=this.data)==null?void 0:e.targetId,E,T,S;e=((E=this.data)==null?void 0:(T=E.identifier)==null?void 0:T.tag)||((S=this.data)==null?void 0:S.panelIdentifier);v=_.L(v,_.Usg);var O;(d&&(v==null?void 0:v.targetId)===d||e&&(v==null?void 0:(O=v.panelIdentifier)==null?void 0:O.tag)===e)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.b4(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.W.attachVEs=function(v){var e,d;(v==null?0:(e=v.content)==null?0:(d=e.productListRenderer)==null?0:d.trackingParams)&&_.NC().graftServerVe(v.content.productListRenderer.trackingParams);var E,T;(v==null?0:(E=v.content)==null?0:(T=E.transcriptRenderer)==null?0:T.trackingParams)&&_.NC().graftServerVe(v.content.transcriptRenderer.trackingParams)};
_.W.onYtUpdateEngagementPanelAction=function(v){var e,d=(e=this.data)==null?void 0:e.targetId;v=_.L(v,yiY);d&&(v==null?void 0:v.targetId)===d&&(this.updatePanel({engagementPanelSectionListRenderer:{header:v==null?void 0:v.header,content:v==null?void 0:v.content}},!1),this.attachVEs(v))};
_.W.onYtShowEngagementPanelScrimAction=function(v){var e,d=(e=this.data)==null?void 0:e.targetId;v=_.L(v,m1m);d&&(v==null?void 0:v.engagementPanelTargetId)===d&&(this.scrimmed=!0)};
_.W.onYtHideEngagementPanelScrimAction=function(v){var e,d=(e=this.data)==null?void 0:e.targetId;v=_.L(v,b9m);d&&(v==null?void 0:v.engagementPanelTargetId)===d&&(this.scrimmed=!1)};
_.W.getIdentifier=function(){var v,e,d;return((v=this.data)==null?void 0:v.panelIdentifier)||((e=this.data)==null?void 0:(d=e.identifier)==null?void 0:d.tag)};
_.W.getSurface=function(){var v,e;return(v=this.data)==null?void 0:(e=v.identifier)==null?void 0:e.surface};
_.vP.Object.defineProperties(Oq.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var v=this.getIdentifier();return v==="engagement-panel-youchat"||v==="PAyouchat"}}});
Oq.prototype.visibilityChanged=Oq.prototype.visibilityChanged;Oq.prototype.isFullscreenChanged=Oq.prototype.isFullscreenChanged;Oq.prototype.isTheaterModeChanged=Oq.prototype.isTheaterModeChanged;Oq.prototype.dataChanged=Oq.prototype.dataChanged;Oq.prototype.forwardPopupClosedToFlowRootRenderer=Oq.prototype.forwardPopupClosedToFlowRootRenderer;Oq.prototype.onYtRendererstamperFinished=Oq.prototype.onYtRendererstamperFinished;
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Oq.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Oq.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],Oq.prototype,"ytEventForwardingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Oq.prototype,"data",void 0);
_.c([_.f({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.w("design:type",Object)],Oq.prototype,"headerData",void 0);_.c([_.f(),_.w("design:type",Object)],Oq.prototype,"secondaryHeaderData",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Oq.prototype,"visibility",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Oq.prototype,"contentEmpty",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Oq.prototype,"scrimmed",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Oq.prototype,"dialog",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Oq.prototype,"dropdown",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Oq.prototype,"darkerPanels",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Oq.prototype,"matchContentTheme",void 0);_.c([_.f(),_.w("design:type",Object)],Oq.prototype,"disableAutoFill",void 0);
_.c([_.f({reflectToAttribute:!0,value:_.N("optimal_reading_width_comments_ep")}),_.w("design:type",Boolean)],Oq.prototype,"optimalReadingWidthComments",void 0);_.c([_.f(),_.w("design:type",Number)],Oq.prototype,"hideDelayMs",void 0);_.c([_.f({selector:_.Ba,reflectToAttribute:!0}),_.w("design:type",Object)],Oq.prototype,"isFullscreen",void 0);_.c([_.f({selector:_.xj,reflectToAttribute:!0}),_.w("design:type",Object)],Oq.prototype,"isTheaterMode",void 0);
_.c([_.f(),_.w("design:type",Number)],Oq.prototype,"showDelayMs",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data.targetId"),_.w("design:type",Object),_.w("design:paramtypes",[])],Oq.prototype,"targetId",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Oq.prototype,"webSize",null);_.c([_.f(),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Oq.prototype,"hideFooterBorder",null);
_.c([_.f(),_.w("design:type",Object)],Oq.prototype,"isWatch",void 0);_.c([_.f(),_.w("design:type",Object)],Oq.prototype,"originalTheaterState",void 0);_.c([_.f(),_.w("design:type",Object)],Oq.prototype,"theaterDisablementPanelIdentifier",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Oq.prototype,"modernPanels",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Oq.prototype,"isWatchWhilePanel",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Oq.prototype,"shortsPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Oq.prototype,"liveChatEngagementPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Oq.prototype,"learningChatEngagementPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Oq.prototype,"liveChatReplyPanel",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Oq.prototype,"enableAnchoredPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Oq.prototype,"disableBackdropFilter",void 0);_.c([_.f(),_.w("design:type",Object)],Oq.prototype,"trackEngagementPanelVisibility",void 0);_.c([_.sg("#header"),_.w("design:type",HTMLElement)],Oq.prototype,"headerElement",void 0);_.c([_.sg("#header > *"),_.w("design:type",HTMLElement)],Oq.prototype,"header",void 0);
_.c([_.sg("ytd-section-list-renderer"),_.w("design:type",Object)],Oq.prototype,"sectionListRendererElement",void 0);_.c([_.sg("panel-ad-header-image-lockup-view-model"),_.w("design:type",HTMLElement)],Oq.prototype,"adHeaderImageLockupViewModel",void 0);_.c([_.sg("#content"),_.w("design:type",HTMLElement)],Oq.prototype,"contentElement",void 0);
_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Oq.prototype,"onYtRendererstamperFinished",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Oq.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.c([_.V1("data","isFullscreen","isTheaterMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Oq.prototype,"dataChanged",null);
_.c([_.$v("isTheaterMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Oq.prototype,"isTheaterModeChanged",null);_.c([_.$v("isFullscreen"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Oq.prototype,"isFullscreenChanged",null);_.c([_.$v("visibility"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Oq.prototype,"visibilityChanged",null);
_.c([_.z({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Oq);
_.A(Oq,"ytd-engagement-panel-section-list-renderer",function(){if(eWJ!==void 0)return eWJ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return eWJ=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var RWu;var Il=function(){var v=_.P.apply(this,arguments)||this;v.lastRenderedPanelIds=new Set;v.visiblePanels=[];v.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return v};
_.V(Il,_.P);_.W=Il.prototype;_.W.dataChanged=function(){if(this.data){for(var v=[],e=_.a(this.data),d=e.next();!d.done;d=e.next()){d=d.value;var E=void 0,T=void 0,S=(E=d)==null?void 0:(T=E.engagementPanelSectionListRenderer)==null?void 0:T.visibility;T=E=void 0;((E=d)==null?0:(T=E.engagementPanelSectionListRenderer)==null?0:T.targetId)&&S!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&v.push(d)}this.visiblePanels=v}else this.visiblePanels=[]};
_.W.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}}};
_.W.withoutVisiblePanelById=function(v){return this.visiblePanels.filter(function(e){var d;return((d=e.engagementPanelSectionListRenderer)==null?void 0:d.targetId)!==v})};
_.W.onYtChangeEngagementPanelVisibilityAction=function(v){var e=this,d=_.L(v,_.lHJ);if(this.data&&(d==null?0:d.targetId)&&(d==null?0:d.visibility)){var E,T=(E=this.data.find(function(O){var b;return((b=O.engagementPanelSectionListRenderer)==null?void 0:b.targetId)===d.targetId}))==null?void 0:E.engagementPanelSectionListRenderer;
if(T){var S=this.withoutVisiblePanelById(d.targetId);d.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(v=this.data.find(function(O){var b;return((b=O.engagementPanelSectionListRenderer)==null?void 0:b.targetId)===d.targetId}))&&(S=[v].concat(_.t7(S)));
this.hideDelayMs&&d.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&S.length===0?_.RM.addJob(function(){T.visibility=d.visibility;e.visiblePanels=S},10,this.hideDelayMs):(T.visibility=d.visibility,this.visiblePanels=S);
_.YB(this.hostElement,"yt-engagement-panels-visible-changed",[S])}}};
_.W.onRendererstamperFinished=function(){var v=new Set(this.visiblePanels.map(function(e){var d;return(d=e.engagementPanelSectionListRenderer)==null?void 0:d.targetId}));
this.handlePanelVisibilityChange(v,this.lastRenderedPanelIds);this.lastRenderedPanelIds=v};
_.W.handlePanelVisibilityChange=function(v,e){v=v===void 0?new Set:v;e=e===void 0?new Set:e;if(this.data)for(var d=_.a(this.data),E=d.next();!E.done;E=d.next()){E=E.value;var T=void 0,S=void 0,O=(T=E)==null?void 0:(S=T.engagementPanelSectionListRenderer)==null?void 0:S.targetId;if(O&&(T=e.has(O),S=v.has(O),O=void 0,!T&&S?(S=T=void 0,O=(T=E)==null?void 0:(S=T.engagementPanelSectionListRenderer)==null?void 0:S.onShowCommands):T&&!S&&(S=T=void 0,O=(T=E)==null?void 0:(S=T.engagementPanelSectionListRenderer)==
null?void 0:S.onHideCommands),O))for(E=_.a(O),O=E.next();!O.done;O=E.next())this.ytComponentBehavior.resolveCommand(O.value)}};
Il.prototype.onRendererstamperFinished=Il.prototype.onRendererstamperFinished;Il.prototype.dataChanged=Il.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Il.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Il.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Il.prototype,"lastRenderedPanelIds",void 0);_.c([_.f(),_.w("design:type",Number)],Il.prototype,"hideDelayMs",void 0);_.c([_.f(),_.w("design:type",Array)],Il.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Array)],Il.prototype,"visiblePanels",void 0);_.c([_.f(),_.w("design:type",Boolean)],Il.prototype,"isWatchWhilePanel",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Il.prototype,"dataChanged",null);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Il.prototype,"onRendererstamperFinished",null);_.c([_.z({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Il);
_.A(Il,"ytd-watch-engagement-panels",function(){if(RWu!==void 0)return RWu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return RWu=v},{mode:1});var PeT;var bG=function(){return _.P.apply(this,arguments)||this};
_.V(bG,_.P);bG.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.UJ(_.IB(this.hostElement).querySelector("#text"),_.sEc(_.Lg6,this.data.companionLegalText))};
bG.prototype.computeAutoScrollEnabled=function(v,e){return v&&!e};
bG.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
bG.prototype.onToggleTap=function(){this.expanded=!this.expanded};
bG.prototype.expandedChanged=bG.prototype.expandedChanged;bG.prototype.dataChanged=bG.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.NXt),_.w("design:type",Object)],bG.prototype,"ytdAutoScrollBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],bG.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],bG.prototype,"expanded",void 0);
_.c([_.f({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.w("design:type",Boolean)],bG.prototype,"autoScrollEnabled",void 0);_.c([_.f(),_.w("design:type",String)],bG.prototype,"expanderIcon",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bG.prototype,"dataChanged",null);
_.c([_.$v("expanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bG.prototype,"expandedChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],bG);
_.A(bG,"ytd-companion-legal-text-renderer",function(){if(PeT!==void 0)return PeT;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return PeT=v},{mode:1});var xRV;var YW=function(){var v=_.P.apply(this,arguments)||this;v.buttonUpdate=_.N("web_modern_buttons");v.kevlarWatchGrid=_.N("kevlar_watch_grid");v.centerAlignDescription=_.N("action_companion_center_align_description");v.truncateDomain=_.N("action_companion_truncate_domain");return v};
_.V(YW,_.P);_.W=YW.prototype;_.W.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.W.getOnLayoutVisibleCallback=function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.onLayoutVisibleCallback:null};
_.W.getLayoutId=function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
_.W.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",YW.JSC$22796_DEFAULT_AD_BADGE_RENDERER);var v=this.getOnLayoutVisibleCallback();v&&v()}};
_.W.getButtonRenderer=function(v){return v.actionButton&&_.L(v.actionButton,_.BD)?(delete _.L(v.actionButton,_.BD).navigationEndpoint,_.L(v.actionButton,_.BD)):{}};
_.W.onClick=function(v){var e=this;if((!_.N("web_modern_buttons")||!_.UG(_.vg(v),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){v=_.dB();var d=this.getLayoutId();v&&d&&_.N("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?v.getPlayerPromise().then(function(E){(new _.GS(E)).executeCommand(e.data.navigationEndpoint,d)}):_.N("kevlar_companion_resolve_command_killswitch")?_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.b4(this.hostElement,"yt-companion-ad-clicked",["action-companion",d])}};
_.vP.Object.defineProperties(YW.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((v=this.data)==null?0:(e=v.detailsLine)==null?0:(d=e.adRating)==null?0:d.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 v,e,d,E;return((v=this.data)==null?0:(e=v.detailsLine)==null?0:(d=e.adRating)==null?0:(E=d.ratingIcon)==null?0:E.iconType)?_.qC(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E;return((v=this.data)==null?0:(e=v.detailsLine)==null?0:(d=e.texts)==null?0:(E=d[0])==null?0:E.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 v,e;return((v=this.data)==null?0:(e=v.description)==null?0:e.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var v=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return v?v.indexOf("/default_banner")!==-1:!0}}});
YW.prototype.onClick=YW.prototype.onClick;YW.prototype.dataChanged=YW.prototype.dataChanged;YW.JSC$22796_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.sz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],YW.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],YW.prototype,"rendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],YW.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],YW.prototype,"buttonUpdate",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],YW.prototype,"kevlarWatchGrid",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],YW.prototype,"centerAlignDescription",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],YW.prototype,"truncateDomain",void 0);
_.c([_.f({computed:"computeButtonOverride(buttonUpdate)"}),_.w("design:type",Object)],YW.prototype,"buttonOverride",void 0);_.c([_.t("data.detailsLine.adRating.ratingText"),_.w("design:type",Object),_.w("design:paramtypes",[])],YW.prototype,"getRating",null);_.c([_.t("getRating"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],YW.prototype,"computeRatingHidden",null);
_.c([_.t("data.detailsLine.adRating.ratingIcon.iconType"),_.w("design:type",Object),_.w("design:paramtypes",[])],YW.prototype,"iconType",null);_.c([_.t("data.detailsLine.texts.0.text"),_.w("design:type",Object),_.w("design:paramtypes",[])],YW.prototype,"getDetailsLine",null);_.c([_.t("getDetailsLine"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],YW.prototype,"computeDetailsLineHidden",null);
_.c([_.t("data.description.text"),_.w("design:type",Object),_.w("design:paramtypes",[])],YW.prototype,"getDescriptionText",null);_.c([_.t("getDescriptionText"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],YW.prototype,"computeDescriptionTextHidden",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],YW.prototype,"interactionLoggingClientData",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],YW.prototype,"hideBanner",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],YW.prototype,"dataChanged",null);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],YW.prototype,"onClick",null);_.c([_.z({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],YW);
_.A(YW,"ytd-action-companion-ad-renderer",function(){if(xRV!==void 0)return xRV;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return xRV=v},{mode:_.bk("kevlar_poly_si_batch_j067")?1:2});var Bra;var Cem;var m2=function(){var v=_.P.apply(this,arguments)||this;v.buttonUpdate=_.N("web_modern_buttons");v.hideLegacyBanner=_.N("enable_dsa_one_click_ata_translators_infeed_elements");v.adInfoButtonStyle="mono";v.adInfoButtonType="text";v.noDotAdBadge=!0;return v};
_.V(m2,_.P);_.W=m2.prototype;_.W.getOnLayoutVisibleCallback=function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.onLayoutVisibleCallback:null};
_.W.getLayoutId=function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
_.W.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 v=this.data.image.thumbnail.thumbnails[0];this.imageSrc=v.url?_.xm(v.url):void 0;this.imageWidth=v.width||0;this.imageHeight=v.height||0}this.data.clickthroughEndpoint&&_.L(this.data.clickthroughEndpoint,_.wb)&&(v=_.L(this.data.clickthroughEndpoint,_.wb).url,_.N("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
v||"":v?(v=_.xm(v),this.clickThroughUrl=_.Mf(v)):this.clickThroughUrl=void 0);(v=this.getOnLayoutVisibleCallback())&&v()}};
_.W.onClick=function(v){_.UG(_.vg(v),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(v)};
_.W.handleClick=function(){var v=this;this.data&&this.data.clickthroughEndpoint&&(_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(e){v.macroReplacementBehavior.sendServiceRequestAction([e])}),_.b4(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.W.onLoad=function(){_.YB(this.hostElement,"yt-refit-popups-action")};
_.vP.Object.defineProperties(m2.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.interactionLoggingClientData:null}}});
m2.prototype.onLoad=m2.prototype.onLoad;m2.prototype.onClick=m2.prototype.onClick;m2.prototype.dataChanged=m2.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],m2.prototype,"rendererBehavior",void 0);_.c([_.M(iFm.YtMacroReplacementBehavior),_.w("design:type",Object)],m2.prototype,"macroReplacementBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],m2.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],m2.prototype,"buttonUpdate",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],m2.prototype,"hideLegacyBanner",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],m2.prototype,"adInfoButtonStyle",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],m2.prototype,"adInfoButtonType",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],m2.prototype,"macros",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],m2.prototype,"interactionLoggingClientData",null);_.c([_.f(),_.w("design:type",String)],m2.prototype,"clickThroughUrl",void 0);_.c([_.f(),_.w("design:type",_.o$)],m2.prototype,"imageSrc",void 0);_.c([_.f(),_.w("design:type",Number)],m2.prototype,"imageWidth",void 0);_.c([_.f(),_.w("design:type",Number)],m2.prototype,"imageHeight",void 0);_.c([_.f(),_.w("design:type",Object)],m2.prototype,"noDotAdBadge",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],m2.prototype,"dataChanged",null);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],m2.prototype,"onClick",null);_.c([_.Kq("load"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],m2.prototype,"onLoad",null);_.c([_.z({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],m2);
_.A(m2,"ytd-image-companion-renderer",function(){if(Cem!==void 0)return Cem;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Cem=v},{mode:_.bk("kevlar_poly_si_batch_j067")?1:2});var Xn$;var y5=function(){return _.P.apply(this,arguments)||this};
_.V(y5,_.P);_.W=y5.prototype;_.W.dataChanged=function(){this.set("data.adBadge",y5.JSC$22805_DEFAULT_AD_BADGE_RENDERER);if(this.data){var v=this.getOnLayoutVisibleCallback();v&&v()}};
_.W.getOnLayoutVisibleCallback=function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.onLayoutVisibleCallback:null};
_.W.getLayoutId=function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.layoutId:null};
_.W.onCompanionClicked=function(v){this.data&&(v.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.b4(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.W.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var v=_.dB(),e=this.getLayoutId(),d=this.data.clickToAdvSiteEndpoint;v&&e&&_.N("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?v.getPlayerPromise().then(function(E){(new _.GS(E)).executeCommand(d,e)}):_.Iq(this.hostElement,"yt-navigate",{endpoint:d})}};
_.W.sendTrackingPings=function(v){if(v&&v.length!==0&&v[0].loggingUrls&&(v=v[0].loggingUrls.map(this.getBaseUrl)))for(var e=0;e<v.length;e++)_.ZF(v[e])};
_.W.getBaseUrl=function(v){return v.baseUrl||""};
_.vP.Object.defineProperties(y5.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var v=_.AE("yt.www.ads.eventcache.getLastCompanionData");return v?(v=v())&&v.interactionLoggingClientData:null}}});
y5.prototype.onCompanionClicked=y5.prototype.onCompanionClicked;y5.prototype.dataChanged=y5.prototype.dataChanged;y5.JSC$22805_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.sz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],y5.prototype,"data",void 0);_.c([_.sg("#title"),_.w("design:type",HTMLElement)],y5.prototype,"shopTitle",void 0);
_.c([_.V1("data.impressionEndpoints"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],y5.prototype,"dataChanged",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],y5.prototype,"interactionLoggingClientData",null);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],y5.prototype,"onCompanionClicked",null);
_.c([_.z({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],y5);
_.A(y5,"ytd-shopping-companion-renderer",function(){if(Xn$!==void 0)return Xn$;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Xn$=v},{mode:1});_.aZ(_.l(function(v){var e=v.data;v=_.Eh({visibilityCallback:function(E){var T,S=(T=e().interaction)==null?void 0:T.onFirstVisible;E&&S&&_.wC(S)},
showOption:_.Em});var d=_.lH(function(){return e().interaction},MAT);
_.tf(function(){var E,T;T=(T=_.AE("yt.www.ads.eventcache.getLastCompanionData"))?(T=T())&&T.onLayoutVisibleCallback:null;(E=T)==null||E()});
return _.m("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.rq(function(E){_.YB(E.currentTarget,"yt-refit-popups-action")}),
el:_.dq(v,d),"aria-label":function(){var E,T;return(E=e().interaction)==null?void 0:(T=E.accessibility)==null?void 0:T.label}},_.m("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.m(_.kz,{data:function(){return e().adImage}},{adImageViewModel:function(E){return _.m(_.hh,{data:E.data,
targetHeight:80,customCommandResolver:MAT})}})),_.m("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.m("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.m(_.kz,{data:function(){return e().adBadge}},{adBadgeViewModel:function(E){return _.m(_.I3,{data:E.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.m("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.m(_.kz,{data:function(){return e().menu}},{buttonViewModel:_.yi}))))},"Gk"),"banner-image-layout-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;v=_.Eh({visibilityCallback:function(E){var T,S=(T=e().interaction)==null?void 0:T.onFirstVisible;E&&S&&_.wC(S)},
showOption:_.Em});var d=_.lH(function(){return e().interaction},tA$);
_.tf(function(){var E,T;T=(T=_.AE("yt.www.ads.eventcache.getLastCompanionData"))?(T=T())&&T.onLayoutVisibleCallback:null;(E=T)==null||E()});
return _.m("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.dq(v,d)},_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.m(_.kz,{data:function(){return e().adImage}},{adImageViewModel:function(E){return _.m(_.hh,{data:E.data,
targetHeight:80,customCommandResolver:tA$})}})),_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.m(_.kz,{data:function(){return e().adAvatarLockup}},{adAvatarLockupViewModel:function(E){return _.m(My6,{data:E.data,
customCommandResolver:tA$})}})),_.m(_.kz,{data:function(){return e().adButton}},{adButtonViewModel:function(E){return _.m(_.Sp,{data:E.data,
customCommandResolver:tA$})}}),_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.m(_.kz,{data:function(){return e().menu}},{buttonViewModel:_.yi}))))},"Hk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.U1}});var zWB={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"},qa=function(){var v=_.P.apply(this,arguments)||this;v.updateCompanionDataJobId=0;v.contentVideoId=null;v.player=null;v.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return v};
_.V(qa,_.P);_.W=qa.prototype;_.W.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:zWB}}};
_.W.attached=function(){var v=this,e=_.dB();e&&e.getPlayerPromise().then(function(d){v.getCachedDataAndListen(d)})};
_.W.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.W.updateRendererStamper=function(){var v={};if(this.data)for(var e in zWB)if(this.data[e]){v[e]=this.data[e];break}if(this.oneofRenderer!=void 0||Object.keys(v).length)this.oneofRenderer=v};
_.W.getCachedDataAndListen=function(v){var e=this.retrieveCachedCompanionData();e&&Object.keys(e).length&&this.receiveCompanionData(e);this.ytPlayerListenerBehavior.listenToPlayerEvent(v,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=v};
_.W.retrieveCachedCompanionData=function(){return _.TO.yt&&_.TO.yt.www&&_.TO.yt.www.ads&&_.TO.yt.www.ads.eventcache&&_.TO.yt.www.ads.eventcache.getLastCompanionData?_.TO.yt.www.ads.eventcache.getLastCompanionData():null};
_.W.receiveCompanionData=function(v){v&&Object.keys(v).length?(this.contentVideoId=v.contentVideoId,this.setCompanionData(v)):this.setCompanionData(v)};
_.W.setCompanionData=function(v){this.cancelPendingCompanionAdJobs();if(v){this.updateCompanionDataJobId=0;for(var e in zWB)zWB.hasOwnProperty(e)&&(this.data[e]=void 0);v.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",v.shoppingCompanionCarouselRenderer):v.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",v.imageCompanionAdRenderer):v.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",v.actionCompanionAdRenderer),_.YB(this.hostElement,
"yt-hide-unlimited-offer-module"),_.YB(this.hostElement,"yt-hide-tvfilm-offer-module")):v.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",v.bannerImageLayoutViewModel):v.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",v.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.W.dataChanged=function(){var v=this,e=_.dB();e?e.getPlayerPromise().then(function(d){v.contentVideoId&&d.getVideoUrl().includes("v="+v.contentVideoId)||(v.cancelPendingCompanionAdJobs(),v.updateRendererStamper())}):_.ZV(Error("Ko"))};
_.W.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.RM.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.W.handleCompanionAdClicked=function(v,e){this.player.onAdUxClicked(v,e);this.player.pauseVideo()};
qa.prototype.dataChanged=qa.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],qa.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],qa.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],qa.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],qa.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],qa.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],qa.prototype,"oneofRenderer",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qa.prototype,"dataChanged",null);_.c([_.z({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],qa);
_.A(qa,"ytd-companion-slot-renderer",function(){if(Bra!==void 0)return Bra;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Bra=v},{mode:_.bk("kevlar_poly_si_batch_j067")?
1:2});var lP$;var rL=function(){return _.P.apply(this,arguments)||this};
_.V(rL,_.P);rL.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
rL.prototype.dataChanged=rL.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],rL.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],rL.prototype,"companionSlotData",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rL.prototype,"dataChanged",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],rL);
_.A(rL,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(lP$!==void 0)return lP$;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return lP$=v},{mode:1});var H0r;var h2=function(){var v=_.P.apply(this,arguments)||this;v.skinnyMode=!1;v.COMPACT_EVENT_COUNT=4;v.onShelfToggleButtonTap=function(){v.logTap(v.data);v.showingMore=!v.showingMore};
v.onShelfToggleButtonFocus=function(){v.showingMore||(v.logTap(v.data),v.showingMore=!0,_.Uh(v,function(){var e=v.COMPACT_EVENT_COUNT-1,d;(d=_.IB(v.hostElement).querySelector("#event-"+e))==null||d.focus()}))};
return v};
_.V(h2,_.P);_.W=h2.prototype;_.W.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.W.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.W.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.hG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.hG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.hG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.hG(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.hG(this.infoTooltip,this.infoTooltip.hide))};
_.W.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.hG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.hG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.hG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.hG(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.hG(this.infoTooltip,this.infoTooltip.hide))};
_.W.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)};
_.W.onShowingMoreChanged=function(){var v;this.showingMoreChanged((v=this.showingMore)!=null?v:!1)};
_.W.showingMoreChanged=function(v){var e=this.get("data.events")||[];this.set("restEvents",e.slice(1,v?e.length:this.COMPACT_EVENT_COUNT).map(function(d){return d.ticketEventRenderer}));
e.slice(0,v?e.length:this.COMPACT_EVENT_COUNT).forEach(function(d){var E=_.zz();d=d.ticketEventRenderer.trackingParams;_.Xf()&&E&&d&&(d=_.Jg(d),E&&_.u4(E,d))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.W.computeAriaLabel=function(v){return v.subtitle1+", "+v.subtitle2};
_.W.logTap=function(v){_.Xf()&&this.ytRendererBehavior.logExplicitClick(v)};
_.W.isKeyboardAction=function(v){return this.get("detail.x",v)===0&&this.get("detail.y",v)===0};
_.W.onFirstEventTap=function(v){v.target&&this.handleTap(v.target,this.firstEvent,this.isKeyboardAction(v))};
_.W.onTicketLinkTap=function(v){v.target&&this.handleTap(v.target,v.model.item,this.isKeyboardAction(v))};
_.W.handleTap=function(v,e,d){if(e.buttonCommand)if(e.hasMultipleOffers)Object.assign(_.L(e.buttonCommand,_.L6),{properties:{source:d?"keyboard":"tap"}}),this.logTap(e),this.popupPositionTarget=v,_.ya(this.hostElement,[e.buttonCommand],this.hostElement);else{var E;if((E=_.L(e.buttonCommand,_.wb))==null?0:E.url)this.logTap(e),_.Fa(window,_.L(e.buttonCommand,_.wb).url)}};
h2.prototype.onShowingMoreChanged=h2.prototype.onShowingMoreChanged;h2.prototype.dataChanged=h2.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],h2.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],h2.prototype,"firstEvent",void 0);_.c([_.f(),_.w("design:type",Object)],h2.prototype,"restEvents",void 0);_.c([_.f(),_.w("design:type",String)],h2.prototype,"imageUrl",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],h2.prototype,"showingMore",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],h2.prototype,"canShowMore",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],h2.prototype,"skinnyMode",void 0);_.c([_.f(),_.w("design:type",HTMLElement)],h2.prototype,"popupPositionTarget",void 0);_.c([_.sg("#banner-info-tooltip"),_.w("design:type",Object)],h2.prototype,"infoTooltip",void 0);
_.c([_.sg("#info-container"),_.w("design:type",HTMLElement)],h2.prototype,"infoContainer",void 0);_.c([_.sg("#shelf-toggler"),_.w("design:type",HTMLElement)],h2.prototype,"shelfToggleButton",void 0);_.c([_.sg("#separator"),_.w("design:type",HTMLDivElement)],h2.prototype,"separator",void 0);_.c([_.f(),_.w("design:type",String)],h2.prototype,"shelfTogglerLabelText",void 0);_.c([_.f(),_.w("design:type",String)],h2.prototype,"shelfTogglerIcon",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],h2.prototype,"dataChanged",null);_.c([_.V1("showingMore"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],h2.prototype,"onShowingMoreChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],h2);
_.A(h2,"ytd-ticket-shelf-renderer",function(){if(H0r!==void 0)return H0r;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return H0r=v},{mode:1});var Ac$;var Z0J;var KJ=function(){return _.P.apply(this,arguments)||this};
_.V(KJ,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],KJ.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],KJ);
_.A(KJ,"ytd-comments-entry-point-message-renderer",function(){if(Z0J!==void 0)return Z0J;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Z0J=v},{mode:1});var cc$;var $W=function(){return _.P.apply(this,arguments)||this};
_.V($W,_.P);_.vP.Object.defineProperties($W.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.teaserAvatar)}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$W.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$W.prototype,"hasAvatar",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],$W);
_.A($W,"ytd-comments-entry-point-teaser-renderer",function(){if(cc$!==void 0)return cc$;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return cc$=v},{mode:1});var wnm;var jQ=function(){return _.P.apply(this,arguments)||this};
_.V(jQ,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],jQ.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],jQ);
_.A(jQ,"ytd-comments-simplebox-renderer",function(){if(wnm!==void 0)return wnm;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return wnm=v},{mode:1});var sq=function(){var v=_.P.apply(this,arguments)||this;v.fullHeight=!_.N("comment_teaser_full_height_kill_switch")&&_.N("kevlar_watch_grid");return v};
_.V(sq,_.P);sq.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"}}}};
sq.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
sq.prototype.onTap=function(){var v=this.tapCommand;v&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(v))};
sq.prototype.onKeyUp=function(v){if(v.keyCode===13)this.onTap()};
_.vP.Object.defineProperties(sq.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.onTap)return this.data.onTap;var e,d;if(((e=this.data)==null?0:e.teaserContent)||((d=this.data)==null?0:d.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)!=null&&v.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
sq.prototype.onKeyUp=sq.prototype.onKeyUp;sq.prototype.onTap=sq.prototype.onTap;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],sq.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sq.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],sq.prototype,"fullHeight",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],sq.prototype,"tapCommand",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],sq.prototype,"simpleboxPlaceholder",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sq.prototype,"hasSimpleboxPlaceholder",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],sq.prototype,"simpleboxAvatar",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],sq.prototype,"teaserContent",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sq.prototype,"hasTeaserContent",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],sq.prototype,"teaserAvatar",null);
_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sq.prototype,"hasTeaserAvatar",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],sq.prototype,"messageText",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],sq.prototype,"contentRenderer",null);_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sq.prototype,"hasContents",null);
_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sq.prototype,"hasContentRenderer",null);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sq.prototype,"onTap",null);_.c([_.Kq("keypress"),_.w("design:type",Function),_.w("design:paramtypes",[_.YN]),_.w("design:returntype")],sq.prototype,"onKeyUp",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],sq);
_.A(sq,"ytd-comments-entry-point-header-renderer",function(){if(Ac$!==void 0)return Ac$;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Ac$=v},{mode:1});var F1J;_.N("web_enable_sink_animated_rolling_character_and_number")?_.aZ(_.tk0,"yt-animated-rolling-number",{props:{numberText:_.U1,numberValue:_.U1,heightPx:_.U1,fontSizeMultiplier:_.U1,shouldAnimate:_.U1,forceRollUp:_.U1}}):yer();var Q2r=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),gxY={numberText:"",heightPx:2*Q2r,shouldAnimate:!1},Na=function(){var v=_.P.apply(this,arguments)||this;v.usingAnimatedComponents=!0;v.wasDetailed=!1;v.JSC$22843_browserSupportsAnimation=_.N("web_supports_animations_api");v.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};v.detailed=!1;v.shouldAnimate=!1;v.viewCountProps=gxY;v.dateTextProps=
gxY;v.metadataBadgesInDescription=_.N("web_metadata_badges_in_description");return v};
_.V(Na,_.P);_.W=Na.prototype;_.W.resetAnimationState=function(){this.shouldAnimate=!1};
_.W.updateDynamicMetadata=function(){if(this.JSC$22843_browserSupportsAnimation){if(!this.detailed){var v,e,d,E;var T=(v=this.videoPrimaryInfoRenderer)==null?void 0:(e=v.viewCount)==null?void 0:(d=e.videoViewCountRenderer)==null?void 0:(E=d.extraShortViewCount)==null?void 0:E.simpleText;var S,O,b,Y;var q=(S=this.videoPrimaryInfoRenderer)==null?void 0:(O=S.viewCount)==null?void 0:(b=O.videoViewCountRenderer)==null?void 0:(Y=b.shortViewCount)==null?void 0:Y.simpleText}if(!q){var r,h,K,k;T=(r=this.videoPrimaryInfoRenderer)==
null?void 0:(h=r.viewCount)==null?void 0:(K=h.videoViewCountRenderer)==null?void 0:(k=K.unlabeledViewCountValue)==null?void 0:k.simpleText;var J,R,B,X;q=(J=this.videoPrimaryInfoRenderer)==null?void 0:(R=J.viewCount)==null?void 0:(B=R.videoViewCountRenderer)==null?void 0:(X=B.viewCount)==null?void 0:X.simpleText}var Z,U,F;v=Number((Z=this.videoPrimaryInfoRenderer)==null?void 0:(U=Z.viewCount)==null?void 0:(F=U.videoViewCountRenderer)==null?void 0:F.originalViewCount);var g,Q;Z=(g=this.videoPrimaryInfoRenderer)==
null?void 0:(Q=g.relativeDateText)==null?void 0:Q.simpleText;var v3;g=!((v3=this.videoPrimaryInfoRenderer)==null||!v3.relativeDateText);if(T&&q&&v&&(Z||!g)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;v3=q.split(new RegExp("("+T+")"));T=CM6(v3[0]);var q7;q={numberText:(q7=v3[1])!=null?q7:"",numberValue:v,heightPx:2*Q2r,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var m0;q7=((m0=v3[2])!=null?m0:"")+"  ";this.setViewCount(q,T,CM6(q7));
if(!this.detailed&&g){T=Z.split(/(\d+)/);m0=CM6(T[0]);var $S;q7={numberText:($S=T[1])!=null?$S:"",heightPx:2*Q2r,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var kS;$S=((kS=T[2])!=null?kS:"")+"  ";this.setDateText(q7,m0,CM6($S))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.W.setViewCount=function(v,e,d){_.vv(e)!==_.vv(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=e);this.viewCountProps.numberText!==(v==null?void 0:v.numberText)&&(this.viewCountProps=v||gxY);_.vv(d)!==_.vv(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=d)};
_.W.setDateText=function(v,e,d){_.vv(e)!==_.vv(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=e);this.dateTextProps.numberText!==(v==null?void 0:v.numberText)&&(this.dateTextProps=v||gxY);_.vv(d)!==_.vv(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=d)};
_.W.onYtUpdateViewershipAction=function(v){this.videoPrimaryInfoRenderer&&(_.L(v,H9$).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.L(v,H9$).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.L(v,H9$).viewCount)))};
_.W.onYtUpdateDateTextAction=function(v){if(this.videoPrimaryInfoRenderer){v=_.L(v,_.z_Y).dateText;this.shouldAnimate=!0;var e;((e=this.videoPrimaryInfoRenderer)==null?0:e.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",v):this.set("videoPrimaryInfoRenderer.dateText",v)}};
_.vP.Object.defineProperties(Na.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Bnm(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.vv(Bnm(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.vv(this.viewCountPreNumberText),this.viewCountProps.numberText,_.vv(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.vv(this.dateTextPreNumberText),this.dateTextProps.numberText,_.vv(this.dateTextPostNumberText)].join("")}}});
Na.prototype.updateDynamicMetadata=Na.prototype.updateDynamicMetadata;Na.prototype.resetAnimationState=Na.prototype.resetAnimationState;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Na.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Na.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Na.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Na.prototype,"detailed",void 0);_.c([_.f(),_.w("design:type",Object)],Na.prototype,"shouldAnimate",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Na.prototype,"viewCountPreNumberText",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Na.prototype,"viewCountProps",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Na.prototype,"viewCountPostNumberText",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Na.prototype,"dateTextPreNumberText",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Na.prototype,"dateTextProps",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Na.prototype,"dateTextPostNumberText",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Na.prototype,"metadataBadgesInDescription",void 0);_.c([_.t("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.w("design:type",Object),_.w("design:paramtypes",[])],Na.prototype,"infoText",null);
_.c([_.t("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.w("design:type",String),_.w("design:paramtypes",[])],Na.prototype,"descriptionInfoTooltipText",null);_.c([_.t("detailed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Na.prototype,"showDescriptionInfoTooltip",null);
_.c([_.t("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.w("design:type",String),_.w("design:paramtypes",[])],Na.prototype,"animatedViewCountAccessibilityLabel",null);_.c([_.t("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.w("design:type",String),_.w("design:paramtypes",[])],Na.prototype,"animatedDateTextAccessibilityLabel",null);
_.c([_.$v("videoPrimaryInfoRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Na.prototype,"resetAnimationState",null);_.c([_.$v("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Na.prototype,"updateDynamicMetadata",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Na);
_.A(Na,"ytd-watch-info-text",function(){if(F1J!==void 0)return F1J;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return F1J=v},{mode:1});var uvT;var nxf="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var DR$=_.l(function(v){var e=v.data;var d=v.setTapCommand;_.o_(function(){var E=_.lk(e().onTap);d(E)},"X4onJd");
return _.m("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.m(_.kz,{data:function(){return e().avatar}},{avatarViewModel:_.x7}),_.m("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.m("span",null,function(){return e().simpleboxText})))},"Ik");var UR$=_.l(function(v){return _.m("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.m(_.y,{cond:function(){return _.L(v.data().avatar,_.Cv)},
then:function(e){return _.m(_.x7,{data:e,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.m("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.m(_.Dh,{text:function(){return v.data().teaserText}})))},"Jk");var pn6=_.l(function(v){var e=v.data;var d=v.setTapCommand;_.o_(function(){var E=_.lk(e().onTap);d(E)},"PmAol");
return _.m("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.m(_.kz,{data:function(){return e().teasers}},{commentsEntryPointTeaserViewModel:UR$}))},"Kk");var vhD=_.l(function(v){var e=v.data;var d=v.setTapCommand;_.o_(function(){var E=_.lk(e().onTap);d(E)},"Nh3Hjd");
return _.m("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.m(_.Dh,{text:function(){return e().messageText}}))},"Lk");var eHa=_.l(function(v){var e=v.data;var d=v.setTapCommand;var E=v.isDisabled;_.o_(function(){var T=(E==null?0:E())?void 0:_.lk(e().onTap);d(T)},"omeiWe");
return _.m("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.m(_.sG,{icon:function(){return e().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.m(_.y,{cond:function(){return e().image},
then:function(T){return _.m(_.va,{data:T,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.m(_.Dh,{text:function(){return e().text},
className:function(){return e().image||e().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.m(_.kz,{data:function(){return e().button}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:E==null?void 0:E()}}})}}))},"Mk");var du6=_.l(function(v){var e=v.data;var d=v.itemIndex;var E=v.selectedIndex;var T=v.indexUpdatedCallback;var S=v.observer;v=v.title;var O=_.nI("yt-carousel-item-view-model",function(h){S&&S().observe(h)}),b=function(h){d()===E()&&T(h)},Y=_.Xj(I0m),q=_.Xj(_.$ot),r=function(){var h,K,k;
return((h=e())==null?void 0:h.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!Y()||((K=e())==null?void 0:K.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&q().includes("PAposts_by_host")||((k=e())==null?void 0:k.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&q().includes("PAyouchat")};
return _.m("yt-carousel-item-view-model",{el:O,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":v},_.m(_.kz,{data:function(){var h,K;return(K=(h=_.L(e().carouselItem,i96))==null?void 0:h.textCarousel)!=null?K:e().carouselItem}},{textCarouselItemViewModel:function(h){return _.m(eHa,{data:h.data,
setTapCommand:b,isDisabled:r})},
commentTeaserCarouselItemViewModel:function(h){return _.m(pn6,{data:h.data,setTapCommand:b})},
commentInputBoxCarouselItemViewModel:function(h){return _.m(DR$,{data:h.data,setTapCommand:b})},
commentsEntryPointMessageViewModel:function(h){return _.m(vhD,{data:h.data,setTapCommand:b})}}))},"Nk");var EhT=_.l(function(v){var e=v.numDots;var d=v.activeIndex;return _.m("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.m(_.jI,{each:function(){return Array.from({length:e()})},
keyBy:"INDEX"},function(E,T){return _.m("div",{class:function(){var S={};return _.tX("ytCarouselDotsShapeDot",(S.ytCarouselDotsShapeDotActive=T===d(),S))}})}))},"Ok");var Tf$=_.l(function(v){var e=v.data;var d=v.handleCarouselNavigation;var E=v.numItems;var T=v.selectedIndex;var S=function(){return{disabled:T()===0}},O=function(){return{disabled:T()===E()-1}};
return _.m("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.m("div",null,_.m("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return e().title}),_.m(_.y,{cond:function(){return e().subtitle},
then:function(b){return _.m("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return e().subtitleAccessibilityText}},b)}})),_.m(_.y,{cond:function(){return E()>1},
then:function(){return _.m("div",{class:"ytCarouselTitleViewModelNavigation"},_.m(EhT,{numDots:E,activeIndex:T}),_.m(_.y,{cond:function(){return e().previousButton},
then:function(b){return _.m(_.kz,{data:b},{buttonViewModel:function(Y){return _.m(_.yi,{data:Y.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return d(-1)},
buttonOverrides:S})}})}}),_.m(_.y,{cond:function(){return e().nextButton},
then:function(b){return _.m(_.kz,{data:b},{buttonViewModel:function(Y){return _.m(_.yi,{data:Y.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return d(1)},
buttonOverrides:O})}})}}))}}))},"Pk");_.aZ(_.l(function(v){var e=v.data;var d,E=_.nI("yt-video-metadata-carousel-view-model"),T=_.nI("div",function(g){var Q=function(){var v3=g.offsetWidth*R(),q7=24*(R()-1);K(v3+q7)};
Q();window.ResizeObserver&&(d=new ResizeObserver(Q),d.observe(g))}),S=_.Bb("HTML_DIR")==="rtl",O=!1,b=0,Y=0;
v=_.a(_.OE(0,void 0,"fCZdg"));var q=v.next().value,r=v.next().value;v=_.a(_.OE(0,void 0,"FQiAle"));var h=v.next().value,K=v.next().value;v=_.a(_.OE(!1,void 0,"O4owzd"));var k=v.next().value,J=v.next().value,R=function(){var g,Q,v3;return(v3=(g=e())==null?void 0:(Q=g.carouselTitles)==null?void 0:Q.length)!=null?v3:0},B=function(){T.value&&T.value.scrollLeft!==b&&r((S?T.value.scrollLeft<b:T.value.scrollLeft>b)?Math.min(q()+1,R()-1):Math.max(q()-1,0))},X;
window.IntersectionObserver&&(X=new IntersectionObserver(function(g){g=_.a(g);for(var Q=g.next();!Q.done;Q=g.next())if(Q.value.isIntersecting){if(O){O=!1;break}B()}else r(Y)},{threshold:.2}));
_.o_(function(){if(T.value){var g=(S?-1:1)*(h()/R()+12)*(k()&&X?Y:q());typeof T.value.scrollTo==="function"?T.value.scrollTo({left:g,behavior:"smooth"}):T.value.scrollLeft=g;b=g;Y=k()&&X?Y:q()}},"oi9Jzd");
var Z,U=function(g){Z=g};
_.Jf(function(){var g;(g=d)==null||g.disconnect();var Q;(Q=X)==null||Q.disconnect()});
var F=function(g){g=q()+g;g>=0&&g<R()&&(O=!0,r(g))};
return _.m("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:E,"on:click":_.rq(function(g){if(_.R7(_.fv(g),E.value,["BUTTON".toString()])||!Z)return!1;_.dk().resolve(_.EI).resolveCommand(Z,{forceClickLogging:!0});return!1}),
"on:touchstart":_.rq(function(){J(!0);return!1}),
"on:touchend":_.rq(function(){X||B();J(!1);return!1}),
hidden:function(){var g,Q;return!((g=e())==null?0:(Q=g.carouselItems)==null?0:Q.length)}},_.m("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.m(_.y,{cond:function(){return e().carouselTitles},
then:function(g){return _.m(_.kz,{data:function(){return g()[k()&&X?Y:q()]}},{carouselTitleViewModel:function(Q){return _.m(Tf$,{data:Q.data,
handleCarouselNavigation:F,numItems:R,selectedIndex:q})}})}})),_.m("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:T},_.m("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+h()+"px;"}},_.m(_.y,{cond:function(){return e().carouselItems},
then:function(g){return _.m(_.jI,{each:g},function(Q,v3){return _.m(_.kz,{data:function(){return Q}},{carouselItemViewModel:function(q7){return _.m(du6,{data:q7.data,
itemIndex:v3,selectedIndex:q,indexUpdatedCallback:U,observer:X,title:function(){a:{var m0=v3();var $S,kS=($S=e())==null?void 0:$S.carouselTitles;if(kS&&(m0=kS[m0])){var N7;m0=(N7=_.L(m0,awV))==null?void 0:N7.title;break a}m0=void 0}return m0}})}})})}}))))},"Qk"),"yt-video-metadata-carousel-view-model",{props:{data:_.U1}});var SlT=_.N("web_action_buttons_update_owner_width")?32:12,kW=function(){var v=_.P.apply(this,arguments)||this;v.isHovering=!1;v.enableColorSampling=_.N("web_delhi_colorful_sd");v.metadataBadgesInDescription=_.N("web_metadata_badges_in_description");v.descriptionCollapsed=!0;v.useFadedScrimDescription=_.N("kevlar_enable_faded_scrim_on_description");v.skinnyMode=!1;v.playlist=!1;v.isDark=document.documentElement.hasAttribute("dark");v.disableVideoOwnerOnTap=_.N("swatchie_video_owner_on_tap_ks");v.swatcherooDelayLoad=
_.N("swatcheroo_enable_ghost_cards");v.primaryMenuWidth=0;v.videoId="";v.titleHeadlineXs=_.N("web_watch_typography_title_headline_xs");v.titleHeadlineS=_.N("web_watch_typography_title_headline_s");v.titleHeadlineM=_.N("web_watch_typography_title_headline_m");v.titleHashtagBlackLinkified=_.N("web_title_hashtag_black_linkified");v.titleHashtagGreyLinkified=_.N("web_title_hashtag_grey_linkified");v.actionButtonsUpdateOwnerWidth=_.N("web_action_buttons_update_owner_width");v.shouldForceIconOnly=!1;v.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};v.isFullscreen=!1;v.isTheaterMode=!1;return v};
_.V(kW,_.P);_.W=kW.prototype;_.W.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.W.updateOwnerAndDescriptionPosition=function(){_.N("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Rh(this.bottomRowElement,this.ownerElement)):(_.Rh(this.bottomRowElement,this.descriptionElement),_.Rh(this.topRowElement,this.ownerElement)))};
_.W.titleOnTap=function(v){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.UG(_.vg(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||this.handleExpandDescriptionCommands()}};
_.W.videoOwnerOnTap=function(v){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.UG(_.vg(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.W.detached=function(){var v=this,e;return _.I(function(d){(e=v.resizeObserver)==null||e.disconnect();_.s9(d)})};
_.W.maybeAttachResizeObserver=function(){var v=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.wB(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){v.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.W.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var v=this.hostElement.clientWidth,e=Math.max(this.largerItemWrap?400:350,v/2-SlT);if(_.N("web_action_buttons_update_owner_width")){var d;e=(((d=document.getElementById("owner"))==null?void 0:d.clientWidth)||0)+SlT}this.actionsOnSeparateLine=this.primaryMenuWidth>v-e?!0:!1}};
_.W.stripAttributedDescription=function(v){return{content:v.content.replace(/[\r\n]{2,}/g,"\n")}};
_.W.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.N("web_modern_buttons"),forceIconButton:!_.N("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:_.N("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"}}}};
_.W.videoPrimaryInfoRendererChanged=function(){var v;if((v=this.videoPrimaryInfoRenderer)==null?0:v.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.W.videoSecondaryInfoRendererChanged=function(){var v,e;(e=(v=this.descriptionInlineExpander).collapse)==null||e.call(v);this.descriptionExpandClientVe=_.bH(110509);this.descriptionCollapseClientVe=_.bH(110510);v=_.zz();e=_.Xf();v&&e&&(_.N("combine_ve_grafts")?(_.bj(_.NC(),this.descriptionExpandClientVe,e),_.bj(_.NC(),this.descriptionCollapseClientVe,e)):_.gV(v,e,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.W.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.W.updateTopLevelIconsOnly=function(){var v=this;_.N("top_level_update_killswitch")||this.menu&&_.RM.addLowPriorityJob(function(){v.menu.topLevelIconsOnly=v.skinnyMode},_.Wi("swathceroo_delay_flexible_menu_update",100))};
_.W.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.N("web_action_buttons_minimize_subscribe")};
_.W.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.W.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.W.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.W.onYtTextInlineExpanderExpandedChanged=function(){if(!_.N("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var v,e;(e=(v=this.structuredDescriptionContentRendererElement).resize)==null||e.call(v)}};
_.W.onRenderStamperFinished=function(v){(v==null?void 0:v.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.W.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.W.onYtExpanderLessTapped=function(){var v,e=(v=this.videoSecondaryInfoRenderer)==null?void 0:v.showLessCommand;e&&this.ytComponentBehavior.resolveCommand(e)};
_.W.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.W.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.W.onDescriptionClick=function(v){if(!_.UG(_.vg(v)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.N("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.W.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.W.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.W.logCollapseClick=function(){var v=_.zz();v&&this.descriptionCollapseClientVe&&_.Uz(v,this.descriptionCollapseClientVe)};
_.W.logExpandClick=function(){var v=_.zz();v&&this.descriptionExpandClientVe&&_.Uz(v,this.descriptionExpandClientVe)};
_.W.collapseDescription=function(){this.descriptionCollapsed=!0};
_.W.scrollToTopOfContainer=function(){_.b4(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.W.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.W.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.W.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.W.resize=function(){if(this.descriptionInlineExpander){var v,e;(e=(v=this.descriptionInlineExpander).resize)==null||e.call(v)}else _.xf(new _.kL("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var d;(d=this.menu)==null||d.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.W.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var v,e,d,E,T=_.N("web_action_buttons_update_owner_width")?(d=(v=_.IB(this.menu).querySelector("#button-shape"))==null?void 0:v.clientWidth)!=null?d:0:(E=(e=_.IB(this.menu).querySelector("#button"))==null?void 0:e.clientWidth)!=null?E:0,S,O;v=((O=(S=_.IB(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:S.clientWidth)!=null?O:0)+8+T;var b,Y;T=(Y=(b=_.IB(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:b.children.length)!=null?Y:2;v<=8*T||(this.primaryMenuWidth=v)}};
_.W.onYtUpdateTitleAction=function(v){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.L(v,lw$).title)};
_.W.onYtUpdateDescriptionAction=function(v){if(v=_.L(v,_.iRc)){var e,d=!((e=this.videoSecondaryInfoRenderer)==null||!e.attributedDescription);v.isEmpty||!v.description&&!v.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):v.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",v.attributedDescription):v.description&&(d?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Bz(v.description)):this.set("videoSecondaryInfoRenderer.description",v.description))}};
_.W.onYtDarkModeToggledAction=function(v){this.isDark=v};
_.W.registerPanel=function(){if(!_.N("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var v=_.N("web_watch_imax_theater_mode")&&this.isTheaterMode;v=_.N("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||v;var e=_.dk().resolve(_.tx);e&&!v&&e.registerPanel("engagement-panel-structured-description",this)}};
_.W.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.W.parseColorSamplingData=function(){var v;if(_.N("web_delhi_colorful_sd")&&((v=this.structuredDescriptionContentRenderer)==null?0:v.items)&&(v=this.structuredDescriptionContentRenderer.items.find(function(T){return!!_.L(T,Po)}))){var e,d;
this.hoverColor={lightTheme:(e=_.L(v,Po))==null?void 0:e.lightThemeColorPalette,darkTheme:(d=_.L(v,Po))==null?void 0:d.darkThemeColorPalette};var E;this.hoverText=(E=_.L(v,Po))==null?void 0:E.colorSampledDescriptionBodyText}};
_.W.updateHoverColor=function(){if(_.N("web_delhi_colorful_sd")){var v=this.hoverColor,e={},d;v=(d=this.isDark?v==null?void 0:v.darkTheme:v==null?void 0:v.lightTheme)!=null?d:{};d=_.a(nxf);for(var E=d.next();!E.done;E=d.next()){E=E.value;var T=v[E];e["--yt-saturated-"+_.Nn(E)]=T?_.w1(T):"initial"}_.qr(this.hostElement,e)}};
_.W.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.W.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.W.showPanel=function(v){this.expandDescription();var e=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;e.resize();var d,E=v==null?void 0:(d=v.sectionListEngagementPanelExtras)==null?void 0:d.scrollToItemSectionIdentifier;E?_.RM.addJob(function(){e==null||e.scrollToSection(E)},8):this.scrollToTopOfContainer()};
_.W.isVisible=function(){return!this.descriptionCollapsed};
_.W.getReloadContinuation=function(){};
_.W.hidePanel=function(){};
_.W.updatePanel=function(){};
_.vP.Object.defineProperties(kW.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var v;return _.N("web_delhi_colorful_sd")&&(v=this.structuredDescriptionContentRenderer)!=null&&v.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(e){return!_.L(e,Po)&&!_.L(e,Z9V)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.structuredDescriptionContentRendererComputed)!=null&&v.items){var e;v=_.a((e=this.structuredDescriptionContentRendererComputed)==null?void 0:e.items);for(e=v.next();!e.done;e=v.next())if(e=_.L(e.value,_.Ts7))return e}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.videoPrimaryInfoRenderer)==null?0:v.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return!!((v=this.videoSecondaryInfoRenderer)==null?0:(e=v.owner)==null?0:(d=e.videoOwnerRenderer)==null?0:d.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var v,e;if((v=this.videoSecondaryInfoRenderer)==null?0:(e=v.attributedDescription)==null?0:e.content){var d,E;return(E=this.stripAttributedDescription((d=this.videoSecondaryInfoRenderer)==null?void 0:d.attributedDescription))!=null?E:{runs:[]}}}if(_.N("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var T,S,O,b;return(b=(O=(T=this.videoSecondaryInfoRenderer)==
null?void 0:T.description)!=null?O:(S=this.videoSecondaryInfoRenderer)==null?void 0:S.attributedDescription)!=null?b:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=(v=this.videoSecondaryInfoRenderer)==null?void 0:v.headerRuns)!=null?e:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.commentsEntryPointHeaderRenderer)==null||!v.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.videoMetadataCarousel)==null||!v.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Wi("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Wi("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var v,e,d=Object.assign({},(v=this.videoSecondaryInfoRenderer)==null?void 0:(e=v.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer);if(d&&d.rows&&d.collapsedItemCount!==void 0&&!(d.rows.length<=d.collapsedItemCount))return d.rows=d.rows.slice(d.collapsedItemCount),d.collapsedItemCount=0,d}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var v,e,d=Object.assign({},(v=this.videoSecondaryInfoRenderer)==null?void 0:(e=v.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer);if(d&&d.rows&&d.collapsedItemCount!==void 0)return d.rows=d.rows.slice(0,d.collapsedItemCount),d.collapsedItemCount=d.rows.length,d}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var v,e;return!!((v=this.structuredDescriptionContentRendererComputed)==null?0:(e=v.items)==null?0:e.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var v;return(v=this.videoSecondaryInfoRenderer)==null?void 0:v.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((v=this.videoSecondaryInfoRenderer)==null?0:(e=v.owner)==null?0:(d=e.videoOwnerRenderer)==null?0:d.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E;return!!((v=this.videoPrimaryInfoRenderer)==null?0:(e=v.videoActions)==null?0:(d=e.menuRenderer)==null?0:(E=d.flexibleItems)==null?0:E.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.DI(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.DI(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var v=this;if(_.N("web_title_hashtag_grey_delinkified")){var e,d=_.f0.unsafeClone((e=this.videoPrimaryInfoRenderer)==null?void 0:e.title);(e=d==null?void 0:d.runs)&&e.forEach(function(E){if(E==null?0:E.navigationEndpoint)E.textColor=4284506208,v.isDark&&(E.textColor=4289374890)});
return d}return(d=this.videoPrimaryInfoRenderer)==null?void 0:d.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.N("web_title_hashtag_black_delinkified")||_.N("web_title_hashtag_grey_delinkified")}}});
kW.prototype.updateHoverColor=kW.prototype.updateHoverColor;kW.prototype.parseColorSamplingData=kW.prototype.parseColorSamplingData;kW.prototype.resetDescriptionState=kW.prototype.resetDescriptionState;kW.prototype.registerPanel=kW.prototype.registerPanel;kW.prototype.onYtExpanderLessTapped=kW.prototype.onYtExpanderLessTapped;kW.prototype.onYtExpanderMoreTapped=kW.prototype.onYtExpanderMoreTapped;kW.prototype.onRenderStamperFinished=kW.prototype.onRenderStamperFinished;
kW.prototype.onYtTextInlineExpanderExpandedChanged=kW.prototype.onYtTextInlineExpanderExpandedChanged;kW.prototype.onYtTextInlineExpanderCollapseClicked=kW.prototype.onYtTextInlineExpanderCollapseClicked;kW.prototype.onYtTextInlineExpanderExpandClicked=kW.prototype.onYtTextInlineExpanderExpandClicked;kW.prototype.moveActionsElement=kW.prototype.moveActionsElement;kW.prototype.updateShouldForceIconOnly=kW.prototype.updateShouldForceIconOnly;kW.prototype.updateTopLevelIconsOnly=kW.prototype.updateTopLevelIconsOnly;
kW.prototype.structuredDescriptionContentRendererChanged=kW.prototype.structuredDescriptionContentRendererChanged;kW.prototype.videoSecondaryInfoRendererChanged=kW.prototype.videoSecondaryInfoRendererChanged;kW.prototype.videoPrimaryInfoRendererChanged=kW.prototype.videoPrimaryInfoRendererChanged;kW.prototype.maybeUpdateActionsOnSeparateLine=kW.prototype.maybeUpdateActionsOnSeparateLine;kW.prototype.updateOwnerAndDescriptionPosition=kW.prototype.updateOwnerAndDescriptionPosition;
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],kW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],kW.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],kW.prototype,"ytdReduxBehavior",void 0);_.c([_.sg("#above-the-fold"),_.w("design:type",HTMLElement)],kW.prototype,"aboveTheFoldContainer",void 0);_.c([_.sg("#menu ytd-menu-renderer"),_.w("design:type",Object)],kW.prototype,"menu",void 0);_.c([_.sg("#description-inline-expander"),_.w("design:type",Object)],kW.prototype,"descriptionInlineExpander",void 0);
_.c([_.sg("#faded-structured-description"),_.w("design:type",Object)],kW.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.c([_.sg("#structured-description"),_.w("design:type",Object)],kW.prototype,"structuredDescriptionContentRendererElement",void 0);_.c([_.sg("#title"),_.w("design:type",HTMLElement)],kW.prototype,"titleElement",void 0);_.c([_.sg("#description"),_.w("design:type",HTMLElement)],kW.prototype,"descriptionElement",void 0);
_.c([_.sg("#description-interaction"),_.w("design:type",Object)],kW.prototype,"descriptionInteraction",void 0);_.c([_.sg("#owner"),_.w("design:type",HTMLElement)],kW.prototype,"ownerElement",void 0);_.c([_.sg("#top-row"),_.w("design:type",HTMLElement)],kW.prototype,"topRowElement",void 0);_.c([_.sg("#bottom-row"),_.w("design:type",HTMLElement)],kW.prototype,"bottomRowElement",void 0);_.c([_.sg("#actions"),_.w("design:type",HTMLElement)],kW.prototype,"actionsElement",void 0);
_.c([_.sg("#bottom-actions"),_.w("design:type",HTMLElement)],kW.prototype,"bottomActionsElement",void 0);_.c([_.sg("#ytd-watch-info-text"),_.w("design:type",Object)],kW.prototype,"watchInfoTextElement",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"videoSecondaryInfoRenderer",void 0);
_.c([_.f(),_.w("design:type",Object)],kW.prototype,"commentsEntryPointHeaderRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"videoMetadataCarousel",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"structuredDescriptionContentRenderer",void 0);_.c([_.t("structuredDescriptionContentRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"structuredDescriptionContentRendererComputed",null);
_.c([_.f(),_.w("design:type",Object)],kW.prototype,"videoSummary",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"merchShelf",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"infoPanelBelowMetadata",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"hoverColor",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"hoverText",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"isHovering",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"enableColorSampling",void 0);_.c([_.t("structuredDescriptionContentRendererComputed"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"productShelf",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"metadataBadgesInDescription",void 0);_.c([_.t("videoPrimaryInfoRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"shouldHideBadges",null);
_.c([_.t("productShelf","descriptionCollapsed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],kW.prototype,"shouldShowProductShelf",null);_.c([_.f(),_.w("design:type",Boolean)],kW.prototype,"isWatchFlexy",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"descriptionCollapsed",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],kW.prototype,"useFadedScrimDescription",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"skinnyMode",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("videoSecondaryInfoRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"largerItemWrap",null);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"playlist",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"clarifyBox",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"playerAds",void 0);
_.c([_.f(),_.w("design:type",Boolean)],kW.prototype,"isDark",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],kW.prototype,"actionsOnSeparateLine",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"disableVideoOwnerOnTap",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"swatcherooDelayLoad",void 0);_.c([_.f(),_.w("design:type",Boolean)],kW.prototype,"suppressTopLevelMetadataRows",void 0);
_.c([_.f(),_.w("design:type",Object)],kW.prototype,"primaryMenuWidth",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"videoId",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"titleHeadlineXs",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"titleHeadlineS",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"titleHeadlineM",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"titleHashtagBlackLinkified",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"titleHashtagGreyLinkified",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.c([_.f(),_.w("design:type",Object)],kW.prototype,"shouldForceIconOnly",void 0);
_.c([_.V1("skinnyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"updateOwnerAndDescriptionPosition",null);_.c([_.V1("skinnyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.c([_.t("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"descriptionText",null);_.c([_.t("videoSecondaryInfoRenderer.headerRuns"),_.w("design:type",Array),_.w("design:paramtypes",[])],kW.prototype,"headerRuns",null);
_.c([_.f({value:!1}),_.t("commentsEntryPointHeaderRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"hasTeaser",null);_.c([_.f({value:!1,reflectToAttribute:!0}),_.t("videoMetadataCarousel"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"hasTeaserCarousel",null);_.c([_.f({value:3}),_.t("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"descriptionMaxLines",null);
_.c([_.t("videoSecondaryInfoRenderer.metadataRowContainer"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"collapsibleMetadataRows",null);_.c([_.t("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"alwaysVisibleMetadataRows",null);
_.c([_.t("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],kW.prototype,"hasInlineStructuredDescription",null);_.c([_.t("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],kW.prototype,"showInlineStructuredDescription",null);
_.c([_.t("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"descriptionExpandCommand",null);_.c([_.t("videoSecondaryInfoRenderer.owner"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"videoOwnerCommand",null);_.c([_.f({reflectToAttribute:!0}),_.t("videoPrimaryInfoRenderer.videoActions"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],kW.prototype,"flexMenuEnabled",null);
_.c([_.f({selector:_.Ba,reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"isFullscreen",void 0);_.c([_.f({selector:_.xj,reflectToAttribute:!0}),_.w("design:type",Object)],kW.prototype,"isTheaterMode",void 0);_.c([_.t("descriptionText","useFadedScrimDescription"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],kW.prototype,"showAttributedStringDescription",null);
_.c([_.t("descriptionText","useFadedScrimDescription"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],kW.prototype,"showFormattedStringDescription",null);_.c([_.t("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],kW.prototype,"showFadedStructuredDescription",null);
_.c([_.V1("videoPrimaryInfoRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"videoPrimaryInfoRendererChanged",null);_.c([_.t("videoPrimaryInfoRenderer.title"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"videoTitle",null);_.c([_.t("videoPrimaryInfoRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],kW.prototype,"noEndpoints",null);
_.c([_.V1("videoSecondaryInfoRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"videoSecondaryInfoRendererChanged",null);_.c([_.$v("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"structuredDescriptionContentRendererChanged",null);
_.c([_.$v("skinnyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"updateTopLevelIconsOnly",null);_.c([_.$v("skinnyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"updateShouldForceIconOnly",null);_.c([_.$v("skinnyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"moveActionsElement",null);
_.c([_.Kq("yt-text-inline-expander-expand-clicked"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"onYtTextInlineExpanderExpandClicked",null);_.c([_.Kq("yt-text-inline-expander-collapse-clicked"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.c([_.Kq("yt-text-inline-expander-expanded-changed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],kW.prototype,"onRenderStamperFinished",null);
_.c([_.Kq("yt-expander-more-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"onYtExpanderMoreTapped",null);_.c([_.Kq("yt-expander-less-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"onYtExpanderLessTapped",null);
_.c([_.$v("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"registerPanel",null);_.c([_.$v("videoSecondaryInfoRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"resetDescriptionState",null);
_.c([_.$v("structuredDescriptionContentRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"parseColorSamplingData",null);_.c([_.$v("hoverColor","isDark"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kW.prototype,"updateHoverColor",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-watch-metadata"})],kW);
_.A(kW,"ytd-watch-metadata",function(){if(uvT!==void 0)return uvT;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return uvT=v},{mode:2});_.mu$=function(v){_.kh.call(this);this.JSC$22868_watchApi=v;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Wi$(this);a4k(this);iXV(this);OXm(this);I4V(this);bXY(this);YlJ(this)};
_.V(_.mu$,_.kh);var iXV=function(v){var e=function(){_.N("kevlar_is_pupi_enabled")||LJ(v)};
v.JSC$22868_watchApi.getRoot().addEventListener("yt-player-updated",e);v.addOnDisposeCallback(function(){v.JSC$22868_watchApi.getRoot().removeEventListener("yt-player-updated",e)})},I4V=function(v){if(_.N("kevlar_endscreen_auto_theater_mode")){var e=v.JSC$22868_watchApi.subscribeToActiveChanged(function(){yzD(v)},!1);
v.addOnDisposeCallback(e)}},Wi$=function(v){var e,d,E,T,S;
_.I(function(O){if(O.nextAddress==1)return O.yield(v.JSC$22868_watchApi.playerApi,2);e=O.yieldResult;d=function(b){b=!!b;V5(v)&&(b=b?2:1,_.p6.getInstance().setState(b,!0,!1))};
E=function(b){b&&_.O7B(_.d1().getState())&&(_.b4(v.JSC$22868_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),v.temporaryTheaterMode=!0)};
T=function(b){_.N("kevlar_player_update_autonav_on_new_data")&&b.type==="newdata"&&(_.N("kevlar_is_pupi_enabled")||LJ(v))};
S=function(b){v.onPlayerStateChange(b)};
_.N("kevlar_endscreen_auto_theater_mode")&&e.addEventListener("onAutonavCancelled",E);e.addEventListener("onAutonavChangeRequest",d);e.addEventListener("onVideoDataChange",T);e.addEventListener("onStateChange",S);v.addOnDisposeCallback(function(){e.removeEventListener("onAutonavChangeRequest",d);e.removeEventListener("onVideoDataChange",T);e.removeEventListener("onStateChange",S);_.N("kevlar_endscreen_auto_theater_mode")&&e.removeEventListener("onAutonavCancelled",E)});
_.s9(O)})},a4k=function(v){v.JSC$22868_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){v.autonavCancelledBySignal=!0;
_.N("kevlar_is_pupi_enabled")||LJ(v)});
v.JSC$22868_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(e,d,E){d&&LJ(v,E)});
v.JSC$22868_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){V5(v)&&_.p6.getInstance().setState(2,!0,!0)});
v.JSC$22868_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){V5(v)&&_.p6.getInstance().setState(1,!0,!0)});
v.addOnDisposeCallback(function(){v.JSC$22868_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");v.JSC$22868_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");v.JSC$22868_watchApi.unregisterActionHandler("yt-enable-autoplay-command");v.JSC$22868_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},OXm=function(v){var e=v.JSC$22868_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){YlJ(v)}),d=v.JSC$22868_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){bXY(v)});
v.addOnDisposeCallback(function(){v.JSC$22868_watchApi.unsubscribeByKey(e);v.JSC$22868_watchApi.unsubscribeByKey(d)})},YlJ=function(v){v.autonavCancelledBySignal=!1;
_.N("kevlar_is_pupi_enabled")||LJ(v)},bXY=function(v){var e=v.JSC$22868_watchApi.getWatchNextResponse(),d,E;
var T=(e=(E=_.L(e==null?void 0:(T=e.playerOverlays)==null?void 0:(d=T.playerOverlayRenderer)==null?void 0:d.autonavToggle,_.Ib7))==null?void 0:E.enabled)?2:1;_.N("kevlar_is_pupi_enabled")?_.p6.getInstance().setState(T,!1,!1):LJ(v);_.N("web_persist_server_autonav_state_on_client")&&typeof e==="boolean"&&_.P0t(T===2)},V5=function(v){if(v.autonavCancelledBySignal)return!1;
var e,d,E,T;return!!((e=v.JSC$22868_watchApi.getWatchNextResponse())==null?0:(d=e.contents)==null?0:(E=d.twoColumnWatchNextResults)==null?0:(T=E.autoplay)==null?0:T.autoplay)};
_.mu$.prototype.onPlayerStateChange=function(v){if(v===0){v=!_.p6.getInstance().isAutoplaySetExplicitly();var e=this.JSC$22868_watchApi.getWatchNextResponse(),d,E,T,S;e=_.L(e==null?void 0:(d=e.contents)==null?void 0:(E=d.twoColumnWatchNextResults)==null?void 0:(T=E.autoplay)==null?void 0:(S=T.autoplay)==null?void 0:S.autoplayExplicitChoiceDialogRenderer,_.t6E);V5(this)&&v&&e&&_.hg.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:e},popupType:"DIALOG"}})}else yzD(this)};
var yzD=function(v){v.temporaryTheaterMode&&(v.temporaryTheaterMode=!1,_.b4(v.JSC$22868_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},LJ=function(v,e){e=e===void 0?!1:e;
var d;_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22868_watchApi.playerApi,2);d=E.yieldResult;V5(v)?d.setAutonavState(_.p6.getInstance().getState(),e):d.setAutonavState(1,e);_.s9(E)})};var qla={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"};_.hHV=function(v){_.kh.call(this);var e=this;this.JSC$22873_watchApi=v;var d=this.JSC$22873_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){rzJ(e)});
this.addOnDisposeCallback(function(){e.JSC$22873_watchApi.unsubscribeByKey(d)});
rzJ(this)};
_.V(_.hHV,_.kh);var rzJ=function(v){var e=v.JSC$22873_watchApi.getPlayerResponse(),d=v.JSC$22873_watchApi.getWatchNextResponse();if(!_.xt$(e==null?void 0:e.playabilityStatus,d==null?void 0:d.playerOverlays)){var E;var T=e==null?void 0:(E=e.playabilityStatus)==null?void 0:E.errorScreen}v.JSC$22873_watchApi.provideRenderingData("ERROR_SCREEN",T)};var Kik=_.l(function(v){var e=v.data;v=_.N("web_watch_video_details_hide_subtitle");var d=_.N("web_watch_video_details_single_line_title"),E=_.rq(function(){var b=e().onTap;b&&_.dk().resolve(_.EI).resolveCommand(b)}),T={},S={},O={};
return _.m("yt-player-overlay-video-details-renderer",{class:_.qe("ytPlayerOverlayVideoDetailsRendererHost",(T.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.N("web_watch_video_details_transparent_background"),T)),"on:click":E,role:"button"},_.m("h2",{class:_.qe("ytPlayerOverlayVideoDetailsRendererTitle",(S.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return d},S))},_.m(_.Dh,{text:function(){return e().title}})),_.m("div",{class:_.qe("ytPlayerOverlayVideoDetailsRendererSubtitle",
(O.ytPlayerOverlayVideoDetailsRendererHideSubtitle=v,O))},_.m(_.Dh,{text:function(){return e().subtitle}})))},"Rk");var ol={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},$ua=_.l(function(v){var e=v.data;var d=_.Xj(_.Ba),E=_.N("web_watch_action_bar_resize_buttons"),T=_.N("web_watch_video_action_dsdvb"),S=_.N("delhi_modern_web_player_icons")&&!_.N("enable_web_delhi_icons");v=_.N("delhi_modern_web_player_disable_frosted_glass");var O=function(){return E&&!d()?{size:"M"}:void 0},b={};
return _.m("yt-player-quick-action-buttons",{class:_.qe("ytPlayerQuickActionButtonsHost",(b.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!d()},b.ytPlayerQuickActionButtonsHostDisableBackdropFilter=v,b))},_.m(_.jI,{each:function(){var Y=e();
if(S){Y=JSON.parse(JSON.stringify(Y));for(var q=_.a(Y),r=q.next();!r.done;r=q.next()){var h=r.value,K=void 0;r=_.L((K=_.L(h,_.ty))==null?void 0:K.toggleButtonViewModel,_.Ay);var k=void 0;K=_.L((k=_.L(h,_.M5))==null?void 0:k.toggleButtonViewModel,_.Ay);k=_.L(h,_.lx);h=_.L(h,_.Ay);if(r)K=_.L(r.defaultButtonViewModel,_.lx),r=_.L(r.toggledButtonViewModel,_.lx),K&&K.iconName&&(K.iconName=ol[K.iconName]),r&&r.iconName&&(r.iconName=ol[r.iconName]);else if(K)r=_.L(K.defaultButtonViewModel,_.lx),K=_.L(K.toggledButtonViewModel,
_.lx),r&&r.iconName&&(r.iconName=ol[r.iconName]),K&&K.iconName&&(K.iconName=ol[K.iconName]);else if(k)k.iconName&&(k.iconName=ol[k.iconName]);else if(h){r=_.L(h.defaultButtonViewModel,_.lx);K=_.L(h.toggledButtonViewModel,_.lx);h=void 0;if((h=r)==null?0:h.iconName)r.iconName=ol[r.iconName];r=void 0;if((r=K)==null?0:r.iconName)K.iconName=ol[K.iconName]}}}T&&(Y=XcT(Y));return Y}},function(Y){return _.m(_.kz,{data:function(){return Y}},{buttonViewModel:function(q){return _.m(_.yi,{data:q.data,
buttonOverrides:O})},
likeButtonViewModel:function(q){return _.m(_.zT,{data:q.data,buttonShapeOverrideables:O})},
dislikeButtonViewModel:function(q){return _.m(_.XU,{data:q.data,buttonShapeOverrideables:O})},
toggleButtonViewModel:function(q){return _.m(_.fR,{data:q.data,buttonShapeOverrides:O})}})}))},"Sk");_.su$=function(v){_.kh.call(this);var e=this;this.JSC$22877_watchApi=v;v=_.a(_.OE({},void 0,"n9wCVe"));this.quickActionsViewModel=v.next().value;this.setQuickActionsViewModel=v.next().value;v=_.a(_.OE({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=v.next().value;this.setPlayerOverlayVideoDetailsRenderer=v.next().value;var d=this.JSC$22877_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){juV(e)});
this.addOnDisposeCallback(function(){e.JSC$22877_watchApi.unsubscribeByKey(d)});
juV(this)};
_.V(_.su$,_.kh);
var juV=function(v){var e,d,E,T,S,O,b,Y,q,r,h,K,k,J;_.I(function(R){if(R.nextAddress==1)return R.yield(v.JSC$22877_watchApi.playerApi,2);e=R.yieldResult;d=v.JSC$22877_watchApi.getWatchNextResponse();S=(E=d)==null?void 0:(T=E.playerOverlays)==null?void 0:T.playerOverlayRenderer;b=_.L((O=S)==null?void 0:O.fullscreenQuickActionsBar,_.b6c);(q=(Y=v).setQuickActionsViewModel)==null||q.call(Y,b||{});b&&Nfr(v,e);K=(r=S)==null?void 0:(h=r.videoDetails)==null?void 0:h.playerOverlayVideoDetailsRenderer;(J=(k=
v).setPlayerOverlayVideoDetailsRenderer)==null||J.call(k,K||{});K&&kZk(v,e);_.s9(R)})},Nfr=function(v,e){if(!v.quickActionButtonsContainer)if(e.setFullscreenQuickActions){v.quickActionButtonsContainer=document.createElement("div");
e.setFullscreenQuickActions(v.quickActionButtonsContainer);var d=function(){return v.quickActionsViewModel().quickActionButtons||[]},E=_.VU(v.quickActionButtonsContainer,function(){return _.m($ua,{data:d})},"Tk");
v.addOnDisposeCallback(function(){e.setFullscreenQuickActions(void 0);E()})}else _.xf(new _.kL("setFullscreenQuickActions not defined",{playerApi:Object.keys(e),
isReady:e.isReady(),appState:e.getAppState()}))},kZk=function(v,e){if(!v.playerOverlayVideoDetailsRendererContainer)if(e.setPlayerOverlayVideoDetailsRenderer){v.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
e.setPlayerOverlayVideoDetailsRenderer(v.playerOverlayVideoDetailsRendererContainer);var d=_.VU(v.playerOverlayVideoDetailsRendererContainer,function(){return _.m(Kik,{data:v.playerOverlayVideoDetailsRenderer})},"Uk");
v.addOnDisposeCallback(function(){e.setPlayerOverlayVideoDetailsRenderer(void 0);d()})}else _.xf(new _.kL("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(e),
isReady:e.isReady(),appState:e.getAppState()}))};_.J2=function(v){_.kh.call(this);var e=this;this.JSC$22883_watchApi=v;this.JSC$22883_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;v=_.ji(_.d1(),_.Ba,function(d){e.onFullscreenChanged(d)});
this.addOnDisposeCallback(v);v=_.ji(_.d1(),_.Lh,function(d){e.onWatchScroll(d)});
this.addOnDisposeCallback(v);_.N("kevlar_watch_while_v2")&&(v=_.ji(_.d1(),_.za,function(d){Lim(e,d)}),this.addOnDisposeCallback(v));
Vtf(this);ohD(this);Jz$();this.onWatchScroll(_.Lh(_.d1().getState()));_.zr("START_IN_FULL_WINDOW_MODE")&&this.JSC$22883_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.V(_.J2,_.kh);var Vtf=function(v){v.JSC$22883_watchApi.registerActionHandler("yt-fullscreen-change-action",function(e){var d=v.JSC$22883_watchApi.isActive();e&&!d||_.d1().dispatch(_.Oo({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!e}}))});
v.addOnDisposeCallback(function(){v.JSC$22883_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},ohD=function(v){var e,d;
_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22883_watchApi.playerApi,2);e=E.yieldResult;d=function(){v.onFullerscreenEduClicked()};
e.addEventListener("onFullerscreenEduClicked",d);v.addOnDisposeCallback(function(){e.removeEventListener("onFullerscreenEduClicked",d)});
_.s9(E)})};
_.J2.prototype.onFullscreenChanged=function(v){var e=this,d;return _.I(function(E){if(E.nextAddress==1)return e.isFullscreen=!!_.SX(),E.yield(e.JSC$22883_watchApi.playerApi,2);d=E.yieldResult;e.JSC$22883_miniplayerActive||d.setFauxFullscreen(e.isFullscreen);if(v&&(e.JSC$22883_watchApi.focusOnPlayer(),!e.fullerscreenEduButtonShownThisPlayback)){e.fullerscreenEduButtonShownThisPlayback=!0;var T=_.yy("yt-fullerscreen-edu-button-shown-count")||0;_.mZ("yt-fullerscreen-edu-button-shown-count",T+1,31536E3);
e.updateFullerscreenEduButtonSubtleModeState()}_.s9(E)})};
var Lim=function(v,e){var d;_.I(function(E){if(E.nextAddress==1)return v.JSC$22883_miniplayerActive=e,E.yield(v.JSC$22883_watchApi.playerApi,2);d=E.yieldResult;d.setFauxFullscreen(!v.JSC$22883_miniplayerActive&&v.isFullscreen);_.s9(E)})};
_.J2.prototype.onWatchScroll=function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1)return _.N("external_fullscreen_with_edu")?T.yield(e.JSC$22883_watchApi.playerApi,2):T.return();d=T.yieldResult;E=v<=0;e.shouldShowFullerscreenEdu!==E&&(e.shouldShowFullerscreenEdu=E,d.updateFullerscreenEduButtonVisibility(!e.shouldShowFullerscreenEdu));_.s9(T)})};
_.J2.prototype.onFullerscreenEduClicked=function(){this.JSC$22883_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var v=_.yy("yt-fullerscreen-edu-button-click-count")||0;_.mZ("yt-fullerscreen-edu-button-click-count",v+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.J2.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var v=this,e,d,E,T,S,O;return _.I(function(b){if(b.nextAddress==1)return e=_.yy("yt-fullerscreen-edu-button-click-count")||0,d=_.yy("yt-fullerscreen-edu-button-shown-count")||0,E=_.Wi("external_fullscreen_button_click_threshold"),T=_.Wi("external_fullscreen_button_shown_threshold"),S=e>=E||d>=T,b.yield(v.JSC$22883_watchApi.playerApi,2);O=b.yieldResult;O.updateFullerscreenEduButtonSubtleModeState(S);_.s9(b)})};
_.J2.prototype.disposeInternal=function(){_.kh.prototype.disposeInternal.call(this);var v=_.SX();_.N("kevlar_exit_fullscreen_leaving_watch")&&v&&_.WF(v)};
var Jz$=function(){if(_.N("web_watch_add_viewport_meta_tag")){var v=document.querySelector("meta[name=viewport]"),e=document.head;e&&!v&&(v=document.createElement("meta"),v.name="viewport",v.content="width=device-width, initial-scale=1.0, viewport-fit=cover",e.appendChild(v))}};_.Gh=function(v){_.kh.call(this);var e=this;this.JSC$22887_watchApi=v;this.jobId=0;this.pendingRequestId=void 0;var d=this.JSC$22887_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){GZ6(e)});
this.addOnDisposeCallback(function(){e.JSC$22887_watchApi.unsubscribeByKey(d)});
GZ6(this)};
_.V(_.Gh,_.kh);var MtB=function(v){_.RM.cancelJob(v.jobId);v.pendingRequestId=void 0},GZ6=function(v){MtB(v);
var e=zu6(v.JSC$22887_watchApi.getWatchNextResponse());if(e){var d=250,E,T=(E=_.L(e,_.ISI))==null?void 0:E.initialDelayMs;_.N("web_watch_updated_metadata_server_initial_delay")&&T&&(d=T);v.jobId=_.RM.addLowPriorityJob(function(){return v.fetchUpdatedMetadata(e)},d)}};
_.Gh.prototype.fetchUpdatedMetadata=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X;return _.I(function(Z){switch(Z.nextAddress){case 1:e&&(E={continuation:e});if(!_.N("web_get_updated_metadata_fantasy_panel_continuation_params")){Z.jumpTo(2);break}T=_.dk().resolve(_.tx);S="PAsports_fantasy";return Z.yield(T.isVisible(S,!0),3);case 3:Z.yieldResult&&(q=(b=(O=T).getUpdatePanelContinuationData)==null?void 0:(Y=b.call(O,S))==null?void 0:Y.updatePanelContinuationRequest)&&(E||(E={}),E.clientParams=
{panelContinuationParams:{panelContinuation:q}});case 2:r=_.dk().resolve(_.lX);if(!r)return _.RI(Error("Lo")),Z.return();h={};d.pendingRequestId=h;return Z.yield(_.Qw(r,v,E),4);case 4:K=Z.yieldResult;if(h!==d.pendingRequestId)return Z.return();R=(k=K)==null?void 0:(J=k.continuation)==null?void 0:J.timedContinuationData;((B=R)==null?0:B.continuation)&&((X=R)==null?0:X.timeoutMs)&&(d.jobId=_.RM.addLowPriorityJob(function(){return d.fetchUpdatedMetadata(v,R.continuation)},R.timeoutMs));
_.s9(Z)}})};
_.Gh.prototype.disposeInternal=function(){_.kh.prototype.disposeInternal.call(this);MtB(this)};var ttJ=_.l(function(v){var e=_.rq(function(){var E=v.data().videoId;if(v.active())E=_.S7(E),_.dk().resolve(_.EI).resolveCommand(E);else{var T=v.playerApi(),S=T.getAvailableAudioTracks(),O,b,Y=(O=v.sourceVideoConfig().audioTracks)==null?void 0:(b=O.find(function(q){return q.isDefaultForSource}))==null?void 0:b.id;
if(S=S.find(function(q){return q.getLanguageInfo().getId()===Y}))T.setAudioTrack(S,!0),T.setCompositeParam({activeVideoId:E}),v.setActiveSourceId(E)}}),d={};
return _.m("ytw-composite-source-video-overlay",{class:_.qe("ytwCompositeSourceVideoOverlayHost",(d.ytwCompositeSourceVideoOverlayActive=v.active,d.ytwCompositeSourceVideoOverlayInteracting=v.interacting,d)),style:_.jM({left:function(){var E;return((E=v.data().topLeftCornerX)!=null?E:0)*100+"%"},
top:function(){var E;return((E=v.data().topLeftCornerY)!=null?E:0)*100+"%"},
width:function(){var E;return((E=v.data().width)!=null?E:0)*100+"%"},
height:function(){var E;return((E=v.data().height)!=null?E:0)*100+"%"}}),
"on:click":e},_.m("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Vk");var f4m=_.l(function(v){var e=_.a(_.KM(function(){var O,b=(O=v.data().sources)==null?void 0:O.find(function(Y){return Y.isActive});
if(b)return b.videoId})),d=e.next().value,E=e.next().value;
e=_.a(_.OE(!1,void 0,"WI4BUb"));var T=e.next().value,S=e.next().value;return _.m("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.rq(function(){S(!0)}),
"on:mouseout":_.rq(function(){S(!1)})},_.m(_.y,{cond:function(){return v.data().sources},
then:function(O){return _.m(_.jI,{each:O},function(b){return _.m(ttJ,{data:b,active:function(){return b.videoId===d()},
setActiveSourceId:E,interacting:T,playerApi:v.playerApi,sourceVideoConfig:function(){return l0a(v.compositeVideoConfig(),b.videoId)}})})}}))},"Wk");_.xuf=function(v){_.kh.call(this);this.JSC$22903_watchApi=v;v=_.a(_.OE({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=v.next().value;this.setCompositeVideoOverlayRenderer=v.next().value;v=_.a(_.OE({},void 0,"OlaJpc"));this.compositeVideoConfig=v.next().value;this.setCompositeVideoConfig=v.next().value;RHr(this);PZa(this)};
_.V(_.xuf,_.kh);var RHr=function(v){var e=v.JSC$22903_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){PZa(v)});
v.addOnDisposeCallback(function(){v.JSC$22903_watchApi.unsubscribeByKey(e)})},Bfm=function(v){var e;
return _.I(function(d){if(d.nextAddress==1)return d.yield(v.JSC$22903_watchApi.playerApi,2);e=d.yieldResult;e.setCompositeVideoOverlayRendererComponent(v.container);_.s9(d)})},CZa=function(v){var e;
return _.I(function(d){if(d.nextAddress==1)return d.yield(v.JSC$22903_watchApi.playerApi,2);e=d.yieldResult;e.setCompositeVideoOverlayRendererComponent(void 0);_.s9(d)})},Xwm=function(v){var e,d;
return _.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22903_watchApi.playerApi,2);e=E.yieldResult;v.container=document.createElement("div");d=_.VU(v.container,function(){return _.m(f4m,{data:v.compositeVideoOverlayRenderer,compositeVideoConfig:v.compositeVideoConfig,playerApi:e})},"Xk");
v.addOnDisposeCallback(d);_.s9(E)})},PZa=function(v){var e,d,E,T,S,O,b,Y;
_.I(function(q){return q.nextAddress==1?(e=v.JSC$22903_watchApi.getPlayerResponse(),S=_.L((d=e)==null?void 0:(E=d.overlay)==null?void 0:(T=E.playerControlsOverlayRenderer)==null?void 0:T.compositeVideoOverlay,Ms$),Y=(O=e)==null?void 0:(b=O.playerConfig)==null?void 0:b.compositeVideoConfig,S&&v.setCompositeVideoOverlayRenderer(S),Y&&v.setCompositeVideoConfig(Y),S&&Y?v.container?q.jumpTo(6):q.yield(Xwm(v),6):zHr(v)?q.yield(CZa(v),0):q.jumpTo(0)):zHr(v)?q.jumpTo(0):q.yield(Bfm(v),0)})},zHr=function(v){var e;
return!((e=v.container)==null||!e.parentElement)};
_.xuf.prototype.disposeInternal=function(){zHr(this)&&CZa(this);_.kh.prototype.disposeInternal.call(this)};_.cz6=function(v){_.kh.call(this);var e=this;this.JSC$22909_watchApi=v;var d=this.JSC$22909_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var E=e.JSC$22909_watchApi.getPlayerResponse();if(E){var T,S;if(E=_.L((T=E.endscreen)==null?void 0:(S=T.endscreenRenderer)==null?void 0:S.hideButton,_.Ay)){var O;(O=e.setEndscreenHideButton)==null||O.call(e,E);l4k(e)}}});
this.addOnDisposeCallback(function(){e.JSC$22909_watchApi.unsubscribeByKey(d)});
v=_.a(_.OE({},void 0,"ER3tqb"));this.endscreenHideButton=v.next().value;this.setEndscreenHideButton=v.next().value;HXm(this);AzV(this);ZXa(this)};
_.V(_.cz6,_.kh);
var l4k=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return v.creatorEndscreenHideButtonContainer?E.return():E.yield(v.JSC$22909_watchApi.playerApi,2);e=E.yieldResult;v.creatorEndscreenHideButtonContainer=document.createElement("div");_.wf(v.creatorEndscreenHideButtonContainer,!1);e.setCreatorEndscreenHideButton(v.creatorEndscreenHideButtonContainer);d=_.VU(v.creatorEndscreenHideButtonContainer,function(){return _.m(_.fR,{data:v.endscreenHideButton,useOutlinedIcon:!0})},"Yk");
v.addOnDisposeCallback(function(){d();var T;(T=e)==null||T.setCreatorEndscreenHideButton(void 0)});
_.s9(E)})},HXm=function(v){var e,d;
_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22909_watchApi.playerApi,2);e=E.yieldResult;d=function(){v.creatorEndscreenHideButtonContainer&&_.wf(v.creatorEndscreenHideButtonContainer,!0)};
e.addEventListener("endscreenelementshown",d);v.addOnDisposeCallback(function(){var T;(T=e)==null||T.removeEventListener("endscreenelementshown",d)});
_.s9(E)})},AzV=function(v){var e=function(){v.creatorEndscreenHideButtonContainer&&_.wf(v.creatorEndscreenHideButtonContainer,!1)},d=v.JSC$22909_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",e),E=v.JSC$22909_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",e);
v.addOnDisposeCallback(function(){v.JSC$22909_watchApi.unsubscribeByKey(d);v.JSC$22909_watchApi.unsubscribeByKey(E)})},ZXa=function(v){v.JSC$22909_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(e){var d=_.L(e,kQJ);
v.JSC$22909_watchApi.playerApi.then(function(E){E==null||E.setCreatorEndscreenVisibility(!!d.hide)})});
v.addOnDisposeCallback(function(){v.JSC$22909_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.Fik=function(v){_.kh.call(this);this.JSC$22915_watchApi=v;wwV(this)};
_.V(_.Fik,_.kh);var wwV=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22915_watchApi.playerApi,2);e=E.yieldResult;d=function(T){_.d1().dispatch(_.Oo({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:T}}))};
e.addEventListener("onRetroModeChanged",d);v.addOnDisposeCallback(function(){e.removeEventListener("onRetroModeChanged",d)});
_.s9(E)})};var M8=0,Gb=0,tm=0;var Quk;Quk=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Ma=function(v){_.kh.call(this);this.JSC$22928_watchApi=v;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;gh$(this)};
_.V(_.Ma,_.kh);
var gh$=function(v){var e,d,E;_.I(function(T){if(T.nextAddress==1)return T.yield(v.JSC$22928_watchApi.playerApi,2);e=T.yieldResult;if(v.isDisposed())return T.return();v.sessionStorage=_.eUs("yt-sleep-timer");v.sessionStorage||_.xf(new _.kL("SessionStorage for Sleep Timer is undefined."));((d=v.sessionStorage)==null?void 0:d.get("yt-sleep-timer"))==="true"&&(nIm(),(E=v.sessionStorage)==null||E.remove("yt-sleep-timer"),e.syncVolume());u$u(v,e);nhm(v,e);Dua(v,e);_.s9(T)})},u$u=function(v,e){var d=function(q){v.onSleepTimerSettingsChanged(q,
e)},E=function(q){v.onPlayerStateChange(q,e)},T=function(){v.onLoopChange(e)},S=function(){v.onCloseMiniplayer(e)},O=function(){FgD(e,(0,_.E$)(),Di6(e),v.selectedOption==="End of video",e.getPlayerState()!==1)},b=function(){v.onSeekComplete(e)},Y=function(){_.RM.cancelJob(Gb);
var q=e.getCurrentTime()>=e.getDuration(),r=v.selectedOption==="End of video"||v.selectedOption==="End of playlist"&&!Z7m(v.playlistId);q&&r&&Uua(v,e)};
e.addEventListener("onSleepTimerSettingsChanged",d);e.addEventListener("onLoopChange",T);e.addEventListener("onLoopRangeChange",T);e.addEventListener("onStateChange",E);e.addEventListener("onCloseMiniplayer",S);e.addEventListener("onSleepTimerFeatureAvailable",O);e.addEventListener("SEEK_COMPLETE",b);e.addEventListener("onAdStart",Y);v.addOnDisposeCallback(function(){e.removeEventListener("onSleepTimerSettingsChanged",d);e.removeEventListener("onLoopChange",T);e.removeEventListener("onLoopRangeChange",
T);e.removeEventListener("onStateChange",E);e.removeEventListener("onCloseMiniplayer",S);e.removeEventListener("onSleepTimerFeatureAvailable",O);e.removeEventListener("SEEK_COMPLETE",b);e.removeEventListener("onAdStart",Y)})},nhm=function(v,e){var d=v.JSC$22928_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var E=e.getVideoData().video_id,T,S=(T=H7k(v.JSC$22928_watchApi))==null?void 0:T.playlistId;
v.pauseAutonavPlayback&&(e.pauseVideo(),e.syncVolume(),v.pauseAutonavPlayback=!1);if(v.selectedOption==="End of video"&&E!==v.videoId)t2(v,e);else{if(v.selectedOption==="End of playlist"){T=Z7m(v.playlistId);if(S!==v.playlistId){t2(v,e);break a}T?T&&pw$(v,e):vGm(v,e)}v.videoId=E;v.playlistId=S}}});
v.addOnDisposeCallback(function(){v.JSC$22928_watchApi.unsubscribeByKey(d)})},Dua=function(v,e){var d=_.dk().resolve(_.Hl),E=_.ji(d,_.DNt,function(S){S&&v.selectedOption!=="Off"&&t2(v,e)}),T=v.JSC$22928_watchApi.subscribeToActiveChanged(function(S){var O,b;
return _.I(function(Y){if(Y.nextAddress==1)return Y.yield(_.Ke().navigationFinishPromise,2);O=!_.VYM();b=_.dk().resolve(_.P0).isMiniplayerActive();S||!Jm(v.selectedOption)||b||O||t2(v,e);_.s9(Y)})},!1);
d=_.ji(d,function(S){return S.entities.playlistLoopStateEntity||{}},function(S){S=S===void 0?{}:S;
var O=AeY(v.JSC$22928_watchApi);if(O){var b;((b=S[O])==null?void 0:b.state)==="PLAYLIST_LOOP_STATE_ALL"&&Jm(v.selectedOption)&&t2(v,e)}});
v.addOnDisposeCallback(E);v.addOnDisposeCallback(d);v.addOnDisposeCallback(T)};
_.Ma.prototype.onSleepTimerSettingsChanged=function(v,e){switch(v){case "Off":this.selectedOption!=="Off"&&t2(this,e);break;case "End of video":case "End of playlist":edV(this,v,e);break;default:edV(this,v,e,Quk.get(v))}};
_.Ma.prototype.onLoopChange=function(v){(v.getLoopVideo()||v.getLoopRange())&&Jm(this.selectedOption)&&t2(this,v)};
_.Ma.prototype.onCloseMiniplayer=function(v){Jm(this.selectedOption)&&t2(this,v)};
var edV=function(v,e,d,E){d4a(v,d);v.selectedOption=e;v.videoId=d.getVideoData().video_id;v.playlistId="";var T;(T=v.sessionStorage)==null||T.set("yt-sleep-timer","true");v.adjustmentsCount++;FgD(d,(0,_.E$)(),Di6(d),v.selectedOption==="End of video");if(v.selectedOption==="End of video")vGm(v,d),EG$(v,d);else if(v.selectedOption==="End of playlist"){EG$(v,d);var S,O;v.playlistId=(O=(S=H7k(v.JSC$22928_watchApi))==null?void 0:S.playlistId)!=null?O:"";Z7m(v.playlistId)||vGm(v,d)}else E&&(v.presetFadeSchedulerId=
_.JX(_.RM,function(){gIm(d,15E3)},E-15E3),v.presetPauseSchedulerId=_.JX(_.RM,function(){Uua(v,d)},E),QEJ(d,(0,_.E$)(),E))},Uua=function(v,e){if(v.JSC$22928_watchApi.isActive()){var d={dismissDialogEndpoint:{}};
var E={commandExecutorCommand:{commands:[d,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};d={buttonViewModel:{title:_.sz("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:d}}};E={buttonViewModel:{title:_.sz("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:E}}};var T={dialogHeaderViewModel:{headline:{content:_.sz("SLEEP_TIMER_ENDED_TITLE")}}},
S={basicContentViewModel:{paragraphs:[{text:{content:_.sz("SLEEP_TIMER_ENDED_TEXT")}}]}};d={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:T,content:S,footer:{panelFooterViewModel:{primaryButton:d,secondaryButton:E,shouldHideDivider:!0}}}}}}};_.dk().resolve(_.EI).resolveCommand(d,{form:{element:v}})}else nIm();Thr(v,!1);SEJ(v,e);e.pauseVideo();_.p6.getInstance().getState()===2&&e.getPlayerState()===5&&(v.pauseAutonavPlayback=!0)},t2=function(v,e){Thr(v,!0);
SEJ(v,e);nIm()},SEJ=function(v,e){d4a(v,e);
v.selectedOption="Off";v.videoId="";v.playlistId="";v.adjustmentsCount=0;var d;(d=v.sessionStorage)==null||d.remove("yt-sleep-timer");_.RM.cancelJob(M8);e.resetSleepTimerMenuSettings()},Thr=function(v,e){e={timer_length_adjustment_times_during_session:v.adjustmentsCount-1,
is_session_cancelled:e};switch(v.selectedOption){case "Off":e.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":e.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":e.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:e.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",e.option_duration_in_minutes=Quk.get(v.selectedOption)/6E4}_.tI("sleepTimerSessionFinishEvent",e)};
_.Ma.prototype.onPlayerStateChange=function(v,e){v===1?FgD(e,(0,_.E$)(),Di6(e),this.selectedOption==="End of video"):v===0?(_.RM.cancelJob(Gb),e.setVideoTimeLeft(wc$(0,0))):v===2&&_.RM.cancelJob(Gb);this.selectedOption==="End of video"?v===0?Uua(this,e):v===2&&uJu(e):this.selectedOption!=="End of playlist"||Z7m(this.playlistId)||(v===0?Uua(this,e):v===2&&uJu(e))};
_.Ma.prototype.onSeekComplete=function(v){v.getPlayerState()===2&&FgD(v,(0,_.E$)(),Di6(v),this.selectedOption==="End of video",!0)};
_.Ma.prototype.onCueRangeEnter=function(v,e){v==="sleep-timer-fade-audio"&&gIm(e,(e.getDuration()-e.getProgressState().current)*1E3)};
_.Ma.prototype.onCueRangeExit=function(v,e){v==="sleep-timer-fade-audio"&&e.getPlayerState()!==0&&uJu(e,!0)};
var vGm=function(v,e){e.addCueRange("sleep-timer-fade-audio",e.getDuration()-15,e.getDuration());e.addEventListener("onCueRangeEnter",function(d){v.onCueRangeEnter(d,e)});
e.addEventListener("onCueRangeExit",function(d){v.onCueRangeExit(d,e)})},pw$=function(v,e){e.removeCueRange("sleep-timer-fade-audio");
e.removeEventListener("onCueRangeEnter",function(d){v.onCueRangeEnter(d,e)});
e.removeEventListener("onCueRangeExit",function(d){v.onCueRangeExit(d,e)})},d4a=function(v,e){Jm(v.selectedOption)?pw$(v,e):(_.RM.cancelJob(v.presetPauseSchedulerId),_.RM.cancelJob(v.presetFadeSchedulerId),v.presetPauseSchedulerId=0,v.presetFadeSchedulerId=0);
uJu(e,!0)},EG$=function(v,e){e.setLoop(!1);
e.setLoopVideo(!1);e.setLoopRange(null);(v=AeY(v.JSC$22928_watchApi))&&_.dk().resolve(_.Hl).dispatch(_.Lv("playlistLoopStateEntity",v,{key:v,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.OD6=function(v){_.kh.call(this);this.JSC$22931_watchApi=v;WsV(this);agm(this);iDV(this);v=v.getRoot();if(v.is==="ytd-watch-flexy"||v.is==="ytd-watch-grid")v.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.b7f();_.N("web_watch_log_theater_mode_cookie_state")&&_.Kw.get("wide","0")==="1"&&_.l5W("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.V(_.OD6,_.kh);var WsV=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22931_watchApi.playerApi,2);e=E.yieldResult;d=function(T){IgB(v,!!T)};
e.addEventListener("SIZE_CLICKED",d);v.addOnDisposeCallback(function(){e.removeEventListener("SIZE_CLICKED",d)});
_.s9(E)})},agm=function(v){v.JSC$22931_watchApi.registerActionHandler("yt-toggle-theater-mode",function(e,d){IgB(v,e,d===void 0?!0:d)});
v.addOnDisposeCallback(function(){v.JSC$22931_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.OD6.prototype.getState=function(){return _.xj(_.d1().getState())};
var IgB=function(v,e,d){d=d===void 0?!0:d;var E,T,S,O=_.N("enable_player_resize_transition")&&!!v.JSC$22931_watchApi.getWatchNextResponse()&&!((E=v.JSC$22931_watchApi.getWatchNextResponse())==null?0:(T=E.contents)==null?0:(S=T.twoColumnWatchNextResults)==null?0:S.conversationBar);_.pwC(function(){_.d1().dispatch(_.Oo({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:e}}));_.N("theater_mode_scroll_to_top_killswitch")||v.JSC$22931_watchApi.scrollWatchTo(0,!1);_.SX()&&_.N("external_fullscreen")&&_.WF(document.documentElement);
iDV(v);d&&_.$L("wide",e?"1":"0",-1);_.b4(v.JSC$22931_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);v.JSC$22931_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:e});e&&_.b7f()},{shouldWrap:O})},iDV=function(v){var e;
_.I(function(d){if(d.nextAddress==1)return d.yield(v.JSC$22931_watchApi.playerApi,2);e=d.yieldResult;e.setSizeStyle(!0,v.getState());_.s9(d)})};var m4$=function(v){_.kh.call(this);var e=this;this.playerApi=v;this.timeToPanelSyncKeyMap={};var d;if(v==null?0:(d=v.isReady)==null?0:d.call(v)){d=_.ji(_.dk().resolve(_.Hl),function(T){return T.entities.timedMarkersListSyncEntity||{}},function(T,S){T=T===void 0?{}:T;
S=S===void 0?{}:S;for(var O=_.a(Object.keys(S)),b=O.next();!b.done;b=O.next())b=b.value,T[b]!==S[b]&&bD$(e,S[b]);S=_.a(Object.keys(T));for(O=S.next();!O.done;O=S.next())O=O.value,b=T[O],e.timeToPanelSyncKeyMap[O]&&YEk(e,b)});
this.addOnDisposeCallback(d);var E=function(T){e.onCueRangeEnter(T)};
v.addEventListener("onCueRangeEnter",E);this.addOnDisposeCallback(function(){var T;(T=v.removeEventListener)==null||T.call(v,"onCueRangeEnter",E)})}};
_.V(m4$,_.kh);
var YEk=function(v,e){var d,E;if((d=v.playerApi)==null?0:(E=d.isReady)==null?0:E.call(d)){var T;if((d=e==null?void 0:(T=e.timedListData)==null?void 0:T.sections)&&e!=null&&e.key)for(T=_.a(d),d=T.next();!d.done;d=T.next())if(d=d.value,d.timedSyncDataList&&d.sectionId)for(E=0;E<d.timedSyncDataList.length;E++){var S=d.timedSyncDataList[E];S.syncItemId&&v.playerApi.addCueRange(d.sectionId+"_"+e.key+"_"+S.syncItemId,Number(S.videoTimeMs)/1E3,E===d.timedSyncDataList.length-1?0x8000000000000:Number(d.timedSyncDataList[E+
1].videoTimeMs)/1E3)}}},bD$=function(v,e){var d,E;
if((d=v.playerApi)==null?0:(E=d.isReady)==null?0:E.call(d)){var T;if((d=e==null?void 0:(T=e.timedListData)==null?void 0:T.sections)&&e!=null&&e.key)for(T=_.a(d),d=T.next();!d.done;d=T.next())if(d=d.value,d.timedSyncDataList&&d.sectionId){E=_.a(d.timedSyncDataList);for(var S=E.next();!S.done;S=E.next())S=S.value,S.syncItemId&&v.playerApi.removeCueRange(d.sectionId+"_"+e.key+"_"+S.syncItemId)}}};
m4$.prototype.onCueRangeEnter=function(v){for(var e=_.a(Object.keys(this.timeToPanelSyncKeyMap)),d=e.next();!d.done;d=e.next()){d=d.value;var E=_.a(v.split("_"+d+"_")),T=E.next().value;E=E.next().value;if(T&&E){v=_.dk().resolve(_.Hl);e=this.timeToPanelSyncKeyMap[d];var S=_.zO0(v.getState(),e);d=yfY(d,T,E);if(d===-1)break;d={activeSyncId:E,activeItemIndex:d,activeSectionInfo:{sectionIdentifier:T}};S?v.dispatch(_.M0("markersEngagementPanelSyncEntity",e,d)):v.dispatch(_.Lv("markersEngagementPanelSyncEntity",
e,Object.assign({},{key:e},d)));break}}};
var yfY=function(v,e,d){var E=_.dk().resolve(_.Hl),T,S;v=(T=Wgm(E.getState(),v))==null?void 0:(S=T.timedListData)==null?void 0:S.sections;if(!v)return-1;T=0;S=_.a(v);for(v=S.next();!v.done;v=S.next()){v=v.value;E=v.timedSyncDataList||[];if(v.sectionId===e)return e=E.findIndex(function(O){return O.syncItemId===d}),e===-1?e:T+e;
T+=E.length}return-1};_.hdB=function(v){_.kh.call(this);var e=this;this.JSC$22944_watchApi=v;this.unresolvedCommands=[];this.JSC$22944_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(d){qE6(e,d)});
this.addOnDisposeCallback(function(){e.JSC$22944_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
rf6(this)};
_.V(_.hdB,_.kh);var rf6=function(v){var e;_.I(function(d){if(d.nextAddress==1)return d.yield(v.JSC$22944_watchApi.playerApi,2);e=d.yieldResult;if(v.isDisposed())return d.return();v.timedSyncObserver=new m4$(e);v.unresolvedCommands.length&&(v.unresolvedCommands.forEach(function(E){return qE6(v,E)}),v.unresolvedCommands=[]);
_.Yh(v,v.timedSyncObserver);_.s9(d)})},qE6=function(v,e){if(v.timedSyncObserver){var d=_.L(e,Vs$);
if(d&&d.timedSyncEntityKey&&d.panelSyncEntityKey){v=v.timedSyncObserver;e=d.timedSyncEntityKey;var E=d.panelSyncEntityKey;d=!!d.isEnabled;d=d===void 0?!0:d;var T=_.dk().resolve(_.Hl);T=Wgm(T.getState(),e);d?v.timeToPanelSyncKeyMap[e]||(v.timeToPanelSyncKeyMap[e]=E,YEk(v,T)):(delete v.timeToPanelSyncKeyMap[e],bD$(v,T))}}else v.unresolvedCommands.push(e)};var KsD=_.l(function(v){var e=v.data,d=v.maybeLogSmartSkipClientData,E=null,T=null,S=_.N("web_enable_auto_focus_for_timely_action_button"),O=function(){E=document.activeElement},b=function(){e().smartSkipMetadata&&(E=document.activeElement,_.XTs(function(){return T}))},Y=function(r){if(e().smartSkipMetadata&&(!r||r.key!=="Enter")){E&&E.isConnected&&(_.XTs(function(){return E}),E=null);
var h;(h=T)==null||h.blur()}};
v=_.rq(function(){d==null||d(!0,e());return!1});
var q=_.dq(_.B5(function(){return e().rendererContext},{onTap:function(r,h){h({disableClickTracking:!0})}}),_.Eh({visibilityCallback:function(r){if(S)r?T&&e().smartSkipMetadata&&(b(),document.addEventListener("focusin",O)):(document.removeEventListener("focusin",O),Y());
else if(r){r=_.P5(e().rendererContext);var h=Number(e().maxVisibleDurationMilliseconds),K,k=(K=_.L(e().rendererContext,_.K6))==null?void 0:K.label;r&&h&&k&&(K={label:k,command:r,durationMs:h},_.dk().resolve(_.Jq).enqueue(K))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.JE(function(){if(S){var r;if((T=(r=q.value)==null?void 0:r.querySelector("button"))&&e().smartSkipMetadata){var h;(h=q.value)==null||h.addEventListener("keydown",Y)}}});
_.Jf(function(){S&&(T&&e().smartSkipMetadata&&T.removeEventListener("keydown",Y),document.removeEventListener("focusin",O),Y())});
return _.m("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:q,"on:click":v},_.m(_.kz,{data:function(){return e().content}},{buttonViewModel:_.yi}))},"Zk");var $4f=_.l(function(v){var e=v.data,d=v.playerApi,E=_.dk().resolve(_.Hts);v=_.a(_.KM(function(){e()}));
var T=v.next().value,S=v.next().value,O=function(){return pcu(e(),T())},b=function(q,r){var h,K,k=(h=_.L(r==null?void 0:r.rendererContext,_.kJ))==null?void 0:(K=h.loggingDirectives)==null?void 0:K.trackingParams;
if((r=r==null?void 0:r.smartSkipMetadata)&&r.loggingData&&(K=r.loggingData,r=K.algorithmId,h=K.startMilliseconds,K=K.endMilliseconds,r&&h!==void 0&&K!==void 0)){var J,R;q={smartSkipData:Object.assign({},{versionName:r,startMediaTimeMs:h,endMediaTimeMs:K},q&&{userInteractionMediaTimeMs:(Math.floor(((J=_.dB())==null?void 0:(R=J.getPlayer())==null?void 0:R.getCurrentTime())||0)*1E3).toString()})};J=_.zz();var B;k&&(B=_.Jg(k));J&&B&&_.vK(J,B,q)}},Y=function(q,r){var h=pcu(e(),q);
if(h){var K=_.L(h,fh),k;if(k=r)k=d(),h=_.L(h,fh),k=h!=null&&h.smartSkipMetadata?!(k==null?0:k.isSameMarkerTypeVisible((h==null?void 0:h.smartSkipMetadata.markerKey)||"")):!0;if(k){var J,R;(K==null?0:(J=K.smartSkipMetadata)==null?0:(R=J.loggingData)==null?0:R.isCounterfactual)||(b(!1,K),S(q))}else r||T()!==q||S(void 0)}};
_.o_(function(){var q=e().timelyActions;if(q){q=_.a(q);for(var r=q.next();!r.done;r=q.next()){r=_.L(r.value,fh);var h=void 0;(h=r)!=null&&h.cueRangeId&&E.timelyActionsMap.set(r.cueRangeId,Y)}_.Jf(function(){E.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.m("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.m(_.kz,{data:O},{timelyActionViewModel:function(q){return _.m(KsD,{data:q.data,maybeLogSmartSkipClientData:function(){b(!0,_.L(O(),fh))}})}}))},"$k");_.s_m=function(v){_.kh.call(this);this.JSC$22956_watchApi=v;v=_.a(_.OE({},void 0,"UN7k5e"));this.timelyActionsOverlay=v.next().value;this.setTimelyActionsOverlay=v.next().value;j_m(this)};
_.V(_.s_m,_.kh);var j_m=function(v){var e,d,E,T;_.I(function(S){if(S.nextAddress==1)return NhB(v),kqT(v),v.timelyActionsContainer=document.createElement("div"),S.yield(v.JSC$22956_watchApi.playerApi,2);e=S.yieldResult;(E=(d=e).insertTimelyActionUi)==null||E.call(d,v.timelyActionsContainer);T=_.VU(v.timelyActionsContainer,function(){return _.m($4f,{data:v.timelyActionsOverlay,playerApi:e})},"al");
v.addOnDisposeCallback(T);_.s9(S)})},kqT=function(v){var e=v.JSC$22956_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NhB(v)});
v.addOnDisposeCallback(function(){v.JSC$22956_watchApi.unsubscribeByKey(e)})},NhB=function(v){var e=v.JSC$22956_watchApi.getWatchNextResponse();
if(e){var d,E;if(e=_.L((d=e.playerOverlays)==null?void 0:(E=d.playerOverlayRenderer)==null?void 0:E.timelyActionsOverlayViewModel,osr)){var T;(T=v.setTimelyActionsOverlay)==null||T.call(v,e)}}};_.VxD=function(v){_.kh.call(this);this.JSC$22960_watchApi=v;Lsa(this)};
_.V(_.VxD,_.kh);var Lsa=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22960_watchApi.playerApi,2);e=E.yieldResult;d=function(T){_.hg.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.L(T,_.oWs)},popupType:"TOAST"}})};
e.addEventListener("onYtShowToast",d);v.addOnDisposeCallback(function(){e.removeEventListener("onYtShowToast",d)});
_.s9(E)})};var oGJ,MxV,x4k,JfD,GqT,P3B,fg$,RdD,Bha,C3u;oGJ=!1;_.txk=function(v){_.kh.call(this);this.JSC$22963_watchApi=v;this.fullscreen=this.theater=!1;JfD(this);GqT(this);MxV(this)};
_.V(_.txk,_.kh);MxV=function(v){var e,d,E;_.I(function(T){if(T.nextAddress==1)return T.yield(v.JSC$22963_watchApi.playerApi,2);e=T.yieldResult;if(v.isDisposed())return T.return();d=v.JSC$22963_watchApi.getElement("CINEMATICS");if(!d)return T.return();v.JSC$22963_cinematicController=new _.EO(d,e);_.Yh(v,v.JSC$22963_cinematicController);_.uuQ(v.JSC$22963_cinematicController);fg$(v,_.GT0());E=v.JSC$22963_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(S){RdD(v,S)});
v.addOnDisposeCallback(function(){v.JSC$22963_watchApi.unsubscribeByKey(E)});
P3B(v);RdD(v,v.JSC$22963_cinematicController.isAllowed());_.N("web_cinematic_manager_redux_killswitch")?_.fJ(v,v.fullscreen,v.theater):x4k(v);Bha(v);_.s9(T)})};
x4k=function(v){v.fullscreen=_.Ba(_.d1().getState());v.theater=_.xj(_.d1().getState());_.fJ(v,v.fullscreen,v.theater);var e=_.ji(_.d1(),_.Ba,function(E){v.fullscreen=E;_.fJ(v,v.fullscreen,v.theater)}),d=_.ji(_.d1(),_.xj,function(E){v.theater=E;
_.fJ(v,v.fullscreen,v.theater)});
v.addOnDisposeCallback(e);v.addOnDisposeCallback(d)};
JfD=function(v){var e=v.JSC$22963_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){P3B(v)});
v.addOnDisposeCallback(function(){v.JSC$22963_watchApi.unsubscribeByKey(e)})};
GqT=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22963_watchApi.playerApi,2);e=E.yieldResult;d=function(T){fg$(v,T)};
e.addEventListener("cinematicSettingsToggleChange",d);v.addOnDisposeCallback(function(){e.removeEventListener("cinematicSettingsToggleChange",d)});
_.s9(E)})};
P3B=function(v){var e=v.JSC$22963_watchApi.getWatchNextResponse(),d;e=_.L(e==null?void 0:(d=e.pageVisualEffects)==null?void 0:d[0],_.GA);var E;(E=v.JSC$22963_cinematicController)==null||_.Da9(E,e)};
fg$=function(v,e){var d;(d=v.JSC$22963_cinematicController)==null||_.nWs(d,e);C3u(v)};
RdD=function(v,e){var d;_.I(function(E){if(E.nextAddress==1)return _.N("kevlar_watch_cinematics_invisible")&&(e=!1),E.yield(v.JSC$22963_watchApi.playerApi,2);d=E.yieldResult;d.updateCinematicSettings(e);C3u(v);_.s9(E)})};
Bha=function(v){var e=_.LB();if(_.N("kevlar_measure_ambient_mode_idle")&&!e.getFlag(192)&&!oGJ){oGJ=!0;var d=_.LI(_.RM,function(){_.dk().resolve(_.p$s).start(1E4)},5E3);
v.addOnDisposeCallback(function(){_.RM.cancelJob(d);_.dk().resolve(_.p$s).stop()})}};
_.fJ=function(v,e,d){v.fullscreen=e;v.theater=d;var E;(E=v.JSC$22963_cinematicController)==null||E.setFullscreen(v.fullscreen,v.theater);if(_.N("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(v.theater||v.fullscreen){var T;(T=v.JSC$22963_cinematicController)==null||_.Uat(T)}else if((v=v.JSC$22963_cinematicController)!=null){var S;(S=v.currentCinematicEffect)==null||S.pause()}};
C3u=function(v){if(_.N("web_cinematic_theater_mode")||_.N("web_cinematic_fullscreen")){var e;v.JSC$22963_watchApi.getRoot().toggleCinematicsActive(!((e=v.JSC$22963_cinematicController)==null||!e.isEnabled()))}};_.HDa=function(v){_.kh.call(this);var e=this;this.JSC$22966_watchApi=v;this.commentsReady=!1;this.setCommentsJobId=0;v=_.ji(_.d1(),_.Lh,function(){XxY(e)});
this.addOnDisposeCallback(v);var d=this.JSC$22966_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zdm(e)}),E=this.JSC$22966_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){zdm(e)});
this.addOnDisposeCallback(function(){e.JSC$22966_watchApi.unsubscribeByKey(d);e.JSC$22966_watchApi.unsubscribeByKey(E)});
var T=function(){_.N("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&lgD(e,"false")};
this.JSC$22966_watchApi.getRoot().addEventListener("yt-page-data-will-update",T);this.addOnDisposeCallback(function(){e.JSC$22966_watchApi.getRoot().removeEventListener("yt-page-data-will-update",T)});
zdm(this)};
_.V(_.HDa,_.kh);var zdm=function(v){v.commentsReady=!1;_.RM.cancelJob(v.setCommentsJobId);v.setCommentsJobId=_.LI(_.RM,function(){XxY(v)},1E3)},XxY=function(v){if(!v.commentsReady){_.zE("cmi");
_.RM.cancelJob(v.setCommentsJobId);var e,d,E,T,S=(e=v.JSC$22966_watchApi.getWatchNextResponse())==null?void 0:(d=e.contents)==null?void 0:(E=d.twoColumnWatchNextResults)==null?void 0:(T=E.results)==null?void 0:T.results.contents;e=void 0;if(S&&S.length)for(S=_.a(S),d=S.next();!d.done;d=S.next())if(d=d.value,T=E=void 0,((E=d)==null?void 0:(T=E.itemSectionRenderer)==null?void 0:T.sectionIdentifier)==="comment-item-section"){_.N("web_watch_provide_undefined_comments")?e=d.itemSectionRenderer:v.JSC$22966_watchApi.provideRenderingData("COMMENTS",
d.itemSectionRenderer);lgD(v,"true");break}_.N("web_watch_provide_undefined_comments")&&v.JSC$22966_watchApi.provideRenderingData("COMMENTS",e);v.commentsReady=!0;v.JSC$22966_watchApi.dispatchEvent("yt-watch-comments-ready")}},lgD=function(v,e){var d;
(d=v.JSC$22966_watchApi.getElement("COMMENTS"))==null||d.setAttribute("canScheduleJobs",e)};_.Bd=function(v){_.kh.call(this);var e=this;this.JSC$22969_watchApi=v;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.N("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.N("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.N("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Wi("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)AfV(this);
else{var d=this.JSC$22969_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Rl(e);Pd(e)}),E=this.JSC$22969_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xW(e);
Pd(e)});
this.JSC$22969_watchApi.getRoot().is==="ytd-watch-grid"&&_.N("swatcheroo_pbs_load_grid")&&(ZDT(this),cf$(this));this.addOnDisposeCallback(function(){e.JSC$22969_watchApi.unsubscribeByKey(d);e.JSC$22969_watchApi.unsubscribeByKey(E);_.RM.cancelJob(e.provideRichGridJobId)});
Rl(this);xW(this)}};
_.V(_.Bd,_.kh);var AfV=function(v){var e=v.JSC$22969_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){v.providePlayerJobId=_.NP(_.RM,function(){Rl(v);Pd(v)},v.provideAllDataDelayMs)}),d=v.JSC$22969_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){v.provideWatchNextJobId=_.NP(_.RM,function(){xW(v);
Pd(v)},v.provideAllDataDelayMs)}),E=v.JSC$22969_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){v.provideWatchNextJobId=_.NP(_.RM,function(){xW(v);
Pd(v)},v.provideAllDataDelayMs)});
v.JSC$22969_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.LI(_.RM,function(){Rl(v);xW(v);Pd(v)},100)});
v.JSC$22969_watchApi.addPageDisposeJob(function(){_.RM.cancelJob(v.provideWatchNextJobId);_.RM.cancelJob(v.providePlayerJobId)});
v.addOnDisposeCallback(function(){v.JSC$22969_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");v.JSC$22969_watchApi.unsubscribeByKey(e);v.JSC$22969_watchApi.unsubscribeByKey(d);v.JSC$22969_watchApi.unsubscribeByKey(E);_.RM.cancelJob(v.providePlayerJobId);_.RM.cancelJob(v.provideWatchNextJobId)});
Rl(v);xW(v)},Rl=function(v){var e=v.JSC$22969_watchApi.getPlayerResponse(),d,E,T=(E=e==null?void 0:(d=e.playabilityStatus)==null?void 0:d.messageRenderers)!=null?E:[],S,O;
e=(O=e==null?void 0:(S=e.playabilityStatus)==null?void 0:S.messages)!=null?O:[];S=_.a(e);for(O=S.next();!O.done;O=S.next())T.push({alertRenderer:{text:_.pQ(O.value),type:"WARNING"}});v.JSC$22969_watchApi.provideRenderingData("ALERTS",T)},xW=function(v){var e=[],d,E,T,S=v.JSC$22969_watchApi.getWatchNextResponse(),O,b,Y,q,r=S==null?void 0:(O=S.contents)==null?void 0:(b=O.twoColumnWatchNextResults)==null?void 0:(Y=b.results)==null?void 0:(q=Y.results)==null?void 0:q.contents;
if(r)for(O=_.a(r),b=O.next();!b.done;b=O.next())if(b=b.value,b.videoPrimaryInfoRenderer)var h=b;else if(b.videoSecondaryInfoRenderer){var K=b;q=Y=void 0;b=Object.assign({},(Y=b.videoSecondaryInfoRenderer)==null?void 0:(q=Y.metadataRowContainer)==null?void 0:q.metadataRowContainerRenderer);if(b.rows&&b.collapsedItemCount!==void 0){b.rows=b.rows.slice(0,b.collapsedItemCount).filter(function(es){return!!es.richMetadataRowRenderer});
b.collapsedItemCount=b.rows.length;var k={metadataRowContainerRenderer:b}}}else if(b.merchandiseShelfRenderer)var J=b;else if(b.ticketShelfRenderer)var R=b;else if(b.expandableMetadataRenderer)var B=b;else if(b.itemSectionRenderer)if(Y=b.itemSectionRenderer.contents,q=void 0,v.directlyProvideComments&&((q=b.itemSectionRenderer)==null?void 0:q.sectionIdentifier)==="comment-item-section")_.zE("cmi"),v.JSC$22969_watchApi.provideRenderingData("COMMENTS",b.itemSectionRenderer);else if(Y)for(b=_.a(Y),Y=
b.next();!Y.done;Y=b.next())if(Y=Y.value,Y.commentsEntryPointHeaderRenderer)var X=Y;else if(Y.clarificationRenderer||Y.infoPanelContainerRenderer||Y.infoPanelContentRenderer||Y.emergencyOneboxRenderer){e.push(Y);var Z=Z||!!K}else Y.limitedStateMessageRenderer?E=Y:Y.videoMetadataCarouselViewModel&&(T=Y);if(_.N("web_watch_merch_in_sd_when_ticket_shelf_present")&&J&&R){var U=J;J=void 0}if(v.provideWatchNextSecondaryResults){var F,g,Q;v.JSC$22969_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
S==null?void 0:(F=S.contents)==null?void 0:(g=F.twoColumnWatchNextResults)==null?void 0:(Q=g.secondaryResults)==null?void 0:Q.secondaryResults)}if(v.JSC$22969_watchApi.getRoot().is==="ytd-watch-grid"){var v3,q7;v.JSC$22969_watchApi.provideRenderingData("LIVE_CHAT",S==null?void 0:(v3=S.contents)==null?void 0:(q7=v3.twoColumnWatchNextResults)==null?void 0:q7.conversationBar)}var m0,$S,kS,N7;(F=S==null?void 0:(m0=S.contents)==null?void 0:($S=m0.twoColumnWatchNextResults)==null?void 0:(kS=$S.secondaryResults)==
null?void 0:(N7=kS.secondaryResults)==null?void 0:N7.offerModule)&&(F.donationShelfRenderer||F.donationUnavailableRenderer)&&v.JSC$22969_watchApi.getRoot().is!=="ytd-watch-grid"&&(d=F);m0=v.JSC$22969_watchApi.getPlayerResponse();if(!m0||!_.xt$(m0.playabilityStatus,S==null?void 0:S.playerOverlays)){var As;if(S==null?0:(As=S.contents)==null?0:As.singleColumnWatchNextResults){var Ct,SA;var xI=S==null?void 0:(Ct=S.contents.singleColumnWatchNextResults.results)==null?void 0:(SA=Ct.results)==null?void 0:
SA.contents}else{var mg,pt,he,yB;As=!!(r==null?0:(mg=r[0])==null?0:(pt=mg.itemSectionRenderer)==null?0:(he=pt.contents)==null?0:(yB=he[0])==null?0:yB.backgroundPromoRenderer);var te,oC;mg=!!(S==null?0:(te=S.contents)==null?0:(oC=te.twoColumnWatchNextResults)==null?0:oC.secondaryResults);As&&!mg&&(xI=r)}}r=e[0];te=e[1];Z&&e.length===1&&(te=r,r=void 0);v.JSC$22969_watchApi.provideRenderingData("PRIMARY_INFO",h);v.JSC$22969_watchApi.provideRenderingData("SECONDARY_INFO",K);v.JSC$22969_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
X);v.JSC$22969_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",T);v.JSC$22969_watchApi.provideRenderingData("CLARIFICATION",r);v.JSC$22969_watchApi.provideRenderingData("RICH_METADATA",k);v.JSC$22969_watchApi.provideRenderingData("MERCH_SHELF",J);_.N("web_watch_merch_in_sd_when_ticket_shelf_present")&&v.JSC$22969_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",U);v.JSC$22969_watchApi.provideRenderingData("TICKET_SHELF",R);v.JSC$22969_watchApi.provideRenderingData("LIMITED_STATE",E);v.JSC$22969_watchApi.getRoot().is!==
"ytd-watch-grid"&&v.JSC$22969_watchApi.provideRenderingData("DONATION_SHELF",d);v.JSC$22969_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",xI);v.JSC$22969_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",te);v.JSC$22969_watchApi.provideRenderingData("EXPANDABLE_METADATA",B);if(v.swatcherooProvideAllDataOnScheduledJob){var n7,SW,vc,jA,Ys,s6;h=S==null?void 0:(n7=S.contents)==null?void 0:(SW=n7.twoColumnWatchNextResults)==null?void 0:(vc=SW.secondaryResults)==null?void 0:(jA=vc.secondaryResults)==
null?void 0:(Ys=jA.results)==null?void 0:(s6=Ys[0])==null?void 0:s6.richGridRenderer;v.JSC$22969_watchApi.provideRenderingData("RICH_GRID_RENDERER",h)}};
_.Bd.prototype.hasCompanionAds=function(v){var e,d;return(d=v==null?void 0:(e=v.adPlacements)==null?void 0:e.some(function(E){var T,S,O,b;return(E==null?void 0:(T=E.adPlacementRenderer)==null?void 0:(S=T.renderer)==null?void 0:S.actionCompanionAdRenderer)||(E==null?void 0:(O=E.adPlacementRenderer)==null?void 0:(b=O.renderer)==null?void 0:b.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?d:!1};
var Pd=function(v){if(!_.N("swaterdoo_ps_wn_handle_ks")){v.swatcherooProvideAllDataOnScheduledJob||cf$(v,3E3);var e=v.JSC$22969_watchApi.getPlayerResponse(),d,E,T,S,O,b=(d=v.JSC$22969_watchApi.getWatchNextResponse())==null?void 0:(E=d.contents)==null?void 0:(T=E.twoColumnWatchNextResults)==null?void 0:(S=T.secondaryResults)==null?void 0:(O=S.secondaryResults)==null?void 0:O.offerModule;e=v.hasCompanionAds(e);var Y,q;d=(b==null?void 0:(Y=b.tvfilmOfferModuleRenderer)==null?void 0:Y.clientShouldSuppressIfCompanionAdDisplayed)||
(b==null?void 0:(q=b.unlimitedOfferModuleRenderer)==null?void 0:q.suppressIfCompanionAds);Y=e&&d;v.JSC$22969_watchApi.getRoot().is==="ytd-watch-grid"&&v.JSC$22969_watchApi.provideRenderingData("OFFER_MODULE",Y?void 0:b)}},cf$=function(v,e){_.N("swatcheroo_pbs_load_grid")&&(v.provideRichGridJobId&&_.RM.cancelJob(v.provideRichGridJobId),v.provideRichGridJobId=_.NP(_.RM,function(){v.provideRichGridJobId=0;
var d,E,T,S,O,b,Y,q=(d=v.JSC$22969_watchApi.getWatchNextResponse())==null?void 0:(E=d.contents)==null?void 0:(T=E.twoColumnWatchNextResults)==null?void 0:(S=T.secondaryResults)==null?void 0:(O=S.secondaryResults)==null?void 0:(b=O.results)==null?void 0:(Y=b[0])==null?void 0:Y.richGridRenderer;q&&v.JSC$22969_watchApi.provideRenderingData("RICH_GRID_RENDERER",q)},e))},ZDT=function(v){var e,d;
_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22969_watchApi.playerApi,2);e=E.yieldResult;d=function(){v.onPlaybackStart()};
e.addEventListener("onPlaybackStartExternal",d);v.addOnDisposeCallback(function(){e.removeEventListener("onPlaybackStartExternal",d)});
_.s9(E)})};
_.Bd.prototype.onPlaybackStart=function(){cf$(this)};_.Fsa=function(v){_.kh.call(this);var e=this;this.JSC$22979_watchApi=v;v.playerApi.then(function(d){e.player=d});
this.gestures=new _.On(this.JSC$22979_watchApi.getRoot(),v.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.a0J(_.d1().getState())&&_.Lh(_.d1().getState())<=0)if(_.Ba(_.d1().getState())){var d;(d=e.player)==null||d.toggleFullscreen()}else _.b4(e.JSC$22979_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
wx$(this)};
_.V(_.Fsa,_.kh);var wx$=function(v){var e=_.ji(_.d1(),_.Ba,function(d){v.onFullscreenChanged(d)});
v.addOnDisposeCallback(e);e=_.ji(_.d1(),_.Lh,function(d){v.gestures&&(d>0?v.gestures.detach():v.gestures.attach())});
v.addOnDisposeCallback(e)};
_.Fsa.prototype.onFullscreenChanged=function(v){this.gestures&&this.gestures.update(v)};_.gGu=function(v){_.kh.call(this);var e=this;this.JSC$22982_watchApi=v;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(v.subscribeToActiveChanged(function(d){e.onActiveChanged(d)}));
Q_B(this)};
_.V(_.gGu,_.kh);var uKr=function(v){if(_.N("swatcheroo_page_dispose_all_watch_data"))v.pageDisposalDataTypes=Object.values(qla).filter(function(d){return d!=="PLAYLIST"});
else if(_.N("swatcheroo_page_dispose_rich_grid")){var e;(e=v.pageDisposalDataTypes)==null||e.push("RICH_GRID_RENDERER")}},Q_B=function(v){_.N("swatcheroo_enable_ghost_cards")&&(uKr(v),v.JSC$22982_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.RM.cancelJob(v.clearDataJobId);
v.clearDataJobId=0}),v.runPageDisposeJob=function(){var e=_.dk().resolve(_.v5).getDestinationPageType()==="watch";
v.clearDataJobId=_.NP(_.RM,v.runClearDataJob,e?0:_.Wi("web_watch_delay_page_dispose_ms",1E4))},v.runClearDataJob=function(){nGV(v)},v.runOnYtNavigateAwayFinish=function(){v.clearDataJobId&&(_.RM.cancelJob(v.clearDataJobId),v.clearDataJobId=0,nGV(v))},document.addEventListener("yt-navigate-finish",v.runOnYtNavigateAwayFinish),v.JSC$22982_watchApi.addPageDisposeJob(v.runPageDisposeJob),v.addOnDisposeCallback(function(){v.JSC$22982_watchApi.removePageDisposeJob(v.runPageDisposeJob);
v.JSC$22982_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",v.runOnYtNavigateAwayFinish)}))},nGV=function(v){v.pageDisposalDataTypes.forEach(function(e){v.JSC$22982_watchApi.provideRenderingData(e,void 0)});
v.clearDataJobId=0};
_.gGu.prototype.onActiveChanged=function(v){v&&((v=document.querySelector("#watch-page-skeleton"))&&_.KX(v),D4r(this),document.body.removeAttribute("no-y-overflow"),_.zr("IS_SHELL_LOAD")&&_.EVQ())};
var D4r=function(v){_.I(function(e){if(e.nextAddress==1)return e.yield(v.JSC$22982_watchApi.playerApi,2);_.lw();_.s9(e)})};var U46;U46=_.N("kevlar_watch_while_counterfactual")?0:.25;_.CJ=function(v){_.kh.call(this);this.JSC$22985_watchApi=v;this.JSC$22985_watchWhileEnabled=_.N("kevlar_watch_while_v2");this.pipEnabled=_.N("web_enable_pip_on_miniplayer");pxf(this);vcV(this);eZY(this)};
_.V(_.CJ,_.kh);var pxf=function(v){v.JSC$22985_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){d9Y(v)});
v.addOnDisposeCallback(function(){v.JSC$22985_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},vcV=function(v){var e,d;
_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22985_watchApi.playerApi,2);e=E.yieldResult;d=function(){d9Y(v)};
e.addEventListener("onCollapseMiniplayer",d);v.addOnDisposeCallback(function(){e.removeEventListener("onCollapseMiniplayer",d)});
_.s9(E)})},eZY=function(v){var e=v.JSC$22985_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&e&&v.JSC$22985_watchWhileEnabled&&(v.playerIntersectionObserver=new IntersectionObserver(function(d){v.handleIntersect(d)},{threshold:[U46]}),v.playerIntersectionObserver.observe(e),v.addOnDisposeCallback(function(){var d;
(d=v.playerIntersectionObserver)==null||d.disconnect()}))},d9Y=function(v){var e,d,E;
_.I(function(T){if(T.nextAddress==1){e=_.dk().resolve(_.v5);d=e.data;E=_.Gp(d.response,!1,d.playerResponse);_.Ke().miniplayerButtonActivation=!0;if(v.pipEnabled)return _.Ke().watchPipActivation=!0,T.jumpTo(2);_.dk().resolve(_.P0).collapse();return T.yield(_.Ke().navigationFinishPromise,2)}if(T.nextAddress!=4)return _.Ke().currentEndpoint=E.watchEndpoint||null,T.yield(_.dk().resolve(_.P0).activate(v.JSC$22985_watchApi.getElement("PLAYER"),E,d),4);_.Ke().userActivation=!0;_.s9(T)})};
_.CJ.prototype.handleIntersect=function(v){EcT(this,v[v.length-1])};
var EcT=function(v,e){v.watchWhileJobId&&_.RM.cancelJob(v.watchWhileJobId);v.watchWhileJobId=_.RM.addLowPriorityJob(function(){var d,E;return _.I(function(T){if(T.nextAddress==1)return v.watchWhileJobId=void 0,d=_.dk().resolve(_.P0),e.intersectionRatio>U46?d.isMiniplayerActive()?T.yield(d.deactivate(),0):T.jumpTo(0):(E=!d.isMiniplayerActive())?T.yield(TZk(v),5):T.jumpTo(4);T.nextAddress!=4&&(E=T.yieldResult);if(!E)return T.jumpTo(0);_.Ke().watchWhileActivation=!0;return T.yield(SWa(v),0)})},100)},
TZk=function(v){return _.I(function(e){return e.nextAddress==1?_.N("kevlar_watch_while_paused")?e.return(!0):e.yield(v.isPlayerPlaying(),2):e.return(e.yieldResult)})};
_.CJ.prototype.isPlayerPlaying=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return d.yield(v.JSC$22985_watchApi.playerApi,2);e=d.yieldResult;return d.return(e.getPlayerStateObject().isPlaying)})};
var SWa=function(v){var e,d;return _.I(function(E){e=_.dk().resolve(_.v5).data;d=_.Gp(e.response,!1,e.playerResponse);_.Ke().currentEndpoint=d.watchEndpoint||null;return E.yield(_.dk().resolve(_.P0).activate(v.JSC$22985_watchApi.getElement("PLAYER"),d,e),0)})};_.i4m=function(v){_.kh.call(this);this.JSC$22989_watchApi=v;WEf(this);aVT(this)};
_.V(_.i4m,_.kh);var aVT=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22989_watchApi.playerApi,2);e=E.yieldResult;d=function(T){var S;T.sessionData&&T.sessionData.itct&&(S=T.sessionData.itct);var O=T.watchEndpoint;if(O&&T.sessionData&&T.sessionData.autonav)O=_.EyS(O,S);else{var b;O=_.S7(T.videoId,(b=T.listId)!=null?b:void 0,S)}S={endpoint:O};T.sessionData&&(S.tempData=T.sessionData);v.JSC$22989_watchApi.dispatchEvent("yt-navigate",S)};
e.addEventListener("onPlayVideo",d);v.addOnDisposeCallback(function(){e.removeEventListener("onPlayVideo",d)});
_.s9(E)})},WEf=function(v){var e=function(d){v.onYtNavigate(d)};
v.JSC$22989_watchApi.getRoot().addEventListener("yt-navigate",e);v.addOnDisposeCallback(function(){v.JSC$22989_watchApi.getRoot().removeEventListener("yt-navigate",e)})};
_.i4m.prototype.onYtNavigate=function(v){var e=this,d,E,T,S,O,b,Y,q,r;return _.I(function(h){if(h.nextAddress==1){if(!((d=v.detail)==null?0:(E=d.endpoint)==null?0:E.watchEndpoint))return h.return();T=v.detail.endpoint.watchEndpoint;S=e.JSC$22989_watchApi.getWatchNextResponse();b=_.L((O=S)==null?void 0:O.currentVideoEndpoint,_.p2);if(!b)return h.return();if(T.videoId!==b.videoId||T.playlistId&&T.playlistId!==b.playlistId||typeof T.startTimeSeconds!=="number")return h.jumpTo(0);v.stopPropagation();
(Y=_.N("kevlar_watch_while_v2")&&!_.N("kevlar_watch_while_counterfactual"))&&_.dk().resolve(_.P0).isMiniplayerActive()||e.JSC$22989_watchApi.scrollWatchTo(0,!0);return h.yield(e.JSC$22989_watchApi.playerApi,3)}q=h.yieldResult;r=T.startTimeSeconds;q.seekTo(r,void 0,void 0,void 0,84);q.wakeUpControls();r<q.getDuration()&&q.playVideo();_.s9(h)})};_.IVJ=function(v){_.kh.call(this);var e=this;this.JSC$22992_watchApi=v;var d=this.JSC$22992_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){O4$(e)});
this.addOnDisposeCallback(function(){e.JSC$22992_watchApi.unsubscribeByKey(d)});
O4$(this)};
_.V(_.IVJ,_.kh);var O4$=function(v){var e=v.JSC$22992_watchApi.getWatchNextResponse();if(e){var d,E=[].concat(_.t7((d=e==null?void 0:e.engagementPanels)!=null?d:[]));E.unshift.apply(E,_.t7(b4Y(e)));v.JSC$22992_watchApi.provideRenderingData("ENGAGEMENT_PANELS",E)}},YW$=function(v){var e,d,E,T=(e=v.engagementPanels)==null?void 0:(d=e.find(function(k){var J;
return((J=k.engagementPanelSectionListRenderer)==null?void 0:J.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(E=d.engagementPanelSectionListRenderer.content)==null?void 0:E.structuredDescriptionContentRenderer,S;
if(_.L(T==null?void 0:(S=T.items)==null?void 0:S.find(function(k){return!!_.L(k,cim)}),cim))return!0;
var O,b,Y,q;if(v=(((O=v.contents)==null?void 0:(b=O.twoColumnWatchNextResults)==null?void 0:(Y=b.results)==null?void 0:(q=Y.results)==null?void 0:q.contents)||[]).find(function(k){return k.videoPrimaryInfoRenderer})){var r,h,K;
return(((r=v.videoPrimaryInfoRenderer)==null?void 0:(h=r.videoActions)==null?void 0:(K=h.menuRenderer)==null?void 0:K.flexibleItems)||[]).some(function(k){k=_.L(k,_.RM2);if(!k)return!1;var J,R;k=(J=k.topLevelButton)==null?void 0:(R=J.buttonViewModel)==null?void 0:R.onTap;if(!k)return!1;J=_.lk(k);if(!J)return!1;var B;return((B=_.L(J,_.k5))==null?void 0:B.panelIdentifier)==="PAyouchat"})}return!1},b4Y=function(v){var e=[];
if(!_.N("web_watch_inject_placeholder_fantasy_panel_killswitch")){var d,E,T,S=(d=v.engagementPanels)==null?void 0:(E=d.find(function(b){var Y;return((Y=b.engagementPanelSectionListRenderer)==null?void 0:Y.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(T=E.engagementPanelSectionListRenderer.content)==null?void 0:T.structuredDescriptionContentRenderer,O;
_.L(S==null?void 0:(O=S.items)==null?void 0:O.find(function(b){return!!_.L(b,jCa)}),jCa)&&(d=_.jS3("PAsports_fantasy"),d.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e.push(d))}YW$(v)&&(v=_.jS3("PAyouchat"),v.engagementPanelSectionListRenderer.targetId="PAyouchat",v.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e.push(v));
return e};_.yEm=function(v){_.kh.call(this);this.JSC$22995_watchApi=v;m96(this)};
_.V(_.yEm,_.kh);var m96=function(v){v.JSC$22995_watchApi.registerActionHandler("yt-loop-command",function(e){qWm(v,e)});
v.JSC$22995_watchApi.registerActionHandler("yt-repeat-chapter-command",function(e){rEV(v,e)});
v.addOnDisposeCallback(function(){v.JSC$22995_watchApi.unregisterActionHandler("yt-loop-command");v.JSC$22995_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},qWm=function(v,e){var d;
_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$22995_watchApi.playerApi,2);d=E.yieldResult;_.L(e,N9$).loop?(d.setLoopRange({startTimeMs:Number(_.L(e,N9$).startTimeMs),endTimeMs:Number(_.L(e,N9$).endTimeMs),postId:_.L(e,N9$).postId,type:"clips"}),d.playVideo()):d.setLoopRange(null);_.s9(E)})},rEV=function(v,e){var d,E;
_.I(function(T){if(T.nextAddress==1)return T.yield(v.JSC$22995_watchApi.playerApi,2);d=T.yieldResult;E=_.L(e,Ji$).repeat;E==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(d.setLoopRange({startTimeMs:Number(_.L(e,Ji$).startTimeMs),endTimeMs:Number(_.L(e,Ji$).endTimeMs),type:"repeatChapter"}),d.playVideo()):E==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&d.setLoopRange(null);_.s9(T)})};_.KEa=function(v){_.kh.call(this);this.JSC$23000_watchApi=v;hZu(this)};
_.V(_.KEa,_.kh);var hZu=function(v){v.JSC$23000_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(e){$9k(v,e)});
v.addOnDisposeCallback(function(){v.JSC$23000_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},$9k=function(v,e){var d,E,T,S,O,b,Y,q,r,h,K;
_.I(function(k){if(k.nextAddress==1)return k.yield(v.JSC$23000_watchApi.playerApi,2);d=k.yieldResult;if(S=(T=(E=_.L(e,GQD))==null?void 0:E.highlightedMenuItemKey)!=null?T:"")(b=(O=d).highlightSettingsMenuItem)==null||b.call(O,S);if(r=(q=(Y=_.L(e,GQD))==null?void 0:Y.openMenuItemKey)!=null?q:"")(K=(h=d).openSettingsMenuItem)==null||K.call(h,r);_.s9(k)})};var js$=_.rg("/youtube/app/watch/player_state","playerStateEntity");_.NZr=function(v){_.kh.call(this);this.JSC$23003_watchApi=v;ss$(this)};
_.V(_.NZr,_.kh);var kr$=function(v){switch(v){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"}},ss$=function(v){var e,d;
_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23003_watchApi.playerApi,2);e=E.yieldResult;d=function(T){v.onPlayerStateChange(T)};
e.addEventListener("onStateChange",d);v.addOnDisposeCallback(function(){e.removeEventListener("onStateChange",d)});
_.s9(E)})};
_.NZr.prototype.onPlayerStateChange=function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1)return T.yield(e.JSC$23003_watchApi.playerApi,2);d=T.yieldResult;E=d.getVideoData().video_id;_.pq().dispatch(_.Lv("playerStateEntity",js$,{key:js$,playerState:kr$(v),videoId:E}));_.s9(T)})};_.VIk=function(v){_.kh.call(this);var e=this;this.JSC$23007_watchApi=v;this.enableExternalPlaylistPanelInPlayer=_.N("delhi_web_player_use_external_playlist_panel");_.dk().resolve(_.zJ).setPlayer(this.JSC$23007_watchApi.getElement("PLAYER"));v=this.JSC$23007_watchApi.subscribeToActiveChanged(function(d){e.onActiveChanged(d)});
this.addOnDisposeCallback(v);LEu(this)};
_.V(_.VIk,_.kh);var LEu=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return v.enableExternalPlaylistPanelInPlayer?E.yield(v.JSC$23007_watchApi.playerApi,2):E.return();e=E.yieldResult;d=function(){if(v.playlistPanelElement)v.playlistPanelElement.onToggleExpanded()};
e.addEventListener("onToggleExternalPlaylistPanel",d);v.addOnDisposeCallback(function(){e.removeEventListener("onToggleExternalPlaylistPanel",d)});
_.s9(E)})};
_.VIk.prototype.onActiveChanged=function(v){var e=this,d=_.dk().resolve(_.zJ),E=function(){ocm(e)};
v?(this.playlistPanelElement=this.JSC$23007_watchApi.getElement("PLAYLIST_PANEL"))?(d.setPlaylistComponent(this.playlistPanelElement),d.addEventListener("yt-playlist-data-updated",E),this.addOnDisposeCallback(function(){d.removeEventListener("yt-playlist-data-updated",E)}),ocm(this)):_.ZV(Error("Mo")):(d.removeEventListener("yt-playlist-data-updated",E),d.cancelVideoSkip())};
var ocm=function(v){var e=_.dk().resolve(_.zJ);v.JSC$23007_watchApi.provideRenderingData("PLAYLIST",e.getPlaylistData())};_.Xu=function(v){_.kh.call(this);var e=this;this.JSC$23010_watchApi=v;this.onPageScroll=function(){e.scrollThrottle.fire();e.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.wB(this.onThrottledScroll,200,this);_.Yh(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.wB(this.onMastheadThrottledScroll,50,this);_.Yh(this,this.mastheadScrollThrottle);this.animation=new _.Fi(function(d){e.JSC$23010_watchApi.getRoot().setScrollTop(d)});
v=_.ji(_.d1(),_.Ba,function(){e.onFullscreenChanged()});
this.addOnDisposeCallback(v);JED(this);GrB(this);this.onThrottledScroll()};
_.V(_.Xu,_.kh);
_.Xu.prototype.onFullscreenChanged=function(){var v=this,e=this.JSC$23010_watchApi.getRoot();!this.pageScrollElement&&e.pageScrollElement?(this.pageScrollElement=e.pageScrollElement,e.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){v.pageScrollElement&&v.pageScrollElement.removeEventListener("scroll",v.onPageScroll)})):this.pageScrollElement&&!e.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var JED=function(v){window.addEventListener("scroll",v.onPageScroll);v.addOnDisposeCallback(function(){window.removeEventListener("scroll",v.onPageScroll)})},GrB=function(v){v.JSC$23010_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(e){a:{var d;
if(d=v.JSC$23010_watchApi.getRoot().contains(e)&&!v.animation.isAnimating()){d=e.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var E,T,S=(e==null?void 0:(E=e.parentElement)==null?void 0:(T=E.parentElement)==null?void 0:T.id)==="fixed-secondary";d=!(d&&S)}if(d){if(_.N("kevlar_watch_scroll_manager_absolute_offset_killswitch"))E=e.offsetTop;else for(E=0,T=e;T!==null;)E+=T.offsetTop,E-=T.scrollTop,T=T.offsetParent;T=E;E=T-24;e=T+e.offsetHeight+24;T=v.JSC$23010_watchApi.getRoot().getPageScrollingElement();
d=v.JSC$23010_watchApi.getRoot().getScrollTop();S=d+T.clientHeight-56;if(E<d+56)e=E-56;else if(e>S)e-=T.clientHeight;else break a;v.scrollWatchTo(Math.max(0,e),!0)}}});
v.addOnDisposeCallback(function(){v.JSC$23010_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.Xu.prototype.onThrottledScroll=function(){var v=_.d1(),e=v.dispatch,d=this.JSC$23010_watchApi.getRoot().getScrollTop();e.call(v,_.Oo({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:d}}))};
_.Xu.prototype.onMastheadThrottledScroll=function(){this.JSC$23010_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23010_watchApi.getRoot().getScrollTop())};
_.Xu.prototype.scrollWatchTo=function(v,e){(e===void 0?0:e)?this.animation.start(this.JSC$23010_watchApi.getRoot().getScrollTop(),Math.max(0,v),500):this.JSC$23010_watchApi.getRoot().setScrollTop(v)};_.fVT=function(v){_.kh.call(this);var e=this;this.JSC$23013_watchApi=v;var d=this.JSC$23013_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){MI6(e)}),E=this.JSC$23013_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){tIY(e)});
this.addOnDisposeCallback(function(){e.JSC$23013_watchApi.unsubscribeByKey(d);e.JSC$23013_watchApi.unsubscribeByKey(E)});
MI6(this);tIY(this)};
_.V(_.fVT,_.kh);
var MI6=function(v){var e,d,E,T=(E=(e=v.JSC$23013_watchApi.getPlayerResponse())==null?void 0:(d=e.videoDetails)==null?void 0:d.title)!=null?E:"";v.JSC$23013_watchApi.dispatchEvent("yt-update-title",T)},tIY=function(v){var e,d,E,T,S,O,b,Y=(b=((O=(e=v.JSC$23013_watchApi.getWatchNextResponse())==null?void 0:(d=e.contents)==null?void 0:(E=d.twoColumnWatchNextResults)==null?void 0:(T=E.results)==null?void 0:(S=T.results)==null?void 0:S.contents)!=null?O:[]).find(function(q){return!!q.videoPrimaryInfoRenderer}))==null?
void 0:b.videoPrimaryInfoRenderer;
(e=_.vv(Y==null?void 0:Y.title))&&v.JSC$23013_watchApi.dispatchEvent("yt-update-title",e)};_.Pg6=function(v){_.kh.call(this);this.JSC$23016_watchApi=v;RZa(this)};
_.V(_.Pg6,_.kh);var RZa=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$23016_watchApi.playerApi,2);e=E.yieldResult;d=function(){v.onYpcContentRequest()};
e.addEventListener("onYpcContentRequest",d);v.addOnDisposeCallback(function(){e.removeEventListener("onYpcContentRequest",d)});
_.s9(E)})};
_.Pg6.prototype.onYpcContentRequest=function(){var v,e,d,E,T,S=(v=this.JSC$23016_watchApi.getWatchNextResponse())==null?void 0:(e=v.contents)==null?void 0:(d=e.twoColumnWatchNextResults)==null?void 0:(E=d.secondaryResults)==null?void 0:(T=E.secondaryResults)==null?void 0:T.offerModule,O,b,Y,q;v=(q=(Y=(b=(O=S==null?void 0:S.episodeOfferModuleRenderer)!=null?O:S==null?void 0:S.movieOfferModuleRenderer)!=null?b:S==null?void 0:S.unlimitedOfferModuleRenderer)!=null?Y:S==null?void 0:S.liveOfferModuleRenderer)!=
null?q:S==null?void 0:S.tvfilmOfferModuleRenderer;var r,h,K;S=(K=S==null?void 0:(r=S.tvfilmOfferModuleRenderer)==null?void 0:(h=r.actionButtons)==null?void 0:h.length)!=null?K:0;h=Math.max(S-1,0);var k,J,R;r=(R=v==null?void 0:(k=v.offerButton)==null?void 0:k.buttonRenderer)!=null?R:v==null?void 0:(J=v.actionButtons)==null?void 0:J[h].buttonRenderer;var B,X;(k=(X=(B=r==null?void 0:r.navigationEndpoint)!=null?B:r==null?void 0:r.serviceEndpoint)!=null?X:r==null?void 0:r.command)&&_.hg.instance.resolveCommand(k)};
}catch(e){_._DumpException(e)}
try{
var CWi,PWw,f8C;_.RI_=function(){var v=_.f0.clone(tOO),e;return(new _.yf(function(d,E){v.onSuccess=function(T){_.C40(T)?d(new f8C(T)):E(new _.aw("Request failed, status="+_.OI(T),"net.badstatus",T))};
v.onError=function(T){E(new _.aw("Unknown request error","net.unknown",T))};
v.onTimeout=function(T){E(new _.aw("Request timed out","net.timeout",T))};
e=_.y8("//googleads.g.doubleclick.net/pagead/id",v)})).thenCatch(function(d){if(d instanceof _.Cr){var E;
(E=e)==null||E.abort()}return _.f1(d)})};
_.xyC=function(v){a:{var e="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(e="EMBEDDED_PLAYER_MODE_PFL");var d=v.raw_embedded_player_response;if(!d&&(v=v.embedded_player_response))try{d=JSON.parse(v)}catch(T){break a}if(d)b:for(var E in PWw)if(PWw[E]==d.embeddedPlayerMode){e=PWw[E];break b}}return e==="EMBEDDED_PLAYER_MODE_PFL"};
_.Bmv=function(){if(_.N("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("pf");if(!_.y4S())return Error("qf");var v=_.Bb("PLAYER_VARS",{});if(_.f0.get(v,"privembed",!1)=="1")return Error("rf");if(_.xyC(v))return Error("sf")};
CWi=function(v){switch(v){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:_.Z0(v,"unknown result type")}};
_.XYt=function(v,e,d){e=_.mpj[e];d={detected:v===0,source:e.pW3,detectionResult:CWi(v),contentCpn:d};_.tI("biscottiBasedDetection",d);_.qPi.increment(e.pW3,v);e.s69!==void 0&&_.xc("CATSTAT",_.bEt(v,e))};
_.iC=function(v,e){var d={};d.key=v;d.value=e;return _.Qj3().then(function(E){return new Promise(function(T,S){try{var O=E.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(d);O.onsuccess=function(){T()};
O.onerror=function(){S()}}catch(b){S(b)}})})};
_.l89=function(){var v=_.Wi("user_engagement_experiments_rate_limit_ms"),e=zI1.get("last-user-engagement-exp-trigger-timestamp");return!e||(0,_.E$)()>=e+v?(zI1.set("last-user-engagement-exp-trigger-timestamp",(0,_.E$)()),!0):!1};
_.OH=function(v,e,d,E,T){e=e===void 0?null:e;d=d===void 0?null:d;E=E===void 0?null:E;T=T===void 0?null:T;v={youThereEventType:v};d&&(v.lactThresholdMs=d.lactThresholdMs,v.mediaPosSec=d.promptDelaySec,v.lactServerRequestMs=d.lactServerRequestMs,v.triggerReason=d.triggerReason);T!=null&&(v.renderingMediaPosSec=Math.round(T));e||(e=_.zz());e&&(v.clientScreenNonce=e);E&&(v.clientPlaybackNonce=E);_.tI("youThere",v)};
PWw={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"};f8C=function(v){this.xhr=v};
_.aw=function(v,e,d){_.dH.call(this,v+", errorCode="+e);this.errorCode=e;this.xhr=d;this.name="PromiseAjaxError"};
_.V(_.aw,_.dH);var tOO={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var zI1=new _.Xn("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.MO1=function(v){return _.Oo({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:v})};
}catch(e){_._DumpException(e)}
try{
var A2,SI$,aTm,iwV,Owu,ITY,YIB,jHr,sHa,NkV,bw$,Wq6,ram,qIJ,VGa;_.TkJ=function(){var v=window.location.hash;v.charAt(0)==="#"&&(v=v.charAt(1)==="!"?v.substring(2):v.substring(1));return _.Fy(v)};
A2=function(v,e,d){var E;return _.I(function(T){if(T.nextAddress==1)return T.yield(e(),2);E=T.yieldResult;d(E,v);_.s9(T)})};
SI$=function(){return _.I(function(v){return v.nextAddress==1?v.yield((_.Bmv()!==void 0?_.f1(Error("tf")):_.RI_()).then(function(){return 1},function(e){if(e.message==="Biscotti id is disabled")return 3;
_.xf("Failed fetching bid");return 0}),2):v.return(v.yieldResult)})};
aTm=function(){var v=_.Wv("enlmajU0OWh5dC1oYXZlbi1lbWJlZC1wbGF5ZXIjaDk2aQ=="),e=_.Wv("b2N6dmlmcmFtZSNzdG1ucTk2Nw==");return document.querySelector(e+Wq6+v)?0:1};
iwV=function(){return _.UJ7(_.QV)};
Owu=function(){return _.pkM()===0?0:_.v10()};
ITY=function(){return _.SCW(_.jPU([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
YIB=function(){return _.cuL(bw$)};
_.m_r=function(v){_.I(function(e){switch(e.nextAddress){case 1:return e.yield(A2("b.f_",SI$,v),2);case 2:return e.yield(A2("j.s_",_.Au0,v),3);case 3:return e.yield(A2("r.s_",_.zBt,v),4);case 4:return e.yield(A2("e.h_",YIB,v),5);case 5:if(!_.N("ab_det_sc_inj")){e.jumpTo(6);break}return e.yield(A2("s.i_",_.nXU,v),6);case 6:if(_.N("ab_deg_unex_thr")){e.jumpTo(8);break}return e.yield(A2("a.o_",_.gXW,v),8);case 8:if(_.N("ks_get_o_pp")){e.jumpTo(10);break}return e.yield(A2("g.o_",_.QP0,v),10);case 10:if(_.N("ks_det_gpbl")){e.jumpTo(12);
break}return e.yield(A2("p.i_",_.FM0,v),12);case 12:return e.yield(A2("f.i_",_.JuL,v),14);case 14:return e.yield(A2("a.b_",_.CV3,v),15);case 15:return e.yield(A2("p.m_",_.t4$,v),16);case 16:if(!_.N("ab_det_el_h_v2")){e.jumpTo(17);break}return e.yield(A2("n.h_",ITY,v),17);case 17:return e.yield(A2("o.p_",iwV,v),19);case 19:return e.yield(A2("e.i_",aTm,v),20);case 20:if(_.N("ab_det_apm"))return e.yield(A2("o.a_",Owu,v),0);e.jumpTo(0)}})};
_.yak=function(v,e){v={videoId:v};e&&(v.playlistId=e);return v};
_.hhD=function(){if(_.y4S()){var v=_.Bb("PLAYER_VARS",{});if(_.f0.get(v,"privembed",!1)!="1"&&!_.xyC(v)){var e=function(){qIJ=!0;"google_ad_status"in window?_.xc("DCLKSTAT",1):_.xc("DCLKSTAT",2)};
try{_.Ff(_.NL7,e)}catch(d){}ram.push(_.RM.addLowPriorityJob(function(){if(!(qIJ||"google_ad_status"in window)){try{_.Wj3(_.NL7.toString(),e)}catch(d){}qIJ=!0;_.xc("DCLKSTAT",3)}},5E3))}}};
_.ZZ=function(v,e,d){d=d===void 0?!1:d;var E=Math.max(v.width,_.Ff$);if(_.N("kevlar_watch_feed_big_thumbs")&&v.width>=1550-_.Z$()&&v.height>=800)E-=_.U1f;else if(v.width>=_.Bo){var T=_.QCf+_.gsV+_.xV;_.N("kevlar_watch_feed_big_thumbs")&&(T=_.D1Y);E-=T}else E-=_.QCf;E=Math.min(E,_.utm);T=240;d&&(T=380);e<.5624||(!_.N("kevlar_watch_flexy_disable_small_window_sizing")&&(v.height<630&&v.width>=657||v.height>=630&&v.width>=_.Bo&&v.width<1327)?T=360:!_.N("kevlar_watch_flexy_disable_large_window_sizing")&&
v.height>=630&&v.width>=1327&&(T=480));var S=Math.min(E*e,v.height-(56+_.wO$+_.nsD));S=Math.max(S,T);e<1?E=S/e:v.width>=_.Bo&&(E=_.ZZ(v,.5625,d).width);return new _.$x(Math.round(E),Math.round(S))};
_.Kqu=function(v){var e=0;v.indexOf("h")!=-1&&(v=v.split("h"),e=v[0]*60*60,v=v[1]);v.indexOf("m")!=-1&&(v=v.split("m"),e=v[0]*60+e,v=v[1]);v.indexOf("s")!=-1?(v=v.split("s"),e=v[0]*1+e):e=v*1+e;return e};
_.$_T=function(){_.Wi("service_worker_push_logged_out_prompt_watches")!=-1&&_.YD("WatchCount").then(function(v){v>=100||_.iC("WatchCount",v+1)})};
jHr=function(v){var e=v.externalVideoId||"";return e?v.isShortsEligible?"https://www.youtube.com/shorts/"+e:"https://www.youtube.com/watch?v="+e:""};
sHa=function(v){var e=[];v.viewCount&&e.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:v.viewCount});v.likeCount&&e.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:v.likeCount});return e};
NkV=function(v){var e,d,E={"@context":"https://schema.org","@type":"VideoObject",description:_.vv(v.description),duration:"PT"+(v.lengthSeconds||"0")+"S",embedUrl:v.embed?v.embed.iframeUrl:"",name:_.vv(v.title),thumbnailUrl:((e=v.thumbnail)==null?void 0:(d=e.thumbnails)==null?void 0:d.map(function(r){return r&&r.url||""}))||[],
uploadDate:v.publishDate};_.N("mweb_video_schema_id_killswitch")||(E["@id"]=jHr(v));e=sHa(v);e.length&&(E.interactionStatistic=e);v.category&&(E.genre=v.category);v.ownerChannelName&&(E.author=v.ownerChannelName);v.liveBroadcastDetails&&(E.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:v.liveBroadcastDetails.startTimestamp,endDate:v.liveBroadcastDetails.endTimestamp}]);if(v.learningResource){v=v.learningResource;E["@type"]=["VideoObject","LearningResource"];var T;if((T=v.learningResourceType)==
null?0:T.length)E.learningResourceType=v.learningResourceType[0];var S;if((S=v.educationalAlignment)==null?0:S.length)E.educationalAlignment={"@type":"AlignmentObject",targetName:v.educationalAlignment[0]};var O;if((O=v.educationalLevel)==null?0:O.length){T=v.educationalLevel[0];var b;if((b=v.educationalLevelCountry)==null?0:b.length)T+=" ("+v.educationalLevelCountry+")";E.educationalLevel=T}var Y,q;if(((Y=v.learningResourceType)==null?0:Y.length)&&v.learningResourceType[0]==="Problem walkthrough"&&
((q=v.problemDescriptions)==null?0:q.length))for(E.hasPart=[],b=_.a(v.problemDescriptions),Y=b.next();!Y.done;Y=b.next())T=Y.value,Y=T.problemDescriptionText,q=T.startOffset,T=T.url,Y&&q!==void 0&&T&&E.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:Y,text:Y,startOffset:q,url:T})}return E};
_.kRV=function(v){return _.Oo({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:v}})};
bw$=[[["eGhwcmltYXJ5I2VuYjQwZnFrd3U=",null,null],[null,["b2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjc2pvMDJ1Y3JoOWN4eXRkLXR3by1j","c2NvcGUjamlnaGduOTczZnZoc3R5bGUt"],null],["YWQtYWQjNWVldmY5a3loZDJ6bWFzdGhl",["aGw4bmFmbnl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjMnk4bWE="],null],[null,["emRnbGk3a3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjNDZod2I=","c2NvcGUjbTY2NHlsMmIxeDdzc3R5bGUt"],null],[null,["Nmx6Ynl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjbWIwbDc2emc=","c2NvcGUjZjRibHU2aHRlcnZmc3R5bGUt"],null],[null,["NW1jYnJicTQ5eXRkLWFkLXNsb3QtcmVuZGVyZXIjbXpy"],
null]],[["ZXItYWRzI3JqNXVtaWxoYzRnMnBsYXk=",null,null]],[["ZG80MHg3b25la245ZGVzY3JpcHRpb24taW5uZXIj",null,null],[null,null,"bjFkcTN5dGQtbWVyY2gtc2hlbGYtcmVuZGVyZXIjZDF4ancwdQ=="],["dXE4bWdvYzdtYWluI2QxZnA=",["b2pudTR5dGQtbWVyY2gtc2hlbGYtcmVuZGVyZXIjeHd3ZG0yNQ=="],null]]];Wq6="#";ram=[];qIJ=!1;_.Lq$=["engagement-panel-ads"];VGa=new _.gG("updateSentimentBarStateCommand");_.oL$=new _.gG("showSurveyCommand");_.cd=new _.gG("changeMarkersVisibilityCommand");var GR$,MGV,PYm,RhT,fTY,wL;_.Jar=function(v,e){this.playerProvider_=v;this.actionSenderElement_=e;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Jar.prototype.reset=function(){GR$(this);this.isUserPredictedAbsent_=!1};
GR$=function(v,e){!v.youThereData_||v.showWarningJob_||e!==void 0&&e||(_.OH("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.zz(),v.youThereData_,v.clientPlaybackNonce_),_.fI());_.RM.cancelJob(v.showWarningJob_);v.showWarningJob_=0;_.RM.cancelJob(v.showBlockingWarningJob_);v.showBlockingWarningJob_=0;_.RM.cancelJob(v.pausePlaybackJob_);v.pausePlaybackJob_=0;v.youThereData_=null;v.clientPlaybackNonce_=void 0;v.inYouThereFlow_=!1};
_.tGY=function(v,e){var d,E,T;_.I(function(S){if(S.nextAddress==1)return v.reset(),S.yield(v.playerProvider_().getPlayerPromise(),2);d=S.yieldResult;v.clientPlaybackNonce_=d.getVideoData().cpn;v.youThereData_=e.configData.youThereData;if(!v.youThereData_)return S.return();if(v.youThereData_.triggerReason&&v.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.l89())return _.OH("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.zz(),v.youThereData_,v.clientPlaybackNonce_),S.return();E=v.youThereData_.promptDelaySec;
T=d.getCurrentTime();v.showWarningJob_=_.RM.addLowPriorityJob(function(){return _.I(function(O){v.showWarningJob_=0;return O.yield(MGV(v),0)})},Math.max(E-T,0)*1E3);
_.s9(S)})};
MGV=function(v){var e,d,E,T,S,O;return _.I(function(b){if(b.nextAddress==1)return b.yield(v.playerProvider_().getPlayerPromise(),2);if(b.nextAddress!=3)return e=b.yieldResult,d=e.getCurrentTime(),b.yield(fTY(v),3);E=b.yieldResult;if(!E||!v.youThereData_)return b.return();if(_.N("check_user_lact_at_prompt_shown_time_on_web")&&(T=parseInt(v.youThereData_.lactThresholdMs,10),_.TN()<T))return _.OH("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.zz(),v.youThereData_,v.clientPlaybackNonce_),b.return();if(v.youThereData_.playbackPauseDelayMs<=
0)return RhT(v),b.return();!_.N("external_fullscreen")&&(S=_.SX())&&(v.ignoreFullscreenExitUserActivity_=!0,_.RM.addLowPriorityJob(function(){v.ignoreFullscreenExitUserActivity_=!1},2E3),_.WF(S));
v.youThereData_.showToastWarningPrompt&&(wL(v,v.youThereData_.showWarningActions),v.inYouThereFlow_=!0,_.OH("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.zz(),v.youThereData_,v.clientPlaybackNonce_,d),_.OH("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.zz(),v.youThereData_,v.clientPlaybackNonce_,d));O=0;v.youThereData_.blockingPromptDelayMs&&(O=v.youThereData_.blockingPromptDelayMs);v.showBlockingWarningJob_=_.RM.addLowPriorityJob(function(){return _.I(function(Y){v.showBlockingWarningJob_=0;return Y.yield(PYm(v),
0)})},O);
_.s9(b)})};
PYm=function(v){var e,d,E;return _.I(function(T){if(T.nextAddress==1)return T.yield(fTY(v),2);e=T.yieldResult;if(!v.youThereData_)return T.return();e&&(v.youThereData_.showBlockingWarningAction&&(_.OH("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.zz(),v.youThereData_,v.clientPlaybackNonce_),(d=_.L(v.youThereData_.showBlockingWarningAction,_.rV))?wL(v,d.commands):wL(v,[v.youThereData_.showBlockingWarningAction]),v.inYouThereFlow_=!0),E=v.youThereData_.playbackPauseDelayMs,v.pausePlaybackJob_=
_.RM.addLowPriorityJob(function(){return _.I(function(S){v.pausePlaybackJob_=0;return S.yield(RhT(v),0)})},E));
_.s9(T)})};
RhT=function(v){var e;return _.I(function(d){if(d.nextAddress==1)return d.yield(fTY(v),2);e=d.yieldResult;if(!v.youThereData_)return d.return();e&&(_.OH("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.zz(),v.youThereData_,v.clientPlaybackNonce_),wL(v,v.youThereData_.showPausedActions),v.inYouThereFlow_=!0);_.s9(d)})};
_.Jar.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var v=_.L(this.youThereData_.userActiveDuringFlowAction,_.rV);v?wL(this,v.commands):wL(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.OH("YOU_THERE_EVENT_TYPE_LACT_RESET",_.zz(),this.youThereData_,this.clientPlaybackNonce_),_.fI());GR$(this,!0)}_.x_$(this,!1)};
_.BkJ=function(v){_.OH("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.zz(),v.youThereData_,v.clientPlaybackNonce_)};
fTY=function(v){var e,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(v.playerProvider_().getPlayerPromise(),2);e=E.yieldResult;d=e.getPlayerState();return E.return(d==-1||d==1||d==3)})};
_.x_$=function(v,e){var d;_.I(function(E){if(E.nextAddress==1){if(v.isUserPredictedAbsent_==e)return E.jumpTo(0);v.isUserPredictedAbsent_=e;return E.yield(v.playerProvider_().getPlayerPromise(),3)}d=E.yieldResult;d.setUserEngagement(e);e&&_.OH("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.zz(),v.youThereData_,v.clientPlaybackNonce_);_.s9(E)})};
wL=function(v,e){if(_.N("handle_service_request_actions")||_.N("kevlar_youthere_service_endpoint_actions_killswitch"))_.ya(v.actionSenderElement_,e,v.actionSenderElement_);else{e=_.a(e);for(var d=e.next();!d.done;d=e.next())d=d.value,d.commandMetadata&&d.commandMetadata.webCommandMetadata&&d.commandMetadata.webCommandMetadata.sendPost?_.mN(v.actionSenderElement_,[d]):_.ya(v.actionSenderElement_,[d],v.actionSenderElement_)}};var CYr;var Xir;var Fu=function(){var v=_.P.apply(this,arguments)||this;v.systemIcons=_.N("kevlar_system_icons");v.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return v};
_.V(Fu,_.P);Fu.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var v=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(v=this.data.percentIfLiked||0,this.activated=!0):(v=this.data.percentIfIndifferent||0,this.activated=!1);_.IB(this.hostElement).querySelector("#like-bar").style.width=v+"%"}};
Fu.prototype.handleUpdateSentimentBarStateCommand=function(v){this.data&&this.set("data.likeStatus",_.L(v,VGa).likeStatus)};
Fu.prototype.observeLikeStatus=Fu.prototype.observeLikeStatus;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Fu.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Fu.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Fu.prototype,"activated",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Fu.prototype,"systemIcons",void 0);_.c([_.$v("data.likeStatus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fu.prototype,"observeLikeStatus",null);_.c([_.z({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Fu);
_.A(Fu,"ytd-sentiment-bar-renderer",function(){if(Xir!==void 0)return Xir;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Xir=v},{mode:1});var zhr;var Q5=function(){var v=_.P.apply(this,arguments)||this;v.small=!0;return v};
_.V(Q5,_.P);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Q5.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Q5.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Q5.prototype,"small",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Q5);
_.A(Q5,"ytd-video-view-count-renderer",function(){if(zhr!==void 0)return zhr;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return zhr=v},{mode:_.bk("kevlar_poly_si_batch_j080")?1:2});var gL=function(){var v=_.P.apply(this,arguments)||this;v.infoFormattedStrings=[];v.wrapVideoActions=_.N("kevar_watch_wrap_video_actions");v.hideSentimentBar=_.N("kevlar_watch_hide_sentiment_bar");v.actionMap={};return v};
_.V(gL,_.P);_.W=gL.prototype;_.W.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.N("web_modern_buttons"),forceIconButton:!_.N("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.W.dataChanged=function(){_.N("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.W.computeInfoFormattedStrings=function(v){if(!v)return[];var e=[];v.dateText&&e.push(v.dateText);v.stationName&&e.push(v.stationName);v.rating&&e.push(v.rating);v.startEndTimeTemplate&&v.startTimeUtcMillis&&v.endTimeUtcMillis&&e.push(_.pQ(_.Y6m(_.vv(v.startEndTimeTemplate),Number(v.startTimeUtcMillis),Number(v.endTimeUtcMillis))));v.upNextProgramText&&e.push(v.upNextProgramText);return e};
_.W.scheduleInitialUpdatedMetadataRequest=function(){var v,e=(v=this.data)==null?void 0:v.updatedMetadataEndpoint;if(e){var d;v=Number((d=_.L(e,_.ISI))==null?void 0:d.initialDelayMs);d=isNaN(v)?250:v;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),d)}};
_.W.setSentimentBarWidth=function(){var v=this;_.Uh(this,function(){var e=_.IB(v.hostElement).querySelector("ytd-menu-renderer");if(e){e=e.topLevelButtons;for(var d=0,E=0;E<e.length;E++){var T=e[E],S=v.get("toggleButtonSupportedData.toggleButtonIdData.id",T.data);if(S==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||S==="TOGGLE_BUTTON_ID_TYPE_LIKE")d+=T.clientWidth+8;else break}d&&(v.sentiment.style.width=d-8+" px")}})};
_.W.fetchUpdatedMetadata=function(v){var e;v&&(e={continuation:v});var d;(v=(d=this.data)==null?void 0:d.updatedMetadataEndpoint)&&_.dk().resolve(_.EI).resolveCommand(v,{form:Object.assign({},e,{element:this.hostElement})})};
_.W.onYtServiceRequestSent=function(v,e){e.endpoint&&_.L(e.endpoint,_.Bj)&&(this.hasUpdateSentimentBarStateCommands()&&!_.N("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.L(e.endpoint,_.Bj).status),this.setSentimentBarWidth())};
_.W.hasUpdateSentimentBarStateCommands=function(){var v,e,d,E,T=(E=(v=this.data)==null?void 0:(e=v.videoActions)==null?void 0:(d=e.menuRenderer)==null?void 0:d.topLevelButtons)!=null?E:[];v=_.a(T);for(e=v.next();!e.done;e=v.next()){e=e.value;T=E=d=void 0;var S=(d=e.toggleButtonRenderer)==null?void 0:(E=d.toggleButtonSupportedData)==null?void 0:(T=E.toggleButtonIdData)==null?void 0:T.id;if(S==="TOGGLE_BUTTON_ID_TYPE_LIKE"||S==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){E=d=void 0;e=(E=_.L((d=e.toggleButtonRenderer)==
null?void 0:d.defaultServiceEndpoint,_.rV))==null?void 0:E.commands;if(!e)break;e=_.a(e);for(d=e.next();!d.done;d=e.next())if(_.L(d.value,VGa))return!0}}return!1};
_.W.onYtServiceRequestCompleted=function(v,e){var d;(v=(d=e.data)==null?void 0:d.loggingDirectives)&&_.tSS(_.NC(),v);this.get("continuation.timedContinuationData",e.data)&&this.data&&this.data.updatedMetadataEndpoint&&(e=e.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,e.continuation),e.timeoutMs))};
_.W.computeHasDateText=function(v){return!!v&&!!v.dateText};
_.vP.Object.defineProperties(gL.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E;return!((E=(v=this.data)==null?void 0:(e=v.videoActions)==null?void 0:(d=e.menuRenderer)==null?void 0:d.flexibleItems)==null||!E.length)}}});
gL.prototype.onYtServiceRequestCompleted=gL.prototype.onYtServiceRequestCompleted;gL.prototype.onYtServiceRequestSent=gL.prototype.onYtServiceRequestSent;gL.prototype.dataChanged=gL.prototype.dataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],gL.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Ee.YtTaskEmitterBehavior),_.w("design:type",Object)],gL.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],gL.prototype,"data",void 0);_.c([_.f({computed:"computeInfoFormattedStrings(data)"}),_.w("design:type",Array)],gL.prototype,"infoFormattedStrings",void 0);
_.c([_.f({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],gL.prototype,"hasDateText",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],gL.prototype,"wrapVideoActions",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],gL.prototype,"hideSentimentBar",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gL.prototype,"flexMenuEnabled",null);
_.c([_.sg("#sentiment"),_.w("design:type",Object)],gL.prototype,"sentiment",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gL.prototype,"dataChanged",null);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],gL.prototype,"onYtServiceRequestSent",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],gL.prototype,"onYtServiceRequestCompleted",null);
_.A(gL,"ytd-video-primary-info-renderer",function(){if(CYr===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);CYr=v}v=CYr;return v},{mode:1});var lTk;var uG=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return v};
_.V(uG,_.P);_.W=uG.prototype;_.W.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"}}}};
_.W.dataChanged=function(){var v;this.descriptionToggled=!((v=this.data)==null||!v.defaultExpanded);var e;this.collapsed=this.descriptionAlwaysCollapsed||!((e=this.data)==null?0:e.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.bH(110509);this.showLessClientVe=_.bH(110510);v=_.zz();e=_.Xf();v&&e&&_.gV(v,e,[this.showMoreClientVe,this.showLessClientVe])};
_.W.onYtExpanderMoreTapped=function(){var v,e=(v=this.data)==null?void 0:v.showMoreCommand;e&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(e);(v=_.zz())&&this.showMoreClientVe&&_.Uz(v,this.showMoreClientVe)};
_.W.onYtExpanderLessTapped=function(){var v=_.zz();v&&this.showLessClientVe&&_.Uz(v,this.showLessClientVe);var e;(v=(e=this.data)==null?void 0:e.showLessCommand)&&this.componentBehavior.resolveCommand(v)};
_.W.handleUpdateDateTextAction=function(v){this.data&&this.data.dateText&&this.set("data.dateText",_.L(v,_.z_Y).dateText)};
_.W.handleUpdateDescriptionAction=function(v){if(v=_.L(v,_.iRc))v.isEmpty||!v.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Bz(v.description)):this.set("data.description",v.description)};
_.W.onYtChangeEngagementPanelVisibilityAction=function(v){if(_.N("web_structured_description_show_more")||_.N("web_engagement_panel_open_description")){var e,d=(e=_.L(v,_.lHJ))==null?void 0:e.targetId,E;v=((E=_.L(v,_.lHJ))==null?void 0:E.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";d==="engagement-panel-structured-description"&&v&&(this.descriptionToggled=!0)}};
_.W.updateCollapsedFromBinding=function(v){this.collapsed=v.detail.value};
_.W.updateDescriptionToggledFromBinding=function(v){this.descriptionToggled=v.detail.value};
_.W.updateCanCollapseFromBinding=function(v){this.canCollapse=v.detail.value};
_.vP.Object.defineProperties(uG.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(v=this.data)==null?void 0:(e=v.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer;return!!d&&!!d.rows&&d.rows.length>d.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.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}}});
uG.prototype.onYtExpanderLessTapped=uG.prototype.onYtExpanderLessTapped;uG.prototype.onYtExpanderMoreTapped=uG.prototype.onYtExpanderMoreTapped;uG.prototype.dataChanged=uG.prototype.dataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],uG.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],uG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],uG.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],uG.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],uG.prototype,"collapsed",void 0);_.c([_.f(),_.w("design:type",Boolean)],uG.prototype,"descriptionToggled",void 0);
_.c([_.f(),_.w("design:type",Boolean)],uG.prototype,"canCollapse",void 0);_.c([_.f(),_.w("design:type",Object)],uG.prototype,"subscribeButtonData",void 0);_.c([_.f(),_.w("design:type",Number)],uG.prototype,"descriptionCollapsedHeight",void 0);_.c([_.f(),_.w("design:type",Object)],uG.prototype,"structuredDescriptionContentRenderer",void 0);_.c([_.f({value:function(){return _.N("web_watch_description_always_collapsed")}}),
_.w("design:type",Boolean)],uG.prototype,"descriptionAlwaysCollapsed",void 0);_.c([_.sg("#description"),_.w("design:type",HTMLDivElement)],uG.prototype,"description",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uG.prototype,"dataChanged",null);_.c([_.Kq("yt-expander-more-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uG.prototype,"onYtExpanderMoreTapped",null);
_.c([_.Kq("yt-expander-less-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uG.prototype,"onYtExpanderLessTapped",null);_.c([_.t("data.metadataRowContainer"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uG.prototype,"metadataCollapsible",null);_.c([_.t("data","structuredDescriptionContentRenderer"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uG.prototype,"hasInlineStructuredDescription",null);
_.c([_.t("data.attributedDescription"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uG.prototype,"hasAttributedDescription",null);_.c([_.t("hasInlineStructuredDescription","collapsed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uG.prototype,"loadStructuredDescription",null);_.c([_.t("data","structuredDescriptionContentRenderer","collapsed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uG.prototype,"showInlineStructuredDescription",null);
_.c([_.t("data","hasInlineStructuredDescription","metadataCollapsible"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uG.prototype,"descriptionAlwaysCollapsible",null);
_.A(uG,"ytd-video-secondary-info-renderer",function(){if(lTk===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);lTk=v}v=lTk;return v},{mode:2});var HwD;var nJ=function(){return _.P.apply(this,arguments)||this};
_.V(nJ,_.P);nJ.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:_.N("web_modern_buttons"),forceIconButton:!_.N("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
nJ.prototype.activate=function(v){v.appendTo(this.player);v.getPlayerPromise().then(function(e){e.setMinimized(!0)});
this.active=!0};
nJ.prototype.deactivate=function(){var v=this.player.firstElementChild;v.getPlayerPromise().then(function(e){e.setMinimized(!1)});
this.active=!1;return v};
nJ.prototype.onScrollUpTap=function(){var v=_.dk().resolve(_.v5).getCurrentPage();v&&v.setScrollTop(0)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],nJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],nJ.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],nJ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],nJ.prototype,"active",void 0);
_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.w("design:type",Boolean)],nJ.prototype,"darkLaunch",void 0);_.c([_.sg("#player"),_.w("design:type",HTMLDivElement)],nJ.prototype,"player",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],nJ);
_.A(nJ,"ytd-miniplayer-bar-renderer",function(){if(HwD!==void 0)return HwD;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return HwD=v},{mode:1});_.aZ(_.l(function(v){var e=_.nI("script");_.o_(function(){var d;if(d=JSON)d=NkV(v.data()),d=_.u6(JSON.stringify(d).replace(/</g,"\\u003C"));var E=v.data(),T=_.vv(E.title).trim().length===0,S=!E.publishDate||E.publishDate.trim().length===0,O,b,Y,q,r=!((O=E.thumbnail)==null?0:(b=O.thumbnails)==null?0:b.length)||!((Y=E.thumbnail)==null?0:Y.thumbnails[0].url)||((q=E.thumbnail)==null?void 0:q.thumbnails[0].url.trim().length)===0;e.value&&d&&!(T||S||r)&&_.nY(e.value,d)},"I9AhLd");
return _.m("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.m("script",{el:e,type:"application/ld+json"}))},"bl"),"player-microformat-renderer",{props:{data:_.SM}});
}catch(e){_._DumpException(e)}
try{
var BZa,Xba;_.x9k=function(v){return v.watch.watchWindowSize};
BZa=function(v,e,d,E){if(v.isLockupToWatchTransitionEnabled){if(e){var T={};v.viewTransitionCoordinator.registerElement(e,(T["lockup-to-watch"]="player-lockup-to-watch",T["watch-next-appears"]="player-watch-next-loaded",T))}d&&(e={},v.viewTransitionCoordinator.registerElement(d,(e["lockup-to-watch"]="below-lockup-to-watch",e["watch-next-appears"]="below-watch-next-loaded",e)));E&&(d={},v.viewTransitionCoordinator.registerElement(E,(d["watch-next-appears"]="secondary-watch-next-loaded",d)))}};
_.CgY=function(v){return _.Oo({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:v}})};
Xba=new _.gG("webWatchNextResponseExtensionData");var lVJ=function(v){_.kh.call(this);var e=this;this.JSC$23020_watchApi=v;var d=this.JSC$23020_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zZk(e)});
this.addOnDisposeCallback(function(){e.JSC$23020_watchApi.unsubscribeByKey(d)});
zZk(this)};
_.V(lVJ,_.kh);var zZk=function(v){var e,d,E,T;_.I(function(S){if(S.nextAddress==1){e=v.JSC$23020_watchApi.getWatchNextResponse();if(!e)return S.return();d=_.L(e,Xba);return(E=d)!=null&&E.enableCreatorChatbot?S.yield((0,_.MB0)("NSzT5"),3):S.jumpTo(0)}T=_.Dyi;T();_.s9(S)})};var AEf=function(v){_.kh.call(this);this.JSC$23024_watchApi=v;H4Y(this)};
_.V(AEf,_.kh);var H4Y=function(v){_.I(function(e){if(e.nextAddress==1)return e.yield(Z46(v),2);cEu(v);_.s9(e)})},Z46=function(v){var e,d,E,T;
return _.I(function(S){if(S.nextAddress==1)return S.yield(v.JSC$23024_watchApi.playerApi,2);e=S.yieldResult;v.JSC$23024_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){wbV(v)});
d=v.JSC$23024_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cEu(v)});
E=function(O){v.onCueRangeEnter(O)};
e.addEventListener("onCueRangeEnter",E);T=function(O){v.onCueRangeExit(O)};
e.addEventListener("onCueRangeExit",T);v.addOnDisposeCallback(function(){v.JSC$23024_watchApi.unsubscribeByKey(d);e.removeEventListener("onCueRangeEnter",E);e.removeEventListener("onCueRangeExit",T)});
_.s9(S)})},FE$=function(v){var e,d,E,T,S,O,b,Y,q;
return(S=(e=v.contents)==null?void 0:(d=e.twoColumnWatchNextResults)==null?void 0:(E=d.results)==null?void 0:(T=E.results)==null?void 0:T.contents)==null?void 0:(O=S.find(function(r){var h,K,k;return(h=r.itemSectionRenderer)==null?void 0:(K=h.contents)==null?void 0:(k=K[0])==null?void 0:k.shoppingTimelyShelfViewModel}))==null?void 0:(b=O.itemSectionRenderer)==null?void 0:(Y=b.contents)==null?void 0:(q=Y[0])==null?void 0:q.shoppingTimelyShelfViewModel},cEu=function(v){var e;
_.I(function(d){if(d.nextAddress==1)return(e=v.JSC$23024_watchApi.getWatchNextResponse())?d.yield(wbV(v),2):d.return();v.shoppingTimelyShelfViewModel=FE$(e);QsV(v);gcY(v);_.s9(d)})},QsV=function(v){var e,d=(e=v.shoppingTimelyShelfViewModel)==null?void 0:e.offerIdToVariants;
d&&(e=d.filter(function(E){return E.key&&E.value}).map(function(E){return[E.key,
E.value]}),v.variantsMap=new Map(e))},gcY=function(v){var e,d,E,T,S,O;
_.I(function(b){if(b.nextAddress==1)return(d=(e=v.shoppingTimelyShelfViewModel)==null?void 0:e.cueRanges)?b.yield(v.JSC$23024_watchApi.playerApi,2):b.return();E=b.yieldResult;v.cueRanges=d;T=_.a(d);for(S=T.next();!S.done;S=T.next())O=S.value,O.startTime!==void 0&&O.endTime!==void 0&&O.id!==void 0&&E.addCueRange("shopping_timely_shelf"+O.id,uyf(O.startTime),uyf(O.endTime));_.s9(b)})},uyf=function(v){return Number(v.seconds||0)+(v.nanos||0)/1E9};
AEf.prototype.onCueRangeEnter=function(v){if(v.startsWith("shopping_timely_shelf")){var e=v.substring(21),d,E;v=(d=this.variantsMap)==null?void 0:(E=d.get(e))==null?void 0:E.shelf;if(_.N("web_enable_shopping_timely_shelf_client_overwrite")){var T,S,O,b,Y;d=v==null?void 0:(T=v.shoppingTimelyShelfContentViewModel)==null?void 0:(S=T.button)==null?void 0:(O=S[1])==null?void 0:(b=O.buttonViewModel)==null?void 0:(Y=b.onTap)==null?void 0:Y.innertubeCommand;var q,r;if(d==null?0:(q=d.menuEndpoint)==null?0:
(r=q.menu)==null?0:r.menuRenderer)d.openPopupAction=d.menuEndpoint,d.openPopupAction.popup=d.openPopupAction.menu,d.openPopupAction.popup.menuPopupRenderer=d.openPopupAction.popup.menuRenderer,d.openPopupAction.popupType="DROPDOWN",delete d.menuEndpoint,delete d.openPopupAction.menu,delete d.openPopupAction.popup.menuRenderer}v&&this.JSC$23024_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",v)}};
AEf.prototype.onCueRangeExit=function(v){v.startsWith("shopping_timely_shelf")&&this.JSC$23024_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var wbV=function(v){var e,d,E,T,S;return _.I(function(O){if(O.nextAddress==1)return O.yield(v.JSC$23024_watchApi.playerApi,2);e=O.yieldResult;if(v.cueRanges)for(d=_.a(v.cueRanges),E=d.next();!E.done;E=d.next())T=E.value,T.id&&(S="shopping_timely_shelf"+T.id,e.removeCueRange(S));v.JSC$23024_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});v.shoppingTimelyShelfViewModel=void 0;v.cueRanges=void 0;v.variantsMap=void 0;_.s9(O)})};var vLV=function(v){_.kh.call(this);var e=this;this.JSC$23031_watchApi=v;v=_.ji(_.d1(),_.KGt,function(){nck(e)});
this.addOnDisposeCallback(v);v=_.ji(_.d1(),_.x9k,function(){nck(e)});
this.addOnDisposeCallback(v);D9J(this);U9V(this);pbT()};
_.V(vLV,_.kh);var D9J=function(v){var e=function(E){_.d1().dispatch(_.T9J(E.matches))},d=window.matchMedia("(max-width: "+(999+_.Z$())+"px)");
d.addListener(e);v.addOnDisposeCallback(function(){d.removeListener(e)});
e(d)},U9V=function(v){v.JSC$23031_watchApi.registerActionHandler("yt-window-resized",function(){pbT()});
v.addOnDisposeCallback(function(){v.JSC$23031_watchApi.unregisterActionHandler("yt-window-resized")})},pbT=function(){var v=_.Jk();
_.d1().dispatch(_.Oo({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:v.width,height:v.height}}}))},nck=function(v){var e;
_.I(function(d){if(d.nextAddress==1)return d.yield(v.JSC$23031_watchApi.playerApi,2);e=d.yieldResult;e.setSize(NaN,NaN);_.s9(d)})};var ehf=function(v){_.kh.call(this);var e=_.dk().resolve(_.j_);BZa(e,v.getElement("PLAYER_CONTAINER"),v.getElement("BELOW_THE_PLAYER"),v.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var d=v.getElement("PLAYER_CONTAINER"),E=v.getElement("BELOW_THE_PLAYER"),T=v.getElement("SECONDARY");e.isLockupToWatchTransitionEnabled&&(d&&_.zn(e.viewTransitionCoordinator,d),E&&_.zn(e.viewTransitionCoordinator,E),T&&_.zn(e.viewTransitionCoordinator,T))})};
_.V(ehf,_.kh);_.zh=function(v){_.bC.call(this);var e=this;this.rootElement=v;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return e.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(d){e.initOrDisposeActiveModules(d)}));
this.onAttached()};
_.V(_.zh,_.bC);_.W=_.zh.prototype;_.W.getRoot=function(){return this.rootElement};
_.W.getElement=function(v){return this.rootElement.getElement(v)};
_.W.setPlayerResponse=function(v){this.playerResponse=v;this.publish("PLAYER_RESPONSE_UPDATED",v)};
_.W.getPlayerResponse=function(){return this.playerResponse};
_.W.setWatchNextResponse=function(v){this.watchNextResponse===v?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=v,this.publish("WATCH_NEXT_RESPONSE_UPDATED",v))};
_.W.getWatchNextResponse=function(){return this.watchNextResponse};
_.W.registerActionHandler=function(v,e){var d=this;if(_.N("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.Qf(_.FT.getInstance(),(E[v]=e,E),this.getRoot())}else this.actionHandlers.has(v)||(this.actionHandlers.set(v,[]),E={},_.Qf(_.FT.getInstance(),(E[v]=function(){var T=_.Xa.apply(0,arguments);return(d.actionHandlers.get(v)||[]).map(function(S){return S.apply(null,_.t7(T))})},E),this.getRoot())),this.actionHandlers.get(v).push(e)};
_.W.unregisterActionHandler=function(v){if(_.N("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.gb(_.FT.getInstance(),(e[v]=!0,e),this.getRoot())}else(e=this.actionHandlers.get(v))?(e.pop(),e.length===0&&(e={},_.gb(_.FT.getInstance(),(e[v]=!0,e),this.getRoot()),this.actionHandlers.delete(v))):_.xf(new _.kL("Attempted to unregister an action handler which is not registered.",v))};
_.W.addPageDisposeJob=function(v){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.NHU(this.rootElement.pageDisposeJobs,v)};
_.W.removePageDisposeJob=function(v){this.rootElement.pageDisposeJobs&&_.H3(this.rootElement.pageDisposeJobs,v)};
_.W.dispatchEvent=function(v,e){_.Iq(this.rootElement,v,e)};
_.W.provideRenderingData=function(v,e){this.rootElement.provideRenderingData(v,e)};
_.W.scrollWatchTo=function(v,e){var d;(d=this.watchScrollManager)==null||d.scrollWatchTo(v,e)};
_.W.focusOnPlayer=function(){var v=this.getElement("PLAYER");_.Uh(v,function(){if(v&&v.firstElementChild){var e=v.querySelector(".html5-video-player");e&&(_.Sq(_.dk().resolve(_.oZ)),e.focus())}else _.xf(Error("No"))})};
_.W.updateCinematicFullscreenConfig=function(){if(_.N("web_cinematic_manager_redux_killswitch")){var v=!!this.rootElement.theater,e=!!this.rootElement.fullscreen,d;(d=this.watchCinematicManager)==null||_.fJ(d,e,v)}};
_.W.subscribeToActiveChanged=function(v,e){e=e===void 0?!0:e;var d=_.ji(_.d1(),_.a0J,function(E){v(E)});
e&&v(_.a0J(_.d1().getState()));return d};
_.W.isActive=function(){return _.a0J(_.d1().getState())};
_.W.onAttached=function(){var v=_.N("external_fullscreen");_.N("use_unified_flag_accessor")&&(v=_.dk().resolve(_.fBs).retriever.getFlag(_.UuJ));(v||_.zr("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var d_T=function(v){return v.getRoot().is==="ytd-watch-flexy"||v.getRoot().is==="ytd-watch-grid"},lG=function(v){return v.getRoot().is==="ytd-watch-fixie"};
_.zh.prototype.initPersistentModules=function(){if(lG(this)||d_T(this)&&_.N("kevlar_watch_flexy_theater_manager")){var v=new _.OD6(this);_.Yh(this,v)}v=new _.gGu(this);_.Yh(this,v);v=new _.J2(this);_.Yh(this,v);v=new _.Bd(this);_.Yh(this,v);v=new _.NZr(this);_.Yh(this,v);v=new _.Ma(this);_.Yh(this,v);if(lG(this)||d_T(this)&&_.N("kevlar_watch_flexy_playlist_manager"))v=new _.VIk(this),_.Yh(this,v);_.N("web_thumbnail_to_watch_transition")&&(v=new ehf(this),_.Yh(this,v))};
_.zh.prototype.initOrDisposeActiveModules=function(v){v?(this.watchScrollManager=new _.Xu(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.i4m(this)),_.N("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new AEf(this)),this.activeModules.push(new _.mu$(this)),lG(this)&&this.activeModules.push(new vLV(this)),this.activeModules.push(new _.fVT(this)),this.activeModules.push(new _.CJ(this)),(lG(this)||_.N("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.hHV(this)),this.activeModules.push(new _.yEm(this)),(lG(this)||_.N("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Pg6(this)),(lG(this)||_.N("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.VxD(this)),_.N("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.txk(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.N("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.KEa(this)),
_.N("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Fsa(this)),v=_.N("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.N("kevlar_watch_flexy_comments_manager")&&!v&&this.activeModules.push(new _.HDa(this)),_.N("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Gh(this)),this.activeModules.push(new _.hdB(this)),this.activeModules.push(new _.IVJ(this)),_.N("web_enable_timely_actions")&&this.activeModules.push(new _.s_m(this)),
_.N("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.cz6(this)),_.N("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.xuf(this)),_.N("web_fullscreen_components")&&this.activeModules.push(new _.su$(this)),_.N("web_player_rtr_ctrls")&&this.activeModules.push(new _.Fik(this)),_.N("enable_creator_chatbot")&&this.activeModules.push(new lVJ(this))):(_.vw(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.zh.prototype.disposeInternal=function(){_.bC.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.vP.Object.defineProperties(_.zh.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var SOs,tK,Wl9,aNO,Oh9,INf,ihC,bhw;SOs=function(){var v=_.oq();v.info||(v.info={});return v.info};
tK=function(v){return Math.round(_.tU()+v)};
Wl9=function(){var v;if(_.N("csi_use_performance_navigation_timing")){var e,d,E,T=_.Mg==null?void 0:(v=_.Mg.getEntriesByType)==null?void 0:(e=v.call(_.Mg,"navigation"))==null?void 0:(d=e[0])==null?void 0:(E=d.toJSON)==null?void 0:E.call(d);T?(T.requestStart=tK(T.requestStart),T.responseEnd=tK(T.responseEnd),T.redirectStart=tK(T.redirectStart),T.redirectEnd=tK(T.redirectEnd),T.domainLookupEnd=tK(T.domainLookupEnd),T.connectStart=tK(T.connectStart),T.connectEnd=tK(T.connectEnd),T.responseStart=tK(T.responseStart),
T.secureConnectionStart=tK(T.secureConnectionStart),T.domainLookupStart=tK(T.domainLookupStart),T.isPerformanceNavigationTiming=!0,v=T):v=_.Mg.timing}else v=_.N("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Mg.timing)):_.Mg.timing;return v};
aNO=function(){if(_.Mg.getEntriesByType){var v=_.Mg.getEntriesByType("paint");if(v=_.xS(v,function(d){return d.name==="first-paint"}))return tK(v.startTime)}var e;
_.N("csi_use_performance_navigation_timing")?e=_.Mg.getEntriesByType("first-paint")[0].startTime:e=_.Mg.timing.msFirstPaint;return e?Math.max(0,e):0};
Oh9=function(){var v=window.location.protocol,e=_.Mg.getEntriesByType("resource");e=_.dN(e,function(d){return d.name.indexOf(v+"//fonts.gstatic.com/s/")===0});
(e=ihC(e,function(d,E){return E.duration>d.duration?E:d}))&&e.startTime>0&&e.responseEnd>0&&(_.fB("wffs",tK(e.startTime)),_.fB("wffe",tK(e.responseEnd)))};
INf=function(v,e){v=document.querySelector(v);if(!v)return!1;var d="",E=v.nodeName;E==="SCRIPT"?(d=v.src,d||(d=v.getAttribute("data-timing-href"))&&(d=window.location.protocol+d)):E==="LINK"&&(d=v.href);_.Qk(document)&&v.setAttribute("nonce",_.Qk(document));return d?(v=_.Mg.getEntriesByName(d))&&v[0]&&(v=v[0],d=_.tU(),_.fB("rsf_"+e,d+Math.round(v.fetchStart)),_.fB("rse_"+e,d+Math.round(v.responseEnd)),v.transferSize!==void 0&&v.transferSize===0)?!0:!1:!1};
_.fi=function(v,e){_.Hb(function(){_.GE("").info.actionType=v;e&&_.xc("TIMING_AFT_KEYS",e);_.xc("TIMING_ACTION",v);var d=_.SQ$(_.Bb("TIMING_INFO",{}));Object.keys(d).length>0&&_.Rq(d);d={isNavigation:!0,actionType:_.Fjj(_.Bb("TIMING_ACTION"))};var E=_.Bb("PREVIOUS_ACTION");E&&(d.previousAction=_.Fjj(E));if(E=_.Bb("CLIENT_PROTOCOL"))d.httpProtocol=E;if(E=_.Bb("CLIENT_TRANSPORT"))d.transportProtocol=E;(E=_.zz())&&E!=="UNDEFINED_CSN"&&(d.clientScreenNonce=E);E=_.Tst();if(E===1||E===-1)d.isVisible=!0;
E=_.XXM().loadType==="cold";var T=SOs();E||(E=T.yt_lt==="cold");if(E){d.loadType="cold";E=SOs();T=Wl9();var S=_.tU(),O=_.Bb("CSI_START_TIMESTAMP_MILLIS",0);O>0&&!_.N("embeds_web_enable_csi_start_override_killswitch")&&(S=O);S&&(_.fB("srt",T.responseStart),E.prerender!==1&&_.D6L(S));E=aNO();E>0&&_.fB("fpt",E);E=Wl9();E.isPerformanceNavigationTiming&&_.Rq({performanceNavigationTiming:!0},void 0);_.fB("nreqs",E.requestStart,void 0);_.fB("nress",E.responseStart,void 0);_.fB("nrese",E.responseEnd,void 0);
E.redirectEnd-E.redirectStart>0&&(_.fB("nrs",E.redirectStart,void 0),_.fB("nre",E.redirectEnd,void 0));E.domainLookupEnd-E.domainLookupStart>0&&(_.fB("ndnss",E.domainLookupStart,void 0),_.fB("ndnse",E.domainLookupEnd,void 0));E.connectEnd-E.connectStart>0&&(_.fB("ntcps",E.connectStart,void 0),_.fB("ntcpe",E.connectEnd,void 0));E.secureConnectionStart>=_.tU()&&E.connectEnd-E.secureConnectionStart>0&&(_.fB("nstcps",E.secureConnectionStart,void 0),_.fB("ntcpe",E.connectEnd,void 0));_.Mg&&"getEntriesByType"in
_.Mg&&Oh9();E=[];if(document.querySelector&&_.Mg&&_.Mg.getEntriesByName)for(var b in bhw)bhw.hasOwnProperty(b)&&(T=bhw[b],INf(b,T)&&E.push(T));if(E.length>0)for(d.resourceInfo=[],b=_.a(E),E=b.next();!E.done;E=b.next())d.resourceInfo.push({resourceCache:E.value})}_.Rq(d);d=_.JU();d.preLoggedGelInfos||(d.preLoggedGelInfos=[]);b=d.preLoggedGelInfos;d=_.lXH();E=void 0;for(T=0;T<b.length;T++)if(S=b[T],S.loadType){E=S.loadType;break}if(_.XXM().loadType==="cold"&&(d.loadType==="cold"||E==="cold")){E=_.zD3();
T=_.JU();T=T.gelTicks?T.gelTicks:T.gelTicks={};for(var Y in E)if(!(Y in T))if(typeof E[Y]==="number")_.fB(Y,_.PF(Y));else if(_.N("log_repeated_ytcsi_ticks"))for(S=_.a(E[Y]),O=S.next();!O.done;O=S.next())O=O.value,_.fB(Y.slice(1),O);Y={};E=!1;b=_.a(b);for(T=b.next();!T.done;T=b.next())E=T.value,_.Z_(d,E),_.Z_(Y,E),E=!0;E&&_.Rq(Y)}_.O$7(!0);Y=_.Bb("TIMING_ACTION");_.AE("ytglobal.timingready_")&&Y&&_.Kks()&&_.i$0()&&_.dSt()})()};
ihC=function(v,e){return Array.prototype.reduce.call(v,e,{duration:0})};
bhw={'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 YOS={};YOS.YtVisibilityRootBehavior=[_.Oa7.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.p0(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Bb("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var v=_.Bb("INNERTUBE_CLIENT_NAME")!=="WEB";_.N("kevlar_use_vimio_behavior")&&v&&_.a36()}}];_.Rp={};_.Rp.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(v){v.detail.contextProvider=this;v.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
YOS.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.gq();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(v){var e=this;this.pageCount+=1;_.N("kevlar_use_vimio_behavior")&&(_.Bb("INNERTUBE_CLIENT_NAME")==="WEB"?_.RM.addJob(function(){e.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(v)},
loadPage_:function(v){this.data=v},
ytPageBehaviorActiveObserver_:function(v){var e=this;_.N("kevlar_use_vimio_behavior")&&(v?_.Bb("INNERTUBE_CLIENT_NAME")==="WEB"?_.RM.addJob(function(){e.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(v){if(!this.setScrollTopJobId_){var e=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){e.setScrollTopJobId_=0;var d=_.dk().resolve(_.eG(_.oZ));d&&_.Sq(d);this.getPageScrollingElement().scrollTop=v}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.sS(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Tci;var Ml=function(){var v=_.P.apply(this,arguments)||this;v.playerListenerConfig=null;v.actionMap={"yt-show-watch-page-survey":"openSurvey"};return v};
_.V(Ml,_.P);_.W=Ml.prototype;_.W.dataChanged=function(){var v=this,e=_.dB();e&&e.getPlayerPromise().then(function(E){v.maybeRemovePlayerListeners(E)});
var d=this.data&&this.data.survey;d&&((d=(d=d.singleOptionSurveyRenderer||d.checkboxSurveyRenderer||d.multiStageSurveyRenderer)&&d.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(e,d):this.openSurvey())};
_.W.triggerWatchPageSurvey=function(v,e){var d=this,E,T,S,O,b,Y,q,r,h;return _.I(function(K){if(K.nextAddress==1)return v?K.yield(v.getPlayerPromise(),2):K.return();d.player=K.yieldResult;if(!d.player)return K.return();E={};T=_.a(e);for(S=T.next();!S.done;S=T.next())O=S.value,b=_.a(d.createEventListenerPair(O)),Y=b.next().value,q=b.next().value,r=Y,h=q,r&&h&&(E[r]=h,d.ytPlayerListenerBehavior.listenToPlayerEvent(d.player,r,h));d.playerListenerConfig=E;_.s9(K)})};
_.W.createEventListenerPair=function(v){var e=v.playbackEventTrigger;return e?this.handlePlaybackTrigger(e):(v=v.watchTimeTrigger)?this.handleWatchTimeTrigger(v):[void 0,void 0]};
_.W.handleWatchTimeTrigger=function(v){var e=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var d=v.videoWatchFraction,E=v.watchTimeSec;return E&&d?["onVideoProgress",function(){e.player&&e.isWatchTimeConditionMet(e.player,d,E)&&e.showSurvey()}]:[void 0,
void 0]};
_.W.isWatchTimeConditionMet=function(v,e,d){var E=v.getProgressState(),T=E.current-this.lastKnownPlaybackPosition;T<5&&(this.accumulatedMediaTime+=T);this.lastKnownPlaybackPosition=E.current;E=Math.round(this.accumulatedMediaTime/E.duration*1E3)/1E3;return v.getPresentingPlayerType&&v.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>d||E>e)};
_.W.handlePlaybackTrigger=function(v){var e=this;v=v.playbackEvent;if(v==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var d="onStateChange";var E=function(T){T===0&&e.showSurvey()}}else v==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(d="onVideoProgress",E=function(T){e.player&&e.player.getPresentingPlayerType&&e.player.getPresentingPlayerType()===1&&T&&e.showSurvey()}):v==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(d="onAdEnd",E=this.showSurvey);
return[d,E]};
_.W.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.W.openSurvey=function(){var v=this,e=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.MO1(!!e));_.RM.addJob(function(){v.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:e}})},0,0)};
_.W.maybeRemovePlayerListeners=function(v){if(this.playerListenerConfig){for(var e=_.a(Object.keys(this.playerListenerConfig)),d=e.next();!d.done;d=e.next())d=d.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(v,d,this.playerListenerConfig[d]);this.playerListenerConfig=null}};
Ml.prototype.dataChanged=Ml.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],Ml.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],Ml.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Ml.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],Ml.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ml.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Ml.prototype,"playerListenerConfig",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],Ml.prototype,"lastKnownPlaybackPosition",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],Ml.prototype,"accumulatedMediaTime",void 0);_.c([_.f(),_.w("design:type",Object)],Ml.prototype,"player",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ml.prototype,"dataChanged",null);_.c([_.z({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Ml);
_.A(Ml,"ytd-survey-trigger-renderer",function(){if(Tci!==void 0)return Tci;var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Tci=v},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Zt$=new _.gG("promotedSparklesWebRenderer");var csu=new _.gG("relatedChipCommand");var w3f;var F0T;var q8=function(){return _.P.apply(this,arguments)||this};
_.V(q8,_.P);q8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],q8.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],q8);
_.A(q8,"ytd-compact-tvfilm-entry-point-renderer",function(){if(F0T!==void 0)return F0T;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return F0T=v},{mode:1});var QU$;var gSJ;var uM$;var rc=function(){return _.P.apply(this,arguments)||this};
_.V(rc,_.P);rc.prototype.ready=function(){this.initializeDefs()};
rc.prototype.initializeDefs=function(){var v=this.meta.byKey("yt-icons"),e=_.IB(v).querySelector("#star"),d=_.IB(v).querySelector("#star_half");v=_.IB(v).querySelector("#star_border");e&&this.defs.appendChild(e.cloneNode(!0));d&&this.defs.appendChild(d.cloneNode(!0));v&&this.defs.appendChild(v.cloneNode(!0))};
rc.prototype.percentChanged=function(){for(var v=this.rating;v.firstChild;)v.removeChild(v.firstChild);var e=Math.round(this.percent/10);v=Math.floor(e/2);e%=2;var d=5-v-e;this.appendStars("star",v,0);this.appendStars("star_half",e,v);this.appendStars("star_border",d,v+e)};
rc.prototype.appendStars=function(v,e,d){for(var E=0;E<e;E++){var T=(18+this.spacing)*(E+d),S=document.createElementNS("http://www.w3.org/2000/svg","use");_.px1(S,"#"+v);S.setAttribute("x",""+T);S.setAttribute("y","0");this.rating.appendChild(S)}};
rc.prototype.percentChanged=rc.prototype.percentChanged;_.c([_.sg("#defs"),_.w("design:type",HTMLElement)],rc.prototype,"defs",void 0);_.c([_.sg("#rating"),_.w("design:type",HTMLElement)],rc.prototype,"rating",void 0);_.c([_.f(),_.w("design:type",Number)],rc.prototype,"percent",void 0);_.c([_.f({value:6}),_.w("design:type",Number)],rc.prototype,"spacing",void 0);_.c([_.f({value:_.jr.create("iron-meta",{type:"iconset"})}),_.w("design:type",_.kl)],rc.prototype,"meta",void 0);
_.c([_.$v("percent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rc.prototype,"percentChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-ratings"})],rc);
_.A(rc,"ytd-ratings",function(){if(uM$!==void 0)return uM$;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return uM$=v},{mode:1});var hm=function(){return _.P.apply(this,arguments)||this};
_.V(hm,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],hm.prototype,"data",void 0);_.c([_.z({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],hm);
_.A(hm,"ytd-offer-review-renderer",function(){if(gSJ!==void 0)return gSJ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return gSJ=v},{mode:1});var Kh=function(){var v=_.P.apply(this,arguments)||this;v.badges=[{textBadge:{label:_.pQ("CC")}}];return v};
_.V(Kh,_.P);_.W=Kh.prototype;_.W.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.W.dataChanged=function(){var v=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(v&&v.commandMetadata&&_.L(v.commandMetadata,_.VM)&&_.L(v.commandMetadata,_.VM).fireAutomatically)_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}});else{var e;v&&((e=_.L(v,_.VM))==null?0:e.fireAutomatically)&&_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}})}};
_.W.isEmptyContent=function(v){return this.isStorefrontEntryPointEmpty(v)&&this.shouldHideOfferModule(v)};
_.W.isStorefrontEntryPointEmpty=function(v){return!v||!v.storefrontEntryPoint};
_.W.shouldHideOfferModule=function(v){return!!v.hideVideoDetails};
_.W.isOfferModuleNavigationInactive=function(v){return!v.navigationEndpoint&&!v.serviceEndpoint};
_.W.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.dk().resolve(_.EI).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Kh.prototype.dataChanged=Kh.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Kh.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.w("design:type",Boolean)],Kh.prototype,"hidden",void 0);
_.c([_.f(),_.w("design:type",Object)],Kh.prototype,"badges",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Kh.prototype,"dataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Kh);
_.A(Kh,"ytd-movie-offer-module-renderer",function(){if(QU$!==void 0)return QU$;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return QU$=v},{mode:1});var nSu;var $V=function(){return _.P.apply(this,arguments)||this};
_.V($V,_.P);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],$V.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$V.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],$V);
_.A($V,"ytd-media-masthead-renderer",function(){if(nSu!==void 0)return nSu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return nSu=v},{mode:1});var D7f;_.aZ(_.MC2,"course-metadata-view-model",{props:{data:_.SM,isOverlay:_.SM}});var jc=function(){var v=_.P.apply(this,arguments)||this;v.isMetadataVisible=!1;v.modernPanels=_.N("kevlar_watch_modern_panels");v.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return v};
_.V(jc,_.P);_.W=jc.prototype;
_.W.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"}}}}};
_.W.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.W.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.W.expanderChanged=function(){var v;if((v=this.data)==null?0:v.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.W.isExpandButtonToggled=function(){var v,e;return(e=_.L((v=this.data)==null?void 0:v.expandMetadataButton,_.Ay))==null?void 0:e.isToggled};
_.W.onVisibilityButtonClick=function(){var v;if((v=this.data)==null?0:v.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.W.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
jc.prototype.expanderChanged=jc.prototype.expanderChanged;jc.prototype.dataChanged=jc.prototype.dataChanged;jc.prototype.descriptionChanged=jc.prototype.descriptionChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M([_.$M.YtActionHandlerBehavior]),_.w("design:type",Object)],jc.prototype,"actionHandlerBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],jc.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],jc.prototype,"isMetadataVisible",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],jc.prototype,"modernPanels",void 0);_.c([_.sg("#expander"),_.w("design:type",Object)],jc.prototype,"expander",void 0);_.c([_.$v("data.description"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jc.prototype,"descriptionChanged",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jc.prototype,"dataChanged",null);_.c([_.$v("isMetadataVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jc.prototype,"expanderChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],jc);
_.A(jc,"ytd-tvfilm-offer-module-renderer",function(){if(D7f!==void 0)return D7f;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return D7f=v},{mode:2});var U7V;var sO=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return v};
_.V(sO,_.P);sO.prototype.dataChanged=function(){this.hostElement.hidden=!1};
sO.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
sO.prototype.onThumbnailTap=function(v){this.data&&this.data.serviceEndpoint&&(_.dk().resolve(_.EI).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),v.stopPropagation())};
sO.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
sO.prototype.dataChanged=sO.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sO.prototype,"rendererBehaviors",void 0);_.c([_.M([_.$M.YtActionHandlerBehavior]),_.w("design:type",Object)],sO.prototype,"actionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sO.prototype,"data",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sO.prototype,"dataChanged",null);_.c([_.z({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],sO);
_.A(sO,"ytd-unlimited-offer-module-renderer",function(){if(U7V!==void 0)return U7V;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return U7V=v},{mode:1});var p3T;var vID;var N8=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return v};
_.V(N8,_.P);N8.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
N8.prototype.handleRelatedChipCommand=function(v){v=_.L(v,csu);var e=v.contents;e?_.YB(this.hostElement,"yt-item-section-replace-action",[e,v.targetSectionIdentifier]):_.YB(this.hostElement,"yt-item-section-continuation-action",[v.continuationData,v.targetSectionIdentifier])};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],N8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],N8.prototype,"actionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],N8.prototype,"data",void 0);_.c([_.lh({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],N8);
_.A(N8,"yt-related-chip-cloud-renderer",function(){if(vID===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;p3T===void 0&&(p3T=document.createElement("template"));var E=p3T;d.call(e,E.content.cloneNode(!0),v.content.firstChild);vID=v}v=vID;return v},{mode:2});var kV=function(){var v=_.P.apply(this,arguments)||this;v.isTwoColumns=!0;v.hideOfferModules=!1;v.watchFeedBigThumbs=_.N("kevlar_watch_feed_big_thumbs");v.watchFeedBigThumbsOnLockup=_.N("web_watch_next_big_thumbs");v.watchNextGridHideChips=_.N("kevlar_watch_grid_hide_chips");v.eligibleToSwitchToGrid=_.N("web_watch_eligible_to_switch_to_grid");v.disableShortsShelfHeightOverride=_.N("web_shorts_wn_shelf_ratio_tuning");v.isWatchNextGrid=!1;v.reuseComponents=!_.N("kevlar_watch_grid");v.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return v};
_.V(kV,_.P);_.W=kV.prototype;
_.W.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.N("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}}};
_.W.getItemsPath=function(){return"data.results"};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.W.created=function(){this.ytLazyListBehavior.initialCount=1};
_.W.ready=function(){_.qr(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%"})};
_.W.resultsChanged=function(){if(this.data&&this.data.results){for(var v=this.data.results,e=null,d=null,E=0;E<v.length;E++)v[E].relatedChipCloudRenderer?e=v[E].relatedChipCloudRenderer:v[E].itemSectionRenderer&&(d=v[E].itemSectionRenderer);if(e&&d)for(this.set("data.continuations",[]),v=_.L(e.content,_.B$M).chips,e=0;e<v.length;e++)if(E=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",v[e]),E.loadCached||!E.contents){E.contents=d.contents;break}}};
_.W.dataChanged=function(){var v=this,e;if((e=this.data)!=null&&e.results&&this.hasAllowedInstreamAd(this.playerData)){if(e=this.data.results.filter(function(b){return!!b.promotedSparklesWebRenderer})){for(var d=0;d<e.length;d++){var E=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",e[d]);
if(E)for(var T=0;T<E.length;T++)E[T]&&E[T].baseUrl&&_.ZF(E[T].baseUrl)}this.set("data.results",this.data.results.filter(function(b){return!b.promotedSparklesWebRenderer}))}if(e=this.data.results.filter(function(b){return!!v.getSparklesAd(b)})){e=_.a(e);
for(T=e.next();!T.done;T=e.next())if(E=d=void 0,T=(d=this.getSparklesAd(T.value))==null?void 0:(E=d.errorCommand)==null?void 0:E.loggingUrls)for(d=_.a(T),E=d.next();!E.done;E=d.next())(E=E.value)&&E.baseUrl&&_.ZF(E.baseUrl);var S,O;this.set("data.results",(S=this.data)==null?void 0:(O=S.results)==null?void 0:O.filter(function(b){return!b.adSlotRenderer}))}}};
_.W.getSparklesAd=function(v){var e,d;v=_.L((e=v.adSlotRenderer)==null?void 0:(d=e.fulfillmentContent)==null?void 0:d.fulfilledLayout,_.XB6);return _.L(v==null?void 0:v.renderingContent,Zt$)};
_.W.hasAllowedInstreamAd=function(v){v=this.get("adPlacements",v)||[];for(var e=0;e<v.length;e++){var d=this.get("adPlacementRenderer.config.adPlacementConfig",v[e]);if(d&&d.suppressDisplayAd)return!0}return!1};
_.W.computeHideUnlimitedOfferModule=function(v,e){return v&&v.offerModule&&e&&v.offerModule.unlimitedOfferModuleRenderer&&v.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(e)?!0:!1};
_.W.hideUnlimitedOfferModuleChanged=function(){var v=_.IB(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");v&&(v.hidden=this.hideUnlimitedOfferModule)};
_.W.updateLockupContainerTypes=function(v){if(this.eligibleToSwitchToGrid){var e;(e=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||e.forEach(function(d){d.containerType=v})}};
_.W.computeHideTvfilmOfferModule=function(v,e){var d,E;return!!((v==null?0:(d=v.offerModule)==null?0:(E=d.tvfilmOfferModuleRenderer)==null?0:E.clientShouldSuppressIfCompanionAdDisplayed)&&e&&this.hasCompanionAds(e))};
_.W.hideTvfilmOfferModuleChanged=function(){var v=_.IB(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");v&&(v.hidden=this.hideTvfilmOfferModule)};
_.W.hasCompanionAds=function(v){v=this.get("adPlacements",v)||[];for(var e=0;e<v.length;e++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",v[e]))return!0;var d=void 0,E=void 0,T=void 0;if(!_.N("web_watch_top_banner_companion_check_killswitch")&&((d=v[e])==null?0:(E=d.adPlacementRenderer)==null?0:(T=E.renderer)==null?0:T.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.W.hasSuppressedResults=function(v){return v==null?!0:v.filter(function(e){return!e.continuationItemRenderer&&!e.compactPromotedVideoRenderer&&!e.promotedSparklesWebRenderer}).length===0};
_.W.computeShowButton=function(v,e){return this.isWatchNextGrid?v:v||this.hasSuppressedResults(e)};
_.W.showButtonChanged=function(){if(this.isWatchNextGrid){var v=_.IB(this.hostElement).querySelector("ytd-rich-grid-renderer");v&&this.showButton!==null&&(v.continuationShowButton=this.showButton)}else{v=_.IB(this.hostElement).querySelector("yt-next-continuation");var e=_.IB(this.hostElement).querySelector("ytd-continuation-item-renderer"),d=_.IB(this.hostElement).querySelector("ytd-item-section-renderer");v&&(v.showButton=this.showButton);e&&(e.showButton=this.showButton);d&&(d.continuationShowButton=
this.showButton)}};
_.W.continuationTap=function(v){var e;if(((e=this.data)==null?void 0:e.continuations)!=null&&v.target.tagName==="TP-YT-PAPER-BUTTON")for(v=this.data.continuations,e=0;e<v.length;e++)v[e].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(v[e].nextContinuationData||{})};
_.W.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("shown-items-changed",this.shownItems))};
_.vP.Object.defineProperties(kV.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.shownItems)==null||!v.some(function(e){return!!e.lockupViewModel||e.compactVideoRenderer}))}}});
kV.prototype.shownItemsChangedForBinding=kV.prototype.shownItemsChangedForBinding;kV.prototype.showButtonChanged=kV.prototype.showButtonChanged;kV.prototype.hideTvfilmOfferModuleChanged=kV.prototype.hideTvfilmOfferModuleChanged;kV.prototype.updateLockupContainerTypes=kV.prototype.updateLockupContainerTypes;kV.prototype.hideUnlimitedOfferModuleChanged=kV.prototype.hideUnlimitedOfferModuleChanged;kV.prototype.dataChanged=kV.prototype.dataChanged;kV.prototype.resultsChanged=kV.prototype.resultsChanged;
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],kV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.iO.YtLazyListBehavior),_.w("design:type",Object)],kV.prototype,"ytLazyListBehavior",void 0);_.c([_.M(_.QL.YtNextContinuationBehavior),_.w("design:type",Object)],kV.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.M(_.FL),_.w("design:type",Object)],kV.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],kV.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kV.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],kV.prototype,"playerData",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],kV.prototype,"autoFill",void 0);_.c([_.f({value:60}),_.w("design:type",Number)],kV.prototype,"targetFramerate",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kV.prototype,"isTwoColumns",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kV.prototype,"hideOfferModules",void 0);_.c([_.f(),_.w("design:type",Object)],kV.prototype,"shownItems",void 0);_.c([_.f({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.w("design:type",Boolean)],kV.prototype,"hideUnlimitedOfferModule",void 0);
_.c([_.f({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.w("design:type",Boolean)],kV.prototype,"hideTvfilmOfferModule",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kV.prototype,"watchFeedBigThumbs",void 0);_.c([_.f(),_.w("design:type",Object)],kV.prototype,"watchFeedBigThumbsOnLockup",void 0);_.c([_.f(),_.w("design:type",Object)],kV.prototype,"watchNextGridHideChips",void 0);_.c([_.f(),_.w("design:type",Object)],kV.prototype,"eligibleToSwitchToGrid",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kV.prototype,"disableShortsShelfHeightOverride",void 0);_.c([_.f({selector:_.CM,reflectToAttribute:!0}),_.w("design:type",Object)],kV.prototype,"isGridViewEnabled",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],kV.prototype,"showMoreButton",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],kV.prototype,"isWatchNextGrid",void 0);
_.c([_.f({computed:"computeShowButton(showMoreButton, data.results)"}),_.w("design:type",Boolean)],kV.prototype,"showButton",void 0);_.c([_.V1("data.results.*"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kV.prototype,"resultsChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kV.prototype,"dataChanged",null);
_.c([_.$v("hideUnlimitedOfferModule"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kV.prototype,"hideUnlimitedOfferModuleChanged",null);_.c([_.t("isGridViewEnabled","containsLockups","data"),_.f({reflectToAttribute:!0}),_.w("design:type",Number),_.w("design:paramtypes",[])],kV.prototype,"lockupContainerType",null);
_.c([_.$v("lockupContainerType","data"),_.w("design:type",Function),_.w("design:paramtypes",[Number]),_.w("design:returntype")],kV.prototype,"updateLockupContainerTypes",null);_.c([_.$v("hideTvfilmOfferModule"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kV.prototype,"hideTvfilmOfferModuleChanged",null);_.c([_.$v("showButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kV.prototype,"showButtonChanged",null);
_.c([_.$v("shownItems"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kV.prototype,"shownItemsChangedForBinding",null);_.c([_.t("shownItems"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],kV.prototype,"containsLockups",null);
_.A(kV,"ytd-watch-next-secondary-results-renderer",function(){if(w3f===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);w3f=v}v=w3f;return v},{mode:1});
}catch(e){_._DumpException(e)}
try{
var gnO=new _.gG("replaceFeedContentAction");var uV9;var nnw;var sV=function(){return _.P.apply(this,arguments)||this};
_.V(sV,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sV.prototype,"data",void 0);_.c([_.z({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],sV);
_.A(sV,"ytd-sub-feed-option-renderer",function(){if(nnw!==void 0)return nnw;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return nnw=v},{mode:1});var DKv;var Nl=function(){return _.P.apply(this,arguments)||this};
_.V(Nl,_.P);Nl.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Nl.prototype,"ytRendererStamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Nl.prototype,"data",void 0);_.c([_.z({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Nl);
_.A(Nl,"ytd-sub-feed-selector-renderer",function(){if(DKv!==void 0)return DKv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return DKv=v},{mode:1});var kC=function(){return _.P.apply(this,arguments)||this};
_.V(kC,_.P);
kC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],kC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kC.prototype,"data",void 0);_.c([_.z({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],kC);
_.A(kC,"ytd-browse-feed-actions-renderer",function(){if(uV9!==void 0)return uV9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return uV9=v},{mode:1});var UKS;var ps9;var Li=function(){return _.P.apply(this,arguments)||this};
_.V(Li,_.P);Li.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Li.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Li.prototype,"data",void 0);_.c([_.z({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Li);
_.A(Li,"ytd-mini-channel-renderer",function(){if(ps9!==void 0)return ps9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ps9=v},{mode:1});var vVs;var V2=function(){return _.P.apply(this,arguments)||this};
_.V(V2,_.P);V2.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],V2.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],V2);
_.A(V2,"ytd-vertical-channel-section-renderer",function(){if(vVs!==void 0)return vVs;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return vVs=v},{mode:1});var op=function(){return _.P.apply(this,arguments)||this};
_.V(op,_.P);op.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],op.prototype,"data",void 0);_.c([_.z({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],op);
_.A(op,"ytd-browse-secondary-contents-renderer",function(){if(UKS!==void 0)return UKS;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return UKS=v},{mode:1});var ets;var JK=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};v.notActive=!1;v.isConstrainedList=!1;return v};
_.V(JK,_.P);_.W=JK.prototype;
_.W.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(v){var e;return(v==null?void 0:(e=v.webComponentHint)==null?void 0:e.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.W.getPath=function(v,e){var d="data.tabs.#"+e+".";v.tabs[e].tabRenderer?d+="tabRenderer.":v.tabs[e].expandableTabRenderer&&(d+="expandableTabRenderer.");return d+"content.sectionListRenderer"};
_.W.computeDisplayedContent=function(v){this.unlinkPaths("content");if(v&&v.tabs)for(var e=v.tabs.length,d=0;d<e;d++){var E=v.tabs[d].tabRenderer||v.tabs[d].expandableTabRenderer;if(E.selected&&E.content)return this.linkPaths("content",this.getPath(v,d)),E.content}return null};
_.W.computeHasSecondaryColumnData=function(v){return!!v&&!!v.secondaryContents};
_.W.onRetrieveLocation=function(v,e){e.locationRetrieved(e.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);v.stopPropagation()};
_.W.onYtServiceRequestSent=function(v,e){_.N("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(e)};
_.W.onYtServiceRequestCompleted=function(v,e){_.N("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(e)};
_.W.onReplaceFeedContentAction=function(v){if(!_.N("replace_feed_content_action_killswitch")&&!this.notActive){var e;(v=(e=_.L(v,gnO))==null?void 0:e.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(v)}};
_.W.handleServiceRequestActions=function(v){if(v=v.actions){v=_.a(v);for(var e=v.next();!e.done;e=v.next()){e=e.value;var d=void 0;((d=_.L(e,gnO))==null?0:d.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.L(e,gnO).items)}}};
JK.prototype.onYtServiceRequestCompleted=JK.prototype.onYtServiceRequestCompleted;JK.prototype.onYtServiceRequestSent=JK.prototype.onYtServiceRequestSent;JK.prototype.onRetrieveLocation=JK.prototype.onRetrieveLocation;_.c([_.M(_.ck),_.w("design:type",Object)],JK.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],JK.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JK.prototype,"data",void 0);_.c([_.f({computed:"computeDisplayedContent(data)"}),_.w("design:type",Object)],JK.prototype,"content",void 0);
_.c([_.f({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],JK.prototype,"hasSecondaryColumnData",void 0);_.c([_.f({value:function(){return window.outerHeight>1024?3:2}}),
_.w("design:type",Number)],JK.prototype,"initialCount",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],JK.prototype,"pageSubtype",void 0);_.c([_.sg("ytd-section-list-renderer"),_.w("design:type",Object)],JK.prototype,"listRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],JK.prototype,"notActive",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],JK.prototype,"isConstrainedList",void 0);
_.c([_.f(),_.w("design:type",String)],JK.prototype,"responsiveSizing",void 0);_.c([_.Kq("yt-retrieve-location"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],JK.prototype,"onRetrieveLocation",null);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],JK.prototype,"onYtServiceRequestSent",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],JK.prototype,"onYtServiceRequestCompleted",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],JK);
_.A(JK,"ytd-two-column-browse-results-renderer",function(){if(ets!==void 0)return ets;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ets=v},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Aam=function(v){if((v==null?void 0:v.value)===void 0||v==null||!v.unit)return"initial";a:{switch(v.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var e="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":e="%";break a}e=void 0}return e?""+v.value+e:"initial"},ZwD=new _.gG("shoppingContentLineItemViewModel");var caY=_.l(function(v){var e=_.dC(v,{}).data;return _.m("yt-shopping-content-line-item-view-model",{class:_.qe("ytShoppingContentLineItemViewModelHost")},_.m(_.Dh,{text:function(){var d;return(d=e().text)==null?void 0:d.attributedString}}))},"cl");var wim=_.l(function(v){v=_.dC(v,{});var e=v.data;return _.m("yt-shopping-content-line-view-model",{class:_.qe("ytShoppingContentLineViewModelHost",v.className),style:_.jM({"--shopping-content-line-gap":function(){return e().itemGap?e().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return e().lineHeight?e().lineHeight+"px":void 0}})},_.m(_.jI,{each:function(){return(e().items||[]).map(function(d){return _.L(d,ZwD)}).filter(function(d){return!!d})}},function(d){return _.m(caY,{data:d})}))},"dl");_.aZ(_.l(function(v){var e=_.dC(v,{}).data,d=function(){var E;return((E=e().image)==null?void 0:E.height)||40};
return _.m("yt-shopping-timely-shelf-content-view-model",{el:_.dq(_.B5(function(){var E;return(E=e())==null?void 0:E.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.qe("ytShoppingTimelyShelfContentViewModelHost"),style:_.jM({"--shopping-timely-shelf-content-padding-top":function(){var E;return Aam((E=e().padding)==null?void 0:E.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var E;return Aam((E=e().padding)==null?void 0:E.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var E;return Aam((E=e().padding)==null?void 0:E.start)},
"--shopping-timely-shelf-content-padding-end":function(){var E;return Aam((E=e().padding)==null?void 0:E.end)}})},_.m(_.y,{cond:function(){var E;
return(E=e().image)==null?void 0:E.image},
then:function(E){return _.m(_.va,{preserveHeight:!0,preserveWidth:!0,height:d,data:E,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.m(_.kz,{data:function(){return e().avatar}},{avatarViewModel:_.x7}),_.m("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.m(_.kz,{data:function(){return e().line1}},{shoppingContentLineViewModel:function(E){return _.m(wim,{data:E.data})}}),_.m(_.kz,{data:function(){return e().line2}},{shoppingContentLineViewModel:function(E){return _.m(wim,
{data:E.data})}})),_.m("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.m(_.jI,{each:function(){var E;
return(E=e().button)!=null?E:[]}},function(E){return _.m(_.kz,{data:function(){return E}},{buttonViewModel:_.yi})})))},"el"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.U1}});_.FqT={};
_.FqT.YtdWatchBehavior=[_.n.YtRendererBehavior,_.UF.YtPlayerListenerBehavior,_.ae.YtRendererstamperBehavior,_.$M.YtActionHandlerBehavior,_.Rp.YtPageBehavior,_.KR.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.zr("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.N("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("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 _.zr("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 _.N("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,
value:!1},isSingleColumn:{type:Boolean,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,
value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.N("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 _.Wi("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Wi("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!_.N("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.N("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 _.N("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.N("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.N("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.N("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("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 _.N("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("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 _.N("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);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var v={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.FN(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.FN(["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"||_.N("swa_prov_panels_ks")?v.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(v.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},v.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return v},
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 v=this;this.watchController=void 0;this.pageDisposeJobs=[function(){v.showMetadataPlaceholder_()},
function(){_.N("web_watch_dont_clear_comments")||v.clearComments_()},
function(){v.clearPlayerAds_()},
function(){v.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;_.N("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.N("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Jar(function(){return _.eK(v)},this.hostElement);
this.pageDisposeJobs.push(function(){v.youThereManager_.reset()});
_.N("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){v.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.WA;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;_.N("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));_.N("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.hG(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(v){v&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:v}),v.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(v){_.N("kevlar_watch_flexy_theater_manager")&&(this.theater=v,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(v){!_.N("kevlar_watch_while_v2")&&!_.N("web_watch_pip")||v||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(v){this.active!==void 0&&(this.fullscreen=v,_.N("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(v){this.active!==void 0&&(_.Iq(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.N("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(v>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(v){this.initCsi_();this.updatePageData_(v)},
updatePageData_:function(v){var e=this;if(v)if(this.data===v){this.onPageLoadWithSameData_();var d;(d=this.watchController)==null||d.setWatchNextResponse(this.data)}else this.data=v;this.playlist&&_.BF({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.zE("nw");this.loading=!1;_.LI(_.RM,function(){e.initDclkstatus_();var E,T=((E=e.player)==null?void 0:E.getVideoData().cpn)||"";_.m_r(function(S,O){_.XYt(S,O,T)})})},
onPageLoadWithSameData_:function(){_.N("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 v=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!v);this.set("loadingData.playlistLoading",v&&v!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),v=this.watchNextSkeletonEl_.firstElementChild;v;)v.classList.remove("hidden"),v=v.nextElementSibling;if(_.N("kevlar_watch_frame0_loading_state")){var e,d,E;v=(e=this.loadingData)==null?void 0:(d=e.endpoint)==null?void 0:(E=d.watchEndpoint)==null?void 0:E.videoId;var T;v&&(T="https://i.ytimg.com/vi/"+v+"/frame0.jpg");_.IB(this.hostElement).querySelector("#player").style.backgroundImage=T?"url("+T+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var v=_.IB(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&v&&(v.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var e,d;(d=(e=this.watchMetadata).updateSentimentBarWidth)==
null||d.call(e);var E,T;(T=(E=this.watchMetadata).resize)==null||T.call(E)}_.N("kevlar_watch_frame0_loading_state")&&(_.IB(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(v){var e=_.IB(this.hostElement).querySelector(v);e?_.aq(e,!1):_.xf(new _.kL("Overscroll monitor not found for component: ",v))},
removeSplitScrollMouseTrap:function(v){var e=_.IB(this.hostElement).querySelector(v);e?_.Oz(e):_.xf(new _.kL("Disposal component for  overscroll monitoring not found: ",v))},
onLoadingChanged_:function(v){v?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.N("web_thumbnail_to_watch_transition")&&!_.vxS||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.N("web_thumbnail_to_watch_transition")&&!_.vxS||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(v){var e=this;v?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.RM.addLowPriorityJob(function(){e.onWindowResized_(_.Jk(!0))})},
updateTheaterModeState_:function(v){if(!_.N("kevlar_watch_flexy_theater_manager")){v=v||this.fullWindowMode_;if(this.theater!==void 0||v)this.theater=v;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();v&&_.b7f()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.N("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var v=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.N("external_fullscreen")&&this.fullscreen&&(v=!0);_.N("web_watch_error_screen_fix")&&(v=this.fullBleedPlayer);v=v?_.IB(this.hostElement).querySelector("#player-full-bleed-container"):_.IB(this.hostElement).querySelector("#player-container-inner");var e=this.getPlayerContainer(),d=_.N("kevlar_watch_while_v2")||_.N("web_watch_pip");e.parentElement!==v&&(d&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.eK(this).appendTo(v,e),_.N("web_watch_error_screen_fix")||v.appendChild(_.IB(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var v=_.IB(this.hostElement).querySelector("#error-screen"),e=this.fullBleedPlayer?_.IB(this.hostElement).querySelector("#player-full-bleed-container"):_.IB(this.hostElement).querySelector("#player");v.parentElement!==e&&e.appendChild(v)},
deactivateMiniplayerAndResetPlayer:function(){var v=this;return _.I(function(e){if(e.nextAddress==1)return e.yield(_.dk().resolve(_.P0).deactivate(),2);v.updatePlayerLocation();_.s9(e)})},
updateCinematicsLocation:function(){var v=this.getElement("CINEMATICS");if(v){var e=this.getCinematicsLocationContainer();v.parentElement!==e&&e.appendChild(v);var d;(d=this.watchController)==null||d.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&this.isSingleColumn)?_.IB(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.IB(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(v,e,d){var E=document.documentElement.hasAttribute("dark"),T=E&&_.N("web_cinematic_theater_mode"),S=E&&_.N("web_cinematic_fullscreen");E=!E&&this.cinematicLightTheme;return d||v&&T||e&&S||(e||v)&&E},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var v=this,e;(e=this.watchController)==null||e.setWatchNextResponse(this.data);_.N("kevlar_watch_flexy_comments_manager")||this.initComments_();_.N("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.dk().resolve(_.zJ).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,_.N("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.RM.addLowPriorityJob(function(){_.YB(v.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.N("web_watch_start_chat_in_theater_mode")){var d,E,T;if((d=this.data)==null?0:(E=d.contents)==null?0:(T=E.twoColumnWatchNextResults)==null?0:T.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var S,O;((S=this.data)==null?0:(O=S.contents)==null?0:O.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(v){var e;(e=this.watchController)==null||e.setPlayerResponse(this.playerData);v&&v.playabilityStatus&&(e=this.isVideoPlayable_(v.playabilityStatus,this.getPlayerOverlays_(this.data)),v=this.isLiveStreamOffline_(v.playabilityStatus),e&&!v||_.Uh(this,function(){_.zE("pbu")}));
this.setPlayerAds_();_.YB(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(v,e){if((_.N("kevlar_watch_while_v2")||_.N("web_watch_pip"))&&this.playerData&&e)return this.playerData.videoDetails},
watchPageActiveChanged_:function(v){_.d1().dispatch(_.CgY(this.active));v?this.activate_():this.deactivate_()},
attached:function(){var v=this;this.watchController=new _.zh(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);_.N("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var e=_.eK(this);_.N("kevlar_disable_prepare_player")||
e.preparePlayer();_.N("kevlar_watch_flexy_playlist_manager")||_.dk().resolve(_.zJ).setPlayer(e);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();e={"--ytd-watch-flexy-scrollbar-width":_.Z$()+"px"};this.is==="ytd-watch-grid"&&(e["--ytd-watch-flexy-sidebar-width"]=_.gsV+"px",e["--ytd-watch-grid-horizontal-page-margins"]=_.xV+"px",e["--ytd-watch-grid-columns-top-margins"]=_.wO$+"px",e["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Wi("kv_pl_mx_sz_ks")&&
_.Wi("kevlar_watch_max_player_width")&&(e["--ytd-watch-flexy-max-player-width-wide-screen"]=_.utm+"px");_.Wi("kevlar_watch_flexy_metadata_height")&&(e["--ytd-watch-flexy-space-below-player"]=_.nsD+"px");this.safeUpdateStyles(e);_.N("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.On(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return v.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.IB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var v=_.Z$(),e=_.Bo+v,d=e;this.fixedPanels&&(e+=_.gsV);var E=657+v;v=1327+v;_.IB(this.hostElement).querySelector("#two-column-query").query="(min-width: "+e+"px)";_.IB(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(E+"px), (min-height: 630px) and (min-width: ")+(e+"px) and (max-width: ")+(v+"px)");_.IB(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(v+"px)");
_.IB(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+d+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var v=_.IB(this.hostElement).querySelector("#miniplayer-bar").firstChild,e=this.squeezeback&&!_.N("web_watch_squeezeback_player_size_killswitch");return v&&v.active||this.theater||_.N("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||e||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.$x(NaN,NaN):_.ZZ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.ZZ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.p0(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var v=this;this.onWindowResized_(_.Jk());_.N("browse_skeleton_removal_on_watch_killswitch")||_.zr("IS_SHELL_LOAD")&&_.EVQ();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var e=_.eK(this);e.addEventListener("yt-player-updated",_.hG(this,this.onPlayerUpdated_));e.getPlayerPromise().then(function(d){v.playerApiReady_(d)});
_.N("kevlar_watch_flexy_playlist_manager")||(e=_.dk().resolve(_.zJ),_.N("kevlar_watch_observe_playlist_navigations_killswitch")&&e.addEventListener("yt-navigate",_.hG(this,this.onYtNavigate_)),e.setPlaylistComponent(_.IB(this.hostElement).querySelector("#playlist")),e.addEventListener("yt-playlist-data-updated",_.hG(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.RM.addLowPriorityJob(function(){_.Iq(v.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.eK(this).removeEventListener("yt-player-updated",_.hG(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.N("kevlar_watch_flexy_playlist_manager")){var v=_.dk().resolve(_.zJ);_.N("kevlar_watch_observe_playlist_navigations_killswitch")&&v.removeEventListener("yt-navigate",_.hG(this,this.onYtNavigate_));
v.cancelVideoSkip();v.removeEventListener("yt-playlist-data-updated",_.hG(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Iq(this.hostElement,"yt-autonav-pause-player",!1);v=_.SX();_.N("kevlar_exit_fullscreen_leaving_watch")&&v&&_.WF(v)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(v){this.player&&this.player.updateVideoData({rvs:v.rvs})},
getPageContents:function(v){return v&&v.contents&&v.contents.twoColumnWatchNextResults&&v.contents.twoColumnWatchNextResults.results&&v.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(v){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",v)},
onRetrieveLocation_:function(v,e){e.hasComments?e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):e.locationRetrieved("/related_ajax",void 0);v.stopPropagation()},
onSubscriptionChanged_:function(v,e){this.player&&(e?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.fi("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.IB(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.IB(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(v){this.player=v;this.setPlayerState(v.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.N("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.N("kevlar_unified_player")||_.N("kevlar_player_new_bootstrap_adoption"))&&_.lw()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(v,e){e=e===void 0?!0:e;_.SX()&&_.N("external_fullscreen")&&_.WF(document.documentElement);this.theaterRequested_=v;e&&_.$L("wide",v?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.b4(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Iq(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(v){_.BV(v,typeof this.player),this.player&&_.BV(v,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var v;((v=this.player)==null?0:v.isFullscreen())?this.player.toggleFullscreen():_.b4(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(v,e){return this.loading?e:!!Object.keys(v).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(v){if(v){v=_.a(v);for(var e=v.next();!e.done;e=v.next())e=e.value,e.youThereRenderer&&_.tGY(this.youThereManager_,e.youThereRenderer)}},
setPlaylistData_:function(v){return v||{}},
userEngagementConfigDataChanged_:function(v){if(v)if(v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var e=this.youThereManager_;_.TN()<v.lowEngagementThresholdMs||_.x_$(e,!0)}else v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.b4(this.hostElement,"yt-autonav-pause-user-engagement",[v])},
isPlayerUnavailable_:function(v,e,d){return!!v&&!this.isVideoPlayable_(v,d)&&!e},
getPlayerOverlays_:function(v){return(v==null?void 0:v.playerOverlays)||null},
isVideoPlayable_:function(v,e){if(!v)return!1;var d=v.status==="OK"||v.status==="LIVE_STREAM_OFFLINE",E=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",v)||this.get("errorScreen.ypcTrailerRenderer",v);v=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",v);var T;e=e==null?void 0:(T=e.playerOverlayRenderer)==null?void 0:T.gatedActionsOverlayRenderer;return!!d||!!E||!!v||!!e},
hasWatchNextResponseErrorRenderer:function(v){var e=this.getPageContents(v),d,E,T,S,O;return!(v==null?0:(d=v.contents)==null?0:(E=d.twoColumnWatchNextResults)==null?0:E.secondaryResults)&&!!((T=e[0])==null?0:(S=T.itemSectionRenderer)==null?0:(O=S.contents[0])==null?0:O.backgroundPromoRenderer)},
isLiveStreamOffline_:function(v){return v?v.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(v,e,d){var E=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e),T=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];T=_.N("web_no_skip_video_on_verification_checks")?(v==null?void 0:v.status)&&T.includes(v.status):v&&v.status==="AGE_CHECK_REQUIRED";var S=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",v);S==void 0&&(S=!0);!d||this.isVideoPlayable_(v,this.getPlayerOverlays_(e))||
E||T||!S||_.dk().resolve(_.zJ).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.$_T()},
onPlayerFeedbackStartRequest_:function(v){_.b4(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:v}])},
onPlayerFeedbackArticleRequest_:function(v){_.b4(this.hostElement,"yt-help-dialog-requested",[v])},
onPlayerYpcContentRequest_:function(){var v,e,d,E,T,S,O,b,Y=((v=this.data)==null?NaN:(e=v.contents)==null?NaN:(d=e.twoColumnWatchNextResults)==null?NaN:(E=d.secondaryResults)==null?NaN:(T=E.secondaryResults)==null?NaN:(S=T.offerModule)==null?NaN:(O=S.tvfilmOfferModuleRenderer)==null?NaN:(b=O.actionButtons)==null?NaN:b.length)-1;v=[".offerButton.buttonRenderer.",".actionButtons."+(Y>=0?Y:0)+".buttonRenderer."];e=_.a(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(d=e.next();!d.done;d=e.next())for(d=d.value,E=_.a(v),T=E.next();!T.done;T=E.next())if(T="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+d+T.value,T=this.get(T+"navigationEndpoint",this.data)||this.get(T+"serviceEndpoint",this.data)||this.get(T+"command",this.data)){_.K1(T,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(v){_.Iq(this.hostElement,"yt-autonav-pause-player",v)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(v){v()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Iq(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(v)},
setPlayerState:function(v){_.d1().dispatch(_.s37(v))},
onPlayerSubscribe_:function(v){_.b4(this.hostElement,"yt-player-subscribe",[v])},
onPlayerUnsubscribe_:function(v){_.b4(this.hostElement,"yt-player-unsubscribe",[v])},
onPlayerAdYtShowToast_:function(v){_.b4(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:v.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(v){if(v)return v},
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(v){return!_.N("web_watch_move_summary_to_sd")&&!!v},
computeWatchMetadataRefresh:function(){return _.N("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.N("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var v,e,d,E;this.watchNextSecondaryResults=(v=this.data)==null?void 0:(e=v.contents)==null?void 0:(d=e.twoColumnWatchNextResults)==null?void 0:(E=d.secondaryResults)==null?void 0:E.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.N("swatcheroo_pbs_load_grid")&&!_.N("swatcheroo_provide_all_data_on_scheduled_job")){_.RM.cancelJob(this.setRichGridJobId_);var v,e,d,E,T,S,O;this.setRichGridRendererData((v=this.data)==null?void 0:(e=v.contents)==null?void 0:(d=e.twoColumnWatchNextResults)==null?void 0:(E=d.secondaryResults)==null?void 0:(T=E.secondaryResults)==null?void 0:(S=T.results)==null?void 0:(O=S[0])==null?
void 0:O.richGridRenderer)}},
setRichGridRendererData:function(v){this.richGridRendererData=v},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var v,e=(v=this.data)==null?void 0:v.engagementPanels;if(e==null?0:e.length){v=null;e=_.a(e);for(var d=e.next();!d.done;d=e.next()){d=d.value;var E=void 0;if(((E=d.engagementPanelSectionListRenderer)==null?void 0:E.targetId)==="engagement-panel-structured-description"){v=d;break}}var T,S,O;v=(T=v)==null?void 0:(S=T.engagementPanelSectionListRenderer)==null?void 0:(O=S.content)==null?void 0:O.structuredDescriptionContentRenderer;if(v==null?0:v.items){T=
[];S=_.a(v.items);for(O=S.next();!O.done;O=S.next()){O=O.value;if(!_.N("sd_horizontal_list_show_nav_killswitch")){var b=E=d=e=v=void 0,Y=void 0,q=(v=O.horizontalCardListRenderer)==null?void 0:(e=v.header)==null?void 0:(d=e.richListHeaderRenderer)==null?void 0:(E=d.navigationButton)==null?void 0:(b=E.buttonRenderer)==null?void 0:(Y=b.command)==null?void 0:Y.commandExecutorCommand;q&&q.commands&&(q.commands=q.commands.filter(function(r){return!_.L(r,_.Iw6)}))}(!O.expandableVideoDescriptionBodyRenderer&&
!O.videoDescriptionHeaderRenderer||_.N("web_delhi_colorful_sd"))&&T.push(O)}return{items:T}}}},
constructWarning_:function(v){return{text:_.pQ(v),type:"WARNING"}},
isPlaShelfEnabled_:function(v){if((this.get("adPlacements",v)||[]).length)return!0;v=this.get("playerAds",v)||[];return!(!v.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",v[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var v=this;_.Iq(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var e=this.getScrollTop()>0;this.gestures_&&(e?this.gestures_.detach():this.gestures_.attach());e!==this.showFullerscreenEdu_&&_.N("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=e,_.eK(this).getPlayerPromise().then(function(d){d.updateFullerscreenEduButtonVisibility(v.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Iq(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var v=this;this.commentsReady=!1;_.RM.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.LI(_.RM,function(){v.setComments_()},1E3)},
setComments_:function(){if(!_.N("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.zE("cmi");_.RM.cancelJob(this.setCommentsJobId_);var v=this.getPageContents(this.data);if(v&&v.length){v=_.a(v);for(var e=v.next();!e.done;e=v.next())if(e=e.value,this.get("itemSectionRenderer.sectionIdentifier",e)==="comment-item-section"){this.comments=e.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Iq(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.N("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.N("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.zE("cmc")},
doRemoveComments_:function(){this.comments={};_.N("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.RM.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.RM.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(v,e){var d=_.L(e.endpoint,_.p2);d&&(!(e=this.get("data.currentVideoEndpoint.watchEndpoint"))||d.videoId!==e.videoId||d.playlistId&&d.playlistId!==e.playlistId||d.index!==void 0&&d.index!==e.index||typeof d.startTimeSeconds!=="number"||(v.stopPropagation(),this.setScrollTop(0),_.eK(this).getPlayerPromise().then(function(E){var T=d.startTimeSeconds;E.seekTo(T);E.wakeUpControls();T<E.getDuration()&&E.playVideo()})))},
updatePlayerStartTime_:function(){var v=_.TkJ();"t"in v&&(v=_.Kqu(v.t),this.player.seekTo(v,!0))},
updateTitleFromWatchNext:function(v){v=this.getPageContents(v);var e,d;(v=_.vv(v==null?void 0:(e=v[0])==null?void 0:(d=e.videoPrimaryInfoRenderer)==null?void 0:d.title))&&_.Iq(this.hostElement,"yt-update-title",v)},
updateTitle_:function(v){v=this.get("videoDetails.title",v)||"";_.Iq(this.hostElement,"yt-update-title",v)},
syncWithRemoteVideo_:function(v,e,d){if(this.active&&this.player){var E=this.player.getVideoData();if(E.video_id===d&&(d=E.list,_.N("polymer_enable_mdx_queue")&&d&&d.startsWith("RQ")&&(d=void 0),E.video_id!==v||d!=e)){var T;_.N("kevlar_player_watch_endpoint_navigation")?T=_.EyS(_.yak(v,e)):T=this.buildWatchEndpoint_(v,e);_.Iq(this.hostElement,"yt-navigate",{endpoint:T,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(v,e,d){return _.S7(v,e,d)},
initDclkstatus_:function(){_.hhD()},
attachWatchPageSkeleton_:function(){var v=document.querySelector("#watch-page-skeleton");if(v){var e=v.querySelector("#primary-info"),d=v.querySelector("#secondary-info"),E=v.querySelector("#related");e&&_.IB(this.hostElement).querySelector("#info-skeleton").appendChild(e);d&&_.IB(this.hostElement).querySelector("#meta-skeleton").appendChild(d);E&&(_.IB(this.hostElement).querySelector("#related-skeleton").appendChild(E),this.watchNextSkeletonEl_=E);_.KX(v)}},
handlePlayerUpdated_:function(){_.eK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(v,e){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof e!=="undefined"){var d=this.watchNextSkeletonEl_.children,E=v&&v.indexSplices.length?v.indexSplices[0].index:0;v=Math.min(this.watchNextShownItems.length,d.length);e||(E=0,v=d.length);for(e=E;e<v;e++)d[e].classList.add("hidden")}},
onPlayerFullscreenChange_:function(v){_.N("external_fullscreen")||_.b4(this.hostElement,"yt-player-fullscreen",[v.fullscreen])},
onFullscreenChange_:function(v){this.fullscreen=v;this.gestures_&&this.gestures_.update(this.fullscreen);var e=_.eK(this);e.getPlayerPromise().then(function(d){d.setFauxFullscreen(!!_.SX())});
this.updateFullBleedElementLocations();v&&(e.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(v,e){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!e},
computeIsDonationShelfCollapsed_:function(v){return v},
computeShouldShowMerchShelf:function(v,e){return e&&!!v},
computeResponseHasComments:function(v){var e,d,E,T,S;return!!(v==null?0:(e=v.contents)==null?0:(d=e.twoColumnWatchNextResults)==null?0:(E=d.results)==null?0:(T=E.results)==null?0:(S=T.contents)==null?0:S.some(function(O){var b;return(O==null?void 0:(b=O.itemSectionRenderer)==null?void 0:b.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(v,e,d,E){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&E?!1:!!v&&!!Object.keys(v).length&&!e},
identity:_.B3,onWindowResized_:function(v){this.windowSize_=v;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(v){var e=this;v&&v.type!=="dataloaded"&&v.type!=="dataupdated"||_.eK(this).getPlayerPromise().then(function(d){var E=d.getPlayerState();E!==5&&E!==0&&(d=1/d.getVideoAspectRatio(),e.videoHeightToWidthRatio_!==d&&(e.videoHeightToWidthRatio_=d))})},
schedulePlayerSizeUpdate_:function(v){var e=this,d=_.N("kevlar_watch_while_v2")||_.N("web_watch_pip"),E=function(){if(e.watchMetadata){var T,S;(S=(T=e.watchMetadata).resize)==null||S.call(T)}_.eK(e).getPlayerPromise().then(function(O){if(_.N("kevlar_set_internal_player_size")){if(!d||!e.isMiniplayerActive()){var b=e.calculateCurrentPlayerSize_();O.setInternalSize(b.width,b.height)}}else O.setSize(NaN,NaN);_.N("kevlar_watch_while")&&e.updateWatchWhileScrollThreshold_()})};
v?E():_.NP(_.RM,E)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(v){this.set("data.survey",v.detail)},
onYtShowSurveyCommand_:function(v){this.set("data.survey",_.L(v,_.oL$).survey)},
onDownloadedVideoDeleted:function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1){if(!e.active||(d=e.playerData)==null||!d.offlineState||e.videoId!==v)return T.return();(E=e.player)==null||E.stopVideo();_.Ke().navigatingAwayFromWatchDeletedVideo=!0;_.K1(_.dQ3,e.hostElement);return T.yield(_.Ke().navigationFinishPromise,2)}_.Ke().navigatingAwayFromWatchDeletedVideo=!1;_.s9(T)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var v;this.theater?v=_.M3(.5625*this.windowSize_.width,480,this.windowSize_.height-185):v=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==v&&(this.watchWhileScrollThreshold_=v,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var v=_.IB(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&v){var e=this.windowSize_.height>=624,d=this.active?this.getScrollTop():0;!v.active&&e&&d>=this.watchWhileScrollThreshold_?(v.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):v.active&&(!e||d<this.watchWhileScrollThreshold_&&!_.SX())&&(v.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var v=_.IB(this.hostElement).querySelector("#secondary-inner");if(v){var e=_.IB(this.hostElement).querySelector("#below"),d=_.IB(this.hostElement).querySelector("#secondary"),E=_.IB(this.hostElement).querySelector("#comments");E&&d&&e&&(this.defaultTwoColumnLayout?(v.appendChild(E),d.appendChild(v)):(e.appendChild(E),_.Rh(e,v)))}}},
isTwoColumnsChanged_:function(v,e){if(v!==!0||e!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(v=_.IB(this.hostElement).querySelector("#secondary-inner"))){e=_.IB(this.hostElement).querySelector("#below");var d=_.IB(this.hostElement).querySelector("#secondary"),E=_.IB(this.hostElement).querySelector("#comments");E&&d&&e&&(this.isTwoColumns_?(v.appendChild(E),d.appendChild(v)):(e.appendChild(E),
_.Rh(e,v)))}}else{v=!_.N("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);e=_.IB(this.hostElement).querySelector("#panels");var T=_.IB(this.hostElement).querySelector("#alerts");d=_.IB(this.hostElement).querySelector("#playlist");E=_.IB(this.hostElement).querySelector("#related");var S=_.IB(this.hostElement).querySelector("#donation-shelf"),O=_.IB(this.hostElement).querySelector("#comments");this.isTwoColumns_?(T=_.IB(this.hostElement).querySelector("#secondary-inner"),
v&&(T.appendChild(e),T.appendChild(d)),T.appendChild(S),T.appendChild(E)):(v&&(_.od(e,T),_.od(d,T)),_.od(S,T),O&&_.od(E,O));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.N("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.N("web_watch_enable_fs_squeezeback_panels")&&_.N("web_watch_theater_chat")){var v=_.IB(this.hostElement).querySelector("#chat-container"),e=this.theater&&!this.fullscreen||_.N("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&e?(e=_.IB(this.hostElement).querySelector("#columns"),(v==null?void 0:v.parentElement)!==e&&e.append(v),this.fixedPanels=!0):(this.fixedPanels=
!1,e=_.IB(this.hostElement).querySelector("#playlist"),v&&e?_.JZ(v,e):_.xf(new _.kL("Missing element when updating chat location",{"chatContainer defined":!!v,"playlist defined":!!e})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(v,e){return _.N("sw_metadata_vis_toggle_ks")?!0:!!v||!!e},
computeForceDarkPanelTheme:function(v){return _.N("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&v:!1},
safeUpdateStyles:function(v){try{_.qr(this.hostElement,v)}catch(e){_.xf(e)}},
videoHeightToWidthRatioChanged_:function(v,e){e&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(v){this.videoHeightToWidthRatio_=1/v},
computeIsVerticalVideo_:function(v){return v>=1},
computeIsFourThreeToSixteenNineVideo_:function(v){return v<=.7501&&v>=.5624},
computeIsExtraWideVideo_:function(v){return v<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.eK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.eK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.BkJ(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(v){var e=_.yy(v)||0;_.mZ(v,e+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var v=_.yy("yt-fullerscreen-edu-button-click-count")||0,e=_.yy("yt-fullerscreen-edu-button-shown-count")||0,d=_.Wi("external_fullscreen_button_shown_threshold"),E=v>=_.Wi("external_fullscreen_button_click_threshold")||e>=d;_.eK(this).getPlayerPromise().then(function(T){T.updateFullerscreenEduButtonSubtleModeState(E)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(v,e){return e},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.dk().resolve(_.zJ).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var v=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.RM.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.RM.addLowPriorityJob(function(){v.fullHeightPanelPositionUpdateJobId=0;var e=_.IB(v.hostElement).querySelector("#secondary"),d=_.IB(v.hostElement).querySelector("#fixed-secondary");e=e.getBoundingClientRect();var E=e.width;v.swatcherooSqueezeback&&
(E+=_.xV);if(v.swatcherooSqueezeback){var T=_.IB(v.hostElement).querySelector("#squeezeback-constraining-container");T.style.width=E+"px";T.style.flex="0 0 "+E+"px"}d.style.width=E+"px";d.style.left=e.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var v=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.RM.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.RM.addLowPriorityJob(function(){v.panelMaxHeightUpdateJob_=0;var e;!v.isTwoColumns_||v.theater||v.fullscreen?e=460:e=v.calculateNormalPlayerSize_().height;var d=e+"px";_.N("live_chat_taller_height")&&!v.theater&&(d="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.N("live_chat_medium_height")&&!v.theater&&(d="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.N("live_chat_scaled_height")&&!v.theater&&(d="calc(100vh - var(--ytd-toolbar-height) - 238px)");v.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":e+"px","--ytd-watch-flexy-chat-max-height":d,"--ytd-watch-flexy-structured-description-max-height":e+"px","--ytd-watch-flexy-comments-panel-max-height":e+"px","--ytd-comments-engagement-panel-content-height":e+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(v){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",v)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ya(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(v){var e=_.IB(this.hostElement).querySelector("#engagement-panel-scrim");v?e.addEventListener("tap",_.hG(this,this.onEngagementPanelScrimClick_)):e.removeEventListener("tap",_.hG(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(v){if(this.hostElement.contains(v)&&!this.scrollToAnimation_.isAnimating()){var e=v.offsetTop-24;v=v.offsetTop+v.offsetHeight+24;var d=this.getPageScrollingElement(),E=this.getScrollTop(),T=E+d.clientHeight-56;if(e<E+56)e-=56;else if(v>T)e=v-d.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtSignalActionScrollToComments:function(){var v=this.hostElement.querySelector("#comments");if(v&&!this.scrollToAnimation_.isAnimating()){v=v.offsetTop-56-24;if(_.N("kevlar_comment_teaser_scroll_to_midpoint")&&(v-=_.jy().height/3,v<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,v),500)}},
onYtEngagementPanelVisibleChanged:function(v,e,d){if(this.active&&this.trackEngagementPanelVisibility&&!_.Lq$.includes(d)){if(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.YB(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var E=_.dk().resolve(_.tx);this.visiblePanelIdentifiers_.forEach(function(T){T!==d&&E.hidePanel(T)})}this.visiblePanelIdentifiers_.add(d)}e!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&e!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(d);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(v){return v?"":"watch-active-metadata"},
computeNewMetadataClass:function(v){return v?"watch-active-metadata":""},
computeIsSingleColumn:function(v,e){return e&&!v},
computeFullBleedPlayer:function(v,e,d){return _.N("web_watch_error_screen_fix")?_.N("external_fullscreen")&&v||e||this.enableFullBleedSingleColumnDefaultPlayer&&d:v||e||this.enableFullBleedSingleColumnDefaultPlayer&&d},
computeDefaultLayout:function(v){return!v},
computeDefaultTwoColumnLayout:function(v,e){return!v&&e},
updatePanelsLocation:function(){if(_.N("web_watch_enable_fs_squeezeback_panels")){var v=_.IB(this.hostElement).querySelector("#below"),e=_.IB(this.hostElement).querySelector("#panels"),d=_.IB(this.hostElement).querySelector("#playlist"),E=_.IB(this.hostElement).querySelector("#chat-container"),T=_.IB(this.hostElement).querySelector("#panels-full-bleed-container"),S=_.IB(this.hostElement).querySelector("#secondary-inner");if(v&&e&&d&&E&&T&&S){var O=this.fullscreen||this.theater&&this.iMaxTheaterMode,
b=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;O?(T.appendChild(e),T.appendChild(E),T.appendChild(d)):this.isTwoColumns_?(b?(v=_.IB(this.hostElement).querySelector("#columns"),(E==null?void 0:E.parentElement)!==v&&v.append(E),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.Rh(S,E),_.Rh(S,e),_.Rh(S,d)):(v.appendChild(e),v.appendChild(E),v.appendChild(d))}}},
swatcherooUpdatePanelsLocation:function(v,e,d,E,T,S){if(this.is==="ytd-watch-grid"){e=v&&!e;this.swatcherooSplitScroll&&(e?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));d=_.IB(this.hostElement).querySelector("#panels");var O=_.IB(this.hostElement).querySelector("#playlist"),b=_.IB(this.hostElement).querySelector("#fixed-secondary"),Y=_.IB(this.hostElement).querySelector("#fixed-below"),
q=_.IB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),r=_.IB(this.hostElement).querySelector("#chat-container");S&&(v?b.appendChild(d):Y.appendChild(d));T?v?b.appendChild(r):Y.appendChild(r):_.JZ(r,q);E?v?b.appendChild(O):Y.appendChild(O):_.JZ(O,q);this.swatcherooSplitScroll&&(v=_.IB(this.hostElement).querySelector("#secondary"),E=_.IB(this.hostElement).querySelector("#columns"),T=_.IB(this.hostElement).querySelector("#fixed-columns-secondary"),e?
T.appendChild(v):E.appendChild(v))}},
computeMetadataSkinnyMode:function(v,e,d){return this.is!=="ytd-watch-grid"?!1:v?d:e},
computeWatchWhilePanelsActive:function(v,e){return v||e},
computeNoBorderOnChat:function(v){return _.N("web_watch_theater_chat_no_border")&&v},
computeLiveChatPresentAndExpanded:function(v,e){return v&&!e},
computePanelExpanded:function(v,e,d){return v||e||d},
computeSqueezeback:function(v,e,d,E){if(_.N("web_watch_enable_fs_squeezeback_panels")){var T=this.iMaxTheaterMode&&this.theater;return(v||e||d)&&(E||T)}},
computeSwatcherooSqueezeback:function(v,e,d){return this.is!=="ytd-watch-grid"||_.N("ww_squeezeback_killswitch")?!1:v&&e&&d},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(v){_.eK(this).getPlayerPromise().then(function(e){var d;(d=e.changeMarkerVisibility)==null||d.call(e,_.L(v,_.cd).isVisible||!1,_.L(v,_.cd).entityKeys||[],_.L(v,_.cd).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(v){this.liveChatCollapsed=v.detail;_.d1().dispatch(_.kRV(v.detail));if(!this.liveChatCollapsed&&this.squeezeback){var e=_.dk().resolve(_.tx);this.visiblePanelIdentifiers_.forEach(function(d){e.hidePanel(d)})}},
onSetPlaylistCollapsed:function(v){_.N("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!v)},
provideRenderingData:function(v,e){switch(v){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=e;break;case "PRIMARY_INFO":_.N("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=e);this.videoPrimaryInfoRendererValue=e==null?void 0:e.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.N("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=e);this.videoSecondaryInfoRendererValue=e==null?void 0:e.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
e;break;case "CLARIFICATION":this.clarifyBoxValue=e;break;case "LIVE_CHAT":this.conversationBar=e;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=e;break;case "PLAYLIST":this.externalPlaylistData_=e!=null?e:{};break;case "MERCH_SHELF":this.merchShelfValue=e==null?void 0:e.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=e;break;case "TICKET_SHELF":this.ticket=e;break;case "OFFER_MODULE":this.offerModule=e;break;case "LIMITED_STATE":this.limitedStateValue=
e;break;case "DONATION_SHELF":this.donation=e;break;case "ALERTS":this.alertsValue=e;break;case "COMMENTS":this.comments=e;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=e;break;case "ENGAGEMENT_PANELS":this.engagementPanels=e;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=e;break;case "RICH_GRID_RENDERER":this.richGridRendererData=e;break;case "EXPANDABLE_METADATA":this.expandableMetadata=e;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
e;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=e}},
toggleCinematicsActive:function(v){this.cinematicsActive=v},
isMiniplayerActive:function(){return _.dk().resolve(_.P0).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var A0v;_.HkC=function(v){if(!(0,_.gVM)(v))throw Error("K``"+String(v));};
_.ZkQ=function(v){return v.findIndex(function(e){return A0v.indexOf(e.tagName)>-1})>-1};
_.c0Q=function(){var v=_.dk().resolve(_.s1);_.z40(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(v.isFullscreenEnabled()?_.WF(document.documentElement):_.sAt(document.documentElement))};
A0v=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.YA=new Map;_.YA.set(32,59972);_.YA.set(27,50765);_.YA.set(70,60102);_.YA.set(76,60221);_.YA.set(77,60222);_.YA.set(74,60223);_.YA.set(84,60224);_.YA.set(38,61941);_.YA.set(40,61942);_.YA.set(73,62521);_.YA.set(67,62522);_.YA.set(80,63390);_.YA.set(78,63397);_.YA.set(75,59972);_.YA.set(188,63385);_.YA.set(190,63384);_.YA.set(36,63387);
_.YA.set(35,63386);_.YA.set(37,63388);_.YA.set(39,63389);_.YA.set(79,63423);_.YA.set(87,63424);_.YA.set(107,63426);_.YA.set(109,63425);_.YA.set(65,63428);_.YA.set(83,63430);_.YA.set(68,63429);_.YA.set(221,63431);_.YA.set(219,63432);_.YA.set(97,63439);_.YA.set(98,63440);_.YA.set(99,63441);_.YA.set(100,63442);_.YA.set(101,63443);_.YA.set(102,63444);_.YA.set(103,63445);_.YA.set(104,63446);_.YA.set(105,63447);_.mt=new Map;_.mt.set(80,63390);_.mt.set(78,63397);_.mt.set(188,63400);_.mt.set(190,63401);
_.mt.set(191,60765);_.mt.set(13,247917);_.y7=new Map;_.qW=new Map;
}catch(e){_._DumpException(e)}
try{
var Gq_,fgO,RdQ,P3w;_.Lst=function(v){return v.ui.guideIsVisibleButNotPersistent};
_.VxQ=function(v){return v.ui.tabGesturesIsActive};
_.oGi=function(){var v=_.aH("service_worker_scope");try{return navigator.serviceWorker.getRegistration(v)}catch(e){return Promise.reject(e)}};
_.JfQ=function(v){return!(!v||!v.pushManager)};
Gq_=function(){return _.oGi().then(_.JfQ).catch(function(){return!1})};
_.Mxf=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Gq_():Promise.resolve(!1)};
_.txv=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
fgO=function(){var v,e,d;return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(_.Jd.getInstance(),2);case 2:v=E.yieldResult;if(!v){e=void 0;E.jumpTo(3);break}return E.yield(v.get("lmqf"),4);case 4:e=E.yieldResult;case 3:switch((d=e)||(d="SD"),d){case "HD":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
RdQ=function(v){var e,d,E;return _.I(function(T){if(T.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.N("disable_av1_setting")){var S=window.localStorage["yt-player-av1-pref"];S=S==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":S==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else S="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(e=v===S)return T.jumpTo(2);E=d=v;return T.yield(fgO(),3)}T.nextAddress!=2&&(e=E===T.yieldResult);return T.return(e)})};var x4v;var Bht=_.sQ.IronButtonState,C39=(0,_.$Z)(HTMLElement);
_.xv({_template:function(){if(x4v!==void 0)return x4v;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;P3w===void 0&&(P3w=document.createElement("template"));var E=P3w;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return x4v=v},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Bht,_.$l,_.NS,_.VO],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(v){var e=(0,_.$k)(this);e.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:v});e.shadowRoot.appendChild(v);return C39.prototype._attachDom.call(this,v)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var v=this.contentElement;v&&v.selectedItem&&this._setSelectedItem(v.selectedItem)},
get contentElement(){for(var v=_.tW(this.$.content).getDistributedNodes(),e=0,d=v.length;e<d;e++)if(v[e].nodeType===Node.ELEMENT_NODE)return v[e]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(v){this._setSelectedItem(v.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(v){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v)===this&&this.open()},
_selectedItemChanged:function(v){var e="";v?e=v.label||v.getAttribute("label")||v.textContent.trim():e="";this.value=e;this._setSelectedItemLabel(e)},
_computeMenuVerticalOffset:function(v,e){return e?e:v?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var v=this.opened?"true":"false",e=this.contentElement;e&&e.setAttribute("aria-expanded",v)}});_.dl=new _.gG("navigateAction");var Xx9=new _.gG("formRenderer");var Ev=function(){var v=_.kv.apply(this,arguments)||this;v.showInput=!1;return v};
_.V(Ev,_.kv);_.W=Ev.prototype;_.W.detached=function(){this.showInput&&window.removeEventListener("click",_.hG(this,this.closeOnOutsideClick_))};
_.W.stopPropagation_=function(v){this.showInput&&v.stopPropagation()};
_.W.closeOnOutsideClick_=function(v){this.closeOnOutsideClickCondition(v)&&(this.showInput=!1,window.removeEventListener("click",_.hG(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.W.closeOnOutsideClickCondition=function(){return!0};
_.W.closeOnOutsideClickHandler=function(){};
_.W.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.hG(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.W.openOnClickHandler=function(){};
_.W.showInputChanged=function(){};
_.W.setShowInput=function(v){this.showInput=v};
Ev.prototype.setShowInput=Ev.prototype.setShowInput;Ev.prototype.showInputChanged=Ev.prototype.showInputChanged;Ev.prototype.openOnClickHandler=Ev.prototype.openOnClickHandler;Ev.prototype.openOnClick_=Ev.prototype.openOnClick_;Ev.prototype.closeOnOutsideClickHandler=Ev.prototype.closeOnOutsideClickHandler;Ev.prototype.closeOnOutsideClickCondition=Ev.prototype.closeOnOutsideClickCondition;Ev.prototype.closeOnOutsideClick_=Ev.prototype.closeOnOutsideClick_;Ev.prototype.stopPropagation_=Ev.prototype.stopPropagation_;
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ev.prototype,"showInput",void 0);_.c([_.Kq("click"),_.Kq("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],Ev.prototype,"stopPropagation_",null);_.c([_.$v("showInput"),_.w("design:type",Function),_.w("design:paramtypes",[Boolean]),_.w("design:returntype")],Ev.prototype,"showInputChanged",null);_.c([_.Lq()],Ev);_.zds=[Ev.prototype];var lgQ;var HDt;var T7=function(){return _.P.apply(this,arguments)||this};
_.V(T7,_.P);_.W=T7.prototype;_.W.computePreselectedOption=function(v,e){return e===this.itemSelected_?v:void 0};
_.W.dataChanged_=function(){var v=this;this.preselectedSubreason=this.itemSelected_=-1;var e;(e=this.data)!=null&&e.key&&_.Uh(this,function(){var d,E=Number((d=v.data)==null?void 0:d.key);!Number.isNaN(E)&&(v.itemSelected_=E,d=(d=(v.data.items||[])[E])&&d.optionSelectableItemRenderer&&d.optionSelectableItemRenderer.preselectedIndex)&&(v.preselectedSubreason=d)})};
_.W.isSubReasonHidden_=function(v,e){return v!=e};
_.W.onTopItemSelected_=function(v,e){for(var d=_.IB(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),E=0,T=d.length;E<T;E++)d[E].select(0);_.b4(this.hostElement,"yt-report-form-update",[e.item.value]);v.stopPropagation()};
_.W.onItemSelected_=function(v,e){_.b4(this.hostElement,"yt-report-form-update",[e.item.value]);v.stopPropagation()};
_.W.getItem_=function(v){return v.serviceItem?v.serviceItem:v.navigationItem?v.navigationItem:v.optionSelectableItemRenderer?v.optionSelectableItemRenderer:null};
_.W.computeText_=function(v){return(v=this.getItem_(v))?this.ytRendererBehavior.getSimpleString(v.text):null};
_.W.validate=function(){return this.itemSelected_!==-1};
_.W.computeAriaLabel_=function(v){var e=_.vv(v.text);(v=v.accessibility&&v.accessibility.accessibilityData&&v.accessibility.accessibilityData.label)&&(e+=". "+v);return e};
_.W.computeItemSelected_=function(v){return v};
_.W.preventSelection_=function(v){v.stopPropagation();this.tooltipTapped=!0};
_.W.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.W.updateItemSelectedFromBinding=function(v){this.itemSelected_=v.detail.value};
_.W.save=function(){var v;this.validate()&&(v=this.data)!=null&&v.items&&(v=this.data.items[this.itemSelected_],v!=null&&v.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(v.optionSelectableItemRenderer.submitEndpoint)||_.mN(this.hostElement,[v.optionSelectableItemRenderer.submitEndpoint])))};
T7.prototype.onPaperRippleTransitionEnd_=T7.prototype.onPaperRippleTransitionEnd_;T7.prototype.dataChanged_=T7.prototype.dataChanged_;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],T7.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],T7.prototype,"data",void 0);_.c([_.f({value:-1}),_.w("design:type",Number)],T7.prototype,"itemSelected_",void 0);
_.c([_.f({computed:"computeItemSelected_(itemSelected_)"}),_.w("design:type",Number)],T7.prototype,"value",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],T7.prototype,"restoreFocusOnClose",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],T7.prototype,"tooltipTapped",void 0);_.c([_.f({value:-1}),_.w("design:type",Number)],T7.prototype,"preselectedSubreason",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],T7.prototype,"dataChanged_",null);_.c([_.Kq("transitionend"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],T7.prototype,"onPaperRippleTransitionEnd_",null);_.c([_.lh({is:"yt-options-renderer",disableElementRegistration:!0})],T7);
_.A(T7,"yt-options-renderer",function(){if(HDt===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;lgQ===void 0&&(lgQ=document.createElement("template"));var E=lgQ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);HDt=v}v=HDt;return v},{mode:2});var Aff;var ZD_;var cfC;var wxO;var Fst;var Q_w;var SH=function(){return _.P.apply(this,arguments)||this};
_.V(SH,_.P);SH.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
SH.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
SH.prototype.onTap=function(v){if(this.hostElement.classList.contains("selected")||_.b4(this.hostElement,"yt-share-panel-can-select-contact-action")[0])v&&v.detail&&(v.detail.x||v.detail.y)&&_.IB(this.hostElement).querySelector("#target").blur(),(v=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),v={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:v?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.b4(this.hostElement,"yt-share-panel-select-contact-action",[v])};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.c([_.f({observer:"onDataChanged"}),_.w("design:type",Object)],SH.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.w("design:type",String)],SH.prototype,"componentTitle",void 0);_.c([_.sg("#thumbnail"),_.w("design:type",Object)],SH.prototype,"thumbnail",void 0);_.c([_.lh({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],SH);
_.A(SH,"yt-enrolled-contact-renderer",function(){if(Q_w===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Fst===void 0&&(Fst=document.createElement("template"));var E=Fst;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Q_w=v}v=Q_w;return v},{mode:2});var gG9;var uKi;var Wf=function(){return _.P.apply(this,arguments)||this};
_.V(Wf,_.P);Wf.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Wf.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Wf.prototype.onTap=function(v){if(this.hostElement.classList.contains("selected")||_.b4(this.hostElement,"yt-share-panel-can-select-contact-action")[0])v&&v.detail&&(v.detail.x||v.detail.y)&&_.IB(this.hostElement).querySelector("#target").blur(),(v=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),v={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:v?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.b4(this.hostElement,"yt-share-panel-select-contact-action",[v])};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.c([_.f({observer:"onDataChanged"}),_.w("design:type",Object)],Wf.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.w("design:type",String)],Wf.prototype,"componentTitle",void 0);_.c([_.sg("#thumbnail"),_.w("design:type",Object)],Wf.prototype,"thumbnail",void 0);_.c([_.lh({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Wf);
_.A(Wf,"yt-suggested-contact-renderer",function(){if(uKi===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;gG9===void 0&&(gG9=document.createElement("template"));var E=gG9;d.call(e,E.content.cloneNode(!0),v.content.firstChild);uKi=v}v=uKi;return v},{mode:2});var aD=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-share-panel-reset-action":"onReset"};return v};
_.V(aD,_.P);aD.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"}}}}}};
aD.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.b4(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
aD.prototype.onReset=function(){for(var v=_.IB(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),e=v.length-1;e>=0;e--)v[e].classList.toggle("selected")};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],aD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],aD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f({observer:"onDataChanged"}),_.w("design:type",Object)],aD.prototype,"data",void 0);
_.c([_.lh({is:"yt-contact-section-renderer",disableElementRegistration:!0})],aD);
_.A(aD,"yt-contact-section-renderer",function(){if(wxO===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;cfC===void 0&&(cfC=document.createElement("template"));var E=cfC;d.call(e,E.content.cloneNode(!0),v.content.firstChild);wxO=v}v=wxO;return v},{mode:2});var ii=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return v};
_.V(ii,_.P);_.W=ii.prototype;_.W.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"}}}};
_.W.onYtRefreshFormCommand=function(v){var e;(v=_.L((e=_.L(v,_.nNI))==null?void 0:e.formRenderer,Xx9))&&this.set("data",v)};
_.W.reset=function(){var v=_.IB(this.hostElement).querySelector("#fields").children;v=_.a(v);for(var e=v.next();!e.done;e=v.next())e=e.value,e.reset&&e.reset()};
_.W.getForm=function(){var v={},e=_.IB(this.hostElement).querySelector("#fields").children;e=_.a(e);for(var d=e.next();!d.done;d=e.next()){d=d.value;if(!d.validate())return null;v[d.data.key]=d.value}return v};
_.W.submitFormFields=function(){if(this.fields)for(var v=_.a(this.fields),e=v.next();!e.done;e=v.next())e=e.value,e.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?e.save():e.nodeName==="YT-OPTIONS-RENDERER"&&e.save()};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],ii.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ii.prototype,"data",void 0);_.c([_.Nr("#fields > *"),_.w("design:type",Array)],ii.prototype,"fields",void 0);
_.c([_.lh({is:"yt-form-renderer",disableElementRegistration:!0})],ii);
_.A(ii,"yt-form-renderer",function(){if(ZD_===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Aff===void 0&&(Aff=document.createElement("template"));var E=Aff;d.call(e,E.content.cloneNode(!0),v.content.firstChild);ZD_=v}v=ZD_;return v},{mode:2});var nGf;var Ov=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return v};
_.V(Ov,_.P);Ov.prototype.onCheckboxChange=function(v){this.data&&(v=(this.checked=_.ew(v).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}})};
Ov.prototype.handleUpdateCheckboxCommand=function(v){(v=_.L(v,_.mU6))&&this.data&&this.data.id===v.id&&(this.set("data.disabled",v.disabled),this.set("data.title",v.title))};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Ov.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ov.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],Ov.prototype,"checked",void 0);_.c([_.z({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Ov);
_.A(Ov,"ytd-settings-checkbox-renderer",function(){if(nGf!==void 0)return nGf;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return nGf=v},{mode:1});var D4i;var ID=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return v};
_.V(ID,_.P);ID.prototype.dataChanged=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return v.radio.removeAttribute("checked"),!v.data||!v.data.id||v.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.txv()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(e=v.data&&v.data.id)?d.yield(RdQ(v.data.id),4):d.jumpTo(3):(v.set("data.hidden",!0),d.jumpTo(0));d.nextAddress!=3&&(e=d.yieldResult);e&&_.b4(v.hostElement,"yt-select-settings-radio-option",[v.data.id]);_.s9(d)})};
ID.prototype.onButtonChanged=function(v){_.ew(v).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.dk().resolve(_.EI).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.b4(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
ID.prototype.onSelectOption=function(v){this.data&&this.data.id&&(this.data.id===v?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
ID.prototype.dataChanged=ID.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ID.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],ID.prototype,"ytActionHandlerBehavior",void 0);_.c([_.sg("#radio"),_.w("design:type",Object)],ID.prototype,"radio",void 0);_.c([_.f(),_.w("design:type",Object)],ID.prototype,"data",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],ID.prototype,"dataChanged",null);_.c([_.z({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],ID);
_.A(ID,"ytd-settings-radio-option-renderer",function(){if(D4i!==void 0)return D4i;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return D4i=v},{mode:1});var U4S;var bi=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return v};
_.V(bi,_.P);
bi.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"}}}};
bi.prototype.handleUpdateTextCommand=function(v){(v=_.L(v,_.yMg))&&this.data&&this.data.id===v.id&&this.set("data",v)};
bi.prototype.handleUpdateConnectedAppRendererCommand=function(v){if(_.L(v,_.hYc)&&this.data){var e,d;if(v=(e=_.L(v,_.hYc))==null?void 0:(d=e.newConnectedAppRenderer)==null?void 0:d.connectedAppRenderer)this.data=v}};
bi.prototype.computeConnectedAppStyle=function(v){return v.style?v.style.toLowerCase().replace(/_/g,"-"):""};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],bi.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],bi.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.w("design:type",String)],bi.prototype,"connectedAppStyle",void 0);_.c([_.z({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],bi);
_.A(bi,"ytd-connected-app-renderer",function(){if(U4S!==void 0)return U4S;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return U4S=v},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.tz("iuT5Oc");

_.fX();
}catch(e){_._DumpException(e)}
try{
_.tz("L3n37");
var pi$=function(v){return v.watch.isLearningJourneyActive},vef=_.bH(115994),eNY=_.bH(115993),dkY=function(v,e,d){var E=this;
var T=d.dragDownAction;this.layer=0;this.JSC$23100_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.JSC$23100_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.fullscreen=!1;var S=_.NC();_.Y_(S,vef,this.layer);_.Y_(S,eNY,this.layer);this.dragDownAction=function(){T();_.ca(S,{visualElement:E.fullscreen?vef:eNY})};
this.gesture=new _.Ip(v,e,this.JSC$23100_watchConfig,"pandown");this.attach()};
dkY.prototype.attach=function(){this.gesture.attach()};
dkY.prototype.detach=function(){this.gesture.detach()};
dkY.prototype.update=function(v){this.fullscreen=v;this.gesture.config=v?this.JSC$23100_watchFullScreenConfig:this.JSC$23100_watchConfig};var Eer=function(v){_.bC.call(this);var e=this;this.rootElement=v;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return e.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(d){e.initOrDisposeActiveModules(d)}));
this.onAttached()};
_.V(Eer,_.bC);_.W=Eer.prototype;_.W.getRoot=function(){return this.rootElement};
_.W.getElement=function(v){return this.rootElement.getElement(v)};
_.W.setPlayerResponse=function(v){this.playerResponse=v;this.publish("PLAYER_RESPONSE_UPDATED",v)};
_.W.getPlayerResponse=function(){return this.playerResponse};
_.W.setWatchNextResponse=function(v){this.watchNextResponse===v?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=v,this.publish("WATCH_NEXT_RESPONSE_UPDATED",v))};
_.W.getWatchNextResponse=function(){return this.watchNextResponse};
_.W.registerActionHandler=function(v,e){var d=this;if(_.N("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.Qf(_.FT.getInstance(),(E[v]=e,E),this.getRoot())}else this.actionHandlers.has(v)||(this.actionHandlers.set(v,[]),E={},_.Qf(_.FT.getInstance(),(E[v]=function(){var T=_.Xa.apply(0,arguments);return(d.actionHandlers.get(v)||[]).map(function(S){return S.apply(null,_.t7(T))})},E),this.getRoot())),this.actionHandlers.get(v).push(e)};
_.W.unregisterActionHandler=function(v){if(_.N("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.gb(_.FT.getInstance(),(e[v]=!0,e),this.getRoot())}else(e=this.actionHandlers.get(v))?(e.pop(),e.length===0&&(e={},_.gb(_.FT.getInstance(),(e[v]=!0,e),this.getRoot()),this.actionHandlers.delete(v))):_.xf(new _.kL("Attempted to unregister an action handler which is not registered.",v))};
_.W.addPageDisposeJob=function(v){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.NHU(this.rootElement.pageDisposeJobs,v)};
_.W.removePageDisposeJob=function(v){this.rootElement.pageDisposeJobs&&_.H3(this.rootElement.pageDisposeJobs,v)};
_.W.dispatchEvent=function(v,e){_.Iq(this.rootElement,v,e)};
_.W.provideRenderingData=function(v,e){this.rootElement.provideRenderingData(v,e)};
_.W.scrollWatchTo=function(v,e){var d;(d=this.watchScrollManager)==null||d.scrollWatchTo(v,e)};
_.W.focusOnPlayer=function(){var v=this.getElement("PLAYER");_.Uh(v,function(){if(v&&v.firstElementChild){var e=v.querySelector(".html5-video-player");e&&(_.Sq(_.dk().resolve(_.oZ)),e.focus())}else _.xf(Error("No"))})};
_.W.updateCinematicFullscreenConfig=function(){var v=!!this.rootElement.theater,e=!!this.rootElement.fullscreen,d;(d=this.watchCinematicManager)==null||_.fJ(d,e,v)};
_.W.subscribeToActiveChanged=function(v,e){e=e===void 0?!0:e;var d=_.ji(_.d1(),pi$,function(E){v(E)});
e&&v(pi$(_.d1().getState()));return d};
_.W.isActive=function(){return pi$(_.d1().getState())};
_.W.onAttached=function(){var v=_.N("external_fullscreen");_.N("use_unified_flag_accessor")&&(v=_.dk().resolve(_.fBs).retriever.getFlag(_.UuJ));(v||_.zr("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.W.initPersistentModules=function(){if(_.N("kevlar_watch_flexy_theater_manager")){var v=new _.OD6(this);_.Yh(this,v)}v=new _.gGu(this);_.Yh(this,v);v=new _.J2(this);_.Yh(this,v);v=new _.Bd(this);_.Yh(this,v);v=new _.NZr(this);_.Yh(this,v);v=new _.Ma(this);_.Yh(this,v);_.N("kevlar_watch_flexy_playlist_manager")&&(v=new _.VIk(this),_.Yh(this,v))};
_.W.initOrDisposeActiveModules=function(v){v?(this.watchScrollManager=new _.Xu(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.i4m(this)),this.activeModules.push(new _.mu$(this)),this.activeModules.push(new _.fVT(this)),this.activeModules.push(new _.CJ(this)),_.N("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.hHV(this)),this.activeModules.push(new _.yEm(this)),_.N("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Pg6(this)),
_.N("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.VxD(this)),_.N("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.txk(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.N("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.KEa(this)),_.N("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Fsa(this)),v=_.N("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.N("kevlar_watch_flexy_comments_manager")&&!v&&this.activeModules.push(new _.HDa(this)),_.N("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Gh(this)),this.activeModules.push(new _.hdB(this)),this.activeModules.push(new _.IVJ(this)),_.N("web_enable_timely_actions")&&this.activeModules.push(new _.s_m(this)),_.N("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.cz6(this)),_.N("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.xuf(this)),
_.N("web_fullscreen_components")&&this.activeModules.push(new _.su$(this)),_.N("web_player_rtr_ctrls")&&this.activeModules.push(new _.Fik(this))):(_.vw(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.W.disposeInternal=function(){_.bC.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.vP.Object.defineProperties(Eer.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var Ttr={},S$a=["learning-journey-engagement-panel","PAlearning_chat"];
Ttr.YtdLearningJourneyWatchBehavior=[_.n.YtRendererBehavior,_.UF.YtPlayerListenerBehavior,_.ae.YtRendererstamperBehavior,_.$M.YtActionHandlerBehavior,_.Rp.YtPageBehavior,_.KR.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 _.zr("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.N("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 _.zr("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 _.N("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.N("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 _.Wi("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Wi("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!_.N("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.N("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 _.N("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("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 _.N("web_watch_rounded_player_large")||_.N("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 _.N("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.N("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("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 _.N("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("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:_.FN(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.FN(["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 v=this;this.watchController=void 0;this.pageDisposeJobs=[function(){v.showMetadataPlaceholder_()},
function(){_.N("web_watch_dont_clear_comments")||v.clearComments_()},
function(){v.clearPlayerAds_()},
function(){v.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;_.N("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.N("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.Jar(function(){return _.eK(v)},this.hostElement);
this.pageDisposeJobs.push(function(){v.youThereManager_.reset()});
_.N("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){v.resetFullerscreenEduButtonForNewPlayback_()}));
_.N("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.WA;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;_.N("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.N("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));_.N("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.hG(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(v){v&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:v}),v.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(v){_.N("kevlar_watch_flexy_theater_manager")&&(this.theater=v,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.N("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(v){!_.N("kevlar_watch_while_v2")&&!_.N("web_watch_pip")||v||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(v){this.active!==void 0&&(this.fullscreen=v,_.N("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(v){this.active!==void 0&&(_.Iq(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.N("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(v>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(v){this.initCsi_();this.updatePageData_(v)},
updatePageData_:function(v){var e=this;if(v)if(this.data===v){this.onPageLoadWithSameData_();var d;(d=this.watchController)==null||d.setWatchNextResponse(this.data)}else this.data=v;this.playlist&&_.BF({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.zE("nw");this.loading=!1;_.LI(_.RM,function(){e.initDclkstatus_();var E,T=((E=e.player)==null?void 0:E.getVideoData().cpn)||"";_.m_r(function(S,O){_.XYt(S,O,T)})})},
onPageLoadWithSameData_:function(){_.N("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 v=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!v);this.set("loadingData.playlistLoading",v&&v!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),v=this.watchNextSkeletonEl_.firstElementChild;v;)v.classList.remove("hidden"),v=v.nextElementSibling;var e,d,E;v=(e=this.loadingData)==null?void 0:(d=e.endpoint)==null?void 0:(E=d.watchEndpoint)==null?void 0:E.videoId;var T;v&&(T="https://i.ytimg.com/vi/"+v+"/frame0.jpg");_.IB(this.hostElement).querySelector("#player").style.backgroundImage=T?"url("+T+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var v=_.IB(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&v&&(v.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var e,d;(d=(e=this.watchMetadata).updateSentimentBarWidth)==
null||d.call(e);var E,T;(T=(E=this.watchMetadata).resize)==null||T.call(E)}_.IB(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(v){var e=_.IB(this.hostElement).querySelector(v);e?_.aq(e,!1):_.xf(new _.kL("Overscroll monitor not found for component: ",v))},
removeSplitScrollMouseTrap:function(v){var e=_.IB(this.hostElement).querySelector(v);e?_.Oz(e):_.xf(new _.kL("Disposal component for  overscroll monitoring not found: ",v))},
onLoadingChanged_:function(v){v?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(v){var e=this;v?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.RM.addLowPriorityJob(function(){e.onWindowResized_(_.Jk(!0))})},
updateTheaterModeState_:function(v){if(!_.N("kevlar_watch_flexy_theater_manager")){v=v||this.fullWindowMode_;if(this.theater!==void 0||v)this.theater=v;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();v&&_.b7f()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var v=this.theater;_.N("external_fullscreen")&&this.fullscreen&&(v=!0);v=v?_.IB(this.hostElement).querySelector("#player-full-bleed-container"):_.IB(this.hostElement).querySelector("#player-container-inner");var e=this.getPlayerContainer(),d=_.N("kevlar_watch_while_v2")||_.N("web_watch_pip");e.parentElement!==v&&(d&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.eK(this).appendTo(v,e),v.appendChild(_.IB(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var v=this;return _.I(function(e){if(e.nextAddress==1)return e.yield(_.dk().resolve(_.P0).deactivate(),2);v.updatePlayerLocation();_.s9(e)})},
updateCinematicsLocation:function(){var v=this.getElement("CINEMATICS");if(v){var e=this.getCinematicsLocationContainer();v.parentElement!==e&&e.appendChild(v);var d;(d=this.watchController)==null||d.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.IB(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.IB(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(v,e){var d=document.documentElement.hasAttribute("dark"),E=d&&_.N("web_cinematic_theater_mode"),T=d&&_.N("web_cinematic_fullscreen");d=!d&&this.cinematicLightTheme;return v&&E||e&&T||(e||v)&&d},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var v;(v=this.watchController)==null||v.setWatchNextResponse(this.data);_.N("kevlar_watch_flexy_comments_manager")||this.initComments_();_.N("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.dk().resolve(_.zJ).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.N("web_watch_start_chat_in_theater_mode")){var e,
d,E;if((e=this.data)==null?0:(d=e.contents)==null?0:(E=d.twoColumnWatchNextResults)==null?0:E.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var T,S;((T=this.data)==null?0:(S=T.contents)==null?0:S.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(v){var e;(e=this.watchController)==null||e.setPlayerResponse(this.playerData);v&&v.playabilityStatus&&(e=this.isVideoPlayable_(v.playabilityStatus,this.getPlayerOverlays_(this.data)),v=this.isLiveStreamOffline_(v.playabilityStatus),e&&!v||_.Uh(this,function(){_.zE("pbu")}));
this.setPlayerAds_();_.YB(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(v){_.d1().dispatch(_.Oo({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));v?this.activate_():this.deactivate_()},
attached:function(){var v=this;this.watchController=new Eer(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.N("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var e=_.eK(this);_.N("kevlar_disable_prepare_player")||e.preparePlayer();_.N("kevlar_watch_flexy_playlist_manager")||_.dk().resolve(_.zJ).setPlayer(e);this.updatePageMediaQueries();e={"--ytd-watch-flexy-scrollbar-width":_.Z$()+
"px"};!_.Wi("kv_pl_mx_sz_ks")&&_.Wi("kevlar_watch_max_player_width")&&(e["--ytd-watch-flexy-max-player-width-wide-screen"]=_.utm+"px");_.Wi("kevlar_watch_flexy_metadata_height")&&(e["--ytd-watch-flexy-space-below-player"]=_.nsD+"px");this.safeUpdateStyles(e);_.N("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new dkY(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return v.onPlayerTouchPanDown_()}}));
_.N("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.IB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var v=_.Z$(),e=_.Bo+v,d=e;this.fixedPanels&&(e+=_.gsV);var E=657+v;v=1327+v;_.IB(this.hostElement).querySelector("#two-column-query").query="(min-width: "+e+"px)";_.IB(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(E+"px), (min-height: 630px) and (min-width: ")+(e+"px) and (max-width: ")+(v+"px)");_.IB(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(v+"px)");
_.IB(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+d+"px)"},
calculateCurrentPlayerSize_:function(){var v=_.IB(this.hostElement).querySelector("#miniplayer-bar").firstChild;return v&&v.active||this.theater||_.N("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.$x(NaN,NaN):_.ZZ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.ZZ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.p0(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var v=this;this.onWindowResized_(_.Jk());_.N("browse_skeleton_removal_on_watch_killswitch")||_.zr("IS_SHELL_LOAD")&&_.EVQ();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var e=_.eK(this);e.addEventListener("yt-player-updated",_.hG(this,this.onPlayerUpdated_));e.getPlayerPromise().then(function(d){v.playerApiReady_(d)});
_.N("kevlar_watch_flexy_playlist_manager")||(e=_.dk().resolve(_.zJ),_.N("kevlar_watch_observe_playlist_navigations_killswitch")&&e.addEventListener("yt-navigate",_.hG(this,this.onYtNavigate_)),e.setPlaylistComponent(_.IB(this.hostElement).querySelector("#playlist")),e.addEventListener("yt-playlist-data-updated",_.hG(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.RM.addLowPriorityJob(function(){_.Iq(v.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.eK(this).removeEventListener("yt-player-updated",_.hG(this,this.onPlayerUpdated_));if(!_.N("kevlar_watch_flexy_playlist_manager")){var v=_.dk().resolve(_.zJ);_.N("kevlar_watch_observe_playlist_navigations_killswitch")&&v.removeEventListener("yt-navigate",_.hG(this,this.onYtNavigate_));v.cancelVideoSkip();v.removeEventListener("yt-playlist-data-updated",_.hG(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.N("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Iq(this.hostElement,"yt-autonav-pause-player",!1);v=_.SX();_.N("kevlar_exit_fullscreen_leaving_watch")&&v&&_.WF(v)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(v){this.player&&this.player.updateVideoData({rvs:v.rvs})},
getPageContents:function(v){return v&&v.contents&&v.contents.twoColumnWatchNextResults&&v.contents.twoColumnWatchNextResults.results&&v.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(v){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",v)},
onRetrieveLocation_:function(v,e){e.hasComments?e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):e.locationRetrieved("/related_ajax",void 0);v.stopPropagation()},
onSubscriptionChanged_:function(v,e){this.player&&(e?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.fi("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.IB(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.IB(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(v){this.player=v;this.setPlayerState(v.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.N("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.N("kevlar_unified_player")||_.N("kevlar_player_new_bootstrap_adoption"))&&_.lw()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(v,e){e=e===void 0?!0:e;_.SX()&&_.N("external_fullscreen")&&_.WF(document.documentElement);this.theaterRequested_=v;e&&_.$L("wide",v?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.N("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.b4(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Iq(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(v){_.BV(v,typeof this.player),this.player&&_.BV(v,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var v;((v=this.player)==null?0:v.isFullscreen())?this.player.toggleFullscreen():_.b4(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(v,e){return this.loading?e:!!Object.keys(v).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(v){if(v){v=_.a(v);for(var e=v.next();!e.done;e=v.next())e=e.value,e.youThereRenderer&&_.tGY(this.youThereManager_,e.youThereRenderer)}},
setPlaylistData_:function(v){return v||{}},
userEngagementConfigDataChanged_:function(v){if(v)if(v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var e=this.youThereManager_;_.TN()<v.lowEngagementThresholdMs||_.x_$(e,!0)}else v.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.b4(this.hostElement,"yt-autonav-pause-user-engagement",[v])},
isPlayerUnavailable_:function(v,e,d){return!!v&&!this.isVideoPlayable_(v,d)&&!e},
getPlayerOverlays_:function(v){return(v==null?void 0:v.playerOverlays)||null},
isVideoPlayable_:function(v,e){if(!v)return!1;var d=v.status==="OK"||v.status==="LIVE_STREAM_OFFLINE",E=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",v)||this.get("errorScreen.ypcTrailerRenderer",v);v=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",v);var T;e=e==null?void 0:(T=e.playerOverlayRenderer)==null?void 0:T.gatedActionsOverlayRenderer;return!!d||!!E||!!v||!!e},
hasWatchNextResponseErrorRenderer:function(v){var e=this.getPageContents(v),d,E,T,S,O;return!(v==null?0:(d=v.contents)==null?0:(E=d.twoColumnWatchNextResults)==null?0:E.secondaryResults)&&!!((T=e[0])==null?0:(S=T.itemSectionRenderer)==null?0:(O=S.contents[0])==null?0:O.backgroundPromoRenderer)},
isLiveStreamOffline_:function(v){return v?v.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(v,e,d){var E=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e),T=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];T=_.N("web_no_skip_video_on_verification_checks")?(v==null?void 0:v.status)&&T.includes(v.status):v&&v.status==="AGE_CHECK_REQUIRED";var S=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",v);S==void 0&&(S=!0);!d||this.isVideoPlayable_(v,this.getPlayerOverlays_(e))||
E||T||!S||_.dk().resolve(_.zJ).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.$_T()},
onPlayerFeedbackStartRequest_:function(v){_.b4(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:v}])},
onPlayerFeedbackArticleRequest_:function(v){_.b4(this.hostElement,"yt-help-dialog-requested",[v])},
onPlayerYpcContentRequest_:function(){var v,e,d,E,T,S,O,b,Y=((v=this.data)==null?NaN:(e=v.contents)==null?NaN:(d=e.twoColumnWatchNextResults)==null?NaN:(E=d.secondaryResults)==null?NaN:(T=E.secondaryResults)==null?NaN:(S=T.offerModule)==null?NaN:(O=S.tvfilmOfferModuleRenderer)==null?NaN:(b=O.actionButtons)==null?NaN:b.length)-1;v=[".offerButton.buttonRenderer.",".actionButtons."+(Y>=0?Y:0)+".buttonRenderer."];e=_.a(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(d=e.next();!d.done;d=e.next())for(d=d.value,E=_.a(v),T=E.next();!T.done;T=E.next())if(T="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+d+T.value,T=this.get(T+"navigationEndpoint",this.data)||this.get(T+"serviceEndpoint",this.data)||this.get(T+"command",this.data)){_.K1(T,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(v){_.Iq(this.hostElement,"yt-autonav-pause-player",v)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(v){v()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(v){switch(v){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Iq(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(v)},
setPlayerState:function(v){_.d1().dispatch(_.s37(v))},
onPlayerSubscribe_:function(v){_.b4(this.hostElement,"yt-player-subscribe",[v])},
onPlayerUnsubscribe_:function(v){_.b4(this.hostElement,"yt-player-unsubscribe",[v])},
onPlayerAdYtShowToast_:function(v){_.b4(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:v.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(v){if(v)return v},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(v){return!_.N("web_watch_move_summary_to_sd")&&!!v},
computeWatchMetadataRefresh:function(){return _.N("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var v,e,d,E;this.watchNextSecondaryResults=(v=this.data)==null?void 0:(e=v.contents)==null?void 0:(d=e.twoColumnWatchNextResults)==null?void 0:(E=d.secondaryResults)==null?void 0:E.secondaryResults}},
setRichGridRendererData:function(v){this.richGridRendererData=v},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var v,e=(v=this.data)==null?void 0:v.engagementPanels;if(e==null?0:e.length){v=null;e=_.a(e);for(var d=e.next();!d.done;d=e.next()){d=d.value;var E=void 0;if(((E=d.engagementPanelSectionListRenderer)==null?void 0:E.targetId)==="engagement-panel-structured-description"){v=d;break}}var T,S,O;v=(T=v)==null?void 0:(S=T.engagementPanelSectionListRenderer)==null?void 0:(O=S.content)==null?void 0:O.structuredDescriptionContentRenderer;if(v==null?0:v.items){T=
[];S=_.a(v.items);for(O=S.next();!O.done;O=S.next()){O=O.value;if(!_.N("sd_horizontal_list_show_nav_killswitch")){var b=E=d=e=v=void 0,Y=void 0,q=(v=O.horizontalCardListRenderer)==null?void 0:(e=v.header)==null?void 0:(d=e.richListHeaderRenderer)==null?void 0:(E=d.navigationButton)==null?void 0:(b=E.buttonRenderer)==null?void 0:(Y=b.command)==null?void 0:Y.commandExecutorCommand;q&&q.commands&&(q.commands=q.commands.filter(function(r){return!_.L(r,_.Iw6)}))}O.expandableVideoDescriptionBodyRenderer||
O.videoDescriptionHeaderRenderer||T.push(O)}return{items:T}}}},
constructWarning_:function(v){return{text:_.pQ(v),type:"WARNING"}},
isPlaShelfEnabled_:function(v){if((this.get("adPlacements",v)||[]).length)return!0;v=this.get("playerAds",v)||[];return!(!v.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",v[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var v=this;_.Iq(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var e=this.getScrollTop()>0;this.gestures_&&(e?this.gestures_.detach():this.gestures_.attach());e!==this.showFullerscreenEdu_&&_.N("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=e,_.eK(this).getPlayerPromise().then(function(d){d.updateFullerscreenEduButtonVisibility(v.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Iq(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var v=this;this.commentsReady=!1;_.RM.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.LI(_.RM,function(){v.setComments_()},1E3)},
setComments_:function(){if(!_.N("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.zE("cmi");_.RM.cancelJob(this.setCommentsJobId_);var v=this.getPageContents(this.data);if(v&&v.length){v=_.a(v);for(var e=v.next();!e.done;e=v.next())if(e=e.value,this.get("itemSectionRenderer.sectionIdentifier",e)==="comment-item-section"){this.comments=e.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Iq(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.N("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.N("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.zE("cmc")},
doRemoveComments_:function(){this.comments={};_.N("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.RM.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.RM.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(v,e){var d=_.L(e.endpoint,_.p2);d&&(!(e=this.get("data.currentVideoEndpoint.watchEndpoint"))||d.videoId!==e.videoId||d.playlistId&&d.playlistId!==e.playlistId||d.index!==void 0&&d.index!==e.index||typeof d.startTimeSeconds!=="number"||(v.stopPropagation(),this.setScrollTop(0),_.eK(this).getPlayerPromise().then(function(E){var T=d.startTimeSeconds;E.seekTo(T);E.wakeUpControls();T<E.getDuration()&&E.playVideo()})))},
updatePlayerStartTime_:function(){var v=_.TkJ();"t"in v&&(v=_.Kqu(v.t),this.player.seekTo(v,!0))},
updateTitleFromWatchNext:function(v){v=this.getPageContents(v);var e,d;(v=_.vv(v==null?void 0:(e=v[0])==null?void 0:(d=e.videoPrimaryInfoRenderer)==null?void 0:d.title))&&_.Iq(this.hostElement,"yt-update-title",v)},
updateTitle_:function(v){v=this.get("videoDetails.title",v)||"";_.Iq(this.hostElement,"yt-update-title",v)},
syncWithRemoteVideo_:function(v,e,d){if(this.active&&this.player){var E=this.player.getVideoData();if(E.video_id===d&&(d=E.list,_.N("polymer_enable_mdx_queue")&&d&&d.startsWith("RQ")&&(d=void 0),E.video_id!==v||d!=e)){var T;_.N("kevlar_player_watch_endpoint_navigation")?T=_.EyS(_.yak(v,e)):T=this.buildWatchEndpoint_(v,e);_.Iq(this.hostElement,"yt-navigate",{endpoint:T,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(v,e,d){return _.S7(v,e,d)},
initDclkstatus_:function(){_.hhD()},
attachWatchPageSkeleton_:function(){var v=document.querySelector("#watch-page-skeleton");if(v){var e=v.querySelector("#primary-info"),d=v.querySelector("#secondary-info"),E=v.querySelector("#related");e&&_.IB(this.hostElement).querySelector("#info-skeleton").appendChild(e);d&&_.IB(this.hostElement).querySelector("#meta-skeleton").appendChild(d);E&&(_.IB(this.hostElement).querySelector("#related-skeleton").appendChild(E),this.watchNextSkeletonEl_=E);_.KX(v)}},
handlePlayerUpdated_:function(){_.eK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(v,e){if(this.watchNextSkeletonEl_&&typeof e!=="undefined"){var d=this.watchNextSkeletonEl_.children,E=v&&v.indexSplices.length?v.indexSplices[0].index:0;v=Math.min(this.watchNextShownItems.length,d.length);e||(E=0,v=d.length);for(e=E;e<v;e++)d[e].classList.add("hidden")}},
onPlayerFullscreenChange_:function(v){_.N("external_fullscreen")||_.b4(this.hostElement,"yt-player-fullscreen",[v.fullscreen])},
onFullscreenChange_:function(v){this.fullscreen=v;this.gestures_&&this.gestures_.update(this.fullscreen);var e=_.eK(this);e.getPlayerPromise().then(function(d){d.setFauxFullscreen(!!_.SX())});
this.updateFullBleedElementLocations();v&&(e.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(v,e){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!e},
computeIsDonationShelfCollapsed_:function(v){return v},
computeShouldShowMerchShelf:function(v,e){return e&&!!v},
computeResponseHasComments:function(v){var e,d,E,T,S;return!!(v==null?0:(e=v.contents)==null?0:(d=e.twoColumnWatchNextResults)==null?0:(E=d.results)==null?0:(T=E.results)==null?0:(S=T.contents)==null?0:S.some(function(O){var b;return(O==null?void 0:(b=O.itemSectionRenderer)==null?void 0:b.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(v,e){this.responseHasComments=this.computeResponseHasComments(this.data);return!!v&&!!Object.keys(v).length&&!e},
identity:_.B3,onWindowResized_:function(v){this.windowSize_=v;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.N("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(v){var e=this;v&&v.type!=="dataloaded"&&v.type!=="dataupdated"||_.eK(this).getPlayerPromise().then(function(d){var E=d.getPlayerState();E!==5&&E!==0&&(d=1/d.getVideoAspectRatio(),e.videoHeightToWidthRatio_!==d&&(e.videoHeightToWidthRatio_=d))})},
schedulePlayerSizeUpdate_:function(v){var e=this,d=_.N("kevlar_watch_while_v2")||_.N("web_watch_pip"),E=function(){if(e.watchMetadata){var T,S;(S=(T=e.watchMetadata).resize)==null||S.call(T)}_.eK(e).getPlayerPromise().then(function(O){if(_.N("kevlar_set_internal_player_size")){if(!d||!e.isMiniplayerActive()){var b=e.calculateCurrentPlayerSize_();O.setInternalSize(b.width,b.height)}}else O.setSize(NaN,NaN);_.N("kevlar_watch_while")&&e.updateWatchWhileScrollThreshold_()})};
v?E():_.NP(_.RM,E)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(v){this.set("data.survey",v.detail)},
onYtShowSurveyCommand_:function(v){this.set("data.survey",_.L(v,_.oL$).survey)},
onDownloadedVideoDeleted:function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1){if(!e.active||(d=e.playerData)==null||!d.offlineState||e.videoId!==v)return T.return();(E=e.player)==null||E.stopVideo();_.Ke().navigatingAwayFromWatchDeletedVideo=!0;_.K1(_.dQ3,e.hostElement);return T.yield(_.Ke().navigationFinishPromise,2)}_.Ke().navigatingAwayFromWatchDeletedVideo=!1;_.s9(T)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var v;this.theater?v=_.M3(.5625*this.windowSize_.width,480,this.windowSize_.height-185):v=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==v&&(this.watchWhileScrollThreshold_=v,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var v=_.IB(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&v){var e=this.windowSize_.height>=624,d=this.active?this.getScrollTop():0;!v.active&&e&&d>=this.watchWhileScrollThreshold_?(v.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):v.active&&(!e||d<this.watchWhileScrollThreshold_&&!_.SX())&&(v.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(v,e){if(v!==!0||e!==void 0){v=!_.N("live_chat_over_engagement_panels");e=_.IB(this.hostElement).querySelector("#chat-container");var d=_.IB(this.hostElement).querySelector("#plj-sidebar"),E=_.IB(this.hostElement).querySelector("#panels"),T=_.IB(this.hostElement).querySelector("#plj-panels"),S=_.IB(this.hostElement).querySelector("#plj-playlist"),O=_.IB(this.hostElement).querySelector("#alerts"),b=_.IB(this.hostElement).querySelector("#playlist"),Y=_.IB(this.hostElement).querySelector("#related"),
q=_.IB(this.hostElement).querySelector("#donation-shelf"),r=_.IB(this.hostElement).querySelector("#comments");this.isTwoColumns_?(O=_.IB(this.hostElement).querySelector("#secondary-inner"),O.appendChild(d),d.appendChild(S),S.appendChild(b),d.appendChild(T),v&&O.appendChild(E),_.N("web_watch_theater_chat")||O.appendChild(e),v||O.appendChild(E),O.appendChild(q),O.appendChild(Y)):(v&&_.od(E,O),_.od(b,O),_.N("web_watch_theater_chat")||_.od(e,O),v||_.od(E,O),_.od(q,O),r&&(T&&_.od(T,r),_.od(Y,r)));_.N("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.N("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.N("web_watch_theater_chat")){var v=_.IB(this.hostElement).querySelector("#chat-container"),e=this.theater&&!this.fullscreen||_.N("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&e?_.N("web_watch_theater_chat_beside_player")?(e=_.IB(this.hostElement).querySelector("#panels-full-bleed-container"),(v==null?void 0:v.parentElement)!==e&&e.append(v),this.panelsBesidePlayer=!0):_.N("web_watch_theater_fixed_chat")&&
(e=_.IB(this.hostElement).querySelector("#columns"),(v==null?void 0:v.parentElement)!==e&&e.append(v),this.fixedPanels=!0):(_.N("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.N("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),e=_.IB(this.hostElement).querySelector("#playlist"),v&&e?_.JZ(v,e):_.xf(new _.kL("Missing element when updating chat location",{"chatContainer defined":!!v,"playlist defined":!!e})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(v,e){return _.N("sw_metadata_vis_toggle_ks")?!0:!!v||!!e},
computeForceDarkPanelTheme:function(v){return _.N("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&v:!1},
safeUpdateStyles:function(v){try{_.qr(this.hostElement,v)}catch(e){_.xf(e)}},
videoHeightToWidthRatioChanged_:function(v,e){e&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.N("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(v){this.videoHeightToWidthRatio_=1/v},
computeIsVerticalVideo_:function(v){return v>=1},
computeIsFourThreeToSixteenNineVideo_:function(v){return v<=.7501&&v>=.5624},
computeIsExtraWideVideo_:function(v){return v<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.eK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.eK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.BkJ(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(v){var e=_.yy(v)||0;_.mZ(v,e+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var v=_.yy("yt-fullerscreen-edu-button-click-count")||0,e=_.yy("yt-fullerscreen-edu-button-shown-count")||0,d=_.Wi("external_fullscreen_button_shown_threshold"),E=v>=_.Wi("external_fullscreen_button_click_threshold")||e>=d;_.eK(this).getPlayerPromise().then(function(T){T.updateFullerscreenEduButtonSubtleModeState(E)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(v,e){return e},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.dk().resolve(_.zJ).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var v=this;this.panelMaxHeightUpdateJob_&&_.RM.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.RM.addLowPriorityJob(function(){v.panelMaxHeightUpdateJob_=0;var e;!v.isTwoColumns_||v.theater||v.fullscreen?e=460:e=v.calculateNormalPlayerSize_().height;var d=e+"px";_.N("live_chat_taller_height")&&!v.theater&&(d="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.N("live_chat_medium_height")&&
!v.theater&&(d="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.N("live_chat_scaled_height")&&!v.theater&&(d="calc(100vh - var(--ytd-toolbar-height) - 238px)");v.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":e+"px","--ytd-watch-flexy-chat-max-height":d,"--ytd-watch-flexy-structured-description-max-height":e+"px","--ytd-watch-flexy-comments-panel-max-height":e+"px","--ytd-comments-engagement-panel-content-height":e+"px"})})},
onYtShowEngagementPanelScrimAction_:function(v){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",v)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ya(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(v){var e=_.IB(this.hostElement).querySelector("#engagement-panel-scrim");v?e.addEventListener("tap",_.hG(this,this.onEngagementPanelScrimClick_)):e.removeEventListener("tap",_.hG(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(v){if(this.hostElement.contains(v)&&!this.scrollToAnimation_.isAnimating()){var e=v.offsetTop-24;v=v.offsetTop+v.offsetHeight+24;var d=this.getPageScrollingElement(),E=this.getScrollTop(),T=E+d.clientHeight-56;if(e<E+56)e-=56;else if(v>T)e=v-d.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtSignalActionScrollToComments:function(){var v=this.hostElement.querySelector("#comments");if(v&&!this.scrollToAnimation_.isAnimating()){v=v.offsetTop-56-24;if(_.N("kevlar_comment_teaser_scroll_to_midpoint")&&(v-=_.jy().height/3,v<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,v),500)}},
onYtEngagementPanelVisibleChanged:function(v,e,d){this.active&&this.trackEngagementPanelVisibility&&!_.Lq$.includes(d)&&(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(d),e!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&e!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(d),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(v){return v?"":"watch-active-metadata"},
computeNewMetadataClass:function(v){return v?"watch-active-metadata":""},
computeFullBleedPlayer:function(v,e){return v||e},
computeDefaultLayout:function(v){return!v},
computeDefaultTwoColumnLayout:function(v,e){return!v&&e},
computeWatchWhilePanelsActive:function(v,e){return v||e},
computeNoBorderOnChat:function(v){return _.N("web_watch_theater_chat_no_border")&&v},
computeLiveChatPresentAndExpanded:function(v,e){return v&&!e},
computePanelExpanded:function(v,e,d){return v||e||d},
onChangeMarkersVisibility:function(v){_.eK(this).getPlayerPromise().then(function(e){var d;(d=e.changeMarkerVisibility)==null||d.call(e,_.L(v,_.cd).isVisible||!1,_.L(v,_.cd).entityKeys||[],_.L(v,_.cd).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(v){this.liveChatCollapsed=v.detail;_.d1().dispatch(_.kRV(v.detail))},
provideRenderingData:function(v,e){switch(v){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=e;break;case "PRIMARY_INFO":_.N("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=e);this.videoPrimaryInfoRendererValue=e==null?void 0:e.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.N("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=e);this.videoSecondaryInfoRendererValue=e==null?void 0:e.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
e;break;case "CLARIFICATION":this.clarifyBoxValue=e;break;case "LIVE_CHAT":this.conversationBar=e;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=e;break;case "PLAYLIST":this.externalPlaylistData_=e!=null?e:{};break;case "MERCH_SHELF":this.merchShelfValue=e==null?void 0:e.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=e;break;case "OFFER_MODULE":this.offerModule=e;break;case "LIMITED_STATE":this.limitedStateValue=e;break;case "DONATION_SHELF":this.donation=e;break;
case "ALERTS":this.alertsValue=e;break;case "COMMENTS":this.comments=e;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=e;break;case "ENGAGEMENT_PANELS":this.engagementPanels=e;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=e;break;case "RICH_GRID_RENDERER":this.richGridRendererData=e;break;case "EXPANDABLE_METADATA":this.expandableMetadata=e;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=e}},
toggleCinematicsActive:function(v){this.cinematicsActive=v},
isMiniplayerActive:function(){return _.dk().resolve(_.P0).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(v){return S$a.map(function(e){return v.find(function(d){var E;return(d==null?void 0:(E=d.engagementPanelSectionListRenderer)==null?void 0:E.targetId)===e})}).filter(function(e){return e!==void 0})},
getNonLearningJourneyEngagementPanels:function(v){return v.filter(function(e){var d;return!S$a.includes((e==null?void 0:(d=e.engagementPanelSectionListRenderer)==null?void 0:d.targetId)||"")})}}];var WYa;var pJ=function(){var v=_.P.apply(this,arguments)||this;v.flexy=!0;v.learningJourney=!0;v.roundedInfoPanel=!0;v.viewTransitionEnabled=_.N("enable_player_resize_transition");v.smallerChatMinHeight=_.N("live_chat_smaller_min_height");v.cinematicTheaterMode=_.N("web_cinematic_theater_mode");v.transparentTheaterMode=_.N("web_transparent_theater_mode");v.cinematicFullscreen=_.N("web_cinematic_fullscreen");v.useLargerMaxPlayerValue=_.N("kevlar_flexy_use_larger_player_value");v.cinematicFullscreenV2=_.N("web_cinematic_fullscreen_v2");
v.isDarkTheme=document.documentElement.hasAttribute("dark");v.theaterLargerPlayer=_.N("web_watch_theater_larger_player");v.defaultCollapsePlaylist=_.N("web_watch_default_collapse_playlist");v.enableCanvasLayout=_.N("web_enable_canvas_on_learning_journey");return v};
_.V(pJ,_.P);_.W=pJ.prototype;_.W.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.W.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.W.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.W.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.W.ready=function(){var v=this,e=function(){v.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.W.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.W.updateIsTwoColumnsFromBinding=function(v){_.N("web_watch_update_narrow_width_killswitch")||_.d1().dispatch(_.T9J(!v.detail.value));this.ytdWatchBehavior.isTwoColumns_=v.detail.value};
_.W.updateFlexySmallWindowFromBinding=function(v){this.ytdWatchBehavior.flexySmallWindow_=v.detail.value};
_.W.updateFlexyLargeWindowFromBinding=function(v){this.ytdWatchBehavior.flexyLargeWindow_=v.detail.value};
_.W.updateWatchWhileWindowSizeSufficientFromBinding=function(v){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=v.detail.value};
_.W.updateWatchNextCanShowMoreFromBinding=function(v){this.ytdWatchBehavior.watchNextCanShowMore=v.detail.value};
_.W.updateShownItemsFromBinding=function(v){v.detail.path?this.set(v.detail.path,v.detail.value):this.ytdWatchBehavior.watchNextShownItems=v.detail.value};
_.W.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23109_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23109_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vP.Object.defineProperties(pJ.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(v=_.L(this.data.pageVisualEffects[e],_.GA))return e=void 0,(e=v.config)==null?void 0:e.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.learningJourneyEngagementPanels)==null?void 0:v.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var v,e=(v=this.learningJourneyEngagementPanels)==null?void 0:v.find(function(K){var k;return(K==null?void 0:(k=K.engagementPanelSectionListRenderer)==null?void 0:k.panelIdentifier)==="learning-journey-engagement-panel"});
if(e){var d,E,T,S,O,b,Y,q,r;if(v=(q=((Y=(O=((S=e==null?void 0:(d=e.engagementPanelSectionListRenderer)==null?void 0:(E=d.content)==null?void 0:(T=E.sectionListRenderer)==null?void 0:T.contents)!=null?S:[])[0])==null?void 0:(b=O.itemSectionRenderer)==null?void 0:b.contents)!=null?Y:[])[0])==null?void 0:(r=q.accordionViewModel)==null?void 0:r.onTitleTap){var h=_.lk(v);if(h)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.hg.instance.resolveCommand(h)}}}}}}});
_.vP.Object.defineProperties(pJ,{template:{configurable:!0,enumerable:!0,get:function(){if(WYa===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);WYa=v}v=WYa;return v}}});
pJ.prototype.updateMiniplayerIsActiveValue=pJ.prototype.updateMiniplayerIsActiveValue;pJ.prototype.updateScrollTopValue=pJ.prototype.updateScrollTopValue;pJ.prototype.updateFullscreenValue=pJ.prototype.updateFullscreenValue;pJ.prototype.updateTheaterValue=pJ.prototype.updateTheaterValue;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],pJ.prototype,"ytComponentBehavior",void 0);
_.c([_.M(Ttr.YtdLearningJourneyWatchBehavior),_.w("design:type",Object)],pJ.prototype,"ytdWatchBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],pJ.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pJ.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],pJ.prototype,"playerData",void 0);_.c([_.f(),_.w("design:type",Object)],pJ.prototype,"browseData",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"flexy",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"learningJourney",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"roundedInfoPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"viewTransitionEnabled",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"smallerChatMinHeight",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"cinematicTheaterMode",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"transparentTheaterMode",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"cinematicFullscreen",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"useLargerMaxPlayerValue",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"cinematicFullscreenV2",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"isDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],pJ.prototype,"theaterLargerPlayer",void 0);_.c([_.f(),_.w("design:type",Object)],pJ.prototype,"defaultCollapsePlaylist",void 0);_.c([_.f(),_.w("design:type",Object)],pJ.prototype,"enableCanvasLayout",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("playerData","browseData","enableCanvasLayout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pJ.prototype,"showBrowseResponse",null);_.c([_.f({reflectToAttribute:!0}),_.t("playerData","enableCanvasLayout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pJ.prototype,"showWatchResponse",null);_.c([_.f({selector:_.xj}),_.w("design:type",Object)],pJ.prototype,"theaterValue",void 0);
_.c([_.f({selector:_.Ba}),_.w("design:type",Object)],pJ.prototype,"fullscreenValue",void 0);_.c([_.f({selector:_.Lh}),_.w("design:type",Object)],pJ.prototype,"scrollTopValue",void 0);_.c([_.f({selector:_.za}),_.w("design:type",Object)],pJ.prototype,"miniplayerIsActiveValue",void 0);_.c([_.sg("#ytd-plj-player"),_.w("design:type",HTMLElement)],pJ.prototype,"ytdPlayer",void 0);_.c([_.sg("#playlist"),_.w("design:type",HTMLElement)],pJ.prototype,"JSC$23109_ytdPlaylistPanelRenderer",void 0);
_.c([_.Iw("ytd-comments"),_.w("design:type",HTMLElement)],pJ.prototype,"ytdComments",void 0);_.c([_.sg("#primary"),_.w("design:type",HTMLElement)],pJ.prototype,"primary",void 0);_.c([_.sg("#secondary"),_.w("design:type",HTMLElement)],pJ.prototype,"secondary",void 0);_.c([_.sg("#player-container"),_.w("design:type",HTMLElement)],pJ.prototype,"playerContainer",void 0);_.c([_.sg("#cinematics"),_.w("design:type",HTMLElement)],pJ.prototype,"JSC$23109_cinematics",void 0);
_.c([_.$v("theaterValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pJ.prototype,"updateTheaterValue",null);_.c([_.$v("fullscreenValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pJ.prototype,"updateFullscreenValue",null);_.c([_.$v("scrollTopValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pJ.prototype,"updateScrollTopValue",null);
_.c([_.$v("miniplayerIsActiveValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pJ.prototype,"updateMiniplayerIsActiveValue",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],pJ.prototype,"cinematicLightTheme",null);_.c([_.f({reflectToAttribute:!0}),_.t("learningJourneyEngagementPanels"),_.w("design:type",Object),_.w("design:paramtypes",[])],pJ.prototype,"hasLearningJourneyPanels",null);
_.c([_.t("learningJourneyEngagementPanels"),_.w("design:type",Object),_.w("design:paramtypes",[])],pJ.prototype,"backButtonData",null);_.c([_.z({is:"ytd-watch-learning-journey"})],pJ);_.O1.registerService(_.UlU,pJ);
_.fX();
}catch(e){_._DumpException(e)}
try{
_.tz("Tm0L3c");
var gL$;var uo$;var nLr=function(){return _.P.apply(this,arguments)||this};
_.V(nLr,_.P);_.c([_.z({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],nLr);
_.A(nLr,"ytd-ghost-comments-renderer",function(){if(uo$===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);uo$=v}v=uo$;return v},{mode:1});var D_J;var U_6=function(){return _.P.apply(this,arguments)||this};
_.V(U_6,_.P);_.c([_.z({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],U_6);
_.A(U_6,"ytd-ghost-watch-metadata-renderer",function(){if(D_J===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);D_J=v}v=D_J;return v},{mode:1});var Uq=function(){var v=_.P.apply(this,arguments)||this;v.ghostGridRenderer={rows:6};v.roundedInfoPanel=!0;v.hideOfferModules=!0;v.smallerChatMinHeight=_.N("live_chat_smaller_min_height");v.cinematicTheaterMode=_.N("web_cinematic_theater_mode");v.transparentTheaterMode=_.N("web_transparent_theater_mode");v.darkerPanels=_.N("web_watch_darker_panels");v.cinematicFullscreen=_.N("web_cinematic_fullscreen");v.cinematicFullscreenV2=_.N("web_cinematic_fullscreen_v2");v.isDarkTheme=document.documentElement.hasAttribute("dark");
return v};
_.V(Uq,_.P);_.W=Uq.prototype;_.W.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.W.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.W.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.W.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.W.ready=function(){var v=this,e=function(){v.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.W.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.W.updateIsTwoColumnsFromBinding=function(v){this.ytdWatchBehavior.isTwoColumns_=v.detail.value};
_.W.updateFlexySmallWindowFromBinding=function(v){this.ytdWatchBehavior.flexySmallWindow_=v.detail.value};
_.W.updateFlexyLargeWindowFromBinding=function(v){this.ytdWatchBehavior.flexyLargeWindow_=v.detail.value};
_.W.updateWatchWhileWindowSizeSufficientFromBinding=function(v){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=v.detail.value};
_.W.updateWatchNextCanShowMoreFromBinding=function(v){this.ytdWatchBehavior.watchNextCanShowMore=v.detail.value};
_.W.updateShownItemsFromBinding=function(v){_.N("swatcheroo_direct_use_rich_grid")||(v.detail.path?this.set(v.detail.path,v.detail.value):this.ytdWatchBehavior.watchNextShownItems=v.detail.value)};
_.W.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23097_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23097_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vP.Object.defineProperties(Uq.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(v=_.L(this.data.pageVisualEffects[e],_.GA))return e=void 0,(e=v.config)==null?void 0:e.enableInLightTheme;return!1}}});
Uq.prototype.updateMiniplayerIsActiveValue=Uq.prototype.updateMiniplayerIsActiveValue;Uq.prototype.updateScrollTopValue=Uq.prototype.updateScrollTopValue;Uq.prototype.updateFullscreenValue=Uq.prototype.updateFullscreenValue;Uq.prototype.updateTheaterValue=Uq.prototype.updateTheaterValue;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Uq.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.FqT.YtdWatchBehavior),_.w("design:type",Object)],Uq.prototype,"ytdWatchBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Uq.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Uq.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Uq.prototype,"ghostGridRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],Uq.prototype,"playerData",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Uq.prototype,"roundedInfoPanel",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Uq.prototype,"hideOfferModules",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Uq.prototype,"smallerChatMinHeight",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Uq.prototype,"cinematicTheaterMode",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Uq.prototype,"transparentTheaterMode",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Uq.prototype,"darkerPanels",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Uq.prototype,"cinematicFullscreen",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Uq.prototype,"cinematicFullscreenV2",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Uq.prototype,"isDarkTheme",void 0);_.c([_.f({selector:_.xj}),_.w("design:type",Object)],Uq.prototype,"theaterValue",void 0);
_.c([_.f({selector:_.Ba}),_.w("design:type",Object)],Uq.prototype,"fullscreenValue",void 0);_.c([_.f({selector:_.Lh}),_.w("design:type",Object)],Uq.prototype,"scrollTopValue",void 0);_.c([_.f({selector:_.za}),_.w("design:type",Object)],Uq.prototype,"miniplayerIsActiveValue",void 0);_.c([_.sg("#ytd-player"),_.w("design:type",HTMLElement)],Uq.prototype,"ytdPlayer",void 0);_.c([_.sg("#playlist"),_.w("design:type",HTMLElement)],Uq.prototype,"JSC$23097_ytdPlaylistPanelRenderer",void 0);
_.c([_.sg("#ytd-comments"),_.w("design:type",HTMLElement)],Uq.prototype,"ytdComments",void 0);_.c([_.sg("#primary"),_.w("design:type",HTMLElement)],Uq.prototype,"primary",void 0);_.c([_.sg("#secondary"),_.w("design:type",HTMLElement)],Uq.prototype,"secondary",void 0);_.c([_.sg("#player-container"),_.w("design:type",HTMLElement)],Uq.prototype,"playerContainer",void 0);_.c([_.sg("#cinematics"),_.w("design:type",HTMLElement)],Uq.prototype,"JSC$23097_cinematics",void 0);
_.c([_.$v("theaterValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uq.prototype,"updateTheaterValue",null);_.c([_.$v("fullscreenValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uq.prototype,"updateFullscreenValue",null);_.c([_.$v("scrollTopValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uq.prototype,"updateScrollTopValue",null);
_.c([_.$v("miniplayerIsActiveValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uq.prototype,"updateMiniplayerIsActiveValue",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Uq.prototype,"cinematicLightTheme",null);
_.A(Uq,"ytd-watch-grid",function(){if(gL$===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);gL$=v}v=gL$;return v},{mode:2});_.O1.registerService(_.DlW,Uq);
_.fX();
}catch(e){_._DumpException(e)}
try{
_.tz("CF909");
var QHa;var DZ=function(){var v=_.P.apply(this,arguments)||this;v.flexy=!0;v.roundedInfoPanel=!0;v.viewTransitionEnabled=_.N("enable_player_resize_transition");v.smallerChatMinHeight=_.N("live_chat_smaller_min_height");v.cinematicTheaterMode=_.N("web_cinematic_theater_mode");v.transparentTheaterMode=_.N("web_transparent_theater_mode");v.cinematicFullscreen=_.N("web_cinematic_fullscreen");v.useLargerMaxPlayerValue=_.N("kevlar_flexy_use_larger_player_value");v.isDarkTheme=document.documentElement.hasAttribute("dark");
v.defaultCollapsePlaylist=_.N("web_watch_default_collapse_playlist");v.retroModeReduxValue=!1;return v};
_.V(DZ,_.P);_.W=DZ.prototype;_.W.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.W.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.W.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.W.updateRetroModeReduxValue=function(){_.N("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.W.ready=function(){var v=this,e=function(){v.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.W.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.W.updateIsTwoColumnsFromBinding=function(v){_.N("web_watch_update_narrow_width_killswitch")||_.d1().dispatch(_.T9J(!v.detail.value));this.ytdWatchBehavior.isTwoColumns_=v.detail.value};
_.W.updateFlexySmallWindowFromBinding=function(v){this.ytdWatchBehavior.flexySmallWindow_=v.detail.value};
_.W.updateFlexyLargeWindowFromBinding=function(v){this.ytdWatchBehavior.flexyLargeWindow_=v.detail.value};
_.W.updateWatchWhileWindowSizeSufficientFromBinding=function(v){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=v.detail.value};
_.W.updateWatchNextCanShowMoreFromBinding=function(v){this.ytdWatchBehavior.watchNextCanShowMore=v.detail.value};
_.W.updateShownItemsFromBinding=function(v){v.detail.path?this.set(v.detail.path,v.detail.value):this.ytdWatchBehavior.watchNextShownItems=v.detail.value};
_.W.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23092_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23092_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.vP.Object.defineProperties(DZ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(v=_.L(this.data.pageVisualEffects[e],_.GA))return e=void 0,(e=v.config)==null?void 0:e.enableInLightTheme;return!1}}});
_.vP.Object.defineProperties(DZ,{template:{configurable:!0,enumerable:!0,get:function(){if(QHa===void 0){var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);QHa=v}v=QHa;return v}}});
DZ.prototype.updateRetroModeReduxValue=DZ.prototype.updateRetroModeReduxValue;DZ.prototype.updateScrollTopValue=DZ.prototype.updateScrollTopValue;DZ.prototype.updateFullscreenValue=DZ.prototype.updateFullscreenValue;DZ.prototype.updateTheaterValue=DZ.prototype.updateTheaterValue;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],DZ.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.FqT.YtdWatchBehavior),_.w("design:type",Object)],DZ.prototype,"ytdWatchBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],DZ.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],DZ.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],DZ.prototype,"playerData",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DZ.prototype,"flexy",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DZ.prototype,"roundedInfoPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DZ.prototype,"viewTransitionEnabled",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DZ.prototype,"smallerChatMinHeight",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DZ.prototype,"cinematicTheaterMode",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DZ.prototype,"transparentTheaterMode",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DZ.prototype,"cinematicFullscreen",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DZ.prototype,"useLargerMaxPlayerValue",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DZ.prototype,"isDarkTheme",void 0);_.c([_.f(),_.w("design:type",Object)],DZ.prototype,"defaultCollapsePlaylist",void 0);
_.c([_.f({selector:_.xj}),_.w("design:type",Object)],DZ.prototype,"theaterValue",void 0);_.c([_.f({selector:_.Ba}),_.w("design:type",Object)],DZ.prototype,"fullscreenValue",void 0);_.c([_.f({selector:_.Lh}),_.w("design:type",Object)],DZ.prototype,"scrollTopValue",void 0);_.c([_.f({selector:_.za}),_.w("design:type",Object)],DZ.prototype,"miniplayerIsActive",void 0);_.c([_.f({selector:function(v){return v.watch.isWatchRetroMode}}),
_.w("design:type",Object)],DZ.prototype,"retroModeReduxValue",void 0);_.c([_.Iw("ytd-player"),_.w("design:type",HTMLElement)],DZ.prototype,"ytdPlayer",void 0);_.c([_.sg("#playlist"),_.w("design:type",HTMLElement)],DZ.prototype,"JSC$23092_ytdPlaylistPanelRenderer",void 0);_.c([_.Iw("ytd-comments"),_.w("design:type",HTMLElement)],DZ.prototype,"ytdComments",void 0);_.c([_.sg("#primary"),_.w("design:type",HTMLElement)],DZ.prototype,"primary",void 0);
_.c([_.sg("#secondary"),_.w("design:type",HTMLElement)],DZ.prototype,"secondary",void 0);_.c([_.sg("#player-container"),_.w("design:type",HTMLElement)],DZ.prototype,"playerContainer",void 0);_.c([_.sg("#below"),_.w("design:type",HTMLElement)],DZ.prototype,"below",void 0);_.c([_.sg("#cinematics"),_.w("design:type",HTMLElement)],DZ.prototype,"JSC$23092_cinematics",void 0);
_.c([_.$v("theaterValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DZ.prototype,"updateTheaterValue",null);_.c([_.$v("fullscreenValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DZ.prototype,"updateFullscreenValue",null);_.c([_.$v("scrollTopValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DZ.prototype,"updateScrollTopValue",null);
_.c([_.$v("retroModeReduxValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DZ.prototype,"updateRetroModeReduxValue",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],DZ.prototype,"cinematicLightTheme",null);_.c([_.z({is:"ytd-watch-flexy"})],DZ);_.O1.registerService(_.nC0,DZ);
_.fX();
}catch(e){_._DumpException(e)}
try{
_.tz("nmfa2d");
var ELa;var Hd=function(){var v=_.P.apply(this,arguments)||this;v.hidden=!1;v.errorScreen=null;v.playlistData={};return v};
_.V(Hd,_.P);_.W=Hd.prototype;_.W.getPlayer=function(){return this.ytdPlayer};
_.W.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:_.FN(["aa","eocs"])}}};
_.W.onActiveChanged=function(){_.d1().dispatch(_.CgY(this.ytPageBehavior.active))};
_.W.playerDataChanged=function(){var v;(v=this.watchController)==null||v.setPlayerResponse(this.playerData)};
_.W.dataChanged=function(){var v;(v=this.watchController)==null||v.setWatchNextResponse(this.data)};
_.W.sizeChanged=function(){var v,e;(e=(v=this.metadata).resize)==null||e.call(v)};
_.W.attached=function(){this.watchController=new _.zh(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.W.detached=function(){_.p0(this.watchController);this.watchController=void 0};
_.W.getPlayerContainer=function(){return this.playerContainer};
_.W.getElement=function(v){switch(v){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.W.provideRenderingData=function(v,e){switch(v){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=e;break;case "ERROR_SCREEN":this.errorScreen=e!=null?e:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=e;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=e;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=e;break;case "RICH_METADATA":this.richMetadataRowContainer=e;break;case "CLARIFICATION":this.clarificationData=e;break;case "PLAYLIST":this.playlistData=
e!=null?e:{};break;case "MERCH_SHELF":this.merchShelf=e;break;case "TICKET_SHELF":this.ticketShelf=e;break;case "LIMITED_STATE":this.limitedState=e;break;case "DONATION_SHELF":this.donationShelf=e;break;case "ALERTS":this.alerts=e}};
_.vP.Object.defineProperties(Hd.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return!this.hidden&&!!((v=this.data)==null?0:(e=v.contents)==null?0:(d=e.twoColumnWatchNextResults)==null?0:d.conversationBar)}}});
Hd.prototype.sizeChanged=Hd.prototype.sizeChanged;Hd.prototype.dataChanged=Hd.prototype.dataChanged;Hd.prototype.playerDataChanged=Hd.prototype.playerDataChanged;Hd.prototype.onActiveChanged=Hd.prototype.onActiveChanged;_.c([_.M(_.Rp.YtPageBehavior),_.w("design:type",Object)],Hd.prototype,"ytPageBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Hd.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Hd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Hd.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"playerData",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Hd.prototype,"hidden",void 0);_.c([_.sg("#ytd-player"),_.w("design:type",HTMLElement)],Hd.prototype,"ytdPlayer",void 0);_.c([_.sg("#player-container"),_.w("design:type",HTMLElement)],Hd.prototype,"playerContainer",void 0);_.c([_.sg("#metadata"),_.w("design:type",Object)],Hd.prototype,"metadata",void 0);_.c([_.sg("#playlist"),_.w("design:type",HTMLElement)],Hd.prototype,"playlistPanel",void 0);
_.c([_.f({selector:_.O7B,reflectToAttribute:!0}),_.w("design:type",Object)],Hd.prototype,"fixie",void 0);_.c([_.f({selector:_.i7$,reflectToAttribute:!0}),_.w("design:type",Object)],Hd.prototype,"singleColumn",void 0);_.c([_.f({selector:function(v){return _.xj(v)&&!_.Ba(v)},
reflectToAttribute:!0}),_.w("design:type",Object)],Hd.prototype,"theater",void 0);_.c([_.f({selector:_.Ba,reflectToAttribute:!0}),_.w("design:type",Object)],Hd.prototype,"fullscreen",void 0);_.c([_.f({selector:_.x9k}),_.w("design:type",Object)],Hd.prototype,"windowSize",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"singleColumnContents",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"errorScreen",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"playlistData",void 0);
_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"videoSecondaryInfoRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"richMetadataRowContainer",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"clarificationData",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"commentsEntryPointHeaderRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"ticketShelf",void 0);
_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"merchShelf",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"donationShelf",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"limitedState",void 0);_.c([_.f(),_.w("design:type",Object)],Hd.prototype,"alerts",void 0);_.c([_.t("playlistData"),_.w("design:type",Object),_.w("design:paramtypes",[])],Hd.prototype,"hasPlaylistData",null);
_.c([_.t("data","hidden"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Hd.prototype,"hasChat",null);_.c([_.$v("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Hd.prototype,"onActiveChanged",null);_.c([_.$v("playerData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Hd.prototype,"playerDataChanged",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Hd.prototype,"dataChanged",null);_.c([_.$v("windowSize","singleColumn"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Hd.prototype,"sizeChanged",null);
_.A(Hd,"ytd-watch-fixie",function(){if(ELa===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);ELa=v}v=ELa;return v},{mode:1});_.O1.registerService(_.upS,Hd);
_.fX();
}catch(e){_._DumpException(e)}
try{
_.tz("xwEKAe");
var pdi=function(v){return _.DF(v)?v.getAttribute("jsname")==="coFSxe":!1},vSY=function(v,e){e.id||(e.id="ow"+_.gH(e));
v.setAttribute("jsowner",e.id);v.__owner=e;var d=_.Xv(e,pdi);d&&(_.YNc.has(d)||_.YNc.set(d,[]),_.YNc.get(d).push(v));(d=_.bIA.get(e))||_.bIA.set(e,d=[]);d.includes(v)||d.push(v);e.setAttribute("__IS_OWNER",!0)},e$6=function(){var v=_.kdW(1);
v=_.D4(v,_.Ma0);if(!(_.Nt$(v)||v[_.uf$]&&!v.__hasBeenSet))return v.value},d76=function(v){var e=_.LB();
if(e.getFlag(202))e=e.getFlag(201);else{var d;e=(v==null?void 0:(d=v.config)==null?void 0:d.settingOnByDefault)!==void 0?v.config.settingOnByDefault:!_.N("web_shorts_cinematics_disabled_by_default")}return e},ESk=function(v){var e=_.LB();
_.Va(0,201,v);_.Va(0,202,!0);e.save()},THB=function(v){return(v=_.NRt(v))?_.LBW(v):0},S0J=function(v){return v.shorts.isSmallScreenSqueezeback},W0B=function(v){return v.shorts.isPlaybackStarted},Otf=function(v){var e=_.kdW(2),d=new Set;
_.Jf(function(){return void d.forEach(function(E){return void E()})});
return function(E){var T=_.nX(e);try{var S=atY(it6(v),E);d.add(S);return function(){S();d.delete(S)}}finally{_.nX(T)}}},Itf=function(v){var e=v.children;
var d=v.root;_.JE(function(){var E=Otf(d)(e);_.Jf(E)});
return document.createTextNode("")},atY=function(v,e){var d=btV(v);
(v=e$6())&&vSY(d,v);e=_.a(_.KCt(e,!0));v=e.next().value;var E=e.next().value;d.append.apply(d,_.t7(v));return function(){E();d.remove()}},it6=function(v){if(typeof v==="string")return v=document.querySelector(v),_.HkC(v),v;
if(_.EW(v)&&v.nodeType===Node.ELEMENT_NODE)return v;if(!v.__value&&!v.__optional){var e=_.Dn$.USE_ELEMENT_NOT_ASSIGNED(v.__expectedTagName);v.__hasErrored=!0;throw e;}return v.value},btV=function(v){var e=document.createElementNS(v.namespaceURI,v.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return v.appendChild(e)},Y0m=function(v,e,d,E){v=e-v;
d=E-d;return Math.sqrt(v*v+d*d)},m7$=function(v,e){v&&_.dk().resolve(_.EI).resolveCommand(v,{forceClickLogging:!0,
form:{element:e}})},ys6=function(v,e,d,E){v=e-v;
d=E-d;return Math.sqrt(v*v+d*d)},q0D=function(v,e){v&&_.dk().resolve(_.EI).resolveCommand(v,{forceClickLogging:!0,
form:{element:e}})},rsJ=function(){return _.dk().resolve(_.s1).dismissedIndices},h$V=function(v,e){var d,E,T,S,O,b,Y,q,r;
return _.I(function(h){if(h.nextAddress==1){d=_.dk().resolve(_.S6s);S=(E=d)==null?void 0:(T=E.reelWatchEndpointMap)==null?void 0:T.reelWatchSequence;b=(O=v.innertubeTransportService)!=null?O:_.dk().resolve(_.lX);if(!S)return h.jumpTo(2);Y=S();return(q=Y.JSC$13090_getRequest(e,{}))?h.yield(_.XB(b,q.innerTubeRequest,q.input,e.clickTrackingParams,q.config),4):h.jumpTo(2)}return h.nextAddress!=2?(r=h.yieldResult,h.return(r)):h.return(void 0)})},K0u=function(v){return _.Oo({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:v}})},$7f=function(v){return _.Oo({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:v}})},Tb=function(v){return _.Oo({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:v}})};var Sc=function(v,e){if(v instanceof Sc)this.array_=v.array_;else{var d;if(d=_.c3(v))a:{for(var E=d=0;E<v.length;E++){if(!_.c3(v[E])||d>0&&v[E].length!=d){d=!1;break a}for(var T=0;T<v[E].length;T++)if(typeof v[E][T]!=="number"){d=!1;break a}d==0&&(d=v[E].length)}d=d!=0}if(d)this.array_=_.Zt(v);else if(v instanceof _.$x)this.array_=jUm(v.height,v.width);else if(typeof v==="number"&&typeof e==="number"&&v>0&&e>0)this.array_=jUm(v,e);else throw Error("Ao");}this.size_=new _.$x(this.array_[0].length,
this.array_.length)},sUV=function(v,e,d){for(var E=0;E<v.getSize().height;E++)for(var T=0;T<v.getSize().width;T++)e.call(d,v.array_[E][T],E,T,v)},NH$=function(v,e){var d=new Sc(v.getSize());
sUV(v,function(E,T,S){d.array_[T][S]=e.call(void 0,E,T,S,v)});
return d},jUm=function(v,e){for(var d=[],E=0;E<v;E++){d[E]=[];
for(var T=0;T<e;T++)d[E][T]=0}return d};
Sc.prototype.add=function(v){if(!_.VQO(this.size_,v.getSize()))throw Error("Bo");return NH$(this,function(e,d,E){return e+v.array_[d][E]})};
Sc.prototype.equals=function(v,e){if(this.size_.width!=v.size_.width||this.size_.height!=v.size_.height)return!1;e=e||0;for(var d=0;d<this.size_.height;d++)for(var E=0;E<this.size_.width;E++)if(!_.L2_(this.array_[d][E],v.array_[d][E],e))return!1;return!0};
Sc.prototype.getSize=function(){return this.size_};
var Wo=function(v,e,d){return e>=0&&e<v.size_.height&&d>=0&&d<v.size_.width?v.array_[e][d]:null};
Sc.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var ah=function(v,e,d,E){if(!(e>=0&&e<v.size_.height&&d>=0&&d<v.size_.width))throw Error("Co`"+e+"`"+d+"`"+v.size_.height+"`"+v.size_.width);v.array_[e][d]=E};
Sc.prototype.multiply=function(v){if(v instanceof Sc){if(this.size_.width!=v.getSize().height)throw Error("Do");return kOf(this,v)}if(typeof v==="number")return L0r(this,v);throw Error("Eo");};
var kOf=function(v,e){var d=new Sc(v.size_.height,e.getSize().width);sUV(d,function(E,T,S){for(var O=E=0;O<this.size_.width;O++)E+=Wo(this,T,O)*Wo(e,O,S);ah(d,T,S,E)},v);
return d},L0r=function(v,e){return NH$(v,function(d){return d*e})};var VW6=new _.gG("inlineSurveyRenderer");var oSa=new _.gG("interstitialViewModel");var Jsk=new _.gG("reelNavigateCommand");var GOD=new _.gG("reelNonVideoContentDismissalCommand");var MWJ=new _.gG("showReelsCommentsOverlayCommand");var tWJ=new _.gG("shortsSuggestedActionViewModel");var ft$=new _.gG("videoInteractionPopUpRenderer");var R$$;var PLu;var x7Y;var ib=function(){var v=_.P.apply(this,arguments)||this;v.ctaVisualElement=null;v.currentCsn=null;return v};
_.V(ib,_.P);_.W=ib.prototype;_.W.onDataChanged=function(){this.maybeLogShows()};
_.W.computeButtonShape=function(){var v=this;if(this.data)return{buttonText:_.vv(this.data.text),state:"active",onTap:function(){v.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.W.maybeCreateCtaVe=function(){var v;if((v=this.data)!=null&&v.badgeInteractionLogging){var e;if(v=(e=this.data.badgeInteractionLogging)==null?void 0:e.trackingParams)this.ctaVisualElement=_.Jg(v)}};
_.W.maybeLogClicks=function(){this.currentCsn=_.zz(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Uz(this.currentCsn,this.ctaVisualElement)};
_.W.maybeLogShows=function(){this.currentCsn=_.zz(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.nB(this.currentCsn,[this.ctaVisualElement])};
_.W.onTap=function(){var v;if((v=this.data)!=null&&v.onClickCommand){var e;this.ytComponentBehavior.resolveCommand((e=this.data)==null?void 0:e.onClickCommand);this.maybeLogClicks()}};
ib.prototype.onDataChanged=ib.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);_.c([_.f({}),_.w("design:type",Object)],ib.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ib.prototype,"onDataChanged",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],ib);
_.A(ib,"ytd-shopping-overlay-badge-renderer",function(){if(x7Y!==void 0)return x7Y;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return x7Y=v},{mode:1});_.aZ(_.U11,"reel-sound-metadata-view-model",{props:{data:_.SM,overlayDensity:_.SM}});_.aZ(_.nx1,"player-disclosure-view-model",{props:{data:_.U1}});_.aZ(_.fve,"pivot-button-view-model",{props:{data:_.SM,className:_.SM}});_.aZ(_.R97,"reel-action-bar-view-model",{props:{data:_.U1,buttonShapeOverrideables:_.U1}});_.aZ(_.l(function(v){function e(){var q7,m0,$S,kS,N7=(m0=_.L((q7=U())==null?void 0:q7.command,_.$w))==null?void 0:($S=m0.item)==null?void 0:(kS=$S.notificationTextRenderer)==null?void 0:kS.successResponseText;if(N7)_.b4(E.value,"yt-open-popup-action",[_.To(N7),E.value]);else if(F())m7$(F(),J.value);else{var As;m7$((As=U())==null?void 0:As.command,J.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var d=v.data;var E=_.nI("yt-player-overlay-video-interactions");v=_.a(_.OE("0px",void 0,"O3ow6c"));var T=v.next().value,S=v.next().value;v=_.a(_.OE("0px",void 0,"V0TSYd"));var O=v.next().value,b=v.next().value;v=_.a(_.OE(0,void 0,"ipRdDf"));var Y=v.next().value,q=v.next().value;v=_.a(_.OE(0,void 0,"ztYEKb"));var r=v.next().value,h=v.next().value,K=function(){var q7;if(((q7=_.mS())==null?void 0:q7.getPlayerState())!==-1){E.value.style.display="inherit";var m0;(m0=_.mS())==null||m0.removeEventListener("onStateChange",
K)}k()},k=function(){var q7=document.querySelector("video");
if(q7){q(q7.getBoundingClientRect().width);h(q7.getBoundingClientRect().height);var m0;S((q7==null?void 0:(m0=q7.style)==null?void 0:m0.left)||"0px");var $S;b((q7==null?void 0:($S=q7.style)==null?void 0:$S.top)||"0px")}};
_.o_(function(){var q7,m0,$S;if(((q7=_.mS())==null?void 0:q7.getPlayerState())===-1&&Math.round((($S=(m0=_.mS())==null?void 0:m0.getVideoAspectRatio())!=null?$S:0)*100)!==Math.round(Y()/r()*100)){E.value.style.display="none";var kS,N7;h(Y()/((N7=(kS=_.mS())==null?void 0:kS.getVideoAspectRatio())!=null?N7:1))}},"ikzYW");
_.JE(function(){var q7;(q7=_.mS())==null||q7.addEventListener("onStateChange",K);window.addEventListener("resize",k);k();var m0,$S,kS;if((kS=(m0=d())==null?void 0:($S=m0.regions)==null?void 0:$S[0])==null||!kS.transformationMatrix)throw Error("Io");var N7;if((N7=d())==null?0:N7.trackingParams){var As;_.NC().graftServerVe((As=d().trackingParams)!=null?As:"")}_.Jf(function(){var Ct;(Ct=_.mS())==null||Ct.removeEventListener("onStateChange",K);window.removeEventListener("resize",k)})});
var J=_.nI("svg"),R=_.a(_.OE(!1,void 0,"Thzfnf"));v=R.next().value;var B=R.next().value,X=_.a(_.OE(!1,void 0,"nsniPd"));R=X.next().value;var Z=X.next().value,U=function(){var q7;return _.L((q7=d())==null?void 0:q7.popUp,ft$)},F=function(){var q7;
return(q7=d())==null?void 0:q7.command},g=function(){return _.L(F(),_.V0)!==void 0};
X=_.rq(function(){e();return!1});
var Q={},v3={};return _.m("yt-player-overlay-video-interactions",{el:E},_.m("svg",{"on:mouseover":_.rq(function(){g()&&B(!0);Z(!0);return!1}),
"on:mouseout":_.rq(function(){B(!1);Z(!1);return!1}),
"on:keydown":_.rq(function(q7){q7.key==="Enter"&&e();return!1}),
"on:focus":_.rq(function(){g()&&B(!0);return!1}),
"on:blur":_.rq(function(){g()&&B(!1);return!1}),
el:J,tabindex:0,"aria-label":function(){var q7;return(q7=d())==null?void 0:q7.a11yString},
id:"player-overlay-video-interaction-svg",class:_.qe("ytPlayerOverlayVideoInteractionsInteractionsSvg",(Q.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=v,Q),(v3.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=R,v3)),role:"button",style:function(){var q7,m0,$S,kS=($S=(q7=d())==null?void 0:(m0=q7.regions)==null?void 0:m0[0].transformationMatrix)!=null?$S:[];q7=Y();m0=r();$S=[];for(var N7=0,As=-1;N7<kS.length;N7++)N7%3===0&&(As++,$S[As]=[]),$S[As].push(kS[N7]);kS=new Sc($S);$S=new Sc([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);$S=kS.multiply($S);kS=new Sc([[0,0],[0,0],[0,0],[0,0]]);for(N7=0;N7<$S.getSize().width;N7++){As=Wo($S,0,N7);var Ct=Wo($S,1,N7);if(As===null||Ct===null)throw Error("Ho`"+(N7+1).toString());ah(kS,N7,0,As*q7);ah(kS,N7,1,Ct*m0)}q7=Wo(kS,0,0);N7=Wo(kS,1,0);m0=Wo(kS,0,1);As=Wo(kS,1,1);if(q7===null||N7===null||m0===null||As===null)throw Error("Fo");$S=Y0m(q7,N7,m0,As);Ct=Wo(kS,3,0);kS=Wo(kS,3,1);if(Ct===null||kS===null)throw Error("Go");kS=Y0m(q7,Ct,m0,kS);As=(Number((As*-1).toFixed(2))-
Number((m0*-1).toFixed(2)))/(Number(N7.toFixed(2))-Number(q7.toFixed(2)));Ct=Math.atan(As)*180/Math.PI;N7=As===Number.POSITIVE_INFINITY?-90:As===Number.NEGATIVE_INFINITY?90:Object.is(As,-0)?180:As===0?0:As>0?Ct*-1:q7<N7?Ct*-1:Math.abs(Ct)+180;return"left:calc("+q7+"px + "+T()+"); top:calc("+(m0+"px + "+O()+"); width:")+($S+"px; height:")+(kS+"px; transform:rotate(")+(N7+"deg);")},
"on:click":X}))},"nk"),"yt-player-overlay-video-interactions",{props:{data:_.U1}});_.aZ(_.eHt,"yt-reel-metapanel-view-model",{props:{data:_.U1,overlayDensity:_.U1}});var BHa=_.l(function(v){var e=v.children;var d=v.region;v=_.a(_.OE(void 0,void 0,"rwJZyc"));var E=v.next().value,T=v.next().value;v=_.a(_.OE("0px",void 0,"H14H5c"));var S=v.next().value,O=v.next().value;v=_.a(_.OE("0px",void 0,"Mn8Uvf"));var b=v.next().value,Y=v.next().value;v=_.a(_.OE(0,void 0,"QQCIqc"));var q=v.next().value,r=v.next().value;v=_.a(_.OE(0,void 0,"HyEvh"));var h=v.next().value,K=v.next().value,k=function(){var U=E();if(U){var F;if(((F=_.mS())==null?void 0:F.getPlayerState())!==-1){U.style.display=
"inherit";var g;(g=_.mS())==null||g.removeEventListener("onStateChange",k)}R()}},J=function(){var U=document.querySelectorAll("video");
return Array.from(U).find(function(F){var g;return F==null?void 0:(g=F.style)==null?void 0:g.width})},R=function(){var U=J();
if(U){r(U.getBoundingClientRect().width);K(U.getBoundingClientRect().height);var F;O((U==null?void 0:(F=U.style)==null?void 0:F.left)||"0px");var g;Y((U==null?void 0:(g=U.style)==null?void 0:g.top)||"0px")}};
_.o_(function(){var U=E();if(U){var F,g,Q;if(((F=_.mS())==null?void 0:F.getPlayerState())===-1&&Math.round(((Q=(g=_.mS())==null?void 0:g.getVideoAspectRatio())!=null?Q:0)*100)!==Math.round(q()/h()*100)){U.style.display="none";var v3,q7;K(q()/((q7=(v3=_.mS())==null?void 0:v3.getVideoAspectRatio())!=null?q7:1))}}},"RdGxIf");
var B=function(){R()},X;
_.JE(function(){R();var U;if(!(d==null?0:(U=d())==null?0:U.transformationMatrix))throw Error("Io");var F;(F=_.mS())==null||F.addEventListener("onStateChange",k);if(window.ResizeObserver){if(U=J())X=new ResizeObserver(B),X.observe(U)}else window.addEventListener("resize",R);_.Jf(function(){var g;(g=_.mS())==null||g.removeEventListener("onStateChange",k);X?X.disconnect():window.removeEventListener("resize",R)})});
var Z=function(){var U,F,g=(F=d==null?void 0:(U=d())==null?void 0:U.transformationMatrix)!=null?F:[];U=q();F=h();for(var Q=[],v3=0,q7=-1;v3<g.length;v3++)v3%3===0&&(q7++,Q[q7]=[]),Q[q7].push(g[v3]);g=new Sc(Q);Q=new Sc([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);Q=g.multiply(Q);g=new Sc([[0,0],[0,0],[0,0],[0,0]]);for(v3=0;v3<Q.getSize().width;v3++){q7=Wo(Q,0,v3);var m0=Wo(Q,1,v3);if(q7===null||m0===null)throw Error("Ho`"+(v3+1).toString());ah(g,v3,0,q7*U);ah(g,v3,1,m0*F)}U=Wo(g,0,0);v3=Wo(g,1,0);F=Wo(g,0,1);
q7=Wo(g,1,1);if(U===null||v3===null||F===null||q7===null)throw Error("Fo");Q=ys6(U,v3,F,q7);m0=Wo(g,3,0);g=Wo(g,3,1);if(m0===null||g===null)throw Error("Go");g=ys6(U,m0,F,g);q7=(Number((q7*-1).toFixed(2))-Number((F*-1).toFixed(2)))/(Number(v3.toFixed(2))-Number(U.toFixed(2)));m0=Math.atan(q7)*180/Math.PI;v3=q7===Number.POSITIVE_INFINITY?-90:q7===Number.NEGATIVE_INFINITY?90:Object.is(q7,-0)?180:q7===0?0:q7>0?m0*-1:U<v3?m0*-1:Math.abs(m0)+180;return"left:calc("+U+"px + "+S()+"); top:calc("+(F+"px + "+
b()+"); width:")+(Q+"px; height:")+(g+"px; transform:rotate(")+(v3+"deg);")};
return _.m(Itf,{root:"#sticker-layer"},function(){return _.m("yt-overlay-sticker",{el:_.dq(T),style:Z,class:"ytOverlayStickerHost"},e)})},"ok");var CLf=_.l(function(v){function e(){var k,J,R,B,X=(J=_.L((k=Y())==null?void 0:k.command,_.$w))==null?void 0:(R=J.item)==null?void 0:(B=R.notificationTextRenderer)==null?void 0:B.successResponseText;if(X)_.b4(E.value,"yt-open-popup-action",[_.To(X),E.value]);else if(q())q0D(q(),E.value);else{var Z;q0D((Z=Y())==null?void 0:Z.command,E.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var d=v.data;var E=_.nI("svg"),T=_.a(_.OE(!1,void 0,"T9Bq7b"));v=T.next().value;var S=T.next().value,O=_.a(_.OE(!1,void 0,"iMHq9c"));T=O.next().value;var b=O.next().value,Y=function(){var k;return _.L((k=d())==null?void 0:k.popUp,ft$)},q=function(){var k;
return(k=d())==null?void 0:k.command},r=function(){return _.L(q(),_.V0)!==void 0};
O=_.rq(function(){e();return!1});
var h={},K={};return _.m("svg",{"on:mouseover":_.rq(function(){r()&&S(!0);b(!0);return!1}),
"on:mouseout":_.rq(function(){S(!1);b(!1);return!1}),
"on:keydown":_.rq(function(k){k.key==="Enter"&&e();return!1}),
"on:focus":_.rq(function(){r()&&S(!0);return!1}),
"on:blur":_.rq(function(){r()&&S(!1);return!1}),
el:E,tabindex:0,"aria-label":function(){var k;return(k=d())==null?void 0:k.a11yString},
id:"player-overlay-video-interaction-svg",class:_.qe("ytPlayerOverlayInteractionInteractionsSvg",(h.ytPlayerOverlayInteractionInteractionsSvgHover=v,h),(K.ytPlayerOverlayInteractionInteractionsSvgHideOutline=T,K)),role:"button","on:click":O})},"qk");_.aZ(_.l(function(v){var e=v.data;_.JE(function(){var d;if((d=e())==null?0:d.trackingParams){var E;_.NC().graftServerVe((E=e().trackingParams)!=null?E:"")}});
return _.m("yt-player-overlay-interaction",null,_.m(BHa,{region:function(){var d,E;return(d=e())==null?void 0:(E=d.regions)==null?void 0:E[0]}},_.m(CLf,Object.assign({},v))))},"pk"),"yt-player-overlay-interaction",{props:{data:_.U1}});var OO=function(){var v=_.P.apply(this,arguments)||this;v.showScrubber=!1;v.isWatchWhileMode=!1;v.enableAnchoredPanel=_.N("desktop_shorts_v2_anchored_panel");v.enableNewStickers=_.N("use_shorts_sticker_overlay_web");v.anchoredPanelActive=!1;v.enableLivingroomLayout=_.N("reels_enable_livingroom_layout");v.enablePlayerMetadataContainer=_.N("reels_web_enable_metadata_container");v.enableSqueezebackPanels=_.N("web_shorts_enable_squeezeback_panels");v.useAspectRatio=_.N("web_use_aspect_ratio");v.isSqueezebackActive=
!1;v.smallScreenSqueezeback=!1;v.isPlayerStarted=!1;v.overlayDensity=0;v.isOverlay=!1;v.isImmersive=!1;v.isImmersiveHorizontal=!1;v.isFullscreen=!1;v.onWindowResized=function(){var e;v.set("isImmersive",((e=window.getComputedStyle(v.hostElement))==null?void 0:e.getPropertyValue("--immersive-mode-on"))==="1");v.set("isImmersiveHorizontal",v.isImmersive&&v.enableLivingroomLayout&&!v.isWatchWhileMode)};
return v};
_.V(OO,_.P);_.W=OO.prototype;_.W.updateIsOverlay=function(v){this.isOverlay=v.detail.value};
_.W.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.N("web_enable_flexible_overlay")||_.N("web_enable_format_first")||_.N("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.W.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.W.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.W.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.W.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.W.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.W.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.W.ready=function(){(_.N("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"))&&(!_.N("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.aH("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.aH("reels_action_justified_content")||"flex-start")};
_.W.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}}};
_.W.setFakeLoadingButtons=function(){_.N("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.sz("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.sz("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.sz("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.sz("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.sz("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()};
_.W.setEmptyOverlayMetadata=function(){_.N("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}))};
_.vP.Object.defineProperties(OO.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.infoPanel)}}});
OO.prototype.onIsActiveChanged=OO.prototype.onIsActiveChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],OO.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],OO.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],OO.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],OO.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],OO.prototype,"isActive",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],OO.prototype,"hidden",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],OO.prototype,"useShortsIcon",void 0);_.c([_.f({value:"left"}),_.w("design:type",String)],OO.prototype,"buttonTooltipPosition",void 0);
_.c([_.f({value:_.N("reels_enable_livingroom_layout")?"top":"left"}),_.w("design:type",String)],OO.prototype,"likeButtonTooltipPosition",void 0);_.c([_.f({value:"none"}),_.w("design:type",String)],OO.prototype,"textTransform",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"showScrubber",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"isWatchWhileMode",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data.infoPanel"),_.w("design:type",Object),_.w("design:paramtypes",[])],OO.prototype,"hasInfoPanel",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"enableAnchoredPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"enableNewStickers",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"anchoredPanelActive",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"enableLivingroomLayout",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],OO.prototype,"enablePlayerMetadataContainer",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"enableSqueezebackPanels",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"useAspectRatio",void 0);
_.c([_.f({selector:_.S87,reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"isSqueezebackActive",void 0);_.c([_.f({selector:S0J,reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"smallScreenSqueezeback",void 0);_.c([_.f({selector:W0B}),_.w("design:type",Object)],OO.prototype,"isPlayerStarted",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"overlayDensity",void 0);_.c([_.f(),_.w("design:type",Object)],OO.prototype,"isOverlay",void 0);
_.c([_.f({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.w("design:type",Boolean)],OO.prototype,"isShortsOverlay",void 0);_.c([_.f(),_.w("design:type",Object)],OO.prototype,"isImmersive",void 0);_.c([_.f(),_.w("design:type",Object)],OO.prototype,"isImmersiveHorizontal",void 0);_.c([_.f({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.w("design:type",Boolean)],OO.prototype,"isShortsImmersive",void 0);
_.c([_.f({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.w("design:type",Object)],OO.prototype,"buttonOverride",void 0);_.c([_.f({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.w("design:type",Object)],OO.prototype,"actionBarButtonOverride",void 0);_.c([_.f({selector:_.SB,reflectToAttribute:!0}),_.w("design:type",Object)],OO.prototype,"isFullscreen",void 0);
_.c([_.$v("isActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OO.prototype,"onIsActiveChanged",null);_.c([_.z({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],OO);
_.A(OO,"ytd-reel-player-overlay-renderer",function(){if(PLu!==void 0)return PLu;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return PLu=v},{mode:1});var X3V;var Ih=function(){var v=_.P.apply(this,arguments)||this;v.videoDuration=0;v.playedTime=0;v.isActive=!1;v.JSC$22284_playerEvents=new Map;return v};
_.V(Ih,_.P);_.W=Ih.prototype;_.W.created=function(){this.JSC$22284_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22284_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.W.attached=function(){this.getPlayerAndInitializeListeners()};
_.W.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22284_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.hG(this,this.onPageChanged))};
_.W.getPlayerAndInitializeListeners=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return e=_.dB(),e?d.yield(e.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.hG(v,v.onPageChanged)),d.jumpTo(0));v.player=d.yieldResult;v.initializePlayerListeners();_.s9(d)})};
_.W.onPageChanged=function(v){var e=this;return _.I(function(d){if(d.nextAddress==1)return v.detail.newPageType!=="ytd-shorts"?d.return():d.yield(_.EK().getPlayerPromise(),2);e.player=d.yieldResult;e.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.hG(e,e.onPageChanged));_.s9(d)})};
_.W.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22284_playerEvents)};
_.W.onVideoDataChange=function(v){var e=this;return _.I(function(d){if(!e.player||v.type!=="newdata")return d.return();e.videoDuration=_.N("web_shorts_use_progress_state_for_gapless")?e.player.getProgressState(v.playertype).seekableEnd:e.player.getDuration(v.playertype);e.playedTime=0;_.s9(d)})};
_.W.onVideoProgress=function(v){var e=this,d,E;return _.I(function(T){if(!e.player)return T.return();d=e.player.getPresentingPlayerType();E=e.player.getPlayerState();e.videoDuration=_.N("web_shorts_use_progress_state_for_gapless")?e.player.getProgressState(d).seekableEnd:e.player.getDuration(d);e.playedTime=E===0?e.videoDuration:v;_.s9(T)})};
_.W.getPercentPlayed=function(v,e){return v?_.M3(e/v,0,1):0};
_.vP.Object.defineProperties(Ih.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 v="";return v=this.videoDuration&&this.playedTime?v+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):v+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Ih.prototype,"componentBehavior",void 0);_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],Ih.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ih.prototype,"player",void 0);_.c([_.f(),_.w("design:type",Object)],Ih.prototype,"videoDuration",void 0);_.c([_.f(),_.w("design:type",Object)],Ih.prototype,"playedTime",void 0);_.c([_.f(),_.w("design:type",Object)],Ih.prototype,"isActive",void 0);
_.c([_.t("videoDuration","playedTime"),_.w("design:type",Number),_.w("design:paramtypes",[])],Ih.prototype,"percentPlayed",null);_.c([_.t("videoDuration","playedTime"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ih.prototype,"percentPlayedStyle",null);_.c([_.t("videoDuration","isActive"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ih.prototype,"hideProgressBar",null);
_.A(Ih,"ytd-progress-bar-line",function(){if(X3V===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);X3V=v}v=X3V;return v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var z$V;_.aZ(_.kq_,"ytm-closed-captioning-button",{props:{captionIconType:_.U1,onClick:_.SM,ariaLabel:_.U1,ariaPressed:_.U1,isOverlay:_.SM,isModern:_.SM}});_.aZ(_.uv_,"desktop-shorts-volume-controls",{props:{orientation:_.U1}});var bb=function(){var v=_.P.apply(this,arguments)||this;v.playerState=null;v.isMuted=!1;v.shortsModernControlsEnabled=_.N("web_shorts_modern_controls");v.volumeControlsOrientationState=_.N("web_shorts_modern_controls")?"vertical_down":"horizontal_right";v.isOverlay=!0;v.captionIconType=-1;v.ariaLabel="";v.overlayDensity=0;v.JSC$22287_playerEvents=new Map;v.onClosedCaptionsButtonClick=function(){v.player&&_.uQ(v.player)&&(v.player.toggleSubtitles(),v.updateCaptionIconType())};
return v};
_.V(bb,_.P);_.W=bb.prototype;_.W.created=function(){this.JSC$22287_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22287_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22287_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.W.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.bH(28662);this.playPauseButtonClientVE=_.bH(36842);this.fullscreenButtonToggleOffClientVE=_.bH(222256);this.fullscreenButtonToggleOnClientVE=_.bH(222257);var v=_.zz(),e=_.Xf();v&&e&&(_.N("combine_ve_grafts")?(_.bj(_.NC(),this.muteButtonClientVE,e),_.bj(_.NC(),this.playPauseButtonClientVE,e)):_.gV(v,e,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.W.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22287_playerEvents),this.player=null)};
_.W.updateCaptionIconType=function(){var v=-1,e=void 0,d=_.sz("CLOSED_CAPTIONS_DISABLED");this.player&&_.uQ(this.player)&&(_.bDC(this.player)?(e=!0,d=_.sz("CLOSED_CAPTIONS_ON"),v=1):(e=!1,d=_.sz("CLOSED_CAPTIONS_OFF"),v=0));this.captionIconType=v;this.ariaPressedState=e;this.ariaLabel=d};
_.W.getPlayerAndInitializeListeners=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return e=_.dB(),e?d.yield(e.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.hG(v,v.onPageChanged)),d.jumpTo(0));v.player=d.yieldResult;v.initializePlayerListeners();_.s9(d)})};
_.W.onPageChanged=function(v){var e=this;return _.I(function(d){if(d.nextAddress==1)return v.detail.newPageType!=="ytd-shorts"?d.return():d.yield(_.EK().getPlayerPromise(),2);e.player=d.yieldResult;e.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.hG(e,e.onPageChanged));_.s9(d)})};
_.W.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22287_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.W.onPlayerStateChange=function(v){this.playerState=v};
_.W.onPlayerVolumeChange=function(v){this.isMuted=v.muted};
_.W.onPlayPauseButtonClick=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(_.EK().getPlayerPromise(),2);e=E.yieldResult;(d=_.zz())&&v.playPauseButtonClientVE&&_.Uz(d,v.playPauseButtonClientVE);e.getPlayerState()!==1?e.playVideo():e.pauseVideo();_.s9(E)})};
_.W.computePlayPauseIcon=function(v){return v===2||v===-1||v===5?_.N("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.N("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.N("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.W.computeFullscreenLabel=function(v){return v?_.sz("FULLSCREEN_EXIT_LABEL"):_.sz("FULLSCREEN_ENTER_LABEL")};
_.W.computePlayPauseLabel=function(v){return v===1||v===3?_.sz("PLAYER_LABEL_PAUSE"):_.sz("PLAYER_LABEL_PLAY")};
_.W.onMuteButtonClick=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(_.EK().getPlayerPromise(),2);e=E.yieldResult;(d=_.zz())&&v.muteButtonClientVE&&_.Uz(d,v.muteButtonClientVE);e.isMuted()?e.unMute(!0):e.mute(!0);_.s9(E)})};
_.W.computeMuteIcon=function(v){return v?"miniplayer:volume-off":"miniplayer:volume-up"};
_.W.computeMuteLabel=function(v){return v?_.sz("PLAYER_LABEL_UNMUTE"):_.sz("PLAYER_LABEL_MUTE")};
_.W.onFullscreenButtonClick=function(){var v=_.zz();v&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Uz(v,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Uz(v,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.c0Q()};
_.vP.Object.defineProperties(bb.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var v=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(){v.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?_.N("web_shorts_modern_controls")?"player_full_exit_alt":_.N("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.N("web_shorts_modern_controls")?"player_full_enter_alt":_.N("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],bb.prototype,"componentBehavior",void 0);_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],bb.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],bb.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],bb.prototype,"player",void 0);_.c([_.f(),_.w("design:type",Object)],bb.prototype,"playerState",void 0);_.c([_.f(),_.w("design:type",Object)],bb.prototype,"isMuted",void 0);
_.c([_.f({computed:"computePlayPauseIcon(playerState)"}),_.w("design:type",String)],bb.prototype,"playPauseIcon",void 0);_.c([_.f({computed:"computeMuteIcon(isMuted)"}),_.w("design:type",String)],bb.prototype,"muteIcon",void 0);_.c([_.f({selector:_.SB}),_.w("design:type",Boolean)],bb.prototype,"isFullscreen",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],bb.prototype,"shortsModernControlsEnabled",void 0);
_.c([_.f(),_.w("design:type",Object)],bb.prototype,"volumeControlsOrientationState",void 0);_.c([_.f(),_.w("design:type",Object)],bb.prototype,"isOverlay",void 0);_.c([_.f(),_.w("design:type",Object)],bb.prototype,"captionIconType",void 0);_.c([_.f(),_.w("design:type",Object)],bb.prototype,"ariaLabel",void 0);_.c([_.f(),_.w("design:type",Object)],bb.prototype,"ariaPressedState",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],bb.prototype,"overlayDensity",void 0);
_.c([_.t("playerState"),_.w("design:type",Object),_.w("design:paramtypes",[])],bb.prototype,"playPauseButtonData",null);_.c([_.t("isFullscreen"),_.w("design:type",Object),_.w("design:paramtypes",[])],bb.prototype,"fullscreenButtonData",null);_.c([_.f(),_.w("design:type",Object)],bb.prototype,"onClosedCaptionsButtonClick",void 0);_.c([_.t("isFullscreen"),_.w("design:type",String),_.w("design:paramtypes",[])],bb.prototype,"fullscreenIcon",null);
_.A(bb,"ytd-shorts-player-controls",function(){if(z$V===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);z$V=v}v=z$V;return v},{mode:1});var ltD;_.aZ(_.r2M,"yt-interstitial-view-model",{props:{data:_.U1}});var Htm=_.l(function(v){var e=v.data;return _.m("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.m("h1",{class:"reelWatchBreakViewModelHostTitle"},_.m(_.Dh,{text:function(){return e().title}})),_.m("h2",{class:"reelWatchBreakViewModelHostBody"},_.m(_.Dh,{text:function(){return e().body},
isOverlay:!0})),_.m(_.kz,{data:function(){return e().buttons}},{buttonViewModel:function(d,E){return _.m("div",{class:function(){return E()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.m(_.yi,{data:d.data}))}}))},"rk");
Htm.idomCompat=!0;_.aZ(Htm,"reel-watch-break-view-model",{props:{data:_.U1}});var YV=function(){return _.P.apply(this,arguments)||this};
_.V(YV,_.P);YV.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}}};
_.vP.Object.defineProperties(YV.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.L((v=this.data)==null?void 0:v.renderer,VW6)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var v;return!!_.L((v=this.data)==null?void 0:v.renderer,oSa)}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],YV.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],YV.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],YV.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data.renderer"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],YV.prototype,"isSurvey",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.renderer"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],YV.prototype,"isInterstitialViewModel",null);_.c([_.z({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],YV);
_.A(YV,"ytd-reel-non-video-content-renderer",function(){if(ltD!==void 0)return ltD;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return ltD=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var Asm;_.aZ(_.gx9,"desktop-shorts-player-controls",{});var ml=function(){var v=_.P.apply(this,arguments)||this;v.isPlayerPaused=!1;v.isPlayerStarted=!1;v.showPlayerControls=!1;v.showScrubber=!1;v.autoHideJobId=0;v.modern=_.N("web_button_rework");v.overlayType=_.aH("web_shorts_expanded_overlay_type");v.panelData=void 0;v.isWatchWhileMode=!1;v.hasError=!1;v.panelShowDelayMs=1;v.scrubberComponent={};v.isFullscreen=!1;v.shouldHideOverlay=!1;v.enableAnchoredPanel=_.N("desktop_shorts_v2_anchored_panel");v.enablePersistentAnchoredPanel=_.N("desktop_shorts_v2_persistent_anchored_panel");
v.hideWatchWhilePanel=_.N("web_shorts_hide_watch_while_panel");v.useAspectRatio=_.N("web_use_aspect_ratio");v.isPersistentPanelActive=!1;v.anchoredPanelActive=!1;v.isShortsPipActive=!1;v.smallScreenSqueezeback=!1;v.enableFlexibleOverlay=_.N("web_enable_flexible_overlay");v.overlayDensity=0;v.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};v.onWindowResized=function(){_.gi(v,
"calculateOverlayDensity",function(){v.calculateOverlayDensity()},100)};
return v};
_.V(ml,_.P);_.W=ml.prototype;_.W.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.W.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.W.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var v=_.dk().resolve(_.tx);this.isWatchWhileMode&&(_.N("web_enable_shorts_new_carousel")?_.RM.addJob(function(){v.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):v.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.W.handleShowReelsCommentsOverlayCommand=function(v){v=_.L(v,MWJ);this.isActive&&(v==null?0:v.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))};
_.W.updateEngagementPanelVisibility=function(v,e){v&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:e?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:v}})};
_.W.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.W.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.dk().resolve(_.s1).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.W.handleWatchWhilePanelScrimClick=function(){var v=_.dk().resolve(_.tx);this.activeWatchWhilePanel&&(v.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.W.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.W.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:_.N("web_enable_shorts_new_carousel")?0:void 0}}};
_.W.handlePlayerClick=function(v){var e=this,d,E;if((E=(d=window).matchMedia)!=null&&E.call(d,"(any-pointer: coarse)").matches||!v)this.showPlayerControls=!0,_.RM.cancelJob(this.autoHideJobId),this.autoHideJobId=_.LI(_.RM,function(){e.showPlayerControls=!1},4E3)};
_.W.isFirstReel=function(){return this.index===0};
_.W.handleMouseenter=function(){_.RM.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.W.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.W.handleScrubberEnter=function(){this.showScrubber=!0};
_.W.handleScrubberLeave=function(){this.showScrubber=!1};
_.W.maybeLogNonDefaultAspectRatio=function(){var v;(v=this.data)!=null&&v.thumbnail&&this.isActive&&.5625!==THB(this.data.thumbnail)&&_.l5W("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.W.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var v=document.querySelector("#shorts-container");if(v){v=v.offsetWidth/2-this.playerContainer.offsetWidth/2;v=v>=368?1:v>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&v===1&&(v=0);this.isPersistentPanelActive&&(v=0);window.innerWidth<=599&&(v=2);this.overlayDensity=v;var e;(e=this.onOverlayDensityChanged)==null||e.call(this,this.index,this.overlayDensity)}}};
_.W.onOverlayDensityChange=function(){var v;(v=this.onOverlayDensityChanged)==null||v.call(this,this.index,this.overlayDensity);(v=_.IB(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&v.set("overlayDensity",this.overlayDensity);if(v=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))v.overlayDensity=this.overlayDensity};
_.W.isVideoContent=function(v){_.dk().resolve(_.s1);return!!_.L(v,_.Go)};
_.W.isNonVideoContent=function(v){_.dk().resolve(_.s1);return!!_.L(v,_.PD)};
_.W.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.vP.Object.defineProperties(ml.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var v,e;return _.N("web_enable_format_first")||((v=this.data)==null?void 0:v.adsOverlay)&&_.N("web_enable_format_first_ads_only")||((e=this.data)==null?void 0:e.reelPlayerOverlayRenderer)&&_.N("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.N("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var v;return!this.isActive||!this.isPlayerStarted||(v=this.data)!=null&&v.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.data)==null?0:v.command)&&this.isVideoContent(this.data.command)){var e,d;if(((e=this.data)==null?0:e.adsOverlay)&&Object.keys((d=this.data)==null?void 0:d.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var E,T;if(((E=this.data)==null?0:E.reelPlayerOverlayRenderer)&&Object.keys((T=this.data)==null?void 0:T.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
ml.prototype.onOverlayDensityChange=ml.prototype.onOverlayDensityChange;ml.prototype.calculateOverlayDensity=ml.prototype.calculateOverlayDensity;ml.prototype.maybeLogNonDefaultAspectRatio=ml.prototype.maybeLogNonDefaultAspectRatio;ml.prototype.onEngagementPanelsChanged=ml.prototype.onEngagementPanelsChanged;ml.prototype.onScrubberDataChange=ml.prototype.onScrubberDataChange;ml.prototype.updateShouldHideOverlay=ml.prototype.updateShouldHideOverlay;
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ml.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],ml.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ml.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Number)],ml.prototype,"index",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],ml.prototype,"isActive",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],ml.prototype,"isHiddenInDom",void 0);_.c([_.f(),_.w("design:type",Object)],ml.prototype,"isPlayerPaused",void 0);_.c([_.f({selector:W0B}),_.w("design:type",Object)],ml.prototype,"isPlayerStarted",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"showPlayerControls",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"showScrubber",void 0);_.c([_.f(),_.w("design:type",Object)],ml.prototype,"autoHideJobId",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"modern",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"overlayType",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],ml.prototype,"ytdReduxBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],ml.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ml.prototype,"watchWhileEngagementPanels",void 0);_.c([_.f(),_.w("design:type",Object)],ml.prototype,"panelData",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"isWatchWhileMode",void 0);_.c([_.f(),_.w("design:type",String)],ml.prototype,"activeWatchWhilePanel",void 0);
_.c([_.f(),_.w("design:type",Object)],ml.prototype,"hasError",void 0);_.c([_.f(),_.w("design:type",Object)],ml.prototype,"panelShowDelayMs",void 0);_.c([_.f(),_.w("design:type",Object)],ml.prototype,"scrubberComponent",void 0);_.c([_.f({selector:_.SB,reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"isFullscreen",void 0);_.c([_.f(),_.w("design:type",Object)],ml.prototype,"shouldHideOverlay",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"enableAnchoredPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"enablePersistentAnchoredPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"hideWatchWhilePanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"useAspectRatio",void 0);
_.c([_.f({selector:_.S87,reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"isPersistentPanelActive",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"anchoredPanelActive",void 0);_.c([_.f({selector:_.Wj,reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"isShortsPipActive",void 0);_.c([_.f({selector:S0J,reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"smallScreenSqueezeback",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],ml.prototype,"enableFormatFirst",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"enableFlexibleOverlay",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"overlayDensity",void 0);_.c([_.f(),_.w("design:type",Function)],ml.prototype,"onOverlayDensityChanged",void 0);
_.c([_.f(),_.t("isActive","hasError","isPlayerStarted"),_.w("design:type",Object),_.w("design:paramtypes",[])],ml.prototype,"shouldRenderPlayerElements",null);_.c([_.f(),_.t("isActive","isWatchWhileMode"),_.w("design:type",Object),_.w("design:paramtypes",[])],ml.prototype,"watchWhileOrPersistentActive",null);_.c([_.$v("isActive","hasError","showingExpandedOverlay"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ml.prototype,"updateShouldHideOverlay",null);
_.c([_.f({reflectToAttribute:!0}),_.t("isActive","isPlayerStarted","data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ml.prototype,"shouldRenderScrubber",null);_.c([_.$v("shouldRenderScrubber"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ml.prototype,"onScrubberDataChange",null);_.c([_.t("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],ml.prototype,"overlayComponent",null);
_.c([_.$v("watchWhileEngagementPanels"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ml.prototype,"onEngagementPanelsChanged",null);_.c([_.sg("#player-container"),_.w("design:type",HTMLElement)],ml.prototype,"playerContainer",void 0);_.c([_.sg("#cinematic-container"),_.w("design:type",HTMLElement)],ml.prototype,"cinematicContainer",void 0);
_.c([_.$v("isPersistentPanelActive","data.thumbnail"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ml.prototype,"maybeLogNonDefaultAspectRatio",null);_.c([_.$v("isPersistentPanelActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ml.prototype,"calculateOverlayDensity",null);_.c([_.$v("overlayDensity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ml.prototype,"onOverlayDensityChange",null);
_.c([_.z({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],ml);
_.A(ml,"ytd-reel-video-renderer",function(){if(Asm!==void 0)return Asm;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Asm=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var yC=function(){var v=_.P.apply(this,arguments)||this;v.isPreviousPageShorts=!1;v.index=0;v.delayedActiveIndex=0;v.playablePreviousIndex=null;v.isPlayerPaused=!1;v.isPlayerStarted=!1;v.intersectionObserverThreshold=.6;v.fitToVisibleBounds=!1;v.pageSubtype="shorts";v.enablePreviousContinuation=_.N("shorts_in_playlists_web");v.shortsPipEnabled=_.N("web_shorts_pip");v.isDark=document.documentElement.hasAttribute("dark");v.shortsViewTransitions=_.N("web_shorts_view_transitions");v.isFullscreen=!1;v.isShortsPipActive=
!1;v.buttonOverride={iconPosition:"icon-only",size:"XL"};v.anchoredPanelActive=!1;v.isActive=!1;v.smallScreenPersistentPanel=!1;v.isPersistentPanelActive=!1;v.smallScreenSqueezeBack=!1;v.enableScrollIntoViewCenter=_.N("web_scroll_into_view_center");v.formatFirst=_.N("web_enable_format_first")||_.N("web_enable_format_first_ads_only")||_.N("web_enable_format_first_organic_only");v.enableFlexibleOverlay=_.N("web_enable_flexible_overlay");v.useAspectRatio=_.N("web_use_aspect_ratio");v.isShortsInitialized=
!1;v.hidePreviousButtonImmediately=!1;v.showPreviousButtonImmediately=!1;v.endOfNextContinuation=!1;v.currentPlayerIndex=0;v.nextReelVe=_.bH(56921);v.prevReelVe=_.bH(56922);v.loopToggleOffVe=_.bH(198013);v.loopToggleOnVe=_.bH(198014);v.ambientModeToggleVe=_.bH(227860);v.reelPlayerPausedStateRendererVe=_.bH(141313);v.storedPlaybackSpeed=null;v.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"};v.onOverlayDensityChanged=function(e,d){var E;(E=v.getActiveReelVideo(e))==null||E.setAttribute("overlay-density",String(d))};
return v};
_.V(yC,_.P);_.W=yC.prototype;
_.W.deflateInactivePreviousSlides=function(){var v=_.Wi("web_shorts_deflate_inactive_slides_aggressive_distance");if(v>0&&this.shortsProcessedSequence&&this.activeIndex){v=this.activeIndex-v;for(var e=0;e<=v;e++){var d=void 0;((d=this.shortsProcessedSequence[e].reelPlayerOverlayRenderer)==null?0:d.metapanel)&&this.set("shortsProcessedSequence."+e+".reelPlayerOverlayRenderer",{});d=void 0;((d=this.shortsProcessedSequence[e].adsOverlay)==null?0:d.adSlotMetadata)&&this.set("shortsProcessedSequence."+e+
".adsOverlay",{})}}};
_.W.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.W.onResize=function(){var v=_.d1(),e=v.dispatch,d=this.calculateIsSmallWidth();e.call(v,_.Oo({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:d}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.W.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:_.N("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}}};
_.W.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var v=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,e=v,d=0;v<250&&(e=v+this.shortsInnerContainer.clientWidth,d=24);_.qr(this.hostElement,{"--ytd-shorts-header-width":e+"px","--ytd-shorts-top-spacing":d+"px"})}};
_.W.isFirstShorts=function(v){return v?this.index===-v.length:this.index===0};
_.W.isActiveReel=function(v,e,d){d&&(e=this.calculatePrevIndex(e,d));return v===e};
_.W.onFullscreenChange=function(){if(_.N("web_fullscreen_shorts")){var v;(v=this.getActiveReelVideo(this.activeIndex))==null||v.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.dk().resolve(_.P0).close(!0)}};
_.W.engagementPanelsChanged=function(){var v;this.watchWhileEngagementPanels=(v=this.data)==null?void 0:v.engagementPanels};
_.W.unregisterPanels=function(){var v=_.dk().resolve(_.tx);if(this.watchWhileEngagementPanels)for(var e=_.a(this.watchWhileEngagementPanels),d=e.next();!d.done;d=e.next()){var E=d.value,T=void 0,S=void 0;d=(T=E.engagementPanelSectionListRenderer)==null?void 0:(S=T.identifier)==null?void 0:S.tag;E=this.getPanelContentIdentifier(E.engagementPanelSectionListRenderer);v&&(d&&v.panelMap.delete(d),E&&_.N("web_shorts_panel_caching_bugfix")&&(T=d=void 0,(T=(d=v).unregisterPanelContent)==null||T.call(d,E)))}};
_.W.isVideoContent=function(v){return this.isVideoContentCommand(v==null?void 0:v.command)};
_.W.getActiveReelVideo=function(v){return _.IB(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+v+'"]')};
_.W.calculatePrevIndex=function(v,e){return e?v-((e==null?void 0:e.length)||0):-1};
_.W.onKeydown=function(v){var e=_.vg(v)||[];if(!_.ZkQ(e))if(v.code==="ArrowUp")v.preventDefault(),this.handlePrevButtonClick();else if(v.code==="ArrowDown")v.preventDefault(),this.handleNextButtonClick();else if(v.code==="KeyM")this.toggleMuteUnmuteVideo();else if(v.code==="KeyK"||v.code==="Space")this.togglePlayPauseVideo();else if((v.code==="KeyA"||v.code==="ArrowLeft")&&_.N("web_shorts_keyboard_enable_seek_shortcuts")){var d;(d=this.player)==null||d.seekBy(-5)}else if((v.code==="KeyD"||v.code===
"ArrowRight")&&_.N("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var E;(E=this.player)==null||E.seekBy(5)}};
_.W.onServiceRequestCompleted=function(v,e){v=e.data;v.continuationEndpoint&&v.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:v.entries,continuationEndpoint:v.continuationEndpoint}}):v.prevContinuationEndpoint&&v.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:v.prevEntries,prevContinuationEndpoint:v.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.W.handleEngagementPanelVisibilityChanged=function(v,e){var d=_.dk().resolve(_.tx);if(v&&d){var E=this.getPanelIdentifier(v);if(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==E){d.hidePanel(this.activePanel);var T;this.activePanel=((T=v.identifier)==null?void 0:T.tag)||v.panelIdentifier}else this.isPersistentPanelActive=!0,_.d1().dispatch(K0u(!0)),this.anchoredPanelActive=!0,this.activePanel=E;else e==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
E&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.d1().dispatch(K0u(!1)))}};
_.W.handlePanelScrimClick=function(){var v=_.dk().resolve(_.tx);this.activePanel&&(v.hidePanel(this.activePanel),_.d1().dispatch(K0u(!1)))};
_.W.getShortsLoopSetting=function(){var v,e,d,E,T;return _.I(function(S){switch(S.nextAddress){case 1:return _.N("kevlar_shorts_auto_advance")?S.yield(_.Jd.getInstance(),2):S.return(!0);case 2:return(v=S.yieldResult)?S.yield(v.get("sfvles"),3):S.return(!0);case 3:return d=(e=S.yieldResult)!=null?e:!1,S.yield(v.get("sfvle"),4);case 4:return T=(E=S.yieldResult)!=null?E:!0,d?S.return(T):S.return(!0)}})};
_.W.handleSignalActionToggleLoopShortsOff=function(){var v=this,e,d,E;return _.I(function(T){switch(T.nextAddress){case 1:if(!v.player)return T.return();v.player.setLoopVideo(!1);e=_.NC();_.m3(e,v.loopToggleOffVe);return T.yield(_.Jd.getInstance(),2);case 2:return(d=T.yieldResult)?T.yield(d.set("sfvle",!1),3):T.return();case 3:return T.yield(d.set("sfvles",!0),4);case 4:E=_.LB(),_.Va(0,203,!1),_.Va(0,204,!0),E.save(),_.s9(T)}})};
_.W.handleSignalActionToggleLoopShortsOn=function(){var v=this,e,d,E;return _.I(function(T){switch(T.nextAddress){case 1:if(!v.player)return T.return();v.player.setLoopVideo(!0);e=_.NC();_.m3(e,v.loopToggleOnVe);return T.yield(_.Jd.getInstance(),2);case 2:return(d=T.yieldResult)?T.yield(d.set("sfvle",!0),3):T.return();case 3:return T.yield(d.set("sfvles",!0),4);case 4:E=_.LB(),_.Va(0,203,!0),_.Va(0,204,!0),E.save(),_.s9(T)}})};
_.W.handleSignalActionToggleCinematicShortsOn=function(){ESk(!0);var v;(v=this.JSC$22311_cinematicController)==null||_.nWs(v,!0);_.m3(_.NC(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.W.handleSignalActionToggleCinematicShortsOff=function(){ESk(!1);var v;(v=this.JSC$22311_cinematicController)==null||_.nWs(v,!1);_.m3(_.NC(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.W.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.W.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.W.unhideCurrentOverlay=function(){if(this.overlayContainer){var v=this.overlayContainer.querySelector("#experiment-overlay");v&&_.RM.addLowPriorityJob(function(){v.style.display="unset"},100)}};
_.W.getCurrentShort=function(){if(this.currentEndpoint){var v=this.currentEndpoint;if(this.isNonVideoContentCommand(v)){var e=_.L(v,_.PD);return{reelNonVideoContentRenderer:_.L(e==null?void 0:e.renderer,_.L4c),command:v}}if(this.data){var d;e=(d=_.L(this.currentEndpoint,_.Go))==null?void 0:d.thumbnail;var E;d=(E=this.data.overlay)==null?void 0:E.reelPlayerOverlayRenderer;_.dk().resolve(_.s1);v=this.data;var T,S;E=(T=v.overlay)==null?void 0:(S=T.shortsAdsRenderer)==null?void 0:S.adSlots;if(E!==void 0)E.length===
0?(_.Fc("Shorts ads returned no ad slots."),v=void 0):(E.length>1&&_.Fc("Shorts ads has more than one ad slots."),v=_.L(E[0],_.lic));else{var O,b;v=_.L((O=v.overlay)==null?void 0:(b=O.shortsAdsRenderer)==null?void 0:b.overlay,_.lic)}O=v;v=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.L(this.currentEndpoint,_.Go),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:d,thumbnail:e,command:v,adsOverlay:O}}}};
_.W.created=function(){var v=this;this.scrollToVideoThrottle=new _.wB(function(e){var d;(d=v.getActiveReelVideo(e))==null||d.scrollIntoView({behavior:"smooth",block:"nearest",inline:v.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.wB(function(e){var d;(d=v.getActiveReelVideo(e))==null||d.scrollIntoView({behavior:"auto",block:"nearest",inline:v.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.W.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.W.attached=function(){var v=this;_.dk().resolve(_.s1).registerRootElement(this);this.pageScrollElement=_.IB(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.hG(this,this.processResetAction));_.N("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var e=v.getActiveReelVideo(v.activeIndex);v.maybeCreateIntersectionObserver();e==null||e.scrollIntoView({behavior:"instant",
block:"nearest",inline:v.enableScrollIntoViewCenter?"center":"start"});v.shortsContainer.style.overflowY="scroll"}))};
_.W.updateReelWatchSequenceResponse=function(){var v=this;if(_.N("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&_.L(this.currentEndpoint,_.Go).sequenceParams&&!this.reelWatchSequenceResponse){var e=_.dk().resolve(_.s1);e&&h$V(e,this.currentEndpoint).then(function(d){d&&(v.reelWatchSequenceResponse=d,_.RM.addLowPriorityJob(function(){v.maybeCreateIntersectionObserver(!0)}))})}};
_.W.calculateSqueezebackPanelSize=function(){var v=this,e=window.innerWidth-456-(window.innerHeight-106)*.5625;_.RM.addLowPriorityJob(function(){e<360?_.d1().dispatch($7f(!0)):(v.hostElement.style.setProperty("--anchored-panel-width",Math.min(e,480)+"px"),_.d1().dispatch($7f(!1)))})};
_.W.detached=function(){var v=_.dk().resolve(_.s1);v.rootElement=void 0;var e;(e=v.unsubscribeFromStore)==null||e.call(v);v.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.hG(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.W.onResizeFinished=function(v,e){var d=this,E=new ResizeObserver(function(){d.shortsContainer.style.overflowY="hidden";_.RM.addLowPriorityJob(function(){e()},100)});
E.observe(v);return E};
_.W.resetDocumentScrollTop=function(){var v,e;if((v=document)==null?0:(e=v.scrollingElement)==null?0:e.scrollTop)document.scrollingElement.scrollTop=0};
_.W.loadPage_=function(v){var e=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),v){var d;!_.N("web_enable_delay_shorts_sequence_call")&&((d=_.L(this.currentEndpoint,_.Go))==null?0:d.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=v;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){e.isPlayerStarted&&(e.handleOnPlaybackCommand(),e.afterPlayerStarted=function(){})};
this.registerPanel(v)}};
_.W.afterPlayerStarted=function(){};
_.W.handleOnPlaybackCommand=function(){if(_.N("web_shorts_comment_stickers")&&this.isPlayerStarted){var v,e=(v=_.L(this.currentEndpoint,_.Go))==null?void 0:v.onPlaybackCommand;e&&this.ytComponentBehavior.resolveCommand(e)}};
_.W.maybeCreateIntersectionObserver=function(v){var e=this;v=v===void 0?!1:v;var d=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==d||v){this.intersectionObserverThreshold=d;v={rootMargin:"0px",threshold:d};var E;(E=this.intersectionObserver)==null||E.disconnect();this.intersectionObserver=new IntersectionObserver(function(T){T=_.a(T);for(var S=T.next();!S.done;S=T.next())if(S=S.value,S.intersectionRatio>d){S=Number(S.target.id);if(isNaN(S))break;
if(S===e.index)break;_.qQj();e.loadVideo(S);_.HF("r_vtc")}},v);
this.observeShorts()}};
_.W.observeShorts=function(){var v=[].concat(_.t7(_.IB(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));v=_.a(v);for(var e=v.next();!e.done;e=v.next()){e=e.value;var d=void 0;(d=this.intersectionObserver)==null||d.observe(e)}};
_.W.initCsi=function(){_.fi("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var v={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},e,d;if((e=this.playerData)==null?0:(d=e.cacheMetadata)==null?0:d.isCacheHit)v.isCacheHit=!0;var E;if(e=(E=_.L(this.currentEndpoint,_.Go))==null?void 0:
E.prefetchTaskId)v.prefetchInfo={taskId:e};_.BF(v)};
_.W.isAd=function(){var v,e;return!!((v=_.L(this.currentEndpoint,_.Go))==null?0:(e=v.adClientParams)==null?0:e.isAd)};
_.W.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.W.getPlayerContainer=function(){var v;return(v=_.IB(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:v.playerContainer};
_.W.onPlayerStateChange=function(v){var e=this;this.isPlayerPaused=v===2;v!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?v===1&&this.index===0&&(this.isPlayerStarted||_.d1().dispatch(Tb(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.d1().dispatch(Tb(!0)));this.player&&!this.player.getLoopVideo()&&_.RM.addLowPriorityJob(function(){e.getShortsLoopSetting().then(function(d){var E;(E=e.player)==null||E.setLoopVideo(d)})});
this.isPlayerPaused&&_.N("web_shorts_paused_state_logging")&&_.nB(_.zz(),[this.reelPlayerPausedStateRendererVe])};
_.W.isInBackground=function(){var v=window.document.visibilityState;return!(!v||v==="visible")};
_.W.isShortPlayable=function(){if(_.N("kevlar_playable_short_killswitch"))return!0;var v;return(v=this.playerData)!=null&&v.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.W.setNormalPlaybackSpeed=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(v.getPlayer().getPlayerPromise(),2);e=E.yieldResult;d=e.getPlaybackRate();d!==1&&(v.storedPlaybackSpeed=d,e.setPlaybackRate(1));_.s9(E)})};
_.W.restorePlaybackSpeed=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1)return v.storedPlaybackSpeed===null?d.jumpTo(0):d.yield(v.getPlayer().getPlayerPromise(),3);e=d.yieldResult;e.setPlaybackRate(v.storedPlaybackSpeed);v.storedPlaybackSpeed=null;_.s9(d)})};
_.W.playerDataChanged=function(){var v=this,e,d,E,T,S,O,b,Y,q;return _.I(function(r){if(r.nextAddress==1){e=v.getPlayer();(d=v.intersectionObserver)==null||d.disconnect();if(v.playerData){if(((E=v.playerData.videoDetails)==null?void 0:E.videoId)!==((T=e.getPlayer())==null?void 0:T.getVideoData().video_id)){S={};if(O=_.L(v.currentEndpoint,_.Go))S.watch_endpoint=O,O.endTimeSeconds&&(S.end=O.endTimeSeconds);e.loadVideoWithPlayerResponse(v.playerData,S)}}else return r.return();return v.player?r.jumpTo(2):
r.yield(e.getPlayerPromise(),3)}r.nextAddress!=2&&(v.player=r.yieldResult,v.JSC$22311_playerStateChangeListener=v.onPlayerStateChange.bind(v),v.player.addEventListener("onStateChange",v.JSC$22311_playerStateChangeListener),_.N("kevlar_client_enable_shorts_player_bootstrap")&&_.lw(),v.scrollToVideoThrottle.fire(v.index),v.movePlayerToVideo(v.index),_.RM.addLowPriorityJob(function(){v.getShortsLoopSetting().then(function(h){var K;(K=v.player)==null||K.setLoopVideo(h)})}),_.YmE.resolve(v.player),v.player.syncVolume(),
v.getPlayer().focusOnPlayer());
_.RM.addLowPriorityJob(function(){v.observeShorts()},100);
b=v.player.getPlayerState(v.player.getPresentingPlayerType());b!==1||v.isPlayerStarted||_.d1().dispatch(Tb(!0));v.updateBackNavContainerWidth();Y=_.L(v.currentEndpoint,_.Go);((q=Y)==null?0:q.startTimeSeconds)&&v.player.seekTo(Y.startTimeSeconds);if(v.JSC$22311_cinematicController||v.cinematicsInitializeJobId)return r.return();v.cinematicsInitializeJobId=_.RM.addLowPriorityJob(function(){v.initCinematicController();v.cinematicsInitializeJobId=void 0});
_.s9(r)})};
_.W.onShortUndoDismiss=function(){var v=this,e=rsJ().pop();e!==void 0&&(_.Uh(this,function(){v.showCardWithIndex(e)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.W.onShortsDismiss=function(v){if(v=v.detail.reelDismissalActionRenderer)(v=_.L(v.onDismissalCompletionRenderer,_.oWs))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:v}}}),this.scrollAndDismissCard()};
_.W.processReelNonVideoContentDismissalCommand=function(v){var e=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);v=_.L(v,GOD);this.activeDimissalTimeout=setTimeout(function(){e.scrollAndDismissCard()},Number(v==null?void 0:v.delayMs))};
_.W.scrollAndDismissCard=function(){var v=this,e=this.index;rsJ().push(e);_.Uh(this,function(){var d=v.getPlayableNextIndex();d!==null&&(d=v.getActiveReelVideo(d),v.hideCardWithIndex(e),d==null||d.scrollIntoView({behavior:"smooth",block:"nearest",inline:v.enableScrollIntoViewCenter?"center":"start"}))})};
_.W.hideCardWithIndex=function(v){if(v=this.getActiveReelVideo(v))v.hidden=!0};
_.W.showCardWithIndex=function(v){if(v=this.getActiveReelVideo(v))v.hidden=!1};
_.W.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.W.activeChanged=function(v){_.d1().dispatch(_.Oo({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:v}}));if(v)document.addEventListener("keydown",_.hG(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var e;(e=this.player)==null||e.sendAbandonmentPing()}var d;(d=this.player)==null||d.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.hG(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.W.graftClientVisualElements=function(){if(this.data){var v=_.NC();_.bjn(v,_.qg({response:this.reelWatchSequenceResponse}));_.bj(v,this.nextReelVe);_.bj(v,this.prevReelVe);_.N("kevlar_shorts_auto_advance")&&(_.bj(v,this.loopToggleOffVe),_.bj(v,this.loopToggleOnVe));_.bj(v,this.ambientModeToggleVe);_.nB(_.zz(),[this.nextReelVe,this.prevReelVe]);_.N("web_shorts_paused_state_logging")&&_.bj(v,this.reelPlayerPausedStateRendererVe)}};
_.W.graftNvcRenderer=function(){var v,e,d,E,T=this.index<0?(v=this.shortsProcessedPrevSequence)==null?void 0:(e=v[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:e.command:(d=this.shortsProcessedSequence)==null?void 0:(E=d[this.index])==null?void 0:E.command;if(T&&this.isNonVideoContentCommand(T)){v=_.L(T,_.PD);var S,O;(v=(S=_.L(v==null?void 0:v.renderer,_.L4c))==null?void 0:(O=S.loggingDirectives)==null?void 0:O.trackingParams)&&_.NC().graftServerVe(v)}};
_.W.setActiveIndex=function(){_.dk().resolve(_.s1).setActiveIndex(this.index)};
_.W.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.W.lazyUpdateMiniplayerData=function(){var v=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.RM.addLowPriorityJob(function(){v.updateMiniplayerData();v.updateMiniplayerDataJobId=void 0}))};
_.W.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.RM.cancelJob(this.updateMiniplayerDataJobId)};
_.W.updateMiniplayerData=function(){var v,e,d,E=_.dk().resolve(_.P0),T={shortsData:this.getCurrentShort(),previousButtonDisabled:!((v=this.prevButtonData)==null||!v.isDisabled),nextButtonDisabled:!((e=this.nextButtonData)==null||!e.isDisabled),playabilityStatus:(d=this.playerData)==null?void 0:d.playabilityStatus};_.HN(E,T)};
_.W.resetPlayerLocation=function(){var v=this.getPlayer();this.initialPlayerContainer&&v.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.W.movePlayerToVideo=function(v,e){var d=this;e=e===void 0?!0:e;var E=this.getActiveReelVideo(v),T=this.getPlayer();if(E){this.overlayContainer?E.appendChild(this.overlayContainer):(this.overlayContainer=_.IB(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,E.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||T.appendTo(this.overlayContainer.playerContainer,void 0,!0));var S;(S=this.player)==null||S.setSize(NaN,NaN);this.isActive||_.LI(_.RM,function(){d.isActive=
!0});
T.style.visibility="visible";_.N("reels_web_disable_rtr_tick")||_.N("reels_web_use_pbs_first_shorts")&&v===0||_.zE("r_tr");this.currentPlayerIndex=v;E.appendChild(this.errorScreenContainer);var O;(O=this.JSC$22311_cinematicController)==null||_.Uat(O)}else e?_.RM.addLowPriorityJob(function(){d.movePlayerToVideo(d.index,!1)}):Math.random()<=_.Wi("web_shorts_error_logging_threshold")&&_.PV(new _.kL("Trying to movePlayerToVideo with undefined container.",{firstAttempt:e,
index:v}))};
_.W.enableFormatFirst=function(v){return _.N("web_enable_format_first")||v.adsOverlay&&_.N("web_enable_format_first_ads_only")||v.reelPlayerOverlayRenderer&&_.N("web_enable_format_first_organic_only")};
_.W.getAspectRatio=function(v){if(v!=null&&v.thumbnail&&this.enableFormatFirst(v))return"--ytd-shorts-player-ratio: "+THB(v.thumbnail)};
_.W.getBackgroundImage=function(v){if(v!=null&&v.thumbnail)return(v=_.OG(v.thumbnail.thumbnails))?'background-image:url("'+v+'");':"background-color:black;"};
_.W.onPersistentPanelActiveChanged=function(){var v=this.getCurrentShort();if(v&&this.enableFormatFirst(v)&&(v==null?0:v.thumbnail)&&THB(v.thumbnail)!==.5625){var e;(e=this.player)==null||e.setSize(NaN,NaN)}};
_.W.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.W.moveCinematicsToVideo=function(){var v=_.IB(this.hostElement).querySelector("ytd-reel-video-renderer");(v==null?0:v.cinematicContainer)&&v.cinematicContainer!==this.shortsCinematicContainer.parentElement&&v.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.W.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.W.updatePrevButtonData=function(){var v=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(v){var e;this.prevButtonData=v=Object.assign({},v,{accessibility:{label:_.sz("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:v.isDisabled||this.index===-(((e=this.shortsProcessedPrevSequence)==null?void 0:e.length)||0),tooltip:this.isUpArrowHidden?"":_.sz("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=v=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.W.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.W.updateNextButtonData=function(){var v=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(v){var e;this.nextButtonData=v=Object.assign({},v,{accessibility:{label:_.sz("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:v.isDisabled||this.index===((e=this.shortsProcessedSequence)==null?void 0:e.length),tooltip:_.sz("NEXT_VIDEO_LABEL")||""})}};
_.W.getPlayablePreviousIndex=function(){for(var v,e=this.index-1;e>=-(((v=this.prevShortsSequence)==null?void 0:v.length)||0);e--)if(!rsJ().includes(e))return e;return null};
_.W.getIndexInSequence=function(v,e){return v.findIndex(function(d){var E;return((E=_.L(d.command,_.Go))==null?void 0:E.videoId)===e})};
_.W.handlePrevButtonClick=function(v){var e=this,d,E;return _.I(function(T){d=e.getPlayablePreviousIndex();if(d===null)return T.return();e.gestureType=((E=v)==null?void 0:E.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";d===0&&(e.hidePreviousButtonImmediately=!0);if(e.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){e.transitionToVideoThrottle.fire(d)}),T.return();
e.scrollToVideoThrottle.fire(d);_.s9(T)})};
_.W.getPlayableNextIndex=function(){for(var v,e=this.index+1;e<(((v=this.shortsProcessedSequence)==null?void 0:v.length)||0);e++)if(!rsJ().includes(e))return e;return null};
_.W.handleNextButtonClick=function(v,e){var d=this,E,T;return _.I(function(S){E=d.getPlayableNextIndex();if(E===null)return S.return();E===1&&(d.showPreviousButtonImmediately=!0);d.gestureType=((T=v)==null?void 0:T.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";e&&(d.gestureType=e);if(d.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){d.transitionToVideoThrottle.fire(E)}),S.return();
d.scrollToVideoThrottle.fire(E);_.s9(S)})};
_.W.handleReelNavigateCommand=function(v,e,d){(v=_.L(v,Jsk))&&e&&v.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(d)};
_.W.loadVideo=function(v,e){e=e===void 0?!1:e;if(v!==this.currentPlayerIndex){_.d1().dispatch(Tb(!1));if(this.isAd()&&!e){var d;(d=this.player)==null||d.notifyShortsAdSwipeEvent()}if((e=this.JSC$22311_cinematicController)!=null){var E;(E=e.currentCinematicEffect)==null||E.pause()}if((E=this.JSC$22311_cinematicController)!=null){var T;(T=E.currentCinematicEffect)==null||T.clear()}E=v>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(E));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var S,O,b,Y;T=v<0?(S=this.shortsProcessedPrevSequence)==null?void 0:(O=S[this.shortsProcessedPrevSequence.length+v])==null?void 0:O.command:(b=this.shortsProcessedSequence)==null?void 0:(Y=b[v])==null?void 0:Y.command;this.index=v;this.gestureType||(this.gestureType=E?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
T&&this.isVideoContentCommand(T)&&(this.ytComponentBehavior.resolveCommand(T,{form:{createScreenConfig:{clickedVisualElement:E?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(T&&this.isNonVideoContentCommand(T)){this.currentEndpoint=T;this.data=void 0;S=_.NC();O=_.L(T,_.PD);var q,r;(O=(q=_.L(O==null?void 0:O.renderer,_.L4c))==null?void 0:(r=q.screenLoggingData)==null?void 0:r.screenVeType)&&_.Ig(S,O);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(q=this.getActiveReelVideo(v))&&q.appendChild(this.overlayContainer)}var h,K;if(((h=this.reelWatchSequenceResponse)==null?0:h.continuationEndpoint)&&((K=this.reelWatchSequenceResponse)==null?0:K.entries)&&v===this.reelWatchSequenceResponse.entries.length-1){var k,J;h={contentPlaybackContext:_.fo({},(J=_.L((k=this.currentEndpoint)==null?void 0:k.commandMetadata,_.$B))==null?void 0:J.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:h})}var R,B,X;((R=this.reelWatchSequenceResponse)==null?0:R.prevContinuationEndpoint)&&v===-(((B=this.reelWatchSequenceResponse)==null?void 0:(X=B.prevEntries)==null?void 0:X.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.W.setMiniplayerPreview=function(v){v=(v===void 0?0:v)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var e,d,E=_.dk().resolve(_.P0),T={shortsData:void 0,shortsPreviewThumbnail:v?(e=this.shortsProcessedSequence)==null?void 0:(d=e[v])==null?void 0:d.thumbnail:void 0};_.HN(E,T)};
_.W.updateTitle=function(v){var e,d;v=(v==null?0:v.adSlots)?"":(d=v==null?void 0:(e=v.videoDetails)==null?void 0:e.title)!=null?d:"";_.Iq(this.hostElement,"yt-update-title",v)};
_.W.registerPanel=function(v){var e=_.dk().resolve(_.tx);if(e){v=_.a(v.engagementPanels||[]);for(var d=v.next();!d.done;d=v.next()){d=d.value;var E=this.getPanelContentIdentifier(d.engagementPanelSectionListRenderer),T=void 0,S=void 0;(S=(T=e).registerPanelContent)==null||S.call(T,E,d)}}};
_.W.getPanelIdentifier=function(v){var e;return(v==null?void 0:(e=v.identifier)==null?void 0:e.tag)||(v==null?void 0:v.panelIdentifier)||(v==null?void 0:v.targetId)};
_.W.getPanelContentIdentifier=function(v){var e;return(v==null?void 0:v.targetId)||(v==null?void 0:v.panelIdentifier)||(v==null?void 0:(e=v.identifier)==null?void 0:e.tag)};
_.W.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;_.d1().dispatch(Tb(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.d1().dispatch(K0u(!1));var v=_.dk().resolve(_.s1);v.dismissedIndices=[];v.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.dk().resolve(_.P0).close(!0)};
_.W.processAppendReelWatchSequenceContinuationEntriesAction=function(v){var e=this,d;(d=this.intersectionObserver)==null||d.disconnect();v=v.appendReelWatchSequenceContinuationEntriesAction;if(v==null?0:v.entries){var E;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.t7(((E=this.reelWatchSequenceResponse)==null?void 0:E.entries)||[]),_.t7(v.entries)),continuationEndpoint:v.continuationEndpoint})}else if(v==null?0:v.prevEntries){var T;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.t7(((T=this.reelWatchSequenceResponse)==null?void 0:T.prevEntries)||[]),_.t7(v.prevEntries)),prevContinuationEndpoint:v.prevContinuationEndpoint});_.RM.addLowPriorityJob(function(){e.movePlayerToVideo(e.index);var S;(S=e.getActiveReelVideo(e.index))==null||S.scrollIntoView({block:"nearest",inline:e.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.RM.addLowPriorityJob(function(){e.observeShorts()},100)};
_.W.processWatchSequence=function(v){var e=this;return v.map(function(d){d=d.command;if(e.isVideoContentCommand(d)){var E=_.L(d,_.Go);return{reelPlayerOverlayRenderer:_.L(E==null?void 0:E.overlay,_.V6n),thumbnail:E.thumbnail,command:d}}return e.isNonVideoContentCommand(d)?(E=_.L(d,_.PD),{reelNonVideoContentRenderer:_.L(E==null?void 0:E.renderer,_.L4c),command:d}):{command:d}})};
_.W.calculateIntersectionObserverThreshold=function(){var v=_.IB(this.hostElement).querySelector("ytd-reel-video-renderer"),e=1;(v==null?0:v.offsetHeight)&&(v==null?0:v.offsetWidth)&&(e=Math.min(v.offsetHeight,this.shortsContainer.offsetHeight)/v.offsetHeight*(Math.min(v.offsetWidth,this.shortsContainer.offsetWidth)/v.offsetWidth));return Math.round(e*.6*10)/10};
_.W.isVideoContentCommand=function(v){_.dk().resolve(_.s1);return!!_.L(v,_.Go)};
_.W.isNonVideoContentCommand=function(v){_.dk().resolve(_.s1);return!!_.L(v,_.PD)};
_.W.initCinematicController=function(){var v=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22311_cinematicController=new _.EO(this.shortsCinematicContainer,this.player);var e,d=_.L((e=this.data)==null?void 0:e.background,_.GA);_.Da9(this.JSC$22311_cinematicController,d);_.nWs(this.JSC$22311_cinematicController,d76(d));_.uuQ(this.JSC$22311_cinematicController);_.RM.addLowPriorityJob(function(){v.moveCinematicsToVideo()})}};
_.W.handleMiniplayerNavigateShorts=function(v){v==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():v==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.W.handleSignalActionToggleShortsPictureInPicture=function(){if(_.dk().resolve(_.P0).pictureInPictureSupported()){var v=_.dk().resolve(_.s1);if(_.N("web_shorts_pip")){var e=_.dk().resolve(_.P0);v.isShortsPipActive()?e.deactivate():e.isMiniplayerActive()||(_.Ke().shortsPipActivation=!0,_.Sl_(e))}}else(v=this.player)==null||v.togglePictureInPicture()};
_.vP.Object.defineProperties(yC.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.reelWatchSequenceResponse)!=null&&v.prevEntries)return this.processWatchSequence([].concat(_.t7(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var v=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!v)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var e=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.t7(this.prevShortsSequence.slice(0,e)),[v],_.t7(this.prevShortsSequence.slice(e+
1)))}e=this.index+this.shortsProcessedPrevSequence.length;v.thumbnail=this.shortsProcessedPrevSequence[e].thumbnail;return[].concat(_.t7(this.shortsProcessedPrevSequence.slice(0,e)),[v],_.t7(this.shortsProcessedPrevSequence.slice(e+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.reelWatchSequenceResponse)!=null&&v.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var v=this.getCurrentShort();if(!v||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[v];if(v==null||!v.reelNonVideoContentRenderer){var e=this.getIndexInSequence(this.shortsSequence,_.L(this.currentEndpoint,_.Go).videoId);if(this.index===0&&e!==-1)return this.currentPlayerIndex=this.index=e,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.t7(this.shortsSequence.slice(0,this.index)),[v],_.t7(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){v.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var d,E,T,S;e=((E=_.L((d=this.shortsProcessedSequence[0])==null?void 0:d.command,_.Go))==null?void 0:E.videoId)===((S=_.L((T=this.shortsSequence[0])==null?void 0:T.command,_.Go))==null?void 0:S.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.t7(this.shortsProcessedSequence.slice(0,
this.index)),[v],_.t7(this.shortsSequence.slice(e)))}return[v].concat(_.t7(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var v=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;v&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(v)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 v,e;return this.index===((v=this.reelWatchSequenceResponse)==null?void 0:(e=v.entries)==null?void 0:e.length)}var d;return!((d=this.reelWatchSequenceResponse)==null?0:d.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var v;(v=this.delayedActiveIndexUpdateDebouncer)==null||v.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return this.isShortPlayable()||((e=_.L((v=this.data)==null?void 0:v.watchStatus,_.x5n))==null?void 0:(d=e.style)==null?void 0:d.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var v=this,e=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),d;if((this.data||e)&&(((d=this.data)==null?0:d.engagementPanels)||this.isAd()||e)){e=!1;this.activePanel="shorts-comments-panel";var E;d=_.a(((E=this.data)==null?void 0:E.engagementPanels)||[]);for(E=d.next();!E.done;E=d.next())if(this.getPanelIdentifier(E.value.engagementPanelSectionListRenderer)===this.activePanel){e=!0;break}if(this.isPersistentPanelActive){var T=
_.dk().resolve(_.tx);_.LI(_.RM,function(){T.showPanel(v.activePanel,void 0,void 0,void 0,null)},100)}var S;
E=[].concat(_.t7(Object.values(((S=this.data)==null?void 0:S.engagementPanels)||{})));if(_.N("enable_preview_panel_for_shorts_search_suggested_action")){var O,b,Y,q,r;((q=_.L((O=this.data)==null?void 0:(b=O.overlay)==null?void 0:(Y=b.reelPlayerOverlayRenderer)==null?void 0:Y.metapanel,_.k1e))==null?void 0:(r=q.metadataItems)==null?void 0:r.find(function(h){var K,k;return((K=_.L(h,tWJ))==null?void 0:(k=K.icon)==null?void 0:k.iconType)==="SEARCH"}))!==void 0&&E.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}S=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);O=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return S===void 0&&O===void 0||(S==null?0:S.isDisabled)||(O==null?void 0:O.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!e?(e=E==null?void 0:E.findIndex(function(h){var K,
k;return((K=h.engagementPanelSectionListRenderer)==null?void 0:(k=K.identifier)==null?void 0:k.tag)==="shorts-comments-panel"}),e===-1||e===void 0||E!=null&&E.splice(e,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.sz("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.sz("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:_.sz("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.sz("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(_.t7(Object.values(E||
{})))):E}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.shortsProcessedSequence)==null?void 0:v[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var v=this,e,d,E;if((e=this.playerData)==null?0:(d=e.playabilityStatus)==null?0:(E=d.errorScreen)==null?0:E.playerInterstitialRenderer)return _.RM.addLowPriorityJob(function(){v.movePlayerToVideo(v.index)}),this.playerData.playabilityStatus.errorScreen;
var T,S;return((T=this.data)==null?void 0:T.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((S=this.data)==null?0:S.watchStatus)&&_.L(this.data.watchStatus,_.JCJ)?(_.RM.addLowPriorityJob(function(){v.movePlayerToVideo(v.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.vP.Object.defineProperties(yC,{template:{configurable:!0,enumerable:!0,get:function(){if(R$$===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);R$$=v}v=R$$;return v}}});
yC.prototype.onNextButtonDataChange=yC.prototype.onNextButtonDataChange;yC.prototype.onPrevButtonDataChange=yC.prototype.onPrevButtonDataChange;yC.prototype.onPersistentPanelActiveChanged=yC.prototype.onPersistentPanelActiveChanged;yC.prototype.lazyUpdateMiniplayerData=yC.prototype.lazyUpdateMiniplayerData;yC.prototype.onShortsPipActiveChanged=yC.prototype.onShortsPipActiveChanged;yC.prototype.setActiveIndex=yC.prototype.setActiveIndex;yC.prototype.graftNvcRenderer=yC.prototype.graftNvcRenderer;
yC.prototype.graftClientVisualElements=yC.prototype.graftClientVisualElements;yC.prototype.onActiveChanged=yC.prototype.onActiveChanged;yC.prototype.onShortsDismiss=yC.prototype.onShortsDismiss;yC.prototype.onShortUndoDismiss=yC.prototype.onShortUndoDismiss;yC.prototype.playerDataChanged=yC.prototype.playerDataChanged;yC.prototype.afterPlayerStarted=yC.prototype.afterPlayerStarted;yC.prototype.updateReelWatchSequenceResponse=yC.prototype.updateReelWatchSequenceResponse;
yC.prototype.unhideCurrentOverlay=yC.prototype.unhideCurrentOverlay;yC.prototype.onServiceRequestCompleted=yC.prototype.onServiceRequestCompleted;yC.prototype.engagementPanelsChanged=yC.prototype.engagementPanelsChanged;yC.prototype.onFullscreenChange=yC.prototype.onFullscreenChange;yC.prototype.onResize=yC.prototype.onResize;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],yC.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.Rp.YtPageBehavior),_.w("design:type",Object)],yC.prototype,"ytPageBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],yC.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.J9),_.w("design:type",Object)],yC.prototype,"ironResizableBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],yC.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],yC.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],yC.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"playerData",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"reelWatchSequenceResponse",void 0);
_.c([_.f(),_.w("design:type",Object)],yC.prototype,"cachedReelWatchSequenceResponse",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"cachedSequenceParams",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"cachedSequenceProvider",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"currentEndpoint",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"nextButtonData",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"prevButtonData",void 0);
_.c([_.f(),_.w("design:type",Object)],yC.prototype,"isPreviousPageShorts",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"index",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"delayedActiveIndex",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"playablePreviousIndex",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"player",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"isPlayerPaused",void 0);
_.c([_.f({selector:W0B}),_.w("design:type",Object)],yC.prototype,"isPlayerStarted",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"intersectionObserver",void 0);_.c([_.f(),_.w("design:type",Number)],yC.prototype,"cinematicsInitializeJobId",void 0);_.c([_.f(),_.w("design:type",Number)],yC.prototype,"updateMiniplayerDataJobId",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"fitToVisibleBounds",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"pageSubtype",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],yC.prototype,"enablePreviousContinuation",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"shortsPipEnabled",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"isDark",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"shortsViewTransitions",void 0);
_.c([_.f({selector:_.SB,reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"isFullscreen",void 0);_.c([_.f({selector:_.Wj,reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"isShortsPipActive",void 0);_.c([_.sg("#shorts-inner-container"),_.w("design:type",HTMLElement)],yC.prototype,"shortsInnerContainer",void 0);_.c([_.sg("#back-nav-button ytd-button-renderer"),_.w("design:type",_.Tu)],yC.prototype,"backNavButton",void 0);
_.c([_.sg("#shorts-container"),_.w("design:type",HTMLElement)],yC.prototype,"shortsContainer",void 0);_.c([_.Iw("error-screen"),_.w("design:type",HTMLElement)],yC.prototype,"errorScreenContainer",void 0);_.c([_.Iw("player"),_.w("design:type",Object)],yC.prototype,"playerElement",void 0);_.c([_.Iw("shorts-cinematic-container"),_.w("design:type",HTMLElement)],yC.prototype,"shortsCinematicContainer",void 0);
_.c([_.Iw("initial-player-container"),_.w("design:type",HTMLElement)],yC.prototype,"initialPlayerContainer",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"buttonOverride",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"anchoredPanelActive",void 0);_.c([_.f(),_.w("design:type",String)],yC.prototype,"activePanel",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"isActive",void 0);
_.c([_.f({selector:S0J,reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"smallScreenPersistentPanel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"isPersistentPanelActive",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"smallScreenSqueezeBack",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"enableScrollIntoViewCenter",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"formatFirst",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"enableFlexibleOverlay",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yC.prototype,"useAspectRatio",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"panelContainer",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"overlayContainer",void 0);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"isShortsInitialized",void 0);
_.c([_.t("reelWatchSequenceResponse"),_.w("design:type",Object),_.w("design:paramtypes",[])],yC.prototype,"prevShortsSequence",null);_.c([_.t("data","prevShortsSequence"),_.w("design:type",Object),_.w("design:paramtypes",[])],yC.prototype,"shortsProcessedPrevSequence",null);_.c([_.t("reelWatchSequenceResponse"),_.w("design:type",Object),_.w("design:paramtypes",[])],yC.prototype,"shortsSequence",null);
_.c([_.t("data","shortsSequence"),_.w("design:type",Object),_.w("design:paramtypes",[])],yC.prototype,"shortsProcessedSequence",null);_.c([_.f({reflectToAttribute:!0}),_.t("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yC.prototype,"isUpArrowHidden",null);
_.c([_.f({reflectToAttribute:!0}),_.t("reelWatchSequenceResponse","index","endOfNextContinuation"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yC.prototype,"isDownArrowHidden",null);_.c([_.f(),_.t("index"),_.w("design:type",Number),_.w("design:paramtypes",[])],yC.prototype,"activeIndex",null);_.c([_.t("isShortPlayable","data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yC.prototype,"shouldRenderOfflineContent",null);
_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"onResize",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],yC.prototype,"anchoredEngagementPanels",null);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"watchWhileEngagementPanels",void 0);_.c([_.$v("isFullscreen"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"onFullscreenChange",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"engagementPanelsChanged",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],yC.prototype,"onServiceRequestCompleted",null);_.c([_.t("data","shortsSequence","index"),_.w("design:type",Object),_.w("design:paramtypes",[])],yC.prototype,"activeReel",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"unhideCurrentOverlay",null);_.c([_.$v("currentEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"updateReelWatchSequenceResponse",null);_.c([_.$v("isPlayerStarted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"afterPlayerStarted",null);
_.c([_.t("playerData","reelWatchSequenceResponse","data"),_.w("design:type",Object),_.w("design:paramtypes",[])],yC.prototype,"errorScreen",null);_.c([_.t("errorScreen"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yC.prototype,"hasError",null);_.c([_.$v("playerData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],yC.prototype,"playerDataChanged",null);
_.c([_.Kq("yt-dismissible-item-undo-feedback"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"onShortUndoDismiss",null);_.c([_.Kq("yt-disable-lockup-interaction"),_.w("design:type",Function),_.w("design:paramtypes",[Object]),_.w("design:returntype")],yC.prototype,"onShortsDismiss",null);_.c([_.V1("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"onActiveChanged",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"graftClientVisualElements",null);_.c([_.$v("currentPlayerIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"graftNvcRenderer",null);_.c([_.$v("index"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"setActiveIndex",null);
_.c([_.$v("isShortsPipActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"onShortsPipActiveChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"lazyUpdateMiniplayerData",null);_.c([_.f(),_.w("design:type",Object)],yC.prototype,"onOverlayDensityChanged",void 0);
_.c([_.$v("isPersistentPanelActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"onPersistentPanelActiveChanged",null);_.c([_.$v("index","data","isUpArrowHidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"onPrevButtonDataChange",null);_.c([_.$v("index","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yC.prototype,"onNextButtonDataChange",null);
_.c([_.z({is:"ytd-shorts"})],yC);_.O1.registerService(_.gCs,yC);
_.fX();
}catch(e){_._DumpException(e)}
try{
_.tz("JzFVk");
var vWw;var eRO;var Rk=function(){return _.P.apply(this,arguments)||this};
_.V(Rk,_.P);Rk.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Rk.prototype.computeBlueBottomLink=function(v){return v};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Rk.prototype,"data",void 0);_.c([_.f({computed:"computeIcon_(data.bottomIcon)"}),_.w("design:type",String)],Rk.prototype,"bottomIcon",void 0);
_.c([_.f({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Rk.prototype,"enableBlueBottomLink",void 0);_.c([_.z({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Rk);
_.A(Rk,"ytd-web-answer-renderer",function(){if(eRO!==void 0)return eRO;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return eRO=v},{mode:_.bk("kevlar_poly_si_batch_j035")?1:2});var da9;var Ps=function(){var v=_.P.apply(this,arguments)||this;v.hasChipBar=!1;return v};
_.V(Ps,_.P);Ps.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}}};
Ps.prototype.computeHasChipBar=function(v){return!(v==null||!v.chipBar)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ps.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ps.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.w("design:type",Object)],Ps.prototype,"hasChipBar",void 0);_.c([_.z({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Ps);
_.A(Ps,"ytd-search-header-renderer",function(){if(da9!==void 0)return da9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return da9=v},{mode:1});var EWO;var xn=function(){return _.P.apply(this,arguments)||this};
_.V(xn,_.P);xn.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],xn.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-page-continuation"})],xn);
_.A(xn,"ytd-page-continuation",function(){if(EWO!==void 0)return EWO;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return EWO=v},{mode:1});var TLi;var Sq_;var W2i;var Bs=function(){return _.P.apply(this,arguments)||this};
_.V(Bs,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Bs.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Bs);
_.A(Bs,"ytd-watch-card-one-vs-one-event",function(){if(W2i!==void 0)return W2i;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return W2i=v},{mode:1});var CW=function(){return _.P.apply(this,arguments)||this};
_.V(CW,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],CW.prototype,"data",void 0);_.c([_.z({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],CW);
_.A(CW,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Sq_!==void 0)return Sq_;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Sq_=v},{mode:1});var aZS;var XV=function(){return _.P.apply(this,arguments)||this};
_.V(XV,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],XV.prototype,"data",void 0);_.c([_.z({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],XV);
_.A(XV,"ytd-banner-and-box-hero-image-renderer",function(){if(aZS!==void 0)return aZS;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return aZS=v},{mode:1});var iJC;var zY=function(){var v=_.P.apply(this,arguments)||this;v.modern=_.N("web_modern_buttons");return v};
_.V(zY,_.P);zY.prototype.computeIcon=function(){var v,e,d=(v=this.data)==null?void 0:(e=v.icon)==null?void 0:e.iconType;if(d)return _.qC(d)};
zY.prototype.computeButtonShape=function(){var v;return{buttonText:_.vv((v=this.data)==null?void 0:v.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.vP.Object.defineProperties(zY.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],zY.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zY.prototype,"modern",void 0);_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.style"),_.w("design:type",Object),_.w("design:paramtypes",[])],zY.prototype,"buttonColor",null);
_.c([_.z({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],zY);
_.A(zY,"ytd-call-to-action-button-renderer",function(){if(iJC!==void 0)return iJC;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return iJC=v},{mode:1});var OJs;var lU=function(){return _.P.apply(this,arguments)||this};
_.V(lU,_.P);lU.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.IB(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.i2(this.data.leftThumbnail.thumbnails,216)+")")};
lU.prototype.onLeftThumbnailChanged=lU.prototype.onLeftThumbnailChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],lU.prototype,"data",void 0);_.c([_.$v("data.leftThumbnail"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lU.prototype,"onLeftThumbnailChanged",null);_.c([_.z({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],lU);
_.A(lU,"ytd-collage-hero-image-renderer",function(){if(OJs!==void 0)return OJs;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return OJs=v},{mode:1});var IZQ;var Hs=function(){return _.P.apply(this,arguments)||this};
_.V(Hs,_.P);Hs.prototype.computeStyle=function(v){return v};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Hs.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],Hs.prototype,"componentStyle",void 0);_.c([_.z({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Hs);
_.A(Hs,"ytd-single-hero-image-renderer",function(){if(IZQ!==void 0)return IZQ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return IZQ=v},{mode:1});var bJv;var Av=function(){return _.P.apply(this,arguments)||this};
_.V(Av,_.P);_.W=Av.prototype;
_.W.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:_.N("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.W.computeSubtitle=function(v){if(this.data){var e;if(this.data.upcomingEventData){v=_.vv(v.subtitle);var d=Number(this.data.upcomingEventData.startTime);isNaN(d)||(e=_.pQ(_.Gn(v,d)))}else e=v.subtitle;return e}};
_.W.onHeroTap=function(v){v.preventDefault();var e=this.data&&this.data.navigationEndpoint;!e||!_.UG(_.vg(v),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.UG(_.vg(v),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.N("kevlar_watchcard_hero_video_renderer_killswitch")?_.Iq(this.hostElement,"yt-navigate",{navigationEndpoint:e}):this.ytComponentBehavior.resolveCommand(e))};
_.W.computeHeroTabIndex=function(v){return v&&v.simpleText?-1:0};
_.W.computeHeroRole=function(v){return v&&v.simpleText?"":"link"};
_.W.computeIsReminderButtonPresent=function(v){return!(!v||!v.reminderButton)};
_.W.computeHideBottomItems=function(v){return!(this.computeIsReminderButtonPresent(v)||v.subtitle)};
_.W.dataChanged=function(){var v=this.get("data.buttons.buttonRenderer.serviceEndpoint"),e;((e=_.L(v==null?void 0:v.commandMetadata,_.VM))==null?0:e.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(v)};
Av.prototype.dataChanged=Av.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Av.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Av.prototype,"data",void 0);
_.c([_.f({computed:"computeSubtitle(data)"}),_.w("design:type",String)],Av.prototype,"subtitle",void 0);_.c([_.f({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Av.prototype,"isReminderButtonPresent",void 0);_.c([_.f({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Av.prototype,"hideBottomItems",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Av.prototype,"dataChanged",null);_.c([_.z({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Av);
_.A(Av,"ytd-watch-card-hero-video-renderer",function(){if(bJv!==void 0)return bJv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return bJv=v},{mode:1});var Yqv;var Zj=function(){return _.P.apply(this,arguments)||this};
_.V(Zj,_.P);_.W=Zj.prototype;_.W.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"}}}};
_.W.computeTitleBadges=function(v){return v?[v]:[]};
_.W.computeHeaderStyle=function(v){return v?v.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.W.computeAvatarAriaLabel=function(v){if(v){var e,d,E,T;return(T=(e=v.avatar)==null?void 0:(d=e.accessibility)==null?void 0:(E=d.accessibilityData)==null?void 0:E.label)!=null?T:_.vv(v==null?void 0:v.title)}};
_.W.computeAvatarHeight=function(v){return v==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.W.computeBadgeRowClass=function(v){return(v==null?0:v[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Zj.prototype,"data",void 0);_.c([_.f({computed:"computeTitleBadges(data.titleBadge)"}),_.w("design:type",Array)],Zj.prototype,"titleBadges",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.w("design:type",String)],Zj.prototype,"headerStyle",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.w("design:type",String)],Zj.prototype,"badgeRowClass",void 0);_.c([_.z({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Zj);
_.A(Zj,"ytd-watch-card-rich-header-renderer",function(){if(Yqv!==void 0)return Yqv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Yqv=v},{mode:1});var mas;var y2Q;var cs=function(){return _.P.apply(this,arguments)||this};
_.V(cs,_.P);cs.prototype.onMetadataTap=function(v){var e=this.data&&this.data.navigationEndpoint;e&&!_.UG(_.vg(v),this.hostElement,["A".toString()])&&_.Iq(this.hostElement,"yt-navigate",{endpoint:e})};
_.vP.Object.defineProperties(cs.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 v;if(this.data.upcomingEventData){var e=_.vv(this.data.subtitle),d=Number(this.data.upcomingEventData.startTime);isNaN(d)||(v=_.pQ(_.Gn(e,d)))}else v=this.data.subtitle;return v}}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],cs.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data.style"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],cs.prototype,"isCondensed",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],cs.prototype,"subtitle",null);
_.c([_.z({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],cs);
_.A(cs,"ytd-watch-card-compact-video-renderer",function(){if(y2Q!==void 0)return y2Q;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return y2Q=v},{mode:1});var qqO;var wX=function(){return _.P.apply(this,arguments)||this};
_.V(wX,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wX.prototype,"data",void 0);_.c([_.z({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],wX);
_.A(wX,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(qqO!==void 0)return qqO;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return qqO=v},{mode:1});var FV=function(){return _.P.apply(this,arguments)||this};
_.V(FV,_.P);FV.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],FV.prototype,"ytRendererStamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],FV.prototype,"data",void 0);_.c([_.z({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],FV);
_.A(FV,"ytd-vertical-watch-card-list-renderer",function(){if(mas!==void 0)return mas;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return mas=v},{mode:1});var r2S;var Qb=function(){var v=_.P.apply(this,arguments)||this;v.ariaExpanded="false";return v};
_.V(Qb,_.P);_.W=Qb.prototype;_.W.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.W.dataChanged=function(){var v;this.currentSeasonIndex=((v=this.data)==null?void 0:v.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.W.computeEpisodesInfo=function(v,e,d){if(v!==void 0&&e.length===v.length)return v[d]};
_.W.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.W.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.W.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.W.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.W.getUppercaseSimpleString=function(v){return this.ytRendererBehavior.getSimpleString(v).toUpperCase()};
_.W.updateCurrentSeasonIndexFromBinding=function(v){this.currentSeasonIndex=v.detail.value};
Qb.prototype.onIronOverlayClosed=Qb.prototype.onIronOverlayClosed;Qb.prototype.currentSeasonIndexChanged=Qb.prototype.currentSeasonIndexChanged;Qb.prototype.dataChanged=Qb.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Qb.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",String)],Qb.prototype,"label",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],Qb.prototype,"currentSeasonIndex",void 0);_.c([_.f({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.w("design:type",Object)],Qb.prototype,"episodesInfo",void 0);_.c([_.f({value:"false"}),_.w("design:type",Object)],Qb.prototype,"ariaExpanded",void 0);_.c([_.sg("#lists"),_.w("design:type",Object)],Qb.prototype,"lists",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qb.prototype,"dataChanged",null);_.c([_.V1("currentSeasonIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qb.prototype,"currentSeasonIndexChanged",null);_.c([_.Kq("iron-overlay-closed"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],Qb.prototype,"onIronOverlayClosed",null);
_.c([_.z({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Qb);
_.A(Qb,"ytd-watch-card-section-dropdown-renderer",function(){if(r2S!==void 0)return r2S;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return r2S=v},{mode:1});var hRv;var gX=function(){var v=_.P.apply(this,arguments)||this;v.isSearch=!1;return v};
_.V(gX,_.P);gX.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],gX.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],gX.prototype,"isSearch",void 0);_.c([_.z({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],gX);
_.A(gX,"ytd-watch-card-section-sequence-renderer",function(){if(hRv!==void 0)return hRv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return hRv=v},{mode:1});var K2s=_.l(function(v){return _.m("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.m(_.kz,{data:function(){return v.data().ctaButton}},{buttonViewModel:_.yi}),_.m(_.Dh,{text:function(){return v.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"lk");
K2s.idomCompat=!0;_.aZ(K2s,"ytd-button-banner-view-model",{props:{data:_.U1}});var uU=function(){var v=_.P.apply(this,arguments)||this;v.isSearch=!1;return v};
_.V(uU,_.P);
uU.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],uU.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],uU.prototype,"rounded",void 0);_.c([_.f(),_.w("design:type",Object)],uU.prototype,"isSearch",void 0);
_.c([_.z({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],uU);
_.A(uU,"ytd-universal-watch-card-renderer",function(){if(TLi!==void 0)return TLi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return TLi=v},{mode:1});var $a9;_.aZ(_.l(function(v){var e=v.data;var d;v=!((d=_.dk().resolve(_.eG(_.n1)))==null||!d());d={};return _.m("overview-message-view-model",{class:_.qe("ytwOverviewMessageViewModelHost",(d.ytwOverviewMessageViewModelDarkBackground=v,d.ytwOverviewMessageViewModelLightBackground=!v,d))},_.m(_.y,{cond:function(){return e().primaryImage},
then:function(E){return _.m(_.va,{data:E,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.m(_.y,{cond:function(){return e().primaryText},
then:function(){return _.m("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.m(_.Dh,{text:function(){return e().primaryText}}))}}),_.m(_.y,{cond:function(){return e().secondaryText},
then:function(){return _.m("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.m(_.Dh,{text:function(){return e().secondaryText}}))}}))},"mk"),"overview-message-view-model",{props:{data:_.U1}});_.aZ(_.lDM,"ytd-overview-answer-view-model",{props:{data:_.U1}});var nW=function(){return _.P.apply(this,arguments)||this};
_.V(nW,_.P);nW.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"}}}};
nW.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],nW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.FL),_.w("design:type",Object)],nW.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],nW.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],nW.prototype,"isSearch",void 0);
_.c([_.z({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],nW);
_.A(nW,"ytd-secondary-search-container-renderer",function(){if($a9!==void 0)return $a9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return $a9=v},{mode:1});var jl9;var Dj=function(){var v=_.P.apply(this,arguments)||this;v.renderSecondarySearchContainer=!1;v.isSearch=!1;return v};
_.V(Dj,_.P);_.W=Dj.prototype;_.W.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"}}}};
_.W.created=function(){var v=this;this.boundStampSecondarySearchContainerIfFits=function(){v.stampSecondarySearchContainerIfFits()};
_.xc("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.W.computeIsSearchFrictionPage=function(v){var e,d,E,T,S;v=v==null?void 0:(e=v.primaryContents)==null?void 0:(d=e.sectionListRenderer)==null?void 0:(E=d.contents)==null?void 0:(T=E[0])==null?void 0:(S=T.itemSectionRenderer)==null?void 0:S.contents;if(!v)return!1;e=_.a(v);for(d=e.next();!d.done;d=e.next())if(E=void 0,(E=d.value)==null?0:E.searchFrictionViewModel)return!0;return!1};
_.W.computeShowSecondaryColumn=function(v,e){return!!(e&&e.secondaryContents&&v)};
_.W.activeChanged=function(){var v=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.hG(this,this.debounceStampSecondarySearchContainerIfFits)),_.Q1(function(){v.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.hG(this,this.debounceStampSecondarySearchContainerIfFits))};
_.W.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.W.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.W.debounceStampSecondarySearchContainerIfFits=function(){_.gi(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.W.onRetrieveLocation=function(v,e){e.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);v.stopPropagation()};
_.W.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Dj.prototype.dataChanged=Dj.prototype.dataChanged;Dj.prototype.onRetrieveLocation=Dj.prototype.onRetrieveLocation;Dj.prototype.persistentGuideChanged=Dj.prototype.persistentGuideChanged;Dj.prototype.activeChanged=Dj.prototype.activeChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],Dj.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.M(_.J9),_.w("design:type",Object)],Dj.prototype,"ironResizableBehavior",void 0);_.c([_.f(),_.w("design:type",Boolean)],Dj.prototype,"active",void 0);_.c([_.f(),_.w("design:type",Object)],Dj.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],Dj.prototype,"useBiggerThumbs",void 0);_.c([_.f({reflectToAttribute:!0,value:function(){return _.aH("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],Dj.prototype,"biggerThumbsStyle",void 0);_.c([_.f(),_.w("design:type",Object)],Dj.prototype,"renderSecondarySearchContainer",void 0);_.c([_.f({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.w("design:type",Boolean)],Dj.prototype,"showSecondaryColumn",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.w("design:type",Boolean)],Dj.prototype,"isSearchFrictionPage",void 0);
_.c([_.f(),_.w("design:type",Object)],Dj.prototype,"isSearch",void 0);_.c([_.$v("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Dj.prototype,"activeChanged",null);_.c([_.$v("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Dj.prototype,"persistentGuideChanged",null);
_.c([_.Kq("yt-retrieve-location"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],Dj.prototype,"onRetrieveLocation",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Dj.prototype,"dataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Dj);
_.A(Dj,"ytd-two-column-search-results-renderer",function(){if(jl9!==void 0)return jl9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return jl9=v},{mode:1});var U4=function(){var v=_.P.apply(this,arguments)||this;v.hasSearchHeader=!1;v.hasSecondaryContent=!1;v.hasBiggerThumbs=_.N("enable_desktop_search_bigger_thumbs");v.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return v};
_.V(U4,_.P);_.W=U4.prototype;_.W.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:_.FN(["aa","eocs"])}}};
_.W.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.W.loadPage_=function(v){this.initCsi();v&&(this.data=v,_.xc("REFINEMENTS_TUPLE",["FromSearchResponse",v.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.nU(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.W.initCsi=function(){_.fi("results",["ol","cpt"])};
_.W.updateTitle=function(){var v=_.lZ(window.location.href,"q");v||(v=_.lZ(window.location.href,"search_query"));_.Iq(this.hostElement,"yt-update-title",v||"")};
_.W.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.W.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.N("web_srp_data_changed_terminate_imp_killswitch")||_.b4(this.hostElement,"yt-terminate-video-preview-action")};
_.W.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.W.computeHasSearchHeader=function(v){var e;v=v==null?void 0:(e=v.header)==null?void 0:e.searchHeaderRenderer;return!!v&&(!!v.searchFilterButton||!!v.chipBar)};
_.W.computeHasSecondaryContent=function(v){var e,d;return!!(v==null?0:(e=v.contents)==null?0:(d=e.twoColumnSearchResultsRenderer)==null?0:d.secondaryContents)};
_.vP.Object.defineProperties(U4,{template:{configurable:!0,enumerable:!0,get:function(){if(vWw===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);vWw=v}v=vWw;return v}}});
U4.prototype.onReloadContinuationFinish=U4.prototype.onReloadContinuationFinish;U4.prototype.dataChanged=U4.prototype.dataChanged;_.c([_.M(_.Rp.YtPageBehavior),_.w("design:type",Object)],U4.prototype,"ytPageBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],U4.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.FL),_.w("design:type",Object)],U4.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],U4.prototype,"data",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],U4.prototype,"monitorScroll",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],U4.prototype,"hasSearchHeader",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],U4.prototype,"hasSecondaryContent",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],U4.prototype,"hasBiggerThumbs",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],U4.prototype,"dataChanged",null);
_.c([_.Kq("yt-reload-continuation-finish"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],U4.prototype,"onReloadContinuationFinish",null);_.c([_.z({is:"ytd-search"})],U4);_.O1.registerService(_.QpW,U4);
_.fX();
}catch(e){_._DumpException(e)}
try{
_.tz("h8y2qb");
var m89=function(v){if(v=_.NRt(v)){var e;(e=v.sources)!=null&&e[0]?(e=_.LBW(v),e=e<1?"VERTICAL":e>1?"HORIZONTAL":"SQUARE"):e=void 0;return e}},PT=function(v){_.KC.call(this,"upload");
this.opts.query=v},qO1=function(v,e){return _.m(ym1,{data:v,
onYtNavigate:e})},rm_=function(v,e){return _.h_(v.entities,"pageHeaderEntity",e)},Kli=function(v,e){return v.map(function(d){if(d.tabRenderer)return hti(d.tabRenderer);
if(d.expandableTabRenderer&&e){var E=d.expandableTabRenderer;return{customTabRenderable:function(){return e(E)}}}return{}})},hti=function(v){return{identifier:v.tabIdentifier,
aTagConfig:_.Ag({innertubeCommand:v.endpoint,forceNewState:!0}),title:v.title,selected:v.selected,disabled:v.unselectable,icon:v.icon}},$8S=function(v){return _.Oo({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:v})},jh_=function(v){if(!_.Tn(document,"gtm-noscript")){var e=document.createElement("noscript");
e.id="gtm-noscript";e.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+v+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(e)}};_.vM(PT,_.KC);PT.prototype.JSC$10064_setLabel=function(v){PT.superClass_.JSC$10064_setLabel.call(this,v);return this};
PT.prototype.addUploadMetadata=function(v,e){PT.superClass_.addUploadMetadata.call(this,v,e);return this};var shO=function(v){if(v!=="youtubebanner"&&v!=="youtube-channel-banner")throw Error("wo");PT.call(this,v)};
_.V(shO,PT);shO.prototype.JSC$10064_setLabel=function(v){PT.prototype.JSC$10064_setLabel.call(this,v);return this};
shO.prototype.addUploadMetadata=function(v,e){PT.prototype.addUploadMetadata.call(this,v,e);return this};var Nc_=[_.J9,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(v){_.tW(v).path[0]!==this&&(this.resetLayout(),v.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var v=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Sr(this._layoutDebouncer,_.tg,v);_.WX(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var v=this;requestAnimationFrame(function(){v.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(v){this.resizerShouldNotify(v)&&this._notifyDescendant(v)},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 kb9=[_.LS0,{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(v,e){var d=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[v];if(!d)throw new ReferenceError(this._getUndefinedMsg(v));v=this._boundEffect(d,e||{});v.setUp();return v},
_effectsChanged:function(v,e,d){this._tearDownEffects();v&&d&&(v.split(" ").forEach(function(E){var T;E!==""&&((T=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[E])?this._effects.push(this._boundEffect(T,e[E])):console.warn(this._getUndefinedMsg(E)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(v,e){e=e||{};var d=parseFloat(e.startsAt||0),E=parseFloat(e.endsAt||1),T=E-d,S=function(){};
E=d===0&&E===1?v.run:function(O,b){v.run.call(this,Math.max(0,(O-d)/T),b)};
return{setUp:v.setUp?v.setUp.bind(this,e):S,run:v.run?E.bind(this):S,tearDown:v.tearDown?v.tearDown.bind(this):S}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(v){v.setUp()!==!1&&this._effectsRunFn.push(v.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(v){v.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(v,e){this._effectsRunFn&&this._effectsRunFn.forEach(function(d){d(v,e)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var v=this._clampedScrollTop;this._updateScrollState(v);this.threshold>0&&this._setThresholdTriggered(v>=this.threshold)}},
_getDOMRef:function(v){console.warn("_getDOMRef","`"+v+"` is undefined")},
_getUndefinedMsg:function(v){return"Scroll effect `"+v+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+v+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("xo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(v){var e={};v=parseFloat(v.scalar);e.background=this._getDOMRef("background");e.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");e.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");e.deltaBg=e.backgroundFrontLayer.offsetHeight-e.background.offsetHeight;e.deltaBg===0?(isNaN(v)&&(v=.8),e.deltaBg=(this._dHeight||0)*v):(isNaN(v)&&(v=
1),e.deltaBg*=v);this._fxParallaxBackground=e},
run:function(v){var e=this._fxParallaxBackground;this.transform("translate3d(0px, "+e.deltaBg*Math.min(1,v)+"px, 0px)",e.backgroundFrontLayer);e.backgroundRearLayer&&this.transform("translate3d(0px, "+e.deltaBg*Math.min(1,v)+"px, 0px)",e.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Lls;var Vcw;var oVs=function(){};
_.W=oVs.prototype;_.W._scrollTargetChanged=function(){};
_.W.scroll=function(){};
_.W._isValidScrollTarget=function(){};
_.W._toggleScrollListener=function(){};
_.W.toggleScrollListener=function(){};
_.W.createEffect=function(){};
_.W._effectsChanged=function(){};
_.W._layoutIfDirty=function(){};
_.W._boundEffect=function(){};
_.W._setUpEffect=function(){};
_.W._tearDownEffects=function(){};
_.W._runEffects=function(){};
_.W._scrollHandler=function(){};
_.W._scrollStateChanged=function(){};
_.W._getUndefinedMsg=function(){};
_.W.notifyResize=function(){};
_.W.assignParentResizable=function(){};
_.W.stopResizeNotificationsFor=function(){};
_.W._subscribeIronResize=function(){};
_.W._unsubscribeIronResize=function(){};
_.W.resizerShouldNotify=function(){};
_.W._onDescendantIronResize=function(){};
_.W._fireResize=function(){};
_.W._onIronRequestResizeNotifications=function(){};
_.W._parentResizableChanged=function(){};
_.W._notifyDescendant=function(){};
_.W._requestResizeNotifications=function(){};
_.W._findParent=function(){};
_.W._appResetLayoutHandler=function(){};
_.W.resetLayout=function(){};
_.W._notifyLayoutChanged=function(){};
_.W._notifyDescendantResize=function(){};
_.W._setThresholdTriggered=function(){};
oVs=_.xv({_template:function(){if(Vcw!==void 0)return Vcw;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Lls===void 0&&(Lls=document.createElement("template"));var E=Lls;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return Vcw=v},
is:"tp-yt-app-header",behaviors:[kb9,Nc_],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 v=_.tW(this.$.slot).getDistributedNodes(),e=0,d;d=v[e];e++)if(d.nodeType===Node.ELEMENT_NODE)if(d.hasAttribute("sticky")){this._stickyElRef=d;break}else this._stickyElRef||(this._stickyElRef=d);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var v=this._clampedScrollTop,e=this._height===0||v===0,d=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;e||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();e?this._updateScrollState(v,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=d}},
_updateScrollState:function(v,e){if(this._height!==0){var d=0,E=this._top;var T=this._maxHeaderTop;var S=v-this._lastScrollTop,O=Math.abs(S),b=v>this._lastScrollTop,Y=performance.now();this._mayMove()&&(d=this._clamp(this.reveals?E+S:v,0,T));v>=this._dHeight&&(d=this.condenses&&!this.fixed?Math.max(this._dHeight,d):d,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&O<100){if(Y-this._initTimestamp>300||this._wasScrollingDown!==b)this._initScrollTop=v,this._initTimestamp=Y;v>=T&&
(Math.abs(this._initScrollTop-v)>30||O>10?(b&&v>=T?d=T:!b&&v>=this._dHeight&&(d=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((d-E)/(S/(Y-this._lastTimestamp)),0,300)+"ms"):d=this._top)}T=this._dHeight===0?v>0?1:0:d/this._dHeight;e||(this._lastScrollTop=v,this._top=d,this._wasScrollingDown=b,this._lastTimestamp=Y);if(e||T!==this._progress||E!==d||v===0)this._progress=T,this._runEffects(T,d),this._transformHeader(d)}},
_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(v){this.translate3d(0,-v+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&v>=this._stickyElTop?Math.min(v,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(v,e,d){return Math.min(d,Math.max(e,v))},
_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),_.tW(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(v){switch(v){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.tW(this).querySelector("[main-title]");case "condensedTitle":return _.tW(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var JmS;var Gbi;_.xv({_template:function(){if(Gbi!==void 0)return Gbi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;JmS===void 0&&(JmS=document.createElement("template"));var E=JmS;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return Gbi=v},
is:"tp-yt-app-header-layout",behaviors:[Nc_],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.tW(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var v=this.header;if(this.isAttached&&v){this.$.wrapper.classList.remove("initializing");v.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)v.style.left=
"",v.style.right="";else{var e=this.getBoundingClientRect(),d=document.documentElement.clientWidth-e.right;v.style.left=e.left+"px";v.style.right=d+"px"}e=this.$.contentContainer.style;d=v.offsetHeight;v.fixed&&!v.condenses&&this.hasScrollingRegion?(e.marginTop=d+"px",e.paddingTop=""):(e.paddingTop=d+"px",e.marginTop="")}}});var McC=new _.gG("alertCommand");var tci=new _.gG("manageLabsStateCommand");var fNs=new _.gG("inlineFormRenderer");var xC=new _.gG("playlistSidebarPrimaryInfoRenderer");var Rtt=new _.gG("productDetailsThumbnailRenderer"),Pbs=new _.gG("productDetailsVariantRenderer"),x8v=new _.gG("productDetailsVariantOptionRenderer"),Bcw=new _.gG("productDetailsOffersContainerRenderer"),Cb9=new _.gG("productDetailsOfferRenderer");var XoQ=new _.gG("shoppingFlaggingRenderer");var ztS=new _.gG("playlistBylineRenderer");var lNS=new _.gG("insertChannelTabCommand");var BT=function(){return _.kv.apply(this,arguments)||this};
_.V(BT,_.kv);_.W=BT.prototype;_.W.activeChanged=function(){if(this.active){var v=_.IB(this.hostElement).querySelector("#header");v&&_.Iq(v,"iron-resize");window.addEventListener("scroll",_.hG(this,this.onScroll))}else window.removeEventListener("scroll",_.hG(this,this.onScroll)),_.Iq(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.W.guideVisibleChanged=function(){var v=_.IB(this.hostElement).querySelector("#header");v&&_.Iq(v,"iron-resize")};
_.W.onScroll=function(){var v=this;_.gi(this,"onScroll",function(){var e=_.IB(v.hostElement).querySelector("#header");e&&e.polymerController&&(e=e.polymerController.getScrollState().progress===1?"standard":"seamed",_.Iq(v.hostElement,"yt-request-panel-mode-change",{mode:e}))},10)};
_.W.tabsChanged=function(){if(this.tabs){for(var v=null,e=0,d=this.tabs.length;e<d;++e){var E=this.tabs[e].tabRenderer;if(E&&E.selected){v=e;break}}this.selected=v}};
_.W.onTabsActivate=function(v){_.Iq(this.hostElement,"yt-navigate",{endpoint:this.tabs[v.detail.selected].tabRenderer.endpoint})};
BT.prototype.tabsChanged=BT.prototype.tabsChanged;BT.prototype.guideVisibleChanged=BT.prototype.guideVisibleChanged;BT.prototype.activeChanged=BT.prototype.activeChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],BT.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.f(),_.w("design:type",Array)],BT.prototype,"tabs",void 0);
_.c([_.f(),_.w("design:type",Object)],BT.prototype,"selected",void 0);_.c([_.f(),_.w("design:type",Boolean)],BT.prototype,"active",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],BT.prototype,"disableHeaderFluidWidth",void 0);_.c([_.$v("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],BT.prototype,"activeChanged",null);
_.c([_.$v("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],BT.prototype,"guideVisibleChanged",null);_.c([_.$v("tabs"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],BT.prototype,"tabsChanged",null);_.c([_.Lq()],BT);var Hhi=[_.n.YtRendererBehavior,_.FF.YtdGuideStateAwareBehavior,BT.prototype];var Am9=2/3,Zh9=_.bH(130749),cmQ=function(v,e){var d=this;this.element=v;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){d.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Am9,moveAction:function(E){d.moveAction(E)},
triggerAction:function(){d.element.isReloading=!0;_.ca(_.NC(),{visualElement:Zh9});_.hg.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:d.element}})}}}};
_.Y_(_.NC(),Zh9,this.layer);this.gesture=new _.Ip(v,e,this.refreshConfig,"pan-down");this.attach()};
_.W=cmQ.prototype;_.W.attach=function(){this.gesture.attach()};
_.W.detach=function(){this.gesture.detach()};
_.W.reset=function(){this.element.close()};
_.W.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.W.moveAction=function(v){this.element.rotation=v*360};var wo9=_.bH(130750),Ci=function(v,e,d,E,T){var S=this;this.element=v;this.parent=d;this.channelHeader=E;this.ytdReduxDispatch=T;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){S.tabsStartAtInPx=S.channelHeader.clientHeight-48;var O;(O=S.selectedTab)!=null&&O.title&&(O=_.dk().resolve(_.eG(_.v5)))&&(O=O.getCurrentPage(),S.lastVisitedTabScrollPosition=O.getScrollTop(),S.previousTab&&
((S.lastVisitedTabScrollPosition===void 0?0:S.lastVisitedTabScrollPosition<S.channelHeader.clientHeight-48)?S.scrollPositionForTabs.has(S.selectedTab.title)&&S.scrollPositionForTabs.delete(S.selectedTab.title):S.scrollPositionForTabs.set(S.selectedTab.title,O.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:FlS(),triggerAction:function(){S.navigate(S.previousTab)},
moveAction:function(O,b){S.moveAction(O,b)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-FlS(),triggerAction:function(){S.navigate(S.nextTab)},
moveAction:function(O,b){S.moveAction(O,b)}}}};
_.Y_(_.NC(),wo9,this.layer);this.gesture=new _.Ip(v,e,this.tabConfig);this.attach()};
Ci.prototype.attach=function(){this.gesture.attach()};
Ci.prototype.detach=function(){this.gesture.detach()};
Ci.prototype.tabsChanged=function(v){if(v){var e=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;v=_.a(v);for(var d=v.next();!d.done;d=v.next()){d=d.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=d);var E=void 0;if((E=d)==null?0:E.selected)this.previousTab=e,this.selectedTab=d;e=d}e=this.gesture;v=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}});
e.config=v;this.scrollPositionNeedsUpdate=!0}};
Ci.prototype.moveAction=function(v,e){if(!this.tabsElement){var d;this.tabsElement=(d=this.parent.header)==null?void 0:d.tabsElement;e==="right"&&this.previousTab?_.iKA(_.kK.instance,this.previousTab.endpoint,{},""):e==="left"&&this.nextTab&&_.iKA(_.kK.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}d=this.tabsElement._pos;e==="right"&&(v*=-1);this.tabsElement._positionBar(d.width,d.left*1+d.width*v)};
var FlS=function(){var v,e;return(e=(v=_.dk().resolve(_.v5).getCurrentPage())==null?void 0:v.clientWidth)!=null?e:0};
Ci.prototype.navigate=function(v){this.element.data=void 0;if(v=v==null?void 0:v.endpoint)this.ytdReduxDispatch($8S(!0)),_.ca(_.NC(),{visualElement:wo9}),_.hg.instance.resolveCommand({navigateAction:{endpoint:v}},{form:{element:this.element}})};var Qhi;var gVt;var Xp=function(){return _.P.apply(this,arguments)||this};
_.V(Xp,_.P);Xp.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Xp.prototype,"data",void 0);_.c([_.z({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Xp);
_.A(Xp,"ytd-labs-edit-renderer",function(){if(gVt!==void 0)return gVt;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return gVt=v},{mode:1});var u79;var zA=function(){var v=_.P.apply(this,arguments)||this;v.dark=!1;v.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";v.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(zA,_.P);zA.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zA.prototype.ready=function(){var v=document.documentElement.hasAttribute("dark");this.setBackgroundImage(v);this.dark=v};
zA.prototype.onDarkModeToggledAction=function(v){this.setBackgroundImage(v);this.dark=v};
zA.prototype.setBackgroundImage=function(v){_.qr(this.hostElement,{"--yt-labs-header-background":"url("+(v?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],zA.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],zA.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zA.prototype,"dark",void 0);
_.c([_.z({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],zA);
_.A(zA,"ytd-labs-header-renderer",function(){if(u79!==void 0)return u79;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return u79=v},{mode:1});var nV9;var l8=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return v};
_.V(l8,_.P);l8.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"}}}}}};
l8.prototype.onYtToggleButton=function(v){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",v.detail.toggled)};
l8.prototype.onManageLabsState=function(v){if(v=_.L(v,tci))v.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?v.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&v.labsItemId===this.data.labsItemId&&(v.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.b4(this.hostElement,"yt-check-labs-opted-in-state").some(function(e){return e})&&this.data.confirmationDialogCommand?_.ya(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.dk().resolve(_.EI).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&v.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.dk().resolve(_.EI).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
l8.prototype.onCheckLabsOptedInState=function(){var v=this.get("data.primaryButton.toggleButtonRenderer");return v?v.isToggled:!1};
_.vP.Object.defineProperties(l8.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
l8.prototype.onYtToggleButton=l8.prototype.onYtToggleButton;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],l8.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],l8.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],l8.prototype,"itemStyle",null);_.c([_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],l8.prototype,"onYtToggleButton",null);_.c([_.z({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],l8);
_.A(l8,"ytd-labs-item-renderer",function(){if(nV9!==void 0)return nV9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return nV9=v},{mode:1});var D8s;var U8O;var HT=function(){return _.P.apply(this,arguments)||this};
_.V(HT,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],HT.prototype,"data",void 0);_.c([_.z({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],HT);
_.A(HT,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(U8O!==void 0)return U8O;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return U8O=v},{mode:1});var po1;var AK=function(){return _.P.apply(this,arguments)||this};
_.V(AK,_.P);AK.prototype.observeSuperchatChip=function(){if(this.data){var v={"--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)};_.qr(this.hostElement,v)}};
AK.prototype.colorFromDecimal=function(v){return _.w1(Number(v||0))};
AK.prototype.observeSuperchatChip=AK.prototype.observeSuperchatChip;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],AK.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],AK.prototype,"observeSuperchatChip",null);_.c([_.z({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],AK);
_.A(AK,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(po1!==void 0)return po1;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return po1=v},{mode:1});var ZD=function(){return _.P.apply(this,arguments)||this};
_.V(ZD,_.P);ZD.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"}}}};
_.vP.Object.defineProperties(ZD.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.Au),_.w("design:type",Object)],ZD.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ZD.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ZD.prototype,"hideMessageBlock",null);
_.c([_.z({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],ZD);
_.A(ZD,"ytd-live-chat-history-entry-renderer",function(){if(D8s!==void 0)return D8s;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return D8s=v},{mode:1});var vrf;var cT=function(){return _.P.apply(this,arguments)||this};
_.V(cT,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],cT.prototype,"data",void 0);_.c([_.z({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],cT);
_.A(cT,"ytd-channel-options-renderer",function(){if(vrf!==void 0)return vrf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return vrf=v},{mode:1});var epO;var we=function(){return _.P.apply(this,arguments)||this};
_.V(we,_.P);we.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],we.prototype,"data",void 0);_.c([_.z({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],we);
_.A(we,"ytd-settings-email-item-renderer",function(){if(epO!==void 0)return epO;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return epO=v},{mode:1});var d2t;var Fp=function(){return _.P.apply(this,arguments)||this};
_.V(Fp,_.P);Fp.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"}}}};
Fp.prototype.getExpansionIcon=function(v){return v?"COLLAPSE":"EXPAND"};
Fp.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.vP.Object.defineProperties(Fp.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Fp.prototype,"data",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Fp.prototype,"expanded",void 0);_.c([_.t("expanded"),_.w("design:type",String),_.w("design:paramtypes",[])],Fp.prototype,"emailListExpanded",null);
_.c([_.sg("#options"),_.w("design:type",Object)],Fp.prototype,"options",void 0);_.c([_.z({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Fp);
_.A(Fp,"ytd-settings-email-list-renderer",function(){if(d2t!==void 0)return d2t;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return d2t=v},{mode:1});var Eri;var Q2=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return v};
_.V(Q2,_.P);Q2.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"}}}};
Q2.prototype.handleSignalActionSubmitForm=function(){var v,e=(v=this.formRenderer)==null?void 0:v.getForm();e&&this.data.serviceEndpoint&&_.dk().resolve(_.EI).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},e,{element:this.hostElement})})};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Q2.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Q2.prototype,"data",void 0);_.c([_.sg("yt-form-renderer"),_.w("design:type",Object)],Q2.prototype,"formRenderer",void 0);
_.c([_.z({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Q2);
_.A(Q2,"ytd-settings-gaia-link-renderer",function(){if(Eri!==void 0)return Eri;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Eri=v},{mode:1});var T4s;var ge=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return v};
_.V(ge,_.P);ge.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.txv()&&this.set("data.hidden",!1)};
ge.prototype.onSwitchReady=function(){var v=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.N("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.Mxf().then(function(e){e&&(Notification.permission==="default"?v.set("data.hidden",!1):Notification.permission==="granted"&&_.YD("NotificationsDisabled").then(function(d){d||_.b4(v.hostElement,"yt-toggle-settings-switch",[v.data.id,!d]);v.set("data.hidden",!1)}).catch(function(){}))})})};
ge.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}}}}};
ge.prototype.handleUpdateOptionsCommand=function(v){(v=_.L(v,_.q3c))&&this.data&&this.data.id===v.id&&(this.set("data.hidden",v.hidden),v.text!==void 0&&this.set("data.text",v.text),v.clearOptions&&this.set("data.options",[]))};
ge.prototype.onSwitchReady=ge.prototype.onSwitchReady;ge.prototype.dataChanged=ge.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],ge.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ge.prototype,"data",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ge.prototype,"dataChanged",null);_.c([_.Kq("yt-settings-switch-ready"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ge.prototype,"onSwitchReady",null);_.c([_.z({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],ge);
_.A(ge,"ytd-settings-options-renderer",function(){if(T4s!==void 0)return T4s;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return T4s=v},{mode:1});var Snv;var u8=function(){return _.P.apply(this,arguments)||this};
_.V(u8,_.P);u8.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
u8.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
u8.prototype.onYtExpanderMoreTapped=u8.prototype.onYtExpanderMoreTapped;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],u8.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],u8.prototype,"data",void 0);
_.c([_.Kq("yt-expander-more-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],u8.prototype,"onYtExpanderMoreTapped",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],u8);
_.A(u8,"ytd-product-details-description-renderer",function(){if(Snv!==void 0)return Snv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Snv=v},{mode:1});var WKi;var ni=function(){var v=_.P.apply(this,arguments)||this;v.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";v.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";v.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";v.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return v};
_.V(ni,_.P);ni.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vP.Object.defineProperties(ni.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:(e=v.offerData)==null?void 0:e.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?void 0:v.purchaseButtonRenderers)!==void 0&&((e=this.data)==null?void 0:e.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var v,e;return!((v=this.data)==null||!v.formattedFromMerchantText)&&(!((e=this.data)==null||!e.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ni.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ni.prototype,"data",void 0);
_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0}),_.w("design:type",Object)],ni.prototype,"shippingIcon",void 0);_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0}),_.w("design:type",Object)],ni.prototype,"shippingAddressIcon",void 0);_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0}),_.w("design:type",Object)],ni.prototype,"googleGuaranteeIcon",void 0);
_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0}),_.w("design:type",Object)],ni.prototype,"returnPolicyIcon",void 0);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ni.prototype,"showAdditionalFees",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ni.prototype,"showMultiPurchaseButtons",null);
_.c([_.t("data","showMultiPurchaseButtons"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ni.prototype,"showPurchaseData",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],ni);
_.A(ni,"ytd-product-details-hero-offer-renderer",function(){if(WKi!==void 0)return WKi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return WKi=v},{mode:1});var arS;var iAi;var DD=function(){return _.P.apply(this,arguments)||this};
_.V(DD,_.P);_.W=DD.prototype;_.W.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.W.onKeyDown=function(v){v=v.keyCode;v!==13&&v!==32||this.handleSelection()};
_.W.onMouseEnterImage=function(){var v;((v=this.data)==null?void 0:v.thumbnailDetails)!==void 0&&_.YB(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.W.onMouseLeaveImage=function(){_.YB(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.W.handleSelection=function(){this.data&&_.Iq(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.vP.Object.defineProperties(DD.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.isSelected)}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],DD.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],DD.prototype,"isSelected",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],DD);
_.A(DD,"ytd-product-details-thumbnail-renderer",function(){if(iAi!==void 0)return iAi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return iAi=v},{mode:1});var UV=function(){var v=_.P.apply(this,arguments)||this;var e={};v.actionMap=(e["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",e["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",e);v.selectedThumbnailIndex=0;v.selectItem=function(d){d.target.onKeyDown(d)};
return v};
_.V(UV,_.P);_.W=UV.prototype;_.W.handlePreviewImageSelect=function(v){this.hoverThumbnail=v};
_.W.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.W.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.W.onThumbnailSelected=function(v,e){this.selectedThumbnailIndex=e};
_.W.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.W.updateOffset=function(){var v=_.IB(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-v));this.ytdHorizontalListBehavior.reposition_()};
_.vP.Object.defineProperties(UV.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.imageRenderer){var e,d;return((e=this.data)==null?void 0:(d=e.imageRenderer)==null?void 0:d.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var v;if((v=this.data)==null?0:v.imageRenderer){var e;return(e=_.L(this.data.imageRenderer[this.selectedThumbnailIndex],Rtt))==null?void 0:e.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var v=this,e,d,E,T=(E=(e=this.data)==null?void 0:(d=e.imageRenderer)==null?void 0:d.map(function(S,O){return{productDetailsThumbnailRenderer:Object.assign({},_.L(S,Rtt),{index:O,isSelected:O===v.selectedThumbnailIndex})}}))!=null?E:[];
return Object.assign({},this.data,{imageRenderer:T})}}});
UV.prototype.updateOffset=UV.prototype.updateOffset;UV.prototype.dataChanged=UV.prototype.dataChanged;UV.prototype.onThumbnailSelected=UV.prototype.onThumbnailSelected;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.OC.YtdHorizontalListBehavior),_.w("design:type",Object)],UV.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],UV.prototype,"componentBehavior",void 0);_.c([_.M([_.$M.YtActionHandlerBehavior]),_.w("design:type",Object)],UV.prototype,"actionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],UV.prototype,"data",void 0);_.c([_.f({value:"$.items.children"}),_.w("design:type",String)],UV.prototype,"itemsPath",void 0);_.c([_.f({value:3}),_.w("design:type",Number)],UV.prototype,"initialCount",void 0);
_.c([_.sg("#items"),_.w("design:type",Object)],UV.prototype,"items",void 0);_.c([_.f(),_.w("design:type",Object)],UV.prototype,"selectedThumbnailIndex",void 0);_.c([_.f(),_.w("design:type",Object)],UV.prototype,"hoverThumbnail",void 0);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UV.prototype,"showThumbnails",null);
_.c([_.Kq("ytd-product-details-thumbnail-renderer-selected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Number]),_.w("design:returntype")],UV.prototype,"onThumbnailSelected",null);_.c([_.t("data","selectedThumbnailIndex","hoverThumbnail"),_.w("design:type",Object),_.w("design:paramtypes",[])],UV.prototype,"thumbnailDetails",null);_.c([_.t("data","selectedThumbnailIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],UV.prototype,"populatedData",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UV.prototype,"dataChanged",null);_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UV.prototype,"updateOffset",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],UV);
_.A(UV,"ytd-product-details-image-carousel-renderer",function(){if(arS!==void 0)return arS;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return arS=v},{mode:_.bk("kevlar_poly_si_batch_j079")?1:2});var OAv;var pi=function(){return _.P.apply(this,arguments)||this};
_.V(pi,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],pi.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pi.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],pi);
_.A(pi,"ytd-product-details-offer-renderer",function(){if(OAv!==void 0)return OAv;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return OAv=v},{mode:1});var IrQ;var vs=function(){var v=_.P.apply(this,arguments)||this;v.isOffersHidden=!0;return v};
_.V(vs,_.P);vs.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var v,e=_.L((v=this.data)==null?void 0:v.viewOffersButton,_.BD);e&&this.ytRendererBehavior.logExplicitClick(e)};
vs.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.vP.Object.defineProperties(vs.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E;return(d=_.L((v=this.data)==null?void 0:(e=v.offers)==null?void 0:e[0],Cb9))==null?void 0:(E=d.offerData)==null?void 0:E.vendorLogoUrl}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],vs.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],vs.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],vs.prototype,"isOffersHidden",void 0);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],vs.prototype,"firstOfferVendorLogoUrl",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],vs);
_.A(vs,"ytd-product-details-offers-container-renderer",function(){if(IrQ!==void 0)return IrQ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return IrQ=v},{mode:1});var bAC;var Yn_;var ev=function(){return _.P.apply(this,arguments)||this};
_.V(ev,_.P);ev.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
ev.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.YB(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
ev.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.YB(this,"ytd-product-details-variant-image-unselect")};
_.vP.Object.defineProperties(ev.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 v;return((v=this.data)==null?void 0:v.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((v=this.data)==null?void 0:v.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((e=this.data)==null?void 0:e.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((d=this.data)==null?void 0:d.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var v;if(((v=this.data)==null?void 0:v.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var v,e;return this.isUnavailable?(v=this.data)==null?void 0:v.variantOptionUnavailableAccessibilityLabel:(e=this.data)==null?void 0:e.variantOptionAccessibilityLabel}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ev.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ev.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ev.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],ev.prototype,"displayType",void 0);
_.c([_.t("displayType","data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ev.prototype,"isImageButton",null);_.c([_.t("displayType","data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ev.prototype,"isPillButton",null);_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ev.prototype,"isActive",null);
_.c([_.t("data"),_.f({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ev.prototype,"isUnavailable",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ev.prototype,"thumbnailDetails",null);_.c([_.t("isUnavailable","data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ev.prototype,"accessibilityLabel",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],ev);
_.A(ev,"ytd-product-details-variant-option-renderer",function(){if(Yn_!==void 0)return Yn_;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Yn_=v},{mode:1});var m21;var dX=function(){var v=_.P.apply(this,arguments)||this;v.variantsExpanded=!1;v.hideShowMoreLessVariantButton=!0;v.initialized=!1;v.computeVariantsDebouncer=null;v.computeVariants=function(e){e=e===void 0?!1:e;v.variantsExpanded||v.showOptions()||!e||(v.variantsExpanded=!0);if(v.variantsExpanded){e=_.a(v.items.children);for(var d=e.next();!d.done;d=e.next())d.value.hidden=!1}v.initialized=!0};
return v};
_.V(dX,_.P);_.W=dX.prototype;_.W.ready=function(){var v=this;setTimeout(function(){v.computeVariants(!0)})};
_.W.showOptions=function(){for(var v=_.a(this.items.children),e=v.next();!e.done;e=v.next())e.value.hidden=!0;var d=this.container.getBoundingClientRect().width,E=0,T=v=0;e=!1;for(var S=_.a(this.items.children),O=S.next();!O.done;O=S.next()){O=O.value;O.hidden=!1;var b=O.getBoundingClientRect().width;if(E+b<d)E+=b;else if(++T<2)E=b;else break;v+=1;O.hasAttribute("is-active")&&(e=!0)}for(d=v;d<this.items.children.length;d++)this.items.children[d].hidden=!0;this.hideShowMoreLessVariantButton=v===this.items.children.length;
return e};
_.W.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Sr(this.computeVariantsDebouncer,_.QP.after(100),this.computeVariants)};
_.W.onShowMoreLessVariantsButtonClick=function(){var v;(v=this.data)!=null&&v.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.W.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.vP.Object.defineProperties(dX.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(v=this.data)==null?void 0:(e=v.variantOptionRenderers)==null?void 0:e.find(function(S){return _.L(S,x8v).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),E,T;
return(T=(E=_.L(d,x8v))==null?void 0:E.name)!=null?T:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.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"}}}});
dX.prototype.debouncedComputeVariants=dX.prototype.debouncedComputeVariants;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],dX.prototype,"componentBehavior",void 0);_.c([_.M(_.J9),_.w("design:type",Object)],dX.prototype,"ironResizableBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],dX.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],dX.prototype,"variantsExpanded",void 0);_.c([_.f(),_.w("design:type",Object)],dX.prototype,"hideShowMoreLessVariantButton",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dX.prototype,"initialized",void 0);_.c([_.sg("#items"),_.w("design:type",HTMLDivElement)],dX.prototype,"items",void 0);_.c([_.sg("#container"),_.w("design:type",HTMLDivElement)],dX.prototype,"container",void 0);
_.c([_.sg("#more-variants-button"),_.w("design:type",HTMLElement)],dX.prototype,"moreVariantsButton",void 0);_.c([_.t("data"),_.w("design:type",String),_.w("design:paramtypes",[])],dX.prototype,"selectedOptionName",null);_.c([_.$v("data","variantsExpanded"),_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dX.prototype,"debouncedComputeVariants",null);
_.c([_.t("data"),_.w("design:type",String),_.w("design:paramtypes",[])],dX.prototype,"displayType",null);_.c([_.t("displayType"),_.w("design:type",Object),_.w("design:paramtypes",[])],dX.prototype,"variantItemsClassname",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],dX);
_.A(dX,"ytd-product-details-variant-renderer",function(){if(m21!==void 0)return m21;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return m21=v},{mode:1});var E4=function(){return _.P.apply(this,arguments)||this};
_.V(E4,_.P);
E4.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"}}}};
_.vP.Object.defineProperties(E4.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(e=_.L((v=this.data)==null?void 0:v.offersContainerRenderer,Bcw))==null?void 0:e.offers;return d!==void 0&&(d==null?void 0:d.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 v,e,d;return((d=(v=this.data)==null?void 0:(e=v.variants)==null?void 0:e.map(function(E){var T,S;E=(S=(T=_.L(E,Pbs))==null?void 0:T.variantOptionRenderers)==null?void 0:S.find(function(b){var Y;return((Y=_.L(b,x8v))==null?void 0:Y.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var O;return(O=_.L(E,x8v))==null?void 0:O.name}).filter(function(E){return typeof E==="string"}))!=null?d:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var v,e,d,E=(e=_.L((v=this.data)==null?void 0:v.shoppingFlaggingRenderer,XoQ))==null?void 0:(d=e.reportButton)==null?void 0:d.buttonRenderer;if(E)return{text:E.text,command:E.command,icon:{iconType:"FLAG"},accessibilityData:E.accessibilityData,trackingParams:E.trackingParams,loggingDirectives:E.loggingDirectives}}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],E4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],E4.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],E4.prototype,"data",void 0);_.c([_.sg("#image-carousel-renderer"),_.w("design:type",Object)],E4.prototype,"imageCarouselRenderer",void 0);
_.c([_.sg("#hero-offer-renderer"),_.w("design:type",Object)],E4.prototype,"productDetailsHeroOfferRenderer",void 0);_.c([_.sg("#variants"),_.w("design:type",Object)],E4.prototype,"productDetailsVariantRenderer",void 0);_.c([_.sg("#offers"),_.w("design:type",Object)],E4.prototype,"productDetailsOffersContainerRenderer",void 0);_.c([_.sg("#description-renderer"),_.w("design:type",Object)],E4.prototype,"productDetailsDescriptionRenderer",void 0);
_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],E4.prototype,"showPurchaseData",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],E4.prototype,"showHeroOfferRenderer",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],E4.prototype,"showBrandText",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],E4.prototype,"showOffers",null);
_.c([_.t("showOffers","showPurchaseData"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],E4.prototype,"showBuySeparator",null);_.c([_.t("showOffers","showPurchaseData"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],E4.prototype,"showBuyCard",null);_.c([_.t("data"),_.w("design:type",String),_.w("design:paramtypes",[])],E4.prototype,"selectedVariantsText",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],E4.prototype,"shoppingReportingButtonData",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],E4);
_.A(E4,"ytd-product-details-renderer",function(){if(bAC!==void 0)return bAC;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return bAC=v},{mode:1});var yJf;var qni;var rJQ;var TY=function(){return _.P.apply(this,arguments)||this};
_.V(TY,_.P);TY.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.vP.Object.defineProperties(TY.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],TY.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],TY.prototype,"formattedAmount",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],TY.prototype,"ariaLabel",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data.style"),_.w("design:type",String),_.w("design:paramtypes",[])],TY.prototype,"vcBalanceWidgetStyle",null);_.c([_.lh({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],TY);
_.A(TY,"yt-vc-balance-renderer",function(){if(rJQ===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;qni===void 0&&(qni=document.createElement("template"));var E=qni;d.call(e,E.content.cloneNode(!0),v.content.firstChild);rJQ=v}v=rJQ;return v},{mode:2});_.RZ("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Sv=function(){return _.P.apply(this,arguments)||this};
_.V(Sv,_.P);_.vP.Object.defineProperties(Sv.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Sv.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Sv.prototype,"data",void 0);_.c([_.f({selectorArgs:["data.vcBalanceEntityKey"],selector:function(v,e){return _.h_(v.entities,"vcBalanceEntity",e)}}),
_.w("design:type",Object)],Sv.prototype,"vcBalanceEntity",void 0);_.c([_.t("vcBalanceEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],Sv.prototype,"formattedAmount",null);_.c([_.t("vcBalanceEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],Sv.prototype,"vcBalanceAriaLabel",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Sv);
_.A(Sv,"ytd-vc-balance-renderer",function(){if(yJf!==void 0)return yJf;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return yJf=v},{mode:1});var hpf;var Ws=function(){var v=_.P.apply(this,arguments)||this;v.rotation=0;v.isReloading=!1;return v};
_.V(Ws,_.P);Ws.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Ws.prototype.reset=function(){this.hostElement.style.opacity=""};
Ws.prototype.close=function(){var v=this;return _.I(function(e){if(e.nextAddress==1)return e.yield(v.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);v.hostElement.style.opacity="0";_.s9(e)})};
Ws.prototype.rotationChanged=Ws.prototype.rotationChanged;_.c([_.f(),_.w("design:type",Object)],Ws.prototype,"rotation",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ws.prototype,"isReloading",void 0);_.c([_.sg("#icon"),_.w("design:type",HTMLElement)],Ws.prototype,"icon",void 0);_.c([_.$v("rotation"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ws.prototype,"rotationChanged",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-refresh"})],Ws);
_.A(Ws,"ytd-refresh",function(){if(hpf!==void 0)return hpf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return hpf=v},{mode:1});var KK9;var ak=function(){return _.P.apply(this,arguments)||this};
_.V(ak,_.P);ak.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"}}}};
ak.prototype.dataChanged=function(){if(this.data){var v=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var e=_.i2(this.data.banner.thumbnails,this.hostElement.clientWidth);e&&(e.indexOf("//")===0&&(e="https:"+e),this.hasBannerArt=!0,_.qr(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+e+")"}))}this.hasBannerArt!==v&&_.IB(this.hostElement).querySelector("#header").fire("iron-resize")}};
ak.prototype.updateSelectedFromBinding=function(v){this.selected=v.detail.value};
ak.prototype.dataChanged=ak.prototype.dataChanged;_.c([_.M(Hhi),_.w("design:type",Object)],ak.prototype,"ytdTabbedHeaderBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.ck),_.w("design:type",Object)],ak.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],ak.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ak.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ak.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Number)],ak.prototype,"selected",void 0);_.c([_.f(),_.w("design:type",Boolean)],ak.prototype,"active",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],ak.prototype,"hasBannerArt",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ak.prototype,"dataChanged",null);_.c([_.z({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],ak);
_.A(ak,"ytd-interactive-tabbed-header-renderer",function(){if(KK9!==void 0)return KK9;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return KK9=v},{mode:1});var $2i;var iU=function(){return _.P.apply(this,arguments)||this};
_.V(iU,_.P);iU.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
iU.prototype.computeActionsAlignment=function(v){return(v==null?void 0:v.actionsAlignment)||""};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],iU.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.w("design:type",String)],iU.prototype,"actionsAlignment",void 0);_.c([_.z({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],iU);
_.A(iU,"ytd-page-footer-renderer",function(){if($2i!==void 0)return $2i;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return $2i=v},{mode:1});var jyQ;var sy9;var O4=function(){var v=_.P.apply(this,arguments)||this;v.isEditing=!1;v.useSlot=!1;v.isMultiline=!1;return v};
_.V(O4,_.P);_.W=O4.prototype;_.W.onKeydown=function(v){if(v.keyCode===13&&!this.isMultiline)this.onSave();else if(v.keyCode===27)this.onCancel()};
_.W.computeComponentStyle=function(v){return(v==null?0:v.style)?v.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.W.computeisMultiline=function(v){if(this.multilineOverride!==void 0)return this.multilineOverride;var e,d;return!!(v==null?0:(e=v.formField)==null?0:(d=e.textInputFormFieldRenderer)==null?0:d.isMultiline)};
_.W.computeTextDisplayed=function(v,e){if(v)return v;if(e)return e};
_.W.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.W.onSave=function(){if(this.textForm.validate()){this.textForm.save();var v=this.textForm.value;if(v)this.set("data.textDisplayed",_.pQ(v));else{var e;((e=this.data)==null?0:e.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.nR("inline-form-changed",this.data));this.isEditing=!1}};
_.W.onCancel=function(){var v=_.vv(this.data.textDisplayed);v===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(v);this.isEditing=!1};
O4.prototype.onKeydown=O4.prototype.onKeydown;_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],O4.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],O4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],O4.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],O4.prototype,"isEditing",void 0);_.c([_.f(),_.w("design:type",Object)],O4.prototype,"useSlot",void 0);_.c([_.f(),_.w("design:type",Boolean)],O4.prototype,"multilineOverride",void 0);_.c([_.f(),_.w("design:type",Boolean)],O4.prototype,"enableOverlayTheme",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.w("design:type",String)],O4.prototype,"componentStyle",void 0);
_.c([_.f({computed:"computeisMultiline(data)"}),_.w("design:type",Object)],O4.prototype,"isMultiline",void 0);_.c([_.sg("#text-form"),_.w("design:type",Object)],O4.prototype,"textForm",void 0);_.c([_.Kq("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],O4.prototype,"onKeydown",null);_.c([_.z({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],O4);
_.A(O4,"ytd-inline-form-renderer",function(){if(sy9!==void 0)return sy9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return sy9=v},{mode:1});var N4t;var Ik=function(){var v=_.P.apply(this,arguments)||this;v.previousSelectValue=void 0;v.selectedItemMessage=void 0;return v};
_.V(Ik,_.P);Ik.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Ik.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var v,e,d,E,T=(v=this.data)==null?void 0:(e=v.dropdown)==null?void 0:(d=e.dropdownRenderer)==null?void 0:(E=d.entries)==null?void 0:E.map(function(b){return b.privacyDropdownItemRenderer});
v=_.a(T!=null?T:[]);for(e=v.next();!e.done;e=v.next())if((e=e.value)&&e.int32Value===this.selectedValue){this.selectedItemMessage=e.itemMessage;break}}else this.selectedItemMessage=void 0;var S;(S=this.onValueChanged)==null||S.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var O;(O=this.data)!=null&&O.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Ik.prototype.onValueChangedForSelectedValue=function(v){this.selectedValue=v.detail.value};
Ik.prototype.selectedValueChanged=Ik.prototype.selectedValueChanged;_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],Ik.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Ik.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ik.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ik.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],Ik.prototype,"theme",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Number)],Ik.prototype,"selectedValue",void 0);_.c([_.f(),_.w("design:type",Function)],Ik.prototype,"onValueChanged",void 0);
_.c([_.V1("selectedValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ik.prototype,"selectedValueChanged",null);_.c([_.z({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Ik);
_.A(Ik,"ytd-dropdown-form-field-renderer",function(){if(N4t!==void 0)return N4t;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return N4t=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var k$Q;var bU=function(){return _.P.apply(this,arguments)||this};
_.V(bU,_.P);_.vP.Object.defineProperties(bU.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var v=[],e=_.a(this.data||[]),d=e.next();!d.done;d=e.next())(d=_.L(d.value,ztS))&&v.push(d);return v}}});
_.c([_.f(),_.w("design:type",Array)],bU.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],bU.prototype,"byline",null);_.c([_.z({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],bU);
_.A(bU,"ytd-playlist-byline-renderer",function(){if(k$Q!==void 0)return k$Q;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return k$Q=v},{mode:1});var LKs;var Yn=function(){var v=_.P.apply(this,arguments)||this;v.rtlBullet=_.N("web_playlist_stats_rtl_bullet_icon_killswitch");v.modern=_.N("web_modern_buttons");v.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return v};
_.V(Yn,_.P);_.W=Yn.prototype;_.W.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"}}}}};
_.W.attached=function(){};
_.W.computeIsCustomThumbnail=function(v){return v?!!v.playlistCustomThumbnailRenderer:!1};
_.W.onYtNavigate=function(v,e){if(e&&e.actions&&e.actions.indexOf("shuffle")>-1){v=_.dk().resolve(_.zJ);var d=e.tempData||{};d.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);e.tempData=d;v.isShuffleNextPlaylist=!0}};
_.W.onUpdatePlaylistAction=function(v){var e;v=(e=_.L(v,_.wJM))==null?void 0:e.updatedRenderer;if(e=_.L(v,xC))this.data=e};
_.W.computeStyleType=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.W.computeThumbnailWidth=function(v){return v==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.W.computeHideThumbnailAria=function(v){if(v==null?0:v.thumbnailOverlays)for(var e=0;e<v.thumbnailOverlays.length;e++){var d=void 0;if((d=v.thumbnailOverlays[e])==null?0:d.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Yn.prototype.onYtNavigate=Yn.prototype.onYtNavigate;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Yn.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Yn.prototype,"ytComponentBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Yn.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Yn.prototype,"rtlBullet",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.w("design:type",String)],Yn.prototype,"styleType",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.w("design:type",Number)],Yn.prototype,"thumbnailWidth",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Yn.prototype,"modern",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.w("design:type",Boolean)],Yn.prototype,"isCustomThumbnail",void 0);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[Event,Object]),_.w("design:returntype")],Yn.prototype,"onYtNavigate",null);_.c([_.z({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Yn);
_.A(Yn,"ytd-playlist-sidebar-primary-info-renderer",function(){if(LKs!==void 0)return LKs;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return LKs=v},{mode:1});var VL_;var mD=function(){return _.P.apply(this,arguments)||this};
_.V(mD,_.P);mD.prototype.computeOwnerVisibility=function(v){return!(!v.videoOwner&&!v.button)};
mD.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],mD.prototype,"data",void 0);_.c([_.z({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],mD);
_.A(mD,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(VL_!==void 0)return VL_;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return VL_=v},{mode:1});var or9;var yb=function(){var v=_.P.apply(this,arguments)||this;v.expanded=!1;v.isCompact=!1;return v};
_.V(yb,_.P);_.W=yb.prototype;_.W.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.W.dataChanged=function(){this.data&&_.UJ(_.IB(this.text),_.sEc(_.Lg6,_.vv(this.data.text||null)))};
_.W.computeAutoScrollEnabled=function(v,e){return v&&!e};
_.W.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.W.toggleOnTap=function(){this.expanded=!this.expanded};
yb.prototype.expandedChanged=yb.prototype.expandedChanged;yb.prototype.dataChanged=yb.prototype.dataChanged;_.c([_.M(_.NXt),_.w("design:type",Object)],yb.prototype,"ytdAutoScrollBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],yb.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yb.prototype,"expanded",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yb.prototype,"isCompact",void 0);_.c([_.f({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.w("design:type",Boolean)],yb.prototype,"autoScrollEnabled",void 0);_.c([_.sg("#text"),_.w("design:type",Object)],yb.prototype,"text",void 0);_.c([_.sg("#expander-icon"),_.w("design:type",Object)],yb.prototype,"expanderIcon",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yb.prototype,"dataChanged",null);_.c([_.$v("expanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yb.prototype,"expandedChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],yb);
_.A(yb,"ytd-channel-legal-info-renderer",function(){if(or9!==void 0)return or9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return or9=v},{mode:1});var JJw;var G$v=_.sz("DOWNLOAD",{},"Download"),MLQ=_.sz("DOWNLOADING",{},"Downloading"),tLS=_.sz("DOWNLOADED",{},"Downloaded"),qK=function(){var v=_.P.apply(this,arguments)||this;v.downloadProgress=0;v.isDownloadComplete=!1;v.transferState="TRANSFER_STATE_UNKNOWN";return v};
_.V(qK,_.P);_.W=qK.prototype;_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.dataChanged=function(){var v;(v=this.data)!=null&&v.tooltip||(v=_.ZY(_.d1().getState(),this.playlistId),this.updateButtonState(v))};
_.W.computePlaylistId=function(v){return v};
_.W.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.W.updateButtonState=function(v){if(this.data&&(this.data.tooltip!==MLQ||!_.oG(v))){this.isDownloadComplete=!1;switch(v){case "TRANSFER_STATE_UNKNOWN":v=G$v;var e="OFFLINE_DOWNLOAD";var d="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":v=tLS;e="OFFLINE_PIN";d="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":v=MLQ;e="OFFLINE_DOWNLOADING_ZERO";d="ACTION_REMOVE_WITH_PROMPT";
break;default:v=G$v,e="OFFLINE_DOWNLOAD",d="ACTION_ADD"}var E=Object.assign({},this.data);E.tooltip=v;E.accessibilityData={accessibilityData:{label:v}};E.icon={iconType:e};E.size="SIZE_DEFAULT";_.L(E.command,_.hX)&&(_.L(E.command,_.hX).action=d);this.set("data",E)}};
_.W.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var v="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?v="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?v="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?v="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?v="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?v="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(v="OFFLINE_PIN",this.isDownloadComplete=!0);var e;v!==((e=this.data.icon)==null?void 0:e.iconType)&&(e=Object.assign({},this.data),e.tooltip=MLQ,e.accessibilityData={accessibilityData:{label:MLQ}},e.icon={iconType:v},_.L(e.command,_.hX)&&(_.L(e.command,_.hX).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",e))}};
qK.prototype.updateProgress=qK.prototype.updateProgress;qK.prototype.onTransferStateChanged=qK.prototype.onTransferStateChanged;qK.prototype.dataChanged=qK.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],qK.prototype,"ytdReduxBehavior",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],qK.prototype,"forceIconButton",void 0);
_.c([_.f({value:!0}),_.w("design:type",Boolean)],qK.prototype,"forceIconOnly",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],qK.prototype,"overrides",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],qK.prototype,"buttonTooltipPosition",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],qK.prototype,"styleActionButton",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],qK.prototype,"disableTextTransform",void 0);
_.c([_.f({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.w("design:type",String)],qK.prototype,"playlistId",void 0);_.c([_.f(),_.w("design:type",Object)],qK.prototype,"data",void 0);_.c([_.f({selector:_.ahS,selectorArgs:["playlistId"]}),_.w("design:type",Object)],qK.prototype,"downloadProgress",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],qK.prototype,"isDownloadComplete",void 0);
_.c([_.f({selector:_.ZY,selectorArgs:["playlistId"]}),_.w("design:type",String)],qK.prototype,"transferState",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],qK.prototype,"showTooltips",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],qK.prototype,"sendCommandWhenDisabled",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],qK.prototype,"disabled",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qK.prototype,"dataChanged",null);_.c([_.V1("transferState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qK.prototype,"onTransferStateChanged",null);_.c([_.V1("downloadProgress"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qK.prototype,"updateProgress",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],qK);
_.A(qK,"ytd-download-playlist-button-renderer",function(){if(JJw!==void 0)return JJw;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return JJw=v},{mode:1});var frC;_.aZ(_.SX6,"thumbnail-overlay-button-view-model",{props:{data:_.U1,lockupExperiments:_.U1}});var rX=function(){var v=_.P.apply(this,arguments)||this;v.isSquare=!1;v.isVertical=!1;return v};
_.V(rX,_.P);rX.prototype.computeIsSquare=function(v){return v!=null&&v.thumbnail?m89(v.thumbnail)==="SQUARE":!1};
rX.prototype.computeIsVertical=function(v){return v!=null&&v.thumbnail?m89(v.thumbnail)==="VERTICAL":!1};
rX.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.w("design:type",Object)],rX.prototype,"isSquare",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.w("design:type",Object)],rX.prototype,"isVertical",void 0);
_.c([_.f(),_.w("design:type",Object)],rX.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],rX);
_.A(rX,"ytd-hero-playlist-thumbnail-renderer",function(){if(frC!==void 0)return frC;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return frC=v},{mode:1});var hv=function(){var v=_.P.apply(this,arguments)||this;v.isDarkTheme=!1;v.isUltraWide=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return v};
_.V(hv,_.P);_.W=hv.prototype;_.W.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.dk();var v;(v=_.dk().resolve(_.eG(_.aR)))!=null&&(v.headerElement=this.hostElement)};
_.W.detached=function(){var v;(v=_.dk().resolve(_.eG(_.aR)))!=null&&(v.headerElement=void 0)};
_.W.onUpdateHeader=function(v){(v=v.detail)&&this.set("data",v)};
_.W.computeTextDisplayed=function(v){if(v)return v.textDisplayed?v.textDisplayed:v.placeholder};
_.W.gradientColorToLinearGradientStop=function(v){var e=this.isDarkTheme?v.darkThemeColor:v.lightThemeColor;return e?_.w1(e)+" "+((v==null?void 0:v.startLocation)||0)*100+"%":"transparent"};
_.W.onWindowResize=function(){var v;((v=this.data)==null?0:v.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.W.onIronResize=function(v){this.isUltraWide=!v.detail.value};
_.W.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.W.onUpdatePlaylistName=function(v){var e=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},v.detail.value));_.Uh(this,function(){var d;(d=e.editableTitle)==null||d.resize()})};
_.W.onUpdatePlaylistDescription=function(v){var e=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},v.detail.value));_.Uh(this,function(){var d;(d=e.editableDescriptionInlineExpander)==null||d.resize()})};
_.W.getCinematicData=function(v){return _.L(v==null?void 0:v.cinematicContainer,_.GA)};
_.vP.Object.defineProperties(hv.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 v,e=(v=this.getCinematicData(this.data))==null?void 0:v.config;return(v=this.isDarkTheme?e==null?void 0:e.darkThemeBackgroundColor:e==null?void 0:e.lightThemeBackgroundColor)?"background-color:"+_.cv(v)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var v;return _.L((v=this.data)==null?void 0:v.descriptionForm,fNs)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var v=this,e,d,E;return"background:linear-gradient(to bottom, "+(((E=(e=this.getCinematicData(this.data))==null?void 0:(d=e.gradientColorConfig)==null?void 0:d.map(function(T){return v.gradientColorToLinearGradientStop(T)}))==null?void 0:E.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var v;return _.vv((v=this.data)==null?void 0:v.descriptionTapText)}}});
hv.prototype.onUpdateHeader=hv.prototype.onUpdateHeader;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],hv.prototype,"actionHandlerBehavior",void 0);_.c([_.sg("#description-inline-expander"),_.w("design:type",Object)],hv.prototype,"descriptionInlineExpander",void 0);
_.c([_.sg("#editable-description-inline-expander"),_.w("design:type",Object)],hv.prototype,"editableDescriptionInlineExpander",void 0);_.c([_.f(),_.w("design:type",Object)],hv.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],hv.prototype,"isUltraWide",void 0);_.c([_.sg("#editable-title-display"),_.w("design:type",Object)],hv.prototype,"editableTitle",void 0);_.c([_.t("isUltraWide"),_.w("design:type",Object),_.w("design:paramtypes",[])],hv.prototype,"maxDescriptionLines",null);
_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],hv.prototype,"noCinematicData",null);_.c([_.Kq("yt-new-playlist-header"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],hv.prototype,"onUpdateHeader",null);_.c([_.t("data","isDarkTheme"),_.w("design:type",Object),_.w("design:paramtypes",[])],hv.prototype,"backgroundStyle",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],hv.prototype,"descriptionFormData",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],hv.prototype,"getDropdownTheme",null);_.c([_.t("data","isDarkTheme"),_.w("design:type",String),_.w("design:paramtypes",[])],hv.prototype,"gradientStyle",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],hv.prototype,"descriptionTapText",null);
_.c([_.z({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],hv);
_.A(hv,"ytd-playlist-header-renderer",function(){if(jyQ!==void 0)return jyQ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return jyQ=v},{mode:_.bk("kevlar_poly_si_batch_j078")?1:2});var Rps;var PE9;var KW=function(){return _.P.apply(this,arguments)||this};
_.V(KW,_.P);KW.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],KW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],KW.prototype,"data",void 0);_.c([_.z({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],KW);
_.A(KW,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(PE9!==void 0)return PE9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return PE9=v},{mode:1});var $n=function(){return _.P.apply(this,arguments)||this};
_.V($n,_.P);
$n.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}}}}};
$n.prototype.computeUsePremiumShowStyle=function(v){if(!v||!v.items)return!1;for(var e=0;e<v.items.length;e++)if(_.L(v.items[e],xC)){var d=void 0;return((d=_.L(v.items[e],xC))==null?void 0:d.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$n.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.w("design:type",Boolean)],$n.prototype,"usePremiumShowStyle",void 0);
_.c([_.z({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],$n);
_.A($n,"ytd-playlist-sidebar-renderer",function(){if(Rps!==void 0)return Rps;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Rps=v},{mode:1});var x2i;var B4s;var CE_=function(v,e,d,E,T,S,O,b){this.minWidth=v;this.minHeight=e;this.recommendedWidth=d;this.recommendedHeight=E;this.JSC$22093_maxFileSize=T;this.title=S;this.bannerGalleryTitle=O;this.channelId=b;this.picker_=null;v=_.X70("yt-banner");e=v.addView;d=(new shO("youtubebanner")).addUploadMetadata("silo_id","19");d.opts.ytMaxFileSize=this.JSC$22093_maxFileSize;E=this.recommendedHeight;d.opts.ytRecWidth=this.recommendedWidth;d.opts.ytRecHeight=E;e.call(v,d);v.addView(new _.s3);e=v.addView;d=new _.s3;
d.opts.type="ytbanner";e.call(v,d.JSC$10064_setLabel(this.bannerGalleryTitle));e=v.setTitle(this.title).setSize(1E3);e.urlParamMap_.set("thumbs","orig");d=this.minWidth;E=this.minHeight;if(isNaN(d)||isNaN(E))throw Error("gb`"+d+"`"+E);e.urlParamMap_.set("minSize",d+"x"+E);e.urlParamMap_.set("cropMode","ytcb");this.builder_=v};
CE_.prototype.open=function(){var v=this;return new _.yf(function(e,d){_.IT7(v.builder_,function(E){E.action=="picked"?e(E):E.action=="cancel"&&d(Error("yo"))});
v.picker_&&v.picker_.dispose();v.picker_=v.builder_.build();v.picker_.setVisible(!0)})};
CE_.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var XUf=function(v){this.channelId=v};
XUf.prototype.upload=function(v){var e="";v.viewToken&&(e=v.viewToken[2].type);var d=v.docs[0];v=d.crop;e={channel_id:this.channelId,fife_url:d.thumbnails[0].url,photo_id:d.id,is_gallery_image:e=="ytbanner"};v&&(e.crop_top=v.top,e.crop_right=v.right,e.crop_bottom=v.bottom,e.crop_left=v.left);return _.yF3("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:e})};var jv=function(){var v=_.P.apply(this,arguments)||this;v.ariaLabel=null;return v};
_.V(jv,_.P);_.W=jv.prototype;_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.W.detached=function(){this.picker&&this.picker.dispose()};
_.W.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.W.computeAriaLabel=function(v){return v};
_.W.onTap=function(){var v=this,e;if((e=this.data)==null||!e.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new CE_(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 d;(d=this.picker)==null||d.open().then(function(E){v.handleBannerPicked(E)},function(){})}};
_.W.handleBannerPicked=function(v){var e=this;this.uploader||(this.uploader=new XUf(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(v).then(function(d){e.handleBannerUploadSucceeded(d)},function(d){e.handleBannerUploadFailed(d)})};
_.W.handleBannerUploadSucceeded=function(v){v&&v.errors?this.handleBannerUploadFailed(v):(_.Iq(this.hostElement,"yt-banner-updated",v),this.message=null)};
_.W.handleBannerUploadFailed=function(v){this.message=v&&v.errors&&v.errors.length?v.errors[0]:null};
jv.prototype.dataChanged=jv.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],jv.prototype,"componentBehavior",void 0);_.c([_.M(_.MS),_.w("design:type",Object)],jv.prototype,"ironButtonState",void 0);_.c([_.f(),_.w("design:type",Object)],jv.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.w("design:type",Object)],jv.prototype,"ariaLabel",void 0);
_.c([_.f(),_.w("design:type",Object)],jv.prototype,"message",void 0);_.c([_.f(),_.w("design:type",Object)],jv.prototype,"picker",void 0);_.c([_.f(),_.w("design:type",Object)],jv.prototype,"uploader",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jv.prototype,"dataChanged",null);_.c([_.z({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],jv);
_.A(jv,"ytd-channel-banner-editor-renderer",function(){if(B4s!==void 0)return B4s;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return B4s=v},{mode:1});var zpi;var lrs=_.Z9(["#"]),s4=function(){return _.P.apply(this,arguments)||this};
_.V(s4,_.P);s4.prototype.computeHrefWithDefault=function(v){return this.ytComponentBehavior.computeHref_(v,!0)||_.Uf3(lrs)};
s4.prototype.dataChanged=function(){var v=this.data;v&&v.targetId&&_.Lb6(_.oc(),v.targetId,this.moreIcon)};
s4.prototype.dataChanged=s4.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],s4.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],s4.prototype,"data",void 0);_.c([_.sg("#more-icon"),_.w("design:type",Object)],s4.prototype,"moreIcon",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],s4.prototype,"dataChanged",null);
_.c([_.z({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],s4);
_.A(s4,"ytd-channel-tagline-renderer",function(){if(zpi!==void 0)return zpi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return zpi=v},{mode:1});var HA9;var NK=function(){return _.P.apply(this,arguments)||this};
_.V(NK,_.P);_.W=NK.prototype;_.W.ready=function(){var v=this;_.IB(this.hostElement).querySelector("#form").addEventListener("submit",function(e){v.onSubmit(e)})};
_.W.onDataChanged=function(){var v;((v=this.data)==null?0:v.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.W.onIconButtonKeydown=function(v){v.keyCode===13&&this.iconButton.click()};
_.W.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.W.openOnClickHandler=function(){this.input.focus()};
_.W.onSubmit=function(v){v.preventDefault();return!1};
_.W.submitOnEnterKeyUp=function(v){var e;if(v.keyCode===13&&((e=this.data)==null?0:e.expandedText)){v=this.data.endpoint;e=_.f0.unsafeClone(v);var d;((d=_.L(e==null?void 0:e.commandMetadata,_.$B))==null?0:d.url)?(_.L(e.commandMetadata,_.$B).url=_.zN(_.L(e.commandMetadata,_.$B).url,"query",this.data.expandedText),_.L(e,_.Lo)&&(_.L(e,_.Lo).query=this.data.expandedText),_.Iq(this.hostElement,"yt-navigate",{endpoint:e,tempData:{disableCache:!0}})):(d=new _.kL("Error: Trying to navigate to an endpoint without url",
v),_.RI(d))}};
_.W.updateDataExpandedTextFromBinding=function(v){this.set("data.expandedText",v.detail.value)};
_.vP.Object.defineProperties(NK.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.N("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
NK.prototype.onDataChanged=NK.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.zds),_.w("design:type",Object)],NK.prototype,"ytdExpandableInputBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],NK.prototype,"data",void 0);_.c([_.sg("#input"),_.w("design:type",Object)],NK.prototype,"input",void 0);_.c([_.sg("#icon-button"),_.w("design:type",HTMLElement)],NK.prototype,"iconButton",void 0);
_.c([_.f(),_.w("design:type",String),_.w("design:paramtypes",[])],NK.prototype,"searchIcon",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],NK.prototype,"onDataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],NK);
var ym1=_.I5()(NK,"ytd-expandable-tab-renderer",function(){if(HA9===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);HA9=v}v=HA9;return v},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var AJi;var kn=function(){var v=_.P.apply(this,arguments)||this;v.avatarSize=80;v.ariaLabel=_.sz("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return v};
_.V(kn,_.P);kn.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
kn.prototype.computeHref=function(v){var e;return((e=_.L(v,_.wb))==null?0:e.url)?this.componentBehavior.computeHref_(v):null};
kn.prototype.onTap=function(){var v,e;(v=this.data)==null||!v.editAvatarServiceEndpoint||((e=_.L(this.data.editAvatarServiceEndpoint,_.wb))==null?0:e.url)||_.dk().resolve(_.EI).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.c([_.M(_.MS),_.w("design:type",Object)],kn.prototype,"ironButtonState",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],kn.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kn.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],kn.prototype,"avatarSize",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],kn.prototype,"ariaLabel",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],kn);
_.A(kn,"ytd-channel-avatar-editor",function(){if(AJi!==void 0)return AJi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return AJi=v},{mode:1});var ZAt=_.l(function(v){var e=v.data;var d=v.noPadding;var E=v.enableBanner;var T=v.cinematicContainerTopbarOffset;var S=v.allowCinematicContainerOverflow;var O=v.displayAsSidebar;v=v.className;_.o_(function(){e().tagManagerId&&(_.tb(e().tagManagerId,_.Bb("GL")),jh_(e().tagManagerId))},"vUc8md");
var b=_.Kv(rm_,function(){return e().pageHeaderEntityKey});
return _.m("yt-page-header-renderer",{class:_.qe("pageHeaderRendererHost",v)},_.m(_.kz,{data:function(){var Y;return((Y=b())==null?0:Y.header)?b().header:(O==null?0:O())&&e().sidebarContent?e().sidebarContent:e().content}},{pageHeaderViewModel:function(Y){return _.m(_.P86,{data:Y.data,
noPadding:d,enableBanner:E,cinematicContainerTopbarOffset:T,allowCinematicContainerOverflow:S,displayAsSidebar:function(){return(O==null?void 0:O())&&e().enableSidebarView}})}}))},"jk");
ZAt.idomCompat=!0;_.aZ(ZAt,"yt-page-header-renderer",{props:{data:_.U1,noPadding:_.U1,enableBanner:_.U1,cinematicContainerTopbarOffset:_.U1,allowCinematicContainerOverflow:_.U1,displayAsSidebar:_.U1,className:_.U1}});_.aZ(_.AH,"yt-image-banner-view-model",{props:{data:_.U1,isPositionRelative:_.U1}});_.aZ(_.DlA,"yt-tab-group-shape",{props:{shape:_.U1}});var LW=function(){var v=_.P.apply(this,arguments)||this;v.expandableCustomTabRenderable=function(e){return qO1(e,function(){return void v.onSearchNavigate()})};
v.isRichGrid=!1;v.isConstrainedList=!1;v.richGridMiniMode=!1;v.richGridStyle="RICH_GRID_STYLE_UNKNOWN";v.isRichGridShorts=!1;v.responsiveSizing="COMPACT";v.disableGridStateAware=!1;v.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return v};
_.V(LW,_.P);_.W=LW.prototype;_.W.computeHeaderDisabled=function(v,e){return e||!v||this.tabsHidden};
_.W.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.W.computeIsRichGridShorts=function(v){return v==="RICH_GRID_STYLE_SHORTS_GRID"||v==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.W.computeImageBannerViewModel=function(){var v,e;return _.L((e=_.L((v=this.data)==null?void 0:v.content,_.Qc2))==null?void 0:e.banner,_.lhn)};
_.W.computeHasCinematicContainer=function(){var v,e;return!((e=_.L((v=this.data)==null?void 0:v.content,_.Qc2))==null||!e.background)};
_.W.handleHeaderResize=function(){var v=_.IB(this.hostElement).querySelector("#header");v&&_.Iq(v,"iron-resize")};
_.W.handleInsertTabCommand=function(v){var e=_.L(v,lNS);e&&(e.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(d){return d.tabRenderer&&d.tabRenderer.tabIdentifier===e.tabIdentifier})||this.splice("tabs",e.tabIndex||-1,0,e.tab))};
_.W.handleRefreshChannelTabAction=function(v){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===v&&_.Iq(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.W.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.qr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.W.observerRichGridSlimItemsPerRow=function(){_.qr(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.W.updateCssVars=function(){this.richGridItemsPerRow&&_.qr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Wi("rich_grid_max_item_width",500))+16)-16+"px"})};
_.W.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.qr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.W.onDataChanged=function(){this.handleHeaderResize()};
_.W.onWindowResize=function(){this.handleHeaderResize()};
_.W.onFocusedChanged=function(v){(v=_.ew(v))&&v.is==="tp-yt-paper-tab"&&v.hasRipple()&&(v.getRipple().holdDown=!v.pointerDown&&v.focused)};
_.W.updateSelectedFromBinding=function(v){this.ytdTabbedHeaderBehavior.selected=v.detail.value};
_.W.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.vP.Object.defineProperties(LW.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Kli(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.imageBannerViewModel)==null?void 0:v.style)==="IMAGE_BANNER_STYLE_INSET"}}});
LW.prototype.onDataChanged=LW.prototype.onDataChanged;LW.prototype.updateCssVarsForResponsiveGrid=LW.prototype.updateCssVarsForResponsiveGrid;LW.prototype.updateCssVars=LW.prototype.updateCssVars;LW.prototype.observerRichGridSlimItemsPerRow=LW.prototype.observerRichGridSlimItemsPerRow;LW.prototype.observerRichGridItemsPerRow=LW.prototype.observerRichGridItemsPerRow;_.c([_.M(_.ck),_.w("design:type",Object)],LW.prototype,"ytdGridStateAwareBehavior",void 0);
_.c([_.M(Hhi),_.w("design:type",Object)],LW.prototype,"ytdTabbedHeaderBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],LW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],LW.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],LW.prototype,"ytdReduxBehavior",void 0);_.c([_.sg("#tabs"),_.w("design:type",Object)],LW.prototype,"tabsElement",void 0);_.c([_.f(),_.w("design:type",Array)],LW.prototype,"tabs",void 0);_.c([_.f(),_.w("design:type",Object)],LW.prototype,"expandableCustomTabRenderable",void 0);_.c([_.t("tabs.*"),_.w("design:type",Object),_.w("design:paramtypes",[])],LW.prototype,"tabGroupShape",null);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],LW.prototype,"isRichGrid",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],LW.prototype,"isConstrainedList",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Object)],LW.prototype,"richGridMiniMode",void 0);_.c([_.f({selector:function(v){return v.ui.richGridStyle}}),
_.w("design:type",Object)],LW.prototype,"richGridStyle",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.w("design:type",Object)],LW.prototype,"isRichGridShorts",void 0);_.c([_.f({selector:_.X1}),_.w("design:type",Number)],LW.prototype,"richGridItemsPerRow",void 0);_.c([_.f({selector:function(v){return v.ui.richGridContainerWidth}}),
_.w("design:type",Number)],LW.prototype,"richGridContainerWidth",void 0);_.c([_.f({selector:_.Qg7}),_.w("design:type",Number)],LW.prototype,"richGridSlimItemsPerRow",void 0);_.c([_.f(),_.w("design:type",Object)],LW.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],LW.prototype,"responsiveSizing",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],LW.prototype,"disableGridStateAware",void 0);
_.c([_.f({computed:"computeImageBannerViewModel(data)"}),_.w("design:type",Object)],LW.prototype,"imageBannerViewModel",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.w("design:type",Boolean)],LW.prototype,"hasCinematicContainer",void 0);_.c([_.f({selector:_.Lst,reflectToAttribute:!0}),_.w("design:type",Boolean)],LW.prototype,"guideIsVisibleButNotPersistent",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("imageBannerViewModel"),_.w("design:type",Object),_.w("design:paramtypes",[])],LW.prototype,"hasBanner",null);_.c([_.f({reflectToAttribute:!0}),_.t("imageBannerViewModel"),_.w("design:type",Object),_.w("design:paramtypes",[])],LW.prototype,"hasInsetBanner",null);_.c([_.f({computed:"computeTabsHidden(tabs)",value:!0}),_.w("design:type",Boolean)],LW.prototype,"tabsHidden",void 0);
_.c([_.$v("richGridItemsPerRow","isRichGrid"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LW.prototype,"observerRichGridItemsPerRow",null);_.c([_.$v("richGridSlimItemsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LW.prototype,"observerRichGridSlimItemsPerRow",null);
_.c([_.$v("richGridItemsPerRow","richGridMiniMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LW.prototype,"updateCssVars",null);_.c([_.$v("richGridContainerWidth"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LW.prototype,"updateCssVarsForResponsiveGrid",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LW.prototype,"onDataChanged",null);
_.c([_.z({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],LW);
_.A(LW,"ytd-tabbed-page-header",function(){if(x2i!==void 0)return x2i;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return x2i=v},{mode:1});var cJO;var Vb=function(){return _.P.apply(this,arguments)||this};
_.V(Vb,_.P);Vb.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.qr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.vP.Object.defineProperties(Vb.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var v,e;return this.componentBehavior.computeIcon_(((e=_.L((v=this.data)==null?void 0:v.badge,_.oTB))==null?void 0:e.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=_.L((v=this.data)==null?void 0:v.badge,_.oTB))==null?void 0:e.label}}});
Vb.prototype.observerRichGridItemsPerRow=Vb.prototype.observerRichGridItemsPerRow;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Vb.prototype,"componentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Vb.prototype,"ytdReduxBehavior",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.CQ}),_.w("design:type",Boolean)],Vb.prototype,"richGridMiniMode",void 0);
_.c([_.f({selector:_.X1}),_.w("design:type",Number)],Vb.prototype,"richGridItemsPerRow",void 0);_.c([_.f(),_.w("design:type",Object)],Vb.prototype,"data",void 0);_.c([_.$v("richGridItemsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Vb.prototype,"observerRichGridItemsPerRow",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Vb.prototype,"badgeIconName",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Vb.prototype,"badgeLabel",null);_.c([_.z({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Vb);
_.A(Vb,"ytd-member-hub-profile-renderer",function(){if(cJO!==void 0)return cJO;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return cJO=v},{mode:1});var wU_;var ok=function(){return _.P.apply(this,arguments)||this};
_.V(ok,_.P);ok.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ok.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ok.prototype,"data",void 0);_.c([_.z({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],ok);
_.A(ok,"ytd-settings-sidebar-renderer",function(){if(wU_!==void 0)return wU_;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return wU_=v},{mode:1});var FKC;var Jv=function(){var v=_.P.apply(this,arguments)||this;v.expandableCustomTabRenderable=function(e){return qO1(e,function(){return void v.onSearchNavigate()})};
return v};
_.V(Jv,_.P);Jv.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Jv.prototype.onSearchNavigate=function(){this.selected=void 0};
Jv.prototype.onTabsChange=function(){var v,e=(v=this.tabs)==null?void 0:v.findIndex(function(d){var E;return d==null?void 0:(E=d.tabRenderer)==null?void 0:E.selected});
e!==void 0&&(this.selected=e)};
Jv.prototype.onTabsActive=function(v){if(this.tabs!==void 0){var e,d;(v=(e=this.tabs[v.detail.selected])==null?void 0:(d=e.tabRenderer)==null?void 0:d.endpoint)&&_.Iq(this.hostElement,"yt-navigate",{endpoint:v})}};
_.vP.Object.defineProperties(Jv.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Kli(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
Jv.prototype.onTabsChange=Jv.prototype.onTabsChange;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Jv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.ck),_.w("design:type",Object)],Jv.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],Jv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Jv.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Array)],Jv.prototype,"tabs",void 0);_.c([_.f(),_.w("design:type",Number)],Jv.prototype,"selected",void 0);_.c([_.t("tabs.*"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jv.prototype,"tabGroupShape",null);_.c([_.f(),_.w("design:type",Object)],Jv.prototype,"expandableCustomTabRenderable",void 0);
_.c([_.t("tabs"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Jv.prototype,"tabsEnabled",null);_.c([_.V1("tabs"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jv.prototype,"onTabsChange",null);_.c([_.z({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Jv);
_.A(Jv,"ytd-topic-channel-details-renderer",function(){if(FKC!==void 0)return FKC;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return FKC=v},{mode:1});var Qys;var GY=function(){var v=_.P.apply(this,arguments)||this;v.disableGridStateAware=!1;return v};
_.V(GY,_.P);GY.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]]"}}}}}};
GY.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
GY.prototype.updateCssVars=function(){_.qr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Wi("rich_grid_max_item_width",500))+16)-16+"px"})};
GY.prototype.updateCssVars=GY.prototype.updateCssVars;GY.prototype.activeChanged=GY.prototype.activeChanged;_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],GY.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],GY.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],GY.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Array)],GY.prototype,"tabs",void 0);_.c([_.f(),_.w("design:type",Boolean)],GY.prototype,"active",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],GY.prototype,"disableGridStateAware",void 0);
_.c([_.f({selector:_.X1}),_.w("design:type",Number)],GY.prototype,"richGridItemsPerRow",void 0);_.c([_.f({selector:_.CQ}),_.w("design:type",Boolean)],GY.prototype,"richGridMiniMode",void 0);_.c([_.sg("ytd-carousel-item-renderer"),_.w("design:type",Object)],GY.prototype,"carousel",void 0);_.c([_.$v("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GY.prototype,"activeChanged",null);
_.c([_.$v("richGridItemsPerRow","richGridMiniMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GY.prototype,"updateCssVars",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],GY);
_.A(GY,"ytd-carousel-header-renderer",function(){if(Qys!==void 0)return Qys;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Qys=v},{mode:1});var grC;var uS9=_.Z9(["https://www.google-analytics.com/analytics.js"]),MK=function(){var v=_.P.apply(this,arguments)||this;v.scriptAnalyticsAdded=!1;return v};
_.V(MK,_.P);MK.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var v,e=(v=this.data)==null?void 0:v.tagManagerId;e&&(_.tb(e,_.Bb("GL")),jh_(e))};
MK.prototype.sendGoogleAnalyticsPageview=function(v){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var d=_.Xa.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(d)};
var e=window.ga;e("set","page",window.location.pathname);e.l=+new Date;e("set","forceSSL",!0);e("create",v,"'auto'");e("send","pageview")};
MK.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var v=_.hz("SCRIPT");v.name="ga-analytics";var e=_.ie(uS9);_.DB(v,e);v.async=!0;_.IB(this.hostElement).appendChild(v)};
MK.prototype.dataChanged=MK.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],MK.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MK.prototype,"dataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],MK);
_.A(MK,"ytd-channel-metadata-renderer",function(){if(grC!==void 0)return grC;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return grC=v},{mode:1});var nrC;var D2O;var tv=function(){var v=_.P.apply(this,arguments)||this;v.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"]);v.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"]);v.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return v};
_.V(tv,_.P);_.W=tv.prototype;_.W.attached=function(){this.requestElementsPerRow()};
_.W.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_]]"}}}}}};
_.W.onUpdateElementsPerRowAction=function(v){v&&this.elementsPerRow!==v&&(this.elementsPerRow=v)};
_.W.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.W.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.W.computeAlertStyle_=function(v){return v};
_.W.observerElementsPerRow=function(){this.elementsPerRow&&_.qr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.W.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.W.requestElementsPerRow=function(){_.Iq(this.hostElement,"yt-request-elements-per-row")};
tv.prototype.onIsVisibleChanged_=tv.prototype.onIsVisibleChanged_;tv.prototype.observerElementsPerRow=tv.prototype.observerElementsPerRow;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],tv.prototype,"actionHandlerBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],tv.prototype,"data",void 0);_.c([_.f({value:6,reflectToAttribute:!0}),_.w("design:type",Number)],tv.prototype,"elementsPerRow",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],tv.prototype,"wrapButtons",void 0);_.c([_.f({value:_.Bb("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.w("design:type",Boolean)],tv.prototype,"isMusic",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.w("design:type",String)],tv.prototype,"alertStyle",void 0);_.c([_.f({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.w("design:type",Function)],tv.prototype,"dismissBoundButtonTap_",void 0);_.c([_.f({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.w("design:type",Function)],tv.prototype,"acceptBoundButtonTap_",void 0);_.c([_.$v("elementsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tv.prototype,"observerElementsPerRow",null);_.c([_.$v("data.isVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tv.prototype,"onIsVisibleChanged_",null);_.c([_.lh({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],tv);
_.A(tv,"yt-alert-with-actions-renderer",function(){if(D2O===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;nrC===void 0&&(nrC=document.createElement("template"));var E=nrC;d.call(e,E.content.cloneNode(!0),v.content.firstChild);D2O=v}v=D2O;return v},{mode:2});_.aZ(_.l(function(v){function e(K){var k={};return _.m(_.Dh,{text:K,className:_.qe("ytPersonalGreetingViewModelHeadline",(k.ytPersonalGreetingViewModelHeadlineSmall=function(){return b()===48},k))})}
function d(K,k){return _.m("span",{el:K,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},e(k))}
var E=_.dq(_.B5(function(){var K;return(K=v.data())==null?void 0:K.rendererContext},void 0,void 0,void 0,!0)),T=_.nI("span"),S=_.nI("span"),O=function(){return v.data().canvasPromoData},b=function(){var K;
return(K=v.data().bannerHeight)!=null?K:56},Y=_.QX0(E,{throttleMs:100}),q=_.QX0(T,{throttleMs:100}),r=_.QX0(S,{throttleMs:100}),h=function(){return q.width()-Y.width()>1};
return _.m("yt-personal-greeting-view-model",{el:E,"aria-hidden":h,class:_.qe(v.className,"ytPersonalGreetingViewModelHost"),style:_.jM({height:(0,_.Pe)(function(){return h()?0:b()})})},_.m(_.y,{cond:function(){return v.data().avatar&&!(r.width()+(v.data().avatar?48:0)-Y.width()>1)},
then:function(){return _.m(_.kz,{data:function(){return v.data().avatar}},{decoratedAvatarViewModel:function(K){return _.m(_.By,{data:K.data,
className:_.qe("ytPersonalGreetingViewModelAvatar")})}})}}),_.m("h1",null,e(function(){var K;
return(O==null?void 0:(K=O())==null?void 0:K.headline)||(r.width()+(v.data().avatar?48:0)-Y.width()>1?v.data().shorterGreeting:v.data().greeting)})),d(S,function(){return v.data().greeting}),d(T,function(){return v.data().shorterGreeting}))},"kk"),"yt-personal-greeting-view-model",{props:{data:_.U1,
className:_.U1}});var fW=function(){var v=_.P.apply(this,arguments)||this;v.hidden=!1;v.isConstrainedList=!1;v.darkerDarkTheme=_.N("web_darker_dark_theme");v.responsiveSizing="COMPACT";v.attachedPlayers=_.N("kevlar_channel_trailer_multi_attach")?[]:void 0;v.player=null;v.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return v};
_.V(fW,_.P);_.W=fW.prototype;
_.W.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}}}}};
_.W.created=function(){var v=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){v.disposeMastheadAd()}]};
_.W.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new cmQ(this.refresh,this.contents))};
_.W.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.W.activeChanged=function(){var v=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=v)};
_.W.tabsChanged=function(){var v=this,e,d;if(this.pageSubtype==="channels"||_.N("kevlar_tab_gestures_for_tabbed_header_data")&&((e=this.data)==null?0:(d=e.header)==null?0:d.carouselHeaderRenderer))this.tabGestures=new Ci(this.contents,this.contents,this.hostElement,this.header,function(O){v.ytdReduxBehavior.dispatch(O)});
var E,T,S;e=(E=this.data)==null?void 0:(T=E.contents)==null?void 0:(S=T.twoColumnBrowseResultsRenderer)==null?void 0:S.tabs;this.tabGestures&&this.tabGestures.tabsChanged(e)};
_.W.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.W.engagementPanelsChanged=function(){var v=_.dk().resolve(_.tx);if(v){if(this.engagementPanels)for(var e=_.a(this.engagementPanels),d=e.next();!d.done;d=e.next()){var E=void 0;(d=(E=d.value.identifier)==null?void 0:E.tag)&&v.panelMap.delete(d)}this.engagementPanels=[];var T;e=_.a(((T=this.data)==null?void 0:T.panels)||[]);for(T=e.next();!T.done;T=e.next()){T=_.L(T.value,_.yvf);var S=d=void 0,O=void 0,b=void 0;if(E=((d=T)==null?void 0:d.targetId)||((S=T)==null?void 0:S.panelIdentifier)||((O=T)==
null?void 0:(b=O.identifier)==null?void 0:b.tag))S=d=void 0,(S=(d=v).registerPanelContent)==null||S.call(d,E,{engagementPanelSectionListRenderer:T}),this.engagementPanels.push(T)}}};
_.W.onStampFinished=function(){var v=this;_.Uh(this,function(){if(v.tabGestures){var e=v.tabGestures;if(e.scrollPositionNeedsUpdate){var d=_.dk().resolve(_.eG(_.v5)),E;if((E=e.selectedTab)!=null&&E.title&&d&&(E=d.getCurrentPage())){if(e.scrollPositionForTabs.has(e.selectedTab.title)){var T,S;d=(S=(T=d.getCurrentPage())==null?void 0:T.clientHeight)!=null?S:0;T=e.scrollPositionForTabs.get(e.selectedTab.title);E.setScrollTop(T);d>T+100&&(e.scrollPositionNeedsUpdate=!1)}else E.setScrollTop(Math.min(e.lastVisitedTabScrollPosition!==
void 0?e.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,e.tabsStartAtInPx)),e.scrollPositionNeedsUpdate=!1;e.ytdReduxDispatch($8S(!1))}}}})};
_.W.loadPage_=function(v){this.initCsi();v&&(this.data=v);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.W.getTitle=function(v){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",v))return this.get("microformat.microformatDataRenderer.title",v);if(this.get("header.feedTabbedHeaderRenderer.title",v))return _.vv(this.get("header.feedTabbedHeaderRenderer.title",v));if(this.get("header.interactiveTabbedHeaderRenderer.title",v))return this.get("header.interactiveTabbedHeaderRenderer.title",v);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
v))return _.vv(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",v));var e,d;return(v==null?0:(e=v.header)==null?0:(d=e.pageHeaderRenderer)==null?0:d.pageTitle)?v.header.pageHeaderRenderer.pageTitle:""};
_.W.updateTitle=function(v){_.Iq(this.hostElement,"yt-update-title",this.getTitle(v))};
_.W.initCsi=function(){_.fi(this.pageSubtype||"browse",["ol","cpt"])};
_.W.getPlayer=function(){if(_.N("kevlar_channel_trailer_multi_attach")){for(var v=_.a(this.attachedPlayers),e=v.next();!e.done;e=v.next())if(e=e.value,e.isConnected||_.zZ(this.hostElement,e))return e;return null}return this.player};
_.W.getPlayerContainer=function(){return null};
_.W.onPlayerAttached=function(v,e){_.N("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(e):this.player=e};
_.W.onPlayerDetached=function(v,e){_.N("kevlar_channel_trailer_multi_attach")?(v=this.attachedPlayers.indexOf(e),v<0||this.attachedPlayers.splice(v,1)):this.player=null};
_.W.getServiceTrackingParams=function(){var v,e;return((v=this.data)==null?void 0:(e=v.responseContext)==null?void 0:e.serviceTrackingParams)||[]};
_.W.setMastheadAd=function(v){v&&v.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=v&&v.mastheadAd};
_.W.dataChanged=function(){var v=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.EVQ();_.Uh(this,function(){_.YB(v.hostElement,"ytd-update-grid-state-action")})};
_.W.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.W.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var v=this.data.alerts;return v&&v.find(function(e){return!!e.alertWithActionsRenderer})}};
_.W.computeGreetingData=function(){if(this.data&&this.data.alerts){var v=this.data.alerts;return v&&v.find(function(e){return!!e.personalGreetingViewModel})}};
_.W.computeHasMemberHubProfileRenderer=function(v){var e;return!!(v==null?0:(e=v.header)==null?0:e.memberHubProfileRenderer)};
_.W.handleAlertCommand=function(v){this.get("alertCommand.alert.alertWithActionsRenderer",v)&&(v=_.L(v,McC),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",v.alert))};
_.W.handleYtPlaylistDeletionRedirect=function(v){v=this.get("playlistDeletionRedirectCommand.redirectEndpoint",v);_.Iq(this.hostElement,"yt-navigate",{endpoint:v})};
_.W.computeFluidWidth=function(v,e,d){if(e==="mini_app"||d)return!0;var E,T,S;v=v==null?void 0:(E=v.contents)==null?void 0:(T=E.twoColumnBrowseResultsRenderer)==null?void 0:(S=T.tabs)==null?void 0:S.find(function(Y){var q;return Y==null?void 0:(q=Y.tabRenderer)==null?void 0:q.selected});
if(!v)return!1;var O,b;return!!((O=v.tabRenderer)==null?0:(b=O.content)==null?0:b.richGridRenderer)&&!["channel","channels","playables"].includes(e)};
_.W.computeHeaderFluidWidth=function(v){return v==="hashtag-landing-page"};
_.W.computeHasSidebar=function(v){var e;return!!(v.sidebar||((e=v.header)==null?0:e.playlistHeaderRenderer))};
_.W.computeHasPageHeaderSidebar=function(v){var e,d;return!!((e=v.header)==null?0:(d=e.pageHeaderRenderer)==null?0:d.enableSidebarView)};
_.W.computeUseUnifiedShowPageLayout=function(v){if(!v||this.pageSubtype!=="show"||!v.sidebar||!v.sidebar.playlistSidebarRenderer)return!1;v=v.sidebar.playlistSidebarRenderer;if(!v.items)return!1;for(var e=0;e<v.items.length;e++)if(_.L(v.items[e],xC)){var d=void 0;return((d=_.L(v.items[e],xC))==null?void 0:d.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.W.computeIsConstrainedList=function(v){return _.N("web_enable_constrained_list_subscriptions_channels")&&v==="subscriptions-channels"};
_.W.computeResponsiveSizing=function(v){return v==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.vP.Object.defineProperties(fW.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var v,e;return((v=this.data)==null?0:(e=v.header)==null?0:e.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var v,e;if(!((v=this.data)==null?0:(e=v.sidebar)==null?0:e.playlistSidebarRenderer))return!1;var d;return(d=this.data)!=null&&d.header?!1:!0}}});
_.vP.Object.defineProperties(fW,{template:{configurable:!0,enumerable:!0,get:function(){if(Qhi===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);Qhi=v}v=Qhi;return v}}});
fW.prototype.dataChanged=fW.prototype.dataChanged;fW.prototype.onPlayerDetached=fW.prototype.onPlayerDetached;fW.prototype.onPlayerAttached=fW.prototype.onPlayerAttached;fW.prototype.onStampFinished=fW.prototype.onStampFinished;fW.prototype.engagementPanelsChanged=fW.prototype.engagementPanelsChanged;fW.prototype.scrollAtTopChanged=fW.prototype.scrollAtTopChanged;fW.prototype.tabsChanged=fW.prototype.tabsChanged;fW.prototype.activeChanged=fW.prototype.activeChanged;
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],fW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],fW.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],fW.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.Rp.YtPageBehavior),_.w("design:type",Object)],fW.prototype,"ytPageBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],fW.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],fW.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fW.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fW.prototype,"hidden",void 0);
_.c([_.f(),_.w("design:type",Object)],fW.prototype,"mastheadAdData",void 0);_.c([_.f({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.w("design:type",Object)],fW.prototype,"alertBannerData",void 0);_.c([_.f({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.w("design:type",Object)],fW.prototype,"greetingData",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],fW.prototype,"pageSubtype",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.w("design:type",Boolean)],fW.prototype,"hasMemberHubProfileRenderer",void 0);_.c([_.f({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],fW.prototype,"hasSidebar",void 0);_.c([_.f({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],fW.prototype,"hasPageHeaderSidebar",void 0);
_.c([_.f({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],fW.prototype,"roundedContainer",void 0);_.c([_.f({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],fW.prototype,"useUnifiedShowPageLayout",void 0);_.c([_.f({computed:"computeIsConstrainedList(pageSubtype)"}),_.w("design:type",Object)],fW.prototype,"isConstrainedList",void 0);
_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fW.prototype,"usePlaylistHeaderRenderer",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fW.prototype,"useOldPlaylistSidebarRenderer",null);_.c([_.f({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.w("design:type",Boolean)],fW.prototype,"fluidWidth",void 0);_.c([_.f({selector:function(v){return v.ui.scrollAtTop}}),
_.w("design:type",Boolean)],fW.prototype,"scrollAtTop",void 0);_.c([_.f({selector:_.VxQ}),_.w("design:type",Boolean)],fW.prototype,"tabGesturesIsActive",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fW.prototype,"darkerDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.w("design:type",Boolean)],fW.prototype,"disableHeaderFluidWidth",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.w("design:type",String)],fW.prototype,"responsiveSizing",void 0);_.c([_.sg("ytd-two-column-browse-results-renderer"),_.w("design:type",HTMLElement)],fW.prototype,"contents",void 0);_.c([_.sg("#header"),_.w("design:type",HTMLElement)],fW.prototype,"header",void 0);_.c([_.sg("ytd-refresh"),_.w("design:type",Object)],fW.prototype,"refresh",void 0);
_.c([_.$v("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fW.prototype,"activeChanged",null);_.c([_.$v("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fW.prototype,"tabsChanged",null);_.c([_.$v("scrollAtTop"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fW.prototype,"scrollAtTopChanged",null);
_.c([_.f(),_.w("design:type",Object)],fW.prototype,"engagementPanels",void 0);_.c([_.$v("data.panels"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fW.prototype,"engagementPanelsChanged",null);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fW.prototype,"onStampFinished",null);
_.c([_.Kq("yt-player-attached"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Element]),_.w("design:returntype")],fW.prototype,"onPlayerAttached",null);_.c([_.Kq("yt-player-detached"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Element]),_.w("design:returntype")],fW.prototype,"onPlayerDetached",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fW.prototype,"dataChanged",null);
_.c([_.z({is:"ytd-browse"})],fW);_.O1.registerService(_.FTt,fW);
_.fX();
}catch(e){_._DumpException(e)}
try{
_.tz("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 sH,i2t,O29,I_i,b2i,Yw1,mnt,yW_,qw9,rWf,hbv,K$v,jmt,smS,kzi,L$s,Vof,JW1,Gzt,Mo_,toO,NW,RbS,kA,Pnw,xnv,B3S,Cn1,XPi,l_O,AWt,zb9,$nQ,Z2i,cWv,wPw,F$S,Qm_,gqO,Dn_,Unt,pPv,vBs,dgi,EBC,Sz_,am9,iBf,OB_,bBS,mgt,yUQ,qzt,rUS,hai,KN9,$gC,jqO,sqs,NVw,kEi,LNC,VXs,oB9,JU_,GEs,MXf,tXs,fmS,P4_,xgO,BVs,C4i,XF9,zai,lms,HBi,AUs,ZBv,cUQ,wFO,FNS,Qq_,gB9,uq9,nBC,DgC,Ugs,pFi,vHQ,elv,dEs,EHt,Tgi,Rw,Sof,WUO,aYS,OQC,IYi,bQ1,YoC,mEi,y_9,qos,KUC,J_s,fYt,Rli,XKs,zl9,Cqt,xEi,ZQ9,FUv,UEi,Pqt,gH9,c_O,zW,vEt,EEO,Wxt,T1O,Sjs,apS,
bot,OoC,YjO,mdi,IpC,io_,yk9,Z5,cR,jbs,sb9,wE,N1Q,ko9,Lx1,tUt,fpi,F_,Q7,PXi,RX9,xdt,B1s,CXt,gE,uC,nx,wvt,Fxw,Qbi,UH,UdC,gEi,Ddf,pv1,uDS,ei9,nEi,Tis,dr_,EvC,px,WI_,Sgs,IoQ,yGC,E7,TF,Ygv,rGs,mrv,qgi,Wp,iK,O7,IN,Xgt,JGS,Hqt,AGt,Zqf,cG_,FIw,Nif,kVt,mc,Vw_,bK,YF,ov9,wg_,ziC,LIC,qX,gvi,ueC,nvs,Uri,vJC,e4i,dCC,EJ_,S_O,TC9,aIO,i1i,IIQ,b1Q,mC1,ygi,q_s,rgs,h4v,K5s,$Ci,s5s,j51,NC9,kj_,r0,L5f,V2S,hS,oJs,Jgi,Gjw,M2f,t2t,fI9,R41,PkC,BCw,KN,CkS,Xzt,H1C,Z1v,cgt,F5i,wz9,Q59,gJw,u2O,DCt,UC9,pzt,vji,egw,deS,EjO,TqO,
SGw,W89,ayO,iMS,YGs,mes,Iyi,bM9,OMv,y8i,hgf,qGs,r89,jZv,K8i,$es,sZS,NqC,kI9,L8s,oji,J8v,GIC,tMt,fys,P29,Bq9,Xaf,lys,A8s,c8f,F8s,gjw,DeQ,Uev,pa_,e0C,vzS,Ezi,TBS,SKC,WSC,jb,axv,ivw,Ovv,$P9,s79,NBt,oz_,JXf,Gni,MKv,fxt,tK_,R01,PHv,xPs,BB9,CHt,PR,X5t,Vq,zgs,z01,lxv;
sH=function(v){if(!v)return"browse";var e=v.page,d=v.url,E,T,S,O=(E=v.response)==null?void 0:(T=E.responseContext)==null?void 0:(S=T.webResponseContextExtensionData)==null?void 0:S.pageTheme;if(O)e=O.toLowerCase().replace(/_/g,"-");else if(e!=="watch"&&e!=="learning_journey_watch"){var b,Y;if((e==="browse"||e==="settings")&&((b=v.response)==null?0:(Y=b.sidebar)==null?0:Y.settingsSidebarRenderer))e="WEB_PAGE_TYPE_SETTINGS";else{var q,r;e==="browse"&&((q=v.response)==null?0:(r=q.metadata)==null?0:r.channelMetadataRenderer)?
e="channel":d&&(e=_.Nd(d)||e)}}return e};
i2t=function(){var v=_.AE("yt.aba.att");return v?v:_.bo.instance!==void 0?_.bo.instance.vgc.bind(_.bo.instance):null};
O29=function(v,e){var d;return _.I(function(E){return(d=i2t())?E.return(d(v,e,6E4)):E.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
I_i=function(v,e,d,E,T){e=e===void 0?[]:e;T=T?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:T}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.WK(v),dialogMessages:e.map(function(S){return _.WK(S)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.WK(d),serviceEndpoint:T}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.WK(E)}}}}}};
b2i=function(v){var e=!!_.cH().queueProxy;var d,E,T;v=v==null?void 0:(d=v.response)==null?void 0:(E=d.currentVideoEndpoint)==null?void 0:(T=E.watchEndpoint)==null?void 0:T.playlistId;return!(!e&&!v)};
Yw1=function(v,e){var d=_.Ke();if(b2i(v))return d.playlistWatchPageActivation=!0;switch(sH(e)){case "yts-products":return d.productDetailsPageActivation=!0;case "mini_app":return d.miniAppPageActivation=!0;case "playables":return d.playablesDestPageActivation=!0;default:return!1}};
mnt=function(v,e,d){for(var E=typeof v==="string"?v.split(""):v,T=v.length-1;T>=0;--T)T in E&&e.call(d,E[T],T,v)};
yW_=function(v,e){e=_.jUW(v,e);e>=0&&_.kO7(v,e)};
qw9=function(v){return Array.prototype.concat.apply([],arguments)};
rWf=function(v){var e=0;e=e===void 0?0:e;if(!_.QB(v))throw _.eA("uint64");var d=typeof v;switch(e){case 512:switch(d){case "string":return _.oIL(v);case "bigint":return String((0,_.IC)(64,v));default:return _.Lg0(v)}case 1024:switch(d){case "string":return _.Jet(v);case "bigint":return _.Bc((0,_.IC)(64,v));default:return _.VA0(v)}case 0:switch(d){case "string":return _.oIL(v);case "bigint":return _.Bc((0,_.IC)(64,v));default:return _.k20(v)}default:return _.Z0(e,"Unknown format requested type for int64")}};
hbv=function(v){v!=null&&(v=v.JSC$8810_value_||"",v=typeof v==="string"?v:new Uint8Array(v));return v};
K$v=function(v,e){if(/-[a-z]/.test(e))return null;if(_.lwc&&v.dataset){if(_.bt0()&&!(e in v.dataset))return null;v=v.dataset[e];return v===void 0?null:v}return v.getAttribute("data-"+_.Nn(e))};
jmt=function(){var v=$nQ;_.AE("yt.ads.biscotti.getId_")||_.pw("yt.ads.biscotti.getId_",v)};
smS=function(v){_.pw("yt.ads.biscotti.lastId_",v)};
kzi=function(){var v={};for(_.GR=new N3C(v.handleError===void 0?_.PV:v.handleError,v.logEvent===void 0?_.tI:v.logEvent);_.M_.length>0;)switch(v=_.M_.shift(),v.type){case "ERROR":_.GR.logError(v.payload);break;case "EVENT":_.GR.logEvent(v.eventType,v.payload)}};
L$s=function(v,e,d){return _.lYM(function(E){return d?E.userIdentifier!==void 0&&!v.includes(E.userIdentifier)&&d.includes(E.publicName):E.userIdentifier!==void 0&&!v.includes(E.userIdentifier)},e)};
Vof=function(v){var e,d;return _.I(function(E){if(E.nextAddress==1)return e=_.sI("YtIdbMeta hasAnyMeta other"),E.yield(_.lYM(function(T){return T.userIdentifier!==void 0&&T.userIdentifier!==e},v),2);
d=E.yieldResult;return E.return(d.length>0)})};
JW1=function(v,e){oqw||(oqw=_.RM.addLowPriorityJob(function(){var d,E,T,S,O;return _.I(function(b){switch(b.nextAddress){case 1:return b.yield(_.ea(),2);case 2:d=b.yieldResult;if(!d)return b.return();E=!0;_.qq(b,3);return b.yield(L$s(v,d,e),5);case 5:T=b.yieldResult;if(!T.length){E=!1;b.jumpTo(6);break}S=T[0];return b.yield(_.Fo(S.actualName),7);case 7:return b.yield(_.uY(S.actualName,d),6);case 6:_.wk(b,4);break;case 3:O=_.jl(b),_.ta(O),E=!1;case 4:_.RM.cancelJob(oqw),oqw=0,E&&JW1(v,e),_.s9(b)}})}))};
Gzt=function(){var v;return _.I(function(e){return e.nextAddress==1?e.yield(_.ea(),2):(v=e.yieldResult)?e.return(Vof(v)):e.return(!1)})};
Mo_=function(v){var e=100;e=e===void 0?500:e;var d,E,T,S,O,b;return _.I(function(Y){return Y.nextAddress==1?(d=_.Bb("INNERTUBE_CONTEXT_CLIENT_NAME",0),E=[d,(0,_.E$)()-2592E6],T=[d,(0,_.E$)()],S=IDBKeyRange.bound(E,T),Y.yield(_.Y_H(v),2)):Y.nextAddress!=3?(O=Y.yieldResult,b=[],Y.yield(_.gk(O,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(q){b.length=0;return _.Td(q.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:S,direction:"prev"},function(r){if(r.getValue()&&b.length<
e)return b.push(r.getValue()),r.delete().then(function(){return r.continue()})})}),3)):Y.return(b)})};
toO=function(){var v;return _.I(function(e){if(e.nextAddress==1)return e.yield(_.ea(),2);v=e.yieldResult;if(!v||!_.N_()&&!_.N("nwl_init_require_datasync_id_killswitch")||!_.fIt())return e.jumpTo(0);_.PkU=!0;_.R47.isNwlInitialized=_.PkU;return e.yield(_.a_B().awaitInitialization(),0)})};
NW=function(v,e){_.nJs[v]=!0;var d=_.Sh();d&&d.publish.apply(d,arguments);_.nJs[v]=!1};
RbS=function(){if(_.JGL()&&!f_S){var v=function(d){d=d.data;if(d.op==="serializedGelBatch"){var E=_.DeO.get(d.key);E&&(_.pa$(d.serializedBatch,E.client,E.resolve,E.networklessOptions,E.isIsolated,E.useVSSEndpoint,E.dangerousLogToVisitorSession,E.requestsOutstanding),_.DeO.delete(d.key))}},e=_.ovt();
e&&(e.addEventListener("message",v),e.onerror=function(){_.DeO.clear()});
f_S=!0}};
kA=function(){this.relativeTimeStart_=_.pO()};
Pnw=function(v,e){v!=null&&this.append.apply(this,arguments)};
xnv=function(){return _.cP("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
B3S=function(v,e,d){d=d===void 0?!1:d;var E,T,S,O,b;return _.I(function(Y){switch(Y.nextAddress){case 1:_.$L("SOCS",v,34128E3,"youtube.com",!0);if(_.i1)return T=fetch(e,{method:"POST",mode:_.n2(e),credentials:_.un(e),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),S=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.n2("/upgrade_visitor_cookie?eom=1"),credentials:_.un("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),Y.yield(Promise.all([T,S]).then(function(q){return q[1]}),5);
fetch(e,{method:"POST",mode:_.n2(e),credentials:_.un(e),cache:"no-store",headers:{"Content-Type":"text/plain"}});return Y.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.n2("/upgrade_visitor_cookie?eom=1"),credentials:_.un("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:E=Y.yieldResult;Y.jumpTo(3);break;case 5:E=O=Y.yieldResult;case 3:if(!E.ok)throw Error("of");return Y.yield(E.text(),7);case 7:b=Y.yieldResult,
!b.includes('"state_switch":true')&&!d||b.includes("skip_reload_for_test")||window.location.reload(),_.s9(Y)}})};
Cn1=function(v){return _.I(function(e){return e.nextAddress==1?e.yield(B3S(v.socsCookie,v.savePreferenceUrl,!0),2):e.return()})};
XPi=function(v){return _.I(function(e){return e.nextAddress==1?e.yield(B3S(v.socsCookie,v.savePreferenceUrl),2):e.return()})};
l_O=function(v){v=v.xhr.responseText;if(!_.aU(v,")]}'"))throw new Lx;v=JSON.parse(v.substr(4));if((v.type||1)>1)throw new Lx;v=v.id;smS(v);V7=_.QM(v);zb9(18E5,2);return v};
AWt=function(v,e){e=new H29(e);smS("");V7=_.EXJ(e);v>0&&zb9(12E4,v-1);throw e;};
zb9=function(v,e){_.IH(function(){_.RI_().then(l_O,function(d){return AWt(e,d)}).thenCatch(_.mv)},v)};
$nQ=function(){var v=_.Bmv();if(v!==void 0)return _.f1(v);V7||(V7=_.RI_().then(l_O).thenCatch(function(e){return AWt(2,e)}));
return V7};
Z2i=function(){var v=document;return _.xS(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){return"on"+e.toLowerCase()in v})};
cWv=function(v){v.addEventListener("click",function(e){var d=e.target;d&&d.getAttribute("href")&&(d=d.getAttribute("href"),_.Fa(window,d,"_blank"),e.preventDefault(),e.stopImmediatePropagation())})};
wPw=function(v){var e,d,E,T=(E=(d=((e=v.mainDownloadsListEntity)!=null?e:{})[_.zx0])==null?void 0:d.refresh)!=null?E:"",S;v=(S=v.refresh)==null?void 0:S[T];T=v!=null?v:{};return(T==null?0:T.refreshTime)?Number(T==null?void 0:T.refreshTime):0};
F$S=function(v,e){var d=_.fQ(v);return e.every(function(E){var T;E=E==null?void 0:(T=E.playbackDataEntity)==null?void 0:T.key;if(!E)return!1;T=_.rg(_.bq(E).entityId,"mainVideoEntity");return!!d[T]})};
Qm_=function(v){v=_.Ga(v.entities);return _.pDj(v).length};
gqO=function(v,e){if(e){var d;v=(d=_.h_(v.entities,"downloadQualityPickerEntity",e))!=null?d:void 0}else v=void 0;return v};
Dn_=function(){uf_||(_.Uo=_.Xl0,uf_=new nq_);return uf_};
Unt=function(v){var e=document.getElementsByTagName("ytd-enforcement-message-view-model");e.length===0||getComputedStyle(e[0]).display==="none"?v(0,"p.h_"):v(1,"p.h_")};
pPv=function(){ow=0;var v=[_.Jk(!0)];J6&&_.YB(J6,"yt-window-resized",v)};
vBs=function(){ow||(ow=_.RM.addLowPriorityJob(pPv,200))};
dgi=function(){GW=0;eas=_.H7B(document);var v=[eas];J6&&_.YB(J6,"yt-window-scrolled",v)};
EBC=function(){GW||(GW=_.RM.addLowPriorityJob(dgi,200))};
Sz_=function(v){v=v===void 0?null:v;TVt.push(_.eh(window,"resize",vBs));TVt.push(_.eh(window,"scroll",EBC));v&&(J6=v)};
am9=function(){var v={isWide:_.Kw.get("wide","0")==="1"},e=_.LB();if(e=e.getFlag(165)||e.getFlag(174))v.theme=_.Pv(!0);if(_.fdO()){var d=_.Rb()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";v.systemTheme=d}!e&&_.N("parent_tools_enable_app_settings")&&_.QU(window.location.href).theme!==void 0&&(v.theme=_.Pv());if((e=MW)?!_.f0.equals(e,v):v)e={currentValue:v},WNs&&(e.timeSinceLastSnapshotSecs=Math.round(((0,_.E$)()-WNs)/1E3)),MW&&(e.previousValue=MW),_.tI("appSettingsCaptured",e),MW=v,WNs=
(0,_.E$)()};
iBf=function(v){_.I(function(e){if(e.nextAddress==1)return e.yield(v.delete("yt-appshell-assets"),2);_.s9(e)})};
OB_=function(v){return _.Q8((0,_.Pdc)(),v)};
bBS=function(){var v;_.I(function(e){return e.nextAddress==1?e.yield(t6.getInstance(),2):(v=e.yieldResult)?e.yield(Im1(v),0):e.jumpTo(0)})};
mgt=function(){var v;_.I(function(e){return e.nextAddress==1?e.yield(fx.getInstance(),2):(v=e.yieldResult)?e.yield(Yz1(v),0):e.jumpTo(0)})};
yUQ=function(v){iBf(v);bBS();mgt()};
qzt=function(v){var e,d;return _.I(function(E){if(E.nextAddress==1)return E.yield(_.v7W(v),2);if(e=E.yieldResult){var T;a:{if(e.headers&&(T=e.headers.get("date"))&&(T=Date.parse(T),!isNaN(T))){T=Math.round((0,_.E$)()-T);break a}T=-1}d=T;if(d>-1)return E.return(d)}return E.return(-1)})};
rUS=function(){var v=_.TO.caches,e=_.zr("IS_SHELL_LOAD"),d,E;_.I(function(T){if(T.nextAddress==1)return d=-1,e?T.yield(qzt(v),3):(E=_.tU(),d=Math.round((0,_.E$)()-E),T.jumpTo(2));T.nextAddress!=2&&(d=T.yieldResult);d>=0&&d<2147483648&&_.BF({appInstallDataAgeMs:d});_.s9(T)})};
hai=function(v){var e=_.Az(_.TO.location.href),d={};"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(E){var T=e.JSC$10022_queryData_.getValues(E);if(T==null?0:T.length)d[E]=T});
return _.Oa(v,new Map(Object.entries(d)))};
KN9=function(v){v=v.match(/(.*)::.*::.*/);if(v!==null)return v[1]};
$gC=function(v){if(_.Kmt()){var e=Object.keys(window.localStorage);e=_.a(e);for(var d=e.next();!d.done;d=e.next()){d=d.value;var E=KN9(d);E===void 0||v.includes(E)||self.localStorage.removeItem(d)}}};
jqO=function(){if(!_.Kmt())return!1;var v=_.sI(),e=Object.keys(window.localStorage);e=_.a(e);for(var d=e.next();!d.done;d=e.next())if(d=KN9(d.value),d!==void 0&&d!==v)return!0;return!1};
sqs=function(v){return _.iC("NotificationsDisabled",v)};
NVw=function(){return Notification.permission!="granted"?Promise.resolve():_.oGi().then(function(v){return v?v.pushManager.getSubscription().then(function(e){if(e)return Promise.resolve();e={userVisibleOnly:!0,applicationServerKey:_.U0("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return v.pushManager.subscribe(e).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
kEi=function(v){return _.oGi().then(function(e){if(!e||!e.active)return Promise.reject(new _.kL("serviceworker.postMessage",v,e));try{return e.active.postMessage(v),Promise.resolve()}catch(d){return Promise.reject(d)}})};
LNC=function(){kEi({type:"notifications_register",data:_.Bb("ID_TOKEN")})};
VXs=function(){if(!_.zr("LOGGED_IN"))return Promise.resolve(!1);var v=_.aH("service_worker_push_force_notification_prompt_tag");return v?_.YD("PromptTags").then(function(e){if(!e)return!0;var d=[];try{d=JSON.parse(e)}catch(E){return!1}return d&&d.indexOf(v)==-1}):Promise.resolve(!1)};
oB9=function(){var v=_.Wi("service_worker_push_prompt_delay_microseconds");return v?_.YD("PromptTime").then(function(e){return Promise.resolve(Date.now()-v>(e||0))}):Promise.resolve(!0)};
JU_=function(){var v=_.Wi("service_worker_push_logged_out_prompt_watches");return v==-1?Promise.resolve(!1):_.YD("WatchCount").then(function(e){return e>=v})};
GEs=function(){var v=_.Tn(document,"yt-push-prompt-modal-bg");v&&_.KX(v)};
MXf=function(){return _.Wi("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.YD("PromptCount").then(function(v){v||(v=0);return Promise.resolve(v<_.Wi("service_worker_push_prompt_cap"))})};
tXs=function(v){return _.zr("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.zr("LOGGED_IN")&&(v===void 0?0:v)?VXs().then(function(e){if(e)return!0;e=[MXf(),oB9()];_.zr("LOGGED_IN")||e.push(JU_());return Promise.all(e).then(function(d){return d.every(function(E){return E})})}):Promise.resolve(!1)};
fmS=function(){_.YD("PromptCount").then(function(v){return _.iC("PromptCount",v+1)}).then(function(){return _.iC("PromptTime",Date.now())}).then(function(){var v=_.aH("service_worker_push_force_notification_prompt_tag");
if(v)return _.YD("PromptTags").then(function(e){var d=[];if(e)try{d=JSON.parse(e)}catch(E){return!1}d||(d=[]);d.push(v);return _.iC("PromptTags",JSON.stringify(d))})})};
P4_=function(){Raf||GEs()};
xgO=function(v){v.style.zIndex=2147483648;v.style.pointerEvents="auto";v.style.backgroundColor="rgba(0, 0, 0, 0.6)";v.style.width="100%";v.style.height="100vh";v.style.position="absolute";v.style.top="0";v.style.left="0";v.style.border="none"};
BVs=function(){var v=_.Tn(document,"yt-push-prompt-modal-bg");Raf=_.N("service_worker_push_prompt_modal_ignore_click");v?xgO(v):(v=_.NF("div",{id:"yt-push-prompt-modal-bg"}),xgO(v),document.body.appendChild(v),_.F5s(document,"click",P4_))};
C4i=function(){var v=arguments;_.N("service_worker_push_prompt_modal_enable")&&BVs();return Notification.requestPermission().then(function(e){GEs();var d=document.getElementById("ticker");d&&(d.className=d.classList.remove("show"));if(e=="granted")return NVw().then(function(){sqs(!1);LNC();return Promise.resolve(!0)});
e=="denied"&&LNC();return Promise.resolve(!1)}).catch(function(){GEs();
return Promise.reject.apply(Promise,_.t7(v))})};
XF9=function(v){v=v===void 0?!1:v;var e=_.COj().client;if(e&&e.browserVersion){var d=e.browserVersion,E=e.browserName=="CHROME"&&_.rH(d,"50.0.0")<0;e=e.browserName=="OPERA"&&_.rH(d,"42.0.0")<0;if(E||e)return Promise.resolve()}return _.Mxf().then(function(T){if(!T)return Promise.resolve();T=NVw().then(function(){return kEi({type:"notifications_check_registration",data:_.Bb("ID_TOKEN")})});
return Notification.permission!="default"?T.catch(function(){}):T.then(function(){return tXs(v)}).then(function(S){if(S)return fmS(),C4i().then(function(){})}).catch(function(){})})};
zai=function(v){return _.JfQ(v)?XF9():Promise.resolve()};
lms=function(v){var e=v.installing||v.waiting;return v.active||!e?Promise.resolve(v):new Promise(function(d){var E=function(T){T=T.target;if(T.state==="activated"||T.state==="redundant")e.removeEventListener("statechange",E),d(v)};
e.addEventListener("statechange",E)})};
HBi=function(){var v=new _.Q4H("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Sd(v,{mainAppWeb:_.no()});var e=_.DjI;_.N("service_worker_forward_exp_params")&&(e=hai(e));try{var d=_.z1t(e).catch(function(){_.W0(v,"FAILURE");return new Promise(function(){})});
_.N("service_worker_push_enabled")&&d.then(function(E){_.W0(v,"SUCCESS");return E}).then(lms).then(zai)}catch(E){if(_.W0(v,"FAILURE"),E.name!=="SecurityError")throw E;
}};
AUs=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&HBi()};
ZBv=function(v,e){var d={};e&&(d.serializedYpcFamilyCreateLoggingParams=e);_.tI(v,d);_.fI()};
cUQ=function(v,e){var d={};d.serializedYpcRefundFlowLoggingParams=e;v&&(d.eventType=v);_.tI("ypcRefundFlowEvent",d);_.fI()};
wFO=function(v){v&&_.Hjs("transactionFlowSucceeded",v)};
FNS=function(v){v&&_.w8("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",v,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
Qq_=function(v){var e,d,E,T,S,O,b;_.I(function(Y){if(Y.nextAddress==1)return Y.yield(_.Nwj(),2);if(Y.nextAddress!=3){if(!Y.yieldResult)return Y.return(!1);e=[];return Y.yield(_.m8.keys(),3)}d=Y.yieldResult;E=_.a(d);for(T=E.next();!T.done;T=E.next())S=T.value,O=_.jR3(S),b=O.datasyncId,!b||v.includes(b)||e.push(_.m8.delete(S));return Y.return(Promise.all(e).then(function(q){return q.some(function(r){return r})}))})};
gB9=function(){var v,e,d,E,T,S,O;return _.I(function(b){if(b.nextAddress==1)return b.yield(_.Nwj(),2);if(b.nextAddress!=3){if(!b.yieldResult)return b.return(!1);v=_.sI("cache contains other");return b.yield(_.m8.keys(),3)}e=b.yieldResult;d=_.a(e);for(E=d.next();!E.done;E=d.next())if(T=E.value,S=_.jR3(T),(O=S.datasyncId)&&O!==v)return b.return(!0);return b.return(!1)})};
uq9=function(){var v=_.dk().resolve(_.eG(_.gPM));return v?v.getCurrentTime():0};
nBC=function(){var v,e,d,E,T,S,O,b,Y,q,r,h,K,k;return _.I(function(J){switch(J.nextAddress){case 1:v={},e=_.sLO(),d=_.a(Object.entries(e)),E=d.next();case 4:if(E.done){J.jumpTo(3);break}T=E.value;S=_.a(T);O=S.next().value;b=S.next().value;Y=O;q=b;if(!q){J.jumpTo(5);break}return J.yield(q(),8);case 8:v[Y]=J.yieldResult;case 5:E=d.next();J.jumpTo(4);break;case 2:r=_.a(void 0),h=r.next();case 9:if(h.done){J.jumpTo(3);break}K=h.value;k=e[K];if(!k){J.jumpTo(10);break}return J.yield(k(),13);case 13:v[K]=
J.yieldResult;case 10:h=r.next();J.jumpTo(9);break;case 3:return J.return(v)}})};
DgC=function(){var v;_.I(function(e){if(e.nextAddress==1)return e.yield(nBC(),2);v=e.yieldResult;return e.yield(navigator.clipboard.writeText(JSON.stringify(v,null,2)),0)})};
Ugs=function(v,e){return _.h_(v.entities,"superThanksSelectedTierEntity",e)};
pFi=function(v,e){return{popup:{searchSuggestionReportDialog:{searchQuery:v,title:_.sz("SBOX_INAPPROPRIATE_TITLE"),suggestions:e,categoryLabel:_.sz("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.sz("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.sz("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.sz("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.sz("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.sz("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.sz("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.sz("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.sz("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.sz("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
vHQ=function(v){var e,d,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U;return _.I(function(F){switch(F.nextAddress){case 1:return F.yield(_.j7(),2);case 2:return(e=F.yieldResult)?F.yield(_.iz0(e),3):F.return();case 3:d=F.yieldResult;if(!d)return F.return();T=((E=d.offlineVideos)==null?void 0:E.length)||0;O=((S=d.offlinePlaylists)==null?void 0:S.length)||0;if(T===0&&O===0)return F.return();b=0;if(d.offlineVideos)for(Y=_.a(d.offlineVideos),q=Y.next();!q.done;q=Y.next())r=q.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
r.videoState&&(b+=1);v.offline_videos_count=T.toString();_.N("kevlar_log_offline_current_network_type_ks")||(v.offline_current_network_type=(h=_.y_H())!=null?h:"CONN_INVALID");_.N("kevlar_log_updated_time_for_smart_downloads")&&(K=_.d1().getState().entities,k=_.BK(K),J=wPw(K),v.offline_smart_downloads_last_sync_time_ms=k.toString(),v.offline_smart_downloads_next_sync_time_ms=J.toString());v.offline_videos_playable=b.toString();v.offline_playlists_count=O.toString();d.offlineVideos&&(R=d.offlineVideos.reduce(function(g,
Q){Q.downloadedBytes&&(g+=Number(Q.downloadedBytes));return g},0).toString())&&(v.offline_used_disk_space_bytes=R);
if(!((B=navigator)==null?0:(X=B.storage)==null?0:X.estimate)){F.jumpTo(4);break}return F.yield(navigator.storage.estimate(),5);case 5:Z=F.yieldResult,v.offline_free_disk_space_bytes=(((U=Z)==null?void 0:U.quota)||0).toString();case 4:v.offline_client_state=JSON.stringify(d),_.s9(F)}})};
elv=function(v){v=_.a(v);for(var e=v.next(),d={};!e.done;d={setter$jscomp$5:void 0},e=v.next()){var E=e.value;e=E.params;E=E.service;e&&E&&(d.setter$jscomp$5=_.Buv[E],d.setter$jscomp$5&&e.forEach(function(T){return function(S){var O=S.key;S=S.value;O&&S&&(0,T.setter$jscomp$5)(O,S)}}(d)))}};
dEs=function(v){v=v.match(/(.*)::.*::.*/);if(v!==null)return v[1]};
EHt=function(v){if(_.hSt()){var e=Object.keys(window.sessionStorage);e=_.a(e);for(var d=e.next();!d.done;d=e.next()){d=d.value;var E=dEs(d);E===void 0||v.includes(E)||self.sessionStorage.removeItem(d)}}};
Tgi=function(){if(!_.hSt())return!1;var v=_.sI(),e=Object.keys(window.sessionStorage);e=_.a(e);for(var d=e.next();!d.done;d=e.next())if(d=dEs(d.value),d!==void 0&&d!==v)return!0;return!1};
Rw=function(v,e,d){(_.N("desktop_keyboard_shortcut_usage_log")||d&&_.N("web_shorts_keyboard_shortcut_usage_log"))&&(e?_.mt.get(v):_.YA.get(v))&&(v=e?_.qW.get(v):_.y7.get(v))&&_.Uz(_.zz(),v)};
Sof=function(v,e){return v.findIndex(function(d){return d.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(e.keyCode):!1};
WUO=function(){var v,e;return typeof CSS!=="undefined"&&((e=(v=CSS).supports)==null?void 0:e.call(v,"selector(:has(*))"))};
aYS=function(v){return v.visibility!=="hidden"&&v.display!=="none"};
OQC=function(v){if(WUO()||v.tagName!=="DETAILS"?!v.matches(iQs):v.querySelector("summary")!==null)return-1;v=v.getAttribute("tabindex")||"0";return Number(v)};
IYi=function(v){return v.some(function(e){return OQC(e)>0})};
bQ1=function(v){if(v.textContent)return!0;if(v instanceof HTMLInputElement){if(!v.labels)return!1;v=_.a(v.labels);for(var e=v.next();!e.done;e=v.next())if(e.value.textContent)return!0}return!1};
YoC=function(v){return v.sort(function(e,d){return OQC(d)-OQC(e)})};
mEi=function(v){v=Array.from(v.querySelectorAll(iQs)).filter(function(e){return(aYS(e.style)?aYS(window.getComputedStyle(e)):!1)&&bQ1(e)});
return IYi(v)?YoC(v):v};
y_9=function(v){v=mEi(v);v.length>0&&v[0].focus()};
qos=function(v,e){e.stack&&(v.stack+="\n"+e.stack);return v};
KUC=function(v){var e=PR(v,"Content-Type");if(!e)return null;e=e.toLowerCase();if(e.startsWith("application/json"))return e.startsWith("application/json+protobuf")?new r_v:new _.EQ;if(e.startsWith("application/x-protobuf")){v=PR(v,"Content-Transfer-Encoding");if(!v)return new xA;if(v.toLowerCase()=="base64")return new hli}return null};
J_s=function(v,e,d,E){var T=new $E9(function(b,Y){return jGO.has(Y)?b.sentinel==="gal"&&b.event!==void 0:!1},function(b){b.event?(b=sGi(b.event),b=!b||Ngi(E,b)?!0:_.qT(v.lastEvent,BR,2,Cx)?!_.qT(b,X_,1,Cx)&&!_.qT(b,BR,2,Cx):!_.qT(b,X_,1,Cx)&&!_.qT(b,BR,3,Cx)):b=!0;
return b});
d=_.Oa(v.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",kai(d)]]));if(v.nestedOrigins!==void 0)for(var S=_.a(v.nestedOrigins),O=S.next();!O.done;O=S.next())d=_.Oa(d,new Map([["origin",O.value]]));return LU9(T,d,e).then(function(b){b=V7f(b.event);if(_.qT(b,X_,1,Cx)){var Y,q=(Y=_.MT(b,X_,1,Cx))==null?void 0:_.oW(Y,2);q&&E.JSC$19338_logErrorEvent(oHO(q));Y=_.MT(b,X_,1,Cx);_.oW(Y,2)===4?(b=_.MT(b,X_,1,Cx),b={statusCode:11,statusMessage:_.Vm(b,
3)}):(b=_.MT(b,X_,1,Cx),b={statusCode:12,statusMessage:_.Vm(b,3)});return b}_.qT(b,BR,3,Cx)?(b=_.MT(b,BR,3,Cx),b={statusCode:1,consentLanguageKeys:_.Vm(b,2)}):b={statusCode:1};return b}).catch(function(b){return b.errorCode!==void 0?{statusCode:b.errorCode,
statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
fYt=function(v){var e={};if(v===void 0||v===null)return e;v.getToken()!==void 0&&Gas(v.getToken())&&Gas(v.getToken()).length>0&&(e.scopes=new Set(Gas(v.getToken())));v.getToken()!==void 0&&M79(v.getToken())&&M79(v.getToken()).length>0&&(e.capabilities=new Set(M79(v.getToken())));_.Vm(v,3)!==void 0&&(e.consistencyKey=_.Vm(v,3));v.getName()!==void 0&&v.getName()!==""&&(e.linkName=v.getName());_.ym(v,t7f,4)&&(v=_.W8(v,t7f,4),v=Object.assign({},_.Vm(v,1)&&{userId:_.Vm(v,1)},_.Vm(v,2)&&{displayName:_.Vm(v,
2)},_.Vm(v,3)&&{email:_.Vm(v,3)},_.Vm(v,5)&&{username:_.Vm(v,5)},_.Vm(v,4)&&{profilePicture:_.Vm(v,4)}),e.profile=v);return e};
Rli=function(v,e){var d=v.flowParams,E;return{serviceId:d.serviceId,sessionId:d.sessionId,currentFlow:v.currentFlow,googleScopesString:e,linkingSessionSerialized:v.session.serialize(),consentLanguageKeys:d.consentLanguageKeys,callerState:v.callerState,dynamicUrlParameters:d.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(E=d.partnerConfigMinReadTimestamp)==null?void 0:E.serialize()}};
XKs=function(v){var e=v.googleScopes!==void 0?Array.from(v.googleScopes).join(","):"";Pqt(Rli(v,e));e=xEi(v);return e===null?Promise.resolve(Bg9):e.start().then(function(d){var E,T=(E=d.link)==null?void 0:E.consistencyKey;return d.statusCode===1&&v.googleScopes!==void 0&&v.googleScopes.size>0&&T!==void 0?(E=v.flowParams,Cqt(E.serviceId,E.sessionId,v.googleScopes,T,E.galService,v.config,d)):d})};
zl9=function(v){var e=xEi(v);return e===null?Promise.resolve(zW({statusCode:7,statusMessage:"Failed to create flow object"},v.callerState)):e.complete().then(function(d){var E,T=(E=d.link)==null?void 0:E.consistencyKey;return d.statusCode===1&&v.googleScopes!==void 0&&v.googleScopes.size>0&&T!==void 0?(E=v.flowParams,Cqt(E.serviceId,E.sessionId,v.googleScopes,T,E.galService,v.config,d)):zW(d,v.callerState)},function(d){return zW({statusCode:12,
statusMessage:"Failed to complete the flow: "+d.message},v.callerState)})};
Cqt=function(v,e,d,E,T,S,O){return lYt(T,{serviceId:v,sessionId:e,googleScopes:d,consistencyKey:E}).then(function(){return O},function(b){return T.deleteLink({serviceId:v,
sessionId:e,accountLinkingEntryPoint:S.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+b.message}},function(Y){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+Y.message}})})};
xEi=function(v){switch(v.currentFlow){case 1:var e=v.flowParams;v=_.W8(v.session,HQi,1);return lC.createOAuthFlow(e,v);case 2:case 3:return e=v.flowParams,v=_.W8(v.session,A_9,6),HR.createStreamlinedFlow(e,v);default:return null}};
ZQ9=function(v,e){v===2&&(v=3);var d=0;A6.indexOf(v)!==-1&&(d=A6.indexOf(v)+1);for(v=d;v<A6.length;v++)if(e.has(A6[v]))return A6[v]};
FUv=function(v){var e=v.serviceId;var d=v.sessionId;var E=v.config;var T=v.galService;var S=v.capabilities;var O=v.scopes;var b=v.loginHint;var Y=v.callerState;var q=v.consentLanguageKeys;var r=v.linkName;var h=v.dynamicUrlParameters;var K=v.partnerConfigMinReadTimestamp;v=E.dataUsageNoticeConfig?E.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return T.startLinkingSession({serviceId:e,sessionId:d,capabilities:S,scopes:O,loginHint:b,callerState:Y,supportedFlows:c_O(E.supportedFlows),completionUrl:E.completionUrl,
accountLinkingEntryPoint:E.accountLinkingEntryPoint,consentLanguageKeys:q,dataUsageNoticeConfig:v,linkName:r,dynamicUrlParameters:h,partnerConfigMinReadTimestamp:K}).then(function(k){return new wKv(e,d,E,T,k,void 0,Y,q,h,K)})};
UEi=function(v,e,d){var E=(new QGO).getSession(v);if(E===null)return Promise.resolve({statusCode:2});gH9(v);var T=u19(E.linkingSessionSerialized),S=E.googleScopesString!==""&&E.googleScopesString!==void 0?new Set(E.googleScopesString.split(",")):void 0,O=E.partnerConfigMinReadTimestampSerialized?nHS(E.partnerConfigMinReadTimestampSerialized):void 0;return DES(new wKv(v,E.sessionId,e,d,T,S,E.callerState,E.consentLanguageKeys,E.dynamicUrlParameters,O),E.currentFlow,E.consentLanguageKeys)};
Pqt=function(v){var e=new QGO;e.storage!==null&&e.storage.set("SAVED_SESSION",v)};
gH9=function(v){var e=new QGO;if(e.storage!==null){var d=e.storage.get("SAVED_SESSION");d!==void 0&&d.serviceId===v&&e.storage.remove("SAVED_SESSION")}};
c_O=function(v){var e=new Set;v=_.a(v);for(var d=v.next();!d.done;d=v.next())d=d.value,d!==1&&pK9.has(d)&&e.add(pK9.get(d));return e};
zW=function(v,e){e!==void 0&&(v.callerState=e);return v};
vEt=function(v){switch(v){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
EEO=function(v){return new eXO(v,new ddf(v))};
Wxt=function(v,e){e=e===void 0?!1:e;var d=document.createElement("div");v&&(d.style.transform="scaleX(-1)");d.style.backgroundColor=e?"rgba(138,180,248,.24)":"#e8f0fe";d.style.height="4px";d.style.overflow="hidden";d.style.position="absolute";d.style.top="0";d.style.width="100%";d.style.zIndex="1500";d.setAttribute("aria-label","Loading");d.setAttribute("aria-live","polite");v=document.createElement("style");v.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  }";
d.appendChild(v);v=T1O();v.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";v.style.left="-145.166611%";var E=Sjs(e);E.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";v.appendChild(E);d.appendChild(v);v=T1O();v.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";v.style.left="-54.888891%";e=Sjs(e);e.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
v.appendChild(e);d.appendChild(v);return d};
T1O=function(){var v=document.createElement("div");v.style.height="100%";v.style.position="absolute";v.style.transformOrigin="top left";v.style.width="100%";return v};
Sjs=function(v){var e=document.createElement("span");e.style.borderTop=v?"4px solid #669df6":"4px solid #4285f4";e.style.display="inline-block";e.style.position="absolute";e.style.width="100%";return e};
apS=function(v){return v==null?void 0:_.gsg(v).valueOf()};
bot=function(v){var e=document.body,d=!1,E=function(){d||(d=!0,io_(T,S),setTimeout(function(){e.removeChild(S);e.removeChild(T)},150))},T=OoC(v,getComputedStyle(e).direction==="rtl",E),S=IpC(E);
io_(T,S);e.appendChild(S);e.appendChild(T);window.requestAnimationFrame(function(){S.style.opacity="1";T.style.opacity="1";T.style.transform="translate(-50%, -50%) scale(1)";T.children[0].focus()})};
OoC=function(v,e,d){var E=document.createElement("div");E.style.position="fixed";E.style.alignItems="center";E.style.backgroundColor=v?"rgb(32, 33, 36)":"white";E.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";E.style.display="flex";E.style.flexDirection="column";E.style.justifyContent="center";E.style.left="50%";E.style.top="50%";E.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";E.style.zIndex="2002";document.body.clientWidth>=
660?(E.style.borderRadius="8px",E.style.minHeight="220px",E.style.maxHeight="90%",E.style.maxWidth="90%",E.style.minWidth="540px"):(E.style.height="100%",E.style.width="100%");E.setAttribute("aria-label","Error");E.setAttribute("aria-modal","true");E.setAttribute("role","alertdialog");E.addEventListener("keydown",function(S){S.key==="Escape"&&d()});
e=YjO(v,e,d);E.appendChild(mdi(e));E.appendChild(e);var T=document.createElement("img");T.src=v?"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","");E.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=v?"rgb(232,234,237)":"#3c4043";E.appendChild(T);E.appendChild(mdi(e));return E};
YjO=function(v,e,d){var E=document.createElement("button");E.style.backgroundColor="transparent";E.style.border="none";E.style.borderRadius="50%";E.style.cursor="pointer";E.style.outline="none";E.style.padding="12px";E.setAttribute("aria-label","Close dialog");E.style.position="absolute";E.style.top="0";e?E.style.right="0":E.style.left="0";E.addEventListener("focus",function(){E.style.backgroundColor=v?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
E.addEventListener("blur",function(){E.style.backgroundColor="transparent"});
E.addEventListener("mouseenter",function(){E.style.backgroundColor=v?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
E.addEventListener("mouseleave",function(){E.style.backgroundColor="transparent"});
E.addEventListener("click",d);E.addEventListener("keydown",function(T){T.key!=="Enter"&&T.key!=="Space"||d()});
e=document.createElement("img");e.src=v?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";e.style.display="block";e.style.height="24px";e.style.width="24px";e.setAttribute("alt","");E.appendChild(e);return E};
mdi=function(v){var e=document.createElement("div");e.setAttribute("tabindex","0");e.setAttribute("aria-hidden","true");e.addEventListener("focus",function(){return void v.focus()});
return e};
IpC=function(v){var e=document.createElement("div");e.style.backgroundColor="rgba(32,33,36,0.6)";e.style.bottom="0";e.style.left="0";e.style.position="fixed";e.style.right="0";e.style.top="0";e.style.transition=" opacity 150 ms linear";e.style.zIndex="2001";e.addEventListener("click",v);return e};
io_=function(v,e){e.style.opacity="0";v.style.opacity="0";v.style.transform="translate(-50%, -50%) scale(0.8)"};
yk9=function(v,e){v.sandbox&&v.sandbox.add&&(v.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),v.sandbox.add("allow-downloads"));v.src=e};
Z5=function(v){qjt.call(this,v)};
cR=function(v,e){e=e===void 0?!1:e;this.parsedImageUrl_=null;v instanceof rkv||(hXi==void 0&&(hXi=new Kxs),v=hXi.parse(v.toString(),e));v=this.parsedImageUrl_=v;v.JSC$19550_parsedOptions_==void 0&&((e=v.getOptions())||(e=""),v.JSC$19550_parsedOptions_=(new $ds).parse(e));qjt.call(this,v.JSC$19550_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;v=this.parsedImageUrl_;e=v.uri_.JSC$10022_port_;this.JSC$19552_domain_=v.uri_.JSC$10022_domain_+(e?":"+e:"");this.JSC$19552_query_=
this.parsedImageUrl_.uri_.JSC$10022_queryData_.toString()};
jbs=function(v){this.mode=4;this.data=v;this.parsedData=[];v=0;for(var e=this.data.length;v<e;v++){var d=[],E=this.data.charCodeAt(v);E>65536?(d[0]=240|(E&1835008)>>>18,d[1]=128|(E&258048)>>>12,d[2]=128|(E&4032)>>>6,d[3]=128|E&63):E>2048?(d[0]=224|(E&61440)>>>12,d[1]=128|(E&4032)>>>6,d[2]=128|E&63):E>128?(d[0]=192|(E&1984)>>>6,d[1]=128|E&63):d[0]=E;this.parsedData.push(d)}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))};
sb9=function(v){this.typeNumber=0;this.errorCorrectLevel=v===void 0?2:v;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
wE=function(v,e){if(v.length==void 0)throw Error("Ek`"+v.length+"`"+e);for(var d=0;d<v.length&&v[d]==0;)d++;this.num=Array(v.length-d+e);for(e=0;e<v.length-d;e++)this.num[e]=v[e+d]};
N1Q=function(v,e){this.totalCount=v;this.dataCount=e};
ko9=function(){this.buffer=[];this.length=0};
Lx1=function(){var v=!1;if(_.q0O()){v=_.Kt();var e="";_.K0H()?(e=/Windows (?:NT|Phone) ([0-9.]+)/,e=(v=e.exec(v))?v[1]:"0.0"):_.ft()?(e=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,e=(v=e.exec(v))&&v[1].replace(/_/g,".")):_.h$0()?(e=/Mac OS X ([0-9_.]+)/,e=(v=e.exec(v))?v[1].replace(/_/g,"."):"10"):_.YS(_.Kt(),"KaiOS")?(e=/(?:KaiOS)\/(\S+)/i,e=(v=e.exec(v))&&v[1]):_.q0O()?(e=/Android\s+([^\);]+)(\)|;)/,e=(v=e.exec(v))&&v[1]):_.$77()&&(e=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,e=(v=e.exec(v))&&v[1]);v=
e||""}return v};
tUt=function(v,e){this.JSC$19575__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(e)for(var d in e)this.JSC$19575__htOption[d]=e[d];this.JSC$19575__htOption.useSVG&&(VUf=oEi);this.JSC$19575__android=Lx1();this.JSC$19575__el=v;this._oQRCode=null;this._oDrawing=new VUf(this.JSC$19575__el,this.JSC$19575__htOption);this.JSC$19575__htOption.text&&(v=this.JSC$19575__htOption.text,this._oQRCode=new sb9(this.JSC$19575__htOption.correctLevel),JkC(this._oQRCode,
v),e=this._oQRCode,Go_(e,!1,MU1(e)),this.JSC$19575__el.title=v,this._oDrawing.draw(this._oQRCode),this.makeImage())};
fpi=function(v,e,d,E,T){v.save();var S=new Path2D;S.roundRect(e,d,E*7,E*7,E*2);S.roundRect(e+E,d+E,E*5,E*5,E*1.3);S.roundRect(e+2*E,d+2*E,E*3,E*3,E);v.clip(S,"evenodd");v.fillStyle=T;v.fillRect(0,0,v.canvas.width,v.canvas.height);v.restore()};
F_=function(v,e){if(typeof v!=="function")throw Error("Hk");return _.TO.setTimeout(function(){v()},e)};
Q7=function(){};
PXi=function(v,e,d,E,T){(new Q7).debug("TestLoadImageWithRetries: "+T);if(E==0)d(!1);else{var S=T||0;E--;RX9(v,e,function(O){O?d(!0):_.TO.setTimeout(function(){PXi(v,e,d,E,S)},S)})}};
RX9=function(v,e,d){var E=new Q7;E.debug("TestLoadImage: loading "+v);var T=new Image;T.onload=function(){try{E.debug("TestLoadImage: loaded"),xdt(T),d(!0)}catch(S){}};
T.onerror=function(){try{E.debug("TestLoadImage: error"),xdt(T),d(!1)}catch(S){}};
T.onabort=function(){try{E.debug("TestLoadImage: abort"),xdt(T),d(!1)}catch(S){}};
T.ontimeout=function(){try{E.debug("TestLoadImage: timeout"),xdt(T),d(!1)}catch(S){}};
_.TO.setTimeout(function(){if(T.ontimeout)T.ontimeout()},e);
T.src=v};
xdt=function(v){v.onload=null;v.onerror=null;v.onabort=null;v.ontimeout=null};
B1s=function(){this.front_=[];this.back_=[]};
CXt=function(v,e){_.kh.call(this);this.delay_=new _.V4(this.JSC$19701_onTick_,0,this);_.Yh(this,this.delay_);this.JSC$19699_interval_=5E3;this.nextTickTime_=0;if(typeof v==="function")e&&(v=(0,_.LX)(v,e));else if(v&&typeof v.handleEvent==="function")v=(0,_.LX)(v.handleEvent,v);else throw Error("ya");this.JSC$19701_listener_=v};
gE=function(v,e,d,E,T,S,O,b,Y,q,r,h,K,k){d=d===void 0?!1:d;E=E===void 0?function(){return""}:E;
T=T===void 0?!1:T;S=S===void 0?!1:S;O=O===void 0?!1:O;b=b===void 0?function(){return _.qg({})}:b;
Y=Y===void 0?!1:Y;r=r===void 0?!1:r;h=h===void 0?!1:h;K=K===void 0?!1:K;k=k===void 0?!1:k;this.JSC$19702_pathPrefix_=v;this.defaultQueryParams_=e;this.pubsub_=new _.rk;this.reconnectTimer_=new CXt(this.safeReconnect_,this);this.JSC$19702_channel_=null;this.JSC$19702_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19702_pendingMessages_=[];this.enableAsyncTest_=d;this.JSC$19702_getXsrfToken_=E;this.useAsyncBrowserChannelHandler_=S;this.getAuthorizationHeader_=
b;this.getAuthorizationHeaderSync_=q;this.enableCachedUpdateAuthorizationHeader_=O;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.qg();this.enableLoungeTokenRefresh_=T;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=Y;this.disableMdxAuthForNonPlaybackMessages_=r;this.disableMdxAuthForAdMessages_=h;this.enableMdxAuthForConnectionOnly_=K;this.disableMdxAuthForShortsMessages_=k;this.JSC$19702_channelOpenedCounter=new Xv_;this.JSC$19702_channelClosedCounter=new zXt;this.channelMessageSentCounter=
new lps;this.JSC$19702_channelMessageReceivedCounter=new Hof;this.JSC$19702_channelErrorCounter=new Ak_;this.pendingMapsOnClosedCounter=new Zot;this.undeliveredMapsOnClosedCounter=new ckv};
uC=function(v){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;v=v||document.location.href;var e=Number(_.n4(v)[4]||null)||"";e&&(this.port=":"+e);this.domain=_.DV(v)||"";v=_.Kt();v.search("MSIE")>=0&&_.rH(v.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
nx=function(v){v=v||{};this.name=v.name||"";this.id=v.id||v.screenId||"";this.token=v.token||v.loungeToken||"";this.uuid=v.uuid||v.dialId||"";this.idType=v.screenIdType||"normal"};
wvt=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(v){var e=Math.random()*16|0;return(v=="x"?e:e&3|8).toString(16)})};
Fxw=function(v){return _.R2(v,function(e){return{key:e.id,name:e.name}})};
Qbi=function(v,e){return _.xS(v,function(d){return d||e?!d!=!e?!1:d.id==e.id:!0})};
UH=function(v,e){return _.xS(v,function(d){return D5(d,e)})};
UdC=function(){var v=gEi(),e=uDS();if(nEi()){var d=v,E=_.GOO(d,e);E<0&&_.VWL(d,-(E+1),0,e)}v=Ddf(v);if(v.length==0)try{_.IYs("remote_sid")}catch(T){}else try{_.$L("remote_sid",v.join(","),-1)}catch(T){}};
gEi=function(){var v=_.yy("yt-remote-connected-devices")||[];v.sort(_.Jsj);return v};
Ddf=function(v){if(v.length==0)return[];var e=v[0].indexOf("#"),d=e==-1?v[0]:v[0].substring(0,e);return _.R2(v,function(E,T){return T==0?E:E.substring(d.length)})};
pv1=function(v){_.mZ("yt-remote-connected-devices",v,86400)};
uDS=function(){if(vvi)return vvi;var v=_.yy("yt-remote-device-id");v||(v=wvt(),_.mZ("yt-remote-device-id",v,31536E3));for(var e=gEi(),d=1,E=v;_.lL(e,E);)d++,E=v+"#"+d;return vvi=E};
ei9=function(){return _.yy("yt-remote-session-browser-channel")};
nEi=function(){return _.yy("yt-remote-session-screen-id")};
Tis=function(v){v.length>5&&(v=v.slice(v.length-5));var e=_.R2(dr_(),function(E){return E.loungeToken}),d=_.R2(v,function(E){return E.loungeToken});
_.q2U(d,function(E){return!_.lL(e,E)})&&EvC();
_.mZ("yt-remote-local-screens",v,31536E3)};
dr_=function(){return _.yy("yt-remote-local-screens")||[]};
EvC=function(){_.mZ("yt-remote-lounge-token-expiration",!0,86400)};
px=function(v){v||(_.q$("yt-remote-session-screen-id"),_.q$("yt-remote-session-video-id"));UdC();v=gEi();_.H3(v,uDS());pv1(v)};
WI_=function(){Sgs();return vp?!!vp.get("yt-remote-use-staging-server"):!1};
Sgs=function(){if(!vp){var v=_.$Et();v&&(vp=new _.Lw(v))}};
IoQ=function(v,e,d,E,T){d=d===void 0?function(){return""}:d;
var S=function(){return new gE(eb(v,"/bc"),e,!1,d,E)};
return _.N("enable_mdx_web_channel_desktop")?new aos(function(){return new iq9(eb(v,"/wc"),e,d)}):new OqS(S,T)};
yGC=function(){var v=bqs;Ygv();d0.push(v);mrv()};
E7=function(v,e){Ygv();var d=qgi(v,String(e));d0.length==0?rGs(d):(mrv(),_.wZ(d0,function(E){E(d)}))};
TF=function(v){E7("CP",v)};
Ygv=function(){d0||(d0=_.AE("yt.mdx.remote.debug.handlers_")||[],_.pw("yt.mdx.remote.debug.handlers_",d0))};
rGs=function(v){var e=(Sb+1)%50;Sb=e;hi9[e]=v;KIw||(KIw=e==49)};
mrv=function(){var v=d0;if(hi9[0]){var e=KIw?Sb:-1,d={};do d={record$jscomp$15:void 0},e=(e+1)%50,d.record$jscomp$15=hi9[e],_.wZ(v,function(E){return function(T){T(E.record$jscomp$15)}}(d));
while(e!=Sb);hi9=Array(50);Sb=-1;KIw=!1}};
qgi=function(v,e){var d=(Date.now()-$r_)/1E3;d.toFixed&&(d=d.toFixed(3));var E=[];E.push("[",d+"s","] ");E.push("[","yt.mdx.remote","] ");E.push(v+": "+e,"\n");return E.join("")};
Wp=function(v){_.bC.call(this);this.JSC$19726_logName_=v;this.screens=[]};
iK=function(v){Wp.call(this,"LocalScreenService");this.JSC$19733_http_=v;this.loungeTokenRefreshTimer_=NaN;aN(this);this.info("Initializing with "+jBi(this.screens))};
O7=function(v,e){e=e===void 0?!1:e;Wp.call(this,"ScreenService");this.JSC$19739_http_=v;this.disableAutomaticScreenCache_=e;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};sBS(this)};
IN=function(v,e,d){_.bC.call(this);this.JSC$19743_logName_=d;this.JSC$19743_screenService_=v;this.receiver_=e;this.screen_=null};
Xgt=function(v,e,d){d.disableCastApi?bK("Cannot initialize because disabled by Mdx config."):Nif()?kVt(v,d)&&(LIC(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Vw_(e):(window.__onGCastApiAvailable=function(E,T){E?Vw_(e):(YF("Failed to load cast API: "+T),ov9(!1),LIC(!1),_.q$("yt-remote-cast-available"),_.q$("yt-remote-cast-receiver"),JGS(),e(!1))},d.loadCastApiSetupScript?_.Ff(GV1):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
Mwt()>=60&&tw_():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?foi():Mwt()>=89?Ris():(Phv(),xr9(Bi9.map(Chw))))):bK("Cannot initialize because not running Chrome")};
JGS=function(){bK("dispose");var v=mc();v&&v.dispose();_.pw("yt.mdx.remote.cloudview.instance_",null);ziC(!1);_.DCM(lov);lov.length=0};
Hqt=function(){return!!_.yy("yt-remote-cast-installed")};
AGt=function(){var v=_.yy("yt-remote-cast-receiver");return v?v.friendlyName:null};
Zqf=function(){bK("clearCurrentReceiver");_.q$("yt-remote-cast-receiver")};
cG_=function(){return Hqt()?mc()?mc().getCastSession():(YF("getCastSelector: Cast is not initialized."),null):(YF("getCastSelector: Cast API is not installed!"),null)};
FIw=function(v,e){wg_()?mc().setConnectedScreenStatus(v,e):YF("setConnectedScreenStatus called before ready.")};
Nif=function(){var v=_.Kt().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.OU||v};
kVt=function(v,e){var d=!1;mc()||(v=new yq(v,e),v.subscribe("yt-remote-cast2-availability-change",function(E){_.mZ("yt-remote-cast-available",E);NW("yt-remote-cast2-availability-change",E)}),v.subscribe("yt-remote-cast2-receiver-selected",function(E){bK("onReceiverSelected: "+E.friendlyName);
_.mZ("yt-remote-cast-receiver",E);NW("yt-remote-cast2-receiver-selected",E)}),v.subscribe("yt-remote-cast2-receiver-resumed",function(E){bK("onReceiverResumed: "+E.friendlyName);
_.mZ("yt-remote-cast-receiver",E);NW("yt-remote-cast2-receiver-resumed",E)}),v.subscribe("yt-remote-cast2-session-change",function(E){bK("onSessionChange: "+QB9(E));
E||_.q$("yt-remote-cast-receiver");NW("yt-remote-cast2-session-change",E)}),_.pw("yt.mdx.remote.cloudview.instance_",v),d=!0);
bK("cloudview.createSingleton_: "+d);return d};
mc=function(){return _.AE("yt.mdx.remote.cloudview.instance_")};
Vw_=function(v){ov9(!0);LIC(!1);mc().init(!1,function(e){e?(ziC(!0),_.UCt("yt-remote-cast2-api-ready")):(YF("Failed to initialize cast API."),ov9(!1),_.q$("yt-remote-cast-available"),_.q$("yt-remote-cast-receiver"),JGS());v(e)})};
bK=function(v){E7("cloudview",v)};
YF=function(v){E7("cloudview",v)};
ov9=function(v){bK("setCastInstalled_ "+v);_.mZ("yt-remote-cast-installed",v)};
wg_=function(){return!!_.AE("yt.mdx.remote.cloudview.apiReady_")};
ziC=function(v){bK("setApiReady_ "+v);_.pw("yt.mdx.remote.cloudview.apiReady_",v)};
LIC=function(v){_.pw("yt.mdx.remote.cloudview.initializing_",v)};
qX=function(v){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(v)};
gvi=function(){var v,e;return _.I(function(d){if(d.nextAddress==1)return(_.xCL()||_.N("use_new_nwl"))&&_.t2M().isNetworkAvailable()?d.yield(_.ea(),2):d.return();if(d.nextAddress!=3)return(v=d.yieldResult)?d.yield(Mo_(v),3):d.return();e=d.yieldResult;if(!e.length)return d.return();e.forEach(function(E){var T={timestamp:E.timestamp};E=E.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:E.appShellAssetLoadReport,options:T}:E.clientError?{payloadName:"clientError",payload:E.clientError,
options:T}:void 0;E&&_.tI(E.payloadName,E.payload,E.options)});
e.length===100&&_.RM.addLowPriorityJob(gvi);_.s9(d)})};
ueC=function(v){if(v.playerResponse){if(v=v.playerResponse,v.messages&&v.messages.length>0&&(v=v.messages.find(function(e){return!(!e||!e.mealbarPromoRenderer)}))&&v.mealbarPromoRenderer)return v.mealbarPromoRenderer}else if(v.response&&(v=v.response)&&v.overlay&&v.overlay.mealbarPromoRenderer)return v.overlay.mealbarPromoRenderer};
nvs=function(v){if(v.response){var e=v.response;if(e&&e.overlay&&e.overlay.tooltipRenderer)return e.overlay.tooltipRenderer}if(v.playerResponse&&(v=v.playerResponse,v.messages&&v.messages.length>0&&(v=v.messages.find(function(d){return!(!d||!d.tooltipRenderer)}))&&v.tooltipRenderer))return v.tooltipRenderer};
Uri=function(v){if(!DrO&&(v=v||_.Bb("ZWIEBACK_PING_URLS"))&&v.length){DrO=!0;for(var e=0;e<v.length;e++)_.ZF(v[e])}};
vJC=function(v){if(_.f0.get(_.Bb("PLAYER_VARS",{}),"privembed",!1)!="1"){v&&jmt();try{pgC().then(function(){},function(){}),_.IH(vJC,18E5)}catch(e){_.lg(e)}}};
e4i=function(){var v=_.LB(),e=v.getFlag(119),d=window.devicePixelRatio>1;document.body&&_.Cy(document.body,"exp-invert-logo")&&(d&&!_.Cy(document.body,"inverted-hdpi")?_.eM(document.body,"inverted-hdpi"):!d&&_.Cy(document.body,"inverted-hdpi")&&_.p1(document.body,"inverted-hdpi"));e!=d&&(_.Va(0,119,d),v.save())};
dCC=function(v){return v.filter(function(e){return"ypcGetCartEndpoint"in e||"ypcFixInstrumentEndpoint"in e})};
EJ_=function(v){return v.filter(function(e){return!_.L(e,_.A5M)})};
S_O=function(v,e){var d,E,T,S,O,b,Y;_.I(function(q){switch(q.nextAddress){case 1:d=_.Co.getInstance();E=_.hg.instance;T=_.wq.instance;if(!T)return TC9(v,E,e),q.return();_.qq(q,2);v.onLoadingCommand&&E.resolveCommand(v.onLoadingCommand);return q.yield(d.getCurrentPositionFromGeolocation(),4);case 4:S=q.yieldResult;if(!v.resolveLocationCommand){q.jumpTo(5);break}O=d.createLocationInfo(S);return q.yield(_.Qw(T,v.resolveLocationCommand,{locationInfo:O}),6);case 6:b=q.yieldResult;if(!b||"error"in b&&b.error||
b.errorMetadata)return TC9(v,E,e),q.return();var r;if(b==null?0:(r=b.onResponseReceivedActions)==null?0:r.length){r=_.a(b.onResponseReceivedActions);for(var h=r.next();!h.done;h=r.next())E.resolveCommand(h.value)}(_.L(v.onSuccessCommand,_.p2)||_.L(v.onSuccessCommand,_.Lo))&&_.Iq(e.hostElement,"yt-navigate",{endpoint:v.onSuccessCommand,reload:!0});case 5:_.wk(q,0);break;case 2:Y=_.jl(q);if(Y instanceof GeolocationPositionError&&Y.code===GeolocationPositionError.PERMISSION_DENIED)return v.onDeniedCommand&&
E.resolveCommand(v.onDeniedCommand),q.return();TC9(v,E,e);_.s9(q)}})};
TC9=function(v,e,d){v.onFailureCommand&&(e.resolveCommand(v.onFailureCommand),_.b4(d.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
aIO=function(v,e){var d=_.L(v,_.FJ6);if(d&&e){v=d.videoIds||[d.videoId];var E;e=(E=_.Iq(e,"yt-lockup-requested",{videoIds:v}).detail)==null?void 0:E.returnValue;var T;d.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?T=e?e:v.map(function(S){return{videoId:S,navigationEndpoint:d.videoCommand}}):e&&(T=e);
T&&(E=T.map(function(S){var O=Object,b=O.assign;var Y=S.navigationEndpoint;if(!_.L(Y,_.Go)){var q=_.L(Y,_.p2);if(q){if(delete q.index,delete q.playlistId,q=_.L(Y==null?void 0:Y.commandMetadata,_.$B),q==null?0:q.url){var r=q.url;r=_.TE(r,"list");r=_.TE(r,"index");q.url=r}}else Y=void 0}return b.call(O,{},S,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:Y})}),W5w(E,d))}};
i1i=function(v){var e=_.cH();if(v=_.L(v,_.QnJ))v.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&e.clearQueue(),v.closeMiniplayer&&_.dk().resolve(_.P0).close(!0)};
IIQ=function(v){O1i(_.cH(),v)};
b1Q=function(v){var e;(v=(e=_.L(v,_.ctc))==null?void 0:e.setVideoIds)&&v.forEach(function(d){_.vQE(_.cH(),d)})};
mC1=function(v){Y_9(_.cH(),v)};
ygi=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(v){return!1}};
q_s=function(v){var e=["h","m","s"],d=_.Zt(e);d.reverse();var E={};v=(v.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(O){var b=(O.match(/[hms]/)||[""])[0];return b?(E[b]=parseInt(O.match(/\d+/)[0],10),!1):!0});
for(v.reverse();v.length&&d.length;){var T=d.shift();T in E||(E[T]=parseInt(v.shift(),10))}if(v.length||E.s>59||E.m>59||E.h>9)return null;var S="";e.forEach(function(O){E[O]&&(S+=""+E[O]+O)});
return S||null};
rgs=function(v,e){var d=_.qS6(e,{},v,!0);return new Promise(function(E,T){d.listenOnce("n",function(){T(Error("sl`"+d.JSC$29412_getErrorDescription()))});
d.listenOnce("l",function(){var S=d.getResponseCode();if(S!==200)T(Error("tl`"+e+"`"+v.type+"`"+v.size+"`"+S));else try{E(JSON.parse(d.getResponseText()).encryptedBlobId)}catch(O){T(O)}});
d.run()})};
h4v=function(v){return v.substring(v.indexOf(":")+1,v.indexOf(";"))};
K5s=function(v){return new Promise(function(e,d){var E=new FileReader;E.onloadend=function(){try{var T=new Uint8Array(E.result);T.length<8&&d(void 0);var S=T.subarray(0,8);T="";for(var O=0;O<S.length;O++)T+=("0"+S[O].toString(16)).substr(-2);T.startsWith("ffd8ff")?e("image/jpeg"):T.startsWith("47494638")?e("image/gif"):T.startsWith("89504e470d0a1a0a")?e("image/png"):T.startsWith("424d")?e("image/bmp"):e(void 0)}catch(b){d(b)}};
E.onerror=d;E.readAsArrayBuffer(v)})};
$Ci=function(v){return new Promise(function(e,d){var E=new Image;E.crossOrigin="anonymous";E.onload=function(){var T=document.createElement("canvas");T.width=E.naturalWidth;T.height=E.naturalHeight;var S=T.getContext("2d");if(!S)throw Error("ul");S.drawImage(E,0,0);S=h4v(v);T.toBlob(function(O){O?e(O):d()},S)};
E.src=v})};
s5s=function(v,e){var d;if(((d=_.L(v,_.Go))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var E;_.Iq((E=e.hostElement)!=null?E:e,"yt-shorts-reset");_.Tzn(_.dk().resolve(_.s1),v).then(function(S){j51(S,e,v)})}else{var T;
_.mN((T=e.hostElement)!=null?T:e,[v]).then(function(S){S&&j51(S.data,e,v)})}};
j51=function(v,e,d){if(v){var E=_.L(v.replacementEndpoint,_.Go);if(E){v.sequenceContinuation&&(E.sequenceParams=v.sequenceContinuation);var T;_.Iq((T=e.hostElement)!=null?T:e,"yt-navigate",{endpoint:v.replacementEndpoint})}else if((v==null?void 0:v.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(v==null?0:v.watchStatus)&&_.L(v.watchStatus,_.JCJ)){var S;_.Iq((S=e.hostElement)!=null?S:e,"yt-navigate",{endpoint:d})}}};
NC9=function(v){var e=_.dk().resolve(_.Hl),d=_.c5.currentPageTypeSelector(e.getState())||"";e=_.c5.currentPageSubTypeSelector(e.getState())||"";d=d==="ytd-browse"&&e==="home";return _.N("web_guide_entry_enable_cache_for_non_home_pages")?(v=(v==null?void 0:v.navigationEndpoint)&&_.kE(v.navigationEndpoint)==="home",{disableCache:d&&v}):{disableCache:d}};
kj_=function(v){if(!v)return!1;try{if(v.host&&v.host.tagName==="YT-FORMATTED-STRING"&&v.host.id==="contenteditable-textarea"||v.nodeType===Node.ELEMENT_NODE&&v.tagName==="YTD-COMMENT-INPUT")return!0}catch(e){return!1}return kj_(v.parentNode)};
r0=function(v){return v?v.tagName==="A"&&v.href&&v.classList.contains("yt-simple-endpoint"):!1};
L5f=function(v){return v?v.tagName==="IMG"&&v.classList.contains("emoji"):!1};
V2S=function(v,e,d){if(!v)return null;var E=r0(v);if(E&&d)return e=v.pathname.substring(v.pathname.indexOf("/channel/")+9),document.createTextNode("@"+e);if(E&&!d)return document.createTextNode("");if(L5f(v))return d=v.alt,v=v.dataset.emojiId,!v&&e&&(e=_.iw(e,d))&&e.isCustomEmoji&&(v=e.emojiId),v?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+v+">"):document.createTextNode(d);E=v.cloneNode(!1);for(var T=0;T<v.childNodes.length;++T){var S=V2S(v.childNodes[T],e,d);S&&E.appendChild(S)}return E};
hS=function(v){return v?r0(v)?v:hS(v.lastChild):null};
oJs=function(v){return v?r0(v)?v:oJs(v.firstChild):null};
Jgi=function(v){if(!v)return null;for(var e=v.previousSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.previousSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.previousSibling;else break;(e=hS(e))?v=e:v=(v=v.parentNode)?hS(v.previousElementSibling):null;return v};
Gjw=function(v){if(!v)return null;for(var e=v.nextSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.nextSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.nextSibling;else break;return(e=oJs(e))?e:Gjw(v.parentNode)};
M2f=function(v){var e=_.It(),d=e.JSC$11327_getStartNode();if(!kj_(d.parentNode))return null;e=e.JSC$11327_getStartOffset();if(d.nodeType===Node.TEXT_NODE){var E=_.Xv(d,r0);if(E){if(v&&e===0||!v&&e===d.length)return E}else{if(v&&e===d.length)return!d||d.nodeName==="BR"||d.nextElementSibling&&_.bw(d.nextElementSibling,"display")==="block"?null:oJs(d.nextElementSibling);if(!v&&e===0)return d?hS(d.previousElementSibling):null}}if(d.nodeType===Node.ELEMENT_NODE)if(v){if(0<=e&&e<d.childNodes.length)return oJs(d.childNodes[e])}else if(0<
e&&e<=d.childNodes.length)return hS(d.childNodes[e-1]);return null};
t2t=function(v,e,d){if(!v)return null;if(v.nodeType===Node.TEXT_NODE)if(d){var E=Jgi(v);if(E&&!/^\s+\S/.test(v.wholeText.substr(0,e)))return E}else if((E=Gjw(v))&&!/\S\s+/.test(v.wholeText.substr(e,v.wholeText.length)))return E;return v.nodeType===Node.ELEMENT_NODE?d?Jgi(v.childNodes[e]):Gjw(v.childNodes[e]):t2t(v.parentNode,e,d)};
fI9=function(v){if(v.hasChildNodes())switch(v.tagName){case "DIV":case "A":case "SPAN":var e="";for(v=v.firstChild;v;v=v.nextSibling)e+=fI9(v);return e;default:return""}else switch(v.nodeType){case 3:return v.textContent;default:return""}};
R41=function(v){switch(v){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"}};
PkC=function(v){return v.map(function(e){return{settingsRadioOptionRenderer:{title:_.iq(e.name),asideText:_.iq(e.approximateSize),id:R41(e.format)}}})};
BCw=function(v){if(v&&v.length!==0)return v.filter(xCS()).map(function(e){return{settingsRadioOptionRenderer:{title:e.name,asideText:e.approximateSize,id:R41(e.formatType)}}})};
KN=function(v){if(v)return v.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
CkS=function(v,e){v=new Set(v!=null?v:[]);if(v.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(v.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(v.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(v.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(v.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(e)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
Xzt=function(v){var e=v.indexOf("(");return e!==-1?v.substring(e+1,v.length-1):v};
_.lIQ=function(v,e,d,E,T){d||(d=z4i);var S;(S=_.L(d.commandMetadata,_.$B))!=null&&S.url||(d=Error("zl`"+JSON.stringify(d)),_.RI(d),d=z4i);d=_.f0.unsafeClone(d);S=_.zN(_.L(d.commandMetadata,_.$B).url,"search_query",v);_.lZ(location.href,"sv")==="1"&&(_.L(d,_.Vd).params="EgOAAgE%3D",S=_.zN(S,"sv","1"));_.L(d,_.Vd)&&(_.L(d,_.Vd).query=v);S=S.replace(/%20/g,"+");_.L(d.commandMetadata,_.$B).url=S;T=_.N("desktop_enable_entity_suggest")?{entityMid:T}:{};_.dk().resolve(_.EI).resolveCommand(d,{form:{tempData:Object.assign({},
{gs_l:e,oq:E!=null?E:v},T)}})};
H1C=function(v){switch(v){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
Z1v=function(v,e,d,E,T,S){var O=_.f0.clone(AgC);O.locale=_.Bb("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;O.report={description:T||"<empty>"};T=_.Bb("SBOX_SETTINGS",{});e=e.join(",");var b=Date.now();v={choice_cc:E,choice_id_cc:d,choices_sc:e,gl:T.REQUEST_DOMAIN,hl:T.REQUEST_LANGUAGE,query:v,time:b};S&&(v.choice_additional_comment_cc=S);_.sde(O,v)};
cgt=function(v){var e=new Map;e.set("authuser",_.Bb("SESSION_INDEX","0"));return _.Oa(v,e)};
F5i=function(v){var e;return _.I(function(d){switch(d.nextAddress){case 1:if(!v||!wz9(v))return d.return(null);e=null;switch(_.Bb("INNERTUBE_CLIENT_NAME")){case "WEB":return d.jumpTo(2);case "WEB_REMIX":e=v.getPlayer()}d.jumpTo(3);break;case 2:return d.yield(v.getPlayerPromise(),4);case 4:e=d.yieldResult;d.jumpTo(3);break;case 3:return d.return(e)}})};
wz9=function(v){return["ytd-player","ytmusic-player"].includes(String(v.tagName||"").toLowerCase())};
Q59=function(v){v=Math.round(v);return v%2?v-1:v};
gJw=function(v){v=Math.round(v);return v%2===0?v-1:v};
u2O=function(v){var e,d,E;if(v=(e=v.createPlaylistDialogFormSchema)==null?void 0:(d=e.fieldSchemas)==null?void 0:(E=d.title)==null?void 0:E.validationSchema)for(e=[v.syncStep,v.asyncStep].filter(function(T){return T!==void 0}),e=_.a(e),d=e.next();!d.done;d=e.next()){d=d.value.rules;
if(!d)break;d=_.a(d);for(d=d.next();!d.done;d=d.next())return _.L(d.value,_.cE9)}};
DCt=function(v){var e,d,E;if(v=(e=v.createPlaylistDialogFormSchema)==null?void 0:(d=e.fieldSchemas)==null?void 0:(E=d.visibility)==null?void 0:E.validationSchema)for(e=[v.syncStep,v.asyncStep].filter(function(T){return T!==void 0}),e=_.a(e),d=e.next();!d.done;d=e.next()){d=d.value.rules;
if(!d)break;d=_.a(d);for(E=d.next();!E.done;E=d.next())if(E=_.L(E.value,nJi))return e=void 0,(e=E.translations)==null?void 0:e.visibilityNotValidErrorMessage}};
UC9=function(){var v,e;return(e=(v=_.dk().resolve(_.eG(_.n1)))==null?void 0:v())!=null?e:!1};
pzt=function(v){var e=21;if(!v)return e;e+=v.headerTitle?27:0;e+=v.headerTitle&&v.hasHeaderActionHeader?4:0;return e+=v.headerTitle&&v.headerSubtitle?16:0};
vji=function(v){var e=0;if(!v)return e;e+=v.hasFooterPrimaryButton||v.hasFooterSecondaryButton?48:0;e+=v.footerTrailingLabel||v.footerLeadingLabel?30:0;return e+=v.hasFooterPrimaryButton||v.hasFooterSecondaryButton||!v.footerTrailingLabel&&!v.footerLeadingLabel?0:12};
egw=function(v){var e=new _.rk,d=v;return{subscribe:function(E){e.subscribe("changed",E)},
dispatch:function(E,T){var S=d;E==="Touch Start"?d=Object.assign({},S,{isAnimating:!1,initialY:T.event.touches[0].clientY}):E==="Touch Move"?(E=Math.min(T.fullContentWrapperHeight,T.contentHeightMap[T.contentWrapperId]+pzt(T.header)-vji(T.footer)),d=Object.assign({},S,{currentY:Math.max(T.contentScrollable?-1*(S.initialY-24):0,T.event.touches[0].clientY-S.initialY),maxHeightForContentWrapper:Math.min(E,Math.max(0,(S.isFullScreen?E:T.contentWrapperHeight)-S.currentY))})):d=E==="Snap To Full Screen"?
Object.assign({},S,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:T.maxHeight}):E==="Snap To Neutral Position"?Object.assign({},S,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:T.maxHeight}):E==="Close Sheet"?Object.assign({},S,{isAnimating:!0,currentY:T.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:T.maxHeight}):S;e.publish("changed",d)}}};
deS=function(v){return _.rq(function(e){v(e);return!1})};
EjO=function(){_.dk().resolve(_.fE).closeSheet()};
TqO=function(v){var e,d,E,T,S,O,b,Y,q,r,h;return{headerTitle:(e=v.headerTitle)==null?void 0:e.call(v),headerSubtitle:(d=v.headerSubtitle)==null?void 0:d.call(v),headerActionHeader:v.headerActionHeader,footerPrimaryButton:v.footerPrimaryButton,footerSecondaryButton:v.footerSecondaryButton,footerButtonType:(E=v.footerButtonType)==null?void 0:E.call(v),footerLeadingLabel:(T=v.footerLeadingLabel)==null?void 0:T.call(v),footerTrailingLabel:(S=v.footerTrailingLabel)==null?void 0:S.call(v),shouldShowIcons:(O=
v.shouldShowIcons)==null?void 0:O.call(v),skipContentClick:(b=v.skipContentClick)==null?void 0:b.call(v),additionalClassName:(Y=v.additionalClassName)==null?void 0:Y.call(v),onClosedCallback:v.onClosedCallback,focusOnClose:(q=v.focusOnClose)==null?void 0:q.call(v),isDisabled:(r=v.isDisabled)==null?void 0:r.call(v),disabledCommand:(h=v.disabledCommand)==null?void 0:h.call(v),headerFn:v.headerFn,contentFn:v.contentFn,footerFn:v.footerFn,hasHeaderFn:v.hasHeaderFn(),hasContentFn:v.hasContentFn(),hasFooterFn:v.hasFooterFn(),
hasFooterPrimaryButton:v.hasFooterPrimaryButton(),hasFooterSecondaryButton:v.hasFooterSecondaryButton(),hasHeaderActionHeader:v.hasHeaderActionHeader()}};
SGw=function(v){switch(v){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""}};
W89=function(v){switch(v){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""}};
ayO=function(v){switch(v){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""}};
iMS=function(v,e,d){e.forEach(function(E){_.yV(_.dk().resolve(_.t5),E)});
_.b4(v,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",d])};
YGs=function(v,e,d,E){var T=_.L(d,_.ZG).commandLifeCycleConfig;T&&T.onStartCommand&&_.ya(v,[T.onStartCommand],e);_.Xb(e);var S=_.wq.instance;S&&_.Fj(S,d)?_.Qw(S,d,E).then(function(O){if(!O||(O==null?0:O.error))return O=_.L(d,_.ZG).serializedTransactionFlowLoggingParams,_.zU(e),_.f1(new $F("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",O));_.zU(e);return{data:O}}).then(function(O){_.zU(e);
OMv(O.data);var b=O.data.command;b&&_.ya(v,[b],e);b=Iyi(d,O.data);if(!b){var Y=O.data;O=!1;if(Y&&Y.command&&_.L(Y.command,_.rV)){var q;Y=((q=_.L(Y.command,_.rV))==null?void 0:q.commands)||[];for(q=0;q<Y.length;q++)if(_.L(Y[q],_.LOA)){O=!0;break}}O||_.Rc('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!b&&T&&T.onSuccessCommand?_.ya(v,[T.onSuccessCommand],e):b&&T&&T.onFailureCommand&&_.ya(v,[T.onFailureCommand],e)},function(){_.zU(e);
T&&T.onFailureCommand&&_.ya(v,[T.onFailureCommand],e);bM9(d)}):_.RI(Error("Ll"),"ERROR")};
mes=function(v,e,d){var E=[e];d&&E.push(d);return _.mN(v,E).then(function(T){var S=_.L(e,_.ZG).serializedTransactionFlowLoggingParams,O=T.data,b=Iyi(e,O);b?T=_.f1(new $F(b,S)):OMv(O);return T},function(){var T=_.L(e,_.ZG).serializedTransactionFlowLoggingParams;
bM9(e);return _.f1(new $F("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",T))})};
Iyi=function(v,e){v=_.L(v,_.ZG).serializedTransactionFlowLoggingParams;var d=null;switch(e.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":d="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":d="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":d="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}d?_.Uj(d,v):wFO(v);return d};
bM9=function(v){_.Uj("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.L(v,_.ZG).serializedTransactionFlowLoggingParams)};
OMv=function(v){if(v.trackingParams){var e=_.zz(),d=_.Xf();e&&d&&_.Qa(e,d,_.Jg(v.trackingParams))}};
y8i=function(v,e,d){var E=_.wq.instance,T=_.Ba7(_.Bb("YPC_MB_URL")),S=(new _.Pv$).init(),O=_.xLt(),b=_.L(d,_.jeM).languageCode;b===void 0?_.RI(Error("Hi"),"ERROR"):_.$N([S,T]).then(function(){var Y={ctk:payments.business.integration.ClientTokenFactory.createClientToken(b,O)};E&&_.Fj(E,d)?_.Qw(E,d,Y).then(function(q){return{data:q}}).then(function(q){_.Iq(e,"yt-service-request-completed",q);
q.code!=="ERROR"&&(q=q.data.command)&&_.ya(v,[q],e)}):_.RI(Error("Ll"),"ERROR")})};
hgf=function(v,e,d,E){var T=_.wq.instance;T&&_.Fj(T,d)?_.Qw(T,d,E).then(function(S){return{data:S}}).then(function(S){qGs(v,e,d,S)},function(){r89(d)}):(T=_.dk().resolve(_.eG(_.zo)))&&T.requestDataForServiceEndpoint(d,E).then(function(S){qGs(v,e,d,S)},function(){r89(d)})};
qGs=function(v,e,d,E){_.Iq(e,"yt-service-request-completed",E);if(E.code&&E.code=="ERROR")r89(d);else{(E=E.data.commands)&&_.ya(v,E,e);var T;(v=(T=_.L(d,_.oMJ))==null?void 0:T.serializedYpcPauseFlowLoggingParams)&&v&&_.w8("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",v)}};
r89=function(v){var e;(v=(e=_.L(v,_.oMJ))==null?void 0:e.serializedYpcPauseFlowLoggingParams)&&v&&_.w8("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",v,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
jZv=function(v,e,d){var E=_.wq.instance;E&&_.Fj(E,d)?_.Qw(E,d).then(function(T){return{data:T}}).then(function(T){K8i(v,e,d,T)},function(){$es(d)}):(E=_.dk().resolve(_.eG(_.zo)))&&E.requestDataForServiceEndpoint(d).then(function(T){K8i(v,e,d,T)},function(){$es(d)})};
K8i=function(v,e,d,E){_.Iq(e,"yt-service-request-completed",E);E.code&&E.code=="ERROR"?$es(d):((E=E.data.commands)&&_.ya(v,E,e),(v=_.L(d,_.J52).serializedYpcResumeFlowLoggingParams)&&v&&_.w8("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",v))};
$es=function(v){(v=_.L(v,_.J52).serializedYpcResumeFlowLoggingParams)&&v&&_.w8("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",v,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
sZS=function(v){v=v===void 0?{}:v;_.dk().resolve(_.OJI).showFeedbackDialog(v.customProductData,v.feedbackContent,v.onFeedbackSubmitted,v.bucket)};
NqC=function(v){v=v===void 0?{}:v;_.dk().resolve(_.OJI).showHelpDialog(v.helpContext,v.articleId,v.productData)};
kI9=function(){NqC()};
L8s=function(){sZS()};
oji=function(v,e,d){var E,T,S,O,b,Y,q;return _.I(function(r){switch(r.nextAddress){case 1:E=_.L(v,VMS);if((T=E)==null?0:T.productId){Y={productId:E.productId,bucket:E.bucket,enableAnonymousFeedback:(b=E.enableAnonymousFeedback)!=null?b:!0,allowNonLoggedInFeedback:!0};q={feedbackChoice:d.feedbackChoice};if(!_.N("web_collect_offline_state")){r.jumpTo(8);break}_.qq(r,9);return r.yield(vHQ(q),11)}O={bucket:(S=E)==null?void 0:S.bucket};if(!_.N("web_collect_offline_state")){r.jumpTo(4);break}O.customProductData=
{};_.qq(r,5);return r.yield(vHQ(O.customProductData),7);case 7:_.wk(r,4);break;case 5:_.jl(r);case 4:sZS(O);r.jumpTo(0);break;case 11:_.wk(r,8);break;case 9:_.jl(r);case 8:_.sYW(q),_.jYt("GFEEDBACK",q),E.productId==="5295751"&&(q.client_attestation=Number(_.Bb("CATSTAT",0))),E.productId==="5295751"&&(q.client_time=Date.now()/1E3/3600),E.productId==="5295751"&&(q.original_playback_id=_.b57||""),_.sde(Y,q),_.s9(r)}})};
J8v=function(v){if(v=_.L(v,_.Pt0)){var e={bucket:v.bucketIdentifier};v.additionalDatas&&(e.customProductData={},v.additionalDatas.forEach(function(d){if(d=d.userFeedbackEndpointProductSpecificValueData)e.customProductData[d.key]=d.value}));
sZS(e)}};
GIC=function(v){var e=_.FT.getInstance();var d=_.sz("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var E=_.sz("DELETE",void 0,"Delete"),T=_.sz("CANCEL",void 0,"Cancel");d=I_i(d,void 0,E,T,{signal:"DELETE_ALL_DOWNLOADS"});_.fl(e,[{openPopupAction:d}],v)};
tMt=function(){return _.I(function(v){return v.nextAddress==1?v.yield(_.dk().resolve(_.yn),2):v.yield(MM9(),0)})};
fys=function(v){var e,d;return _.I(function(E){return E.nextAddress==1?(d=(e=_.L(v,_.HV))==null?void 0:e.targetId)?E.yield(_.dk().resolve(_.yn),3):E.jumpTo(0):E.yield(_.dk().resolve(_.m9).deleteVideo(d),0)})};
P29=function(v){var e,d;return _.I(function(E){return E.nextAddress==1?(d=(e=_.L(v,_.HV))==null?void 0:e.targetId)?E.yield(_.dk().resolve(_.yn),3):E.jumpTo(0):E.yield(Rgs(_.dk().resolve(_.m9),d),0)})};
Bq9=function(v){var e,d;return _.I(function(E){return(d=(e=_.L(v,_.HV))==null?void 0:e.targetId)?E.yield(xe9(d),0):E.jumpTo(0)})};
Xaf=function(){_.N("kevlar_woffle_refresh_dl_load_killswitch")||C2w()};
lys=function(){_.N("kevlar_woffle")&&_.Bv.instance&&zgs()};
A8s=function(v){var e;if((e=_.L(v,_.rB))==null||!e.videoId)return!1;HM9(_.dk().resolve(_.m9),_.L(v,_.rB),v.clickTrackingParams);return!0};
c8f=function(v){var e;if((e=_.L(v,_.hX))==null||!e.playlistId)return!1;ZMv(_.dk().resolve(_.m9),_.L(v,_.hX),v.clickTrackingParams);return!0};
F8s=function(v){var e=_.L(v,_.YTA);(e==null?void 0:e.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(e==null?void 0:e.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||waf(_.dk().resolve(_.m9),_.L(v,_.YTA))};
gjw=function(v){v=_.L(v,_.Z$e);var e;(v==null?0:(e=v.actions)==null?0:e.length)&&QZt(v)};
DeQ=function(v){var e,d;return _.I(function(E){e=_.L(v,ujS);return(d=e)!=null&&d.localWatchHistoryCommandType?E.yield(njw(e),0):E.return()})};
Uev=function(v){setTimeout(function(){requestAnimationFrame(v)},80)};
pa_=function(v){return Object.entries(v).map(function(e){return e.join(":")}).join(";")};
e0C=function(v){var e,d,E;_.I(function(T){if(T.nextAddress==1)return T.yield(vzS(),2);e=T.yieldResult;d=_.hg.instance;switch(e){case "granted":E=v.getLocationCommand;break;case "denied":E=v.openDeniedDialogAction;break;case "prompt":E=v.openCollectionDialogAction;break;default:E=v.openCollectionDialogAction}E&&d.resolveCommand(E);_.s9(T)})};
vzS=function(){var v,e;return _.I(function(d){if(d.nextAddress==1)return v="prompt",navigator.permissions?d.yield(navigator.permissions.query({name:"geolocation"}),3):d.jumpTo(2);d.nextAddress!=2&&(e=d.yieldResult,v=e.state);return d.return(v)})};
Ezi=function(){_.I(function(v){return v.yield(_.dPS(),0)})};
TBS=function(){var v,e,d;return _.I(function(E){if(E.nextAddress==1)return v=_.dk().resolve(_.lX),v?E.yield(_.Qw(v,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.xf(Error("Ol")),E.return(void 0));if(e=E.yieldResult){if(e.errorMetadata)return _.xf(Error("Pl`"+e.errorMetadata.status+"`"+e.error)),E.return(void 0);d=e.datasyncIds;_.Y0s=d.length;return E.return(d)}_.xf(Error("Ql"));return E.return(void 0)})};
SKC=function(){TBS().then(function(v){v&&(JW1(v),Qq_(v),$gC(v),EHt(v))})};
WSC=function(v){_.RM.addLowPriorityJob(function(){var e,d,E,T,S;return _.I(function(O){switch(O.nextAddress){case 1:if(_.N("ytidb_clear_optimizations_killswitch")){O.jumpTo(2);break}e=_.sI("clear");if(e.startsWith("V")&&e.endsWith("||")){var b=[e];JW1(b);Qq_(b);$gC(b);EHt(b);return O.return()}d=jqO();E=Tgi();return O.yield(gB9(),3);case 3:return T=O.yieldResult,O.yield(Gzt(),4);case 4:if(S=O.yieldResult,!(d||E||T||S))return O.return();case 2:v.isNetworkAvailable()?SKC():v.listenOnce("publicytnetworkstatus-online",
SKC),_.s9(O)}})})};
jb=function(v){v={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.pQ(v)}}}};_.hg.instance&&_.hg.instance.resolveCommand(v)};
axv=function(v){if(v){var e=_.NC();_.Ig(e,3854,void 0,{layer:0,parentLayer:4});switch(v){case 1:var d=238708;break;case 2:d=238715;break;case 3:d=238710;break;case 6:d=238709}d&&(v=_.s_(e,{veType:d}))&&_.m3(e,v)}};
ivw=function(v){if(v){var e=_.NC();_.Ig(e,3854,void 0,{layer:0,parentLayer:4});switch(v){case 1:var d=238714;break;case 2:d=238711;break;case 8:d=238709;break;case 7:d=238713;break;case 3:case 4:case 5:d=238712}d&&(v=_.s_(e,{veType:d}))&&_.m3(e,v)}};
Ovv=function(v){switch(v.latencyType){case 0:_.Xq("consent_primitive_flow");_.zE("cpit",v.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.zE("cpist",v.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.zE("cprtif",v.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.zE("cprtli",v.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.zE("cprt",v.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.zE("cpdt",v.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.zE("cpjct",v.timestampEpochMillis,"consent_primitive_flow")}};
$P9=function(v,e){var d,E,T,S,O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F,g;return _.I(function(Q){switch(Q.nextAddress){case 1:_.qq(Q,2);(E=(d=_.L(v,Ixs))==null?void 0:d.serializedConsentRequest)||(E=(T=_.L(v,bvv))==null?void 0:T.serializedConsentRequest);E&&(S=YKv(_.U0(E)));if(S===void 0)return Q.return();O=mPs(S);O.latencyCallback=Ovv;e&&yX_(O,function(){e.then(function(v3){v3.pauseVideo();(new qKi).increment()})});
return((b=_.L(v,Ixs))==null?void 0:b.consentAction)==="CONSENT_ACTION_PREWARM"||((Y=_.L(v,bvv))==null?void 0:Y.consentAction)==="CONSENT_ACTION_PREWARM"?Q.yield(rXC(O),5):Q.yield(h0O(O),6);case 6:q=Q.yieldResult;r=_.Kp(q,s7);if(r===1){if(((h=_.MT(q,NX,1,s7))==null?void 0:_.oW(h,1))===1||((K=_.MT(q,NX,1,s7))==null?void 0:_.oW(K,1))===2||((k=_.MT(q,NX,1,s7))==null?void 0:_.oW(k,1))===3)_.L(v,bvv)?jb(_.sz("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
jb(_.sz("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));axv((J=_.MT(q,NX,1,s7))==null?void 0:_.oW(J,1),_.df(q,KSw,3,_.El()))}else r===2?(((R=kF(q))==null?void 0:_.oW(R,1))===5?_.L(v,bvv)?jb(_.sz("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):jb(_.sz("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((B=kF(q))==null?void 0:_.oW(B,1))===1||((X=kF(q))==null?void 0:_.oW(X,1))===4?jb(_.sz("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((Z=kF(q))==null?void 0:_.oW(Z,1))===7&&((U=S)==null?void 0:(F=_.W8(U,LN,4))==null?void 0:_.oW(F,4))!==1&&jb(_.sz("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),ivw((g=kF(q))==null?void 0:_.oW(g,1))):jb(_.sz("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));Q.jumpTo(5);break;case 5:_.wk(Q,0);break;case 2:_.jl(Q),jb(_.sz("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.s9(Q)}})};
s79=function(){if(!j7v.has("Worker")){j7v.set("Worker",!0);var v={api:"BROWSER_API_WEB_WORKER"};v.available="Worker"in window?!0:!1;_.tI("apiTest",v)}};
NBt=function(v){return typeof v==="undefined"?"-1":String(Math.ceil(v/1048576))};
oz_=function(v,e){kn9(new LSw(_.L(e,VK9).addToken,_.L(e,VK9).commonToken)).then(function(){_.Iq(v,"yt-invoke-instrument-manager-action-completed")},function(d){_.Iq(v,"yt-invoke-instrument-manager-action-error",d)})};
JXf=function(){var v,e;return(e=(v=window).matchMedia)==null?void 0:e.call(v,"(prefers-reduced-motion: reduce)").matches};
Gni=function(v){var e=_.dk().resolve(_.eG(_.j_));if(e&&e.isAnyTransitionEnabled){var d={};e.viewTransitionCoordinator.registerElement(v,(d.slide="miniplayer-page-transition",d["lockup-to-watch"]="miniplayer-page-transition",d["learning-journey"]="miniplayer-page-transition",d))}};
MKv=function(v,e,d){return{horizontalAlignment:v.x+d.width/2<e.width/2?"west":"east",verticalAlignment:v.y+d.height/2<e.height/2?"north":"south"}};
fxt=function(v,e,d,E,T){T=T===void 0?new _.Pn(0,0):T;v=tK_(v,e,d,E);return new _.Pn(v.x+T.x,v.y+T.y)};
tK_=function(v,e,d,E){return new _.Pn(v==="west"?16:d.width-E.width-16,e==="north"?16:d.height-E.height-16)};
R01=function(v,e){var d=0;v&&(d+=76);e&&(d+=285);return d};
PHv=function(v){return _.xu(v)};
xPs=function(v){var e=1;v=v.split(":");for(var d=[];e>0&&v.length;)d.push(v.shift()),e--;v.length&&d.push(v.join(":"));return d};
BB9=function(v){var e=new _.Tx;return _.tn(e,11,v)};
CHt=function(v){var e={};v=v.getAllResponseHeaders().split("\r\n");for(var d=0;d<v.length;d++)if(!_.IU(v[d])){var E=xPs(v[d]),T=E[0];E=E[1];if(typeof E==="string"){E=E.trim();var S=e[T]||[];e[T]=S;S.push(E)}}return _.f0.map(e,function(O){return O.join(", ")})};
PR=function(v,e){return v.JSC$9787_xhr_?v.JSC$9787_xhr_.getResponseHeader(e):null};
X5t=function(v,e){if(v.isDisposed())throw Error("Ea");v.eS.tg("n");var d=_.Jt(v.eS,function(){return v.p1E([e.vp,e.yYd,e.onO,e.eap])},"n");
v.eS.htf(d.length);v.eS.tN();return d};
Vq=function(v,e,d){Array.isArray(d)||(d=[String(d)]);_.Q_0(v.JSC$10022_queryData_,e,d);return v};
zgs=function(){var v=_.Bv.instance;_.I(function(e){return v.deferredInstallPrompt?e.yield(v.deferredInstallPrompt.prompt(),0):e.jumpTo(0)})};
z01=function(v,e,d){if(_.c3(v))_.wZ(v,e,d);else for(v=_.Whc(v);;){var E=v.next();if(E.done)break;e.call(d,E.value,void 0,v)}};
lxv={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}"]};
lxv={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 Hvw=function(v,e){var d=[];z01(e,function(E){try{var T=_.Yq.prototype.getWrapper.call(this,E,!0)}catch(S){if(S=="Storage: Invalid value was encountered")return;throw S;}T===void 0?d.push(E):_.ShA(T)&&d.push(E)},v);
return d},AXS=function(v,e){Hvw(v,e).forEach(function(d){_.Yq.prototype.remove.call(this,d)},v)},Zvt=function(v){var e=_.ly;
e._minimumZ=Math.max(e._minimumZ,v)},cXC=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],w5f=function(v,e){_.p0(v.vm);v.vm=e},FSs=function(v,e,d,E){v.setState(5);
var T=!!v.xDq&&cXC.includes(_.DV(v.xDq)||"");try{var S=new _.Gx({program:e,globalName:d,ou9:{disable:!_.N("att_web_record_metrics")||!_.N("att_skip_metrics_for_cookieless_domains_ks")&&T,jo:"aGIf"}});S.lsE.then(function(){v.setState(6);E&&E(e)});
w5f(v,S)}catch(O){v.setState(7),O instanceof Error&&_.xf(O)}},Q7s=function(v,e,d,E,T,S){var O=O===void 0?"trayride":O;
d?(v.setState(2),_.Ff(_.ou(d),function(){if(window[O])FSs(v,E,O,T);else{v.setState(3);var b=_.aXU(d),Y=document.getElementById(b);Y&&(_.vj0(b),Y.parentNode.removeChild(Y));_.xf(new _.kL("BL:ULB",d))}},S)):e?(S=_.hz("SCRIPT"),e instanceof _.gu?_.nY(S,e):S.textContent=e,S.nonce=_.Qk(document),document.head.appendChild(S),document.head.removeChild(S),window[O]?FSs(v,E,O,T):(v.setState(4),_.xf(new _.kL("BL:ULBJ")))):_.xf(new _.kL("BL:ULV"))},gz_=function(){this.state=1;
this.vm=null;this.xDq=void 0};
_.W=gz_.prototype;_.W.initialize=function(v,e,d,E){this.xDq=E;if(v.program){var T;E=(T=v.interpreterUrl)!=null?T:null;if(v.interpreterSafeScript)T=_.Ni0(v.interpreterSafeScript);else{var S;T=(S=v.interpreterScript)!=null?S:null}v.interpreterSafeUrl&&(E=_.P8(v.interpreterSafeUrl).toString());Q7s(this,T,E,v.program,e,d)}else _.xf(Error("mf"))};
_.W.isInitialized=function(){return!!this.vm};
_.W.getState=function(){return this.state};
_.W.isLoading=function(){return this.state===2};
_.W.invoke=function(v){v=v===void 0?{}:v;var e;this.vm?e=X5t(this.vm,{vp:v}):e=null;return e};
_.W.dispose=function(){w5f(this,null);this.setState(8)};
_.W.setState=function(v){this.state=v};
var ucC=function(v,e){return v.vm.snapshot(e)},nzQ=function(v,e){var d=_.Wi("botguard_async_snapshot_timeout_ms",3E3);
e=e===void 0?{}:e;d=d===void 0?3E3:d;return v.vm?new Promise(function(E,T){var S=!1,O=_.RM.addJob(function(){S=!0;T(Error("nf"))},1,d);
v.vm?ucC(v,{vp:e}).then(function(b){_.RM.cancelJob(O);S||E(b)}).catch(function(b){_.RM.cancelJob(O);
S||T(b)}):(_.RM.cancelJob(O),E(null))}):Promise.resolve(null)},DPw=["att/log"],z4i;
z4i={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var UPO={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},p5i=function(v,e){return _.kH(v,{mode:"readwrite",enableRetries:!0},function(d){return _.XD7(d,e,"settingEntity")})},vpv=function(v,e,d){return _.kH(v,{mode:"readonly",
enableRetries:!0},function(E){return _.um7(E,e,d)})},eJt=function(v){if(!v.storage)return!1;
a:{if(v.storage){try{var e=v.storage.get("TLPQtimestamp")}catch(d){}v=Number(e);if(!isNaN(v))break a}v=void 0}return v?Date.now()-v<864E5:!1},d0Q=function(v){if(v.storage){try{var e=v.storage.get("TLPQindex")}catch(d){}v=Number(e);
if(!isNaN(v))return v}},Ep_=function(v,e){v.queueProxy&&e.forEach(function(d){if(d.videoId&&d.trackingParams&&v.queueProxy instanceof _.BH){var E=_.zz();
v.queueProxy.attributionData.set(d.videoId,{enqueueingVe:_.Jg(d.trackingParams).getAsJson(),enqueueingCsn:E?E:void 0,clientEnqueueingTimeMs:Math.floor((0,_.E$)()).toString()})}})},TpQ=function(v){var e=_.MVJ(v);
e!=v.currentSnapState_&&(v.currentSnapState_=e,v.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},oN=function(v){this.JSC$13142_networkManager_=v;
this.partCallbacks_=[]};
oN.prototype.getCacheKeyForEndpoint=function(v){return _.kTO(v,!1)};
oN.prototype.onPartsCallback_=function(v){this.partCallbacks_.forEach(function(e){v&&e(v)})};
var JS=function(v,e,d){oN.call(this,v);this.player_=e;this.autoplayData_=d};
_.V(JS,oN);JS.prototype.getCacheKeyForEndpoint=function(v){return _.kTO(v,!!this.autoplayData_)};
JS.prototype.getTempData=function(v,e){e=e.timeBeforeNextVideo;v={itct:v.clickTrackingParams,lact:_.TN(),pbis:e,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(v.autonav=1);return v};
JS.prototype.getXhrParams=function(v){return Object.assign({pbj:"prefetch"},v)};
JS.prototype.getParams=function(v){v={frags:v.fragmentsRequested.join(",")};_.N("kevlar_droppable_prefetchable_requests")&&(v.prefetch=1);return v};
var SR9=function(v){v.playerEvents_.forEach(function(e){v.player.removeEventListener(e.eventName,e.callback)});
v.playerEvents_.length=0},GF=function(v,e,d){this.player=v;
this.JSC$13152_taskManager=e;this.prefetchDelay=d;this.completionResolver_=null;this.playerEvents_=[]};
GF.prototype.start=function(){var v=this;this.completionResolver_=_.gq();_.j9(this.completionResolver_.promise,function(){SR9(v);v.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var WCw=function(v,e,d){v.player.addEventListener(e,d);v.playerEvents_.push({eventName:e,callback:d})},a79={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},irs={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},OrS=function(v,e,d){GF.call(this,v,e,d);this.cueId_="playbackTrigger-"+Math.random()};
_.V(OrS,GF);
OrS.prototype.prepareTrigger=function(v){var e=this,d=this.player.getDuration(),E=this.player.getVideoData(),T=E.isLive&&E.hasProgressBarBoundaries;if(T&&E.progressBarEndPositionUtcTimeMillis){var S=E.progressBarEndPositionUtcTimeMillis/1E3;isNaN(S)||(d=S)}var O=0;this.prefetchDelay>=0?T?E.progressBarStartPositionUtcTimeMillis&&(E=E.progressBarStartPositionUtcTimeMillis/1E3,isNaN(E)||(O=E+this.prefetchDelay)):O=this.prefetchDelay:O=d+this.prefetchDelay;T?this.player.addUtcCueRange(this.cueId_,O,d):
this.player.addCueRange(this.cueId_,O,d);_.j9(v.promise,function(){e.player.removeCueRange(e.cueId_)});
WCw(this,"onCueRangeEnter",function(b){b==e.cueId_&&v.resolve(d-O)})};
var I7s=function(v,e){v.fragmentConfiguration_[e].requiredKeys.every(function(d){return!!v.prefetchedData_[d]})&&(v.validatedFragments_.push(e),e=v.missingFragments_.indexOf(e),e!==-1&&v.missingFragments_.splice(e,1))},br_=function(v){v.prefetchedFragments_.forEach(function(e){I7s(v,e)})},YRi=function(v,e,d){this.pageFragments_=v;
this.prefetchedFragments_=e;this.fragmentConfiguration_=irs;this.prefetchedData_=d;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;br_(this)},m0_=function(){},y1t=function(v){this.JSC$13166_playlistManager_=v};
_.V(y1t,m0_);y1t.prototype.getPrefetchEndpoint=function(){return this.JSC$13166_playlistManager_.getAutoplayEndpoint()};
var qR9=function(v){this.autonavEndpoints_=v};
_.V(qR9,m0_);qR9.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var r19=function(v,e,d,E,T){this.autonavEndpoints=v;this.foregroundTrigger=e;this.backgroundTrigger=d;this.pageType=E;this.isInPlaylist=T},hJ9=function(v,e){if(v.webPrefetchData&&v.webPrefetchData.navigationEndpoints&&v.webPrefetchData.navigationEndpoints.length){v=v.webPrefetchData.navigationEndpoints;
var d=_.L(v[0],_.p2);if(d.watchEndpointSupportedPrefetchConfig&&d.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var E=d.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;d=E.playbackRelativeSecondsPrefetchCondition;d=typeof d==="number"&&Math.abs(d)<e.videoDuration?d:void 0;E=E.countdownUiRelativeSecondsPrefetchCondition;E=typeof E!=="number"||_.N("prefetch_job_config_cleanup_ks")&&e.inPlaylist?void 0:E;if(typeof E==="number")return new r19(v,e.makeUpNextTrigger(E),e.makePlaybackTrigger(E),
"watch",e.inPlaylist);if(typeof d==="number")return new r19(v,e.makePlaybackTrigger(d),null,"watch",e.inPlaylist)}}},KCw=function(v){return v.prefetchJobConfig_.backgroundTrigger?_.Hb(_.Tst)()==0?v.prefetchJobConfig_.backgroundTrigger:v.prefetchJobConfig_.foregroundTrigger:v.prefetchJobConfig_.foregroundTrigger},$0Q=function(v){_.qs(document,"visibilitychange",v.onVisibilityChange_,!1,v)},MX=function(v){oN.call(this,v)};
_.V(MX,oN);MX.prototype.getCacheKeyForEndpoint=function(v){return oN.prototype.getCacheKeyForEndpoint.call(this,v)};
MX.prototype.getTempData=function(){return{}};
MX.prototype.getXhrParams=function(v){return v};
MX.prototype.getParams=function(){return{}};
var jt1=function(v,e,d){var E=v.prefetchDelay*1E3;if(Math.abs(E)>e)d.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var T=E,S=e-E;E<0&&(T=e+E,S=Math.abs(E));var O=v.JSC$13152_taskManager.addJob(function(){d.resolve(S/1E3)},10,T);
d.promise.thenCatch(function(){v.JSC$13152_taskManager.cancelJob(O)})}},stS=function(v,e,d){GF.call(this,v,e,d)};
_.V(stS,GF);stS.prototype.prepareTrigger=function(v){var e=this;WCw(this,"onAutonavCoundownStarted",function(d){jt1(e,d,v)})};
var Npv=function(v){v.pendingPrefetchJob_&&(v.pendingPrefetchJob_.cancel(),v.pendingPrefetchJob_=null)},kUi=function(v,e,d){if(!v.triggeredTargets.has(e)){var E=_.kCM(v,e);
E.action=d;_.svI(v,e,E)}},LCi=function(v){_.OL7();
_.hvH("cpt")&&_.xf(Error("mh"));_.TO.requestAnimationFrame(function(){_.TO.setTimeout(function(){_.zE("cpt");var e=_.AU("vpl"),d=_.AU("cpt");e&&d&&_.zE("ol",Math.max(e,d))})});
try{_.zE("fr_s"),v()}catch(e){_.RI(e)}_.TO.requestAnimationFrame(function(){_.zE("bcp")})},VBv=function(v,e){v.serviceEndpointHandlers.push(e)},ops=function(v,e){e=v.pendingPages_.indexOf(e);
e>-1&&v.pendingPages_.splice(e,1)},J1O=function(v,e){var d=_.P76.indexOf(e);
d>-1&&_.P76.splice(d,1);v.targetPage_==e?(v.abort(),_.BOn(v)):ops(v,e)},GUw=function(v,e,d,E){e={challenge:e};
d&&(e.webResponse=d);return _.XB(v.innertubeTransportService,e,_.Ej(DPw),E)},MBi=function(v,e,d){if(!e.challenge)throw Error("pi");
if(e.botguardData&&e.botguardData.program){var E=new gz_;E.initialize(e.botguardData,function(){nzQ(E,{atr_challenge:e.challenge}).then(function(T){if(!T)throw Error("qi");return GUw(v,e.challenge,T,d)}).catch(function(T){_.xf(T);
return GUw(v,e.challenge,void 0,d)})},void 0)}else GUw(v,e.challenge,void 0,d)},tB9=function(v,e,d){var E={};
e.ids&&(E.ids=[].concat(_.t7(e.ids)));e.engagementType&&(E.engagementType=e.engagementType);return _.XB(v.innertubeTransportService,E,_.Ej(_.YFA),d).then(function(T){if(!T)throw new _.kL("GetAttestationChallenge returned falsy");MBi(v,T,d)}).thenCatch(function(T){_.RI(T)})},f7S=function(v,e,d){return new _.yf(function(E,T){var S;
return _.I(function(O){if(O.nextAddress==1){var b=O.yield,Y=e.engagementType,q=e.ids,r={};q=_.a(q!=null?q:[]);for(var h=q.next();!h.done;h=q.next())h=h.value,h.encryptedVideoId?r.encryptedVideoId=h.encryptedVideoId:h.externalChannelId?r.externalChannelId=h.externalChannelId:h.commentId?r.commentId=h.commentId:h.externalOwnerId?r.externalOwnerId=h.externalOwnerId:h.artistId?r.artistId=h.artistId:h.playlistId?r.playlistId=h.playlistId:h.externalPostId?r.externalPostId=h.externalPostId:h.shareId&&(r.shareId=
h.shareId);return b.call(O,O29(Y,r),2)}S=O.yieldResult;if(!S.challenge)return _.xf(Error("ri")),tB9(v,e,d).then(E,T),O.return();b=S;Y={challenge:b.challenge};Y.webResponse=b.webResponse;Y.engagementType=e.engagementType;Y.ids=e.ids;_.XB(v.innertubeTransportService,Y,_.Ej(DPw),d).then(E,T);_.s9(O)})})},Y_9=function(v,e){var d,E,T,S;
_.I(function(O){if(O.nextAddress==1){d=_.L(e,_.uhJ);if(!(d&&d.listId&&v.response&&v.response.playingVideoId)||v.listId!==d.listId)return O.return();v.index===void 0&&(v.index=0);return O.yield(_.flB(v.JSC$12894_playlistNetworkManager,d.listId,v.index,v.response.playingVideoId),2)}E=O.yieldResult;if(!E)return O.return();T=E.playlistId;S=E.playlistPanelRenderer;v.setPlaylistData(T,S,E.autoplayRenderer);_.s9(O)})},RJC=function(v,e,d){var E=v.getParams(d),T=_.fxM(e,E),S=v.getTempData(e,d);
S.endpoint=JSON.stringify(e);_.N("enable_unknown_lact_fix_on_html5")&&(_.dk().resolve(_.oZ),S.lact=_.TN());var O={headers:{"X-YouTube-STS":_.Bb("STS"),"x-youtube-csoc":1}};_.Ez(T,S);return new _.yf(function(b,Y){var q=v.getXhrParams(E),r;_.N("kevlar_cache_on_ttl_player")&&(r=_.kK.instance);r&&_.vOI(r,e)?_.iKA(r,e,S,window.location.href).then(function(h){h?b(h):Y()},Y):_.M3M(v.JSC$13142_networkManager_,e,q,v.onPartsCallback_.bind(v),O).then(function(h){h?b(h):Y()},Y)})},PwS=function(v,e){v.triggerPromise_=
e.start();
v.triggerPromise_.then(function(d){var E=v.prefetchEndpointProvider_.getPrefetchEndpoint();if(E){var T=a79[v.prefetchJobConfig_.pageType].prefetchedFragments;v.prefetchRequestPromise_=RJC(v.JSC$13178_networkPrefetchRequest_,E,{fragmentsRequested:T,timeBeforeNextVideo:d});v.prefetchResponseCacheKey_=v.JSC$13178_networkPrefetchRequest_.getCacheKeyForEndpoint(E);$0Q(v);v.prefetchRequestPromise_.then(function(S){v.storePrefetchedDataCallback_(v.prefetchResponseCacheKey_,S);if(_.N("web_prefetch_preload_video")&&
T.length===1&&T[0]==="pl"&&S&&!S.playerAds&&!S.adPlacements){var O=_.L(E,_.Go),b=O!=null,Y={raw_player_response:S,watch_endpoint:O};(S=_.dk().resolve(b?_.mxB:_.a7))&&E&&S.then(function(q){b&&_.N("web_queue_preload_video")?(Y.prefer_gapless=!0,q.queueNextVideo(Y)):q.preloadVideoByPlayerVars(Y)})}})}})},tS=function(v,e,d,E){this.prefetchEndpointProvider_=v;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=e;this.prefetchJobConfig_=d;this.JSC$13178_networkPrefetchRequest_=E;this.prefetchResponseCacheKey_=null};
tS.prototype.enqueue=function(){this.triggerPromise_||(PwS(this,KCw(this)),_.MC(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
tS.prototype.resolve=function(){this.cancel()};
tS.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.");$0Q(this)};
tS.prototype.onVisibilityChange_=function(){var v=this;_.Hb(_.Tst)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){v.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||PwS(this,KCw(this))};
var x0C=function(v,e,d,E,T){e&&(e==null?0:e.videoId)&&d&&d.entries&&_.N("kevlar_enable_shorts_prefetch_in_sequence")&&(Npv(v),e=d.entries.map(function(S){var O;return(O=_.L(S.command,_.Go))==null?void 0:O.videoId}).indexOf(e.videoId),d=d.entries[e+1],d!=null&&d.command&&!_.L(d==null?void 0:d.command,_.PD)&&(E=new r19([d.command],new OrS(E,_.RM,1),null,"shorts",!1),v.pendingPrefetchJob_=new tS(new qR9(E.autonavEndpoints),function(){return!1},E,new MX(T)),v.pendingPrefetchJob_.enqueue()))},Bp9=function(v,
e,d,E,T,S){var O=_.p6.getInstance();
if(!_.N("block_all_player_prefetch_requests")){Npv(v);var b=!!d.getPlaylistId(),Y=d.getVideoData().isLive&&d.getVideoData().hasProgressBarBoundaries;if((O.getState()==2||b||Y)&&(!d.getVideoData().isLive||Y)){O={inPlaylist:b,videoDuration:d.getDuration(),makeUpNextTrigger:function(r){return new stS(d,_.RM,r)},
makePlaybackTrigger:function(r){return new OrS(d,_.RM,r)}};
var q=hJ9(e,O);q&&(v.pendingPrefetchJob_=new tS(q.isInPlaylist?new y1t(T):new qR9(q.autonavEndpoints),function(r,h){h=new YRi(a79[q.pageType].pageFragments,a79[q.pageType].prefetchedFragments,h);return _.YDc(h)?(v.prefetchCache_.set(r,h),!0):!1},q,new JS(E,d,S,T)),v.pendingPrefetchJob_.enqueue())}}},Cws=function(){var v=_.cH();
v.signals.parkOrScheduleJob(function(){var e=v.storage;if(e.storage)if(eJt(e)){var d=e.getPlaylistId();e=d0Q(e);d=!!d&&e!==void 0}else e.clear(),d=!1;else d=!1;if(d){d=v.pageManager.isOnWatch();a:{var E=v.storage;if(E.storage&&eJt(E)&&(e=E.getPlaylistId(),E=d0Q(E),e&&E!==void 0)){d={recoverPlaylistCommand:{listId:e,index:E,openMiniplayer:!d,openListPanel:d,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}d=void 0}d&&_.fl(v.JSC$12894_actionRouter,[d],null)}},0,"ma")},XjS=function(v,e,d,E,T,S){var O=
_.bH(7111);
_.bj(v.JSC$18288_screenManager,O,S?_.Jg(S):void 0);_.m3(v.JSC$18288_screenManager,O,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:E,offlineId:e,offlineabilityFormatType:d,isDefaultFormatType:T==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:T}})},zJQ=function(v,e,d,E,T){var S,O,b,Y,q;
return _.I(function(r){if(r.nextAddress==1)return r.yield(v.JSC$18288_playerApiPromise,2);S=r.yieldResult;XjS(v,e,d,"OFFLINE_OBJECT_TYPE_PLAYLIST",E,T);if(b=_.dxi[v.entityTypeMap.listEntityType])q={},O=(q[b]={maximumDownloadQuality:(Y=d)!=null?Y:void 0},q);return r.yield(S.queueOfflineAction(e,v.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",O),0)})},l79=function(v,e){var d,E,T,S;
return _.I(function(O){if(O.nextAddress==1)return O.yield(v.JSC$18288_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3){d=O.yieldResult;if(!d)return _.xf(new _.kL("PES is undefined")),O.return();E=_.rg(e,"downloadStatusEntity");return O.yield(vpv(d,E,"downloadStatusEntity"),3)}T=O.yieldResult;return O.return((S=T)==null?void 0:S.downloadState)})},Hrv=function(v,e,d,E,T){var S,O,b,Y,q,r;
return _.I(function(h){switch(h.nextAddress){case 1:return h.yield(v.JSC$18288_playerApiPromise,2);case 2:S=h.yieldResult;XjS(v,e,d,"OFFLINE_OBJECT_TYPE_VIDEO",E,T);if(b=_.dxi[v.entityTypeMap.singleEntityType])q={},O=(q[b]={maximumDownloadQuality:(Y=d)!=null?Y:void 0},q);return h.yield(l79(v,e),3);case 3:r=h.yieldResult;if(r!=="DOWNLOAD_STATE_USER_DELETED"){h.jumpTo(4);break}return h.yield(v.deleteVideo(e),4);case 4:return h.yield(S.queueOfflineAction(e,v.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
O),0)}})},A1w=function(v,e,d,E,T){return _.I(function(S){return S.nextAddress==1?S.yield(v.deleteVideo(e,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):S.yield(Hrv(v,e,d,E,T),0)})},Zrf=function(v,e,d){var E,T;
return _.I(function(S){if(S.nextAddress==1)return S.yield(v.JSC$18288_playerApiPromise,2);E=S.yieldResult;T=_.rg(e,"mainVideoDownloadStateEntity");return S.yield(E.updateDownloadState(T,d),0)})},xe9=function(v){var e=_.dk().resolve(_.m9);
return _.I(function(d){if(d.nextAddress==1)return e.previousDownloadStateForVideo[v]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&e.previousDownloadStateForVideo[v]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?d.jumpTo(2):d.yield(e.resumeVideoDownload(v),2);if(d.nextAddress!=4)return d.yield(Zrf(e,v,e.previousDownloadStateForVideo[v]),4);delete e.previousDownloadStateForVideo[v];_.s9(d)})},Rgs=function(v,e){var d;
return _.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$18288_playerApiPromise,2);d=E.yieldResult;return E.yield(d.queueOfflineAction(e,v.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},MM9=function(){var v=_.dk().resolve(_.m9),e,d;
return _.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$18288_playerApiPromise,2);if(E.nextAddress!=3)return e=E.yieldResult,d={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},E.yield(e.queueOfflineAction("!*$_ALL_ENTITIES_!*$",v.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",d),3);var T=v.JSC$18288_commandHandler,S=T.resolveCommand,O=_.sz("DELETING_ALL",void 0,"Downloads are being deleted");S.call(T,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.WK(O)}},
popupType:"TOAST"}});_.s9(E)})},c1C=function(v,e){var d,E,T,S,O,b;
return _.I(function(Y){if(Y.nextAddress==1)return Y.yield(v.JSC$18288_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return d=Y.yieldResult,d?Y.yield(vpv(d,_.RG,"downloadsPageViewConfigurationEntity"),3):(_.xf(new _.kL("PES is undefined")),Y.return());T=(E=Y.yieldResult)!=null?E:{};b=(O=(S=T)==null?void 0:S.downloadsUpsellBannerVisibility)!=null?O:{};return b.visibleWithConnection?Y.yield(e.refreshAllStaleEntities(0),0):Y.jumpTo(0)})},wj_=function(v){var e,d;
return _.I(function(E){if(E.nextAddress==1)return E.yield(v.JSC$18288_prefStorage,2);e=E.yieldResult;return E.return((d=e)==null?void 0:d.get("sdois"))})},FC1=function(v){var e,d,E,T,S,O;
return _.I(function(b){if(b.nextAddress==1)return b.yield(v.JSC$18288_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3){e=b.yieldResult;if(!e)return _.xf(new _.kL("PES is undefined")),b.return();d=_.rg("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return b.yield(vpv(e,d,"settingEntity"),3)}E=b.yieldResult;return b.return((O=(T=E)==null?void 0:(S=T.settingOptionValue)==null?void 0:S.boolValue)!=null?O:!1)})},QtQ=function(v,e){var d,E,T,S;
return _.I(function(O){switch(O.nextAddress){case 1:return((d=e)==null?void 0:d.formatType)===void 0?O.return():O.yield(v.JSC$18288_prefStorage,2);case 2:E=O.yieldResult;if(E===void 0)return O.return();if(((T=e)==null?void 0:T.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return O.yield(E.set("lmqf",e.formatType),8);if(((S=e)==null?void 0:S.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){O.jumpTo(0);break}return O.yield(E.set("lmqf",e.formatType),6);case 6:return O.yield(E.set("lmqflst",
Math.floor((0,_.E$)())),0);case 8:return O.yield(E.remove("lmqflst"),0)}})},gpi=function(v){var e,d;
return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(v.JSC$18288_prefStorage,2);case 2:e=E.yieldResult;if(!e){E.jumpTo(3);break}return E.yield(e.get("lmqflst"),4);case 4:if(d=E.yieldResult,d!==void 0)return E.return(d);case 3:return E.return(0)}})},ubi=function(v){var e,d;
return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(v.JSC$18288_prefStorage,2);case 2:e=E.yieldResult;if(e===void 0){E.jumpTo(3);break}return E.yield(e.get("lmqf"),4);case 4:if(d=E.yieldResult,d!==void 0)return E.return(d);case 3:return E.return("SD")}})},ZMv=function(v,e,d){var E,T,S,O,b,Y,q,r;
_.I(function(h){switch(h.nextAddress){case 1:return h.yield(QtQ(v,(E=e)==null?void 0:E.actionParams),2);case 2:T=e.playlistId;if(!T)return h.return();if(e.action==="ACTION_ADD")return((O=e.actionParams)==null?0:O.formatType)?h.yield(zJQ(v,T,e.actionParams.formatType,(r=e.actionParams)==null?void 0:r.settingsAction,d),0):h.yield(v.offlineWebClientEligibility,14);if(e.action==="ACTION_REMOVE_WITH_PROMPT"){var K=v.JSC$18288_commandHandler,k=K.resolveCommand,J=_.Bb("INNERTUBE_CLIENT_NAME");var R=J===
"WEB_REMIX"?_.sz("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.sz("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var B=J==="WEB_REMIX"?[_.sz("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];J=J==="WEB_REMIX"?_.sz("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.sz("DELETE",void 0,"Delete");var X=_.sz("CANCEL",void 0,"Cancel");R=I_i(R,B,J,X,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:T});k.call(K,{openPopupAction:R});return h.return()}if(e.action===
"ACTION_REMOVE")return h.yield(Rgs(v,T),0);if(e.action!=="ACTION_SYNC"){h.jumpTo(0);break}return h.yield(v.JSC$18288_playerApiPromise,9);case 9:return S=h.yieldResult,h.yield(S.queueOfflineAction(T,v.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return b=h.yieldResult,h.yield(ubi(v),15);case 15:return Y=h.yieldResult,h.yield(gpi(v),16);case 16:q=h.yieldResult,e.onAddCommand&&v.JSC$18288_commandHandler.resolveCommand(e.onAddCommand,{form:{preferredFormatType:Y,
offlineWebClientEligibility:b,lastOfflineQualitySettingsSavedMs:q.toString()}}),h.jumpTo(0)}})},HM9=function(v,e,d){var E,T,S,O,b,Y,q,r,h,K,k,J,R,B;
_.I(function(X){switch(X.nextAddress){case 1:return X.yield(QtQ(v,(E=e)==null?void 0:E.actionParams),2);case 2:T=e.videoId;if(!T)return X.return();if(e.action==="ACTION_REMOVE_WITH_PROMPT"){var Z=v.JSC$18288_commandHandler,U=Z.resolveCommand,F=_.Bb("INNERTUBE_CLIENT_NAME");var g=F==="WEB_REMIX"?_.sz("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.sz("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Q=F==="WEB_REMIX"?[_.sz("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];F=F==="WEB_REMIX"?_.sz("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.sz("DELETE",void 0,"Delete");var v3=_.sz("CANCEL",void 0,"Cancel");g=I_i(g,Q,F,v3,{signal:"DELETE_DOWNLOAD",targetId:T});U.call(Z,{openPopupAction:g});return X.return()}if(e.action==="ACTION_ADD")return((K=e.actionParams)==null?0:K.formatType)?X.yield(Hrv(v,T,e.actionParams.formatType,(B=e.actionParams)==null?void 0:B.settingsAction,d),0):X.yield(v.offlineWebClientEligibility,23);if(e.action==="ACTION_RETRY")return X.yield(ubi(v),
19);if(e.action==="ACTION_PAUSE")return X.yield(v.pauseVideoDownload(T),0);if(e.action==="ACTION_RESUME")return X.yield(v.resumeVideoDownload(T),0);if(e.action!=="ACTION_REMOVE"){X.jumpTo(0);break}return X.yield(l79(v,T),13);case 13:return S=X.yieldResult,v.previousDownloadStateForVideo[T]=(O=S)!=null?O:"DOWNLOAD_STATE_UNKNOWN",X.yield(Zrf(v,T,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(v.previousDownloadStateForVideo[T]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&v.previousDownloadStateForVideo[T]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){X.jumpTo(15);break}return X.yield(v.pauseVideoDownload(T),15);case 15:Z=_.sz("DELETED_VIDEO",void 0,"Video deleted from downloads.");U=_.sz("UNDO_ACTION",void 0,"Undo");g=_.sz("CLOSE",void 0,"Close");b={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.WK(Z),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.WK(U),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:T}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:Z+" "+U}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:T}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:g}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};v.JSC$18288_commandHandler.resolveCommand(b);
X.jumpTo(0);break;case 19:Y=X.yieldResult;Y==="UNKNOWN_FORMAT_TYPE"&&(Y="SD");q="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((r=e.actionParams)==null?0:r.formatType)Y=e.actionParams.formatType,q=(h=e.actionParams)==null?void 0:h.settingsAction;return X.yield(A1w(v,T,Y,q,d),20);case 20:return X.return();case 23:return k=X.yieldResult,X.yield(ubi(v),24);case 24:return J=X.yieldResult,X.yield(gpi(v),25);case 25:R=X.yieldResult,e.onAddCommand&&v.JSC$18288_commandHandler.resolveCommand(e.onAddCommand,
{form:{preferredFormatType:J,offlineWebClientEligibility:k,lastOfflineQualitySettingsSavedMs:R.toString()}}),X.jumpTo(0)}})},nps=function(v,e){var d,E,T,S,O,b,Y;
return _.I(function(q){if(q.nextAddress==1)return q.yield(v.JSC$18288_persistentStorePromiseAccessor(),2);d=q.yieldResult;if(!d)return _.xf(new _.kL("PES is undefined")),q.return();if((E=e)==null||!E.settingItemId)return q.return();T=e;S=T.settingItemId;O=T.boolValue;b=_.rg(S,"settingEntity");Y={key:b,settingOptionValue:{boolValue:O}};return q.yield(p5i(d,Y),0)})},D09=function(v,e){var d,E,T,S,O,b,Y;
return _.I(function(q){switch(q.nextAddress){case 1:return q.yield(v.JSC$18288_prefStorage,2);case 2:return d=q.yieldResult,E=_.LB(),q.yield(v.JSC$18288_persistentStorePromiseAccessor(),3);case 3:return T=q.yieldResult,d?T?q.yield(d.get("sdois"),4):(_.xf(new _.kL("PES is undefined")),q.return()):(_.xf(new _.kL("prefStorage is undefined")),q.return());case 4:S=q.yieldResult;b=(O=e)==null?void 0:O.boolValue;b===void 0||_.N("kevlar_set_sd_enabled_flag_killswitch")||_.Va(0,197,!0);S===void 0&&b===void 0&&
(b=!1);if(b===void 0){q.jumpTo(0);break}return q.yield(d.set("sdois",b),6);case 6:return _.N("kevlar_set_sd_enabled_flag_killswitch")||(_.Va(0,196,b),E.save()),Y={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:b},q.yield(nps(v,Y),0)}})},U0O=function(v,e,d){var E,T,S,O,b;
return _.I(function(Y){switch(Y.nextAddress){case 1:return Y.yield(wj_(v),2);case 2:return E=Y.yieldResult,Y.yield(D09(v,d),3);case 3:return Y.yield(wj_(v),4);case 4:return T=Y.yieldResult,S=T!==E,Y.yield(FC1(v),5);case 5:O=Y.yieldResult&&!_.N("kevlar_modern_downloads_page");if((b=!T&&!O)||S)return Y.yield(e.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);Y.jumpTo(0)}})},C2w=function(){var v=_.dk().resolve(_.m9),
e;
_.I(function(d){switch(d.nextAddress){case 1:return d.yield(v.JSC$18288_playerApiPromise,2);case 2:e=d.yieldResult;if(!_.N("kevlar_force_refresh_smart_downloads")){d.jumpTo(3);break}return d.yield(e.refreshAllStaleEntities(0),4);case 4:return d.return();case 3:return d.yield(e.refreshAllStaleEntities(),5);case 5:return d.yield(U0O(v,e),6);case 6:if(_.N("enable_download_pep_for_premium_countries_web"))return d.yield(c1C(v,e),0);d.jumpTo(0)}})},waf=function(v,e){var d,E;
_.I(function(T){switch(T.nextAddress){case 1:return T.yield(v.JSC$18288_playerApiPromise,2);case 2:d=T.yieldResult;switch((E=e)==null?void 0:E.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(U0O(v,d,e),6);case 6:T.jumpTo(0);break;case 4:return T.yield(nps(v,e),7);case 7:T.jumpTo(0)}})},pjO=function(v,e){var d,E,T;
return _.I(function(S){if(S.nextAddress==1)return S.yield(v.JSC$18288_persistentStorePromiseAccessor(),2);if(S.nextAddress!=3){d=S.yieldResult;if(!d)return _.xf(new _.kL("PES is undefined")),S.return(!1);if(!e)return S.return(!1);E=_.rg(e,"mainVideoEntity");return S.yield(vpv(d,E,"mainVideoEntity"),3)}T=S.yieldResult;return S.return(T!==void 0)})},QZt=function(v){var e=_.dk().resolve(_.m9),d,E,T,S,O,b,Y,q,r,h,K;
_.I(function(k){switch(k.nextAddress){case 1:return k.yield(e.JSC$18288_playerApiPromise,2);case 2:d=k.yieldResult;T=(E=v)==null?void 0:E.actions;if(!T)return k.return();S=_.a(T);O=S.next();case 3:if(O.done){k.jumpTo(0);break}b=O.value;q=Y=void 0;if(!(((Y=b)==null?0:Y.entityKey)&&((q=b)==null?0:q.actionType))){k.jumpTo(4);break}r=_.bq(b.entityKey);h=r.entityId;K=r.entityType;return k.yield(d.queueOfflineAction(h,K,b.actionType),4);case 4:O=S.next(),k.jumpTo(3)}})},v51=function(v,e){var d,E,T,S,O;
return _.I(function(b){if(b.nextAddress==1)return b.yield(v.JSC$18288_prefStorage,2);if(b.nextAddress!=3)return(d=b.yieldResult)?b.yield(d.get("psi"),3):b.return();E=b.yieldResult;O={isPaused:e,lastSyncTimestamp:(S=(T=E)==null?void 0:T.lastSyncTimestamp)!=null?S:"0"};return b.yield(d.set("psi",O),0)})},njw=function(v){var e=_.dk().resolve(_.m9),d,E,T,S,O,b,Y,q;
return _.I(function(r){switch(r.nextAddress){case 1:return r.yield(e.JSC$18288_playerApiPromise,2);case 2:d=r.yieldResult;T=((E=v)==null?void 0:E.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((b=v)==null?void 0:b.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":S="!*$_ALL_ENTITIES_!*$";O="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return r.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return r.jumpTo(4)}r.jumpTo(5);break;case 3:return r.yield(v51(e,T),6);case 6:r.jumpTo(5);break;case 4:return r.yield(pjO(e,(Y=v)==null?void 0:Y.videoId),7);case 7:r.yieldResult&&(S=(q=v)==null?void 0:q.videoId,O="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");r.jumpTo(5);break;case 5:if(S&&O)return r.yield(d.queueOfflineAction(S,"videoPlaybackPositionEntity",O),0);r.jumpTo(0)}})},eow=function(v,e){var d;
e!==1||((d=v.currentPersistentToast)==null?0:d.isOpened())?v.openToast():v.currentPersistentToast=void 0},d3v=function(v,e){var d;
return(d=v.transitionTasksMap.get(e))!=null?d:[]},E5s=function(v,e){var d=[];
v.elementTasksMap.forEach(function(E){(E=E.get(e))&&d.push(E)});
return d},TQ_=function(v,e,d,E,T){T=T===void 0?{}:T;
var S=e.defaultViewTransitionOptions;return Object.assign({},S,T,{beforeTransition:function(){E.forEach(function(q){q.beforeTransition()});
var O;(O=S.beforeTransition)==null||O.call(S);var b,Y;(Y=(b=T).beforeTransition)==null||Y.call(b);d.forEach(function(q){q.beforeTransition()})},
afterTransition:function(){E.forEach(function(q){q.afterTransition()});
var O;(O=S.afterTransition)==null||O.call(S);var b,Y;(Y=(b=T).afterTransition)==null||Y.call(b);d.forEach(function(q){q.afterTransition()})},
ignoredErrors:v.config.ignoredErrors})},Sk9=function(v,e,d){v.transitionTasksMap.has(e)?v.transitionTasksMap.get(e).push(d):(v=new _.kL("Transition task registered for unknown transition type",e),_.RI(v))},WXt=function(v,e,d){if(v.transitionTasksMap.has(e)){var E=v.transitionTasksMap.get(e).filter(function(T){return T!==d});
v.transitionTasksMap.set(e,E)}},a99=function(v,e){var d=d3v(v,e);
d=_.a(d);for(var E=d.next();!E.done;E=d.next())E=E.value,E.runOnce&&WXt(v,e,E);v.elementTasksMap.forEach(function(T,S){T.forEach(function(O,b){O.runOnce&&e===b&&(T.delete(b),T.size===0&&v.elementTasksMap.delete(S))})})},iOw=function(v,e,d){var E,T,S,O,b,Y,q,r,h;
_.I(function(K){if(K.nextAddress==1){if(v.config.disableAllTransitions)return K.return(e());if((E=d)==null||!E.transitionType)return K.return(_.pwC(e,Object.assign({},(T=d)==null?void 0:T.viewTransitionOptions,{ignoredErrors:v.config.ignoredErrors})));S=d;O=S.transitionType;b=S.viewTransitionOptions;Y=v.config.transitionConfigs.get(O);if(!Y)return K.return(e());q=d3v(v,O);r=E5s(v,O);h=_.pwC(e,TQ_(v,Y,q,r,b));return K.yield(h,2)}a99(v,O);_.s9(K)})},OO9=function(){var v,e,d,E;
return _.I(function(T){if(T.nextAddress==1)return v=navigator,(e=v.storage)!=null&&e.persisted?T.yield((d=v.storage)==null?void 0:d.persisted(),2):T.return("PERSISTED_STATE_NOT_SUPPORTED");E=T.yieldResult;return T.return(E?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},I9s=function(){var v,e,d,E;
return _.I(function(T){if(T.nextAddress==1)return v=navigator,(e=v.storage)!=null&&e.persist?T.yield((d=v.storage)==null?void 0:d.persist(),2):T.return("PERSISTED_STATE_NOT_SUPPORTED");E=T.yieldResult;return T.return(E?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},bOC=function(){var v,e;
return _.I(function(d){switch(d.nextAddress){case 1:return v="PERSISTED_STATE_NOT_SUPPORTED",_.qq(d,2),d.yield(OO9(),4);case 4:v=d.yieldResult;if(v!=="PERSISTED_STATE_NOT_GRANTED"){d.jumpTo(5);break}return d.yield(I9s(),6);case 6:v=d.yieldResult;case 5:_.wk(d,3);break;case 2:e=_.jl(d),e instanceof Error&&_.RI(e);case 3:return _.tI("persistentStorageStateChecked",{persistedState:v}),d.return(v)}})},Ykf=function(v,e){var d=[],E=!1;
e=_.a(e);for(var T=e.next();!T.done;T=e.next()){T=v.moduleRegistry[T.value];var S=void 0,O=void 0;((S=T)==null?0:S.isFetching)&&((O=T)==null?0:O.resolver)?(d.push(T.resolver.promise),E=!0):(T=new _.r1,T.resolve(void 0),d.push(T.promise))}return E?Promise.all(d):void 0},m3i=function(v,e,d){if(v.isAnyTransitionEnabled){var E={beforeTransition:function(){d(!0);
e.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){e.style.viewTransitionName&&(e.style.viewTransitionName="",d(!1))}};
Sk9(v.viewTransitionCoordinator,"slide",E);Sk9(v.viewTransitionCoordinator,"lockup-to-watch",E);Sk9(v.viewTransitionCoordinator,"watch-next-appears",E);Sk9(v.viewTransitionCoordinator,"learning-journey",E)}},yRw=function(v,e){v.isBrowseTransitionEnabled?iOw(v.viewTransitionCoordinator,e,{transitionType:"slide"}):(e(),Promise.resolve())},qk9=function(v,e){v.isLockupToWatchTransitionEnabled?iOw(v.viewTransitionCoordinator,e,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){v.registeredLockupThumbnail=void 0;v.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(e(),Promise.resolve())},rRi=function(v,e){v.isLockupToWatchTransitionEnabled?iOw(v.viewTransitionCoordinator,e,{transitionType:"watch-next-appears"}):(e(),Promise.resolve())},hoQ=function(v,e){v.isLearningJourneyTransitionEnabled?iOw(v.viewTransitionCoordinator,e,{transitionType:"learning-journey"}):(e(),Promise.resolve())},KXO=function(v,e,d){if(v.isInitialized()){var E=
sH(d),T=E==="watch";
E=E==="shorts";var S=sH(e)==="watch";if(T)S||(v.backgroundPageData=e),v.watchPipMode&&S||v.deactivate(d.endpoint);else if(E){if(sH(e)!=="shorts"){var O;(O=v.getPlayerElement())==null||O.pause()}}else S&&!v.watchPipMode&&(Yw1(e,d)?(v.watchWhileMode&&_.I4f(v,!1),_.TfC(v,e)):v.isMiniplayerActive()&&v.watchWhileMode&&v.deactivate());S&&_.Yli(v);v.shortsPipMode&&!E&&(window.focus(),v.deactivate());if(v.pictureInPictureEnabled())if(E&&v.shortsPipEnabled||T&&v.watchPipEnabled)_.rL0(v.handleMediaSessionPipActivation);
else if(!v.isMiniplayerActive()&&(v.shortsPipEnabled||v.watchPipEnabled)&&window.documentPictureInPicture&&_.M7()&&_.ysL("Chromium")>=120){v=_.qyj().mediaSession;try{v.setActionHandler("enterpictureinpicture",null)}catch(b){}}}},$3S=function(v,e){var d,E;
_.I(function(T){if(T.nextAddress==1){if(!v||!v.navigationEndpoint)return T.return();_.Ke().lockupActivation=!0;var S;e?S=_.pQ(_.sz("QUEUE",void 0,"Queue")):S=v.longBylineText;E=(d=S)&&v.title?{miniplayerTitle:v.title,miniplayerSubtitle:d,playlistData:null}:void 0;return T.yield(_.s8n(_.dk().resolve(_.P0),v.navigationEndpoint,!0,E),2)}_.Ke().userActivation=!0;_.s9(T)})},O1i=function(v,e){var d,E,T,S,O,b;
_.I(function(Y){if(Y.nextAddress==1){d=_.L(e,_.gNn);if(!d||!d.listId)return Y.return();v.index=d.index||v.index||0;E=v.response&&v.response.playingVideoId||void 0;return Y.yield(_.flB(v.JSC$12894_playlistNetworkManager,d.listId,v.index,E),2)}T=Y.yieldResult;if(!T)return Y.return();S=T.playlistId;O=T.playlistPanelRenderer;!v.queueProxy&&S&&O&&S.startsWith("TLPQ")&&(v.queueProxy=new _.BH(v.JSC$12894_playlistNetworkManager,S,v.setPlaylistData.bind(v),v.clearQueue.bind(v),_.qF7(O),v.storage));if(d.openMiniplayer&&
(b=_.ru7(O))&&!v.pageManager.isOnWatch()){var q=b,r=d.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";v.isMiniplayerActive()?v.openToast(q):$3S(q,r)}v.setPlaylistData(S,O,T.autoplayRenderer);_.s9(Y)})},W5w=function(v,e){var d=_.cH();
d.index===void 0&&(d.index=0);d.temporaryItems.push.apply(d.temporaryItems,_.t7(v));if((e.videoId||e.videoIds)&&d.index!==void 0&&e.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!d.queueProxy){var E=[];if(d.response){var T=_.dk().resolve(_.P0).isMiniplayerActive();if(d.response.playlistPanelRenderer&&d.response.playlistId&&!d.response.playlistId.startsWith("TLPQ")){if(d.pageManager.isOnWatch()||T)E=_.qF7(d.response.playlistPanelRenderer)}else d.response.playingVideoId&&!e.openMiniplayer?E.push(d.response.playingVideoId):
T&&d.response.playingVideoId&&e.openMiniplayer&&E.push(d.response.playingVideoId)}d.queueProxy=new _.BH(d.JSC$12894_playlistNetworkManager,"",d.setPlaylistData.bind(d),d.clearQueue.bind(d),E,d.storage);d.queueProxy.JSC$12840_setCurrentIndex(d.index)}d.queueProxy.addVideos(e.videoIds||[e.videoId],e)}Ep_(d,v);d.response&&_.wo(d,_.FB(d,d.response.autoplayRenderer));d.pageManager.isOnWatch()?d.isMiniplayerActive()&&d.openToast(v[0]):(v=v[0],e=e.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",d.isMiniplayerActive()?
d.openToast(v):$3S(v,e))},jaw=function(v){var e=_.wn(v);
if(e=="object"||e=="array"){if(typeof v.clone==="function")return v.clone();if(typeof Map!=="undefined"&&v instanceof Map)return new Map(v);if(typeof Set!=="undefined"&&v instanceof Set)return new Set(v);e=e=="array"?[]:{};for(var d in v)e[d]=jaw(v[d]);return e}return v},fN=function(v,e){return _.I0W(_.mL(v,e,void 0,_.Yu))},RN=function(v,e){return _.d9(_.mL(v,e,void 0,_.Yu))},Pp=function(v,e){return _.f0$(_.mL(v,e,void 0,_.Yu))},xF=function(v,e){return _.mL(v,e,void 0,_.Yu,_.i7U)},sai=_.TD(function(v,
e,d){if(v.nextWireType_!==0)return!1;
_.Sm(e,d,_.PM(v.decoder_,_.WgS));return!0},_.I$,_.XZ),NQi=_.TD(function(v,e,d,E){if(v.nextWireType_!==0)return!1;
_.hn(e,d,E,_.PM(v.decoder_,_.WgS));return!0},_.I$,_.XZ),kp1=_.TD(function(v,e,d){if(v.nextWireType_!==1)return!1;
var E=v.decoder_;v=_.BM(E);E=_.BM(E);v=_.lM(v,E);_.Sm(e,d,v);return!0},_.GDO,_.RpW),LX9=_.TD(function(v,e,d){if(v.nextWireType_!==5)return!1;
_.Sm(e,d,_.BM(v.decoder_));return!0},function(v,e,d){e=_.mit(e);
e!=null&&(_.i6(v,d,5),_.OJ(v.encoder_,e))},_.frU),Vd9=_.TD(function(v,e,d){if(v.nextWireType_!==0)return!1;
v=_.Yn$(v.decoder_);_.Sm(e,d,v===!1?void 0:v);return!0},_.MmU,_.JJt),o5i=_.TD(function(v,e,d){if(v.nextWireType_!==2)return!1;
v=_.KKt(v);_.Sm(e,d,v===""?void 0:v);return!0},_.fBW,_.G$j),JRw=_.TD(function(v,e,d){if(v.nextWireType_!==2)return!1;
v=_.$2s(v);_.Sm(e,d,v===_.oE()?void 0:v);return!0},_.P60,_.B4W),GpQ=_.$fs(function(v,e,d){if(v.nextWireType_!==0&&v.nextWireType_!==2)return!1;
e=_.GQO(e,e[_.aE]|0,d);v.nextWireType_==2?_.jyO(v,PHv,e):e.push(_.xu(v.decoder_));return!0},function(v,e,d){e=_.KVj(_.d9,e,!0);
if(e!=null&&e.length){d=_.Z90(v,d);for(var E=0;E<e.length;E++)_.Vmt(v.encoder_,e[E]);_.ciW(v,d)}},_.CE$),Mdv=_.TD(function(v,e,d){if(v.nextWireType_!==0)return!1;
v=_.xu(v.decoder_);_.Sm(e,d,v===0?void 0:v);return!0},_.xf0,_.CE$),tdv=_.TD(function(v,e,d,E){if(v.nextWireType_!==0)return!1;
_.hn(e,d,E,_.xu(v.decoder_));return!0},_.xf0,_.CE$),f9i=function(v){return v.previousElementSibling!==void 0?v.previousElementSibling:_.gII(v.previousSibling,!1)},Rof=function(v,e){var d=[];
for(e=e||0;e<v.length;e+=2)_.CSB(v[e],v[e+1],d);return d.join("&")},Pzf=function(v,e){var d=arguments.length==2?Rof(arguments[1],0):Rof(arguments,1);
return _.B92(v,d)},nHS=_.mV(_.t1),x3Q=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(x3Q,_.du);x3Q.prototype.getTypeName=function(){return _.Vm(this,1).split("/").pop()};
x3Q.prototype.getValue=function(){var v=_.mL(this,2);if(Array.isArray(v)||v instanceof _.du)throw Error("W");return _.rN(this,2)};
var Xv_=function(){var v=_.YE();this.JSC$9908_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.au("channel_type"))};
Xv_.prototype.increment=function(v){this.JSC$9908_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",v)};
var zXt=function(){var v=_.YE();this.JSC$9911_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.au("channel_type"))};
zXt.prototype.increment=function(v){this.JSC$9911_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",v)};
var Hof=function(){var v=_.YE();this.JSC$9914_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.au("channel_type"))};
Hof.prototype.increment=function(v){this.JSC$9914_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",v)};
var lps=function(){var v=_.YE();this.JSC$9917_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
lps.prototype.increment=function(){this.JSC$9917_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var Ak_=function(){var v=_.YE();this.JSC$9920_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.au("channel_type"),_.au("error_type"))};
Ak_.prototype.increment=function(v,e){this.JSC$9920_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",v,e)};
var Zot=function(){var v=_.YE();this.JSC$9923_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
Zot.prototype.increment=function(){this.JSC$9923_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var ckv=function(){var v=_.YE();this.JSC$9926_streamzService=v;v.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
ckv.prototype.increment=function(){this.JSC$9926_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var qKi=function(){var v=_.YE();this.JSC$9932_streamzService=v;v.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
qKi.prototype.increment=function(){this.JSC$9932_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var BQi=function(v){return v.getCount&&typeof v.getCount=="function"?v.getCount():_.c3(v)||typeof v==="string"?v.length:_.f0.getCount(v)},CzO=function(v,e){if(typeof v.every=="function")return v.every(e,void 0);
if(_.c3(v)||typeof v==="string")return Array.prototype.every.call(v,e,void 0);for(var d=_.Xx7(v),E=_.Fh(v),T=E.length,S=0;S<T;S++)if(!e.call(void 0,E[S],d&&d[S],v))return!1;return!0},X09=function(v,e,d,E){var T=new _.vF(null);
v&&_.QQ(T,v);e&&_.g6(T,e);d&&_.uI(T,d);E&&_.ny(T,E);return T},zos=function(){var v=_.Xo&&_.rH(_.U_M,10)>=0,e;
if(e=_.oVS)e=_.rH(_.D_6,10)>=0;var d=_.OU&&_.rH(_.U_M,85)>=0;return _.S1||v||e||d},l91=function(v){var e=_.ri2(v);
return e&&zos()?-v.scrollLeft:e&&_.X$(v,"overflowX")!="visible"?v.scrollWidth-v.clientWidth-v.scrollLeft:v.scrollLeft},HO9=function(v,e){e=Math.max(e,0);
_.ri2(v)?zos()?v.scrollLeft=-e:v.scrollLeft=v.scrollWidth-e-v.clientWidth:v.scrollLeft=e},oqw=0,f_S=!1;
kA.prototype.set=function(v){this.relativeTimeStart_=v};
kA.prototype.reset=function(){this.set(_.pO())};
kA.prototype.get=function(){return this.relativeTimeStart_};
var AR_=null,ZOw=function(){AR_||(AR_=new kA)},cRQ=function(){AR_||(AR_=new kA)};
_.vM(cRQ,ZOw);_.W=Pnw.prototype;_.W.JSC$11336_buffer_="";_.W.set=function(v){this.JSC$11336_buffer_=""+v};
_.W.append=function(v,e,d){this.JSC$11336_buffer_+=String(v);if(e!=null)for(var E=1;E<arguments.length;E++)this.JSC$11336_buffer_+=arguments[E];return this};
_.W.clear=function(){this.JSC$11336_buffer_=""};
_.W.getLength=function(){return this.JSC$11336_buffer_.length};
_.W.toString=function(){return this.JSC$11336_buffer_};
var w0Q=function(){var v={type:"unit",style:"narrow"};this.listType_=v&&v.type?v.type:"conjunction";this.listStyle_=v&&v.style?v.style:"long";this.listSymbols_=lxv;v=0;switch(this.listStyle_){case "short":v=1;break;case "narrow":v=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[v];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[v];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[v];this.listEndPattern_=
this.listSymbols_.AND_END[v];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[v];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[v];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[v];this.listEndPattern_=this.listSymbols_.OR_END[v];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[v],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[v],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[v],this.listEndPattern_=this.listSymbols_.UNIT_END[v]}};
w0Q.prototype.format=function(v){return FXs(this,v)};
var FXs=function(v,e){var d=e.length;switch(d){case 0:return"";case 1:return String(e[0]);case 2:return v.listTwoPattern_.replace("{0}",String(e[0])).replace("{1}",String(e[1]))}for(var E=v.listStartPattern_.replace("{0}",String(e[0])).replace("{1}",String(e[1])),T=2;T<d-1;++T)E=v.listMiddlePattern_.replace("{0}",E).replace("{1}",String(e[T]));return v.listEndPattern_.replace("{0}",E).replace("{1}",String(e[d-1]))},nq_=function(){var v={style:1};
this.style_=(v==null?void 0:v.style)||0;this.durationSymbols_=_.TJ2||_.AGJ},QaS=function(v,e){switch(e){default:case "years":return v.durationSymbols_.YEAR;
case "months":return v.durationSymbols_.MONTH;case "weeks":return v.durationSymbols_.WEEK;case "days":return v.durationSymbols_.DAY;case "hours":return v.durationSymbols_.HOUR;case "minutes":return v.durationSymbols_.MINUTE;case "seconds":return v.durationSymbols_.SECOND}},Bp=function(v,e,d){a:{d=QaS(v,d);
switch(v.style_){case 1:if(d.LONG!=void 0){v=d.LONG;break a}case 2:if(d.NARROW!=void 0){v=d.NARROW;break a}default:v=d.SHORT;break a}v=void 0}return v?(new _.II2("{DURATION_VALUE,plural,"+v+"}")).format({DURATION_VALUE:e}):""};
nq_.prototype.format=function(v){var e=[],d=v.years,E=v.months,T=v.weeks,S=v.days,O=v.hours,b=v.minutes;v=v.seconds;d!=null&&e.push(Bp(this,d,"years"));E!=null&&e.push(Bp(this,E,"months"));T!=null&&e.push(Bp(this,T,"weeks"));S!=null&&e.push(Bp(this,S,"days"));O!=null&&e.push(Bp(this,O,"hours"));b!=null&&e.push(Bp(this,b,"minutes"));v!=null&&e.push(Bp(this,v,"seconds"));return(new w0Q).format(e)};
var g5t=!1,H29=function(v){_.dH.call(this,v.message||v.description||v.name);this.isMissing=v instanceof Lx;this.isTimeout=v instanceof _.aw&&v.errorCode=="net.timeout";this.isCanceled=v instanceof _.Cr};
_.V(H29,_.dH);H29.prototype.name="BiscottiError";var Lx=function(){_.dH.call(this,"Biscotti ID is missing from server")};
_.V(Lx,_.dH);Lx.prototype.name="BiscottiMissingError";var V7=null,pgC=function(){try{var v=_.AE("yt.ads.biscotti.getId_");return v?v():$nQ()}catch(e){return _.f1(e)}},uf_,uA9=function(v,e){return _.Oo({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:v,command:e}})},n5v=function(v){return _.Oo({type:"SET_GUIDE_IS_EXPANDED",
payload:v})},D3w=function(v){return _.Oo({type:"SET_ONLINE_STATUS",
payload:v})},U39=function(v,e){return _.Oo({type:"SET_TRANSCRIPTION_STATE",
payload:{high:v,low:e}})},p0Q=function(v){return _.Oo({type:"SET_OVERLAY_STATE",
payload:v})},vu_=0,eP1=function(v,e,d){var E=this;
this.priority=e;this.delay=d;this.jobId=0;this.completionCallback=_.mv;this.wrappedJob=function(){v();E.completionCallback()};
this.id=++vu_};
eP1.prototype.enqueue=function(v){this.completionCallback=v;this.jobId=_.RM.addJob(this.wrappedJob,this.priority,this.delay)};
var CN=function(){_.pC.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.V(CN,_.pC);CN.prototype.addJob=function(v,e,d){v=new eP1(v,e,d);this.taskIdToTask.set(v.id,v);this.isActive?dTS(this,v):this.suspendedTasks.add(v);return v.id};
var dTS=function(v,e){v.scheduledTasks.add(e);e.enqueue(function(){v.scheduledTasks.delete(e)})};
CN.prototype.cancelJob=function(v){(v=this.taskIdToTask.get(v))&&(this.scheduledTasks.delete(v)?_.RM.cancelJob(v.jobId):this.suspendedTasks.delete(v))};
CN.prototype.pause=function(){var v=this;this.isActive=!1;this.scheduledTasks.forEach(function(e){_.RM.cancelJob(e.jobId);v.suspendedTasks.add(e)});
this.scheduledTasks.clear()};
CN.prototype.start=function(){var v=this;this.isActive=!0;this.suspendedTasks.forEach(function(e){dTS(v,e)});
this.suspendedTasks.clear()};
CN.prototype.reset=function(){this.scheduledTasks.forEach(function(v){_.RM.cancelJob(v.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var XQ=function(v,e){this.JSC$13026_networkService_=v;this.pageRequestPromise=e};
XQ.prototype.fetchData=function(v){Eu9(this,this.JSC$13026_networkService_.fetchData(v))};
XQ.prototype.postData=function(v,e){Eu9(this,this.JSC$13026_networkService_.postData(v,e))};
XQ.prototype.requestDataForServiceEndpoint=function(v,e){Eu9(this,this.JSC$13026_networkService_.requestDataForServiceEndpoint(v,e))};
var Eu9=function(v,e){e.then(v.pageRequestPromise.onSuccess,v.pageRequestPromise.onFailure,v.pageRequestPromise)};
XQ.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var zF=function(v){this.buildNetworkRequest_=v;this.pendingRequests_=new Set};
zF.prototype.reset=function(){this.pendingRequests_.forEach(function(v){v.cancel()});
this.pendingRequests_.clear()};
zF.prototype.fetchData=function(v){var e=TNC(this);e.fetchData(v);return e.pageRequestPromise};
zF.prototype.postData=function(v,e){var d=TNC(this);d.postData(v,e);return d.pageRequestPromise};
zF.prototype.requestDataForServiceEndpoint=function(v,e){var d=TNC(this);d.requestDataForServiceEndpoint(v,e);return d.pageRequestPromise};
var TNC=function(v){var e=v.buildNetworkRequest_();v.pendingRequests_.add(e);var d=function(){v.pendingRequests_.delete(e)};
e.pageRequestPromise.then(d,d);return e},SUC=function(v){var e=new CN;
this.JSC$13033_networkService_=v;this.JSC$13033_taskManager_=e;this.JSC$13033_networkManager_=new zF(this.networkRequestFactory_.bind(this))};
_.W=SUC.prototype;_.W.networkRequestFactory_=function(){return new XQ(this.JSC$13033_networkService_,new _.Wl(this.JSC$13033_taskManager_))};
_.W.reset=function(){this.JSC$13033_taskManager_.reset();this.JSC$13033_networkManager_.reset()};
_.W.start=function(){this.JSC$13033_taskManager_.start()};
_.W.pause=function(){this.JSC$13033_taskManager_.pause()};
_.W.getTaskManager=function(){return this.JSC$13033_taskManager_};
_.W.getNetworkManager=function(){return this.JSC$13033_networkManager_};
var eas=null,TVt=[],ow=0,GW=0,J6=null,WL9=!1,MW=null,WNs=void 0,ak9=function(){var v=(0,_.wWB)();v&&AXS(v,v.mechanism.__iterator__(!0))},fx=function(v){this.token=v};
fx.getInstance=function(){var v;return _.I(function(e){if(e.nextAddress==1)return e.yield(_.ea(),2);v=e.yieldResult;if(!v)return e.return();fx.instance||(fx.instance=new fx(v));return e.return(fx.instance)})};
var Yz1=function(v){var e;return _.I(function(d){if(d.nextAddress==1)return d.yield(OB_(v.token),2);e=d.yieldResult;return d.return(e.clear("resource-manifest-assets"))})},t6=function(v){this.token=v};
t6.getInstance=function(){var v;return _.I(function(e){if(e.nextAddress==1)return e.yield(_.ea(),2);v=e.yieldResult;if(!v)return e.return();t6.instance||(t6.instance=new t6(v));return e.return(t6.instance)})};
var Im1=function(v){var e;return _.I(function(d){if(d.nextAddress==1)return d.yield(OB_(v.token),2);e=d.yieldResult;return d.yield(e.clear("auth"),0)})},Raf=!1,ip9=function(v){_.dH.call(this,v)};
_.V(ip9,_.L6u);var Op1="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(" ");WUO()&&Op1.push("details:not(:has(summary))");var iQs=Op1.join(",");var Mwt=function(){var v=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return v?parseInt(v[1],10):0},Iks=function(v){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+v)!=-1||document.currentScript.src.indexOf("&"+v)!=-1)},bp_=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},xr9=function(v){v.length?YUv(v.shift(),function(){xr9(v)}):foi()},Chw=function(v){return"chrome-extension://"+v+"/cast_sender.js"},YUv=function(v,
e,d){var E=document.createElement("script");
E.onerror=e;d&&(E.onload=d);_.DB(E,_.ou(v));(document.head||document.documentElement).appendChild(E)},mTC=function(){var v=Mwt(),e=[];
if(v>1){var d=v-1;e.push("//www.gstatic.com/eureka/clank/"+v+"/cast_sender.js");e.push("//www.gstatic.com/eureka/clank/"+d+"/cast_sender.js")}return e},foi=function(){var v=bp_();
v&&v(!1,"No cast extension found")},Phv=function(){if(yn9){var v=2,e=bp_(),d=function(){v--;
v==0&&e&&e(!0)};
window.__onGCastApiAvailable=d;YUv("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",foi,d)}},tw_=function(){Phv();
var v=mTC();v.push("//www.gstatic.com/eureka/clank/cast_sender.js");xr9(v)},Ris=function(){Phv();
var v=mTC();v.push.apply(v,_.t7(Bi9.map(Chw)));v.push("//www.gstatic.com/eureka/clank/cast_sender.js");xr9(v)},yn9=Iks("loadCastFramework")||Iks("loadCastApplicationFramework"),Bi9=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var qUS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(qUS,_.du);var rni=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(rni,_.du);var hPv=function(){var v=new rni;return _.fp(v,1,3)};var lK=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(lK,_.du);var t7f=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(t7f,_.du);var KLO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(KLO,_.du);KLO.prototype.getToken=function(){return _.Vm(this,1)};
KLO.prototype.setToken=function(v){return _.A1(this,1,v)};
var Gas=function(v){return _.Ft(v,3,_.q1,_.El())},M79=function(v){return _.Ft(v,6,_.q1,_.El())};var Hp=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Hp,_.du);Hp.prototype.getToken=function(){return _.W8(this,KLO,2)};
Hp.prototype.setToken=function(v){return _.hr(this,2,v)};
Hp.prototype.getName=function(){return _.Vm(this,6)};
var $TQ=_.mV(Hp);var jWf=function(v,e,d){this.requestMessage=v;this.methodDescriptor=e;this.metadata=d};
jWf.prototype.getMetadata=function(){return this.metadata};var sWQ=function(v,e){e=e===void 0?{}:e;this.responseMessage=v;this.metadata=e;this.status=null};
sWQ.prototype.getMetadata=function(){return this.metadata};
sWQ.prototype.getStatus=function(){return this.status};var AS=function(v,e,d,E,T){this.name=v;this.methodType="unary";this.requestType=e;this.responseType=d;this.requestSerializeFn=E;this.responseDeserializeFn=T},NNi=function(v,e,d){d=d===void 0?{}:d;
return new jWf(e,v,d)};
AS.prototype.getName=function(){return this.name};var ZA=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(ZA,_.du);ZA.prototype.getHeader=function(){return _.W8(this,lK,1)};
ZA.prototype.setHeader=function(v){return _.hr(this,1,v)};
ZA.prototype.hasHeader=function(){return _.ym(this,lK,1)};var kwi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(kwi,_.du);var LLs=new AS("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",ZA,kwi,function(v){return v.serialize()},_.mV(kwi));var cp=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(cp,_.du);cp.prototype.getHeader=function(){return _.W8(this,lK,1)};
cp.prototype.setHeader=function(v){return _.hr(this,1,v)};
cp.prototype.hasHeader=function(){return _.ym(this,lK,1)};var V1s=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(V1s,_.du);var ous=new AS("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",cp,V1s,function(v){return v.serialize()},_.mV(V1s));var w0=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(w0,_.du);w0.prototype.getHeader=function(){return _.W8(this,lK,1)};
w0.prototype.setHeader=function(v){return _.hr(this,1,v)};
w0.prototype.hasHeader=function(){return _.ym(this,lK,1)};var Jnf=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Jnf,_.du);Jnf.prototype.getLink=function(){return _.W8(this,Hp,1)};var Gws=new AS("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",w0,Jnf,function(v){return v.serialize()},_.mV(Jnf));var FQ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(FQ,_.du);FQ.prototype.getHeader=function(){return _.W8(this,lK,1)};
FQ.prototype.setHeader=function(v){return _.hr(this,1,v)};
FQ.prototype.hasHeader=function(){return _.ym(this,lK,1)};var M1Q=new AS("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",FQ,Hp,function(v){return v.serialize()},$TQ);var t1s=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(t1s,_.du);var fki=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(fki,_.du);fki.prototype.getUrl=function(){return _.Vm(this,2)};
fki.prototype.setUrl=function(v){return _.A1(this,2,v)};var RPi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(RPi,_.du);var P1S=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(P1S,_.du);var xT9=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(xT9,_.du);var A_9=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(A_9,_.du);var HQi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(HQi,_.du);var BNQ=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(BNQ,_.du);var u19=_.mV(BNQ);var C1O=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(C1O,_.du);var XMi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(XMi,_.du);_.W=XMi.prototype;_.W.getHeader=function(){return _.W8(this,lK,1)};
_.W.setHeader=function(v){return _.hr(this,1,v)};
_.W.hasHeader=function(){return _.ym(this,lK,1)};
_.W.getCompletionUrl=function(){return _.Vm(this,6)};
_.W.getDeviceId=function(){return _.Vm(this,11)};var zPs=new AS("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",XMi,BNQ,function(v){return v.serialize()},u19);var lks=new Set(["SAPISIDHASH","APISIDHASH"]);var Hpi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Hpi,_.du);Hpi.prototype.getMessage=function(){return _.Vm(this,2)};
var Anv=_.mV(Hpi);var Qq=function(v,e){this.xhrNodeReadableStream_=v.nodeReadableStream;this.grpcResponseDeserializeFn_=e;this.JSC$19265_xhr_=v.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19265_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&Zp9(this)},uZQ=function(v,e){var d=new cns;
_.MC(v.JSC$19265_xhr_,"complete",function(){if(v.JSC$19265_xhr_.isSuccess()){var E=v.JSC$19265_xhr_.getResponseText();var T;if(T=e)T=v.JSC$19265_xhr_,T.JSC$9787_xhr_&&T.isComplete()?(T=T.JSC$9787_xhr_.getResponseHeader("Content-Type"),T=T===null?void 0:T):T=void 0,T=T==="text/plain";if(T){if(!atob)throw Error("Yj");E=atob(E)}try{var S=v.grpcResponseDeserializeFn_(E)}catch(b){g0(v,qos(new _.Ns(13,"Error when deserializing response data; error: "+b+(", response: "+E)),d));return}E=_.ncj(v.JSC$19265_xhr_.getStatus());
wMf(v,FLs(v));E==0?QW_(v,S):g0(v,qos(new _.Ns(E,"Xhr succeeded but the status code is not 200"),d))}else{E=v.JSC$19265_xhr_.getResponseText();S=FLs(v);if(E){var O=guC(v,E);E=O.code;T=O.details;O=O.metadata}else E=2,T="Rpc failed due to xhr error. uri: "+String(v.JSC$19265_xhr_.JSC$9787_lastUri_)+", error code: "+v.JSC$19265_xhr_.JSC$9787_lastErrorCode_+", error: "+v.JSC$19265_xhr_.getLastError(),O=S;wMf(v,S);g0(v,qos(new _.Ns(E,T,O),d))}})},Zp9=function(v){v.xhrNodeReadableStream_.on("data",function(e){if("1"in
e){var d=e["1"];
try{var E=v.grpcResponseDeserializeFn_(d)}catch(T){g0(v,new _.Ns(13,"Error when deserializing response data; error: "+T+(", response: "+d)))}E&&QW_(v,E)}if("2"in e)for(e=guC(v,e["2"]),d=0;d<v.onStatusCallbacks_.length;d++)v.onStatusCallbacks_[d](e)});
v.xhrNodeReadableStream_.on("end",function(){wMf(v,FLs(v));for(var e=0;e<v.onEndCallbacks_.length;e++)v.onEndCallbacks_[e]()});
v.xhrNodeReadableStream_.on("error",function(){if(v.JSC$19265_onErrorCallbacks_.length!=0){var e=v.JSC$19265_xhr_.JSC$9787_lastErrorCode_;e!==0||v.JSC$19265_xhr_.isSuccess()||(e=6);var d=-1;switch(e){case 0:var E=2;break;case 7:E=10;break;case 8:E=4;break;case 6:d=v.JSC$19265_xhr_.getStatus();E=_.ncj(d);break;default:E=14}wMf(v,FLs(v));e=_.rcI(e)+", error: "+v.JSC$19265_xhr_.getLastError();d!=-1&&(e+=", http status code: "+d);g0(v,new _.Ns(E,e))}})},FLs=function(v){var e={},d=CHt(v.JSC$19265_xhr_);
Object.keys(d).forEach(function(E){e[E]=d[E]});
return e},guC=function(v,e){var d=2,E={};
try{var T=Anv(e);d=_.TZ(T,1);var S=T.getMessage();_.df(T,x3Q,3,_.El()).length&&(E["grpc-web-status-details-bin"]=e)}catch(O){v.JSC$19265_xhr_&&v.JSC$19265_xhr_.getStatus()===404?(d=5,S="Not Found: "+String(v.JSC$19265_xhr_.JSC$9787_lastUri_)):(d=14,S="Unable to parse RpcStatus: "+O)}return{code:d,details:S,metadata:E}};
Qq.prototype.on=function(v,e){v=="data"?this.onDataCallbacks_.push(e):v=="metadata"?this.onMetadataCallbacks_.push(e):v=="status"?this.onStatusCallbacks_.push(e):v=="end"?this.onEndCallbacks_.push(e):v=="error"&&this.JSC$19265_onErrorCallbacks_.push(e);return this};
var uK=function(v,e){e=v.indexOf(e);e>-1&&v.splice(e,1)};
Qq.prototype.removeListener=function(v,e){v=="data"?uK(this.onDataCallbacks_,e):v=="metadata"?uK(this.onMetadataCallbacks_,e):v=="status"?uK(this.onStatusCallbacks_,e):v=="end"?uK(this.onEndCallbacks_,e):v=="error"&&uK(this.JSC$19265_onErrorCallbacks_,e);return this};
Qq.prototype.cancel=function(){this.JSC$19265_xhr_.abort()};
var QW_=function(v,e){for(var d=0;d<v.onDataCallbacks_.length;d++)v.onDataCallbacks_[d](e)},wMf=function(v,e){for(var d=0;d<v.onMetadataCallbacks_.length;d++)v.onMetadataCallbacks_[d](e)},g0=function(v,e){for(var d=0;d<v.JSC$19265_onErrorCallbacks_.length;d++)v.JSC$19265_onErrorCallbacks_[d](e)};
Qq.prototype.cancel=Qq.prototype.cancel;Qq.prototype.removeListener=Qq.prototype.removeListener;Qq.prototype.on=Qq.prototype.on;var cns=function(){var v=Error.call(this);this.message=v.message;"stack"in v&&(this.stack=v.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.V(cns,Error);var nN=function(v){this.JSC$19274_worker_=v.worker||null;this.JSC$19274_streamBinaryChunks_=v.streamBinaryChunks||!1;this.JSC$19274_credentialsMode_=void 0};
_.vM(nN,_.U90);nN.prototype.createInstance=function(){var v=new DA(this.JSC$19274_worker_,this.JSC$19274_streamBinaryChunks_);this.JSC$19274_credentialsMode_&&v.setCredentialsMode(this.JSC$19274_credentialsMode_);return v};
nN.prototype.setCredentialsMode=function(v){this.JSC$19274_credentialsMode_=v};
var DA=function(v,e){_.r6.call(this);this.JSC$19278_worker_=v;this.JSC$19278_streamBinaryChunks_=e;this.JSC$19278_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$19278_responseHeaders_=null;this.JSC$19278_method_="GET";this.JSC$19278_url_="";this.inProgress_=!1;this.JSC$19278_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.vM(DA,_.r6);DA.prototype.open=function(v,e){if(this.readyState!=0)throw this.abort(),Error("Zj");this.JSC$19278_method_=v;this.JSC$19278_url_=e;this.readyState=1;U7(this)};
DA.prototype.send=function(v){if(this.readyState!=1)throw this.abort(),Error("$j");if(this.abortController_.signal.aborted)throw this.abort(),Error("ak");this.inProgress_=!0;var e={headers:this.requestHeaders_,method:this.JSC$19278_method_,credentials:this.JSC$19278_credentialsMode_,cache:void 0,signal:this.abortController_.signal};v&&(e.body=v);(this.JSC$19278_worker_||_.TO).fetch(new Request(this.JSC$19278_url_,e)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
DA.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,pN(this));this.readyState=0};
DA.prototype.handleResponse_=function(v){if(this.inProgress_&&(this.fetchResponse_=v,this.JSC$19278_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19278_responseHeaders_=v.headers,this.readyState=2,U7(this)),this.inProgress_&&(this.readyState=3,U7(this),this.inProgress_)))if(this.responseType==="arraybuffer")v.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.TO.ReadableStream!==
"undefined"&&"body"in v){this.currentReader_=v.body.getReader();if(this.JSC$19278_streamBinaryChunks_){if(this.responseType)throw Error("bk");this.response=[]}else this.response=this.responseText="",this.JSC$19278_textDecoder_=new TextDecoder;nuw(this)}else v.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var nuw=function(v){v.currentReader_.read().then(v.handleDataFromStream_.bind(v)).catch(v.handleSendFailure_.bind(v))};
DA.prototype.handleDataFromStream_=function(v){if(this.inProgress_){if(this.JSC$19278_streamBinaryChunks_&&v.value)this.response.push(v.value);else if(!this.JSC$19278_streamBinaryChunks_){var e=v.value?v.value:new Uint8Array(0);if(e=this.JSC$19278_textDecoder_.decode(e,{stream:!v.done}))this.response=this.responseText+=e}v.done?pN(this):U7(this);this.readyState==3&&nuw(this)}};
DA.prototype.handleResponseText_=function(v){this.inProgress_&&(this.response=this.responseText=v,pN(this))};
DA.prototype.handleResponseArrayBuffer_=function(v){this.inProgress_&&(this.response=v,pN(this))};
DA.prototype.handleSendFailure_=function(){this.inProgress_&&pN(this)};
var pN=function(v){v.readyState=4;v.fetchResponse_=null;v.currentReader_=null;v.JSC$19278_textDecoder_=null;U7(v)};
DA.prototype.setRequestHeader=function(v,e){this.requestHeaders_.append(v,e)};
DA.prototype.getResponseHeader=function(v){return this.JSC$19278_responseHeaders_?this.JSC$19278_responseHeaders_.get(v.toLowerCase())||"":""};
DA.prototype.getAllResponseHeaders=function(){if(!this.JSC$19278_responseHeaders_)return"";for(var v=[],e=this.JSC$19278_responseHeaders_.entries(),d=e.next();!d.done;)d=d.value,v.push(d[0]+": "+d[1]),d=e.next();return v.join("\r\n")};
DA.prototype.setCredentialsMode=function(v){this.JSC$19278_credentialsMode_=v};
var U7=function(v){v.onreadystatechange&&v.onreadystatechange.call(v)};
Object.defineProperty(DA.prototype,"withCredentials",{get:function(){return this.JSC$19278_credentialsMode_==="include"},
set:function(v){this.setCredentialsMode(v?"include":"same-origin")}});var DTs=function(v){var e="";_.f0.forEach(v,function(d,E){e+=E;e+=":";e+=d;e+="\r\n"});
return e},UTi=function(v,e,d){if(_.f0.isEmpty(d))return v;
d=DTs(d);if(typeof v==="string")return _.Xr(v,_.cb(e),d);_.cw(v,e,d);return v};var pMS=function(){this.isInputValid_=!0;this.JSC$19283_streamPos_=0;this.leftoverInput_=""};
pMS.prototype.isInputValid=function(){return this.isInputValid_};
pMS.prototype.decode=function(v){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ck`"+this.JSC$19283_streamPos_+"`stream already broken`"+v);this.leftoverInput_+=v;v=Math.floor(this.leftoverInput_.length/4);if(v==0)return null;try{var e=_.CsU(this.leftoverInput_.slice(0,v*4))}catch(d){throw e=this.leftoverInput_,v=d.message,this.isInputValid_=!1,Error("ck`"+this.JSC$19283_streamPos_+"`"+v+"`"+e);}this.JSC$19283_streamPos_+=v*4;this.leftoverInput_=this.leftoverInput_.slice(v*4);return e};var xA=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19286_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
xA.prototype.isInputValid=function(){return this.state_!=3};
var vS=function(v,e,d,E){v.state_=3;v.errorMessage_="The stream is broken @"+v.JSC$19286_streamPos_+"/"+d+". Error: "+E+". With input:\n"+e;throw Error(v.errorMessage_);};
xA.prototype.acceptsBinaryInput=function(){return!0};
xA.prototype.parse=function(v){function e(Y){Y&128&&vS(S,O,b,"invalid tag");(Y&7)!=2&&vS(S,O,b,"invalid wire type");S.tag_=Y>>>3;S.tag_!=1&&S.tag_!=2&&S.tag_!=15&&vS(S,O,b,"unexpected tag");S.state_=1;S.length_=0;S.countLengthBytes_=0}
function d(Y){S.countLengthBytes_++;S.countLengthBytes_==5&&Y&240&&vS(S,O,b,"message length too long");S.length_|=(Y&127)<<(S.countLengthBytes_-1)*7;Y&128||(S.state_=2,S.countMessageBytes_=0,typeof Uint8Array!=="undefined"?S.messageBuffer_=new Uint8Array(S.length_):S.messageBuffer_=Array(S.length_),S.length_==0&&T())}
function E(Y){S.messageBuffer_[S.countMessageBytes_++]=Y;S.countMessageBytes_==S.length_&&T()}
function T(){if(S.tag_<15){var Y={};Y[S.tag_]=S.messageBuffer_;S.result_.push(Y)}S.state_=0}
for(var S=this,O=v instanceof Array?v:new Uint8Array(v),b=0;b<O.length;){switch(S.state_){case 3:vS(S,O,b,"stream already broken");break;case 0:e(O[b]);break;case 1:d(O[b]);break;case 2:E(O[b]);break;default:throw Error("dk`"+S.state_);}S.JSC$19286_streamPos_++;b++}v=S.result_;S.result_=[];return v.length>0?v:null};var hli=function(){this.errorMessage_=null;this.JSC$19289_streamPos_=0;this.base64Decoder_=new pMS;this.pbParser_=new xA};
hli.prototype.isInputValid=function(){return this.errorMessage_===null};
var v0w=function(v,e,d){v.errorMessage_="The stream is broken @"+v.JSC$19289_streamPos_+". Error: "+d+". With input:\n"+e;throw Error(v.errorMessage_);};
hli.prototype.acceptsBinaryInput=function(){return!1};
hli.prototype.parse=function(v){this.errorMessage_!==null&&v0w(this,v,"stream already broken");var e=null;try{var d=this.base64Decoder_.decode(v);e=d===null?null:this.pbParser_.parse(d)}catch(E){v0w(this,v,E.message)}this.JSC$19289_streamPos_+=v.length;return e};var r_v=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19292_streamPos_=0;this.result_=[];this.statusParsed_=!1};
r_v.prototype.isInputValid=function(){return this.errorMessage_===null};
r_v.prototype.acceptsBinaryInput=function(){return!1};
r_v.prototype.parse=function(v){function e(Y){S.state_=6;S.errorMessage_="The stream is broken @"+S.JSC$19292_streamPos_+"/"+O+". Error: "+Y+". With input:\n";throw Error(S.errorMessage_);}
function d(){S.jsonStreamParser_=new _.EQ({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function E(Y){if(Y)for(var q=0;q<Y.length;q++){var r={};r[1]=Y[q];S.result_.push(r)}}
function T(Y){if(Y){(S.statusParsed_||Y.length>1)&&e("extra status: "+Y);S.statusParsed_=!0;var q={};q[2]=Y[0];S.result_.push(q)}}
for(var S=this,O=0;O<v.length;){var b;if(b=S.state_!==2){a:{for(;O<v.length;){if(!_.ds(v[O])){b=!0;break a}O++;S.JSC$19292_streamPos_++}b=!1}b=!b}if(b)return null;switch(S.state_){case 6:e("stream already broken");break;case 0:v[O]==="["?(S.state_=1,O++,S.JSC$19292_streamPos_++):e("unexpected input token");break;case 1:v[O]==="["?(S.state_=2,d()):v[O]===","||v.slice(O,O+5)=="null,"?S.state_=3:v[O]==="]"?(S.state_=5,O++,S.JSC$19292_streamPos_++):e("unexpected input token");break;case 2:b=S.jsonStreamParser_.parse(v.substring(O));
E(b);S.jsonStreamParser_.done()?(S.state_=3,b=S.jsonStreamParser_.JSC$11463_buffer_,S.JSC$19292_streamPos_+=v.length-O-b.length,v=b,O=0):(S.JSC$19292_streamPos_+=v.length-O,O=v.length);break;case 3:v[O]===","||v.slice(O,O+5)=="null,"?(S.state_=4,d(),S.jsonStreamParser_.parse("["),O+=v[O]===","?1:5,S.JSC$19292_streamPos_++):v[O]==="]"&&(S.state_=5,O++,S.JSC$19292_streamPos_++);break;case 4:b=S.jsonStreamParser_.parse(v.substring(O));T(b);S.jsonStreamParser_.done()?(S.state_=5,b=S.jsonStreamParser_.JSC$11463_buffer_,
S.JSC$19292_streamPos_+=v.length-O-b.length,v=b,O=0):(S.JSC$19292_streamPos_+=v.length-O,O=v.length);break;case 5:e("extra input after stream end")}}return S.result_.length>0?(v=S.result_,S.result_=[],v):null};var e39=function(v){this.JSC$19295_xhr_=v;this.JSC$19295_parser_=null;this.status_=this.JSC$19295_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19295_textDecoder_=null;this.JSC$19295_eventHandler_=new _.Im(this);this.JSC$19295_eventHandler_.listen(this.JSC$19295_xhr_,"readystatechange",this.JSC$19297_readyStateChangeHandler_)},eF=function(v,e){v.status_!=e&&(v.status_=e,v.statusHandler_&&v.statusHandler_())},dS=function(v){v.JSC$19295_eventHandler_.removeAll();
if(v.JSC$19295_xhr_){var e=v.JSC$19295_xhr_;v.JSC$19295_xhr_=null;e.abort();e.dispose()}};
e39.prototype.getStatus=function(){return this.status_};
e39.prototype.JSC$19297_readyStateChangeHandler_=function(v){v=v.target;try{if(v==this.JSC$19295_xhr_)a:{var e=_.VQ(this.JSC$19295_xhr_),d=this.JSC$19295_xhr_.JSC$9787_lastErrorCode_,E=this.JSC$19295_xhr_.getStatus(),T=this.JSC$19295_xhr_.getResponseText();v=[];if(this.JSC$19295_xhr_.getResponse()instanceof Array){var S=this.JSC$19295_xhr_.getResponse();S.length>0&&S[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,v=S)}if(!(e<3||e==3&&!T&&v.length==0))if(E=E==200||E==206,e==4&&(d==8?eF(this,
7):d==7?eF(this,8):E||eF(this,3)),this.JSC$19295_parser_||(this.JSC$19295_parser_=KUC(this.JSC$19295_xhr_),this.JSC$19295_parser_==null&&eF(this,5)),this.status_>2)dS(this);else{if(v.length>this.JSC$19295_pos_){var O=v.length;d=[];try{if(this.JSC$19295_parser_.acceptsBinaryInput())for(var b=0;b<O;b++){var Y=this.JSC$19295_parser_.parse(Array.from(v[b]));Y&&(d=d.concat(Y))}else{Y="";if(!this.JSC$19295_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("ek");this.JSC$19295_textDecoder_=new TextDecoder}for(b=
0;b<O;b++)Y+=this.JSC$19295_textDecoder_.decode(v[b],{stream:e==4&&b==O-1});d=this.JSC$19295_parser_.parse(Y)}v.splice(0,O);d&&this.dataHandler_(d)}catch(r){eF(this,5);dS(this);break a}}else if(T.length>this.JSC$19295_pos_){b=T.slice(this.JSC$19295_pos_);this.JSC$19295_pos_=T.length;try{var q=this.JSC$19295_parser_.parse(b);q!=null&&this.dataHandler_&&this.dataHandler_(q)}catch(r){eF(this,5);dS(this);break a}}e==4?(T.length!=0||this.hasStreamingResponseData_?eF(this,2):eF(this,4),dS(this)):eF(this,
1)}}}catch(r){eF(this,6),dS(this)}};var dFv=function(v){v=this.xhrReader_=v;var e=(0,_.LX)(this.onData_,this);v.dataHandler_=e;v=this.xhrReader_;e=(0,_.LX)(this.onStatusChange_,this);v.statusHandler_=e;this.JSC$19299_callbackMap_={};this.callbackOnceMap_={}};
_.W=dFv.prototype;_.W.on=function(v,e){var d=this.JSC$19299_callbackMap_[v];d||(d=[],this.JSC$19299_callbackMap_[v]=d);d.push(e);return this};
_.W.addListener=function(v,e){this.on(v,e);return this};
_.W.removeListener=function(v,e){var d=this.JSC$19299_callbackMap_[v];d&&_.H3(d,e);(v=this.callbackOnceMap_[v])&&_.H3(v,e);return this};
_.W.once=function(v,e){var d=this.callbackOnceMap_[v];d||(d=[],this.callbackOnceMap_[v]=d);d.push(e);return this};
_.W.onData_=function(v){var e=this.JSC$19299_callbackMap_.data;e&&E0t(v,e);(e=this.callbackOnceMap_.data)&&E0t(v,e);this.callbackOnceMap_.data=[]};
var E0t=function(v,e){for(var d={},E=0;E<v.length;d={message$jscomp$1007:void 0},E++)d.message$jscomp$1007=v[E],e.forEach(function(T){return function(S){try{S(T.message$jscomp$1007)}catch(O){}}}(d))};
dFv.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:TIt(this,"readable");break;case 5:case 6:case 4:case 7:case 3:TIt(this,"error");break;case 8:TIt(this,"close");break;case 2:TIt(this,"end")}};
var TIt=function(v,e){var d=v.JSC$19299_callbackMap_[e];d&&d.forEach(function(E){try{E()}catch(T){}});
(d=v.callbackOnceMap_[e])&&d.forEach(function(E){E()});
v.callbackOnceMap_[e]=[]};var SSt=function(){var v={format:"jspb"};v=v===void 0?{}:v;this.suppressCorsPreflight=v.suppressCorsPreflight||_.AE("suppressCorsPreflight",v)||!1;this.withCredentials=v.withCredentials||_.AE("withCredentials",v)||!1;this.streamInterceptors=v.streamInterceptors||[];this.unaryInterceptors=v.unaryInterceptors||[];this.workerScope=v.workerScope;this.chunkedServerStreaming=v.useFetchDownloadStreams||!1},ifC=function(v,e,d,E,T,S){S=S===void 0?{}:S;
var O=e.substring(0,e.length-T.name.length),b,Y=(b=S)==null?void 0:b.signal;return Wv9(function(q){return new Promise(function(r,h){if(Y==null?0:Y.aborted){var K=new _.Ns(1,"Aborted");K.cause=Y.reason;h(K)}else{var k={},J=ai_(v,q,O);J.on("error",function(R){return void h(R)});
J.on("metadata",function(R){k=R});
J.on("data",function(R){var B=k;B=B===void 0?{}:B;r(new sWQ(R,B))});
Y&&Y.addEventListener("abort",function(){J.cancel();var R=new _.Ns(1,"Aborted");R.cause=Y.reason;h(R)})}})},v.unaryInterceptors).call(v,NNi(T,d,E)).then(function(q){return q.responseMessage})},EX=function(v,e,d,E,T,S){S=S===void 0?{}:S;
return ifC(v,e,d,E,T,S)};
SSt.prototype.serverStreaming=function(v,e,d,E){var T=this,S=v.substring(0,v.length-E.name.length);return Of9(function(O){var b=O.methodDescriptor,Y=O.getMetadata(),q=IiQ(T,!1);Y=bfS(T,Y,q,S+b.getName());var r=YSQ(q,b.responseDeserializeFn,!0);O=b.requestSerializeFn(O.requestMessage);q.send(Y,"POST",O);return r},this.streamInterceptors).call(this,NNi(E,e,d))};
var ai_=function(v,e,d){var E=e.methodDescriptor,T=e.getMetadata(),S=IiQ(v,!0);v=bfS(v,T,S,d+E.getName());d=YSQ(S,E.responseDeserializeFn,!1);uZQ(d,T["X-Goog-Encode-Response-If-Executable"]==="base64");e=E.requestSerializeFn(e.requestMessage);S.send(v,"POST",e);return d},IiQ=function(v,e){e=v.chunkedServerStreaming&&!e;
return v.workerScope||e?new _.Ly(new nN({worker:v.workerScope,streamBinaryChunks:e})):new _.Ly},bfS=function(v,e,d,E){e["Content-Type"]="application/json+protobuf";
e["X-User-Agent"]="grpc-web-javascript/0.1";var T=e.Authorization;if(T&&lks.has(T.split(" ")[0])||v.withCredentials)d.JSC$9787_withCredentials_=!0;if(v.suppressCorsPreflight)E=UTi(E,"$httpHeaders",e);else for(v=_.a(Object.keys(e)),T=v.next();!T.done;T=v.next())T=T.value,d.headers.set(T,e[T]);return E},YSQ=function(v,e,d){if(d){d=new e39(v);
var E=new dFv(d)}return new Qq({xhr:v,nodeReadableStream:E},e)},Of9=function(v,e){return e.reduce(function(d,E){return function(T){return E.intercept(T,d)}},v)},Wv9=function(v,e){return e.reduce(function(d,E){return function(T){return E.intercept(T,d)}},v)};var mF9=function(v){this.client_=new SSt;this.hostname_=v==void 0?v:v.replace(/\/+$/,"")};
_.W=mF9.prototype;_.W.JSC$19317_depositGoogleCredential=function(v,e,d){return EX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",v,e||{},ous,d)};
_.W.deleteLink=function(v,e,d){return EX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",v,e||{},LLs,d)};
_.W.JSC$19317_finishOAuth=function(v,e,d){return EX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",v,e||{},Gws,d)};
_.W.getLink=function(v,e,d){return EX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",v,e||{},M1Q,d)};
_.W.startLinkingSession=function(v,e,d){return EX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",v,e||{},zPs,d)};var yZt=[0,Vd9,1,GpQ,[0,_.Zk,[0,o5i,-1]],[0,JRw],[0,Mdv,-1]];var qSi=function(){this.storage=new Map},h3v=function(v,e,d,E,T){if(!v.storage.has(e))return null;
v=_.a(v.storage.get(e));for(e=v.next();!e.done;e=v.next())if(e=e.value,!T||e.linkName===T)if(d&&e.scopes&&rZt(e.scopes,d)||E&&e.capabilities&&rZt(e.capabilities,E))return e;return null},KvS=function(v,e,d){if(!d)v.storage.delete(e);
else if(v.storage.has(e)){var E=v.storage.get(e).filter(function(T){return T.linkName!==d});
E.length>0?v.storage.set(e,E):v.storage.delete(e)}},rZt=function(v,e){e=_.a(e);
for(var d=e.next();!d.done;d=e.next())if(!v.has(d.value))return!1;return!0};var $Fs=function(){var v=_.Bb("LINK_GAL_DOMAIN");this.alsDomain1p=_.Bb("LINK_GAL_DOMAIN");this.alsDomain3p=v;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},jdS=function(v,e){v.apiKey=e;
return v};
$Fs.prototype.build=function(){var v={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("fk");v.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("gk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("hk");v.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(v.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)v.apiKey=
this.apiKey,v.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ik");v.oauthToken=this.oauthToken;v.alsDomain=this.alsDomain3p}v.clientXd3=this.clientXd3;v.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(v.authUser=this.authUser);this.bucket!==void 0&&(v.bucket=this.bucket);this.completionUrl!==void 0&&(v.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(v.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(v.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(v.locale=this.locale);v.loggerType=this.loggerType;v.clientEnvironment=this.clientEnvironment;v.colorScheme=this.colorScheme;v.showCloseOption=this.showCloseOption;return v};var BR=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(BR,_.du);var sdi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(sdi,_.du);var NIv=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(NIv,_.du);var X_=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(X_,_.du);var k5O=function(v){return _.oW(v,1)};var Lv_=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Lv_,_.du);var V7f=_.mV(Lv_),Cx=[1,2,3,4,5];var sGi=function(v){try{return V7f(v)}catch(e){return null}},Vj9=function(){},Ngi=function(v,e){switch(_.Kp(e,Cx)){case 4:return(e=_.MT(e,NIv,4,Cx))&&v.logStateTransition(_.oW(e,1)),!0;
case 5:return(e=_.MT(e,sdi,5,Cx))&&v.logInternalEvent(_.oW(e,1)),!0}return!1},oHO=function(v){switch(v){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Z0(v)}};var $E9=function(v,e){var d=this;this.validator=v;this.messageListener=e;this.dismissCallback=function(){o0i(d,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19346_receiveMessage=function(E){E.type==="message"&&(E=E.event_,E!==null&&(new URL(d.iframe.src)).origin===E.origin&&d.validator(E.data,E.origin)&&!d.messageListener(E.data)&&(d.JSC$19346_resolveCb!==void 0&&d.JSC$19346_resolveCb(E.data),JZ9(d)))}},LU9=function(v,e,d){v.uiHandler!==void 0&&o0i(v,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(E,T){v.JSC$19346_resolveCb=E;v.JSC$19346_rejectCb=T;v.iframe=document.createElement("iframe");_.c$(v.iframe,e);v.uiHandler=d.displayContent(v.iframe,v.dismissCallback);_.MC(window,"message",v.JSC$19346_receiveMessage,!1,v)})},o0i=function(v,e){v.JSC$19346_rejectCb!==void 0&&v.JSC$19346_rejectCb(e);
JZ9(v)},JZ9=function(v){v.uiHandler!==void 0&&v.uiHandler.hideContent();
_.qs(window,"message",v.JSC$19346_receiveMessage,!1,v);v.JSC$19346_resolveCb=void 0;v.JSC$19346_rejectCb=void 0;v.uiHandler=void 0;v.iframe=void 0};var G5t=function(v){if(v===2){var e;v=((e=window)==null?0:e.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return v},kai=function(v){v=G5t(v);
switch(v){case 0:return"light";case 1:return"dark";default:_.Z0(v)}};var jGO=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),MjO=function(v,e){this.JSC$19358_linkingSession=v;this.noticeConfig=e;this.displayInfoMap=new Map;var d=new Map;if(_.ym(this.JSC$19358_linkingSession,RPi,7))for(v=_.W8(this.JSC$19358_linkingSession,RPi,7),v=_.df(v,fki,1,_.El()),v=_.a(v),e=v.next();!e.done;e=v.next())e=e.value,d.set(_.oW(e,1),_.YIt(_.W8(e,_.AF3,3)));if(d.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){e=this.noticeConfig.enabledDataUsageNoticeUis;v=e.has(0)?d.get(1):void 0;e=e.has(1)?d.get(2):void 0;d=v!==void 0&&e!==void 0?d.get(3):void 0;var E=this.noticeConfig.nestedOrigins;var T=new Lv_;var S=new BR;T=_.$m(T,2,Cx,S);S=new Lv_;var O=new BR;S=_.$m(S,3,Cx,O);O=[];v!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:v,lastEvent:T,nestedOrigins:E}]),O.push({trustedUrl:v,lastEvent:T,nestedOrigins:E}));e!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:e,lastEvent:S,nestedOrigins:E}]),O.push({trustedUrl:e,lastEvent:S,nestedOrigins:E}));d!==void 0?this.displayInfoMap.set(3,[{trustedUrl:d,lastEvent:S,nestedOrigins:E}]):this.displayInfoMap.set(3,O)}};var tjs=function(v){var e=new qSi;this.galService=v;this.galCache=e};
tjs.prototype.getLink=function(v){var e=v.serviceId;var d=v.scopes;var E=v.capabilities;var T=v.linkName;var S=this,O;return _.I(function(b){if(E!==void 0&&d!==void 0)throw Error("jk");O=h3v(S.galCache,e,d,E,T);return O!==null?b.return(O):b.return(S.galService.getLink({serviceId:e,sessionId:Math.floor(Math.random()*2147483648),scopes:d,capabilities:E,linkName:T}).then(function(Y){Y=fYt(Y);var q=S.galCache;q.storage.has(e)?q.storage.get(e).push(Y):q.storage.set(e,[Y]);return Y}))})};
tjs.prototype.deleteLink=function(v,e,d){var E=this;return _.I(function(T){KvS(E.galCache,v,d);return T.return(E.galService.deleteLink({serviceId:v,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:e,linkName:d}).then(function(){return!0}))})};var R3Q=function(v,e){var d=this;this.validator=v;this.msgHandler=e;this.closedPopupTimeout=this.JSC$19380_rejectCb=this.JSC$19380_resolveCb=this.popup=null;this.JSC$19380_receiveMessage=function(E){if(E!==null&&(E=E.event_,E.source===d.popup)){var T=E.data;if(d.validator(T,E.origin)){var S;(S=d.msgHandler)!=null&&S.call(d,T)||(d.JSC$19380_resolveCb!==null&&d.JSC$19380_resolveCb(T),fiS(d))}}}};
R3Q.prototype.open=function(v,e){var d=this;this.popup!==null&&P_i(this);return new Promise(function(E,T){d.JSC$19380_resolveCb=E;d.JSC$19380_rejectCb=T;d.popup=_.Fa(window,v,"",e);_.MC(window,"message",d.JSC$19380_receiveMessage,!1,d);xFS(d)})};
var P_i=function(v,e){v.JSC$19380_rejectCb!==null&&v.JSC$19380_rejectCb(e);fiS(v)},fiS=function(v){v.closedPopupTimeout&&(v.closedPopupTimeout.cancel(),v.closedPopupTimeout=null);
v.popup&&v.popup.close();_.qs(window,"message",v.JSC$19380_receiveMessage,!1,v);v.popup=null;v.JSC$19380_resolveCb=null;v.JSC$19380_rejectCb=null},xFS=function(v){v.closedPopupTimeout=_.b0M(100).then(function(){v.popup?v.popup.closed?BIv(v):xFS(v):P_i(v,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},BIv=function(v){v.closedPopupTimeout=_.b0M(100).then(function(){P_i(v,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var C_w=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),XBi=function(v,e,d,E,T,S,O,b,Y,q){var r=this;this.serviceId=v;this.sessionId=e;this.galService=d;this.oauthDetails=E;this.galLogger=T;this.interactionMode=S;this.redirectServiceUrl=O;this.consentLanguageKeys=b;this.dynamicUrlParameters=Y;this.partnerConfigMinReadTimestamp=q;this.started=!1;this.JSC$19386_dataValidator=function(h,
K){var k=C_w.has(K);k||r.redirectServiceUrl===void 0||(k=r.redirectServiceUrl===K);return k?h.sentinel==="gdi":!1}};
XBi.prototype.complete=function(){var v=this,e;return _.I(function(d){if(v.interactionMode!==1)return d.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));e=lC.getRedirectStateFromUri();return e===null?d.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):d.return(z39(v,e))})};
XBi.prototype.start=function(){var v=this,e;return _.I(function(d){if(v.started)return d.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Vm(v.oauthDetails,1))return d.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(v.interactionMode===1)return lC.setLocation(_.Vm(v.oauthDetails,1)),d.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));v.started=!0;v.galLogger.logStateTransition(5);
e=lC.getPostMessagePopup(v.JSC$19386_dataValidator);return d.return(e.open(_.Vm(v.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(E){v.started=!1;var T=v.galLogger;if((E==null?void 0:E.error)!==void 0)throw T.logInternalEvent(59),Error("kk");if((E==null?void 0:E.redirect_state)===void 0)throw T.logInternalEvent(131),Error("lk");return z39(v,E.redirect_state)}).catch(function(E){v.started=
!1;
return E.errorCode!==void 0?{statusCode:E.errorCode,statusMessage:E.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var z39=function(v,e){return _.I(function(d){return d.return(liO(v.galService,{serviceId:v.serviceId,sessionId:v.sessionId,dynamicUrlParameters:v.dynamicUrlParameters,redirectState:e,consentLanguageKeys:v.consentLanguageKeys,partnerConfigMinReadTimestamp:v.partnerConfigMinReadTimestamp}).then(function(E){var T={statusCode:1,link:fYt(E.getLink())};hbv(_.rN(E,3))!==void 0&&(T.callerState=hbv(_.rN(E,3)));v.galLogger.logInternalEvent(134);return T}))})},lC={getPostMessagePopup:function(v){return new R3Q(v)},
getRedirectStateFromUri:function(){var v=_.Az(lC.getLocation()).fragment_;return(new _.vr(v)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(v){_.I23(window.location,_.xm(v))},
createOAuthFlow:function(v,e){return new XBi(v.serviceId,v.sessionId,v.galService,e,v.galLogger,v.interactionMode,v.redirectServiceUrl,v.consentLanguageKeys,v.dynamicUrlParameters,v.partnerConfigMinReadTimestamp)}};var HfS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(HfS,_.du);var AZO=_.mV(HfS);var Zfi=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),cZf=function(v,e,d,E,T,S,O,b,Y){var q=this;this.serviceId=v;this.sessionId=e;this.galService=d;this.gsiWebFlowDetails=E;this.colorScheme=T;this.showCloseOption=S;this.galLogger=O;this.interactionMode=b;this.redirectServiceUrl=Y;this.started=!1;this.JSC$19398_dataValidator=function(r,h){var K=Zfi.has(h);K||q.redirectServiceUrl===
void 0||(K=q.redirectServiceUrl===h);return K?r.sentinel==="gal":!1};
this.logEventProcessor=function(r){return r.result?(r=sGi(r.result))?Ngi(q.galLogger,r):!1:!1}};
cZf.prototype.complete=function(){var v=this,e,d;return _.I(function(E){if(v.interactionMode!==1)return E.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));e=HR.getRedirectStateFromUri();if(e===void 0)return v.galLogger.JSC$19338_logErrorEvent(131),E.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return d=wBS(v,e),E.return(FvS(v,d))}catch(T){return E.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
cZf.prototype.start=function(){var v=this,e;return _.I(function(d){if(v.started)return d.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Vm(v.gsiWebFlowDetails,1))return d.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(v.interactionMode===1)return HR.setLocation(Qdf(v,_.Vm(v.gsiWebFlowDetails,1))),d.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
v.started=!0;e=HR.getPostMessagePopup(v.JSC$19398_dataValidator,v.logEventProcessor);return d.return(e.open(Qdf(v,_.Vm(v.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(E){v.started=!1;if((E==null?void 0:E.result)===void 0)throw v.galLogger.JSC$19338_logErrorEvent(131),Error("lk");E=wBS(v,E.result);return FvS(v,E)}).catch(function(E){v.started=!1;
return E.errorCode!==void 0?{statusCode:E.errorCode,statusMessage:E.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Qdf=function(v,e){v=["result_channel",v.interactionMode===1?"2":"1","color_scheme",kai(v.colorScheme),"show_close_option",v.showCloseOption];return Pzf(e,v)},FvS=function(v,e){if(e!==null&&_.ym(e,X_,2)){var d,E=e==null?void 0:(d=_.W8(e,X_,2))==null?void 0:_.oW(d,2);
E&&v.galLogger.JSC$19338_logErrorEvent(oHO(E));return k5O(_.W8(e,X_,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 v.galService.getLink({serviceId:v.serviceId,sessionId:v.sessionId,consistencyKey:_.Vm(e,1)}).then(function(T){T=fYt(T);v.galLogger.logInternalEvent(134);return{statusCode:1,link:T}})},wBS=function(v,e){e=AZO(e);
if(!_.ym(e,X_,2)&&_.Vm(e,1)==="")throw v.galLogger.JSC$19338_logErrorEvent(5),Error("mk");return e},HR={getPostMessagePopup:function(v,e){return new R3Q(v,e)},
getRedirectStateFromUri:function(){return _.Z4(_.Az(HR.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(v){_.I23(window.location,_.xm(v))},
createStreamlinedFlow:function(v,e){return new cZf(v.serviceId,v.sessionId,v.galService,e,v.colorScheme,v.showCloseOption,v.galLogger,v.interactionMode,v.redirectServiceUrl)}};var QGO=function(){var v=_.jG3("GAL");this.storage=v?new _.Lw(v):null};
QGO.prototype.getSession=function(v){if(this.storage!==null)try{var e=this.storage.get("SAVED_SESSION");if(e===void 0)return null;if(e.serviceId===v)return e}catch(d){}return null};var Tl=function(){};
_.V(Tl,Vj9);Tl.prototype.logStateTransition=function(){};
Tl.prototype.logInternalEvent=function(){};
Tl.prototype.JSC$19338_logErrorEvent=function(){};var g0t=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(g0t,_.du);g0t.prototype.getCompletionUrl=function(){return _.Vm(this,15)};var SF=function(v,e,d,E,T,S){this.serviceId=v;this.environment=e;this.sessionId=d;this.colorSchemeSelected=E;this.colorThemeDisplayed=T;this.JSC$19411_transport=S;this.currentState=1};
_.V(SF,Vj9);SF.prototype.logStateTransition=function(v){var e=urv(this);e=_.aM(e,3,this.currentState);e=_.aM(e,1,v);this.currentState=v;v=BB9(1);this.dispatch(e,v)};
SF.prototype.logInternalEvent=function(v){v=BB9(v);this.dispatch(urv(this),v)};
SF.prototype.JSC$19338_logErrorEvent=function(v){var e=urv(this);e=_.aM(e,1,10);v=BB9(v);this.dispatch(e,v)};
var urv=function(v){var e=new g0t;e=_.aM(e,1,v.currentState);e=_.L0(e,7,v.serviceId);var d,E;var T=((d=window)==null?0:(E=d.location)==null?0:E.href)?_.Az(window.location.href).JSC$10022_domain_:"NO_PACKAGE_NAME";d=_.L0(e,8,T);d=_.aM(d,6,v.environment);d=_.L0(d,5,"100");d=_.aM(d,11,v.colorSchemeSelected);return _.aM(d,12,v.colorThemeDisplayed)};
SF.prototype.dispatch=function(v,e){e===void 0&&(e=new _.Tx);var d=e;v=v.serialize();d=_.L0(d,8,v);_.NG(d,12,this.sessionId);this.JSC$19411_transport.dispatch(e)};var n0S=function(v,e){this.loggerType=v;this.sessionIndex=e!=null?e:0},DFS;
n0S.prototype.create=function(v,e,d,E,T){switch(this.loggerType){case 0:return new Tl;case 1:return DFS||(DFS=(new _.bZ(555,this.sessionIndex.toString())).build()),new SF(v,e,d,E,T,DFS);default:_.Z0(this.loggerType,"unknown logger type")}};var A6=[6,2,3,1],pK9=new Map([[4,1],[1,6],[2,2],[3,3]]),Bg9={statusCode:7,statusMessage:"Failed to create flow object"},wKv=function(v,e,d,E,T,S,O,b,Y,q){this.serviceId=v;this.sessionId=e;this.config=d;this.galService=E;this.JSC$19418_linkingSession=T;this.googleScopes=S;this.callerState=O;this.consentLanguageKeys=b;this.dynamicUrlParameters=Y;this.partnerConfigMinReadTimestamp=q;this.currentFlow=0;E=this.JSC$19418_linkingSession;T=new Set;_.ym(E,HQi,1)&&T.add(1);_.ym(E,xT9,2)&&_.ym(E,A_9,6)&&T.add(2);
_.ym(E,P1S,3)&&_.ym(E,A_9,6)&&T.add(3);_.ym(E,t1s,4)&&T.add(6);this.supportedFlows=T;E=d.loggerType;T=d.clientEnvironment;a:{S=d.colorScheme;switch(S){case 0:S=1;break a;case 1:S=2;break a;case 2:S=3;break a;default:_.Z0(S)}S=void 0}a:{O=d.colorScheme;O=G5t(O);switch(O){case 0:O=1;break a;case 1:O=2;break a;default:_.Z0(O)}O=void 0}this.galLogger=(new n0S(E,d.authUser)).create(v,T,e,S,O)},pBS=function(v){return new Promise(function(e){var d,E,T,S,O,b,Y,q,r,h;
return _.I(function(K){switch(K.nextAddress){case 1:d=ZQ9(v.currentFlow,v.supportedFlows),E=!1,T=new MjO(v.JSC$19418_linkingSession,v.config.dataUsageNoticeConfig);case 2:if(d===void 0){K.jumpTo(4);break}_.qq(K,5);var k=T,J=d,R=void 0;E?J===1&&(R=k.displayInfoMap.get(2)):J===2||J===3?R=k.displayInfoMap.get(1):J===1&&(R=k.displayInfoMap.get(3));S=R?R:[];O=v.consentLanguageKeys;b=_.a(S);Y=b.next();case 7:if(Y.done)return v.currentFlow=d,K.yield(XKs(UFt(v,O)),11);q=Y.value;return K.yield(J_s(q,v.config.dataUsageNoticeConfig.uiAdapter,
v.config.colorScheme,v.galLogger),10);case 10:r=K.yieldResult;if(r.statusCode!==1)return gH9(v.serviceId),v.currentFlow=0,e(zW({statusCode:r.statusCode,statusMessage:r.statusMessage},v.callerState)),K.return();r.consentLanguageKeys!==void 0&&(O=r.consentLanguageKeys);Y=b.next();K.jumpTo(7);break;case 11:h=K.yieldResult;if(h.statusCode!==10)return h.statusCode!==6&&(gH9(v.serviceId),v.currentFlow=0),h.statusCode!==1&&v.callerState!==void 0&&(h.callerState=v.callerState),e(h),K.return();_.wk(K,6);break;
case 5:_.jl(K);case 6:d=ZQ9(v.currentFlow,v.supportedFlows);E=!0;K.jumpTo(2);break;case 4:gH9(v.serviceId),v.currentFlow=0,e(zW({statusCode:12,statusMessage:"Linking failed"},v.callerState)),_.s9(K)}})})},DES=function(v,e,d){v.currentFlow=e;
return zl9(UFt(v,d)).then(function(E){return E.statusCode===10&&v.config.interactionMode===1&&ZQ9(v.currentFlow,v.supportedFlows)!==void 0?pBS(v):E})},UFt=function(v,e){return{flowParams:{serviceId:v.serviceId,
sessionId:v.sessionId,galService:v.galService,galLogger:v.galLogger,interactionMode:v.config.interactionMode,redirectServiceUrl:v.config.redirectServiceUrl,colorScheme:v.config.colorScheme,consentLanguageKeys:e,dynamicUrlParameters:v.dynamicUrlParameters,showCloseOption:v.config.showCloseOption,partnerConfigMinReadTimestamp:v.partnerConfigMinReadTimestamp},currentFlow:v.currentFlow,config:v.config,session:v.JSC$19418_linkingSession,googleScopes:v.googleScopes,callerState:v.callerState}};var eXO=function(v,e){this.config=v;this.galService=e.getService();this.JSC$19431_galRepository=e.JSC$19449_galRepository};
eXO.prototype.getLink=function(v,e){return vN9(this,v,e)};
var vN9=function(v,e,d){return v.JSC$19431_galRepository.getLink({serviceId:e,scopes:void 0,capabilities:void 0,linkName:d}).then(function(E){return{statusCode:1,link:E}}).catch(function(E){return{statusCode:vEt(E.code),
statusMessage:E.message}})};
eXO.prototype.deleteLink=function(v,e){return this.JSC$19431_galRepository.deleteLink(v,this.config.accountLinkingEntryPoint,e).then(function(){return{statusCode:1}}).catch(function(d){return{statusCode:vEt(d.code),
statusMessage:d.message}})};
eXO.prototype.startLinkingSession=function(v){var e=v.serviceId;var d=v.sessionId;return FUv({serviceId:e,sessionId:d!==void 0?d:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:v.loginHint,callerState:v.callerState,consentLanguageKeys:v.consentLanguageKeys,linkName:v.linkName,dynamicUrlParameters:v.dynamicUrlParameters,partnerConfigMinReadTimestamp:v.partnerConfigMinReadTimestamp})};var WS=function(v,e,d,E,T,S,O){this.apiKey=e;this.authUser=d;this.oauthToken=E;this.bucket=T;this.locale=S;this.galSdkEventHandler=O;if(E===void 0){if(e===void 0)throw Error("nk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new mF9(v)};
WS.prototype.deleteLink=function(v){var e=v.serviceId;var d=v.sessionId;var E=v.accountLinkingEntryPoint;var T=v.linkName;var S=this,O;return _.I(function(b){var Y=(new ZA).setHeader(S.getHeader(d));var q=ew9({serviceId:e,linkName:T});Y=_.hr(Y,2,q);O=_.fp(Y,3,E);return b.return(S.makeRequest(S.galServiceClient.deleteLink,O,[1,3],[2,4]))})};
var liO=function(v,e){var d=e.serviceId;var E=e.sessionId;var T=e.dynamicUrlParameters;var S=e.redirectState;var O=e.consentLanguageKeys;var b=e.partnerConfigMinReadTimestamp;var Y;return _.I(function(q){var r=(new w0).setHeader(v.getHeader(E,T));r=_.A1(r,2,d);Y=_.A1(r,4,S);O!==void 0&&_.A1(Y,5,O);b!==void 0&&_.hr(Y,6,b);return q.return(v.makeRequest(v.galServiceClient.JSC$19317_finishOAuth,Y,[1,3],[2,4]))})};
WS.prototype.getLink=function(v){var e=v.serviceId;var d=v.sessionId;var E=v.scopes;var T=v.capabilities;var S=v.consistencyKey;var O=v.linkName;var b=this,Y;return _.I(function(q){var r=(new FQ).setHeader(b.getHeader(d)),h=ew9({serviceId:e,scopes:E,capabilities:T,linkName:O});Y=_.hr(r,2,h);S!==void 0&&(r=hPv(),r=_.A1(r,2,S),_.hr(Y,3,r));return q.return(b.makeRequest(b.galServiceClient.getLink,Y,[1,3],[2,4]))})};
var lYt=function(v,e){var d=e.serviceId;var E=e.sessionId;var T=e.googleScopes;var S=e.consistencyKey;var O;return _.I(function(b){var Y=(new cp).setHeader(v.getHeader(E));Y=_.A1(Y,2,d);var q=Array.from(T.values());Y=_.uS(Y,3,q,_.bS);q=hPv();q=_.A1(q,2,S);O=_.hr(Y,4,q);return b.return(v.makeRequest(v.galServiceClient.JSC$19317_depositGoogleCredential,O,[1,3],[2,4]))})};
WS.prototype.startLinkingSession=function(v){var e=v.serviceId;var d=v.sessionId;var E=v.scopes;var T=v.capabilities;var S=v.loginHint;var O=v.supportedFlows;var b=v.completionUrl;var Y=v.usePingPong;var q=v.twoWayLinking;var r=v.accountLinkingEntryPoint;var h=v.callerState;var K=v.consentLanguageKeys;var k=v.googleScopes;var J=v.dataUsageNoticeConfig;var R=v.linkName;var B=v.dynamicUrlParameters;var X=v.partnerConfigMinReadTimestamp;var Z=this,U,F;return _.I(function(g){if(T!==void 0&&E!==void 0)throw Error("jk");
var Q=(new XMi).setHeader(Z.getHeader(d,B));U=_.A1(Q,2,e);R!==void 0&&_.A1(U,14,R);if(T!==void 0){Q=U;var v3=Array.from(T.values());_.uS(Q,5,v3,_.bS)}else E!==void 0&&(Q=U,v3=Array.from(E.values()),_.uS(Q,3,v3,_.bS));b!==void 0&&_.A1(U,6,b);Y!==void 0&&_.xq(U,15,Y);O!==void 0&&(Q=U,v3=Array.from(O.values()),_.uS(Q,4,v3,_.D0));if(q!==void 0){if(q&&(!k||k.size===0))throw Error("ok");_.xq(U,8,q)}r!==void 0&&_.fp(U,9,r);S!==void 0&&_.A1(U,13,S);h!==void 0&&(Q=U,v3=(new TextEncoder).encode(h),_.n9(Q,12,
_.Mi(v3,!1),_.oE()));K!==void 0&&_.A1(U,16,K);X!==void 0&&_.hr(U,18,X);if(J!==void 0&&J.size>0||k!==void 0&&k.size>0)F=new C1O,k!==void 0&&k.size>0&&(Q=F,v3=Array.from(k.values()),_.uS(Q,1,v3,_.bS)),J!==void 0&&(J.has(0)&&_.B9O(F,2,_.D0,1,_.U6),J.has(1)&&_.B9O(F,2,_.D0,2,_.U6)),_.hr(U,17,F);return g.return(Z.makeRequest(Z.galServiceClient.startLinkingSession,U,[1],[2]))})};
WS.prototype.getMetadata=function(){var v=this,e,d;return _.I(function(E){e={};v.useFpa?(e["X-Goog-Api-Key"]=v.apiKey,e["X-Goog-AuthUser"]=v.authUser!==void 0?v.authUser.toString():"0",(d=_.FIt([]))&&(e.Authorization=d)):e.Authorization="Bearer "+v.oauthToken;v.locale&&(e["accept-language"]=v.locale);return E.return(e)})};
WS.prototype.makeRequest=function(v,e,d,E){var T=this,S;return _.I(function(O){if(O.nextAddress==1)return O.yield(T.getMetadata(),2);S=O.yieldResult;dsv(T,d);return O.return(v.bind(T.galServiceClient)(e,S).finally(function(){dsv(T,E)}))})};
var dsv=function(v,e){v.galSdkEventHandler!==void 0&&e.forEach(function(d){v.galSdkEventHandler.onEvent(d)})};
WS.prototype.getHeader=function(v,e){var d=new lK;v=_.n9(d,2,_.p7(v),0);v=_.fp(v,5,3);e=_.uS(v,8,e,_.bS);this.bucket!==void 0&&_.A1(e,1,this.bucket);return e};
var ew9=function(v){var e=v.serviceId;var d=v.scopes;var E=v.capabilities;v=v.linkName;if(E!==void 0&&d!==void 0)throw Error("jk");var T=new qUS;e=_.A1(T,1,e);E!==void 0?(d=Array.from(E.values()),_.uS(e,5,d,_.bS)):d!==void 0&&(d=Array.from(d.values()),_.uS(e,3,d,_.bS));v!==void 0&&_.A1(e,6,v);return e};var ddf=function(v){this.galService=new WS(v.alsDomain,v.apiKey,v.authUser,v.oauthToken,v.bucket,v.locale,v.galSdkEventHandler);this.JSC$19449_galRepository=new tjs(this.galService)};
ddf.prototype.getService=function(){return this.galService};var ENS=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(ENS,_.du);var T6w=function(v){var e=new ENS;return _.aM(e,1,v)};
ENS.prototype.setErrorMessage=function(v){return _.L0(this,2,v)};var Sd9=[0,_.wN,_.An,_.wN];var aK=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(aK,_.du);var WJf=[0,[1,2,3],_.cM,[0,sai,LX9,-1],_.cM,[0,kp1,-1],_.grU];var aHs=[0,_.l1,1,_.wN,_.An,-1,1,_.D23,_.zw,_.wN,-1,WJf];var iy1=[0,_.wN,[0,_.D23,_.zw,[0,_.An]],_.HM,[0,_.wN,-1]];var LN=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(LN,_.du);var OyO=[0,_.An,_.wN,-2,_.l1,_.wN,_.l1,_.wN,-2,1,_.HM];var IHi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(IHi,_.du);var byO=[0,_.l1];var Ydi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(Ydi,_.du);var msO=[0,_.wN,iy1,byO,OyO,aHs];var YKv=_.b6(Ydi,msO);var ytt=[0,yZt];var KSw=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(KSw,_.du);var qdC=[0,[1,3],tdv,_.wN,tdv];var NX=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(NX,_.du);var rts=[0,_.wN];var hwi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(hwi,_.du);var kF=function(v){return _.MT(v,ENS,2,s7)},KJS=function(v){var e=new hwi;
return _.$m(e,2,s7,v)},s7=[1,
2];var $sC=[0,s7,_.cM,rts,_.cM,Sd9,_.Zk,qdC,1,_.wN,ytt];var jn9=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(jn9,_.du);var N6i=function(v){var e=new jn9;return _.$m(e,3,snC,v)},snC=[2,
3];var ip=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(ip,_.du);var kxt=function(v,e){return _.hr(v,2,e)},LJ_=function(v,e){return _.hr(v,8,e)},V9i=function(v,e){return _.hr(v,3,e)};var oN1=[0,_.wN,$sC,msO,_.WVn,[0,[5,6,7],[0,_.wN,-2],[0,_.l1,_.wN,_.An],[0,WJf],[0,_.An,_.wN,-1,_.SJc,_.wN],_.cM,[0,[0,_.l1],_.wN,-1],_.cM,[0,[3,4],_.wN,-1,_.cM,[0,[0,_.wN,_.HM]],_.cM,[0,[0,[0,[1,2],_.cM,[0],_.cM,[0]]]]],_.cM,[0]],_.WVn,-1,[0,snC,_.wN,_.cM,rts,_.cM,Sd9,_.Zk,qdC,[0,yZt]]];var Jtv=_.b6(ip,oN1),Gx9=_.Ym(oN1);var M9Q=function(){_.kh.call(this)};
_.V(M9Q,_.kh);M9Q.prototype.init=function(){};
new M9Q;var t9t=_.Z9(["data-"]),fHQ=_.Z9(["aria-"]),Rw1=_.Z9(["aria-"]),OX=function(v,e){this.isLatencyMeasurementExperiment=v===void 0?!1:v;this.enableDialogA11yFix=e===void 0?!1:e;this.JSC$19478_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.fwB(_.TO.location.href)},yX_=function(v,e){v.onConsentPrimitiveShownCallback=e},PIC=function(v,e){return v.overriddenIframeLoadTimeout?v.overriddenIframeLoadTimeout:e!==void 0?e:5E3},rXC=function(v){if(v.prewarmPromise!==void 0)return v.prewarmPromise;
v.prewarmPromise=new Promise(function(e,d){IK(v,1);xst(v,B6t(v,!0),CIO(v));v.iframe?v.prewarmChannel||XJi(v,v.iframe,e):d(Error("pk"))});
v.prewarmPromise.finally(function(){v.prewarmPromise=void 0});
return v.prewarmPromise};
OX.prototype.showPrimitive=function(){var v=this;if(this.consentPromise!==void 0)return this.consentPromise;var e=Date.now();zw_(this,e);this.consentPromise=new Promise(function(d,E){IK(v,0,e);var T=v.isDarkTheme();v.isLatencyMeasurementExperiment||v.initialLoadingStrategy===1||v.initialLoadingStrategy===2||(v.loadingBar||(v.loadingBar=Wxt(getComputedStyle(document.body).direction==="rtl",T),v.loadingBar.style.position="fixed",v.loadingBar.style.zIndex="15000"),document.body.appendChild(v.loadingBar));
xst(v,B6t(v),CIO(v));v.iframe?v.channel||lHt(v,v.iframe,d,E):(Hys(v),E(Error("pk")))});
this.consentPromise.finally(function(){v.consentPromise=void 0});
return this.consentPromise};
var lHt=function(v,e,d,E){var T,S;_.I(function(O){switch(O.nextAddress){case 1:IK(v,3);T=!1;setTimeout(function(){if(!T){Hys(v);At_(v);Zyf(v);var b=T6w(7).setErrorMessage("Timeout connecting to iframe");d(LJ_(kxt(new ip,KJS(b)),N6i(b)))}},PIC(v,ctO(v)));
if(!v.prewarmPromise){O.jumpTo(2);break}_.qq(O,3);return O.yield(v.prewarmPromise,5);case 5:_.wk(O,2);break;case 3:_.jl(O),S=T6w(4).setErrorMessage("Error while prewarming."),d(LJ_(kxt(new ip,KJS(S)),N6i(S)));case 2:v.prewarmChannel&&v.prewarmChannel.send(Gx9(V9i(new ip,v.consentPrimitiveRequest))),v.channel=_.gN({destination:v.JSC$19478_win,iframe:e,origin:wJS(v),channelName:"cpw",onEstablished:function(){T=!0;Hys(v);v.isLatencyMeasurementExperiment||(v.JSC$19478_previousBodyOverflow=document.body.style.overflow,
v.JSC$19478_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,v.JSC$19478_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",v.enableDialogA11yFix&&window.addEventListener("blur",v.focusChangeListener));var b=v.iframe;b.style.bottom="0";b.style.position="fixed";b.style.right="0";b.style.border="none";b.style.left="0";b.style.top=
"0";b.style.zIndex="5000";b.style.pointerEvents="";b.style.visibility="";v.initialLoadingStrategy===2||v.initialLoadingStrategy===3?IK(v,4):IK(v,6);var Y;(Y=v.onConsentPrimitiveShownCallback)==null||Y.call(v)},
onMessage:function(b){b=Jtv(b.data);switch(_.oW(b,1)){case 1:At_(v);var Y=apS(_.W8(b,_.t1,7));Y&&(v.initialLoadingStrategy!==2&&v.initialLoadingStrategy!==3||IK(v,6,Y),IK(v,5,Y));if(Y=apS(_.W8(b,_.t1,6)))IK(v,7,Y),IK(v,8);var q,r;((q=_.W8(b,hwi,2))==null?void 0:_.Kp(q,s7))!==0&&((r=_.W8(b,jn9,8))==null?void 0:_.Kp(r,snC))!==0||E(Error("qk"));d(b);break;case 2:Zyf(v)}}}),_.s9(O)}})},XJi=function(v,e,d){v.prewarmChannel=_.gN({destination:v.JSC$19478_win,
iframe:e,origin:wJS(v),channelName:"pwcp",onEstablished:function(){IK(v,2);d()}})},wJS=function(v){var e=_.LY(v.src).toString();
return e&&e.indexOf("://")<0&&e.indexOf("//")!==0?v.origin:_.fwB(e)},B6t=function(v,e){e=e===void 0?!1:e;
var d,E=new Map([["origin",v.origin],["hl",(d=FJi(v))!=null?d:null]]);e&&E.set("pw","1");e=_.a([["cpr",v.consentPrimitiveRequest.serialize()]]);for(d=e.next();!d.done;d=e.next()){var T=_.a(d.value);d=T.next().value;T=T.next().value;E.set(d,T)}v.isDarkTheme()&&E.set("color_scheme","dark");return _.Oa(v.src,E)},Hys=function(v){v.isLatencyMeasurementExperiment||v.loadingBar&&document.body.removeChild(v.loadingBar)};
OX.prototype.getSrc=function(){var v=_.DV(this.origin),e;var d=(e=_.W8(this.consentPrimitiveRequest,IHi,3))==null?void 0:_.TZ(e,1);e="consent.google.com";d=d?"/u/"+encodeURIComponent(d.toString()):"";(v==null?0:v.endsWith("youtube.com"))?e="consent.youtube.com":(v=v==null?void 0:v.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(e="consent.google."+((v[1]?"co.":"")+encodeURIComponent(v[2])));return _.km("https://"+e+"/signedin"+d+"/landing")};
var xst=function(v,e,d){v.iframe||(v.iframe=document.createElement("iframe"),v.iframe.style.width="100%",v.iframe.style.height="100%",d!==112496729&&(v.iframe.style.colorScheme="auto"),v.isLatencyMeasurementExperiment&&(v.iframe.style.display="none"),_.c$(v.iframe,e),v.iframe.setAttribute("jsname","C5o1O"),Qnt(v.iframe),document.body.appendChild(v.iframe))},Qnt=function(v){v.style.bottom="-200vh";
v.style.position="fixed";v.style.right="-200vw";v.style.border="";v.style.left="";v.style.top="";v.style.zIndex="";v.style.pointerEvents="none";v.style.visibility="hidden"},At_=function(v){v.iframe&&(v.isLatencyMeasurementExperiment||(v.JSC$19478_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=v.JSC$19478_previousHtmlOverscroll),v.JSC$19478_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=v.JSC$19478_previousBodyOverscroll),v.JSC$19478_previousBodyOverflow!==
void 0&&(document.body.style.overflow=v.JSC$19478_previousBodyOverflow),v.enableDialogA11yFix&&gN9(v,!1)),Qnt(v.iframe))};
OX.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(gN9(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var gN9=function(v,e){var d,E,T=(d=v.iframe)==null?void 0:(E=d.parentElement)==null?void 0:E.children;if(T)for(d=0;d<T.length;d++)E=T[d],E!==v.iframe&&(e?(E.hasAttribute("aria-hidden")&&_.pY([_.Ea(t9t)],E,"data-old-aria-hidden",E.getAttribute("aria-hidden")),_.pY([_.Ea(fHQ)],E,"aria-hidden","true")):(E.removeAttribute("aria-hidden"),E.hasAttribute("data-old-aria-hidden")&&(_.pY([_.Ea(Rw1)],E,"aria-hidden",E.getAttribute("data-old-aria-hidden")),E.removeAttribute("data-old-aria-hidden"))))},IK=function(v,
e,d){var E;
(E=v.latencyCallback)==null||E.call(v,{latencyType:e,timestampEpochMillis:d!=null?d:Date.now()})};var uht=function(v,e,d){OX.call(this,e,d===void 0?!1:d);this.consentPrimitiveRequest=v;v=FJi(this);_.HkC(v);this.src=this.getSrc();var E;this.initialLoadingStrategy=(E=_.W8(this.consentPrimitiveRequest,LN,4))==null?void 0:_.oW(E,4)},nNs;
_.V(uht,OX);var mPs=function(v){var e=_.N("enable_primitive_dialog_aria_hide_siblings");v={request:v,enableDialogA11yFix:e===void 0?!1:e};nNs||(nNs=new uht(v.request,v.isLatencyMeasurementExperiment||_.oW(v.request,1)===2,v.enableDialogA11yFix));return nNs},FJi=function(v){var e;
return(e=_.W8(v.consentPrimitiveRequest,LN,4))==null?void 0:_.Vm(e,1)},zw_=function(v,e){if(!_.ym(v.consentPrimitiveRequest,aK,5)){var d=v.consentPrimitiveRequest,E=new aK;
_.hr(d,5,E)}var T;if((T=_.W8(v.consentPrimitiveRequest,aK,5))==null||_.MA$(_.mL(T,8))==null){var S;(S=_.W8(v.consentPrimitiveRequest,aK,5))!=null&&_.NG(S,8,e)}},CIO=function(v){var e;
return(e=_.W8(v.consentPrimitiveRequest,aK,5))==null?void 0:_.TZ(e,1)};
uht.prototype.isDarkTheme=function(){var v;return((v=_.W8(this.consentPrimitiveRequest,LN,4))==null?void 0:_.oW(v,2))===2};
var ctO=function(v){var e;return((e=_.W8(v.consentPrimitiveRequest,LN,4))==null?void 0:_.TZ(e,5))||void 0},Zyf=function(v){v.channel=void 0;
v.prewarmChannel=void 0;v.iframe&&(document.body.contains(v.iframe)&&document.body.removeChild(v.iframe),v.iframe=void 0);nNs=void 0},h0O=function(v){return OX.prototype.showPrimitive.call(v).then(function(e){return _.W8(e,hwi,2)})};for(var bp={},Dsv=(bp[64]="ma",bp[73]="ogb",bp[89]="cr",bp[21]="test",bp[0]="unkn",bp[137]="con",bp[155]="hl",bp[78]="yt",bp[171]="lp",bp[172]="ap",bp[177]="amo",bp[178]="pqe",bp[74]="gg",bp[1]="gm",bp[140]="am",bp[193]="sc",bp),Usf=_.a(Object.keys(Dsv)),pJQ=Usf.next();!pJQ.done;pJQ=Usf.next());var vTO=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(vTO,_.du);var eY1=[0,[2,3,4],_.wN,NQi,tdv,_.grU];var dU9=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(dU9,_.du);var ETv=_.b6(dU9,[0,Mdv,_.An,_.wN,_.An,_.wN,eY1]);var TGt=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(TGt,_.du);TGt.prototype.getCommand=function(){return _.oW(this,1)};
var S3w=function(){var v=new TGt;return _.fp(v,1,0)};var WW9=_.Ym([0,Mdv,_.An,[0,_.wN,_.An,-1]]);var af9=new _.In("s"),iC9=new _.In("t"),OC_=new _.In("u"),Ifs=new _.In("v"),bC1=function(v,e,d){_.bI.call(this,af9);this.mediaKey=v;this.photoUrl=e;this.photoSource=d};
_.V(bC1,_.bI);var Y3C=function(){_.bI.call(this,iC9)};
_.V(Y3C,_.bI);var mUi=function(v){v=v===void 0?!1:v;_.bI.call(this,OC_);this.isError=v};
_.V(mUi,_.bI);var yMf=function(){_.bI.call(this,Ifs)};
_.V(yMf,_.bI);var q3O=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,$U_=function(v){if(typeof v=="string"){if(v.charAt(0)==".")return rMw(v.substr(1));if(v.charAt(0)=="["){var e=q3O.exec(v);v=v.indexOf("=")==-1?void 0:e[3];return hYO(e[1],v)}return KWs(v)}return v},rMw=function(v){return function(e){return e.getAttribute&&_.Cy(e,v)}},hYO=function(v,e){return function(d){return e!==void 0?d.getAttribute&&d.getAttribute(v)==e:d.hasAttribute&&d.hasAttribute(v)}},KWs=function(v){v=v.toUpperCase();
return function(e){return(e=e.tagName)&&e.toUpperCase()==v}},j9C=function(){return!0};var Yb=function(v,e){this.JSC$19506_key_=v;this.JSC$19506_value_=e},mA=function(v){throw Error("rk`"+v.JSC$19506_key_);
},s9C=function(v,e){return new TypeError("sk`"+e+"`"+v.JSC$19506_key_+"`"+v.JSC$19506_value_+"`"+typeof v.JSC$19506_value_)};
Yb.prototype.string=function(v){return arguments.length==0?NGi(this):keS(this,v)};
var keS=function(v,e){var d;return(d=LWs(v))!=null?d:e},NGi=function(v){var e=LWs(v);
e===null&&mA(v);return e},LWs=function(v){var e=v.JSC$19506_value_;
if(e==null)return null;if(typeof e==="string")return e;throw s9C(v,"string");};
Yb.prototype.bool=function(v){if(arguments.length==0){var e=this.optionalBool();e===null&&mA(this)}else{var d;e=(d=this.optionalBool())!=null?d:v}return e};
Yb.prototype.optionalBool=function(){var v=this.JSC$19506_value_;if(v==null)return null;if(typeof v==="boolean")return v;if(typeof v==="string"){v=v.toLowerCase();if(v==="true"||v==="1")return!0;if(v==="false"||v==="0")return!1}throw s9C(this,"boolean");};
Yb.prototype.number=function(v){if(arguments.length==0){var e=VPs(this);e===null&&mA(this)}else e=oTv(this,v);return e};
var oTv=function(v,e){var d;return(d=VPs(v))!=null?d:e},VPs=function(v){var e=v.JSC$19506_value_;
if(e==null)return null;if(typeof e==="number")return e;if(typeof e==="string"){var d=Number(e);if(!isNaN(d)&&(d!==0||e.trim().length!==0))return d}throw s9C(v,"number");};
Yb.prototype.toString=function(){return NGi(this)};
Yb.prototype.enum=function(v,e){var d=!0,E=void 0,T;for(T in v){var S=v[T];d&&(d=!1,E=typeof S==="number"?oTv(this,e):keS(this,e));if(S==E)return E}JSON.stringify(v);return E};
Yb.prototype.array=function(v){if(arguments.length==0){var e=JMs(this);e===null&&mA(this);return e}e=JMs(this);return e==null?v:e};
var JMs=function(v){var e=v.JSC$19506_value_;if(e==null)return null;Array.isArray(e)||(typeof e!=="string"?e=[e]:(e=e.trim(),e=e==""?[]:e.split(",").map(function(d){return d.trim()})));
return Ges(v,e)},Ges=function(v,e){var d=v.JSC$19506_key_+"[";
return Array.from(e,function(E,T){return new Yb(d+T+"]",E)})};
Yb.prototype.object=function(v){var e=this.JSC$19506_value_;if(e==null)return v===void 0&&mA(this),v;if(typeof e==="object"&&e.constructor===Object){v={};var d=this.JSC$19506_key_+".",E;for(E in e)v[E]=new Yb(d+E,e[E]);return v}throw s9C(this,"object");};var y9=function(v){this.list_=MPi(v)},MPi=function(v){if(v instanceof y9)v=v.list_;
else if(v[0]instanceof y9){for(var e=new Set,d=0;d<v.length;d++)for(var E=_.a(v[d].list_),T=E.next();!T.done;T=E.next())e.add(T.value);v=e}return[].concat(_.t7(v))};
_.W=y9.prototype;_.W.each=function(v,e,d){((d===void 0?0:d)?mnt:_.wZ)(this.list_,v,e);return this};
_.W.size=function(){return this.list_.length};
_.W.isEmpty=function(){return this.list_.length===0};
_.W.get=function(v){return this.list_[v]||null};
_.W.el=function(){return this.list_[0]||null};
_.W.map=function(v,e){return _.R2(this.list_,v,e)};
_.W.equals=function(v){return this===v||_.uL(this.list_,v.list_)};
_.W.first=function(){return this.list_.length==0?null:new qz(this.list_[0])};
_.W.last=function(){return this.list_.length==0?null:new qz(this.list_[this.list_.length-1])};
_.W.find=function(v){var e=[];this.each(function(d){d=d.querySelectorAll(String(v));for(var E=0;E<d.length;E++)e.push(d[E])});
return new y9(e)};
_.W.parent=function(){var v=[];this.each(function(e){(e=e.parentElement||null)&&!_.lL(v,e)&&v.push(e)});
return new y9(v)};
_.W.children=function(){var v=[];this.each(function(e){e=_.G5(e);for(var d=0;d<e.length;d++)v.push(e[d])});
return new y9(v)};
_.W.filter=function(v){v=_.dN(this.list_,$U_(v));return new y9(v)};
_.W.closest=function(v){var e=[],d=$U_(v),E=function(T){return _.DF(T)&&d(T)};
this.each(function(T){(T=_.Xv(T,E,!0))&&!_.lL(e,T)&&e.push(T)});
return new y9(e)};
_.W.next=function(v){return tPs(this,_.uJn,v)};
_.W.prev=function(v){return tPs(this,f9i,v)};
var tPs=function(v,e,d){var E=[];var T=d?$U_(d):j9C;v.each(function(S){(S=e(S))&&T(S)&&E.push(S)});
return new y9(E)};
y9.prototype.setClass=function(v){return this.each(function(e){_.BJ(e,v)})};
var ffs=function(v,e){return v.each(function(d){_.eM(d,e)})},RYi=function(v,e){return v.each(function(d){_.p1(d,e)})};
y9.prototype.toggleClass=function(v,e){return e===!0?ffs(this,v):e===!1?RYi(this,v):this.each(function(d){_.Cy(d,v)?_.p1(d,v):_.eM(d,v)})};
y9.prototype.setText=function(v){return this.each(function(e){_.MF(e,v)})};
var PaS=function(v){v.each(function(e){e.removeAttribute("aria-hidden")})};
y9.prototype.getStyle=function(v){if(this.list_.length>0){var e=this.list_[0],d=e.style[_.kq(v)];return typeof d!=="undefined"?d:e.style[_.i9M(e,v)]||""}};
y9.prototype.getData=function(v){if(this.list_.length===0)return new Yb(v,null);var e=K$v(this.list_[0],v);return new Yb(v,e)};
y9.prototype.focus=function(v){try{v?this.el().focus(v):this.el().focus()}catch(e){}return this};
y9.prototype.click=function(){var v=_.Bn(this.el());if(v.createEvent){var e=v.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,v.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(e)}else v=v.createEventObject(),v.clientX=0,v.clientY=0,v.screenX=0,v.screenY=0,v.altKey=!1,v.ctrlKey=!1,v.shiftKey=!1,v.button=0,this.el().fireEvent("onclick",v)};
var rS=function(v,e,d,E){function T(b,Y,q){var r=Y;Y&&Y.parentNode&&(r=Y.cloneNode(!0));b(r,q)}
E=E===void 0?!1:E;if(v.list_.length==1){var S=v.list_[0],O=function(b){return e(b,S)};
d instanceof y9?d.each(O,void 0,E):Array.isArray(d)?(E?mnt:_.wZ)(d,O):O(d);return v}return v.each(function(b){d instanceof y9?d.each(function(Y){T(e,Y,b)}):Array.isArray(d)?_.wZ(d,function(Y){T(e,Y,b)}):T(e,d,b)})};
_.W=y9.prototype;_.W.append=function(v){return rS(this,function(e,d){e&&d.appendChild(e)},v)};
_.W.appendTo=function(v){(new y9([v])).append(this);return this};
_.W.remove=function(){return rS(this,function(v,e){_.KX(e)},null)};
_.W.empty=function(){return rS(this,function(v,e){_.VE(e)},null)};
_.W.after=function(v,e){return rS(this,function(d,E){d&&_.JZ(d,E)},v,!(e===void 0||e))};
_.W.before=function(v){return rS(this,function(e,d){e&&_.od(e,d)},v)};
_.W.replaceWith=function(v){return rS(this,function(e,d){e&&_.Fg2(e,d)},v)};
_.W.toggle=function(v){return this.each(function(e){_.wf(e,v)})};
_.W.show=function(){return this.toggle(!0)};
_.W.hide=function(){return this.toggle(!1)};
_.W.trigger=function(v,e,d,E){return xUv(this,v,e,d,E)};
var xUv=function(v,e,d,E,T){return v.each(function(S){_.jMM(_.Bn(S)).triggerWizEventInternal(S,e,d,E,T)})},qz=function(v,e){v instanceof y9&&(e=v.list_,v=null);
this.list_=MPi(v!=null?[v]:e)};
_.vM(qz,y9);_.W=qz.prototype;_.W.children=function(){return new y9(Array.prototype.slice.call(_.G5(this.list_[0])))};
_.W.each=function(v,e){v.call(e,this.list_[0],0);return this};
_.W.size=function(){return 1};
_.W.el=function(){return this.list_[0]};
_.W.first=function(){return this};var hw=function(v,e){e=e===void 0?window:e;this.hostId=v;this.JSC$19517_win=e;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$19517_previousHtmlOverscroll=this.JSC$19517_previousBodyOverscroll=this.JSC$19517_previousBodyOverflow="";this.eventTarget=new _.r6;this.JSC$19517_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
XrC=function(v){var e=BG_(BG_(BG_(new Cas(78),"po"),"hppp"),"hhc");
e.authUser=Number(_.Bb("SESSION_INDEX","0"));e.colorScheme=v;return e};
hw.prototype.getOrigin=function(){return this.origin?this.origin:_.uI(_.g6(_.QQ(new _.vF,this.JSC$19517_win.location.protocol),this.JSC$19517_win.location.hostname),this.JSC$19517_win.location.port).toString()};
hw.prototype.getTargetOrigin=function(){return _.uI(_.g6(_.QQ(new _.vF,this.scheme),this.domain),this.port)};
hw.prototype.preloadIframe=function(v){var e=this;if(this.iframeLoadPromise===void 0){var d=document.createElement("iframe");this.iframe=d;yk9(d,v);this.iframeLoadPromise=new Promise(function(E,T){var S=!1,O=function(b){b.stopPropagation();d.removeEventListener("error",O);d.removeEventListener("securitypolicyviolation",O);T(Error("tk",{cause:b}))};
d.addEventListener("error",O);d.addEventListener("securitypolicyviolation",O);setTimeout(function(){S||T(Error("uk"))},3E4);
zYi(e,d,function(){S=!0;d.removeEventListener("error",O);d.removeEventListener("securitypolicyviolation",O);E()})});
lfs(this);v=this.getTargetOrigin().toString();d.setAttribute("allow","camera "+v+"; display-capture "+v);this.parentElement.appendChild(d)}return this.iframeLoadPromise};
var ZCi=function(v,e){var d,E;return _.I(function(T){if(T.nextAddress==1)return d=Wxt(getComputedStyle(v.parentElement).direction==="rtl"),v.parentElement.appendChild(d),document.activeElement instanceof HTMLElement&&(v.elementToFocusAfterClose=document.activeElement),_.qq(T,2),T.yield(v.preloadIframe(e),4);if(T.nextAddress!=2){v.parentElement.removeChild(d);v.JSC$19517_previousBodyOverflow=v.parentElement.style.overflow;v.JSC$19517_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
v.JSC$19517_previousBodyOverscroll=v.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";v.parentElement.style.overscrollBehavior="contain";v.parentElement.style.overflow="hidden";var S=v.iframe;S.style.bottom="0";S.style.border="none";S.style.height="100%";S.style.left="0";S.style.position=v.iframePosition;S.style.right="0";S.style.top="0";S.style.width="100%";S.style.zIndex="2202";S.setAttribute("aria-hidden","false");S.setAttribute("aria-modal","true");
v.opened=!0;HCs(v);return _.wk(T,0)}E=_.jl(T);v.parentElement.removeChild(d);bot(v.isDarkTheme());AMS(v,!1);throw Error("vk",{cause:E});})},AMS=function(v,e){e=e===void 0?!0:e;
v.iframe!==void 0&&(cMw(v),document.documentElement.style.overscrollBehavior=v.JSC$19517_previousHtmlOverscroll,v.parentElement.style.overscrollBehavior=v.JSC$19517_previousBodyOverscroll,v.parentElement.style.overflow=v.JSC$19517_previousBodyOverflow,v.elementToFocusAfterClose!==void 0&&(v.elementToFocusAfterClose.focus(),v.elementToFocusAfterClose=void 0),e?lfs(v):(v.parentElement.removeChild(v.iframe),v.iframe=void 0,v.iframeLoadPromise=void 0,v.mainChannel=void 0),v.opened=!1)},cMw=function(v){v.backgroundElementsAriaHiddenIsNull&&
(PaS(v.backgroundElementsAriaHiddenIsNull),v.backgroundElementsAriaHiddenIsNull=void 0);
v.backgroundElementsAriaHiddenIsFalse&&(v.backgroundElementsAriaHiddenIsFalse.each(function(e){e.setAttribute("aria-hidden","false")}),v.backgroundElementsAriaHiddenIsFalse=void 0);
v.backgroundElementsWithoutInert&&(v.backgroundElementsWithoutInert.each(function(e){e.removeAttribute("inert")}),v.backgroundElementsWithoutInert=void 0)},HCs=function(v){v.backgroundElementsAriaHiddenIsNull=(new qz(v.iframe.parentElement)).children().filter(function(e){return e.getAttribute("aria-hidden")===null&&e!==v.iframe});
v.backgroundElementsAriaHiddenIsNull.each(function(e){e.setAttribute("aria-hidden","true")});
v.backgroundElementsAriaHiddenIsFalse=(new qz(v.iframe.parentElement)).children().filter(function(e){return e.getAttribute("aria-hidden")==="false"&&e!==v.iframe});
v.backgroundElementsAriaHiddenIsFalse.each(function(e){e.setAttribute("aria-hidden","true")});
v.backgroundElementsWithoutInert=(new qz(v.iframe.parentElement)).children().filter(function(e){return!e.hasAttribute("inert")&&e!==v.iframe});
v.backgroundElementsWithoutInert.each(function(e){e.setAttribute("inert","true")})},lfs=function(v){v=v.iframe;
v.style.bottom="-1000px";v.style.position="fixed";v.style.right="-1000px";v.style.border="";v.style.height="";v.style.left="";v.style.top="";v.style.width="";v.style.zIndex="";v.setAttribute("aria-hidden","true");v.setAttribute("aria-modal","false")};
hw.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Cas=function(v,e){hw.call(this,Dsv[v],e);this.options=[];this.style=""};
_.V(Cas,hw);var wrf=function(v){v.style="youtube";return v},FWO=function(v,e){v.eventTarget.listen(OC_,e);
return v},Q9Q=function(v,e){v.eventTarget.listen(af9,e);
return v},BG_=function(v,e){v.options.push(e);
return v},gTC=function(v){var e=[v.getOrigin()];
v.ancestorOrigins&&e.push.apply(e,_.t7(v.ancestorOrigins));var d=new _.vF(v.JSC$19517_win.location.href),E=v.startUrl?v.startUrl:v.options.includes("po")?"profile-picture/art":"profile-picture";e=Vq(_.ny(v.getTargetOrigin(),E),"origin",e);v.startUrl&&_.cw(e,"startPath",v.startUrl);v.authUser>0&&_.cw(e,"authuser",v.authUser);v.pageId!==void 0&&_.cw(e,"pageId",v.pageId);_.cw(e,"hostId",v.hostId);v.jsMode!==void 0&&_.cw(e,"jsmode",v.jsMode);v.rectangleRatio!==void 0&&_.cw(e,"rectangleRatio",v.rectangleRatio);
v.options.length>0&&_.cw(e,"opts",v.options.join(","));try{for(var T=_.a(["utm_source","utm_medium","utm_campaign","utm_content"]),S=T.next();!S.done;S=T.next()){var O=S.value;_.Z4(d,O)&&_.cw(e,O,_.Z4(d,O))}var b,Y=(b=v.hl)!=null?b:_.Z4(d,"hl");Y!==void 0&&_.cw(e,"hl",Y)}catch(q){if(!(q instanceof URIError))throw q;}v.colorScheme&&_.cw(e,"theme",v.colorScheme);v.style&&_.cw(e,"style",v.style);return e},uxC=function(v,e){v.mainChannel=_.gN({destination:v.JSC$19517_win,
iframe:e,origin:v.getTargetOrigin().toString(),channelName:"ow",onMessage:function(d){d=ETv(d.data);if(e===v.iframe)switch(_.oW(d,1)){case 1:v.eventTarget.dispatchEvent(new mUi);AMS(v);break;case 2:v.eventTarget.dispatchEvent(new bC1(_.Vm(d,4),_.Vm(d,2),_.oW(d,5),_.W8(d,vTO,6)));break;case 0:var E;v.eventTarget.dispatchEvent(new Y3C(_.Vm(d,2),(E=_.oW(d,3))!=null?E:0));break;case 3:v.eventTarget.dispatchEvent(new mUi(!0));AMS(v,!1);break;case 4:v.eventTarget.dispatchEvent(new yMf)}}})},zYi=function(v,
e,d){_.gN({destination:v.JSC$19517_win,
iframe:e,origin:_.uI(_.g6(_.QQ(new _.vF,v.scheme),v.domain),v.port).toString(),channelName:"owi",onMessage:function(E){e===v.iframe&&(d!==void 0&&d(),uxC(v,e),v.opened&&v.mainChannel.send(WW9(S3w())),E.reply(),zYi(v,e))}})};
Cas.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?hw.prototype.preloadIframe.call(this,gTC(this).toString()):this.iframeLoadPromise};
Cas.prototype.openPicker=function(v){var e=this;return _.I(function(d){if(d.nextAddress==1)return e.startUrl=v?v:e.options.includes("po")?"profile-picture/art":"profile-picture",d.yield(ZCi(e,gTC(e).toString()),2);if(e.mainChannel){var E=e.mainChannel,T=E.send;var S=S3w();S=_.L0(S,2,e.startUrl);T.call(E,WW9(S))}_.s9(d)})};var nTi=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(nTi,_.du);_.W=nTi.prototype;_.W.getSize=function(){return RN(this,1)};
_.W.setSize=function(v){return _.tn(this,1,v)};
_.W.getWidth=function(){return RN(this,12)};
_.W.getHeight=function(){return RN(this,13)};
_.W.setCenterCrop=function(v){return _.iZ(this,20,v)};
_.W.getHtml=function(){return _.NT(this,4)};
_.W.getToken=function(){return _.rf(this,24)};
_.W.setToken=function(v){return _.L0(this,24,v)};
_.W.getBackgroundColor=function(){return RN(this,87)};
_.W.hasBackgroundColor=function(){return _.d9(_.mL(this,87))!=null};
_.W.getStoryboardLevel=function(){return RN(this,109)};var K3=function(v){this.JSC$19525_value_=void 0;this.childNodes_={};if(v){var e=_.Xx7(v);v=_.Fh(v);for(var d=0;d<e.length;d++)this.set(e[d],v[d])}};
K3.prototype.set=function(v,e){DUi(this,v,e,!1)};
K3.prototype.add=function(v,e){DUi(this,v,e,!0)};
var DUi=function(v,e,d,E){for(var T=0;T<e.length;T++){var S=e.charAt(T);v.childNodes_[S]||(v.childNodes_[S]=new K3);v=v.childNodes_[S]}if(E&&v.JSC$19525_value_!==void 0)throw Error("wk`"+e);v.JSC$19525_value_=d},UUQ=function(v,e){for(var d=0;d<e.length;d++)if(v=v.childNodes_[e.charAt(d)],!v)return;
return v};
K3.prototype.get=function(v){return(v=UUQ(this,v))?v.JSC$19525_value_:void 0};
K3.prototype.getValues=function(){var v=[];prs(this,v);return v};
var prs=function(v,e){v.JSC$19525_value_!==void 0&&e.push(v.JSC$19525_value_);for(var d in v.childNodes_)prs(v.childNodes_[d],e)};
K3.prototype.getKeys=function(v){var e=[];if(v){for(var d=this,E=0;E<v.length;E++){var T=v.charAt(E);if(!d.childNodes_[T])return[];d=d.childNodes_[T]}vi9(d,v,e)}else vi9(this,"",e);return e};
var vi9=function(v,e,d){v.JSC$19525_value_!==void 0&&d.push(e);for(var E in v.childNodes_)vi9(v.childNodes_[E],e+E,d)};
_.W=K3.prototype;_.W.containsKey=function(v){return this.get(v)!==void 0};
_.W.containsValue=function(v){if(this.JSC$19525_value_===v)return!0;for(var e in this.childNodes_)if(this.childNodes_[e].containsValue(v))return!0;return!1};
_.W.clear=function(){this.childNodes_={};this.JSC$19525_value_=void 0};
_.W.remove=function(v){for(var e=this,d=[],E=0;E<v.length;E++){var T=v.charAt(E);if(!e.childNodes_[T])throw Error("xk`"+v);d.push([e,T]);e=e.childNodes_[T]}v=e.JSC$19525_value_;for(delete e.JSC$19525_value_;d.length>0;)if(E=d.pop(),e=E[0],E=E[1],e.childNodes_[E].isEmpty())delete e.childNodes_[E];else break;return v};
_.W.clone=function(){return new K3(this)};
_.W.getCount=function(){return BQi(this.getValues())};
_.W.isEmpty=function(){return this.JSC$19525_value_===void 0&&_.f0.isEmpty(this.childNodes_)};var $ds=function(){if(!e8i){var v=e8i=new K3,e;for(e in dY_)v.add(e,dY_[e])}},e8i,$b=function(v,e){this.types=v;
this.setters=e},dY_={a:new $b([3,
0],[function(v,e){_.iZ(v,21,e)},
function(v,e){_.tn(v,56,e)}]),
al:new $b([3],[function(v,e){_.iZ(v,74,e)}]),
b:new $b([3,0],[function(v,e){_.iZ(v,23,e)},
function(v,e){_.tn(v,38,e)}]),
ba:new $b([0],[function(v,e){_.tn(v,85,e)}]),
bc:new $b([0],[function(v,e){_.tn(v,87,e)}]),
br:new $b([0],[function(v,e){_.tn(v,86,e)}]),
c:new $b([3,0],[function(v,e){_.iZ(v,2,e)},
function(v,e){_.tn(v,39,e)}]),
cc:new $b([3],[function(v,e){_.iZ(v,51,e)}]),
ci:new $b([3],[function(v,e){_.iZ(v,32,e)}]),
ckm:new $b([3],[function(v,e){_.iZ(v,104,e)}]),
cp:new $b([0],[function(v,e){_.tn(v,92,e)}]),
cr:new $b([3],[function(v,e){_.iZ(v,108,e)}]),
cv:new $b([0],[function(v,e){_.tn(v,94,e)}]),
d:new $b([3],[function(v,e){_.iZ(v,3,e)}]),
dc:new $b([5],[function(v,e){_.L0(v,99,e)}]),
df:new $b([3],[function(v,e){_.iZ(v,80,e)}]),
dv:new $b([3],[function(v,e){_.iZ(v,90,e)}]),
e:new $b([0],[function(v,e){_.tn(v,15,e)}]),
em:new $b([0],[function(v,e){_.tn(v,107,e)}]),
f:new $b([4],[function(v,e){_.L0(v,16,e)}]),
fg:new $b([3],[function(v,e){_.iZ(v,34,e)}]),
fh:new $b([3],[function(v,e){_.iZ(v,30,e)}]),
fm:new $b([3],[function(v,e){_.iZ(v,84,e)}]),
fo:new $b([2],[function(v,e){_.iR(v,79,_.cc(e))}]),
ft:new $b([3],[function(v,e){_.iZ(v,50,e)}]),
fv:new $b([3],[function(v,e){_.iZ(v,31,e)}]),
g:new $b([3],[function(v,e){_.iZ(v,14,e)}]),
gce:new $b([4],[function(v,e){_.L0(v,112,e)}]),
gd:new $b([3],[function(v,e){_.iZ(v,83,e)}]),
gm:new $b([3],[function(v,e){_.iZ(v,105,e)}]),
h:new $b([3,0],[function(v,e){_.iZ(v,4,e)},
function(v,e){_.tn(v,13,e)}]),
i:new $b([3],[function(v,e){_.iZ(v,22,e)}]),
ic:new $b([0],[function(v,e){_.tn(v,71,e)}]),
id:new $b([3],[function(v,e){_.iZ(v,70,e)}]),
il:new $b([3],[function(v,e){_.iZ(v,96,e)}]),
ip:new $b([3],[function(v,e){_.iZ(v,54,e)}]),
iv:new $b([0],[function(v,e){_.NG(v,75,e)}]),
j:new $b([1],[function(v,e){e=e==null?e:rWf(e);_.iR(v,29,e)}]),
k:new $b([3,0],[function(v,e){_.iZ(v,17,e)},
function(v,e){_.tn(v,42,e)}]),
l:new $b([0],[function(v,e){_.tn(v,44,e)}]),
lf:new $b([3],[function(v,e){_.iZ(v,65,e)}]),
lo:new $b([3],[function(v,e){_.iZ(v,97,e)}]),
m:new $b([0],[function(v,e){_.tn(v,63,e)}]),
md:new $b([3],[function(v,e){_.iZ(v,91,e)}]),
mm:new $b([4],[function(v,e){_.L0(v,81,e)}]),
mo:new $b([3],[function(v,e){_.iZ(v,73,e)}]),
mp:new $b([0],[function(v,e){_.tn(v,115,e)}]),
mv:new $b([3],[function(v,e){_.iZ(v,66,e)}]),
n:new $b([3],[function(v,e){v.setCenterCrop(e)}]),
nc:new $b([3],[function(v,e){_.iZ(v,55,e)}]),
nd:new $b([3],[function(v,e){_.iZ(v,53,e)}]),
ng:new $b([3],[function(v,e){_.iZ(v,95,e)}]),
ngm:new $b([3],[function(v,e){_.iZ(v,106,e)}]),
no:new $b([3],[function(v,e){_.iZ(v,37,e)}]),
ns:new $b([3],[function(v,e){_.iZ(v,40,e)}]),
nt0:new $b([4],[function(v,e){_.L0(v,36,e)}]),
ntm:new $b([3],[function(v,e){_.iZ(v,114,e)}]),
nu:new $b([3],[function(v,e){_.iZ(v,46,e)}]),
nw:new $b([3],[function(v,e){_.iZ(v,48,e)}]),
o:new $b([1,3],[function(v,e){e=e==null?e:rWf(e);_.iR(v,7,e)},
function(v,e){_.iZ(v,27,e)}]),
p:new $b([3,0],[function(v,e){_.iZ(v,19,e)},
function(v,e){_.tn(v,43,e)}]),
pa:new $b([3],[function(v,e){_.iZ(v,61,e)}]),
pc:new $b([0],[function(v,e){_.tn(v,88,e)}]),
pd:new $b([3],[function(v,e){_.iZ(v,60,e)}]),
pf:new $b([3],[function(v,e){_.iZ(v,67,e)}]),
pg:new $b([3],[function(v,e){_.iZ(v,72,e)}]),
pi:new $b([2],[function(v,e){_.iR(v,76,_.cc(e))}]),
pp:new $b([3],[function(v,e){_.iZ(v,52,e)}]),
pt:new $b([4],[function(v,e){_.L0(v,111,e)}]),
q:new $b([4],[function(v,e){_.L0(v,28,e)}]),
r:new $b([3,0],[function(v,e){_.iZ(v,6,e)},
function(v,e){_.tn(v,26,e)}]),
ra:new $b([3],[function(v,e){_.iZ(v,103,e)}]),
rf:new $b([3],[function(v,e){_.iZ(v,100,e)}]),
rg:new $b([3],[function(v,e){_.iZ(v,59,e)}]),
rh:new $b([3],[function(v,e){_.iZ(v,49,e)}]),
rj:new $b([3],[function(v,e){_.iZ(v,57,e)}]),
ro:new $b([2],[function(v,e){_.iR(v,78,_.cc(e))}]),
rp:new $b([3],[function(v,e){_.iZ(v,58,e)}]),
rw:new $b([3],[function(v,e){_.iZ(v,35,e)}]),
rwa:new $b([3],[function(v,e){_.iZ(v,64,e)}]),
rwu:new $b([3],[function(v,e){_.iZ(v,41,e)}]),
s:new $b([3,0],[function(v,e){_.iZ(v,33,e)},
function(v,e){v.setSize(e)}]),
sb:new $b([0],[function(v,e){_.tn(v,110,e)}]),
sc:new $b([0],[function(v,e){_.tn(v,89,e)}]),
sg:new $b([3],[function(v,e){_.iZ(v,82,e)}]),
sl:new $b([0],[function(v,e){_.tn(v,109,e)}]),
sm:new $b([3],[function(v,e){_.iZ(v,93,e)}]),
t:new $b([4],[function(v,e){v.setToken(e)}]),
tm:new $b([3],[function(v,e){_.iZ(v,113,e)}]),
u:new $b([3],[function(v,e){_.iZ(v,18,e)}]),
ut:new $b([3],[function(v,e){_.iZ(v,45,e)}]),
v:new $b([0],[function(v,e){_.tn(v,62,e)}]),
vb:new $b([0],[function(v,e){_.NG(v,68,e)}]),
vf:new $b([4],[function(v,e){_.L0(v,102,e)}]),
vl:new $b([0],[function(v,e){_.NG(v,69,e)}]),
vm:new $b([3],[function(v,e){_.iZ(v,98,e)}]),
w:new $b([0],[function(v,e){_.tn(v,12,e)}]),
x:new $b([0],[function(v,e){_.tn(v,9,e)}]),
y:new $b([0],[function(v,e){_.tn(v,10,e)}]),
ya:new $b([2],[function(v,e){_.iR(v,77,_.cc(e))}]),
z:new $b([0],[function(v,e){_.tn(v,11,e)}])};
$ds.prototype.parse=function(v){var e=new nTi,d=new nTi;if(v=="")v=!0;else{v=v.split("-");for(var E=!0,T=0;T<v.length;T++){var S=v[T];if(S.length==0)E=!1;else{var O=S,b=!1;var Y=O;var q=O.charAt(0);q!=q.toLowerCase()&&(b=!0,Y=O.charAt(0).toLowerCase()+O.substring(1));var r=e8i;for(q=1;q<=Y.length;++q){var h=r,K=Y.substring(0,q);if(K.length==0?h.isEmpty():!UUQ(h,K))break}Y=q==1?null:(Y=r.get(Y.substring(0,q-1)))?{option:O.substring(0,q-1),value:O.substring(q-1),signed:b,attributes:Y}:null;if(Y){O=
[];b=[];q=!1;for(r=0;r<Y.attributes.types.length;r++){h=Y.attributes.types[r];var k=Y.value;K=T;if(Y.signed&&h==1)for(var J=k.length;J<12&&K<v.length-1;)k+="-"+v[K+1],J=k.length,++K;else if(h==2)for(;K<v.length-1&&v[K+1].match(/^[\d\.]/);)k+="-"+v[K+1],++K;J=Y.attributes.setters[r];k=EiO(this,h)(Y.option,k,e,d,J);if(k===null){q=!0;T=K;break}else O.push(h),b.push(k)}if(!q)for(Y=0;Y<b.length;Y++)r=O[Y],k=b[Y],Tyi(this,r)(S,k);E=E&&q}else E=!1}}v=E}return new SsO(e,d,v)};
var jF=function(v,e,d,E,T,S){T(d,e);v=v.charAt(0);S=S(v==v.toUpperCase());T(E,S)};
_.W=$ds.prototype;_.W.parseAndSetIntOption_=function(v,e,d,E,T){if(e=="")return 0;isFinite(e)&&(e=String(e));e=typeof e==="string"?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;if(isNaN(e))return 1;jF(v,e,d,E,T,Number);return null};
_.W.logIntParseError_=function(){};
_.W.parseAndSetFloatOption_=function(v,e,d,E,T){if(e=="")return 0;var S=Number(e);e=S==0&&_.IU(e)?NaN:S;if(isNaN(e))return 1;jF(v,e,d,E,T,Number);return null};
_.W.logFloatParseError_=function(){};
_.W.parseAndSetBoolOption_=function(v,e,d,E,T){if(e!="")return 2;jF(v,!0,d,E,T,Boolean);return null};
_.W.logBoolParseError_=function(){};
_.W.parseAndSetStringOption_=function(v,e,d,E,T){if(e=="")return 0;jF(v,e,d,E,T,function(S){return S?"1":""});
return null};
_.W.logStringParseError_=function(){};
_.W.parseAndSetUint64Base64Option_=function(v,e,d,E,T){if(e=="")return 0;jF(v,e,d,E,T,function(S){return S?1:0});
return null};
var EiO=function(v,e){switch(e){case 0:return(0,_.LX)(v.parseAndSetIntOption_,v);case 2:return(0,_.LX)(v.parseAndSetFloatOption_,v);case 3:return(0,_.LX)(v.parseAndSetBoolOption_,v);case 4:return(0,_.LX)(v.parseAndSetStringOption_,v);case 1:return(0,_.LX)(v.parseAndSetUint64Base64Option_,v);default:return function(){}}},Tyi=function(v,e){switch(e){case 0:return(0,_.LX)(v.logIntParseError_,v);
case 2:return(0,_.LX)(v.logFloatParseError_,v);case 3:return(0,_.LX)(v.logBoolParseError_,v);case 4:case 1:return(0,_.LX)(v.logStringParseError_,v);default:return function(){}}},SsO=function(v,e,d){this.valueProto_=v;
this.signatureFlagProto_=e;this.JSC$19537_valid_=d};
SsO.prototype.isValid=function(){return this.JSC$19537_valid_};var qjt=function(v){this.JSC$19538_parser_=null;this.JSC$19538_components_=[];this.JSC$19538_parsedOptions_=null;WuO(this,v)},acC=function(v){v.JSC$19538_parser_==null&&(v.JSC$19538_parser_=new $ds);
return v.JSC$19538_parser_},WuO=function(v,e){v.JSC$19538_parsedOptions_=e?typeof e==="string"?acC(v).parse(e):e:acC(v).parse("")},sX=function(v,e){return v==e?!1:!0};
_.W=qjt.prototype;_.W.JSC$19540_setCrop=function(v){v=v||void 0;var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,_.NT(d,2),_.NT(e.signatureFlagProto_,2))&&_.iZ(d,2,v);return this};
_.W.JSC$19540_setCircleCrop=function(v){v=v||void 0;var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,fN(d,51),fN(e.signatureFlagProto_,51))&&_.iZ(d,51,v);return this};
_.W.JSC$19540_setImageCrop=function(v){v=v||void 0;var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,fN(d,32),fN(e.signatureFlagProto_,32))&&_.iZ(d,32,v);return this};
_.W.JSC$19540_setHeight=function(v){var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,d.getHeight(),e.signatureFlagProto_.getHeight())&&_.tn(d,13,v);return this};
_.W.setCenterCrop=function(v){v=v||void 0;var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,_.NT(d,20),_.NT(e.signatureFlagProto_,20))&&d.setCenterCrop(v);return this};
_.W.JSC$19540_setSmartCrop=function(v){v=v||void 0;var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,_.NT(d,19),_.NT(e.signatureFlagProto_,19))&&_.iZ(d,19,v);return this};
_.W.JSC$19540_setPad=function(v){v=v||void 0;var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,fN(d,60),fN(e.signatureFlagProto_,60))&&_.iZ(d,60,v);return this};
_.W.JSC$19540_setSmartCropUseFace=function(v){v=v||void 0;var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,_.NT(d,67),_.NT(e.signatureFlagProto_,67))&&_.iZ(d,67,v);return this};
_.W.JSC$19540_setSmartCropNoClip=function(v){v=v||void 0;var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,_.NT(d,52),_.NT(e.signatureFlagProto_,52))&&_.iZ(d,52,v);return this};
_.W.setSize=function(v){var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,d.getSize(),e.signatureFlagProto_.getSize())&&d.setSize(v);return this};
_.W.setToken=function(v){v=v||void 0;var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,d.getToken(),e.signatureFlagProto_.getToken())&&d.setToken(v);return this};
_.W.JSC$19540_setWidth=function(v){var e=this.JSC$19538_parsedOptions_,d=e.valueProto_;sX(v,d.getWidth(),e.signatureFlagProto_.getWidth())&&_.tn(d,12,v);return this};
_.W.clearOptions=function(){WuO(this,"");return this};
_.W.build=function(){this.JSC$19538_components_.length=0;var v=this.JSC$19538_parsedOptions_,e=v.valueProto_;v=v.signatureFlagProto_;Nz(this,"s",e.getSize(),v.getSize());Nz(this,"w",e.getWidth(),v.getWidth());kb(this,"c",_.NT(e,2),_.NT(v,2));kb(this,"d",_.NT(e,3),_.NT(v,3));Nz(this,"h",e.getHeight(),v.getHeight());kb(this,"s",fN(e,33),fN(v,33));kb(this,"h",e.getHtml(),v.getHtml());kb(this,"p",_.NT(e,19),_.NT(v,19));kb(this,"pp",_.NT(e,52),_.NT(v,52));kb(this,"pf",_.NT(e,67),_.NT(v,67));kb(this,"n",
_.NT(e,20),_.NT(v,20));Nz(this,"r",RN(e,26),RN(v,26));kb(this,"r",_.NT(e,6),_.NT(v,6));kb(this,"o",fN(e,27),fN(v,27));var d=_.sU(e,7,_.Yu);L3(this,"o",d,_.sU(v,7,_.Yu));d=_.sU(e,29,_.Yu);L3(this,"j",d,_.sU(v,29,_.Yu));Nz(this,"x",RN(e,9),RN(v,9));Nz(this,"y",RN(e,10),RN(v,10));Nz(this,"z",RN(e,11),RN(v,11));kb(this,"g",_.NT(e,14),_.NT(v,14));Nz(this,"e",RN(e,15),RN(v,15));L3(this,"f",_.rf(e,16),_.rf(v,16));kb(this,"k",fN(e,17),fN(v,17));kb(this,"u",fN(e,18),!0);kb(this,"ut",fN(e,45),!0);kb(this,"i",
fN(e,22),!0);kb(this,"a",fN(e,21),fN(v,21));kb(this,"b",_.NT(e,23),_.NT(v,23));Nz(this,"b",RN(e,38),RN(v,38));Nz(this,"c",RN(e,39),RN(v,39),16,8);L3(this,"q",_.rf(e,28),_.rf(v,28));kb(this,"fh",fN(e,30),fN(v,30));kb(this,"fv",fN(e,31),fN(v,31));kb(this,"fg",_.NT(e,34),_.NT(v,34));kb(this,"ci",fN(e,32),fN(v,32));L3(this,"t",e.getToken(),v.getToken());L3(this,"nt0",_.rf(e,36),_.rf(v,36));kb(this,"rw",_.NT(e,35),_.NT(v,35));kb(this,"rwu",_.NT(e,41),_.NT(v,41));kb(this,"rwa",_.NT(e,64),_.NT(v,64));kb(this,
"nw",_.NT(e,48),_.NT(v,48));kb(this,"rh",_.NT(e,49),_.NT(v,49));kb(this,"no",_.NT(e,37),_.NT(v,37));kb(this,"ns",fN(e,40),fN(v,40));Nz(this,"k",RN(e,42),RN(v,42));Nz(this,"p",RN(e,43),RN(v,43));Nz(this,"l",RN(e,44),RN(v,44));Nz(this,"v",RN(e,62),RN(v,62));kb(this,"nu",fN(e,46),fN(v,46));kb(this,"ft",fN(e,50),fN(v,50));kb(this,"cc",fN(e,51),fN(v,51));kb(this,"nd",fN(e,53),fN(v,53));kb(this,"ip",fN(e,54),fN(v,54));kb(this,"nc",fN(e,55),fN(v,55));Nz(this,"a",RN(e,56),RN(v,56));kb(this,"rj",fN(e,57),
fN(v,57));kb(this,"rp",fN(e,58),fN(v,58));kb(this,"rg",fN(e,59),fN(v,59));kb(this,"pd",fN(e,60),fN(v,60));kb(this,"pa",fN(e,61),fN(v,61));Nz(this,"m",RN(e,63),RN(v,63));Nz(this,"vb",Pp(e,68),Pp(v,68));Nz(this,"vl",Pp(e,69),Pp(v,69));kb(this,"lf",fN(e,65),fN(v,65));kb(this,"mv",fN(e,66),fN(v,66));kb(this,"id",fN(e,70),fN(v,70));Nz(this,"ic",RN(e,71),!0);kb(this,"pg",_.NT(e,72),_.NT(v,72));kb(this,"mo",fN(e,73),fN(v,73));kb(this,"al",fN(e,74),fN(v,74));Nz(this,"iv",Pp(e,75),Pp(v,75));Nz(this,"pi",xF(e,
76),xF(v,76));Nz(this,"ya",xF(e,77),xF(v,77));Nz(this,"ro",xF(e,78),xF(v,78));Nz(this,"fo",xF(e,79),xF(v,79));kb(this,"df",fN(e,80),fN(v,80));L3(this,"mm",_.rf(e,81),_.rf(v,81));kb(this,"sg",fN(e,82),fN(v,82));kb(this,"gd",fN(e,83),fN(v,83));kb(this,"fm",fN(e,84),fN(v,84));Nz(this,"ba",RN(e,85),RN(v,85));Nz(this,"br",RN(e,86),RN(v,86));Nz(this,"bc",e.getBackgroundColor(),v.getBackgroundColor(),16,8);Nz(this,"pc",RN(e,88),RN(v,88),16,8);Nz(this,"sc",RN(e,89),RN(v,89),16,8);kb(this,"dv",fN(e,90),fN(v,
90));kb(this,"md",fN(e,91),fN(v,91));Nz(this,"cp",RN(e,92),RN(v,92));kb(this,"sm",fN(e,93),fN(v,93));Nz(this,"cv",RN(e,94),RN(v,94));kb(this,"ng",fN(e,95),fN(v,95));kb(this,"il",fN(e,96),fN(v,96));kb(this,"lo",fN(e,97),fN(v,97));kb(this,"vm",fN(e,98),fN(v,98));L3(this,"dc",_.rf(e,99),_.rf(v,99));kb(this,"rf",fN(e,100),fN(v,100));L3(this,"vf",_.rf(e,102),_.rf(v,102));kb(this,"ra",_.NT(e,103),_.NT(v,103));kb(this,"ckm",fN(e,104),fN(v,104));kb(this,"gm",fN(e,105),fN(v,105));kb(this,"ngm",fN(e,106),fN(v,
106));Nz(this,"em",RN(e,107),RN(v,107));kb(this,"cr",fN(e,108),fN(v,108));Nz(this,"sl",e.getStoryboardLevel(),v.getStoryboardLevel());Nz(this,"sb",RN(e,110),RN(v,110));L3(this,"pt",_.rf(e,111),_.rf(v,111));L3(this,"gce",_.rf(e,112),_.rf(v,112));kb(this,"tm",fN(e,113),fN(v,113));kb(this,"ntm",fN(e,114),fN(v,114));Nz(this,"mp",RN(e,115),RN(v,115));return this.JSC$19538_components_.join("-")};
var Nz=function(v,e,d,E,T,S){if(d!=null){var O=T==void 0||T!=10&&T!=16?10:T;d=Number(d).toString(O);T=new Pnw;T.append(O==16?"0x":"");O=T.append;S==void 0?S="":(S-=d.length,S=S<=0?"":(0,_.ftc)("0",S));O.call(T,S);T.append(d);ili(v,e,T.toString(),!!Number(E))}},kb=function(v,e,d,E){d&&ili(v,e,"",!!E)},L3=function(v,e,d,E){d&&ili(v,e,String(d),!!Number(E))},ili=function(v,e,d,E){E&&(e=e.charAt(0).toUpperCase()+e.substring(1));
v.JSC$19538_components_.push(e+d)};_.vM(Z5,qjt);_.W=Z5.prototype;_.W.JSC$19540_setCrop=function(v){v&&V9(this);return Z5.superClass_.JSC$19540_setCrop.call(this,v)};
_.W.JSC$19540_setHeight=function(v){v=v==null||v<0?void 0:v;v!=null&&this.setSize();return Z5.superClass_.JSC$19540_setHeight.call(this,v)};
_.W.JSC$19540_setImageCrop=function(v){v&&V9(this);return Z5.superClass_.JSC$19540_setImageCrop.call(this,v)};
_.W.JSC$19540_setCircleCrop=function(v){v&&V9(this);return Z5.superClass_.JSC$19540_setCircleCrop.call(this,v)};
_.W.setSize=function(v){_.Qj(v)&&(v=Math.max(v.width,v.height));v=v==null||v<0?void 0:v;v!=null&&(this.JSC$19540_setWidth(),this.JSC$19540_setHeight());return Z5.superClass_.setSize.call(this,v)};
_.W.JSC$19540_setSmartCrop=function(v){v&&V9(this);return Z5.superClass_.JSC$19540_setSmartCrop.call(this,v)};
_.W.JSC$19540_setSmartCropNoClip=function(v){v&&V9(this);return Z5.superClass_.JSC$19540_setSmartCropNoClip.call(this,v)};
_.W.JSC$19540_setSmartCropUseFace=function(v){v&&V9(this);return Z5.superClass_.JSC$19540_setSmartCropUseFace.call(this,v)};
_.W.setCenterCrop=function(v){v&&V9(this);return Z5.superClass_.setCenterCrop.call(this,v)};
_.W.JSC$19540_setPad=function(v){v&&V9(this);return Z5.superClass_.JSC$19540_setPad.call(this,v)};
_.W.JSC$19540_setWidth=function(v){v=v==null||v<0?void 0:v;v!=null&&this.setSize();return Z5.superClass_.JSC$19540_setWidth.call(this,v)};
var Ol_=function(v){v.clearOptions();var e=v.JSC$19538_parsedOptions_,d=e.valueProto_;sX(!0,_.NT(d,3),_.NT(e.signatureFlagProto_,3))&&_.iZ(d,3,!0);return v},V9=function(v){v.setCenterCrop();
v.JSC$19540_setCircleCrop();v.JSC$19540_setCrop();v.JSC$19540_setImageCrop();v.JSC$19540_setPad();v.JSC$19540_setSmartCrop();v.JSC$19540_setSmartCropNoClip();v.JSC$19540_setSmartCropUseFace()};
Z5.prototype.build=function(){var v=this.JSC$19538_parsedOptions_.valueProto_;fN(v,18)||fN(v,45)?v.getSize()||this.setSize(0):(v=this.JSC$19538_parsedOptions_.valueProto_,v.getSize()||v.getWidth()||v.getHeight()||(this.setSize(),this.JSC$19540_setHeight(),this.JSC$19540_setWidth(),V9(this)));return Z5.superClass_.build.call(this)};var Ici=/^[^\/]*\/\//,oK=function(v,e){e=e===void 0?!1:e;this.original_=v;this.originalPrefix_="";(v=this.original_.match(Ici))&&v[0]?(this.originalPrefix_=v[0],v=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):v="http://"+this.original_;this.uri_=_.Az(v,!0);this.isFreeformUrl_=e;this.JSC$19544_valid_=!0;this.obfuscated_=!1},blO=function(v,e){v.JSC$19546_pathPrefix_=v.JSC$19546_pathPrefix_?v.JSC$19546_pathPrefix_+("/"+e):e},Jw=function(v){if(v.JSC$19546_components_==
void 0){var e=v.uri_.getPath().substring(1);
v.JSC$19546_pathPrefix_=null;if(v.isFreeformUrl_){v.JSC$19546_components_=[];if((e.match(/=/g)||[]).length>1)return v.JSC$19544_valid_=!1,v.JSC$19546_components_;var d=e.indexOf("=");d!=-1?(v.JSC$19546_components_.push(e.substr(0,d)),v.JSC$19546_components_.push(e.substr(d+1))):v.JSC$19546_components_.push(e);return v.JSC$19546_components_}v.JSC$19546_components_=e.split("/");e=v.JSC$19546_components_.length;e>2&&v.JSC$19546_components_[0]=="u"&&(blO(v,v.JSC$19546_components_[0]+"/"+v.JSC$19546_components_[1]),
v.JSC$19546_components_.shift(),v.JSC$19546_components_.shift(),e-=2);if(e==0||e==4||e>7)return v.JSC$19544_valid_=!1,v.JSC$19546_components_;if(e==2)blO(v,v.JSC$19546_components_[0]);else if(v.JSC$19546_components_[0]=="image")blO(v,v.JSC$19546_components_[0]);else if(e==7||e==3)return v.JSC$19544_valid_=!1,v.JSC$19546_components_;if(e<=3){v.obfuscated_=!0;e==3&&(blO(v,v.JSC$19546_components_[1]),v.JSC$19546_components_.shift(),--e);--e;d=v.JSC$19546_components_[e];var E=d.indexOf("=");E!=-1&&(v.JSC$19546_components_[e]=
d.substr(0,E),v.JSC$19546_components_.push(d.substr(E+1)))}}return v.JSC$19546_components_};
oK.prototype.isValid=function(){Jw(this);return this.JSC$19544_valid_};
oK.prototype.isObfuscated=function(){Jw(this);return this.obfuscated_};
var Ys_=function(v){Jw(v);return v.isFreeformUrl_},Gl=function(v){Jw(v);
v.JSC$19546_pathPrefix_==void 0&&(v.JSC$19546_pathPrefix_=null);return v.JSC$19546_pathPrefix_},mYi=function(v){switch(Jw(v).length){case 7:return!0;
case 6:return Gl(v)==null;case 5:return!1;case 3:return!0;case 2:return Gl(v)==null;case 1:return!1;default:return!1}},Mz=function(v,e){if(Ys_(v))a:{switch(e){case 7:e=0;
break;case 4:if(!mYi(v)){v=null;break a}e=1;break;default:v=null;break a}v=Jw(v)[e]}else if(v.isObfuscated())a:{var d=Gl(v)!=null?1:0;switch(e){case 6:e=d;break;case 4:if(!mYi(v)){v=null;break a}e=1+d;break;default:v=null;break a}v=Jw(v)[e]}else a:{d=Gl(v)!=null?1:0;switch(e){case 0:e=d;break;case 1:e=1+d;break;case 2:e=2+d;break;case 3:e=3+d;break;case 4:if(!mYi(v)){v=null;break a}e=4+d;break;case 5:e=mYi(v)?1:0;e=4+d+e;break;default:v=null;break a}v=Jw(v)[e]}return v};
oK.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Mz(this,4));return this.options_};var Kxs=function(){};
Kxs.prototype.parse=function(v,e){return new rkv(v,e===void 0?!1:e)};
var rkv=function(v,e){oK.call(this,v,e===void 0?!1:e)};
_.V(rkv,oK);_.vM(cR,Z5);var hXi;cR.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
cR.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var v=cR.superClass_.build.call(this),e=[];Gl(this.parsedImageUrl_)!=null&&e.push(Gl(this.parsedImageUrl_));var d=Ys_(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var E=this.parsedImageUrl_;E.obfuscatedData_==void 0&&(E.obfuscatedData_=Mz(E,6));e.push(E.obfuscatedData_+(v?"="+v:""))}else if(d){E=e.push;var T=this.parsedImageUrl_;T.freeformUrlPath_===void 0&&(T.freeformUrlPath_=Mz(T,
7));E.call(e,T.freeformUrlPath_);v&&e.push(v)}else E=e.push,T=this.parsedImageUrl_,T.obfuscatedGaiaId_==void 0&&(T.obfuscatedGaiaId_=Mz(T,0)),E.call(e,T.obfuscatedGaiaId_),E=e.push,T=this.parsedImageUrl_,T.photoId_==void 0&&(T.photoId_=Mz(T,1)),E.call(e,T.photoId_),E=e.push,T=this.parsedImageUrl_,T.imageVersion_==void 0&&(T.imageVersion_=Mz(T,2)),E.call(e,T.imageVersion_),E=e.push,T=this.parsedImageUrl_,T.signature_==void 0&&(T.signature_=Mz(T,3)),E.call(e,T.signature_),v&&e.push(v),v=e.push,E=this.parsedImageUrl_,
E.filename_==void 0&&(E.filename_=Mz(E,5)),v.call(e,E.filename_);e=d?e.join("="):e.join("/");e=_.Az(this.protocolPrefix_+this.JSC$19552_domain_+"/"+e+(this.JSC$19552_query_?"?"+this.JSC$19552_query_:"")).toString();e.startsWith("%3a//")&&(e=e.replace("%3a//","://"));return e};var yCt=_.Z9(["viewBox"]),qss=_.Z9(["width"]),rCf=_.Z9(["height"]),h8_=_.Z9(["fill"]),Kuv=_.Z9(["id"]),$Yv=_.Z9(["x"]),j4O=_.Z9(["y"]);jbs.prototype.getLength=function(){return this.parsedData.length};
jbs.prototype.write=function(v){for(var e=0,d=this.parsedData.length;e<d;e++)v.put(this.parsedData[e],8)};
var JkC=function(v,e){var d=new jbs(e);v.dataList.push(d);d=v.errorCorrectLevel;var E=1,T=encodeURI(e).toString().replace(/%[0-9a-fA-F]{2}/g,"a");e=T.length+(T.length!=e?3:0);T=0;for(var S=tw.length;T<=S;T++){var O=0;switch(d){case 1:O=tw[T][0];break;case 0:O=tw[T][1];break;case 3:O=tw[T][2];break;case 2:O=tw[T][3]}if(e<=O)break;else E++}if(E>tw.length)throw Error("Gk");v.typeNumber=E;v.dataCache=null};
sb9.prototype.isDark=function(v,e){if(v<0||this.moduleCount<=v||e<0||this.moduleCount<=e)throw Error("yk`"+v+"`"+e);return this.modules[v][e]};
for(var Go_=function(v,e,d){v.moduleCount=v.typeNumber*4+17;v.modules=Array(v.moduleCount);for(var E=0;E<v.moduleCount;E++){v.modules[E]=Array(v.moduleCount);for(var T=0;T<v.moduleCount;T++)v.modules[E][T]=null}s49(v,0,0);s49(v,v.moduleCount-7,0);s49(v,0,v.moduleCount-7);E=Nyw[v.typeNumber-1];for(T=0;T<E.length;T++)for(var S=0;S<E.length;S++){var O=E[T],b=E[S];if(v.modules[O][b]==null)for(var Y=-2;Y<=2;Y++)for(var q=-2;q<=2;q++)v.modules[O+Y][b+q]=Y==-2||Y==2||q==-2||q==2||Y==0&&q==0?!0:!1}for(E=
8;E<v.moduleCount-8;E++)v.modules[E][6]==null&&(v.modules[E][6]=E%2==0);for(E=8;E<v.moduleCount-8;E++)v.modules[6][E]==null&&(v.modules[6][E]=E%2==0);E=v.errorCorrectLevel<<3|d;for(T=E<<10;f3(T)-f3(1335)>=0;)T^=1335<<f3(T)-f3(1335);E=(E<<10|T)^21522;for(T=0;T<15;T++)S=!e&&(E>>T&1)==1,T<6?v.modules[T][8]=S:T<8?v.modules[T+1][8]=S:v.modules[v.moduleCount-15+T][8]=S;for(T=0;T<15;T++)S=!e&&(E>>T&1)==1,T<8?v.modules[8][v.moduleCount-T-1]=S:T<9?v.modules[8][15-T-1+1]=S:v.modules[8][15-T-1]=S;v.modules[v.moduleCount-
8][8]=!e;if(v.typeNumber>=7){E=v.typeNumber;for(T=E<<12;f3(T)-f3(7973)>=0;)T^=7973<<f3(T)-f3(7973);E=E<<12|T;for(T=0;T<18;T++)S=!e&&(E>>T&1)==1,v.modules[Math.floor(T/3)][T%3+v.moduleCount-8-3]=S;for(T=0;T<18;T++)S=!e&&(E>>T&1)==1,v.modules[T%3+v.moduleCount-8-3][Math.floor(T/3)]=S}if(v.dataCache==null){T=v.typeNumber;S=v.dataList;e=v.errorCorrectLevel;E=k39(T,e);if(E==void 0)throw Error("Fk`"+T+"`"+e);O=E.length/3;e=[];for(b=0;b<O;b++){Y=E[b*3];q=E[b*3+1];for(var r=E[b*3+2],h=0;h<Y;h++)e.push(new N1Q(q,
r))}E=new ko9;for(O=0;O<S.length;O++)b=S[O],E.put(b.mode,4),E.put(b.getLength(),Luw(b.mode,T)),b.write(E);for(O=T=0;O<e.length;O++)T+=e[O].dataCount;if(E.length>T*8)throw Error("zk`"+E.length+"`"+T*8);for(E.length+4<=T*8&&E.put(0,4);E.length%8!=0;)VTC(E,!1);for(;!(E.length>=T*8);){E.put(236,8);if(E.length>=T*8)break;E.put(17,8)}S=T=q=0;O=Array(e.length);b=Array(e.length);for(Y=0;Y<e.length;Y++){h=e[Y].dataCount;var K=e[Y].totalCount-h;T=Math.max(T,h);S=Math.max(S,K);O[Y]=Array(h);for(r=0;r<O[Y].length;r++)O[Y][r]=
255&E.buffer[r+q];q+=h;r=K;h=new wE([1],0);for(K=0;K<r;K++)h=h.multiply(new wE([1,oiS(K)],0));r=h;h=(new wE(O[Y],r.getLength()-1)).mod(r);b[Y]=Array(r.getLength()-1);for(r=0;r<b[Y].length;r++)K=r+h.getLength()-b[Y].length,b[Y][r]=K>=0?h.get(K):0}for(r=E=0;r<e.length;r++)E+=e[r].totalCount;E=Array(E);for(r=q=0;r<T;r++)for(Y=0;Y<e.length;Y++)r<O[Y].length&&(E[q++]=O[Y][r]);for(r=0;r<S;r++)for(Y=0;Y<e.length;Y++)r<b[Y].length&&(E[q++]=b[Y][r]);v.dataCache=E}e=v.dataCache;E=-1;T=v.moduleCount-1;S=7;O=
0;for(b=v.moduleCount-1;b>0;b-=2)for(b==6&&b--;;){for(Y=0;Y<2;Y++)v.modules[T][b-Y]==null&&(q=!1,O<e.length&&(q=(e[O]>>>S&1)==1),JCt(d,T,b-Y)&&(q=!q),v.modules[T][b-Y]=q,S--,S==-1&&(O++,S=7));T+=E;if(T<0||v.moduleCount<=T){T-=E;E=-E;break}}},s49=function(v,e,d){for(var E=-1;E<=7;E++)if(!(e+E<=-1||v.moduleCount<=e+E))for(var T=-1;T<=7;T++)d+T<=-1||v.moduleCount<=d+T||(v.modules[e+E][d+T]=0<=E&&E<=6&&(T==0||T==6)||0<=T&&T<=6&&(E==0||E==6)||2<=E&&E<=4&&2<=T&&T<=4?!0:!1)},MU1=function(v){for(var e=0,
d=0,E=0;E<8;E++){Go_(v,!0,E);
var T=v;for(var S=T.moduleCount,O=0,b=0;b<S;b++)for(var Y=0;Y<S;Y++){for(var q=0,r=T.isDark(b,Y),h=-1;h<=1;h++)if(!(b+h<0||S<=b+h))for(var K=-1;K<=1;K++)Y+K<0||S<=Y+K||(h!=0||K!=0)&&r==T.isDark(b+h,Y+K)&&q++;q>5&&(O+=3+q-5)}for(b=0;b<S-1;b++)for(Y=0;Y<S-1;Y++)if(q=0,T.isDark(b,Y)&&q++,T.isDark(b+1,Y)&&q++,T.isDark(b,Y+1)&&q++,T.isDark(b+1,Y+1)&&q++,q==0||q==4)O+=3;for(b=0;b<S;b++)for(Y=0;Y<S-6;Y++)T.isDark(b,Y)&&!T.isDark(b,Y+1)&&T.isDark(b,Y+2)&&T.isDark(b,Y+3)&&T.isDark(b,Y+4)&&!T.isDark(b,Y+5)&&
T.isDark(b,Y+6)&&(O+=40);for(Y=0;Y<S;Y++)for(b=0;b<S-6;b++)T.isDark(b,Y)&&!T.isDark(b+1,Y)&&T.isDark(b+2,Y)&&T.isDark(b+3,Y)&&T.isDark(b+4,Y)&&!T.isDark(b+5,Y)&&T.isDark(b+6,Y)&&(O+=40);for(Y=q=0;Y<S;Y++)for(b=0;b<S;b++)T.isDark(b,Y)&&q++;T=O+=Math.abs(100*q/S/S-50)/5*10;if(E==0||e>T)e=T,d=E}return d},Nyw=[[],
[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]],f3=function(v){for(var e=0;v!=0;)e++,v>>>=1;return e},JCt=function(v,e,d){switch(v){case 0:return(e+d)%2==0;
case 1:return e%2==0;case 2:return d%3==0;case 3:return(e+d)%3==0;case 4:return(Math.floor(e/2)+Math.floor(d/3))%2==0;case 5:return e*d%2+e*d%3==0;case 6:return(e*d%2+e*d%3)%2==0;case 7:return(e*d%3+(e+d)%2)%2==0;default:throw Error("Ak`"+v);}},Luw=function(v,e){if(1<=e&&e<10)switch(v){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Bk`"+v);}else if(e<27)switch(v){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Bk`"+v);}else if(e<41)switch(v){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Bk`"+v);}else throw Error("Ck`"+e);},RK=function(v){if(v<1)throw Error("Dk`"+v);
return G3C[v]},oiS=function(v){for(;v<0;)v+=255;
for(;v>=256;)v-=255;return PS[v]},PS=Array(256),G3C=Array(256),MTS=0;MTS<8;MTS++)PS[MTS]=1<<MTS;
for(var xb=8;xb<256;xb++)PS[xb]=PS[xb-4]^PS[xb-5]^PS[xb-6]^PS[xb-8];for(var tTi=0;tTi<255;tTi++)G3C[PS[tTi]]=tTi;wE.prototype.get=function(v){return this.num[v]};
wE.prototype.getLength=function(){return this.num.length};
wE.prototype.multiply=function(v){for(var e=Array(this.getLength()+v.getLength()-1),d=0;d<this.getLength();d++)for(var E=0;E<v.getLength();E++)e[d+E]^=oiS(RK(this.get(d))+RK(v.get(E)));return new wE(e,0)};
wE.prototype.mod=function(v){if(this.getLength()-v.getLength()<0)return this;for(var e=RK(this.get(0))-RK(v.get(0)),d=Array(this.getLength()),E=0;E<this.getLength();E++)d[E]=this.get(E);for(E=0;E<v.getLength();E++)d[E]^=oiS(RK(v.get(E))+e);return(new wE(d,0)).mod(v)};
var fc9=[[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]],k39=function(v,e){switch(e){case 1:return fc9[(v-1)*4];case 0:return fc9[(v-1)*4+1];case 3:return fc9[(v-1)*4+2];case 2:return fc9[(v-1)*4+3]}};
ko9.prototype.get=function(v){return(this.buffer[Math.floor(v/8)]>>>7-v%8&1)==1};
ko9.prototype.put=function(v,e){for(var d=0;d<e;d++)VTC(this,(v>>>e-d-1&1)==1)};
var VTC=function(v,e){var d=Math.floor(v.length/8);v.buffer.length<=d&&v.buffer.push(0);e&&(v.buffer[d]|=128>>>v.length%8);v.length++},tw=[[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]],oEi=function(){var v=function(e,d){this.JSC$19572__el=e;this.JSC$19572__htOption=d};
v.prototype.draw=function(e){function d(r,h){r=document.createElementNS("http://www.w3.org/2000/svg",r);for(var K in h)h.hasOwnProperty(K)&&(K==="href"?_.px1(r,h[K]):_.pY([_.Ea(yCt),_.Ea(qss),_.Ea(rCf),_.Ea(h8_),_.Ea(Kuv),_.Ea($Yv),_.Ea(j4O)],r,K,h[K]));return r}
var E=this.JSC$19572__htOption,T=this.JSC$19572__el,S=e.moduleCount;this.clear();var O=d("svg",{viewBox:"0 0 "+String(S)+" "+String(S),width:"100%",height:"100%",fill:E.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});T.appendChild(O);O.appendChild(d("rect",{fill:E.colorLight,width:"100%",height:"100%"}));O.appendChild(d("rect",{fill:E.colorDark,width:"1",height:"1",id:"template"}));for(var b=0;b<S;b++)for(var Y=0;Y<S;Y++)if(e.isDark(b,Y)){var q=d("use",{x:String(b),y:String(Y),href:"#template"});
O.appendChild(q)}};
v.prototype.clear=function(){for(;this.JSC$19572__el.hasChildNodes();)this.JSC$19572__el.removeChild(this.JSC$19572__el.lastChild)};
return v}(),VUf=document.documentElement.tagName.toLowerCase()==="svg"?oEi:typeof CanvasRenderingContext2D!="undefined"?function(){var v=function(e,d){this._bIsPainted=!1;
Lx1();this.JSC$19572__htOption=d;this._elCanvas=document.createElement("canvas");this._elCanvas.width=d.width;this._elCanvas.height=d.height;e.appendChild(this._elCanvas);this.JSC$19572__el=e;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$19572__el.appendChild(this._elImage);this._bSupportDataURI=null};
v.prototype._onMakeImage=function(){var e=this._elCanvas.toDataURL("image/png");this._elImage.src=e;this._elImage.style.display="block";this._elCanvas.style.display="none"};
v.prototype._safeSetDataURI=function(e,d){var E=this;E._fFail=d;E._fSuccess=e;E._bSupportDataURI===null?(e=_.hz("IMG"),d=function(){E._bSupportDataURI=!1;E._fFail&&E._fFail.call(E)},e.onabort=d,e.onerror=d,e.onload=function(){E._bSupportDataURI=!0;
E._fSuccess&&E._fSuccess.call(E)},e.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):E._bSupportDataURI===!0&&E._fSuccess?E._fSuccess.call(E):E._bSupportDataURI===!1&&E._fFail&&E._fFail.call(E)};
v.prototype.draw=function(e){var d=this._oContext,E=this.JSC$19572__htOption,T=e.moduleCount,S=E.width/T,O=E.height/T,b=Math.round(S),Y=Math.round(O);this._elImage.style.display="none";this.clear();for(var q=0;q<T;q++)for(var r=0;r<T;r++){var h=e.isDark(q,r),K=r*S,k=q*O;d.strokeStyle=h?E.colorDark:E.colorLight;d.lineWidth=1;d.fillStyle=h?E.colorDark:E.colorLight;d.fillRect(K,k,S,O);d.strokeRect(Math.floor(K)+.5,Math.floor(k)+.5,b,Y);d.strokeRect(Math.ceil(K)-.5,Math.ceil(k)-.5,b,Y)}this._bIsPainted=
!0};
v.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
v.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
v.prototype.round=function(e){return e?Math.floor(e*1E3)/1E3:e};
return v}():function(){var v=function(e,d){this.JSC$19572__el=e;
this.JSC$19572__htOption=d};
v.prototype.draw=function(e){for(var d=this.JSC$19572__htOption,E=this.JSC$19572__el,T=e.moduleCount,S=Math.floor(d.width/T),O=Math.floor(d.height/T),b=['<table style="border:0;border-collapse:collapse;">'],Y=0;Y<T;Y++){b.push("<tr>");for(var q=0;q<T;q++)b.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+S+"px;height:"+O+"px;background-color:"+(e.isDark(Y,q)?d.colorDark:d.colorLight)+';"></td>');b.push("</tr>")}b.push("</table>");e=b.join("");e=_.sEc(_.k26,e);_.UJ(E,e);
e=E.childNodes[0];T=(d.width-e.offsetWidth)/2;S=(d.height-e.offsetHeight)/2;T>0&&S>0&&(e.style.margin=S+"px "+T+"px")};
v.prototype.clear=function(){this.JSC$19572__el.textContent=""};
return v}();
tUt.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19575__android||this.JSC$19575__android>=3)&&this._oDrawing.makeImage()};
tUt.prototype.clear=function(){this._oDrawing.clear()};
_.TO.QRCode=tUt;var R8C={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var BS=function(){};
BS.prototype.stringify=function(v){return _.TO.JSON.stringify(v,void 0)};
BS.prototype.parse=function(v){return _.TO.JSON.parse(v,void 0)};var PPw=function(){_.bI.call(this,"z")};
_.vM(PPw,_.bI);var xYQ=function(){_.bI.call(this,"y")};
_.vM(xYQ,_.bI);var Byi=null,CPi=function(){return Byi=Byi||new _.r6},X6_=function(v){_.bI.call(this,"serverreachability",v)};
_.vM(X6_,_.bI);var C3=function(v){var e=CPi();e.dispatchEvent(new X6_(e,v))},z8s=function(v,e){_.bI.call(this,"statevent",v);
this.stat=e};
_.vM(z8s,_.bI);var Xd=function(v){var e=CPi();e.dispatchEvent(new z8s(e,v))},lc9=function(v,e,d,E){_.bI.call(this,"timingevent",v);
this.size=e;this.rtt=d;this.retries=E};
_.vM(lc9,_.bI);var HlC=function(v,e,d){var E=CPi();E.dispatchEvent(new lc9(E,v,e,d))},zl=function(v,e){if(typeof v!=="function")throw Error("Hk");
return _.TO.setTimeout(function(){v()},e)};var lp=function(){this.redactEnabled_=!0};
lp.prototype.disableRedact=function(){this.redactEnabled_=!1};
var ACs=function(v,e,d,E,T,S){v.info(function(){if(v.redactEnabled_)if(S){var O="";for(var b=S.split("&"),Y=0;Y<b.length;Y++){var q=b[Y].split("=");if(q.length>1){var r=q[0];q=q[1];var h=r.split("_");O=h.length>=2&&h[1]=="type"?O+(r+"="+q+"&"):O+(r+"=redacted&")}}}else O=null;else O=S;return"XMLHTTP REQ ("+E+") [attempt "+T+"]: "+e+"\n"+d+"\n"+O})},Zli=function(v,e,d,E,T,S,O){v.info(function(){return"XMLHTTP RESP ("+E+") [ attempt "+T+"]: "+e+"\n"+d+"\n"+S+" "+O})},HS=function(v,e,d,E){v.info(function(){return"XMLHTTP TEXT ("+
e+"): "+cCf(v,d)+(E?" "+E:"")})},w69=function(v,e){v.info(function(){return"TIMEOUT: "+e})};
lp.prototype.debug=function(){};
lp.prototype.info=function(){};
lp.prototype.warning=function(){};
var cCf=function(v,e){if(!v.redactEnabled_)return e;if(!e)return null;try{var d=JSON.parse(e);if(d)for(var E=0;E<d.length;E++)if(Array.isArray(d[E])){var T=d[E];if(!(T.length<2)){var S=T[1];if(Array.isArray(S)&&!(S.length<1)){var O=S[0];if(O!="noop"&&O!="stop"&&O!="close")for(var b=1;b<S.length;b++)S[b]=""}}}return(0,_.kN)(d)}catch(Y){return v.debug("Exception parsing expected JS array - probably was not JS"),e}};var Aw=function(v,e,d,E,T){this.JSC$19597_channel_=v;this.JSC$19597_channelDebug_=e;this.sid_=d;this.JSC$19597_rid_=E;this.JSC$19597_retryId_=T||1;this.JSC$19597_eventHandler_=new _.Im(this);this.timeout_=45E3;this.JSC$19597_extraHeaders_=null;this.JSC$19597_successful_=!1;this.JSC$19597_postData_=this.JSC$19597_requestUri_=this.JSC$19597_baseUri_=this.JSC$19597_type_=this.JSC$19597_requestStartTime_=this.JSC$19597_watchDogTimeoutTime_=this.JSC$19597_watchDogTimerId_=null;this.JSC$19597_pendingMessages_=
[];this.JSC$19597_xmlHttp_=null;this.JSC$19597_xmlHttpChunkStart_=0;this.JSC$19597_lastError_=this.JSC$19597_verb_=null;this.JSC$19597_lastStatusCode_=-1;this.JSC$19597_cancelled_=!1;this.JSC$19597_readyStateChangeThrottleMs_=0;this.JSC$19597_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Fu_},Fu_=function(){this.JSC$19599_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Q49=function(v,e){switch(v){case 0:return"Non-200 return code ("+e+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},gi9={},u8Q={};
Aw.prototype.setTimeout=function(v){this.timeout_=v};
var DY9=function(v,e,d){v.JSC$19597_type_=1;v.JSC$19597_baseUri_=_.dG(e.clone());v.JSC$19597_postData_=d;v.decodeChunks_=!0;ni9(v,null)},ni9=function(v,e){v.JSC$19597_requestStartTime_=Date.now();
UYt(v);v.JSC$19597_requestUri_=v.JSC$19597_baseUri_.clone();Vq(v.JSC$19597_requestUri_,"t",v.JSC$19597_retryId_);v.JSC$19597_xmlHttpChunkStart_=0;var d=v.JSC$19597_channel_.JSC$19616_supportsCrossDomainXhrs_;v.fetchResponseState_=new Fu_;v.JSC$19597_xmlHttp_=p6_(v.JSC$19597_channel_,d?e:null,!v.JSC$19597_postData_);v.JSC$19597_readyStateChangeThrottleMs_>0&&(v.JSC$19597_readyStateChangeThrottle_=new _.wB((0,_.LX)(v.JSC$19601_xmlHttpHandler_,v,v.JSC$19597_xmlHttp_),v.JSC$19597_readyStateChangeThrottleMs_));
v.JSC$19597_eventHandler_.listen(v.JSC$19597_xmlHttp_,"readystatechange",v.JSC$19601_readyStateChangeHandler_);e=v.JSC$19597_extraHeaders_?_.f0.clone(v.JSC$19597_extraHeaders_):{};v.JSC$19597_postData_?(v.JSC$19597_verb_||(v.JSC$19597_verb_="POST"),e["Content-Type"]="application/x-www-form-urlencoded",v.JSC$19597_xmlHttp_.send(v.JSC$19597_requestUri_,v.JSC$19597_verb_,v.JSC$19597_postData_,e)):(v.JSC$19597_verb_="GET",v.JSC$19597_xmlHttp_.send(v.JSC$19597_requestUri_,v.JSC$19597_verb_,null,e));C3(1);
ACs(v.JSC$19597_channelDebug_,v.JSC$19597_verb_,v.JSC$19597_requestUri_,v.JSC$19597_rid_,v.JSC$19597_retryId_,v.JSC$19597_postData_)};
Aw.prototype.JSC$19601_readyStateChangeHandler_=function(v){v=v.target;var e=this.JSC$19597_readyStateChangeThrottle_;e&&_.VQ(v)==3?(this.JSC$19597_channelDebug_.debug("Throttling readystatechange."),e.fire()):this.JSC$19601_xmlHttpHandler_(v)};
Aw.prototype.JSC$19601_xmlHttpHandler_=function(v){try{v==this.JSC$19597_xmlHttp_?vZ_(this):this.JSC$19597_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(e){this.JSC$19597_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),eDQ(this)}finally{}};
var vZ_=function(v){var e=_.VQ(v.JSC$19597_xmlHttp_),d=v.JSC$19597_xmlHttp_.JSC$9787_lastErrorCode_,E=v.JSC$19597_xmlHttp_.getStatus();if(!(e<3||e==3&&!eDQ(v))){v.JSC$19597_cancelled_||e!=4||d==7||(d==8||E<=0?C3(3):C3(2));d69(v);var T=v.JSC$19597_xmlHttp_.getStatus();v.JSC$19597_lastStatusCode_=T;d=EZv(v);eDQ(v)||v.JSC$19597_channelDebug_.debug(function(){return"No response text for uri "+v.JSC$19597_requestUri_+" status "+T});
v.JSC$19597_successful_=T==200;Zli(v.JSC$19597_channelDebug_,v.JSC$19597_verb_,v.JSC$19597_requestUri_,v.JSC$19597_rid_,v.JSC$19597_retryId_,e,T);if(v.JSC$19597_successful_){if(v.decodeInitialResponse_&&!v.initialResponseDecoded_)if(E=TWs(v))HS(v.JSC$19597_channelDebug_,v.JSC$19597_rid_,E,"Initial handshake response via X-HTTP-Initial-Response"),v.initialResponseDecoded_=!0,SYi(v,E);else{v.JSC$19597_successful_=!1;v.JSC$19597_lastError_=3;Xd(12);v.JSC$19597_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
v.JSC$19597_rid_+")");Zu(v);cS(v);return}v.decodeChunks_?WjO(v,e,d):(HS(v.JSC$19597_channelDebug_,v.JSC$19597_rid_,d,null),SYi(v,d));e==4&&Zu(v);v.JSC$19597_successful_&&!v.JSC$19597_cancelled_&&(e==4?aXC(v.JSC$19597_channel_,v):(v.JSC$19597_successful_=!1,UYt(v)))}else CHt(v.JSC$19597_xmlHttp_),T==400&&d.indexOf("Unknown SID")>0?(v.JSC$19597_lastError_=3,Xd(12),v.JSC$19597_channelDebug_.warning("XMLHTTP Unknown SID ("+v.JSC$19597_rid_+")")):(v.JSC$19597_lastError_=0,Xd(13),v.JSC$19597_channelDebug_.warning("XMLHTTP Bad status "+
T+" ("+v.JSC$19597_rid_+")")),Zu(v),cS(v)}},TWs=function(v){return v.JSC$19597_xmlHttp_&&(v=PR(v.JSC$19597_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.IU(v)?v:null},EZv=function(v){if(!iPf(v))return v.JSC$19597_xmlHttp_.getResponseText();
var e=v.JSC$19597_xmlHttp_.getResponse();if(e==="")return"";var d="",E=e.length,T=_.VQ(v.JSC$19597_xmlHttp_)==4;if(!v.fetchResponseState_.JSC$19599_textDecoder){if(typeof TextDecoder==="undefined")return Zu(v),cS(v),"";v.fetchResponseState_.JSC$19599_textDecoder=new _.TO.TextDecoder}for(var S=0;S<E;S++)v.fetchResponseState_.responseArrivedForFetch=!0,d+=v.fetchResponseState_.JSC$19599_textDecoder.decode(e[S],{stream:!(T&&S==E-1)});e.length=0;v.fetchResponseState_.responseBuffer+=d;v.JSC$19597_xmlHttpChunkStart_=
0;return v.fetchResponseState_.responseBuffer},eDQ=function(v){return v.JSC$19597_xmlHttp_?v.fetchResponseState_.responseArrivedForFetch?!0:!(!v.JSC$19597_xmlHttp_.getResponseText()&&!v.JSC$19597_xmlHttp_.getResponse()):!1},iPf=function(v){return v.JSC$19597_xmlHttp_?v.JSC$19597_verb_=="GET"&&v.JSC$19597_type_!=2&&v.JSC$19597_channel_.usesFetchStreams_:!1},WjO=function(v,e,d){for(var E=!0,T;!v.JSC$19597_cancelled_&&v.JSC$19597_xmlHttpChunkStart_<d.length;)if(T=OPs(v,d),T==u8Q){e==4&&(v.JSC$19597_lastError_=
4,Xd(14),E=!1);
HS(v.JSC$19597_channelDebug_,v.JSC$19597_rid_,null,"[Incomplete Response]");break}else if(T==gi9){v.JSC$19597_lastError_=4;Xd(15);HS(v.JSC$19597_channelDebug_,v.JSC$19597_rid_,d,"[Invalid Chunk]");E=!1;break}else HS(v.JSC$19597_channelDebug_,v.JSC$19597_rid_,T,null),SYi(v,T);iPf(v)&&v.JSC$19597_xmlHttpChunkStart_!=0&&(v.fetchResponseState_.responseBuffer=v.fetchResponseState_.responseBuffer.slice(v.JSC$19597_xmlHttpChunkStart_),v.JSC$19597_xmlHttpChunkStart_=0);e!=4||d.length!=0||v.fetchResponseState_.responseArrivedForFetch||
(v.JSC$19597_lastError_=1,Xd(16),E=!1);v.JSC$19597_successful_=v.JSC$19597_successful_&&E;E?d.length>0&&!v.firstByteReceived_&&(v.firstByteReceived_=!0,e=v.JSC$19597_channel_,e.JSC$19616_backChannelRequest_==v&&e.detectBufferingProxy_&&!e.bpDetectionDone_&&(e.JSC$19616_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+d.length),IXw(e),e.bpDetectionDone_=!0,Xd(11))):(HS(v.JSC$19597_channelDebug_,v.JSC$19597_rid_,d,"[Invalid Chunked Response]"),Zu(v),cS(v))},OPs=function(v,e){var d=
v.JSC$19597_xmlHttpChunkStart_,E=e.indexOf("\n",d);
if(E==-1)return u8Q;d=Number(e.substring(d,E));if(isNaN(d))return gi9;E+=1;if(E+d>e.length)return u8Q;e=e.slice(E,E+d);v.JSC$19597_xmlHttpChunkStart_=E+d;return e};
Aw.prototype.cancel=function(){this.JSC$19597_cancelled_=!0;Zu(this)};
var UYt=function(v){v.JSC$19597_watchDogTimeoutTime_=Date.now()+v.timeout_;bPf(v,v.timeout_)},bPf=function(v,e){if(v.JSC$19597_watchDogTimerId_!=null)throw Error("Ik");
v.JSC$19597_watchDogTimerId_=zl((0,_.LX)(v.JSC$19601_onWatchDogTimeout_,v),e)},d69=function(v){v.JSC$19597_watchDogTimerId_&&(_.TO.clearTimeout(v.JSC$19597_watchDogTimerId_),v.JSC$19597_watchDogTimerId_=null)};
Aw.prototype.JSC$19601_onWatchDogTimeout_=function(){this.JSC$19597_watchDogTimerId_=null;var v=Date.now();v-this.JSC$19597_watchDogTimeoutTime_>=0?(w69(this.JSC$19597_channelDebug_,this.JSC$19597_requestUri_),this.JSC$19597_type_!=2&&(C3(3),Xd(17)),Zu(this),this.JSC$19597_lastError_=2,cS(this)):(this.JSC$19597_channelDebug_.warning("WatchDog timer called too early"),bPf(this,this.JSC$19597_watchDogTimeoutTime_-v))};
var cS=function(v){v.JSC$19597_channel_.state_==0||v.JSC$19597_cancelled_||aXC(v.JSC$19597_channel_,v)},Zu=function(v){d69(v);
_.p0(v.JSC$19597_readyStateChangeThrottle_);v.JSC$19597_readyStateChangeThrottle_=null;v.JSC$19597_eventHandler_.removeAll();if(v.JSC$19597_xmlHttp_){var e=v.JSC$19597_xmlHttp_;v.JSC$19597_xmlHttp_=null;e.abort();e.dispose()}};
Aw.prototype.getLastError=function(){return this.JSC$19597_lastError_};
var SYi=function(v,e){try{var d=v.JSC$19597_channel_;if(d.state_!=0&&(d.JSC$19616_backChannelRequest_==v||YY9(d.forwardChannelRequestPool_,v)))if(!v.initialResponseDecoded_&&YY9(d.forwardChannelRequestPool_,v)&&d.state_==3){try{var E=d.wireCodec_.JSC$19611_parser_.parse(e)}catch(b){E=null}if(Array.isArray(E)&&E.length==3){e=E;if(e[0]==0)a:if(d.JSC$19616_channelDebug_.debug("Server claims our backchannel is missing."),d.JSC$19616_backChannelTimerId_)d.JSC$19616_channelDebug_.debug("But we are currently starting the request.");
else{if(d.JSC$19616_backChannelRequest_)if(d.JSC$19616_backChannelRequest_.JSC$19597_requestStartTime_+3E3<v.JSC$19597_requestStartTime_)m6i(d),y4s(d);else break a;else d.JSC$19616_channelDebug_.warning("We do not have a BackChannel established");qYf(d);Xd(18)}else{d.JSC$19616_lastPostResponseArrayId_=e[1];var T=d.JSC$19616_lastPostResponseArrayId_-d.JSC$19616_lastArrayId_;if(0<T){var S=e[2];d.JSC$19616_channelDebug_.debug(S+" bytes (in "+T+" arrays) are outstanding on the BackChannel");S<37500&&
d.enableStreaming_&&d.JSC$19616_backChannelRetryCount_==0&&!d.JSC$19616_deadBackChannelTimerId_&&(d.JSC$19616_deadBackChannelTimerId_=zl((0,_.LX)(d.JSC$19618_onBackChannelDead_,d),6E3))}}if(r4s(d.forwardChannelRequestPool_)<=1&&d.forwardChannelFlushedCallback_){try{d.forwardChannelFlushedCallback_()}catch(b){}d.forwardChannelFlushedCallback_=void 0}}else d.JSC$19616_channelDebug_.debug("Bad POST response data returned"),wS(d,11)}else if((v.initialResponseDecoded_||d.JSC$19616_backChannelRequest_==
v)&&m6i(d),!_.IU(e)){var O=d.wireCodec_.JSC$19611_parser_.parse(e);d.onInput_(O,v)}C3(4)}catch(b){}};var hDw=function(v,e){this.JSC$19604_mapId=v;this.map=e;this.context=null};var Kj1=function(v){this.maxPoolSizeConfigured_=v||10;_.TO.PerformanceNavigationTiming?(v=_.TO.performance.getEntriesByType("navigation"),v=v.length>0&&(v[0].nextHopProtocol=="hq"||v[0].nextHopProtocol=="h2")):v=!!(_.TO.chrome&&_.TO.chrome.loadTimes&&_.TO.chrome.loadTimes()&&_.TO.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19607_maxSize_=v?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19607_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19607_request_=null;this.JSC$19607_pendingMessages_=
[]},$6t=function(v){return v.JSC$19607_request_?!0:v.requestPool_?v.requestPool_.size>=v.JSC$19607_maxSize_:!1},r4s=function(v){return v.JSC$19607_request_?1:v.requestPool_?v.requestPool_.size:0},YY9=function(v,e){return v.JSC$19607_request_?v.JSC$19607_request_==e:v.requestPool_?v.requestPool_.has(e):!1},jAf=function(v,e){v.requestPool_?v.requestPool_.add(e):v.JSC$19607_request_=e},sAw=function(v,e){v.JSC$19607_request_&&v.JSC$19607_request_==e?v.JSC$19607_request_=null:v.requestPool_&&v.requestPool_.has(e)&&
v.requestPool_.delete(e)};
Kj1.prototype.cancel=function(){this.JSC$19607_pendingMessages_=NWt(this);if(this.JSC$19607_request_)this.JSC$19607_request_.cancel(),this.JSC$19607_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var v=_.a(this.requestPool_.values()),e=v.next();!e.done;e=v.next())e.value.cancel();this.requestPool_.clear()}};
var NWt=function(v){if(v.JSC$19607_request_!=null)return v.JSC$19607_pendingMessages_.concat(v.JSC$19607_request_.JSC$19597_pendingMessages_);if(v.requestPool_!=null&&v.requestPool_.size!==0){var e=v.JSC$19607_pendingMessages_;v=_.a(v.requestPool_.values());for(var d=v.next();!d.done;d=v.next())e=e.concat(d.value.JSC$19597_pendingMessages_);return e}return _.Zt(v.JSC$19607_pendingMessages_)},kki=function(v,e){v.JSC$19607_pendingMessages_=v.JSC$19607_pendingMessages_.concat(e)};var Ljs=function(v,e){var d=new lp;d.debug("TestLoadImage: loading "+v);if(_.TO.Image){var E=new Image;E.onload=_.kB(Fd,d,"TestLoadImage: loaded",!0,e,E);E.onerror=_.kB(Fd,d,"TestLoadImage: error",!1,e,E);E.onabort=_.kB(Fd,d,"TestLoadImage: abort",!1,e,E);E.ontimeout=_.kB(Fd,d,"TestLoadImage: timeout",!1,e,E);_.TO.setTimeout(function(){if(E.ontimeout)E.ontimeout()},1E4);
E.src=v}else e(!1)},Vrf=function(v,e){var d=new lp,E=new AbortController,T=setTimeout(function(){E.abort();
Fd(d,"TestPingServer: timeout",!1,e)},1E4);
fetch(v,{signal:E.signal}).then(function(S){clearTimeout(T);S.ok?Fd(d,"TestPingServer: ok",!0,e):Fd(d,"TestPingServer: server error",!1,e)}).catch(function(){clearTimeout(T);
Fd(d,"TestPingServer: error",!1,e)})},Fd=function(v,e,d,E,T){try{v.debug(e),T&&(T.onload=null,T.onerror=null,T.onabort=null,T.ontimeout=null),E(d)}catch(S){}};var oZt=function(){this.JSC$19611_parser_=new BS};var Q9=function(v,e,d){return d&&d.internalChannelParams?d.internalChannelParams[v]||e:e},gS=function(v){this.serverVersion_=0;
this.JSC$19616_outgoingMaps_=[];this.JSC$19616_channelDebug_=new lp;this.JSC$19616_hostPrefix_=this.JSC$19616_backChannelUri_=this.JSC$19616_forwardChannelUri_=this.JSC$19616_path_=this.JSC$19616_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19616_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19616_extraHeaders_=null;this.JSC$19616_nextMapId_=this.JSC$19616_nextRid_=0;this.JSC$19616_failFast_=Q9("failFast",!1,v);this.enableStreaming_=this.JSC$19616_deadBackChannelTimerId_=
this.JSC$19616_backChannelTimerId_=this.JSC$19616_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19616_lastPostResponseArrayId_=this.JSC$19616_lastArrayId_=-1;this.JSC$19616_backChannelAttemptId_=this.JSC$19616_backChannelRetryCount_=this.JSC$19616_forwardChannelRetryCount_=0;this.JSC$19616_baseRetryDelayMs_=Q9("baseRetryDelayMs",5E3,v);this.JSC$19616_retryDelaySeedMs_=Q9("retryDelaySeedMs",1E4,v);this.JSC$19616_forwardChannelMaxRetries_=
Q9("forwardChannelMaxRetries",2,v);this.JSC$19616_forwardChannelRequestTimeoutMs_=Q9("forwardChannelRequestTimeoutMs",2E4,v);this.JSC$19616_xmlHttpFactory_=v&&v.xmlHttpFactory||void 0;this.networkTestUrl_=v&&v.networkTestUrl||void 0;this.usesFetchStreams_=v&&v.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19616_supportsCrossDomainXhrs_=v&&v.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new Kj1(v&&v.concurrentRequestLimit);this.wireCodec_=new oZt;this.fastHandshake_=
v&&v.fastHandshake||!1;this.encodeInitMessageHeaders_=v&&v.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19616_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=v&&v.blockingHandshake||!1;v&&v.disableRedact&&this.JSC$19616_channelDebug_.disableRedact();v&&v.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
v&&v.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;v&&v.longPollingTimeout&&v.longPollingTimeout>0&&(this.longPollingTimeout_=v.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
gS.prototype.JSC$19618_channelVersion_=8;gS.prototype.state_=1;
gS.prototype.connect=function(v,e,d,E){this.JSC$19616_channelDebug_.debug("connect()");Xd(0);this.JSC$19616_path_=v;this.JSC$19616_extraParams_=e||{};d&&E!==void 0&&(this.JSC$19616_extraParams_.OSID=d,this.JSC$19616_extraParams_.OAID=E);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19616_channelDebug_.debug("connectChannel_()");v=J49(this,null,this.JSC$19616_path_);this.JSC$19616_channelDebug_.debug("GetForwardChannelUri: "+v);this.JSC$19616_forwardChannelUri_=v;Gk1(this)};
gS.prototype.disconnect=function(){this.JSC$19616_channelDebug_.debug("disconnect()");Mr1(this);if(this.state_==3){var v=this.JSC$19616_nextRid_++,e=this.JSC$19616_forwardChannelUri_.clone();_.cw(e,"SID",this.sid_);_.cw(e,"RID",v);_.cw(e,"TYPE","terminate");up(this,e);v=new Aw(this,this.JSC$19616_channelDebug_,this.sid_,v);v.JSC$19597_type_=2;v.JSC$19597_baseUri_=_.dG(e.clone());e=!1;if(_.TO.navigator&&_.TO.navigator.sendBeacon)try{e=_.TO.navigator.sendBeacon(v.JSC$19597_baseUri_.toString(),"")}catch(d){}!e&&
_.TO.Image&&((new Image).src=v.JSC$19597_baseUri_,e=!0);e||(v.JSC$19597_xmlHttp_=p6_(v.JSC$19597_channel_,null),v.JSC$19597_xmlHttp_.send(v.JSC$19597_baseUri_));v.JSC$19597_requestStartTime_=Date.now();UYt(v)}trC(this)};
var y4s=function(v){v.JSC$19616_backChannelRequest_&&(IXw(v),v.JSC$19616_backChannelRequest_.cancel(),v.JSC$19616_backChannelRequest_=null)},Mr1=function(v){y4s(v);
v.JSC$19616_backChannelTimerId_&&(_.TO.clearTimeout(v.JSC$19616_backChannelTimerId_),v.JSC$19616_backChannelTimerId_=null);m6i(v);v.forwardChannelRequestPool_.cancel();v.JSC$19616_forwardChannelTimerId_&&(typeof v.JSC$19616_forwardChannelTimerId_==="number"&&_.TO.clearTimeout(v.JSC$19616_forwardChannelTimerId_),v.JSC$19616_forwardChannelTimerId_=null)};
gS.prototype.getState=function(){return this.state_};
var Gk1=function(v){$6t(v.forwardChannelRequestPool_)||v.JSC$19616_forwardChannelTimerId_||(v.JSC$19616_forwardChannelTimerId_=!0,_.Ky(v.JSC$19618_onStartForwardChannelTimer_,v),v.JSC$19616_forwardChannelRetryCount_=0)},RDv=function(v,e){if(r4s(v.forwardChannelRequestPool_)>=v.forwardChannelRequestPool_.JSC$19607_maxSize_-(v.JSC$19616_forwardChannelTimerId_?1:0))return!1;
if(v.JSC$19616_forwardChannelTimerId_)return v.JSC$19616_channelDebug_.debug("Use the retry request that is already scheduled."),v.JSC$19616_outgoingMaps_=e.JSC$19597_pendingMessages_.concat(v.JSC$19616_outgoingMaps_),!0;if(v.state_==1||v.state_==2||v.JSC$19616_forwardChannelRetryCount_>=(v.JSC$19616_failFast_?0:v.JSC$19616_forwardChannelMaxRetries_))return!1;v.JSC$19616_channelDebug_.debug("Going to retry POST");v.JSC$19616_forwardChannelTimerId_=zl((0,_.LX)(v.JSC$19618_onStartForwardChannelTimer_,
v,e),fXs(v,v.JSC$19616_forwardChannelRetryCount_));v.JSC$19616_forwardChannelRetryCount_++;return!0};
gS.prototype.JSC$19618_onStartForwardChannelTimer_=function(v){if(this.JSC$19616_forwardChannelTimerId_)if(this.JSC$19616_forwardChannelTimerId_=null,this.JSC$19616_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!v){this.JSC$19616_channelDebug_.debug("open_()");this.JSC$19616_nextRid_=Math.floor(Math.random()*1E5);v=this.JSC$19616_nextRid_++;var e=new Aw(this,this.JSC$19616_channelDebug_,"",v),d=this.JSC$19616_extraHeaders_;this.initHeaders_&&(d?(d=_.f0.clone(d),_.f0.extend(d,this.initHeaders_)):
d=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(e.JSC$19597_extraHeaders_=d,d=null);var E;if(this.fastHandshake_)a:{for(var T=E=0;T<this.JSC$19616_outgoingMaps_.length;T++){b:{var S=this.JSC$19616_outgoingMaps_[T];if("__data__"in S.map&&(S=S.map.__data__,typeof S==="string")){S=S.length;break b}S=void 0}if(S===void 0)break;E+=S;if(E>4096){E=T;break a}if(E===4096||T===this.JSC$19616_outgoingMaps_.length-1){E=T+1;break a}}E=1E3}else E=1E3;E=P09(this,e,E);
T=this.JSC$19616_forwardChannelUri_.clone();_.cw(T,"RID",v);_.cw(T,"CVER",22);this.httpSessionIdParam_&&_.cw(T,"X-HTTP-Session-Id",this.httpSessionIdParam_);up(this,T);d&&(this.encodeInitMessageHeaders_?E="headers="+_.cb(DTs(d))+"&"+E:this.httpHeadersOverwriteParam_&&UTi(T,this.httpHeadersOverwriteParam_,d));jAf(this.forwardChannelRequestPool_,e);this.blockingHandshake_&&_.cw(T,"TYPE","init");this.fastHandshake_?(_.cw(T,"$req",E),_.cw(T,"SID","null"),e.decodeInitialResponse_=!0,DY9(e,T,null)):DY9(e,
T,E);this.state_=2}}else this.state_==3&&(v?x6i(this,v):this.JSC$19616_outgoingMaps_.length==0?this.JSC$19616_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):$6t(this.forwardChannelRequestPool_)||(x6i(this),this.JSC$19616_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var x6i=function(v,e){var d;e?d=e.JSC$19597_rid_:d=v.JSC$19616_nextRid_++;var E=v.JSC$19616_forwardChannelUri_.clone();_.cw(E,"SID",v.sid_);_.cw(E,"RID",d);_.cw(E,"AID",v.JSC$19616_lastArrayId_);up(v,E);v.httpHeadersOverwriteParam_&&v.JSC$19616_extraHeaders_&&UTi(E,v.httpHeadersOverwriteParam_,v.JSC$19616_extraHeaders_);d=new Aw(v,v.JSC$19616_channelDebug_,v.sid_,d,v.JSC$19616_forwardChannelRetryCount_+1);v.httpHeadersOverwriteParam_===null&&(d.JSC$19597_extraHeaders_=v.JSC$19616_extraHeaders_);e&&
(v.JSC$19616_outgoingMaps_=e.JSC$19597_pendingMessages_.concat(v.JSC$19616_outgoingMaps_));e=P09(v,d,1E3);d.setTimeout(Math.round(v.JSC$19616_forwardChannelRequestTimeoutMs_*.5)+Math.round(v.JSC$19616_forwardChannelRequestTimeoutMs_*.5*Math.random()));jAf(v.forwardChannelRequestPool_,d);DY9(d,E,e)},up=function(v,e){v.JSC$19616_extraParams_&&_.f0.forEach(v.JSC$19616_extraParams_,function(d,E){_.cw(e,E,d)});
v.handler_&&_.f0.forEach({},function(d,E){_.cw(e,E,d)})},P09=function(v,e,d){d=Math.min(v.JSC$19616_outgoingMaps_.length,d);
var E=v.handler_?(0,_.LX)(v.handler_.JSC$19622_badMapError,v.handler_,v):null;a:{for(var T=v.JSC$19616_outgoingMaps_,S=-1;;){var O=["count="+d];S==-1?d>0?(S=T[0].JSC$19604_mapId,O.push("ofs="+S)):S=0:O.push("ofs="+S);for(var b=!0,Y=0;Y<d;Y++){var q=T[Y].JSC$19604_mapId,r=T[Y].map;q-=S;if(q<0)S=Math.max(0,T[Y].JSC$19604_mapId-100),b=!1;else try{q="req"+q+"_"||"";try{var h=r instanceof Map?r:Object.entries(r);for(var K=_.a(h),k=K.next();!k.done;k=K.next()){var J=_.a(k.value),R=J.next().value,B=J.next().value,
X=B;_.Qj(B)&&(X=(0,_.kN)(B));O.push(q+R+"="+encodeURIComponent(X))}}catch(Z){throw O.push(q+"type="+encodeURIComponent("_badmap")),Z;}}catch(Z){E&&E(r)}}if(b){h=O.join("&");break a}}h=void 0}v=v.JSC$19616_outgoingMaps_.splice(0,d);e.JSC$19597_pendingMessages_=v;return h},BWv=function(v){v.JSC$19616_backChannelRequest_||v.JSC$19616_backChannelTimerId_||(v.JSC$19616_backChannelAttemptId_=1,_.Ky(v.JSC$19618_onStartBackChannelTimer_,v),v.JSC$19616_backChannelRetryCount_=0)},qYf=function(v){if(v.JSC$19616_backChannelRequest_||
v.JSC$19616_backChannelTimerId_||v.JSC$19616_backChannelRetryCount_>=3)return!1;
v.JSC$19616_channelDebug_.debug("Going to retry GET");v.JSC$19616_backChannelAttemptId_++;v.JSC$19616_backChannelTimerId_=zl((0,_.LX)(v.JSC$19618_onStartBackChannelTimer_,v),fXs(v,v.JSC$19616_backChannelRetryCount_));v.JSC$19616_backChannelRetryCount_++;return!0};
gS.prototype.JSC$19618_onStartBackChannelTimer_=function(){this.JSC$19616_backChannelTimerId_=null;C0S(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19616_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19616_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19616_backChannelRequest_+" "+this.handshakeRttMs_);else{var v=4*this.handshakeRttMs_;this.JSC$19616_channelDebug_.info("BP detection timer enabled: "+v);this.bpDetectionTimerId_=zl((0,_.LX)(this.onBpDetectionTimer_,
this),v)}};
gS.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19616_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19616_backChannelRequest_.JSC$19597_xmlHttp_!=null){var v=this.JSC$19616_backChannelRequest_.JSC$19597_xmlHttp_.getResponseText();v&&this.JSC$19616_channelDebug_.warning("Timer should have been cancelled : "+v)}this.JSC$19616_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Xd(10);y4s(this);C0S(this)}else this.JSC$19616_channelDebug_.warning("Invalid operation.")};
var IXw=function(v){v.bpDetectionTimerId_!=null&&(v.JSC$19616_channelDebug_.debug("Cancel the BP detection timer."),_.TO.clearTimeout(v.bpDetectionTimerId_),v.bpDetectionTimerId_=null)},C0S=function(v){v.JSC$19616_channelDebug_.debug("Creating new HttpRequest");
v.JSC$19616_backChannelRequest_=new Aw(v,v.JSC$19616_channelDebug_,v.sid_,"rpc",v.JSC$19616_backChannelAttemptId_);v.httpHeadersOverwriteParam_===null&&(v.JSC$19616_backChannelRequest_.JSC$19597_extraHeaders_=v.JSC$19616_extraHeaders_);v.JSC$19616_backChannelRequest_.JSC$19597_readyStateChangeThrottleMs_=0;var e=v.JSC$19616_backChannelUri_.clone();_.cw(e,"RID","rpc");_.cw(e,"SID",v.sid_);_.cw(e,"AID",v.JSC$19616_lastArrayId_);_.cw(e,"CI",v.enableStreaming_?"0":"1");!v.enableStreaming_&&v.longPollingTimeout_&&
_.cw(e,"TO",v.longPollingTimeout_);_.cw(e,"TYPE","xmlhttp");up(v,e);v.httpHeadersOverwriteParam_&&v.JSC$19616_extraHeaders_&&UTi(e,v.httpHeadersOverwriteParam_,v.JSC$19616_extraHeaders_);v.backChannelRequestTimeoutMs_&&v.JSC$19616_backChannelRequest_.setTimeout(v.backChannelRequestTimeoutMs_);var d=v.JSC$19616_backChannelRequest_,E=v.JSC$19616_hostPrefix_;d.JSC$19597_type_=1;d.JSC$19597_baseUri_=_.dG(e.clone());d.JSC$19597_postData_=null;d.decodeChunks_=!0;ni9(d,E);v.JSC$19616_channelDebug_.debug("New Request created")};
gS.prototype.JSC$19618_onBackChannelDead_=function(){this.JSC$19616_deadBackChannelTimerId_!=null&&(this.JSC$19616_deadBackChannelTimerId_=null,y4s(this),qYf(this),Xd(19))};
var m6i=function(v){v.JSC$19616_deadBackChannelTimerId_!=null&&(_.TO.clearTimeout(v.JSC$19616_deadBackChannelTimerId_),v.JSC$19616_deadBackChannelTimerId_=null)},aXC=function(v,e){v.JSC$19616_channelDebug_.debug("Request complete");
var d=null;if(v.JSC$19616_backChannelRequest_==e){m6i(v);IXw(v);v.JSC$19616_backChannelRequest_=null;var E=2}else if(YY9(v.forwardChannelRequestPool_,e))d=e.JSC$19597_pendingMessages_,sAw(v.forwardChannelRequestPool_,e),E=1;else return;if(v.state_!=0)if(e.JSC$19597_successful_)E==1?(HlC(e.JSC$19597_postData_?e.JSC$19597_postData_.length:0,Date.now()-e.JSC$19597_requestStartTime_,v.JSC$19616_forwardChannelRetryCount_),Gk1(v)):BWv(v);else{var T=e.JSC$19597_lastStatusCode_,S=e.getLastError();if(S==3||
S==0&&T>0)v.JSC$19616_channelDebug_.debug("Not retrying due to error type"),T>200&&(v.errorResponseStatusCode_=e.JSC$19597_lastStatusCode_);else{v.JSC$19616_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Q49(S,v.errorResponseStatusCode_)});
if(E==1&&RDv(v,e)||E==2&&qYf(v))return;v.JSC$19616_channelDebug_.debug("Exceeded max number of retries")}d&&d.length>0&&kki(v.forwardChannelRequestPool_,d);v.JSC$19616_channelDebug_.debug("Error: HTTP request failed");switch(S){case 1:wS(v,5);break;case 4:wS(v,10);break;case 3:wS(v,6);break;default:wS(v,2)}}},fXs=function(v,e){var d=v.JSC$19616_baseRetryDelayMs_+Math.floor(Math.random()*v.JSC$19616_retryDelaySeedMs_);
v.isActive()||(v.JSC$19616_channelDebug_.debug("Inactive channel"),d*=2);return d*e};
gS.prototype.onInput_=function(v,e){for(var d=0;d<v.length;d++){var E=v[d];this.JSC$19616_lastArrayId_=E[0];E=E[1];if(this.state_==2)if(E[0]=="c"){this.sid_=E[1];this.JSC$19616_hostPrefix_=E[2];var T=E[3];T!=null&&(this.JSC$19618_channelVersion_=T,this.JSC$19616_channelDebug_.info("VER="+this.JSC$19618_channelVersion_));T=E[4];T!=null&&(this.serverVersion_=T,this.JSC$19616_channelDebug_.info("SVER="+this.serverVersion_));E=E[5];E!=null&&typeof E==="number"&&E>0&&(this.backChannelRequestTimeoutMs_=
E*=1.5,this.JSC$19616_channelDebug_.info("backChannelRequestTimeoutMs_="+E));if(E=e.JSC$19597_xmlHttp_){var S=PR(E,"X-Client-Wire-Protocol");S&&(T=this.forwardChannelRequestPool_,!T.requestPool_&&(_.bL(S,"spdy")||_.bL(S,"quic")||_.bL(S,"h2"))&&(T.JSC$19607_maxSize_=T.maxPoolSizeConfigured_,T.requestPool_=new Set,T.JSC$19607_request_&&(jAf(T,T.JSC$19607_request_),T.JSC$19607_request_=null)));this.httpSessionIdParam_&&((E=PR(E,"X-HTTP-Session-Id"))?(this.httpSessionId_=E,_.cw(this.JSC$19616_forwardChannelUri_,
this.httpSessionIdParam_,E)):this.JSC$19616_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19622_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-e.JSC$19597_requestStartTime_,this.JSC$19616_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));E=e;T=J49(this,this.JSC$19616_supportsCrossDomainXhrs_?this.JSC$19616_hostPrefix_:null,this.JSC$19616_path_);this.JSC$19616_channelDebug_.debug("GetBackChannelUri: "+
T);this.JSC$19616_backChannelUri_=T;E.initialResponseDecoded_?(this.JSC$19616_channelDebug_.debug("Upgrade the handshake request to a backchannel."),sAw(this.forwardChannelRequestPool_,E),T=E,(S=this.backChannelRequestTimeoutMs_)&&T.setTimeout(S),T.JSC$19597_watchDogTimerId_&&(d69(T),UYt(T)),this.JSC$19616_backChannelRequest_=E):BWv(this);this.JSC$19616_outgoingMaps_.length>0&&Gk1(this)}else E[0]!="stop"&&E[0]!="close"||wS(this,7);else this.state_==3&&(E[0]=="stop"||E[0]=="close"?E[0]=="stop"?wS(this,
7):this.disconnect():E[0]!="noop"&&this.handler_&&this.handler_.JSC$19622_channelHandleArray(E),this.JSC$19616_backChannelRetryCount_=0)}};
var wS=function(v,e){v.JSC$19616_channelDebug_.info("Error code "+e);if(e==2){var d=(0,_.LX)(v.testNetworkCallback_,v),E=v.networkTestUrl_,T=!E;E=new _.vF(E||"//www.google.com/images/cleardot.gif");_.TO.location&&_.TO.location.protocol=="http"||_.QQ(E,"https");_.dG(E);T?Ljs(E.toString(),d):Vrf(E.toString(),d)}else Xd(2);v.onError_(e)};
gS.prototype.testNetworkCallback_=function(v){v?(this.JSC$19616_channelDebug_.info("Successfully pinged google.com"),Xd(2)):(this.JSC$19616_channelDebug_.info("Failed to ping google.com"),Xd(1))};
gS.prototype.onError_=function(v){this.JSC$19616_channelDebug_.debug("HttpChannel: error - "+v);this.state_=0;this.handler_&&this.handler_.JSC$19622_channelError(v);trC(this);Mr1(this)};
var trC=function(v){v.state_=0;v.nonAckedMapsAtChannelClose_=[];if(v.handler_){var e=NWt(v.forwardChannelRequestPool_);if(e.length!=0||v.JSC$19616_outgoingMaps_.length!=0)v.JSC$19616_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+e.length+", outgoing: "+v.JSC$19616_outgoingMaps_.length}),_.FM(v.nonAckedMapsAtChannelClose_,e),_.FM(v.nonAckedMapsAtChannelClose_,v.JSC$19616_outgoingMaps_),v.forwardChannelRequestPool_.JSC$19607_pendingMessages_.length=0,_.Zt(v.JSC$19616_outgoingMaps_),
v.JSC$19616_outgoingMaps_.length=0;
v.handler_.JSC$19622_channelClosed()}},XXt=function(v){if(v.state_==0)return v.nonAckedMapsAtChannelClose_;
var e=[];_.FM(e,NWt(v.forwardChannelRequestPool_));_.FM(e,v.JSC$19616_outgoingMaps_);return e},J49=function(v,e,d){var E=_.Az(d);
E.JSC$10022_domain_!=""?(e&&_.g6(E,e+"."+E.JSC$10022_domain_),_.uI(E,E.JSC$10022_port_)):(E=_.TO.location,E=X09(E.protocol,e?e+"."+E.hostname:E.hostname,+E.port,d));e=v.httpSessionIdParam_;d=v.httpSessionId_;e&&d&&_.cw(E,e,d);_.cw(E,"VER",v.JSC$19618_channelVersion_);up(v,E);return E},p6_=function(v,e,d){if(e&&!v.JSC$19616_supportsCrossDomainXhrs_)throw Error("Jk");
e=v.usesFetchStreams_&&!v.JSC$19616_xmlHttpFactory_?new _.Ly(new nN({streamBinaryChunks:d})):new _.Ly(v.JSC$19616_xmlHttpFactory_);e.JSC$9787_withCredentials_=v.JSC$19616_supportsCrossDomainXhrs_;return e};
gS.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var zDO=function(){};
_.W=zDO.prototype;_.W.JSC$19622_channelOpened=function(){};
_.W.JSC$19622_channelHandleArray=function(){};
_.W.JSC$19622_channelError=function(){};
_.W.JSC$19622_channelClosed=function(){};
_.W.isActive=function(){return!0};
_.W.JSC$19622_badMapError=function(){};var lX9=function(){},Du=function(v,e){_.r6.call(this);
this.JSC$19625_channel_=new gS(e);this.JSC$19625_url_=v;this.messageUrlParams_=e&&e.messageUrlParams||null;v=e&&e.messageHeaders||null;e&&e.clientProtocolHeaderRequired&&(v?_.f0.set(v,"X-Client-Protocol","webchannel"):v=_.f0.create("X-Client-Protocol","webchannel"));this.JSC$19625_channel_.JSC$19616_extraHeaders_=v;v=e&&e.initMessageHeaders||null;e&&e.messageContentType&&(v?_.f0.set(v,"X-WebChannel-Content-Type",e.messageContentType):v=_.f0.create("X-WebChannel-Content-Type",e.messageContentType));
e&&e.clientProfile&&(v?_.f0.set(v,"X-WebChannel-Client-Profile",e.clientProfile):v=_.f0.create("X-WebChannel-Client-Profile",e.clientProfile));this.JSC$19625_channel_.initHeaders_=v;(v=e&&e.httpHeadersOverwriteParam)&&!_.IU(v)&&(this.JSC$19625_channel_.httpHeadersOverwriteParam_=v);this.supportsCrossDomainXhr_=e&&e.supportsCrossDomainXhr||!1;this.sendRawJson_=e&&e.sendRawJson||!1;(e=e&&e.httpSessionIdParam)&&!_.IU(e)&&(this.JSC$19625_channel_.httpSessionIdParam_=e,_.f0.containsKey(this.messageUrlParams_,
e)&&_.f0.remove(this.messageUrlParams_,e));this.channelHandler_=new n3(this)};
_.vM(Du,_.r6);Du.prototype.open=function(){this.JSC$19625_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19625_channel_.JSC$19616_supportsCrossDomainXhrs_=!0);this.JSC$19625_channel_.connect(this.JSC$19625_url_,this.messageUrlParams_||void 0)};
Du.prototype.close=function(){this.JSC$19625_channel_.disconnect()};
Du.prototype.send=function(v){var e=this.JSC$19625_channel_;if(typeof v==="string"){var d={};d.__data__=v;v=d}else this.sendRawJson_&&(d={},d.__data__=(0,_.kN)(v),v=d);e.JSC$19616_outgoingMaps_.push(new hDw(e.JSC$19616_nextMapId_++,v));e.state_==3&&Gk1(e)};
Du.prototype.disposeInternal=function(){this.JSC$19625_channel_.handler_=null;delete this.channelHandler_;this.JSC$19625_channel_.disconnect();delete this.JSC$19625_channel_;Du.superClass_.disposeInternal.call(this)};
var HPQ=function(v){PPw.call(this);v.__headers__&&(this.headers=v.__headers__,this.statusCode=v.__status__,delete v.__headers__,delete v.__status__);var e=v.__sm__;e?this.data=(this.metadataKey=_.f0.getAnyKey(e))?_.f0.get(e,this.metadataKey):e:this.data=v};
_.vM(HPQ,PPw);var A4S=function(v){xYQ.call(this);this.status=1;this.errorCode=v};
_.vM(A4S,xYQ);var n3=function(v){this.JSC$19632_channel_=v};
_.vM(n3,zDO);n3.prototype.JSC$19622_channelOpened=function(){this.JSC$19632_channel_.dispatchEvent("w")};
n3.prototype.JSC$19622_channelHandleArray=function(v){this.JSC$19632_channel_.dispatchEvent(new HPQ(v))};
n3.prototype.JSC$19622_channelError=function(v){this.JSC$19632_channel_.dispatchEvent(new A4S(v))};
n3.prototype.JSC$19622_channelClosed=function(){this.JSC$19632_channel_.dispatchEvent("x")};
var ZPv=function(v,e){this.transportChannel_=v;this.JSC$19635_channel_=e},c4s=function(v){return XXt(v.JSC$19635_channel_).map(function(e){var d=v.transportChannel_;
e=e.map;"__data__"in e?(e=e.__data__,d=d.sendRawJson_?(0,_.qaA)(e):e):d=e;return d})};
ZPv.prototype.commit=function(v){this.JSC$19635_channel_.forwardChannelFlushedCallback_=v};var UX=function(v){wX_.dispatchEvent(new Fjv(wX_,v))},wX_=new _.r6,Fjv=function(v,e){_.bI.call(this,"statevent",v);
this.stat=e};
_.V(Fjv,_.bI);var p3=function(v,e,d,E,T){this.JSC$19640_channel_=v;this.JSC$19640_channelDebug_=e;this.sid_=d;this.JSC$19640_rid_=E;this.JSC$19640_retryId_=T||1;this.timeout_=45E3;this.JSC$19640_eventHandler_=new _.Im(this);this.pollingTimer_=new _.Ow;this.pollingTimer_.setInterval(250)};
_.W=p3.prototype;_.W.JSC$19642_extraHeaders_=null;_.W.JSC$19642_successful_=!1;_.W.JSC$19642_watchDogTimerId_=null;_.W.JSC$19642_watchDogTimeoutTime_=null;_.W.JSC$19642_requestStartTime_=null;_.W.JSC$19642_type_=null;_.W.JSC$19642_baseUri_=null;_.W.JSC$19642_requestUri_=null;_.W.JSC$19642_postData_=null;_.W.JSC$19642_xmlHttp_=null;_.W.JSC$19642_xmlHttpChunkStart_=0;_.W.trident_=null;_.W.JSC$19642_verb_=null;_.W.JSC$19642_lastError_=null;_.W.JSC$19642_lastStatusCode_=-1;_.W.sendClose_=!0;
_.W.JSC$19642_cancelled_=!1;_.W.JSC$19642_readyStateChangeThrottleMs_=0;_.W.JSC$19642_readyStateChangeThrottle_=null;var QAs=function(v,e){switch(v){case 0:return"Non-200 return code ("+e+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},gZ9={},uP9={};
p3.prototype.setTimeout=function(v){this.timeout_=v};
var D6S=function(v,e,d){v.JSC$19642_type_=1;v.JSC$19642_baseUri_=_.dG(e.clone());v.JSC$19642_postData_=d;v.decodeChunks_=!0;nZt(v,null)},U6C=function(v,e,d,E,T){v.JSC$19642_type_=1;
v.JSC$19642_baseUri_=_.dG(e.clone());v.JSC$19642_postData_=null;v.decodeChunks_=d;T&&(v.sendClose_=!1);nZt(v,E)},nZt=function(v,e){v.JSC$19642_requestStartTime_=Date.now();
pX9(v);v.JSC$19642_requestUri_=v.JSC$19642_baseUri_.clone();Vq(v.JSC$19642_requestUri_,"t",v.JSC$19640_retryId_);v.JSC$19642_xmlHttpChunkStart_=0;v.JSC$19642_xmlHttp_=v.JSC$19640_channel_.JSC$19649_createXhrIo(v.JSC$19640_channel_.JSC$19649_shouldUseSecondaryDomains()?e:null);v.JSC$19642_readyStateChangeThrottleMs_>0&&(v.JSC$19642_readyStateChangeThrottle_=new _.wB((0,_.LX)(v.JSC$19642_xmlHttpHandler_,v,v.JSC$19642_xmlHttp_),v.JSC$19642_readyStateChangeThrottleMs_));v.JSC$19640_eventHandler_.listen(v.JSC$19642_xmlHttp_,
"readystatechange",v.JSC$19642_readyStateChangeHandler_);e=v.JSC$19642_extraHeaders_?_.f0.clone(v.JSC$19642_extraHeaders_):{};v.JSC$19642_postData_?(v.JSC$19642_verb_="POST",e["Content-Type"]="application/x-www-form-urlencoded",v.JSC$19642_xmlHttp_.send(v.JSC$19642_requestUri_,v.JSC$19642_verb_,v.JSC$19642_postData_,e)):(v.JSC$19642_verb_="GET",v.sendClose_&&!_.WM&&(e.Connection="close"),v.JSC$19642_xmlHttp_.send(v.JSC$19642_requestUri_,v.JSC$19642_verb_,null,e));v.JSC$19640_channel_.notifyServerReachabilityEvent(1);
e=v.JSC$19640_channelDebug_;var d=v.JSC$19642_postData_;if(d){var E="";d=d.split("&");for(var T=0;T<d.length;T++){var S=d[T].split("=");if(S.length>1){var O=S[0];S=S[1];var b=O.split("_");E=b.length>=2&&b[1]=="type"?E+(O+"="+S+"&"):E+(O+"=redacted&")}}}else E=null;e.info("XMLHTTP REQ ("+v.JSC$19640_rid_+") [attempt "+v.JSC$19640_retryId_+"]: "+v.JSC$19642_verb_+"\n"+v.JSC$19642_requestUri_+"\n"+E)};
p3.prototype.JSC$19642_readyStateChangeHandler_=function(v){v=v.target;var e=this.JSC$19642_readyStateChangeThrottle_;e&&_.VQ(v)==3?(this.JSC$19640_channelDebug_.debug("Throttling readystatechange."),e.fire()):this.JSC$19642_xmlHttpHandler_(v)};
p3.prototype.JSC$19642_xmlHttpHandler_=function(v){try{if(v==this.JSC$19642_xmlHttp_)a:{var e=_.VQ(this.JSC$19642_xmlHttp_),d=this.JSC$19642_xmlHttp_.JSC$9787_lastErrorCode_,E=this.JSC$19642_xmlHttp_.getStatus();if(_.WM&&!_.aW("420+")){if(e<4)break a}else if(e<3||e==3&&!this.JSC$19642_xmlHttp_.getResponseText())break a;this.JSC$19642_cancelled_||e!=4||d==7||(d==8||E<=0?this.JSC$19640_channel_.notifyServerReachabilityEvent(3):this.JSC$19640_channel_.notifyServerReachabilityEvent(2));vl9(this);var T=
this.JSC$19642_xmlHttp_.getStatus();this.JSC$19642_lastStatusCode_=T;var S=this.JSC$19642_xmlHttp_.getResponseText();S||this.JSC$19640_channelDebug_.debug("No response text for uri "+this.JSC$19642_requestUri_+" status "+T);this.JSC$19642_successful_=T==200;this.JSC$19640_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19640_rid_+") [ attempt "+this.JSC$19640_retryId_+"]: "+this.JSC$19642_verb_+"\n"+this.JSC$19642_requestUri_+"\n"+e+" "+T);if(this.JSC$19642_successful_){e==4&&vI(this);if(this.decodeChunks_){for(v=
!0;!this.JSC$19642_cancelled_&&this.JSC$19642_xmlHttpChunkStart_<S.length;){var O=ev9(this,S);if(O==uP9){e==4&&(this.JSC$19642_lastError_=4,UX(15),v=!1);ef(this.JSC$19640_channelDebug_,this.JSC$19640_rid_,null,"[Incomplete Response]");break}else if(O==gZ9){this.JSC$19642_lastError_=4;UX(16);ef(this.JSC$19640_channelDebug_,this.JSC$19640_rid_,S,"[Invalid Chunk]");v=!1;break}else ef(this.JSC$19640_channelDebug_,this.JSC$19640_rid_,O,null),dS9(this,O)}e==4&&S.length==0&&(this.JSC$19642_lastError_=1,
UX(17),v=!1);this.JSC$19642_successful_=this.JSC$19642_successful_&&v;v||(ef(this.JSC$19640_channelDebug_,this.JSC$19640_rid_,S,"[Invalid Chunked Response]"),vI(this),Eli(this))}else ef(this.JSC$19640_channelDebug_,this.JSC$19640_rid_,S,null),dS9(this,S);this.JSC$19642_successful_&&!this.JSC$19642_cancelled_&&(e==4?this.JSC$19640_channel_.JSC$19649_onRequestComplete(this):(this.JSC$19642_successful_=!1,pX9(this)))}else T==400&&S.indexOf("Unknown SID")>0?(this.JSC$19642_lastError_=3,UX(13),this.JSC$19640_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19640_rid_+")")):(this.JSC$19642_lastError_=0,UX(14),this.JSC$19640_channelDebug_.warning("XMLHTTP Bad status "+T+" ("+this.JSC$19640_rid_+")")),vI(this),Eli(this)}else this.JSC$19640_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.JSC$19640_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var ev9=function(v,e){var d=v.JSC$19642_xmlHttpChunkStart_,E=e.indexOf("\n",d);if(E==-1)return uP9;d=Number(e.substring(d,E));if(isNaN(d))return gZ9;E+=1;if(E+d>e.length)return uP9;e=e.slice(E,E+d);v.JSC$19642_xmlHttpChunkStart_=E+d;return e};
p3.prototype.cancel=function(){this.JSC$19642_cancelled_=!0;vI(this)};
var pX9=function(v){v.JSC$19642_watchDogTimeoutTime_=Date.now()+v.timeout_;Ts9(v,v.timeout_)},Ts9=function(v,e){if(v.JSC$19642_watchDogTimerId_!=null)throw Error("Ik");
v.JSC$19642_watchDogTimerId_=F_((0,_.LX)(v.JSC$19642_onWatchDogTimeout_,v),e)},vl9=function(v){v.JSC$19642_watchDogTimerId_&&(_.TO.clearTimeout(v.JSC$19642_watchDogTimerId_),v.JSC$19642_watchDogTimerId_=null)};
p3.prototype.JSC$19642_onWatchDogTimeout_=function(){this.JSC$19642_watchDogTimerId_=null;var v=Date.now();v-this.JSC$19642_watchDogTimeoutTime_>=0?(this.JSC$19640_channelDebug_.info("TIMEOUT: "+this.JSC$19642_requestUri_),this.JSC$19642_type_!=2&&this.JSC$19640_channel_.notifyServerReachabilityEvent(3),vI(this),this.JSC$19642_lastError_=2,UX(18),Eli(this)):(this.JSC$19640_channelDebug_.warning("WatchDog timer called too early"),Ts9(this,this.JSC$19642_watchDogTimeoutTime_-v))};
var Eli=function(v){v.JSC$19640_channel_.JSC$19649_isClosed()||v.JSC$19642_cancelled_||v.JSC$19640_channel_.JSC$19649_onRequestComplete(v)},vI=function(v){vl9(v);
_.p0(v.JSC$19642_readyStateChangeThrottle_);v.JSC$19642_readyStateChangeThrottle_=null;v.pollingTimer_.stop();v.JSC$19640_eventHandler_.removeAll();if(v.JSC$19642_xmlHttp_){var e=v.JSC$19642_xmlHttp_;v.JSC$19642_xmlHttp_=null;e.abort();e.dispose()}v.trident_&&(v.trident_=null)};
p3.prototype.getLastError=function(){return this.JSC$19642_lastError_};
var dS9=function(v,e){try{v.JSC$19640_channel_.JSC$19649_onRequestData(v,e),v.JSC$19640_channel_.notifyServerReachabilityEvent(4)}catch(d){}};var ef=function(v,e,d,E){var T=v.info;a:if(d&&d!="y2f%"){try{var S=JSON.parse(d);if(S)for(var O=0;O<S.length;O++)if(Array.isArray(S[O])){var b=S[O];if(!(b.length<2)){var Y=b[1];if(Array.isArray(Y)&&!(Y.length<1)){var q=Y[0];if(q!="noop"&&q!="stop")for(var r=1;r<Y.length;r++)Y[r]=""}}}var h=(0,_.kN)(S);break a}catch(K){v.debug("Exception parsing expected JS array - probably was not JS");h=d;break a}h=void 0}else h=d;T.call(v,"XMLHTTP TEXT ("+e+"): "+h+(E?" "+E:""))};
Q7.prototype.debug=function(v){this.info(v)};
Q7.prototype.info=function(){};
Q7.prototype.warning=function(){};var SQ_=function(v,e){this.JSC$19647_channel_=v;this.JSC$19647_channelDebug_=e;this.JSC$19647_parser_=new BS};
_.W=SQ_.prototype;_.W.JSC$19649_extraHeaders_=null;_.W.JSC$19649_request_=null;_.W.receivedIntermediateResult_=!1;_.W.JSC$19649_path_=null;_.W.state_=null;_.W.JSC$19649_lastStatusCode_=-1;_.W.JSC$19649_hostPrefix_=null;_.W.blockedPrefix_=null;
_.W.connect=function(v){this.JSC$19649_path_=v;v=Wk9(this.JSC$19647_channel_,this.JSC$19649_path_);UX(3);Date.now();var e=this.JSC$19647_channel_.firstTestResults_;e!=null?(this.JSC$19649_hostPrefix_=e[0],(this.blockedPrefix_=e[1])?(this.state_=1,aet(this)):(this.state_=2,i$f(this))):(Vq(v,"MODE","init"),this.JSC$19649_request_=new p3(this,this.JSC$19647_channelDebug_),this.JSC$19649_request_.JSC$19642_extraHeaders_=this.JSC$19649_extraHeaders_,U6C(this.JSC$19649_request_,v,!1,null,!0),this.state_=
0)};
var aet=function(v){var e=O$1(v.JSC$19647_channel_,v.blockedPrefix_,"/mail/images/cleardot.gif");_.dG(e);PXi(e.toString(),5E3,(0,_.LX)(v.checkBlockedCallback_,v),3,2E3);v.notifyServerReachabilityEvent(1)};
SQ_.prototype.checkBlockedCallback_=function(v){if(v)this.state_=2,i$f(this);else{UX(4);var e=this.JSC$19647_channel_;e.JSC$19650_channelDebug_.debug("Test Connection Blocked");e.JSC$19654_lastStatusCode_=e.connectionTest_.JSC$19649_lastStatusCode_;dM(e,9)}v&&this.notifyServerReachabilityEvent(2)};
var i$f=function(v){v.JSC$19647_channelDebug_.debug("TestConnection: starting stage 2");var e=v.JSC$19647_channel_.secondTestResults_;e!=null?(v.JSC$19647_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+e?"Buffered":"Unbuffered"),UX(5),e?(UX(11),E8(v.JSC$19647_channel_,v,!1)):(UX(12),E8(v.JSC$19647_channel_,v,!0))):(v.JSC$19649_request_=new p3(v,v.JSC$19647_channelDebug_),v.JSC$19649_request_.JSC$19642_extraHeaders_=v.JSC$19649_extraHeaders_,e=vKQ(v.JSC$19647_channel_,
v.JSC$19649_hostPrefix_,v.JSC$19649_path_),UX(5),Vq(e,"TYPE","xmlhttp"),U6C(v.JSC$19649_request_,e,!1,v.JSC$19649_hostPrefix_,!1))};
_.W=SQ_.prototype;_.W.JSC$19649_createXhrIo=function(v){return this.JSC$19647_channel_.JSC$19649_createXhrIo(v)};
_.W.abort=function(){this.JSC$19649_request_&&(this.JSC$19649_request_.cancel(),this.JSC$19649_request_=null);this.JSC$19649_lastStatusCode_=-1};
_.W.JSC$19649_isClosed=function(){return!1};
_.W.JSC$19649_onRequestData=function(v,e){this.JSC$19649_lastStatusCode_=v.JSC$19642_lastStatusCode_;if(this.state_==0)if(this.JSC$19647_channelDebug_.debug("TestConnection: Got data for stage 1"),e){try{var d=this.JSC$19647_parser_.parse(e)}catch(E){erw(this.JSC$19647_channel_,this);return}this.JSC$19649_hostPrefix_=d[0];this.blockedPrefix_=d[1]}else this.JSC$19647_channelDebug_.debug("TestConnection: Null responseText"),erw(this.JSC$19647_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(UX(7),Date.now()):e=="11111"?(UX(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19649_lastStatusCode_=200,this.JSC$19649_request_.cancel(),this.JSC$19647_channelDebug_.debug("Test connection succeeded; using streaming connection"),UX(12),E8(this.JSC$19647_channel_,this,!0)):(UX(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.W.JSC$19649_onRequestComplete=function(){this.JSC$19649_lastStatusCode_=this.JSC$19649_request_.JSC$19642_lastStatusCode_;this.JSC$19649_request_.JSC$19642_successful_?this.state_==0?(this.JSC$19647_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,aet(this)):(this.state_=2,i$f(this))):this.state_==2&&(this.JSC$19647_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19647_channelDebug_.debug("Test connection succeeded; using streaming connection"),
UX(12),E8(this.JSC$19647_channel_,this,!0)):(this.JSC$19647_channelDebug_.debug("Test connection failed; not using streaming"),UX(11),E8(this.JSC$19647_channel_,this,!1))):(this.JSC$19647_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?UX(9):this.state_==2&&UX(10),erw(this.JSC$19647_channel_,this,this.JSC$19649_request_.getLastError()))};
_.W.JSC$19649_shouldUseSecondaryDomains=function(){return this.JSC$19647_channel_.JSC$19649_shouldUseSecondaryDomains()};
_.W.isActive=function(){return this.JSC$19647_channel_.isActive()};
_.W.notifyServerReachabilityEvent=function(v){this.JSC$19647_channel_.notifyServerReachabilityEvent(v)};var Ti=function(v,e,d){this.state_=1;this.JSC$19650_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19650_channelDebug_=new Q7;this.JSC$19650_parser_=new BS;this.firstTestResults_=v||null;this.secondTestResults_=e!=null?e:null;this.asyncTest_=d||!1},d$f=function(v,e){this.JSC$19652_mapId=v;
this.map=e;this.context=null};
_.W=Ti.prototype;_.W.JSC$19654_extraHeaders_=null;_.W.JSC$19654_extraParams_=null;_.W.forwardChannelRequest_=null;_.W.JSC$19654_backChannelRequest_=null;_.W.JSC$19654_path_=null;_.W.JSC$19654_forwardChannelUri_=null;_.W.JSC$19654_backChannelUri_=null;_.W.JSC$19654_hostPrefix_=null;_.W.JSC$19654_nextRid_=0;_.W.JSC$19654_nextMapId_=0;_.W.handler_=null;_.W.JSC$19654_forwardChannelTimerId_=null;_.W.JSC$19654_backChannelTimerId_=null;_.W.JSC$19654_deadBackChannelTimerId_=null;_.W.connectionTest_=null;
_.W.useChunked_=null;_.W.JSC$19654_lastArrayId_=-1;_.W.JSC$19654_lastPostResponseArrayId_=-1;_.W.JSC$19654_lastStatusCode_=-1;_.W.JSC$19654_forwardChannelRetryCount_=0;_.W.JSC$19654_backChannelRetryCount_=0;_.W.JSC$19654_channelVersion_=8;var EKC={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},TT9=function(v,e,d,E){_.bI.call(this,"timingevent",v);this.size=e;this.rtt=d;this.retries=E};
_.vM(TT9,_.bI);var S1_=function(v){_.bI.call(this,"serverreachability",v)};
_.vM(S1_,_.bI);Ti.prototype.connect=function(v,e,d,E,T){this.JSC$19650_channelDebug_.debug("connect()");UX(0);this.JSC$19654_path_=e;this.JSC$19654_extraParams_=d||{};E&&T!==void 0&&(this.JSC$19654_extraParams_.OSID=E,this.JSC$19654_extraParams_.OAID=T);this.asyncTest_?(F_((0,_.LX)(this.connectTest_,this,v),100),WZ_(this)):this.connectTest_(v)};
Ti.prototype.disconnect=function(){this.JSC$19650_channelDebug_.debug("disconnect()");ahs(this);if(this.state_==3){var v=this.JSC$19654_nextRid_++,e=this.JSC$19654_forwardChannelUri_.clone();_.cw(e,"SID",this.sid_);_.cw(e,"RID",v);_.cw(e,"TYPE","terminate");Sf(this,e);v=new p3(this,this.JSC$19650_channelDebug_,this.sid_,v);v.JSC$19642_type_=2;v.JSC$19642_baseUri_=_.dG(e.clone());(new Image).src=v.JSC$19642_baseUri_.toString();v.JSC$19642_requestStartTime_=Date.now();pX9(v)}isO(this)};
Ti.prototype.connectTest_=function(v){this.JSC$19650_channelDebug_.debug("connectTest_()");this.connectionTest_=new SQ_(this,this.JSC$19650_channelDebug_);this.connectionTest_.JSC$19649_extraHeaders_=this.JSC$19654_extraHeaders_;this.connectionTest_.JSC$19647_parser_=this.JSC$19650_parser_;this.connectionTest_.connect(v)};
var WZ_=function(v){v.JSC$19650_channelDebug_.debug("connectChannel_()");v.JSC$19654_ensureInState_(1,0);v.JSC$19654_forwardChannelUri_=Wk9(v,v.JSC$19654_path_);Osi(v)},ahs=function(v){v.connectionTest_&&(v.connectionTest_.abort(),v.connectionTest_=null);
v.JSC$19654_backChannelRequest_&&(v.JSC$19654_backChannelRequest_.cancel(),v.JSC$19654_backChannelRequest_=null);v.JSC$19654_backChannelTimerId_&&(_.TO.clearTimeout(v.JSC$19654_backChannelTimerId_),v.JSC$19654_backChannelTimerId_=null);Ihf(v);v.forwardChannelRequest_&&(v.forwardChannelRequest_.cancel(),v.forwardChannelRequest_=null);v.JSC$19654_forwardChannelTimerId_&&(_.TO.clearTimeout(v.JSC$19654_forwardChannelTimerId_),v.JSC$19654_forwardChannelTimerId_=null)},bs9=function(v,e){if(v.state_==0)throw Error("Lk");
v.JSC$19650_outgoingMaps_.length==1E3&&v.JSC$19650_parser_.stringify(e);v.JSC$19650_outgoingMaps_.push(new d$f(v.JSC$19654_nextMapId_++,e));v.state_!=2&&v.state_!=3||Osi(v)};
Ti.prototype.JSC$19649_isClosed=function(){return this.state_==0};
Ti.prototype.getState=function(){return this.state_};
var Osi=function(v){v.forwardChannelRequest_||v.JSC$19654_forwardChannelTimerId_||(v.JSC$19654_forwardChannelTimerId_=F_((0,_.LX)(v.JSC$19654_onStartForwardChannelTimer_,v),0),v.JSC$19654_forwardChannelRetryCount_=0)};
Ti.prototype.JSC$19654_onStartForwardChannelTimer_=function(v){this.JSC$19654_forwardChannelTimerId_=null;Y1s(this,v)};
var Y1s=function(v,e){v.JSC$19650_channelDebug_.debug("startForwardChannel_");if(v.state_==1){if(!e){v.JSC$19650_channelDebug_.debug("open_()");v.JSC$19654_nextRid_=Math.floor(Math.random()*1E5);e=v.JSC$19654_nextRid_++;var d=new p3(v,v.JSC$19650_channelDebug_,"",e);d.JSC$19642_extraHeaders_=v.JSC$19654_extraHeaders_;var E=m$f(v),T=v.JSC$19654_forwardChannelUri_.clone();_.cw(T,"RID",e);_.cw(T,"CVER","1");Sf(v,T);D6S(d,T,E);v.forwardChannelRequest_=d;v.state_=2}}else v.state_==3&&(e?ybi(v,e):v.JSC$19650_outgoingMaps_.length==
0?v.JSC$19650_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):v.forwardChannelRequest_||(ybi(v),v.JSC$19650_channelDebug_.debug("startForwardChannel_ finished, sent request")))},ybi=function(v,e){if(e)if(v.JSC$19654_channelVersion_>6){v.JSC$19650_outgoingMaps_=v.pendingMaps_.concat(v.JSC$19650_outgoingMaps_);
v.pendingMaps_.length=0;var d=v.JSC$19654_nextRid_-1;e=m$f(v)}else d=e.JSC$19640_rid_,e=e.JSC$19642_postData_;else d=v.JSC$19654_nextRid_++,e=m$f(v);var E=v.JSC$19654_forwardChannelUri_.clone();_.cw(E,"SID",v.sid_);_.cw(E,"RID",d);_.cw(E,"AID",v.JSC$19654_lastArrayId_);Sf(v,E);d=new p3(v,v.JSC$19650_channelDebug_,v.sid_,d,v.JSC$19654_forwardChannelRetryCount_+1);d.JSC$19642_extraHeaders_=v.JSC$19654_extraHeaders_;d.setTimeout(1E4+Math.round(1E4*Math.random()));v.forwardChannelRequest_=d;D6S(d,E,e)},
Sf=function(v,e){v.handler_&&(v=v.handler_.JSC$19661_getAdditionalParams())&&_.f0.forEach(v,function(d,E){_.cw(e,E,d)})},m$f=function(v){var e=Math.min(v.JSC$19650_outgoingMaps_.length,1E3),d=["count="+e];
if(v.JSC$19654_channelVersion_>6&&e>0){var E=v.JSC$19650_outgoingMaps_[0].JSC$19652_mapId;d.push("ofs="+E)}else E=0;for(var T={},S=0;S<e;T={mapId$jscomp$3:void 0},S++){T.mapId$jscomp$3=v.JSC$19650_outgoingMaps_[S].JSC$19652_mapId;var O=v.JSC$19650_outgoingMaps_[S].map;T.mapId$jscomp$3=v.JSC$19654_channelVersion_<=6?S:T.mapId$jscomp$3-E;try{_.f0.forEach(O,function(b){return function(Y,q){d.push("req"+b.mapId$jscomp$3+"_"+q+"="+encodeURIComponent(Y))}}(T))}catch(b){d.push("req"+T.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}v.pendingMaps_=v.pendingMaps_.concat(v.JSC$19650_outgoingMaps_.splice(0,e));
return d.join("&")},q1s=function(v){v.JSC$19654_backChannelRequest_||v.JSC$19654_backChannelTimerId_||(v.JSC$19654_backChannelAttemptId_=1,v.JSC$19654_backChannelTimerId_=F_((0,_.LX)(v.JSC$19654_onStartBackChannelTimer_,v),0),v.JSC$19654_backChannelRetryCount_=0)},hrs=function(v){if(v.JSC$19654_backChannelRequest_||v.JSC$19654_backChannelTimerId_||v.JSC$19654_backChannelRetryCount_>=3)return!1;
v.JSC$19650_channelDebug_.debug("Going to retry GET");v.JSC$19654_backChannelAttemptId_++;v.JSC$19654_backChannelTimerId_=F_((0,_.LX)(v.JSC$19654_onStartBackChannelTimer_,v),rb1(v,v.JSC$19654_backChannelRetryCount_));v.JSC$19654_backChannelRetryCount_++;return!0};
Ti.prototype.JSC$19654_onStartBackChannelTimer_=function(){this.JSC$19654_backChannelTimerId_=null;this.JSC$19650_channelDebug_.debug("Creating new HttpRequest");this.JSC$19654_backChannelRequest_=new p3(this,this.JSC$19650_channelDebug_,this.sid_,"rpc",this.JSC$19654_backChannelAttemptId_);this.JSC$19654_backChannelRequest_.JSC$19642_extraHeaders_=this.JSC$19654_extraHeaders_;this.JSC$19654_backChannelRequest_.JSC$19642_readyStateChangeThrottleMs_=0;var v=this.JSC$19654_backChannelUri_.clone();_.cw(v,
"RID","rpc");_.cw(v,"SID",this.sid_);_.cw(v,"CI",this.useChunked_?"0":"1");_.cw(v,"AID",this.JSC$19654_lastArrayId_);Sf(this,v);_.cw(v,"TYPE","xmlhttp");U6C(this.JSC$19654_backChannelRequest_,v,!0,this.JSC$19654_hostPrefix_,!1);this.JSC$19650_channelDebug_.debug("New Request created")};
var E8=function(v,e,d){v.JSC$19650_channelDebug_.debug("Test Connection Finished");v.useChunked_=v.secondTestResults_==null?d:!v.secondTestResults_;v.JSC$19654_lastStatusCode_=e.JSC$19649_lastStatusCode_;v.asyncTest_||WZ_(v)},erw=function(v,e){v.JSC$19650_channelDebug_.debug("Test Connection Failed");
v.JSC$19654_lastStatusCode_=e.JSC$19649_lastStatusCode_;dM(v,2)};
Ti.prototype.JSC$19649_onRequestData=function(v,e){if(this.state_!=0&&(this.JSC$19654_backChannelRequest_==v||this.forwardChannelRequest_==v))if(this.JSC$19654_lastStatusCode_=v.JSC$19642_lastStatusCode_,this.forwardChannelRequest_==v&&this.state_==3)if(this.JSC$19654_channelVersion_>7){try{var d=this.JSC$19650_parser_.parse(e)}catch(E){d=null}if(Array.isArray(d)&&d.length==3)if(e=d,e[0]==0)a:if(this.JSC$19650_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19654_backChannelTimerId_)this.JSC$19650_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19654_backChannelRequest_)if(this.JSC$19654_backChannelRequest_.JSC$19642_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19642_requestStartTime_)Ihf(this),this.JSC$19654_backChannelRequest_.cancel(),this.JSC$19654_backChannelRequest_=null;else break a;else this.JSC$19650_channelDebug_.warning("We do not have a BackChannel established");hrs(this);UX(19)}else this.JSC$19654_lastPostResponseArrayId_=e[1],v=this.JSC$19654_lastPostResponseArrayId_-this.JSC$19654_lastArrayId_,0<
v&&(e=e[2],this.JSC$19650_channelDebug_.debug(e+" bytes (in "+v+" arrays) are outstanding on the BackChannel"),e<37500&&this.useChunked_&&this.JSC$19654_backChannelRetryCount_==0&&!this.JSC$19654_deadBackChannelTimerId_&&(this.JSC$19654_deadBackChannelTimerId_=F_((0,_.LX)(this.JSC$19654_onBackChannelDead_,this),6E3)));else this.JSC$19650_channelDebug_.debug("Bad POST response data returned"),dM(this,11)}else e!="y2f%"&&(this.JSC$19650_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
dM(this,11));else this.JSC$19654_backChannelRequest_==v&&Ihf(this),_.IU(e)||(v=this.JSC$19650_parser_.parse(e),this.onInput_(v))};
Ti.prototype.JSC$19654_onBackChannelDead_=function(){this.JSC$19654_deadBackChannelTimerId_!=null&&(this.JSC$19654_deadBackChannelTimerId_=null,this.JSC$19654_backChannelRequest_.cancel(),this.JSC$19654_backChannelRequest_=null,hrs(this),UX(20))};
var Ihf=function(v){v.JSC$19654_deadBackChannelTimerId_!=null&&(_.TO.clearTimeout(v.JSC$19654_deadBackChannelTimerId_),v.JSC$19654_deadBackChannelTimerId_=null)};
Ti.prototype.JSC$19649_onRequestComplete=function(v){this.JSC$19650_channelDebug_.debug("Request complete");if(this.JSC$19654_backChannelRequest_==v){Ihf(this);this.JSC$19654_backChannelRequest_=null;var e=2}else if(this.forwardChannelRequest_==v)this.forwardChannelRequest_=null,e=1;else return;this.JSC$19654_lastStatusCode_=v.JSC$19642_lastStatusCode_;if(this.state_!=0)if(v.JSC$19642_successful_)if(e==1){e=v.JSC$19642_postData_?v.JSC$19642_postData_.length:0;v=Date.now()-v.JSC$19642_requestStartTime_;
var d=wX_;d.dispatchEvent(new TT9(d,e,v,this.JSC$19654_forwardChannelRetryCount_));Osi(this);this.handler_&&this.handler_.JSC$19661_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else q1s(this);else{d=v.getLastError();if(d==3||d==7||d==0&&this.JSC$19654_lastStatusCode_>0)this.JSC$19650_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19650_channelDebug_.debug("Maybe retrying, last error: "+QAs(d,this.JSC$19654_lastStatusCode_));var E;if(E=e==1)this.forwardChannelRequest_||
this.JSC$19654_forwardChannelTimerId_||this.state_==1||this.JSC$19654_forwardChannelRetryCount_>=2?E=!1:(this.JSC$19650_channelDebug_.debug("Going to retry POST"),this.JSC$19654_forwardChannelTimerId_=F_((0,_.LX)(this.JSC$19654_onStartForwardChannelTimer_,this,v),rb1(this,this.JSC$19654_forwardChannelRetryCount_)),this.JSC$19654_forwardChannelRetryCount_++,E=!0);if(E||e==2&&hrs(this))return;this.JSC$19650_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19650_channelDebug_.debug("Error: HTTP request failed");
switch(d){case 1:dM(this,5);break;case 4:dM(this,10);break;case 3:dM(this,6);break;case 7:dM(this,12);break;default:dM(this,2)}}};
var rb1=function(v,e){var d=5E3+Math.floor(Math.random()*1E4);v.isActive()||(v.JSC$19650_channelDebug_.debug("Inactive channel"),d*=2);return d*e};
Ti.prototype.onInput_=function(v){for(var e=0;e<v.length;e++){var d=v[e];this.JSC$19654_lastArrayId_=d[0];d=d[1];this.state_==2?d[0]=="c"?(this.sid_=d[1],this.JSC$19654_hostPrefix_=d[2],d=d[3],d!=null?this.JSC$19654_channelVersion_=d:this.JSC$19654_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19661_channelOpened(),this.JSC$19654_backChannelUri_=vKQ(this,this.JSC$19654_hostPrefix_,this.JSC$19654_path_),q1s(this)):d[0]=="stop"&&dM(this,7):this.state_==3&&(d[0]=="stop"?dM(this,7):
d[0]!="noop"&&this.handler_&&this.handler_.JSC$19661_channelHandleArray(d),this.JSC$19654_backChannelRetryCount_=0)}};
Ti.prototype.JSC$19654_ensureInState_=function(v){if(!_.lL(arguments,this.state_))throw Error("Mk`"+this.state_);};
var dM=function(v,e){v.JSC$19650_channelDebug_.info("Error code "+e);if(e==2||e==9){var d=null;v.handler_&&(d=null);var E=(0,_.LX)(v.testGoogleComCallback_,v);d||(d=new _.vF("//www.google.com/images/cleardot.gif"),_.dG(d));RX9(d.toString(),1E4,E)}else UX(2);v.onError_(e)};
Ti.prototype.testGoogleComCallback_=function(v){v?(this.JSC$19650_channelDebug_.info("Successfully pinged google.com"),UX(2)):(this.JSC$19650_channelDebug_.info("Failed to ping google.com"),UX(1),this.onError_(8))};
Ti.prototype.onError_=function(v){this.JSC$19650_channelDebug_.debug("HttpChannel: error - "+v);this.state_=0;this.handler_&&this.handler_.JSC$19661_channelError(v);isO(this);ahs(this)};
var isO=function(v){v.state_=0;v.JSC$19654_lastStatusCode_=-1;if(v.handler_)if(v.pendingMaps_.length==0&&v.JSC$19650_outgoingMaps_.length==0)v.handler_.JSC$19661_channelClosed();else{v.JSC$19650_channelDebug_.debug("Number of undelivered maps, pending: "+v.pendingMaps_.length+", outgoing: "+v.JSC$19650_outgoingMaps_.length);var e=_.Zt(v.pendingMaps_),d=_.Zt(v.JSC$19650_outgoingMaps_);v.pendingMaps_.length=0;v.JSC$19650_outgoingMaps_.length=0;v.handler_.JSC$19661_channelClosed(e,d)}},Wk9=function(v,
e){e=O$1(v,null,e);
v.JSC$19650_channelDebug_.debug("GetForwardChannelUri: "+e);return e},vKQ=function(v,e,d){e=O$1(v,v.JSC$19649_shouldUseSecondaryDomains()?e:null,d);
v.JSC$19650_channelDebug_.debug("GetBackChannelUri: "+e);return e},O$1=function(v,e,d){var E=_.Az(d);
if(E.JSC$10022_domain_!="")e&&_.g6(E,e+"."+E.JSC$10022_domain_),_.uI(E,E.JSC$10022_port_);else{var T=window.location;E=X09(T.protocol,e?e+"."+T.hostname:T.hostname,+T.port,d)}v.JSC$19654_extraParams_&&_.f0.forEach(v.JSC$19654_extraParams_,function(S,O){_.cw(E,O,S)});
_.cw(E,"VER",v.JSC$19654_channelVersion_);Sf(v,E);return E};
Ti.prototype.JSC$19649_createXhrIo=function(v){if(v)throw Error("Jk");v=new _.Ly;v.JSC$9787_withCredentials_=!1;return v};
Ti.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Ti.prototype.notifyServerReachabilityEvent=function(v){var e=wX_;e.dispatchEvent(new S1_(e,v))};
Ti.prototype.JSC$19649_shouldUseSecondaryDomains=function(){return!1};
new cRQ;var KZi=function(){};
_.W=KZi.prototype;_.W.JSC$19661_channelOpened=function(){};
_.W.JSC$19661_channelHandleArray=function(){};
_.W.JSC$19661_channelSuccess=function(){};
_.W.JSC$19661_channelError=function(){};
_.W.JSC$19661_channelClosed=function(){};
_.W.JSC$19661_getAdditionalParams=function(){return{}};
_.W.isActive=function(){return!0};var $$s=function(v){v.front_.length===0&&(v.front_=v.back_,v.front_.reverse(),v.back_=[])};
_.W=B1s.prototype;_.W.enqueue=function(v){this.back_.push(v)};
_.W.peek=function(){$$s(this);return _.P3(this.front_)};
_.W.getCount=function(){return this.front_.length+this.back_.length};
_.W.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.W.clear=function(){this.front_=[];this.back_=[]};
_.W.contains=function(v){return _.lL(this.front_,v)||_.lL(this.back_,v)};
_.W.remove=function(v){var e=this.front_;var d=Array.prototype.lastIndexOf.call(e,v,e.length-1);d>=0?(_.kO7(e,d),e=!0):e=!1;return e||_.H3(this.back_,v)};
_.W.getValues=function(){for(var v=[],e=this.front_.length-1;e>=0;--e)v.push(this.front_[e]);e=this.back_.length;for(var d=0;d<e;++d)v.push(this.back_[d]);return v};var WI=function(v){this.JSC$19665_map_=new _.WA;this.size=0;v&&this.addAll(v)},jci=function(v){var e=typeof v;
return e=="object"&&v||e=="function"?"o"+_.gH(v):e.charAt(0)+v};
_.W=WI.prototype;_.W.getCount=function(){return this.JSC$19665_map_.size};
_.W.add=function(v){this.JSC$19665_map_.set(jci(v),v);this.size=this.JSC$19665_map_.size};
_.W.addAll=function(v){v=_.Fh(v);for(var e=v.length,d=0;d<e;d++)this.add(v[d]);this.size=this.JSC$19665_map_.size};
_.W.removeAll=function(v){v=_.Fh(v);for(var e=v.length,d=0;d<e;d++)this.remove(v[d]);this.size=this.JSC$19665_map_.size};
_.W.delete=function(v){v=this.JSC$19665_map_.remove(jci(v));this.size=this.JSC$19665_map_.size;return v};
_.W.remove=function(v){return this.delete(v)};
_.W.clear=function(){this.JSC$19665_map_.clear();this.size=0};
_.W.isEmpty=function(){return this.JSC$19665_map_.size===0};
_.W.has=function(v){return this.JSC$19665_map_.containsKey(jci(v))};
_.W.contains=function(v){return this.JSC$19665_map_.containsKey(jci(v))};
_.W.getValues=function(){return this.JSC$19665_map_.getValues()};
_.W.values=function(){return this.JSC$19665_map_.values()};
_.W.clone=function(){return new WI(this)};
_.W.equals=function(v){return this.getCount()==BQi(v)&&scv(this,v)};
var scv=function(v,e){var d=BQi(e);if(v.getCount()>d)return!1;!(e instanceof WI)&&d>5&&(e=new WI(e));return CzO(v,function(E){var T=e;return T.contains&&typeof T.contains=="function"?T.contains(E):T.containsValue&&typeof T.containsValue=="function"?T.containsValue(E):_.c3(T)||typeof T==="string"?_.lL(T,E):_.f0.containsValue(T,E)})};
WI.prototype.__iterator__=function(){return this.JSC$19665_map_.__iterator__(!1)};
WI.prototype[Symbol.iterator]=function(){return this.values()};var NT9={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(v){return(this._clampValue(v)-this.min)/(this.max-this.min)},
_clampValue:function(v){return Math.min(this.max,Math.max(this.min,this._calcStep(v)))},
_calcStep:function(v){v=parseFloat(v);if(!this.step)return v;v=Math.round((v-this.min)/this.step);return this.step<1?v/(1/this.step)+this.min:v*this.step+this.min},
_validateValue:function(){var v=this._clampValue(this.value);this.value=this.oldValue=isNaN(v)?this.oldValue:v;return this.value!==v},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var kfi;var LZQ;_.xv({_template:function(){if(LZQ!==void 0)return LZQ;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;kfi===void 0&&(kfi=document.createElement("template"));var E=kfi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return LZQ=v},
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(){_.Uh(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(v){v.keyCode===27&&(v.preventDefault(),this.close())},
_track:function(v){if(!this.persistent&&!this.disableSwipe)switch(v.preventDefault(),v.detail.state){case "start":this._trackStart(v);break;case "track":this._trackMove(v);break;case "end":this._trackEnd(v)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var v=this.$.contentContainer.getBoundingClientRect();this._savedWidth=v.width;this._translateOffset=this.position==="left"?v.left:v.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(v){this._trackDetails&&(this._translateDrawer(v.detail.dx+this._translateOffset),this._trackDetails.push({dx:v.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(v){if(this._trackDetails){var e=v.detail.dx+this._translateOffset,d=this.getWidth();e=this.position==="left"?e>=0||e<=-d:e<=0||e>=d;if(!e){var E=this._trackDetails;this._trackDetails=null;this._flingDrawer(v,E);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}d/=2;v.detail.dx<-d?this.opened=this.position==="right":v.detail.dx>d&&(this.opened=this.position==="left");e?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(v,e){for(var d=Date.now(),E=d-100,T,S=0,O=e.length-1;S<=O;){var b=S+O>>1,Y=e[b];Y.timeStamp>=E?(T=Y,O=b-1):S=b+1}return T?(v.detail.dx-T.dx)/(d-T.timeStamp||1):0},
_flingDrawer:function(v,e){e=this._calculateVelocity(v,e);if(!(Math.abs(e)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;v=v.detail.dx+this._translateOffset;var d=this.getWidth(),E=this.position==="left",T=e>0;T?(e=Math.max(e,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(e=Math.min(e,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");e=this._FLING_INITIAL_SLOPE*(!T&&E?-(v+d):T&&!E?d-v:-v)/e;this._styleTransitionDuration(e);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,e)}},
_styleTransitionDuration:function(v){this.style.transitionDuration=v+"ms";this.$.contentContainer.style.transitionDuration=v+"ms";this.$.scrim.style.transitionDuration=v+"ms"},
_styleTransitionTimingFunction:function(v){this.$.contentContainer.style.transitionTimingFunction=v;this.$.scrim.style.transitionTimingFunction=v},
_translateDrawer:function(v){var e=this.getWidth();this.position==="left"?(v=Math.max(-e,Math.min(v,0)),this.$.scrim.style.opacity=1+v/e):(v=Math.max(0,Math.min(v,e)),this.$.scrim.style.opacity=1-v/e);this.translate3d(v+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var v=this._drawerState;v===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;v!==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=""),v!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var v=_.tW(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"])');v.length>0?(this._firstTabStop=v[0],this._lastTabStop=v[v.length-1]):
this._lastTabStop=this._firstTabStop=null;(v=this.getAttribute("tabindex"))&&parseInt(v,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(v){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||v.keyCode!==9||(v.shiftKey?this._firstTabStop&&_.tW(v).localTarget===this._firstTabStop&&(v.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.tW(v).localTarget===this._lastTabStop&&(v.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(v,e){this.toggleClass("visible",v&&!e,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var VNO;var oK1;_.xv({_template:function(){if(oK1!==void 0)return oK1;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;VNO===void 0&&(VNO=document.createElement("template"));var E=VNO;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return oK1=v},
is:"tp-yt-paper-progress",behaviors:[NT9],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(v){this.toggleClass("indeterminate",v,this.$.primaryProgress)},
_transformProgress:function(v,e){v.style.transform=v.style.webkitTransform="scaleX("+e/100+")"},
_mainRatioChanged:function(v){this._transformProgress(this.$.primaryProgress,v)},
_progressChanged:function(v,e,d,E,T){v=this._clampValue(v);e=this._clampValue(e);var S=this._calcRatio(v)*100,O=this._calcRatio(e)*100;this._setSecondaryRatio(S);this._transformProgress(this.$.secondaryProgress,S);this._transformProgress(this.$.primaryProgress,O);this.secondaryProgress=v;T?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",e);this.setAttribute("aria-valuemin",d);this.setAttribute("aria-valuemax",E)},
_disabledChanged:function(v){this.setAttribute("aria-disabled",v?"true":"false")},
_hideSecondaryProgress:function(v){return v===0}});var JbS;var Gfs;var MN1=function(){};
_.W=MN1.prototype;_.W.registered=function(){};
_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W._tapHandler=function(){};
_.W._focusChanged=function(){};
_.W._detectKeyboardFocus=function(){};
_.W._userActivate=function(){};
_.W._upHandler=function(){};
_.W._spaceKeyDownHandler=function(){};
_.W._spaceKeyUpHandler=function(){};
_.W._asyncClick=function(){};
_.W._pressedChanged=function(){};
_.W._ariaActiveAttributeChanged=function(){};
_.W._activeChanged=function(){};
_.W._controlStateChanged=function(){};
_.W._changedButtonState=function(){};
_.W._focusBlurHandler=function(){};
_.W._disabledChanged=function(){};
_.W._changedControlState=function(){};
_.W._buttonStateChanged=function(){};
_.W._downHandler=function(){};
_.W.ensureRipple=function(){};
_.W.getRipple=function(){};
_.W.hasRipple=function(){};
_.W._noinkChanged=function(){};
_.W._calcRatio=function(){};
_.W._clampValue=function(){};
_.W._calcStep=function(){};
_.W._validateValue=function(){};
_.W._update=function(){};
_.W._setImmediateValue=function(){};
_.W._setExpand=function(){};
_.W._setDragging=function(){};
_.W._setTransiting=function(){};
_.W._setMarkers=function(){};
_.W._setPressed=function(){};
_.W._setPointerDown=function(){};
_.W._setReceivedFocusFromKeyboard=function(){};
_.W._setFocused=function(){};
_.W._setRatio=function(){};
MN1=_.xv({_template:function(){if(Gfs!==void 0)return Gfs;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;JbS===void 0&&(JbS=document.createElement("template"));var E=JbS;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return Gfs=v},
is:"tp-yt-paper-slider",behaviors:[_.K$,_.NS,_.iO0,NT9],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&&_.Ck(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(v,e,d){this.setAttribute("aria-valuemin",e);this.setAttribute("aria-valuemax",d);this.setAttribute("aria-valuenow",v);this._positionKnob(this._calcRatio(v)*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(v){this._setImmediateValue(this._calcStep(this._calcKnobPosition(v)));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(v){return(this.max-this.min)*v/100+this.min},
_onTrack:function(v){v.stopPropagation();switch(v.detail.state){case "start":this._trackStart(v);break;case "track":this._trackX(v);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(v){this.dragging||this._trackStart(v);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,v.detail.dx*(this._isRTL?-1:1)));v=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(v);v=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(v+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var v=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;v.transform=v.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(v){this._expandKnob();v.preventDefault();this.focus()},
_bartrack:function(v){this._allowBarEvent(v)&&this._onTrack(v)},
_barclick:function(v){this._w=this.$.sliderBar.offsetWidth;var e=this.$.sliderBar.getBoundingClientRect();e=(v.detail.x-e.left)/this._w*100;this._isRTL&&(e=100-e);var d=this.ratio;this._setTransiting(!0);this._positionKnob(e);d===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
v.preventDefault();this.focus()},
_bardown:function(v){this._allowBarEvent(v)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(v))},
_knobTransitionEnd:function(v){v.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(v,e,d,E){E||this._setMarkers([]);e=Math.round((d-e)/this.step);e>v&&(e=v);if(e<0||!isFinite(e))e=0;this._setMarkers(Array(e))},
_mergeClasses:function(v){return Object.keys(v).filter(function(e){return v[e]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(v){return!this.ignoreBarTouch||v.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(v){this._isRTL?this._incrementKey(v):this._decrementKey(v)},
_rightKey:function(v){this._isRTL?this._decrementKey(v):this._incrementKey(v)},
_incrementKey:function(v){this.disabled||(v.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),v.preventDefault())},
_decrementKey:function(v){this.disabled||(v.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),v.preventDefault())},
_changeValue:function(v){this.value=v.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(v){v.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.a9n._createRipple.call(this)},
_focusedChanged:function(v){v&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=v?"":"none",this._ripple.holdDown=v)}});var tNv;var fhO;var aT=null,Rri=function(){};
_.W=Rri.prototype;_.W.fit=function(){};
_.W._discoverInfo=function(){};
_.W.resetFit=function(){};
_.W.refit=function(){};
_.W.position=function(){};
_.W.constrain=function(){};
_.W._sizeDimension=function(){};
_.W.__sizeDimension=function(){};
_.W.center=function(){};
_.W.__getNormalizedRect=function(){};
_.W.__getOffscreenArea=function(){};
_.W.__getPosition=function(){};
_.W.notifyResize=function(){};
_.W.assignParentResizable=function(){};
_.W.stopResizeNotificationsFor=function(){};
_.W._subscribeIronResize=function(){};
_.W._unsubscribeIronResize=function(){};
_.W.resizerShouldNotify=function(){};
_.W._onDescendantIronResize=function(){};
_.W._fireResize=function(){};
_.W._onIronRequestResizeNotifications=function(){};
_.W._parentResizableChanged=function(){};
_.W._notifyDescendant=function(){};
_.W._requestResizeNotifications=function(){};
_.W._findParent=function(){};
_.W.toggle=function(){};
_.W.open=function(){};
_.W.close=function(){};
_.W.cancel=function(){};
_.W.invalidateTabbables=function(){};
_.W._ensureSetup=function(){};
_.W._canceledChanged=function(){};
_.W._withBackdropChanged=function(){};
_.W._prepareRenderOpened=function(){};
_.W._finishRenderOpened=function(){};
_.W._finishRenderClosed=function(){};
_.W._preparePositioning=function(){};
_.W._finishPositioning=function(){};
_.W._applyFocus=function(){};
_.W._onCaptureClick=function(){};
_.W._onCaptureFocus=function(){};
_.W._onCaptureEsc=function(){};
_.W._onCaptureTab=function(){};
_.W._onIronResize=function(){};
_.W._onNodesChange=function(){};
_.W.__ensureFirstLastFocusables=function(){};
_.W.__openedChanged=function(){};
_.W.__deraf=function(){};
_.W.__updateScrollObservers=function(){};
_.W.__addScrollListeners=function(){};
_.W.__removeScrollListeners=function(){};
_.W.__isValidScrollAction=function(){};
_.W.__onCaptureScroll=function(){};
_.W.__saveScrollPosition=function(){};
_.W.__restoreScrollPosition=function(){};
_.W._setCanceled=function(){};
Rri=_.xv({_template:function(){if(fhO!==void 0)return fhO;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;tNv===void 0&&(tNv=document.createElement("template"));var E=tNv;d.call(e,E.content.cloneNode(!0),v.content.firstChild);return fhO=v},
is:"tp-yt-paper-toast",behaviors:[_.A9],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(){_.jr._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.C$.requestAvailability()},
show:function(v){typeof v=="string"&&(v={text:v});for(var e in v)e.indexOf("_")===0?_.jr._warn('The property "'+e+'" is private and was not set.'):e in this?this[e]=v[e]:_.jr._warn('The property "'+e+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(v){v&&v.target===this&&v.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(aT&&aT!==this&&aT.close(),aT=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):aT===this&&(aT=null);_.HA._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(v){this.positionTarget=v},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var PA_=new _.gG("disablePersonalizationAction");var Ixs=new _.gG("showDmaConsentFlowCommand");var bvv=new _.gG("showMmgNoticeCommand");var x$O=new _.gG("saveConsentAction");var BT9=function(v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PO(v)};
_.V(BT9,_.du);var CAQ=_.X$S(BT9);var Xli=new _.gG("updateTopbarAvatarAction");var zrt=new _.gG("channelHandleValidationResultRenderer");var lh9=new _.gG("generateHandleFromNameResultRenderer");var Hst=new _.gG("channelHandleInputRenderer");var Abf=new _.gG("copyLinkRenderer");var Zs9=new _.gG("timedCommand");var cbO=new _.gG("clearCookieAction");var wl_=new _.gG("getMultiPageMenuAction");var FZw=new _.gG("addToGuideSectionAction"),QcQ=new _.gG("removeFromGuideSectionAction");var gK9=new _.gG("updateNotificationsUnseenCountAction");var uzS=new _.gG("resetChannelUnreadCountCommand");var nK1=new _.gG("resetSubscriptionsUnreadDotCommand");var D$9=new _.gG("selectLanguageCommand");var VMS=new _.gG("sendFeedbackAction");var U$s=new _.gG("uploadImageToScottyCommand");var pl1=new _.gG("registerPromoCommand");var vMf=new _.gG("setPushNotificationsEnabledCommand");var esv=new _.gG("desktopTopbarRenderer");var dZw=new _.gG("surveyFollowUpRenderer");var EM_=new _.gG("handlesClaimingRadioOptionRenderer");var TDw=new _.gG("hotkeyDialogRenderer");var Sew=new _.gG("modifyReportFormCommand");var WO_=new _.gG("accountLinkCommand");var abf=new _.gG("accountUnlinkCommand");var iRO=new _.gG("logAccountLinkingEventCommand");var ORs=new _.gG("guideCollapsibleEntryRenderer");var Ib9=new _.gG("guideDownloadsEntryRenderer");var iu=new _.gG("guideEntryRenderer");var bRi=new _.gG("getLocationCommand");var Yei=new _.gG("locationCollectionCommand");var mZQ=new _.gG("storiesItemViewModel");var y59=new _.gG("addToRemoteQueueAction");var qe1=new _.gG("insertInRemoteQueueAction");var r5S=new _.gG("removeFromRemoteQueueAction");var hsi=new _.gG("notificationRenderer");var ujS=new _.gG("localWatchHistoryCommand");var KOO=new _.gG("pdgBuyFlowHeaderRenderer");var $Z_=new _.gG("pdgColorSliderRenderer");var jeS=new _.gG("pdgCommentOptionRenderer");var sew=new _.gG("pdgCommentPreviewRenderer");var NDf=new _.gG("superVodSelectableItemButtonRenderer");var kXO=new _.gG("switchButtonRenderer");var LOs=new _.gG("upsellDialogRenderer");var VZi=new _.gG("feedbackQuestionRenderer"),oMt=new _.gG("feedbackOptionRenderer");var J5Q=new _.gG("sponsorshipsTierRenderer"),GXs=new _.gG("sponsorshipsPromotionChannelRenderer");var MZw=new _.gG("simpleSurveyMessageRenderer");var VK9=new _.gG("invokeInstrumentManagerAction");var tZ_=new _.gG("logYpcFlowDismissCommand");var fbi=new _.gG("logYpcFlowStartCommand");var RsS=new _.gG("unlimitedCreateFamilyEndpoint");var P$C=new _.gG("iconBadgeRenderer");var nJi=new _.gG("collaborativePlaylistVisibilityValidationRule");var xZv=function(v){_.bI.call(this,"channelMessage");this.message=v};
_.V(xZv,_.bI);var BDv=function(v){_.bI.call(this,"channelError");this.error=v};
_.V(BDv,_.bI);var C$i={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",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},Xhf={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},zsw={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},lbf={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},HR9={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var O8=function(v){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 _.WA;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;v&&(this.id=v.id||v.name,this.name=v.name,this.clientName=v.clientName?v.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=v.app,this.type=v.type||"REMOTE_CONTROL",this.username=v.user||"",this.avatar=v.userAvatarUri||"",this.obfuscatedGaiaId=v.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=v.ownerObfuscatedGaiaId||"",this.castUserId=v.castUserId||"",this.theme=v.theme||"u",A5S(this,v.capabilities||""),ZRS(this,
v.compatibleSenderThemes||""),c5O(this,v.experiments||""),this.remoteControllerUrl=v.remoteControllerUrl||"",this.localChannelEncryptionKey=v.localChannelEncryptionKey||"",this.deviceContext=v.deviceContext,this.brand=v.brand||"",this.model=v.model||"",this.year=v.year||0,this.os=v.os||"",this.osVersion=v.osVersion||"",this.chipset=v.chipset||"",this.mdxDialServerType=v.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=v.pairingType||"unknown",v=v.deviceInfo)&&(v=JSON.parse(v),this.brand=
v.brand||"",this.model=v.model||"",this.year=v.year||0,this.os=v.os||"",this.osVersion=v.osVersion||"",this.chipset=v.chipset||"",this.clientName=v.clientName?v.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=v.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
O8.prototype.copy=function(){var v={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&&(v.brand=this.brand);
this.model&&(v.model=this.model);this.year&&(v.year=this.year);this.os&&(v.os=this.os);this.osVersion&&(v.osVersion=this.osVersion);this.chipset&&(v.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(v.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(v.mdxDialServerType=this.mdxDialServerType);v=new O8(v);v.connected=this.connected;v.remoteControllerUrl=this.remoteControllerUrl;v.localChannelEncryptionKey=this.localChannelEncryptionKey;v.deviceContext=
this.deviceContext;v.castUserId=this.castUserId;return v};
O8.prototype.equals=function(v){return v?this.id==v.id:!1};
var A5S=function(v,e){v.capabilities.clear();_.dN(e.split(","),_.kB(_.f0.contains,C$i)).forEach(function(d){v.capabilities.add(d)})},ZRS=function(v,e){v.compatibleSenderThemes.clear();
_.dN(e.split(","),_.kB(_.f0.contains,Xhf)).forEach(function(d){v.compatibleSenderThemes.add(d)})},c5O=function(v,e){v.experiments.clear();
e.split(",").forEach(function(d){v.experiments.add(d)})};var whs=function(v,e){this.action=v;this.params=e||{}};_.vM(CXt,_.kh);_.W=CXt.prototype;_.W.JSC$19701_onTick_=function(){this.JSC$19699_interval_=Math.min(3E5,this.JSC$19699_interval_*2);this.JSC$19701_listener_();this.nextTickTime_&&this.start()};
_.W.start=function(){var v=this.JSC$19699_interval_+15E3*Math.random(),e=this.delay_;e.isActive()||e.start(v);this.nextTickTime_=Date.now()+v};
_.W.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.W.isActive=function(){return this.delay_.isActive()};
_.W.reset=function(){this.delay_.stop();this.JSC$19699_interval_=5E3};_.vM(gE,KZi);_.W=gE.prototype;_.W.subscribe=function(v,e,d){return this.pubsub_.subscribe(v,e,d)};
_.W.unsubscribe=function(v,e,d){return this.pubsub_.unsubscribe(v,e,d)};
_.W.unsubscribeByKey=function(v){return this.pubsub_.unsubscribeByKey(v)};
_.W.publish=function(v,e){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.W.dispose=function(){this.JSC$19702_disposed_||(this.JSC$19702_disposed_=!0,_.p0(this.pubsub_),this.disconnect(),_.p0(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19702_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.qg({})})};
_.W.isDisposed=function(){return this.JSC$19702_disposed_};
_.W.connect=function(v,e,d){var E=this,T,S,O,b;return _.I(function(Y){if(Y.nextAddress==1)return _.KF(Y,2),E.useAsyncBrowserChannelHandler_?Y.yield(E.connectPromise_,2):Y.jumpTo(2);_.h7(Y);if(E.JSC$19702_disposed_||E.JSC$19702_channel_&&E.JSC$19702_channel_.getState()==2)return Y.return();E.sCookie_="";E.reconnectTimer_.stop();E.connectionParams_=v||null;E.connectUi_=e||0;T=E.JSC$19702_pathPrefix_+"/test";S=E.JSC$19702_pathPrefix_+"/bind";O=new Ti(d?d.firstTestResults:null,d?d.secondTestResults:null,
E.enableAsyncTest_);if(b=E.JSC$19702_channel_)b.handler_=null;O.handler_=E;E.JSC$19702_channel_=O;if(E.useAsyncBrowserChannelHandler_)return E.connectPromise_=FO9(E).then(function(){return Qe1(E,T,S,b,d)}),Y.return(E.connectPromise_.then(function(){E.connectPromise_=_.qg()}));
Qe1(E,T,S,b,d);return _.$a(Y,0)})};
var Qe1=function(v,e,d,E,T){gMS(v);if(v.JSC$19702_channel_){var S=_.Bb("ID_TOKEN"),O=v.JSC$19702_channel_.JSC$19654_extraHeaders_||{};S?O["x-youtube-identity-token"]=S:delete O["x-youtube-identity-token"];v.JSC$19702_channel_.JSC$19654_extraHeaders_=O}uW9(v);E?(E.getState(),v.JSC$19702_channel_.connect(e,d,v.defaultQueryParams_,E.sid_,E.JSC$19654_lastArrayId_)):T?v.JSC$19702_channel_.connect(e,d,v.defaultQueryParams_,T.sessionId,T.arrayId):v.JSC$19702_channel_.connect(e,d,v.defaultQueryParams_)};
gE.prototype.disconnect=function(v){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.qg())}finally{this.disconnectUi_=v||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),gMS(this),this.JSC$19702_channel_&&(this.JSC$19702_channel_.getState()==3&&Y1s(this.JSC$19702_channel_),this.JSC$19702_channel_.disconnect()),this.disconnectUi_=0}};
gE.prototype.sendMessage=function(v,e){var d=this,E;return _.I(function(T){switch(T.nextAddress){case 1:_.KF(T,2);if(!d.useAsyncBrowserChannelHandler_){T.jumpTo(2);break}return T.yield(d.connectPromise_,2);case 2:_.h7(T);if(d.JSC$19702_disposed_)return T.return();E={_sc:v};e&&_.f0.extend(E,e);if(d.reconnectTimer_.isActive()||(d.JSC$19702_channel_?d.JSC$19702_channel_.getState():0)==2){d.JSC$19702_pendingMessages_.push(E);T.jumpTo(6);break}if(!d.isChannelOpened()){T.jumpTo(6);break}_.KF(T,8);if(!d.useAsyncBrowserChannelHandler_||
nMi(d,v)){T.jumpTo(8);break}return T.yield(FO9(d),8);case 8:_.h7(T,0,0,1);d.isChannelOpened()&&(nMi(d,v)||uW9(d),gMS(d),bs9(d.JSC$19702_channel_,E));_.$a(T,6,1);break;case 6:_.$a(T,0)}})};
var nMi=function(v,e){return v.enableMdxAuthForConnectionOnly_?!0:v.disableMdxAuthForAdMessages_?Object.values(zsw).includes(e):v.disableMdxAuthForNonPlaybackMessages_?!Object.values(lbf).includes(e):v.disableMdxAuthForShortsMessages_?Object.values(HR9).includes(e):!1};
gE.prototype.JSC$19661_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19702_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)DZC(this);else{var v=this.JSC$19702_pendingMessages_;this.JSC$19702_pendingMessages_=[];var e=v.length;uW9(this);UZC(this,v,e);ph9(this)}else ph9(this)};
var DZC=function(v){var e,d;_.I(function(E){if(E.nextAddress==1)return _.KF(E,2),E.yield(FO9(v),2);_.h7(E);e=v.JSC$19702_pendingMessages_;v.JSC$19702_pendingMessages_=[];d=e.length;UZC(v,e,d);ph9(v);return _.$a(E,0)})},UZC=function(v,e,d){for(var E=0;E<d;++E)bs9(v.JSC$19702_channel_,e[E]);
ph9(v)},ph9=function(v){v.publish("handlerOpened");
v.JSC$19702_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.W=gE.prototype;_.W.JSC$19661_channelError=function(v){var e=v==2&&this.JSC$19702_channel_.JSC$19654_lastStatusCode_==401;v==4||e||this.reconnectTimer_.start();this.publish("handlerError",v,e);e=Object.keys(EKC).find(function(d){return EKC[d]===v});
this.JSC$19702_channelErrorCounter.increment("BROWSER_CHANNEL",e!=null?e:"UNKNOWN")};
_.W.JSC$19661_channelClosed=function(v,e){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(e)for(var d=e.length,E=0;E<d;++E){var T=e[E].map;T&&this.JSC$19702_pendingMessages_.push(T)}this.JSC$19702_channelClosedCounter.increment("BROWSER_CHANNEL");v&&this.pendingMapsOnClosedCounter.JSC$9923_streamzService.JSC$9778_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",v.length);e&&this.undeliveredMapsOnClosedCounter.JSC$9926_streamzService.JSC$9778_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
e.length)};
_.W.JSC$19661_channelSuccess=function(v,e){e!=null&&v!=null&&this.channelMessageSentCounter.increment()};
_.W.JSC$19661_getAdditionalParams=function(){var v={v:2};this.sCookie_&&(v.gsessionid=this.sCookie_);this.connectUi_!=0&&(v.ui=""+this.connectUi_);this.disconnectUi_!=0&&(v.ui=""+this.disconnectUi_);this.connectionParams_&&_.f0.extend(v,this.connectionParams_);return v};
_.W.JSC$19661_channelHandleArray=function(v){v[0]=="S"?this.sCookie_=v[1]:v[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19702_channel_.disconnect()):this.publish("handlerMessage",new whs(v[0],v[1]));this.JSC$19702_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.W.isChannelOpened=function(){return!!this.JSC$19702_channel_&&this.JSC$19702_channel_.getState()==3};
var gMS=function(v){if(v.JSC$19702_channel_){var e=v.JSC$19702_getXsrfToken_(),d=v.JSC$19702_channel_.JSC$19654_extraHeaders_||{};e?d["x-youtube-lounge-xsrf-token"]=e:delete d["x-youtube-lounge-xsrf-token"];v.JSC$19702_channel_.JSC$19654_extraHeaders_=d}},FO9=function(v){if(v.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.qg();
if(!v.enableCachedUpdateAuthorizationHeader_)return vXv(v);v.updateAuthorizationHeaderPromise_===null&&(v.updateAuthorizationHeaderPromise_=vXv(v));return v.updateAuthorizationHeaderPromise_},vXv=function(v){return _.j9(v.getAuthorizationHeader_().then(function(e){eB9(v,e)}).thenCatch(function(){}),function(){v.updateAuthorizationHeaderPromise_=null})},eB9=function(v,e){if(v.JSC$19702_channel_){var d=v.JSC$19702_channel_.JSC$19654_extraHeaders_||{};
e&&Object.keys(e).length>0?d=Object.assign({},d,e):delete d.Authorization;v.JSC$19702_channel_.JSC$19654_extraHeaders_=d}},uW9=function(v){v.getAuthorizationHeaderSync_&&!v.useAsyncBrowserChannelHandler_&&eB9(v,v.getAuthorizationHeaderSync_())};
_.W=gE.prototype;_.W.setLoungeToken=function(v){(this.defaultQueryParams_.loungeIdToken=v)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19702_channel_){var e=this.JSC$19702_channel_.JSC$19654_extraHeaders_||{};v?e["X-YouTube-LoungeId-Token"]=v:delete e["X-YouTube-LoungeId-Token"];this.JSC$19702_channel_.JSC$19654_extraHeaders_=e}};
_.W.getDeviceId=function(){return this.defaultQueryParams_.id};
_.W.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.W.reconnect=function(){var v=this.reconnectTimer_;v.delay_.fire();v.start()};
_.W.safeReconnect_=function(){var v=this.JSC$19702_channel_,e=0;v.JSC$19654_backChannelRequest_&&e++;v.forwardChannelRequest_&&e++;e==0&&this.connect(this.connectionParams_,this.connectUi_)};var eb=function(v,e){var d=v.basePath;v.supportCors&&(d=v.scheme+"://"+v.domain+v.port+v.basePath);return _.ug(d+e,{})};
uC.prototype.sendRequest=function(v,e,d,E,T,S,O){v={format:S?"RAW":"JSON",method:v,context:this,timeout:5E3,withCredentials:!!O,onSuccess:_.kB(this.JSC$19707_onSuccess_,E,!S),onError:_.kB(this.onError_,T),onTimeout:_.kB(this.JSC$19707_onTimeout_,T)};d&&(v.postParams=d,v.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.y8(e,v)};
uC.prototype.JSC$19707_onSuccess_=function(v,e,d,E){e?v(E):v({text:d.responseText})};
uC.prototype.onError_=function(v,e){v(Error("Nk`"+e.status))};
uC.prototype.JSC$19707_onTimeout_=function(v){v(Error("Ok"))};var D5=function(v,e){return!!e&&(v.id==e||v.uuid==e)},dJs=function(v){return{name:v.name,
screenId:v.id,loungeToken:v.token,dialId:v.uuid,screenIdType:v.idType}},EXt=function(v){return new nx(v)},TKi=function(v){return Array.isArray(v)?_.R2(v,EXt):[]},QB9=function(v){if(!v)return"null";
var e=v.token?".."+v.token.slice(-6):"-",d=v.uuid?".."+v.uuid.slice(-6):"-";return'{name:"'+v.name+'",id:'+v.id.substr(0,6)+"..,token:"+(e+",uuid:"+d+",idType:"+v.idType+"}")},jBi=function(v){return Array.isArray(v)?"["+_.R2(v,QB9).join(",")+"]":"null"};var vvi="",vp=null;var OqS=function(v,e){_.r6.call(this);var d=this;this.handler=v();this.handler.subscribe("handlerOpened",this.JSC$19714_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(E,T){d.onError(T)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=e};
_.V(OqS,_.r6);_.W=OqS.prototype;_.W.connect=function(v,e,d){this.handler.connect(v,e,d)};
_.W.disconnect=function(v){this.handler.disconnect(v)};
_.W.reconnect=function(){this.handler.reconnect()};
_.W.getDeviceId=function(){return this.handler.getDeviceId()};
_.W.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.W.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.W.JSC$19714_onOpened=function(){this.dispatchEvent("channelOpened");var v=this.handler,e=this.currentScreenId;_.mZ("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!v.JSC$19702_channel_.useChunked_,sessionId:v.JSC$19702_channel_.sid_,arrayId:v.JSC$19702_channel_.JSC$19654_lastArrayId_});_.mZ("yt-remote-session-screen-id",e);v=gEi();e=uDS();_.lL(v,e)||v.push(e);pv1(v);UdC()};
_.W.onClosed=function(){this.dispatchEvent("channelClosed")};
_.W.onMessage=function(v){this.dispatchEvent(new xZv(v))};
_.W.onError=function(v){this.dispatchEvent(new BDv(v?1:0))};
_.W.sendMessage=function(v,e){this.handler.sendMessage(v,e)};
_.W.setLoungeToken=function(v){this.handler.setLoungeToken(v)};
_.W.dispose=function(){this.handler.dispose()};var iq9=function(v,e,d){var E=this;d=d===void 0?function(){return""}:d;
var T=T===void 0?new lX9:T;var S=S===void 0?new _.rk:S;this.pathPrefix=v;this.defaultQueryParams=e;this.getXsrfToken=d;this.JSC$19717_pubsub=S;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new CXt(function(){var O;((O=E.channel)==null?void 0:r4s((new ZPv(O,O.JSC$19625_channel_)).JSC$19635_channel_.forwardChannelRequestPool_))===0&&E.connect(E.connectionParams,E.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19717_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19717_channelOpenedCounter=new Xv_;this.JSC$19717_channelClosedCounter=new zXt;this.JSC$19717_channelMessageReceivedCounter=new Hof;this.JSC$19717_channelErrorCounter=new Ak_};
iq9.prototype.connect=function(v,e){v=v===void 0?{}:v;e=e===void 0?0:e;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=v,this.connectUi=e,SFw(this),(v=_.Bb("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=v: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 Du(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,WMO(this))};
var WMO=function(v){_.MC(v.channel,"w",function(){v.channelState=3;v.reconnectTimer.reset();v.connectionParams=null;v.connectUi=0;for(var e=_.a(v.nonAckedMessagesOnChannelClosed),d=e.next();!d.done;d=e.next())d=d.value,v.channel&&v.channel.send(d);v.nonAckedMessagesOnChannelClosed=[];v.publish("webChannelOpened");v.JSC$19717_channelOpenedCounter.increment("WEB_CHANNEL")});
_.MC(v.channel,"x",function(){v.channelState=0;v.reconnectTimer.isActive()||v.publish("webChannelClosed");var e,d=(e=v.channel)==null?void 0:c4s(new ZPv(e,e.JSC$19625_channel_));d&&(v.nonAckedMessagesOnChannelClosed=[].concat(_.t7(d)));v.JSC$19717_channelClosedCounter.increment("WEB_CHANNEL")});
_.MC(v.channel,"z",function(e){var d=e.data;d[0]==="gracefulReconnect"?(v.reconnectTimer.start(),v.channel&&v.channel.close()):v.publish("webChannelMessage",new whs(d[0],d[1]));v.lastStatusCode=e.statusCode;v.JSC$19717_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.MC(v.channel,"y",function(){v.lastStatusCode===401||v.reconnectTimer.start();v.publish("webChannelError");v.JSC$19717_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.W=iq9.prototype;_.W.disconnect=function(v){this.disconnectUi=v===void 0?0:v;this.reconnectTimer.stop();SFw(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.W.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.W.reconnect=function(){var v=this.reconnectTimer;v.delay_.fire();v.start()};
_.W.sendMessage=function(v,e){this.channel&&(SFw(this),v=Object.assign({},{_sc:v},e),this.channel.send(v))};
_.W.setLoungeToken=function(v){v||this.reconnectTimer.stop();v?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=v:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var SFw=function(v){var e=v.getXsrfToken();e?v.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=e:delete v.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.W=iq9.prototype;_.W.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.W.publish=function(v){return this.JSC$19717_pubsub.publish.apply(this.JSC$19717_pubsub,[v].concat(_.t7(_.Xa.apply(1,arguments))))};
_.W.subscribe=function(v,e,d){return this.JSC$19717_pubsub.subscribe(v,e,d)};
_.W.unsubscribe=function(v,e,d){return this.JSC$19717_pubsub.unsubscribe(v,e,d)};
_.W.unsubscribeByKey=function(v){return this.JSC$19717_pubsub.unsubscribeByKey(v)};
_.W.dispose=function(){this.JSC$19717_disposed||(this.JSC$19717_disposed=!0,_.p0(this.JSC$19717_pubsub),this.disconnect(),_.p0(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.W.isDisposed=function(){return this.JSC$19717_disposed};var aos=function(v){_.r6.call(this);this.webChannelService=v();this.webChannelService.subscribe("webChannelOpened",this.JSC$19725_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.V(aos,_.r6);_.W=aos.prototype;_.W.connect=function(v,e){this.webChannelService.connect(v,e)};
_.W.disconnect=function(v){this.webChannelService.disconnect(v)};
_.W.reconnect=function(){this.webChannelService.reconnect()};
_.W.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.W.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.W.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.W.JSC$19725_onOpened=function(){this.dispatchEvent("channelOpened")};
_.W.onClosed=function(){this.dispatchEvent("channelClosed")};
_.W.onMessage=function(v){this.dispatchEvent(new xZv(v))};
_.W.onError=function(){this.dispatchEvent(new BDv(this.webChannelService.lastStatusCode===401?1:0))};
_.W.sendMessage=function(v,e){this.webChannelService.sendMessage(v,e)};
_.W.setLoungeToken=function(v){this.webChannelService.setLoungeToken(v)};
_.W.dispose=function(){this.webChannelService.dispose()};var $r_=Date.now(),d0=null,hi9=Array(50),Sb=-1,KIw=!1;_.vM(Wp,_.bC);Wp.prototype.getScreens=function(){return this.screens};
Wp.prototype.contains=function(v){return!!Qbi(this.screens,v)};
Wp.prototype.get=function(v){return v?UH(this.screens,v):null};
var aKs=function(v,e){var d=v.get(e.uuid)||v.get(e.id);if(d)return v=d.name,d.id=e.id||d.id,d.name=e.name,d.token=e.token,d.uuid=e.uuid||d.uuid,d.name!=v;v.screens.push(e);return!0},ig9=function(v,e){var d=v.screens.length!=e.length;
v.screens=_.dN(v.screens,function(S){return!!Qbi(e,S)});
for(var E=e.length,T=0;T<E;T++)d=aKs(v,e[T])||d;return d},Ogs=function(v,e){var d=v.screens.length;
v.screens=_.dN(v.screens,function(E){return!(E||e?!E!=!e?0:E.id==e.id:1)});
return v.screens.length<d};
Wp.prototype.info=function(v){E7(this.JSC$19726_logName_,v)};var IKs=function(v,e,d,E,T){_.bC.call(this);this.JSC$19729_http_=v;this.pairingCode_=e;this.deviceId_=d;this.friendlyName_=E;this.enableShortLivedLoungeToken_=T;this.pollIndex_=0;this.JSC$19729_xhr_=null;this.JSC$19729_timer_=NaN};
_.V(IKs,_.bC);_.W=IKs.prototype;_.W.start=function(){!this.JSC$19729_xhr_&&isNaN(this.JSC$19729_timer_)&&this.poll_()};
_.W.stop=function(){this.JSC$19729_xhr_&&(this.JSC$19729_xhr_.abort(),this.JSC$19729_xhr_=null);isNaN(this.JSC$19729_timer_)||(_.YL(this.JSC$19729_timer_),this.JSC$19729_timer_=NaN)};
_.W.disposeInternal=function(){this.stop();_.bC.prototype.disposeInternal.call(this)};
_.W.poll_=function(){this.JSC$19729_timer_=NaN;this.JSC$19729_xhr_=_.y8(eb(this.JSC$19729_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.LX)(this.JSC$19731_onSuccess_,this),onError:(0,_.LX)(this.onError_,this),onTimeout:(0,_.LX)(this.JSC$19731_onTimeout_,this)})};
_.W.JSC$19731_onSuccess_=function(v,e){this.JSC$19729_xhr_=null;v=e.screen||{};v.dialId=this.deviceId_;v.name=this.friendlyName_;e=-1;this.enableShortLivedLoungeToken_&&v.shortLivedLoungeToken&&v.shortLivedLoungeToken.value&&v.shortLivedLoungeToken.refreshIntervalMs&&(v.screenIdType="shortLived",v.loungeToken=v.shortLivedLoungeToken.value,e=v.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new nx(v),e)};
_.W.onError_=function(v){this.JSC$19729_xhr_=null;v.status&&v.status==404?this.pollIndex_>=bg1.length?this.publish("pairingFailed",Error("Pk")):(v=bg1[this.pollIndex_],this.JSC$19729_timer_=_.IH((0,_.LX)(this.poll_,this),v),this.pollIndex_++):this.publish("pairingFailed",Error("Qk`"+v.status))};
_.W.JSC$19731_onTimeout_=function(){this.JSC$19729_xhr_=null;this.publish("pairingFailed",Error("Rk"))};
var bg1=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.vM(iK,Wp);_.W=iK.prototype;_.W.start=function(){aN(this)&&this.publish("screenChange");!_.yy("yt-remote-lounge-token-expiration")&&YFs(this);_.YL(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.IH((0,_.LX)(this.start,this),1E4)};
_.W.add=function(v,e){aN(this);aKs(this,v);mJQ(this,!1);this.publish("screenChange");e(v);v.token||YFs(this)};
_.W.remove=function(v,e){var d=aN(this);Ogs(this,v)&&(mJQ(this,!1),d=!0);e(v);d&&this.publish("screenChange")};
_.W.updateName=function(v,e,d,E){var T=aN(this),S=this.get(v.id);S?(S.name!=e&&(S.name=e,mJQ(this,!1),T=!0),d(v)):E(Error("Sk"));T&&this.publish("screenChange")};
_.W.disposeInternal=function(){_.YL(this.loungeTokenRefreshTimer_);iK.superClass_.disposeInternal.call(this)};
var YFs=function(v){if(v.screens.length){var e=_.R2(v.screens,function(E){return E.id}),d=eb(v.JSC$19733_http_,"/pairing/get_lounge_token_batch");
v.JSC$19733_http_.sendRequest("POST",d,{screen_ids:e.join(",")},(0,_.LX)(v.handleLoungeTokens_,v),(0,_.LX)(v.handleLoungeTokenError_,v))}};
iK.prototype.handleLoungeTokens_=function(v){aN(this);var e=this.screens.length;v=v&&v.screens||[];for(var d=v.length,E=0;E<d;++E){var T=v[E],S=this.get(T.screenId);S&&(S.token=T.loungeToken,--e)}mJQ(this,!e);e&&E7(this.JSC$19726_logName_,"Missed "+e+" lounge tokens.")};
iK.prototype.handleLoungeTokenError_=function(v){E7(this.JSC$19726_logName_,"Requesting lounge tokens failed: "+v)};
var aN=function(v){if(_.N("deprecate_pair_servlet_enabled"))return ig9(v,[]);var e=TKi(dr_());e=_.dN(e,function(d){return!d.uuid});
return ig9(v,e)},mJQ=function(v,e){Tis(_.R2(v.screens,dJs));
e&&EvC()};var IT=function(v,e){_.bC.call(this);this.getScreensToCheck_=e;e=(e=_.yy("yt-remote-online-screen-ids")||"")?e.split(","):[];for(var d={},E=this.getScreensToCheck_(),T=E.length,S=0;S<T;++S){var O=E[S].id;d[O]=_.lL(e,O)}this.screenIdSet_=d;this.JSC$19736_http_=v;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;yui("Initialized with "+(0,_.kN)(this.screenIdSet_))};
_.V(IT,_.bC);IT.prototype.isOnline=function(v){return!!this.screenIdSet_[v]};
IT.prototype.start=function(){var v=parseInt(_.yy("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.pO()-144E5<v?0:v)?qF1(this):(this.fastCheckEndTime_=_.pO()+3E5,_.mZ("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
IT.prototype.isEmpty=function(){return _.f0.isEmpty(this.screenIdSet_)};
IT.prototype.update=function(){yui("Updating availability on schedule.");var v=this.getScreensToCheck_(),e=_.f0.filter(this.screenIdSet_,function(d,E){return d&&!!UH(v,E)},this);
ru1(this,e)};
var hBf=function(v,e,d){var E=eb(v.JSC$19736_http_,"/pairing/get_screen_availability");v.JSC$19736_http_.sendRequest("POST",E,{lounge_token:e.token},(0,_.LX)(function(T){T=T.screens||[];for(var S=T.length,O=0;O<S;++O)if(T[O].loungeToken==e.token){d(T[O].status=="online");return}d(!1)},v),(0,_.LX)(function(){d(!1)},v))};
IT.prototype.disposeInternal=function(){_.YL(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.bC.prototype.disposeInternal.call(this)};
var ru1=function(v,e){a:if(_.f0.getCount(e)!=_.f0.getCount(v.screenIdSet_))var d=!1;else{d=_.f0.getKeys(e);for(var E=d.length,T=0;T<E;++T)if(!v.screenIdSet_[d[T]]){d=!1;break a}d=!0}d||(yui("Updated online screens: "+(0,_.kN)(v.screenIdSet_)),v.screenIdSet_=e,v.publish("screenChange"));KMi(v)},qF1=function(v){isNaN(v.refreshTimer_)||_.YL(v.refreshTimer_);
v.refreshTimer_=_.IH((0,_.LX)(v.requestScreenAvailability_,v),v.fastCheckEndTime_>0&&v.fastCheckEndTime_<_.pO()?2E4:1E4)};
IT.prototype.requestScreenAvailability_=function(){_.YL(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var v=$Ji(this);if(_.f0.getCount(v)){var e=eb(this.JSC$19736_http_,"/pairing/get_screen_availability"),d={lounge_token:_.f0.getKeys(v).join(",")};this.currentRequest_=this.JSC$19736_http_.sendRequest("POST",e,d,(0,_.LX)(this.onScreenAvailability_,this,v),(0,_.LX)(this.onScreenAvailabilityError_,this))}else ru1(this,{}),qF1(this)};
IT.prototype.onScreenAvailability_=function(v,e){this.currentRequest_=null;var d=_.f0.getKeys($Ji(this));if(_.uL(d,_.f0.getKeys(v))){e=e.screens||[];d={};for(var E=e.length,T=0;T<E;++T)d[v[e[T].loungeToken]]=e[T].status=="online";ru1(this,d);qF1(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
IT.prototype.onScreenAvailabilityError_=function(v){this.warn_("Screen availability failed: "+v);this.currentRequest_=null;qF1(this)};
var yui=function(v){E7("OnlineScreenService",v)};
IT.prototype.warn_=function(v){E7("OnlineScreenService",v)};
var $Ji=function(v){var e={};_.wZ(v.getScreensToCheck_(),function(d){d.token?e[d.token]=d.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return e},KMi=function(v){v=_.f0.getKeys(_.f0.filter(v.screenIdSet_,function(e){return e}));
v.sort(_.Jsj);v.length?_.mZ("yt-remote-online-screen-ids",v.join(","),60):_.q$("yt-remote-online-screen-ids")};_.vM(O7,Wp);_.W=O7.prototype;_.W.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.W.add=function(v,e,d){this.localScreenService_.add(v,e,d)};
_.W.remove=function(v,e,d){this.localScreenService_.remove(v,e,d);this.onlineScreenService_.update()};
_.W.updateName=function(v,e,d,E){this.localScreenService_.contains(v)?this.localScreenService_.updateName(v,e,d,E):(v="Updating name of unknown screen: "+v.name,E7(this.JSC$19726_logName_,v),E(Error(v)))};
_.W.getScreens=function(v){return v?this.screens:qw9(this.screens,_.dN(this.automaticScreens_,function(e){return!this.contains(e)},this))};
_.W.JSC$19741_getOnlineScreens=function(){return _.dN(this.getScreens(!0),function(v){return this.onlineScreenService_.isOnline(v.id)},this)};
var sPs=function(v,e,d,E,T,S){v.info("getAutomaticScreenByIds "+d+" / "+e);d||(d=v.deviceToScreenId_[e]);var O=v.getScreens(),b=d?UH(O,d):null;d&&(v.disableAutomaticScreenCache_||b)||(b=UH(O,e));if(b){b.uuid=e;var Y=bu(v,b);hBf(v.onlineScreenService_,Y,function(q){T(q?Y:null)})}else d?jPC(v,d,(0,_.LX)(function(q){var r=bu(this,new nx({name:E,
screenId:d,loungeToken:q,dialId:e||""}));hBf(this.onlineScreenService_,r,function(h){T(h?r:null)})},v),S):T(null)};
O7.prototype.JSC$19741_getScreenByPollingPairingCode=function(v,e,d,E,T,S){var O=this;this.info("getDialScreenByPairingCode "+v+" / "+e);var b=new IKs(this.JSC$19739_http_,v,e,d,E);b.subscribe("pairingComplete",function(Y,q){_.p0(b);T(bu(O,Y),q)});
b.subscribe("pairingFailed",function(Y){_.p0(b);S(Y)});
b.start();return(0,_.LX)(b.stop,b)};
var NKS=function(v,e){for(var d=v.screens.length,E=0;E<d;++E)if(v.screens[E].name==e)return v.screens[E];return null};
O7.prototype.JSC$19741_getScreenByPairingCode=function(v,e,d,E){_.y8(eb(this.JSC$19739_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:v},timeout:5E3,onSuccess:(0,_.LX)(function(T,S){T=new nx(S.screen||{});if(!T.name||NKS(this,T.name)){a:{S=T.name;for(var O=2,b=e(S,O);NKS(this,b);){O++;if(O>20)break a;b=e(S,O)}S=b}T.name=S}d(bu(this,T))},this),
onError:(0,_.LX)(function(T){E(Error("Tk`"+T.status))},this),
onTimeout:(0,_.LX)(function(){E(Error("Uk"))},this)})};
var kuS=function(v,e,d){hBf(v.onlineScreenService_,e,d)};
O7.prototype.disposeInternal=function(){_.p0(this.localScreenService_);_.p0(this.onlineScreenService_);O7.superClass_.disposeInternal.call(this)};
var jPC=function(v,e,d,E){v.info("requestLoungeToken_ for "+e);var T={postParams:{screen_ids:e},method:"POST",context:v,onSuccess:function(S,O){S=O&&O.screens||[];S[0]&&S[0].screenId==e?d(S[0].loungeToken):E(Error("Vk"))},
onError:function(){E(Error("Wk"))}};
_.y8(eb(v.JSC$19739_http_,"/pairing/get_lounge_token_batch"),T)},LMi=function(v){v.screens=v.localScreenService_.getScreens();
for(var e=_.f0.transpose(v.deviceToScreenId_),d=v.screens.length,E=0;E<d;++E){var T=v.screens[E];T.uuid=e[T.id]||""}v.info("Updated manual screens: "+jBi(v.screens))};
O7.prototype.handleScreenChange_=function(){LMi(this);this.publish("screenChange");this.onlineScreenService_.update()};
var sBS=function(v){V41(v);v.localScreenService_=new iK(v.JSC$19739_http_);v.localScreenService_.subscribe("screenChange",(0,_.LX)(v.handleScreenChange_,v));LMi(v);v.disableAutomaticScreenCache_||(v.automaticScreens_=TKi(_.yy("yt-remote-automatic-screen-cache")||[]));V41(v);v.info("Initializing automatic screens: "+jBi(v.automaticScreens_));v.onlineScreenService_=new IT(v.JSC$19739_http_,(0,_.LX)(v.getScreens,v,!0));v.onlineScreenService_.subscribe("screenChange",(0,_.LX)(function(){this.publish("onlineScreenChange")},
v))},bu=function(v,e){var d=v.get(e.id);
d?(d.uuid=e.uuid,e=d):((d=UH(v.automaticScreens_,e.uuid))?(d.id=e.id,d.token=e.token,e=d):v.automaticScreens_.push(e),v.disableAutomaticScreenCache_||oXt(v));V41(v);v.deviceToScreenId_[e.uuid]=e.id;_.mZ("yt-remote-device-id-map",v.deviceToScreenId_,31536E3);return e},oXt=function(v){v=_.dN(v.automaticScreens_,function(e){return e.idType!="shortLived"});
_.mZ("yt-remote-automatic-screen-cache",_.R2(v,dJs))},V41=function(v){v.deviceToScreenId_=_.yy("yt-remote-device-id-map")||{}};
O7.prototype.dispose=O7.prototype.dispose;_.vM(IN,_.bC);var Y6=function(v,e){v.screen_=e;v.publish("sessionScreen",v.screen_)},JuS=function(v,e){v.screen_&&(v.screen_.token=e,bu(v.JSC$19743_screenService_,v.screen_));
v.publish("sessionScreen",v.screen_)};
IN.prototype.onSessionStopped=function(v){this.isDisposed()||(v&&(m6(this,""+v),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
IN.prototype.info=function(v){E7(this.JSC$19743_logName_,v)};
var m6=function(v,e){E7(v.JSC$19743_logName_,e)};
IN.prototype.JSC$19745_getCastSession=function(){return null};
IN.prototype.setDisplayStatus=function(v){var e=this.receiver_;v?(e.displayStatus=new chrome.cast.ReceiverDisplayStatus(v,[]),e.displayStatus.showStop=!0):e.displayStatus=null;chrome.cast.setReceiverDisplayStatus(e,(0,_.LX)(function(){this.info("Updated receiver status for "+e.friendlyName+": "+v)},this),(0,_.LX)(function(){m6(this,"Failed to update receiver status for: "+e.friendlyName)},this))};
IN.prototype.disposeInternal=function(){this.setDisplayStatus("");IN.superClass_.disposeInternal.call(this)};var yx=function(v,e,d){IN.call(this,v,e,"CastSession");var E=this;this.config_=d;this.JSC$19748_session_=null;this.JSC$19748_boundSessionUpdate_=(0,_.LX)(this.JSC$19750_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.LX)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.IH(function(){GuO(E,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19748_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19748_isInitLoungeToken_=!1;this.JSC$19748_lastLoungeTokenRefreshError_="unknown"};
_.V(yx,IN);_.W=yx.prototype;
_.W.setCastSession=function(v){if(this.JSC$19748_session_){if(this.JSC$19748_session_==v)return;m6(this,"Overriding cast session with new session object");M4f(this);this.JSC$19748_isInitLoungeToken_=!1;this.JSC$19748_lastLoungeTokenRefreshError_="unknown";this.JSC$19748_session_.removeUpdateListener(this.JSC$19748_boundSessionUpdate_);this.JSC$19748_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19748_session_=v;this.JSC$19748_session_.addUpdateListener(this.JSC$19748_boundSessionUpdate_);this.JSC$19748_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);t4_(this,"getMdxSessionStatus")};
_.W.launchWithParams=function(v){this.info("launchWithParams no-op for Cast: "+(0,_.kN)(v))};
_.W.stop=function(){if(this.JSC$19748_session_)this.JSC$19748_session_.stop((0,_.LX)(function(){this.onSessionStopped()},this),(0,_.LX)(function(){this.onSessionStopped(Error("Xk"))},this));
else this.onSessionStopped(Error("Yk"))};
_.W.setDisplayStatus=function(){};
_.W.disposeInternal=function(){this.info("disposeInternal");M4f(this);this.JSC$19748_session_&&(this.JSC$19748_session_.removeUpdateListener(this.JSC$19748_boundSessionUpdate_),this.JSC$19748_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19748_session_=null;IN.prototype.disposeInternal.call(this)};
var RBQ=function(v,e){_.YL(v.getLoungeTokenTimeoutKey_);v.getLoungeTokenTimeoutKey_=0;e==0?fK1(v):v.getLoungeTokenTimeoutKey_=_.IH(function(){fK1(v)},e)},fK1=function(v){t4_(v,"getLoungeToken");
_.YL(v.onLoungeTokenTimeoutKey_);v.onLoungeTokenTimeoutKey_=_.IH(function(){PVi(v,null)},3E4)},t4_=function(v,e){v.info("sendYoutubeMessage_: "+e+" "+(0,_.kN)(void 0));
var d={};d.type=e;v.JSC$19748_session_?v.JSC$19748_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",d,function(){},(0,_.LX)(function(){m6(this,"Failed to send message: "+e+".")},v)):m6(v,"Sending yt message without session: "+(0,_.kN)(d))};
yx.prototype.onYoutubeMessage_=function(v,e){if(!this.isDisposed())if(e)if(e=(0,_.PP)(e),_.Qj(e))switch(v=""+e.type,e=e.data||{},this.info("onYoutubeMessage_: "+v+" "+(0,_.kN)(e)),v){case "mdxSessionStatus":GuO(this,e);break;case "loungeToken":PVi(this,e);break;default:m6(this,"Unknown youtube message: "+v)}else m6(this,"Unable to parse message.");else m6(this,"No data in message.")};
var xJQ=function(v,e){if(e)v.info("onConnectedScreenId_: Received screenId: "+e),v.screen_&&v.screen_.id==e||v.getScreen_(e,function(d){Y6(v,d)},function(){return v.onSessionStopped()},5);
else v.onSessionStopped(Error("Zk"))},CVO=function(v,e,d){v.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(e));
var E=new nx(e);BKC(v,E,function(T){T?(v.JSC$19748_isInitLoungeToken_=!0,bu(v.JSC$19743_screenService_,E),Y6(v,E),v.JSC$19748_lastLoungeTokenRefreshError_="unknown",RBQ(v,d)):(_.lg(Error("$k`"+JSON.stringify(e))),v.onSessionStopped())},5)},GuO=function(v,e){_.YL(v.sessionStatusTimeoutKey_);
v.sessionStatusTimeoutKey_=0;if(e)v.config_.enableCastLoungeToken&&e.loungeToken?e.deviceId?v.screen_&&v.screen_.uuid==e.deviceId||(e.loungeTokenRefreshIntervalMs?CVO(v,{name:v.receiver_.friendlyName,screenId:e.screenId,loungeToken:e.loungeToken,dialId:e.deviceId,screenIdType:"shortLived"},e.loungeTokenRefreshIntervalMs):(_.lg(Error("bl`"+JSON.stringify(e))),xJQ(v,e.screenId))):(_.lg(Error("al`"+JSON.stringify(e))),xJQ(v,e.screenId)):xJQ(v,e.screenId);else v.onSessionStopped(Error("Zk"))},PVi=function(v,
e){_.YL(v.onLoungeTokenTimeoutKey_);
v.onLoungeTokenTimeoutKey_=0;var d=null;if(e)if(e.loungeToken){var E;((E=v.screen_)==null?void 0:E.token)==e.loungeToken&&(d="staleLoungeToken")}else d="missingLoungeToken";else d="noLoungeTokenResponse";d?(v.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(e)+", error: "+d)),v.JSC$19748_lastLoungeTokenRefreshError_=d,RBQ(v,3E4)):(JuS(v,e.loungeToken),v.JSC$19748_isInitLoungeToken_=!1,v.JSC$19748_lastLoungeTokenRefreshError_="unknown",RBQ(v,e.loungeTokenRefreshIntervalMs))};
yx.prototype.getScreen_=function(v,e,d,E){_.YL(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;sPs(this.JSC$19743_screenService_,this.receiver_.label,v,this.receiver_.friendlyName,(0,_.LX)(function(T){T?e(T):E>=0?(m6(this,"Screen "+v+" appears to be offline. "+E+" retries left."),this.getScreenTimeoutKey_=_.IH((0,_.LX)(this.getScreen_,this,v,e,d,E-1),300)):d(Error("cl"))},this),d)};
var BKC=function(v,e,d,E){_.YL(v.JSC$19748_checkScreenAvailabilityTimeoutKey_);v.JSC$19748_checkScreenAvailabilityTimeoutKey_=0;kuS(v.JSC$19743_screenService_,e,function(T){T||E<0?d(T):v.JSC$19748_checkScreenAvailabilityTimeoutKey_=_.IH(function(){BKC(v,e,d,E-1)},300)})};
yx.prototype.JSC$19745_getCastSession=function(){return this.JSC$19748_session_};
yx.prototype.JSC$19750_onSessionUpdate_=function(v){this.isDisposed()||v||(m6(this,"Cast session died."),this.onSessionStopped())};
var M4f=function(v){_.YL(v.getScreenTimeoutKey_);v.getScreenTimeoutKey_=0;_.YL(v.JSC$19748_checkScreenAvailabilityTimeoutKey_);v.JSC$19748_checkScreenAvailabilityTimeoutKey_=0;_.YL(v.sessionStatusTimeoutKey_);v.sessionStatusTimeoutKey_=0;_.YL(v.onLoungeTokenTimeoutKey_);v.onLoungeTokenTimeoutKey_=0;_.YL(v.getLoungeTokenTimeoutKey_);v.getLoungeTokenTimeoutKey_=0};var qb=function(v,e,d,E){IN.call(this,v,e,"DialSession");this.config_=E;this.JSC$19752_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19752_theme_=d;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19752_deferredLaunchDeadlineTimer_=NaN;this.JSC$19752_boundSessionUpdate_=(0,_.LX)(this.JSC$19754_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19752_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19752_isInitLoungeToken_=!1;this.JSC$19752_lastLoungeTokenRefreshError_="unknown"};
_.V(qb,IN);qb.prototype.setCastSession=function(v){this.JSC$19752_session_=v;this.JSC$19752_session_.addUpdateListener(this.JSC$19752_boundSessionUpdate_)};
qb.prototype.launchWithParams=function(v){this.connectData_=v;this.deferredLaunch_()};
qb.prototype.stop=function(){XkQ(this);if(this.JSC$19752_session_)this.JSC$19752_session_.stop((0,_.LX)(this.onSessionStopped,this,null),(0,_.LX)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
qb.prototype.disposeInternal=function(){XkQ(this);this.JSC$19752_session_&&this.JSC$19752_session_.removeUpdateListener(this.JSC$19752_boundSessionUpdate_);this.JSC$19752_session_=null;IN.prototype.disposeInternal.call(this)};
var zB9=function(v){var e;return!!(v.config_.enableDialLoungeToken&&((e=v.JSC$19752_session_)==null?0:e.getDialAppInfo))},lK9=function(v){v.cancelPolling_=v.JSC$19743_screenService_.JSC$19741_getScreenByPollingPairingCode(v.reversePairingCode_,v.receiver_.label,v.receiver_.friendlyName,zB9(v),function(e,d){v.cancelPolling_=function(){};
v.JSC$19752_isInitLoungeToken_=!0;Y6(v,e);e.idType=="shortLived"&&d>0&&rM(v,d)},function(e){v.cancelPolling_=function(){};
v.onSessionStopped(e)})};
qb.prototype.JSC$19754_onSessionUpdate_=function(v){this.isDisposed()||v||(m6(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var HgO=function(v){var e={};e.pairingCode=v.reversePairingCode_;e.theme=v.JSC$19752_theme_;WI_()&&(e.env_useStageMdx=1);return _.q_(e)},Auf=function(v){return new Promise(function(e){v.reversePairingCode_=wvt();
if(v.connectData_){var d=new chrome.cast.DialLaunchResponse(!0,HgO(v));e(d);lK9(v)}else v.deferredLaunch_=function(){_.YL(v.JSC$19752_deferredLaunchDeadlineTimer_);v.deferredLaunch_=function(){};
v.JSC$19752_deferredLaunchDeadlineTimer_=NaN;var E=new chrome.cast.DialLaunchResponse(!0,HgO(v));e(E);lK9(v)},v.JSC$19752_deferredLaunchDeadlineTimer_=_.IH(function(){v.deferredLaunch_()},100)})},cuS=function(v,e,d){v.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(e));
var E=new nx(e);return(new Promise(function(T){Zg_(v,E,function(S){S?(v.JSC$19752_isInitLoungeToken_=!0,bu(v.JSC$19743_screenService_,E),Y6(v,E),rM(v,d)):_.lg(Error("el`"+JSON.stringify(e)));T(S)},5)})).then(function(T){return T?new chrome.cast.DialLaunchResponse(!1):Auf(v)})},wk9=function(v,e){var d=v.launchData_.receiver.label,E=v.receiver_.friendlyName;
return(new Promise(function(T){sPs(v.JSC$19743_screenService_,d,e,E,function(S){S&&S.token&&Y6(v,S);T(S)},function(S){m6(v,"Failed to get DIAL screen: "+S);
T(null)})})).then(function(T){return T&&T.token?new chrome.cast.DialLaunchResponse(!1):Auf(v)})},Zg_=function(v,e,d,E){_.YL(v.JSC$19752_checkScreenAvailabilityTimeoutKey_);
v.JSC$19752_checkScreenAvailabilityTimeoutKey_=0;kuS(v.JSC$19743_screenService_,e,function(T){T||E<0?d(T):v.JSC$19752_checkScreenAvailabilityTimeoutKey_=_.IH(function(){Zg_(v,e,d,E-1)},300)})},rM=function(v,e){v.info("getDialAppInfoWithTimeout_ "+e);
zB9(v)&&(_.YL(v.getDialAppInfoTimeoutKey_),v.getDialAppInfoTimeoutKey_=0,e==0?FMi(v):v.getDialAppInfoTimeoutKey_=_.IH(function(){FMi(v)},e))},FMi=function(v){zB9(v)&&v.JSC$19752_session_.getDialAppInfo(function(e){v.info("getDialAppInfo dialLaunchData: "+JSON.stringify(e));
e=e.extraData||{};var d=null;if(e.loungeToken){var E;((E=v.screen_)==null?void 0:E.token)==e.loungeToken&&(d="staleLoungeToken")}else d="missingLoungeToken";d?(v.JSC$19752_lastLoungeTokenRefreshError_=d,rM(v,3E4)):(v.JSC$19752_isInitLoungeToken_=!1,v.JSC$19752_lastLoungeTokenRefreshError_="unknown",JuS(v,e.loungeToken),rM(v,e.loungeTokenRefreshIntervalMs))},function(e){v.info("getDialAppInfo error: "+e);
v.JSC$19752_lastLoungeTokenRefreshError_="noLoungeTokenResponse";rM(v,3E4)})},XkQ=function(v){_.YL(v.JSC$19752_checkScreenAvailabilityTimeoutKey_);
v.JSC$19752_checkScreenAvailabilityTimeoutKey_=0;_.YL(v.getDialAppInfoTimeoutKey_);v.getDialAppInfoTimeoutKey_=0;v.cancelPolling_();v.cancelPolling_=function(){};
_.YL(v.JSC$19752_deferredLaunchDeadlineTimer_)};var hD=function(v,e){IN.call(this,v,e,"ManualSession");this.JSC$19756_deferredLaunchDeadlineTimer_=_.IH((0,_.LX)(this.launchWithParams,this,null),150)};
_.V(hD,IN);hD.prototype.stop=function(){this.onSessionStopped()};
hD.prototype.setCastSession=function(){};
hD.prototype.launchWithParams=function(){_.YL(this.JSC$19756_deferredLaunchDeadlineTimer_);this.JSC$19756_deferredLaunchDeadlineTimer_=NaN;var v=UH(this.JSC$19743_screenService_.getScreens(),this.receiver_.label);if(v)Y6(this,v);else this.onSessionStopped(Error("fl"))};
hD.prototype.disposeInternal=function(){_.YL(this.JSC$19756_deferredLaunchDeadlineTimer_);this.JSC$19756_deferredLaunchDeadlineTimer_=NaN;IN.prototype.disposeInternal.call(this)};var yq=function(v,e){_.bC.call(this);this.config_=e;this.JSC$19759_screenService_=v;this.JSC$19759_appId_=e.appId||"233637DE";this.JSC$19759_theme_=e.theme||"cl";this.disableDial_=e.disableCastApi||!1;this.forceMirroring_=e.forceMirroring||!1;this.JSC$19759_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.LX)(this.onReceiverAction_,this)};
_.V(yq,_.bC);
yq.prototype.init=function(v,e){chrome.cast.timeout.requestSession=3E4;var d=new chrome.cast.SessionRequest(this.JSC$19759_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.N("desktop_enable_cast_connect")&&(d.androidReceiverCompatible=!0);this.disableDial_||(d.dialRequest=new chrome.cast.DialRequest("YouTube"));var E=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;v=v||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var T=(0,_.LX)(this.onReceiverUpdated_,
this);d=new chrome.cast.ApiConfig(d,(0,_.LX)(this.onSessionEstablished_,this),T,E,v);d.customDialLaunchCallback=(0,_.LX)(this.onDialLaunchRequested_,this);chrome.cast.initialize(d,(0,_.LX)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),yGC(),this.JSC$19759_screenService_.subscribe("onlineScreenChange",(0,_.LX)(this.JSC$19761_onScreenChange_,this)),this.customReceivers_=QPf(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.LX)(function(S){this.warn_("Failed to set initial custom receivers: "+(0,_.kN)(S))},this)),this.publish("yt-remote-cast2-availability-change",Km(this)),e(!0))},this),(0,_.LX)(function(S){this.warn_("Failed to initialize API: "+(0,_.kN)(S));
e(!1)},this))};
yq.prototype.setConnectedScreenStatus=function(v,e){$6("Setting connected screen ID: "+v+" -> "+e);if(this.JSC$19759_session_){var d=this.JSC$19759_session_.screen_;if(!v||d&&d.id!=v)$6("Unsetting old screen status: "+this.JSC$19759_session_.receiver_.friendlyName),jf(this,null)}if(v&&e){if(!this.JSC$19759_session_){v=UH(this.JSC$19759_screenService_.getScreens(),v);if(!v){$6("setConnectedScreenStatus: Unknown screen.");return}if(v.idType=="shortLived"){$6("setConnectedScreenStatus: Screen with id type to be short lived.");
return}d=gXs(this,v);d||($6("setConnectedScreenStatus: Connected receiver not custom..."),d=new chrome.cast.Receiver(v.uuid?v.uuid:v.id,v.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(d),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.LX)(function(E){this.warn_("Failed to set initial custom receivers: "+(0,_.kN)(E))},this)));
$6("setConnectedScreenStatus: new active receiver: "+d.friendlyName);jf(this,new hD(this.JSC$19759_screenService_,d),!0)}this.JSC$19759_session_.setDisplayStatus(e)}else $6("setConnectedScreenStatus: no screen.")};
var gXs=function(v,e){return e?_.xS(v.customReceivers_,function(d){return D5(e,d.label)},v):null};
yq.prototype.setLaunchParams=function(v){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19759_session_?this.JSC$19759_session_.launchWithParams(v):this.warn_("Setting connection data without a session")};
yq.prototype.JSC$19761_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19759_session_?(this.JSC$19759_session_.stop(),jf(this,null)):$6("Stopping non-existing session")};
yq.prototype.requestSession=function(){chrome.cast.requestSession((0,_.LX)(this.onSessionEstablished_,this),(0,_.LX)(this.onSessionRequestFailed_,this))};
yq.prototype.disposeInternal=function(){this.JSC$19759_screenService_.unsubscribe("onlineScreenChange",(0,_.LX)(this.JSC$19761_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.H3(_.AE("yt.mdx.remote.debug.handlers_")||[],bqs);_.p0(this.JSC$19759_session_);_.bC.prototype.disposeInternal.call(this)};
var $6=function(v){E7("Controller",v)};
yq.prototype.warn_=function(v){E7("Controller",v)};
var bqs=function(v){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(v)},Km=function(v){return v.hasCastReceiver_||!!v.customReceivers_.length||!!v.JSC$19759_session_},jf=function(v,e,d){e!=v.JSC$19759_session_&&(_.p0(v.JSC$19759_session_),(v.JSC$19759_session_=e)?(d?v.publish("yt-remote-cast2-receiver-resumed",e.receiver_):v.publish("yt-remote-cast2-receiver-selected",e.receiver_),e.subscribe("sessionScreen",(0,_.LX)(v.onSessionScreen_,v,e)),e.subscribe("sessionFailed",
function(){return uFs(v,e)}),e.screen_?v.publish("yt-remote-cast2-session-change",e.screen_):d&&v.JSC$19759_session_.launchWithParams(null)):v.publish("yt-remote-cast2-session-change",null))},uFs=function(v,e){v.JSC$19759_session_==e&&v.publish("yt-remote-cast2-session-failed")};
_.W=yq.prototype;_.W.onSessionScreen_=function(v,e){this.JSC$19759_session_==v&&(e||jf(this,null),this.publish("yt-remote-cast2-session-change",e))};
_.W.onReceiverAction_=function(v,e){if(!this.isDisposed())if(v)switch(v.friendlyName=chrome.cast.unescape(v.friendlyName),$6("onReceiverAction_ "+v.label+" / "+v.friendlyName+"-- "+e),e){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19759_session_)if(this.JSC$19759_session_.receiver_.label!=v.label)$6("onReceiverAction_: Stopping active receiver: "+this.JSC$19759_session_.receiver_.friendlyName),this.JSC$19759_session_.stop();else{$6("onReceiverAction_: Casting to active receiver.");this.JSC$19759_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19759_session_.screen_);break}switch(v.receiverType){case chrome.cast.ReceiverType.CUSTOM:jf(this,new hD(this.JSC$19759_screenService_,v));break;case chrome.cast.ReceiverType.DIAL:jf(this,new qb(this.JSC$19759_screenService_,v,this.JSC$19759_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:jf(this,new yx(this.JSC$19759_screenService_,v,this.config_));break;default:this.warn_("Unknown receiver type: "+v.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19759_session_&&
this.JSC$19759_session_.receiver_.label==v.label?this.JSC$19759_session_.stop():this.warn_("Stopping receiver w/o session: "+v.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.W.onDialLaunchRequested_=function(v){if(this.isDisposed())return Promise.reject(Error("gl"));var e=v.receiver;e.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+e.friendlyName),e.receiverType=chrome.cast.ReceiverType.DIAL);var d=this.JSC$19759_session_?this.JSC$19759_session_.receiver_:null;if(!d||d.label!=e.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+e.friendlyName),Promise.reject(Error("hl"));if(d&&d.label==e.label&&d.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19759_session_.screen_)return $6("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19759_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+d.receiverType+'" to "dial" for '+e.friendlyName);jf(this,new qb(this.JSC$19759_screenService_,e,this.JSC$19759_theme_,this.config_))}e=this.JSC$19759_session_;e.launchData_=v;e.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(v=e.launchData_.extraData||{},d=v.screenId||null,zB9(e)&&v.loungeToken?v.loungeTokenRefreshIntervalMs?v=cuS(e,{name:e.receiver_.friendlyName,screenId:v.screenId,loungeToken:v.loungeToken,dialId:e.launchData_.receiver.label,screenIdType:"shortLived"},v.loungeTokenRefreshIntervalMs):(_.lg(Error("dl`"+JSON.stringify(v))),v=wk9(e,d)):v=wk9(e,d)):v=Auf(e);return v};
_.W.onSessionEstablished_=function(v){var e=this;if(!this.isDisposed()&&!this.forceMirroring_){$6("New cast session ID: "+v.sessionId);var d=v.receiver;if(d.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19759_session_)if(d.receiverType==chrome.cast.ReceiverType.CAST)$6("Got resumed cast session before resumed mdx connection."),d.friendlyName=chrome.cast.unescape(d.friendlyName),jf(this,new yx(this.JSC$19759_screenService_,d,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var E=this.JSC$19759_session_.receiver_,T=UH(this.JSC$19759_screenService_.getScreens(),E.label);T&&D5(T,d.label)&&E.receiverType!=chrome.cast.ReceiverType.CAST&&d.receiverType==chrome.cast.ReceiverType.CAST&&($6("onSessionEstablished_: manual to cast session change "+d.friendlyName),_.p0(this.JSC$19759_session_),this.JSC$19759_session_=new yx(this.JSC$19759_screenService_,d,this.config_),this.JSC$19759_session_.subscribe("sessionScreen",(0,_.LX)(this.onSessionScreen_,this,this.JSC$19759_session_)),
this.JSC$19759_session_.subscribe("sessionFailed",function(){return uFs(e,e.JSC$19759_session_)}),this.JSC$19759_session_.launchWithParams(null));
this.JSC$19759_session_.setCastSession(v)}}};
_.W.JSC$19761_getCastSession=function(){return this.JSC$19759_session_?this.JSC$19759_session_.JSC$19745_getCastSession():null};
_.W.onSessionRequestFailed_=function(v){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.kN)(v)),v.code!=chrome.cast.ErrorCode.CANCEL&&jf(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.W.onReceiverUpdated_=function(v){$6("Receiver availability updated: "+v);if(!this.isDisposed()){var e=Km(this);this.hasCastReceiver_=v==chrome.cast.ReceiverAvailability.AVAILABLE;Km(this)!=e&&this.publish("yt-remote-cast2-availability-change",Km(this))}};
var QPf=function(v){var e=v.JSC$19759_screenService_.JSC$19741_getOnlineScreens(),d=v.JSC$19759_session_&&v.JSC$19759_session_.receiver_;v=_.R2(e,function(E){d&&D5(E,d.label)&&(d=null);var T=E.uuid?E.uuid:E.id,S=gXs(this,E);S?(S.label=T,S.friendlyName=E.name):(S=new chrome.cast.Receiver(T,E.name),S.receiverType=chrome.cast.ReceiverType.CUSTOM);return S},v);
d&&(d.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(d=new chrome.cast.Receiver(d.label,d.friendlyName),d.receiverType=chrome.cast.ReceiverType.CUSTOM),v.push(d));return v};
yq.prototype.JSC$19761_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=QPf(this),$6("Updating custom receivers: "+(0,_.kN)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.LX)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Km(this)))};
yq.prototype.setLaunchParams=yq.prototype.setLaunchParams;yq.prototype.setConnectedScreenStatus=yq.prototype.setConnectedScreenStatus;yq.prototype.stopSession=yq.prototype.JSC$19761_stopSession;yq.prototype.getCastSession=yq.prototype.JSC$19761_getCastSession;yq.prototype.requestSession=yq.prototype.requestSession;yq.prototype.init=yq.prototype.init;yq.prototype.dispose=yq.prototype.dispose;var nXC=_.Z9(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),lov=[],GV1=_.ie(nXC);var DJi=function(v){v.audioTrackId=null;v.trackData=null;v.playerState=-1;v.hasPrevious=!1;v.hasNext=!1;v.playerTime_=0;v.playerTimeAt_=_.pO();v.seekableStart_=0;v.seekableEnd_=0;v.duration_=0;v.loadedTime=0;v.liveIngestionTime_=NaN;v.isLive_=!1};
_.W=qX.prototype;
_.W.reset=function(v){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;v&&(this.index=v.index,this.listId=v.listId,this.videoId=v.videoId,this.playerState=v.playerState,this.volume=v.volume,this.muted=v.muted,this.audioTrackId=v.audioTrackId,this.trackData=v.trackData,this.hasPrevious=v.hasPrevious,this.hasNext=v.hasNext,this.playerTime_=v.playerTime,this.playerTimeAt_=v.playerTimeAt,this.seekableStart_=v.seekableStart,this.seekableEnd_=v.seekableEnd,this.duration_=v.duration,this.loadedTime=
v.loadedTime,this.liveIngestionTime_=v.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.W.stopPlayer=function(){this.index=-1;this.videoId="";DJi(this)};
_.W.isPlaying=function(){return this.playerState==1};
_.W.isBuffering=function(){return this.playerState==3};
_.W.isAdPlaying=function(){return this.playerState==1081};
var s8=function(v,e){v.playerTime_=e;v.playerTimeAt_=_.pO()},UJ1=function(v){switch(v.playerState){case 1:case 1081:return(_.pO()-v.playerTimeAt_)/1E3+v.playerTime_;
case -1E3:return 0}return v.playerTime_};
qX.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.pO()-this.playerTimeAt_)/1E3:0):this.duration_};
var pkt=function(v,e,d){var E=v.videoId;v.videoId=e;v.index=d;e!=E&&DJi(v)},v1f=function(v){var e={};
e.index=v.index;e.listId=v.listId;e.videoId=v.videoId;e.playerState=v.playerState;e.volume=v.volume;e.muted=v.muted;e.audioTrackId=v.audioTrackId;e.trackData=_.f0.unsafeClone(v.trackData);e.hasPrevious=v.hasPrevious;e.hasNext=v.hasNext;e.playerTime=v.playerTime_;e.playerTimeAt=v.playerTimeAt_;e.seekableStart=v.seekableStart_;e.seekableEnd=v.seekableEnd_;e.duration=v.duration_;e.loadedTime=v.loadedTime;e.liveIngestionTime=v.liveIngestionTime_;return e};
qX.prototype.clone=function(){return new qX(v1f(this))};var Nb=function(v,e){_.bC.call(this);var d=this;this.state_=0;this.connection_=v;this.contextSubscriptions_=[];this.actionQueue_=new B1s;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.LX)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.LX)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.LX)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.LX)(this.onCloudviewAvailabilityChange_,this);var E=0;v?(E=v.getProxyState(),
E!=3&&(v.subscribe("proxyStateChange",this.setState_,this),eni(this))):E=3;E!=0&&(e?this.setState_(E):_.IH(function(){d.setState_(E)},0));
(v=cG_())&&dpv(this,v);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.V(Nb,_.bC);Nb.prototype.getState=function(){return this.state_};
Nb.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Nb.prototype.reconnect=function(){this.connection_.reconnect()};
var k6=function(v){return new qX(v.connection_.getPlayerContextData())};
_.W=Nb.prototype;_.W.play=function(){Lm(this)?(this.castMedia_?this.castMedia_.play(null,_.mv,E1v(this,"play")):Vx(this,"play"),TYi(this,1,UJ1(k6(this))),this.publish("remotePlayerChange")):oT(this,this.play)};
_.W.pause=function(){Lm(this)?(this.castMedia_?this.castMedia_.pause(null,_.mv,E1v(this,"pause")):Vx(this,"pause"),TYi(this,2,UJ1(k6(this))),this.publish("remotePlayerChange")):oT(this,this.pause)};
_.W.seekTo=function(v){if(Lm(this)){if(this.castMedia_){var e=k6(this),d=new chrome.cast.media.SeekRequest;d.currentTime=v;e.isPlaying()||e.isBuffering()?d.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:d.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(d,_.mv,E1v(this,"seekTo",{newTime:v}))}else Vx(this,"seekTo",{newTime:v});TYi(this,3,v);this.publish("remotePlayerChange")}else oT(this,_.kB(this.seekTo,v))};
_.W.stop=function(){if(Lm(this)){this.castMedia_?this.castMedia_.stop(null,_.mv,E1v(this,"stopVideo")):Vx(this,"stopVideo");var v=k6(this);v.stopPlayer();JD(this,v);this.publish("remotePlayerChange")}else oT(this,this.stop)};
_.W.setVolume=function(v,e){if(Lm(this)){var d=k6(this);if(this.castSession_){if(d.volume!=v){var E=Math.round(v)/100;this.castSession_.setReceiverVolumeLevel(E,(0,_.LX)(function(){TF("set receiver volume: "+E)},this),(0,_.LX)(function(){this.warn_("failed to set receiver volume.")},this))}d.muted!=e&&this.castSession_.setReceiverMuted(e,(0,_.LX)(function(){TF("set receiver muted: "+e)},this),(0,_.LX)(function(){this.warn_("failed to set receiver muted.")},this))}else{var T={volume:v,
muted:e};d.volume!=-1&&(T.delta=v-d.volume);Vx(this,"setVolume",T)}d.muted=e;d.volume=v;JD(this,d)}else oT(this,_.kB(this.setVolume,v,e))};
_.W.setAudioTrack=function(v,e){Lm(this)?(e=e.getLanguageInfo().getId(),Vx(this,"setAudioTrack",{videoId:v,audioTrackId:e}),v=k6(this),v.audioTrackId=e,JD(this,v)):oT(this,_.kB(this.setAudioTrack,v,e))};
_.W.addVideo=function(v){Lm(this)?Vx(this,"addVideo",{videoId:v}):oT(this,_.kB(this.addVideo,v))};
_.W.addPlaylist=function(v){Lm(this)?Vx(this,"addVideos",{listId:v}):oT(this,_.kB(this.addPlaylist,v))};
_.W.addVideos=function(v){v.length==0?this.warn_("Ignore add videos request due to empty list"):Lm(this)?Vx(this,"addVideos",{videoIds:v.join(",")}):oT(this,_.kB(this.addVideos,v))};
_.W.JSC$19771_removeVideo=function(v){Lm(this)?Vx(this,"removeVideo",{videoId:v}):oT(this,_.kB(this.JSC$19771_removeVideo,v))};
_.W.JSC$19771_insertVideo=function(v){Lm(this)?Vx(this,"insertVideo",{videoId:v}):oT(this,_.kB(this.JSC$19771_insertVideo,v))};
_.W.playVideo=function(v,e,d,E,T,S,O){E=E===void 0?null:E;T=T===void 0?null:T;S=S===void 0?null:S;O=O===void 0?null:O;var b=k6(this),Y={videoId:v};d!==void 0&&(Y.currentIndex=d);pkt(b,v,d||0);e!==void 0&&(s8(b,e),Y.currentTime=e);E&&(Y.listId=E);T&&(Y.playerParams=T);S&&(Y.clickTrackingParams=S);O&&(Y.locationInfo=(0,_.kN)(O));Vx(this,"setPlaylist",Y);E||JD(this,b)};
_.W.nextVideo=function(v,e){if(Lm(this)){if(v&&e){var d=k6(this);pkt(d,v,e);JD(this,d)}Vx(this,"next")}else oT(this,_.kB(this.nextVideo,v,e))};
_.W.clearPlaylist=function(){if(Lm(this)){Vx(this,"clearPlaylist");var v=k6(this);v.reset();JD(this,v);this.publish("remotePlayerChange")}else oT(this,this.clearPlaylist)};
_.W.dispose=function(){if(this.state_!=3){var v=this.state_;this.state_=3;this.publish("proxyStateChange",v,this.state_)}_.bC.prototype.dispose.call(this)};
_.W.disposeInternal=function(){SCs(this);this.connection_=null;this.actionQueue_.clear();dpv(this,null);_.bC.prototype.disposeInternal.call(this)};
var eni=function(v){_.wZ("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(e){this.contextSubscriptions_.push(this.connection_.subscribe(e,_.kB(this.onProxyEvent_,e),this))},v)},SCs=function(v){_.wZ(v.contextSubscriptions_,function(e){this.connection_.unsubscribeByKey(e)},v);
v.contextSubscriptions_.length=0},Lm=function(v){return v.getState()==1},oT=function(v,e){v.actionQueue_.getCount()<50&&v.actionQueue_.enqueue(e)},TYi=function(v,e,d){var E=k6(v);
s8(E,d);E.playerState!=-1E3&&(E.playerState=e);JD(v,E)},Vx=function(v,e,d){v.connection_.sendMessage(e,d)},JD=function(v,e){SCs(v);
v.connection_.setPlayerContextData(v1f(e));eni(v)};
Nb.prototype.setState_=function(v){if((v!=this.state_||v==2)&&this.state_!=3&&v!=0){var e=this.state_;this.state_=v;this.publish("proxyStateChange",e,v);if(v==1)for(;!this.actionQueue_.isEmpty();)v=this.actionQueue_,$$s(v),v.front_.pop().apply(this);else v==3&&this.dispose()}};
Nb.prototype.onProxyEvent_=function(v,e){this.publish(v,e)};
var dpv=function(v,e){v.castSession_&&(v.castSession_.removeUpdateListener(v.boundCastStatusListener_),v.castSession_.removeMediaListener(v.boundCastMediaListener_),v.onCastMediaChange_(null));v.castSession_=e;if(v.castSession_&&(TF("Setting cast session: "+v.castSession_.sessionId),v.castSession_.addUpdateListener(v.boundCastStatusListener_),v.castSession_.addMediaListener(v.boundCastMediaListener_),v.castSession_.media.length))v.onCastMediaChange_(v.castSession_.media[0])};
Nb.prototype.onCastStatusUpdate_=function(v){if(!v)this.onCastMediaChange_(null),dpv(this,null);else if(this.castSession_.receiver.volume){v=this.castSession_.receiver.volume;var e=k6(this),d=Math.round(100*v.level||0);if(e.volume!=d||e.muted!=v.muted)TF("Cast volume update: "+v.level+(v.muted?" muted":"")),e.volume=d,e.muted=!!v.muted,JD(this,e)}};
Nb.prototype.onCastMediaChange_=function(v){TF("Cast media: "+!!v);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=v)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Www(this),this.publish("remotePlayerChange")};
var Www=function(v){var e=v.castMedia_.media,d=v.castMedia_.customData;if(e&&d){var E=k6(v);e.contentId!=E.videoId&&TF("Cast changing video to: "+e.contentId);E.videoId=e.contentId;E.playerState=d.playerState;s8(E,v.castMedia_.getEstimatedTime());JD(v,E)}else TF("No cast media video. Ignoring state update.")};
Nb.prototype.onCastMediaUpdate_=function(v){if(v)Www(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Nb.prototype.onCloudviewAvailabilityChange_=function(){var v=cG_();v&&dpv(this,v)};
Nb.prototype.warn_=function(v){E7("CP",v)};
var E1v=function(v,e,d){return(0,_.LX)(function(E){this.warn_("Failed to "+e+" with cast v2 channel. Error code: "+E.code);E.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+e+" using MDx browser channel."),Vx(this,e,d))},v)};var Mb=function(v,e,d,E){E=E===void 0?!1:E;_.bC.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$19776_http_=v;this.enableConnectWithInitialState_=E;this.listeners_.push(_.eh(window,"beforeunload",function(){T.JSC$19779_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new qX;this.currentScreenId_=e.id;this.currentScreenIdType_=e.idType;this.channelService=IoQ(this.JSC$19776_http_,d,this.JSC$19779_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){adw(T)});
this.channelService.listen("channelClosed",function(){Gi("Channel closed");isNaN(T.connectTimerId_)?px(!0):px();T.dispose()});
this.channelService.listen("channelError",function(S){px();isNaN(T.getReconnectTimeout_())?(S==1&&T.currentScreenIdType_=="shortLived"&&T.publish("browserChannelAuthError",S),Gi("Channel error: "+S+" without reconnection"),T.dispose()):(T.reconnecting_=!0,Gi("Channel error: "+S+" with reconnection in "+T.getReconnectTimeout_()+" ms"),iEC(T,2))});
this.channelService.listen("channelMessage",function(S){OE9(T,S)});
this.channelService.setLoungeToken(e.token);this.subscribe("remoteQueueChange",function(){var S=T.playerContext_.videoId;nEi()&&_.mZ("yt-remote-session-video-id",S)})};
_.V(Mb,_.bC);
Mb.prototype.connect=function(v,e){if(e){var d=e.listId,E=e.videoId,T=e.videoIds,S=e.playerParams,O=e.clickTrackingParams,b=e.index,Y={videoId:E},q=e.currentTime,r=e.locationInfo;e=e.loopMode;q!==void 0&&(Y.currentTime=q<=5?0:q);S&&(Y.playerParams=S);r&&(Y.locationInfo=r);O&&(Y.clickTrackingParams=O);d&&(Y.listId=d);T&&T.length>0&&(Y.videoIds=T.join(","));b!==void 0&&(Y.currentIndex=b);this.enableConnectWithInitialState_&&(Y.loopMode=e||"LOOP_MODE_OFF");d&&(this.playerContext_.listId=d);this.playerContext_.videoId=
E;this.playerContext_.index=b||0;this.playerContext_.state=3;s8(this.playerContext_,q);this.autoplayMode_="UNSUPPORTED";d=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Gi("Connecting with "+d+" and params: "+(0,_.kN)(Y));this.channelService.connect({method:d,params:(0,_.kN)(Y)},v,ei9())}else Gi("Connecting without params"),this.channelService.connect({},v,ei9());Ids(this)};
Mb.prototype.setLoungeToken=function(v){this.channelService.setLoungeToken(v)};
Mb.prototype.dispose=function(){this.isDisposed()||(_.pw("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),iEC(this,3));_.bC.prototype.dispose.call(this)};
Mb.prototype.disposeInternal=function(){bEw(this);YCi(this);mpv(this);_.YL(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.YL(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.wzH(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.bC.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var yxt=function(v){return _.xS(v.connectedDevices_,function(e){return e.type=="LOUNGE_SCREEN"})},Gi=function(v){E7("conn",v)},iEC=function(v,e){v.publish("proxyStateChange",e)},Ids=function(v){v.connectTimerId_=_.IH(function(){Gi("Connecting timeout");
v.JSC$19779_disconnect_(1)},2E4)},bEw=function(v){_.YL(v.connectTimerId_);
v.connectTimerId_=NaN},mpv=function(v){_.YL(v.reconnectedCheckScreenTimeout_);
v.reconnectedCheckScreenTimeout_=NaN},qC9=function(v){YCi(v);
v.playingSyncTimerId_=_.IH(function(){tD(v,"getNowPlaying")},2E4)},YCi=function(v){_.YL(v.playingSyncTimerId_);
v.playingSyncTimerId_=NaN},adw=function(v){Gi("Channel opened");
v.reconnecting_&&(v.reconnecting_=!1,mpv(v),v.reconnectedCheckScreenTimeout_=_.IH(function(){Gi("Timing out waiting for a screen.");v.JSC$19779_disconnect_(1)},15E3))},hns=function(v,e){var d=null;
if(e){var E=yxt(v);E&&(d={clientName:E.clientName,deviceMake:E.brand,deviceModel:E.model,osVersion:E.osVersion})}_.pw("yt.mdx.remote.remoteClient_",d);e&&(bEw(v),mpv(v));d=v.channelService.isChannelOpened()&&isNaN(v.connectTimerId_);e==d?e&&(iEC(v,1),tD(v,"getSubtitlesTrack")):e?(v.getOtherConnectedRemoteId_()&&v.playerContext_.reset(),iEC(v,1),tD(v,"getNowPlaying"),rxs(v)):v.JSC$19779_disconnect_(1)},Kwi=function(v,e){var d=e.params.videoId;
delete e.params.videoId;d==v.playerContext_.videoId&&(_.f0.isEmpty(e.params)?v.playerContext_.trackData=null:v.playerContext_.trackData=e.params,v.publish("remotePlayerChange"))},$pS=function(v,e,d){var E=e.params.videoId||e.params.video_id,T=parseInt(e.params.currentIndex,10);
v.playerContext_.listId=e.params.listId||v.playerContext_.listId;pkt(v.playerContext_,E,T);v.publish("remoteQueueChange",d)},jjS=function(v,e){e.params=e.params||{};
$pS(v,e,"NOW_PLAYING_MAY_CHANGE");v.onStateChange_(e);v.publish("autoplayDismissed")};
Mb.prototype.onStateChange_=function(v){var e=parseInt(v.params.currentTime||v.params.current_time,10);s8(this.playerContext_,isNaN(e)?0:e);e=parseInt(v.params.state,10);e=isNaN(e)?-1:e;e==-1&&this.playerContext_.playerState==-1E3&&(e=-1E3);this.playerContext_.playerState=e;e=Number(v.params.loadedTime);this.playerContext_.loadedTime=isNaN(e)?0:e;e=Number(v.params.duration);this.playerContext_.duration_=isNaN(e)?0:e;e=this.playerContext_;var d=Number(v.params.liveIngestionTime);e.liveIngestionTime_=
d;e.isLive_=isNaN(d)?!1:!0;e=this.playerContext_;d=Number(v.params.seekableStartTime);v=Number(v.params.seekableEndTime);e.seekableStart_=isNaN(d)?0:d;e.seekableEnd_=isNaN(v)?0:v;this.playerContext_.playerState==1?qC9(this):YCi(this);this.publish("remotePlayerChange")};
Mb.prototype.onAdStateChange_=function(v){if(this.playerContext_.playerState!=-1E3){var e=1085;switch(parseInt(v.params.adState,10)){case 1:e=1081;break;case 2:e=1084;break;case 0:e=1083}this.playerContext_.playerState=e;v=parseInt(v.params.currentTime,10);s8(this.playerContext_,isNaN(v)?0:v);this.publish("remotePlayerChange")}};
var sjf=function(v,e){var d=e.params.muted=="true";v.playerContext_.volume=parseInt(e.params.volume,10);v.playerContext_.muted=d;v.publish("remotePlayerChange")},NYs=function(v,e){v.autoplayVideoId_=e.params.videoId;
v.publish("nowAutoplaying",parseInt(e.params.timeout,10))},kTQ=function(v,e){v.autoplayVideoId_=e.params.videoId||null;
v.publish("autoplayUpNext",v.autoplayVideoId_)},LwO=function(v,e){v.autoplayMode_=e.params.autoplayMode;
v.publish("autoplayModeChange",v.autoplayMode_);v.autoplayMode_=="DISABLED"&&v.publish("autoplayDismissed")},Vq_=function(v,e){var d=e.params.hasNext=="true";
v.playerContext_.hasPrevious=e.params.hasPrevious=="true";v.playerContext_.hasNext=d;v.publish("previousNextChange")};
Mb.prototype.isCapabilitySupportedOnConnectedDevices_=function(v){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var e=_.a(this.connectedDevices_),d=e.next();!d.done;d=e.next())if(!d.value.capabilities.has(v))return!1;return!0};
var OE9=function(v,e){e=e.message;e.params?Gi("Received: action="+e.action+", params="+(0,_.kN)(e.params)):Gi("Received: action="+e.action+" {}");switch(e.action){case "loungeStatus":e=(0,_.PP)(e.params.devices);v.connectedDevices_=_.R2(e,function(E){return new O8(E)});
e=!!_.xS(v.connectedDevices_,function(E){return E.type=="LOUNGE_SCREEN"});
hns(v,e);e=v.isCapabilitySupportedOnConnectedDevices_("mlm");v.publish("multiStateLoopEnabled",e);break;case "loungeScreenDisconnected":yW_(v.connectedDevices_,function(E){return E.type=="LOUNGE_SCREEN"});
hns(v,!1);break;case "remoteConnected":var d=new O8((0,_.PP)(e.params.device));_.xS(v.connectedDevices_,function(E){return E.equals(d)})||_.NHU(v.connectedDevices_,d);
break;case "remoteDisconnected":d=new O8((0,_.PP)(e.params.device));yW_(v.connectedDevices_,function(E){return E.equals(d)});
break;case "gracefulDisconnect":break;case "playlistModified":$pS(v,e,"QUEUE_MODIFIED");break;case "nowPlaying":jjS(v,e);break;case "onStateChange":v.onStateChange_(e);break;case "onAdStateChange":v.onAdStateChange_(e);break;case "onVolumeChanged":sjf(v,e);break;case "onSubtitlesTrackChanged":Kwi(v,e);break;case "nowAutoplaying":NYs(v,e);break;case "autoplayDismissed":v.publish("autoplayDismissed");break;case "autoplayUpNext":kTQ(v,e);break;case "onAutoplayModeChanged":LwO(v,e);break;case "onHasPreviousNextChanged":Vq_(v,
e);break;case "requestAssistedSignIn":v.publish("assistedSignInRequested",e.params.authCode);break;case "onLoopModeChanged":v.publish("loopModeChange",e.params.loopMode);break;default:Gi("Unrecognized action: "+e.action)}};
_.W=Mb.prototype;_.W.getProxyState_=function(){var v=3;this.isDisposed()||(v=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(v=1):v=2);return v};
_.W.JSC$19779_disconnect_=function(v){Gi("Disconnecting with "+v);_.pw("yt.mdx.remote.remoteClient_",null);bEw(this);this.publish("beforeDisconnect",v);v==1&&px();this.channelService.disconnect(v);this.dispose()};
_.W.getPlayerContextData_=function(){var v=this.playerContext_;this.clientVideoId_&&(v=this.playerContext_.clone(),pkt(v,this.clientVideoId_,v.index));return v1f(v)};
_.W.setPlayerContextData_=function(v){var e=this,d=new qX(v);d.videoId&&d.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=d.videoId,_.YL(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.IH(function(){if(e.clientVideoId_){var T=e.clientVideoId_;e.clientVideoId_=null;e.playerContext_.videoId!=T&&tD(e,"getNowPlaying")}},5E3));
var E=[];this.playerContext_.listId==d.listId&&this.playerContext_.videoId==d.videoId&&this.playerContext_.index==d.index||E.push("remoteQueueChange");this.playerContext_.playerState==d.playerState&&this.playerContext_.volume==d.volume&&this.playerContext_.muted==d.muted&&UJ1(this.playerContext_)==UJ1(d)&&(0,_.kN)(this.playerContext_.trackData)==(0,_.kN)(d.trackData)||E.push("remotePlayerChange");this.playerContext_.reset(v);_.wZ(E,function(T){this.publish(T)},this)};
_.W.getOtherConnectedRemoteId_=function(){var v=this.channelService.getDeviceId(),e=_.xS(this.connectedDevices_,function(d){return d.type=="REMOTE_CONTROL"&&d.id!=v});
return e?e.id:""};
_.W.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.W.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.W.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.W.JSC$19779_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var rxs=function(v){_.YL(v.idleDisconnectTimerId_);v.idleDisconnectTimerId_=_.IH(function(){v.JSC$19779_disconnect_(1)},864E5)},tD=function(v,e,d){d?Gi("Sending: action="+e+", params="+(0,_.kN)(d)):Gi("Sending: action="+e);
v.channelService.sendMessage(e,d)};
Mb.prototype.sendMessageWithUserAction_=function(v,e){tD(this,v,e);rxs(this)};
Mb.prototype.JSC$19779_getXsrfToken_=function(){var v=_.Kw.get("SAPISID","")||_.Kw.get("__Secure-1PAPISID",void 0)||"",e=_.Kw.get("__Secure-3PAPISID","")||"";if(!v&&!e)return"";v=_.GQ(_.Nu(v),2);e=_.GQ(_.Nu(e),2);return _.GQ(_.Nu(","+v+","+e),2)};
Mb.prototype.subscribe=Mb.prototype.subscribe;Mb.prototype.unsubscribeByKey=Mb.prototype.unsubscribeByKey;Mb.prototype.getProxyState=Mb.prototype.getProxyState_;Mb.prototype.disconnect=Mb.prototype.JSC$19779_disconnect_;Mb.prototype.getPlayerContextData=Mb.prototype.getPlayerContextData_;Mb.prototype.setPlayerContextData=Mb.prototype.setPlayerContextData_;Mb.prototype.getOtherConnectedRemoteId=Mb.prototype.getOtherConnectedRemoteId_;Mb.prototype.getReconnectTimeout=Mb.prototype.getReconnectTimeout_;
Mb.prototype.getAutoplayMode=Mb.prototype.getAutoplayMode_;Mb.prototype.getAutoplayVideoId=Mb.prototype.getAutoplayVideoId_;Mb.prototype.reconnect=Mb.prototype.JSC$19779_reconnect_;Mb.prototype.sendMessage=Mb.prototype.sendMessageWithUserAction_;Mb.prototype.getXsrfToken=Mb.prototype.JSC$19779_getXsrfToken_;Mb.prototype.isCapabilitySupportedOnConnectedDevices=Mb.prototype.isCapabilitySupportedOnConnectedDevices_;var o1v=function(v){Wp.call(this,"ScreenServiceProxy");this.instance_=v;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.LX)(this.JSC$19782_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.LX)(this.onOnlineScreenChange_,this)))};
_.V(o1v,Wp);_.W=o1v.prototype;_.W.getScreens=function(v){return this.instance_.$_gs(v)};
_.W.contains=function(v){return!!this.instance_.$_c(v)};
_.W.get=function(v){return this.instance_.$_g(v)};
_.W.start=function(){this.instance_.$_st()};
_.W.add=function(v,e,d){this.instance_.$_a(v,e,d)};
_.W.remove=function(v,e,d){this.instance_.$_r(v,e,d)};
_.W.updateName=function(v,e,d,E){this.instance_.$_un(v,e,d,E)};
_.W.disposeInternal=function(){for(var v=this.subscriptionKeys_.length,e=0;e<v;++e)this.instance_.$_ubk(this.subscriptionKeys_[e]);this.subscriptionKeys_.length=0;this.instance_=null;Wp.prototype.disposeInternal.call(this)};
_.W.JSC$19782_onScreenChange_=function(){this.publish("screenChange")};
_.W.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
O7.prototype.$_st=O7.prototype.start;O7.prototype.$_gspc=O7.prototype.JSC$19741_getScreenByPairingCode;O7.prototype.$_gsppc=O7.prototype.JSC$19741_getScreenByPollingPairingCode;O7.prototype.$_c=O7.prototype.contains;O7.prototype.$_g=O7.prototype.get;O7.prototype.$_a=O7.prototype.add;O7.prototype.$_un=O7.prototype.updateName;O7.prototype.$_r=O7.prototype.remove;O7.prototype.$_gs=O7.prototype.getScreens;O7.prototype.$_gos=O7.prototype.JSC$19741_getOnlineScreens;O7.prototype.$_s=O7.prototype.subscribe;
O7.prototype.$_ubk=O7.prototype.unsubscribeByKey;var PO9=function(v){Sgs();if(!vp||!vp.get("yt-remote-disable-remote-module-for-dev")){v=_.Bb("MDX_CONFIG")||v;ak9();UdC();fm||(fm=new uC(v?v.loungeApiHost:void 0),WI_()&&(fm.basePath="/api/loungedev"));RT||(RT=_.AE("yt.mdx.remote.deferredProxies_")||[],_.pw("yt.mdx.remote.deferredProxies_",RT));JxQ();var e=PI();if(!e){var d=new O7(fm,v?v.disableAutomaticScreenCache||!1:!1);_.pw("yt.mdx.remote.screenService_",d);e=PI();var E={};v&&(E={appId:v.appId,disableDial:v.disableDial,theme:v.theme,loadCastApiSetupScript:v.loadCastApiSetupScript,
disableCastApi:v.disableCastApi,enableDialLoungeToken:v.enableDialLoungeToken,enableCastLoungeToken:v.enableCastLoungeToken,forceMirroring:v.forceMirroring});_.pw("yt.mdx.remote.enableConnectWithInitialState_",v?v.enableConnectWithInitialState||!1:!1);Xgt(d,function(S){S?x6()&&FIw(x6(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){NW("yt-remote-receiver-availability-change")})},E)}if(v&&!_.AE("yt.mdx.remote.initialized_")){_.pw("yt.mdx.remote.initialized_",!0);
BI("Initializing: "+(0,_.kN)(v));Cm.push(_.il("yt-remote-cast2-api-ready",function(){NW("yt-remote-api-ready")}));
Cm.push(_.il("yt-remote-cast2-availability-change",function(){NW("yt-remote-receiver-availability-change")}));
Cm.push(_.il("yt-remote-cast2-receiver-selected",function(){GTf();NW("yt-remote-auto-connect","cast-selector-receiver")}));
Cm.push(_.il("yt-remote-cast2-receiver-resumed",function(){NW("yt-remote-receiver-resumed","cast-selector-receiver")}));
Cm.push(_.il("yt-remote-cast2-session-change",Mq_));Cm.push(_.il("yt-remote-connection-change",function(S){S?FIw(x6(),"YouTube TV"):tq9()||(FIw(null,null),Zqf())}));
Cm.push(_.il("yt-remote-cast2-session-failed",function(){NW("yt-remote-connection-failed")}));
E=fdQ();v.isAuto&&(E.id+="#dial");var T=v.capabilities||[];T.length>0&&(E.capabilities=T);E.name=v.device;E.app=v.app;(v=v.theme)&&(E.theme=v);BI(" -- with channel params: "+(0,_.kN)(E));E?(_.mZ("yt-remote-session-app",E.app),_.mZ("yt-remote-session-name",E.name)):(_.q$("yt-remote-session-app"),_.q$("yt-remote-session-name"));_.pw("yt.mdx.remote.channelParams_",E);e.start();x6()||Rni()}}},BY1=function(){var v=PI().instance_.$_gos();
var e=xpi();e&&Xl()&&(Qbi(v,e)||v.push(e));return Fxw(v)},COv=function(){var v=BY1(),e=xpi();
e||(e=tq9());return _.xS(v,function(d){return e&&D5(e,d.key)?!0:!1})},xpi=function(){var v=x6();
if(!v)return null;var e=PI().getScreens();return UH(e,v)},Mq_=function(v){BI("remote.onCastSessionChange_: "+QB9(v));
if(v){var e=xpi();e&&e.id==v.id?(FIw(e.id,"YouTube TV"),v.idType=="shortLived"&&(v=v.token)&&(e=Xl())&&e.setLoungeToken(v)):(e&&X7f(),zn9(v,1))}else Xl()&&X7f()},X7f=function(){wg_()?mc().stopSession():YF("stopSession called before API ready.");
var v=Xl();v&&(v.disconnect(1),ldQ(null))},HEv=function(){var v=Xl();
return v&&v.getProxyState()!=3?new Nb(Xl(),void 0):null},BI=function(v){E7("remote",v)},PI=function(){if(!Axs){var v=_.AE("yt.mdx.remote.screenService_");
Axs=v?new o1v(v):null}return Axs},x6=function(){return _.AE("yt.mdx.remote.currentScreenId_")},ZEw=function(v){_.pw("yt.mdx.remote.currentScreenId_",v)},GTf=function(){_.pw("yt.mdx.remote.connectData_",null)},Xl=function(){return _.AE("yt.mdx.remote.connection_")},ldQ=function(v){var e=Xl();
GTf();v||ZEw("");_.pw("yt.mdx.remote.connection_",v);RT&&(_.wZ(RT,function(d){d(v)}),RT.length=0);
e&&!v?NW("yt-remote-connection-change",!1):!e&&v&&NW("yt-remote-connection-change",!0)},tq9=function(){var v=nEi();
if(!v)return null;var e=PI();if(!e)return null;e=e.getScreens();return UH(e,v)},zn9=function(v,e){ZEw(v.id);
v=new Mb(fm,v,fdQ(),_.AE("yt.mdx.remote.enableConnectWithInitialState_")||!1);v.connect(e,_.AE("yt.mdx.remote.connectData_"));v.subscribe("beforeDisconnect",function(d){NW("yt-remote-before-disconnect",d)});
v.subscribe("beforeDispose",function(){Xl()&&ldQ(null)});
v.subscribe("browserChannelAuthError",function(){var d=xpi();d&&d.idType=="shortLived"&&(wg_()?mc().handleBrowserChannelAuthError():YF("refreshLoungeToken called before API ready."))});
ldQ(v)},Rni=function(){var v=tq9();
v?(BI("Resume connection to: "+QB9(v)),zn9(v,0)):(px(),Zqf(),BI("Skipping connecting because no session screen found."))},fm=null,RT=null,Axs=null,JxQ=function(){var v=fdQ();
if(_.f0.isEmpty(v)){v=uDS();var e=_.yy("yt-remote-session-name")||"",d=_.yy("yt-remote-session-app")||"";v={device:"REMOTE_CONTROL",id:v,name:e,app:d,mdxVersion:3};v.authuser=String(_.Bb("SESSION_INDEX","0"));(e=_.Bb("DELEGATED_SESSION_ID"))&&(v.pageId=String(e));_.pw("yt.mdx.remote.channelParams_",v)}},fdQ=function(){return _.AE("yt.mdx.remote.channelParams_")||{}},Cm=[];var cx_=new _.Xn("yt-menu"),w79=function(){},QjO=function(v,e,d){v=e=="right-click"?d.rightClickMenuPopupHint:d.menuPopupHint;
if(!(Fws(e)>10))return e=e||"default",cx_.set(e+"-impression",Fws(e)+1),v},Fws=function(v){return parseInt(cx_.get((v||"default")+"-impression")||0,10)};
_.Uk(w79);var g1w=function(){this.contexts_=new WeakMap;this.JSC$19788_networkService_=this.activeContext_=null},uU1=function(v,e,d){var E=v.contexts_.get(e);
E||(E=new SUC(v.JSC$19788_networkService_),v.contexts_.set(e,E));v.activeContext_=E;d&&v.activeContext_.reset();v.activeContext_.start();return v.activeContext_};var zi=function(){};
zi.prototype.enqueue=function(){var v=this,e;return _.I(function(d){if(v.isCounterfactual())return(e=v.getCounterfactualData())&&v.shouldLogCounterfactualImpression()&&v.sendImpressionEndpoints(e),d.return();v.doEnqueue();_.s9(d)})};
zi.prototype.sendImpressionEndpoints=function(v){_.FT.getInstance().triggerOptionalAction("yt-service-request",{},v[0])};var lu=function(v,e){this.renderer=v;this.page=e};
_.V(lu,zi);lu.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
lu.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
lu.prototype.shouldLogCounterfactualImpression=function(){return!0};
lu.prototype.doEnqueue=function(){var v=_.eK(this.page);v&&v.pause();this.renderer.impressionCommand&&_.FT.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.fl(_.FT.getInstance(),[this.renderer.promoCommand],this.page)};var n1O=function(v,e){this.renderer=v;this.resolver=_.gq();this.JSC$19800_enforcementCounter=new _.CZJ;e?this.JSC$19800_playerManager=_.eK(e):this.JSC$19800_playerManager=null;_.sj(1,!0)};
_.V(n1O,zi);_.W=n1O.prototype;_.W.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var v=[];this.renderer.impressionEndpoints.forEach(function(e){(e=_.lk(e))&&v.push(e)});
return v}};
_.W.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.W.shouldLogCounterfactualImpression=function(){var v=_.t57();v?(this.JSC$19800_enforcementCounter.increment("POPUP"),_.sj(3)):_.sj(2);return v};
_.W.cancel=function(){this.resolver.promise.cancel()};
_.W.doEnqueue=function(){var v=this;_.t57()?(this.JSC$19800_enforcementCounter.increment("POPUP"),_.sj(3),DpQ(this)):this.JSC$19800_playerManager?(this.resolver.promise.then(function(){DpQ(v)}),UpO(this.resolver,this.JSC$19800_playerManager)):_.sj(2)};
var UpO=function(v,e){var d=_.gq();e.getPlayerPromise().then(function(E){d.resolve(E)});
d.promise.then(function(E){E.addEventListener("onAbnormalityDetected",v.resolve);_.j9(v.promise,function(){E.removeEventListener("onAbnormalityDetected",v.resolve)})});
v.promise.thenCatch(function(){d.promise.cancel()})},DpQ=function(v){_.sj(3);
var e={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:v.renderer}};e=_.FT.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:e},{});Promise.all(e).then(function(){p7s();v.JSC$19800_playerManager&&v.JSC$19800_playerManager.pause()})},p7s=function(){Unt(function(v,e){_.XYt(v,e);
v===0?_.sj(7):_.sj(4)})};var v7s=function(v,e){this.renderer=v;this.page=e;this.resolver=_.gq()};
_.V(v7s,zi);_.W=v7s.prototype;_.W.cancel=function(){this.resolver.promise.cancel()};
_.W.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.W.isCounterfactual=function(){return!this.renderer.isVisible};
_.W.shouldLogCounterfactualImpression=function(){return!0};
_.W.doEnqueue=function(){var v=this;this.resolver.promise.then(function(){var d={popup:{mealbarPromoRenderer:v.renderer},popupType:"MEALBAR"};_.FT.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:d},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var e=_.eK(this.page);e&&e1C(this.resolver,e)}break;default:this.resolver.resolve()}};
var e1C=function(v,e){var d=_.gq();e.getPlayerPromise().then(function(E){d.resolve(E)});
d.promise.then(function(E){E.addEventListener("onAdEnd",v.resolve);_.j9(v.promise,function(){E.removeEventListener("onAdEnd",v.resolve)})});
v.promise.thenCatch(function(){d.promise.cancel()})};var dw9=function(v,e){this.renderer=v;this.page=e};
_.V(dw9,zi);_.W=dw9.prototype;_.W.cancel=function(){this.JSC$19808_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19808_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19808_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.W.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.W.isCounterfactual=function(){return!this.renderer.isVisible};
_.W.shouldLogCounterfactualImpression=function(){return!0};
_.W.doEnqueue=function(){var v=this,e,d;((e=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(d=e.playbackUpsellDialogTriggerConditionData)==null?void 0:d.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19808_downloadedVideosCountSelectorUnsubscriber=_.ji(_.d1(),Qm_,function(E,T){E>T&&(E7C(v),v.cancel())}):E7C(this)};
var E7C=function(v){var e={popup:{upsellDialogRenderer:v.renderer},popupType:"MODAL"};_.FT.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:e},{});(v=_.eK(v.page))&&v.pause()};var HI={},TvS=(HI.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",HI.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",HI.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",HI.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",HI.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",HI.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",HI.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",HI),S2Q=function(v,e){this.renderer=v;this.targetManager=
e};
_.V(S2Q,zi);_.W=S2Q.prototype;_.W.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19815_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19815_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19815_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.W.getCounterfactualData=function(){if(this.isCounterfactual()){var v;return(v=this.renderer.promoConfig)==null?void 0:v.impressionEndpoints}};
_.W.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.W.shouldLogCounterfactualImpression=function(){return!0};
_.W.doEnqueue=function(){var v=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19815_downloadedVideosCountSelectorUnsubscriber=_.ji(_.d1(),Qm_,function(e,d){v.renderer.targetId&&e>d&&(kUi(v.targetManager,v.renderer.targetId,Wmf(v)),v.cancel())});
break;default:kUi(this.targetManager,this.renderer.targetId,Wmf(this))}};
var Wmf=function(v){var e;if((e=v.renderer.suggestedPosition)==null?0:e.type)var d=TvS[v.renderer.suggestedPosition.type];d||(d="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:v.renderer},popupType:"HINT",position:d}}};var a3i=function(){this.previousPage=null},ijC;
a3i.prototype.registerPromoCommand=function(v,e){Oji(this,void 0,void 0,_.L(v.roadblock,LOs),void 0,void 0,e)};
var Oji=function(v,e,d,E,T,S,O){v.previousPage!==O&&v.pendingTooltipPromo&&v.pendingTooltipPromo.cancel();v.previousPage=O;T?(v.pendingEnforcementPromo&&v.pendingEnforcementPromo.cancel(),v.pendingEnforcementPromo=new n1O(T,O),v.pendingEnforcementPromo.enqueue()):S?(v.pendingCommandWrapperPromo=new lu(S,O),v.pendingCommandWrapperPromo.enqueue()):E?(v.pendingRoadblockPromo&&v.pendingRoadblockPromo.cancel(),v.pendingRoadblockPromo=new dw9(E,O),v.pendingRoadblockPromo.enqueue()):e?(v.pendingMealbarPromo&&
v.pendingMealbarPromo.cancel(),v.pendingMealbarPromo=new v7s(e,O),v.pendingMealbarPromo.enqueue()):d&&(v.pendingTooltipPromo&&v.pendingTooltipPromo.cancel(),v.pendingTooltipPromo=new S2Q(d,_.oc()),v.pendingTooltipPromo.enqueue())},I39=function(){ijC||(ijC=new a3i);
return ijC};var DrO=!1;var LSw=function(v,e){var d=_.Bb("SESSION_INDEX");this.actionToken_=v;this.commonToken_=e;this.sessionIndex_=d},kn9=function(v){var e=_.gq(),d=_.AE("payments.business.integration.bootstrap"),E=_.AE("payments.business.integration"),T=E.Style.create().withMaterialDesignStyle(),S=E.mashupMode.popup("instrument-manager");
d.asMashupMode(S).usingUserIndex(v.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(T).inStandaloneContext(E.standaloneContextAuthId.forUserId()).instrumentManager(v.actionToken_,v.commonToken_.length>0?v.commonToken_:void 0,function(O){var b=O.instrumentId;b?e.resolve(b):(b=_.AE("payments.business.integration.scenario.InstrumentManager"),e.reject(O.errorCode&&O.errorCode===b.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(O){_.lg(O);
e.reject("instrumentManagerLoadError")});
return e.promise};var $F=function(v,e,d){this.payloadName="transactionFlowFailed";this.payload={errorType:v,serializedTransactionFlowLoggingParams:e,isUserDismiss:d===void 0?!1:d}};
_.pw("yt.ypc.shared.YpcTransactionFlowError",$F);var AD=function(){return _.kv.apply(this,arguments)||this};
_.V(AD,_.kv);AD.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
AD.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
AD.prototype.onErrorMessageDismiss=AD.prototype.onErrorMessageDismiss;_.c([_.f({readOnly:!0,observer:"errorRendererChanged"}),_.w("design:type",Object)],AD.prototype,"errorRenderer",void 0);_.c([_.Kq("yt-live-chat-error-message-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],AD.prototype,"onErrorMessageDismiss",null);_.c([_.Lq()],AD);var bj9=[AD.prototype];var Y2f;var mw9;var yQw=new _.Xn("yt-live-chat"),q2C=new Map;q2C.set("timestamp_toggle","show-timestamps");q2C.set("reactions_toggle","allow-reactions");var ZE=function(){return _.P.apply(this,arguments)||this};
_.V(ZE,_.P);_.W=ZE.prototype;_.W.menuItemIdentifierChanged=function(){var v;(v=this.data)!=null&&v.menuItemIdentifier&&(v=q2C.get(this.data.menuItemIdentifier))&&(_.N("enable_lwe_web_mute")?(v=yQw.get(v),this.isToggled=!(v===void 0?!this.data.isToggled:!v)):this.isToggled=yQw.get(v))};
_.W.onFocus=function(){this.toggleButton.focus()};
_.W.onTap=function(){var v=this.data.command;v&&this.componentBehavior.resolveCommand(v)};
_.W.computeText=function(v,e,d){return this.componentBehavior.getSimpleString(v?d:e)};
_.W.computeIcon=function(v,e,d){return(v=v?d:e)&&v.iconType?_.qC(v.iconType):""};
ZE.prototype.onTap=ZE.prototype.onTap;ZE.prototype.onFocus=ZE.prototype.onFocus;ZE.prototype.menuItemIdentifierChanged=ZE.prototype.menuItemIdentifierChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],ZE.prototype,"componentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ZE.prototype,"data",void 0);
_.c([_.f({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.w("design:type",String)],ZE.prototype,"icon",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],ZE.prototype,"isToggled",void 0);_.c([_.sg("tp-yt-paper-toggle-button"),_.w("design:type",Object)],ZE.prototype,"toggleButton",void 0);_.c([_.$v("data.menuItemIdentifier"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZE.prototype,"menuItemIdentifierChanged",null);
_.c([_.Kq("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZE.prototype,"onFocus",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZE.prototype,"onTap",null);_.c([_.lh({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],ZE);
_.A(ZE,"yt-live-chat-toggle-renderer",function(){if(mw9===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Y2f===void 0&&(Y2f=document.createElement("template"));var E=Y2f;d.call(e,E.content.cloneNode(!0),v.content.firstChild);mw9=v}v=mw9;return v},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var rQs=new _.nC("NAVIGATION_PROGRESS_TOKEN");var h1S={},Kmw={},$wv=(Kmw[Yei.name]=!0,Kmw),cI=function(){var v=_.kv.apply(this,arguments)||this;v._noAccessors=!0;v.tabGesturesIsActive=!1;v.actionRouterIsRoot=!0;v.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"};v.pageTitle="";v.titleSuffix="YouTube";v.unseenNotificationCount=
0;v.hasNavigated=!1;v.hasSetScrollTopForNavigation=!1;v.pagePreparer=null;v.zwiebackInitJobId=0;v.dataUpdatePromise=null;v.loadDepsPromise=_.qg();v.hasPendingNavigation=!1;v.pendingPlayerOnResponseReceivedActions=[];return v};
_.V(cI,_.kv);cI.prototype.attached=function(){j6S(this);document.addEventListener("yt-navigate-cache",_.hG(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var v=wM();v.init();v.dispatchElement=this.hostElement};
var j6S=function(v,e){e=e===void 0?0:e;var d=_.dk().resolve(_.eG(_.Vy));if(d)s6s(v,d);else{if(e>=5)throw Error("il");setTimeout(function(){j6S(v,e+1)},0)}},s6s=function(v,e){e.addEventListener("yt-navigate-start",_.hG(v,v.onYtNavigateStart));
e.addEventListener("yt-navigate-finish",_.hG(v,v.onYtNavigateFinish));e.addEventListener("yt-navigate-error",_.hG(v,v.onYtNavigateError));e.addEventListener("yt-page-data-fetched",_.hG(v,v.onYtPageDataFetched))};
_.W=cI.prototype;_.W.detached=function(){var v=_.dk().resolve(_.Vy);v.removeEventListener("yt-navigate-start",_.hG(this,this.onYtNavigateStart));v.removeEventListener("yt-navigate-finish",_.hG(this,this.onYtNavigateFinish));v.removeEventListener("yt-navigate-error",_.hG(this,this.onYtNavigateError));v.removeEventListener("yt-page-data-fetched",_.hG(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.hG(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.W.setPageOffset=function(v,e){v?_.b4(this.hostElement,"yt-set-page-offset",[v,e]):_.RI(Error("jl"))};
_.W.setPageOffsetForNavigation=function(v,e){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(v,e))};
_.W.onYtNavigateSetPageOffset=function(v,e){this.setPageOffsetForNavigation(e.page,e.offset)};
_.W.getPageOffset=function(){var v=_.IB(this.hostElement).querySelector("#page-manager").getCurrentPage(),e=0;v&&(e=_.b4(this.hostElement,"yt-get-page-offset",[v])[0]);return e};
_.W.onYtHistoryPop=function(v,e){if(_.zr("DISABLE_WARM_LOADS"))v.preventDefault(),window.location.reload();else{var d=_.dk().resolve(_.Vy);d.hasPendingNavigation()&&v.preventDefault();d.cancelPendingNavigation();_.YB(this.hostElement,"yt-pending-navigation-cancelled");e.errorMsg&&(v=e.errorMsg.split(" - "),e=Error(v[0]),v.length==2&&v[1]&&(_.BV(e,v[1]),_.xf(e)),window.location.reload())}};
_.W.onYtHistoryLoad=function(v,e){var d=this;if(_.zr("DISABLE_WARM_LOADS"))window.location.reload();else{(v=e.endpoint)&&Object.keys(v).length||(v=null);var E=e.historyEntry,T=_.dk().resolve(_.Vy),S=_.dk().resolve(_.v5),O=null;E&&E.rootData&&(O=E.rootData);var b=O&&Nvw(O);!O||b||O.filler?v?(T.navigate(v,!0),kys(this,v)):(e.legacyBorder||b||(e.JSC$30119_savedComponentState==null&&O==null?_.xf(new _.kL("Incomplete history entry",e.forward)):_.PV(new _.kL("Malformed history entry",e.JSC$30119_savedComponentState,
e.forward,O))),window.location.reload()):(_.qQj({isHot:!0}),_.BF({webInfo:{navigationReason:"h"}}),_.te3(),_.zE("srt"),_.zE("pdc"),this.cancelPendingTasks(),Lm_(this,e.forward,O),O.player&&(O.player.loaded=!1),kys(this,v),_.KP6(T,v||{},O,2,{},!1,e).then(function(){d.setPageOffset(S.getCurrentPage(),E.scrollTop||0)}))}};
_.W.initHistoryManager=function(v){if(!this.hasNavigated){this.hasNavigated=!0;var e=_.IB(this.hostElement).querySelector("#page-manager").getCurrentData();v=isNaN(v)?this.getPageOffset():v;var d=_.dk().resolve(_.Vy).currentEndpoint;this.replaceState(d,e,v)}};
_.W.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.W.onYtNavigateStart=function(v,e){this.cancelPendingTasks();e.noProgressBar||(v=_.dk().resolve(_.eG(rQs)))&&v.start();v=this.hasPendingNavigation?null:this.data;var d=_.dk().resolve(_.v5),E,T,S;_.N("kevlar_use_vimio_behavior")&&!((E=e.endpoint)==null?0:(T=E.commandMetadata)==null?0:(S=T.webCommandMetadata)==null?0:S.ignoreNavigation)&&(E=d.getCurrentPage())&&E.disconnectVisibilityRoot();d.prepareForNavigation(e.pageType,e.endpoint);_.N("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.SZ(1,
"pcl"),_.Wh(this.pagePreparer,d.preparePage.bind(d,e.pageType,e.endpoint)));E=this.getPageOffset();this.initHistoryManager(E);e.reload||this.hasPendingNavigation?(_.N("web_enable_delay_shorts_sequence_call")&&e.pageType==="shorts"&&e.reload&&_.Iq(this.hostElement,"yt-shorts-reset"),this.replaceState(e.endpoint,v,E)):(v==null?void 0:v.page)==="watch"&&e.pageType==="watch"&&_.N("kevlar_replace_watch_to_watch_history_state")?this.replaceState(e.endpoint,v,E):(v==null?void 0:v.page)!=="shorts"||e.pageType!==
"shorts"||e.endpoint.reelWatchEndpoint.sequenceParams||_.N("short_to_short_back_nav_killswitch")?e.type!="navigate-back"&&e.type!="navigate-forward"&&(e.pageType==="shorts"&&_.Iq(this.hostElement,"yt-shorts-reset"),this.saveAndPush(e.url,e.endpoint,v,E)):(_.N("web_enable_delay_shorts_sequence_call")&&(e.endpoint.reelWatchEndpoint.sequenceParams=v==null?void 0:v.cachedSequenceParams,e.endpoint.reelWatchEndpoint.sequenceProvider=v==null?void 0:v.cachedSequenceProvider),this.replaceState(e.endpoint,
v,0));this.hasPendingNavigation=!0};
var VYS=function(v){v.hasPendingNavigation=!1;(v=_.dk().resolve(_.eG(rQs)))&&v.finish()};
cI.prototype.onYtNavigateError=function(v,e){VYS(this);v=this.get("endpoint.commandMetadata.webCommandMetadata.url",e);var d=_.QU(window.location.href);v&&!d.pbjreload&&(e=e.navigationErrorReason||"10",_.N("kevlar_parent_on_pbjreload")&&(d={csn:_.zz()},this.get("data.endpoint.clickTrackingParams")&&(d.itct=this.data.endpoint.clickTrackingParams),_.Ez(v,d)),_.uX(_.gZ(v,{pbjreload:e})))};
cI.prototype.onYtNavigateCache=function(v,e){var d=this,E=e.url,T=e.endpoint,S=e.data;v=!!e.miniplayer;e=!!e.skipHistory;if(E&&T&&S){var O=this.getPageOffset(),b=this.data||null;e||this.saveAndPush(E,T,b,O);E=_.KP6(_.dk().resolve(_.Vy),T,S,v?4:3,{},v);v&&E.then(function(){d.dataUpdatePromise&&d.dataUpdatePromise.then(function(){var Y=_.dk().resolve(_.v5);d.setPageOffset(Y.getCurrentPage(),0)})})}};
cI.prototype.onYtNavigateFinish=function(v,e){var d=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){o7t(d,e.fromHistory)})};
var o7t=function(v,e){VYS(v);if(v.pendingPlayerOnResponseReceivedActions){for(var d=_.a(v.pendingPlayerOnResponseReceivedActions),E=d.next();!E.done;E=d.next())_.K1(E.value,v.hostElement);v.pendingPlayerOnResponseReceivedActions=[]}d=_.dk().resolve(_.v5);e||!v.hasNavigated||_.N("web_disable_scroll_on_navigate_finish")||((e=d.getCurrentPage())?e.is==="ytd-shorts"||v.tabGesturesIsActive||v.setPageOffsetForNavigation(e,0):_.xf(Error("kl")));_.Q1(function(){_.Q1(function(){_.zE("pda")})})};
cI.prototype.onYtNavigate=function(v){if(!v.detail.endpoint){var e=new _.kL("Error: Missing yt-navigate endpoint from target:",v.target,v.target.nodeName);_.RI(e)}if(e=_.N("cold_missing_history"))e=wM(),e.init(!1),e=!(e.browserHistory.boundHistoryReplaceState&&e.browserHistory.boundHistoryPushState);if(e){_.xc("DISABLE_WARM_LOADS",!0);e=new _.kL("Failed to initialize history manager",this.getDebugString());var d=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
d?_.xf(e):_.RI(e)}e=v.detail.endpoint;var E,T;_.N("debug_forward_web_query_parameters")&&((E=e.commandMetadata)==null?0:(T=E.webCommandMetadata)==null?0:T.url)&&(e=JSON.parse(JSON.stringify(e)),e.commandMetadata.webCommandMetadata.url=_.wF3(e.commandMetadata.webCommandMetadata.url,window.location.search));v={type:0,command:e,form:{params:v.detail.params,tempData:v.detail.tempData||{},requestType:v.detail.type,createScreenConfig:v.detail.createScreenConfig,reload:v.detail.reload?v.detail.reload:!1,
requestForm:v.detail}};_.N("kevlar_yt_navigate_command_handler")?(E=_.dk().resolve(_.EI),v.form.skipDefaultElement=!0,E.resolveCommand(e,{form:v.form})):this.handleNavigate(v)};
cI.prototype.handleNavigate=function(v){this.hasSetScrollTopForNavigation=!1;var e=_.dk().resolve(_.Vy),d=v.form||{};e.navigate(v.command,d.reload,d.params,d.tempData,d.requestType,d.createScreenConfig,d.ignoreConfirmation,d.requestForm)&&kys(this,v.command,d.tempData)};
cI.prototype.onYtPageDataFetched=function(v,e){try{_.OL7().reset();this.data=e.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.dk().resolve(_.v5).updatePageData(this.data);if(!_.N("web_service_params_response_processor")){var d=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);d&&elv(d);var E=this.get("response.responseContext.serviceTrackingParams",
this.data);E&&elv(E)}var T=this.get("playerResponse.onResponseReceivedActions",this.data);T&&(T=JQw(this,T));T&&_.ya(this.hostElement,T,this.hostElement);var S=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),O=this.get("response.responseContext.consistencyTokenJar",this.data);if(S||O){var b=_.BY7(),Y=(0,_.f0.getValues)(b.tokenJars);S&&b.replace(Y,S);O&&b.replace(Y,O)}}catch(q){_.RI(q)}};
var kys=function(v,e,d){try{v.onYtEndpointChangeHandler(e,d)}catch(E){_.RI(E)}};
_.W=cI.prototype;_.W.onYtEndpointChangeHandler=function(){};
_.W.setPageTitle=function(v){v=(this.pageTitle=v)?v+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+v};
_.W.onYtUpdateTitle=function(v,e){this.setPageTitle(e)};
_.W.setUnseenNotificationCount=function(v){this.unseenNotificationCount=v;this.setPageTitle(this.pageTitle)};
_.W.handleUpdateNotificationsUnseenCountAction=function(v){_.L(v,gK9)&&((v=_.L(v,gK9).unseenCount)?this.setUnseenNotificationCount(v):this.setUnseenNotificationCount(0))};
_.W.handleClearCookieAction=function(v){var e;(v=(e=_.L(v,cbO))==null?void 0:e.cookieName)&&_.IYs(v)};
_.W.onYtUpdateUnseenNotificationCount=function(v,e){this.setUnseenNotificationCount(e)};
_.W.loadData=function(v){var e=this;this.loadDepsPromise.then(function(){var d=_.dk().resolve(_.eG(_.Vy));d||_.RI(Error("ll"));if(v&&v.response){if(!v.endpoint){var E=_.g3(window.document.location.href)||"/",T="";if(E==="/"||E.startsWith("/?"))T="WEB_PAGE_TYPE_BROWSE";v.endpoint={commandMetadata:{webCommandMetadata:{url:E,webPageType:T,rootVe:3854}}}}_.KP6(d,v.endpoint,v,5,{})}else v.endpoint?d.navigate(v.endpoint):d.navigate(_.$_);_.RM.cancelJob(e.zwiebackInitJobId);e.zwiebackInitJobId=_.RM.addLowPriorityJob(Uri)})};
var wM=function(){return _.dk().resolve(_.$1)};
cI.prototype.getDebugString=function(){return wM().getDebugString()};
cI.prototype.getThirdPartyManipulationSuspected=function(){return wM().getThirdPartyManipulationSuspected()};
cI.prototype.replaceState=function(v,e,d){wM().saveAndReplace(v,e,d)};
cI.prototype.saveAndPush=function(v,e,d,E){wM().saveAndPush(v,e,d,E)};
var Nvw=function(v){return _.L(v.endpoint,_.p2)||_.L(v.endpoint,_.Go)?!0:!v||isNaN(v.expirationTime)?!1:(0,_.E$)()>v.expirationTime},Lm_=function(v,e,d){var E=v.get("response.trackingParams",d),T=_.Xf(),S=_.zz();
if(E&&T&&S&&(E=v.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",d),!E&&d.rootVe&&(E=d.rootVe),T=e?"forwardButton":"backButton",e=v.get("playerResponse.topbar.desktopTopbarRenderer."+T+".buttonRenderer.command.clickTrackingParams",v.data),v=v.get("response.topbar.desktopTopbarRenderer."+T+".buttonRenderer.command.clickTrackingParams",v.data),e=(v=e||v)?_.Jg(v):void 0,v=_.NC(),T=[_.qg(d)],_.Ig(v,E,e,{dataPromises:T,csnToClone:d.csn}),d.graftedVes))for(d=
_.a(d.graftedVes),E=d.next();!E.done;E=d.next())_.bj(v,E.value)};
cI.prototype.onStoreGraftedVeAction=function(v){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(v)):_.xf(Error("ml"))};
var JQw=function(v,e){return e.filter(function(d){for(var E in d)if($wv[E])return v.pendingPlayerOnResponseReceivedActions.push(d),!0;return!1})};
_.vP.Object.defineProperties(cI.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
cI.prototype.onStoreGraftedVeAction=cI.prototype.onStoreGraftedVeAction;cI.prototype.loadData=cI.prototype.loadData;cI.prototype.onYtUpdateUnseenNotificationCount=cI.prototype.onYtUpdateUnseenNotificationCount;cI.prototype.handleClearCookieAction=cI.prototype.handleClearCookieAction;cI.prototype.handleUpdateNotificationsUnseenCountAction=cI.prototype.handleUpdateNotificationsUnseenCountAction;cI.prototype.setUnseenNotificationCount=cI.prototype.setUnseenNotificationCount;
cI.prototype.onYtUpdateTitle=cI.prototype.onYtUpdateTitle;cI.prototype.setPageTitle=cI.prototype.setPageTitle;cI.prototype.onYtEndpointChangeHandler=cI.prototype.onYtEndpointChangeHandler;cI.prototype.onYtPageDataFetched=cI.prototype.onYtPageDataFetched;cI.prototype.handleNavigate=cI.prototype.handleNavigate;cI.prototype.onYtNavigate=cI.prototype.onYtNavigate;cI.prototype.onYtNavigateFinish=cI.prototype.onYtNavigateFinish;cI.prototype.onYtNavigateCache=cI.prototype.onYtNavigateCache;
cI.prototype.onYtNavigateError=cI.prototype.onYtNavigateError;cI.prototype.onYtNavigateStart=cI.prototype.onYtNavigateStart;cI.prototype.cancelPendingTasks=cI.prototype.cancelPendingTasks;cI.prototype.initHistoryManager=cI.prototype.initHistoryManager;cI.prototype.onYtHistoryLoad=cI.prototype.onYtHistoryLoad;cI.prototype.onYtHistoryPop=cI.prototype.onYtHistoryPop;cI.prototype.onYtNavigateSetPageOffset=cI.prototype.onYtNavigateSetPageOffset;cI.prototype.setPageOffset=cI.prototype.setPageOffset;
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],cI.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],cI.prototype,"data",void 0);_.c([_.Kq("yt-navigate-set-page-offset"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],cI.prototype,"onYtNavigateSetPageOffset",null);
_.c([_.Kq("yt-history-pop"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],cI.prototype,"onYtHistoryPop",null);_.c([_.Kq("yt-history-load"),_.w("design:type",Function),_.w("design:paramtypes",[Event,_.zLc]),_.w("design:returntype")],cI.prototype,"onYtHistoryLoad",null);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],cI.prototype,"onYtNavigate",null);
_.c([_.Kq("yt-update-title"),_.w("design:type",Function),_.w("design:paramtypes",[Event,String]),_.w("design:returntype")],cI.prototype,"onYtUpdateTitle",null);_.c([_.Kq("yt-update-unseen-notification-count"),_.w("design:type",Function),_.w("design:paramtypes",[Event,Number]),_.w("design:returntype")],cI.prototype,"onYtUpdateUnseenNotificationCount",null);_.c([_.Lq()],cI);h1S.YtdAppBehavior=[_.$M.YtActionHandlerBehavior,cI.prototype];var Fl=function(){var v=_.kv.apply(this,arguments)||this;v._noAccessors=!0;return v};
_.V(Fl,_.kv);Fl.prototype.ready=function(){var v=this;_.IB(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){v.onChange_()})};
Fl.prototype.dataChanged_=function(){_.IB(this.hostElement).querySelector("#checkbox").checked=!1};
Fl.prototype.onChange_=function(){var v=_.IB(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Iq(this.hostElement,"yt-dismissal-reason-"+v,this.data.feedbackToken)};
Fl.prototype.dataChanged_=Fl.prototype.dataChanged_;_.c([_.f(),_.w("design:type",Object)],Fl.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fl.prototype,"dataChanged_",null);_.c([_.Lq()],Fl);var Gy9=[Fl.prototype];var Qx=function(){var v=_.kv.apply(this,arguments)||this;v.timeoutJobId=0;v.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return v};
_.V(Qx,_.kv);Qx.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Qx.prototype.startTimeout=function(){var v=this,e=this.data&&this.data.displayDurationSeconds;e&&!this.timeoutJobId&&(this.timeoutJobId=_.LI(_.RM,function(){_.b4(v.hostElement,"yt-close-popup-action",[v.is]);v.timeoutJobId=0},e*1E3))};
Qx.prototype.cancelTimeout=function(){_.RM.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Qx.prototype.ytdHatsSurveyBehaviorDataChanged=Qx.prototype.ytdHatsSurveyBehaviorDataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Qx.prototype,"ytActionHandlerBehavior",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qx.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.c([_.Lq()],Qx);var MY_=[_.$M.YtActionHandlerBehavior,Qx.prototype];var tYi=function(v,e){var d;return((d=v.prefixMapping)==null?0:d[e])?v.prefixMapping[e]:v.SHARED_RENDERERS_.hasOwnProperty(e)?"yt":v.prefix},gM={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}};gM.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.N("kevlar_mealbar_above_player"),modern:_.N("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"}};
gM.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};gM.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};gM.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
gM.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)"}};
gM.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};
gM.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};
gM.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};
gM.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};gM.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"}};
gM.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};gM.TOAST={component:null,properties:{}};var f3i=new function(v,e,d){this.supportedPopups=v;this.navigationEndpointPopupMap=e;this.popupTypeMap=d;this.supportedPopups=v;this.navigationEndpointPopupMap=e;this.popupTypeMap=d}({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:_.N("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"}),R1O=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$19865_popupConfig=gM;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 PTS=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Cg.getInstance()},uu=function(v,e){var d=v.pageNameToElement.get(e);
if(!d){switch(e){case "watch":var E=_.N("web_watch_force_learning_journey_for_testing")?_.TX("ytd-watch-learning-journey"):_.N("kevlar_watch_fixie")?_.TX("ytd-watch-fixie"):_.N("kevlar_watch_grid")?_.TX("ytd-watch-grid"):_.TX("ytd-watch-flexy");break;case "learning_journey_watch":E=_.TX("ytd-watch-learning-journey");break;case "shorts":E=_.TX("ytd-shorts");break;case "search":E=_.TX("ytd-search");break;case "channel":E=_.TX("ytd-browse");E.pageSubtype="channels";break;case "trending":E=_.TX("ytd-browse");
E.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":E=
_.TX("ytd-browse");E.pageSubtype=e;break;case "browse":E=_.TX("ytd-browse");break;default:_.xf(new _.kL("Error getting page element for type",e))}d=E;v.pageNameToElement.set(e,d)}return d};
PTS.prototype.preparePage=function(v,e,d){d&&(v=_.kE(d)||v);if(v!=="watch"&&v!=="learning_journey_watch"){var E=this.elementPoolPopulator,T=v;T!=E.targetPage_&&E.pendingPages_.indexOf(T)>-1&&(E.targetPage_&&(E.pendingPages_.unshift(E.targetPage_),E.abort()),ops(E,T),_.xog(E,T))}if((E=uu(this,v))||!_.L(d,_.wb)){E.isAttached||E===e||(E.hidden=!0);if(!E.data&&(v!=="watch"&&v!=="learning_journey_watch"||!_.N("swatcheroo_page_pool_dont_provide_filler_data"))){var S;if(v=(S=_.Bb("FILLER_DATA",{})[v])==
null?void 0:S.response)E.data=v}return E}};var xws=function(v){this.JSC$32010_clientRoot=v;this.playlistHandlerActionMap={"yt-add-to-playlist-command":aIO,"yt-end-playlist-command":i1i,"yt-recover-playlist-command":IIQ,"yt-refresh-playlist-command":mC1,"yt-playlist-remove-videos-action":b1Q};_.Qf(_.FT.getInstance(),this.playlistHandlerActionMap,this.JSC$32010_clientRoot);Cws()},Bv9;var nm=function(v,e,d){this.apiKey=v;this.endpoint=e;this.confidenceThreshold=d===void 0?.5:d;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=e==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||e==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
e==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||e==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new lX9};
_.W=nm.prototype;
_.W.start=function(v){if(this.state===0)if(this.isOnline()){v.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=v.supportsHttpHeadersOverwriteParam);v.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=v.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Xq("voice_assistant");_.l4("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=v.languageCode||"en-US";this.supportsCrossDomainXhr=v.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=v.youtubeAssistantRequest||null;this.listeningHandler=v.listeningHandler||this.listeningHandler;this.audioDetectedHandler=v.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=v.stopHandler||this.stopHandler;this.completeHandler=v.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=v.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=v.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
v.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=v.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=v.accessToken;this.additionalHeaders=v.additionalHeaders||{};var e;this.prefetchResponseTimeoutMs=(e=v.prefetchResponseTimeoutMs)!=null?e:this.prefetchResponseTimeoutMs;CTi(this);this.startAudio();Xys(this)}else this.errorHandler("OFFLINE")};
_.W.stop=function(v){var e=v===void 0?{}:v;v=e.logCancel===void 0?!0:e.logCancel;var d=e.logMicClosed===void 0?!0:e.logMicClosed;var E=e.handleError===void 0?!0:e.handleError;e=e.handleStop===void 0?!0:e.handleStop;this.state!==0&&(v&&DE("voz_cx"),U8(this,{logMicClosed:d,handleStop:e}),E&&this.errorHandler("ABORTED"))};
_.W.getState=function(){return this.state};
_.W.isSupported=function(){return!0};
_.W.stopAudio=function(v){(v===void 0||v)&&DE("voz_mf")};
_.W.startAudio=function(){DE("voz_vp");return _.qg(null)};
var z19=function(v,e){v.channelOpen&&(v.state!==2&&(v.state=2,DE("voz_ss"),v.listeningHandler()),e=new Uint8Array(e),e='{ "audioIn": "'+_.GQ(e)+'" }',v.channel.send(e))},U8=function(v,e){var d=e===void 0?{}:e;
e=d.logMicClosed===void 0?!0:d.logMicClosed;d=d.handleStop===void 0?!0:d.handleStop;v.vozEndOfDataTimeout>-1&&(clearTimeout(v.vozEndOfDataTimeout),v.vozEndOfDataTimeout=-1);l3s(v);v.stopAudio(e);v.channel&&(v.channelOpen=!1,v.manuallyClosedChannel=!0,v.channel.close(),v.channel=void 0);v.transcribedSpeechResults=[];v.state=0;d&&v.stopHandler()},CTi=function(v){var e={httpHeadersOverwriteParam:v.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},v.additionalHeaders,v.accessToken&&v.isUsingVoz?{Authorization:"Bearer "+v.accessToken}:{"x-goog-api-key":v.apiKey}),supportsCrossDomainXhr:v.supportsCrossDomainXhr};v.channel=new Du(v.endpoint,e);v.channel.open();_.MC(v.channel,"w",function(){var d=v.channel,E=d.send,T=v.isUsingVoz?"PLACEHOLDER":"example";T={config:{dialogStateIn:{languageCode:v.languageCode},deviceConfig:{deviceId:T,deviceModelId:T},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!v.isUsingVoz)T.config.requestType=4;else if(v.isUsingVoz&&v.youtubeAssistantRequest){var S=JSON.stringify(v.youtubeAssistantRequest);T.config.internalIn={youtubeAssistantS3InputJson:S}}E.call(d,T);v.channelOpen=!0;v.manuallyClosedChannel=!1});
_.MC(v.channel,"x",function(){v.manuallyClosedChannel||(v.channelOpen=!1,v.channel=void 0,U8(v))});
_.MC(v.channel,"z",function(d){if(d.data){l3s(v);for(var E=0;E<d.data.length;E++){var T=v,S=d.data[E],O=S.speechResults;if(O)a:{var b=[];S=[];var Y=!1;O=_.a(O);for(var q=O.next();!q.done;q=O.next()){q=q.value;if(q.noSpeech){U8(T);T.errorHandler("NO_SPEECH");break a}q.transcript!==void 0&&q.stability!==void 0&&(q.stability<T.confidenceThreshold&&(Y=!0),Y?S.push(q.transcript):b.push(q.transcript))}if(b.length!==0||S.length!==0)b=b.join(" "),S=S.join(" "),T.receivedEndOfUtterance&&!T.isUsingVoz?T.isUsingVoz||
T.completeHandler([b,S]):(Y=T,O=b,q=S,DE("voz_sf"),Y.transcriptionUpdateHandler(O,q),Y.transcribedSpeechResults=[O,q]),T.receivedEndOfUtterance&&(DE("voz_eou"),T.transcriptionCompleteHandler([b,S]),T.isUsingVoz&&(T.prefetchResponseTimeoutMs===0?U8(T,{logMicClosed:!1,handleStop:!0}):T.prefetchResponseTimeoutMs>0&&Hji(T)))}else T.isUsingVoz&&(S==null?0:S.internalOut)?(S=JSON.parse(S.internalOut.youtubeAssistantS3OutputJson),S.userHasOptedInToVaa||S.vaaConsent?T.vaaConsentUpdateHandler(!!S.userHasOptedInToVaa,
!!S.vaaConsent):(AQi(T),S&&(b=T.transcribedSpeechResults,DE("voz_rqf"),T.completeHandler(b,S)))):S.eventType==="END_OF_UTTERANCE"?T.receivedEndOfUtterance=!0:(DE("voz_err"),T.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.xf(Error("nl")))}}});
_.MC(v.channel,"y",function(d){U8(v);switch(d.status){case 1:d="WEBCHANNEL_NETWORK_ERROR";break;case 2:d="WEBCHANNEL_SERVER_ERROR";break;default:d="WEBCHANNEL_UNKNOWN_ERROR"}v.errorHandler(d);v.logError(Error(d))})};
nm.prototype.logError=function(v){_.RI(v)};
nm.prototype.isOnline=function(){return!0};
var Hji=function(v){AQi(v);v.prefetchResponseSetTimeoutId=setTimeout(function(){U8(v,{logMicClosed:!1,handleStop:!0})},v.prefetchResponseTimeoutMs)},AQi=function(v){v.prefetchResponseSetTimeoutId>-1&&(clearTimeout(v.prefetchResponseSetTimeoutId),v.prefetchResponseSetTimeoutId=-1)},Xys=function(v){l3s(v);
v.noResponseReceivedTimeout=window.setTimeout(function(){U8(v);v.errorHandler("NO_SPEECH")},11E3)},l3s=function(v){v.noResponseReceivedTimeout>-1&&(window.clearTimeout(v.noResponseReceivedTimeout),v.noResponseReceivedTimeout=-1)},DE=function(v){_.zE(v,void 0,"voice_assistant")};var pm=function(){nm.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.V(pm,nm);pm.prototype.isSupported=function(){return ygi()};
pm.prototype.startAudio=function(){var v=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.f1(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(E){Zjt(v,E)};
this.processor.connect(this.audioContext.destination);var e=function(E){v.stream=E;if(!v.audioContext)return _.qg(null);E=v.audioContext.createMediaStreamSource(E);v.processor&&E.connect(v.processor);return _.qg(null)},d={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?e(this.stream):(d=navigator.mediaDevices.getUserMedia(d))?d.then(e).catch(function(E){U8(v);E.name&&E.name==="NotAllowedError"?v.errorHandler("NO_MICROPHONE_PERMISSION"):(v.errorHandler("AUDIO_ERROR"),v.logError(E));return _.f1(null)}):(U8(this),this.errorHandler("AUDIO_ERROR"),_.xf(Error("ol")));
return nm.prototype.startAudio.call(this)};
pm.prototype.stopAudio=function(v){v=v===void 0?!0:v;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(e){e.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;nm.prototype.stopAudio.call(this,v)};
pm.prototype.isOnline=function(){return navigator.onLine};
var Zjt=function(v,e){if(v.audioContext)if(window.OfflineAudioContext){var d=v.audioContext.sampleRate,E=e.inputBuffer.getChannelData(0);e=new window.OfflineAudioContext(1,E.length,16E3);for(var T=e.createBuffer(1,E.length,d),S=T.getChannelData(0),O=0,b=0;b<E.length;b++)S[b]=E[b],O+=S[b]*S[b];!v.audioDetected&&Math.sqrt(O/E.length)>.01&&(v.audioDetected=!0,v.audioDetectedHandler());E=e.createBufferSource();E.buffer=T;E.connect(e.destination);E.start(0);e.oncomplete=function(Y){Y=Y.renderedBuffer.getChannelData(0);
for(var q=Math.floor(16384E3/d),r=new Int16Array(q),h=0;h<q;++h)r[h]=Math.max(-1,Math.min(1,Y[h]))*32767;z19(v,r.buffer)};
e.startRendering()}else cQt(v,e)},cQt=function(v,e){var d=v.audioContext.sampleRate,E=e.inputBuffer.getChannelData(0),T=Math.floor((d+8E3)/16E3);
d=E.length/T;e=new Float32Array(d);for(var S=0;S<d;++S)e[S]=E[S*T];E=new Int16Array(d);for(T=0;T<d;++T)E[T]=Math.max(-1,Math.min(1,e[T]))*32767;z19(v,E.buffer)};var wyt={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Fmf=function(){this.JSC$19930_audioEnabled=!0;this.audioFeedbackHolder={}};
Fmf.prototype.isPlaying=function(v){return v.currentTime>0&&!v.paused&&!v.ended&&v.readyState>2};
var Q6f=function(v){for(var e=_.a(Object.values(wyt)),d=e.next();!d.done;d=e.next())d=d.value,v.audioFeedbackHolder[d]=new Audio,v.audioFeedbackHolder[d].src="/s/search/audio/"+d+".mp3",v.audioFeedbackHolder[d].load()},eD=function(v,e){if(v.JSC$19930_audioEnabled!==!1&&e in v.audioFeedbackHolder){for(var d=_.a(Object.values(v.audioFeedbackHolder)),E=d.next();!E.done;E=d.next())E=E.value,v.isPlaying(E)&&E.pause();
v.audioFeedbackHolder[e].currentTime=0;v.audioFeedbackHolder[e].play().catch(function(){})}};var g7S=function(v,e){var d=this;this.store=v;this.service=e;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){d.setState("offline");d.stop()};
this.audioPlayer=new Fmf;var E;(E=this.audioPlayer)==null||Q6f(E)};
_.W=g7S.prototype;_.W.getService=function(){return this.service};
_.W.isEnabled=function(){return!!this.service};
_.W.isSupported=function(){var v;return(v=this.service)==null?void 0:v.isSupported()};
_.W.start=function(){var v=this,e,d,E,T,S,O,b,Y,q,r,h,K,k;return _.I(function(J){switch(J.nextAddress){case 1:v.store.dispatch(U39("",""));if(!navigator.onLine)return v.setState("offline"),J.return();window.addEventListener("offline",v.handleOfflineEvent);v.stream=null;if(!v.permissionsSupported){J.jumpTo(2);break}_.qq(J,3);return J.yield(um9(v),5);case 5:e=J.yieldResult;if(!e)return(d=v.audioPlayer)==null||eD(d,"failure"),J.return();v.service.stream=v.stream;v.setState("listening");_.wk(J,2);break;
case 3:_.jl(J),v.permissionsSupported=!1;case 2:E={context:_.rkj(_.Sa())},E.youtubeAssistantParams={searchParams:{inlineSearchResponse:v.enableInlineSearchResponse}},T=function(R,B){v.store.dispatch(p0Q("transcribing"));v.store.dispatch(U39(R,B))},S=function(){var R;
(R=v.audioPlayer)==null||eD(R,"open");v.setState("listening")},O=function(){v.setState("transcribing")},b=function(R){v.setErrorState(R)},Y=function(R,B){var X;
(X=v.audioPlayer)==null||eD(X,"success");B&&(_.N("kevlar_voice_search_inline_search")&&(v.responseProcessor=_.dk().resolve(_.WDU),v.responseProcessor&&(X=B.navigationAction,R=B.prefetchedSearchResponse,X&&R&&(X=(new _.q6S).JSC$13097_getStoreKey(X),_.XA(v.responseProcessor,R,X)))),v.JSC$19948_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",B))},q=function(){window.removeEventListener("offline",v.handleOfflineEvent)},r=_.VU0(!1),h=r.Authorization!=null,K=v.enableFirstPartyAuth||
v.enableFPAForSignedInUsers&&h?r:{"X-Goog-Visitor-Id":r["X-Goog-Visitor-Id"]},k={completeHandler:Y,
errorHandler:b,listeningHandler:S,audioDetectedHandler:O,stopHandler:q,transcriptionUpdateHandler:T,youtubeAssistantRequest:E,languageCode:n7f(),additionalHeaders:K,supportsCrossDomainXhr:v.enableFirstPartyAuth||v.enableFPAForSignedInUsers&&h,supportsHttpHeadersOverwriteParam:!v.disableHttpHeadersOverwrite},v.service.start(k),_.s9(J)}})};
_.W.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.W.reset=function(){this.store.dispatch(_.Oo({type:"RESET_VOICE_SEARCH_STATE"}))};
_.W.setState=function(v){this.store.dispatch(p0Q(v))};
_.W.setErrorState=function(v){switch(v){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var e;(e=this.audioPlayer)==null||eD(e,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)um9(this);else{var d;(d=this.audioPlayer)==null||eD(d,"failure");this.setState("permission-denied")}break;case "ABORTED":var E;(E=this.audioPlayer)==null||eD(E,"no_input");break;default:var T;(T=this.audioPlayer)==
null||eD(T,"no_input");this.setState("timeout")}};
var um9=function(v){var e,d;return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(navigator.permissions.query({name:"microphone"}),2);case 2:e=E.yieldResult;if(e.state==="granted")return E.return(!0);if(e.state==="denied")return v.setState("permission-denied"),E.return(!1);v.setState("permission");d={audio:{sampleSize:16,channelCount:1},video:!1};_.qq(E,3);return E.yield(navigator.mediaDevices.getUserMedia(d),5);case 5:return v.stream=E.yieldResult,E.return(!0);case 3:return _.jl(E),
v.setState("permission-denied"),E.return(!1)}})},n7f=function(){var v=_.Bb("INNERTUBE_CONTEXT_HL"),e=_.Bb("INNERTUBE_CONTEXT_GL");
return v.indexOf("-")>-1?v:v+"-"+e};var Dws=function(v,e,d){g7S.call(this,e,d);this.JSC$19948_actionRouter=v;this.enableInlineSearchResponse=_.N("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.N("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.N("kevlar_voice_search_enable_fpa_signedin_users")},UwQ;
_.V(Dws,g7S);
var py9=function(){if(!UwQ){var v="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.N("kevlar_voice_search_auth_enabled")||_.N("kevlar_voice_search_use_yt_endpoint")?v="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.N("kevlar_voice_search_use_fp_endpoint")&&(v="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");UwQ=
new Dws(_.FT.getInstance(),_.d1(),new pm(_.Bb("VOZ_API_KEY"),v,.5))}return UwQ};var v8O=function(v){this.JSC$19952_clientRoot=v;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$19952_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)]]));v=_.a(this.eventListeners);for(var e=v.next();!e.done;e=v.next()){var d=_.a(e.value);e=d.next().value;d=d.next().value;d=_.a(d);for(var E=d.next();!E.done;E=d.next()){var T=
_.a(E.value);E=T.next().value;T=T.next().value;e.addEventListener(E,T)}}_.Qf(_.FT.getInstance(),this.autonavPauseActionMap,this.JSC$19952_clientRoot)},e5C,dx1=function(v){return _.N("kevlar_autonav_popup_filtering")?(v=_.ew(v))?v.hasAttribute("prevent-autonav"):!0:!0};
_.W=v8O.prototype;_.W.onIronOverlayOpened=function(v){dx1(v)&&(this.autonavPauseReasons.overlayOpen=!0,d_(this))};
_.W.onIronOverlayClosed=function(v){dx1(v)&&(this.autonavPauseReasons.overlayOpen=!1,d_(this))};
_.W.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;d_(this)};
_.W.onYtAutonavPauseBlur=function(){var v=this;_.RM.addJob(function(){v.isInBackground()||(v.autonavPauseReasons.inputBoxFocus=!1,d_(v))},8,0)};
_.W.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;d_(this)};
_.W.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;d_(this)};
_.W.onYtAutonavPauseScroll=function(){var v=_.dk().resolve(_.v5);v.isOnWatch()&&(v=v.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=v.getBoundingClientRect().top<-200,d_(this))};
_.W.onYtAutonavPauseUserEngagement=function(v){var e=this;if(_.N("user_engagement_enable_autoplay_pause_feature")){var d=Number(v.lowEngagementThresholdMs);isNaN(d)||d<=0||v.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.OH("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.dk().resolve(_.oZ),_.TN()<d?_.LI(_.RM,function(){_.OH("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.l89()?(this.userEngagementCsn=_.zz(),_.LI(_.RM,function(){_.OH("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
e.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,d_(this)):_.OH("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Gn0(Error("pl`"+JSON.stringify(v)))};
_.W.onYtAutonavPausePlayer=function(v){this.autonavPauseReasons.requestedByPlayer=!!v.detail;d_(this)};
_.W.onYtAutonavVisibilityChanged=function(){var v=this,e,d,E;return _.I(function(T){if(T.nextAddress==1)return(e=_.dB())?T.yield(e.getPlayerPromise(),2):T.return();d=T.yieldResult;E=d.isMuted()||d.getVolume()===0;v.autonavPauseReasons.backgroundAndMute=v.isInBackground()&&E;d_(v);_.s9(T)})};
_.W.onYtAutonavPausePlayerEnded=function(){_.dk().resolve(_.oZ);var v=144E5;_.N("user_engagement_enable_autoplay_pause_feature")||_.N("is_part_of_any_user_engagement_experiment")||(v=45E5);this.autonavPauseReasons.longIdle=_.TN()>v;E8Q(this);d_(this)};
_.W.onYtUserActivity=function(){var v=this;this.autonavPauseReasons.userEngagement&&(_.LI(_.RM,function(){_.OH("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",v.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,d_(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.LI(_.RM,function(){_.OH("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",v.userEngagementCsn);_.fI()}),this.autonavPauseReasons.youthereLactExperiment=!1,d_(this));
this.autonavPauseReasons.longIdle&&!_.N("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,d_(this))};
_.W.isInBackground=function(){var v=window.document.visibilityState;return!(!v||v==="visible")};
var d_=function(v){for(var e=!1,d=_.a(Object.values(v.autonavPauseReasons)),E=d.next();!E.done;E=d.next())E=E.value,e=e||E;e?_.p6.getInstance().pause(v.autonavPauseReasons):(v=_.p6.getInstance(),v.autonavState_==3?(v.setState(2,!1,!1),v.autonavPauseReason_=void 0):v.autonavState_==1&&(v.disabledAutonavPauseReason_=void 0))},E8Q=function(v){var e=!1;
if(_.N("enable_autoplay_pause_by_lact")){_.dk().resolve(_.oZ);e=_.Wi("autoplay_pause_by_lact_sec")*1E3;var d=_.Wi("autoplay_pause_by_lact_sampling_fraction");(e=_.TN()>=e&&Math.random()<d)&&!_.l89()&&(_.LI(_.RM,function(){_.OH("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),e=!1)}e!==v.autonavPauseReasons.youthereLactExperiment&&(v.autonavPauseReasons.youthereLactExperiment=e)&&(v.userEngagementCsn=_.zz(),_.LI(_.RM,function(){_.OH("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",v.userEngagementCsn)}));
v.autonavPauseReasons.userEngagement&&_.LI(_.RM,function(){_.OH("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",v.userEngagementCsn)})};
v8O.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.OH("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.fI(),this.autonavPauseReasons.youthereLactExperiment=!1,d_(this));this.autonavPauseReasons.userEngagement&&(_.OH("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,d_(this))};
v8O.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Ex=function(){var v=_.P.apply(this,arguments)||this;v.miniGuideVisible=!1;v.guideOpened=_.N("disable_initial_guide_state_fix")?!1:v.canFitPersistentGuide(v.initialBodyClientWidth);v.guideUserStateOpened=v.getInitialGuideUserStateOpened();v.isFullscreenShorts=!1;v.miniGuideWidthThreshold=_.Wi("kevlar_mini_guide_width_threshold",791);v.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");v.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");v.persistentGuideBlockedPagePathRegex=new RegExp(v.persistentGuideBlockedPagesPatterns.join("|"));v.animationTransitionDuration=0;v.lateDataResolver=_.gq();v.initialGuideDataFetchFailed=!1;v.initialLoad=!0;v.guideRenderers=new Set;v.isMouseOverGuide=!1;v.sessionUserManuallyExpandedGuideState=!1;v.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return v};
_.V(Ex,_.P);_.W=Ex.prototype;_.W.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.W.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.W.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.W.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.W.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.W.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.W.ready=function(){_.dk().addProvider({provide:_.wK,useValue:this.hostElement})};
_.W.attached=function(){var v=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.hG(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.hG(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.hG(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.hG(this,this.onYtGuideShow));_.Uh(this,function(){v.animationTransitionDuration=200})};
_.W.detached=function(){document.removeEventListener("yt-navigate-finish",_.hG(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.hG(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.hG(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.hG(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.hG(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.hG(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.hG(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.W.getData=function(){return this.data};
_.W.load=function(){var v=this,e,d,E,T;return _.I(function(S){switch(S.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=v.lateDataResolver.resolve.bind(v),S.return(v.lateDataResolver.promise);if(window.ytInitialGuideData)return e=_.gq(),e.resolve(window.ytInitialGuideData),S.return(e.promise);E=!1;_.qq(S,2);return S.yield(v.fetchGuideData(),4);case 4:d=S.yieldResult;_.wk(S,3);break;case 2:T=_.jl(S),T.message==="Returned error"&&(E=
!0);case 3:if(d)return S.return(d);v.onYtGuideClose();E||(v.initialGuideDataFetchFailed=!0);return S.return(v.lateDataResolver.promise)}})};
_.W.fetchGuideData=function(){var v=this,e,d,E,T,S,O,b;return _.I(function(Y){if(Y.nextAddress==1)return e=_.dk(),v.guidePromise||(d=e.resolve(_.lX),v.guidePromise=_.Qw(d,UPO)),Y.yield(v.guidePromise,2);if(Y.nextAddress!=3)return E=Y.yieldResult,T=e.resolve(_.Se),Y.yield(T(),3);(S=Y.yieldResult)&&((O=E)==null?void 0:(b=O.responseContext)==null?void 0:b.maxAgeSeconds)!==0&&S.put("service:guide:fallback",new _.qp({innertubeResponse:E}));return Y.return(E)})};
_.W.initializeGuideDataIfEmpty=function(){var v=this,e,d;return _.I(function(E){if(E.nextAddress==1){if(!v.initialGuideDataFetchFailed||v.data)return E.return();_.qq(E,2);return E.yield(v.fetchGuideData(),4)}if(E.nextAddress!=2)return(e=E.yieldResult)&&v.lateDataResolver.resolve(e),_.wk(E,0);d=_.jl(E);_.xf(d);_.s9(E)})};
_.W.initializeGuideData=function(){var v=this,e;return _.I(function(d){switch(d.nextAddress){case 1:return _.Sd(xnv(),{mainAppWeb:_.no()}),_.qq(d,2),d.yield(v.load(),4);case 4:v.data=d.yieldResult;_.wk(d,3);break;case 2:_.jl(d),_.W0(xnv(),"FAILURE");case 3:e=v.data&&v.data.items&&v.data.items.length>0?"SUCCESS":"FAILURE",_.W0(xnv(),e),_.s9(d)}})};
_.W.setGuideData=function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1)return e.disabled?T.return():e.data?(v.data=e.data,e.guideRenderers.add(v),T.return()):T.yield(e.initializeGuideData(),2);e.graftGuideToPage();d=_.zr("IS_HOMEPAGE_COLD")?"eop":void 0;_.N("disable_element_pool_populator")?e.setGuideDataAfterInit(v):(E=new _.SZ(1,d),_.Wh(E,e.setGuideDataAfterInit.bind(e,v)));_.s9(T)})};
_.W.setGuideDataAfterInit=function(v){v.data=this.data;v.markDirty();this.guideRenderers.add(v);_.Q1(function(){_.zE("gle")});
_.Uh(this,function(){_.zE("gpe")})};
_.W.graftGuideToPage=function(){if(this.data){var v=this.data&&this.data.trackingParams;v&&(v=_.Jg(v),_.Y_(_.NC(),v))}};
_.W.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.hG(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.W.onDrawerOpenedChanged=function(v,e){!e.value&&this.guideOpened&&(this.guideOpened=!1)};
_.W.onYtGuideToggle=function(v){var e=this.guideOpened;this.guideOpened=!e;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var d=_.LB();_.Va(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;d.save()}this.updateGuideDrawerElementState();if(this.guideElement){var E;this.guideOpened&&((E=v.detail)==null?0:E.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.hG(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.hG(this,this.onAppDrawerTransitioned))}e||this.initializeGuideDataIfEmpty()};
_.W.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.hG(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.nU(this.guideElement)};
_.W.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.hG(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(n5v(this.guideOpened))};
_.W.guidePersistentAndVisibleChanged=function(){_.YB(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.W.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Oo({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.W.miniGuideVisibleChanged=function(){_.YB(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.W.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(n5v(this.guideOpened)),this.initialLoad=!1);_.YB(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.W.activeEndpointChanged=function(){_.YB(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.W.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.W.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()};
_.W.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var v=this.canFitPersistentGuide(this.cachedClientWidth);v?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=v}this.updateGuideDrawerElementState()};
_.W.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.W.getGuideOpened=function(){return this.guideOpened};
_.W.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.W.getActiveEndpoint=function(){return this.activeEndpoint};
_.W.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.W.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&&_.Iq(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.W.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.N("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.W.handleGuideMouseLeave=function(){var v=this;!this.sessionUserManuallyExpandedGuideState&&_.N("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.gi(this,"handleGuideMouseLeave",function(){v.isMouseOverGuide||!v.guideOpened||v.miniGuideVisible||(v.guideOpened=!1,v.updateGuideDrawerElementState())},100))};
_.W.computeGuidePersistentAndVisible=function(){var v=this;_.gi(this,"computeGuidePersistentAndVisible",function(){v.guidePersistentAndVisible=v.guideOpened&&v.guidePersistent;v.guideIsVisibleButNotPersistent=!(!v.guideOpened||v.guidePersistent)})};
_.W.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.W.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.W.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.W.startLoadingWatch=function(){this.closeGuide()};
_.W.startLoadingShorts=function(){_.N("web_hide_guide_on_shorts")&&this.closeGuide()};
_.W.onYtNavigateFinish=function(v,e){if(!_.Tw||e){this.activeEndpoint=e.endpoint;this.pageType=e.pageType;this.pageUrl=e.response.url;var d,E;v=(E=_.L((d=e.endpoint)==null?void 0:d.commandMetadata,_.$B))==null?void 0:E.url;!this.pageUrl&&v&&(this.pageUrl=v);_.N("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.W.getVisibleGuideRenderer=function(){for(var v=_.a(this.guideRenderers),e=v.next();!e.done;e=v.next())if(e=e.value,this.miniGuideVisible&&e.is==="ytd-mini-guide-renderer"||this.guideOpened&&e.is==="ytd-guide-renderer")return e;return null};
_.W.markGuideRendererDirty=function(v){if(v){typeof v.markDirty==="function"&&v.markDirty();v=_.a([].concat(_.t7(_.IB(v).children)));for(var e=v.next();!e.done;e=v.next())this.markGuideRendererDirty(e.value)}};
_.W.persistentGuideEnabled=function(v,e){if(!e||v==="watch"||v==="settings"||v==="shorts"&&this.isFullscreenShorts||_.N("reels_web_disable_persistent_guide_shorts")&&v==="shorts")return!1;var d=_.mq(e)||"";return _.N("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(E){return d===E}):!this.persistentGuideBlockedPagePathRegex.test(d)};
_.W.canFitPersistentGuide=function(v){var e=_.Wi("kevlar_persistent_guide_width_threshold",1312);return e===-1||_.N("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:v>e};
_.W.canFitMiniGuide=function(v){return this.miniGuideWidthThreshold===-1?!1:v>this.miniGuideWidthThreshold};
_.W.onResize=function(){var v=this;_.gi(this,"calculateGuideState",function(){v.onResizeDebounced()})};
_.W.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.W.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.W.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.W.getInitialGuideUserStateOpened=function(){return _.N("web_force_mini_guide_default")?!1:!_.LB().getFlag(109)};
_.vP.Object.defineProperties(Ex.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Bb("initialBodyClientWidth")||window.innerWidth}}});
Ex.prototype.onResize=Ex.prototype.onResize;Ex.prototype.observeForMiniGuideVisible=Ex.prototype.observeForMiniGuideVisible;Ex.prototype.computeGuidePersistentAndVisible=Ex.prototype.computeGuidePersistentAndVisible;Ex.prototype.cachedClientWidthChanged=Ex.prototype.cachedClientWidthChanged;Ex.prototype.resetGuide=Ex.prototype.resetGuide;Ex.prototype.activeEndpointChanged=Ex.prototype.activeEndpointChanged;Ex.prototype.guideOpenedChanged=Ex.prototype.guideOpenedChanged;
Ex.prototype.miniGuideVisibleChanged=Ex.prototype.miniGuideVisibleChanged;Ex.prototype.guideIsVisibleButNotPersistentChanged=Ex.prototype.guideIsVisibleButNotPersistentChanged;Ex.prototype.guidePersistentAndVisibleChanged=Ex.prototype.guidePersistentAndVisibleChanged;Ex.prototype.onGuideElementChanged=Ex.prototype.onGuideElementChanged;Ex.prototype.onGuidePersistentChanged=Ex.prototype.onGuidePersistentChanged;Ex.prototype.onRenderGuideChanged=Ex.prototype.onRenderGuideChanged;
Ex.prototype.onActiveEndpointChanged=Ex.prototype.onActiveEndpointChanged;Ex.prototype.onMiniGuideVisibleChanged=Ex.prototype.onMiniGuideVisibleChanged;Ex.prototype.onGuideIsVisibleButNotPersistentChanged=Ex.prototype.onGuideIsVisibleButNotPersistentChanged;Ex.prototype.onGuidePersistendAndVisibleChanged=Ex.prototype.onGuidePersistendAndVisibleChanged;_.c([_.M(_.J9),_.w("design:type",Object)],Ex.prototype,"ironResizableBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Ex.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Ex.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Ex.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ex.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],Ex.prototype,"disabled",void 0);
_.c([_.f(),_.w("design:type",Boolean)],Ex.prototype,"guidePersistentAndVisible",void 0);_.c([_.$v("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"onGuidePersistendAndVisibleChanged",null);_.c([_.f(),_.w("design:type",Boolean)],Ex.prototype,"guideIsVisibleButNotPersistent",void 0);
_.c([_.$v("guideIsVisibleButNotPersistent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.c([_.f(),_.w("design:type",Object)],Ex.prototype,"miniGuideVisible",void 0);_.c([_.$v("miniGuideVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"onMiniGuideVisibleChanged",null);_.c([_.f(),_.w("design:type",Boolean)],Ex.prototype,"forceMiniGuideClose",void 0);
_.c([_.f(),_.w("design:type",Object)],Ex.prototype,"activeEndpoint",void 0);_.c([_.$v("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"onActiveEndpointChanged",null);_.c([_.f(),_.w("design:type",Boolean)],Ex.prototype,"renderGuide",void 0);_.c([_.$v("renderGuide"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"onRenderGuideChanged",null);
_.c([_.f(),_.w("design:type",Object)],Ex.prototype,"guideOpened",void 0);_.c([_.f(),_.w("design:type",Boolean)],Ex.prototype,"guidePersistent",void 0);_.c([_.$v("guidePersistent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"onGuidePersistentChanged",null);_.c([_.f(),_.w("design:type",Object)],Ex.prototype,"guideUserStateOpened",void 0);_.c([_.f(),_.w("design:type",String)],Ex.prototype,"pageUrl",void 0);
_.c([_.f(),_.w("design:type",String)],Ex.prototype,"pageType",void 0);_.c([_.f(),_.w("design:type",Number)],Ex.prototype,"cachedClientWidth",void 0);_.c([_.f(),_.w("design:type",Object)],Ex.prototype,"guideElement",void 0);_.c([_.f({selector:_.SB}),_.w("design:type",Object)],Ex.prototype,"isFullscreenShorts",void 0);_.c([_.$v("guideElement"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"onGuideElementChanged",null);
_.c([_.$v("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"guidePersistentAndVisibleChanged",null);_.c([_.V1("guideIsVisibleButNotPersistent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.c([_.$v("miniGuideVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"miniGuideVisibleChanged",null);_.c([_.V1("guideOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"guideOpenedChanged",null);_.c([_.$v("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"activeEndpointChanged",null);
_.c([_.V1("pageUrl"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"resetGuide",null);_.c([_.V1("cachedClientWidth"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"cachedClientWidthChanged",null);_.c([_.$v("guideOpened","guidePersistent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"computeGuidePersistentAndVisible",null);
_.c([_.V1("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"observeForMiniGuideVisible",null);_.c([_.Kq("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ex.prototype,"onResize",null);_.c([_.z({disableElementRegistration:!0,is:"yt-guide-manager"})],Ex);var TJQ=_.A(Ex,"yt-guide-manager",void 0,{mode:_.bk("kevlar_poly_si_batch_j081")?1:2});var T9=function(){var v=_.P.apply(this,arguments)||this;v.JSC$19962_keyboardInUse=!1;v.boundHandleCapturedKeydownEvent=function(e){v.handleCapturedKeydownEvent(e)};
return v};
_.V(T9,_.P);_.W=T9.prototype;_.W.attached=function(){this.listenToDocument(document)};
_.W.listenToDocument=function(v){v.addEventListener("keydown",_.hG(this,this.onKeyDownEvent));v.addEventListener("keyup",_.hG(this,this.onKeyUpEvent));v.addEventListener("mousedown",_.hG(this,this.onMouseDownEvent));_.N("desktop_keyboard_capture_keydown_killswitch")||v.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);v.addEventListener("yt-page-data-updated",_.hG(this,this.onPageUpdate))};
_.W.detached=function(){this.unlistenFromDocument(document)};
_.W.unlistenFromDocument=function(v){v.removeEventListener("keydown",_.hG(this,this.onKeyDownEvent));v.removeEventListener("keyup",_.hG(this,this.onKeyUpEvent));v.removeEventListener("mousedown",_.hG(this,this.onMouseDownEvent));_.N("desktop_keyboard_capture_keydown_killswitch")||v.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);v.removeEventListener("yt-page-data-updated",_.hG(this,this.onPageUpdate))};
_.W.ready=function(){_.dk().addProvider({provide:_.i$,useValue:this})};
_.W.isKeyBoardInUse=function(){return this.JSC$19962_keyboardInUse};
_.W.handleCapturedKeydownEvent=function(v){if(v.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(v)};
_.W.onMouseDownEvent=function(){this.JSC$19962_keyboardInUse=!1};
_.W.onPageUpdate=function(){if(_.N("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.N("web_shorts_keyboard_shortcut_usage_log")){_.y7.clear();for(var v=_.a(_.YA),e=v.next();!e.done;e=v.next()){var d=_.a(e.value);e=d.next().value;d=d.next().value;d=_.bH(d);_.y7.set(e,d);_.Qa(_.zz(),_.Xf(),d)}_.qW.clear();v=_.a(_.mt);for(e=v.next();!e.done;e=v.next())d=_.a(e.value),e=d.next().value,d=d.next().value,d=_.bH(d),_.qW.set(e,d),_.Qa(_.zz(),_.Xf(),d);_.gV(_.zz(),_.Xf(),[].concat(_.t7(_.qW.values()),
_.t7(_.y7.values())));_.nB(_.zz(),[].concat(_.t7(_.qW.values()),_.t7(_.y7.values())))}};
_.W.onMiniplayerActiveChange=function(){var v;(v=_.dk().resolve(_.P0).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(v.document):this.unlistenFromDocument(v.document))};
_.W.ignoreKeyEvent=function(v){if(v.ctrlKey||v.altKey)if(_.N("kevlar_macro_markers_keyboard_shortcut")){if(v.keyCode!==37&&v.keyCode!==39)return!0}else return!0;var e=_.vg(v)||[];return _.ZkQ(e)?(_.N("web_button_or_anchor_list_item")&&Sof(e,v)&&(this.JSC$19962_keyboardInUse=!0),!0):v.defaultPrevented?(Rw(v.keyCode,v.shiftKey,this.isShortsPage),!0):v.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(v):!1};
_.W.isSpacebarClick=function(v){var e=v||window.event;var d;e.composedPath&&typeof e.composedPath==="function"?d=e.composedPath():d=e.path;d&&d.length?e=d[0]:(e=e||window.event,e=e.target||e.srcElement,e.nodeType==3&&(e=e.parentNode));return e&&v.keyCode===32&&(v=e.tagName==="BUTTON"||e.tagName==="A"||e.tagName==="INPUT",e=(e=e.getAttribute("role"))&&(e==="option"||e==="button"||e.indexOf("menuitem")===0),v||e)?!0:!1};
_.W.onKeyDownEvent=function(v){if(!this.ignoreKeyEvent(v)&&(v.keyCode===191&&(v.shiftKey||v.metaKey?v.repeat!=null&&v.repeat||(this.openHotkeyDialog(),Rw(v.keyCode,v.shiftKey,this.isShortsPage)):(this.focusSearchBox(),v.preventDefault())),!v.metaKey)){var e=_.dk().resolve(_.P0);switch(v.keyCode){case 9:this.JSC$19962_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(v);break;case 84:e.pipController.getWindow()&&window.focus();this.toggleTheaterMode(v.keyCode,v.shiftKey);break;case 73:e.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(v.keyCode,v.shiftKey);break;case 70:if(this.isShortsPage&&_.N("web_fullscreen_shorts")){_.c0Q();break}this.isMiniplayerActive()?e.pipController.getWindow()&&(e.close(!0),window.focus()):this.passEventToPlayer(v);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(v.keyCode,v.shiftKey):this.closeMiniplayer(v.keyCode,v.shiftKey)||this.passEventToPlayer(v);break;case 13:v.shiftKey&&_.dk().resolve(_.Jq).activate(v);break;default:this.passEventToPlayer(v)}}};
_.W.onKeyUpEvent=function(v){if(!this.ignoreKeyEvent(v))if(_.N("web_speedmaster_spacebar_control")&&v.keyCode===32)this.handlePlayerSpaceKey(v,!0);else{var e=this.getPlayerManager();e&&(e=e.getPlayer())&&e.handleGlobalKeyUp(v.keyCode,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code)}};
_.W.getPlayerManager=function(){var v=_.dB(),e=_.dk().resolve(_.eG(_.v5));return v&&e&&e.isOnWatch()?v:null};
_.W.passEventToPlayer=function(v,e){var d=this,E,T,S,O;return _.I(function(b){if(b.nextAddress==1){if(!_.N("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&d.isMiniplayerActive())E=_.dk().resolve(_.P0).getPlayerElement();else if(d.inlinePreviewIsActive){if(T=_.YB(d.hostElement,"yt-get-inline-preview-player-action"),(S=T)==null?0:S[0])E=T[0]}else E=_.dB();return E?b.yield(E.getPlayerPromise(),3):b.jumpTo(0)}O=b.yieldResult;e?O.handleGlobalKeyUp(v.keyCode,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,
v.key,v.code):O.handleGlobalKeyDown(v.keyCode,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code,v.repeat);v.keyCode!==38&&v.keyCode!==40&&Rw(v.keyCode,v.shiftKey,d.isShortsPage);_.s9(b)})};
_.W.focusSearchBox=function(){_.Iq(this.hostElement,"yt-focus-searchbox")};
_.W.openHotkeyDialog=function(){_.Iq(this.hostElement,"yt-open-hotkey-dialog")};
_.W.isMiniplayerActive=function(){return _.dk().resolve(_.P0).isMiniplayerActive()};
_.W.closeMiniplayer=function(v,e){return this.isMiniplayerActive()?(_.dk().resolve(_.P0).close(),Rw(v,e,this.isShortsPage),!0):!1};
_.W.toggleTheaterMode=function(v,e){var d=_.xj(_.d1().getState()),E=this.getPlayerManager(),T=_.N("disable_theater_mode_keyboard")||_.zr("START_IN_FULL_WINDOW_MODE");E&&!T&&(d=!d,_.SX()&&_.N("external_fullscreen")&&(d=!0),_.b4(this.hostElement,"yt-toggle-theater-mode",[d]),Rw(v,e,this.isShortsPage))};
_.W.toggleMiniplayer=function(v,e){var d=this.getPlayerManager();if(this.isMiniplayerActive()){var E;((E=_.dk().resolve(_.eG(_.v5)))==null?0:E.isOnWatch())?_.dk().resolve(_.P0).close(!0):_.CH(_.dk().resolve(_.P0));Rw(v,e,this.isShortsPage)}else d&&(_.b4(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Rw(v,e,this.isShortsPage))};
_.W.handlePlayerSpaceKey=function(v,e){var d=!!_.dB()||this.isMiniplayerActive();d=_.N("disable_space_scroll_fix")||d;_.N("global_spacebar_pause")&&!this.isKeyBoardInUse()&&d&&(v.preventDefault(),this.passEventToPlayer(v,e))};
_.W.isPresentingTheaterMode=function(){return _.N("web_watch_enable_tm_esc_key")?_.xj(_.d1().getState())&&!_.SX():!1};
T9.prototype.onMiniplayerActiveChange=T9.prototype.onMiniplayerActiveChange;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],T9.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],T9.prototype,"ytdReduxBehavior",void 0);_.c([_.f({selector:_.UNM}),_.w("design:type",Boolean)],T9.prototype,"inlinePreviewIsActive",void 0);_.c([_.f({selector:_.TMU}),_.w("design:type",Boolean)],T9.prototype,"isShortsPage",void 0);
_.c([_.f({selector:_.za}),_.w("design:type",Boolean)],T9.prototype,"miniplayerIsActive",void 0);_.c([_.$v("miniplayerIsActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],T9.prototype,"onMiniplayerActiveChange",null);_.c([_.z({disableElementRegistration:!0,is:"yt-hotkey-manager"})],T9);_.A(T9,"yt-hotkey-manager",void 0,{mode:_.bk("kevlar_poly_si_batch_j081")?1:2});var SD=function(){var v=_.P.apply(this,arguments)||this;v.loopStateEntityKey_=null;v.playlistLoopStateEntity_=null;v.isShuffleNextPlaylist=!1;v.PLAYER_EVENTS_=new Map;v.playerListenersSetup_=!1;v.videoSkipJob_=0;v.canAutoAdvance_=!1;v.playerManager_=null;v.TEST_ONLY={};return v};
_.V(SD,_.P);_.W=SD.prototype;_.W.ready=function(){_.dk().addProvider({provide:_.zJ,useValue:this.hostElement})};
_.W.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_)};
_.W.attached=function(){document.addEventListener("yt-navigate-start",_.hG(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.hG(this,this.onYtNavigateFinish_))};
_.W.detached=function(){document.removeEventListener("yt-navigate-start",_.hG(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.hG(this,this.onYtNavigateFinish_))};
_.W.updatePlaylistEventListeners=function(v,e){e&&!this.playerListenersSetup_?(this.playerManager_=v,this.registerPlaylistEventListeners_(v)):!e&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(v))};
_.W.setPlayer=function(v){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=v};
_.W.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.W.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.W.registerPlaylistEventListeners_=function(v){var e=this;v.getPlayerPromise().then(function(d){e.playerListenersSetup_||(e.ytPlayerListenerBehavior.listenToPlayerEvents(d,e.PLAYER_EVENTS_),e.playerListenersSetup_=!0)})};
_.W.removePlaylistEventListeners_=function(v){var e=this;v.getPlayerPromise().then(function(d){e.playerListenersSetup_&&(e.ytPlayerListenerBehavior.unlistenFromPlayerEvents(d,e.PLAYER_EVENTS_),e.playerListenersSetup_=!1)})};
_.W.setPlaylistComponent=function(v){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.hG(this,this.onPlaylistYtNavigate_)),v&&(v.data&&this.playlistComponent.data&&v.data.playlistId==this.playlistComponent.data.playlistId?(v.loopOn=this.playlistComponent.loopOn,v.shuffleOn=this.playlistComponent.shuffleOn):(v.loopOn=!1,v.shuffleOn=!1),this.isShuffleNextPlaylist&&(v.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=v;this.playlistComponent.addEventListener("yt-navigate",
_.hG(this,this.onPlaylistYtNavigate_))};
_.W.setAutoplayRenderer=function(v){this.autoplayData=v};
_.W.setPlaylistData=function(v){this.currentPlaylistData_=v;_.Iq(this.hostElement,"yt-playlist-data-updated");_.f0.isEmpty(v)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(v)};
_.W.setPlayerPlaybackControlData=function(v){this.playerManager_&&this.playerManager_.updatePlayerComponents(v.playlistPanelRenderer)};
_.W.getPlaylistData=function(){return this.currentPlaylistData_};
_.W.getTempData_=function(v,e){if(this.playlistComponent==null)return null;v={};this.playlistComponent.shuffleOn&&(v.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(v.loop_on=this.playlistComponent.loopOn);e&&(v.autonav="1",_.dk().resolve(_.oZ),e=_.TN(),e>0&&(v.lact=e),this.playerManager_&&(e=this.playerManager_.getPlayer())&&e.shouldSendVisibilityState()&&(e=e.getVisibilityState(),e!=0&&(v.vis=e)));_.N("enable_unknown_lact_fix_on_html5")&&(_.dk().resolve(_.oZ),v.lact=
_.TN());return v};
_.W.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.W.setLoopStateEntityKey_=function(v){var e;this.loopStateEntityKey_=((e=this.getPlaylistLoopData_(v))==null?void 0:e.playlistLoopStateEntityKey)||null};
_.W.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.W.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.W.skipVideo=function(){var v=this,e=_.N("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||e)e=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.JX(_.RM,function(){v.onPlaylistNext();v.videoSkipJob_=0},e)};
_.W.cancelVideoSkip=function(){this.videoSkipJob_&&(_.RM.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.W.isInBackground_=function(){var v=window.document.visibilityState;return!(!v||v=="visible")};
_.W.onPlaylistIndex_=function(v){this.playlistComponent&&(v=this.playlistComponent.data.contents[v].playlistPanelVideoRenderer.navigationEndpoint,_.Iq(this.hostElement,"yt-navigate",{endpoint:v,tempData:this.getTempData_(v)}))};
_.W.onPlayerStateChange_=function(v){if(v=v==0&&this.playlistComponent&&this.canAutoAdvance_)v=_.p6.getInstance(),v=!(v.autonavState_===3?v.autonavPauseReason_&&v.autonavPauseReason_.inputBoxFocus===!0:v.autonavState_===1&&v.disabledAutonavPauseReason_&&v.disabledAutonavPauseReason_.inputBoxFocus===!0);v&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.W.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.W.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.W.navigateToAutoplayWatchEndpoint_=function(v,e,d){var E=this.playlistComponent.data.currentIndex,T=this.getNumPlayableVideos_();v=="NORMAL"&&e=="autoplayVideo"&&E+1>=T&&d||!(v=this.getVideoEndpoint_(v,e))||(d=this.getTempData_(v,d),_.Iq(this.hostElement,"yt-navigate",{endpoint:v,tempData:d}))};
_.W.getNumPlayableVideos_=function(){for(var v=0,e=_.a(this.playlistComponent.data.contents||[]),d=e.next();!d.done;d=e.next())d.value.playlistPanelVideoRenderer&&(v+=1);return v};
_.W.getVideoEndpoint_=function(v,e){if(this.autoplayData&&this.autoplayData.sets)for(var d=0,E=this.autoplayData.sets.length;d<E;d++){var T=this.autoplayData.sets[d];if(T.mode==v){if(T[e])return T[e];break}}else v=new _.kL("AutoplayData is undefined in playlist manager","Mode: "+v+" endpoint: "+e),_.xf(v)};
_.W.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.W.onPlaylistYtNavigate_=function(v){if(v.detail.endpoint){v.stopPropagation();var e=v.detail;e.tempData=this.getTempData_(v.detail.endpoint);_.Iq(this.hostElement,"yt-navigate",e)}};
_.W.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.W.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.W.playlistLoopStateEntityChanged_=function(v){var e=this,d,E,T;return _.I(function(S){if(S.nextAddress==1){if(!v)return S.return();d=v.state==="PLAYLIST_LOOP_STATE_ONE";return e.playerManager_?S.yield(e.playerManager_.getPlayerPromise(),3):S.jumpTo(2)}S.nextAddress!=2&&(E=S.yieldResult,E.setLoopVideo(d));T=v.state==="PLAYLIST_LOOP_STATE_ALL";e.playlistComponent&&(e.playlistComponent.loopOn=T);_.s9(S)})};
_.W.getPlaylistLoopData_=function(v){var e,d;if(v=v==null?void 0:(e=v.playlistButtons)==null?void 0:(d=e.menuRenderer)==null?void 0:d.topLevelButtons)for(e=_.a(v),d=e.next();!d.done;d=e.next())if(d=d.value,d.playlistLoopButtonRenderer)return d.playlistLoopButtonRenderer};
_.W.getLoopStateCommand_=function(v){var e=this.getPlaylistData(),d;e=((d=this.getPlaylistLoopData_(e))==null?void 0:d.states)||[];var E;v=(E=_.L(e[v?1:2],_.GeI))==null?void 0:E.button;var T;return(T=_.L(v,_.BD))==null?void 0:T.command};
_.W.onPlayerLoopChange_=function(v){this.playlistLoopStateEntity_&&(v?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(v=this.getLoopStateCommand_(v))&&this.ytComponentBehavior.resolveCommand(v)};
_.W.onSleepTimerSettingsChanged_=function(v){this.canAutoAdvance_=v!=="End of video"};
SD.prototype.onPlaylistLoopStateEntityChanged=SD.prototype.onPlaylistLoopStateEntityChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],SD.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.UF.YtPlayerListenerBehavior),_.w("design:type",_.pg)],SD.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],SD.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],SD.prototype,"loopStateEntityKey_",void 0);
_.c([_.f({selectorArgs:["loopStateEntityKey_"],selector:_.uNO}),_.w("design:type",Object)],SD.prototype,"playlistLoopStateEntity_",void 0);_.c([_.$v("playlistLoopStateEntity_"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SD.prototype,"onPlaylistLoopStateEntityChanged",null);_.c([_.z({disableElementRegistration:!0,is:"yt-playlist-manager"})],SD);_.A(SD,"yt-playlist-manager",void 0,{mode:_.bk("kevlar_poly_si_batch_j081")?1:2});var Sm_,Wdi=function(){if(Sm_!==void 0)return Sm_;var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Sm_=v};var Wm=function(){var v=_.P.apply(this,arguments)||this;v.lastCallback=null;v.getAccountLinkPromises={};v.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);v.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return v};
_.V(Wm,_.P);_.W=Wm.prototype;_.W.getLocation=function(){return window.location.href};
_.W.getCompletionUrl=function(){return _.dV(this.getLocation())};
_.W.containsRedirectState=function(v){return(v=_.$5(_.Jq3(v)))?(new URLSearchParams(v)).get("redirect_state")!==null:!1};
_.W.createGalConfig=function(v,e){var d=new $Fs;v=d=e?this.getPopupOrRedirectSetting(d,_.Bb("LINK_API_KEY"),_.Bb("LINK_API_KEY_REDIRECT"),v):jdS(d,_.Bb("LINK_API_KEY"));v.authUser=_.Bb("SESSION_INDEX")||0;v.supportedFlows=new Set([4]);return v.build()};
_.W.getPopupOrRedirectSetting=function(v,e,d,E){this.isGalInteractionPopupMode(E)?(v.interactionMode=0,v=jdS(v,e)):(v.interactionMode=1,e=this.getCompletionUrl(),v.completionUrl=e,v=jdS(v,d));return v};
_.W.isGalInteractionPopupMode=function(v){if(this.redirectModeProviderAllowlist.has(v))switch(v){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.W.getStatusEntityKeyForProviderId=function(v){return _.rg(v+":all","accountLinkStatusEntity")};
_.W.findNestedPropValue=function(v,e){var d=!1,E=null;JSON.stringify(v,function(T,S){d||T!==e||(d=!0,E=S);return d?null:S});
return E};
_.W.findAccountLinkButtonViewModel=function(v,e){var d=null,E=!1;JSON.stringify(v,function(T,S){E||S.accountLinkStatusEntityKey!==e||S.accountLinkStatusSecondaryEntityKey||(E=!0,d=S);return E?null:S});
return d};
_.W.executeLinkingSuccessOrFailureCommands=function(v,e,d){var E=null,T;(e==null?0:(T=e.url)==null?0:T.includes("account_sharing"))?E=e==null?void 0:e.response:E=e==null?void 0:e.response;(e=this.findAccountLinkButtonViewModel(E,v))?(v=d?this.findNestedPropValue(e,"onSuccessCommand"):this.findNestedPropValue(e,"onFailureCommand"))?_.hU([v],this.hostElement):_.ZV(Error("ql")):_.ZV(Error("rl`"+v))};
_.W.handleInitializeRequest=function(v,e){var d=this,E=EEO(this.createGalConfig(v,!0));this.containsRedirectState(this.getLocation())?UEi(v,E.config,E.galService).then(function(T){var S=d.getStatusEntityKeyForProviderId(v);if(T.statusCode===1)e&&d.executeLinkingSuccessOrFailureCommands(S,e,!0),T=d.getLocation().indexOf("#"),T!==-1&&window.history.pushState(null,"",d.getLocation().substring(0,T));else return e&&d.executeLinkingSuccessOrFailureCommands(S,e,!1),Promise.reject(Error(T.statusMessage))}).catch(function(T){_.xf(T);
_.tI("gamingAccountLinkStatusChanged",{serviceId:v,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(T)}):this.getAccountLinkPromises[v]=E.startLinkingSession({serviceId:v})};
_.W.handleAccountLinkCommand=function(v){_.L(v,WO_)&&this.handleLinkRequest(_.L(v,WO_))};
_.W.handleLinkRequest=function(v){var e=this,d=v.thirdPartyId;if(d)if(this.isGalInteractionPopupMode(d)){var E=function(){e.closeAndFire("ytd-gaming-account-link-setting-renderer",v.onFailureCommand)},T=function(){e.closeAndFire("ytd-gaming-account-link-setting-renderer",v.onSuccessCommand)};
this.lastCallback=T;this.getAccountLinkPromises[d].then(function(S){pBS(S).then(function(O){O.statusCode===1?T():E()})}).catch(function(){E()})}else this.getAccountLinkPromises[d].then(function(S){pBS(S).then(function(O){if(O.statusCode!==1)return Promise.reject(Error(O.statusMessage))})}).catch(function(S){_.xf(S);
_.tI("gamingAccountLinkStatusChanged",{serviceId:d,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(S)})};
_.W.closeAndFire=function(v,e){_.b4(this.hostElement,"yt-close-popup-action",[v]);e&&_.hU([e],this.hostElement)};
_.W.handleAccountUnlinkCommand=function(v){_.L(v,abf)&&this.handleUnlinkRequest(_.L(v,abf))};
_.W.handleUnlinkRequest=function(v){var e=this,d=v.thirdPartyId;if(d){var E=function(){e.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",v.onFailureCommand)},T=function(){e.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",v.onSuccessCommand)};
this.lastCallback=T;var S=EEO(this.createGalConfig(d,!1));this.unlinkUserGal(S,d).then(function(O){O.statusCode===1?T():E()}).catch(function(){E()})}};
_.W.unlinkUserGal=function(v,e){return v.deleteLink(e)};
_.W.handleLogAccountLinkingEventCommand=function(v){_.N("enable_gel_log_commands")&&_.L(v,iRO)&&(v=_.L(v,iRO).event)&&_.tI("gamingAccountLinkStatusChanged",v)};
_.vP.Object.defineProperties(Wm,{template:{configurable:!0,enumerable:!0,get:function(){return Wdi()}}});
_.c([_.M(_.h5.YtOpenPopupBehavior),_.w("design:type",Object)],Wm.prototype,"ytOpenPopupBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Wm.prototype,"ytActionHandlerBehavior",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Wm);_.A(Wm,"ytd-third-party-manager",function(){return Wdi()},{mode:_.bk("kevlar_poly_si_batch_j081")?1:2});var alS,iGv=function(){if(alS!==void 0)return alS;var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return alS=v};var aX=function(){var v=_.P.apply(this,arguments)||this;v.currentPage=void 0;v.renderLoadingStateJobId=0;v.updatePageDataJobId=0;v.pageDisposeJobsets=new WeakMap;v.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"};v.shouldApplyLockupToWatchTransition=_.N("web_thumbnail_to_watch_transition");v.shouldApplySlideTransition=_.aH("web_page_transition_type")==="slide"||_.N("enable_plj_landing_page");v.shouldApplyLearningJourneyTransition=_.N("enable_plj_landing_page");v.TEST_ONLY=void 0;return v};
_.V(aX,_.P);_.W=aX.prototype;_.W.ready=function(){var v=_.dk();v.addProvider({provide:_.v5,useValue:this});v.addProvider({provide:_.LKA,useValue:this})};
_.W.created=function(){this.pagePool=new PTS;this.contextSwitcher=new g1w};
_.W.attached=function(){_.Iq(this.hostElement,"attached");var v=_.dk().resolve(_.eG(_.zo));v&&(this.contextSwitcher.JSC$19788_networkService_=v);this.viewTransitionManager=_.dk().resolve(_.j_)};
_.W.getPageOffset=function(v){return v.getScrollTop()};
_.W.setPageOffset=function(v,e){try{v.setScrollTop(e)}catch(d){}};
_.W.setPageOffsetForNavigation=function(v,e){_.Iq(this.hostElement,"yt-navigate-set-page-offset",{page:v,offset:e===void 0?0:e})};
_.W.pauseActiveContext=function(){var v=this.contextSwitcher;v.activeContext_&&v.activeContext_.pause()};
_.W.getModuleNameForType=function(v){return v==="watch"?_.N("kevlar_watch_fixie")?"watchFixie":_.N("kevlar_watch_grid")?"watchGrid":"watchFlexy":v==="shorts"||v==="search"?v:"browse"};
_.W.attachPage=function(v){var e,d=!_.N("pc_is_attached_ks")&&(v==null?void 0:(e=v.polymerController)==null?void 0:e.isAttached);if(!v.isAttached&&!d)try{_.IB(this.hostElement).appendChild(v)}catch(T){var E;_.xf(new _.kL("Error attaching page element for component",{origin:(E=this.currentPage)==null?void 0:E.is,component:v.is}))}};
_.W.setActivePage=function(v){var e=this,d=!1,E=function(){var T=e.isOnWatch(),S=e.currentPage;if(v)if(v!==e.currentPage){S&&(S.hidden=!0,S.active=!1,S.removeAttribute("role"));e.currentPage=v;var O,b=_.kE((O=e.data)==null?void 0:O.endpoint);S&&_.Iq(e.hostElement,"yt-page-type-changed",{oldPageType:S.is,newPageType:v.is,newPageSubtype:b});_.pq().dispatch(_.Oo({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:v.is}));_.pq().dispatch(_.Oo({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:b||""}));v.hidden=
!1;e.attachPage(v);v.active=!0;v.setAttribute("role","main");S&&e.setPageOffsetForNavigation(v,0);_.N("kevlar_remove_page_dom_on_switch")&&!T&&S&&_.IB(e.hostElement).removeChild(S)}else d=!0;else e.handleMissingDestinationPage(S)};
this.shouldRunBrowseTransition(this.currentPage,v)?yRw(this.viewTransitionManager,E):this.shouldRunLearningJourneyTransition(this.currentPage,v)?hoQ(this.viewTransitionManager,E):E();return d};
_.W.handleMissingDestinationPage=function(v){if(this.isColdLoadForUnknownPage(v))_.xf(new _.kL("Cold load for unknown page"));else{var e;v=new _.kL("Unable to set active page",v?v.is:"unknown origin",(e=this.data)==null?void 0:e.endpoint);_.RI(v)}};
_.W.isColdLoadForUnknownPage=function(v){return!v&&sH(this.data)==="unknown"};
_.W.shouldRunBrowseTransition=function(v,e){return this.shouldApplySlideTransition&&(v==null?void 0:v.is)==="ytd-browse"&&(e==null?void 0:e.is)==="ytd-browse"&&v!==e};
_.W.shouldRunLearningJourneyTransition=function(v,e){return this.shouldApplyLearningJourneyTransition&&(v==null?void 0:v.is)==="ytd-browse"&&((e==null?void 0:e.is)==="ytd-watch-learning-journey"||(e==null?void 0:e.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.W.shouldRunWatchNextLoadedTransition=function(v,e){return this.viewTransitionManager&&v.is==="ytd-watch-flexy"&&e};
_.W.updatePageData=function(v){var e=this,d=this.data;this.updatePageDataJobId&&_.RM.cancelJob(this.updatePageDataJobId);this.data=v;return new _.yf(function(E){var T=function(){v.filler?e.performDataUpdate(v,d):LCi(function(){e.performDataUpdate(v,d)});
var Y=_.HH();_.Ad(Y,"cr")||Y.processSignal("cr");E()},S=function(){v&&v.page==="watch"?e.updatePageDataJobId=_.JX(_.RM,T):T()};
if(_.N("kevlar_enable_mss_page_modules_client")&&v){var O=_.dk().resolve(_.B0),b=e.getModuleNameForType(v.page);(O=Ykf(O,[b]))?O.then(S):S()}else S()})};
_.W.isDownloadsPage=function(v){var e,d;return(v==null?void 0:(e=v.endpoint)==null?void 0:(d=e.browseEndpoint)==null?void 0:d.browseId)==="FEdownloads"};
_.W.setPlayerSyncInterval=function(v){var e;return _.I(function(d){if(d.nextAddress==1)return d.yield(_.dk().resolve(_.a7),2);e=d.yieldResult;e.setUpPositionSyncInterval(v);_.s9(d)})};
_.W.performDataUpdate=function(v,e){_.N("kevlar_early_popup_close")||_.b4(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var d=!v.filler;d&&(_.zE("lps"),_.N("config_age_report_killswitch")||rUS());var E=sH(v),T,S=!1;if(_.N("kevlar_remove_page_dom_on_switch")){var O=e&&sH(e);E===O&&(T=this.getCurrentPage())}T||(T=uu(this.pagePool,E));d&&J1O(this.pagePool.elementPoolPopulator,E);d&&!this.renderLoadingStateJobId&&(S=this.setActivePage(T));if(T){O=E==="watch";var b=
E==="shorts",Y=E==="learning_journey_watch";_.N("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(T);if(O||b||Y)T.playerData=v.playerResponse;if(b)if(_.N("web_enable_delay_shorts_sequence_call")){v.reelWatchSequenceResponse&&(v.reelWatchSequenceResponse.entries||v.reelWatchSequenceResponse.prevEntries)&&(T.reelWatchSequenceResponse=v.reelWatchSequenceResponse);T.currentEndpoint=v.endpoint;var q;T.isPreviousPageShorts=!!(e==null?0:(q=e.endpoint)==null?0:q.reelWatchEndpoint);
var r,h;v.cachedSequenceParams=((r=v.endpoint)==null?void 0:(h=r.reelWatchEndpoint)==null?void 0:h.sequenceParams)||v.cachedSequenceParams||(e==null?void 0:e.cachedSequenceParams);var K,k;v.cachedSequenceProvider=((K=v.endpoint)==null?void 0:(k=K.reelWatchEndpoint)==null?void 0:k.sequenceProvider)||v.cachedSequenceProvider||(e==null?void 0:e.cachedSequenceProvider);T.cachedSequenceParams=v.cachedSequenceParams;T.cachedSequenceProvider=v.cachedSequenceProvider}else{v.reelWatchSequenceResponse&&(v.reelWatchSequenceResponse.entries||
v.reelWatchSequenceResponse.prevEntries)?T.reelWatchSequenceResponse=v.reelWatchSequenceResponse:v.cachedReelWatchSequenceResponse?T.reelWatchSequenceResponse=v.cachedReelWatchSequenceResponse:_.N("web_enable_cached_reel_sequence_fix")&&T.cachedReelWatchSequenceResponse&&!T.reelWatchSequenceResponse&&(T.reelWatchSequenceResponse=T.cachedReelWatchSequenceResponse);T.currentEndpoint=v.endpoint;var J;T.isPreviousPageShorts=!!(e==null?0:(J=e.endpoint)==null?0:J.reelWatchEndpoint);v.cachedReelWatchSequenceResponse=
v.reelWatchSequenceResponse||v.cachedReelWatchSequenceResponse||(e==null?void 0:e.cachedReelWatchSequenceResponse);T.cachedReelWatchSequenceResponse=v.cachedReelWatchSequenceResponse}q=this.isDownloadsPage(v);r=this.isDownloadsPage(e);q&&!r?this.setPlayerSyncInterval(6E5):!q&&r&&this.setPlayerSyncInterval();_.N("block_all_player_prefetch_requests")||this.preparePrefetchRequest(v,T,d,O,b,Y);KXO(_.dk().resolve(_.P0),e,v);_.Sq(_.dk().resolve(_.oZ));_.N("kevlar_flush_jobs_before_setting_player_response")||
this.flushPageDisposeJobset(T);d?(d=typeof T.loadPage,d==="function"?(T.pageContext=uU1(this.contextSwitcher,T,T.data!==v.response),d=function(){T.loadPage(v.response)},this.shouldApplySlideTransition&&T.is==="ytd-browse"&&S&&(E==="learning"||this.isDifferentBrowseId(v==null?void 0:v.endpoint,e==null?void 0:e.endpoint))?yRw(this.viewTransitionManager,d):this.shouldRunWatchNextLoadedTransition(T,S)?rRi(this.viewTransitionManager,d):d()):_.PV(new _.kL("b/38014653 ",[E,
T.is,T.nodeName,d,T.isAttached,e&&sH(e),this.hostElement.children.length])),_.zE("pdl")):(T.hidden=!0,v.response.filler=!0,T.data=v.response,this.attachPage(T));_.Iq(this.hostElement,"yt-page-data-updated",{pageType:E})}_.LI(_.RM,function(){_.N("logging_avoid_blocking_during_navigation")&&_.e0U().transition("none");var R=I39(),B=T;if(v){var X=ueC(v),Z=nvs(v),U;a:{if(v.playerResponse){var F=v.playerResponse,g;if((U=F.auxiliaryUi)==null?0:(g=U.messageRenderers)==null?0:g.upsellDialogRenderer){U=F.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(v.response&&(U=v.response,(F=U.overlay)==null?0:F.upsellDialogRenderer)){U=U.overlay.upsellDialogRenderer;break a}U=void 0}var Q;var v3;g=(Q=v.playerResponse)==null?void 0:(v3=Q.auxiliaryUi)==null?void 0:v3.messageRenderers;Q=(g==null?void 0:g.enforcementMessageViewModel)||(g==null?void 0:g.bkaEnforcementMessageViewModel);Q=(Q==null?void 0:Q.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?Q:void 0;var q7;a:{if(v.response&&(v3=v.response,(q7=v3.overlay)==null?0:
q7.commandWrapperPromoRenderer)){q7=v3.overlay.commandWrapperPromoRenderer;break a}q7=void 0}Oji(R,X,Z,U,Q,q7,B)}})};
_.W.preparePrefetchRequest=function(v,e,d,E,T,S){var O,b,Y,q,r,h,K,k,J,R,B,X,Z,U,F;return _.I(function(g){if(g.nextAddress==1)return!d||!(E||T||S)||_.N("kevlar_disable_background_prefetch")&&_.Hb(_.Tst)()===0?g.return():(O=_.eK(e))?g.yield(O.getPlayerPromise(),2):g.return();b=g.yieldResult;Y=_.dk().resolve(_.eG(_.zo));if(!Y)return g.return();if(T)return q=_.nr(_.Ls),x0C(q,(r=v.endpoint)==null?void 0:r.reelWatchEndpoint,e.reelWatchSequenceResponse,b,Y),g.return();k=(h=v.response)==null?void 0:(K=h.responseContext)==
null?void 0:K.webResponseContextExtensionData;if(!k)return g.return();Z=(J=v.response)==null?void 0:(R=J.contents)==null?void 0:(B=R.twoColumnWatchNextResults)==null?void 0:(X=B.autoplay)==null?void 0:X.autoplay;U=_.dk().resolve(_.zJ);F=_.nr(_.Ls);Bp9(F,k,b,Y,U,Z);_.s9(g)})};
_.W.movePlayerToWatch=function(v){var e=this,d,E;return _.I(function(T){d=uu(e.pagePool,"watch");E=d.getPlayerContainer();v.appendTo(E);_.s9(T)})};
_.W.movePlayerToShorts=function(v){var e=this,d,E,T;return _.I(function(S){d=uu(e.pagePool,"shorts");E=d.getPlayerContainer();(T=v)==null||T.appendTo(E,void 0,!0);_.s9(S)})};
_.W.getPlayerFromWatch=function(){var v=uu(this.pagePool,"watch");return _.eK(v)};
_.W.getPlayerFromShorts=function(){var v=uu(this.pagePool,"shorts");return _.eK(v)};
_.W.startLoadingWatch=function(){var v=this,e=uu(this.pagePool,"watch");this.renderLoadingStateJobId?(_.RM.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.N("web_watch_transition_enable_start_loading_watch_callsite")?qk9(this.viewTransitionManager,function(){v.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(e)};
_.W.startLoadingShorts=function(){var v=uu(this.pagePool,"shorts");this.setActivePage(v)};
_.W.startLoadingLearningJourney=function(){var v=uu(this.pagePool,"learning_journey_watch");this.setActivePage(v)};
_.W.getCurrentPage=function(){return this.currentPage};
_.W.getDestinationPageType=function(){return this.destinationPageType};
_.W.getCurrentData=function(){return this.data};
_.W.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.W.isOnShorts=function(){var v;return((v=this.currentPage)==null?void 0:v.is)==="ytd-shorts"};
_.W.isWatchPage=function(v){return!!v&&(v.is==="ytd-watch-flexy"||v.is==="ytd-watch-fixie"||v.is==="ytd-watch-grid")};
_.W.preparePage=function(v,e){var d=this,E=function(){var O=d.pagePool.preparePage(v,d.currentPage,e);O&&d.attachPage(O)},T=function(O){_.BV(O,e);
_.xf(O)};
if(_.N("kevlar_enable_mss_page_modules_client")){var S=this.getModuleNameForType(v);if(S=Ykf(_.dk().resolve(_.B0),[S])){S.then(E.bind(this)).catch(T.bind(this));return}}try{E()}catch(O){T(O)}};
_.W.lazyPrepareCriticalPages=function(v,e){v=_.kE(e)||v;_.N("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(v).then(this.maybePrepareWatchPage.bind(this,v)):this.maybePrepareWatchPage(v)};
_.W.maybePrepareWatchPage=function(v){v!=="watch"&&_.LI(_.RM,this.preparePage.bind(this,"watch"))};
_.W.downloadPageModules=function(v){v=this.getModuleNameForType(v);var e=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);e.delete(v);var d=_.dk().resolve(_.B0);d.JSC$18531_loadModules(v);return d.JSC$18531_loadModules.apply(d,_.t7(e))};
_.W.renderPageLoadingState=function(v,e){this.preparePage(v,e);var d=uu(this.pagePool,v);d.loadingData&&(d.loadingData.endpoint=e);d.loading=!0;this.setActivePage(d);v!=="watch"&&v!=="learning_journey_watch"||_.Iq(this.hostElement,"yt-guide-close")};
_.W.prepareForNavigation=function(v,e){var d=this;if(this.currentPage&&this.data){var E=_.kE(e)||v;this.destinationPageType=E;sH(this.data)==E&&_.Iq(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((v==="watch"||v==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.RM.cancelJob(this.renderLoadingStateJobId);_.dk().resolve(_.P0).deactivate(e);_.NP(_.RM,function(){var S=d.viewTransitionManager,O=d.currentPage;
if(S.isLockupToWatchTransitionEnabled&&S.isLockupThumbnailRegistrationEnabled&&O)if(S.registeredLockupThumbnail)S.lockupThumbnailRegisteredFromWatchEndpoint&&_.xf(new _.kL("Lockup thumbnail already registered from watch endpoint."));else{a:{var b=_.L(e,_.p2);if(b==null?0:b.videoId){var Y="yt-lockup-view-model ."+_.O3$(b.videoId)+" yt-thumbnail-view-model";O=O.querySelectorAll(Y);if(O.length===1){b=O[0];break a}O.length>1?_.xf(new _.kL("Multiple LockupViewModel thumbnails found for videoId: "+b.videoId+
". Selector: "+Y)):_.N("web_thumbnail_to_watch_transition_debug")&&_.xf(new _.kL("No LockupViewModel thumbnail found for videoId: "+b.videoId+". Selector: "+Y))}b=void 0}b&&(S.registeredLockupThumbnail=b,S.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.Sa_(S,b))}});
var T=this.data;this.renderLoadingStateJobId=_.NP(_.RM,function(){qk9(d.viewTransitionManager,function(){if(d.data!=T){var S=uu(d.pagePool,v);d.setActivePage(S)}else d.renderPageLoadingState(v,e);d.renderLoadingStateJobId=0})},150)}};
_.W.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var v=new _.SZ(1);this.currentPage.pageDisposeJobs.forEach(function(e){_.Wh(v,e)});
this.pageDisposeJobsets.set(this.currentPage,v)}};
_.W.flushPageDisposeJobset=function(v){var e=this.pageDisposeJobsets.get(v);e&&(e.flushJobs(),this.pageDisposeJobsets.delete(v))};
_.W.onYtStopOldPlayer=function(v,e){e=e===void 0?!1:e;var d,E=_.iY("kevlar_new_stop_old_player_logic_pages");if(_.N("kevlar_check_current_page_on_stop_old_player")&&(E.length===0||this.currentPage&&E.includes(this.currentPage.is)))if(this.data&&(d=sH(this.data)),sH(v)===d&&this.currentPage&&sH(this.currentPage.data)!==d)var T=_.eK(this.currentPage);else d=sH(this.data),T=uu(this.pagePool,d),T=_.eK(T);else this.data&&(d=sH(this.data),T=uu(this.pagePool,d),T=_.eK(T));if(T)if(v=sH(v),E=uu(this.pagePool,
v),E=_.eK(E),T==E)e&&!_.N("kevlar_disable_preemptive_player_reset")&&T.resetForNewPlayback();else if(e=d==="watch"&&v!=="watch",!e||v==="shorts"||_.VYM()&&!b2i(this.data)&&v!=="yts-products"&&v!="mini_app"&&v!="playables")d=_.dk().resolve(_.P0),e&&d.isMiniplayerActive()&&d.pipController.getWindow()||T.stop()};
_.W.isDifferentBrowseId=function(v,e){v=_.L(v,_.Lo);e=_.L(e,_.Lo);return(v==null?void 0:v.browseId)!==(e==null?void 0:e.browseId)};
_.vP.Object.defineProperties(aX,{template:{configurable:!0,enumerable:!0,get:function(){return iGv()}}});
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],aX.prototype,"ytActionHandlerBehavior",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-page-manager"})],aX);_.A(aX,"ytd-page-manager",function(){return iGv()},{mode:_.bk("kevlar_poly_si_batch_j081")?1:2});var OGS;var iJ=function(){var v=_.P.apply(this,arguments)||this;v.useListItemStyles=_.N("web_list_item_style_for_menu_items");v.systemIcons=_.N("kevlar_system_icons");return v};
_.V(iJ,_.P);_.W=iJ.prototype;_.W.ready=function(){this.hostElement.addEventListener("tap",_.hG(this,this.onEndpointTapExtra))};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.W.onFocus=function(){var v;(v=_.IB(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.W.onEndpointTapExtra=function(v){_.Iq(this.hostElement,"iron-activate");var e=this.data.navigationEndpoint;e&&_.L(e,_.Pt0)&&(v.stopPropagation(),_.ya(this.hostElement,[e],this.hostElement))};
_.W.computeIcon=function(v){return v&&v.iconType?_.qC(v.iconType):""};
_.W.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.W.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.W.forceUpdateStylesOnLegacyBrowsers=function(){_.N("kevlar_legacy_browsers")&&_.qr(this.hostElement)};
iJ.prototype.forceUpdateStylesOnLegacyBrowsers=iJ.prototype.forceUpdateStylesOnLegacyBrowsers;iJ.prototype.onFocus=iJ.prototype.onFocus;_.c([_.M(_.dK),_.w("design:type",Object)],iJ.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.U2i.YtConditionalRendererBehavior),_.w("design:type",Object)],iJ.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.M(_.KR.YtEndpointBehavior),_.w("design:type",Object)],iJ.prototype,"ytEndpointBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],iJ.prototype,"data",void 0);_.c([_.f({computed:"computeIcon(data.icon)",value:""}),_.w("design:type",String)],iJ.prototype,"icon",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],iJ.prototype,"useIcons",void 0);_.c([_.f({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.w("design:type",Boolean)],iJ.prototype,"hasSeparator",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],iJ.prototype,"useListItemStyles",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],iJ.prototype,"systemIcons",void 0);_.c([_.Kq("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],iJ.prototype,"onFocus",null);_.c([_.$v("useIcons","hasSeparator"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],iJ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.A(iJ,"ytd-menu-navigation-item-renderer",function(){if(OGS===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);OGS=v}v=OGS;return v},{mode:1});var Ilv;var bGC=_.pQ(_.sz("DOWNLOAD",{},"Download")),YmC=_.pQ(_.sz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),mxv=_.pQ(_.sz("RETRY",{},"Retry")),yTs=_.pQ(_.sz("PAUSE_DOWNLOADING",{},"Pause downloading")),qmv=_.pQ(_.sz("RESUME_DOWNLOAD",{},"Resume download")),Ox=function(){var v=_.P.apply(this,arguments)||this;v.primaryText=bGC;v.primaryIconType="OFFLINE_DOWNLOAD";v.hasSecondaryContent=!1;v.hasSeparator=!1;v.transferState="TRANSFER_STATE_UNKNOWN";v.isVideoDeletedByUser=!1;v.isHidden=!1;v.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return v};
_.V(Ox,_.P);_.W=Ox.prototype;_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.W.onFocus=function(){this.primaryEntry.focus()};
_.W.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.W.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.W.getRemoveAction=function(){return"ACTION_REMOVE"};
_.W.sendOfflineAction=function(v){var e=this.data.serviceEndpoint;if(e){var d=_.L(e,_.rB);d&&v&&(d.action=v);this.ytComponentBehavior.resolveCommand(e)}};
_.W.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=bGC,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=bGC;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=mxv;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=YmC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=qmv;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=YmC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
yTs;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=YmC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=YmC;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=bGC,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.W.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.W.isSecondaryEntryHidden=function(v,e){return v?!0:!e};
_.W.computeHasSeparator=function(){var v;return!((v=this.data)==null||!v.hasSeparator)};
Ox.prototype.showHideButton=Ox.prototype.showHideButton;Ox.prototype.onTransferStateChange=Ox.prototype.onTransferStateChange;Ox.prototype.onFocus=Ox.prototype.onFocus;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Ox.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Ox.prototype,"ytComponentBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Ox.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Ox.prototype,"primaryText",void 0);_.c([_.f(),_.w("design:type",String)],Ox.prototype,"primaryIconType",void 0);_.c([_.f(),_.w("design:type",String)],Ox.prototype,"primaryAction",void 0);_.c([_.f(),_.w("design:type",Object)],Ox.prototype,"secondaryText",void 0);_.c([_.f(),_.w("design:type",String)],Ox.prototype,"secondaryIconType",void 0);
_.c([_.f(),_.w("design:type",String)],Ox.prototype,"secondaryAction",void 0);_.c([_.f(),_.w("design:type",Object)],Ox.prototype,"hasSecondaryContent",void 0);_.c([_.f({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.w("design:type",Object)],Ox.prototype,"hasSeparator",void 0);_.c([_.f({selector:_.A_,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.w("design:type",String)],Ox.prototype,"transferState",void 0);
_.c([_.f({selector:_.rb7,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.w("design:type",Object)],Ox.prototype,"isVideoDeletedByUser",void 0);_.c([_.f(),_.w("design:type",Object)],Ox.prototype,"isHidden",void 0);_.c([_.f({selector:_.Oss,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.w("design:type",Object)],Ox.prototype,"offlineabilityState",void 0);_.c([_.sg("#primary-entry"),_.w("design:type",Object)],Ox.prototype,"primaryEntry",void 0);
_.c([_.Kq("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ox.prototype,"onFocus",null);_.c([_.V1("transferState","isVideoDeletedByUser"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ox.prototype,"onTransferStateChange",null);_.c([_.V1("offlineabilityState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ox.prototype,"showHideButton",null);
_.A(Ox,"ytd-menu-service-item-download-renderer",function(){if(Ilv===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);Ilv=v}v=Ilv;return v},{mode:1});var rTv;var IX=function(){var v=_.P.apply(this,arguments)||this;v.useIcons=!1;v.systemIcons=_.N("kevlar_system_icons");v.useListItemStyles=_.N("web_list_item_style_for_menu_items");return v};
_.V(IX,_.P);_.W=IX.prototype;_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.W.onFocus=function(){var v;(v=_.IB(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.W.onTap=function(){_.YB(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var v=this.data.serviceEndpoint,e=this.data.command;if(v){var d,E=(d=this.data)==null?void 0:d.trackingParams;d=!!_.L(v,_.XAu);E&&d&&_.d1().dispatch(_.Oo({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:E}}));this.ytComponentBehavior.resolveCommand(v)||_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}})}e&&(this.ytComponentBehavior.resolveCommand(e)||_.ya(this.hostElement,
[e],this.hostElement))};
_.W.computeIcon=function(v){return v&&v.iconType?_.qC(v.iconType):""};
_.W.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.W.computeHasSeparator=function(){var v;return!((v=this.data)==null||!v.hasSeparator)};
_.W.forceUpdateStylesOnLegacyBrowsers=function(){_.N("kevlar_legacy_browsers")&&_.qr(this.hostElement)};
_.W.computeIsSelected=function(){var v;return!((v=this.data)==null||!v.isSelected)};
IX.prototype.forceUpdateStylesOnLegacyBrowsers=IX.prototype.forceUpdateStylesOnLegacyBrowsers;IX.prototype.onTap=IX.prototype.onTap;IX.prototype.onFocus=IX.prototype.onFocus;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],IX.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.U2i.YtConditionalRendererBehavior),_.w("design:type",Object)],IX.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],IX.prototype,"data",void 0);_.c([_.f({computed:"computeIcon(data.icon)",value:""}),_.w("design:type",String)],IX.prototype,"icon",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],IX.prototype,"useIcons",void 0);
_.c([_.f({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.w("design:type",Boolean)],IX.prototype,"hasSeparator",void 0);_.c([_.f({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.w("design:type",Boolean)],IX.prototype,"isSelected",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],IX.prototype,"systemIcons",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],IX.prototype,"useListItemStyles",void 0);
_.c([_.Kq("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IX.prototype,"onFocus",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],IX.prototype,"onTap",null);_.c([_.$v("useIcons","hasSeparator"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IX.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.A(IX,"ytd-menu-service-item-renderer",function(){if(rTv===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);rTv=v}v=rTv;return v},{mode:2});var h5v;var bJ=function(){return _.P.apply(this,arguments)||this};
_.V(bJ,_.P);_.W=bJ.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.onDataChanged=function(){var v=this;_.Uh(this,function(){v.postbox.openDialog();v.focus();_.Iq(v.hostElement,"yt-refit")})};
_.W.focus=function(){this.postbox.focus()};
_.W.closePopup=function(){_.b4(this.hostElement,"yt-close-popup-action")};
_.W.onYtCommentboxDismiss=function(){this.closePopup()};
bJ.prototype.onYtCommentboxDismiss=bJ.prototype.onYtCommentboxDismiss;bJ.prototype.onDataChanged=bJ.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],bJ.prototype,"data",void 0);_.c([_.f({value:function(){return _.sz("SBOX_INAPPROPRIATE_CANCEL")}}),
_.w("design:type",String)],bJ.prototype,"closeButtonAriaLabel",void 0);_.c([_.sg("#postbox"),_.w("design:type",Object)],bJ.prototype,"postbox",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bJ.prototype,"onDataChanged",null);_.c([_.Kq("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bJ.prototype,"onYtCommentboxDismiss",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],bJ);
_.A(bJ,"ytd-backstage-post-dialog-popup-renderer",function(){if(h5v!==void 0)return h5v;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return h5v=v},{mode:1});var Kds;var Yd=function(){return _.P.apply(this,arguments)||this};
_.V(Yd,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Yd.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Yd);
_.A(Yd,"ytd-sender-id-section-renderer",function(){if(Kds!==void 0)return Kds;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return Kds=v},{mode:1});var $xt;var j39;var s39;var mo=function(){return _.P.apply(this,arguments)||this};
_.V(mo,_.P);mo.prototype.closePopup=function(){_.b4(this.hostElement,"yt-close-popup-action")};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],mo.prototype,"data",void 0);_.c([_.lh({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],mo);
_.A(mo,"yt-community-post-section-renderer",function(){if(s39===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;j39===void 0&&(j39=document.createElement("template"));var E=j39;d.call(e,E.content.cloneNode(!0),v.content.firstChild);s39=v}v=s39;return v},{mode:2});var NJi;var kSv;var LdS;var VpC;var o8S;var JTS;var y_=function(){return _.P.apply(this,arguments)||this};
_.V(y_,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],y_.prototype,"data",void 0);_.c([_.lh({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],y_);
_.A(y_,"yt-share-start-time-with-context-renderer",function(){if(JTS===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;o8S===void 0&&(o8S=document.createElement("template"));var E=o8S;d.call(e,E.content.cloneNode(!0),v.content.firstChild);JTS=v}v=JTS;return v},{mode:2});var qQ=function(){return _.P.apply(this,arguments)||this};
_.V(qQ,_.P);qQ.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],qQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],qQ.prototype,"data",void 0);_.c([_.lh({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],qQ);
_.A(qQ,"yt-share-panel-title-v15-renderer",function(){if(VpC===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;LdS===void 0&&(LdS=document.createElement("template"));var E=LdS;d.call(e,E.content.cloneNode(!0),v.content.firstChild);VpC=v}v=VpC;return v},{mode:2});var r_=function(){return _.P.apply(this,arguments)||this};
_.V(r_,_.P);r_.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],r_.prototype,"data",void 0);_.c([_.lh({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],r_);
_.A(r_,"yt-share-panel-header-renderer",function(){if(kSv===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;NJi===void 0&&(NJi=document.createElement("template"));var E=NJi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);kSv=v}v=kSv;return v},{mode:2});var GSi;var MpC;var h$=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-open-popup-action":"onOpen"};return v};
_.V(h$,_.P);_.W=h$.prototype;_.W.attached=function(){this.onOpen()};
_.W.updateTimeSecs=function(v){this.currentTimeSecs=v};
_.W.computeTimeString=function(v){v=v.toString();var e=Math.floor(Number(v)/3600),d=Math.floor(Number(v)%3600%60);return(e>0?e+":":"")+_.UU(Math.floor(Number(v)%3600/60),e>0?2:1)+":"+_.UU(d,2)};
_.W.computeTimeStringA11y=function(v){v=_.KZ0({seconds:v});var e=v.hours===void 0?0:v.hours,d=v.minutes===void 0?0:v.minutes,E=v.seconds===void 0?0:v.seconds;v=[];if(e>0){var T=Dn_().format({hours:e});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.F1)||e>9999)T=T.replace(e.toString(),_.$$S(e)),_.F1==="km"&&(T=T.replace(".",","));v.push(T)}d>0&&v.push(Dn_().format({minutes:d}));E>0&&v.push(Dn_().format({seconds:E}));e="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");d=_.F1==
"am"?"{0}\u1363 ":_.F1=="fa"?"{0}\u060c\u200f ":_.F1=="my"?"{0} - ":_.F1=="ne"?"{0},":_.F1=="th"?"{0} ":_.F1=="ur"?"{0}\u060c ":_.F1=="ar"||_.F1=="ar-XB"?"{0} \u0648":_.F1=="ja"||_.F1=="zh-CN"||_.F1=="zh-HK"||_.F1=="zh-TW"?"{0}\u3001":"{0}, ";E=_.F1=="am"?"\u1363 ":_.F1=="fa"?"\u060c\u200f ":_.F1=="my"?" - ":_.F1=="th"?" ":_.F1=="ur"?"\u060c ":_.F1=="ar"||_.F1=="ar-XB"?" \u0648":_.F1=="ja"||_.F1=="zh-CN"||_.F1=="zh-HK"||_.F1=="zh-TW"?"\u3001":", ";T=_.F1=="am"?" \u12a5\u1293 {0}":_.F1=="as"?" \u0986\u09f0\u09c1 {0}":
_.F1=="az"?" v\u0259 {0}":_.F1=="bn"?" \u098f\u09ac\u0982 {0}":_.F1=="cs"?" a\u00a0{0}":_.F1=="de"?" und {0}":_.F1=="el"?" \u03ba\u03b1\u03b9 {0}":_.F1=="eu"?" eta {0}":_.F1=="fa"?"\u060c \u0648 {0}":_.F1=="fil"?", at {0}":_.F1=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.F1=="hi"?", \u0914\u0930 {0}":_.F1=="hu"?" \u00e9s {0}":_.F1=="hy"?" \u0587 {0}":_.F1=="id"?", dan {0}":_.F1=="iw"?" \u05d5-{0}":_.F1=="ja"?"\u3001{0}":_.F1=="ka"?" \u10d3\u10d0 {0}":_.F1=="km"?" \u1793\u17b7\u1784 {0}":_.F1=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.F1=="ko"?" \ubc0f {0}":_.F1=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.F1=="lt"?" ir {0}":_.F1=="lv"?" un {0}":_.F1=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.F1=="mr"?" \u0906\u0923\u093f {0}":_.F1=="ms"?" dan {0}":_.F1=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.F1=="ne"?" \u0930 {0}":_.F1=="or"?", \u0b13 {0}":_.F1=="pa"?" \u0a05\u0a24\u0a47 {0}":_.F1=="ro"?" \u0219i {0}":_.F1=="si"?", \u0dc3\u0dc4 {0}":_.F1=="sk"?" a {0}":_.F1=="sl"?" in {0}":_.F1=="sq"?" dhe {0}":_.F1=="sv"?" och {0}":
_.F1=="sw"?" na {0}":_.F1=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.F1=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.F1=="th"?" \u0e41\u0e25\u0e30{0}":_.F1=="tr"?" ve {0}":_.F1=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.F1=="uz"?" va {0}":_.F1=="vi"?" v\u00e0 {0}":_.F1=="zh-HK"?"\u53ca{0}":_.F1=="zu"?", ne-{0}":_.F1=="af"||_.F1=="nl"?" en {0}":_.F1=="ar"||_.F1=="ar-XB"?" \u0648{0}":_.F1=="be"||_.F1=="uk"?" \u0456 {0}":_.F1=="en-GB"||_.F1=="en-IN"?" and {0}":_.F1=="en"||_.F1=="en-XA"?
", and {0}":_.F1=="et"||_.F1=="fi"?" ja {0}":_.F1=="fr"||_.F1=="fr-CA"?" et {0}":_.F1=="zh-CN"||_.F1=="zh-TW"?"\u548c{0}":_.F1=="da"||_.F1=="is"||_.F1=="no"?" og {0}":_.F1=="es"||_.F1=="es-419"||_.F1=="es-US"?" y {0}":_.F1=="kk"||_.F1=="lo"||_.F1=="mn"?", {0}":_.F1=="bg"||_.F1=="mk"||_.F1=="ru"||_.F1=="sr"?" \u0438 {0}":_.F1=="gl"||_.F1=="it"||_.F1=="pt-BR"||_.F1=="pt-PT"?" e {0}":" i {0}";var S=_.F1=="am"?"{0} \u12a5\u1293 {1}":_.F1=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.F1=="az"?"{0} v\u0259 {1}":
_.F1=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.F1=="de"?"{0} und {1}":_.F1=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.F1=="eu"?"{0} eta {1}":_.F1=="fa"?"{0} \u0648 {1}":_.F1=="fil"?"{0} at {1}":_.F1=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.F1=="hi"?"{0} \u0914\u0930 {1}":_.F1=="hu"?"{0} \u00e9s {1}":_.F1=="hy"?"{0} \u0587 {1}":_.F1=="iw"?"{0} \u05d5-{1}":_.F1=="ja"?"{0}\u3001{1}":_.F1=="ka"?"{0} \u10d3\u10d0 {1}":_.F1=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.F1=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.F1=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.F1=="ko"?"{0} \ubc0f {1}":_.F1=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.F1=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.F1=="lt"?"{0} ir {1}":_.F1=="lv"?"{0} un {1}":_.F1=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.F1=="mn"?"{0}, {1}":_.F1=="mr"?"{0} \u0906\u0923\u093f {1}":_.F1=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.F1=="ne"?"{0} \u0930 {1}":_.F1=="or"?"{0} \u0b13 {1}":_.F1=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.F1=="ro"?"{0} \u0219i {1}":_.F1==
"si"?"{0} \u0dc3\u0dc4 {1}":_.F1=="sl"?"{0} in {1}":_.F1=="sq"?"{0} dhe {1}":_.F1=="sv"?"{0} och {1}":_.F1=="sw"?"{0} na {1}":_.F1=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.F1=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.F1=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.F1=="tr"?"{0} ve {1}":_.F1=="ur"?"{0} \u0627\u0648\u0631 {1}":_.F1=="uz"?"{0} va {1}":_.F1=="vi"?"{0} v\u00e0 {1}":_.F1=="zh-HK"?"{0}\u53ca{1}":_.F1=="zu"?"{0} ne-{1}":_.F1=="af"||_.F1=="nl"?"{0} en {1}":_.F1=="ar"||_.F1==
"ar-XB"?"{0} \u0648{1}":_.F1=="be"||_.F1=="uk"?"{0} \u0456 {1}":_.F1=="cs"||_.F1=="sk"?"{0} a\u00a0{1}":_.F1=="et"||_.F1=="fi"?"{0} ja {1}":_.F1=="fr"||_.F1=="fr-CA"?"{0} et {1}":_.F1=="id"||_.F1=="ms"?"{0} dan {1}":_.F1=="zh-CN"||_.F1=="zh-TW"?"{0}\u548c{1}":_.F1=="da"||_.F1=="is"||_.F1=="no"?"{0} og {1}":_.F1=="es"||_.F1=="es-419"||_.F1=="es-US"?"{0} y {1}":_.F1=="bg"||_.F1=="mk"||_.F1=="ru"||_.F1=="sr"?"{0} \u0438 {1}":_.F1=="en"||_.F1=="en-GB"||_.F1=="en-IN"||_.F1=="en-XA"?"{0} and {1}":_.F1==
"gl"||_.F1=="it"||_.F1=="pt-BR"||_.F1=="pt-PT"?"{0} e {1}":"{0} i {1}";_.F1==="sq"?(T=T.replace("dhe","e"),S=S.replace("dhe","e")):_.F1==="th"?(E=E.replace("{0}"," {0}"),S=S.replace("{0}","{0} "),S=S.replace("{1}"," {1}")):_.F1==="ne"?E=",":_.F1==="zh-CN"?E="":e.includes(_.F1)&&(E=" ");return v.length<2?v.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(_.F1)?v.length===2?
S.replace("{0}",v[0]).replace("{1}",v[1]):d.replace("{0}",v[0])+v.slice(1,-1).join(E)+T.replace("{0}",v[v.length-1]):v.join(E)};
_.W.getTimeParam=function(){return q_s(this.timeString)};
_.W.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var v={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},e;_.yV(_.NC(),(e=this.data)==null?void 0:e.trackingParams,v,7)};
_.W.onChangeStartAtTimestamp=function(){for(var v=this.startAtTimestamp.value.split(":"),e=0,d=1,E=v.length-1;E>=0;E--)e+=Number(v[E])*d,d*=60;this.updateTimeSecs(e);this.setTimestamp()};
_.W.onOpen=function(){var v=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var e=_.dB();e?e.getPlayerPromise().then(function(d){d=d.getCurrentTime();v.updateTimeSecs(d)}):uq9()&&this.updateTimeSecs(uq9())};
_.W.setTimestamp=function(){var v=Math.floor(this.currentTimeSecs);_.b4(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!v,timestamp:v||""}])};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],h$.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],h$.prototype,"data",void 0);_.c([_.f({value:!1,notify:!0}),_.w("design:type",Boolean)],h$.prototype,"isStartAtChecked",void 0);_.c([_.f(),_.w("design:type",Number)],h$.prototype,"currentTimeSecs",void 0);
_.c([_.f({computed:"computeTimeString(currentTimeSecs)"}),_.w("design:type",String)],h$.prototype,"timeString",void 0);_.c([_.f({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.w("design:type",String)],h$.prototype,"timeStringA11y",void 0);_.c([_.sg("#start-at-timestamp"),_.w("design:type",Object)],h$.prototype,"startAtTimestamp",void 0);_.c([_.lh({is:"yt-start-at-renderer",disableElementRegistration:!0})],h$);
_.A(h$,"yt-start-at-renderer",function(){if(MpC===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;GSi===void 0&&(GSi=document.createElement("template"));var E=GSi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);MpC=v}v=MpC;return v},{mode:2});var tpQ;var flv;var R5v=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"]]),P5S=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"]]),xxv=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var BJ9={};BJ9.YtBindingExpressionsBehavior={identity:_.B3,msg:function(v,e){e=e===void 0?{}:e;return _.sz(v,e,v)},
msgPlural:function(v,e){return _.Ng(v,e)},
getMusicIconFromType:function(v){if(_.N("music_web_enable_icon_wil"))v=_.qC(v);else if(P5S.has(v))v="yt-sys-icons:"+P5S.get(v);else{var e=R5v.get(v)||_.qC(v).split(":")[1];e=_.QJ0(e);var d;v=((d=xxv.get(v))!=null?d:"yt-sys-icons:")+e}return v}};var C59;var X4O;var z5s;var ll9=document.head,HG9=ll9.appendChild,ATO;if(z5s===void 0){var ZGO=document.createElement("template");_.G(ZGO,'\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>');z5s=ZGO}ATO=z5s;HG9.call(ll9,ATO.content);var Kb=function(){var v=_.P.apply(this,arguments)||this;v.screenLayer=7;return v};
_.V(Kb,_.P);Kb.prototype.getScreenLayer=function(){return this.screenLayer};
Kb.prototype.onTap=function(v){v&&v.detail&&(v.detail.x||v.detail.y)&&_.IB(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.mN(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(v=this.getScreenLayer(),_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:v}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.vP.Object.defineProperties(Kb.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()}}});
Kb.prototype.onTap=Kb.prototype.onTap;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Kb.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Kb.prototype,"data",void 0);_.c([_.t("data.title"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kb.prototype,"title",null);
_.c([_.t("data.serviceName"),_.w("design:type",String),_.w("design:paramtypes",[])],Kb.prototype,"icon",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Kb.prototype,"onTap",null);_.c([_.lh({is:"yt-share-target-renderer",disableElementRegistration:!0})],Kb);
_.A(Kb,"yt-share-target-renderer",function(){if(X4O===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;C59===void 0&&(C59=document.createElement("template"));var E=C59;d.call(e,E.content.cloneNode(!0),v.content.firstChild);X4O=v}v=X4O;return v},{mode:2});var cTs;var w49;var $d=function(){var v=_.P.apply(this,arguments)||this;v.SHARE_TARGET_WIDTH=70;v.SHARE_TARGET_MARGIN_RIGHT=8;v.PAGE_SCROLL_SPEED=9;v.actionMap={"yt-share-panel-reset-action":"onReset_"};return v};
_.V($d,_.P);_.W=$d.prototype;_.W.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.W.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.IB(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.IB(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.W.onReset_=function(){if(_.IB(this.hostElement).querySelector("#list")){var v=_.IB(this.hostElement).querySelector("#list");var e=_.IB(this.hostElement).querySelector("#list");var d=e.offsetLeft,E=e.offsetParent;E||_.IwM(e)!="fixed"||(E=_.Bn(e).documentElement);if(E){if(_.S1&&!_.aW(58)){var T=_.Kfu(E);d+=T.left}else Number(_.Cbt)>=8&&!(Number(_.Cbt)>=9)&&(T=_.Kfu(E),d-=T.left);e=_.ri2(E)?E.clientWidth-(d+e.offsetWidth):d}else e=d;HO9(v,e);this.updateScrollButtons_()}};
_.W.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.W.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.W.onScrollWheel_=function(v){v.stopPropagation();v.preventDefault();var e=l91(_.IB(this.hostElement).querySelector("#list"));v=Math.abs(v.deltaX)>Math.abs(v.deltaY)?v.deltaX:v.deltaY;HO9(_.IB(this.hostElement).querySelector("#list"),e+v);this.updateScrollButtons_()};
_.W.smoothScrollByOnePage_=function(v){var e=_.IB(this.hostElement).querySelector("#list"),d=(Math.floor(e.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,E=l91(e),T=d*(v?1:-1),S=this.PAGE_SCROLL_SPEED,O=this.updateScrollButtons_.bind(this),b=0,Y;(function r(){b+=S;Y=b/d*2;HO9(e,E+T*(Y<1?Y*Y:-Y*Y+4*Y-2));b<d?window.requestAnimationFrame(r):O()})()};
_.W.updateScrollButtons_=function(){var v=l91(_.IB(this.hostElement).querySelector("#list")),e=_.IB(this.hostElement).querySelector("#list").scrollWidth-_.IB(this.hostElement).querySelector("#list").clientWidth;_.IB(this.hostElement).querySelector("#scroll-button-back").hidden=v<=0;_.IB(this.hostElement).querySelector("#scroll-button-forward").hidden=v>=e};
$d.prototype.onScrollWheel_=$d.prototype.onScrollWheel_;$d.prototype.onDataChanged_=$d.prototype.onDataChanged_;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$d.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],$d.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(BJ9.YtBindingExpressionsBehavior),_.w("design:type",Object)],$d.prototype,"ytBindingExpressionsBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$d.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$d.prototype,"onDataChanged_",null);_.c([_.Kq("wheel"),_.w("design:type",Function),_.w("design:paramtypes",[WheelEvent]),_.w("design:returntype")],$d.prototype,"onScrollWheel_",null);
_.c([_.lh({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],$d);
_.A($d,"yt-third-party-share-target-section-renderer",function(){if(w49===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;cTs===void 0&&(cTs=document.createElement("template"));var E=cTs;d.call(e,E.content.cloneNode(!0),v.content.firstChild);w49=v}v=w49;return v},{mode:2});var jD=function(){return _.P.apply(this,arguments)||this};
_.V(jD,_.P);jD.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],jD.prototype,"data",void 0);_.c([_.lh({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],jD);
_.A(jD,"yt-third-party-network-section-renderer",function(){if(flv===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;tpQ===void 0&&(tpQ=document.createElement("template"));var E=tpQ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);flv=v}v=flv;return v},{mode:2});_.aZ(_.l(function(v){return _.m("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.m("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.m(_.kz,{data:function(){return v.data().firstPartyItems}},{listItemViewModel:_.X6})))},"gh"),"first-party-network-section-view-model",{props:{data:_.U1}});var FdO=_.Z9(["data:image/svg+xml;charset=UTF-8;base64,",""]),sx=function(){var v=_.P.apply(this,arguments)||this;v.screenLayer=7;v.qrCodeEnabled=_.N("web_enable_sharing_qr_code");v.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return v};
_.V(sx,_.P);_.W=sx.prototype;_.W.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"}}}};
_.W.attached=function(){this.JSC$20027_scroller&&(this.JSC$20027_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20027_scroller.attached&&typeof this.JSC$20027_scroller.attached==="function"&&this.JSC$20027_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.W.onDataChanged=function(){var v=this,e;(e=this.data)!=null&&e.contents&&(this.hostElement.setAttribute("links-only","true"),_.mI(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.Uh(this,function(){_.Iq(v.hostElement,"yt-refit");v.focusSharePanelHeader()}))};
_.W.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.W.handleSetTimestamp=function(v){var e=this.shortUrl();v.isSet&&(e=_.Xr(e,"t",v.timestamp));this.maybeRenderQrCode(e)};
_.W.shortUrl=function(){var v,e=(v=this.data)==null?void 0:v.contents;if(e)for(v=0;v<e.length;v++){var d=void 0,E=void 0;if((d=e[v])==null?0:(E=d.thirdPartyNetworkSection)==null?0:E.copyLinkContainer){var T=E=d=void 0;return(T=_.L((d=e[v])==null?void 0:(E=d.thirdPartyNetworkSection)==null?void 0:E.copyLinkContainer,Abf))==null?void 0:T.shortUrl}}};
_.W.maybeRenderQrCode=function(v){var e=this,d,E,T,S,O,b,Y,q,r;return _.I(function(h){if(h.nextAddress==1){d=_.IB(e.hostElement).querySelector("#qr-code");if(!e.qrCodeEnabled||!v)return d&&(d.style.display="none"),h.return();E=_.e67(_.dk().resolve(_.rC),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});T=document.createElement("div");return typeof E==="function"?(E(T),h.jumpTo(2)):h.yield(E,3)}h.nextAddress!=2&&(S=h.yieldResult,S(T));Y=(O=T)==null?void 0:(b=O.firstChild)==null?void 0:b.firstChild;
q=document.createElement("img");r=_.Uf3(FdO,btoa(Y.outerHTML));q.onload=function(){var K={canvas:d,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:q},k=new sb9;JkC(k,v);Go_(k,!1,MU1(k));var J=k.modules,R=Object.assign({},R8C,K);J=structuredClone(J);K=J.length;var B,X=(B=R.canvas)!=null?B:document.createElement("canvas");B=R.cellSize;k=R.logo;var Z,U=(Z=R.logoSize)!=null?Z:Math.floor(K/4);K%2!==U%2&&U++;var F=R.logoPadding,g=R.backgroundColor;Z=K*B;var Q=
R.width,v3=0;Q&&(v3=R.padding,v3=Math.ceil(v3*Z/(Q-v3*2)),X.style.width=Q+"px",X.style.height=Q+"px");X.width!==Z+v3*2&&(X.width=Z+v3*2);X.height!==Z+v3*2&&(X.height=Z+v3*2);Z=X.getContext("2d");R.autoClear&&Z.clearRect(0,0,X.width,X.height);Z.fillStyle=g;Z.beginPath();Z.roundRect(0,0,X.width,X.height,R.borderRadius);Z.fill();Z.save();Z.translate(v3,v3);if(k)for(X=Math.floor(K-U)/2-F,F=Math.floor(K+U)/2+F,g=X;g<F;g++)for(Q=X;Q<F;Q++)J[g][Q]=!1;for(X=0;X<K;X++)for(F=0;F<K;F++)(X<7&&F<7||X<7&&F>=K-
7||X>=K-7&&F<7)&&(J[X][F]=!1);var q7;X=(q7=R.markerColor)!=null?q7:R.color;fpi(Z,0,0,B,X);fpi(Z,B*(K-7),0,B,X);fpi(Z,0,B*(K-7),B,X);switch(R.cellStyle){case 0:q7=J;J=q7.length;X=R.cellSize;Z.beginPath();for(F=0;F<J;F++)for(g=0;g<J;g++)q7[F][g]&&Z.rect(F*X,g*X,X,X);Z.fillStyle=R.color;Z.fill();break;case 1:q7=J;J=q7.length;X=R.cellSize;F=X*R.relativeCircleSize;Z.fillStyle=R.color;Z.beginPath();for(R=0;R<J;R++)for(g=0;g<J;g++)q7[R][g]&&(Z.beginPath(),Z.ellipse((R+.5)*X,(g+.5)*X,F/2,F/2,0,0,2*Math.PI),
Z.fill());Z.fill();break;case 2:q7=J;J=q7.length;X=R.cellSize;Z.fillStyle=R.color;R=[[1,1],[-1,1],[-1,-1],[1,-1]];Z.beginPath();for(F=0;F<J;F++)for(g=0;g<J;g++)if(q7[F][g])Z.roundRect(F*X,g*X,X,X,X/2),F+1<J&&q7[F+1][g]&&Z.rect(F*X+X/2,g*X,X,X),g+1<J&&q7[F][g+1]&&Z.rect(F*X,g*X+X/2,X,X);else{Q=F*X+X/2;v3=g*X+X/2;for(var m0=0;m0<4;m0++){var $S=_.a(R[m0]),kS=$S.next().value;$S=$S.next().value;F+kS>=0&&F+kS<J&&g+$S>=0&&g+$S<J&&q7[F+kS][g]&&q7[F][g+$S]&&q7[F+kS][g+$S]&&(kS=m0*Math.PI/2,$S=X/2,Z.moveTo(Q+
$S*Math.cos(kS),v3+$S*Math.sin(kS)),Z.arc(Q,v3,X/2,kS,kS+Math.PI/2,!1),Z.lineTo(Q+$S*(Math.cos(kS)-Math.sin(kS)),v3+$S*(Math.cos(kS)+Math.sin(kS))),Z.lineTo(Q+$S*Math.cos(kS),v3+$S*Math.sin(kS)))}}Z.fill()}k&&Z.drawImage(k,(K-U)*B/2,(K-U)*B/2,U*B,U*B);Z.restore();d.style.removeProperty("display")};
q.src=_.Mf(r);_.s9(h)})};
_.W.hasCommunityPostRenderer=function(){var v,e,d,E;return!!((v=this.data)==null?0:(e=v.header)==null?0:(d=e.sharePanelHeaderRenderer)==null?0:(E=d.communityPost)==null?0:E.communityPostSectionRenderer)};
_.W.onTapClose=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.W.getScreenLayer=function(){return this.screenLayer};
_.W.logSharePanelPage=function(){if(!_.N("enable_share_panel_navigation_logging_fix_on_web")){var v;if((v=this.data)!=null&&v.trackingParams){v=this.data.trackingParams;var e=this.parentClickTrackingParams;e=e?_.Jg(e):void 0;var d=_.NC();_.Ig(d,21760,e,{layer:7,parentLayer:0});d.graftServerVe(v,void 0,7);_.d1().dispatch(_.Oo({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
sx.prototype.onDataChanged=sx.prototype.onDataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],sx.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],sx.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],sx.prototype,"data",void 0);_.c([_.f({value:_.sz("SBOX_INAPPROPRIATE_CANCEL")}),_.w("design:type",String)],sx.prototype,"closeButtonAriaLabel",void 0);_.c([_.sg("yt-share-panel-header-renderer"),_.w("design:type",HTMLElement)],sx.prototype,"header",void 0);_.c([_.f({selector:function(v){return v.share.parentClickTrackingParams}}),
_.w("design:type",String)],sx.prototype,"parentClickTrackingParams",void 0);_.c([_.f(),_.w("design:type",Object)],sx.prototype,"qrCodeEnabled",void 0);_.c([_.sg("#scroller"),_.w("design:type",Object)],sx.prototype,"JSC$20027_scroller",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sx.prototype,"onDataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],sx);
_.A(sx,"ytd-unified-share-panel-renderer",function(){if($xt!==void 0)return $xt;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return $xt=v},{mode:1});var Q3w;var NQ=function(){var v=_.P.apply(this,arguments)||this;v.modernModal=!0;return v};
_.V(NQ,_.P);NQ.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
NQ.prototype.computeShouldHideOldButtons=function(){var v;return!((v=this.data)==null?0:v.button)};
_.vP.Object.defineProperties(NQ.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var v,e;return(v=this.data)==null?void 0:(e=v.button)==null?void 0:e.buttonRenderer}}});
_.c([_.f(),_.w("design:type",Object)],NQ.prototype,"data",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],NQ.prototype,"ytEventForwardingBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],NQ.prototype,"modernModal",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],NQ.prototype,"buttonRendererData",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],NQ);
_.A(NQ,"ytd-modal-with-title-and-button-renderer",function(){if(Q3w!==void 0)return Q3w;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Q3w=v},{mode:1});var g8s;var kd=function(){return _.P.apply(this,arguments)||this};
_.V(kd,_.P);kd.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("page-changed",this.page))};
kd.prototype.pageChangedForBinding=kd.prototype.pageChangedForBinding;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kd.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],kd.prototype,"page",void 0);_.c([_.$v("page"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kd.prototype,"pageChangedForBinding",null);
_.c([_.z({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],kd);
_.A(kd,"ytd-account-item-section-header-renderer",function(){if(g8s!==void 0)return g8s;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return g8s=v},{mode:1});var uLs;var Lb=function(){return _.P.apply(this,arguments)||this};
_.V(Lb,_.P);Lb.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"}}}};
Lb.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.FL),_.w("design:type",Object)],Lb.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Lb.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!1}),_.w("design:type",Function)],Lb.prototype,"onAccountItemTap",void 0);
_.c([_.z({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Lb);
_.A(Lb,"ytd-account-item-section-renderer",function(){if(uLs!==void 0)return uLs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return uLs=v},{mode:1});var n8s;var Dxf;var V_=function(){return _.P.apply(this,arguments)||this};
_.V(V_,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],V_.prototype,"data",void 0);_.c([_.z({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],V_);
_.A(V_,"ytd-accounts-dialog-header-renderer",function(){if(Dxf!==void 0)return Dxf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Dxf=v},{mode:1});var Uxv;var oX=function(){return _.P.apply(this,arguments)||this};
_.V(oX,_.P);oX.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],oX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],oX.prototype,"data",void 0);_.c([_.z({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],oX);
_.A(oX,"ytd-google-account-header-renderer",function(){if(Uxv!==void 0)return Uxv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Uxv=v},{mode:1});var J$=function(){return _.P.apply(this,arguments)||this};
_.V(J$,_.P);J$.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"}}}};
J$.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("page-changed",this.page))};
J$.prototype.pageChangedForBinding=J$.prototype.pageChangedForBinding;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],J$.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],J$.prototype,"page",void 0);
_.c([_.$v("page"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],J$.prototype,"pageChangedForBinding",null);_.c([_.z({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],J$);
_.I5()(J$,"ytd-account-section-list-renderer",function(){if(n8s===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);n8s=v}v=n8s;return v},{allowedProps:["data"],
mode:1});var p4i;var G9=function(){var v=_.P.apply(this,arguments)||this;v.enableHandlesAccountMenuSwitcher=_.N("enable_handles_account_menu_switcher");return v};
_.V(G9,_.P);G9.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
G9.prototype.dataChanged=G9.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],G9.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],G9.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.c([_.sg("#avatar"),_.w("design:type",Object)],G9.prototype,"avatar",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],G9.prototype,"dataChanged",null);_.c([_.z({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],G9);
_.I5()(G9,"ytd-active-account-header-renderer",function(){if(p4i===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);p4i=v}v=p4i;return v},{allowedProps:["data"],
mode:1});var vQC;var eAO;var MQ=function(){return _.P.apply(this,arguments)||this};
_.V(MQ,_.P);MQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
MQ.prototype.onBackTap=function(){_.Iq(this.hostElement,"yt-menu-back-tapped")};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],MQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],MQ.prototype,"data",void 0);_.c([_.z({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],MQ);
_.I5()(MQ,"ytd-simple-menu-header-renderer",function(){if(eAO===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);eAO=v}v=eAO;return v},{allowedProps:["data"],
mode:2});var dhO;var t$=function(){return _.P.apply(this,arguments)||this};
_.V(t$,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],t$.prototype,"data",void 0);_.c([_.z({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],t$);
_.A(t$,"ytd-comment-video-thumbnail-header-renderer",function(){if(dhO!==void 0)return dhO;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return dhO=v},{mode:1});var EQ_;var fb=function(){return _.P.apply(this,arguments)||this};
_.V(fb,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fb.prototype,"data",void 0);_.c([_.z({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],fb);
_.A(fb,"ytd-abuse-type-selector-renderer",function(){if(EQ_!==void 0)return EQ_;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return EQ_=v},{mode:1});var TjC;var RX=function(){return _.P.apply(this,arguments)||this};
_.V(RX,_.P);RX.prototype.attached=function(){var v=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){v.additionalContextInput.focusTextInput()})};
RX.prototype.handleAdditionalContextChanged=function(){var v=this;_.gi(this,"ytd-report-channel-additional-context-update",function(){v.ytdReduxBehavior.dispatch(_.Oo({type:"ADDITIONAL_CONTEXT_UPDATED",payload:v.additionalContext}))},300)};
RX.prototype.updateAdditionalContextFromBinding=function(v){this.additionalContext=v.detail.value};
RX.prototype.handleAdditionalContextChanged=RX.prototype.handleAdditionalContextChanged;_.c([_.M(_.lV),_.w("design:type",Object)],RX.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",String)],RX.prototype,"additionalContext",void 0);_.c([_.f({selector:function(v){return v.reportChannelAbuse.additionalContext}}),
_.w("design:type",String)],RX.prototype,"additionalContextRedux",void 0);_.c([_.f(),_.w("design:type",Object)],RX.prototype,"data",void 0);_.c([_.sg("yt-text-input-form-field-renderer"),_.w("design:type",Object)],RX.prototype,"additionalContextInput",void 0);_.c([_.$v("additionalContext"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],RX.prototype,"handleAdditionalContextChanged",null);
_.c([_.z({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],RX);
_.A(RX,"ytd-report-channel-modal-additional-context-renderer",function(){if(TjC!==void 0)return TjC;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return TjC=v},{mode:1});var SP_;var Pm=function(){var v=_.P.apply(this,arguments)||this;v.nextButtonDisabled=null;v.submitEndpoint=null;v.navigationEndpoint=null;v.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return v};
_.V(Pm,_.P);_.W=Pm.prototype;_.W.computeNextButtonData=function(v,e,d){var E={};e&&(E.navigationEndpoint=e);d&&(E.serviceEndpoint=d);v&&v.buttonRenderer&&_.f0.extend(E,v.buttonRenderer);return E};
_.W.handleReportChannelModalDisableNextButtonAction=function(v){this.setNextButtonIsDisabled(v)};
_.W.handleReportFormEndpointUpdateAction=function(v){this.setNextButtonIsDisabled(!!v.disableSubmitButton);this.resetEndpointData();v.submitEndpoint?this.submitEndpoint=v.submitEndpoint:v.submitNavigationEndpoint&&(this.navigationEndpoint=v.submitNavigationEndpoint)};
_.W.handleSignalActionSubmitForm=function(){var v,e=Object.keys(((v=this.reportChannelAbuseForm)==null?void 0:v.selectedVideoIds)||{}),d;v=((d=this.reportChannelAbuseForm)==null?void 0:d.additionalContext)||"";var E;d=((E=this.reportChannelAbuseForm)==null?void 0:E.impersonatedChannelUrl)||"";var T;if((T=this.data)==null?0:T.submitEndpoint){e={impersonated_channel_url:d,text:v,video_ids:e};var S;_.dk().resolve(_.EI).resolveCommand((S=this.data)==null?void 0:S.submitEndpoint,{form:Object.assign({},
e,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.W.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.W.onYtServiceRequestError=function(v){this.setNextButtonIsDisabled(!1);_.Q0(this.hostElement,v.detail.error.message)};
_.W.setNextButtonIsDisabled=function(v){this.set("data.nextButton.buttonRenderer.isDisabled",v)};
_.W.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Pm.prototype.onYtServiceRequestError=Pm.prototype.onYtServiceRequestError;Pm.prototype.onYtServiceRequestCompleted=Pm.prototype.onYtServiceRequestCompleted;_.c([_.f(),_.w("design:type",Object)],Pm.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Pm.prototype,"nextButtonDisabled",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Pm.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Pm.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Pm.prototype,"submitEndpoint",void 0);_.c([_.f(),_.w("design:type",Object)],Pm.prototype,"navigationEndpoint",void 0);_.c([_.f({selector:function(v){return v.reportChannelAbuse}}),
_.w("design:type",Object)],Pm.prototype,"reportChannelAbuseForm",void 0);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Pm.prototype,"onYtServiceRequestCompleted",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Pm.prototype,"onYtServiceRequestError",null);
_.c([_.z({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Pm);
_.A(Pm,"ytd-report-channel-modal-footer-renderer",function(){if(SP_!==void 0)return SP_;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return SP_=v},{mode:1});var WFf;var xd=function(){var v=_.P.apply(this,arguments)||this;v.boundOnTapDismissButton=function(){v.closePopup()};
return v};
_.V(xd,_.P);xd.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
xd.prototype.handleDataChanged=function(){_.gt(this.hostElement)};
xd.prototype.closePopup=function(){_.b4(this.hostElement,"yt-close-popup-action")};
xd.prototype.handleDataChanged=xd.prototype.handleDataChanged;_.c([_.f(),_.w("design:type",Object)],xd.prototype,"boundOnTapDismissButton",void 0);_.c([_.f(),_.w("design:type",Object)],xd.prototype,"data",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],xd.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xd.prototype,"handleDataChanged",null);_.c([_.z({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],xd);
_.A(xd,"ytd-report-channel-modal-header-renderer",function(){if(WFf!==void 0)return WFf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return WFf=v},{mode:1});var aJi;var Bm=function(){var v=_.P.apply(this,arguments)||this;v.autoValidate=!1;v.invalid=!1;v.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return v};
_.V(Bm,_.P);_.W=Bm.prototype;_.W.attached=function(){var v=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){v.channelUrlInput.focusTextInput()})};
_.W.disableNextButton=function(v){_.b4(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[v])};
_.W.handleImpersonatedChannelUrlChanged=function(){var v=this;this.disableNextButton(!0);this.invalid=!1;_.gi(this,"ytd-report-channel-impersonated-channel-update",function(){var e=v.impersonatedChannelUrl.trim();v.ytdReduxBehavior.dispatch(_.Oo({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:e}));var d;((d=v.data)==null?0:d.submitEndpoint)&&e&&_.dk().resolve(_.EI).resolveCommand(v.data.submitEndpoint,{form:{impersonated_channel_url:e,element:v.hostElement}})},500)};
_.W.handleModifyReportFormCommand=function(v){this.invalid=this.get("modifyReportFormCommand.action",v)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.W.updateInvalidFromBinding=function(v){this.invalid=v.detail.value};
_.W.updateImpersonatedChannelUrlFromBinding=function(v){this.impersonatedChannelUrl=v.detail.value};
Bm.prototype.handleImpersonatedChannelUrlChanged=Bm.prototype.handleImpersonatedChannelUrlChanged;_.c([_.M(_.lV),_.w("design:type",Object)],Bm.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Bm.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Bm.prototype,"autoValidate",void 0);_.c([_.f(),_.w("design:type",Object)],Bm.prototype,"invalid",void 0);
_.c([_.f(),_.w("design:type",String)],Bm.prototype,"impersonatedChannelUrl",void 0);_.c([_.f({selector:function(v){return v.reportChannelAbuse.impersonatedChannelUrl}}),
_.w("design:type",String)],Bm.prototype,"impersonatedChannelUrlRedux",void 0);_.c([_.f(),_.w("design:type",Object)],Bm.prototype,"data",void 0);_.c([_.sg("#text-input"),_.w("design:type",Object)],Bm.prototype,"channelUrlInput",void 0);_.c([_.$v("impersonatedChannelUrl"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Bm.prototype,"handleImpersonatedChannelUrlChanged",null);
_.c([_.z({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Bm);
_.A(Bm,"ytd-report-channel-modal-impersonation-renderer",function(){if(aJi!==void 0)return aJi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return aJi=v},{mode:1});var i5t;var O59;var Cb=function(){return _.P.apply(this,arguments)||this};
_.V(Cb,_.P);Cb.prototype.onCheckboxToggled=function(v){var e,d,E=(d=_.L((e=this.data)==null?void 0:e.video,_.XY))==null?void 0:d.videoId;E&&this.ytdReduxBehavior.dispatch(v.target.checked?_.Oo({type:"VIDEO_SELECTED",payload:E}):_.Oo({type:"VIDEO_UNSELECTED",payload:E}))};
Cb.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.vP.Object.defineProperties(Cb.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var v,e=(v=this.data)==null?void 0:v.video;if(!e)return{};var d;v=(d=_.L(e,_.XY))==null?void 0:d.navigationEndpoint;if(!v)return e;_.L(v==null?void 0:v.commandMetadata,_.$B)&&(_.L(v.commandMetadata,_.$B).ignoreNavigation=!0);return e}}});
_.c([_.f({reflectToAttribute:!0,selector:function(v,e){return e in v.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.w("design:type",Boolean)],Cb.prototype,"checked",void 0);_.c([_.f(),_.w("design:type",Object)],Cb.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Cb.prototype,"video",null);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],Cb.prototype,"ytdReduxBehavior",void 0);_.c([_.z({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Cb);
_.A(Cb,"ytd-selectable-video-renderer",function(){if(O59!==void 0)return O59;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return O59=v},{mode:1});var X9=function(){var v=_.P.apply(this,arguments)||this;v.monitorScroll=!0;return v};
_.V(X9,_.P);X9.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],X9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],X9.prototype,"data",void 0);_.c([_.z({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],X9);
_.A(X9,"ytd-selectable-video-list-renderer",function(){if(i5t!==void 0)return i5t;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return i5t=v},{mode:1});var IJs;_.RZ("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var z9=function(){return _.P.apply(this,arguments)||this};
_.V(z9,_.P);z9.prototype.onChange=function(v){if(v=_.ew(v).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.N("kevlar_command_handler_migration_killswitch"))_.ya(this.hostElement,v,this.hostElement);else{v=_.a(v);for(var e=v.next();!e.done;e=v.next())this.ytComponentBehavior.resolveCommand(e.value)}};
z9.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
z9.prototype.updateDataToggledFromBinding=function(v){this.set("data.toggled",v.detail.value)};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],z9.prototype,"data",void 0);_.c([_.f({computed:"isEnabled(data)"}),_.w("design:type",Boolean)],z9.prototype,"enabled",void 0);_.c([_.z({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],z9);
_.A(z9,"ytd-toggle-item-renderer",function(){if(IJs!==void 0)return IJs;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return IJs=v},{mode:1});var b59;var YP_;var mhi;var lJ=function(){var v=_.P.apply(this,arguments)||this;v.setVisible=!1;v.boundOnSubmitButtonClick=function(){v.onSubmitButtonClick()};
v.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return v};
_.V(lJ,_.P);lJ.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}}}}}};
lJ.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
lJ.prototype.onSubmitButtonClick=function(){var v;((v=this.data)==null?0:v.submitEndpoint)&&!_.N("enable_ytc_refunds_submit_form_signal_action")&&_.mN(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
lJ.prototype.handleSignalActionSubmitForm=function(){var v;((v=this.data)==null?0:v.submitEndpoint)&&_.mN(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.vP.Object.defineProperties(lJ.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.hiddenByDefault)&&!this.setVisible}}});
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],lJ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],lJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],lJ.prototype,"setVisible",void 0);_.c([_.f(),_.w("design:type",Object)],lJ.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],lJ.prototype,"surveyFeedbackData",void 0);_.c([_.f(),_.w("design:type",Object)],lJ.prototype,"boundOnSubmitButtonClick",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data","setVisible"),_.w("design:type",Object),_.w("design:paramtypes",[])],lJ.prototype,"visibilityHidden",null);_.c([_.lh({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],lJ);
_.A(lJ,"yt-flow-footer-renderer",function(){if(mhi===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;YP_===void 0&&(YP_=document.createElement("template"));var E=YP_;d.call(e,E.content.cloneNode(!0),v.content.firstChild);mhi=v}v=mhi;return v},{mode:2});var Hm=function(){return _.P.apply(this,arguments)||this};
_.V(Hm,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Hm.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Hm.prototype,"data",void 0);_.c([_.f({selector:function(v){return v.ypc.surveyFeedbackData}}),
_.w("design:type",Object)],Hm.prototype,"surveyFeedbackData",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Hm);
_.A(Hm,"ytd-flow-footer-renderer",function(){if(b59!==void 0)return b59;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return b59=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var yhi;var qP1;var A$=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return v};
_.V(A$,_.P);_.W=A$.prototype;_.W.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Pa("multiPageMenuSectionItems")}}};
_.W.handleHideEnclosingAction_=function(v){if(this.data&&this.data.items)for(var e=0;e<this.data.items.length;e++){var d=this.data.items[e].notificationRenderer;if(d&&d.notificationId==v.hideEnclosingAction.notificationId){this.splice("data.items",e,1);_.b4(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.W.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.mI(this.hostElement,"hidden",!0)};
_.W.updateMenu_=function(v){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&v&&!v.doNotRefreshInbox){v=this.data.continuations;for(var e=0;e<v.length;e++)if(v[e].invalidationContinuationData){var d=void 0;var E=(d=v[e].invalidationContinuationData)==null?void 0:d.continuation;break}v=_.f0.clone(this.data.continuationUpdateEndpoint||null);v.continuation=E;v.click_tracking_params=this.data.trackingParams;_.mN(this.hostElement,[v])}};
_.W.onServiceRequestCompleted_=function(v,e){if(this.data&&(v=e.actions)){e=0;for(var d=v.length;e<d;e++){var E=_.L(v[e],_.zwu);if(!E)break;if((E.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||E.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&E.continuationItems&&this.data.items){var T=this.data.items.length-1;this.data.items[T].continuationItemRenderer&&(E=["data.items",T,1].concat(E.continuationItems),this.splice.apply(this,E))}}}};
A$.prototype.onServiceRequestCompleted_=A$.prototype.onServiceRequestCompleted_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],A$.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],A$.prototype,"data",void 0);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],A$.prototype,"onServiceRequestCompleted_",null);_.c([_.lh({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],A$);
_.I5()(A$,"yt-multi-page-menu-section-renderer",function(){if(qP1===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;yhi===void 0&&(yhi=document.createElement("template"));var E=yhi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);qP1=v}v=qP1;return v},{allowedProps:["data"],
mode:2});var rh_;var hA1;var Zv=function(){return _.P.apply(this,arguments)||this};
_.V(Zv,_.P);Zv.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.vP.Object.defineProperties(Zv.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.progress)==null?0:this.data.progress*100}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Zv.prototype,"data",void 0);_.c([_.t("data.progress"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Zv.prototype,"showProgressBar",null);
_.c([_.t("data.progress"),_.w("design:type",Number),_.w("design:paramtypes",[])],Zv.prototype,"progress",null);_.c([_.lh({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Zv);
_.A(Zv,"yt-flow-header-renderer",function(){if(hA1===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;rh_===void 0&&(rh_=document.createElement("template"));var E=rh_;d.call(e,E.content.cloneNode(!0),v.content.firstChild);hA1=v}v=hA1;return v},{mode:2});var KF9;var $ht;var cm=function(){return _.P.apply(this,arguments)||this};
_.V(cm,_.P);cm.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],cm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],cm.prototype,"data",void 0);_.c([_.lh({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],cm);
_.A(cm,"yt-post-confirmation-flow-step-renderer",function(){if($ht===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;KF9===void 0&&(KF9=document.createElement("template"));var E=KF9;d.call(e,E.content.cloneNode(!0),v.content.firstChild);$ht=v}v=$ht;return v},{mode:2});var joi;var soQ;var w_=function(){return _.P.apply(this,arguments)||this};
_.V(w_,_.P);
w_.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],w_.prototype,"data",void 0);_.c([_.lh({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],w_);
_.A(w_,"yt-refund-confirmation-flow-step-renderer",function(){if(soQ===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;joi===void 0&&(joi=document.createElement("template"));var E=joi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);soQ=v}v=soQ;return v},{mode:2});var Nj9=_.l(function(v){var e=v.data;return _.m("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.m("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.m(_.va,{data:function(){return{thumbnails:[{url:e().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.m("div",{class:"profileBadgeViewModelContent"},_.m("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return e().badgeDesc}),_.m(_.y,{cond:function(){return e().badgeSubtitle},
then:function(){return _.m("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return e().badgeSubtitle})}})))},"hh");
Nj9.idomCompat=!0;var kLC=_.l(function(v){var e=v.data;return _.m("yt-comment-interaction-view-model",{el:_.dq(_.B5(function(){return e().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.m("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return e().onTapA11yLabel},
"on:keydown":_.UWM(),tabindex:0},_.m("div",{class:"ytCommentInteractionViewModelHeader"},_.m("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return e().headerPrefix},' "',function(){return e().videoTitle}),_.m("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.m("div",{class:"ytCommentInteractionViewModelContent"},_.m("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return e().commentContent}),_.m("div",{class:"ytCommentInteractionViewModelChevron"},
_.m(_.va,{data:function(){return{thumbnails:[{url:e().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"ih");
kLC.idomCompat=!0;var LF1=_.l(function(v){var e=v.data;return _.m("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.m(_.kz,{data:function(){return e().avatar}},{avatarViewModel:_.x7}),_.m("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return e().channelName}))},"jh");
LF1.idomCompat=!0;var MVt=_.l(function(v){var e=v.data;v={};return _.m("yt-profile-info-view-model",{class:_.qe("ytProfileInfoViewModelHost",(v.ytProfileInfoViewModelWithVideoShelf=function(){return e().videosHorizontalShelf},v))},_.m(VVt,{profileInfo:e}),_.m(_.kz,{data:function(){return e().videosHorizontalShelf}},{horizontalShelfViewModel:function(d){return _.m("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.m(_.lD,{data:d.data}))}}),_.m(_.y,{cond:function(){return e().comments},
then:function(){return _.m(oQs,{profileInfo:e})}}),_.m(_.y,{cond:function(){return e().sharedSubscriptionsTitle},
then:function(){return _.m(_.y,{cond:function(){return e().subscriptionsAccessButtonCommand},
then:function(){return _.m(Jh9,{profileInfo:e})},
else:function(){return _.m(GL9,{profileInfo:e})}})}}))},"kh");
MVt.idomCompat=!0;var oQs=_.l(function(v){var e=v.profileInfo;return _.m("div",{class:"ytProfileInfoViewModelActivity"},_.m("div",{class:"ytProfileInfoViewModelHeader"},_.m("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return e().commentsInteractionTitle})),_.m(_.kz,{data:function(){return e().comments}},{commentInteractionViewModel:function(d){return _.m("div",{class:"ytProfileInfoViewModelActivity"},_.m(kLC,{data:d.data}))}}))},"lh"),Jh9=_.l(function(v){var e=v.profileInfo;
return _.m("div",{class:"ytProfileInfoViewModelSubSection"},_.m("div",{class:"ytProfileInfoViewModelSubHeader"},_.m(_.Oe,{command:function(){return e().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.m("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return e().sharedSubscriptionsTitle}),_.m("div",null,_.m(_.kz,{data:function(){return e().subscriptionsAccessButton}},{buttonViewModel:_.yi})))),_.m(tV_,{sharedSubscriptions:function(){var d;
return((d=e().sharedSubscriptions)==null?void 0:d.slice(0,5))||[]}}))},"mh"),GL9=_.l(function(v){var e=v.profileInfo;
return _.m("div",{class:"ytProfileInfoViewModelSubSection"},_.m("div",{class:"ytProfileInfoViewModelSubHeader"},_.m("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return e().sharedSubscriptionsTitle})),_.m(tV_,{sharedSubscriptions:function(){var d;
return((d=e().sharedSubscriptions)==null?void 0:d.slice(0,5))||[]}}))},"nh"),tV_=_.l(function(v){return _.m("div",{class:"ytProfileInfoViewModelSubs"},_.m(_.kz,{data:v.sharedSubscriptions},{sharedSubscriptionViewModel:function(e){return _.m("div",{class:"ytProfileInfoViewModelSub"},_.m(LF1,{data:e.data}))}}))},"oh"),VVt=_.l(function(v){var e=v.profileInfo;
return _.m("div",{class:"ytProfileInfoViewModelActivity"},_.m(_.jI,{each:function(){return[e().profileBadgeInfoYtWide,e().profileBadgeInfoChannelWide].filter(function(d){return!!d})},
keyBy:"INDEX"},function(d){return _.m(_.eI,null,_.m("div",{class:"ytProfileInfoViewModelHeader"},_.m("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return d().profileSectionTitle}),_.m("div",{class:"ytProfileInfoViewModelSectionDesc"},_.m("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var E;
return(E=d().commentBadge)==null?void 0:E.commentDesc}),_.m(_.y,{cond:function(){var E;
return(E=d().commentBadge)==null?void 0:E.blackHeartDesc},
then:function(){return _.m("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.m("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.m(_.va,{data:function(){var E;
return{thumbnails:[{url:(E=d().commentBadge)==null?void 0:E.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.m("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var E;return(E=d().commentBadge)==null?void 0:E.blackHeartDesc}))),_.m("div",{class:"ytProfileInfoViewModelBadge"},_.m(_.jI,{each:function(){return d().badges||[]}},function(E){return _.m(Nj9,{data:E})})))}))},"ph");var fJs=_.l(function(v){var e=v.data;var d=function(){return e().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.m("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.m(_.kz,{data:function(){return e().profileIdentityInfo}},{profileIdentityInfoViewModel:function(E){return _.m(_.jMt,{data:E.data,
hideDivider:d,isChannelInfoCard:d})},
profileInfoViewModel:MVt}),_.m(_.kz,{data:function(){return e().profileInfo}},{profileIdentityInfoViewModel:_.jMt,
profileInfoViewModel:MVt}))},"qh");
fJs.idomCompat=!0;_.aZ(fJs,"yt-profile-card-view-model",{props:{data:_.U1}});var F9=function(){var v=_.P.apply(this,arguments)||this;v.enableFocusFix=_.N("music_web_enable_focus_on_setting_menu_fix")&&_.zr("IS_MOBILE_WEB",!1);v.covered=!1;v.hideMenu=!1;v.isCommentNotificationOnProfileCard=!1;v.scrolledByTouch=!1;v.disableBackdropFilter=_.N("web_disable_backdrop_filter");v.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return v};
_.V(F9,_.P);_.W=F9.prototype;
_.W.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"}}}};
_.W.ready=function(){var v=this;this.JSC$20129_containerElement.addEventListener("scroll",function(){v.ytRendererBehavior.markDirty()})};
_.W.attributeChanged=function(v,e){v==="menu-style"&&_.b4(this.hostElement,"yt-multi-page-menu-closed-action",[e])};
_.W.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.hG(this,this.focusOnStampFinished))};
_.W.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.hG(this,this.focusOnStampFinished))};
_.W.reset=function(){this.closeJobId&&(_.RM.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.W.focusOnStampFinished=function(v){v.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.hG(this,this.focusOnStampFinished)),this.doFocus())};
_.W.doFocus=function(){var v=_.A10(this.sectionsElement);v.length&&v[0].focus()};
_.W.computeMenuStyle=function(v){return v?v.toLowerCase().replace(/_/g,"-"):""};
_.W.computeIsCommentNotificationOnProfileCard=function(v){return _.N("enable_profile_cards_on_comments")&&v.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.W.computeHideMenu=function(v,e){return v||!(!e||!e.showLoadingSpinner)};
_.W.onPopupClosed=function(){this.isPopUpOpen=!1;_.b4(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.W.onPopupOpened=function(v,e){this.isPopUpOpen=!0;e.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Iq(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Oo({type:"CHANNEL_REPORT_RESET"})))};
_.W.onYtNavigate=function(v,e){this.shouldCloseOnNavigateEvent(e.endpoint)&&_.b4(this.hostElement,"yt-close-all-popups-action")};
_.W.handleEndpoint=function(v){v=_.L(v,_.f6);!this.isCommentNotificationOnProfileCard&&v&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20129_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.W.handleActions=function(v){for(var e=0,d=v.length;e<d;e++){var E=_.L(v[e],wl_);E&&this.handleGetMultiPageMenuAction(E);(E=_.L(v[e],_.zwu))&&this.handleAppendContinuationItemsAction(E)}};
_.W.onServiceRequestSentOrCompleted=function(v,e){v.detail&&v.detail.endpoint&&this.handleEndpoint(v.detail.endpoint);e.actions&&this.handleActions(e.actions)};
_.W.handleGetMultiPageMenuAction=function(v){var e=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.IB(this.submenuElement).appendChild(e);(v=v.menu.multiPageMenuRenderer)&&this.logSubmenu(v);e.data=v;e.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.W.handleAppendContinuationItemsAction=function(v){if(this.data&&v.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&v.continuationItems&&this.data.sections){var e=this.data.sections.length-1;this.data.sections[e].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),e--);if(this.data.sections[e].multiPageMenuNotificationSectionRenderer&&v.continuationItems){v=_.a(v==null?void 0:v.continuationItems);for(var d=v.next();!d.done;d=v.next())if(d=d.value,_.L(d,hsi)){var E=
void 0,T=void 0,S=void 0,O=void 0,b=void 0;((E=this)==null?0:(T=E.data)==null?0:(S=T.sections)==null?0:(O=S[e])==null?0:(b=O.multiPageMenuNotificationSectionRenderer)==null?0:b.items)&&this.push("data.sections."+e+".multiPageMenuNotificationSectionRenderer.items",d)}else if(_.L(d,_.JMI)||_.L(d,_.uw))this.push("data.sections",d),e++}}};
_.W.logSubmenu=function(v){if(!_.N("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var e=this.ytRendererBehavior.getScreenLayer(),d=_.zz(e),E=_.Xf(e);if((v=v.trackingParams)&&d&&E){var T=_.Jg(v);_.N("combine_ve_grafts")?_.NC().graftServerVe(v,E,e):_.Qa(d,E,T)}}};
_.W.emptySubmenuContainer=function(){for(var v=_.IB(this.submenuElement);v.firstChild;)v.removeChild(v.firstChild)};
_.W.onMenuBackTap=function(v){_.Iq(this.hostElement,"yt-submenu-closed");v.stopPropagation()};
_.W.onSubmenuClosed=function(v){_.ew(v)!==this.hostElement&&(this.covered=!1,_.Iq(this.hostElement,"yt-refit"),v.stopPropagation())};
_.W.onRetrieveLocation=function(v,e){e.hasComments&&(e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),v.stopPropagation())};
_.W.shouldCloseOnNavigateEvent=function(v){if(!v)return!0;if(_.L(v,_.t$2)||_.L(v,_.fe2)||_.L(v,_.M$c)||_.L(v,_.wb))return!1;var e;return((e=_.L(v==null?void 0:v.commandMetadata,_.$B))==null?0:e.ignoreNavigation)?!1:!0};
_.W.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.W.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.W.refitAfterRender=function(){var v=this;_.Uh(this,function(){_.Iq(v.hostElement,"yt-refit")})};
F9.prototype.refitAfterRender=F9.prototype.refitAfterRender;F9.prototype.onRetrieveLocation=F9.prototype.onRetrieveLocation;F9.prototype.onSubmenuClosed=F9.prototype.onSubmenuClosed;F9.prototype.onMenuBackTap=F9.prototype.onMenuBackTap;F9.prototype.onServiceRequestSentOrCompleted=F9.prototype.onServiceRequestSentOrCompleted;F9.prototype.onYtNavigate=F9.prototype.onYtNavigate;F9.prototype.onPopupOpened=F9.prototype.onPopupOpened;F9.prototype.onPopupClosed=F9.prototype.onPopupClosed;
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],F9.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],F9.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],F9.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],F9.prototype,"enableFocusFix",void 0);_.c([_.f(),_.w("design:type",Object)],F9.prototype,"covered",void 0);_.c([_.f({computed:"computeHideMenu(covered, data)"}),_.w("design:type",Object)],F9.prototype,"hideMenu",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.w("design:type",String)],F9.prototype,"menuStyle",void 0);
_.c([_.f({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.w("design:type",Object)],F9.prototype,"isCommentNotificationOnProfileCard",void 0);_.c([_.f(),_.w("design:type",Boolean)],F9.prototype,"isPopUpOpen",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],F9.prototype,"scrolledByTouch",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],F9.prototype,"disableBackdropFilter",void 0);
_.c([_.sg("#sections"),_.w("design:type",HTMLElement)],F9.prototype,"sectionsElement",void 0);_.c([_.sg("#spinner"),_.w("design:type",HTMLElement)],F9.prototype,"spinnerElement",void 0);_.c([_.sg("#header"),_.w("design:type",HTMLElement)],F9.prototype,"headerElement",void 0);_.c([_.sg("#container"),_.w("design:type",HTMLElement)],F9.prototype,"JSC$20129_containerElement",void 0);_.c([_.sg("#submenu"),_.w("design:type",HTMLElement)],F9.prototype,"submenuElement",void 0);
_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],F9.prototype,"onPopupClosed",null);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],F9.prototype,"onPopupOpened",null);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],F9.prototype,"onYtNavigate",null);
_.c([_.Kq("yt-service-request-completed"),_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],F9.prototype,"onServiceRequestSentOrCompleted",null);_.c([_.Kq("yt-menu-back-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],F9.prototype,"onMenuBackTap",null);
_.c([_.Kq("yt-submenu-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],F9.prototype,"onSubmenuClosed",null);_.c([_.Kq("yt-retrieve-location"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],F9.prototype,"onRetrieveLocation",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],F9.prototype,"refitAfterRender",null);
_.c([_.z({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],F9);
_.A(F9,"ytd-multi-page-menu-renderer",function(){if(vQC!==void 0)return vQC;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return vQC=v},{mode:1});var RAf;var Q_=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return v};
_.V(Q_,_.P);_.W=Q_.prototype;_.W.created=function(){this.showTooltips=!0};
_.W.computeAccessibility_=function(v){return this.get("accessibility.accessibilityData",v)||null};
_.W.onTap=function(){var v=_.YB(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(v&&v.length===1&&v[0])_.b4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var e;if((e=this.data)==null?0:e.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var d;((d=this.data)==null?0:d.menuRequest)&&_.mN(this.hostElement,[this.data.menuRequest])}}};
_.W.handleTopbarMenuClosedAction=function(v){var e,d;(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(v)===((e=this.data)==null?void 0:(d=e.icon)==null?void 0:d.iconType)&&this.toggleIconState(!1)};
_.W.toggleIconState=function(v){_.N("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=v)};
_.W.handleUpdateTopbarAvatarAction=function(v){var e;v=(e=_.L(v,Xli))==null?void 0:e.avatarUrl;var d,E;e=(d=this.data)==null?void 0:(E=d.avatar)==null?void 0:E.thumbnails;v&&e&&(d={thumbnails:[Object.assign({},e[0],{url:v})]},this.set("data.avatar",d))};
_.vP.Object.defineProperties(Q_.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.IB(this.hostElement).querySelector("#button")}}});
Q_.prototype.onTap=Q_.prototype.onTap;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Q_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],Q_.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.mB2.YtButtonBehavior),_.w("design:type",Object)],Q_.prototype,"ytButtonBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Q_.prototype,"data",void 0);
_.c([_.sg("yt-icon-button#button"),_.w("design:type",Object)],Q_.prototype,"iconButton",void 0);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"onTap",null);_.c([_.z({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Q_);
_.I5()(Q_,"ytd-topbar-menu-button-renderer",function(){if(RAf===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);RAf=v}v=RAf;return v},{allowedProps:["data"],
mode:1});var Pms;var g_=function(){return _.P.apply(this,arguments)||this};
_.V(g_,_.P);g_.prototype.getSelected=function(){return this.reasons.selected};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],g_.prototype,"data",void 0);_.c([_.sg("#reasons"),_.w("design:type",Object)],g_.prototype,"reasons",void 0);_.c([_.z({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],g_);
_.A(g_,"ytd-ad-feedback-content",function(){if(Pms!==void 0)return Pms;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Pms=v},{mode:1});var xhQ;var uJ=function(){return _.P.apply(this,arguments)||this};
_.V(uJ,_.P);_.W=uJ.prototype;_.W.onPopupOpened=function(){_.b4(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.W.computeConfirmButton=function(v){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:v.confirmLabel}};
_.W.computeCancelButton=function(v){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:v.cancelLabel}};
_.W.onConfirmTap=function(){var v=this.content.getSelected();v!==void 0&&(v=this.data.reasons[v].endpoint)&&(_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}}),_.b4(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.W.sendFeedbackSubmitToastAction=function(){var v;(v=this.data)!=null&&v.completionMessage&&_.b4(this.hostElement,"yt-open-popup-action",[_.To(this.data.completionMessage),this])};
_.W.onCancelTap=function(){_.b4(this.hostElement,"yt-close-popup-action")};
uJ.prototype.onPopupOpened=uJ.prototype.onPopupOpened;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],uJ.prototype,"data",void 0);_.c([_.sg("#content"),_.w("design:type",Object)],uJ.prototype,"content",void 0);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],uJ.prototype,"onPopupOpened",null);
_.c([_.z({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],uJ);
_.A(uJ,"ytd-ad-feedback-renderer",function(){if(xhQ!==void 0)return xhQ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return xhQ=v},{mode:1});var Bjs;var nb=function(){return _.P.apply(this,arguments)||this};
_.V(nb,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],nb.prototype,"data",void 0);_.c([_.z({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],nb);
_.A(nb,"ytd-ad-info-dialog-content",function(){if(Bjs!==void 0)return Bjs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Bjs=v},{mode:1});var Cm1;var Dv=function(){return _.P.apply(this,arguments)||this};
_.V(Dv,_.P);Dv.prototype.computeConfirmButton=function(v){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:v.confirmLabel}};
Dv.prototype.onConfirmTap=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Dv.prototype.computeShouldShowTitle=function(){var v;return!((v=this.data)==null||!v.title)};
Dv.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.dk().resolve(_.EI).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Dv.prototype.onPopupClosed=Dv.prototype.onPopupClosed;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Dv.prototype,"data",void 0);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Dv.prototype,"onPopupClosed",null);_.c([_.z({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Dv);
_.A(Dv,"ytd-ad-info-dialog-renderer",function(){if(Cm1!==void 0)return Cm1;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Cm1=v},{mode:1});var XWv;var Ux=function(){var v=_.P.apply(this,arguments)||this;v.actionButtonClass="action-button";v.dismissButtonId="dismiss-button";v.dialogDismiss=!0;return v};
_.V(Ux,_.P);_.W=Ux.prototype;_.W.computeInPlayer=function(v){return(v==null?void 0:v.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.W.computedLogo=function(){var v,e;return this.isDarkTheme()?(v=this.data)==null?void 0:v.logoDark:(e=this.data)==null?void 0:e.logo};
_.W.computedHeaderImage=function(){var v,e;return this.isDarkTheme()?(v=this.data)==null?void 0:v.headerImageDark:(e=this.data)==null?void 0:e.headerImage};
_.W.computeLogoIconId=function(){var v,e,d,E=(v=this.computedLogo())==null?void 0:(e=v.sources)==null?void 0:(d=e[0])==null?void 0:d.height;return E&&E%31===0?"logo-icon-with-padding":"logo-icon"};
_.W.computeLogoIconHeight=function(){var v,e,d,E=(v=this.computedLogo())==null?void 0:(e=v.sources)==null?void 0:(d=e[0])==null?void 0:d.height;return E&&E%31===0?"31":"24"};
_.W.onPopupClosed=function(){_.dk().resolve(_.hp).dispose()};
_.W.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.W.onShow=function(){this.inPlayer&&_.sj(6)};
_.W.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var v=0;v<this.data.impressionEndpoints.length;v++){var e=_.L(this.data.impressionEndpoints[v],_.zj);e&&this.ytComponentBehavior.resolveCommand(e)}};
_.W.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.b4(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.vP.Object.defineProperties(Ux.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var v,e;return!((v=this.data)==null||!v.headerImageDark)&&!((e=this.data)==null||!e.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.secondaryButton)}}});
Ux.prototype.onPopupClosed=Ux.prototype.onPopupClosed;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Ux.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.Qy.YtVisibilityBehavior),_.w("design:type",Object)],Ux.prototype,"ytVisibilityBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ux.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],Ux.prototype,"actionButtonClass",void 0);_.c([_.f(),_.w("design:type",Object)],Ux.prototype,"dismissButtonId",void 0);_.c([_.f(),_.w("design:type",Object)],Ux.prototype,"dialogDismiss",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ux.prototype,"hasHeaderImage",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ux.prototype,"hasPremiumButton",null);
_.c([_.f({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.w("design:type",Boolean)],Ux.prototype,"inPlayer",void 0);_.c([_.sg("#dismiss-button"),_.w("design:type",HTMLElement)],Ux.prototype,"dismissButton",void 0);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ux.prototype,"onPopupClosed",null);_.c([_.z({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Ux);
_.A(Ux,"ytd-enforcement-message-view-model",function(){if(XWv!==void 0)return XWv;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return XWv=v},{mode:1});var zAs;var lJs;var pb=function(){var v=_.P.apply(this,arguments)||this;v.TEST_ONLY={immediateValidation:function(){v.immediateValidation()},
onValidationResponse:function(e){v.onValidationResponse(e)},
onGenerateHandleFromNameResponse:function(e){v.onGenerateHandleFromNameResponse(e)}};
return v};
_.V(pb,_.P);_.W=pb.prototype;_.W.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.W.validate=function(){this.immediateValidation()};
_.W.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.W.setHandleInputValue=function(v){this.handleDir=this.getHandleDir(v);this.handleInput.value=v;this.validationState={status:"PENDING"};this.immediateValidation()};
_.W.getHandleDir=function(v){var e=v===""&&!1;return(e=_.ofg.test.call(_.ofg,v))?"rtl":"ltr"};
_.W.onDataChanged=function(){var v,e;this.handleDir=this.getHandleDir((e=(v=this.data)==null?void 0:v.handle)!=null?e:"");var d;this.validationState=((d=this.data)==null?0:d.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var E;((E=this.data)==null?0:E.validateOnInit)&&this.immediateValidation()};
_.W.stopPropagation=function(v){v.stopPropagation()};
_.W.onInput=function(){var v;this.handleDir=this.getHandleDir((v=this.handleInput.value)!=null?v:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.W.onFocusout=function(v){this.handleInput.contains(v.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.W.delayedValidation=function(){var v,e;this.debouncedValidation((e=(v=this.data)==null?void 0:v.validationDelayMs)!=null?e:1E3)};
_.W.immediateValidation=function(){this.debouncedValidation(0)};
_.W.debouncedValidation=function(v){var e=this;_.gi(this,"debouncedValidation",function(){var d,E=e.staticValidation((d=e.handleInput.value)!=null?d:"");if(E!==void 0)e.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:E};else{var T;if((T=e.data)!=null&&T.validateChannelHandleCommand){e.validationState={status:"LOADING"};var S;e.ytComponentBehavior.resolveCommand(e.data.validateChannelHandleCommand,{form:{handle:(S=e.handleInput.value)!=null?S:""},commandController:{onSuccess:function(O,
b){e.onValidationResponse(b)},
onServerError:function(O,b){e.onValidationServerError(b)}}})}else e.handleUnexpectedValidationError(new _.kL("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",e.data))}},v)};
_.W.staticValidation=function(v){var e;if(((e=this.data)==null?void 0:e.channelHandleStaticValidationParams)!==void 0){e=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(v)&&e.validValueRegexpErrorMessage!==void 0)return e.validValueRegexpErrorMessage;if(e.minLength!==void 0&&v.length<e.minLength&&e.minLengthErrorMessage!==void 0)return e.minLengthErrorMessage;if(e.maxLength!==void 0&&v.length>e.maxLength&&e.maxLengthErrorMessage!==void 0)return e.maxLengthErrorMessage}};
_.W.onValidationResponse=function(v){var e=_.L(v.result,zrt);e===void 0?this.handleUnexpectedValidationError(new _.kL("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",v)):this.handleValidationResultRenderer(e)};
_.W.onValidationServerError=function(v){this.handleUnexpectedValidationError(new _.kL("ValidateChannelHandle request failed.",v))};
_.W.handleValidationResultRenderer=function(v){if(v.handle===void 0)this.handleUnexpectedValidationError(new _.kL("ChannelHandleValidationResultRenderer does not contain handle.",v));else if(v.handle===this.handleInput.value)switch(v.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:v.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:v.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.kL("Unrecognized ChannelHandleValidationResult",v));break;default:_.Z0(v.result)}};
_.W.handleUnexpectedValidationError=function(v){var e;this.validationState={status:"UNKNOWN",handle:(e=this.handleInput.value)!=null?e:""};_.xf(v)};
_.W.stopEventPropagation=function(v){v.stopPropagation()};
_.W.updateHandleOnChannelNameInputChange=function(v){if(!this.wasEdited){var e,d;this.debouncedGenerateHandleFromName(v,(d=(e=this.data)==null?void 0:e.validationDelayMs)!=null?d:1E3)}};
_.W.debouncedGenerateHandleFromName=function(v,e){var d=this;_.gi(this,"debouncedGenerateHandleFromName",function(){var E;(E=d.data)!=null&&E.validateChannelHandleCommand?d.ytComponentBehavior.resolveCommand(d.data.validateChannelHandleCommand,{form:{name:v},commandController:{onSuccess:function(T,S){d.onGenerateHandleFromNameResponse(S)},
onServerError:function(T,S){_.xf(new _.kL("Error calling GenerateHandleFromName",S))}}}):_.xf(new _.kL("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",d.data))},e)};
_.W.onGenerateHandleFromNameResponse=function(v){this.wasEdited||((v=_.L(v.result,lh9))?this.setHandleInputValue(v.handle):_.xf(new _.kL("Invalid results when generate handle from name")))};
_.vP.Object.defineProperties(pb.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var v;if(v=this.validationState)v=this.validationState,v=v.status==="OK"||v.status==="UNKNOWN";if(v)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var v;if(((v=this.validationState)==null?void 0:v.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 v,e=(v=this.channelHandleEntity)==null?void 0:v.handleEdit;this.handleDir=this.getHandleDir(e!=null?e:"");return e}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var v,e;if(((v=this.data)==null?void 0:(e=v.channelHandleStaticValidationParams)==null?void 0:e.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
pb.prototype.stopEventPropagation=pb.prototype.stopEventPropagation;pb.prototype.onDataChanged=pb.prototype.onDataChanged;pb.prototype.applyHandleEdit=pb.prototype.applyHandleEdit;pb.prototype.onValueChanged=pb.prototype.onValueChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],pb.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],pb.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pb.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Boolean)],pb.prototype,"wasEdited",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],pb.prototype,"handleDir",void 0);_.c([_.sg("#handle-input"),_.w("design:type",Object)],pb.prototype,"handleInput",void 0);_.c([_.f(),_.t("validationState"),_.w("design:type",Object),_.w("design:paramtypes",[])],pb.prototype,"value",null);
_.c([_.$v("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pb.prototype,"onValueChanged",null);_.c([_.t("validationState"),_.w("design:type",Object),_.w("design:paramtypes",[])],pb.prototype,"errorIndicator",null);_.c([_.f({reflectToAttribute:!0}),_.t("errorIndicator"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],pb.prototype,"borderErrorIndicator",null);
_.c([_.f({selectorArgs:["data.channelHandleEntityKey"],selector:function(v,e){return _.h_(v.entities,"channelHandle",e)}}),
_.w("design:type",Object)],pb.prototype,"channelHandleEntity",void 0);_.c([_.t("channelHandleEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],pb.prototype,"handleEdit",null);_.c([_.$v("handleEdit"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pb.prototype,"applyHandleEdit",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pb.prototype,"onDataChanged",null);
_.c([_.t("data.channelHandleStaticValidationParams.validValueRegexp"),_.w("design:type",Object),_.w("design:paramtypes",[])],pb.prototype,"validValueRegexp",null);_.c([_.Kq("yt-service-request-sent"),_.Kq("yt-service-request-completed"),_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],pb.prototype,"stopEventPropagation",null);_.c([_.z({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],pb);
_.A(pb,"ytd-channel-handle-input-renderer",function(){if(lJs!==void 0)return lJs;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return lJs=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var v_=function(){var v=_.P.apply(this,arguments)||this;v.data=null;v.errorMessage=null;v.isLoading=!0;v.hideContainer=!1;v.enableNewChannelCreationOnIdForAll=_.N("enable_new_channel_creation_for_id4all");v.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"};v.testOnly={setErrorMessage:function(e){v.resetErrorState();
v.setErrorState(e)}};
return v};
_.V(v_,_.P);_.W=v_.prototype;_.W.created=function(){this.logScreenVe()};
_.W.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")};
_.W.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var v;((v=this.zeroStepErrorMessageEntity)==null?0:v.value)&&this.set("errorMessage",_.pQ(this.zeroStepErrorMessageEntity.value))};
_.W.onCreateTap=function(){var v=this;if(this.data&&this.data.channelCreationEndpoint){var e,d;if(!((e=this.data.createChannelButton)==null?0:(d=e.buttonRenderer)==null?0:d.isDisabled)){var E;if((E=this.nameInput)!=null&&E.value){this.setLoadingState();var T,S;e=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((S=this.handleInput)==null?void 0:S.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:e,commandController:{onSuccess:function(O,b){v.onChannelCreationEndpointSuccess(b);v.obakeImageSource&&_.tI("channelCreatedWithObakeImage",{imageSourceType:v.obakeImageSource})},
onServerError:function(){v.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.W.endpointRequiresServiceRequestAction=function(v){return!!_.L(v,_.k5)||!!_.L(v,Xli)};
_.W.isNavigateAction=function(v){var e;return!!_.L(v,_.dl)||!!_.L((e=_.L(v,Zs9))==null?void 0:e.command,_.dl)};
_.W.isPlaylistAction=function(v){return!!_.L(v,_.Ri)||!!_.L(v,_.z1)};
_.W.onChannelCreationEndpointSuccess=function(v){if(v.createChannelError){var e;this.setErrorState((e=v.createChannelError)==null?void 0:e.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.N("enable_secondary_channel_creation_form")&&v.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(v.navigationEndpoint);if(v.actions){e=_.a(v.actions);for(var d=e.next();!d.done;d=e.next())if(d=d.value,this.endpointRequiresServiceRequestAction(d)&&this.ytComponentBehavior.resolveCommand(d),
this.isNavigateAction(d)){var E=void 0;d=_.L((E=_.L(d,Zs9))==null?void 0:E.command,_.dl);E=void 0;this.isPlaylistAction((E=d)==null?void 0:E.endpoint)&&(_.b4(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),E=void 0,this.ytComponentBehavior.resolveCommand((E=d)==null?void 0:E.endpoint))}}v.actions&&v.actions.some(function(T){var S;return _.L(T,_.dl)||_.L((S=_.L(T,Zs9))==null?void 0:S.command,_.dl)})||_.b4(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.W.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.W.onCancelTap=function(){var v,e,d;if(!((v=this.data)==null?0:(e=v.cancelButton)==null?0:(d=e.buttonRenderer)==null?0:d.isDisabled)){var E,T,S;v=(E=this.data)==null?void 0:(T=E.cancelButton)==null?void 0:(S=T.buttonRenderer)==null?void 0:S.command;if(!v||!_.L(v,_.C7$)){var O;this.nameInput&&((O=this.data)==null?0:O.name)&&(this.nameInput.value=this.data.name);var b;this.handleInput&&((b=this.data)==null?0:b.channelHandleInput)&&(this.handleInput.data=_.L(this.data.channelHandleInput,Hst));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.W.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.W.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.W.onClearProfilePhotoTap=function(){var v,e,d;((v=this.data)==null?0:(e=v.clearProfilePhotoButton)==null?0:(d=e.buttonRenderer)==null?0:d.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.W.onEditAvatarTap=function(){var v,e,d;((v=this.data)==null?0:(e=v.editAvatarButton)==null?0:(d=e.buttonRenderer)==null?0:d.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.W.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)};
_.W.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var v;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((v=this.data)==null?0:v.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.W.setErrorState=function(v){this.resetErrorState();if(v)this.set("errorMessage",v);else{var e;if((e=this.zeroStepErrorMessageEntity)==null?0:e.value)this.set("errorMessage",_.pQ(this.zeroStepErrorMessageEntity.value));else{var d;((d=this.data)==null?0:d.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.W.fetchImageBlobWithAlr=function(v,e){e=e===void 0?5:e;var d=this,E,T,S,O,b;return _.I(function(Y){switch(Y.nextAddress){case 1:return Y.yield(fetch(v,{method:"GET",mode:"cors"}),2);case 2:E=Y.yieldResult;if(E.ok){Y.jumpTo(3);break}if(e===0)throw Error();T=d.addJitter(Math.pow(2,5-e));return Y.yield(new Promise(function(q){setTimeout(q,T*1E3)}),4);
case 4:return Y.return(d.fetchImageBlobWithAlr(v,e-1));case 3:if(!E.headers.get("content-type").split(";").some(function(q){return q.trim()==="text/plain"})){Y.jumpTo(5);
break}S=d;O=S.fetchImageBlobWithAlr;return Y.yield(E.text(),6);case 6:return Y.return(O.call(S,Y.yieldResult,e-1));case 5:return Y.yield(E.blob(),7);case 7:return b=Y.yieldResult,Y.return(b)}})};
_.W.addJitter=function(v){var e=v*.3*Math.random();Math.random()>.5&&(e*=-1);return v+e};
_.W.openProfilePicturePicker=function(){var v=this,e,d,E,T,S;return _.I(function(O){if(O.nextAddress==1){e=v.data.scottyUploadUrl;if(!e)return O.return();d=document.documentElement.hasAttribute("dark");E=document.body.style.colorScheme;d&&(document.body.style.colorScheme="dark");T=FWO(Q9Q(wrf(XrC(d?"dark":"light")),function(b){var Y,q,r,h,K;return _.I(function(k){if(k.nextAddress==1)return Y=_.Xr(Ol_(new cR(b.photoUrl,!1)).build(),"alr","yes"),v.obakeImageSource=v.pictureChangeSourceToObakeImageSourceType(b.photoSource),
_.qq(k,2),v.setLoadingState(),k.yield(v.fetchImageBlobWithAlr(Y),4);if(k.nextAddress!=2)return q=k.yieldResult,r=new FileReader,r.addEventListener("load",function(){var J,R,B,X,Z,U;return _.I(function(F){if(F.nextAddress==1){if(q.size>15728640)return v.setErrorState((J=v.data)==null?void 0:J.imageSizeErrorMessage),_.xf(Error("vl")),F.return();if(!r.result)return v.setErrorState((R=v.data)==null?void 0:R.genericImageLoadErrorMessage),_.xf(Error("wl")),F.return();B=r.result;_.qq(F,2);return F.yield(rgs(q,
e),4)}if(F.nextAddress!=2)return X=F.yieldResult,v.handleImageUpdatedAction(B,X),v.resetErrorState(),_.wk(F,0);Z=_.jl(F);v.setErrorState((U=v.data)==null?void 0:U.uploadErrorMessage);if(Z instanceof Error)_.RI(Z);else{var g=new _.kL(JSON.stringify(Z));_.RI(g)}_.s9(F)})}),r.readAsDataURL(q),_.wk(k,0);
h=_.jl(k);v.setErrorState((K=v.data)==null?void 0:K.genericImageLoadErrorMessage);h instanceof Error?_.RI(h):_.PV(new _.kL(JSON.stringify(h)));_.s9(k)})}),function(){v.hideContainer=!1;
document.body.style.colorScheme=E});
_.qq(O,2);return O.yield(T.openPicker(),4)}if(O.nextAddress!=2)return _.wk(O,0);_.jl(O);v.setErrorState((S=v.data)==null?void 0:S.selectImageErrorMessage);_.s9(O)})};
_.W.pictureChangeSourceToObakeImageSourceType=function(v){switch(v){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.W.logScreenVe=function(){_.Ig(_.NC(),124448)};
_.W.graftServerVe=function(){var v=_.Xf(),e,d,E=(e=this.data)==null?void 0:(d=e.loggingDirectives)==null?void 0:d.trackingParams;E&&v&&(this.channelCreationFormVe=_.NC().graftServerVe(E,v),v={visualElement:this.channelCreationFormVe},_.j2().reportShown(v))};
_.W.isNameChanged=function(v){var e;return((e=this.data)==null?void 0:e.name)!==v};
_.W.isHandleChanged=function(v){var e,d=_.L((e=this.data)==null?void 0:e.channelHandleInput,Hst);return d&&v?d.handle!==v:!1};
_.W.handleImageUpdatedAction=function(v,e){this.hideContainer=!1;this.previewDataUrl=v;this.encryptedBlobId=e};
_.W.handleImageSelectionErrorAction=function(v){this.hideContainer=!1;this.setErrorState(v)};
_.W.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.W.showContainer=function(){this.hideContainer=!1};
_.W.maybeWipeZeroStepErrorMessage=function(){var v,e=(v=this.data)==null?void 0:v.zeroStepErrorMessageEntityKey,d;e&&((d=this.zeroStepErrorMessageEntity)==null?0:d.value)&&this.ytdReduxBehavior.dispatch(_.Lv("stringEntity",e,{key:e,value:""}))};
_.vP.Object.defineProperties(v_.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 v;return((v=this.photoThumbnail)==null?0:v.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 v;return!((v=this.data)==null||!v.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.descriptionInfo}}});
v_.prototype.dataChanged=v_.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],v_.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],v_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],v_.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],v_.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],v_.prototype,"errorMessage",void 0);
_.c([_.f(),_.w("design:type",Object)],v_.prototype,"isLoading",void 0);_.c([_.f(),_.w("design:type",String)],v_.prototype,"previewDataUrl",void 0);_.c([_.f(),_.w("design:type",Number)],v_.prototype,"obakeImageSource",void 0);_.c([_.f(),_.w("design:type",Object)],v_.prototype,"hideContainer",void 0);_.c([_.sg("#title-input"),_.w("design:type",Object)],v_.prototype,"nameInput",void 0);_.c([_.sg("#handle-input"),_.w("design:type",Object)],v_.prototype,"handleInput",void 0);
_.c([_.f(),_.w("design:type",Boolean)],v_.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.c([_.f({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.l2}),_.w("design:type",Object)],v_.prototype,"zeroStepErrorMessageEntity",void 0);_.c([_.t("data","data.isDefaultProfilePhoto","previewDataUrl"),_.w("design:type",Object),_.w("design:paramtypes",[])],v_.prototype,"photoThumbnail",null);
_.c([_.t("data","data.isDefaultProfilePhoto","photoThumbnail"),_.w("design:type",Object),_.w("design:paramtypes",[])],v_.prototype,"userSetPhotoThumbnailUrl",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],v_.prototype,"hideProfilePhotoButtonLayer",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],v_.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.c([_.V1("data","zeroStepErrorMessageEntity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],v_.prototype,"dataChanged",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.descriptionInfo","zeroStepErrorMessageEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v_.prototype,"description",null);_.c([_.z({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],v_);
_.A(v_,"ytd-channel-creation-dialog-renderer",function(){if(zAs!==void 0)return zAs;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return zAs=v},{mode:1});var H5S;var eR=function(){var v=_.P.apply(this,arguments)||this;v.isLoading=!1;v.isDisabled=!1;return v};
_.V(eR,_.P);eR.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
eR.prototype.updateDisabled=function(){var v;this.isDisabled=this.isLoading||((v=this.handleInput)==null?void 0:v.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
eR.prototype.onSaveClick=function(){var v=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var e;((e=this.data)==null?void 0:e.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var d;if((d=v.data)==null?0:d.nextEndpoint){var E;v.ytComponentBehavior.resolveCommand((E=v.data)==null?void 0:E.nextEndpoint)}else v.isLoading=
!1,v.closeDialog()},
onServerError:function(){v.isLoading=!1;v.handleInput.validate();var d;v.errorMessage=(d=v.data)==null?void 0:d.errorMessage}}}))}};
eR.prototype.closeDialog=function(){_.b4(this.hostElement,"yt-close-popup-action",[this.is])};
eR.prototype.updateDisabled=eR.prototype.updateDisabled;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],eR.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],eR.prototype,"data",void 0);_.c([_.sg("#handle-input"),_.w("design:type",Object)],eR.prototype,"handleInput",void 0);_.c([_.$v("isLoading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eR.prototype,"updateDisabled",null);
_.c([_.z({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],eR);
_.A(eR,"ytd-channel-handle-edit-dialog-renderer",function(){if(H5S!==void 0)return H5S;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return H5S=v},{mode:1});var Ahv;var dU=function(){return _.P.apply(this,arguments)||this};
_.V(dU,_.P);dU.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],dU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],dU.prototype,"data",void 0);_.c([_.z({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],dU);
_.A(dU,"ytd-channel-switcher-footer-renderer",function(){if(Ahv!==void 0)return Ahv;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Ahv=v},{mode:1});var Z5C;var chi;var EB=function(){return _.P.apply(this,arguments)||this};
_.V(EB,_.P);EB.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
EB.prototype.onIronChange=EB.prototype.onIronChange;_.c([_.f(),_.w("design:type",Object)],EB.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!1}),_.w("design:type",Function)],EB.prototype,"onDontAskAgainChanged",void 0);_.c([_.sg("#checkbox"),_.w("design:type",Object)],EB.prototype,"checkbox",void 0);_.c([_.Kq("iron-change"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EB.prototype,"onIronChange",null);
_.c([_.z({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],EB);
_.A(EB,"ytd-identity-prompt-footer-renderer",function(){if(chi!==void 0)return chi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return chi=v},{mode:1});var Tc=function(){var v=_.P.apply(this,arguments)||this;v.dontAskAgain=!1;v.showPopup=!1;v.boundDontAskAgainChanged=function(e){v.dontAskAgainChanged(e)};
v.boundOnAccountItemTap=function(e){v.onAccountItemTap(e)};
return v};
_.V(Tc,_.P);_.W=Tc.prototype;
_.W.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]]"}}}}}};
_.W.ready=function(){var v=this;_.IB(this.hostElement).querySelector("#container").addEventListener("scroll",function(){v.ytRendererBehavior.markDirty()})};
_.W.dontAskAgainChanged=function(v){this.dontAskAgain=v};
_.W.onAccountItemTap=function(v){if(v){var e={};this.dontAskAgain&&(e={dont_ask_again:this.dontAskAgain});_.uX(v,e)}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.W.redirectOnlyAccount=function(v){v.sections&&v.sections.length>0&&(v=_.L(v.sections[0],_.o0e),(v==null?0:v.contents)&&(v==null?void 0:v.contents.length)<=1?(v=_.QU(window.location.href),(v==null?0:v.next)&&_.NVt(v.next)?_.uX(v.next):_.uX("/")):this.showPopup=!0)};
Tc.prototype.dataChanged=Tc.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Tc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Tc.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!1}),_.w("design:type",Object)],Tc.prototype,"dontAskAgain",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Tc.prototype,"showPopup",void 0);_.c([_.f({reflectToAttribute:!1}),_.w("design:type",Object)],Tc.prototype,"boundDontAskAgainChanged",void 0);_.c([_.f({reflectToAttribute:!1}),_.w("design:type",Object)],Tc.prototype,"boundOnAccountItemTap",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Tc.prototype,"dataChanged",null);
_.c([_.z({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Tc);
_.A(Tc,"ytd-channel-switcher-renderer",function(){if(Z5C!==void 0)return Z5C;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Z5C=v},{mode:1});var wWv;var SR=function(){return _.P.apply(this,arguments)||this};
_.V(SR,_.P);_.vP.Object.defineProperties(SR.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.c([_.f(),_.w("design:type",Object)],SR.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],SR.prototype,"steps",null);_.c([_.z({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],SR);
_.A(SR,"ytd-channel-transfer-stepper-renderer",function(){if(wWv!==void 0)return wWv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return wWv=v},{mode:1});var FF1;var W_=function(){var v=_.P.apply(this,arguments)||this;v.data=null;v.isError=!1;v.isLoading=!1;return v};
_.V(W_,_.P);_.W=W_.prototype;_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.W.computeProfileName=function(v){return v?v.givenNameValue+" "+v.familyNameValue:""};
_.W.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)};
_.W.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)};
W_.prototype.onYtServiceRequestError=W_.prototype.onYtServiceRequestError;W_.prototype.onYtServiceRequestSent=W_.prototype.onYtServiceRequestSent;W_.prototype.dataChanged=W_.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],W_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],W_.prototype,"data",void 0);
_.c([_.f({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.w("design:type",String)],W_.prototype,"profileName",void 0);_.c([_.f(),_.w("design:type",Object)],W_.prototype,"isError",void 0);_.c([_.f(),_.w("design:type",Object)],W_.prototype,"isLoading",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],W_.prototype,"dataChanged",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],W_.prototype,"onYtServiceRequestSent",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],W_.prototype,"onYtServiceRequestError",null);_.c([_.z({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],W_);
_.A(W_,"ytd-channel-warm-welcome-cont-renderer",function(){if(FF1!==void 0)return FF1;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return FF1=v},{mode:1});var Qo_;var aQ=function(){var v=_.P.apply(this,arguments)||this;v.data=null;return v};
_.V(aQ,_.P);aQ.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
aQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],aQ.prototype,"data",void 0);_.c([_.z({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],aQ);
_.A(aQ,"ytd-channel-warm-welcome-renderer",function(){if(Qo_!==void 0)return Qo_;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Qo_=v},{mode:1});var gQi;var iF=function(){return _.P.apply(this,arguments)||this};
_.V(iF,_.P);_.vP.Object.defineProperties(iF.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.authorThumbnail)||{}}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],iF.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],iF.prototype,"thumbnailDetails",null);_.c([_.z({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],iF);
_.A(iF,"ytd-comment-preview-renderer",function(){if(gQi!==void 0)return gQi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return gQi=v},{mode:1});var ug_;var OB=function(){return _.P.apply(this,arguments)||this};
_.V(OB,_.P);OB.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vP.Object.defineProperties(OB.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.submitButton}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],OB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],OB.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],OB.prototype,"submitButton",null);_.c([_.z({is:"ytd-notice-renderer",disableElementRegistration:!0})],OB);
_.A(OB,"ytd-notice-renderer",function(){if(ug_!==void 0)return ug_;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return ug_=v},{mode:1});var nQi;var my=function(){return _.P.apply(this,arguments)||this};
_.V(my,_.P);my.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],my.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],my.prototype,"data",void 0);_.c([_.z({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],my);
_.A(my,"ytd-preview-comment-dialog-content",function(){if(nQi!==void 0)return nQi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return nQi=v},{mode:1});var DhS;var y3=function(){return _.P.apply(this,arguments)||this};
_.V(y3,_.P);y3.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
y3.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],y3.prototype,"data",void 0);_.c([_.z({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],y3);
_.A(y3,"ytd-preview-comment-dialog-renderer",function(){if(DhS!==void 0)return DhS;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return DhS=v},{mode:1});var Uhv;var pW_=_.N("web_button_rework")&&_.zr("BUTTON_REWORK")||_.N("web_button_rework_with_live"),qc=function(){var v=_.P.apply(this,arguments)||this;v.closeLabel=_.sz("CLOSE");v.selectedAmountIndex=1;v.privacyCheckboxValue=!1;v.useAmsterdamStyle=pW_;v.amountPlaceholderIndex=-1;return v};
_.V(qc,_.P);_.W=qc.prototype;_.W.onAmountClick=function(v){this.selectedAmountIndex=_.IB(this.hostElement).querySelector("#amounts").indexForElement(v.currentTarget)};
_.W.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.b4(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.W.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.b4(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.b4(this.hostElement,"yt-close-popup-action",[this.is]);var v;(v=_.dB())==null||v.getPlayerPromise().then(function(e){e.pauseVideo()})}};
_.W.donationCallback=function(v){v.success?(this.hostElement.hasAttribute("live-chat")&&v.response&&v.response.data&&v.response.data.actions&&_.b4(this.hostElement,"yt-live-chat-open-popup",[v.response.data.actions[0]]),_.b4(this.hostElement,"yt-close-popup-action",[this.is]),_.b4(this.hostElement,"yt-live-chat-close-buy-flow")):v.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(v.errorMessageRenderer)};
_.W.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.IB(this.hostElement).querySelector("#custom-amount-input").focus()};
_.W.updateConfirmationDialogTextWithAmount=function(v){var e=this.getConfirmDialogRuns();e&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(e),"text"],this.getFormattedAmount(v))};
_.W.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.W.getAmountPlaceholderIndex=function(v){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=v.findIndex(function(e){return e.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.W.getFormattedAmount=function(v){var e;return(new _.QR(4,((e=this.data)==null?void 0:e.currencyCode)||"")).format(v)};
_.W.isAmountValid=function(v){if(v==="")return!1;v=Number(v)*1E6;var e=this.get("minAmountMicros",this.data),d=this.get("maxAmountMicros",this.data);return e&&v<e||d&&v>d?!1:!0};
_.W.setInputError=function(){this.shouldShowValidationError?_.IB(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.IB(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.W.setInitialCheckboxValue=function(){var v;this.privacyCheckboxValue=!((v=this.data)==null||!v.privacyCheckboxInitialState)};
_.W.updateCustomAmountInputFromBinding=function(v){this.customAmountInput=v.detail.value};
_.W.updatePrivacyCheckboxValueFromBinding=function(v){this.privacyCheckboxValue=v.detail.value};
_.vP.Object.defineProperties(qc.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var v=this,e,d;return((e=this.data)==null?void 0:(d=e.suggestedAmounts)==null?void 0:d.map(function(E,T){return{buttonRenderer:{style:v.selectedAmountIndex===T?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:E.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 v;return!((v=this.data)==null||!v.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 v=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(v&&this.amountMicros!==null)return Object.assign({},v,{ypcGetCartEndpoint:Object.assign({},v.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 v=this.get("confirmLargeAmount",this.data);if(v&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),v}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var v=this.get("donateButton.buttonRenderer",this.data);if(v)return Object.assign({},v,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
qc.prototype.setInitialCheckboxValue=qc.prototype.setInitialCheckboxValue;qc.prototype.setInputError=qc.prototype.setInputError;qc.prototype.setFocusOnCustomAmountInput=qc.prototype.setFocusOnCustomAmountInput;_.c([_.M(bj9),_.w("design:type",Object)],qc.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],qc.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],qc.prototype,"closeLabel",void 0);_.c([_.f(),_.w("design:type",Object)],qc.prototype,"selectedAmountIndex",void 0);_.c([_.f(),_.w("design:type",String)],qc.prototype,"customAmountInput",void 0);_.c([_.f(),_.w("design:type",Object)],qc.prototype,"privacyCheckboxValue",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],qc.prototype,"useAmsterdamStyle",void 0);_.c([_.$v("customAmount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qc.prototype,"setFocusOnCustomAmountInput",null);_.c([_.t("data","selectedAmountIndex"),_.w("design:type",Array),_.w("design:paramtypes",[])],qc.prototype,"suggestedAmountButtons",null);
_.c([_.t("data","selectedAmountIndex"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qc.prototype,"isCustomAmountSelected",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qc.prototype,"showPrivacyCheckbox",null);_.c([_.t("data","selectedAmountIndex","customAmount"),_.w("design:type",Object),_.w("design:paramtypes",[])],qc.prototype,"amountMicros",null);
_.c([_.t("isCustomAmountSelected","customAmountInput"),_.w("design:type",Object),_.w("design:paramtypes",[])],qc.prototype,"customAmount",null);_.c([_.t("customAmount"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qc.prototype,"shouldShowValidationError",null);_.c([_.t("customAmount"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qc.prototype,"isDonateButtonEnabled",null);
_.c([_.t("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.w("design:type",Object),_.w("design:paramtypes",[])],qc.prototype,"donateCommand",null);_.c([_.t("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.w("design:type",Object),_.w("design:paramtypes",[])],qc.prototype,"donateCommandWithConfirmation",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],qc.prototype,"largeDonationThreshold",null);
_.c([_.t("customAmount","donateCommand","amountMicros"),_.w("design:type",Object),_.w("design:paramtypes",[])],qc.prototype,"confirmLargeAmountCommand",null);_.c([_.t("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.w("design:type",Object),_.w("design:paramtypes",[])],qc.prototype,"donateButtonRenderer",null);_.c([_.$v("shouldShowValidationError"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qc.prototype,"setInputError",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qc.prototype,"setInitialCheckboxValue",null);_.c([_.z({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],qc);
_.A(qc,"ytd-donation-amount-picker-renderer",function(){if(Uhv!==void 0)return Uhv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Uhv=v},{mode:1});var vOs;var rU=function(){return _.P.apply(this,arguments)||this};
_.V(rU,_.P);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],rU.prototype,"ytComponentBehavior",void 0);_.c([_.f({}),_.w("design:type",Object)],rU.prototype,"data",void 0);_.c([_.z({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],rU);
_.A(rU,"ytd-donation-post-transaction-content",function(){if(vOs!==void 0)return vOs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return vOs=v},{mode:1});var eK_;var hV=function(){return _.P.apply(this,arguments)||this};
_.V(hV,_.P);hV.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],hV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.c([_.f({}),_.w("design:type",Object)],hV.prototype,"data",void 0);_.c([_.z({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],hV);
_.A(hV,"ytd-donation-post-transaction-renderer",function(){if(eK_!==void 0)return eK_;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return eK_=v},{mode:1});var dj9;var EOt;var Kn=function(){return _.P.apply(this,arguments)||this};
_.V(Kn,_.P);Kn.prototype.computeIsStreamingProvider=function(v){return!!v.isStreamingShelf};
Kn.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Kn.prototype,"data",void 0);_.c([_.f({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Kn.prototype,"isStreamingProvider",void 0);
_.c([_.z({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Kn);
_.A(Kn,"ytd-media-provider-renderer",function(){if(EOt!==void 0)return EOt;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return EOt=v},{mode:1});var Tz9;var $t=function(){return _.P.apply(this,arguments)||this};
_.V($t,_.P);$t.prototype.observeLightsourcePalette=function(){var v,e=(v=this.data)==null?void 0:v.vibrantsourceColorPaletteData;e&&_.t8(this.hostElement,e)};
$t.prototype.observeLightsourcePalette=$t.prototype.observeLightsourcePalette;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],$t.prototype,"data",void 0);
_.c([_.$v("data.vibrantsourceColorPaletteData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$t.prototype,"observeLightsourcePalette",null);_.c([_.z({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],$t);
_.A($t,"ytd-streaming-pop-up-dialog",function(){if(Tz9!==void 0)return Tz9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Tz9=v},{mode:1});var jR=function(){return _.P.apply(this,arguments)||this};
_.V(jR,_.P);jR.prototype.onPopupOpened_=function(){var v;((v=this.data)==null?0:v.serviceEndpoint)&&_.dk().resolve(_.EI).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
jR.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
jR.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"}}}}};
jR.prototype.onPopupOpened_=jR.prototype.onPopupOpened_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],jR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.FL),_.w("design:type",Object)],jR.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],jR.prototype,"data",void 0);
_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jR.prototype,"onPopupOpened_",null);_.c([_.z({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],jR);
_.A(jR,"ytd-brandconnect-popup-renderer",function(){if(dj9!==void 0)return dj9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return dj9=v},{mode:1});var SDf;var sB=function(){return _.P.apply(this,arguments)||this};
_.V(sB,_.P);_.W=sB.prototype;_.W.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(){for(var v=0;v<this.getOptionRenderers().length;v++)this.notifyPath("data.options."+v+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+v+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.W.updateSubmitButton=function(v){this.set("data.submitButton.buttonRenderer.isDisabled",!v)};
_.W.computeAlt=function(v){return _.vv(v)};
_.W.onDismissTap=function(){_.b4(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.dk().resolve(_.EI).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.W.getOptionRenderers=function(v){return(v=v||this.data)&&v.options?v.options.reduce(function(e,d){d.checkboxSurveyOptionRenderer&&e.push(d.checkboxSurveyOptionRenderer);return e},[]):[]};
_.W.onOptionChange=function(v){var e=this,d=!1;if(v.detail.checked)for(var E=this.getOptionRenderers().find(function(b){return b.value===v.detail.value}),T=this.getOptionRenderers(),S=0;S<T.length;S++){var O=T[S];
this.notifyPath("data.options."+S+".checkboxSurveyOptionRenderer.checked");O.checked&&((E==null?0:E.isExclusiveOption)?!O.isExclusiveOption:O.isExclusiveOption)?this.set("data.options."+S+".checkboxSurveyOptionRenderer.checked",!1):O.checked&&(d=!0)}else d=this.getOptionRenderers().some(function(b,Y){e.notifyPath("data.options."+Y+".checkboxSurveyOptionRenderer.checked");return b.checked});
this.updateSubmitButton(d)};
_.W.onSubmitTap=function(){var v=this.getOptionRenderers().filter(function(S){return S.checked});
if(v.length!==0){var e=v.map(function(S){return S.responseEndpoint});
v=[];for(var d=1;d<e.length;d++){var E=void 0,T=(E=_.L(e[d],_.LO))==null?void 0:E.feedbackToken;T&&v.push(T)}e=[e[0]];v.length&&e.push({extra_feedback_tokens:v});_.mN(this.hostElement,e);_.b4(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);v=this.data&&this.data.submitActions||[];if(_.N("kevlar_command_handler_migration_killswitch"))_.ya(this.hostElement,v,this.hostElement);else for(v=_.a(v),e=v.next();!e.done;e=v.next())this.ytComponentBehavior.resolveCommand(e.value)}};
sB.prototype.onOptionChange=sB.prototype.onOptionChange;sB.prototype.dataChanged=sB.prototype.dataChanged;_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],sB.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],sB.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.c([_.M(MY_),_.w("design:type",Object)],sB.prototype,"ytdHatsSurveyBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sB.prototype,"data",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sB.prototype,"dataChanged",null);
_.c([_.Kq("ytd-checkbox-survey-option-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],sB.prototype,"onOptionChange",null);_.c([_.z({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],sB);
_.A(sB,"ytd-checkbox-survey-renderer",function(){if(SDf!==void 0)return SDf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return SDf=v},{mode:1});var Wb_;var a6i;var Nc=function(){return _.P.apply(this,arguments)||this};
_.V(Nc,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.c([_.M(Gy9),_.w("design:type",Object)],Nc.prototype,"ytdDismissalReasonBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Nc.prototype,"data",void 0);_.c([_.z({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Nc);
_.A(Nc,"ytd-dismissal-reason-text-renderer",function(){if(a6i!==void 0)return a6i;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return a6i=v},{mode:1});var iKs;var kt=function(){return _.P.apply(this,arguments)||this};
_.V(kt,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.c([_.M(Gy9),_.w("design:type",Object)],kt.prototype,"ytdDismissalReasonBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kt.prototype,"data",void 0);_.c([_.z({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],kt);
_.A(kt,"ytd-dismissal-reason-video-renderer",function(){if(iKs!==void 0)return iKs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return iKs=v},{mode:1});var Ln=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(Ln,_.P);_.W=Ln.prototype;_.W.created=function(){this.selectedFeedbackTokens=new WI};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.W.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.W.onDismissalReasonSelected=function(v,e){_.Iq(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(e);this.hasReasonsSelected=!0};
_.W.onDismissalReasonDeselected=function(v,e){_.Iq(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(e);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.W.onCancelTap=function(){_.b4(this.hostElement,"yt-close-popup-action")};
_.W.onSubmitTap=function(){var v=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(v={feedback_tokens:v},_.dk().resolve(_.EI).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},v,{element:this.hostElement})}));_.b4(this.hostElement,"yt-close-popup-action")};
Ln.prototype.onDismissalReasonDeselected=Ln.prototype.onDismissalReasonDeselected;Ln.prototype.onDismissalReasonSelected=Ln.prototype.onDismissalReasonSelected;Ln.prototype.dataChanged=Ln.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ln.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Boolean)],Ln.prototype,"hasReasonsSelected",void 0);_.c([_.f(),_.w("design:type",WI)],Ln.prototype,"selectedFeedbackTokens",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ln.prototype,"darkerDarkTheme",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ln.prototype,"dataChanged",null);
_.c([_.Kq("yt-dismissal-reason-selected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,String]),_.w("design:returntype")],Ln.prototype,"onDismissalReasonSelected",null);_.c([_.Kq("yt-dismissal-reason-deselected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,String]),_.w("design:returntype")],Ln.prototype,"onDismissalReasonDeselected",null);_.c([_.z({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Ln);
_.A(Ln,"ytd-dismissal-follow-up-renderer",function(){if(Wb_!==void 0)return Wb_;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Wb_=v},{mode:1});var OK9;var V3=function(){return _.P.apply(this,arguments)||this};
_.V(V3,_.P);_.W=V3.prototype;_.W.onCheckedChange=function(){this.multiselect||_.Iq(this.hostElement,"yt-feedback-single-select-changed");_.IB(this.hostElement).querySelector("#freeform").focus();_.Iq(this.hostElement,"yt-refit")};
_.W.showTextBox=function(v,e){return v&&e};
_.W.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))};
_.W.updateDataCheckedFromBinding=function(v){this.set("data.checked",v.detail.value)};
_.W.updateDataResultTextFromBinding=function(v){this.set("data.resultText",v.detail.value)};
V3.prototype.dataChanged=V3.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],V3.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],V3.prototype,"multiselect",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],V3.prototype,"dataChanged",null);
_.c([_.z({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],V3);
_.A(V3,"ytd-feedback-option-renderer",function(){if(OK9!==void 0)return OK9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return OK9=v},{mode:1});var I6O;var oQ=function(){return _.P.apply(this,arguments)||this};
_.V(oQ,_.P);oQ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
oQ.prototype.onSingleSelectCheckedChanged=function(v){v=_.ew(v);for(var e=0;e<this.data.options.length;e++)if(v.data!==_.L(this.data.options[e],oMt)){var d="data.options."+e+".feedbackOptionRenderer.checked";this.notifyPath(d);this.set(d,!1)}};
oQ.prototype.onSingleSelectCheckedChanged=oQ.prototype.onSingleSelectCheckedChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],oQ.prototype,"data",void 0);
_.c([_.Kq("yt-feedback-single-select-changed"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],oQ.prototype,"onSingleSelectCheckedChanged",null);_.c([_.z({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],oQ);
_.A(oQ,"ytd-feedback-question-renderer",function(){if(I6O!==void 0)return I6O;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return I6O=v},{mode:1});var bKO;var JV=function(){return _.P.apply(this,arguments)||this};
_.V(JV,_.P);JV.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
JV.prototype.getSelectedFeedbackResults=function(){for(var v={},e=0;e<this.data.questions.length;e++)for(var d=_.L(this.data.questions[e],VZi),E=0;E<d.options.length;E++){var T=_.L(d.options[E],oMt);T&&T.checked&&(v[T.optionKey]=T.resultText)}return v};
JV.prototype.onKeyUp=function(){var v=this;_.Yj(_.RM,function(){_.Iq(v.hostElement,"yt-refit")});
_.RM.start()};
JV.prototype.submitSurvey=function(){var v=this.getSelectedFeedbackResults();Object.keys(v).length>0&&this.data.submitFeedbackEndpoint&&(v={survey_results:v,is_feedback_token_unencrypted:!0},_.dk().resolve(_.EI).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},v,{element:this.hostElement})}))};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JV.prototype,"data",void 0);_.c([_.z({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],JV);
_.A(JV,"ytd-feedback-survey-renderer",function(){if(bKO!==void 0)return bKO;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return bKO=v},{mode:1});var YDO;var mj9;var Gc=function(){return _.P.apply(this,arguments)||this};
_.V(Gc,_.P);Gc.prototype.computeAlt=function(v){return _.vv(v)};
Gc.prototype.submitResponse=function(){var v,e;(v=this.data)!=null&&v.feedbackToken&&((e=this.data)==null?void 0:e.nextStageIndex)!==void 0&&(_.YB(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.YB(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Gc.prototype.onClick=function(){this.submitResponse()};
Gc.prototype.onClick=Gc.prototype.onClick;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Gc.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Gc.prototype,"vertical",void 0);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Gc.prototype,"onClick",null);
_.c([_.z({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Gc);
_.A(Gc,"ytd-single-select-answer-option-renderer",function(){if(mj9!==void 0)return mj9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return mj9=v},{mode:1});var yOO;var Mc=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");v.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return v};
_.V(Mc,_.P);Mc.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Mc.prototype.dataChanged=function(){var v,e;this.vertical=((e=(v=this.data)==null?void 0:v.answerOrientation)!=null?e:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Mc.prototype.submitFeedback=function(v){var e;((e=this.data)==null?0:e.responseEndpoint)&&v&&_.mN(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[v]}])};
Mc.prototype.dataChanged=Mc.prototype.dataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Mc.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],Mc.prototype,"eventForwardingBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],Mc.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Mc.prototype,"vertical",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Mc.prototype,"darkerDarkTheme",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Mc.prototype,"dataChanged",null);_.c([_.z({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Mc);
_.A(Mc,"ytd-single-select-question-renderer",function(){if(yOO!==void 0)return yOO;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return yOO=v},{mode:1});var tV=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return v};
_.V(tV,_.P);_.W=tV.prototype;_.W.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"}}}};
_.W.dataChanged=function(){this.jumpToStage(0)};
_.W.jumpToStage=function(v){var e,d;if((e=this.data)==null?0:(d=e.stages)==null?0:d[v])this.currentStage=this.data.stages[v],this.refitAfterRender()};
_.W.computeAlt=function(v){return _.vv(v)};
_.W.computeSimpleMessage=function(v){var e;return(e=_.L(v,MZw))==null?void 0:e.messageText};
_.W.computeHideDismiss=function(v){var e;return(e=_.L(v,dZw))==null?void 0:e.hideParentDismissButton};
_.W.onDismissTap=function(){_.b4(this.hostElement,"yt-close-popup-action");_.L(this.currentStage,MZw)||this.data.dismissalEndpoint&&_.dk().resolve(_.EI).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.W.refitAfterRender=function(){var v=this;_.Uh(this,function(){_.Iq(v.hostElement,"yt-refit")})};
tV.prototype.dataChanged=tV.prototype.dataChanged;_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],tV.prototype,"eventForwardingBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],tV.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.M(MY_),_.w("design:type",Object)],tV.prototype,"ytdHatsSurveyBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],tV.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],tV.prototype,"currentStage",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tV.prototype,"dataChanged",null);_.c([_.z({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],tV);
_.A(tV,"ytd-multi-stage-survey-renderer",function(){if(YDO!==void 0)return YDO;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return YDO=v},{mode:1});var qDf;var fn=function(){return _.P.apply(this,arguments)||this};
_.V(fn,_.P);fn.prototype.computeAlt=function(v){return _.vv(v)};
fn.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.dk().resolve(_.EI).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.b4(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.MO1(!1)))};
fn.prototype.onTap=function(){this.vertical&&this.submitResponse()};
fn.prototype.onTap=fn.prototype.onTap;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],fn.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fn.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],fn.prototype,"vertical",void 0);
_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fn.prototype,"onTap",null);_.c([_.z({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],fn);
_.A(fn,"ytd-single-option-survey-option-renderer",function(){if(qDf!==void 0)return qDf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return qDf=v},{mode:1});var rOt;var RQ=function(){return _.P.apply(this,arguments)||this};
_.V(RQ,_.P);_.W=RQ.prototype;_.W.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(){var v,e;this.vertical=(((v=this.data)==null?void 0:(e=v.surveyOrientation)==null?void 0:e.type)||"HORIZONTAL")==="VERTICAL"};
_.W.computeAlt=function(v){return _.vv(v)};
_.W.onDismissTap=function(){_.b4(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.dk().resolve(_.EI).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.MO1(!1))};
RQ.prototype.dataChanged=RQ.prototype.dataChanged;_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],RQ.prototype,"eventForwardingBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(MY_),_.w("design:type",Object)],RQ.prototype,"ytdHatsSurveyBehavior",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],RQ.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],RQ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],RQ.prototype,"vertical",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],RQ.prototype,"dataChanged",null);_.c([_.z({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],RQ);
_.A(RQ,"ytd-single-option-survey-renderer",function(){if(rOt!==void 0)return rOt;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return rOt=v},{mode:1});var hK9;var P_=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(P_,_.P);P_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
P_.prototype.onDismissTap=function(){_.b4(this.hostElement,"yt-close-popup-action")};
P_.prototype.onNavigate=function(){_.b4(this.hostElement,"yt-close-popup-action")};
P_.prototype.onNavigate=P_.prototype.onNavigate;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],P_.prototype,"ytEventForwardingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],P_.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],P_.prototype,"darkerDarkTheme",void 0);
_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],P_.prototype,"onNavigate",null);_.c([_.z({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],P_);
_.A(P_,"ytd-survey-follow-up-renderer",function(){if(hK9!==void 0)return hK9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return hK9=v},{mode:1});var Kbi;var $jO;var jv_;var xt=function(){var v=_.P.apply(this,arguments)||this;v.polymer2="Element"in Polymer;return v};
_.V(xt,_.P);_.W=xt.prototype;_.W.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.W.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.W.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.W.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("minutes-changed",this.minutes))};
_.W.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("seconds-changed",this.seconds))};
_.W.updateMinutesFromBinding=function(v){this.minutes=v.detail.value};
_.W.updateSecondsFromBinding=function(v){this.seconds=v.detail.value};
xt.prototype.secondsChangedForBinding=xt.prototype.secondsChangedForBinding;xt.prototype.minutesChangedForBinding=xt.prototype.minutesChangedForBinding;xt.prototype.secondsChanged=xt.prototype.secondsChanged;_.c([_.f(),_.w("design:type",String)],xt.prototype,"minutes",void 0);_.c([_.f(),_.w("design:type",String)],xt.prototype,"seconds",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],xt.prototype,"polymer2",void 0);
_.c([_.sg("#seconds"),_.w("design:type",Object)],xt.prototype,"secondsEl",void 0);_.c([_.$v("seconds"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xt.prototype,"secondsChanged",null);_.c([_.$v("minutes"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xt.prototype,"minutesChangedForBinding",null);
_.c([_.$v("seconds"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xt.prototype,"secondsChangedForBinding",null);_.c([_.lh({is:"yt-timestamp-input",disableElementRegistration:!0})],xt);
_.A(xt,"yt-timestamp-input",function(){if(jv_===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;$jO===void 0&&($jO=document.createElement("template"));var E=$jO;d.call(e,E.content.cloneNode(!0),v.content.firstChild);jv_=v}v=jv_;return v},{mode:2});var B_=function(){return _.P.apply(this,arguments)||this};
_.V(B_,_.P);_.W=B_.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20301_scroller.dialogElement=this.hostElement.parentNode};
_.W.dataChanged=function(){var v=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.EK().getPlayerPromise().then(function(e){e=e.getCurrentTime();v.minutes=Math.floor(e/60).toString();v.seconds=(Math.floor(e)%60).toString()})};
_.W.onTapSubmit=function(v){v.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(v={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(v.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(v.minutes=this.minutes,v.seconds=this.seconds),_.dk().resolve(_.EI).resolveCommand(this.serviceEndpoint,{form:Object.assign({},v,{element:this.hostElement})}))};
_.W.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.W.onYtServiceRequestCompleted=function(v,e){e=e.actions;if(Array.isArray(e))for(var d=0,E=e.length;d<E;d++)_.L(e[d],_.L6)&&(v.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(e[d]))};
_.W.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.W.toggleSubmitButton=function(v){this.set("submitButton.isDisabled",!v)};
_.W.handleInput=function(){var v=this.issueType,e=this.affiliation,d=this.minutes,E=this.seconds;d=!this.showTimestamp||!!d&&!!E;this.toggleSubmitButton(!!this.descriptionText&&!!v&&!!e&&d)};
_.W.computeServiceEndpoint=function(v){return this.get("submitButton.buttonRenderer.serviceEndpoint",v)};
_.W.computeSubmitButton=function(v){(v=this.get("submitButton.buttonRenderer",v))&&(v=Object.assign({},v,{serviceEndpoint:void 0}));return v};
_.W.computeShowTimestamp=function(v){return!!v};
_.W.onValueChangedForIssueType=function(v){this.issueType=v.detail.value};
_.W.onValueChangedForAffiliation=function(v){this.affiliation=v.detail.value};
_.W.updateDescriptionTextFromBinding=function(v){this.descriptionText=v.detail.value};
_.W.updateFullNameTextFromBinding=function(v){this.fullNameText=v.detail.value};
_.W.updateMinutesFromBinding=function(v){this.minutes=v.detail.value};
_.W.updateSecondsFromBinding=function(v){this.seconds=v.detail.value};
B_.prototype.handleInput=B_.prototype.handleInput;B_.prototype.onYtServiceRequestError=B_.prototype.onYtServiceRequestError;B_.prototype.onYtServiceRequestCompleted=B_.prototype.onYtServiceRequestCompleted;B_.prototype.onYtServiceRequestSent=B_.prototype.onYtServiceRequestSent;B_.prototype.dataChanged=B_.prototype.dataChanged;_.c([_.M(_.h5.YtOpenPopupBehavior),_.w("design:type",Object)],B_.prototype,"ytOpenPopupBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.c([_.sg("#scroller"),_.w("design:type",Object)],B_.prototype,"JSC$20301_scroller",void 0);_.c([_.sg("#description"),_.w("design:type",HTMLInputElement)],B_.prototype,"description",void 0);_.c([_.sg("#full-name"),_.w("design:type",Object)],B_.prototype,"fullName",void 0);_.c([_.f(),_.w("design:type",Object)],B_.prototype,"data",void 0);
_.c([_.f({computed:"computeShowTimestamp(data.timestampLabel)"}),_.w("design:type",Boolean)],B_.prototype,"showTimestamp",void 0);_.c([_.f({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.w("design:type",Object)],B_.prototype,"serviceEndpoint",void 0);_.c([_.f({computed:"computeSubmitButton(data)"}),_.w("design:type",Object)],B_.prototype,"submitButton",void 0);_.c([_.f(),_.w("design:type",String)],B_.prototype,"descriptionText",void 0);
_.c([_.f(),_.w("design:type",Number)],B_.prototype,"issueType",void 0);_.c([_.f(),_.w("design:type",Number)],B_.prototype,"affiliation",void 0);_.c([_.f(),_.w("design:type",String)],B_.prototype,"fullNameText",void 0);_.c([_.f(),_.w("design:type",String)],B_.prototype,"minutes",void 0);_.c([_.f(),_.w("design:type",String)],B_.prototype,"seconds",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],B_.prototype,"dataChanged",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],B_.prototype,"onYtServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],B_.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],B_.prototype,"onYtServiceRequestError",null);_.c([_.$v("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],B_.prototype,"handleInput",null);_.c([_.z({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],B_);
_.A(B_,"ytd-legal-report-details-form-renderer",function(){if(Kbi!==void 0)return Kbi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Kbi=v},{mode:1});var svs;var Cn=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return v};
_.V(Cn,_.P);Cn.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Cn.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var v=this.formRenderer.getForm();v&&this.data.submitEndpoint&&(_.dk().resolve(_.EI).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},v,{element:this.hostElement})}),_.b4(this.hostElement,"yt-close-popup-action"))}};
Cn.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.b4(this.hostElement,"yt-close-popup-action"))};
Cn.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Cn.prototype.onPopupClosed=Cn.prototype.onPopupClosed;_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],Cn.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Cn.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);
_.c([_.sg("yt-form-renderer"),_.w("design:type",Object)],Cn.prototype,"formRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],Cn.prototype,"data",void 0);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Cn.prototype,"onPopupClosed",null);_.c([_.z({is:"ytd-form-popup-content",disableElementRegistration:!0})],Cn);
_.A(Cn,"ytd-form-popup-content",function(){if(svs!==void 0)return svs;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return svs=v},{mode:1});var Nz9;var XE=function(){return _.P.apply(this,arguments)||this};
_.V(XE,_.P);XE.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
XE.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
XE.prototype.onPopupOpened=function(){_.Iq(this.hostElement,"yt-invalidate-popup-tabbables")};
XE.prototype.onYtServiceRequestCompleted=function(v,e){e.data&&e.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Iq(this.hostElement,"yt-invalidate-popup-tabbables"))};
XE.prototype.onYtServiceRequestCompleted=XE.prototype.onYtServiceRequestCompleted;XE.prototype.onPopupOpened=XE.prototype.onPopupOpened;_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],XE.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],XE.prototype,"data",void 0);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],XE.prototype,"onPopupOpened",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],XE.prototype,"onYtServiceRequestCompleted",null);_.c([_.z({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],XE);
_.A(XE,"ytd-form-popup-renderer",function(){if(Nz9!==void 0)return Nz9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Nz9=v},{mode:1});var kCS;var zc=function(){var v=_.P.apply(this,arguments)||this;v.isLoading=!1;return v};
_.V(zc,_.P);_.W=zc.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");cWv(this.hostElement)};
_.W.onYtServiceRequestSent=function(){this.isLoading=!0};
_.W.onYtServiceRequestCompleted=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.W.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.ya(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.W.closePopupHandler=function(){this.fireOnCloseActions()};
_.W.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var v=this.get("data.headerImage.thumbnails");v&&(v=_.i2(v,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+v+")")}};
_.W.onYtNavigate=function(v){(v=_.ew(v))&&v.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
zc.prototype.onYtNavigate=zc.prototype.onYtNavigate;zc.prototype.onHeaderImageChanged=zc.prototype.onHeaderImageChanged;zc.prototype.closePopupHandler=zc.prototype.closePopupHandler;zc.prototype.onYtServiceRequestCompleted=zc.prototype.onYtServiceRequestCompleted;zc.prototype.onYtServiceRequestSent=zc.prototype.onYtServiceRequestSent;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],zc.prototype,"ytEventForwardingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],zc.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],zc.prototype,"isLoading",void 0);_.c([_.sg("#header"),_.w("design:type",HTMLDivElement)],zc.prototype,"header",void 0);_.c([_.sg("#confirm-button"),_.w("design:type",_.J5)],zc.prototype,"confirmButton",void 0);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],zc.prototype,"onYtServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],zc.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],zc.prototype,"closePopupHandler",null);_.c([_.$v("data.headerImage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zc.prototype,"onHeaderImageChanged",null);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],zc.prototype,"onYtNavigate",null);
_.c([_.z({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],zc);
_.A(zc,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(kCS!==void 0)return kCS;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return kCS=v},{mode:1});var Lbi;var lF=function(){var v=_.P.apply(this,arguments)||this;v.isLoading=!1;return v};
_.V(lF,_.P);_.W=lF.prototype;_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);cWv(this.hostElement)};
_.W.onYtServiceRequestCompleted=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.W.onYtServiceRequestError=function(v){_.Q0(this.hostElement,v.detail.error.message)};
_.W.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.W.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.b4(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.W.onDataChanged=function(){this.isLoading=!1;var v=this.get("data.headerImage.thumbnails");v&&(v=_.i2(v,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+v+")");v=_.zz();var e=_.Xf(),d=this.get("data.trackingParams");d&&e&&v&&_.Qa(v,e,_.Jg(d))};
_.vP.Object.defineProperties(lF.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
lF.prototype.onDataChanged=lF.prototype.onDataChanged;lF.prototype.onDomChange=lF.prototype.onDomChange;lF.prototype.onYtServiceRequestError=lF.prototype.onYtServiceRequestError;lF.prototype.onYtServiceRequestCompleted=lF.prototype.onYtServiceRequestCompleted;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],lF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],lF.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],lF.prototype,"isLoading",void 0);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],lF.prototype,"hasDescription",null);_.c([_.sg("tp-yt-paper-dialog-scrollable"),_.w("design:type",Object)],lF.prototype,"scrollable",void 0);_.c([_.sg("#header"),_.w("design:type",HTMLElement)],lF.prototype,"header",void 0);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],lF.prototype,"onYtServiceRequestCompleted",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],lF.prototype,"onYtServiceRequestError",null);
_.c([_.Kq("dom-change"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],lF.prototype,"onDomChange",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lF.prototype,"onDataChanged",null);_.c([_.z({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],lF);
_.A(lF,"ytd-gaming-account-link-setting-renderer",function(){if(Lbi!==void 0)return Lbi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Lbi=v},{mode:1});var VuQ;var oOS;var H_=function(){var v=_.P.apply(this,arguments)||this;v.isHeader=!1;v.getEndpointForm=function(){return NC9(v.data)};
return v};
_.V(H_,_.P);_.W=H_.prototype;_.W.triggerHintActions=function(){var v=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var e=_.YB(v.hostElement,"yt-get-opened-popups-action");!(e&&e.length===1?e[0]:[]).some(function(d){d=d.openPopupAction.popupType;return d==="SURVEY"||d==="MEALBAR"||d==="HINT"})&&v.data.hintActions&&v.guideOpened&&(_.ya(v.hostElement,v.data.hintActions,v.hostElement),v.data.hintActions=void 0)})};
_.W.getBadgeIconType=function(v){return v&&v.liveBroadcasting?"live":null};
_.W.onDown=function(){this.interaction.triggerDown()};
_.W.onUp=function(){this.interaction.triggerUp()};
_.W.onTap=function(v){if(this.data.serviceEndpoint){var e;_.N("shorts_controller_retrieve_seedless_sequence_v2")&&((e=_.L(this.data.serviceEndpoint,_.Go))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):s5s(this.data.serviceEndpoint,this);v.preventDefault()}else this.data.navigationEndpoint&&!_.UG(_.vg(v),this.hostElement,["A".toString()])&&_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.W.computeActive=function(v,e){if(!v)return!1;var d=v.navigationEndpoint;v=v.serviceEndpoint;if(!d&&!v||!e)return!1;if(d){v=(v=_.kE(e))&&["subscriptions","filteredsubscriptions"].includes(v);if(_.L(d,_.Lo)&&_.L(e,_.Lo)&&!v){var E=_.L(d,_.Lo).browseId;e=_.L(e,_.Lo).browseId;return E!==void 0&&e!==void 0&&(E===e||E==="VLWL"&&e==="FEwatch_later"||E==="FEwatch_later"&&e==="VLWL")}var T;d=(T=_.L(d.commandMetadata,_.$B))==null?void 0:T.url;e=(E=_.L(e.commandMetadata,_.$B))==null?void 0:E.url;return!(!d||
!e||d!==e&&d!==_.mq(e))}return this.isActiveShortsTab(v,e)};
_.W.isActiveShortsTab=function(v,e){e=!!_.L(e,_.Go)||!!_.L(e,_.PD);return(!!_.L(v,_.Go)||!!_.L(v,_.PD))&&e};
_.W.computeIsPrimary=function(v){return!!v};
_.vP.Object.defineProperties(H_.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 v=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&v)return v}}});
H_.prototype.onTap=H_.prototype.onTap;H_.prototype.onUp=H_.prototype.onUp;H_.prototype.onDown=H_.prototype.onDown;H_.prototype.triggerHintActions=H_.prototype.triggerHintActions;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],H_.prototype,"componentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],H_.prototype,"rendererBehavior",void 0);_.c([_.M(_.Ee.YtTaskEmitterBehavior),_.w("design:type",Object)],H_.prototype,"taskEmitterBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],H_.prototype,"activeEndpoint",void 0);_.c([_.f(),_.w("design:type",Object)],H_.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],H_.prototype,"guideOpened",void 0);_.c([_.f(),_.w("design:type",String)],H_.prototype,"type",void 0);_.c([_.sg("yt-interaction"),_.w("design:type",Object)],H_.prototype,"interaction",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],H_.prototype,"isHeader",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data","activeEndpoint"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],H_.prototype,"active",null);_.c([_.f({reflectToAttribute:!0}),_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],H_.prototype,"isPrimary",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.count","data.presentationStyle","data.badges.*"),_.w("design:type",String),_.w("design:paramtypes",[])],H_.prototype,"lineEndStyle",null);
_.c([_.t("lineEndStyle"),_.w("design:type",Object),_.w("design:paramtypes",[])],H_.prototype,"ariaLabel",null);_.c([_.$v("data.hintActions","guideOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H_.prototype,"triggerHintActions",null);_.c([_.Kq("down"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H_.prototype,"onDown",null);
_.c([_.Kq("up"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H_.prototype,"onUp",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],H_.prototype,"onTap",null);_.c([_.z({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],H_);
_.A(H_,"ytd-guide-entry-renderer",function(){if(oOS!==void 0)return oOS;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return oOS=v},{mode:1});var AV=function(){var v=_.P.apply(this,arguments)||this;v.userToggled=!1;return v};
_.V(AV,_.P);_.W=AV.prototype;_.W.getItemsPath=function(){return"data.expandableItems"};
_.W.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.W.onExpanderItemTapped=function(v){var e=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.N("kevlar_guide_expandable_items_killswitch")&&_.Uh(this,function(){_.nU(e.expandableItems)});
v.preventDefault()};
_.W.onCollapserItemTapped=function(v){var e=this;this._setExpanded(!1);this.userToggled=!0;v.preventDefault();this.expandableItems&&!_.N("kevlar_guide_collapsible_items_killswitch")&&_.Uh(this,function(){_.gt(e.hostElement)})};
_.W.observeActiveEndpoint=function(){for(var v=this.activeEndpoint,e=this.data,d=this.expandableItems.children,E=0,T=d.length;E<T;E++)d[E].activeEndpoint=v;e&&e.autoExpandCommand&&v&&!this.userToggled&&(d=this.data.autoExpandCommand,e=!(!_.L(d,_.Lo)||!_.L(v,_.Lo)||_.L(d,_.Lo).browseId!==_.L(v,_.Lo).browseId),v=this.get("commandMetadata.webCommandMetadata.url",v),d=this.get("commandMetadata.webCommandMetadata.url",d),e=e||!!(v&&d&&v.includes(d)),this._setExpanded(e),e&&this.ytLazyListBehavior.fillRemainingListItems())};
AV.prototype.observeActiveEndpoint=AV.prototype.observeActiveEndpoint;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.iO.YtLazyListBehavior),_.w("design:type",Object)],AV.prototype,"ytLazyListBehavior",void 0);_.c([_.sg("#expandable-items"),_.w("design:type",HTMLElement)],AV.prototype,"expandableItems",void 0);
_.c([_.f(),_.w("design:type",Object)],AV.prototype,"data",void 0);_.c([_.f({readOnly:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],AV.prototype,"expanded",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],AV.prototype,"initialCount",void 0);_.c([_.f(),_.w("design:type",Object)],AV.prototype,"activeEndpoint",void 0);_.c([_.$v("data","activeEndpoint","canShowMore"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],AV.prototype,"observeActiveEndpoint",null);
_.c([_.z({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],AV);
_.A(AV,"ytd-guide-collapsible-entry-renderer",function(){if(VuQ!==void 0)return VuQ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return VuQ=v},{mode:_.bk("kevlar_poly_si_batch_j079")?1:2});var JOi;var GCs;var Za=function(){var v=_.P.apply(this,arguments)||this;v.allVideosCount=0;v.renderGuideEntry=!1;return v};
_.V(Za,_.P);Za.prototype.observeRenderEntry=function(){var v;this.renderGuideEntry=!((v=this.data)==null||!v.alwaysShow)||!!this.allVideosCount};
Za.prototype.observeRenderEntry=Za.prototype.observeRenderEntry;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Za.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Za.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Za.prototype,"activeEndpoint",void 0);_.c([_.f({selector:_.TTH}),_.w("design:type",Object)],Za.prototype,"allVideosCount",void 0);
_.c([_.f(),_.w("design:type",Object)],Za.prototype,"renderGuideEntry",void 0);_.c([_.V1("allVideosCount","data.alwaysShow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Za.prototype,"observeRenderEntry",null);_.c([_.z({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Za);
_.A(Za,"ytd-guide-downloads-entry-renderer",function(){if(GCs===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);GCs=v}v=GCs;return v},{mode:1});var c_=function(){var v=_.P.apply(this,arguments)||this;v.youtab=_.N("web_enable_youtab");v.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return v};
_.V(c_,_.P);_.W=c_.prototype;_.W.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]]"}}}}}};
_.W.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var v=this.sectionItems.children,e=0,d=v.length;e<d;e++)v[e].activeEndpoint=this.activeEndpoint}};
_.W.handleAddToGuideSectionAction=function(v){var e=_.L(v,FZw);if(e&&this.data&&(v=e.items,e=e.handlerData,v&&e&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(e)>-1)){e=0;for(var d=v.length;e<d;e++)v[e].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,v[e])}};
_.W.handleRemoveFromGuideSectionAction=function(v){var e=_.L(v,QcQ);e&&this.data&&(v=e.guideEntryId,e=e.handlerData,v&&e&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(e)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(v,this.data.sectionItems),this.removeFromCollapsedSection(v,this.data.sectionItems)))};
_.W.removeFromExpandedSection=function(v,e){v=this.getEntryIndexMatchingId(v,e);v!==-1&&this.splice("data.sectionItems",v,1)};
_.W.removeFromCollapsedSection=function(v,e){var d=e.findIndex(function(E){return!!_.L(E,ORs)});
d&&d!==-1&&e[d]&&_.L(e[d],ORs)&&(e=_.L(e[d],ORs).expandableItems)&&(v=this.getEntryIndexMatchingId(v,e),v!==-1&&this.splice("data.sectionItems."+d+".guideCollapsibleEntryRenderer.expandableItems",v,1))};
_.W.getEntryIndexMatchingId=function(v,e){var d=this;return e.findIndex(function(E){return d.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",E)===v})};
c_.prototype.activeEndpointChanged=c_.prototype.activeEndpointChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],c_.prototype,"actionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.sg("#section-items"),_.w("design:type",HTMLDivElement)],c_.prototype,"sectionItems",void 0);
_.c([_.sg("#header-entry"),_.w("design:type",Object)],c_.prototype,"headerEntry",void 0);_.c([_.f(),_.w("design:type",Object)],c_.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],c_.prototype,"activeEndpoint",void 0);_.c([_.f(),_.w("design:type",Object)],c_.prototype,"youtab",void 0);_.c([_.$v("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],c_.prototype,"activeEndpointChanged",null);
_.c([_.z({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],c_);
_.A(c_,"ytd-guide-collapsible-section-entry-renderer",function(){if(JOi===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);JOi=v}v=JOi;return v},{mode:1});var MuC;var tuw;var wU=function(){var v=_.P.apply(this,arguments)||this;v.modernTypography=_.N("web_modern_typography");v.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 v};
_.V(wU,_.P);_.W=wU.prototype;
_.W.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}}}}};
_.W.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var v=_.YB(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);v&&v.length===1&&v[0]&&_.YB(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.W.handleResetChannelUnreadCountCommand=function(v){var e;(v=(e=_.L(v,uzS))==null?void 0:e.channelId)&&this.data&&this.data.items&&(e=this.getPathToEntryMatchingId(v))&&(this.set(e+".guideEntryRenderer.count",0),this.set(e+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.W.handleResetSubscriptionsUnreadDotCommand=function(v){var e,d=(e=_.L(v,nK1))==null?void 0:e.targetId,E;d&&(E=this.data)!=null&&E.items&&(v=this.data.items.findIndex(function(T){var S;return((S=T.guideEntryRenderer)==null?void 0:S.targetId)===d}),v<0||this.set("data.items."+v+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.W.getPathToEntryMatchingId=function(v){if(this.data&&this.data.items){var e=this.getEntryIndexMatchingId(v,this.data.items);if(e>-1)return"data.items."+e;for(var d=0;d<this.data.items.length;d++)if(e=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[d]))if(e=this.getEntryIndexMatchingId(v,e),e>-1)return"data.items."+d+".guideCollapsibleEntryRenderer.expandableItems."+e}};
_.W.handleAddToGuideSectionAction=function(v){var e=this;if(_.L(v,FZw)){var d=_.L(v,FZw).items;v=_.L(v,FZw).handlerData;var E,T;if(d&&v&&((E=this.data)==null?void 0:(T=E.handlerDatas)==null?void 0:T.indexOf(v))>-1){d=d.filter(function(O){return(O=e.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",O))&&!e.isGuideItemPresent(O)});
var S;if(v==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((S=this.data)==null?0:S.items)&&(E=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),E>-1)){this.splice.apply(this,["data.items",E+1,0].concat(_.t7(d)));return}this.unshift.apply(this,["data.items"].concat(_.t7(d)))}}};
_.W.isGuideItemPresent=function(v){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(v,this.data.items)!==-1)return!0;var e=this.data.items.find(function(d){return!!d.guideCollapsibleEntryRenderer});
if((e==null?0:e.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(v,e.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.W.getEntryIndexMatchingId=function(v,e){var d=this;return e.findIndex(function(E){return d.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",E)===v})};
_.W.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(v,e){var d=this;return e.findIndex(function(E){return d.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",E)===v})};
_.W.handleRemoveFromGuideSectionAction=function(v){if(_.L(v,QcQ)){var e=_.L(v,QcQ).guideEntryId;v=_.L(v,QcQ).handlerData;var d,E;e&&v&&((d=this.data)==null?void 0:(E=d.handlerDatas)==null?void 0:E.indexOf(v))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(e,this.data.items),this.removeFromCollapsedSection(e,this.data.items))}};
_.W.removeFromExpandedSection=function(v,e){v=this.getEntryIndexMatchingId(v,e);v!==-1&&this.splice("data.items",v,1)};
_.W.removeFromCollapsedSection=function(v,e){var d=e.findIndex(function(E){return!!E.guideCollapsibleEntryRenderer});
d!==-1&&(e=e[d].guideCollapsibleEntryRenderer.expandableItems)&&(v=this.getEntryIndexMatchingId(v,e),v!==-1&&this.splice("data.items."+d+".guideCollapsibleEntryRenderer.expandableItems",v,1))};
_.W.activeEndpointChanged=function(){for(var v=_.IB(this.hostElement).querySelector("#items").children,e=0,d=v.length;e<d;e++)v[e].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.W.guideOpenedChanged=function(){for(var v=_.IB(this.hostElement).querySelector("#items").children,e=0,d=v.length;e<d;e++)v[e].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
wU.prototype.guideOpenedChanged=wU.prototype.guideOpenedChanged;wU.prototype.activeEndpointChanged=wU.prototype.activeEndpointChanged;wU.prototype.persistentGuideChanged=wU.prototype.persistentGuideChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],wU.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],wU.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.iO.YtLazyListBehavior),_.w("design:type",Object)],wU.prototype,"ytLazyListBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],wU.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],wU.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wU.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wU.prototype,"modernTypography",void 0);_.c([_.f(),_.w("design:type",String)],wU.prototype,"type",void 0);_.c([_.f({value:20}),_.w("design:type",Number)],wU.prototype,"initialCount",void 0);_.c([_.f({value:10}),_.w("design:type",Number)],wU.prototype,"targetFramerate",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],wU.prototype,"autoFill",void 0);_.c([_.f({value:50}),_.w("design:type",Number)],wU.prototype,"renderDelay",void 0);
_.c([_.$v("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wU.prototype,"persistentGuideChanged",null);_.c([_.V1("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wU.prototype,"activeEndpointChanged",null);_.c([_.V1("guideOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wU.prototype,"guideOpenedChanged",null);
_.c([_.z({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],wU);
_.A(wU,"ytd-guide-section-renderer",function(){if(tuw!==void 0)return tuw;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return tuw=v},{mode:_.bk("kevlar_poly_si_batch_j073")?1:2});var f6t;var FE=function(){return _.P.apply(this,arguments)||this};
_.V(FE,_.P);_.vP.Object.defineProperties(FE.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],FE.prototype,"rendererBehaviors",void 0);_.c([_.f(),_.w("design:type",Object)],FE.prototype,"data",void 0);_.c([_.f(),_.t("data.signInButton.buttonRenderer.style"),_.w("design:type",Object),_.w("design:paramtypes",[])],FE.prototype,"alignByText",null);_.c([_.z({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],FE);
_.A(FE,"ytd-guide-signin-promo-renderer",function(){if(f6t===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);f6t=v}v=f6t;return v},{mode:1});var Q3=function(){var v=_.P.apply(this,arguments)||this;v.showFooter=!1;return v};
_.V(Q3,_.P);Q3.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}}}}};
Q3.prototype.attached=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1){e=_.dk().resolve(_.eG(_.wK));if(!e)return d.jumpTo(0);e.setGuideData(v.hostElement);return d.yield(0,3)}v.ytLazyListBehavior.initialCount=2;return d.return()})};
Q3.prototype.onMouseExit=function(){_.N("web_guide_hover_expansion")&&_.YB(this.hostElement,"yt-guide-mouseleaved",[])};
Q3.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Q3.prototype.dataChanged=Q3.prototype.dataChanged;Q3.prototype.onMouseExit=Q3.prototype.onMouseExit;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Q3.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.iO.YtLazyListBehavior),_.w("design:type",Object)],Q3.prototype,"ytLazyListBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Q3.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Q3.prototype,"showFooter",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],Q3.prototype,"autoFill",void 0);_.c([_.Kq("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q3.prototype,"onMouseExit",null);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q3.prototype,"dataChanged",null);_.c([_.z({is:"ytd-guide-renderer",disableElementRegistration:!0})],Q3);
_.A(Q3,"ytd-guide-renderer",function(){if(MuC!==void 0)return MuC;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return MuC=v},{mode:_.bk("kevlar_poly_si_batch_j073")?1:2});var RKi;var gU=function(){var v=_.P.apply(this,arguments)||this;v.systemIcons=_.N("kevlar_system_icons");v.frostedGlass=_.N("web_frosted_glass");v.getEndpointForm=function(){return NC9(v.data)};
return v};
_.V(gU,_.P);_.W=gU.prototype;_.W.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.W.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.vv(this.data.formattedTitle))};
_.W.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.W.onDown=function(){this.interaction.triggerDown()};
_.W.onUp=function(){this.interaction.triggerUp()};
_.W.onTap=function(v){if(this.data.serviceEndpoint){var e;_.N("shorts_controller_retrieve_seedless_sequence_v2")&&((e=_.L(this.data.serviceEndpoint,_.Go))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):s5s(this.data.serviceEndpoint,this);v.preventDefault()}else{var d;((d=this.data)==null?0:d.navigationEndpoint)&&!_.UG(_.vg(v),this.hostElement,["A".toString()])&&_.Iq(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.W.computeActive=function(v,e){if(!v)return!1;var d=v.navigationEndpoint;v=v.serviceEndpoint;if(!d&&!v||!e)return!1;if(d){v=_.L(d,_.Lo);var E=_.L(e,_.Lo);if(v&&E)return v.browseId===E.browseId&&v.params===E.params;var T;d=(T=_.L(d.commandMetadata,_.$B))==null?void 0:T.url;var S;e=(S=_.L(e.commandMetadata,_.$B))==null?void 0:S.url;return!(!d||!e||d!==e&&d!==_.mq(e))}return this.isActiveShortsTab(v,e)};
_.W.isActiveShortsTab=function(v,e){e=!!_.L(e,_.Go)||!!_.L(e,_.PD);return(!!_.L(v,_.Go)||!!_.L(v,_.PD))&&e};
_.W.computeTitle=function(v,e){return e?"":_.vv(v)};
_.vP.Object.defineProperties(gU.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
gU.prototype.onTap=gU.prototype.onTap;gU.prototype.onUp=gU.prototype.onUp;gU.prototype.onDown=gU.prototype.onDown;gU.prototype.onActiveStateChange=gU.prototype.onActiveStateChange;gU.prototype.dataChanged=gU.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],gU.prototype,"ytComponentBehavior",void 0);
_.c([_.M(_.MS),_.w("design:type",Object)],gU.prototype,"ironButtonState",void 0);_.c([_.f(),_.w("design:type",Object)],gU.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],gU.prototype,"activeEndpoint",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],gU.prototype,"noLabels",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.w("design:type",Boolean)],gU.prototype,"isActive",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],gU.prototype,"systemIcons",void 0);_.c([_.sg("yt-interaction"),_.w("design:type",Object)],gU.prototype,"interaction",void 0);_.c([_.t("isActive"),_.w("design:type",Object),_.w("design:paramtypes",[])],gU.prototype,"ariaSelected",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],gU.prototype,"frostedGlass",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gU.prototype,"dataChanged",null);_.c([_.$v("isActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gU.prototype,"onActiveStateChange",null);_.c([_.Kq("down"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gU.prototype,"onDown",null);
_.c([_.Kq("up"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gU.prototype,"onUp",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],gU.prototype,"onTap",null);_.c([_.z({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],gU);
_.A(gU,"ytd-mini-guide-entry-renderer",function(){if(RKi!==void 0)return RKi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return RKi=v},{mode:_.bk("kevlar_poly_si_batch_j063")?1:2});var PdO;var uF=function(){var v=_.P.apply(this,arguments)||this;v.allVideosCount=0;v.noLabels=_.N("kevlar_mini_guide_no_labels");v.frostedGlass=_.N("web_frosted_glass");return v};
_.V(uF,_.P);_.W=uF.prototype;_.W.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.W.onMouseEnter=function(){_.N("web_guide_hover_expansion")&&_.YB(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.W.visibleChanged=function(){if(this.visible&&!this.data){var v=_.dk().resolve(_.eG(_.wK));v&&v.setGuideData(this.hostElement)}};
_.W.dataChanged=function(){var v=[],e;if((e=this.data)!=null&&e.items){e=_.a(this.data.items);for(var d=e.next();!d.done;d=e.next()){d=d.value;var E=void 0;if((E=d.guideSectionRenderer)==null?0:E.items)for(E=void 0,d=_.a((E=d.guideSectionRenderer)==null?void 0:E.items),E=d.next();!E.done;E=d.next())if(E=E.value,E.guideEntryRenderer)E=E.guideEntryRenderer,E.isPrimary&&v.push({guideEntryRenderer:E});else if(E.guideCollapsibleSectionEntryRenderer){var T=void 0;((T=_.L(E.guideCollapsibleSectionEntryRenderer.headerEntry,
iu))==null?0:T.isPrimary)&&v.push({guideEntryRenderer:_.L(E.guideCollapsibleSectionEntryRenderer.headerEntry,iu)});if(E=E.guideCollapsibleSectionEntryRenderer.sectionItems)for(E=_.a(E),T=E.next();!T.done;T=E.next()){var S=T.value;T=_.L(S,Ib9);var O=void 0;((O=_.L(S,iu))==null?0:O.isPrimary)?v.push({guideEntryRenderer:_.L(S,iu)}):T&&(S=void 0,_.L((S=T)==null?void 0:S.entryRenderer,iu)&&(T.alwaysShow||this.allVideosCount)&&v.push({guideEntryRenderer:_.L(T.entryRenderer,iu)}))}}}}this.miniGuideItems=
v};
_.W.activeEndpointChanged=function(){for(var v=this.items.children,e=0;e<v.length;e++)v[e].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.W.registerWithViewTransitionManager=function(){var v=this;_.LI(_.RM,function(){var e=_.dk().resolve(_.eG(_.j_));if(e&&e.isAnyTransitionEnabled){var d={};e.viewTransitionCoordinator.registerElement(v.hostElement,(d.slide="mini-guide-page-transition",d))}})};
uF.prototype.activeEndpointChanged=uF.prototype.activeEndpointChanged;uF.prototype.dataChanged=uF.prototype.dataChanged;uF.prototype.visibleChanged=uF.prototype.visibleChanged;uF.prototype.onMouseEnter=uF.prototype.onMouseEnter;_.c([_.M(_.lV),_.w("design:type",Object)],uF.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],uF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],uF.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],uF.prototype,"ytComponentBehavior",void 0);_.c([_.sg("#items"),_.w("design:type",Object)],uF.prototype,"items",void 0);_.c([_.f(),_.w("design:type",Object)],uF.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Boolean)],uF.prototype,"visible",void 0);_.c([_.f(),_.w("design:type",Object)],uF.prototype,"miniGuideItems",void 0);_.c([_.f({selector:_.TTH}),_.w("design:type",Object)],uF.prototype,"allVideosCount",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],uF.prototype,"noLabels",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],uF.prototype,"frostedGlass",void 0);
_.c([_.Kq("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uF.prototype,"onMouseEnter",null);_.c([_.V1("visible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uF.prototype,"visibleChanged",null);_.c([_.V1("data","allVideosCount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uF.prototype,"dataChanged",null);
_.c([_.V1("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uF.prototype,"activeEndpointChanged",null);_.c([_.z({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],uF);
_.A(uF,"ytd-mini-guide-renderer",function(){if(PdO===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);PdO=v}v=PdO;return v},{mode:1});var xjv;var Bzi=/^[\x00-\x7F]+$/,nn=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(nn,_.P);_.vP.Object.defineProperties(nn.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var v,e=_.vv((v=this.data)==null?void 0:v.handle);if(e)return _.pQ("@"+e)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var v=_.vv(this.displayHandle),e,d=_.vv((e=this.data)==null?void 0:e.handleUrl);if(v&&d)return _.pQ(d+v)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var v=_.vv(this.displayHandle);if(v&&!Bzi.test(v)){var e;return(e=this.data)==null?void 0:e.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var v=_.vv(this.displayHandleUrl),e,d=_.vv((e=this.data)==null?void 0:e.urlInfoText);if(v&&d)return _.pQ(d+" "+v)}}});
_.c([_.f(),_.w("design:type",Object)],nn.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],nn.prototype,"displayHandle",null);_.c([_.t("displayHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],nn.prototype,"displayHandleUrl",null);_.c([_.t("displayHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],nn.prototype,"warningText",null);
_.c([_.t("displayHandleUrl"),_.w("design:type",Object),_.w("design:paramtypes",[])],nn.prototype,"urlInfoTextWithUrl",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],nn.prototype,"darkerDarkTheme",void 0);_.c([_.z({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],nn);
_.A(nn,"ytd-handles-claiming-confirm-dialog-content",function(){if(xjv!==void 0)return xjv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return xjv=v},{mode:1});var Cdv;var Da=function(){var v=_.P.apply(this,arguments)||this;v.okButtonOverride={style:"mono",type:"outline",size:"M"};return v};
_.V(Da,_.P);Da.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Da.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Da.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Da.prototype,"okButtonOverride",void 0);_.c([_.f(),_.w("design:type",Object)],Da.prototype,"data",void 0);_.c([_.z({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Da);
_.A(Da,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Cdv!==void 0)return Cdv;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Cdv=v},{mode:1});var X29;var zKQ=/^[\x00-\x7F]+$/,UB=function(){var v=_.P.apply(this,arguments)||this;v.isLoading=!1;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(UB,_.P);UB.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var v;this.selectedHandle=(v=this.handleInput)==null?void 0:v.value;this.onSelectedHandleChanged(this.selectedHandle);_.YB(this.hostElement,"yt-refit-popups-action")}};
_.vP.Object.defineProperties(UB.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var v;return(v=this.data)==null?void 0:v.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.pQ("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.pQ(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!zKQ.test(this.selectedHandle)){var v;return(v=this.data)==null?void 0:v.warningText}}}});
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],UB.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],UB.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],UB.prototype,"selectedHandle",void 0);_.c([_.f(),_.w("design:type",Object)],UB.prototype,"isLoading",void 0);_.c([_.f(),_.w("design:type",Function)],UB.prototype,"onSelectedHandleChanged",void 0);_.c([_.sg("#channel-handle-input"),_.w("design:type",Object)],UB.prototype,"handleInput",void 0);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],UB.prototype,"handleUrlPrefix",null);_.c([_.t("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],UB.prototype,"displayHandle",null);_.c([_.t("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],UB.prototype,"displayHandleUrl",null);_.c([_.t("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],UB.prototype,"warningText",null);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],UB.prototype,"darkerDarkTheme",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.c([_.z({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],UB);
_.A(UB,"ytd-handles-claiming-edit-dialog-content",function(){if(X29!==void 0)return X29;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return X29=v},{mode:1});var l6C;var pn=function(){var v=_.P.apply(this,arguments)||this;v.actionButtonOverride={style:"mono",type:"filled",size:"M"};v.cancelButtonOverride={style:"mono",type:"text",size:"M"};v.selectButtonDisabled=!1;v.isLoading=!1;v.hasSelectedHandleEventListener=!1;v.selectedHandleChanged=function(e){v.selectedHandle=e};
return v};
_.V(pn,_.P);_.W=pn.prototype;_.W.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.W.onDataChanged=function(){var v,e;this.selectedHandle=(e=_.L((v=this.data)==null?void 0:v.inputField,Hst))==null?void 0:e.handle};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.onCancel=function(){this.selectedHandle="";_.b4(this.hostElement,"yt-close-popup-action",[this.is])};
_.W.onSelectHandle=function(){var v=this;if(this.selectedHandle!==void 0){var e;((e=this.data)==null?void 0:e.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(d,E){if(E.newHandleUpdateStatus!==void 0&&E.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&E.newHandleUpdateStatus.errorMessage)_.Q0(v.hostElement,_.vv(E.newHandleUpdateStatus.errorMessage)),
v.isLoading=!1;else{var T;if((T=v.data)==null?0:T.onChannelUpdateSuccess){d=v.data.onChannelUpdateSuccess;var S,O;if(E=(S=_.L(d,_.L6))==null?void 0:(O=S.popup)==null?void 0:O.handlesClaimingConfirmDialogRenderer)E.handle=_.pQ(v.selectedHandle);v.ytComponentBehavior.resolveCommand(d);_.b4(v.hostElement,"yt-close-popup-action",[v.is])}else v.isLoading=!1}},
onServerError:function(){var d;v.content&&((d=v.content)==null?0:d.handleInput)&&v.content.handleInput.validate();v.isLoading=!1;_.Q0(v.hostElement,_.sz("TRY_AGAIN_LATER"))}}}))}};
_.W.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
pn.prototype.onDataChanged=pn.prototype.onDataChanged;pn.prototype.onSelectedHandleChanged=pn.prototype.onSelectedHandleChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],pn.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pn.prototype,"actionButtonOverride",void 0);_.c([_.f(),_.w("design:type",Object)],pn.prototype,"cancelButtonOverride",void 0);_.c([_.f(),_.w("design:type",Object)],pn.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",String)],pn.prototype,"selectedHandle",void 0);_.c([_.f(),_.w("design:type",Object)],pn.prototype,"selectButtonDisabled",void 0);_.c([_.f(),_.w("design:type",Object)],pn.prototype,"isLoading",void 0);_.c([_.f(),_.w("design:type",Object)],pn.prototype,"hasSelectedHandleEventListener",void 0);_.c([_.f(),_.w("design:type",Object)],pn.prototype,"handleInput",void 0);
_.c([_.$v("selectedHandle"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pn.prototype,"onSelectedHandleChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pn.prototype,"onDataChanged",null);_.c([_.sg("ytd-handles-claiming-edit-dialog-content"),_.w("design:type",Object)],pn.prototype,"content",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.z({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],pn);
_.A(pn,"ytd-handles-claiming-edit-dialog-renderer",function(){if(l6C!==void 0)return l6C;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return l6C=v},{mode:1});var HKi;var v9=function(){return _.P.apply(this,arguments)||this};
_.V(v9,_.P);_.vP.Object.defineProperties(v9.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null?0:v.handle){var e;return _.pQ("@"+_.vv((e=this.data)==null?void 0:e.handle))}}}});
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"formattedHandle",null);_.c([_.f(),_.w("design:type",Object)],v9.prototype,"data",void 0);_.c([_.z({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],v9);
_.A(v9,"ytd-handles-claiming-radio-option-renderer",function(){if(HKi!==void 0)return HKi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return HKi=v},{mode:1});var AO_;var ZKO=/^[\x00-\x7F]+$/,e5=function(){var v=_.P.apply(this,arguments)||this;v.initialRadioIndex="-1";v.isLoading=!1;v.darkerDarkTheme=_.N("web_darker_dark_theme");v.maybeSubmitFeedback=function(){v.feedbackSurveyRenderer.submitSurvey()};
return v};
_.V(e5,_.P);e5.prototype.updateSelectedHandleIndexFromBinding=function(v){this.selectedRadioIndex=+v.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(v)};
e5.prototype.selectedHandleChanged=function(v){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var e;this.selectedHandle=(e=this.handleInput)==null?void 0:e.value;this.onSelectedHandleChanged(v)}};
_.vP.Object.defineProperties(e5.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var v;return this.ytRendererBehavior.getSimpleString((v=this.data)==null?void 0:v.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.pQ("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.pQ(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!ZKO.test(this.selectedHandle)){var v;return(v=this.data)==null?void 0:v.warningText}}}});
_.c([_.f(),_.w("design:type",Object)],e5.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],e5.prototype,"initialRadioIndex",void 0);_.c([_.f(),_.w("design:type",Number)],e5.prototype,"selectedRadioIndex",void 0);_.c([_.f(),_.w("design:type",String)],e5.prototype,"selectedHandle",void 0);_.c([_.f(),_.w("design:type",Object)],e5.prototype,"isLoading",void 0);_.c([_.f(),_.w("design:type",Function)],e5.prototype,"onSelectedHandleChanged",void 0);
_.c([_.f(),_.w("design:type",Function)],e5.prototype,"onSelectedRadioIndexChanged",void 0);_.c([_.sg("#channel-handle-input"),_.w("design:type",Object)],e5.prototype,"handleInput",void 0);_.c([_.sg("ytd-feedback-survey-renderer"),_.w("design:type",Object)],e5.prototype,"feedbackSurveyRenderer",void 0);_.c([_.t("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],e5.prototype,"radioButtonLength",null);
_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],e5.prototype,"handleUrlPrefix",null);_.c([_.t("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],e5.prototype,"displayHandle",null);_.c([_.t("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],e5.prototype,"displayHandleUrl",null);_.c([_.t("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],e5.prototype,"warningText",null);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],e5.prototype,"darkerDarkTheme",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.c([_.z({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],e5);
_.A(e5,"ytd-handles-claiming-select-dialog-content",function(){if(AO_!==void 0)return AO_;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return AO_=v},{mode:1});var cOi;var dF=function(){var v=_.P.apply(this,arguments)||this;v.actionButtonOverride={style:"mono",type:"filled",size:"M"};v.cancelButtonOverride={style:"mono",type:"text",size:"M"};v.initialRadioIndex="-1";v.selectButtonDisabled=!1;v.isLoading=!1;v.selectedRadioIndexChanged=function(e){v.selectedRadioIndex=Number(e.detail.value)};
v.selectedHandleChanged=function(e){v.selectedHandle=e.detail.value};
v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(dF,_.P);_.W=dF.prototype;_.W.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.W.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.W.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.YB(this.hostElement,"yt-refit-popups-action")};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.b4(this.hostElement,"yt-close-popup-action",[this.is])};
_.W.onSelectHandle=function(){var v=this;if(this.selectedHandle!==void 0){var e;((e=this.data)==null?void 0:e.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(d,E){if(E.newHandleUpdateStatus!==void 0&&E.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&E.newHandleUpdateStatus.errorMessage)_.Q0(v.hostElement,_.vv(E.newHandleUpdateStatus.errorMessage)),
v.isLoading=!1;else{var T;if((T=v.data)==null?0:T.onChannelUpdateSuccess){d=v.data.onChannelUpdateSuccess;E=_.L(d,_.L6);var S;if(E==null?0:(S=E.popup)==null?0:S.handlesClaimingConfirmDialogRenderer)E.popup.handlesClaimingConfirmDialogRenderer.handle=_.pQ(v.selectedHandle);v.ytComponentBehavior.resolveCommand(d);_.b4(v.hostElement,"yt-close-popup-action",[v.is])}else v.isLoading=!1}},
onServerError:function(){if(v.selectedRadioIndex===v.radioButtonLength){var d;v.content&&((d=v.content)==null?0:d.handleInput)&&v.content.handleInput.validate()}v.isLoading=!1;_.Q0(v.hostElement,_.sz("TRY_AGAIN_LATER"))}}}))}};
_.W.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var v,e;this.selectedHandle=(v=this.content)==null?void 0:(e=v.handleInput)==null?void 0:e.value}else this.selectedRadioIndex>=0&&((v=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(v==null?void 0:v.handle):this.selectedHandle=void 0)};
_.W.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.W.getRadioItem=function(v){if(this.radioButtonLength>v&&v>=0)return _.L(this.data.radioButton[v],EM_)};
_.vP.Object.defineProperties(dF.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var v;return(((v=this.data)==null?void 0:v.radioButton)||[]).length}}});
dF.prototype.onSelectedHandleChanged=dF.prototype.onSelectedHandleChanged;dF.prototype.onSelectedHandleIndexChanged=dF.prototype.onSelectedHandleIndexChanged;dF.prototype.onDataChanged=dF.prototype.onDataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],dF.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],dF.prototype,"actionButtonOverride",void 0);_.c([_.f(),_.w("design:type",Object)],dF.prototype,"cancelButtonOverride",void 0);
_.c([_.f(),_.w("design:type",Object)],dF.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],dF.prototype,"initialRadioIndex",void 0);_.c([_.f(),_.w("design:type",Number)],dF.prototype,"selectedRadioIndex",void 0);_.c([_.f(),_.w("design:type",String)],dF.prototype,"selectedHandle",void 0);_.c([_.f(),_.w("design:type",Object)],dF.prototype,"selectButtonDisabled",void 0);_.c([_.f(),_.w("design:type",Object)],dF.prototype,"isLoading",void 0);
_.c([_.t("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],dF.prototype,"radioButtonLength",null);_.c([_.sg("ytd-handles-claiming-select-dialog-content"),_.w("design:type",Object)],dF.prototype,"content",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dF.prototype,"onDataChanged",null);
_.c([_.$v("selectedRadioIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dF.prototype,"onSelectedHandleIndexChanged",null);_.c([_.$v("selectedHandle"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dF.prototype,"onSelectedHandleChanged",null);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],dF.prototype,"darkerDarkTheme",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.z({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],dF);
_.A(dF,"ytd-handles-claiming-select-dialog-renderer",function(){if(cOi!==void 0)return cOi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return cOi=v},{mode:1});var w2s;var FbQ;var Ef=function(){return _.P.apply(this,arguments)||this};
_.V(Ef,_.P);Ef.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ef.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ef.prototype,"data",void 0);_.c([_.z({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Ef);
_.A(Ef,"ytd-hotkey-dialog-section-option-renderer",function(){if(FbQ!==void 0)return FbQ;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return FbQ=v},{mode:1});var Qvi;var TH=function(){return _.P.apply(this,arguments)||this};
_.V(TH,_.P);TH.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],TH.prototype,"data",void 0);_.c([_.z({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],TH);
_.A(TH,"ytd-hotkey-dialog-section-renderer",function(){if(Qvi!==void 0)return Qvi;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Qvi=v},{mode:1});var S5=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(S5,_.P);S5.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],S5.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],S5.prototype,"darkerDarkTheme",void 0);_.c([_.z({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],S5);
_.A(S5,"ytd-hotkey-dialog-content",function(){if(w2s!==void 0)return w2s;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return w2s=v},{mode:1});var gOC;var W9=function(){return _.P.apply(this,arguments)||this};
_.V(W9,_.P);W9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var v=document.querySelector("ytd-hotkey-dialog-content #scrollable");v&&(v.dialogElement=this.hostElement.parentElement)};
W9.prototype.onCloseTap=function(){_.b4(this.hostElement,"yt-close-popup-action")};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],W9.prototype,"data",void 0);_.c([_.z({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],W9);
_.A(W9,"ytd-hotkey-dialog-renderer",function(){if(gOC!==void 0)return gOC;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return gOC=v},{mode:1});var uXQ;var aY=function(){return _.P.apply(this,arguments)||this};
_.V(aY,_.P);aY.prototype.onYtServiceRequestError=function(){if(this.blocked){var v;var e=(v=this.data)==null?void 0:v.defaultServiceEndpoint}else{var d;e=(d=this.data)==null?void 0:d.toggledServiceEndpoint}var E;(e=(E=_.L(e,_.MTM))==null?void 0:E.onFailureAction)&&this.ytComponentBehavior.resolveCommand(e);this.updateBlockState(!this.blocked)};
aY.prototype.onYtToggleButton=function(v){this.updateBlockState(v.detail.toggled)};
aY.prototype.updateBlockState=function(v){if(v!==this.blocked){var e=this.blockedEntityKey;e&&this.ytdReduxBehavior.dispatch(_.Lv("blockStateEntity",e,{key:e,blocked:v}));this.set("data.isToggled",v)}};
_.vP.Object.defineProperties(aY.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)}}});
aY.prototype.onYtToggleButton=aY.prototype.onYtToggleButton;aY.prototype.onYtServiceRequestError=aY.prototype.onYtServiceRequestError;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],aY.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],aY.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],aY.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],aY.prototype,"blockedEntityKey",void 0);
_.c([_.f({selectorArgs:["blockedEntityKey"],selector:function(v,e){return _.h_(v.entities,"blockStateEntity",e)}}),
_.w("design:type",Object)],aY.prototype,"blockStateEntity",void 0);_.c([_.t("data","blockStateEntity"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],aY.prototype,"blocked",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],aY.prototype,"onYtServiceRequestError",null);
_.c([_.Kq("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],aY.prototype,"onYtToggleButton",null);_.c([_.z({is:"ytd-block-button",disableElementRegistration:!0})],aY);
_.A(aY,"ytd-block-button",function(){if(uXQ!==void 0)return uXQ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return uXQ=v},
{mode:1});var nO_;var Djs;var is=function(){return _.P.apply(this,arguments)||this};
_.V(is,_.P);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],is.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],is.prototype,"data",void 0);_.c([_.z({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],is);
_.A(is,"ytd-kids-blocklist-picker-item-renderer",function(){if(Djs!==void 0)return Djs;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Djs=v},{mode:1});var Of=function(){return _.P.apply(this,arguments)||this};
_.V(Of,_.P);Of.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Of.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Of.prototype,"data",void 0);_.c([_.z({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Of);
_.A(Of,"ytd-kids-blocklist-picker-content",function(){if(nO_!==void 0)return nO_;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return nO_=
v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var Uji;var IY=function(){var v=_.P.apply(this,arguments)||this;v.hasAnyRequestSucceeded=!1;v.hasAnyRequestFailed=!1;v.numPendingRequests=0;return v};
_.V(IY,_.P);_.W=IY.prototype;_.W.attached=function(){this.hostElement.setAttribute("dialog","")};
_.W.onDoneButtonTap=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.W.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.W.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.W.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.W.onPopupClosed=function(v){var e,d;if(((e=v.detail)==null?void 0:(d=e.popup)==null?void 0:d.is)==="tp-yt-paper-dialog"){var E;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((E=this.data)==null?0:E.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.To(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
IY.prototype.onPopupClosed=IY.prototype.onPopupClosed;IY.prototype.onYtServiceRequestError=IY.prototype.onYtServiceRequestError;IY.prototype.onYtServiceRequestCompleted=IY.prototype.onYtServiceRequestCompleted;IY.prototype.onYtServiceRequestSent=IY.prototype.onYtServiceRequestSent;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],IY.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],IY.prototype,"data",void 0);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IY.prototype,"onYtServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IY.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IY.prototype,"onYtServiceRequestError",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],IY.prototype,"onPopupClosed",null);_.c([_.z({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],IY);
_.A(IY,"ytd-kids-blocklist-picker-renderer",function(){if(Uji!==void 0)return Uji;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return Uji=v},{mode:1});var p2v;var v9s;var bs=function(){return _.P.apply(this,arguments)||this};
_.V(bs,_.P);bs.prototype.setTip=function(v){var e=this;this.data&&(this.tip=QjO(w79.getInstance(),v,this.data),_.Uh(this,function(){_.Iq(e.hostElement,"yt-refit")}))};
bs.prototype.clearTip=function(){this.tip=void 0};
bs.prototype.computeHidden=function(v){return!v};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],bs.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.w("design:type",Boolean)],bs.prototype,"hidden",void 0);_.c([_.f(),_.w("design:type",Object)],bs.prototype,"tip",void 0);_.c([_.z({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],bs);
_.A(bs,"ytd-menu-popup-tip-renderer",function(){if(v9s!==void 0)return v9s;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);
return v9s=v},{mode:1});var eCs;var Yg=function(){var v=_.P.apply(this,arguments)||this;v.useIcons=!1;v.systemIcons=_.N("kevlar_system_icons");v.useListItemStyles=_.N("web_list_item_style_for_menu_items");return v};
_.V(Yg,_.P);_.W=Yg.prototype;_.W.onFocus=function(){var v;(v=_.IB(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.W.onTap=function(){var v=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(v&&_.L(v,_.rV))this.componentBehavior.resolveCommand(v),this.updateToggledStateInEntity();else if(v){this.componentBehavior.resolveCommand(v)||_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}});var e;((e=_.L(v,_.KB))==null?void 0:e.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.W.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.W.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.W.updateToggledStateInEntity=function(){var v=this.data.toggleMenuServiceItemEntityKey,e=!this.data.isToggled;v&&this.ytdReduxBehavior.dispatch(_.Lv("toggleMenuServiceItemEntity",v,{key:v,isToggled:e}))};
_.W.computeIcon=function(v,e,d){return(v=v?d:e)&&v.iconType?_.qC(v.iconType):""};
_.W.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.W.isIconActive=function(v){return!_.N("toggle_menu_active_icon_killswitch")&&v};
_.vP.Object.defineProperties(Yg.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((v=this.data)==null?0:v.isToggled)?(e=this.data)==null?void 0:e.toggledText:(d=this.data)==null?void 0:d.defaultText}}});
Yg.prototype.toggledStateEntityChanged=Yg.prototype.toggledStateEntityChanged;Yg.prototype.onYtServiceRequestCompleted=Yg.prototype.onYtServiceRequestCompleted;Yg.prototype.onTap=Yg.prototype.onTap;Yg.prototype.onFocus=Yg.prototype.onFocus;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Yg.prototype,"componentBehavior",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],Yg.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Yg.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Yg.prototype,"useIcons",void 0);_.c([_.f({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.w("design:type",String)],Yg.prototype,"icon",void 0);
_.c([_.f({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(v,e){return _.h_(v.entities,"toggleMenuServiceItemEntity",e)}}),
_.w("design:type",Object)],Yg.prototype,"toggleMenuServiceItemEntity",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Yg.prototype,"systemIcons",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Yg.prototype,"useListItemStyles",void 0);_.c([_.Kq("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yg.prototype,"onFocus",null);
_.c([_.t("data.isToggled"),_.w("design:type",Object),_.w("design:paramtypes",[])],Yg.prototype,"toggleButtonText",null);_.c([_.Kq("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yg.prototype,"onTap",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yg.prototype,"onYtServiceRequestCompleted",null);
_.c([_.$v("toggleMenuServiceItemEntity.isToggled","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yg.prototype,"toggledStateEntityChanged",null);_.c([_.z({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Yg);
_.A(Yg,"ytd-toggle-menu-service-item-renderer",function(){if(eCs!==void 0)return eCs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return eCs=v},{mode:1});var dAt;var mR=function(){return _.P.apply(this,arguments)||this};
_.V(mR,_.P);mR.prototype.onFocus=function(){var v;(v=_.IB(this.hostElement).querySelector("tp-yt-paper-item"))==null||v.focus()};
_.vP.Object.defineProperties(mR.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.xm(this.data.iconUrl)}}});
mR.prototype.onFocus=mR.prototype.onFocus;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],mR.prototype,"rendererBehavior",void 0);_.c([_.M(_.KR.YtEndpointBehavior),_.w("design:type",Object)],mR.prototype,"ytEndpointBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],mR.prototype,"data",void 0);_.c([_.Kq("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mR.prototype,"onFocus",null);
_.c([_.t("data.iconUrl"),_.w("design:type",Object),_.w("design:paramtypes",[])],mR.prototype,"imageSource",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],mR);
_.A(mR,"ytd-menu-custom-icon-item-renderer",function(){if(dAt!==void 0)return dAt;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return dAt=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});_.aZ(_.X6,"yt-list-item-view-model",{props:{data:_.U1,isMenuItem:_.U1,isCompact:_.U1,onTap:_.SM,trailingAccessory:_.SM,hideSelectionTextChevron:_.U1,disabled:_.U1,inPopup:_.U1,disableHorizontalPadding:_.U1,isOverlay:_.U1,isToggled:_.U1,ariaLabel:_.U1,ariaPressed:_.U1}});var yW=function(){var v=_.P.apply(this,arguments)||this;v.disableBackdropFilter=_.N("web_disable_backdrop_filter");return v};
_.V(yW,_.P);_.W=yW.prototype;
_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.W.computeAriaLabel=function(v){return v};
_.W.onPopupOpened=function(){this.items.selected=0;for(var v=_.a(_.IB(this.items).children),e=v.next();!e.done;e=v.next())e.value.popupPositionTarget=this.positionTarget;if(v=this.popupTip||void 0)v.setTip(this.source||""),this.source=void 0;this.veData&&(v=_.zz())&&_.nB(v,[this.veData])};
_.W.onPopupClosed=function(){var v=this.popupTip||void 0;v&&v.clearTip()};
_.W.onIronActivate=function(v){this.shouldPersist(v)||_.b4(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(v=_.zz())&&_.Uz(v,this.veData)};
_.W.shouldPersist=function(v){var e,d;if(((e=v.detail)==null?void 0:e.selected)===void 0||(d=this.data)==null||!d.items)return!1;var E,T;return!((T=(E=this.data.items[v.detail.selected])==null?void 0:E.toggleMenuServiceItemRenderer)==null||!T.persistentOnMenuPopup)};
_.W.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(v){return v.menuNavigationItemRenderer?!!v.menuNavigationItemRenderer.icon:v.menuServiceItemRenderer?!!v.menuServiceItemRenderer.icon:v.menuConditionalServiceItemRenderer?!!v.menuConditionalServiceItemRenderer.icon:v.menuConditionalNavigationItemRenderer?!!v.menuConditionalNavigationItemRenderer.icon:v.toggleMenuServiceItemRenderer?!!v.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
yW.prototype.onPopupClosed=yW.prototype.onPopupClosed;yW.prototype.onPopupOpened=yW.prototype.onPopupOpened;_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],yW.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],yW.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],yW.prototype,"veData",void 0);_.c([_.f({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.w("design:type",String)],yW.prototype,"ariaLabel",void 0);_.c([_.f({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],yW.prototype,"useIcons",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],yW.prototype,"disableBackdropFilter",void 0);_.c([_.sg("#items"),_.w("design:type",Object)],yW.prototype,"items",void 0);_.c([_.sg("ytd-menu-popup-tip-renderer"),_.w("design:type",Object)],yW.prototype,"popupTip",void 0);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yW.prototype,"onPopupOpened",null);
_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yW.prototype,"onPopupClosed",null);_.c([_.z({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],yW);
_.A(yW,"ytd-menu-popup-renderer",function(){if(p2v!==void 0)return p2v;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return p2v=v},{mode:1});var E9Q;var TPs=_.l(function(v){v=_.dC(v,{icon:void 0});var e=v.data;v=v.icon;var d=function(){return e().iconBadgeText},E={},T=_.qe("yt-spec-icon-badge-shape",function(){a:switch(e().iconBadgeType){case "notification":var S="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":S="yt-spec-icon-badge-shape--type-cart";break a;default:S=""}return S},function(){a:switch(e().iconBadgeStyle){case "overlay":var S="yt-spec-icon-badge-shape--style-overlay";
break a;default:S=""}return S},(E["yt-spec-icon-badge-shape--text-size-small"]=function(){var S=d();
return!!((S==null?0:S.length)&&S.length>2)},E));
return _.m("yt-icon-badge-shape",null,_.m(_.y,{cond:v,then:function(S){return _.m("div",{class:T},_.m("div",{class:"yt-spec-icon-badge-shape__icon"},_.m(_.sG,{icon:S})),_.m(_.y,{cond:d,then:function(O){return _.m("div",{class:"yt-spec-icon-badge-shape__badge"},O)}}))}}))},"rh");
TPs.idomCompat=!0;_.aZ(TPs,"yt-icon-badge-shape",{props:{data:_.U1,icon:_.U1}});var qO=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};v.unseenCount=0;v.isOverlay=!1;return v};
_.V(qO,_.P);_.W=qO.prototype;_.W.attached=function(){var v=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(e){v.onServiceWorkerMessage(e)})};
_.W.onDataChanged=function(){this.isAttached&&!this.JSC$20432_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20432_lastData=this.data};
_.W.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.W.computeIcon=function(){var v,e;return(v=this.data)==null?void 0:(e=v.icon)==null?void 0:e.iconType};
_.W.onServiceWorkerMessage=function(v){v.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.W.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.L(this.data.updateUnseenCountEndpoint,_.KB)&&_.L(this.data.updateUnseenCountEndpoint,_.KB).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.W.handleUpdateNotificationsUnseenCountAction=function(v){var e=this;v=_.L(v,gK9);v!=null&&v.unseenCount&&v.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(v.unseenCount),_.RM.addLowPriorityJob(function(){e.data.updateUnseenCountEndpoint&&e.ytComponentBehavior.resolveCommand(e.data.updateUnseenCountEndpoint)},v.timeoutMs))};
_.W.onClick=function(){_.Iq(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var v=_.YB(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),e=this.data.menuRequest;v&&v.length===1&&v[0]?_.b4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):e&&this.ytComponentBehavior.resolveCommand(e)};
_.W.handleTopbarMenuClosedAction=function(v){v==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.W.toggleIconState=function(v){this.iconButton&&(this.iconButton.pressed=v)};
_.W.sendUnseenCountRequest=function(v){var e=this;_.LI(_.RM,function(){e.ytComponentBehavior.resolveCommand(v)})};
_.W.updateCountUI=function(v){this.set("unseenCount",v<9?v:"9+")};
_.vP.Object.defineProperties(qO.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
qO.prototype.handleUpdateNotificationsUnseenCountAction=qO.prototype.handleUpdateNotificationsUnseenCountAction;qO.prototype.onDataChanged=qO.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],qO.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.dK),_.w("design:type",Object)],qO.prototype,"ytdOpenPopupBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],qO.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],qO.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],qO.prototype,"unseenCount",void 0);_.c([_.f(),_.w("design:type",Object)],qO.prototype,"isOverlay",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],qO.prototype,"showTooltips",void 0);_.c([_.sg("yt-icon-button"),_.w("design:type",Object)],qO.prototype,"iconButton",void 0);
_.c([_.t("unseenCount"),_.w("design:type",Object),_.w("design:paramtypes",[])],qO.prototype,"showNotificationCount",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qO.prototype,"onDataChanged",null);_.c([_.Kq("yt-update-notifications-unseen-count-action"),_.w("design:type",Function),_.w("design:paramtypes",[Object]),_.w("design:returntype")],qO.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.c([_.z({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],qO);
_.A(qO,"ytd-notification-topbar-button-renderer",function(){if(E9Q!==void 0)return E9Q;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return E9Q=v},{mode:_.bk("kevlar_poly_si_batch_j025")?1:2});var Srf;var rF=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return v};
_.V(rF,_.P);rF.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}}}}}};
rF.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
rF.prototype.onDarkModeToggled=function(v){this.dark=v};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],rF.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],rF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],rF.prototype,"data",void 0);_.c([_.f({value:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],rF.prototype,"dark",void 0);
_.c([_.z({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],rF);
_.A(rF,"yt-pdg-buy-flow-header-renderer",function(){if(Srf!==void 0)return Srf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Srf=v},{mode:1});var Wrt;var an1;var hF=function(){var v=_.P.apply(this,arguments)||this;v.immediateValue=0;v.isDarkTheme=!1;v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(hF,_.P);_.W=hF.prototype;_.W.created=function(){_.C$.requestAvailability()};
_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.W.dataChanged=function(){var v=_.IB(this.hostElement).querySelector("#color-slider");v.immediateValue&&this.updateSliderKnobAndGradientStyles(v.immediateValue);this.data.notches[0].knobColorArgb&&_.qr(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.w1(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Bb("HTML_DIR")==="rtl"&&_.IB(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.W.onSliderImmediateChange=function(){var v=_.IB(this.hostElement).querySelector("#color-slider");v.dragging&&(v.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(v.immediateValue),this.updateSliderKnobAndGradientStyles(v.immediateValue)),this.updateSliderAria())};
_.W.onSliderChange=function(){var v=_.IB(this.hostElement).querySelector("#color-slider");v.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(v.immediateValue),this.updateSliderKnobAndGradientStyles(v.immediateValue));this.updateSliderAria()};
_.W.updateSliderAria=function(){var v=_.IB(this.hostElement).querySelector("#color-slider"),e=_.IB(this.hostElement).querySelector("#color-slider");e=_.vv(this.data.notches[e.immediateValue].tierValue);_.It7()&&_.Iq(this.hostElement,"iron-announce",{text:e});v.setAttribute("aria-valuetext",e)};
_.W.updateSuperThanksSelectedTierEntity=function(v){if(v!==this.immediateValue){var e,d,E=this==null?void 0:(e=this.data)==null?void 0:(d=e.superThanksSelectedTierEntity)==null?void 0:d.key;E&&E.length>0&&this.ytdReduxBehavior.dispatch(_.Lv("superThanksSelectedTierEntity",E,{key:E,index:v}))}};
_.W.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.W.updateSliderKnobAndGradientStyles=function(v){this.immediateValue=v;v=this.data.notches[v];if(v==null?0:v.knobColorArgb)var e={"--ytd-pdg-color-slider-knob-color":_.w1(v.knobColorArgb)};(v==null?0:v.linearGradientCssStyle)&&e!==null&&(e=Object.assign({},e,{"--ytd-pdg-color-slider-active-color":v==null?void 0:v.linearGradientCssStyle}));e!==null&&_.qr(this.hostElement,e)};
hF.prototype.onSliderChange=hF.prototype.onSliderChange;hF.prototype.onSliderImmediateChange=hF.prototype.onSliderImmediateChange;hF.prototype.dataChanged=hF.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],hF.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],hF.prototype,"immediateValue",void 0);_.c([_.f(),_.w("design:type",Number)],hF.prototype,"maxMarkers",void 0);
_.c([_.f({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Ugs}),_.w("design:type",Object)],hF.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],hF.prototype,"isDarkTheme",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],hF.prototype,"ytdReduxBehavior",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hF.prototype,"dataChanged",null);
_.c([_.Kq("immediate-value-change"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hF.prototype,"onSliderImmediateChange",null);_.c([_.Kq("change"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hF.prototype,"onSliderChange",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],hF);
_.A(hF,"ytd-pdg-color-slider-renderer",function(){if(an1!==void 0)return an1;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return an1=v},{mode:1});var id9;var Odw;var Ku=null;
_.xv({is:"ytd-comment-input",_template:function(){if(Odw!==void 0)return Odw;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Odw=v},
behaviors:[_.$hM.YtHostElementBehavior,_.K$,_.cl.YtComponentBehavior,_.ae.YtRendererstamperBehavior,_.FGM.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 _.FW}},
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",_.hG(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;_.IA();this.focus()},
detached:function(){document.removeEventListener("tap",_.hG(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(v){v=v.detail;v=v.isCustomEmoji?v.shortcuts[0]:v.emojiId;var e=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(e,v);this.maybeUpdateTextDirection_();_.Iq(this.hostElement,"input")},
getInputRange_:function(){var v=_.It();if(v){v=v.getBrowserRangeObject();for(var e=v.commonAncestorContainer;e;){if(e===this.getEditableTextArea_())return v;e=e.parentNode}}v=this.getEditableTextArea_();v=_.PX(v,v.childNodes.length);v.select();return v.getBrowserRangeObject()},
insertTextWithEmojis_:function(v,e,d){(e=this.emojiManager.createDocumentFragment(e,!0,!1,d===void 0?!0:d))&&e.childNodes.length!==0&&(v.collapsed||v.deleteContents(),d=e.lastChild,v.insertNode(e),_.ZoJ(d).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var v=_.It();if(v){var e=v.JSC$11327_getStartNode(),d=v.JSC$11327_getEndNode();if(kj_(e)&&kj_(d)){var E=v.JSC$11327_getStartOffset(),T;if(_.i1&&e.nodeType===Node.ELEMENT_NODE&&(T=_.Xcu(e)))_.PX(T,0).select();else{T=r0(e)?e:_.Xv(e,r0);var S=r0(d)?d:_.Xv(d,r0);if(T||S)if(v.isCollapsed()){if(e.nodeType===Node.TEXT_NODE){v=!0;E===e.length&&(v=!1);if(Ku==="end"||Ku==="right")v=!1;e=e.parentNode;v=[].concat(_.t7(e.parentNode.childNodes)).indexOf(e)+(v?0:1);_.PX(e.parentNode,
v).select()}}else T?T.previousSibling&&T.previousSibling.length>0?_.xZ(d,v.JSC$11327_getEndOffset(),T.previousSibling,T.previousSibling.length-1).select():(e=document.createTextNode("\u200b"),T.parentNode.insertBefore(e,T),_.xZ(d,v.JSC$11327_getEndOffset(),e,0).select()):S&&(S.nextSibling&&S.nextSibling.length>0?_.xZ(e,v.JSC$11327_getStartOffset(),S.nextSibling,1).select():(d=document.createTextNode("\u200b"),S.parentNode.insertBefore(d,S.nextSibling),_.xZ(e,v.JSC$11327_getStartOffset(),d,d.length).select()));
Ku=null}}else Ku=null}else Ku=null},
leftKeyPressed_:function(){Ku="left"},
rightKeyPressed_:function(){Ku="right"},
endKeyPressed_:function(){Ku="end"},
maybeDeleteChip_:function(){var v=M2f(!0);if(v){var e=_.It(),d=e.JSC$11327_getStartNode();e=e.JSC$11327_getStartOffset();_.Gk(d,e,v,v.childNodes.length).select()}},
maybeBackspaceChip_:function(){var v=M2f(!1);if(v){var e=_.It(),d=e.JSC$11327_getStartNode();e=e.JSC$11327_getStartOffset();_.Gk(d,e,v,0).select()}},
maybeBackspaceChipWordMode_:function(v){var e=_.It();if(e.isCollapsed()){var d=e.JSC$11327_getStartNode();e=e.JSC$11327_getStartOffset();var E=t2t(d,e,!0);E&&(_.Gk(d,e,E,0).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(v){var e=_.It();if(e.isCollapsed()){var d=e.JSC$11327_getStartNode();e=e.JSC$11327_getStartOffset();var E=t2t(d,e,!1);E&&(_.Gk(d,e,E,E.childNodes.length).select(),document.execCommand("delete"),v.preventDefault(),v.stopImmediatePropagation())}},
onContentClick:function(v){v.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(v){v.defaultPrevented||v.currentTarget.tagName==="YTD-COMMENT-INPUT"&&r0(v.target)&&v.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.IB(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.IB(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(v,e){v=V2S(v,this.emojiManager,e).cloneNode(!0);for(e=v.firstChild;e;)if(e.nodeType!==1)e=e.nextSibling;else switch(e.tagName){case "BR":var d=_.k0();_.Fg2(d,e);e=d.nextSibling;break;case "DIV":(d=e.lastChild)&&e.nextSibling&&_.JZ(_.k0(),d);e.previousSibling&&(e.previousSibling.nodeType===1||e.previousSibling.nodeType===3&&!e.previousSibling.textContent.endsWith("\n"))&&_.od(_.k0(),e);d&&d.nodeName==="BR"&&_.KX(d);d=e;e.hasChildNodes()?(e=e.firstChild,
_.QE6(d)):(e=e.nextSibling,_.KX(d));break;default:e=e.nextSibling}return fI9(v)},
setTextAreaValue:function(v){v||(v="");var e=this.getEditableFormattedString_();e.text="";this.getEditableTextArea_().innerText="";typeof v==="string"&&(v={runs:[{text:v}]});e.text=v},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Ku=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var v=this.getEditableTextArea_();v&&(_.PX(v,v.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Bb("HTML_DIR")==="rtl"){var v=this.getEditableTextArea_(),e=this.getTextAreaValue()!==""?"auto":"rtl";v.setAttribute("dir",e)}},
handleInputEvent_:function(){var v=null;if(this.isEmojiButtonDisplayed){var e=this.getInputRange_();e&&(v=this.emojiInput.retrieveTextBeforeRange(e))}this.insertText_(v,!0);this.updateCharCount_();v=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=v.scrollHeight>v.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var v=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:v})},
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(v){this.isEmojiButtonDisplayed&&(v.preventDefault(),v.stopImmediatePropagation(),v=v.clipboardData.getData("text/plain"),this.insertText_(v,!1,!1),_.Iq(this.hostElement,"input"))},
insertText_:function(v,e,d){e=e===void 0?!1:e;d=d===void 0?!0:d;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&v){var E=this.getInputRange_().cloneRange();this.emojiManager&&E&&(e&&this.emojiInput.offsetStartOfRangeBy(E,v.length),this.insertTextWithEmojis_(E,v,d),L5f(this.getEditableTextArea_().lastChild)||(E=this.getInputRange_().cloneRange()),E&&(this.emojiInput.updateSuggestions(E,v),this.updateSuggestionOffset_(E)))}},
getSimpleString:_.vv,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(v){return v?"focused":"not-focused"},
computePlaceholderText_:function(v){return this.getSimpleString(v)},
computeEditableText_:function(v){return this.getSimpleString(v)},
onPrefilledContentDismissed_:function(v){v.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(v,e){v?this.fire("yt-autonav-pause-focus"):e!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(v){var e=this.getEditableTextArea_();[].concat(_.t7(v.dataTransfer.items)).forEach(function(d){d.kind==="string"&&d.type.match("^text/plain")&&d.getAsString(function(E){e.appendChild(document.createTextNode(E))})});
v.preventDefault()},
preventDefault_:function(v){v.preventDefault()},
onSuggestionInsert_:function(v){this.insertTextWithEmojis_(v.detail.range,v.detail.text)},
onEmojiSuggestionClick_:function(v){this.emojiInput.insertSuggestion(v.detail)},
updateSuggestionOffset_:function(v){if(this.emojiInput&&_.IB(this.emojiInput).querySelector("#dropdown")){var e=this.getEditableTextArea_().getBoundingClientRect().bottom,d=v.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(e-d)+5;e=this.getEditableTextArea_().getBoundingClientRect().left;v=v.getBoundingClientRect().left-e;_.IB(this.emojiInput).querySelector("#dropdown").style.marginLeft=v+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Xn("yt-post"));return this.localStorage}});var $g=function(){var v=_.P.apply(this,arguments)||this;v.currentCommentOptionIndex=0;v.isEmojiPickerDisplayed=!1;v.emojiManager=_.FW;v.isUgcEmpty=!1;v.userGeneratedCommentChangedHandler=function(){_.Iq(v.hostElement,"ytd-pdg-user-generated-comment-changed");v.isEmojiYtdCommentInputEnabled&&(v.isUgcEmpty=!v.ytdCommentInputEl.getTextAreaValue())};
v.pasteHandler=function(e){e.preventDefault();e.stopImmediatePropagation();var d;if(e=(d=e.clipboardData)==null?void 0:d.getData("text/plain"))d=document.getSelection().getRangeAt(0),d.collapsed||d.deleteContents(),e=document.createTextNode(e),d.insertNode(e),d.selectNodeContents(e),d.collapse(!1),e=window.getSelection(),e.removeAllRanges(),e.addRange(d)};
v.onDocumentClick=function(e){if(v.isEmojiPickerDisplayed){var d,E,T;!(e.target instanceof Node)||(d=e.composedPath())!=null&&d.includes(v.editableTextEl)||(E=e.composedPath())!=null&&E.includes(v.emojiButtonEl)||(T=e.composedPath())!=null&&T.includes(v.emojiPickerEl)||(v.isEmojiPickerDisplayed=!1)}};
return v};
_.V($g,_.P);_.W=$g.prototype;_.W.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.W.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.W.detached=function(){var v;(v=this.contentEl)==null||v.removeEventListener("input",this.userGeneratedCommentChangedHandler);var e;(e=this.contentEl)==null||e.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.W.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.W.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var v;this.contentEl.textContent=this.rendererBehavior.getSimpleString((v=this.data)==null?void 0:v.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.W.reloadEmojis=function(){this.emojiPickerEl&&_.L(this.emojiPicker,_.HlE)&&this.emojiPickerEl.updateEmojiCategories()};
_.W.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.qr(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.W.handleBackgroundColorStyling=function(){var v;if((v=this.currentCommentOption)==null?0:v.commentBackgroundColorArgb){var e;_.qr(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.w1((e=this.currentCommentOption)==null?void 0:e.commentBackgroundColorArgb)})}else _.qr(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.W.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var v;(v=this.contentEl)==null||v.focus()}};
_.W.onEditButtonClick=function(v){var e=document.getSelection();e&&this.contentEl&&(v.stopPropagation(),v.preventDefault(),e.selectAllChildren(this.contentEl),e.collapseToEnd())};
_.W.onContentDrop=function(v){var e=this;if(v.dataTransfer){v=_.a(v.dataTransfer.items);for(var d=v.next();!d.done;d=v.next())d=d.value,d.kind==="string"&&d.type.match("^text/plain")&&d.getAsString(function(E){var T;(T=e.contentEl)==null||T.appendChild(document.createTextNode(E))})}};
_.W.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.W.getUserGeneratedCommentText=function(){var v,e=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(v=this.contentEl)==null?void 0:v.textContent;return e?e.trim():""};
_.W.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.W.onEmojiSelect=function(v){this.ytdCommentInputEl.onEmojiSelect(v)};
_.vP.Object.defineProperties($g.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.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 v;return!((v=this.currentCommentOption)==null||!v.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var v;if(_.L((v=this.currentCommentOption)==null?void 0:v.chipRenderer,_.W4A)){var e;return _.L((e=this.currentCommentOption)==null?void 0:e.chipRenderer,_.W4A)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var v,e;return((v=this.data)==null?0:v.commentOptionRenderers)?_.L((e=this.data)==null?void 0:e.commentOptionRenderers[this.superThanksSelectedTierEntity.index],jeS):void 0}var d,E;return((d=this.data)==null?0:d.commentOptionRenderers)?_.L((E=this.data)==null?void 0:E.commentOptionRenderers[this.currentCommentOptionIndex],jeS):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var v;return this.rendererBehavior.getSimpleString((v=this.data)==null?void 0:v.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var v;return this.rendererBehavior.getSimpleString((v=this.data)==null?void 0:v.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=_.L((v=this.data)==null?void 0:v.commentDialog,_.fH2))==null?void 0:e.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=_.L((v=this.data)==null?void 0:v.commentDialog,_.fH2))==null?void 0:e.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=_.L((v=this.data)==null?void 0:v.commentDialog,_.fH2))==null?void 0:e.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(e=_.L((v=this.data)==null?void 0:v.commentDialog,_.fH2))==null?void 0:e.emojiPicker;if(!_.L(d,_.HlE)||!_.L(d,_.HlE).categories)return!1;v=function(S){return S.emojiPickerCategoryRenderer?S.emojiPickerCategoryRenderer.emojiIds&&S.emojiPickerCategoryRenderer.emojiIds.length>0:S.emojiPickerUpsellCategoryRenderer?S.emojiPickerUpsellCategoryRenderer.emojis&&S.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var E,T;return((E=_.L(d,_.HlE))==null?0:(T=E.categories)==null?0:T.find(v))?!0:!1}}});
$g.prototype.onEmojiSelect=$g.prototype.onEmojiSelect;$g.prototype.dataChanged=$g.prototype.dataChanged;$g.prototype.currentCommentOptionChanged=$g.prototype.currentCommentOptionChanged;_.c([_.M(_.lV),_.w("design:type",Object)],$g.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$g.prototype,"rendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.sg("#content-dom-if"),_.w("design:type",_.Cq)],$g.prototype,"contentDomIfEl",void 0);_.c([_.sg("#content-no-emojis"),_.w("design:type",HTMLElement)],$g.prototype,"contentEl",void 0);_.c([_.sg("#container"),_.w("design:type",HTMLElement)],$g.prototype,"containerEl",void 0);_.c([_.sg("#comment-chip-container"),_.w("design:type",HTMLElement)],$g.prototype,"paidCommentChipContainerEl",void 0);_.c([_.sg("#text-input"),_.w("design:type",HTMLElement)],$g.prototype,"editableTextEl",void 0);
_.c([_.sg("#emoji-button"),_.w("design:type",HTMLElement)],$g.prototype,"emojiButtonEl",void 0);_.c([_.sg("#emoji-picker > yt-emoji-picker-renderer"),_.w("design:type",Object)],$g.prototype,"emojiPickerEl",void 0);_.c([_.sg("#text-input > ytd-comment-input"),_.w("design:type",Object)],$g.prototype,"ytdCommentInputEl",void 0);_.c([_.f(),_.w("design:type",Object)],$g.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],$g.prototype,"currentCommentOptionIndex",void 0);
_.c([_.f({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Ugs}),_.w("design:type",Object)],$g.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.f(),_.w("design:type",Object)],$g.prototype,"isEmojiPickerDisplayed",void 0);_.c([_.f(),_.w("design:type",Object)],$g.prototype,"emojiManager",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],$g.prototype,"isUgcEmpty",void 0);
_.c([_.$v("currentCommentOption"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$g.prototype,"currentCommentOptionChanged",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$g.prototype,"dataChanged",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$g.prototype,"isEmojiYtdCommentInputEnabled",null);
_.c([_.t("data.title"),_.w("design:type",Object),_.w("design:paramtypes",[])],$g.prototype,"title",null);_.c([_.t("data.authorText"),_.w("design:type",Object),_.w("design:paramtypes",[])],$g.prototype,"channelName",null);_.c([_.t("data.commentOptionRenderers","currentCommentOption"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$g.prototype,"shouldShowPaidCommentChipRenderer",null);
_.c([_.t("data.commentOptionRenderers","currentCommentOption"),_.w("design:type",Object),_.w("design:paramtypes",[])],$g.prototype,"paidCommentChipRenderer",null);_.c([_.t("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],$g.prototype,"currentCommentOption",null);
_.c([_.t("data.defaultCommentText","superThanksSelectedTierEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],$g.prototype,"commentText",null);_.c([_.t("data.placeholderText"),_.w("design:type",Object),_.w("design:paramtypes",[])],$g.prototype,"placeholderText",null);_.c([_.t("data.commentDialog.commentDialogRenderer.editableText"),_.w("design:type",Object),_.w("design:paramtypes",[])],$g.prototype,"editableText",null);
_.c([_.t("data.commentDialog.commentDialogRenderer.emojiButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],$g.prototype,"emojiButton",null);_.c([_.t("data.commentDialog.commentDialogRenderer.emojiPicker"),_.w("design:type",Object),_.w("design:paramtypes",[])],$g.prototype,"emojiPicker",null);
_.c([_.t("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$g.prototype,"isEmojiButtonDisplayed",null);_.c([_.Kq("yt-emoji-select"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],$g.prototype,"onEmojiSelect",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],$g);
_.A($g,"ytd-pdg-comment-preview-renderer",function(){if(id9!==void 0)return id9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return id9=v},{mode:2});var InC;var j5=function(){var v=_.P.apply(this,arguments)||this;v.selected=!1;return v};
_.V(j5,_.P);_.W=j5.prototype;_.W.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.W.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.W.dataChanged=function(){this.data&&(_.bh(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.qr(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.w1(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.w1(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.W.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.W.onClick=function(){this.logClick()};
_.W.onKeyboardSelect=function(){_.Iq(this.hostElement,"tap");this.onClick()};
_.W.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
j5.prototype.onClick=j5.prototype.onClick;j5.prototype.selectedChanged=j5.prototype.selectedChanged;j5.prototype.dataChanged=j5.prototype.dataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],j5.prototype,"componentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.K$),_.w("design:type",Object)],j5.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.M(_.nq),_.w("design:type",Object)],j5.prototype,"ironSelectableBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],j5.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],j5.prototype,"shownThumbnail",void 0);_.c([_.f(),_.w("design:type",Object)],j5.prototype,"basePriceText",void 0);_.c([_.f(),_.w("design:type",Object)],j5.prototype,"purchaseCommand",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],j5.prototype,"selected",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],j5.prototype,"dataChanged",null);_.c([_.$v("selected"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],j5.prototype,"selectedChanged",null);_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],j5.prototype,"onClick",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],j5);
_.A(j5,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(InC!==void 0)return InC;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return InC=v},{mode:1});var sf=function(){var v=_.P.apply(this,arguments)||this;v.selectedItemIndex=0;v.buyButtonDisabled=!1;return v};
_.V(sf,_.P);_.W=sf.prototype;
_.W.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]]"}}}}}};
_.W.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var v;var e=(v=_.L(this.data.colorSlider,$Z_))==null?void 0:v.notches[this.selectedItemIndex].purchaseCommand}else{var d;e=(d=_.L(this.data.selectableItemButtons[this.selectedItemIndex],NDf))==null?void 0:d.purchaseCommand}if(e){v=_.L(e,_.A5M);v.productData||(v.productData={});var E;v.productData={pdgData:{commentMessageText:(E=this.commentPreviewRenderer)==null?void 0:E.getUserGeneratedCommentText()}};
_.Iq(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(e)}}};
_.W.dataChanged=function(){if(this.data){_.FW.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.sRA(_.FW,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.FW.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var v;this.buyButtonDisabled=!((v=_.L(this.data.commentPreview,sew))==null||!v.placeholderText);this.updatePriceSelectorStatus();var e;if((e=this.data)==null?0:e.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;v=[];this.data.preloadImages&&(v=this.data.preloadImages);
v=v.map(function(d){return _.i2(d.thumbnails,1920)});
v=_.a(v);for(e=v.next();!e.done;e=v.next())(e=e.value)&&_.gPL(e).thenCatch(function(){_.xf(Error("xl"))})}};
_.W.superThanksSelectedTierEntityChanged=function(){var v;(this==null?void 0:(v=this.superThanksSelectedTierEntity)==null?void 0:v.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.W.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.W.updatePriceSelectorStatus=function(){this.isColorSlider?(_.IB(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.IB(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.IB(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.IB(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.W.closeBuyFlow=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.W.onUserGeneratedContentChanged=function(){var v;this.buyButtonDisabled=!((v=this.commentPreviewRenderer)==null?0:v.getUserGeneratedCommentText())};
_.W.updateSelectedItemIndexFromBinding=function(v){this.selectedItemIndex=v.detail.value};
_.vP.Object.defineProperties(sf.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var v;return!((v=this.data)==null||!v.disclaimerText)}}});
sf.prototype.onUserGeneratedContentChanged=sf.prototype.onUserGeneratedContentChanged;sf.prototype.closeBuyFlow=sf.prototype.closeBuyFlow;sf.prototype.selectedItemIndexChanged=sf.prototype.selectedItemIndexChanged;sf.prototype.superThanksSelectedTierEntityChanged=sf.prototype.superThanksSelectedTierEntityChanged;sf.prototype.dataChanged=sf.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],sf.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sf.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],sf.prototype,"selectedItemIndex",void 0);_.c([_.f(),_.w("design:type",Boolean)],sf.prototype,"isColorSlider",void 0);
_.c([_.f(),_.w("design:type",Object)],sf.prototype,"buyButtonDisabled",void 0);_.c([_.f({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Ugs}),_.w("design:type",Object)],sf.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.sg("ytd-pdg-comment-preview-renderer"),_.w("design:type",Object)],sf.prototype,"commentPreviewRenderer",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],sf.prototype,"ytdReduxBehavior",void 0);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sf.prototype,"dataChanged",null);_.c([_.$v("superThanksSelectedTierEntity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sf.prototype,"superThanksSelectedTierEntityChanged",null);_.c([_.$v("selectedItemIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sf.prototype,"selectedItemIndexChanged",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sf.prototype,"closeBuyFlow",null);_.c([_.Kq("ytd-pdg-user-generated-comment-changed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sf.prototype,"onUserGeneratedContentChanged",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sf.prototype,"isDisclaimerTextShown",null);
_.c([_.z({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],sf);
_.A(sf,"yt-super-vod-buy-flow-content-renderer",function(){if(Wrt!==void 0)return Wrt;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Wrt=v},{mode:1});var bdv;var NO=function(){var v=_.P.apply(this,arguments)||this;v.lottieAnimationRef={};return v};
_.V(NO,_.P);_.W=NO.prototype;_.W.created=function(){_.C$.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.hG(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.W.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Iq(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.W.detached=function(){this.autoCloseJobId&&_.RM.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.hG(this,this.onPopupIronOverlayOpened))};
_.W.dataChanged=function(){var v=this;this.data&&this.data.autoCloseDelay&&(_.b4(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Yj(_.RM,function(){v.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.qr(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.W.onDOMLoadedLottie=function(){var v=this,e,d,E=Number((e=this.data)==null?void 0:(d=e.autoCloseDelay)==null?void 0:d.seconds)||0;this.fadeOutJobId=_.Yj(_.RM,function(){v.lottiePlayerEl.classList.add("fadeout")},(E-.25)*1E3);
this.autoCloseJobId=_.Yj(_.RM,function(){v.closePopup()},E*1E3)};
_.W.openPopup=function(){this.ironOverlayBehavior.open()};
_.W.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.b4(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.ya(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.dk().resolve(_.EI).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.RM.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.RM.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.W.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var v,e;(v=this.lottieAnimationRef)==null||(e=v.lottieEl)==null||e.destroy();v=this.data.lottie;var d,E;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:v.url+"_"+Math.random(),path:v.url,autoplay:!0,loop:(E=(d=v.settings)==null?void 0:d.loop)!=null?E:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.vP.Object.defineProperties(NO.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var v,e;return!!((v=this.data)==null?0:(e=v.lottie)==null?0:e.url)}}});
NO.prototype.maybeInitializeLottie=NO.prototype.maybeInitializeLottie;NO.prototype.dataChanged=NO.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],NO.prototype,"rendererBehavior",void 0);_.c([_.M(_.A9),_.w("design:type",Object)],NO.prototype,"ironOverlayBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],NO.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],NO.prototype,"lottiePlayerProps",void 0);
_.c([_.f(),_.w("design:type",Object)],NO.prototype,"lottieAnimationRef",void 0);_.c([_.sg("ytd-lottie-player"),_.w("design:type",HTMLElement)],NO.prototype,"lottiePlayerEl",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],NO.prototype,"dataChanged",null);_.c([_.t("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],NO.prototype,"hasLottieAnimation",null);
_.c([_.$v("data.lottie.url"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],NO.prototype,"maybeInitializeLottie",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],NO);
_.A(NO,"ytd-desktop-image-overlay-renderer",function(){if(bdv!==void 0)return bdv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return bdv=v},{mode:1});var Yr9;var kg=function(){return _.P.apply(this,arguments)||this};
_.V(kg,_.P);_.W=kg.prototype;_.W.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"}}}}};
_.W.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",_.hG(this,this.closePopup))};
_.W.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.hG(this,this.closePopup))};
_.W.dataChanged=function(){_.YB(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.L(this.data.header,KOO)&&(this.hasBackgroundBanner=!!_.L(this.data.header,KOO).backgroundBanner)};
_.W.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.hG(this,this.closePopup))};
_.W.closePopup=function(){this.data&&this.data.onCloseCommand&&_.mN(this.hostElement,[this.data.onCloseCommand])};
kg.prototype.handleBuyflowSelectionSubmitted=kg.prototype.handleBuyflowSelectionSubmitted;kg.prototype.dataChanged=kg.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],kg.prototype,"data",void 0);
_.c([_.f({value:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],kg.prototype,"hasBackgroundBanner",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kg.prototype,"dataChanged",null);_.c([_.Kq("yt-pdg-buy-flow-selection-submitted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kg.prototype,"handleBuyflowSelectionSubmitted",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],kg);
_.A(kg,"ytd-pdg-buy-flow-renderer",function(){if(Yr9!==void 0)return Yr9;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Yr9=v},{mode:1});var mAf;var Lu=function(){var v=_.P.apply(this,arguments)||this;v.isOpen=!1;v.isPlaylistCreated=!1;return v};
_.V(Lu,_.P);_.W=Lu.prototype;_.W.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.W.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Iq(this.hostElement,"yt-refit")};
_.W.onCreateTap=function(){var v=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.mN(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(e,d){if(!_.N("killswitch_ep_in_create_playlist_response")&&(d==null?0:d.actions))for(e=_.a(d.actions),d=e.next();!d.done;d=e.next())d=d.value,_.L(d,_.k5)&&v.ytComponentBehavior.resolveCommand(d)}}]),this.isPlaylistCreated=!0)};
_.W.onKeydown=function(v){if(v.keyCode===13)this.onCreateTap()};
_.W.onServiceRequestCompleted=function(v){v.stopPropagation();_.b4(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.W.computePrivacyBadge=function(v){return v?[{metadataBadgeRenderer:v}]:[]};
Lu.prototype.onServiceRequestCompleted=Lu.prototype.onServiceRequestCompleted;Lu.prototype.onKeydown=Lu.prototype.onKeydown;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Lu.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Lu.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Lu.prototype,"isOpen",void 0);
_.c([_.f(),_.w("design:type",Object)],Lu.prototype,"isPlaylistCreated",void 0);_.c([_.f({value:{REQUIRED_LABEL:_.sz("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.sz("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.w("design:type",Object)],Lu.prototype,"addToStrings",void 0);_.c([_.f({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.w("design:type",Array)],Lu.prototype,"privacyBadge",void 0);
_.c([_.sg("#privacy-input"),_.w("design:type",Object)],Lu.prototype,"privacyInput",void 0);_.c([_.sg("#name-input"),_.w("design:type",Object)],Lu.prototype,"nameInput",void 0);_.c([_.Kq("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],Lu.prototype,"onKeydown",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Lu.prototype,"onServiceRequestCompleted",null);
_.c([_.z({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Lu);
_.A(Lu,"ytd-add-to-playlist-create-renderer",function(){if(mAf!==void 0)return mAf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return mAf=v},{mode:1});var yYw;var qri;var VW=function(){var v=_.P.apply(this,arguments)||this;v.transferState="TRANSFER_STATE_UNKNOWN";return v};
_.V(VW,_.P);VW.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
VW.prototype.onCheckboxChange=function(v){var e=this;this.data&&_.gi(this,"yt-playlist-checkbox-changed",function(){var d=_.ew(v).checked?e.data.addToPlaylistServiceEndpoint:e.data.removeFromPlaylistServiceEndpoint;d&&_.dk().resolve(_.EI).resolveCommand(d,{form:{element:e.hostElement}});_.N("dl_playlist_killswitch")||e.transferState!=="TRANSFER_STATE_UNKNOWN"&&e.transferState!=="TRANSFER_STATE_FAILED"&&e.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:e.data.playlistId,action:"ACTION_SYNC"}})},
100)};
VW.prototype.computeIconType=function(v){return v?"yt-icons:"+v.toLowerCase():null};
VW.prototype.dataChanged=VW.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],VW.prototype,"data",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],VW.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],VW.prototype,"ytComponentBehavior",void 0);_.c([_.sg("#checkbox"),_.w("design:type",HTMLInputElement)],VW.prototype,"checkbox",void 0);
_.c([_.f({selector:_.ZY,selectorArgs:["data.playlistId"]}),_.w("design:type",String)],VW.prototype,"transferState",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VW.prototype,"dataChanged",null);_.c([_.z({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],VW);
_.A(VW,"ytd-playlist-add-to-option-renderer",function(){if(qri!==void 0)return qri;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return qri=v},{mode:1});var rY9=_.l(function(v){var e=v.data;return _.m("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.m("div",null,_.m(_.Dh,{text:function(){return e().title}})),_.m(_.y,{cond:function(){return e().subtitle},
then:function(d){return _.m("div",{class:"ytdMenuTitleRendererSubtitle"},_.m(_.Dh,{text:d}))}}))},"sh");
rY9.idomCompat=!0;_.aZ(rY9,"ytd-menu-title-renderer",{props:{data:_.U1}});var oY=function(){var v=_.P.apply(this,arguments)||this;v.addToStrings={ADD_TO_DROPDOWN_LABEL:_.sz("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};v.closeButtonAriaLabel=_.sz("SBOX_INAPPROPRIATE_CANCEL");v.dialog=_.N("desktop_add_to_playlist_renderer_dialog_popup");return v};
_.V(oY,_.P);_.W=oY.prototype;_.W.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"}}}};
_.W.onPopupOpened=function(){_.Yv(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.W.onPopupClosed=function(){_.Yv(this.playlists,"scrollable",!1)};
_.W.computeAriaLabel=function(){var v;if(this==null?0:(v=this.data)==null?0:v.actions){v=_.a(this.data.actions);for(var e=v.next();!e.done;e=v.next())if(e=e.value,e.menuTitleRenderer)return _.vv(e.menuTitleRenderer.title)}};
_.W.onTapClose=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.vP.Object.defineProperties(oY.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var v;if(this==null?0:(v=this.data)==null?0:v.actions){v=_.a(this.data.actions);for(var e=v.next();!e.done;e=v.next())if(e=e.value,e.menuTitleRenderer)return e.menuTitleRenderer}return!1}}});
oY.prototype.onPopupClosed=oY.prototype.onPopupClosed;oY.prototype.onPopupOpened=oY.prototype.onPopupOpened;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],oY.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],oY.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],oY.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],oY.prototype,"addToStrings",void 0);_.c([_.f({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.w("design:type",String)],oY.prototype,"ariaLabel",void 0);_.c([_.f(),_.w("design:type",String)],oY.prototype,"closeButtonAriaLabel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],oY.prototype,"dialog",void 0);
_.c([_.sg("#playlists"),_.w("design:type",HTMLElement)],oY.prototype,"playlists",void 0);_.c([_.sg("ytd-add-to-playlist-create-renderer"),_.w("design:type",Object)],oY.prototype,"createRenderer",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],oY.prototype,"menuTitleRenderer",null);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oY.prototype,"onPopupOpened",null);
_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oY.prototype,"onPopupClosed",null);_.c([_.z({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],oY);
_.A(oY,"ytd-add-to-playlist-renderer",function(){if(yYw!==void 0)return yYw;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return yYw=v},{mode:1});var hCS;var JF=function(){var v=_.P.apply(this,arguments)||this;v.isPlaylistEditComplete=!1;v.isCollabEngagementDisabled=!1;v.closeButtonAriaLabel=_.sz("SBOX_INAPPROPRIATE_CANCEL");v.saveButton={title:_.sz("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"};v.onValueChanged=function(){v.updateSaveButtonState();v.computeCollabEngagementDisabled()};
return v};
_.V(JF,_.P);_.W=JF.prototype;_.W.attached=function(){this.JSC$20486_scroller&&(this.JSC$20486_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20486_scroller.attached&&typeof this.JSC$20486_scroller.attached==="function"&&this.JSC$20486_scroller.attached())};
_.W.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.W.onPopupClosed=function(){this.reset()};
_.W.close=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.W.onClickSave=function(){var v=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var e=[];this.nameInput.value!==null&&e.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&e.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var d=Number(this.privacyInput.value);isNaN(d)||e.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:d})}this.votingInput.value!==null&&(d=this.votingInput.value)&&e.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:d});if(e.length>0){var E;_.L((E=this.data)==null?void 0:E.updateSettingsEndpoint,_.Ri).actions=e;var T;if((T=this.data)==null?0:T.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){v.close()}}}),this.isPlaylistEditComplete=!0}}};
_.W.computePrivacyBadge=function(v){return v?[{metadataBadgeRenderer:v}]:[]};
_.W.computeEditorData=function(v){var e,d;return v==null?void 0:(e=v.sections)==null?void 0:(d=e[0])==null?void 0:d.playlistSettingsEditorCasualSectionRenderer};
_.W.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.W.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}}}}}};
_.W.computeAriaLabel=function(){var v,e,d,E=(v=this.data)==null?void 0:(e=v.sections)==null?void 0:(d=e[0])==null?void 0:d.playlistSettingsEditorCasualSectionRenderer;return _.vv(E==null?void 0:E.title)};
_.W.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"}))};
_.W.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.W.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.W.isNameChanged=function(){var v,e,d;return(((v=this.editorData)==null?void 0:(e=v.name)==null?void 0:(d=e.textInputFormFieldRenderer)==null?void 0:d.value)||"")!==(this.nameInput.value||"")};
_.W.isDescriptionChanged=function(){var v,e,d;return(((v=this.editorData)==null?void 0:(e=v.description)==null?void 0:(d=e.textInputFormFieldRenderer)==null?void 0:d.value)||"")!==(this.descriptionInput.value||"")};
_.W.isPrivacyChanged=function(){var v,e,d,E,T,S,O,b;return((O=(v=this.editorData)==null?void 0:(e=v.privacy)==null?void 0:(d=e.dropdownFormFieldRenderer)==null?void 0:(E=d.dropdown)==null?void 0:(T=E.dropdownRenderer)==null?void 0:(S=T.entries)==null?void 0:S.find(function(Y){var q;return Y==null?void 0:(q=Y.privacyDropdownItemRenderer)==null?void 0:q.isSelected}))==null?void 0:(b=O.privacyDropdownItemRenderer)==null?void 0:b.int32Value)!==this.privacyInput.value};
_.W.isVotingChanged=function(){var v,e,d,E,T,S,O,b;return((O=(v=this.editorData)==null?void 0:(e=v.voting)==null?void 0:(d=e.dropdownFormFieldRenderer)==null?void 0:(E=d.dropdown)==null?void 0:(T=E.dropdownRenderer)==null?void 0:(S=T.entries)==null?void 0:S.find(function(Y){var q;return Y==null?void 0:(q=Y.privacyDropdownItemRenderer)==null?void 0:q.isSelected}))==null?void 0:(b=O.privacyDropdownItemRenderer)==null?void 0:b.int32Value)!==this.votingInput.value};
JF.prototype.onPopupClosed=JF.prototype.onPopupClosed;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],JF.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],JF.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JF.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],JF.prototype,"data",void 0);_.c([_.f({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.w("design:type",Array)],JF.prototype,"privacyBadge",void 0);_.c([_.f({computed:"computeEditorData(data)"}),_.w("design:type",Object)],JF.prototype,"editorData",void 0);_.c([_.f(),_.w("design:type",Object)],JF.prototype,"isPlaylistEditComplete",void 0);_.c([_.f(),_.w("design:type",Object)],JF.prototype,"isCollabEngagementDisabled",void 0);
_.c([_.f({value:{REQUIRED_LABEL:_.sz("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.sz("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.w("design:type",Object)],JF.prototype,"addToStrings",void 0);_.c([_.f({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.w("design:type",String)],JF.prototype,"ariaLabel",void 0);_.c([_.f(),_.w("design:type",String)],JF.prototype,"closeButtonAriaLabel",void 0);
_.c([_.f(),_.w("design:type",Object)],JF.prototype,"saveButton",void 0);_.c([_.sg("#name-input"),_.w("design:type",Object)],JF.prototype,"nameInput",void 0);_.c([_.sg("#description-input"),_.w("design:type",Object)],JF.prototype,"descriptionInput",void 0);_.c([_.sg("#privacy-input"),_.w("design:type",Object)],JF.prototype,"privacyInput",void 0);_.c([_.sg("#voting-input"),_.w("design:type",Object)],JF.prototype,"votingInput",void 0);
_.c([_.sg("#scroller"),_.w("design:type",Object)],JF.prototype,"JSC$20486_scroller",void 0);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JF.prototype,"onPopupClosed",null);_.c([_.f(),_.w("design:type",Object)],JF.prototype,"onValueChanged",void 0);_.c([_.z({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],JF);
_.A(JF,"ytd-playlist-settings-editor-renderer",function(){if(hCS===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);hCS=v}v=hCS;return v},{mode:1});var KrQ;_.RZ("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var GH=function(){return _.P.apply(this,arguments)||this};
_.V(GH,_.P);_.W=GH.prototype;_.W.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}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.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 v=this.get("data.nextButton.buttonRenderer.navigationEndpoint");v&&(this.nextNavigationEndpoint=v,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.W.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 v={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",v)}}};
_.W.onPopupOpened=function(v){v.detail!==this&&v.detail!==this.hostElement||!_.N("enable_premium_voluntary_pause")||_.b4(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.W.onNextButtonTap=function(){var v=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);v&&this.ytdOpenPopupBehavior.openPopup(v)};
_.W.updateSelectedResponseIndexFromBinding=function(v){this.selectedResponseIndex=v.detail.value};
GH.prototype.onPopupOpened=GH.prototype.onPopupOpened;GH.prototype.onSelectedResponseIndexChange=GH.prototype.onSelectedResponseIndexChange;GH.prototype.dataChanged=GH.prototype.dataChanged;_.c([_.M(_.dK),_.w("design:type",Object)],GH.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],GH.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Number)],GH.prototype,"selectedResponseIndex",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GH.prototype,"dataChanged",null);_.c([_.$v("selectedResponseIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GH.prototype,"onSelectedResponseIndexChange",null);
_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],GH.prototype,"onPopupOpened",null);_.c([_.z({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],GH);
_.A(GH,"ytd-red-cancel-survey-renderer",function(){if(KrQ!==void 0)return KrQ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return KrQ=v},{mode:1});var $A9;var MO=function(){var v=_.P.apply(this,arguments)||this;v.closeButtonAriaLabel=_.sz("SBOX_INAPPROPRIATE_CANCEL");return v};
_.V(MO,_.P);MO.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
MO.prototype.onClickClose=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],MO.prototype,"rendererStamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],MO.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],MO.prototype,"closeButtonAriaLabel",void 0);_.c([_.z({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],MO);
_.A(MO,"ytd-search-filter-options-dialog-renderer",function(){if($A9!==void 0)return $A9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return $A9=v},{mode:1});var jF_;var xCS=function(){return function(v){v=v.availabilityType;return v===void 0||v==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||v==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var tF=function(){var v=_.P.apply(this,arguments)||this;v.qualityOptions=[];v.upsellOptions=[];v.showUpsellSection=!1;v.darkerDarkTheme=_.N("web_darker_dark_theme");v.rememberSettingsChecked=!1;return v};
_.V(tF,_.P);_.W=tF.prototype;_.W.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}}}}};
_.W.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.W.updateQualityOptions=function(){if(this.formats===void 0)_.b4(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var v=[],e=[];this.showUpsellSection=!1;for(var d=_.a(this.formats),E=d.next();!E.done;E=d.next())(E=E.value)&&(E.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?e.push(E):v.push(E));v.length&&(this.qualityOptions=PkC(v));e.length&&(this.showUpsellSection=!0,this.upsellOptions=PkC(e))}};
_.W.updateRememberString=function(){if(this.downloadQualityPickerEntity)var v=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var e;v=(e=this.data)==null?void 0:e.premiumRememberSettingString}else{var d;v=(d=this.data)==null?void 0:d.rememberSettingString}v=v===void 0?_.sz("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):v;this.rememberSettingsCheckboxRenderer={title:_.WK(v),disabled:!1}};
_.W.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.vP.Object.defineProperties(tF.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var v;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(v=this.data)==null?void 0:v.qualityFormats}}});
tF.prototype.updateRememberString=tF.prototype.updateRememberString;tF.prototype.updateQualityOptions=tF.prototype.updateQualityOptions;tF.prototype.dataChanged=tF.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],tF.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],tF.prototype,"data",void 0);
_.c([_.M(_.lV),_.w("design:type",Object)],tF.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Boolean)],tF.prototype,"selectedUpsellQuality",void 0);_.c([_.f({computed:"computeIcon_(data.premiumIcon)",value:""}),_.w("design:type",String)],tF.prototype,"premiumIcon",void 0);_.c([_.f({selector:gqO,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.w("design:type",Object)],tF.prototype,"downloadQualityPickerEntity",void 0);
_.c([_.f(),_.w("design:type",Array)],tF.prototype,"qualityOptions",void 0);_.c([_.f(),_.w("design:type",Array)],tF.prototype,"upsellOptions",void 0);_.c([_.f(),_.w("design:type",Object)],tF.prototype,"showUpsellSection",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],tF.prototype,"darkerDarkTheme",void 0);_.c([_.f(),_.w("design:type",Object)],tF.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.c([_.sg("#remember-settings"),_.w("design:type",HTMLInputElement)],tF.prototype,"rememberSettingsCheckbox",void 0);_.c([_.f(),_.w("design:type",Object)],tF.prototype,"rememberSettingsChecked",void 0);_.c([_.f(),_.w("design:type",Function)],tF.prototype,"onRememberSettingsCheckedChanged",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tF.prototype,"dataChanged",null);
_.c([_.$v("downloadQualityPickerEntity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tF.prototype,"updateQualityOptions",null);_.c([_.$v("selectedUpsellQuality"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tF.prototype,"updateRememberString",null);_.c([_.z({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],tF);
_.A(tF,"ytd-download-quality-selector-content",function(){if(jF_!==void 0)return jF_;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return jF_=v},{mode:1});var sF_;var fu=function(){var v=_.P.apply(this,arguments)||this;v.selectedUpsellQuality=!1;v.qualityOptions=[];v.darkerDarkTheme=_.N("web_darker_dark_theme");v.useUpsellDismissAlternate=_.N("use_not_now_dl_upsell_dismiss_cta");v.shouldShowAlternateUpsellDimiss=!1;v.rememberSettings=!1;v.rememberSettingsChecked=!1;v.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};v.rememberSettingsCheckedChanged=function(e){v.rememberSettingsChecked=e};
return v};
_.V(fu,_.P);_.W=fu.prototype;
_.W.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.WK(_.sz("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.WK(_.sz("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.WK(_.sz("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.WK(_.sz("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.W.updateQualityOptions=function(){this.formats===void 0?_.b4(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=PkC(this.formats)};
_.W.onQualityOptionsSelect=function(v){if(this.qualityOptions&&v){v!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var e=_.a(this.qualityOptions.entries()),d=e.next();!d.done;d=
e.next()){d=_.a(d.value);var E=d.next().value;d=d.next().value;var T=void 0,S=void 0;if(((T=d)==null?void 0:(S=T.settingsRadioOptionRenderer)==null?void 0:S.id)===v){this.selectedQualityIndex=E;v=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((v=this.formats[E])==null?void 0:v.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.W.onClickSubmit=function(){var v;if((v=this.downloadButtonRenderer)==null||!v.isDisabled){var e,d;v=(d=(e=this.data)==null?void 0:e.onSubmitEndpoint)!=null?d:{};var E,T;if(this.formats&&(((E=_.L(v,_.rB))==null?0:E.videoId)||((T=_.L(v,_.hX))==null?0:T.playlistId))){var S,O,b,Y,q,r;e={formatType:(Y=(S=this.formats)==null?void 0:(O=S[(b=this.selectedQualityIndex)!=null?b:0])==null?void 0:O.format)!=null?Y:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(q=this.getOfflineEndpoint(v))==null?void 0:(r=q.actionParams)==null?void 0:r.settingsAction)};this.getOfflineEndpoint(v).actionParams=e;this.ytComponentBehavior.resolveCommand(v)}_.b4(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.W.onClickUpsell=function(){var v;if((v=this.upsellButtonRenderer)==null||!v.isDisabled){var e,d;v=(d=(e=this.data)==null?void 0:e.upsellEndpoint)!=null?d:{};this.ytComponentBehavior.resolveCommand(v);_.b4(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);e="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var E,T,S,O;e=(O=(E=this.formats)==null?void 0:(T=E[(S=this.selectedQualityIndex)!=null?S:0])==null?void 0:T.format)!=null?O:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:e}})}};
_.W.onClickClose=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.W.getOfflineSettingsAction=function(v,e){return v?e===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":e:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.W.getOfflineEndpoint=function(v){return _.L(v,_.rB)?_.L(v,_.rB):_.L(v,_.hX)};
_.vP.Object.defineProperties(fu.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.WK(_.sz("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var v;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(v=this.data)==null?void 0:v.qualityFormats}}});
fu.prototype.updateQualityOptions=fu.prototype.updateQualityOptions;fu.prototype.dataChanged=fu.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],fu.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],fu.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],fu.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Number)],fu.prototype,"selectedQualityIndex",void 0);_.c([_.f(),_.w("design:type",Object)],fu.prototype,"selectedUpsellQuality",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],fu.prototype,"ytdReduxBehavior",void 0);
_.c([_.f({selector:gqO,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.w("design:type",Object)],fu.prototype,"downloadQualityPickerEntity",void 0);_.c([_.f(),_.w("design:type",Array)],fu.prototype,"qualityOptions",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],fu.prototype,"darkerDarkTheme",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],fu.prototype,"useUpsellDismissAlternate",void 0);
_.c([_.f(),_.w("design:type",Object)],fu.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.c([_.f(),_.w("design:type",Object)],fu.prototype,"downloadButtonRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],fu.prototype,"upsellButtonRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],fu.prototype,"cancelButtonRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],fu.prototype,"upsellCancelButtonRenderer",void 0);_.c([_.f(),_.w("design:type",Object)],fu.prototype,"rememberSettings",void 0);
_.c([_.f(),_.w("design:type",Object)],fu.prototype,"rememberSettingsChecked",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fu.prototype,"dataChanged",null);_.c([_.$v("downloadQualityPickerEntity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fu.prototype,"updateQualityOptions",null);_.c([_.z({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],fu);
_.A(fu,"ytd-download-quality-selector-renderer",function(){if(sF_!==void 0)return sF_;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return sF_=v},{mode:1});var NPs;var RY=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(RY,_.P);RY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
RY.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],RY.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],RY.prototype,"darkerDarkTheme",void 0);_.c([_.f({computed:"computeIcon_(data.infoIcon)"}),_.w("design:type",Object)],RY.prototype,"infoIcon",void 0);
_.c([_.f({computed:"computeIcon_(data.warningIcon)"}),_.w("design:type",Object)],RY.prototype,"warningIcon",void 0);_.c([_.z({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],RY);
_.A(RY,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(NPs!==void 0)return NPs;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return NPs=v},{mode:1});var kKS;var P9=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(P9,_.P);P9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
P9.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],P9.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],P9.prototype,"darkerDarkTheme",void 0);_.c([_.z({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],P9);
_.A(P9,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(kKS!==void 0)return kKS;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return kKS=v},{mode:1});var Lrw;var xg=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(xg,_.P);xg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xg.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"}}}}};
xg.prototype.onServiceRequestSentOrCompleted=function(v,e){e&&e.actions&&e.actions.length>0&&_.b4(this.hostElement,"yt-close-popup-action",[this.is])};
xg.prototype.onServiceRequestSentOrCompleted=xg.prototype.onServiceRequestSentOrCompleted;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],xg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],xg.prototype,"darkerDarkTheme",void 0);_.c([_.f(),_.w("design:type",Object)],xg.prototype,"data",void 0);
_.c([_.Kq("yt-service-request-completed"),_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],xg.prototype,"onServiceRequestSentOrCompleted",null);_.c([_.z({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],xg);
_.A(xg,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(Lrw!==void 0)return Lrw;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Lrw=v},{mode:1});var V_s;var B9=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");v.submitButtonDisabled=!0;return v};
_.V(B9,_.P);_.W=B9.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.W.onDataChanged=function(){var v,e,d;if(((v=this.data)==null?void 0:(e=v.confirmButton)==null?void 0:(d=e.buttonRenderer)==null?void 0:d.isDisabled)!==void 0){var E,T,S;this.submitButtonDisabled=(E=this.data)==null?void 0:(T=E.confirmButton)==null?void 0:(S=T.buttonRenderer)==null?void 0:S.isDisabled}};
_.W.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.W.updateSubmitButtonDisabledFromBinding=function(v){this.submitButtonDisabled=v.detail.value};
_.W.updateSubmitButtonDisabledFromConfirmCheckbox=function(v){this.submitButtonDisabled=!v.detail.value};
B9.prototype.onDataChanged=B9.prototype.onDataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],B9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],B9.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],B9.prototype,"darkerDarkTheme",void 0);
_.c([_.f(),_.w("design:type",Object)],B9.prototype,"submitButtonDisabled",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],B9.prototype,"onDataChanged",null);_.c([_.z({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],B9);
_.A(B9,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(V_s!==void 0)return V_s;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return V_s=v},{mode:1});var o9v;var Cu=function(){return _.P.apply(this,arguments)||this};
_.V(Cu,_.P);_.vP.Object.defineProperties(Cu.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var v,e,d;return((v=this.data)==null?void 0:v.title)+" "+((e=this.data)==null?void 0:e.metadataPrimary)+" "+((d=this.data)==null?void 0:d.metadataSecondary)}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Cu.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Cu.prototype,"data",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Cu.prototype,"ariaLabel",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Cu);
_.A(Cu,"ytd-compact-product-list-item-renderer",function(){if(o9v!==void 0)return o9v;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return o9v=v},{mode:1});var JYQ;var zH=function(){return _.P.apply(this,arguments)||this};
_.V(zH,_.P);zH.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]]"}}}}}};
_.vP.Object.defineProperties(zH.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],zH.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],zH.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],zH);
_.A(zH,"ytd-compact-product-list-renderer",function(){if(JYQ!==void 0)return JYQ;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return JYQ=v},{mode:1});var GK9;var ls=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(ls,_.P);_.W=ls.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.W.getBackgroundUrl=function(){var v=this.get("data.headerImage.thumbnails");return v?"url("+_.i2(v,this.hostElement.clientWidth)+")":""};
_.W.onDataChanged=function(){var v=this.getBackgroundUrl();v&&(this.header.style.backgroundImage=v);v=_.zz();var e=_.Xf(),d=this.get("data.trackingParams");d&&e&&v&&_.Qa(v,e,_.Jg(d));v=_.a(this.hostElement.querySelectorAll("yt-img-shadow"));for(e=v.next();!e.done;e=v.next())e.value.onShow()};
_.W.onPopupClosed=function(v){_.ew(v).localName==="ytd-membership-post-cancel-renderer"&&_.b4(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
ls.prototype.onPopupClosed=ls.prototype.onPopupClosed;ls.prototype.onDataChanged=ls.prototype.onDataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ls.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ls.prototype,"darkerDarkTheme",void 0);
_.c([_.sg("#header"),_.w("design:type",HTMLDivElement)],ls.prototype,"header",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ls.prototype,"onDataChanged",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ls.prototype,"onPopupClosed",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],ls);
_.A(ls,"ytd-membership-post-cancel-renderer",function(){if(GK9!==void 0)return GK9;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return GK9=v},{mode:1});var M_i;var H9=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(H9,_.P);H9.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
H9.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],H9.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],H9.prototype,"darkerDarkTheme",void 0);_.c([_.sg("ytd-feedback-survey-renderer"),_.w("design:type",Object)],H9.prototype,"feedbackSurveyRenderer",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],H9);
_.A(H9,"ytd-sponsorship-confirm-cancel-content",function(){if(M_i!==void 0)return M_i;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return M_i=v},{mode:1});var t_t;var AF=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");v.maybeSubmitFeedback=function(){v.content&&v.content.maybeSubmitFeedback()};
return v};
_.V(AF,_.P);_.W=AF.prototype;_.W.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.W.onYtPopupOpened=function(v,e){e===this&&this.data&&this.data.onOpenCommands&&_.ya(this.hostElement,this.data.onOpenCommands,this.hostElement);_.b4(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.W.onYtPopupClosed=function(v,e){(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.ya(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.W.onYtServiceRequestCompleted=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.W.onYtServiceRequestError=function(v){_.Q0(this.hostElement,v.detail.error.message)};
_.W.onDataChanged=function(){if(this.isAttached){var v=this.backgroundUrl;v&&(_.IB(this.hostElement).querySelector("#header").style.backgroundImage=v)}};
_.vP.Object.defineProperties(AF.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return v?"url("+_.i2(v,this.hostElement.clientWidth)+")":""}}});
AF.prototype.onDataChanged=AF.prototype.onDataChanged;AF.prototype.onYtServiceRequestError=AF.prototype.onYtServiceRequestError;AF.prototype.onYtServiceRequestCompleted=AF.prototype.onYtServiceRequestCompleted;AF.prototype.onYtPopupClosed=AF.prototype.onYtPopupClosed;AF.prototype.onYtPopupOpened=AF.prototype.onYtPopupOpened;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],AF.prototype,"data",void 0);_.c([_.f({value:function(){return _.sz("SBOX_INAPPROPRIATE_CANCEL")}}),
_.w("design:type",String)],AF.prototype,"closeButtonAriaLabel",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],AF.prototype,"darkerDarkTheme",void 0);_.c([_.sg("#scrollable"),_.w("design:type",Object)],AF.prototype,"scrollable",void 0);_.c([_.sg("ytd-sponsorship-confirm-cancel-content"),_.w("design:type",Object)],AF.prototype,"content",void 0);
_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],AF.prototype,"onYtPopupOpened",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],AF.prototype,"onYtPopupClosed",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],AF.prototype,"onYtServiceRequestCompleted",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],AF.prototype,"onYtServiceRequestError",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],AF.prototype,"onDataChanged",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],AF);
_.A(AF,"ytd-sponsorship-confirm-cancel-renderer",function(){if(t_t!==void 0)return t_t;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return t_t=v},{mode:_.bk("kevlar_poly_si_batch_j081")?1:2});var fnv;var ZC=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(ZC,_.P);ZC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ZC.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],ZC.prototype,"darkerDarkTheme",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],ZC);
_.A(ZC,"ytd-sponsorships-celebration-content",function(){if(fnv!==void 0)return fnv;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return fnv=
v},{mode:1});var RCs;var Pri=_.Z9(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),c9=function(){var v=_.P.apply(this,arguments)||this;v.scriptsAppended=!1;v.useFullWidthPrimaryButton=!1;v.buttonOverrides={type:"tonal",style:"overlay-dark"};return v};
_.V(c9,_.P);_.W=c9.prototype;_.W.dataChanged=function(){var v;this.useFullWidthPrimaryButton=!((v=this.data)==null||!v.useFullWidthPrimaryButton)};
_.W.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:_.N("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.onDataChanged=function(){var v;(v=this.header)==null||v.style.setProperty("background-color",this.backgroundColor);if(v=this.headerImageUrl){var e;(e=this.header)==null||e.style.setProperty("background-image",v)}e=_.zz(4);v=_.Xf(4);var d=this.get("data.trackingParams");if(d&&v&&e){var E=_.Jg(d);_.Qa(e,v,E);_.N("combine_ve_grafts")?_.NC().graftServerVe(d,v,4):_.Qa(e,v,E)}e=_.a(this.hostElement.querySelectorAll("yt-img-shadow"));for(v=e.next();!v.done;v=e.next())v.value.onShow();if(e=this.get("data.gtmId"))_.tb(e,
_.Bb("GL","")),this.setupConversionTracking()};
_.W.setupConversionTracking=function(){if(!this.scriptsAppended){var v=document.createElement("script");var e=_.u6(Pri.join(""));_.nY(v,e);document.head.appendChild(v);v=document.createElement("noscript");v.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(v);this.scriptsAppended=!0}};
_.W.onPopupClosed=function(v){if(_.ew(v).localName==="ytd-sponsorships-celebration-renderer"){_.b4(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var e;this.data&&((e=this.data)==null?0:e.dismissCommand)&&_.hg.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.vP.Object.defineProperties(c9.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.w1(v)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return v?"url("+_.i2(v,this.hostElement.getBoundingClientRect().width)+")":""}}});
c9.prototype.onPopupClosed=c9.prototype.onPopupClosed;c9.prototype.onDataChanged=c9.prototype.onDataChanged;c9.prototype.dataChanged=c9.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],c9.prototype,"data",void 0);
_.c([_.sg("#header"),_.w("design:type",HTMLElement)],c9.prototype,"header",void 0);_.c([_.f(),_.w("design:type",Object)],c9.prototype,"scriptsAppended",void 0);_.c([_.f({type:Boolean,reflectToAttribute:!0}),_.w("design:type",Object)],c9.prototype,"useFullWidthPrimaryButton",void 0);_.c([_.f(),_.w("design:type",Object)],c9.prototype,"buttonOverrides",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],c9.prototype,"dataChanged",null);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],c9.prototype,"onDataChanged",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],c9.prototype,"onPopupClosed",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],c9);
_.A(c9,"ytd-sponsorships-celebration-renderer",function(){if(RCs!==void 0)return RCs;var v=document.createElement("template");_.G(v,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return RCs=v},{mode:1});var xAi;var wF=function(){var v=_.P.apply(this,arguments)||this;v.isToggleChecked=!1;return v};
_.V(wF,_.P);wF.prototype.onDataChanged=function(){var v;this.isToggleChecked=((v=this.data)==null?void 0:v.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
wF.prototype.close=function(){var v;((v=this.data)==null?0:v.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
wF.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var v,e=_.L((v=this.data)==null?void 0:v.switchButton,kXO);e&&(this.isToggleChecked&&e.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(e.switchOnInnertubeCommand),!this.isToggleChecked&&e.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(e.switchOffInnertubeCommand))};
wF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wF.prototype.onDataChanged=wF.prototype.onDataChanged;_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],wF.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],wF.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],wF.prototype,"isToggleChecked",void 0);_.c([_.f({value:_.sz("CLOSE")}),_.w("design:type",String)],wF.prototype,"closeButtonAriaLabel",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wF.prototype,"onDataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],wF);
_.A(wF,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(xAi!==void 0)return xAi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return xAi=v},{mode:1});var BPf;var FR=function(){return _.P.apply(this,arguments)||this};
_.V(FR,_.P);_.W=FR.prototype;_.W.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"}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.detached=function(){this.playerElement.stop()};
_.W.onYtServiceRequestCompleted=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.W.onYtServiceRequestError=function(v){_.Q0(this.hostElement,v.detail.error.message)};
_.W.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.W.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.W.getTier=function(v,e){return!v||!v.tiers||e<0?null:_.L(v.tiers[e],J5Q)};
_.W.moreThanOne=function(v){return!!(v&&v.length>1)};
_.W.tierOverviewTap=function(v){var e=this;this.selectedTier=v.model.index;_.Uh(this,function(){_.Iq(e.hostElement,"yt-refit")})};
_.W.computeSelectedClass=function(v,e){return this.isSelected(v,e)?"selected":""};
_.W.computeButtonAriaPressed=function(v,e){return this.isSelected(v,e)?"true":"false"};
_.W.isSelected=function(v,e){return v===e};
_.W.onDataChanged=function(){_.IB(this.hostElement).querySelector("#header-overlay").style.visibility="";_.IB(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 v=_.a(this.hostElement.querySelectorAll("yt-img-shadow")),
e=v.next();!e.done;e=v.next())e.value.onShow();var d;this.set("selectedTier",(d=this.get("data.targetTierIndex"))!=null?d:0);var E;(v=(E=this.data)==null?void 0:E.onVisible)&&this.ytComponentBehavior.resolveCommand(v)};
_.W.initializeVe=function(v){var e=_.zz(),d=_.Xf(),E=this.get("data.trackingParams");d&&e&&(this.screenLayer=4,e=_.Hb(_.J9O)(void 0,69877,{clientScreenNonce:e,visualElement:d},void 0,void 0,void 0),_.HP(e,69877,4),d=_.Xf(4),E&&d&&(E=_.Jg(E),_.Qa(e,d,E),v&&(this.offerVideoVe=_.bH(74659),_.Qa(e,E,this.offerVideoVe))))};
_.W.setHeaderBackground=function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.IB(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.w1(v);if(v=this.getHeaderImage())v=_.i2(v,screen.width),_.IB(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+v+")"};
_.W.getHeaderImage=function(){var v=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&v?v:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.W.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.W.setupVideoPlayer=function(v){var e=this,d,E,T,S;return _.I(function(O){if(O.nextAddress==1)return d=e.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),E=e.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.N("kevlar_player_update_killswitch")?e.playerElement.update({args:{autoplay:d,video_id:v,player_params:E}}):e.playerElement.loadVideoWithPlayerVars({autoplay:d,video_id:v,player_params:E}),
O.yield(e.playerElement.getPlayerPromise(),2);T=O.yieldResult;T.addEventListener("onStateChange",function(b){e.onPlayerStateChange(b)});
T.setScreenLayer(e.screenLayer);(S=_.zz(4))&&e.offerVideoVe&&_.u4(S,e.offerVideoVe);d&&(e.pauseOtherPlayers(),e.playerElement.focusOnPlayer(),e.playerElement.getPlayer().hideControls(),_.LI(_.RM,function(){e.fadeOutHeaderOverlay()},4E3));
_.s9(O)})};
_.W.onPlayerStateChange=function(v){v===1?this.backgroundPlayerElement&&(v=this.backgroundPlayerElement.player_.getPlayerState(),v!==1&&v!==3||this.backgroundPlayerElement.pause()):v===0&&(_.IB(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.IB(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.W.fadeOutHeaderOverlay=function(){_.IB(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.W.onHeaderTap=function(){if(this.offerVideo){_.IB(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var v;((v=this.playerElement.player_)==null?void 0:v.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(v=_.zz(4))&&this.offerVideoVe&&_.Uz(v,this.offerVideoVe)}};
_.W.getBackgroundImageLayerClass=function(v){return v?"background-image-layer-with-video":""};
_.W.getHeaderClass=function(v){return v?"header-with-video":""};
_.W.getHeaderOverlayClass=function(v){return v?"header-overlay-with-video":""};
_.W.getTitleContainerClass=function(v,e){return v?"title-container-with-video":e?"title-container-without-video-flexible":"title-container-without-video"};
_.W.tierTitleDisplayStatus=function(v){return this.moreThanOne(v)?"hide":"show"};
_.W.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.dk().resolve(_.P0).getPlayerElement():this.backgroundPlayerElement=_.dB();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var v=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=v===1||v===3;this.backgroundPlayerElement.pause()}};
_.W.isMiniplayerActive=function(){return _.dk().resolve(_.P0).isMiniplayerActive()};
_.W.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("selected-tier-changed",this.selectedTier))};
FR.prototype.selectedTierChangedForBinding=FR.prototype.selectedTierChangedForBinding;FR.prototype.onDataChanged=FR.prototype.onDataChanged;FR.prototype.onYtPopupClosed=FR.prototype.onYtPopupClosed;FR.prototype.onYtPopupOpened=FR.prototype.onYtPopupOpened;FR.prototype.onYtServiceRequestError=FR.prototype.onYtServiceRequestError;FR.prototype.onYtServiceRequestCompleted=FR.prototype.onYtServiceRequestCompleted;
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],FR.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],FR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],FR.prototype,"data",void 0);_.c([_.f({value:0}),_.w("design:type",Number)],FR.prototype,"selectedTier",void 0);
_.c([_.f({value:""}),_.w("design:type",String)],FR.prototype,"offerVideo",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],FR.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.c([_.f({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.gH(this)}}),
_.w("design:type",String)],FR.prototype,"playerId",void 0);_.c([_.sg("tp-yt-paper-dialog-scrollable"),_.w("design:type",Object)],FR.prototype,"scrollable",void 0);_.c([_.sg("ytd-sponsorships-tier-renderer"),_.w("design:type",Object)],FR.prototype,"tierRenderer",void 0);_.c([_.sg("#player"),_.w("design:type",Object)],FR.prototype,"playerElement",void 0);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],FR.prototype,"onYtServiceRequestCompleted",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],FR.prototype,"onYtServiceRequestError",null);
_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FR.prototype,"onYtPopupOpened",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FR.prototype,"onYtPopupClosed",null);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FR.prototype,"onDataChanged",null);
_.c([_.$v("selectedTier"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FR.prototype,"selectedTierChangedForBinding",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],FR);
_.A(FR,"ytd-sponsorships-offer-renderer",function(){if(BPf!==void 0)return BPf;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return BPf=v},{mode:_.bk("kevlar_poly_si_batch_j077")?1:2});var CrQ;var QW=function(){var v=_.P.apply(this,arguments)||this;v.buttonOverrides={type:"filled",style:"mono"};return v};
_.V(QW,_.P);QW.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}}}}}};
QW.prototype.backgroundColorChanged=function(){var v,e,d,E=(e=_.L((v=this.data)==null?void 0:v.content,GXs))==null?void 0:(d=e.backgroundColor)==null?void 0:d.backgroundColor;E&&(v=_.cv(E),_.IB(this.hostElement).querySelector("#banner").style.backgroundColor=v,_.IB(this.hostElement).querySelector("#abstract-art").style.backgroundColor=v)};
QW.prototype.attached=function(){this.JSC$20572_scroller&&(this.JSC$20572_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20572_scroller.attached&&typeof this.JSC$20572_scroller.attached==="function"&&this.JSC$20572_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
QW.prototype.backgroundColorChanged=QW.prototype.backgroundColorChanged;_.c([_.f(),_.w("design:type",Object)],QW.prototype,"data",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.sg("#scroller"),_.w("design:type",Object)],QW.prototype,"JSC$20572_scroller",void 0);_.c([_.f(),_.w("design:type",Object)],QW.prototype,"buttonOverrides",void 0);
_.c([_.$v("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QW.prototype,"backgroundColorChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],QW);
_.A(QW,"ytd-sponsorships-promotion-celebration-renderer",function(){if(CrQ!==void 0)return CrQ;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return CrQ=v},{mode:_.bk("kevlar_poly_si_batch_j077")?1:2});var X11;var zCi;var gF=function(){return _.P.apply(this,arguments)||this};
_.V(gF,_.P);gF.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
gF.prototype.computeIsInitiallyChecked=function(v){return v===1};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],gF.prototype,"data",void 0);_.c([_.sg("#checkbox"),_.w("design:type",Object)],gF.prototype,"checkbox",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],gF);
_.A(gF,"ytd-subscription-toggle-option-renderer",function(){if(zCi!==void 0)return zCi;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return zCi=v},{mode:1});var us=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");v.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return v};
_.V(us,_.P);us.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"}}}};
us.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
us.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var v=_.IB(this.hostElement).querySelector("#options").selected;v=this.data.options[v].subscriptionRadioOptionRenderer.serviceEndpoint;var e=_.IB(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");e&&v&&v.modifyChannelNotificationPreferenceEndpoint&&(e=e.getValue())&&(v.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[e]);_.dk().resolve(_.EI).resolveCommand(v,{form:{element:this.hostElement}});
_.b4(this.hostElement,"yt-close-popup-action")};
_.vP.Object.defineProperties(us.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var v=this.data.options,e=0;e<v.length;e++){var d=v[e].subscriptionRadioOptionRenderer;if(d&&d.selected)return e}return null}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],us.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],us.prototype,"eventForwardingBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],us.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],us.prototype,"darkerDarkTheme",void 0);_.c([_.t("data.options"),_.w("design:type",Object),_.w("design:paramtypes",[])],us.prototype,"initialIndex",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],us);
_.A(us,"ytd-subscription-notification-options-renderer",function(){if(X11!==void 0)return X11;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return X11=v},{mode:1});var ln9;var nu=function(){return _.P.apply(this,arguments)||this};
_.V(nu,_.P);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],nu.prototype,"data",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],nu);
_.A(nu,"ytd-tvfilm-offer-groups-renderer",function(){if(ln9!==void 0)return ln9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return ln9=v},{mode:1});var HdS;var DC=function(){var v=_.P.apply(this,arguments)||this;v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(DC,_.P);_.W=DC.prototype;_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.W.computeThumbnailClass=function(v){return v.thumbnailOverlays?v.isShow?"thumbnail-show":"thumbnail-movie":v.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.W.computeCommerceSectionClass=function(v){return v.offers&&v.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.W.computeTitleClass=function(v){return v.offers&&v.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.W.onDataChanged=function(){[].concat(_.t7(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(v){v.onShow()})};
DC.prototype.onDataChanged=DC.prototype.onDataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],DC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],DC.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],DC.prototype,"darkerDarkTheme",void 0);
_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DC.prototype,"onDataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],DC);
_.A(DC,"ytd-ypc-offers-overlay-renderer",function(){if(HdS!==void 0)return HdS;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return HdS=v},{mode:_.bk("kevlar_poly_si_batch_j028")?1:2});var AYS;var Zd9=function(){this.usedMethods=new Set};
Zd9.prototype.add=function(v){this.usedMethods.add(v)};
Zd9.prototype.reset=function(){this.usedMethods.clear()};var Fr_=function(v,e){this.query=v;this.previousSearchQuery=e;this.id=cY1++;if(!w1f){e=_.Bb("SBOX_SETTINGS");v="https://"+((e==null?void 0:e.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var d=e==null?void 0:e.REQUEST_LANGUAGE;d&&(v+="&hl="+d);(d=e==null?void 0:e.REQUEST_DOMAIN)&&(v+="&gl="+d);v+="&client=youtube&gs_ri=youtube";(d=e==null?void 0:e.SUGG_EXP_ID)&&(v+="&sugexp="+encodeURIComponent(d));(d=e==null?void 0:e.PSUGGEST_TOKEN)&&(v+="&tok="+d);(e=
e==null?void 0:e.SESSION_INDEX)&&(v+="&authuser="+e);_.N("desktop_enable_visual_suggest")&&(v+="&h=180&w=320&ytvs=1");w1f=v}},QFi=function(v){var e="q="+encodeURIComponent(v.query);
v.previousSearchQuery&&(e+="&pq="+encodeURIComponent(v.previousSearchQuery));return e},g9i=function(){var v=_.Bb("SBOX_SETTINGS"),e={};
if(v==null?0:v.SEND_VISITOR_DATA)e["X-Goog-Visitor-Id"]=v==null?void 0:v.VISITOR_DATA;return e},u4Q=function(v){var e=w1f;
e+="&gs_id="+v.id.toString(36);e+="&q="+encodeURIComponent(v.query);e+="&cp="+v.query.length;v.previousSearchQuery&&(e+="&pq="+encodeURIComponent(v.previousSearchQuery));(v=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(e+="&video_id="+v);return e},cY1=0,w1f="";var n9i=_.Sg.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,DAw=_.Sg.SEARCH_ENTITY_SUGGESTION_MOVIE,UAt=_.Sg.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,p11=_.Sg.SEARCH_ENTITY_SUGGESTION_TV_SHOW,v3i=function(v,e){this.text=v;this.bold=e},eji=function(v,e,d){this.input=e;
this.index=d;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=v[0];this.type=v[1];this.subtypes=v[2];var E;this.displayText=KN((E=v[3])==null?void 0:E.b);var T;this.ignoredPrefix=KN((T=v[3])==null?void 0:T.a);var S,O;this.hasNewVideo=((S=v[3])==null?void 0:(O=S.zam)==null?void 0:O.toString())==="true"?!0:!1;var b;this.visualSuggestUrl=(b=v[3])==null?void 0:b.zai;var Y;this.entityType=KN((Y=v[3])==null?void 0:Y.zap);var q;this.entityName=KN((q=v[3])==null?void 0:q.zao);var r;e=KN((r=
v[3])==null?void 0:r.zaf);var h;this.entityMid=(h=v[3])==null?void 0:h.zae;r=CkS(this.subtypes,this.entityMid);if(e&&r){if(e){h="";switch(r){case "YOUTUBE_ENTITY_TYPE_SONG":h=UAt;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":h=n9i;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":h=p11;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":h=DAw}r=r==="YOUTUBE_ENTITY_TYPE_SONG"||r==="YOUTUBE_ENTITY_TYPE_ALBUM"?h+" \u2022  \u2022 "+e:e}else r="";this.entitySubtitle=r}var K;this.externalChannelId=(K=v[3])==null?void 0:K.zav;var k;
this.entityThumbnailAttributionUrl=(k=v[3])==null?void 0:k.zaq},E39=function(v,e){var d=[],E,T=(E=v.displayText)!=null?E:v.text;
(e==null?0:e.useEntityName)&&dDQ(v)&&v.entityName&&(T=v.entityName);if(v.type===33)return d.push(new v3i(T,!1)),d;if(T.length>=v.input.length&&T.substring(0,v.input.length)===v.input)d.push(new v3i(v.input,!1)),d.push(new v3i(T.substring(v.input.length),!0));else{var S=new Set(v.input.split(/\s/)),O=T.split(/\s/);d=O.map(function(b,Y){return new v3i(b.trim()+(Y===O.length-1?"":" "),!S.has(b))})}return d},dDQ=function(v){var e=!!CkS(v.subtypes);
v=!!v.entityMid;return e||v};var Tx9=function(v){this.rawResponse=["",[],{}];this.suggestions=[];try{var e=JSON.parse(Xzt(v));if(typeof e==="object"&&e!==null)this.rawResponse=e;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(E){console.log("Suggest: Failed to parse SuggestResponse!");return}var d=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(E,T){return new eji(E,d,T)})};var SZi=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new Zd9;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20609_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},WzQ,aU_=function(){WzQ||(WzQ=new SZi);
return WzQ};
SZi.prototype.updateSuggestions=function(v){var e=this;this.availableSuggestions.forEach(function(d){e.previousSuggestions[d]=!0});
this.availableSuggestions=v.map(function(d){var E=d.type.toString();d.subtypes.length>0&&(E+="i"+d.subtypes.join("i"),E+="k"+d.suggestionSources.COMPLETE_SERVER.toString());return E})};
var ia9=function(v,e){var d=Date.now();v.firstEditTime<0&&(v.firstEditTime=d);e&&(v.lastQueryBuildTime=d);v.lastEditTime=d};
SZi.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20609_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Oa9=function(v){var e="";v.availableSuggestions.forEach(function(T){delete v.previousSuggestions[T]});
for(var d=_.a(Object.keys(v.previousSuggestions)),E=d.next();!E.done;E=d.next())E=E.value,v.previousSuggestions[E]&&(e+=(e?"j":"")+E);return e},IUi=function(v,e){var d=[];
e&&(d[1]=e.toString());d[0]="youtube";d[7]=Date.now()-v.startTime;d[6]=v.sessionNumber;v.zeroPrefixSuggestionCount>=0&&(d[33]=v.zeroPrefixSuggestionCount);d[13]=v.outOfSyncResponseCount;if(v.availableSuggestions.length>0){for(var E=e="",T=0,S=_.a(v.availableSuggestions),O=S.next();!O.done;O=S.next())O=O.value,O!==E&&(T>1&&(e+="l"+T),e+=(E?"j":"")+O,T=0,E=O),T+=1;T>1&&(e+="l"+T);d[3]=e}d[35]=Oa9(v);v.selectedSuggestionIndex>=0&&(d[2]=v.selectedSuggestionIndex);var b;if(e=(b=_.Bb("SBOX_SETTINGS"))==
null?void 0:b.SUGG_EXP_ID)d[19]=v.normalize(e),b=0,v.experimentTriggeredBeforeFinal&&(b|=1),v.experimentTriggeredFinal&&(b|=2),d[20]=b;d[26]=Array.from(v.inputMethodsTracker.usedMethods).join("j");if(v.JSC$20609_totalRoundTripTime>0){d[15]=v.JSC$20609_totalRoundTripTime;d[14]=v.maxRoundTripTime;b=[];for(T=e=0;T<10;T++)E=v.roundTripTimeHistogram[T],E===0?e++:(e>1?b.push(T+"-"+E):e===1?b.push("0j"+E):b.push(E.toString()),e=0);b=b.join("j");d[16]=b}v.zeroPrefixRoundTripTime>0&&(d[36]=v.zeroPrefixRoundTripTime);
v.lastQueryBuildTime>0&&(d[18]=v.lastQueryBuildTime-v.startTime);v.firstEditTime>0&&(d[4]=v.firstEditTime-v.startTime);v.lastEditTime>0&&(d[5]=v.lastEditTime-v.startTime);return d.join(".")};
SZi.prototype.normalize=function(v){return v.replaceAll(".","-")};
var baf=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Uf=function(){var v=_.P.apply(this,arguments)||this;v.microphoneSpinnerActive=!1;v.noAnimations=!1;v.boundExitClick=function(){v.onExitButtonClick()};
v.speechOverlayClassName="";v.isLevelAnimating=!1;v.playCloseDialogAudioFeedback=!0;v.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return v};
_.V(Uf,_.P);_.W=Uf.prototype;_.W.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.W.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=py9()};
_.W.dataChanged=function(){this.logDialog()};
_.W.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var v;(v=this.manager.audioPlayer)!=null&&(v.JSC$19930_audioEnabled=!1)}this.manager.stop();(v=this.manager.audioPlayer)!=null&&(v.JSC$19930_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.W.handleSpeechQueryCompleteAction=function(v){var e=v.navigationAction;e&&(v.trackingParams&&_.NC().graftServerVe(v.trackingParams,this.dialogVe,5),_.Iq(this.hostElement,"yt-navigate",{endpoint:e,tempData:this.getNavigationParams(e),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.W.onExitButtonClick=function(){this.closeDialog()};
_.W.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var v;if((v=this.manager)!=null){var e;(e=v.audioPlayer)==null||eD(e,"failure");v.setState("microphone-off");v.stop()}}else(v=this.manager)==null||v.start()};
_.W.transcriptionChanged=function(){var v,e;(((v=this.transcription)==null?0:v.low)||((e=this.transcription)==null?0:e.high))&&this.setState("transcribing",this.transcription)};
_.W.stateChanged=function(){this.setState(this.state,this.transcription)};
_.W.logDialog=function(){var v;(v=this.data)!=null&&v.trackingParams&&(v=_.NC(),_.Ig(v,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=v.graftServerVe(this.data.trackingParams,void 0,5))};
_.W.getNavigationParams=function(v){var e={};if(_.N("web_yt_searchbox")){var d=aU_();d.inputMethodsTracker.add(6);d=IUi(d,15);e.gs_l=d;var E;e.oq=((E=_.L(v,_.Vd))==null?void 0:E.query)||""}else if(v=window.ytvoicesearchloggingparams){if(v=v())e.oq=v.oq,e.gs_l=v.gs_l}else _.ZV(Error("yl"));return e};
_.W.closeDialog=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.W.setState=function(v,e){if(this.data){var d=this.data,E={};switch(v){case "listening":E={headerText:d.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:d.microphoneButtonAriaLabel};break;case "timeout":E={headerText:d.promptHeader,microphoneState:"try-again",microphoneLabel:d.promptMicrophoneLabel,microphoneAriaLabel:d.promptMicrophoneLabel};break;case "microphone-off":E={headerText:d.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:d.promptMicrophoneLabel,
microphoneAriaLabel:d.promptMicrophoneLabel};break;case "transcribing":(e==null?0:e.low)||(e==null?0:e.high)?E={transcriptionLow:e==null?void 0:e.low,transcriptionHigh:e==null?void 0:e.high,microphoneState:"speaking",microphoneAriaLabel:d.microphoneButtonAriaLabel}:E={headerText:d.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:d.microphoneButtonAriaLabel};break;case "processing":E={headerText:d.loadingHeader,microphoneState:"processing",microphoneAriaLabel:d.microphoneButtonAriaLabel};
break;case "offline":E={headerText:d.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:d.connectionErrorMicrophoneLabel,microphoneAriaLabel:d.connectionErrorMicrophoneLabel};break;case "permission":E={headerText:d.permissionsHeader,bodyLine1:d.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:d.permissionsSubtext};break;case "permission-denied":E={headerText:d.disabledHeader,bodyLine1:d.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:d.disabledSubtext}}E.className=
v;this.speechOverlayState=E;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.W.setMicrophoneState=function(v){var e=this.isLevelAnimating;this.isLevelAnimating=v==="speaking";!e&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=v==="processing"&&!this.noAnimations};
_.W.setClass=function(v){this.speechOverlayClassName&&_.Yv(this.hostElement,this.speechOverlayClassName,!1);v&&(this.speechOverlayClassName=v,_.Yv(this.hostElement,v,!0))};
_.W.runLevelAnimation=function(){var v=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var e=1+Math.random()*.75,d=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+d/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+e+")");_.RM.addJob(function(){v.runLevelAnimation()},3,d)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Uf.prototype.stateChanged=Uf.prototype.stateChanged;Uf.prototype.transcriptionChanged=Uf.prototype.transcriptionChanged;Uf.prototype.onPopupClosed=Uf.prototype.onPopupClosed;Uf.prototype.dataChanged=Uf.prototype.dataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Uf.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Uf.prototype,"rendererStamperBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Uf.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],Uf.prototype,"eventForwardingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Uf.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Uf.prototype,"speechOverlayState",void 0);
_.c([_.f(),_.w("design:type",Object)],Uf.prototype,"microphoneSpinnerActive",void 0);_.c([_.f({type:_.N("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.w("design:type",Object)],Uf.prototype,"noAnimations",void 0);_.c([_.f({selector:function(v){var e;return(e=v.voiceSearch)==null?void 0:e.transcription}}),
_.w("design:type",Object)],Uf.prototype,"transcription",void 0);_.c([_.f({selector:function(v){var e;return(e=v.voiceSearch)==null?void 0:e.overlay}}),
_.w("design:type",String)],Uf.prototype,"state",void 0);_.c([_.f(),_.w("design:type",Object)],Uf.prototype,"boundExitClick",void 0);_.c([_.sg("#microphone-levels"),_.w("design:type",HTMLElement)],Uf.prototype,"level",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uf.prototype,"dataChanged",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uf.prototype,"onPopupClosed",null);
_.c([_.V1("transcription"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uf.prototype,"transcriptionChanged",null);_.c([_.V1("state"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uf.prototype,"stateChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Uf);
_.A(Uf,"ytd-voice-search-dialog-renderer",function(){if(AYS!==void 0)return AYS;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return AYS=v},{mode:1});var YZw;var pu=function(){var v=_.P.apply(this,arguments)||this;v.isOverlay=!1;v.hidden=!1;return v};
_.V(pu,_.P);_.W=pu.prototype;_.W.onPopupClosed=function(){this.toggleIconState(!1)};
_.W.computeIcon=function(){var v,e,d;return(e=_.L((v=this.data)==null?void 0:v.icon,P$C))==null?void 0:(d=e.icon)==null?void 0:d.iconType};
_.W.computeIconBadgeShape=function(){var v;return{iconBadgeType:"cart",iconBadgeText:(v=this.iconBadgeEntity)==null?void 0:v.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.W.onClick=function(){var v;(v=this.data)!=null&&v.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.W.computeHidden=function(v){return!v};
_.W.toggleIconState=function(v){this.iconButton&&(this.iconButton.pressed=v)};
pu.prototype.onPopupClosed=pu.prototype.onPopupClosed;_.c([_.M(_.lV),_.w("design:type",Object)],pu.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],pu.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],pu.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],pu.prototype,"isOverlay",void 0);
_.c([_.f({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.w("design:type",Object)],pu.prototype,"hidden",void 0);_.c([_.f({selectorArgs:["data.iconBadgeEntityKey"],selector:function(v,e){return _.h_(v.entities,"iconBadgeEntity",e)}}),
_.w("design:type",Object)],pu.prototype,"iconBadgeEntity",void 0);_.c([_.sg("yt-icon-button"),_.w("design:type",HTMLButtonElement)],pu.prototype,"iconButton",void 0);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pu.prototype,"onPopupClosed",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],pu);
_.A(pu,"ytd-icon-badge-topbar-button-renderer",function(){if(YZw!==void 0)return YZw;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return YZw=v},{mode:1});var mDt;var vZ=function(){var v=_.P.apply(this,arguments)||this;v.premiumOptions=[];v.darkerDarkTheme=_.N("web_darker_dark_theme");return v};
_.V(vZ,_.P);vZ.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.vP.Object.defineProperties(vZ.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],vZ.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Array)],vZ.prototype,"premiumOptions",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],vZ.prototype,"darkerDarkTheme",void 0);_.c([_.t("premiumOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],vZ.prototype,"hasPremiumOptions",null);
_.c([_.z({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],vZ);
_.A(vZ,"ytd-offline-promo-content",function(){if(mDt!==void 0)return mDt;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return mDt=v},{mode:1});var yH9;var eE=function(){var v=_.P.apply(this,arguments)||this;v.premiumOptions=[];return v};
_.V(eE,_.P);eE.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var v;this.premiumOptions=BCw((v=this.data)==null?void 0:v.formats)};
eE.prototype.onClickSubmit=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var v;(v=_.dB())==null||v.pause()};
eE.prototype.attached=function(){this.JSC$20629_scroller&&(this.JSC$20629_scroller.dialogElement=this.hostElement.parentNode)};
_.vP.Object.defineProperties(eE.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
eE.prototype.dataChanged=eE.prototype.dataChanged;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],eE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],eE.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],eE.prototype,"data",void 0);
_.c([_.f({computed:"computeIcon_(data.headersIcon)",value:""}),_.w("design:type",String)],eE.prototype,"headersIcon",void 0);_.c([_.f(),_.w("design:type",Array)],eE.prototype,"premiumOptions",void 0);_.c([_.sg("#scroller"),_.w("design:type",Object)],eE.prototype,"JSC$20629_scroller",void 0);_.c([_.t("headersIcon"),_.w("design:type",Object),_.w("design:paramtypes",[])],eE.prototype,"showIcon",null);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eE.prototype,"dataChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],eE);
_.A(eE,"ytd-offline-promo-renderer",function(){if(yH9!==void 0)return yH9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return yH9=v},{mode:1});var qZ9;var da=function(){var v=_.P.apply(this,arguments)||this;v.playbackPauseInterval=NaN;v.isLoading=!1;v.hasError=!1;v.dialogClass="";v.youtubeLabel=_.sz("LOGO_ALT_LABEL",{},"YouTube Home");v.logoName="yt-logos-ext:yt-logo-updated";v.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return v};
_.V(da,_.P);_.W=da.prototype;_.W.onDataChange=function(){var v;if(this.showEOMV1Text=!((v=this.data)==null||!v.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.W.attached=function(){this.pausePlayer()};
_.W.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.W.handleLangSelect=function(v){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[v.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.W.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.W.handleSaveConsent=function(v){var e=this;this.showLoadingSpinner();this.showLoadingSpinner();Cn1(_.L(v,x$O)).catch(function(d){_.xf(new _.kL("Something went wrong when save consent "+(d.message?d.message:d)+"."));e.hideLoadingSpinner();e.showErrorMessage()})};
_.W.handleDisablePersonalization=function(v){var e=this;this.showLoadingSpinner();XPi(_.L(v,PA_)).then(function(){e.dialog.close();e.resumePlayer()}).catch(function(d){_.xf(new _.kL("Something went wrong when disable personalization "+(d.message?d.message:d)+"."));
e.hideLoadingSpinner();e.showErrorMessage()})};
_.W.showLoadingSpinner=function(){var v=this;this.showSpinnerJobId=_.RM.addLowPriorityJob(function(){v.isLoading=!0},500)};
_.W.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.RM.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.W.showErrorMessage=function(){var v=this;this.hasError=!0;_.RM.addLowPriorityJob(function(){v.hasError=!1},2E3)};
_.W.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.bY(function(){try{var v=_.dB();v&&v.pause()}catch(e){}},100))};
_.W.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var v=_.dB();v&&v.play()}catch(e){}};
_.vP.Object.defineProperties(da.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.eomV1Text)return[];v=[];for(var e=["SHIELD","WARNING","BAR_CHART"],d=this.data.eomV1Text.essentialCookieMsg.items,E=0;E<e.length&&E<d.length;E++)v.push({icon:e[E],text:d[E]});return v}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var v;if((v=this.data)==null||!v.eomV1Text)return[];v=[];for(var e=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],d=this.data.eomV1Text.nonEssentialCookieMsg.items,E=0;E<e.length&&E<d.length;E++)v.push({icon:e[E],text:d[E]});return v}}});
da.prototype.onDataChange=da.prototype.onDataChange;_.c([_.f(),_.w("design:type",Object)],da.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],da.prototype,"showEOMV1Text",void 0);_.c([_.f(),_.w("design:type",Object)],da.prototype,"isLoading",void 0);_.c([_.f(),_.w("design:type",Object)],da.prototype,"hasError",void 0);_.c([_.f(),_.w("design:type",Number)],da.prototype,"showSpinnerJobId",void 0);_.c([_.f(),_.w("design:type",Object)],da.prototype,"dialogClass",void 0);
_.c([_.sg("#dialog"),_.w("design:type",Object)],da.prototype,"dialog",void 0);_.c([_.sg("#cb-header"),_.w("design:type",HTMLElement)],da.prototype,"header",void 0);_.c([_.sg("#lang-select"),_.w("design:type",HTMLElement)],da.prototype,"langSelect",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],da.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],da.prototype,"ytComponentBehavior",void 0);
_.c([_.f(),_.w("design:type",String)],da.prototype,"youtubeLabel",void 0);_.c([_.f(),_.w("design:type",Object)],da.prototype,"logoName",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],da.prototype,"onDataChange",null);_.c([_.t("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],da.prototype,"eomEssentialCookieMsgItems",null);
_.c([_.t("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],da.prototype,"eomNonEssentialCookieMsgItems",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],da);
_.A(da,"ytd-consent-bump-v2-lightbox",function(){if(qZ9!==void 0)return qZ9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return qZ9=v},{mode:1});var rHi;var Eb=function(){return _.P.apply(this,arguments)||this};
_.V(Eb,_.P);Eb.prototype.ready=function(){if(!_.jG()||g5t)var v=!0;else g5t=!0,v=!1;v||(v=document.querySelector("ytd-app"),v||(v=document.body),this.internalLightBox=_.IB(v).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.c([_.f(),_.w("design:type",Object)],Eb.prototype,"data",void 0);_.c([_.sg("#lightbox"),_.w("design:type",Object)],Eb.prototype,"lightBox",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Eb);
_.A(Eb,"ytd-consent-bump-v2-renderer",function(){if(rHi!==void 0)return rHi;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return rHi=v},{mode:1});var hj9;var KzC;var $Dw;var Ts=function(){return _.P.apply(this,arguments)||this};
_.V(Ts,_.P);_.W=Ts.prototype;_.W.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&eow(this.toastManager,this.toastType)};
_.W.open=function(v){this.toast&&(this.ephemeralAction&&_.dk().resolve(_.Jq).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=v!=null?v:0,this.toastManager.enqueue(this.toast,v)):this.toast.open())};
_.W.close=function(v){var e;(e=this.toast)==null||e.close();this.toastManager&&v===1&&eow(this.toastManager,v)};
_.W.refit=function(){var v;(v=this.toast)==null||v.refit()};
_.W.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var v;(v=this.toast)==null||v.close()}};
_.W.setVerticalOffset=function(v){this.toast&&(this.toast.verticalOffset=v,this.toast.fit())};
_.W.computeButtonClass_=function(v){return v?"toast-button":""};
_.W.computeText_=function(v){return _.vv(v)};
_.W.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.nR("toast-opened-changed",this.toastOpened))};
_.W.updateToastOpenedFromBinding=function(v){this.toastOpened=v.detail.value};
_.vP.Object.defineProperties(Ts.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var v,e,d=(v=this.data)==null?void 0:(e=v.actionButton)==null?void 0:e.buttonRenderer;return(d==null?void 0:d.command)||(d==null?void 0:d.serviceEndpoint)||(d==null?void 0:d.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 v=[],e;((e=this.data)==null?0:e.responseText)&&v.push(_.vv(this.data.responseText));var d;((d=this.data)==null?0:d.subText)&&v.push(_.vv(this.data.subText));var E,T;if((E=this.data)==null?0:(T=E.actionButton)==null?0:T.buttonRenderer){var S,O;v.push(((S=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(O=S.accessibilityData)==null?void 0:O.label)||_.vv(this.data.actionButton.buttonRenderer.text))}return v.filter(function(b){return b}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var v,e;return(e=(v=this.toast)==null?void 0:v.opened)!=null?e:!1}}});
Ts.prototype.toastOpenedChangedForBinding=Ts.prototype.toastOpenedChangedForBinding;Ts.prototype.toastOpenedChanged=Ts.prototype.toastOpenedChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],Ts.prototype,"ytEventForwardingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ts.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Ts.prototype,"duration",void 0);
_.c([_.f(),_.w("design:type",Number)],Ts.prototype,"toastType",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],Ts.prototype,"useCloseButton",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],Ts.prototype,"closeToastOnActionButtonClick",void 0);_.c([_.f({value:function(){return _.sz("SBOX_INAPPROPRIATE_CANCEL")}}),
_.w("design:type",String)],Ts.prototype,"closeButtonAriaLabel",void 0);_.c([_.f(),_.w("design:type",Boolean)],Ts.prototype,"toastOpened",void 0);_.c([_.f(),_.w("design:type",Boolean)],Ts.prototype,"hasOpened",void 0);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ts.prototype,"command",null);_.c([_.t("labelText","command","duration"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ts.prototype,"ephemeralAction",null);
_.c([_.t("ephemeralAction"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ts.prototype,"hasEphemeralAction",null);_.c([_.sg("#toast"),_.w("design:type",Object)],Ts.prototype,"toast",void 0);_.c([_.f({value:function(){return{style:"call-to-action-inverse"}}}),
_.w("design:type",Object)],Ts.prototype,"buttonOverrides",void 0);_.c([_.f({value:{style:"mono-inverse"}}),_.w("design:type",Object)],Ts.prototype,"closeButtonOverrides",void 0);_.c([_.f({value:function(){return _.dk().resolve(_.eG(_.NM))}}),
_.w("design:type",Object)],Ts.prototype,"toastManager",void 0);_.c([_.t("data.responseText","data.subText","data.actionButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ts.prototype,"labelText",null);_.c([_.$v("toastOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ts.prototype,"toastOpenedChanged",null);
_.c([_.$v("toastOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ts.prototype,"toastOpenedChangedForBinding",null);_.c([_.lh({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Ts);
_.A(Ts,"yt-notification-action-renderer",function(){if($Dw===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;KzC===void 0&&(KzC=document.createElement("template"));var E=KzC;d.call(e,E.content.cloneNode(!0),v.content.firstChild);$Dw=v}v=$Dw;return v},{mode:2});var SE=function(){var v=_.P.apply(this,arguments)||this;v.duration=4E3;v.downloadingCount=0;v.downloadedCount=0;v.downloadingOnlySmartDownloads=!1;v.sessionTotalDownloads=0;v.sessionDownloaded=0;v.previousSessionsDownloaded=0;v.totalDownloadPercentage=0;v.currentDownloadProgress=0;v.currentDownloadPercentage=0;v.isLeaderTab=!0;v.isFullScreen=!1;v.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};v.boundBeforeUnload=function(e){v.isLeaderTab&&v.downloadingCount>0&&(e.preventDefault(),
e.returnValue=!0)};
return v};
_.V(SE,_.P);_.W=SE.prototype;
_.W.open=function(){this.updateDownloadState();if(this.data){var v=this.sessionDownloaded+1,e=this.sessionTotalDownloads>1?_.sz("VIDEOS_DOWNLOADING_RATIO",{downloaded:v.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+v+"/"+this.sessionTotalDownloads):_.sz("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(e=this.sessionTotalDownloads>1?_.sz("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:v.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
v+"/"+this.sessionTotalDownloads):_.sz("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));v=this.isLeaderTab?_.sz("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.vv(this.data.responseText)!==e||_.vv(this.data.subText)!==v)this.set("data.responseText",_.pQ(e)),this.set("data.subText",_.pQ(v)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.W.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.W.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.W.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.W.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var v=this.downloadedCount-this.previousSessionsDownloaded;v<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-v);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.W.handleFullscreenChange=function(v){(this.isFullScreen=v)||this.updatePopup()};
SE.prototype.updateCurrentDownloadProgress=SE.prototype.updateCurrentDownloadProgress;SE.prototype.updatePopup=SE.prototype.updatePopup;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],SE.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],SE.prototype,"ytEventForwardingBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],SE.prototype,"actionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],SE.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],SE.prototype,"duration",void 0);_.c([_.f({selector:function(v){return _.E_W(v.entities).length}}),
_.w("design:type",Object)],SE.prototype,"downloadingCount",void 0);_.c([_.f({selector:Qm_}),_.w("design:type",Object)],SE.prototype,"downloadedCount",void 0);_.c([_.f({selector:function(v){var e=_.E_W(v.entities);return F$S(v.entities,e)}}),
_.w("design:type",Object)],SE.prototype,"downloadingOnlySmartDownloads",void 0);_.c([_.f(),_.w("design:type",Object)],SE.prototype,"sessionTotalDownloads",void 0);_.c([_.f(),_.w("design:type",Object)],SE.prototype,"sessionDownloaded",void 0);_.c([_.f(),_.w("design:type",Object)],SE.prototype,"previousSessionsDownloaded",void 0);_.c([_.f(),_.w("design:type",Object)],SE.prototype,"totalDownloadPercentage",void 0);
_.c([_.f({selector:function(v){var e;v=(e=_.E_W(v.entities))!=null?e:[];return v.length>0?_.F4O(v.slice(-1)):0}}),
_.w("design:type",Object)],SE.prototype,"currentDownloadProgress",void 0);_.c([_.f(),_.w("design:type",Object)],SE.prototype,"currentDownloadPercentage",void 0);_.c([_.f({selector:_.is3}),_.w("design:type",Object)],SE.prototype,"isLeaderTab",void 0);_.c([_.sg("yt-notification-action-renderer"),_.w("design:type",Object)],SE.prototype,"notificationActionRenderer",void 0);
_.c([_.V1("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SE.prototype,"updatePopup",null);_.c([_.V1("currentDownloadProgress"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SE.prototype,"updateCurrentDownloadProgress",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],SE);
_.A(SE,"ytd-video-download-toast-renderer",function(){if(hj9!==void 0)return hj9;var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return hj9=v},{mode:1});var jJO;var sJt;var WZ=function(){return _.P.apply(this,arguments)||this};
_.V(WZ,_.P);WZ.prototype.computeIsRedLogo=function(v,e){!v&&e&&(v=e);return v==="YOUTUBE_RED_LOGO"||v==="YOUTUBE_PREMIUM_LOGO"};
WZ.prototype.computeLogoName=function(v){v=this.componentBehavior.computeIcon_(v);return v===""?"yt-logos-ext:yt-logo-updated":v};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],WZ.prototype,"componentBehavior",void 0);_.c([_.f({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.w("design:type",Boolean)],WZ.prototype,"isRedLogo",void 0);_.c([_.f({computed:"computeLogoName(data)"}),_.w("design:type",String)],WZ.prototype,"logoName",void 0);_.c([_.f({value:{}}),_.w("design:type",Object)],WZ.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],WZ.prototype,"logoType",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-logo"})],WZ);
_.A(WZ,"ytd-logo",function(){if(sJt!==void 0)return sJt;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return sJt=v},{mode:_.bk("kevlar_poly_si_batch_j074")?1:2});var aS=function(){var v=_.P.apply(this,arguments)||this;v.animationRef={};return v};
_.V(aS,_.P);_.W=aS.prototype;_.W.attached=function(){document.addEventListener("yt-navigate-finish",_.hG(this,this.logYoodle))};
_.W.detached=function(){document.removeEventListener("yt-navigate-finish",_.hG(this,this.logYoodle))};
_.W.logYoodle=function(){var v,e;if((v=this.data)==null?0:(e=v.loggingDirectives)==null?0:e.trackingParams)this.ytRendererBehavior.markDirty(),_.NC().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.W.computeHideImg=function(v,e){return!!v||!!e};
_.W.computeHideYtdLogo=function(v,e){return!v||!!e};
_.W.computeHideLottie=function(v){return!v};
_.W.computeIsRedLogo=function(v){return v==="YOUTUBE_RED_LOGO"||v==="YOUTUBE_PREMIUM_LOGO"};
_.W.renderLogoEntity=function(){var v=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),e=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),d=this.getLogoTitleText(this.data),E=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==v&&(this.url=v);this.animatedUrl!==e&&(this.animatedUrl=e);this.logoTitleText!==d&&(this.logoTitleText=d);this.lottieUrl!==E&&(this.lottieUrl=E,this.lottiePlayerProps=this.computeLottiePlayerProps(E))};
_.W.getSanitizedThumbnail=function(v){return v&&v.thumbnails?_.bc0(v.thumbnails,122)||"":""};
_.W.getThumbnailUrl=function(v,e){if(!e)return"";var d,E;v=v?(d=e.darkThemeLogo)==null?void 0:d.thumbnail:(E=e.lightThemeLogo)==null?void 0:E.thumbnail;return this.getSanitizedThumbnail(v)};
_.W.getAnimatedThumbnailUrl=function(v,e){return e?this.getSanitizedThumbnail(v?e.darkThemeAnimatedLogo:e.lightThemeAnimatedLogo):""};
_.W.getLogoTitleText=function(v){if(v)return _.vv(v.tooltipText)};
_.W.computeLogoIcon=function(v,e){if(e){var d,E;return v?(d=e.darkThemeLogo)==null?void 0:d.icon:(E=e.lightThemeLogo)==null?void 0:E.icon}};
_.W.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.W.getLottieUrl=function(v,e){var d,E,T,S;return v?e==null?void 0:(d=e.darkThemeLogo)==null?void 0:(E=d.lottieAnimation)==null?void 0:E.url:e==null?void 0:(T=e.lightThemeLogo)==null?void 0:(S=T.lottieAnimation)==null?void 0:S.url};
_.W.computeLottiePlayerProps=function(v){if(v){var e;if((e=this.animationRef)==null?0:e.lottieEl){var d;(d=this.animationRef)==null||d.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:v,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.W.onLottieError=function(){this.data&&this.lottieUrl&&_.Iq(this.hostElement,"yoodle-error")};
_.W.onImgError=function(){this.data&&!this.lottieUrl&&_.Iq(this.hostElement,"yoodle-error")};
aS.prototype.playAnimation=aS.prototype.playAnimation;aS.prototype.renderLogoEntity=aS.prototype.renderLogoEntity;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],aS.prototype,"data",void 0);_.c([_.f({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.w("design:type",Boolean)],aS.prototype,"hideImg",void 0);
_.c([_.f({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.w("design:type",Boolean)],aS.prototype,"hideYtdLogo",void 0);_.c([_.f({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.w("design:type",Boolean)],aS.prototype,"hideLottie",void 0);_.c([_.f({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.w("design:type",Boolean)],aS.prototype,"isRedLogo",void 0);
_.c([_.f(),_.w("design:type",Boolean)],aS.prototype,"useDarkThemeYoodle",void 0);_.c([_.f(),_.w("design:type",String)],aS.prototype,"url",void 0);_.c([_.f(),_.w("design:type",String)],aS.prototype,"animatedUrl",void 0);_.c([_.f(),_.w("design:type",String)],aS.prototype,"logoTitleText",void 0);_.c([_.f({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.w("design:type",Object)],aS.prototype,"logoIcon",void 0);_.c([_.f(),_.w("design:type",Object)],aS.prototype,"logoType",void 0);
_.c([_.f(),_.w("design:type",String)],aS.prototype,"lottieUrl",void 0);_.c([_.f(),_.w("design:type",Object)],aS.prototype,"lottiePlayerProps",void 0);_.c([_.f(),_.w("design:type",Object)],aS.prototype,"animationRef",void 0);_.c([_.$v("data"),_.$v("useDarkThemeYoodle"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],aS.prototype,"renderLogoEntity",null);
_.c([_.Kq("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],aS.prototype,"playAnimation",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],aS);
_.A(aS,"ytd-yoodle-renderer",function(){if(jJO!==void 0)return jJO;var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return jJO=v},{mode:_.bk("kevlar_poly_si_batch_j074")?1:2});var NxS;var k0v;var Lz1=_.c5.currentPageTypeSelector,V8f=_.c5.currentPageSubTypeSelector,iv=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return v};
_.V(iv,_.P);_.W=iv.prototype;_.W.onYoodleError=function(){_.N("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.W.computeLogoName=function(v){v=this.componentBehavior.computeIcon_(v);return v===""?"yt-logos-ext:yt-logo-updated":v};
_.W.computeTitle=function(v,e,d){return d&&(e==null?0:e.tooltipText)?_.vv(e.tooltipText):_.vv(v)};
_.W.computeAriaLabel=function(v,e,d){return d&&(e==null?0:e.tooltipText)?_.vv(v):""};
_.W.computeShowYoodle=function(v,e,d){return!v||!e&&!!d&&!_.f0.isEmpty(d)};
_.W.onNavigateHomeAction=function(){if(_.N("kevlar_miniplayer_navigate_home_from_app_killswitch")){var v;(v=_.IB(this.hostElement).querySelector(".yt-simple-endpoint"))==null||v.click()}};
_.W.computeLogoHref=function(v,e,d){var E;(d==null?0:d.onTapCommand)?E=this.componentBehavior.computeHref_(d.onTapCommand):v&&(E=this.componentBehavior.computeHref_(v));return E?E:e};
_.W.computeCommand=function(v,e){return(e==null?void 0:e.onTapCommand)||v};
_.W.getEndpointForm=function(){if(_.N("kevlar_topbar_disable_cache_only_home")){var v=_.dk().resolve(_.Hl),e=Lz1(v.getState())||"";v=V8f(v.getState())||"";return{disableCache:e==="ytd-browse"&&v==="home"}}return{disableCache:!0}};
iv.prototype.onYoodleError=iv.prototype.onYoodleError;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],iv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],iv.prototype,"componentBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],iv.prototype,"ytdReduxBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],iv.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],iv.prototype,"countryCode",void 0);_.c([_.f({selectorArgs:["data.overrideEntityKey"],selector:function(v,e){return _.h_(v.entities,"logoEntity",e)}}),
_.w("design:type",Object)],iv.prototype,"logoEntity",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.w("design:type",Boolean)],iv.prototype,"showYoodle",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],iv.prototype,"yoodleError",void 0);_.c([_.f({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.w("design:type",String)],iv.prototype,"titleText",void 0);
_.c([_.f({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.w("design:type",String)],iv.prototype,"ariaLabelText",void 0);_.c([_.f({value:"/"}),_.w("design:type",String)],iv.prototype,"defaultEndpointUrl",void 0);_.c([_.f({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.w("design:type",String)],iv.prototype,"endpointUrl",void 0);
_.c([_.f({computed:"computeCommand(data.endpoint, logoEntity)"}),_.w("design:type",String)],iv.prototype,"command",void 0);_.c([_.f(),_.w("design:type",Object)],iv.prototype,"logoType",void 0);_.c([_.f({}),_.w("design:type",Boolean)],iv.prototype,"useDarkThemeYoodle",void 0);_.c([_.Kq("yoodle-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],iv.prototype,"onYoodleError",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],iv);
_.A(iv,"ytd-topbar-logo-renderer",function(){if(k0v!==void 0)return k0v;var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return k0v=v},{mode:_.bk("kevlar_poly_si_batch_j027")?1:2});var o3Q=0;var JH9=_.Sg.SEARCH_APPEND_LABEL,G0v=_.Sg.SUGGESTION_NEW_VIDEOS_TEXT,M8i=_.Sg.SUGGESTION_THUMBNAIL_LABEL,t8t=_.Sg.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,fUQ=_.l(function(v){function e(G2){var si,Ya;return _.I(function(r9){if(r9.nextAddress==1)return si=new Request(G2),_.qq(r9,2),r9.yield(fetch(si,{credentials:"include"}),4);if(r9.nextAddress!=2)return oC(!0),_.wk(r9,0);Ya=_.jl(r9);_.xf(Ya);_.s9(r9)})}
var d=v.isHighlighted;var E=v.suggestion;var T=v.onClickCallback;var S=v.onHoverUpdateCallback;var O=v.labels;var b=v.queryBuilderFunction;var Y=v.onRemoveCallback;var q=v.suggestionIndex;var r=v.generateUniqueId;var h=v.highlightedId;var K=v.useScrollMargin;var k=v.isKeyboardMode;var J=null,R=null,B=_.nI("div"),X=_.nI("span");v=_.a(_.OE(!1,void 0,"CgAMgc"));var Z=v.next().value,U=v.next().value,F=_.Dq("a",function(G2){G2&&_.kp(237477,G2,R,function(si){R=si})}),g=_.Dq("button",function(G2){G2&&_.kp(237477,
G2,R,function(si){R=si})}),Q=_.rq(function(G2){if((G2==null?void 0:G2.button)===2)return G2.preventDefault(),!1;
var si=_.zz();si&&J&&_.pB(si,J,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Ya;T(G2,E().text,E().index,E().entityMid,G2==null?void 0:(Ya=G2.detail)==null?void 0:Ya.wasSelectedByKeyboard);return!1}),v3=function(){return E().type===35},q7=function(){return _.N("desktop_enable_single_suggestion_highlight")},m0=function(){return _.Wi("desktop_suggestions_panel_row_height")||0},$S=function(){var G2;
return _.N("desktop_enable_new_video_metadata")&&((G2=E())==null?void 0:G2.hasNewVideo)===!0},kS=function(){return _.N("desktop_enable_visual_suggest")},N7=function(){return _.N("desktop_enable_entity_suggest")&&dDQ(E())},As=function(){return E().entitySubtitle},Ct=function(){return q7()?(d==null?void 0:d())||vc()&&!(k==null?0:k()):(d==null?void 0:d())||vc()},SA=function(){var G2=_.Bb("SBOX_SETTINGS");
return v3()&&!(G2==null?0:G2.HIDE_REMOVE_LINK)},xI=function(){return E39(E(),{useEntityName:N7()})},mg,pt=!((mg=_.dk().resolve(_.eG(_.n1)))==null||!mg()),he=function(){return v3()?_.N("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},yB=function(){return O==null?void 0:O().SUGGESTION_DISMISS_LABEL},te=function(){return O==null?void 0:O().SUGGESTION_DISMISSED_LABEL};
v=_.a(_.OE(!1,void 0,"RcUcKd"));mg=v.next().value;var oC=v.next().value;v=_.a(_.OE(!1,void 0,"yGR7je"));var n7=v.next().value,SW=v.next().value,vc=n7,jA=_.rq(function(){b(X.value.innerText);return!1}),Ys=_.rq(function(G2){G2.preventDefault();
return!1}),s6=_.rq(function(G2){var si=E().text,Ya=_.Bb("SBOX_SETTINGS"),r9="https://"+(Ya.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
r9+="&delq="+encodeURIComponent(si);(si=Ya==null?void 0:Ya.PSUGGEST_TOKEN)&&(r9+="&tok="+si);(Ya=Ya==null?void 0:Ya.SESSION_INDEX)&&(r9+="&authuser="+Ya);e(r9);G2.preventDefault();(G2=_.zz())&&R&&_.pB(G2,R,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");Y(q==null?void 0:q());return!1}),es=_.rq(function(){if(q7()&&(k==null?0:k()))return!1;
SW(!0);S(!0);return!1}),TM=_.rq(function(){SW(!1);
S(!1);return!1}),vO=_.rq(function(){U(!0);
return!1}),IE=_.rq(function(){U(!1);
return!1}),gn=_.rq(function(G2){G2.preventDefault();
var si;(G2=(si=E().entityThumbnailAttributionUrl)!=null?si:"")&&_.PTL(G2);return!1});
v=_.a(_.OE("",void 0,"k9uVge"));var hi=v.next().value,Je=v.next().value;_.JE(function(){SA()&&Je(r==null?void 0:r(q==null?void 0:q()));B.value&&_.kp(12453,B.value,J,function(G2){J=G2})});
return _.m(_.y,{cond:mg,then:function(){var G2={};return _.m("div",{class:_.qe("ytSuggestionComponentRemovedText",(G2.ytSuggestionComponentLargerRemovedText=function(){return kS()},G2)),
style:function(){return m0()>0?"height: "+m0()+"px;":""},
role:"button"},te)},
else:function(){var G2={},si={};return _.m("div",{class:_.qe("ytSuggestionComponentSuggestion",(G2.ytSuggestionComponentSuggestionHover=function(){return!q7()},G2.ytSuggestionComponentHighlighted=Ct,G2.ytSuggestionComponentPersonalizedSuggestion=v3,G2.ytSuggestionComponentMweb=!1,G2.ytSuggestionComponentLargerSuggestion=function(){return $S()||kS()},G2.ytSuggestionComponentThumbnailSuggestion=function(){return kS()},G2.ytSuggestionComponentRoundedSuggestion=function(){return _.N("desktop_enable_scrollable_suggestions_panel")&&
_.N("desktop_enable_suggestions_panel_padding")},G2.ytSuggestionComponentThumbnailPadding=function(){return kS()&&!v3()},G2)),
style:function(){return m0()>0?"height: "+m0()+"px;":""},
role:"presentation","on:mousedown":Q,"on:mouseover":es,"on:mouseout":TM,el:B},_.m("div",{class:_.qe("ytSuggestionComponentText",(si.ytSuggestionComponentScrollMargin=K,si)),"aria-label":function(){return $S()?E().text+" "+G0v:E().text},
id:function(){return r==null?void 0:r(q==null?void 0:q())},
"on:mousedown":Q,role:"option"},_.m(_.y,{cond:function(){return E().type!==33},
then:function(){return _.m(_.sG,{icon:he,className:"ytSuggestionComponentIcon"})}}),_.m("div",{class:"ytSuggestionComponentLeftContainer"},_.m("span",{el:X,
role:"button",tabindex:0},_.m(_.jI,{each:xI},function(Ya){return Ya.bold?_.m("span",{class:"ytSuggestionComponentBold"},Ya.text):_.m("span",null,Ya.text)})),_.m(_.y,{cond:function(){return N7()&&!!E().entitySubtitle||$S()},
then:function(){return _.m("div",{class:"ytSuggestionComponentMetadataContainer"},_.m(_.y,{cond:function(){return N7()&&!!E().entitySubtitle},
then:function(){return _.m("div",{class:"ytSuggestionComponentEntitySubtitle"},As)}}),_.m(_.y,{cond:function(){return $S()},
then:function(){return _.m("div",{class:"ytSuggestionComponentNewVideoContainer"},_.m("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.m("div",{class:"ytSuggestionComponentNewVideoText"},G0v))}}))}}))),_.m("div",{class:"ytSuggestionComponentRightContainer"},_.m(_.y,{cond:function(){return kS()&&E().visualSuggestUrl!==void 0},
then:function(){var Ya={};return _.m("div",{class:"ytSuggestionComponentThumbnailContainer"},_.m("img",{"aria-label":M8i,class:_.qe("ytSuggestionComponentVisualSuggestThumbnail",(Ya.ytSuggestionComponentCircularFrame=function(){return N7()&&E().subtypes.includes(790)},Ya.ytSuggestionComponentEntitySuggestThumbnail=function(){return N7()},Ya)),
src:function(){return E().visualSuggestUrl}}),_.m(_.y,{cond:function(){return N7()&&!!E().entityThumbnailAttributionUrl},
then:function(){var r9={};return _.m("span",{title:t8t,role:"tooltip"},_.m("div",{"on:mouseover":vO,"on:mouseout":IE,"on:mousedown":gn,class:_.qe("ytSuggestionComponentThumbnailOverlay",(r9.ytSuggestionComponentThumbnailOverlayHidden=function(){return!Z()},r9))},_.m(_.sG,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.m(_.kc,null,_.m(_.sW,{when:function(){return kS()&&SA()}},function(){var Ya={};
return _.m("button",{class:_.qe("ytSuggestionComponentRemoveLinkClearButton",(Ya.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return hi()&&hi()===(h==null?void 0:h())},Ya.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Ct()},Ya)),
el:g,"on:mousedown":s6,"aria-label":yB,id:function(){return hi()}},_.m(_.sG,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.m(_.sW,{when:function(){return!(kS()&&E().visualSuggestUrl!==void 0)&&SA()}},function(){var Ya={};
return _.m("a",{class:_.qe("ytSuggestionComponentRemoveLink",(Ya.ytSuggestionComponentRemoveLinkDark=pt,Ya.ytSuggestionComponentRemoveLinkSelected=function(){return hi()&&hi()===(h==null?void 0:h())},Ya)),
el:F,"on:mousedown":s6,"aria-label":yB,tabindex:0,role:"button",id:function(){return hi()}},yB)}),_.m(_.sW,{when:function(){return!1}},function(){return _.m("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":jA,"on:mousedown":Ys,role:"button","aria-label":JH9},_.m(_.sG,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"th");var Rjs=_.Z9(["//www.google.com/textinputassistant/","/","_tia.js"]),PD1=_.l(function(){return _.m("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.m("button",{class:"ytdTextInputAssistantButton","on:click":_.rq(function(){aU_().inputMethodsTracker.add(3);var v,e=(v=_.Bb("SBOX_SETTINGS"))==null?void 0:v.REQUEST_LANGUAGE;if(e)return _.Ff(_.ie(Rjs,14,e)),!1})},_.m("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"uh");var xDO=function(){this.cache=new Map},Bxs=function(v){for(var e=_.a(v.cache.entries()),d=e.next();!d.done;d=e.next()){var E=_.a(d.value);
d=E.next().value;E=E.next().value;E.suggestions.some(function(T){return T.type===35})&&v.cache.delete(d)}};var CD9=_.Sg.SEARCH,Xev=_.Sg.SEARCH_CLEAR_LABEL,zjw=new _.nC("FAKE_SUGGEST_RESPONSE");_.aZ(_.l(function(v){function e(){vO||(vO=setTimeout(function(){gn()},1E3))}
function d(kI,Ni,xs){if(kI.trim()){TM=kI;_.xc("REFINEMENTS_TUPLE",void 0);s6=!0;var qf;Ni=IUi(n7,Ni);var rn=(qf=v.searchEndpoint)==null?void 0:qf.call(v);_.lIQ(kI,Ni,rn,he.value.value,xs);gn();he.value.value=kI;he.value.blur();n7.reset()}}
function E(kI){return _.I(function(Ni){return Ni.return(new Promise(function(xs){var qf=new XMLHttpRequest;qf.open("GET",u4Q(kI),!0);qf.withCredentials=!0;var rn=_.Bb("SBOX_SETTINGS");(rn==null?0:rn.SEND_VISITOR_DATA)&&qf.setRequestHeader("X-Goog-Visitor-Id",rn==null?void 0:rn.VISITOR_DATA);qf.onload=function(){xs(qf.responseText)};
qf.onerror=function(){_.xf(Error("Al"));xs(null)};
setTimeout(function(){qf.abort()},1E4);
qf.send(null)}))})}
function T(kI){var Ni,xs,qf,rn;return _.I(function(kx){switch(kx.nextAddress){case 1:return Ni={credentials:"include",headers:g9i()},window.AbortController&&(xs=new AbortController,setTimeout(function(){xs.abort("ytsbox-suggest-timeout")},1E4),Ni.signal=xs.signal),_.qq(kx,2),kx.yield(fetch(u4Q(kI),Ni),4);
case 4:qf=kx.yieldResult.text();_.wk(kx,3);break;case 2:return rn=_.jl(kx),rn!=="ytsbox-abort-last"&&rn!=="ytsbox-suggest-timeout"&&_.xf(rn),kx.return(null);case 3:return kx.return(qf)}})}
function S(kI){var Ni,xs,qf;return _.I(function(rn){switch(rn.nextAddress){case 1:if(Ni=_.dk().resolve(_.eG(zjw)))return rn.return(Ni);xs=Date.now();e();return _.N("yt_searchbox_xhr")?rn.yield(E(kI),5):rn.yield(T(kI),4);case 4:qf=rn.yieldResult;rn.jumpTo(3);break;case 5:qf=rn.yieldResult;case 3:if(qf){vO&&(clearTimeout(vO),vO=null);var kx=n7,jx=xs,CY=kI.query.length===0;jx=Date.now()-jx;CY?kx.zeroPrefixRoundTripTime=jx:(kx.JSC$20609_totalRoundTripTime+=jx,kx.maxRoundTripTime=Math.max(kx.maxRoundTripTime,
jx),CY=Math.floor(jx/100),CY>=baf.length?++kx.roundTripTimeHistogram[9]:++kx.roundTripTimeHistogram[baf[CY]])}return rn.return(qf)}})}
function O(kI){var Ni,xs,qf;return _.I(function(rn){if(rn.nextAddress==1)return(Ni=oC.cache.get(QFi(kI)))?rn.return(Ni):rn.yield(S(kI),2);xs=rn.yieldResult;if(xs===null)return rn.return(null);qf=new Tx9(xs);kI.query.length===0&&qf.suggestions.length===0||oC.cache.set(QFi(kI),qf);return rn.return(qf)})}
function b(kI){var Ni,xs;return _.I(function(qf){if(qf.nextAddress==1){es=!1;var rn=TM;rn=_.Ppt()==="search"?(_.lZ(location.href,"search_query")||_.lZ(location.href,"q"))===rn:!1;Ni=new Fr_(kI,rn?TM:null);return qf.yield(O(Ni),2)}xs=qf.yieldResult;if(xs===null)return qf.return();Ni.query.length===0&&(n7.zeroPrefixSuggestionCount=xs.suggestions.length);if(Ni.id<=IE)return n7.outOfSyncResponseCount++,qf.return();if(document.activeElement!==he.value)return qf.return();IE=Ni.id;var kx=n7,jx=xs.rawResponse[2]||
{};kx.experimentTriggeredBeforeFinal||(kx.experimentTriggeredBeforeFinal=kx.experimentTriggeredFinal);kx.experimentTriggeredFinal=!!jx.e;n7.updateSuggestions(xs.suggestions);B(-1);SA([]);xs.suggestions!==k()&&M9(xs.suggestions.length);J(xs.suggestions);q7(xs.suggestions.length>0&&xs.suggestions[0].type===33);te&&(te.hidden=xs.suggestions.length===0,v3()?(te.style.minWidth="",kx=te.style,jx=(rn=k()[0])==null?void 0:rn.ignoredPrefix,kx.marginLeft=(jx?Math.min(jx.length*6,yB.value.offsetWidth):0).toString()+
"px"):(te.style.minWidth=yB.value.offsetWidth+"px",te.style.marginLeft="0"),Sy());_.s9(qf)})}
function Y(){if(!s6)return!1;var kI=_.Bb("REFINEMENTS_TUPLE");return kI?(kI=kI[1].map(function(Ni,xs){return new eji([Ni,0,[71]],he.value.value,xs)}),k()!==kI&&M9(kI.length),SA([]),J(kI),n7.updateSuggestions(kI),s6=!1,te.hidden=kI.length===0,es=kI.length>0,!0):!1}
function q(){var kI=he.value.value;(typeof kI==="string"||kI instanceof String)&&kI!==""?F(!0):F(!1)}
function r(){if(_.Ppt()==="search"){var kI=window.location.href;try{var Ni=_.lZ(kI,"search_query")||_.lZ(kI,"q")||""}catch(xs){Ni=""}Ni&&(he.value.value=Ni,F(!0))}}
var h=_.a(_.OE([],void 0,"kGFAjf")),K=h.next().value;h=h.next().value;var k=K,J=h;K=_.a(_.OE(-1,void 0,"mLGL9e"));var R=K.next().value,B=K.next().value;K=_.a(_.OE(-1,void 0,"u2rYdc"));var X=K.next().value,Z=K.next().value;K=_.a(_.OE(!1,void 0,"W9DFC"));var U=K.next().value,F=K.next().value;K=_.a(_.OE(!1,void 0,"Ip4dNc"));var g=K.next().value,Q=K.next().value;h=_.a(_.OE(!1,void 0,"ZNKSQb"));K=h.next().value;h=h.next().value;var v3=K,q7=h;h=_.a(_.OE(!1,void 0,"JBrGLd"));K=h.next().value;var m0=h.next().value;
h=_.a(_.OE(!1,void 0,"P2pD6e"));var $S=h.next().value,kS=h.next().value;h=_.a(_.OE(1,void 0,"SjP20c"));var N7=h.next().value,As=h.next().value;h=_.a(_.OE([],void 0,"h4dRaf"));var Ct=h.next().value,SA=h.next().value;h=_.a(_.OE(!1,void 0,"TUTzaf"));var xI=h.next().value,mg=h.next().value;h=_.N("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var pt=_.nI("yt-searchbox"),he=_.nI("input"),yB=_.nI("div"),te,oC=
new xDO,n7=aU_(),SW=_.dk().resolve(_.eG(_.n1)),vc=function(){var kI;return((kI=v.forceDarkMode)==null?void 0:kI.call(v))||!(SW==null||!SW())},jA=function(){return _.N("desktop_enable_scrollable_suggestions_panel")},Ys="i"+o3Q++,s6=!1,es=!1,TM="",vO=null,IE=-1,gn=function(){SA([]);
J([]);q7(!1);te&&(te.hidden=!0);vO&&(clearTimeout(vO),vO=null);B(-1)},hi=function(kI,Ni){kI.preventDefault();
mg(!0);te&&(te.hidden=!1);var xs=R();kI=k();var qf=Ct();Ni=H1C(Ni);xs+=Ni;for(xs>=kI.length?xs=-1:xs<-1&&(xs=kI.length-1);xs!==-1&&(qf.includes(xs)||xs>=kI.length||xs<0);)xs+=Ni,xs>=kI.length&&(xs=-1);B(xs);R()>=0&&(he.value.value=k()[R()].text,Z(0),q(),kI=R(),qf=X(),(qf=document.getElementById(T8[kI][qf]))&&jA()&&(kI===k().length-1?te.scrollTop=te.scrollHeight:qf.scrollIntoView({block:"nearest",inline:"start"})))},Je=_.rq(function(kI){if(!(kI.relatedTarget instanceof Element&&kI.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){Q(!0);
var Ni;(Ni=v.focusCallback)==null||Ni.call(v,!0);Y()||(es?te.hidden=!1:(_.Iq(pt.value,"yt-autonav-pause-focus",{}),b(kI.target.value)))}}),G2=_.rq(function(kI){if(!(kI.relatedTarget instanceof Element&&kI.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){Q(!1);
var Ni;(Ni=v.focusCallback)==null||Ni.call(v,!1);te.scrollTop=0;te.hidden=!0;_.Iq(pt.value,"yt-autonav-pause-blur",{})}}),si=function(kI){kI=H1C(kI);
var Ni;((Ni=T8[R()])==null?0:Ni[X()+kI])&&Z(X()+kI)},Ya=_.rq(function(kI){var Ni=kI.target;
switch(kI.keyCode){case 13:kI.preventDefault();var xs;if((xs=T8[R()])==null?0:xs[X()]){var qf;(qf=document.getElementById(T8[R()][X()]))==null||qf.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}kI=kI.shiftKey?4:3;xs=n7;qf=R();xs.selectedSuggestionIndex=qf;d(Ni.value,kI);break;case 27:te&&(te.hidden=!0);break;case 40:hi(kI,40);break;case 38:hi(kI,38);break;case 39:si(39);break;case 37:si(37);break;case 229:n7.inputMethodsTracker.add(4);break;default:n7.inputMethodsTracker.add(1),
ia9(n7)}return!1}),r9=_.rq(function(kI){b(kI.target.value);
q();jA()&&te&&(te.scrollTop=0);return!1}),G8=_.rq(function(){n7.inputMethodsTracker.add(2);
ia9(n7);return!1});
_.JE(function(){if(te){n7.reset();if(window.ResizeObserver){var kI=new ResizeObserver(function(){v3()||(te.style.minWidth=yB.value.offsetWidth+"px")});
kI.observe(yB.value);(new ResizeObserver(function(){Sy()})).observe(te);
_.Jf(function(){kI.disconnect()})}r();
window.addEventListener("yt-navigate-finish",r);window.addEventListener("yt-focus-searchbox",function(){he.value.focus()});
var Ni;m0((Ni=_.Bb("SBOX_SETTINGS"))==null?void 0:Ni.HAS_ON_SCREEN_KEYBOARD)}else _.RI(new _.kL("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Ny=_.rq(function(kI){kI.preventDefault();d(he.value.value,12);return!1}),Ae=_.rq(function(kI){kI.preventDefault();
var Ni,xs;(Ni=he)==null||(xs=Ni.value)==null||xs.focus();var qf,rn;((qf=he)==null?void 0:(rn=qf.value)==null?void 0:rn.value)!==""&&(he.value.value="",he.value.dispatchEvent(new Event("input")));return!1}),f9=_.rq(function(){var kI=pFi(he.value.value,k().filter(function(Ni){return Ni.type!==35}).map(function(Ni){return{label:Ni.text}}));
_.b4(pt.value,"yt-open-popup-action",[{openPopupAction:kI},document.body]);return!1}),w9=_.rq(function(){he.value.focus();
return!1}),a$=function(kI,Ni,xs,qf,rn){n7.selectedSuggestionIndex=xs;
d(Ni,rn?3:1,qf)},uR=function(kI){he.value.value=kI;
he.value.dispatchEvent(new Event("input"));n7.inputMethodsTracker.add(5);ia9(n7,!0)},T8=[[]],Pi=function(kI){var Ni="searchbox-suggestion"+_.Ge(_.RJ);
T8[kI].push(Ni);return Ni},M9=function(kI){if(k()){T8=[[]];
for(var Ni=0;Ni<kI;Ni++)T8.push([])}},Sy=function(){if(jA()){var kI=te,Ni=kI.scrollTop;
kI=kI.scrollHeight-kI.clientHeight;kS(Ni>=kI);Ni=Math.abs(kI-Ni);Ni<=40?As(1-(40-Ni)/40):As(1)}},WP=function(){return"opacity: "+N7()*100+"%"},Js=_.rq(function(){Sy();
return!1}),zO=_.rq(function(){mg(!1);
return!1}),wH,K7={},mf={},tr={},L9={};
return _.m("yt-searchbox",{class:_.qe("ytSearchboxComponentHost",(K7.ytSearchboxComponentMweb=!1,K7.ytSearchboxComponentDesktop=!0,K7["yt-searchbox-filled-query"]=function(){return U()},K7["ytd-masthead"]=function(){return!g()},K7.ytSearchboxComponentHostDark=vc,K7)),
role:"search",el:pt,"client-ve-type":10349},_.m("div",{el:yB,"on:click":w9,class:_.qe("ytSearchboxComponentInputBox",(mf.ytSearchboxComponentInputBoxDark=vc,mf.ytSearchboxComponentInputBoxHasFocus=g,mf))},_.m("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Ny},_.m(_.y,{cond:g,then:function(){return _.m("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.m(_.sG,{icon:"SEARCH"}))}}),_.m("input",{el:he,
class:_.qe("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Ys,"aria-expanded":!((wH=te)==null?0:wH.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":G2,"on:focus":Je,"on:input":r9,"on:keydown":Ya,"on:paste":G8,placeholder:v.placeholderText,"aria-activedescendant":function(){var kI;return(kI=T8[R()])==null?void 0:kI[X()]},
"aria-autocomplete":"list",role:"combobox"})),_.m(_.y,{cond:K,then:function(){return _.m("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.m(PD1,null))}}),_.m(_.y,{cond:U,
then:function(){return _.m("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.m("button",{class:"ytSearchboxComponentClearButton","on:click":Ae,"aria-label":v.clearButtonAriaLabel||Xev},_.m(_.sG,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.m(_.Ie,{model:{}})))}})),_.m("button",{class:_.qe("ytSearchboxComponentSearchButton",(tr.ytSearchboxComponentSearchButtonDark=vc,tr)),
"on:click":Ny,"aria-label":CD9,title:v.placeholderText},_.m(_.sG,{icon:"SEARCH"})),_.m(_.y,{cond:function(){if(ygi()&&_.N("mweb_voice_search")&&v.voiceSearchButton)return v.voiceSearchButton()},
then:function(kI){var Ni={};return _.m("div",{class:_.qe("ytSearchboxComponentVoiceSearchWrapper",(Ni.ytSearchboxComponentHideVoiceSearchButton=function(){return U()},Ni))},_.m(_.kz,{data:kI},{buttonRenderer:function(xs){return _.m(_.D3,{data:xs.data,
onButtonClickCallback:function(){}})}}))}}),_.m("div",{el:_.dq(function(kI){return void(te=kI)}),
id:Ys,class:_.qe("ytSearchboxComponentSuggestionsContainer",(L9.ytSearchboxComponentSuggestionsContainerDark=vc,L9["yt-searchbox-suggestions-container"]=!1,L9.ytSearchboxComponentSuggestionsContainerScrollable=jA(),L9.ytSearchboxComponentSuggestionsContainerAnimated=h,L9)),"on:scroll":Js,"on:mousemove":zO,role:"listbox",hidden:!0},_.m(_.jI,{each:k},function(kI,Ni){return _.m(fUQ,{suggestion:kI,isHighlighted:function(){return Ni()===R()},
onClickCallback:a$,onHoverUpdateCallback:function(xs){if(_.N("desktop_enable_single_suggestion_highlight")){var qf=Ni();xs&&(Z(0),B(qf))}},
onRemoveCallback:function(xs){Bxs(oC);xs===void 0||xs<0||Ct().includes(xs)||SA([].concat(_.t7(Ct()),[xs]))},
labels:v.labels,queryBuilderFunction:uR,suggestionIndex:Ni,generateUniqueId:Pi,highlightedId:function(){var xs;return(xs=T8[R()])==null?void 0:xs[X()]},
useScrollMargin:jA(),isKeyboardMode:xI})}),_.m(_.y,{cond:function(){return!v3()&&k().find(function(kI){return kI.type!==35})&&_.N("searchbox_reporting")},
then:function(){return _.m("button",{class:"ytSearchboxComponentReportButton","on:mousedown":f9},_.sz("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.m(_.y,{cond:function(){return!$S()&&jA()},
then:function(){return _.m("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.m("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:WP}))}})))},"vh"),"yt-searchbox",{props:{searchEndpoint:_.U1,
placeholderText:_.U1,labels:_.U1,voiceSearchButton:_.U1,focusCallback:_.SM,clearButtonAriaLabel:_.U1,forceDarkMode:_.U1}});var Ob=function(){var v=_.P.apply(this,arguments)||this;v.menuButtonTargetId="topbar-guide-menu";v.narrow=!1;v.menuStrings={BACK_ALT_LABEL:_.sz("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.sz("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.sz("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.sz("SBOX_PLACEHOLDER",void 0,"Search")};v.pageDarkTheme=document.documentElement.hasAttribute("dark");v.watchPageScrollTop=0;v.theater=!1;v.fullscreen=!1;v.disableFrostedGlassDuringViewTransition=
!1;v.desktopUnifiedSearchPanelMode=_.N("desktop_enable_unified_search_panel");v.cinematicTheaterMode=_.N("web_cinematic_theater_mode");v.ytSearchboxFocused=!1;v.searchboxLabels=_.Bb("SBOX_LABELS");v.topbarIsAboveChipbar=!1;v.isDarkThemeForced=!1;v.areGhostCardsHidden=!1;v.guideKeyboardToggle=!1;v.voiceSearchManager=py9();v.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};v.setYtSearchboxFocused=function(e){v.ytSearchboxFocused=
e};
v.toggleFrostedGlassDuringViewTransition=function(e){v.disableFrostedGlassDuringViewTransition=e};
return v};
_.V(Ob,_.P);_.W=Ob.prototype;_.W.computeSimpleText=function(v){return _.vv(v)};
_.W.onDarkChanged=function(){for(var v=_.a(this.buttons||[]),e=v.next();!e.done;e=v.next())e.value.isOverlay=!!this.dark;v=_.a(this.buttonRenderers||[]);for(e=v.next();!e.done;e=v.next())e.value.overrides=this.computeButtonOverride()};
_.W.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var v=_.Ad(_.HH(),"aa");_.Yv(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||v||(this.isDarkThemeForced=this.dark=!0);this.logoType?(v=this.hostElement.querySelector("#masthead-logo"))&&(_.N("polymer_on_demand_shady_dom")?v.setAttribute("slot","masthead-logo-old"):_.KX(v)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.hG(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.hG(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.W.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.hG(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.hG(this,this.onSetTheaterModeEnabled))};
_.W.dataChanged=function(){var v=this.data;v&&(this.voiceEnabled=v.voiceSearchButton?py9().isSupported():!1,_.Lb6(_.oc(),this.menuButtonTargetId,this.guideButton),v.onReceivedActions&&v.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.ya(this.hostElement,v.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&v&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Yv(this.hostElement,"dark",!1),_.Yv(this.hostElement,"theater",!1),
(v=this.hostElement.querySelector("#masthead-logo"))&&(_.N("polymer_on_demand_shady_dom")?v.setAttribute("slot","masthead-logo-old"):_.KX(v))))};
_.W.computeCenterHidden=function(){var v;return this.data&&!((v=this.data.searchbox)==null?0:v.fusionSearchboxRenderer)};
_.W.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Yv(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.W.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.W.onWatchScroll=function(v){this.watchPageScrollTop=v.detail||0;this.updateMastheadBackgroundOpacity()};
_.W.onFullscreenChangeAction=function(v){v||(this.watchPageScrollTop=0);this.fullscreen=v;this.updateMastheadBackgroundOpacity()};
_.W.onSetTheaterModeEnabled=function(v){this.theater=v.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.W.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.W.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.W.setBackgroundOpacity=function(v){v=this.calculateBackgroundOpacity(v);this.background.style.opacity=""+v};
_.W.calculateBackgroundOpacity=function(v){var e=this.theater&&this.cinematicTheaterMode?.6:0,d=this.hostElement.clientHeight/2;return Math.min(Math.max(v,0),d)/d*(1-e)+e};
_.W.shouldShowCinematicMastHead=function(){var v=_.N("kevlar_watch_grid")&&!_.N("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(v||this.pageDarkTheme)};
_.W.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.W.focusGuide=function(){this.guideButton.focus()};
_.W.onGuideToggleTap=function(){_.Iq(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.W.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.W.onGuideToggleHover=function(){_.Iq(this.hostElement,"yt-guide-hover")};
_.W.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.W.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.W.closeOnOutsideClickCondition=function(v){for(v=_.vg(v);v[0];){var e=v.shift();if(e instanceof Element&&e.id==="kbd")return!1}return!0};
_.W.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.W.pausePlayer=function(){var v;(v=_.dB())==null||v.pause();this.pauseMiniplayer()};
_.W.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var v;(v=_.dk().resolve(_.P0).getPlayerElement())==null||v.pause()}};
_.W.isMiniplayerActive=function(){return _.dk().resolve(_.P0).isMiniplayerActive()};
_.W.updateNarrowFromBinding=function(v){this.narrow=v.detail.value};
_.W.onYtSendFeedbackAction=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.W.registerWithViewTransitionManager=function(){m3i(_.dk().resolve(_.j_),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.vP.Object.defineProperties(Ob.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.N("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 v;return(v=this.data)==null?void 0:v.voiceSearchButton}}}});
Ob.prototype.narrowChanged=Ob.prototype.narrowChanged;Ob.prototype.onWatchPageChange=Ob.prototype.onWatchPageChange;Ob.prototype.onRendererStamperFinished=Ob.prototype.onRendererStamperFinished;Ob.prototype.dataChanged=Ob.prototype.dataChanged;Ob.prototype.onDarkChanged=Ob.prototype.onDarkChanged;_.c([_.M(_.J9),_.w("design:type",Object)],Ob.prototype,"ironResizableBehavior",void 0);_.c([_.M(_.zds),_.w("design:type",Object)],Ob.prototype,"ytdExpandableInputBehavior",void 0);
_.c([_.M(_.FF.YtdGuideStateAwareBehavior),_.w("design:type",Object)],Ob.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],Ob.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Ob.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.lV),_.w("design:type",Object)],Ob.prototype,"ytdReduxBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Ob.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],Ob.prototype,"narrow",void 0);_.c([_.f(),_.w("design:type",Object)],Ob.prototype,"logoType",void 0);_.c([_.f(),_.w("design:type",Boolean)],Ob.prototype,"voiceEnabled",void 0);
_.c([_.f(),_.w("design:type",Object)],Ob.prototype,"menuStrings",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ob.prototype,"dark",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ob.prototype,"pageDarkTheme",void 0);_.c([_.f(),_.w("design:type",Object)],Ob.prototype,"watchPageScrollTop",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.n_j}),_.w("design:type",Boolean)],Ob.prototype,"isWatchPage",void 0);
_.c([_.f({reflectToAttribute:!0,selector:_.DNt}),_.w("design:type",Boolean)],Ob.prototype,"isShortsPage",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ob.prototype,"theater",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ob.prototype,"fullscreen",void 0);_.c([_.f({reflectToAttribute:!0,selector:_.ert}),_.w("design:type",String)],Ob.prototype,"frostedGlassMode",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],Ob.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.c([_.f(),_.w("design:type",Object)],Ob.prototype,"ytSearchboxFocused",void 0);_.c([_.Nr("#buttons > *"),_.w("design:type",Array)],Ob.prototype,"buttons",void 0);_.c([_.Nr("ytd-button-renderer"),_.w("design:type",Array)],Ob.prototype,"buttonRenderers",void 0);_.c([_.sg("#background"),_.w("design:type",HTMLDivElement)],Ob.prototype,"background",void 0);
_.c([_.sg("#guide-button"),_.w("design:type",Object)],Ob.prototype,"guideButton",void 0);_.c([_.sg("#logo"),_.w("design:type",Object)],Ob.prototype,"logo",void 0);_.c([_.f({computed:"computeButtonOverride(dark)"}),_.w("design:type",Object)],Ob.prototype,"buttonOverrides",void 0);_.c([_.V1("dark"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ob.prototype,"onDarkChanged",null);_.c([_.f({value:function(){return this.onVoiceTap.bind(this)}}),
_.w("design:type",Function)],Ob.prototype,"boundOnTapVoiceButton",void 0);_.c([_.f(),_.w("design:type",Object)],Ob.prototype,"topbarIsAboveChipbar",void 0);_.c([_.f(),_.w("design:type",String),_.w("design:paramtypes",[])],Ob.prototype,"guideIcon",null);_.c([_.t("voiceEnabled"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ob.prototype,"shouldShowVoiceSearchButton",null);_.c([_.t("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ob.prototype,"voiceSearchButton",null);
_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ob.prototype,"dataChanged",null);_.c([_.Kq("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ob.prototype,"onRendererStamperFinished",null);_.c([_.V1("isWatchPage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ob.prototype,"onWatchPageChange",null);
_.c([_.V1("narrow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ob.prototype,"narrowChanged",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-masthead"})],Ob);
_.A(Ob,"ytd-masthead",function(){if(NxS!==void 0)return NxS;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return NxS=v},{mode:_.bk("kevlar_poly_si_batch_j036")?1:2});var lU9;var HaS={},AHf={},Za9={},cHv={},wes=(cHv.OFFLINE=(HaS["publicytnetworkstatus-online"]="BACK_ONLINE",HaS),cHv.ONLINE=(AHf["publicytnetworkstatus-offline"]="OFFLINE",AHf),cHv.BACK_ONLINE=(Za9["publicytnetworkstatus-offline"]="OFFLINE",Za9.TIMER_TRIGGER="ONLINE",Za9),cHv),IS=function(){var v=_.P.apply(this,arguments)||this;v.currentState="ONLINE";v.scheduledJobId=0;v.bannerString="";v.bannerVe=null;v.networkStatusManagerInstance=new _.wt;return v};
_.V(IS,_.P);_.W=IS.prototype;_.W.attached=function(){var v=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){v.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){v.stateChangeHandler("publicytnetworkstatus-offline")})};
_.W.detached=function(){var v=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){v.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){v.stateChangeHandler("publicytnetworkstatus-offline")})};
_.W.enterState=function(v){var e=this;this.scheduledJobId&&_.RM.cancelJob(this.scheduledJobId);v==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):v==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.sz("NO_INTERNET_CONNECTION",void 0,"No internet connection")):v==="BACK_ONLINE"&&(this.bannerString=_.sz("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.LI(_.RM,function(){e.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=v};
_.W.stateChangeHandler=function(v){(v=wes[this.currentState][v])&&this.enterState(v)};
_.W.logVisibility=function(v){var e=_.zz();this.createBannerVe(v);e&&this.bannerVe&&(v?_.nB(e,[this.bannerVe]):_.Dm(e,[this.bannerVe]))};
_.W.createBannerVe=function(v){!this.bannerVe&&v&&(this.bannerVe=_.bH(37929),_.Y_(_.NC(),this.bannerVe))};
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",String)],IS.prototype,"currentState",void 0);_.c([_.f(),_.w("design:type",Object)],IS.prototype,"scheduledJobId",void 0);_.c([_.f(),_.w("design:type",Object)],IS.prototype,"bannerString",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-network-status-banner"})],IS);
_.A(IS,"ytd-network-status-banner",function(){if(lU9!==void 0)return lU9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return lU9=
v},{mode:1});var Fz9;var bv=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};v.hidden=!0;v.frostedGlass=_.N("web_frosted_glass");return v};
_.V(bv,_.P);bv.prototype.computeHidden=function(v){return v&&v.status?!1:!0};
bv.prototype.handleUpdatePermissionRoleCommand=function(v){if(v=_.L(v,_.i6J))if(v=_.L(v.renderer,_.aG0))this.data=v};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],bv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],bv.prototype,"componentBehavior",void 0);_.c([_.f({value:!0,computed:"computeHidden(data)"}),_.w("design:type",Object)],bv.prototype,"hidden",void 0);_.c([_.f(),_.w("design:type",Object)],bv.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],bv.prototype,"frostedGlass",void 0);
_.c([_.z({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],bv);
_.A(bv,"ytd-permission-role-bottom-bar-renderer",function(){if(Fz9!==void 0)return Fz9;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return Fz9=v},{mode:1});var QJi;var g3s;var AgC={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Y2=function(){return _.P.apply(this,arguments)||this};
_.V(Y2,_.P);_.W=Y2.prototype;_.W.attached=function(){this.JSC$20712_scroller&&(this.JSC$20712_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20712_scroller.attached&&typeof this.JSC$20712_scroller.attached==="function"&&this.JSC$20712_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(d){d.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var v=_.IB(this.hostElement);v.querySelector("tp-yt-paper-radio-group").selected="";var e=v.querySelector("#reason-text");e&&(e.value="");v.querySelector("#description-text").value=""}};
_.W.canSubmit=function(v,e){_.Iq(this.hostElement,"yt-invalidate-popup-tabbables");return!(v&&e)};
_.W.onCancel=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.W.onSubmit=function(){var v=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(S){return S.active}).map(function(S){return S.innerText.trim()}),e=this.hostElement.querySelector("tp-yt-paper-radio-group"),d=e.selectedItem,E=d.name;
d=d.innerText.trim();var T=e.querySelector("#reason-text");e=void 0;T&&(e=T.value);(T=this.descriptionText.value)&&(T=T.trim());Z1v(this.data.searchQuery,v,E,d,T,e);_.b4(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.W.sendFormSubmitToast=function(){var v=_.SU(_.sz("SBOX_INAPPROPRIATE_TOAST"));_.b4(this.hostElement,"yt-open-popup-action",[v,this])};
_.W.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(v){return v.active})};
_.W.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Y2.prototype.onIronSelect=Y2.prototype.onIronSelect;Y2.prototype.onIronChange=Y2.prototype.onIronChange;Y2.prototype.dataChanged=Y2.prototype.dataChanged;_.c([_.f(),_.w("design:type",Object)],Y2.prototype,"data",void 0);_.c([_.f({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.w("design:type",Boolean)],Y2.prototype,"submitDisabled",void 0);_.c([_.f(),_.w("design:type",Boolean)],Y2.prototype,"suggestionSelected",void 0);
_.c([_.f(),_.w("design:type",Boolean)],Y2.prototype,"catagorySelected",void 0);_.c([_.sg("#scroller"),_.w("design:type",Object)],Y2.prototype,"JSC$20712_scroller",void 0);_.c([_.sg("#description-text"),_.w("design:type",Object)],Y2.prototype,"descriptionText",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Y2.prototype,"dataChanged",null);
_.c([_.Kq("iron-change"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Y2.prototype,"onIronChange",null);_.c([_.Kq("iron-select"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Y2.prototype,"onIronSelect",null);_.c([_.z({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Y2);
_.A(Y2,"ytd-search-suggestion-report-dialog",function(){if(g3s!==void 0)return g3s;var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);return g3s=v},{mode:1});var m_=function(v){var e=v.openPopupAction;var d=v.target;var E=v.container;var T=v.popupContainerConfig;var S=v.getElement;v=v.removeWhenClosed===void 0?!1:v.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=e;this.target=d;this.container=E;this.popupContainerConfig=T;this.getElement=S;this.JSC$20718_popupConfig=this.popupContainerConfig.JSC$19865_popupConfig[this.openPopupAction.popupType];this.rendererName=(e=this.getName())?_.xPS(e,tYi(this.popupContainerConfig,
e)):"";_.N("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=v);this.createPopup()};
m_.prototype.updatePopup=function(v){this.openPopupAction=v;this.JSC$20718_popupConfig=this.popupContainerConfig.JSC$19865_popupConfig[this.openPopupAction.popupType];u6f(this);_.N("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
m_.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var UDs=function(v,e,d){(e=e&&v.JSC$20718_popupConfig.narrowProperties?v.JSC$20718_popupConfig.narrowProperties:v.JSC$20718_popupConfig.properties)&&d!==void 0&&(e.isAriaModal=d);n3s(v,e);v.isRtl()&&n3s(v,v.JSC$20718_popupConfig.rtlProperties);DDO(v)};
m_.prototype.createPopup=function(){var v=this.JSC$20718_popupConfig.component;if(this.popupContent=pes(this,this.rendererName)){if(v){this.popup=pes(this,v);var e=this.popupContent;_.N("web_enable_wrapper_for_cow_component_in_popup")&&(e=document.createElement("div"),e.appendChild(this.popupContent));_.N("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20718_popupConfig.slotName&&e.setAttribute("slot",this.JSC$20718_popupConfig.slotName);v=this.popup;var d=this.container.tagName.toLowerCase(),
E=_.di(e);_.s3t(_.TV(v),_.aB(e,d,E));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.N("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.IB(this.container).appendChild(this.popup)}};
var u6f=function(v){var e,d,E=(e=v.openPopupAction.accessibilityData)==null?void 0:(d=e.accessibilityData)==null?void 0:d.label;E&&(v.popup.ariaLabel=E);var T;((T=v.popupContent.polymerController)!=null?T:v.popupContent).data=(0,_.f0.unsafeClone)(v.openPopupAction.popup[v.getName()]);v.popupContent.duration=vov(v);v.popupContent.positionType=v.openPopupAction.position;var S=v.openPopupAction.properties;S&&Object.keys(S).forEach(function(O){v.popupContent[O]=S[O]})},n3s=function(v,e){if(e)for(var d=
_.a(Object.keys(e)),E=d.next();!E.done;E=d.next())E=E.value,v.popup[E]=e[E]},DDO=function(v){if(v.openPopupAction.position){var e=v.JSC$20718_popupConfig.positionalProperties&&v.JSC$20718_popupConfig.positionalProperties[v.openPopupAction.position],d=v.JSC$20718_popupConfig.rtlPositionalProperties&&v.JSC$20718_popupConfig.rtlPositionalProperties[v.openPopupAction.position];
e=v.isRtl()&&d?d:e;e.shiftedHorizontalOffset&&(d=v.popup.style.display,v.popup.style.display="block",v.popupContent&&v.popup.positionTarget&&v.popupContent.clientWidth>v.popup.positionTarget.clientWidth&&(e.horizontalOffset=v.popup.positionTarget.clientWidth/2-e.shiftedHorizontalOffset),v.popup.style.display=d);n3s(v,e)}},e7Q=function(v,e){if(e)for(var d=_.a(Object.keys(e)),E=d.next();!E.done;E=d.next())E=E.value,v.popup.style[E]=e[E]};
m_.prototype.getName=function(){return _.Rs(this.openPopupAction.popup,"renderer")||_.Rs(this.openPopupAction.popup,"dialog")||_.Rs(this.openPopupAction.popup,"model")||void 0};
var vov=function(v){v=v.openPopupAction.durationHintMs;return v===0?v:Math.max(4E3,v||4E3)};
m_.prototype.isRtl=function(){return _.Bb("HTML_DIR")==="rtl"};
var pes=function(v,e){v=v.getElement(e,v.target);v==null&&_.xf(new _.kL("popup getElement returned null",e));return v};var dHv={};
dHv.YtPopupContainerBehavior=[_.cl.YtComponentBehavior,_.$M.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_);_.aq(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Oz(this.hostElement)},
closePopup:function(v){var e=this.createCacheKey(void 0,v);this.popups_[e]&&this.handleClosePopupAction_(void 0,v)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.RM.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.RM.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(v){v.opened&&v.keepBelowPlayer&&this.ensurePopupBelowPlayer(v)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var v in this.popups_){var e=this.popups_[v];if(e.popup.scrollAction==="refit"){var d=e.popup.positionTarget.getBoundingClientRect(),E=e.popup;d=d.top;var T=e;if(!T.naturalHeight){T.popup.hidden=!1;T.popup.style.position="fixed";T.popup.style.top="0px";T.popup.style.left="0px";var S=T.popup.getBoundingClientRect();T.naturalHeight=S.bottom-S.top;T.popup.refit()}E.hidden=!(d>=T.naturalHeight+60);e.popupContent.clientHeight===0&&e.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(v){this.popupContainerConfig=v},
handleOpenPopupAction:function(v,e){var d=v.openPopupAction,E=_.dk().resolve(_.eG(_.NM))&&d.popupType==="TOAST";E&&!d.uniqueId&&(d.uniqueId=_.Aq());if(!_.N("popup_container_parent_target_killswitch")){var T;e=(T=this.getParentTarget(e))!=null?T:e}var S=this.ensurePopup_(d,e);return new _.yf(function(O){S.then(function(b){if(!b)return O();this.maybeCreateNarrowMediaQuery_();var Y=this.createCacheKey(b.rendererName,b.openPopupAction.uniqueId);if(d.showOncePerUniqueId){if(this.shownPopupKeys_.has(Y))return O();
this.shownPopupKeys_.add(Y)}Y=this.popups_[Y];var q=!(!Y||!Y.openPopupAction.beReused);q=!!d.reusePopup||q;if(b.popup.opened&&!q){E&&!b.openPopupAction.replacePopup||this.handleClosePopupAction_(b.rendererName,b.openPopupAction.uniqueId);q=d.popupType==="DIALOG"&&!_.N("popup_container_dialog_reopen_killswitch");if(!E&&!q&&Y&&Y.target==e&&!b.openPopupAction.replacePopup)return O();_.Uh(b.popup,function(){this.completeOpenPopupAction_(d,e,b);O()}.bind(this))}else b.popup.opened?b.updatePopup(d):this.completeOpenPopupAction_(d,
e,b),O()}.bind(this))}.bind(this))},
getParentTarget:function(v){if(v&&v instanceof HTMLElement)for(var e=_.a(Object.entries(this.popups_)),d=e.next();!d.done;d=e.next())if(d=_.a(d.value),d.next(),d=d.next().value,d.popup.tagName==="TP-YT-IRON-DROPDOWN"&&v.closest(d.rendererName))return d.target},
completeOpenPopupAction_:function(v,e,d){d.updatePopup(v);v=this.narrowMediaQuery_.queryMatches;var E=this.isAriaModal;d.target=e;var T;e=((T=d.target.polymerController)!=null?T:d.target).popupPositionTarget||d.target;d.JSC$20718_popupConfig.targetContainer&&(e=d.container);d.popup.positionTarget=e;d.popupContent.positionTarget=e;DDO(d);d.JSC$20718_popupConfig.forceFocus&&(d.popupContent.style.outline="none");d.popupContent.tabIndex=-1;d.JSC$20718_popupConfig.narrowProperties&&(d.popup.style.position=
"static");d.JSC$20718_popupConfig.preventAutonav&&d.popup.setAttribute("prevent-autonav",!0);d.JSC$20718_popupConfig.forceCloseOnOutsideClick&&d.popup.setAttribute("force-close-on-outside-click",!0);UDs(d,v,E);e7Q(d,d.JSC$20718_popupConfig.styles);d.isRtl()&&e7Q(d,d.JSC$20718_popupConfig.rtlStyles);if(!d.openPopupAction.shouldStopParentSignal){var S;T=(S=d.target.polymerController)!=null?S:d.target;(d.popupContent.startForwardingEvents||d.popupContainerConfig.forwardingEnabledPopups.has(d.rendererName))&&
T.parentComponent!==d.popupContent&&d.popupContent!==d.target&&d.target!==document.body&&(d.popupContent.startForwardingEvents?d.popupContent.startForwardingEvents(d.popupContainerConfig.forwardedEvents,d.target):(d.JSC$20718_eventForwarder||(d.JSC$20718_eventForwarder=new _.dQ(d.popupContent)),d.JSC$20718_eventForwarder.start(d.popupContainerConfig.forwardedEvents,d.target)))}d=d.popup;d.addEventListener("iron-overlay-opened",_.hG(this,this.onPopupIronOverlayOpened_));d.addEventListener("iron-overlay-closed",
_.hG(this,this.onPopupIronOverlayClosed_));d.addEventListener("iron-overlay-canceled",_.hG(this,this.onPopupIronOverlayCanceled_));d.addEventListener("yt-refit",_.hG(this,this.refitPopup_));d.addEventListener("yt-invalidate-popup-tabbables",_.hG(this,this.handleInvalidatePopupTabbables_));d.open()},
getPopupDurationMs_:function(v){return v.durationHintMs===0?v.durationHintMs:Math.max(4E3,v.durationHintMs||4E3)},
handleClosePopupAction_:function(v,e){var d=_.N("web_popup_cache_key_killswitch")||!!e;if(v||d){var E=this.createCacheKey(v,e);v=(v=this.popups_[E])&&v.popup}else v=_.wju(_.ly);if(v&&v.close){if(e=_.dk().resolve(_.eG(_.i$)))v.restoreFocusOnClose=e.isKeyBoardInUse();v.close();this.removePopup_(v,E)}},
handleClosePopupCommand_:function(v){v.closePopupCommand&&v.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,v.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(v){var e={},d;for(d in this.popups_)if(e={key$jscomp$1209:e.key$jscomp$1209},e.key$jscomp$1209=d,!v||!v.some(function(S){return function(O){return O==S.key$jscomp$1209}}(e))){var E=this.popups_[e.key$jscomp$1209],T=E.popup;
_.dk().resolve(_.eG(_.NM))&&E.openPopupAction.popupType==="TOAST"||(T&&T.close&&T.close(),this.removePopup_(T,e.key$jscomp$1209))}},
handleClosePopupsAction_:function(v){v.forEach(function(e){var d=this.popups_[e];d&&((d=d.popup)&&d.close&&d.close(),this.removePopup_(d,e))}.bind(this))},
handleGetPopupOpenedAction_:function(v,e){return(e=this.createCacheKey(v,e))&&this.popups_[e]?this.popups_[v].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var v=[],e;for(e in this.popups_){var d=this.popups_[e];d.popup.opened&&v.push(d)}return v},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(v,e){_.N("ytpopup_disable_default_html_caching")&&v&&v.removeWhenClosed&&(_.IB(this.hostElement).removeChild(v),e&&this.popups_[e]&&delete this.popups_[e])},
shouldReusePopup_:function(v){return!(!v||!v.reusePopup)||!(!v||!v.beReused)},
ensurePopup_:function(v,e){this.maybeCreateNarrowMediaQuery_();var d=_.Rs(v.popup,"renderer")||_.Rs(v.popup,"dialog")||_.Rs(v.popup,"model");if(!d)return _.qg();d=_.xPS(d,tYi(this.popupContainerConfig,d));return _.qg(this.getAndMaybeCreatePopup_(v,d,e))},
getAndMaybeCreatePopup_:function(v,e,d){var E=this.createCacheKey(e,v.uniqueId);if(this.popups_[E])return this.popups_[E];v=new m_({openPopupAction:v,target:d,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(e)});return this.popups_[E]=v},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(v){return _.N("ytpopup_disable_default_html_caching")?v&&v.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",_.hG(this,this.openPopupQueryMatchesChanged_)),_.IB(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(v){v=v.detail.value;for(var e in this.popups_)UDs(this.popups_[e],v)},
onPopupIronOverlayClosed_:function(v){var e=v.currentTarget,d=_.AT3(e);d=d.length>0?d[0]:e;if(d.is!=="ytd-reel-watch-while-dialog-renderer"||v.target.is!=="tp-yt-iron-dropdown"){v.detail.popup=e;v.detail.popupRenderer=d;var E,T={context:{openingElement:((E=this.popups_[(d==null?void 0:d.is)||""])==null?void 0:E.target)||void 0}};Object.assign(T,v.detail);var S;_.Iq((S=d.hostElement)!=null?S:d,"yt-popup-closed",T);e.removeEventListener("yt-refit",_.hG(this,this.refitPopup_));e.removeEventListener("yt-invalidate-popup-tabbables",
_.hG(this,this.handleInvalidatePopupTabbables_));e.removeEventListener("iron-overlay-canceled",_.hG(this,this.onPopupIronOverlayCanceled_));e.removeEventListener("iron-overlay-closed",_.hG(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(e)}},
onPopupIronOverlayCanceled_:function(v,e){var d=v.currentTarget,E=_.AT3(d);E=E.length>0?E[0]:d;if(E.is!=="ytd-reel-watch-while-dialog-renderer"||v.target.is!=="tp-yt-iron-dropdown"){var T;_.Iq((T=E.hostElement)!=null?T:E,"yt-popup-canceled",v.detail);T=e?_.vg(e):null;(!e||["click","tap"].includes(e.type))&&!d.hasAttribute("force-close-on-outside-click")&&d.positionTarget&&T&&T.includes(d.positionTarget)&&v.preventDefault();d.restoreFocusOnClose=_.K$.keyboardEventMatchesKeys(e,"esc")}},
onPopupIronOverlayOpened_:function(v){v=v.currentTarget;var e=_.AT3(v);e=e.length>0?e[0]:v;var d,E;_.Iq((d=e.hostElement)!=null?d:e,"yt-popup-opened",(E=e.hostElement)!=null?E:e);v.keepBelowPlayer&&(this.ensurePopupBelowPlayer(v,!0),this.dynamicallyPositionedElements_.add(v));d=_.dk().resolve(_.eG(_.i$));E=!!e.querySelector("#toast");d&&d.isKeyBoardInUse()&&!E&&(typeof e.focusFirstItem==="function"?e.focusFirstItem():(e=_.A10(v),e.length&&e[0].focus()));v.removeEventListener("iron-overlay-opened",
_.hG(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(v){v=v.currentTarget;v.refit&&v.refit()},
refitPopups_:function(){for(var v in this.popups_)this.popups_[v].refit()},
handleInvalidatePopupTabbables_:function(v){v=v.currentTarget;v.invalidateTabbables&&v.invalidateTabbables()},
createCacheKey:function(v,e){return _.N("web_popup_cache_key_killswitch")?e?v+"#"+e:v:e?"#"+e:v},
openSheet:function(v,e){var d=v==null?void 0:v.openPopupActionCommand;!d&&(v==null?0:v.viewModel)&&(d={openPopupAction:{popup:{sheetViewModel:v.viewModel},popupType:"CONTEXTUAL_SHEET"}});d&&this.handleOpenPopupAction(d,e)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var v=this;return _.I(function(e){return e.return(v.handleGetOpenedPopupsAction_().filter(function(d){var E;return((E=d.openPopupAction)==null?void 0:E.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(v,e,d){if(_.N("web_dialog_utils_killswitch")){var E=v==null?void 0:v.openPopupActionCommand,T=(d==null?0:d.ariaLabel)?{accessibilityData:{accessibilityData:{label:d.ariaLabel}}}:void 0;!E&&(v==null?0:v.viewModel)&&(E={openPopupAction:Object.assign({},{popup:{dialogViewModel:v.viewModel},popupType:(d==null?0:d.isModal)?"MODAL":"DIALOG"},T&&T)});E&&this.handleOpenPopupAction(E,e)}else{if(T=v==null?void 0:v.viewModel){var S=d=d===void 0?{}:d;d=S.ariaLabel;T={popup:{dialogViewModel:T},
popupType:S.isModal?"MODAL":"DIALOG"};S={accessibilityData:{label:d}};d&&(T.accessibilityData=S);T={openPopupAction:T}}else T=void 0;if(T=(E=T)!=null?E:v==null?void 0:v.openPopupActionCommand)this.isAriaModal=_.N("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(T,e)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var v=this;return _.I(function(e){return e.return(v.handleGetOpenedPopupsAction_().filter(function(d){var E;return((E=d.openPopupAction)==null?void 0:E.popupType)==="DIALOG"}).length>0)})}}];var Eo1;var TAw;var SuS=_.Z9(["about:blank"]),y$=function(){var v=_.P.apply(this,arguments)||this;v.isMuted=!1;v.pageLoadTimeoutId=void 0;return v};
_.V(y$,_.P);_.W=y$.prototype;_.W.dataChanged=function(){var v=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var e=this.data.url,d=_.P8(e);_.N("enable_yt_ata_iframe_authuser")?(d=_.P8(e),_.c$(this.iframe,cgt(d))):_.c$(this.iframe,d);this.pageLoadTimeoutId=_.LI(_.jd(),function(){return void v.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.gN({destination:window,iframe:this.iframe,origin:_.fwB(d.toString()),channelName:"ataiframe",onMessage:_.CGO(BT9,function(E){CAQ(E.data)?(E=_.Ft(E.data,1,_.U6,_.El()),E.length!==1?_.xf(Error("Bl")):(E=E[0],E===3?(v.isMuted=!0,v.logStateChanged({adMuteRequested:!0})):E===1&&v.close())):_.xf(Error("Cl"))}),
onEstablished:function(){v.cancelPageLoadTimeout();v.logStateChanged({pageLoadSucceeded:!0})}})}};
_.W.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.jd().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.W.logStateChanged=function(v){var e;if((e=this.data)==null?0:e.trackingParams)v={adsClientData:{aboutThisAdData:v}},_.NC().stateChanged(this.data.trackingParams,v)};
_.W.close=function(){_.b4(this.hostElement,"yt-close-popup-action",[this.is])};
_.W.handlesPopupClosed=function(v,e){var d=this,E,T;return _.I(function(S){if(S.nextAddress==1)return _.Bb("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.b4(d.hostElement,"on-about-this-ad-popup-closed",[d.isMuted,e]),S.jumpTo(0)):v&&wz9(v)?S.yield(F5i(v),4):(d.isMuted&&_.b4(d.hostElement,"yt-mute-ad-action",[d.is,d]),S.jumpTo(0));if(E=S.yieldResult){var O=T=new _.GS(E),b=d.isMuted;O.getOptions().includes("onAboutThisAdPopupClosed")?_.E6e(O,"onAboutThisAdPopupClosed",{isMuted:b,layoutId:e}):_.Fc("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.s9(S)})};
_.W.onPopupClosed=function(v){var e=this,d,E;return _.I(function(T){d=_.ie(SuS);_.c$(e.iframe,d);e.cancelPageLoadTimeout();if(!e.data)return T.jumpTo(0);e.ytRendererBehavior.markDirty();E=v.detail.context.openingElement;return T.yield(e.handlesPopupClosed(E,e.data.layoutId),0)})};
_.W.detached=function(){this.cancelPageLoadTimeout()};
_.W.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
y$.prototype.onPopupClosed=y$.prototype.onPopupClosed;y$.prototype.dataChanged=y$.prototype.dataChanged;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.c([_.sg("#iframe"),_.w("design:type",HTMLIFrameElement)],y$.prototype,"iframe",void 0);_.c([_.f(),_.w("design:type",Object)],y$.prototype,"data",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],y$.prototype,"dataChanged",null);
_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype",Promise)],y$.prototype,"onPopupClosed",null);_.c([_.lh({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],y$);
_.A(y$,"yt-about-this-ad-renderer",function(){if(TAw===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Eo1===void 0&&(Eo1=document.createElement("template"));var E=Eo1;d.call(e,E.content.cloneNode(!0),v.content.firstChild);TAw=v}v=TAw;return v},{mode:2});var Wai;var aW9;var qL=function(v){var e=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=e.message;"stack"in e&&(this.stack=e.stack);this.maxFileSizeMB=v;Object.setPrototypeOf(this,qL.prototype)};
_.V(qL,Error);var iLS=function(v,e){var d=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=d.message;"stack"in d&&(this.stack=d.stack);this.minWidth=v;this.minHeight=e;Object.setPrototypeOf(this,iLS.prototype)};
_.V(iLS,Error);var OL9=function(v){this.requirements=v;this.JSC$20746_maxFileSize=v.maxFileSizeMB*1024*1024},IWw=function(v,e){if(e.size>v.JSC$20746_maxFileSize)throw new qL(v.requirements.maxFileSizeMB);
};var bLf=function(v,e){this.canvas=v;this.imageEditorBuilder=e};
bLf.prototype.addEventListeners=function(v){var e=function(T){Yut(v,T)};
this.JSC$20752_mouseDownEvent=e;var d=function(T){mHw(v,T)};
this.JSC$20752_mouseMoveEvent=d;var E=function(){yPv(v)};
this.JSC$20752_mouseUpEvent=E;this.canvas.addEventListener("mousedown",e);this.canvas.addEventListener("mousemove",d);document.addEventListener("mouseup",E)};
bLf.prototype.removeEventListeners=function(){this.JSC$20752_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20752_mouseDownEvent);this.JSC$20752_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20752_mouseMoveEvent);this.JSC$20752_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20752_mouseUpEvent)};
var quv=function(v,e){v.removeEventListeners();return new Promise(function(d){var E=new Image;E.crossOrigin="anonymous";E.onload=function(){var T=v.imageEditorBuilder(v.canvas,E);v.addEventListeners(T);d(T)};
E.src=e})},ra=function(v,e,d,E,T,S,O,b){this.canvas=v;
this.image=e;this.requiredRatio=d;this.minImageCropDimension=E;this.minOutputImageResolution=T;this.component=S;this.styleFocusedCorner=b===void 0?!0:b;this.action=2;this.focusedCorner=this.resizeCorner=0;v=this.canvas.getContext("2d");if(!v)throw Error("Dl");this.ctx=v;this.canvasMargin=O!=null?O:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;O=this.image;v=this.canvasInnerWidth/O.width;O.height*v>912&&(v=O.width/O.height*912/O.width);O=v;this.scaledImageWidth=this.canvas.width%2?
gJw(this.image.width*O):Q59(this.image.width*O);this.scaledImageHeight=Math.round(this.image.height*O);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20755_overlayMarginBottom=this.JSC$20755_overlayMarginTop=this.canvasMargin;this.JSC$20755_overlayMarginRight=this.JSC$20755_overlayMarginLeft=this.horizontalMargin;this.JSC$20755_overlayWidth=this.scaledImageWidth;this.JSC$20755_overlayHeight=this.scaledImageHeight;
v=this.image.width/this.image.height;v>this.requiredRatio?(this.JSC$20755_overlayWidth=this.canvas.width%2?gJw(this.scaledImageHeight*this.requiredRatio):Q59(this.scaledImageHeight*this.requiredRatio),this.JSC$20755_overlayMarginRight=this.JSC$20755_overlayMarginLeft=(this.canvas.width-this.JSC$20755_overlayWidth)/2):v<this.requiredRatio&&(this.JSC$20755_overlayHeight=this.canvas.height%2?gJw(this.scaledImageWidth/this.requiredRatio):Q59(this.scaledImageWidth/this.requiredRatio),this.JSC$20755_overlayMarginBottom=
this.JSC$20755_overlayMarginTop=(this.canvas.height-this.JSC$20755_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*O,this.scaledImageWidth);rPt(this)};
ra.prototype.getContext=function(){return this.ctx};
var Yut=function(v,e){e={x:Math.round(e.pageX-v.canvas.getBoundingClientRect().left),y:Math.round(e.pageY-v.canvas.getBoundingClientRect().top)};v.dragStart=e;h7s(v,e)!==0?(v.action=1,Kas(v,e),v.resizeCorner=h7s(v,e)):e.x>v.JSC$20755_overlayMarginLeft&&e.x<v.JSC$20755_overlayMarginLeft+v.JSC$20755_overlayWidth&&e.y>v.JSC$20755_overlayMarginTop&&e.y<v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight&&(v.action=0)},$H9=function(v,e){switch(e){case 1:return{x:v.JSC$20755_overlayMarginLeft,
y:v.JSC$20755_overlayMarginTop};case 2:return{x:v.JSC$20755_overlayMarginLeft,y:v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight};case 3:return{x:v.JSC$20755_overlayMarginLeft+v.JSC$20755_overlayWidth,y:v.JSC$20755_overlayMarginTop};case 4:return{x:v.JSC$20755_overlayMarginLeft+v.JSC$20755_overlayWidth,y:v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight};default:throw Error("El");}},szf=function(v,e){if(v.focusedCorner!==0){v.dragStart=$H9(v,v.focusedCorner);
v.action=1;v.resizeCorner=v.focusedCorner;var d=v.dragStart.x,E=v.dragStart.y;switch(e){case 0:v.focusedCorner===1||v.focusedCorner===4?(d-=10,E-=10):(d-=10,E+=10);break;case 1:v.focusedCorner===1||v.focusedCorner===4?(d+=10,E+=10):(d+=10,E-=10);break;case 2:d=v.focusedCorner===1||v.focusedCorner===4?d-10:d+10;E-=10;break;case 3:d=v.focusedCorner===1||v.focusedCorner===4?d+10:d-10;E+=10;break;default:throw Error("Fl");}jzO(v,{x:d,y:E});rPt(v);v.action=2;v.dragStart=void 0}},mHw=function(v,e){e={x:Math.round(e.pageX-
v.canvas.getBoundingClientRect().left),
y:Math.round(e.pageY-v.canvas.getBoundingClientRect().top)};Kas(v,e);switch(v.action){case 1:jzO(v,e);break;case 0:v.dragStart&&(v.JSC$20755_overlayMarginLeft=Math.max(v.horizontalMargin,Math.min(v.JSC$20755_overlayMarginLeft-(v.dragStart.x-e.x),v.horizontalMargin+v.scaledImageWidth-v.JSC$20755_overlayWidth)),v.JSC$20755_overlayMarginRight=v.canvas.width-v.JSC$20755_overlayMarginLeft-v.JSC$20755_overlayWidth,v.JSC$20755_overlayMarginTop=Math.max(v.canvasMargin,Math.min(v.JSC$20755_overlayMarginTop-
(v.dragStart.y-e.y),v.scaledImageHeight-v.JSC$20755_overlayHeight+v.canvasMargin)),v.JSC$20755_overlayMarginBottom=v.canvas.height-(v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight));break;default:return}rPt(v);v.dragStart=e},yPv=function(v){v.action=2;
v.dragStart=void 0;document.body.style.cursor="auto"},Kas=function(v,e){switch(h7s(v,e)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:v.action!==1&&(document.body.style.cursor="auto")}},h7s=function(v,e){var d=v.JSC$20755_overlayMarginLeft-5,E=v.JSC$20755_overlayMarginTop-5,T=v.JSC$20755_overlayMarginLeft+v.JSC$20755_overlayWidth-5;
v=v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight-5;return NAs(e,{x:d,y:E})?1:NAs(e,{x:T,y:E})?3:NAs(e,{x:d,y:v})?2:NAs(e,{x:T,y:v})?4:0},NAs=function(v,e){return v.x>=e.x&&v.x<=e.x+10&&v.y>=e.y&&v.y<=e.y+10},jzO=function(v,e){if(v.dragStart)switch(v.resizeCorner){case 2:Math.abs((v.JSC$20755_overlayMarginLeft+v.JSC$20755_overlayWidth-e.x)/(e.y-v.JSC$20755_overlayMarginTop))>=v.requiredRatio?kP9(v,e.x):LaS(v,e.y);
break;case 1:Math.abs((v.JSC$20755_overlayMarginLeft+v.JSC$20755_overlayWidth-e.x)/(v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight-e.y))>=v.requiredRatio?Vki(v,e.x):LaS(v,e.y);break;case 4:Math.abs((e.x-v.JSC$20755_overlayMarginLeft)/(e.y-v.JSC$20755_overlayMarginTop))>=v.requiredRatio?kP9(v,e.x):ooS(v,e.y);break;case 3:Math.abs((e.x-v.JSC$20755_overlayMarginLeft)/(v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight-e.y))>=v.requiredRatio?Vki(v,e.x):ooS(v,e.y);break;default:throw Error("Gl");
}},kP9=function(v,e){var d=v.JSC$20755_overlayMarginTop;
v.JSC$20755_overlayMarginBottom=JP_(v,e);v.JSC$20755_overlayHeight=v.canvas.height-v.JSC$20755_overlayMarginBottom-d;v.JSC$20755_overlayWidth=Math.round(v.JSC$20755_overlayHeight*v.requiredRatio);GP_(v)},Vki=function(v,e){var d=v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight;
v.JSC$20755_overlayMarginTop=JP_(v,e);v.JSC$20755_overlayHeight=d-v.JSC$20755_overlayMarginTop;v.JSC$20755_overlayWidth=Math.round(v.JSC$20755_overlayHeight*v.requiredRatio);GP_(v)},GP_=function(v){switch(v.resizeCorner){case 2:case 1:v.JSC$20755_overlayMarginLeft=v.canvas.width-v.JSC$20755_overlayMarginRight-v.JSC$20755_overlayWidth;
break;case 4:case 3:v.JSC$20755_overlayMarginRight=v.canvas.width-v.JSC$20755_overlayMarginLeft-v.JSC$20755_overlayWidth;break;default:throw Error("Gl");}},LaS=function(v,e){var d=v.JSC$20755_overlayMarginLeft+v.JSC$20755_overlayWidth;
v.JSC$20755_overlayMarginLeft=Mk_(v,e);v.JSC$20755_overlayWidth=d-v.JSC$20755_overlayMarginLeft;v.JSC$20755_overlayHeight=Math.round(v.JSC$20755_overlayWidth/v.requiredRatio);tkw(v)},ooS=function(v,e){var d=v.JSC$20755_overlayMarginLeft;
v.JSC$20755_overlayMarginRight=Mk_(v,e);v.JSC$20755_overlayWidth=v.canvas.width-v.JSC$20755_overlayMarginRight-d;v.JSC$20755_overlayHeight=Math.round(v.JSC$20755_overlayWidth/v.requiredRatio);tkw(v)},tkw=function(v){switch(v.resizeCorner){case 2:case 4:v.JSC$20755_overlayMarginBottom=v.canvas.height-v.JSC$20755_overlayMarginTop-v.JSC$20755_overlayHeight;
break;case 1:case 3:v.JSC$20755_overlayMarginTop=v.canvas.height-v.JSC$20755_overlayMarginBottom-v.JSC$20755_overlayHeight;break;default:throw Error("Gl");}},JP_=function(v,e){switch(v.resizeCorner){case 2:e=v.canvas.height-(v.JSC$20755_overlayMarginTop+fW_(v,e));
break;case 4:e=v.canvas.height-(v.JSC$20755_overlayMarginTop+R7s(v,e));break;case 1:e=v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight-fW_(v,e);break;case 3:e=v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight-R7s(v,e);break;default:throw Error("Gl");}return Math.max(e,v.canvasMargin)},fW_=function(v,e){e=v.JSC$20755_overlayMarginLeft+v.JSC$20755_overlayWidth-Math.max(e,v.horizontalMargin);
e=e<0?v.JSC$20755_overlayWidth:Math.max(e,v.minOverlayWidth);return Math.round(e/v.requiredRatio)},R7s=function(v,e){e=v.canvas.width-Math.max(v.canvas.width-e,v.horizontalMargin)-v.JSC$20755_overlayMarginLeft;
e=e<0?v.JSC$20755_overlayWidth:Math.max(e,v.minOverlayWidth);return Math.round(e/v.requiredRatio)},Mk_=function(v,e){switch(v.resizeCorner){case 2:e=v.canvas.width-v.JSC$20755_overlayMarginRight-Pfs(v,e);
break;case 4:e=v.canvas.width-v.JSC$20755_overlayMarginLeft-Pfs(v,e);break;case 1:e=v.canvas.width-v.JSC$20755_overlayMarginRight-xH_(v,e);break;case 3:e=v.canvas.width-v.JSC$20755_overlayMarginLeft-xH_(v,e);break;default:throw Error("Gl");}return Math.max(e,v.horizontalMargin)},Pfs=function(v,e){e=v.canvas.height-Math.max(v.canvas.height-e,v.canvasMargin)-v.JSC$20755_overlayMarginTop;
return e<0?v.JSC$20755_overlayWidth:Math.max(Math.round(e*v.requiredRatio),v.minOverlayWidth)},xH_=function(v,e){e=v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight-Math.max(e,v.canvasMargin);
return e<0?v.JSC$20755_overlayWidth:Math.max(Math.round(e*v.requiredRatio),v.minOverlayWidth)},rPt=function(v){v.ctx.clearRect(0,0,v.canvas.width,v.canvas.height);
v.ctx.drawImage(v.image,0,0,v.image.width,v.image.height,v.horizontalMargin,v.canvasMargin,v.canvas.width-2*v.horizontalMargin,v.scaledImageHeight);v.ctx.fillStyle="rgba(0, 0, 0, 0.7)";v.ctx.fillRect(v.horizontalMargin,v.JSC$20755_overlayMarginTop,v.JSC$20755_overlayMarginLeft-v.horizontalMargin,v.JSC$20755_overlayHeight);v.ctx.fillRect(v.JSC$20755_overlayMarginLeft+v.JSC$20755_overlayWidth,v.JSC$20755_overlayMarginTop,v.JSC$20755_overlayMarginRight-v.horizontalMargin,v.JSC$20755_overlayHeight);v.ctx.fillRect(v.horizontalMargin,
v.canvasMargin,v.scaledImageWidth,v.JSC$20755_overlayMarginTop-v.canvasMargin);v.ctx.fillRect(v.horizontalMargin,v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight,v.scaledImageWidth,v.JSC$20755_overlayMarginBottom-v.canvasMargin);v.drawOverlay();v.component&&_.Iq(v.component,"image-updated")};
ra.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20755_overlayMarginLeft,this.JSC$20755_overlayMarginTop,this.JSC$20755_overlayWidth,this.JSC$20755_overlayHeight);BAs(this)};
var BAs=function(v){var e=v.JSC$20755_overlayMarginLeft-5,d=v.JSC$20755_overlayMarginTop-5,E=v.JSC$20755_overlayMarginLeft+v.JSC$20755_overlayWidth-5,T=v.JSC$20755_overlayMarginTop+v.JSC$20755_overlayHeight-5;v.ctx.fillStyle="#FFF";v.ctx.fillRect(e,d,10,10);v.ctx.strokeRect(e,d,10,10);v.ctx.fillRect(E,d,10,10);v.ctx.strokeRect(E,d,10,10);v.ctx.fillRect(e,T,10,10);v.ctx.strokeRect(e,T,10,10);v.ctx.fillRect(E,T,10,10);v.ctx.strokeRect(E,T,10,10);if(v.focusedCorner!==0&&v.styleFocusedCorner){v.ctx.lineWidth=
4;v.ctx.strokeStyle="#3EA6FF";switch(v.focusedCorner){case 1:--e;--d;break;case 2:--e;d=T-1;break;case 3:e=E-1;--d;break;case 4:e=E-1;d=T-1;break;default:return}v.ctx.strokeRect(e,d,12,12)}};
ra.prototype.crop=function(v,e){e=e===void 0?!0:e;var d=this.image.width/this.scaledImageWidth,E=document.createElement("canvas"),T=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],S=this.JSC$20755_overlayWidth*d,O=this.JSC$20755_overlayHeight*d;E.width=Math.max(S,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);E.height=Math.max(O,T);v&&(E.width=Math.min(E.width,E.height),E.height=Math.min(E.width,E.height));
v=E.getContext("2d");if(!v)throw Error("ul");T=(this.JSC$20755_overlayMarginLeft-this.horizontalMargin)*d;d*=this.JSC$20755_overlayMarginTop-this.canvasMargin;e||(v.fillStyle="white",v.fillRect(0,0,E.width,E.height));v.drawImage(this.image,T,d,S,O,0,0,E.width,E.height);return E};var Cfw=function(v,e,d,E,T){ra.call(this,v,e,d,E,void 0,T,8,!1)};
_.V(Cfw,ra);Cfw.prototype.drawOverlay=function(){var v=this.getContext(),e=this.JSC$20755_overlayWidth,d=this.JSC$20755_overlayHeight,E=this.JSC$20755_overlayMarginTop,T=this.JSC$20755_overlayMarginLeft;v.lineWidth=2;v.strokeStyle="#3EA6FF";v.beginPath();v.arc(T+e/2,E+d/2,e/2,0,2*Math.PI);v.stroke();v.strokeRect(T,E,e,d);BAs(this)};
var XCf={maxFileSizeMB:15,minWidth:98,minHeight:98},z7s=["image/png","image/jpeg","image/gif"],hN=function(){var v=_.P.apply(this,arguments)||this;v.fileSelectorFocusListener=null;v.errorMessage=null;v.isLoading=!0;v.hideContainer=!0;v.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return v};
_.V(hN,_.P);_.W=hN.prototype;_.W.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.W.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.W.computePlaylistThumbnail=function(v){return v==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.W.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.b4(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.W.setErrorState=function(v){this.resetErrorState();v&&(this.errorMessage=v)};
_.W.showPopup=function(){var v=this;this.hideContainer=!1;_.LI(_.RM,function(){_.Iq(v.hostElement,"yt-refit")});
this.isLoading=!1};
_.W.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.W.closePopup=function(){this.resetFileSelector();_.b4(this.hostElement,"yt-close-popup-action",[this.is])};
_.W.onCancelTap=function(){this.isPlaylistThumbnail||_.b4(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.W.openFileSelector=function(){var v=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.LI(_.RM,function(){setTimeout(function(){if(!v.fileSelector.files||v.fileSelector.files.length===0)v.onCancelTap();v.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(e){e instanceof Error?_.RI(e):_.PV(new _.kL(JSON.stringify(e)))}};
_.W.handleFileSelection=function(){var v=this,e,d,E,T,S,O;return _.I(function(b){switch(b.nextAddress){case 1:_.qq(b,2);if(!v.fileSelector.files||!v.imageEditorCanvas)return v.onCancelTap(),b.return();e=v.fileSelector.files[0];IWw(v.imageChecker,e);_.qq(b,4);return b.yield(K5s(e),6);case 6:v.mimeType=b.yieldResult;_.wk(b,5,2);break;case 4:_.jl(b,2),_.b4(v.hostElement,"yt-image-selection-error-action",[(d=v.data)==null?void 0:d.genericImageLoadErrorMessage]),v.onCancelTap();case 5:E=new FileReader;
E.addEventListener("load",function(){var Y,q;return _.I(function(r){if(r.nextAddress==1){if(!E.result)return _.xf(Error("wl")),r.return();Y=E.result;q=new Image;q.src=Y;q.onload=function(){try{var h=v.imageChecker;if(q.width<h.requirements.minWidth||q.height<h.requirements.minHeight)throw new iLS(h.requirements.minWidth,h.requirements.minHeight);}catch(k){if(k instanceof iLS){var K;_.b4(v.hostElement,"yt-image-selection-error-action",[(K=v.data)==null?void 0:K.imageDimensionErrorMessage]);v.logImageDimensionErrorVe()}else k instanceof
Error?_.RI(k):(h=new _.kL(JSON.stringify(k)),_.RI(h));v.onCancelTap()}v.showPopup()};
q.onerror=function(){var h;_.b4(v.hostElement,"yt-image-selection-error-action",[(h=v.data)==null?void 0:h.genericImageLoadErrorMessage]);v.onCancelTap()};
return r.yield(quv(v.imageEditorCanvas,Y),2)}v.imageEditor=r.yieldResult;v.updatePositionOfAllCorners();v.addEventListeners(v.imageEditor);_.s9(r)})},!1);
E.readAsDataURL(e);_.wk(b,0);break;case 2:T=_.jl(b),T instanceof qL?_.b4(v.hostElement,"yt-image-selection-error-action",[(S=v.data)==null?void 0:S.imageSizeErrorMessage]):(T instanceof Error?_.RI(T):_.PV(new _.kL(JSON.stringify(T))),_.b4(v.hostElement,"yt-image-selection-error-action",[(O=v.data)==null?void 0:O.genericImageLoadErrorMessage])),v.onCancelTap(),_.s9(b)}})};
_.W.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var v=_.s_(_.NC(),{veType:232707,visualElement:_.bH(232707)});v&&(v={visualElement:v},_.j2().reportShown(v))}};
_.W.handleImageSelectionErrorAction=function(v){this.isPlaylistThumbnail&&_.obL(this.hostElement,v)};
_.W.convertToImageFormatBundle=function(v){var e=this,d,E,T;return _.I(function(S){switch(S.nextAddress){case 1:return d=v.toDataURL(e.outputMimeType,1),S.yield($Ci(d),2);case 2:E=S.yieldResult;_.qq(S,3);IWw(e.imageChecker,E);_.wk(S,4);break;case 3:T=_.jl(S);if(!(T instanceof qL))throw T;_.xf(new _.kL("Output size is bigger than input size for image",e.mimeType,e.outputMimeType,E.size));d=v.toDataURL("image/jpeg",.95);return S.yield($Ci(d),6);case 6:E=S.yieldResult;case 4:return S.return({dataUrl:d,
imageFile:E})}})};
_.W.handleUploadImageToScottyCommand=function(v){var e=this,d,E,T,S,O,b,Y,q,r,h;return _.I(function(K){switch(K.nextAddress){case 1:if(!e.imageEditor||!_.L(v,U$s))return K.return();d=_.L(v,U$s).scottyUploadUrl;if(!d){var k=new _.kL("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.RI(k);return K.return()}_.qq(K,2);e.setLoadingState();E=e.imageEditor.crop(!1,!1);return K.yield(e.convertToImageFormatBundle(E),4);case 4:return T=K.yieldResult,K.yield(rgs(T.imageFile,d),5);
case 5:S=K.yieldResult;((O=e.data)==null?0:O.onUploadEndpoint)?(b=e.buildUploadServiceEndpoint(S),e.ytComponentBehavior.resolveCommand(b),Y=_.L(b,_.Ri),((q=Y)==null?0:q.params)?e.closePopup():e.resetFileSelector()):(_.b4(e.hostElement,"yt-image-updated-action",[T.dataUrl,S]),e.closePopup());_.wk(K,0);break;case 2:r=_.jl(K),e.setErrorState((h=e.data)==null?void 0:h.uploadErrorMessage),r instanceof Error?_.RI(r):(k=new _.kL(JSON.stringify(r)),_.RI(k)),_.s9(K)}})};
_.W.buildUploadServiceEndpoint=function(v){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",v),this.data.onUploadEndpoint):null};
_.W.dataChanged=function(){var v=this,e;return _.I(function(d){if(d.nextAddress==1){if(!v.data||!v.canvasElement)return d.return();v.data.imageRatio&&v.data.minImageCropWidth||_.PV(new _.kL("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));e=function(E,T){return v.data.imageType==="IMAGE_TYPE_AVATAR"?new Cfw(E,T,v.data.imageRatio,[v.data.minImageCropWidth,v.data.minImageCropWidth/v.data.imageRatio],v.hostElement):new ra(E,T,v.data.imageRatio,[v.data.minImageCropWidth,
v.data.minImageCropWidth/v.data.imageRatio],void 0,v.hostElement,8,!1)};
v.imageEditorCanvas=new bLf(v.canvasElement,e);return v.data.url?d.yield(quv(v.imageEditorCanvas,v.data.url),3):(v.hideContainer=!0,v.openFileSelector(),d.jumpTo(0))}v.imageEditor=d.yieldResult;v.showPopup();v.addEventListeners(v.imageEditor);_.s9(d)})};
_.W.addEventListeners=function(v){this.removeEventListeners();var e=function(T){Yut(v,T)};
this.JSC$20763_mouseDownEvent=e;var d=function(T){mHw(v,T)};
this.JSC$20763_mouseMoveEvent=d;var E=function(){yPv(v)};
this.JSC$20763_mouseUpEvent=E;this.topLeftCorner.addEventListener("mousedown",e);this.topLeftCorner.addEventListener("mousemove",d);this.topLeftCorner.addEventListener("mouseup",E);this.topRightCorner.addEventListener("mousedown",e);this.topRightCorner.addEventListener("mousemove",d);this.topRightCorner.addEventListener("mouseup",E);this.bottomLeftCorner.addEventListener("mousedown",e);this.bottomLeftCorner.addEventListener("mousemove",d);this.bottomLeftCorner.addEventListener("mouseup",E);this.bottomRightCorner.addEventListener("mousedown",
e);this.bottomRightCorner.addEventListener("mousemove",d);this.bottomRightCorner.addEventListener("mouseup",E)};
_.W.removeEventListeners=function(){this.JSC$20763_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20763_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20763_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20763_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20763_mouseDownEvent));this.JSC$20763_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20763_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20763_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20763_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20763_mouseMoveEvent));this.JSC$20763_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20763_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20763_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20763_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20763_mouseUpEvent))};
_.W.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var v=document.activeElement;v&&v.shadowRoot&&v.shadowRoot.activeElement;)v=v.shadowRoot.activeElement;switch(v){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};
_.W.updatePositionOfCorner=function(v,e){var d=v.y-e.offsetHeight/2+4;e.style.left=v.x-e.offsetWidth/2+16+"px";e.style.top=d+"px"};
_.W.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var v=_.a([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),e=v.next();!e.done;e=v.next()){e=e.value;var d=$H9(this.imageEditor,e.corner);this.updatePositionOfCorner(d,e.div)}};
_.W.onLeft=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(szf(this.imageEditor,0),this.updatePositionOfAllCorners(),v.preventDefault())};
_.W.onRight=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(szf(this.imageEditor,1),this.updatePositionOfAllCorners(),v.preventDefault())};
_.W.onUp=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(szf(this.imageEditor,2),this.updatePositionOfAllCorners(),v.preventDefault())};
_.W.onDown=function(v){this.imageEditor&&this.setFocusInImageEditor()&&(szf(this.imageEditor,3),this.updatePositionOfAllCorners(),v.preventDefault())};
_.W.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.vP.Object.defineProperties(hN.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&z7s.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var v,e,d;((e=this.data)==null?0:e.imageRatio)&&((d=this.data)==null?0:d.minImageCropWidth)?v={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:v=XCf;return new OL9(v)}}});
hN.prototype.updatePositionOfAllCorners=hN.prototype.updatePositionOfAllCorners;hN.prototype.dataChanged=hN.prototype.dataChanged;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],hN.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],hN.prototype,"ytComponentBehavior",void 0);_.c([_.M(_.K$),_.w("design:type",Object)],hN.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.sg("#canvas"),_.w("design:type",HTMLCanvasElement)],hN.prototype,"canvasElement",void 0);_.c([_.sg("#file-selector"),_.w("design:type",HTMLInputElement)],hN.prototype,"fileSelector",void 0);_.c([_.sg("#top-left-corner"),_.w("design:type",HTMLDivElement)],hN.prototype,"topLeftCorner",void 0);_.c([_.sg("#top-right-corner"),_.w("design:type",HTMLDivElement)],hN.prototype,"topRightCorner",void 0);
_.c([_.sg("#bottom-left-corner"),_.w("design:type",HTMLDivElement)],hN.prototype,"bottomLeftCorner",void 0);_.c([_.sg("#bottom-right-corner"),_.w("design:type",HTMLDivElement)],hN.prototype,"bottomRightCorner",void 0);_.c([_.f(),_.w("design:type",Object)],hN.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],hN.prototype,"errorMessage",void 0);_.c([_.f(),_.w("design:type",Object)],hN.prototype,"isLoading",void 0);_.c([_.f(),_.w("design:type",Object)],hN.prototype,"hideContainer",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.w("design:type",Boolean)],hN.prototype,"isPlaylistThumbnail",void 0);_.c([_.V1("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],hN.prototype,"dataChanged",null);_.c([_.Kq("image-updated"),_.Kq("yt-refit"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hN.prototype,"updatePositionOfAllCorners",null);
_.c([_.lh({is:"yt-image-editor-renderer",disableElementRegistration:!0})],hN);
_.A(hN,"yt-image-editor-renderer",function(){if(aW9===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Wai===void 0&&(Wai=document.createElement("template"));var E=Wai;d.call(e,E.content.cloneNode(!0),v.content.firstChild);aW9=v}v=aW9;return v},{mode:2});var lW9;var HLi;var K_=function(){return _.P.apply(this,arguments)||this};
_.V(K_,_.P);K_.prototype.updateMinutesFromBinding=function(v){this.handleMinutesChanged&&this.handleMinutesChanged(v)};
K_.prototype.updateSecondsFromBinding=function(v){this.handleSecondsChanged&&this.handleSecondsChanged(v)};
K_.prototype.updateDescriptionFromBinding=function(v){this.handleDescriptionChanged&&this.handleDescriptionChanged(v)};
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],K_.prototype,"ytComponentBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],K_.prototype,"data",void 0);_.c([_.f(),_.w("design:type",String)],K_.prototype,"minutes",void 0);_.c([_.f(),_.w("design:type",String)],K_.prototype,"seconds",void 0);_.c([_.f(),_.w("design:type",String)],K_.prototype,"description",void 0);_.c([_.f(),_.w("design:type",Function)],K_.prototype,"handleMinutesChanged",void 0);
_.c([_.f(),_.w("design:type",Function)],K_.prototype,"handleSecondsChanged",void 0);_.c([_.f(),_.w("design:type",Function)],K_.prototype,"handleDescriptionChanged",void 0);_.c([_.f(),_.w("design:type",Number)],K_.prototype,"characterLimit",void 0);_.c([_.f(),_.w("design:type",Number)],K_.prototype,"textNumRows",void 0);_.c([_.lh({is:"yt-report-details-form-content",disableElementRegistration:!0})],K_);
_.A(K_,"yt-report-details-form-content",function(){if(HLi===void 0){var v=document.createElement("template");_.G(v,'\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>');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;lW9===void 0&&(lW9=document.createElement("template"));var E=lW9;d.call(e,E.content.cloneNode(!0),v.content.firstChild);HLi=v}v=HLi;return v},{mode:2});var APs;var ZL9;var $2=function(){var v=_.P.apply(this,arguments)||this;v.updateMinutesFromBinding=function(e){v.minutes=e.detail.value};
v.updateSecondsFromBinding=function(e){v.seconds=e.detail.value};
v.updateDescriptionFromBinding=function(e){v.description=e.detail.value};
return v};
_.V($2,_.P);_.W=$2.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.W.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"}}}};
_.W.ready=function(){_.IB(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.W.onSubmitYtAction=function(v){var e=v.detail;e.actionName==="yt-service-request"&&(e=e.args[1],e.flagEndpoint&&(v.stopPropagation(),this.refireAction(e)))};
_.W.refireAction=function(v){var e={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(e.vss_id=this.vssId);_.mN(this.hostElement,[v,e]);this.submitDisabled=!0};
_.W.dataChanged=function(){var v=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var e=_.dB();e&&e.getPlayerPromise().then(function(d){var E=d.getOption("cc","track")||d.getOption("captions","track");E&&(v.vssId=E.vss_id);d=d.getCurrentTime();v.minutes=Math.floor(d/60).toString();v.seconds=(Math.floor(d)%60).toString()})};
_.W.updateSubmitButtonState=function(){var v;((v=this.data)==null?0:v.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==="")};
_.W.onYtServiceRequestCompleted=function(){_.b4(this.hostElement,"yt-close-popup-action")};
_.W.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.vP.Object.defineProperties($2.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var v;return((v=this.data)==null?void 0:v.textNumRows)||4}}});
$2.prototype.onYtServiceRequestError=$2.prototype.onYtServiceRequestError;$2.prototype.onYtServiceRequestCompleted=$2.prototype.onYtServiceRequestCompleted;$2.prototype.updateSubmitButtonState=$2.prototype.updateSubmitButtonState;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);
_.c([_.f({observer:"dataChanged"}),_.w("design:type",Object)],$2.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Boolean)],$2.prototype,"submitDisabled",void 0);_.c([_.f(),_.w("design:type",String)],$2.prototype,"minutes",void 0);_.c([_.f(),_.w("design:type",String)],$2.prototype,"seconds",void 0);_.c([_.f(),_.w("design:type",String)],$2.prototype,"description",void 0);_.c([_.f(),_.w("design:type",String)],$2.prototype,"vssId",void 0);
_.c([_.f({value:_.Bb("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.w("design:type",Boolean)],$2.prototype,"isMusic",void 0);_.c([_.t("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],$2.prototype,"characterLimit",null);_.c([_.t("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],$2.prototype,"textNumRows",null);
_.c([_.V1("minutes","seconds","description","submitDisabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$2.prototype,"updateSubmitButtonState",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$2.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$2.prototype,"onYtServiceRequestError",null);_.c([_.lh({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],$2);
_.A($2,"yt-report-details-form-renderer",function(){if(ZL9===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;APs===void 0&&(APs=document.createElement("template"));var E=APs;d.call(e,E.content.cloneNode(!0),v.content.firstChild);ZL9=v}v=ZL9;return v});var cPQ;var wCi;var Fa_;var Qzw;var jE=function(){return _.P.apply(this,arguments)||this};
_.V(jE,_.P);
jE.prototype.onCheckedChanged_=function(){if(this.data){var v=_.IB(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.b4(this.hostElement,"yt-additional-detail-checkbox-update",[v]):this.data.identifier==="yt-hide-user-checkbox"?_.b4(this.hostElement,"yt-hide-user-checkbox-update",[v]):v&&this.data.enableCommand?_.b4(this.hostElement,"yt-modify-report-form-command",[_.L(this.data.enableCommand,Sew)]):!v&&this.data.disableCommand&&_.b4(this.hostElement,
"yt-modify-report-form-command",[_.L(this.data.enableCommand,Sew)])}};
jE.prototype.onLabelTap_=function(v){v.target.tagName!="A"&&(_.IB(this.hostElement).querySelector("#checkbox").checked=!_.IB(this.hostElement).querySelector("#checkbox").checked)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],jE.prototype,"data",void 0);_.c([_.lh({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],jE);
_.A(jE,"yt-boolean-form-field-v2-renderer",function(){if(Qzw===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Fa_===void 0&&(Fa_=document.createElement("template"));var E=Fa_;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Qzw=v}v=Qzw;return v});var sb=function(){var v=_.P.apply(this,arguments)||this;v.canShowAdditionalDetailCheckbox=!1;v.canShowCheckbox=!1;v.keepDropdownFocusedAfterSelection=!0;return v};
_.V(sb,_.P);sb.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],sb.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],sb.prototype,"canShowAdditionalDetailCheckbox",void 0);_.c([_.f(),_.w("design:type",Object)],sb.prototype,"canShowCheckbox",void 0);_.c([_.f(),_.w("design:type",Object)],sb.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.c([_.lh({is:"yt-report-form-modal-content",disableElementRegistration:!0})],sb);
_.A(sb,"yt-report-form-modal-content",function(){if(wCi===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;cPQ===void 0&&(cPQ=document.createElement("template"));var E=cPQ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);wCi=v}v=wCi;return v},{mode:2});var got;var uiv;var NL=function(){var v=_.P.apply(this,arguments)||this;v.submitting=!1;v.submitButtonDisabled=!0;v.command=null;v.canShowCheckbox=!1;v.canShowAdditionalDetailCheckbox=!1;v.canShowNextButton=!1;v.additionalDetailCheckboxChecked=!1;v.refitJob=0;v.keepDropdownFocusedAfterSelection=!0;v.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 v};
_.V(NL,_.P);_.W=NL.prototype;_.W.created=function(){this.refitJob=0};
_.W.attached=function(){this.JSC$20786_scroller&&(this.JSC$20786_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20786_scroller.attached&&typeof this.JSC$20786_scroller.attached==="function"&&this.JSC$20786_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(v){v&&(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,v.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),v.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.W.onYtPopupOpened=function(){var v=_.dB();v&&v.getPlayerPromise().then(function(e){e.pauseVideo()})};
_.W.onYtNavigate=function(v){_.L(v.detail.endpoint,_.WJg)&&(v.stopPropagation(),this.hideReportForm=!0)};
_.W.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.W.onYtServiceRequestCompleted=function(v,e){var d=e.actions;if(d){if(d.length===1&&_.L(d[0],_.rV)){var E;d=((E=_.L(d[0],_.rV))==null?void 0:E.commands)||[]}E=0;for(var T=d.length;E<T;E++)_.L(d[E],_.L6)&&(v.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(d[E]))}if(e.data&&(v=this.get("feedbackResponses",e.data)))for(e=0;e<v.length;e++)if(v[e].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.W.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.W._onDescendantIronResize=function(v){v.stopPropagation();return!1};
_.W.handleReportFormEndpointUpdateAction=function(v){if(v.submitEndpoint){var e=this.command=v.submitEndpoint;e=_.L(e,_.Eic);if(e==null?0:e.additionalDetailCheckboxChecked)e.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else v.submitNavigationEndpoint?(this.command=v.submitNavigationEndpoint,this.toggleSubmitButton(!1)):v.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:v.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;v.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",v));this.refit()};
_.W.handleConfirmDialogCloseAction=function(v){v.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.W.submitButtonDisabledChanged=function(){var v=this.hostElement.parentElement;v&&v.invalidateTabbables&&v.invalidateTabbables()};
_.W.handleModifyReportFormCommand=function(v){v=this.get("action",v);v==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:v==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:v==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:v==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:v==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:v==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.W.updateDialogStyling=function(){var v,e,d,E,T,S=((T=(v=this.data)==null?void 0:(e=v.optionsSupportedRenderers)==null?void 0:(d=e.optionsRenderer)==null?void 0:(E=d.items)==null?void 0:E.length)!=null?T:0)<=2?0:240;_.qr(this.hostElement,{"--yt-report-form-modal-renderer-min-width":S+"px"})};
_.W.toggleSubmitButton=function(v){this.submitButtonDisabled=!v;this.submitButtonDisabled=v};
_.W.computeSubmitButtonData=function(v,e){var d={};_.L(e,_.WJg)?d.navigationEndpoint=e:d.command=e||void 0;v&&v.buttonRenderer&&_.f0.extend(d,v.buttonRenderer);return d};
_.W.computeNextButtonData=function(v,e){var d={};if(!v||!v.buttonRenderer)return d;_.f0.extend(d,v.buttonRenderer);if(!e)return d;if(_.L(e,_.WJg))d.navigationEndpoint=jaw(e);else if(d.command=jaw(e),v=_.L(d.command,_.Eic))v.legalCheckboxChecked=!0;return d};
_.W.computeShowNextButton=function(v,e,d){return!!v&&e&&d};
_.W.refit=function(){var v=this;this.refitJob||(this.refitJob=_.RM.addLowPriorityJob(function(){_.Iq(v.hostElement,"yt-refit");v.refitJob=0}))};
_.W.handleAdditionalDetailCheckboxUpdateAction=function(v){this.additionalDetailCheckboxChecked=v;_.L(this.command,_.Eic).additionalDetailCheckboxChecked=v};
_.vP.Object.defineProperties(NL,{template:{configurable:!0,enumerable:!0,get:function(){if(uiv===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;got===void 0&&(got=document.createElement("template"));var E=got;d.call(e,E.content.cloneNode(!0),v.content.firstChild);uiv=v}v=uiv;return v}}});
NL.prototype.onYtServiceRequestError=NL.prototype.onYtServiceRequestError;NL.prototype.onYtServiceRequestCompleted=NL.prototype.onYtServiceRequestCompleted;NL.prototype.onYtServiceRequestSent=NL.prototype.onYtServiceRequestSent;NL.prototype.onYtNavigate=NL.prototype.onYtNavigate;NL.prototype.onYtPopupOpened=NL.prototype.onYtPopupOpened;_.c([_.M(_.h5.YtOpenPopupBehavior),_.w("design:type",Object)],NL.prototype,"openPopupBehavior",void 0);
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],NL.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],NL.prototype,"eventForwardingBehavior",void 0);_.c([_.M(_.J9),_.w("design:type",Object)],NL.prototype,"ironResizableBehavior",void 0);_.c([_.f({observer:"dataChanged"}),_.w("design:type",Object)],NL.prototype,"data",void 0);
_.c([_.f(),_.w("design:type",Object)],NL.prototype,"submitting",void 0);_.c([_.f({observer:"submitButtonDisabledChanged"}),_.w("design:type",Object)],NL.prototype,"submitButtonDisabled",void 0);_.c([_.f(),_.w("design:type",Object)],NL.prototype,"command",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],NL.prototype,"hideReportForm",void 0);_.c([_.f(),_.w("design:type",Object)],NL.prototype,"canShowCheckbox",void 0);
_.c([_.f(),_.w("design:type",Object)],NL.prototype,"canShowAdditionalDetailCheckbox",void 0);_.c([_.f(),_.w("design:type",Object)],NL.prototype,"canShowNextButton",void 0);_.c([_.f(),_.w("design:type",Object)],NL.prototype,"additionalDetailCheckboxChecked",void 0);_.c([_.f(),_.w("design:type",Object)],NL.prototype,"refitJob",void 0);_.c([_.f(),_.w("design:type",Object)],NL.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.c([_.sg("#scroller"),_.w("design:type",Object)],NL.prototype,"JSC$20786_scroller",void 0);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],NL.prototype,"onYtPopupOpened",null);_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],NL.prototype,"onYtNavigate",null);
_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],NL.prototype,"onYtServiceRequestSent",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],NL.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],NL.prototype,"onYtServiceRequestError",null);_.c([_.lh({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],NL);var no9;var DH9;var k2=function(){return _.P.apply(this,arguments)||this};
_.V(k2,_.P);_.W=k2.prototype;_.W.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.W.onVisible=function(){var v,e;(e=_.dk().resolve(_.eG(_.Jq)))==null||e.enqueue({label:_.vv((v=this.data)==null?void 0:v.messageTitle),elementToFocus:this.hostElement})};
_.W.onThumbnailLoaded=function(){_.Iq(this.hostElement,"yt-refit")};
_.W.onDismissTap=function(){_.b4(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.W.computeAlternateIcon=function(v){return v?v==="BACKSTAGE_ARTWORK"?"backstage:artwork":v:null};
_.W.computeFontFamily=function(v){return v==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.W.computeBackgroundStyle=function(v,e){if(v=this.computeBackgroundImage(v,e))if(v=_.OG(v.thumbnails))return'background-image: url("'+v+'");'};
_.W.computeHasFullHeightImage=function(v){return!(!(v&&v.thumbnails&&v.thumbnails.length>0)||this.modern)};
_.W.isModernStyle=function(v){return v.style==="STYLE_MODERN"};
_.W.computeIcon=function(v,e){if(v&&v.icon)return e?v.iconDark:v.icon};
_.W.computeBackgroundImage=function(v,e){if(v&&v.backgroundImage)return e?v.backgroundImageDark:v.backgroundImage};
_.W.computeLogo=function(v,e){if(v&&v.logo)return e?v.logoDark:v.logo};
_.W.computeShouldShowModernIcon=function(v,e){return v&&!!e};
_.W.getLogoContainerClassName=function(v){return this.logoWithPadding(v)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.W.getLogoImageId=function(v){return this.logoWithPadding(v)?"mealbar-logo-with-padding":"mealbar-logo"};
_.W.logoWithPadding=function(v){var e,d,E;return(v=(e=this.computeLogo(v,this.isDarkTheme))==null?void 0:(d=e.thumbnails)==null?void 0:(E=d[0])==null?void 0:E.height)&&v%31===0?!0:!1};
k2.prototype.onThumbnailLoaded=k2.prototype.onThumbnailLoaded;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.c([_.f({}),_.w("design:type",Object)],k2.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.w("design:type",Boolean)],k2.prototype,"modern",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],k2.prototype,"isDarkTheme",void 0);
_.c([_.f({computed:"computeIcon(data, isDarkTheme)"}),_.w("design:type",Object)],k2.prototype,"icon",void 0);_.c([_.f({computed:"computeLogo(data, isDarkTheme)"}),_.w("design:type",Object)],k2.prototype,"logo",void 0);_.c([_.f({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.w("design:type",Object)],k2.prototype,"backgroundStyle",void 0);_.c([_.f({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.w("design:type",Object)],k2.prototype,"alternateIcon",void 0);
_.c([_.f({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.w("design:type",Boolean)],k2.prototype,"hasFullHeightImage",void 0);_.c([_.f({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.w("design:type",Boolean)],k2.prototype,"useYoutubeSans",void 0);_.c([_.f({computed:"computeShouldShowModernIcon(modern, icon)"}),_.w("design:type",Boolean)],k2.prototype,"shouldShowModernIcon",void 0);
_.c([_.Kq("yt-img-shadow-loaded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],k2.prototype,"onThumbnailLoaded",null);_.c([_.lh({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],k2);
_.A(k2,"yt-mealbar-promo-renderer",function(){if(DH9===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;no9===void 0&&(no9=document.createElement("template"));var E=no9;d.call(e,E.content.cloneNode(!0),v.content.firstChild);DH9=v}v=DH9;return v},{mode:2});var UH_;var pCQ;var L_=function(){return _.P.apply(this,arguments)||this};
_.V(L_,_.P);_.W=L_.prototype;_.W.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]]"}}}}}};
_.W.computeHasButtons_=function(v){return!(!v.dismissButton&&!v.acceptButton)};
_.W.computeStyle_=function(v){return v||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.W.observeImpressionEndpoints_=function(){var v=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;_.mN(v.hostElement,[e])})};
_.W.onTap_=function(){_.b4(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
L_.prototype.observeImpressionEndpoints_=L_.prototype.observeImpressionEndpoints_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],L_.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],L_.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],L_.prototype,"positionType",void 0);_.c([_.f({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.w("design:type",Boolean)],L_.prototype,"hasButtons_",void 0);_.c([_.f({value:function(){return this.onTap_.bind(this)}}),
_.w("design:type",Function)],L_.prototype,"boundOnTap_",void 0);_.c([_.f({value:{style:"mono-inverse"}}),_.w("design:type",Object)],L_.prototype,"buttonOverride",void 0);_.c([_.$v("data.promoConfig.impressionEndpoints"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L_.prototype,"observeImpressionEndpoints_",null);_.c([_.lh({is:"yt-tooltip-renderer",disableElementRegistration:!0})],L_);
_.A(L_,"yt-tooltip-renderer",function(){if(pCQ===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;UH_===void 0&&(UH_=document.createElement("template"));var E=UH_;d.call(e,E.content.cloneNode(!0),v.content.firstChild);pCQ=v}v=pCQ;return v},{mode:2});var v4S;var eGS;var dBt={},E4Q=(dBt.WEB_REMIX="music.youtube.com",dBt),V$=function(){var v=_.P.apply(this,arguments)||this;v.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return v};
_.V(V$,_.P);_.W=V$.prototype;_.W.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.created=function(){this.embedHost_=E4Q[_.Bb("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.W.ready=function(){_.IB(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.W.computeEmbedCode_=function(v,e,d,E,T){if(!v)return"";var S=v.videoId,O=v.fullListId,b=[];v.attributionId&&b.push("si="+v.attributionId);E||b.push("controls=0");d&&Number(e)>0&&b.push("start="+e);O&&(S="videoseries",b.push("list="+O));d="https://"+(T?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+S;v.clipId&&(b.push("clip="+v.clipId),b.push("clipt="+v.clipTiming));e=b.length>0?d+"?"+b.join("&amp;"):d;v.encryptedEmbedConfig&&b.push("embed_config="+JSON.stringify({enc:v.encryptedEmbedConfig}));
b=b.length>0?d+"?"+b.join("&amp;"):d;_.N("web_sharing_embed_preview_killswitch")?_.IB(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(b,v.previewWidth||854,v.previewHeight||480):(_.VE(this.videoPreviewContainer),_.IB(this.videoPreviewContainer).appendChild(this.buildIframeElement(b)));return this.getEmbedCode_(e,v.width||560,v.height||315)};
_.W.buildIframeElement=function(v){var e=document.createElement("iframe"),d,E;e.width=""+((E=(d=this.data)==null?void 0:d.previewWidth)!=null?E:854);var T,S;e.height=""+((S=(T=this.data)==null?void 0:T.previewHeight)!=null?S:480);_.T5j(e,2,v);e.title="YouTube video player";e.frameBorder="0";e.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";e.referrerPolicy="strict-origin-when-cross-origin";e.allowFullscreen=!0;return e};
_.W.computeIsSquareAspectRatio_=function(v){return v.previewHeight&&v.previewWidth?v.previewHeight==v.previewWidth:!1};
_.W.computeShowEmbedOptions_=function(v){return!!v.enablePrivacyModeOptionLabel||!!v.showPlayerControlsOptionLabel};
_.W.getEmbedCode_=function(v,e,d){return'<iframe width="'+e+'" height="'+d+'" src="'+v+'" 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>'};
_.W.handleSignalActionCopyShareEmbedUrl_=function(){_.IB(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.W.handleSetTimestamp_=function(v){this.startAtTimeStamp_=(this.startAtChecked_=v.isSet)?v.timestamp:0};
_.W.closePanel_=function(){_.b4(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.W.onEmbedCode_=function(){_.IB(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.W.onYtPopupClosed_=function(){_.VE(_.IB(this.hostElement).querySelector("#video-preview"))};
_.W.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.L(this.data.actionButtons[0],_.BD)&&this.ytRendererBehavior.logExplicitClick(_.L(this.data.actionButtons[0],_.BD))};
V$.prototype.onYtPopupClosed_=V$.prototype.onYtPopupClosed_;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],V$.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],V$.prototype,"data",void 0);
_.c([_.f({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.w("design:type",String)],V$.prototype,"embedCode_",void 0);_.c([_.f({value:!0}),_.w("design:type",Boolean)],V$.prototype,"isPlayerControlsOptionChecked_",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],V$.prototype,"isPrivacyModeOptionChecked_",void 0);_.c([_.f({value:!1,notify:!0}),_.w("design:type",Boolean)],V$.prototype,"startAtChecked_",void 0);
_.c([_.f({value:0}),_.w("design:type",Number)],V$.prototype,"startAtTimeStamp_",void 0);_.c([_.f({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],V$.prototype,"isSquareAspectRatio_",void 0);_.c([_.sg("#video-preview"),_.w("design:type",HTMLElement)],V$.prototype,"videoPreviewContainer",void 0);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],V$.prototype,"onYtPopupClosed_",null);
_.c([_.lh({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],V$);
_.A(V$,"yt-sharing-embed-renderer",function(){if(eGS===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;v4S===void 0&&(v4S=document.createElement("template"));var E=v4S;d.call(e,E.content.cloneNode(!0),v.content.firstChild);eGS=v}v=eGS;return v},{mode:2});var TR9={};
TR9.YtUnlimitedFamilyInterstitialBehavior=[_.h5.YtOpenPopupBehavior,_.$M.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(v){v=_.awg(_.ew(v),"yt-button-renderer");return v?v.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(v){this.dialogHistory_.push(v)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var v=this.popFromHistory();if(v){var e={openPopupAction:{popupType:"DIALOG",popup:{}}};e.openPopupAction.popup[v.renderer]=v.data;this.showingPreviousDialog_=!0;this.openPopup(e)}},
handleOpenPopupAction_:function(v){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var e=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(E){return!!v.openPopupAction.popup[E]}),d=this.getElementName_();
e&&this.data&&(this.pushToHistory({renderer:d,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(v){if(v=_.L(v,RsS))this.loading=!0,_.b4(this.hostElement,"yt-open-create-family-dialog",[v,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var v=this.hostElement.nodeName.split("-").slice(1).map(function(e){return""+e[0].toUpperCase()+e.slice(1).toLowerCase()}).join("");
return v[0].toLowerCase()+v.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var SLv;var WBv;var oS=function(){return _.P.apply(this,arguments)||this};
_.V(oS,_.P);_.W=oS.prototype;_.W.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}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.b4(this.hostElement,"yt-register-create-family-dialog");_.IB(this.hostElement).querySelector("#thumbnail").onShow()};
_.W.fireOnCloseCommand_=function(){var v;((v=this.data)==null?0:v.onCloseCommand)&&_.ya(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.W.onYtServiceRequestSent_=function(v,e){e&&e.endpoint&&_.L(e.endpoint,_.KB)||(this.loading=!0)};
_.W.onYtServiceRequestCompleted_=function(){var v=this.hostElement.parentElement;v.close&&v.close();this.loading=!1};
_.W.openPopupHandler_=function(v){if(v.detail==this){var e;((e=this.data)==null?0:e.onOpenCommands)&&_.ya(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.W.closePopupHandler_=function(v,e){this.fireOnCloseCommand_();if(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1){var d;((d=this.data)==null?0:d.onDismissCommands)&&_.ya(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.W.dataChanged_=function(){this.loading=!1};
oS.prototype.dataChanged_=oS.prototype.dataChanged_;oS.prototype.closePopupHandler_=oS.prototype.closePopupHandler_;oS.prototype.openPopupHandler_=oS.prototype.openPopupHandler_;oS.prototype.onYtServiceRequestCompleted_=oS.prototype.onYtServiceRequestCompleted_;oS.prototype.onYtServiceRequestSent_=oS.prototype.onYtServiceRequestSent_;_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],oS.prototype,"ytEventForwardingBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(TR9.YtUnlimitedFamilyInterstitialBehavior),_.w("design:type",Object)],oS.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],oS.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],oS.prototype,"loading",void 0);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],oS.prototype,"onYtServiceRequestSent_",null);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],oS.prototype,"onYtServiceRequestCompleted_",null);
_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],oS.prototype,"openPopupHandler_",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],oS.prototype,"closePopupHandler_",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oS.prototype,"dataChanged_",null);
_.c([_.lh({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],oS);
_.A(oS,"yt-unlimited-family-message-interstitial-renderer",function(){if(WBv===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;SLv===void 0&&(SLv=document.createElement("template"));var E=SLv;d.call(e,E.content.cloneNode(!0),v.content.firstChild);WBv=v}v=WBv;return v},{mode:2});var aMs;var iTS;var JN=function(){return _.P.apply(this,arguments)||this};
_.V(JN,_.P);JN.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"}}}};
JN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.IB(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(v){v.onShow()});
_.IB(this.hostElement).querySelector("#main-thumbnail").onShow()};
JN.prototype.onButtonTap_=function(v){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(v)};
JN.prototype.computeMainThumbnailWidth_=function(v){return v&&v.length!==0?72:96};
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.c([_.M(TR9.YtUnlimitedFamilyInterstitialBehavior),_.w("design:type",Object)],JN.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],JN.prototype,"data",void 0);
_.c([_.f({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.w("design:type",Number)],JN.prototype,"mainThumbnailWidth_",void 0);_.c([_.f({value:function(){return this.onButtonTap_.bind(this)}}),
_.w("design:type",Function)],JN.prototype,"boundButtonTap_",void 0);_.c([_.lh({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],JN);
_.A(JN,"yt-unlimited-family-profile-interstitial-renderer",function(){if(iTS===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;aMs===void 0&&(aMs=document.createElement("template"));var E=aMs;d.call(e,E.content.cloneNode(!0),v.content.firstChild);iTS=v}v=iTS;return v},{mode:2});var OTQ;var IMs;var Gs=function(){var v=_.P.apply(this,arguments)||this;v.sliderAriaValueText_=null;v.selectedIndex_=0;v.messages={PAUSE_SLIDER:_.sz("PAUSE_SLIDER",void 0,"Pause Duration")};return v};
_.V(Gs,_.P);_.W=Gs.prototype;_.W.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_]]"}}}}}};
_.W.onPopupOpened_=function(v){v.detail==this&&_.N("enable_premium_voluntary_pause")&&(_.b4(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.setDialogData=function(v){this.data=v;this.resetSlider_()};
_.W.dataChanged_=function(){this.data&&this.resetSlider_()};
_.W.onSubmitTap_=function(){if(this.data.confirmCommand){var v=this.data.confirmCommand;_.L(v,_.oMJ)&&_.mN(this.hostElement,[v,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.W.onExitButtonTap_=function(){_.b4(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.W.closePopupHandler_=function(v,e){(e&&e.canceled===!0||e.canceled===!1&&e.confirmed===!1)&&this.handleOnDismissCommands_()};
_.W.onSliderChange_=function(){this.selectedIndex_=_.IB(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.W.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.W.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.W.resetSlider_=function(){if(this.data){var v=this.data.defaultEndOptionIndex||0,e=_.IB(this.hostElement).querySelector("#id-pause-slider");if(e.immediateValue<v)for(;e.immediateValue!=v;)e.increment();else if(v<e.immediateValue)for(;e.immediateValue!=v;)e.decrement();this.selectedIndex_=v;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.W.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.ya(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.W.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.ya(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.W.onYtServiceRequestSent=function(){this.loading=!0};
_.W.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Gs.prototype.onYtServiceRequestCompleted=Gs.prototype.onYtServiceRequestCompleted;Gs.prototype.onYtServiceRequestSent=Gs.prototype.onYtServiceRequestSent;Gs.prototype.closePopupHandler_=Gs.prototype.closePopupHandler_;Gs.prototype.dataChanged_=Gs.prototype.dataChanged_;Gs.prototype.onPopupOpened_=Gs.prototype.onPopupOpened_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],Gs.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Gs.prototype,"loading",void 0);_.c([_.f(),_.w("design:type",Number)],Gs.prototype,"selectIndexMax_",void 0);_.c([_.f(),_.w("design:type",Object)],Gs.prototype,"selectedData_",void 0);
_.c([_.f(),_.w("design:type",Object)],Gs.prototype,"sliderAriaValueText_",void 0);_.c([_.f({value:function(){return this.onSubmitTap_.bind(this)}}),
_.w("design:type",Function)],Gs.prototype,"onButtonTap_",void 0);_.c([_.f({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.w("design:type",Function)],Gs.prototype,"onSecondaryTap_",void 0);_.c([_.f(),_.w("design:type",Object)],Gs.prototype,"messages",void 0);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],Gs.prototype,"onPopupOpened_",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Gs.prototype,"dataChanged_",null);
_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],Gs.prototype,"closePopupHandler_",null);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],Gs.prototype,"onYtServiceRequestSent",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],Gs.prototype,"onYtServiceRequestCompleted",null);_.c([_.lh({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Gs);
_.A(Gs,"yt-unplugged-pause-membership-dialog-renderer",function(){if(IMs===void 0){var v=document.createElement("template");_.G(v,'\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>');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;OTQ===void 0&&(OTQ=document.createElement("template"));var E=OTQ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);IMs=v}v=IMs;return v},{mode:2});var bTi;var YLv;var ML=function(){return _.P.apply(this,arguments)||this};
_.V(ML,_.P);ML.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Pa("vcBalanceRenderer")}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],ML.prototype,"data",void 0);_.c([_.lh({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],ML);
_.A(ML,"yt-vc-offer-layout-header-renderer",function(){if(YLv===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;bTi===void 0&&(bTi=document.createElement("template"));var E=bTi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);YLv=v}v=YLv;return v},{mode:2});var mBQ;var ypQ;var qLi;var rp9;var tN=function(){return _.P.apply(this,arguments)||this};
_.V(tN,_.P);tN.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.vP.Object.defineProperties(tN.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.DKB.YtTappableItemBehavior),_.w("design:type",Object)],tN.prototype,"ytTappableItemBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],tN.prototype,"data",void 0);
_.c([_.f({reflectToAttribute:!0}),_.t("data.accessibilityText"),_.w("design:type",String),_.w("design:paramtypes",[])],tN.prototype,"ariaLabel",null);_.c([_.f({reflectToAttribute:!0}),_.t("data.style"),_.w("design:type",String),_.w("design:paramtypes",[])],tN.prototype,"vcOfferStyle",null);_.c([_.t("data.style","data.titleText"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],tN.prototype,"showTitleText",null);_.c([_.lh({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],tN);
_.A(tN,"yt-vc-offer-renderer",function(){if(rp9===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;qLi===void 0&&(qLi=document.createElement("template"));var E=qLi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);rp9=v}v=rp9;return v},{mode:2});var f_=function(){return _.P.apply(this,arguments)||this};
_.V(f_,_.P);f_.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],f_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],f_.prototype,"data",void 0);_.c([_.lh({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],f_);
_.A(f_,"yt-vc-offer-layout-renderer",function(){if(ypQ===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;mBQ===void 0&&(mBQ=document.createElement("template"));var E=mBQ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);ypQ=v}v=ypQ;return v},{mode:2});var hGi;var KB_;var $Bi;var jVw;var RS=function(){return _.P.apply(this,arguments)||this};
_.V(RS,_.P);RS.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],RS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],RS.prototype,"data",void 0);_.c([_.lh({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],RS);
_.A(RS,"yt-ypc-offers-modal-top-bar-renderer",function(){if(jVw===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;$Bi===void 0&&($Bi=document.createElement("template"));var E=$Bi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);jVw=v}v=jVw;return v},{mode:2});var PZ=function(){return _.P.apply(this,arguments)||this};
_.V(PZ,_.P);PZ.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"}}}}};
PZ.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
PZ.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var v=this.scrollable;v.attached&&typeof v.attached==="function"&&v.attached()};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.sg("#scrollable"),_.w("design:type",Object)],PZ.prototype,"scrollable",void 0);_.c([_.f(),_.w("design:type",Object)],PZ.prototype,"data",void 0);_.c([_.lh({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],PZ);
_.A(PZ,"yt-ypc-offers-modal-renderer",function(){if(KB_===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;hGi===void 0&&(hGi=document.createElement("template"));var E=hGi;d.call(e,E.content.cloneNode(!0),v.content.firstChild);KB_=v}v=KB_;return v},{mode:2});var sVO;var NRw;var x2=function(){return _.P.apply(this,arguments)||this};
_.V(x2,_.P);_.W=x2.prototype;_.W.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}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.IB(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.W.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.b4(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.W.onYtPopupOpened_=function(v,e){(e==null?void 0:e.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.ya(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.W.onYtPopupClosed_=function(v,e){this.continueButtonTapped||e&&(e.canceled===!0||e.canceled===!1&&e.confirmed===!1)&&this.data.onDismissCommands&&_.ya(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.W.onYtServiceRequestError_=function(v){this.set("showSpinner",!1);_.Q0(this.hostElement,v.detail.error.message)};
_.W.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.N("enable_ypc_spinners")?_.b4(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
x2.prototype.onYtServiceRequestError_=x2.prototype.onYtServiceRequestError_;x2.prototype.onYtPopupClosed_=x2.prototype.onYtPopupClosed_;x2.prototype.onYtPopupOpened_=x2.prototype.onYtPopupOpened_;x2.prototype.onYtServiceRequestCompleted_=x2.prototype.onYtServiceRequestCompleted_;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],x2.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.f(),_.w("design:type",Object)],x2.prototype,"data",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],x2.prototype,"showSpinner",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],x2.prototype,"continueButtonTapped",void 0);_.c([_.f({value:function(){return this.onContinueTapped_.bind(this)}}),
_.w("design:type",Function)],x2.prototype,"bindOnContinueTapped_",void 0);_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],x2.prototype,"onYtServiceRequestCompleted_",null);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],x2.prototype,"onYtPopupOpened_",null);
_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],x2.prototype,"onYtPopupClosed_",null);_.c([_.Kq("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],x2.prototype,"onYtServiceRequestError_",null);_.c([_.lh({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],x2);
_.A(x2,"yt-ypc-upgrade-dialog-renderer",function(){if(NRw===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;sVO===void 0&&(sVO=document.createElement("template"));var E=sVO;d.call(e,E.content.cloneNode(!0),v.content.firstChild);NRw=v}v=NRw;return v},{mode:2});var kgQ;var LBs;var BZ=function(){return _.P.apply(this,arguments)||this};
_.V(BZ,_.P);BZ.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
BZ.prototype.computeHasButtons_=function(v){return!(!v.dismissButton&&!v.confirmButton)};
BZ.prototype.computeStyle_=function(v){return v||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],BZ.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],BZ.prototype,"data",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],BZ.prototype,"positionType",void 0);
_.c([_.f({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.w("design:type",Boolean)],BZ.prototype,"hasButtons_",void 0);_.c([_.f({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.w("design:type",Boolean)],BZ.prototype,"style_",void 0);_.c([_.lh({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],BZ);
_.A(BZ,"yt-bubble-hint-renderer",function(){if(LBs===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;kgQ===void 0&&(kgQ=document.createElement("template"));var E=kgQ;d.call(e,E.content.cloneNode(!0),v.content.firstChild);LBs=v}v=LBs;return v},{mode:2});var Vn1;var o4f;var C_=function(){var v=_.eo.apply(this,arguments)||this;v.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return v};
_.V(C_,_.eo);_.W=C_.prototype;_.W.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.W.attached=function(){var v=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){v.$.thumbnail.onShow();v.$["header-image"].onShow()})};
_.W.handleCheckBoxUpdateAction_=function(v){this.canShowCheckboxEnabledConfirmButton=v};
_.W.computeUseOverlayForSpinner_=function(v,e){return!!v&&e};
_.W.computeShowSpinner_=function(v,e){return v||!!e};
_.W.fireOnCloseActions_=function(){var v,e=_.a(((v=this.data)==null?void 0:v.onClosedActions)||[]);for(v=e.next();!v.done;v=e.next())this.ytRendererBehavior.resolveCommand(v.value)};
_.W.fireOnOpenCommands_=function(v){var e,d=(e=this.data)==null?void 0:e.onOpenCommands;if(d)for(v.stopImmediatePropagation(),v=_.a(d),e=v.next();!e.done;e=v.next())this.ytRendererBehavior.resolveCommand(e.value)};
_.W.fireOnDismissCommands_=function(v){var e,d=(e=this.data)==null?void 0:e.onDismissCommands;if(d)for(v.stopImmediatePropagation(),v=_.a(d),e=v.next();!e.done;e=v.next())this.ytRendererBehavior.resolveCommand(e.value)};
_.W.openPopupHandler_=function(v){v.detail==this&&this.fireOnOpenCommands_(v)};
_.W.closePopupHandler_=function(v,e){_.YB(this,"yt-confirm-dialog-close-action",[e]);this.fireOnCloseActions_();(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1)&&this.fireOnDismissCommands_(v)};
_.W.onHeaderImageChanged_=function(){var v;((v=this.data)==null?0:v.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.W.computeHasHeaderImageWidth_=function(v){return v!=void 0};
_.W.computeHasLoadingMessage=function(v){return!!v};
_.W.onHeaderImageWidthChanged_=function(){var v,e=(v=this.data)==null?void 0:v.headerImageWidth;if(e){if(v=1.25*e*2+e,this.$.main.style.width=v+"px",e=this.$.scroller.firstElementChild)e.style.minWidth=v+"px"}else this.$.main.style.width="100%"};
_.W.onThumbnailChanged_=function(){var v;((v=this.data)==null?0:v.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")};
_.W.onYtNavigate_=function(v){v=_.ew(v);v instanceof Node&&_.bh(this.$["confirm-button"]).contains(v)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.W.computePrimaryIsCancel_=function(v){return v};
_.W.computeIsCancelButtonHidden_=function(v){return v.skipCancelButton||!v.cancelButton};
_.W.computeIsCheckboxHidden_=function(v){return!v.checkbox};
_.W.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.W.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.W.onYtServiceRequestCompleted_=function(){var v;((v=this.data)==null?0:v.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.vP.Object.defineProperties(C_,{template:{configurable:!0,enumerable:!0,get:function(){if(o4f===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;Vn1===void 0&&(Vn1=document.createElement("template"));var E=Vn1;d.call(e,E.content.cloneNode(!0),v.content.firstChild);o4f=v}v=o4f;return v}}});
C_.prototype.onYtServiceRequestCompleted_=C_.prototype.onYtServiceRequestCompleted_;C_.prototype.onYtServiceRequestSent_=C_.prototype.onYtServiceRequestSent_;C_.prototype.onThumbnailLoaded_=C_.prototype.onThumbnailLoaded_;C_.prototype.onYtNavigate_=C_.prototype.onYtNavigate_;C_.prototype.onThumbnailChanged_=C_.prototype.onThumbnailChanged_;C_.prototype.onHeaderImageWidthChanged_=C_.prototype.onHeaderImageWidthChanged_;C_.prototype.onHeaderImageChanged_=C_.prototype.onHeaderImageChanged_;
C_.prototype.closePopupHandler_=C_.prototype.closePopupHandler_;C_.prototype.openPopupHandler_=C_.prototype.openPopupHandler_;_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],C_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],C_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);
_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],C_.prototype,"ytEventForwardingBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],C_.prototype,"data",void 0);_.c([_.f({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.w("design:type",Boolean)],C_.prototype,"primaryIsCancel",void 0);_.c([_.f({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.w("design:type",Boolean)],C_.prototype,"isCancelButtonHidden",void 0);
_.c([_.f({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.w("design:type",Boolean)],C_.prototype,"isCheckboxHidden",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],C_.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.c([_.f({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.w("design:type",Boolean)],C_.prototype,"useOverlayForSpinner_",void 0);
_.c([_.f({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.w("design:type",Boolean)],C_.prototype,"showSpinner_",void 0);_.c([_.f({value:!1}),_.w("design:type",Boolean)],C_.prototype,"isActionInProgress_",void 0);_.c([_.f({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.w("design:type",Boolean)],C_.prototype,"hasHeaderImageWidth_",void 0);
_.c([_.f({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.w("design:type",Boolean)],C_.prototype,"hasLoadingMessage",void 0);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],C_.prototype,"openPopupHandler_",null);_.c([_.Kq("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],C_.prototype,"closePopupHandler_",null);
_.c([_.$v("data.headerImage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C_.prototype,"onHeaderImageChanged_",null);_.c([_.$v("data.headerImageWidth"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C_.prototype,"onHeaderImageWidthChanged_",null);_.c([_.$v("data.thumbnail"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C_.prototype,"onThumbnailChanged_",null);
_.c([_.Kq("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],C_.prototype,"onYtNavigate_",null);_.c([_.Kq("yt-img-shadow-loaded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C_.prototype,"onThumbnailLoaded_",null);_.c([_.Kq("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Zy]),_.w("design:returntype")],C_.prototype,"onYtServiceRequestSent_",null);
_.c([_.Kq("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.Dy]),_.w("design:returntype")],C_.prototype,"onYtServiceRequestCompleted_",null);_.c([_.lh({is:"yt-confirm-dialog-renderer",noInjection:!0})],C_);var Jps;var Gg_;var X5=function(){return _.P.apply(this,arguments)||this};
_.V(X5,_.P);X5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.IB(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
X5.prototype.computeConfirmButton_=function(v){var e={text:v.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};v.confirmNavigationEndpoint?e.navigationEndpoint=v.confirmNavigationEndpoint:v.confirmServiceEndpoint&&(e.serviceEndpoint=v.confirmServiceEndpoint);return e};
X5.prototype.computeShowTitle_=function(v){return!(v==null||!v.title)};
_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],X5.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],X5.prototype,"data",void 0);_.c([_.f({computed:"computeShowTitle_(data)"}),_.w("design:type",Boolean)],X5.prototype,"showTitle",void 0);_.c([_.lh({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],X5);
_.A(X5,"yt-fancy-dismissible-dialog-renderer",function(){if(Gg_===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Jps===void 0&&(Jps=document.createElement("template"));var E=Jps;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Gg_=v}v=Gg_;return v});var Mnt;var tn9;var zs=function(){var v=_.P.apply(this,arguments)||this;v.spinnerActive=!1;return v};
_.V(zs,_.P);zs.prototype.created=function(){Zvt(2201)};
zs.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
zs.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
zs.prototype.onIronOverlayClosed=zs.prototype.onIronOverlayClosed;zs.prototype.onIronOverlayOpened=zs.prototype.onIronOverlayOpened;_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.A9),_.w("design:type",Object)],zs.prototype,"tpYtIronOverlayBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],zs.prototype,"data",void 0);_.c([_.f(),_.w("design:type",Object)],zs.prototype,"spinnerActive",void 0);
_.c([_.Kq("iron-overlay-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zs.prototype,"onIronOverlayOpened",null);_.c([_.Kq("iron-overlay-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zs.prototype,"onIronOverlayClosed",null);_.c([_.lh({is:"yt-loading-renderer",disableElementRegistration:!0})],zs);
_.A(zs,"yt-loading-renderer",function(){if(tn9===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Mnt===void 0&&(Mnt=document.createElement("template"));var E=Mnt;d.call(e,E.content.cloneNode(!0),v.content.firstChild);tn9=v}v=tn9;return v},{mode:2});var fMw;var RGs;var lv=function(){var v=_.P.apply(this,arguments)||this;v.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);v.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);v.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";v.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return v};
_.V(lv,_.P);_.W=lv.prototype;_.W.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.W.onDarkModeToggledAction=function(v){this.isDarkTheme=v};
_.W.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.W.openPopupHandler_=function(v){v.detail===this.hostElement&&this.hostElement.hidden&&_.b4(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.W.onDismissButtonTap_=function(){var v;this.closeOnDismissButton_.has(((v=this.data)==null?void 0:v.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.b4(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.W.onAcceptButtonTap_=function(){var v;this.closeOnAcceptButton_.has(((v=this.data)==null?void 0:v.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.b4(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.W.computeHasHeader_=function(v){return!!v.headerBackgroundImage};
_.W.computeLayoutStyle_=function(v){return v};
_.W.computePopupSize_=function(v){return v};
_.W.computeIconType_=function(v){return v.dialogIcon&&v.dialogIcon.iconType?v.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":v.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":v.dialogIcon.iconType:""};
_.W.computeIsLogo_=function(v){return!!v.dialogIcon&&!!v.dialogIcon.iconType&&(v.dialogIcon.iconType==="YOUTUBE_LOGO"||v.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||v.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.W.computeHasCustomLogo=function(v){return!(v==null||!v.headerForegroundImage)};
_.W.computeCustomLogo=function(v,e){if(v!=null&&v.headerForegroundImage)return v.headerForegroundImageDark?e?v.headerForegroundImageDark:v.headerForegroundImage:v.headerForegroundImage};
_.W.computeHeaderBackgroundImage=function(v,e){if(v!=null&&v.headerBackgroundImage)return e&&(v==null?0:v.headerBackgroundImageDark)?v.headerBackgroundImageDark:v.headerBackgroundImage};
_.W.shouldShowIconContainer=function(v,e){return v&&!e};
_.W.shouldShowNonYouTubeIcon=function(v,e){return!v&&!e};
_.W.getLogoImageId=function(v){var e,d,E;return(v=(e=this.computeCustomLogo(v,this.isDarkTheme))==null?void 0:(d=e.thumbnails)==null?void 0:(E=d[0])==null?void 0:E.height)&&v%31===0?"custom-logo-with-padding":"custom-logo"};
lv.prototype.openPopupHandler_=lv.prototype.openPopupHandler_;lv.prototype.dataChanged_=lv.prototype.dataChanged_;_.c([_.M(_.ae.YtRendererstamperBehavior),_.w("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.c([_.f(),_.w("design:type",Boolean)],lv.prototype,"isDarkTheme",void 0);
_.c([_.f({computed:"computeCustomLogo(data, isDarkTheme)"}),_.w("design:type",Object)],lv.prototype,"customLogo",void 0);_.c([_.f({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.w("design:type",Object)],lv.prototype,"headerBackgroundImage",void 0);_.c([_.f(),_.w("design:type",Object)],lv.prototype,"data",void 0);_.c([_.f({computed:"computeHasHeader_(data)"}),_.w("design:type",Boolean)],lv.prototype,"hasHeader",void 0);
_.c([_.f({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.w("design:type",Object)],lv.prototype,"layoutStyle",void 0);_.c([_.f({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.w("design:type",Object)],lv.prototype,"popupSize",void 0);_.c([_.f({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],lv.prototype,"hasLogo",void 0);
_.c([_.f({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],lv.prototype,"hasCustomLogo",void 0);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lv.prototype,"dataChanged_",null);_.c([_.Kq("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],lv.prototype,"openPopupHandler_",null);
_.c([_.lh({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],lv);
_.A(lv,"yt-upsell-dialog-renderer",function(){if(RGs===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;fMw===void 0&&(fMw=document.createElement("template"));var E=fMw;d.call(e,E.content.cloneNode(!0),v.content.firstChild);RGs=v}v=RGs;return v},{mode:2});var Pot=_.l(function(v){return _.m("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.m(_.y,{cond:v.title,then:function(e){return _.m("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},e)}}))},"wh"),xBt=_.l(function(v){return _.m("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.m(_.kz,{data:v.closeButton},{buttonViewModel:function(e){return _.m("div",null,_.m(_.yi,{data:e.data}))}}))},"xh"),BR1=_.l(function(v){var e=v.data;
return _.m(_.eI,null,_.m("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.m("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.m(_.y,{cond:function(){return!!e().image&&!!e().title},
then:function(){return _.m(_.va,{data:function(){return e().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.m("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.m(_.y,{cond:function(){return e().title},
then:function(d){return _.m("h3",{class:"miniAppGameInfoDialogViewModelTitle"},d)}}),_.m(_.y,{cond:function(){return e().primaryGenre},
then:function(d){return _.m("span",{class:"miniAppGameInfoDialogViewModelGenre"},d)}}))),_.m(_.y,{cond:function(){var d=e().description;
return d&&d.length<=150},
then:function(){return _.m("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.m("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return e().description}))}}))},"yh"),Coi=_.l(function(v){v=v.infoRows;
var e=_.dk().resolve(_.Q6),d=_.N("enable_displaying_ppn");return _.m("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.m(_.jI,{each:v},function(E){return _.m("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.m(_.y,{cond:function(){return E.label},
then:function(T){return _.m("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},T)}}),_.m(_.y,{cond:function(){return E.attributedLabel},
then:function(T){return _.m("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.m(_.Dh,{text:T,noPreWrap:!0}))}}),_.m(_.y,{cond:function(){return E.value},
then:function(T){return _.m("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},T)}}),_.m(_.y,{cond:function(){return E.attributedValue},
then:function(T){return _.m("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.m(_.Dh,{text:T,noPreWrap:!0}))}}))}),_.m(_.y,{cond:function(){return d&&e.clientData.has("post_play_nonce")},
then:function(){return _.m("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.m("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.m("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},e.getData("post_play_nonce")))}}))},"zh"),XQS=_.l(function(v){var e=v.data;
return _.m("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.m(Pot,{title:function(){return e().dialogTitle}}),_.m(BR1,{data:e}),_.m(_.y,{cond:function(){return e().infoRow},
then:function(d){return _.m(Coi,{infoRows:d})}}),_.m(xBt,{closeButton:function(){return e().closeButton}}))},"Ah");
XQS.idomCompat=!0;_.aZ(XQS,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;return _.m("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.m(_.va,{data:function(){return e().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.m("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.m("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.m(_.y,{cond:function(){var d=e().ytLogo;return d?d.iconType:null},
then:function(d){return _.m(_.sG,{icon:d,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.m("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.m("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.m(_.Dh,{text:function(){return e().title}})),_.m("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.m(_.Dh,{text:function(){return e().body}})),_.m("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.m(_.Dh,{text:function(){return e().verifyStateText}}))),
_.m("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.m("div",null,_.m(_.kz,{data:function(){return e().dismissButton}},{buttonViewModel:_.yi})),_.m("div",null,_.m(_.kz,{data:function(){return e().linkParentButton}},{buttonViewModel:_.yi})))))},"Bh"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.U1}});var zGO=_.l(function(v){var e=v.data;v=_.e2(function(){return e().agreements},[]);
return _.m("installment-agreements-view-model",{class:_.qe("ytInstallmentAgreementsViewModelHost")},_.m(_.jI,{each:v},function(d){return _.m("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.m("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.m(_.Dh,{text:d.label})),_.m("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.m(_.kz,{data:function(){return d.openButton}},{buttonViewModel:_.yi})))}))},"Ch");
zGO.idomCompat=!0;var lMs=_.l(function(v){return _.m("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.m(_.Dh,{text:function(){return v.data().inviteMessage}})),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.m(_.Dh,{text:function(){return v.data().attributedAccountSectionHeaderText}})),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.m(_.kz,{data:function(){return v.data().accountAvatar}},{avatarViewModel:_.x7}),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.m(_.Dh,{text:function(){return v.data().accountName}}),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.m(_.Dh,{text:function(){return v.data().handle}}))),_.m(_.kz,{data:function(){return v.data().trailingButton}},{buttonViewModel:_.yi})),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.m(_.Dh,{text:function(){return v.data().termsOfService}})))},"Dh");var HTO=_.l(function(v){var e=_.a(_.KM(function(){var Q,v3;return((Q=v.data().createPlaylistDialogFormSchema)==null?0:(v3=Q.initialValues)==null?0:v3.title)?v.data().createPlaylistDialogFormSchema.initialValues.title:""})),d=e.next().value,E=e.next().value;
e=_.a(_.KM(function(){v.data();return!1}));
var T=e.next().value,S=e.next().value;e=_.a(_.KM(function(){v.data();return!1}));
var O=e.next().value,b=e.next().value;e=_.a(_.KM(function(){var Q,v3;return(Q=v.data().createPlaylistDialogFormSchema)==null?void 0:(v3=Q.initialValues)==null?void 0:v3.visibility}));
var Y=e.next().value,q=e.next().value;e=_.a(_.KM(function(){v.data();return!1}));
var r=e.next().value,h=e.next().value;e=_.a(_.KM(function(){var Q,v3;return(Q=v.data().createPlaylistDialogFormSchema)==null?void 0:(v3=Q.initialValues)==null?void 0:v3.isCollaborative}));
var K=e.next().value,k=e.next().value,J=_.nI("div");_.o_(function(){var Q=J.value.querySelector("textarea");Q&&(Q.value=d())},"OCauEe");
_.Gr(function(){var Q;_.d99((Q=v.data().createPlaylistDialogFormSchema)==null?void 0:Q.id,{onSubmit:function(){var v3=d();var q7=Y(),m0=K(),$S=v.data();v3={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:v3,privacyStatus:q7,videoIds:$S.videoIds,sourcePlaylistId:$S.sourcePlaylistId,params:m0?$S.createPlaylistParamsCollaborationEnabled:$S.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.dk().resolve(_.EI).resolveCommand(v3)},
isValid:function(){return T()&&!O()&&!r()}})});
var R=function(Q){if(Q!==void 0&&(E(Q),!T()&&Q.length>0&&S(!0),T())){var v3=u2O(v.data());if(v3){var q7=v3.minLength;v3=v3.maxLength;q7&&Q.length<q7?b(!0):v3&&Q.length>v3?b(!0):b(!1)}}},B=function(){var Q=!(!K()||Y()!=="PRIVATE");
h(Q)},X=function(Q){Q!==void 0&&(q(Q),B())},Z=function(){if(r())return DCt(v.data())},U=function(){k(!K());
B()},F=function(){return{validate:function(Q){if(T()){var v3=u2O(v.data());
if(v3){var q7=v3.minLength;v3=v3.translations;if(q7&&Q.length<q7)return v3==null?void 0:v3.minLengthErrorMessage}}}}},g=function(){var Q=u2O(v.data()),v3=Q==null?void 0:Q.maxLength,q7;
Q=Q==null?void 0:(q7=Q.translations)==null?void 0:q7.maxLengthErrorMessage;if(v3&&Q)return{maxChars:v3,errorMessage:Q}};
return _.m("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.m("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:J},_.m(_.kz,{data:function(){return v.data().playlistTitle}},{textFormFieldViewModel:function(Q){return _.m(_.HIf,{data:Q.data,
text:d,onInput:R,validation:F,characterLimit:g})},
textFieldViewModel:function(Q){return _.m(_.lq9,{data:Q.data,text:d,onInput:R,validation:F,characterLimit:g})}})),_.m("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.m(_.kz,{data:function(){return v.data().playlistVisibility}},{dropdownViewModel:function(Q){return _.m(_.DGf,{data:Q.data,
onSelected:X,error:Z})}})),_.m(_.y,{cond:function(){return!!v.data().playlistCollaborate},
then:function(){return _.m("div",null,_.m(_.kz,{data:function(){return v.data().playlistCollaborate}},{switchListItemViewModel:function(Q){return _.m(_.gYc,{data:Q.data,
onTap:U})}}))}}))},"Eh");var Apv=_.l(function(v){var e=v.data;return _.m("upsell-offer-table-cell-content-view-model",null,_.m("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.m(_.kc,null,_.m(_.sW,{when:function(){return e().iconType}},function(){return _.m("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.m(_.sG,{icon:function(){return e().iconType.toString()}}))}),_.m(_.sW,{when:function(){return e().title}},function(){return _.m(_.Dh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return e().title}})}),_.m(_.sW,{when:function(){return e().subtitle}},function(){return _.m(_.Dh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return e().subtitle}})}),_.m(_.sW,{when:function(){return e().infoText}},function(){return _.m(_.Dh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return e().infoText}})}),_.m(_.sW,{when:function(){return e().featureDescription}},function(){return _.m(_.Dh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return e().featureDescription}})}),_.m(_.sW,{when:function(){return e().note}},function(){return _.m(_.Dh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return e().note}})}))))},"Fh");
Apv.idomCompat=!0;var ZTs=_.l(function(v){var e=v.data;return _.m("upsell-offer-table-cell-view-model",null,_.m("div",{class:_.qe("ytUpsellOfferTableCellViewModelCellWrapper",function(){return e().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.m(_.kz,{data:function(){return e().contents}},{upsellOfferTableCellContentViewModel:Apv})))},"Gh");
ZTs.idomCompat=!0;var cp9=_.l(function(v){var e=v.data;var d=v.upsellTableIsFirstRow;var E=function(){return(d==null?0:d())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},T=function(){return(d==null?0:d())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.m("ytm-upsell-offer-table-row-view-model",null,_.m("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.m(_.kz,{data:function(){return e().rowHeaderCell}},{upsellOfferTableCellViewModel:function(S){return _.m("div",{class:E},_.m(ZTs,{data:S.data}))}}),_.m(_.kz,{data:function(){return e().contentCells}},{upsellOfferTableCellViewModel:function(S){return _.m("div",{class:T},_.m(ZTs,{data:S.data}))}})))},"Hh");
cp9.idomCompat=!0;var wQ9=_.l(function(v){var e=v.data;return _.m("ytm-upsell-offer-table-view-model",null,_.m("div",{class:"ytUpsellOfferTableViewModelHost"},_.m("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.m(_.kz,{data:function(){return e().rows}},{upsellOfferTableRowViewModel:function(d,E){return _.m(cp9,{data:d.data,
upsellTableIsFirstRow:function(){return E()===0}})}}))))},"Ih");
wQ9.idomCompat=!0;var FBs=_.l(function(v){var e=_.e2(v.noPadding,!1),d=function(){var S,O;return(O=(S=v.data().logo.accessibilityData)==null?void 0:S.label)!=null?O:""},E=function(){return v.data().offerTable},T={};
return _.m("upsell-view-model",{class:_.qe("ytUpsellViewModelHost",(T.ytUpsellViewModelHostNoPadding=function(){return e()},T.ytUpsellViewModelHostWide=function(){return E()!==void 0},T))},_.m("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.m(_.y,{cond:function(){return _.Zx(v.data().logo)},
then:function(S){return _.m(_.va,{data:S,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:d})}})),_.m("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.m(_.Dh,{text:function(){return v.data().title}})),_.m("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.m(_.jI,{each:function(){var S;
return(S=v.data().subtitles)!=null?S:[]},
keyBy:"INDEX"},function(S){var O={};return _.m("div",{class:_.qe("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(O.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return E()!==void 0},O))},_.m(_.Dh,{text:S}))})),_.m("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.m(_.jI,{each:function(){var S;
return(S=v.data().benefitInfos)!=null?S:[]},
keyBy:"INDEX"},function(S){return _.m(_.y,{cond:function(){return S().info},
then:function(O){return _.m("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.m(_.sG,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.m(_.Dh,{text:O}))}})})),_.m(_.y,{cond:function(){return E()!==void 0},
then:function(){return _.m("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.m(wQ9,{data:E}))}}),_.m("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.m(_.jI,{each:function(){var S;
return(S=v.data().legalInfos)!=null?S:[]},
keyBy:"INDEX"},function(S){var O={};return _.m("div",{class:_.qe("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(O.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return E()!==void 0},O))},_.m(_.Dh,{text:S}))})))},"Jh");var QVt=_.l(function(v){var e=v.data;v={};v=(v.ytMiniAppScoreChallengeViewModelScoreRadial=!0,v.ytMiniAppScoreChallengeViewModelDarkScoreRadial=UC9(),v);return _.m("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.m("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return e().title}),_.m("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return e().subtitle}),_.m("div",{class:_.tX(v)},_.m("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return e().score})),_.m("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return e().prompt}))},"Kh");var g4v=function(){this.store=_.pq();this.formId=""};
g4v.prototype.onInit=function(v){v.formId&&(this.formId=v.formId,this.store.dispatch(_.Oo({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var u3S=_.l(function(v){function e(b){if(b&&(b=_.L(b,_.o7)))return Object.assign({},b,{isSelected:S()})}
var d=_.a(_.KM(function(){var b,Y;return(Y=(b=_.L(v.data().option,_.o7))==null?void 0:b.isSelected)!=null?Y:!1})),E=d.next().value,T=d.next().value,S=E;
_.Gr(function(){var b;_.d99((b=v.data().formSchema)==null?void 0:b.id,{onSubmit:function(){var Y=_.dk().resolve(_.EI),q=!!v.data().selectedCommand,r=!!v.data().unselectedCommand;if(S()){if(q)var h=v.data().selectedCommand}else r&&(h=v.data().unselectedCommand);h=_.lk(h);e(v.data().option)&&!h?(Y="",!q&&r?Y="selected ":q&&!r&&(Y="unselected "),q=new _.kL("No "+Y+"command found for SelectionListItemFormViewModel"),_.RI(q)):h&&Y.resolveCommand(h)},
isValid:function(){return!0}})});
var O=function(){T(!S())};
_.Jf(function(){var b,Y,q=(b=v.data())==null?void 0:(Y=b.formSchema)==null?void 0:Y.id;q&&_.Xf0()().delete(q)});
return _.m("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.m("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.m(_.Dh,{text:function(){return v.data().paragraph}})),_.m(_.y,{cond:function(){return e(v.data().option)},
then:function(b){return _.m(_.X6,{data:b,isCompact:!0,hideSelectionTextChevron:!0,onTap:O,disableHorizontalPadding:!0})}}))},"Lh");var n49=_.l(function(v){var e=v.data;var d=v.disablePadding;var E=v.className;var T=_.nI("yt-dialog-header-view-model"),S=function(){var b=e().imageBanner;a:switch(e().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var Y="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:Y="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:b,style:Y,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},O=function(){return e().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.Gr(function(){var b=function(){_.b4(T.value,"yt-refit-popups-action")},Y;
(Y=T.value)==null||Y.addEventListener("image-loaded",b);_.Jf(function(){var q;(q=T.value)==null||q.removeEventListener("image-loaded",b)})});
v={};return _.m("yt-dialog-header-view-model",{el:T,class:_.qe(E,(v.ytDialogHeaderViewModelHost=!0,v.ytDialogHeaderViewModelHostDisablePadding=d,v))},_.m(_.y,{cond:function(){return e().imageBanner},
then:function(){var b={};return _.m("div",{class:_.qe(E,(b.ytDialogHeaderViewModelBanner=!0,b.ytDialogHeaderViewModelBannerFullBleed=O,b)),style:_.jM({"max-height":function(){return e().assetContainerMaxHeight!==void 0?e().assetContainerMaxHeight+"px":void 0}})},_.m(_.a3,{data:S,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.m(_.y,{cond:function(){return e().headerBlock},
then:function(){return _.m("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.m(_.kz,{data:function(){return e().headerBlock}},{contentPreviewImageViewModel:function(b){return _.m(_.a3,{data:b.data,
notifyOnLoaded:!0})}}))}}),_.m(_.y,{cond:function(){return e().customBanner},
then:function(b){return _.m("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.m(_.kz,{data:b},{avatarStackViewModel:_.Cj}))}}),_.m(_.y,{cond:function(){return e().headline},
then:function(b){return _.m("h2",null,_.m(_.Dh,{text:b,className:"ytDialogHeaderViewModelText"}))}}))},"Mh");
n49.idomCompat=!0;var DB1=_.l(function(v){var e=_.xVs(function(){return v.data().formId}),d=e.submitForm,E=e.isValid;
return _.m("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.m(_.kz,{data:function(){return v.data().panelFooter}},{panelFooterViewModel:function(T){return _.m(_.vR,{data:T.data,
disablePadding:!0,disablePrimaryButton:function(){return!E()},
onClickPrimaryButton:function(){d()}})}}))},"Nh");var UBQ=_.l(function(v){var e=function(){var d,E;return(E=(d=_.L(v.data().rendererContext,_.K6))==null?void 0:d.label)!=null?E:""};
return _.m("yt-dialog-image-content-view-model",{class:_.qe("ytDialogImageContentViewModelHost",v.className)},_.m(_.y,{cond:function(){return _.Zx(v.data().image)},
then:function(d){var E={};return _.m("div",{style:_.jM((E.width=(0,_.Pe)(function(){var T;return(T=v.data().imageMaxWidth)!=null?T:""}),E)),
class:"ytDialogImageContentViewModelImage"},_.m(_.va,{data:d,alt:e,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.m(_.Dh,{text:function(){return v.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Oh");var eyv=_.l(function(v){var e=_.dC(v,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),d=e.elRefCallback;v=e.iconWiz;var E=e.assetWiz,T=e.assetType,S=e.titleWiz,O=e.leadingActionHeaderWiz,b=e.trailingActionHeaderWiz,Y=e.headerPosition,q=e.contentWiz,r=e.buttonLayout,h=e.buttonStyle,K=e.primaryButtonWiz,k=e.secondaryButtonWiz,J=e.contentAlignment,R=e.isFullscreen,B=e.width,X=e.maxHeight,Z=e.isHeaderWizDefined,
U=e.headerWiz,F=e.isFooterWizDefined,g=e.footerWiz;e=_.nI("dialog-layout",function(Ct){d==null||d(Ct)});
var Q=E?function(){return E({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,v3=K?function(){var Ct={};
return K({buttonOverrides:function(){return{style:(h==null?void 0:h())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.qe((Ct["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ct["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(r==null?void 0:r())===0||(r==null?void 0:r())===2},Ct))})}:void 0,q7=k?function(){var Ct={};
return k({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.qe((Ct["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ct["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(r==null?void 0:r())===0||(r==null?void 0:r())===2},Ct))})}:void 0,m0=function(){return(!!S||!!O||!!b)&&Y()===0},$S={},kS={},N7={},As={};
return _.m("dialog-layout",{el:e,class:_.qe(($S["yt-spec-dialog-layout"]=!0,$S["yt-spec-dialog-layout--dialog-layout-fullscreen"]=R,$S["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!R()},$S["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return X()===1},$S["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(T==null?void 0:T())===1},$S)),
style:function(){return(B==null?void 0:B())!==void 0?"width: "+B+"px;":""}},v?_.m("div",{class:_.qe((kS["yt-spec-dialog-layout__dialog-layout-icon"]=!0,kS["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!E&&Y()===1},kS["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return J()===1},kS))},_.m(v,null)):null,_.m(_.y,{cond:Z,
then:function(){return U?_.m("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.m(U,null)):null},
else:function(){return _.m(_.eI,null,_.m(_.y,{cond:m0,then:function(){return _.m(pQv,{contentAlignment:J,LeadingActionHeader:O,TrailingActionHeader:b,Title:S,isAboveAsset:!!Q})}}),Q?_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.m(Q,null)):null)}}),_.m("div",{class:_.qe((N7["yt-spec-dialog-layout__dialog-layout-container"]=!0,N7["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(J==null?void 0:J())===1},N7["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!S&&!U||!!Q&&(Y==null?void 0:Y())===0},N7))},_.m(_.y,{cond:function(){return S&&!U&&(Y==null?void 0:Y())===1},
then:function(){return _.m(pQv,{contentAlignment:J,LeadingActionHeader:O,TrailingActionHeader:b,Title:S,isAboveAsset:!1})}}),q?_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.m(q,null))):null,_.m(_.y,{cond:F,
then:function(){return g?_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.m(g,null)):null}}),v3||q7?_.m(v$t,{footerClasses:_.qe((As["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,As["yt-spec-dialog-layout__dialog-layout-footer"]=!0,As["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(r==null?void 0:r())===2},As["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(r==null?void 0:r())===1},As)),
PrimaryButton:v3,SecondaryButton:q7}):null))},"Ph"),pQv=_.l(function(v){var e=_.dC(v,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),d=e.contentAlignment,E=e.LeadingActionHeader;v=e.Title;var T=e.TrailingActionHeader,S=e.isAboveAsset,O=e.enableLeadingActionHeader;e={};return _.m("div",{class:_.qe((e["yt-spec-dialog-layout__dialog-header-container"]=!0,e["yt-spec-dialog-layout__dialog-header"]=!0,e["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=S,e["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(d==null?void 0:d())===1&&O()},e))},_.m(_.y,{cond:function(){return O()},
then:function(){return E?_.m("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.m(E,null)):null}}),v?_.m("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.m(v,null)):null,T?_.m("div",null,_.m(T,null)):null)},"Qh"),v$t=_.l(function(v){var e=v.footerClasses;
var d=v.PrimaryButton;v=v.SecondaryButton;return _.m("div",{class:e},v?_.m(v,null):null,d?_.m(d,null):null)},"Rh");var dv1=_.l(function(v){var e=v.data;return _.m("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.m("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.m(_.kz,{data:function(){return e().avatar}},{avatarViewModel:_.x7})),_.m("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.m(_.Dh,{text:function(){return e().title}})),_.m(_.Dh,{text:function(){return e().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Sh");var E$_=_.l(function(v){var e=v.data;return _.m("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.m("div",{class:"ytAccessConfirmationViewModelContent"},_.m(_.kz,{data:function(){var d;return(d=e().avatar)!=null?d:e().dualAvatar}},{dualAvatarViewModel:function(d){return _.m(_.B4A,{data:d.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(d){return _.m(_.By,{data:d.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.m("h2",{class:"ytAccessConfirmationViewModelTitle"},_.m(_.Dh,{text:function(){return e().title}})),_.m(_.Dh,{text:function(){return e().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Th");var Tw1=_.l(function(v){var e=v.data;var d=void 0;v=_.a(_.KM(function(){var q;return((q=_.L(e().content,_.L8))==null?void 0:q.defaultSelectedKey)||""}));
var E=v.next().value,T=v.next().value,S,O=function(){T("");var q;(q=d)!=null&&q.store.dispatch(_.Oo({type:"RESET_COMMAND_MAP"}))};
_.Gr(function(){d=new g4v;window.addEventListener("yt-popup-closed",O)});
_.o_(function(){if(d&&S!==e().formId&&(d.onInit(e()),(S=e().formId)&&E())){var q=d,r={key:E()};r.command&&q.store.dispatch(uA9(S,r.command))}},"k6b6Qe");
_.Jf(function(){window.removeEventListener("yt-popup-closed",O)});
var b=function(q,r,h){r.key&&h&&r.key!==E()&&(T(r.key),d&&r.command&&d.store.dispatch(uA9(h,r.command)))},Y=function(){if(_.L(e().content,_.L8))return!(E==null?0:E())};
return _.m("yt-dialog-view-model",{class:_.qe("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.m(eyv,{headerWiz:function(){return _.m("span",{skip:!0},_.m(_.kz,{data:function(){return e().header}},{dialogHeaderViewModel:function(q){return _.m(n49,{data:q.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!e().header},
contentWiz:function(){return _.m("span",{skip:!0},_.m(_.kz,{data:function(){return e().customContent?e().customContent:e().content}},{basicContentViewModel:_.FfC,
createPlaylistDialogFormViewModel:HTO,collaborativePlaylistInviteMessageViewModel:lMs,miniAppScoreChallengeViewModel:QVt,radioButtonGroupViewModel:function(q){var r=q.data;return _.m(_.Bbt,{data:r,selectedKey:E,onSelected:b,groupName:function(){return r().formId}})},
selectionListItemFormViewModel:u3S,upsellViewModel:function(q){return _.m(FBs,{data:q.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:dv1,installmentAgreementsViewModel:zGO,accessConfirmationViewModel:E$_,listViewModel:function(q){return _.m(_.dlc,{data:q.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:UBQ}))},
footerWiz:function(){return _.m("span",{skip:!0},_.m(_.kz,{data:function(){return e().footer}},{panelFooterViewModel:function(q){return _.m(_.vR,{data:q.data,
disablePadding:!0,disablePrimaryButton:Y})},
formPanelFooterViewModel:DB1,formFooterViewModel:function(q){return _.m(_.th_,{data:q.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!e().footer}}))},"Uh");
Tw1.idomCompat=!0;_.aZ(Tw1,"yt-dialog-view-model",{props:{data:_.U1},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Spv=_.l(function(v){var e=v.data;v={};return _.m("yt-panel-header-view-model",{class:_.qe("yt-panel-header-view-model-wiz",(v["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!e().shouldHideDivider},v["yt-panel-header-view-model-wiz--compact"]=function(){return!!e().subtitle},v))},_.m("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.m(_.y,{cond:function(){return e().title},
then:function(d){return _.m(_.Dh,{text:d,className:"yt-panel-header-view-model-wiz__title"})}}),_.m(_.y,{cond:function(){return e().subtitle},
then:function(d){return _.m(_.Dh,{text:d,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.m("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.m(_.kz,{data:function(){return e().trailingButtons}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Vh");
Spv.idomCompat=!0;var Wni=_.l(function(v){var e=_.rq(function(S){var O;if((O=v.skipContentClick)==null?0:O.call(v))return!1;v.onContentWrapperClick(S);return!0}),d,E,T;
return _.m("div",{class:_.qe("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return v.isAnimating()?"transform: translateY("+v.currentY()+"px);transition: 0.2s":""}},(d=v.header)==null?void 0:d.call(v),_.m("div",{id:v.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.jM({"max-height":(0,_.Pe)(v.maxHeightForContentWrapper)}),"on:scroll":deS(v.onScroll),"on:touchmove":deS(function(S){return void S.stopPropagation()})},_.m("div",{el:{onRender:v.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":e},(E=v.body)==null?void 0:E.call(v))),(T=v.footer)==null?void 0:T.call(v))},"Wh");
Wni.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var asO=_.l(function(v){var e=_.e2(v.leadingLabel),d=_.e2(v.trailingLabel),E=_.e2(v.footerButtonType),T=function(){return e()||d()||v.hasPrimaryButton()||v.hasSecondaryButton()},S={},O=_.qe("yt-spec-bottom-sheet-layout__primary-button",(S["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return E()===0&&v.hasPrimaryButton()},S["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return E()===1&&v.hasPrimaryButton()},S["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return E()===2&&v.hasPrimaryButton()},S["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return E()===3&&v.hasPrimaryButton()},S));
S={};var b=_.qe("yt-spec-bottom-sheet-layout__secondary-button",(S["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return E()===1&&v.hasSecondaryButton()},S["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return E()===2&&v.hasSecondaryButton()},S["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return E()===3&&v.hasPrimaryButton()},S));
return _.m(_.y,{cond:v.hasFooterOverride,then:function(){var Y;return _.m(_.eI,null,(Y=v.footerOverride)==null?void 0:Y.call(v))},
else:function(){return _.m(_.y,{cond:T,then:function(){return _.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.m(_.y,{cond:function(){return e()||d()},
then:function(){var Y={};return _.m("div",{class:_.qe("yt-spec-bottom-sheet-layout__footer-label-wrapper",(Y["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!v.hasPrimaryButton()},Y))},_.m(_.y,{cond:e,
then:function(){return _.m("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},e)}}),_.m(_.y,{cond:d,
then:function(){return _.m("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},d)}}))}}),_.m(_.y,{cond:function(){return v.hasPrimaryButton()||v.hasSecondaryButton()},
then:function(){var Y={};return _.m("div",{class:_.qe("yt-spec-bottom-sheet-layout__footer-button-wrapper",(Y["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.n3I,Y))},_.m(_.y,{cond:function(){return v.hasSecondaryButton()&&E()!==0},
then:function(){var q;return _.m("div",{class:b},(q=v.secondaryButton)==null?void 0:q.call(v))}}),_.m(_.y,{cond:v.hasPrimaryButton,
then:function(){var q;return _.m("div",{class:O},(q=v.primaryButton)==null?void 0:q.call(v))}}))}}))}})}})},"Xh");
asO.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var ic9=_.l(function(v){var e=_.e2(v.title),d=_.e2(v.subtitle);return _.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:v.headerId,"on:touchstart":_.rq(function(E){var T;(T=v.touchstart)==null||T.call(v,E);return!1}),
"on:touchmove":_.rq(function(E){var T;(T=v.touchmove)==null||T.call(v,E);return!1}),
"on:touchend":_.rq(function(E){var T;(T=v.touchend)==null||T.call(v,E);return!1})},_.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.m(_.y,{cond:v.hasHeaderOverride,
then:function(){var E;return _.m(_.eI,null,(E=v.headerOverride)==null?void 0:E.call(v))},
else:function(){var E={};return _.m("div",{class:_.qe((E["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,E["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=e,E))},_.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.m(_.y,{cond:e,then:function(){return _.m(_.eI,null,_.m("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},e),_.m(_.y,{cond:d,then:function(){return _.m("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
d)}}))}})),_.m(_.y,{cond:function(){return e()&&v.hasActionHeader()},
then:function(){var T;return _.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(T=v.actionHeader)==null?void 0:T.call(v))}}))}}))},"Yh");
ic9.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.l(function(v){function e(Q){if(!X&&typeof MutationObserver!=="undefined"){var v3={childList:!0};"MutationObserver"in window&&(X=new MutationObserver(d.bind(void 0,Q)),X.observe(Q,v3))}}
function d(Q){typeof X!=="undefined"&&(Z["content-wrapper"]===void 0&&(Z["content-wrapper"]=Q.children[0].clientHeight),k(Z["content-wrapper"]),K()>J()||R(K()))}
function E(){h(window.innerHeight);K()>J()||R(K());U.isFullScreen[0]()&&K()>J()?F().dispatch("Snap To Full Screen",{maxHeight:B()}):F().dispatch("Snap To Neutral Position",{maxHeight:J()})}
function T(Q){document.body.style.overscrollBehavior="none";Q.preventDefault();F().dispatch("Touch Start",{event:Q})}
function S(Q){Q.preventDefault();F().dispatch("Touch Move",{event:Q,contentScrollable:K()>J(),fullContentWrapperHeight:B(),contentWrapperHeight:J(),contentHeightMap:Z,contentWrapperId:"content-wrapper",header:TqO(v),footer:TqO(v)})}
function O(){document.body.style.overscrollBehavior="";U.isFullScreen[0]()?U.currentY[0]()>=60?F().dispatch("Snap To Neutral Position",{maxHeight:J()}):F().dispatch("Snap To Full Screen",{maxHeight:B()}):U.currentY[0]()>=60?b():U.currentY[0]()<=-60&&K()>J()?F().dispatch("Snap To Full Screen",{maxHeight:B()}):F().dispatch("Snap To Neutral Position",{maxHeight:J()})}
function b(){F().dispatch("Close Sheet",{clientHeight:r(),maxHeight:0});setTimeout(function(){EjO()},250)}
var Y=_.a(_.OE(window.innerHeight,void 0,"NWeFS")),q=Y.next().value;Y=Y.next().value;var r=q,h=Y;Y=_.a(_.OE(0,void 0,"oxfm4"));q=Y.next().value;Y=Y.next().value;var K=q,k=Y;Y=_.a(_.KM(function(){var Q=TqO(v);return.6*r()-pzt(Q)-vji(Q)}));
q=Y.next().value;Y=Y.next().value;var J=q,R=Y,B=function(){var Q=TqO(v);return r()-pzt(Q)-vji(Q)-24-24},X=null,Z={},U={initialY:_.OE(0,void 0,"cYBE5c"),
currentY:_.OE(0,void 0,"RndqHc"),isAnimating:_.OE(!1,void 0,"vO9DVd"),isFullScreen:_.OE(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.KM(J)},F=function(){var Q=null;return function(){if(!Q){var v3={initialY:U.initialY[0](),currentY:U.currentY[0](),isAnimating:U.isAnimating[0](),isFullScreen:U.isFullScreen[0](),maxHeightForContentWrapper:U.maxHeightForContentWrapper[0]()};Q=egw(v3)}return Q}}();
_.Gr(function(){window.addEventListener("resize",E);F().subscribe(function(Q){U.initialY[1](Q.initialY);U.currentY[1](Q.currentY);U.isAnimating[1](Q.isAnimating);U.isFullScreen[1](Q.isFullScreen);U.maxHeightForContentWrapper[1](Q.maxHeightForContentWrapper)})});
_.Jf(function(){window.removeEventListener("resize",E);X&&(X.disconnect(),X=null)});
var g=_.qe({"bottom-sheet-content-without-icon":function(){var Q;return!((Q=v.shouldShowIcons)==null?0:Q.call(v))}});
return _.m("bottom-sheet-layout",null,_.m(Wni,{contentWrapperId:"content-wrapper",isAnimating:function(){return U.isAnimating[0]()},
currentY:function(){return U.currentY[0]()},
maxHeightForContentWrapper:function(){return U.maxHeightForContentWrapper[0]()},
shouldShowIcons:v.shouldShowIcons,skipContentClick:v.skipContentClick,onScroll:function(){var Q=document.getElementById("header-wrapper"),v3=document.getElementById("content-wrapper");if(Q&&v3){var q7={};q7=(q7["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,q7["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,q7);Q.className=v3.scrollTop>1?_.tX(q7):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:EjO,contentWrapperEl:function(Q){e(Q);requestAnimationFrame(function(){d(Q)})},
header:function(){return _.m(ic9,{touchstart:T,touchmove:S,touchend:O,title:v.headerTitle,subtitle:v.headerSubtitle,headerId:"header-wrapper",headerOverride:v.headerFn,hasHeaderOverride:v.hasHeaderFn,actionHeader:v.headerActionHeader,hasActionHeader:v.hasHeaderActionHeader})},
footer:function(){return _.m(asO,{footerButtonType:v.footerButtonType,leadingLabel:v.footerLeadingLabel,trailingLabel:v.footerTrailingLabel,primaryButton:v.footerPrimaryButton,hasPrimaryButton:v.hasFooterPrimaryButton,secondaryButton:v.footerSecondaryButton,hasSecondaryButton:v.hasFooterSecondaryButton,footerOverride:v.footerFn,hasFooterOverride:v.hasFooterFn})},
body:function(){return _.m(_.y,{cond:v.hasContentFn,then:function(){var Q;return _.m("div",{class:g},(Q=v.contentFn)==null?void 0:Q.call(v))}})}}))},"Zh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var OcQ=_.l(function(v){var e=_.dk().resolve(_.fE);return _.m("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.rq(function(){return void e.closeSheet()})},_.m(_.y,{cond:function(){return!!v.header},
then:function(){return _.m("div",{class:"ytContextualSheetLayoutHeaderContainer"},v.header())}}),_.m(_.y,{cond:function(){return!!v.content},
then:function(){return _.m("div",{class:"ytContextualSheetLayoutContentContainer"},v.content())}}),_.m(_.y,{cond:function(){return!!v.footer},
then:function(){return _.m("div",{class:"ytContextualSheetLayoutFooterContainer"},v.footer())}}))},"$h");
OcQ.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var Is9=_.l(function(v){v=v.data;var e=_.nI("yt-sheet-view-model",function(E){if(_.N("web_focus_first_element_sheet")||!_.N("sheet_focus_first_killswitch"))return E.addEventListener("focus",function(){y_9(E)}),function(){E.removeEventListener("focus",function(){y_9(E)})}}),d={};
return _.m("yt-sheet-view-model",{"on:mousedown":_.rq(function(E){_.N("sheet_focus_first_killswitch")||E.currentTarget!==E.target&&E.preventDefault()}),
"on:focus":_.rq(function(){_.N("sheet_focus_first_killswitch")||y_9(e.value)}),
class:_.qe("ytSheetViewModelHost",(d.ytSheetViewModelContextual=!0,d.ytSheetViewModelDisableBackdropFilter=_.N("web_disable_backdrop_filter"),d)),el:e,tabindex:-1},_.m(_.y,{cond:v,then:function(E){return _.m(OcQ,{header:function(){return _.m(_.kz,{data:function(){return E().header}},{panelHeaderViewModel:Spv})},
content:function(){return _.m(_.kz,{data:function(){return E().content}},{listViewModel:function(T){return _.m(_.dlc,{data:T.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:FBs,miniAppScoreChallengeViewModel:QVt})},
footer:function(){return _.m(_.kz,{data:function(){return E().footer}},{panelFooterViewModel:_.vR})}})}}))},"ai");
Is9.idomCompat=!0;_.aZ(Is9,"yt-sheet-view-model",{props:{data:_.U1}});var Ypi=_.l(function(v){var e=function(){var d;return(d=v.data().enableDebuggingFeatures)!=null?d:!1};
return _.m("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.m(_.jI,{each:function(){var d;return(d=v.data().stickers)!=null?d:[]}},function(d){return _.m(bcf,{data:function(){return d},
debugMode:e})}))},"bi"),bcf=_.l(function(v){var e=_.dC(v,{debugMode:!1}).debugMode,d=_.e2(function(){var Y;
return(Y=v.data().region)==null?void 0:Y.w},0),E=_.e2(function(){var Y;
return(Y=v.data().region)==null?void 0:Y.h},0),T=_.e2(function(){var Y;
return(Y=v.data().region)==null?void 0:Y.x},0),S=_.e2(function(){var Y;
return(Y=v.data().region)==null?void 0:Y.y},0),O=_.rq(function(){var Y=v.data().onTap;
Y&&_.wC(Y)}),b={};
return _.m("div",{class:_.qe("ytStoriesStickerLayerViewModelSticker",(b.ytStoriesStickerLayerViewModelDebugMode=e,b)),style:_.jM({width:function(){return 100*d()+"%"},
height:function(){return 100*E()+"%"},
left:function(){return 100*T()+"%"},
top:function(){return 100*S()+"%"},
"flex-direction":function(){return SGw(v.data().flexDirection)},
"justify-content":function(){return W89(v.data().justifyContent)},
"align-items":function(){return ayO(v.data().alignItems)}}),
"on:click":O},_.m(_.kz,{data:function(){return v.data().button||v.data().toggleButton}},{buttonViewModel:function(Y){return _.m(_.yi,{data:Y.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(Y){return _.m(_.fR,{data:Y.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ci");var yjv=_.l(function(v){var e=function(){return v.data()},d={},E=_.e2(function(){return e().backgroundColor},0),T=_.e2(function(){return e().actionButtons},[]),S=_.e2(function(){return e().stickerLayer},{}),O=function(){var Y,q;
return{animationRef:d,animationConfig:{autoplay:!1,loop:!1,path:(q=(Y=e().foregroundAnimation)==null?void 0:Y.url)!=null?q:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){v.navigateToNextItemOnLottieComplete()}}}},b=function(){var Y,q,r,h,K,k,J,R;
return{animationConfig:{autoplay:(k=(Y=e().backgroundAnimation)==null?void 0:(q=Y.settings)==null?void 0:q.autoplay)!=null?k:!1,loop:(J=(r=e().backgroundAnimation)==null?void 0:(h=r.settings)==null?void 0:h.loop)!=null?J:!1,path:(R=(K=e().backgroundAnimation)==null?void 0:K.url)!=null?R:"",name:"stories_item_background_animation"}}};
_.o_(function(){if(v.isVisible()){var Y;(Y=d.lottieEl)==null||Y.play();v.animationRef()&&(v.animationRef().lottieEl=d.lottieEl)}else{var q;(q=d.lottieEl)==null||q.stop()}},"Cbnkwd");
return _.m("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.jM({"background-color":function(){return _.w1(E())+";"}})},_.m("div",{class:"ytStoriesItemViewModelAssetContent"},_.m(_.y,{cond:function(){return!!e().backgroundAnimation},
then:function(){return _.m(_.jZ,{data:b,animationName:function(){return b().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.m(_.y,{cond:function(){return!!e().backgroundImage},
then:function(){return _.m(_.va,{data:function(){return e().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.m(_.y,{cond:function(){return!!e().foregroundAnimation},
then:function(){return _.m(_.jZ,{data:O,animationName:function(){return O().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.m(_.y,{cond:function(){return!!e().foregroundImage},
then:function(){return _.m(_.va,{data:function(){return e().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.m("div",{class:"ytStoriesItemViewModelTopShadow"}),_.m(_.kz,{data:function(){return S()}},{storiesStickerLayerViewModel:Ypi})),_.m("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.jM({"background-color":function(){return _.w1(E())}})},_.m("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.m(_.jI,{each:T},function(Y){return _.m(mvv,{data:function(){return Y},
pauseAutoNavigation:v.pauseAutoNavigation})}))))},"di"),qpC={style:"overlay",
type:"outline"},mvv=_.l(function(v){var e={};return _.m("div",{class:_.qe("ytStoriesItemViewModelActionButton",(e.ytStoriesItemViewModelStretchedActionButton=function(){return v.data().size==="STORIES_BUTTON_SIZE_STRETCH"},e)),
"on:click":_.rq(v.pauseAutoNavigation)},_.m(_.kz,{data:function(){return v.data().button}},{buttonViewModel:function(d){return _.m(_.yi,{data:d.data,
buttonOverrides:qpC})}}))},"ei");_.aZ(_.l(function(v){var e=function(){var m0;return(m0=v.data().startIndex)!=null?m0:0},d=_.a(_.KM(e)),E=d.next().value,T=d.next().value;
d=_.a(_.OE(!1,void 0,"O8yPf"));var S=d.next().value,O=d.next().value,b=function(){var m0;return(m0=v.data().storyItems)!=null?m0:[]},Y={},q=_.nI("yt-stories-viewer-view-model"),r=function(){return v.data().dismissButton},h=function(){var m0;
return _.lk((m0=_.L(r(),_.lx))==null?void 0:m0.onTap)},K=_.nI("div"),k,J,R=!1,B=function(){var m0;
(m0=k)==null||m0.cancel();k=X(E()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});k.onfinish=function(){var $S=_.L(b()[E()],mZQ),kS,N7;$S!=null&&$S.foregroundAnimation&&(($S==null?0:(kS=$S.foregroundAnimation)==null?0:kS.url)||($S==null?0:(N7=$S.foregroundAnimation)==null?0:N7.payload))||(E()!==b().length-1?(T(E()+1),B()):h()&&_.Hz(h()))}},X=function(m0){return K.value.children[m0].children[0]},Z=function(){for(var m0=0;m0<E();m0++)X(m0).style.transform=
"scaleX(1)"};
d=_.rq(function(){R||(S()?O(!1):(E()===b().length-1&&h()&&_.Hz(h()),X(E()).style.transform="scaleX(1)",E()!==b().length-1&&(T(E()+1),B())))});
var U=_.rq(function(){R||(S()?O(!1):(X(E()).style.transform="scaleX(0)",E()!==0&&T(E()-1),B()))}),F=function(){O(!0)},g=function(){X(E()).style.transform="scaleX(1)";
E()!==b().length-1?(T(E()+1),B()):h()&&_.Hz(h())},Q=_.rq(function(){R=!1;
J=setTimeout(function(){O(!0);R=!0},300)}),v3=_.rq(function(){clearTimeout(J);
R&&S()&&O(!1)});
_.o_(function(){if(S()){var m0;(m0=k)==null||m0.pause();var $S;($S=Y.lottieEl)==null||$S.pause()}else{var kS;(kS=k)==null||kS.play();var N7;(N7=Y.lottieEl)==null||N7.play()}},"CoaJZb");
_.o_(function(){Z();E()===e()&&B()},"h78u9b");
var q7=function(m0){m0.target===q.value&&(m0=h())&&_.Hz(m0)};
_.Gr(function(){Z();B();window.addEventListener("yt-popup-closed",q7)});
_.Jf(function(){clearTimeout(J);window.removeEventListener("yt-popup-closed",q7)});
return _.m("yt-stories-viewer-view-model",{el:q,class:_.qe("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.m("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.m("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":U,"on:mousedown":Q,"on:mouseup":v3,"on:mouseleave":v3}),_.m("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":d,"on:mousedown":Q,"on:mouseup":v3,"on:mouseleave":v3})),_.m("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.m(_.kz,{data:b},{storiesItemViewModel:function(m0,$S){var kS=m0.data;return _.m(_.y,{cond:function(){return Math.abs($S()-E())<=1},
then:function(){var N7={};return _.m("div",{class:_.qe("ytStoriesViewerViewModelStoryItem",(N7.ytStoriesViewerViewModelActiveStoryItem=function(){return $S()===E()},N7))},_.m(yjv,{data:kS,
pauseAutoNavigation:F,navigateToNextItemOnLottieComplete:g,isVisible:function(){return $S()===E()},
animationRef:Y}))}})}})),_.m("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:K},_.m(_.jI,{each:b},function(){return _.m("div",{class:"ytStoriesViewerViewModelProgressBar"},_.m("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.m("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.m(_.kz,{data:r},{buttonViewModel:_.yi})))},"fi"),"yt-stories-viewer-view-model",{props:{data:_.U1}});_.aZ(_.l(function(v){var e=v.data;var d=_.nI("yt-gen-ai-feedback-form-view-model"),E=[];return _.m("yt-gen-ai-feedback-form-view-model",{el:d,class:"ytGenAiFeedbackFormViewModelHost"},_.m(_.Dh,{text:function(){return e().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.m("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.m(_.kz,{data:function(){return e().feedbackChips}},{toggleButtonViewModel:function(T){var S=T.data;
return _.m(_.fR,{data:S,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(O){var b=S();b=_.L(b,_.Ay);b=_.L(b==null?void 0:b.defaultButtonViewModel,_.lx).trackingParams;O?E.push(b):(O=E.indexOf(b),O>-1&&E.splice(O,1))}})}})),_.m(_.Dh,{text:function(){return e().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.m("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.m(_.kz,{data:function(){return e().submitButton}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){iMS(d.value,E,e().uniqueId)}})}}),_.m(_.kz,{data:function(){return e().moreFeedbackButton}},{buttonViewModel:function(T){return _.m(_.yi,{data:T.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"gi"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.U1},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var HZ=function(){return _.P.apply(this,arguments)||this};
_.V(HZ,_.P);HZ.prototype.created=function(){Zvt(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(R1O);var v=_.dk().resolve(_.riQ);v&&(v.container=this.ytPopupContainerBehavior);if(v=_.dk().resolve(_.fE))v.container=this.ytPopupContainerBehavior;if(v=_.dk().resolve(_.Rj)){var e=this.ytPopupContainerBehavior;v.containerWasInjected?_.xf(Error("gj")):v.container=e}};
HZ.prototype.ensurePopupBelowPlayer=function(v,e){var d=_.dk().resolve(_.eG(_.v5));if(!d||!d.isOnWatch()||!_.dB())return!1;d=d.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Jk().height>d+this.getPopupHeight(v,e)?(v.style.top="auto",v.style.bottom="0px"):(v.style.top=d+"px",v.style.bottom="auto");return!0};
HZ.prototype.getPopupHeight=function(v,e){e&&(v.cachedPopupHeight=0);if(!v.cachedPopupHeight){e=0;var d=v.clientHeight,E=window.getComputedStyle(v);e+=parseInt(E.marginTop,10);e+=parseInt(E.marginBottom,10);v.cachedPopupHeight=d+e}return v.cachedPopupHeight};
HZ.prototype.getElement=function(v){return document.createElement(v)};
_.c([_.M(dHv.YtPopupContainerBehavior),_.w("design:type",Object)],HZ.prototype,"ytPopupContainerBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],HZ.prototype,"ytComponentBehavior",void 0);_.c([_.z({disableElementRegistration:!0,is:"ytd-popup-container"})],HZ);
_.A(HZ,"ytd-popup-container",function(){if(QJi!==void 0)return QJi;var v=document.createElement("template");_.G(v,"\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");v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);return QJi=v},{mode:1});var rjv;var hyi={};hyi.YtLogYpcFlowCommandsBehavior=[_.$M.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(v){_.L(v,fbi)&&(v=_.L(v,fbi))&&(v.serializedTransactionFlowLoggingParams?_.AQs(v.serializedTransactionFlowLoggingParams):v.serializedYpcCancelFlowLoggingParams?(v=v.serializedYpcCancelFlowLoggingParams)&&_.w8("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",v):v.serializedYpcResumeFlowLoggingParams?(v=v.serializedYpcResumeFlowLoggingParams)&&_.w8("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",v):v.serializedYpcPauseFlowLoggingParams?(v=v.serializedYpcPauseFlowLoggingParams)&&
_.w8("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",v):v.serializedYpcRefundFlowLoggingParams?(v=v.serializedYpcRefundFlowLoggingParams)&&cUQ("YPC_EVENT_TYPE_START",v):v.serializedYpcDeactivateFlowLoggingParams?(v=v.serializedYpcDeactivateFlowLoggingParams)&&_.w8("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",v):v.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(v=v.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.w8("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",v))},
handleLogYpcFlowDismiss_:function(v){_.L(v,tZ_)&&(v=_.L(v,tZ_),v.serializedTransactionFlowLoggingParams?_.ZjM(v.serializedTransactionFlowLoggingParams):v.serializedYpcCancelFlowLoggingParams?(v=v.serializedYpcCancelFlowLoggingParams)&&_.w8("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",v):v.serializedYpcResumeFlowLoggingParams?(v=v.serializedYpcResumeFlowLoggingParams)&&_.w8("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",v):v.serializedYpcPauseFlowLoggingParams?(v=
v.serializedYpcPauseFlowLoggingParams)&&_.w8("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",v):v.serializedYpcRefundFlowLoggingParams&&(v=v.serializedYpcRefundFlowLoggingParams)&&cUQ("YPC_EVENT_TYPE_CANCEL",v))}}];var Kn9={};Kn9.YtCancelRecurrenceBehavior=[_.cl.YtComponentBehavior,_.Zcn,{attached:function(){var v=this;VBv(this,function(e,d){return v.ypcCancelRecurrenceHandler(e,d)})},
ypcCancelRecurrenceHandler:function(v,e){var d=this;if(!e||!e.ypcCancelRecurrenceEndpoint)return!1;if(!e.ypcCancelRecurrenceEndpoint.params)return _.lg(Error("Hl")),!0;_.Xb(this.hostElement);var E=_.wq.instance,T=_.dk().resolve(_.eG(_.zo));E&&_.Fj(E,e)?_.Qw(E,e).then(function(S){d.ypcCancelRecurrenceSuccess_(v,e,{data:S})},function(S){d.ypcCancelRecurrenceFailure_(v,e,S)}).thenCatch(function(){_.lg(Error("Il"))}):T?T.requestDataForServiceEndpoint(e).then(function(S){d.ypcCancelRecurrenceSuccess_(v,
e,S)},function(S){d.ypcCancelRecurrenceFailure_(v,e,S)}).thenCatch(function(){_.lg(Error("Il"))}):_.lg(Error("Jl"));
return!0},
ypcCancelRecurrenceSuccess_:function(v,e,d){_.zU(this.hostElement);d.data||(d={data:d});d.data&&d.data.actions&&_.ya(this.hostElement,d.data.actions,this.hostElement);d.data.messageRenderer?FNS(e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(e=e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.w8("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",e);_.Iq(v,"yt-service-request-completed",d)},
ypcCancelRecurrenceFailure_:function(v,e,d){_.zU(this.hostElement);FNS(e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Iq(v,"yt-service-request-error",{error:d,params:[v,e]})}}];var $vw=function(v,e){_.dH.call(this,e)};
_.V($vw,ip9);var jRO={};jRO.YtCompleteTransactionBehavior=[_.cl.YtComponentBehavior,_.Zcn,{attached:function(){var v=this;VBv(this,function(e,d){return v.ypcCompleteTransactionHandler(e,d)})},
completeTransaction:function(v,e){var d=this;e={payments_payload:window.btoa(e.integratorData),buybucket_params:v.data.buybucketParams,offer_params:v.data.offerParams};var E=_.dk().resolve(_.zo),T=v.data.completeTransactionEndpoint,S=this.get("ypcCompleteTransactionEndpoint.actions",T);S&&_.ya(this.hostElement,S,this.hostElement);return(S=_.wq.instance)&&_.Fj(S,T)?_.Qw(S,T,e).then(function(O){return!O||(O==null?0:O.error)?(O=d.get("data.serializedTransactionFlowLoggingParams",v),_.f1(new $F("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
O))):{data:O}}).then(function(O){return d.handleCompleteTransactionSuccess_(O,v)},function(){return d.handleCompleteTransactionFailure_(v)}):E.requestDataForServiceEndpoint(T,e).then(function(O){return d.handleCompleteTransactionSuccess_(O,v)},function(){return d.handleCompleteTransactionFailure_(v)})},
handleCompleteTransactionSuccess_:function(v,e){v.data||(v={data:v});if(v.data.messageRenderer)return _.f1(new $vw(v.data.messageRenderer));if(v.data.trackingParams){var d=_.zz(),E=_.Xf();d&&E&&_.Qa(d,E,_.Jg(v.data.trackingParams))}e=this.get("data.serializedTransactionFlowLoggingParams",e);wFO(e);return _.qg(v)},
handleCompleteTransactionFailure_:function(v){v=this.get("data.serializedTransactionFlowLoggingParams",v);_.Uj("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",v);return _.f1(new $F("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",v))},
ypcCompleteTransactionHandler:function(v,e){var d=this;if(!e.ypcCompleteTransactionEndpoint)return!1;if(!e.ypcCompleteTransactionEndpoint.transactionParams)return _.lg(Error("Kl")),!0;e.ypcCompleteTransactionEndpoint&&e.ypcCompleteTransactionEndpoint.gtmData&&_.Rc(e.ypcCompleteTransactionEndpoint.gtmData);var E=_.dk().resolve(_.eG(_.zo));if(E){_.Xb(this.hostElement);var T=_.wq.instance;T&&_.Fj(T,e)?_.Qw(T,e).then(function(S){return!S||(S==null?0:S.error)?(S=d.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
e),_.f1(new $F("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",S))):{data:S}}).then(function(S){_.Iq(v,"yt-service-request-completed");
d.ypcCompleteTransactionSuccess_(e,S)},function(){return d.ypcCompleteTransactionFailure_(e)}):E.requestDataForServiceEndpoint(e).then(function(S){_.Iq(v,"yt-service-request-completed");
d.ypcCompleteTransactionSuccess_(e,S)},function(){return d.ypcCompleteTransactionFailure_(e)})}return!0},
ypcCompleteTransactionSuccess_:function(v,e){_.zU(this.hostElement);e.data||(e={data:e});_.b4(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);e.data.messageRenderer||e.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(v):(_.Rc('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",v));e.data.actions&&(v=dCC(e.data.actions),e=EJ_(e.data.actions),v.length&&_.mN(this.hostElement,
v),e.length&&_.ya(this.hostElement,e,this.hostElement))},
ypcCompleteTransactionFailure_:function(v){_.zU(this.hostElement);_.b4(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",v,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(v,e,d){if(e=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",e))e={serializedTransactionFlowLoggingParams:e},d&&(e.errorType=d),_.tI(v,e),_.fI()}}];var sRs={};sRs.YtEndpointHandlerWithYpcBehavior=[_.Zcn,_.$M.YtActionHandlerBehavior,[{openWalletDialog:function(v,e,d,E,T,S,O){var b=this,Y=_.gq();e=e.replace(/-/g,"+").replace(/_/g,"/");var q=_.LB().get("hl");_.zQ0(_.nr(_.po),e,Y.resolve,T,function(r){S&&S();Y.reject(r)},q,function(r){return b.onServerBackendAnalyticEvent_(v,d,r)},this.onDialogClose_.bind(this),E,O);
return Y.promise},
openFixFlowDialog:function(v,e,d,E){v=v.replace(/-/g,"+").replace(/_/g,"/");_.nr(_.po).openFixFlowDialog(v,e,d,E)},
onDialogClose_:function(){_.b4(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(v,e,d){_.Iq(v,"yt-commerce-action-init-done");e&&_.mN(this.hostElement,[e,{backend_analytics:d}])}}],
_.h5.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(v,e){v=this.get("data.nativeFlowEndpoint",e);e=this.get("data.fallbackEndpoint",e);v?_.mN(this.hostElement,[v]):e&&_.Iq(this.hostElement,"yt-navigate",{endpoint:e})}}],
Kn9.YtCancelRecurrenceBehavior,jRO.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 v=this;VBv(this,function(e,d,E){return v.handleYPCEndpoint(e,d,E)});
this.ypcRegisterActionMapJobId_=_.LI(_.RM,function(){v.registerActionMap(v.buyFlowActionMap_)})},
detached:function(){var v=this;_.RM.cancelJob(this.ypcRegisterActionMapJobId_);_.LI(_.RM,function(){v.unregisterActionMap(v.buyFlowActionMap_)})},
handleYPCEndpoint:function(v,e,d){var E=e.ypcGetCartEndpoint;if(E){_.Xq("commerce_transaction");var T=E.gtmId;T&&_.tb(T);(E=E.gtmData)&&_.Rc(E)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",e)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(v,e),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",e)!=null?(this.handleYPCFixInstrumentEndpoint_(v,e),!0):e.ypcPauseSubscriptionCommand?(hgf(this.hostElement,v,e,d),
!0):e.ypcResumeSubscriptionCommand?(jZv(this.hostElement,v,e),!0):e.getPaymentInstrumentsParamsCommand?(y8i(this.hostElement,v,e),!0):e.ypcHandleTransactionEndpoint?(YGs(this.hostElement,v,e,d),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(v,e){var d=this;_.zE("ttcr",void 0,"commerce_transaction");e=e.ypcGetCartEndpoint;var E=e.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,T=E.encryptedPurchaseParams,S=E.serializedTransactionFlowLoggingParams,O=E.serializedPaymentsClientParams,b=this.createGetCartResponseFromParams_(E,e.offerParams,S);this.changeButtonState(v,!0);_.j9(this.openWalletDialog(v,T,E.ypcLogWalletAnalyticDataEndpoint,S,function(){d.changeButtonState(v,!1)},function(){d.changeButtonState(v,
!1)},O).then(function(Y){return d.handleBuyFlowCompleteCallback_(v,b,Y)},function(){return d.handleOnLoadError(b)}).then(function(Y){return void d.handlePostPurchaseSuccess_(v,b,Y)},function(Y){return void d.handlePostPurchaseError_(Y)}),function(){d.changeButtonState(v,!1);
v instanceof Element&&_.Iq(v,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(v,e,d){var E=v.completeTransactionEndpoint,T=v.handleTransactionEndpoint;e={data:{offerParams:window.btoa(e),serializedTransactionFlowLoggingParams:d}};T?e.data.handleTransactionEndpoint=T:e.data.completeTransactionEndpoint=E;v.onCartDismissCommand&&(e.data.onCartDismissCommand=v.onCartDismissCommand);return e},
onGetCartServiceRequestCompleted_:function(v,e){var d=this,E=v.target;if(e&&e.data&&e.data.messageRenderer)_.zU(this.hostElement),this.handleMessageRenderer_(e.data.messageRenderer),this.changeButtonState(E,!1);else{var T=this.get("data.encryptedPurchaseParams",e),S=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",e),O=this.get("data.ypcLogWalletAnalyticDataEndpoint",e),b=this.get("data.serializedPaymentsClientParams",e),Y=this.getLoggingParams_(e);if(Y||T||S)v.stopPropagation(),_.zE("ttcr",
void 0,"commerce_transaction"),T||_.zU(this.hostElement),this.changeButtonState(E,!1),S?_.b4(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Bb("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:S}}},this]):T&&(this.changeButtonState(E,!0),v=null,v=this.openWalletDialog(E,T,O,Y,function(){_.zU(d.hostElement);d.changeButtonState(E,!1)},function(){_.zU(d.hostElement);
d.changeButtonState(E,!1)},b),_.j9(v.then(function(q){return d.handleBuyFlowCompleteCallback_(E,e,q)},function(){return d.handleOnLoadError(e)}).then(function(q){return d.handlePostPurchaseSuccess_(E,e,q)},function(q){return d.handlePostPurchaseError_(q)}),function(){d.changeButtonState(E,!1);
_.Iq(E,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(v,e){e&&e.endpoint&&e.endpoint.ypcGetCartEndpoint&&!e.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",e.endpoint.ypcGetCartEndpoint)&&_.ya(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",e.endpoint.ypcGetCartEndpoint)],v.target),_.Xb(this.hostElement),this.changeButtonState(v.target,!0))},
onServiceRequestError_:function(v,e){if(e&&e.params&&e.params.length){e=_.a(e.params);for(var d=e.next();!d.done;d=e.next())if((d=d.value)&&d.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",d.ypcGetCartEndpoint)&&_.ya(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",d.ypcGetCartEndpoint)],v.target);_.zU(this.hostElement);this.changeButtonState(v.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(v,e,d){var E=d.integratorData;return E==null||E===""||d.error!=null?(E=this.getLoggingParams_(e),String(d.error)==="-1"?(e.data.onCartDismissCommand&&_.ya(this.hostElement,[e.data.onCartDismissCommand],v),_.f1(new $F("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",E,!0))):_.f1(new $F("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",E))):e.data.handleTransactionEndpoint?mes(this.hostElement,e.data.handleTransactionEndpoint,{payments_payload:E,funds_guarantee_callback_client_data:d.integratorClientCallbackData}):
this.completeTransaction(e,d)},
handlePostPurchaseSuccess_:function(v,e,d){e=d.data;var E=!1,T,S;if(e&&((T=e.command)==null?0:(S=T.commandExecutorCommand)==null?0:S.commands)){var O,b;T=(O=e.command)==null?void 0:(b=O.commandExecutorCommand)==null?void 0:b.commands;for(O=0;O<T.length;O++)if(_.L(T[O],_.LOA)){E=!0;break}}E||(e&&e.gtmDatas&&e.gtmDatas.length?_.Rc(e.gtmDatas[0]):_.Rc('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));d.data&&d.data.actions&&(e=dCC(d.data.actions),d=EJ_(d.data.actions),e.length&&
_.mN(this.hostElement,e),d.length&&_.ya(this.hostElement,d,v))},
handlePostPurchaseError_:function(v){v&&v.payload&&v.payload.isUserDismiss||_.RI(Error("Ml"))},
handleOnLoadError:function(v){v=this.getLoggingParams_(v);return _.f1(new $F("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",v))},
getLoggingParams_:function(v){return this.get("data.serializedTransactionFlowLoggingParams",v)},
handleMessageRenderer_:function(v){var e=_.Rs(v,"renderer"),d=_.Bb("openPopupConfig");e==="confirmDialogRenderer"&&d&&_.b4(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:d.popupTypeMap[e],popup:v}},this])},
handleYPCFixInstrumentEndpoint_:function(v,e){var d=this,E=e.ypcFixInstrumentEndpoint;e=E.encryptedFixInstrumentParameters;this.logFixFopEvent_(E,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(v,!0);this.openFixFlowDialog(e,function(T,S){d.onFixFlowCompleteCallback_(E,T,S)},function(){return d.changeButtonState(v,!1)},function(){d.changeButtonState(v,!1);
d.logFixFopEvent_(E,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(v,e,d){var E=_.AE("payments.business.integration.scenario.FixInstrument");if(e==E.IntegratorCallbackType.ON_COMPLETE){e="FIX_FOP_EVENT_TYPE_CANCEL";var T=null;d.error!=null?d.error!=E.OnCompleteCallbackError.USER_CANCELLED&&(_.ya(this.hostElement,[v.errorAction],this.hostElement),e="FIX_FOP_EVENT_TYPE_FAILURE",T="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.ya(this.hostElement,[v.successAction],this.hostElement),e="FIX_FOP_EVENT_TYPE_SUCCESS");_.ya(this.hostElement,[v.onFinishAction],
this.hostElement);this.logFixFopEvent_(v,e,T)}},
logFixFopEvent_:function(v,e,d){(v=v.serializedFixFopLoggingParams)?(e={eventType:e,serializedFixFopLoggingParams:v},d!=null&&(e.errorType=d),_.tI("fixFopFlow",e),_.fI()):_.RI(Error("Nl"))},
changeButtonState:function(v,e){_.N("enable_ypc_spinners")&&v&&(v.is==="yt-button-renderer"||v.is==="ytd-button-renderer")&&(v.disabled=e)}}];var Nwv=function(v){this.JSC$32297_clientRoot=v;this.feedbackCollectorActionMap={"yt-help-dialog-requested":NqC,"yt-feedback-dialog-requested":sZS,"yt-signal-action-help":kI9,"yt-signal-action-send-feedback":L8s,"yt-send-feedback-action":oji,"yt-user-feedback-endpoint":J8v};_.Qf(_.FT.getInstance(),this.feedbackCollectorActionMap,this.JSC$32297_clientRoot)},kmv;var Ln1=function(v){this.JSC$32302_clientRoot=v;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":GIC.bind(null,this.JSC$32302_clientRoot),"yt-signal-action-delete-all-downloads":tMt,"yt-signal-action-delete-download":fys,"yt-signal-action-delete-playlist-download":P29,"yt-signal-action-install-pwa":lys,"yt-signal-action-refresh-downloads":Xaf,"yt-offline-video-endpoint":A8s,"yt-offline-playlist-endpoint":c8f,"yt-update-local-app-setting-command":F8s,"yt-offline-orchestration-action-command":gjw,
"yt-signal-action-undo-delete-download":Bq9,"yt-local-watch-history-command":DeQ};_.Qf(_.FT.getInstance(),this.downloadManagerActionMap,this.JSC$32302_clientRoot);_.Bv.instance=new _.Bv},V3v;var AN=function(){var v=_.P.apply(this,arguments)||this;v.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_"};v.remoteApi_=null;return v};
_.V(AN,_.P);_.W=AN.prototype;
_.W.ready=function(){_.N("polymer_enable_mdx")&&(PO9({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.N("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.N("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.N("enable_cast_short_lived_lounge_token")}),_.il("yt-remote-connection-change",this.handleConnectionChange_,this),_.il("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=HEv())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.W.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.W.handleConnectionChange_=function(v){(this.mdxConnected=v)?(v=COv(),!v&&Hqt()&&AGt()&&(v={key:"cast-selector-receiver",name:AGt()}),v=v.name):v=null;this.receiverName=v;_.p0(this.remoteApi_);(this.remoteApi_=HEv())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.W.handleReceiverAvailabilityChange_=function(){var v=BY1();Hqt()&&_.yy("yt-remote-cast-available")&&v.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=v.length>0};
_.W.handleRemoteQueueChange_=function(){var v=this.currentVideoId_,e=this.currentListId_,d=k6(this.remoteApi_);this.currentVideoId_=d.videoId;this.currentListId_=d.listId;this.currentVideoId_&&_.b4(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.N("polymer_enable_mdx_queue")?this.currentListId_:null,v,e])};
_.W.handleAddToQueueAction_=function(v){v=_.L(v,y59);this.remoteApi_&&(v.videoId?this.remoteApi_.addVideo(v.videoId):v.playlistId&&this.remoteApi_.addPlaylist(v.playlistId))};
_.W.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.W.handleInsertInQueueAction_=function(v){v=_.L(v,qe1);this.remoteApi_&&v.videoId&&this.remoteApi_.JSC$19771_insertVideo(v.videoId)};
_.W.handleRemoveFromQueueAction_=function(v){v=_.L(v,r5S);this.remoteApi_&&v.videoId&&this.remoteApi_.JSC$19771_removeVideo(v.videoId)};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],AN.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f(),_.w("design:type",Object)],AN.prototype,"appId",void 0);_.c([_.f(),_.w("design:type",Boolean)],AN.prototype,"mdxConnected",void 0);_.c([_.f(),_.w("design:type",Boolean)],AN.prototype,"receiverAvailable",void 0);_.c([_.f(),_.w("design:type",Object)],AN.prototype,"receiverName",void 0);_.c([_.f(),_.w("design:type",Object)],AN.prototype,"currentVideoId_",void 0);
_.c([_.f(),_.w("design:type",Object)],AN.prototype,"currentListId_",void 0);_.c([_.lh({is:"yt-mdx-manager",disableElementRegistration:!0})],AN);_.A(AN,"yt-mdx-manager",void 0,{mode:2});var o$s;var Jjs;var Z1=function(){var v=_.P.apply(this,arguments)||this;v.APP_IDS={ytr:3,ytm:5};v.JSC$20978_timeoutId_=0;v.actionMap={"yt-open-create-family-dialog":"open"};return v};
_.V(Z1,_.P);_.W=Z1.prototype;_.W.created=function(){Zvt(2200)};
_.W.detached=function(){this.observer_&&this.observer_.disconnect()};
_.W.open=function(v,e){var d=this,E=v.serializedYpcFamilyCreateLoggingParams;this.JSC$20978_timeoutId_=setTimeout(this.abort_.bind(this,v.postFlowErrorEndpoint,E),3E4);e&&(this.onReadyCallback_=e);var T=_.IB(this.hostElement).querySelector("#unicorn-iframe");E&&E&&ZBv("ypcFamilyCreateFlowStarted",E);_.J4H("family_creation",function(){var S=_.AE("gapi.family_creation.render");_.AE("gapi.config.update")("iframes/family_creation/url",d.getFamilyCreationUrlWithUnicornParams_());var O=3;v.appId&&v.appId in
d.APP_IDS&&(O=d.APP_IDS[v.appId]);O={authUser:_.Bb("SESSION_INDEX")||0,clientId:O,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Bb("HL"),initialflow:[4,5,6,7],m:d.isMobile?1:0,onFlowComplete:d.onUnicornFlowComplete_.bind(d,v.postFlowSuccessEndpoint,E),onError:d.onUnicornFlowError_.bind(d,v.postFlowErrorEndpoint,E),onReady:d.onUnicornFlowReady_.bind(d,v.referencePcidParams)};S(T,O)})};
_.W.close=function(){_.IB(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.W.onUnicornFlowComplete_=function(v,e){this.close();e&&e&&ZBv("ypcFamilyCreateFlowSucceeded",e);_.Iq(this.hostElement,"yt-navigate",{endpoint:v})};
_.W.onUnicornFlowError_=function(v,e){this.close();e&&ZBv("ypcFamilyCreateFlowCancelled",e);_.Iq(this.hostElement,"yt-navigate",{endpoint:v})};
_.W.onUnicornFlowReady_=function(v){var e=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();v&&_.AE("gapi.family_creation.setConfig")(0,v);this.observer_=new MutationObserver(function(){_.IB(e.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.IB(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.IB(this.hostElement).querySelector("#dialog").open()};
_.W.getFamilyCreationUrlWithUnicornParams_=function(){return _.Bb("YTR_FAMILY_CREATION_URL")};
_.W.getCurrentUrl_=function(){return document.location.href};
_.W.abort_=function(v,e){this.clearTimeout_();this.onUnicornFlowError_(v,e)};
_.W.clearTimeout_=function(){clearTimeout(this.JSC$20978_timeoutId_)};
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],Z1.prototype,"ytActionHandlerBehavior",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],Z1.prototype,"isMobile",void 0);_.c([_.f(),_.w("design:type",Object)],Z1.prototype,"onReadyCallback_",void 0);_.c([_.f(),_.w("design:type",Object)],Z1.prototype,"observer_",void 0);_.c([_.lh({is:"yt-create-family-dialog",disableElementRegistration:!0})],Z1);
_.A(Z1,"yt-create-family-dialog",function(){if(Jjs===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);var e=v.content,d=e.insertBefore;o$s===void 0&&(o$s=document.createElement("template"));var E=o$s;d.call(e,E.content.cloneNode(!0),v.content.firstChild);Jjs=v}v=Jjs;return v},{mode:2});var Gmv;var M3S;var cZ=function(){var v=_.P.apply(this,arguments)||this;v.STEP=1;v.BLOCK_ON=80;v.MIN_PROGESS=0;v.MAX_PROGESS=100;return v};
_.V(cZ,_.P);_.W=cZ.prototype;_.W.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.W.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));_.dk().addProvider({provide:rQs,useValue:this})};
_.W.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.W.finish=function(){var v=this;this.progress=this.MAX_PROGESS;Uev(function(){v.progress==v.MAX_PROGESS&&(v.hostElement.hidden=!0)})};
_.W.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.vP.Object.defineProperties(cZ.prototype,{progress:{configurable:!0,enumerable:!0,set:function(v){this.progress_=v;var e="scaleX("+v/this.MAX_PROGESS+")",d=_.IB(this.hostElement).querySelector("#progress").style;d.transform=e;d.webkitTransform=e;this.hostElement.setAttribute("aria-valuenow",String(v))},
get:function(){return this.progress_}}});
_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],cZ.prototype,"ytComponentBehavior",void 0);_.c([_.lh({is:"yt-page-navigation-progress",disableElementRegistration:!0})],cZ);
_.A(cZ,"yt-page-navigation-progress",function(){if(M3S===void 0){var v=document.createElement("template");_.G(v,'\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');v.content.insertBefore(_.u().content.cloneNode(!0),
v.content.firstChild);var e=v.content,d=e.insertBefore;Gmv===void 0&&(Gmv=document.createElement("template"));var E=Gmv;d.call(e,E.content.cloneNode(!0),v.content.firstChild);M3S=v}v=M3S;return v},{mode:2});var t3C={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"},fsi={"font-size":"12px","font-style":"italic"},Ryi={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.dPS=function(){return _.I(function(v){_.s9(v)})};var PNs=_.l(function(v){var e=function(){return v.data().subtext},d={};
return _.m("snackbar-view-model",{class:_.qe("snackbarViewModelHost",v.className)},_.m("div",{class:_.qe("snackbarViewModelEngagementBarWrapper",v.className)},_.m(_.y,{cond:function(){return v.data().image},
then:function(E){return _.m(_.va,{data:E,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.m(_.y,{cond:function(){return v.data().imageContent},
then:function(){return _.m("div",{class:"snackbarViewModelAvatarContainer"},_.m(_.kz,{data:function(){return v.data().imageContent}},{decoratedAvatarViewModel:_.By}))}}),_.m("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.m("div",{class:_.qe((d.snackbarViewModelTitle=!0,d.snackbarViewModelTitleWithSubtext=e,d))},_.m(_.Dh,{text:function(){return v.data().text}})),_.m(_.y,{cond:e,
then:function(){return _.m("div",{class:"snackbarViewModelSubtext"},_.m(_.Dh,{text:function(){return e()}}))}})),_.m(_.y,{cond:function(){return v.data().buttons},
then:function(){return _.m("div",{class:"snackbarViewModelButtonClassWrapper"},_.m(_.kz,{data:function(){return v.data().buttons}},{buttonViewModel:function(E){return _.m(_.yi,{data:E.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:v.target})}}))}})))},"hi");_.aZ(_.l(function(){function v(Z,U,F){J(Z);B(F);K("in");r(!0);e(Z,U);O=setTimeout(function(){d()},U)}
function e(Z,U){var F,g=(F=Z.text)==null?void 0:F.content;Z=_.P5(Z.rendererContext);g&&(U={label:g,command:Z,durationMs:U},_.dk().resolve(_.Jq).enqueue(U))}
function d(Z){K("out");Z&&clearTimeout(O)}
function E(){d(!0)}
function T(Z){if(Z){var U=Z.snackbarViewModel,F=Z.durationMs,g=Z.target;F||(F=3E3);U&&(Z=_.dk().resolve(_.eG(_.NM)))&&Z.enqueue({isOpened:q,open:function(){v(U,F,g)},
close:d},0)}}
var S=_.Dq("snackbar-container"),O=void 0,b=_.a(_.OE(!1,void 0,"jJ4tBf")),Y=b.next().value;b=b.next().value;var q=Y,r=b;Y=_.a(_.OE("out",void 0,"M6Rbpb"));var h=Y.next().value,K=Y.next().value;Y=_.a(_.OE(void 0,void 0,"aFswib"));var k=Y.next().value,J=Y.next().value;Y=_.a(_.OE(void 0,void 0,"mlWWhb"));var R=Y.next().value,B=Y.next().value,X=_.rq(function(){if(h()==="out"){r(!1);J(void 0);B(void 0);var Z=_.dk().resolve(_.eG(_.NM));Z&&eow(Z,0)}});
_.Gr(function(){var Z=_.dk().resolve(_.eG(_.z$f));Z&&(Z.showSnackbarFn=T,Z.closeSnackbarFn=E)});
return _.m("snackbar-container",{class:"ytSnackbarContainerHost",el:S},_.m(_.y,{cond:function(){return q()&&!!k()},
then:function(){var Z={};return _.m("div",{class:_.qe("ytSnackbarContainerSnackbarContainer",(Z.ytSnackbarContainerMobile=!1,Z.ytSnackbarContainerPivotBar=function(){var U;return!((U=_.dk().resolve(_.eG(_.ltQ)))==null||!U())},Z.ytSnackbarContainerOpened=function(){return q()&&h()==="in"},Z.ytSnackbarContainerClosed=function(){return q()&&h()==="out"},Z)),
"on:animationend":X},_.m(PNs,{data:function(){return k()},
target:function(){return R()}}))}}))},"ii"),"snackbar-container");_.aZ(_.ZLn,"yt-tooltip");var xvs=_.EsO.ephemeralActionSelector;_.aZ(_.l(function(){var v=_.Xj(xvs);return _.m("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var e;return(e=v())==null?void 0:e.announcement})},"ji"),"yt-ephemeral-actions");var j7v=new Map;var N3C=function(v,e){var d=this;this.handleError=v;this.logEventInternal=e;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){d.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
N3C.prototype.logError=function(v){this.handleError(v)};
N3C.prototype.logEvent=function(v,e){switch(v){case "IDB_DATA_CORRUPTED":_.N("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",e);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",e);break;case "IS_SUPPORTED_COMPLETED":_.N("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",e);break;case "QUOTA_EXCEEDED":BwC(this,e);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",e);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":v=Object.assign({},e,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",v)}};
var BwC=function(v,e){_.tq.getInstance().estimate().then(function(d){d=Object.assign({},e,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:NBt(d==null?void 0:d.usage),deviceStorageQuotaMbytes:NBt(d==null?void 0:d.quota)});v.logEventInternal("idbQuotaExceeded",d)})};var CNS=_.l(function(v){var e=_.nI("yt-draggable"),d=v.onDrag,E=v.onDragStart,T=v.onDragEnd,S=_.dC(v,{allowClicks:!1,dragThreshold:5}),O=S.dragThreshold,b=S.allowClicks;v=S.children;S=S.className;var Y=void 0,q=void 0,r=new _.Pn(0,0),h=!1;_.Gr(function(){Y=new _.R9(e.value);q=new _.Ew(k);K(Y,q);if(b()){_.WYJ(Y,O());var R;(R=e.value)==null||R.addEventListener("click",J,{capture:!0})}_.Jf(function(){var B;(B=Y)==null||B.dispose();if(b()){var X;(X=e.value)==null||X.removeEventListener("click",J,{capture:!0})}})});
var K=function(R,B){_.MC(R,"earlycancel",function(){b()&&(h=!1)});
_.MC(R,"start",function(X){E==null||E(X);X.defaultPrevented||b()&&(h=!0)});
_.MC(R,"beforedrag",function(X){Y&&q&&(X.preventDefault(),r=new _.Pn(X.clientX-Y.startX,X.clientY-Y.startY),q.start())});
_.MC(R,"end",function(){B.stop();T==null||T();r=new _.Pn(0,0)})},k=function(){r&&d(r)},J=function(R){h&&(h=!1,R.stopPropagation(),R.preventDefault())};
return _.m("yt-draggable",{el:e,class:_.qe("ytDraggableComponentHost",S)},v)},"ki");var Xts=_.l(function(v){var e=_.a(_.OE(0,void 0,"CvAwBd")),d=e.next().value,E=e.next().value;e=function(T){var S={},O={};return _.m(CNS,{className:_.qe("ytdMiniplayerComponentResizer",(S.ytdMiniplayerComponentResizerDisabled=function(){return T===v.horizontalAlignment()||T===v.verticalAlignment()},S.ytdMiniplayerComponentResizerNorth=T==="north",S.ytdMiniplayerComponentResizerEast=T==="east",S.ytdMiniplayerComponentResizerSouth=T==="south",S.ytdMiniplayerComponentResizerWest=T==="west",S)),
onDragStart:function(){E(v.currentMiniplayerSize());if(v.onResizeStart)v.onResizeStart()},
onDrag:function(b){T!=="north"&&T!=="west"||b.scale(-1);var Y;b=(Y=T==="north"||T==="south")?b.y:b.x;var q=v.currentAspectRatio();Y&&q>=1?b*=q:!Y&&q<1&&(b/=q);Y=b;v.onResize(d()+Y)}},_.m("div",{class:_.qe("ytdMiniplayerComponentResizerCorner",(O.ytdMiniplayerComponentResizerNorthCorner=T==="north",O.ytdMiniplayerComponentResizerEastCorner=T==="east",O.ytdMiniplayerComponentResizerSouthCorner=T==="south",O.ytdMiniplayerComponentResizerWestCorner=T==="west",O))}))};
return _.m("div",{class:"ytdMiniplayerComponentResizers"},e("north"),e("east"),e("south"),e("west"))},"li");var zyw=16/9;_.aZ(_.l(function(){var v=_.nI("ytd-miniplayer"),e=_.a(_.OE(new _.$x(NaN,NaN),void 0,"GNXZTe")),d=e.next().value,E=e.next().value;e=_.a(_.OE(!1,void 0,"XqI9xc"));var T=e.next().value,S=e.next().value;e=_.a(_.OE(!1,void 0,"k3iLGe"));var O=e.next().value,b=e.next().value;e=_.a(_.OE(!1,void 0,"ApjQ9b"));var Y=e.next().value,q=e.next().value;e=_.a(_.OE(!1,void 0,"PzlhGe"));var r=e.next().value,h=e.next().value;e=_.a(_.OE(!1,void 0,"pm6fl"));var K=e.next().value,k=e.next().value;e=_.a(_.OE(!1,void 0,"xQrL1e"));
var J=e.next().value,R=e.next().value;e=_.a(_.OE(zyw,void 0,"NcrWZb"));var B=e.next().value,X=e.next().value,Z=_.a(_.OE(!1,void 0,"e5rxBc"));e=Z.next().value;var U=Z.next().value;Z=_.a(_.OE(!1,void 0,"uZtCde"));var F=Z.next().value,g=Z.next().value;Z=_.a(_.OE(void 0,void 0,"wKFvEe"));var Q=Z.next().value,v3=Z.next().value;Z=_.a(_.OE(_.Bb("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var q7=Z.next().value,m0=Z.next().value;Z=_.a(_.OE("south",void 0,"QXcssb"));var $S=Z.next().value,kS=Z.next().value;
Z=_.a(_.OE(400,void 0,"Fr8gSb"));var N7=Z.next().value,As=Z.next().value,Ct=_.dk().resolve(_.P0).miniplayerPropSignalMap[0],SA=Ct.data,xI=Ct.externalPlaylistData;Z=Ct.toastData;var mg=Ct.playabilityStatus,pt=Ct.isReadyToResume,he=Ct.isDisabled,yB=Ct.watchWhile,te=Ct.playerVe,oC=Ct.expandVe,n7=Ct.closeVe,SW=Ct.readyToResumeVe,vc=Ct.readyToResumeCloseVe,jA=Ct.repositionVe,Ys=Ct.resizeVe;Ct=_.a(_.KM(pt));var s6=Ct.next().value,es=Ct.next().value,TM=!1,vO=!1,IE;_.Gr(function(){E(_.Jk());v.value.addEventListener("animationend",
function(Ae){Ae.target===v.value&&(k(!1),R(!1))});
Gni(v.value)});
_.ul("yt-window-resized",function(Ae){Ae&&E(Ae)});
var gn=function(){IE&&X(IE.getVideoAspectRatio())},hi=function(){if(IE){var Ae=IE.getPlayerState()===1;
s6()&&Ae&&es(!1)}},Je=function(){var Ae=oC();
if(Ae){var f9=_.zz(3);f9&&_.Uz(f9,Ae)}},G2=function(){var Ae=n7(),f9=vc();
Ae&&_.Uz(_.zz(3),Ae);pt()&&f9&&_.Uz(_.zz(3),f9)};
_.ul("yt-activate-miniplayer",function(Ae){var f9;return _.I(function(w9){if(w9.nextAddress==1)return T()?w9.return():w9.yield((f9=_.dk().resolve(_.P0).getPlayerElement())==null?void 0:f9.getPlayerPromise(),2);IE=w9.yieldResult;if(!IE)return w9.return();!F()&&_.N("kevlar_watch_while_v2")&&(kS(Ae&&!_.N("kevlar_watch_while_bottom_align")?"north":"south"),m0(_.Bb("HTML_DIR")==="rtl"?"west":"east"));var a$=IE;a$.addEventListener("onVideoDataChange",gn);a$.addEventListener("onStateChange",hi);a$.addEventListener("onExpandMiniplayer",
Je);a$.addEventListener("onCloseMiniplayer",G2);X(IE.getVideoAspectRatio());S(!0);JXf()||k(!0);_.s9(w9)})});
_.ul("yt-deactivate-miniplayer",function(Ae){return _.I(function(f9){if(!T())return f9.return();S(!1);es(!1);R(Ae);h(!1);b(!1);if(IE){var w9=IE;w9.removeEventListener("onVideoDataChange",gn);w9.removeEventListener("onStateChange",hi);w9.removeEventListener("onExpandMiniplayer",Je);w9.removeEventListener("onCloseMiniplayer",G2)}JXf()||k(!0);_.s9(f9)})});
var si=function(){return!(yB()&&_.N("kevlar_watch_while_modern"))},Ya=function(){var Ae;
return!((Ae=xI())==null||!Ae.contents)},r9=function(){var Ae=N7();
var f9=d();f9=Math.min(Math.min(f9.width,f9.height)-32,720);var w9=B(),a$=si(),uR=Ya()&&O(),T8=Math.min(Ae,f9);Ae=new _.$x(192,a$?116:192);w9=new _.$x(uR?zyw:w9,1);T8=new _.$x(T8,a$?T8-76:T8);T8=w9.aspectRatio()>T8.aspectRatio()?T8.width/w9.width:T8.height/w9.height;w9=w9.scale(T8);Ae.width<=w9.width&&Ae.height<=w9.height||(Ae=w9.aspectRatio()<=Ae.aspectRatio()?Ae.width/w9.width:Ae.height/w9.height,w9.scale(Ae),w9.width=Math.min(w9.width,f9),w9.height=Math.min(w9.height,f9));return new _.$x(w9.width,
_.M3(192,w9.height+R01(a$,uR),720))},G8=function(){var Ae=r9(),f9=si(),w9=Ya()&&O();
return new _.$x(Ae.width,Ae.height-R01(f9,w9))},Ny=function(){var Ae=function(f9){f9.target===v.value&&r()&&(h(!1),v.value.removeEventListener("transitionend",Ae))};
JXf()||(v.value.addEventListener("transitionend",Ae),h(!0));b(!O())};
_.o_(function(){var Ae=te(),f9=_.zz(3),w9=_.Xf(3);if(f9&&w9&&Ae){_.Qa(f9,w9,Ae);w9=jA();var a$=Ys(),uR=oC(),T8=n7(),Pi=vc();uR&&T8&&Pi&&(_.gV(f9,Ae,[uR,T8,Pi]),_.nB(f9,[uR,T8]));w9&&a$&&_.gV(f9,Ae,[w9,a$])}},"Snz6Ld");
_.o_(function(){var Ae=SW();if(Ae){var f9=_.zz(0),w9=_.Xf(0);f9&&w9&&(_.Qa(f9,w9,Ae),_.nB(f9,[Ae]))}},"X1FpHd");
Ct={};return _.m("ytd-miniplayer",{el:v,class:_.qe("ytdMiniplayerComponentHost",(Ct.ytdMiniplayerComponentVisible=function(){return T()||K()},Ct.ytdMiniplayerComponentAnimatingSnap=Y,Ct.ytdMiniplayerComponentAnimatingPlaylistExpand=r,Ct.ytdMiniplayerComponentAnimatingFade=K,Ct),function(){if(K()){var Ae=$S();
var f9=T(),w9=J();Ae=f9?Ae==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":w9?Ae==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Ae==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Ae="";return Ae}),
style:_.jM({top:function(){return $S()==="north"?"16px":""},
right:function(){return q7()==="east"?"16px":""},
bottom:function(){return $S()==="south"?"16px":""},
left:function(){return q7()==="west"?"16px":""},
width:function(){return r9().width+"px"},
height:function(){return r9().height+"px"},
transform:function(){var Ae=Q();return Ae?"translate("+Ae.x+"px, "+Ae.y+"px)":""}})},_.m("div",{class:"ytdMiniplayerComponentContent"},_.m(CNS,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Ae){var f9=fxt(q7(),$S(),d(),r9(),Q()),w9=G8();Math.abs(Ae.clientY-(f9.y+w9.height))>15?(U(!0),Ae=_.zz(3),f9=jA(),TM||(TM=!0,Ae&&f9&&_.nB(Ae,[f9])),Ae&&f9&&_.Uz(Ae,f9)):Ae.preventDefault()},
onDrag:function(Ae){v3(Ae)},
onDragEnd:function(){var Ae=MKv(fxt(q7(),$S(),d(),r9(),Q()),d(),r9()),f9=tK_(q7(),$S(),d(),r9()),w9=tK_(Ae.horizontalAlignment,Ae.verticalAlignment,d(),r9());w9=new _.Pn(w9.x-f9.x,w9.y-f9.y);var a$;f9=f9.y+(((a$=Q())==null?void 0:a$.y)||0)+r9().height/2;var uR=function(){q7()===Ae.horizontalAlignment&&$S()===Ae.verticalAlignment||g(!0);m0(Ae.horizontalAlignment);kS(Ae.verticalAlignment);v3(void 0)},T8=function(Pi){Pi.target===v.value&&Y()&&(q(!1),uR(),v.value.removeEventListener("transitionend",T8))};
U(!1);$S()==="south"&&f9>d().height?(uR(),_.dk().resolve(_.P0).close()):(v.value.addEventListener("transitionend",T8),q(!0),v3(w9))}},_.m(_.y,{cond:T,
then:function(){return _.m(_.O0i,{isDisabled:he,playabilityStatus:mg,size:G8})}}),_.m(_.y,{cond:si,
then:function(){return _.m(_.aPi,{isReadyToResume:s6,data:SA,expanded:O,onExpandClick:Ny,playlistData:xI})}}),_.m(_.y,{cond:e,
then:function(){return _.m("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.m(_.y,{cond:function(){return Ya()&&O()||r()},
then:function(){return _.m(_.uS7,{className:"ytdMiniplayerComponentPlaylistPanel",data:xI,hideHeaderText:!0,withinMiniplayer:!0})}}),_.m("div",{class:"ytdMiniplayerComponentToast"},_.m(_.IPs,{toastData:Z}))),_.m(Xts,{onResize:function(Ae){As(_.M3(192,Ae,720))},
onResizeStart:function(){var Ae=_.zz(3),f9=Ys();vO||(vO=!0,Ae&&f9&&_.nB(Ae,[f9]));Ae&&f9&&_.Uz(Ae,f9)},
currentAspectRatio:B,currentMiniplayerSize:N7,horizontalAlignment:q7,verticalAlignment:$S}))},"mi"),"ytd-miniplayer",{});var wa=function(){var v=_.P.apply(this,arguments)||this;v.tabGesturesIsActive=!1;v.deprecateFullerscreenUi=_.N("web_watch_fullerscreen_deprecation_ui");v.hasDelegation=!1;v.darkerDarkTheme=_.N("web_darker_dark_theme");v.isFrostedGlassInitialized=!1;v.frostedGlassExp=_.N("web_frosted_glass");v.mastheadHiddenFocusWithinKillswitch=_.N("web_masthead_hidden_focus_within_killswitch");v.clientOnlyWizTooltipsEnabled=_.N("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");v.scrollAtTop=
!0;v.guideScrollTop=0;v.isTheaterModeSession=_.zr("START_IN_THEATER_MODE");v.iMaxTheaterMode=_.N("web_watch_imax_theater_mode");v.isFullWindowSession=_.zr("START_IN_FULL_WINDOW_MODE");v.hasCreateFamilyDialog=!1;v.mastheadHeight=56;v.networkStatusManager=new _.wt;v.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"};v.dynamicActionMap={"yt-run-attestation-command":function(e){var d=_.xae.instance,E=_.L(e,_.NIB);return E?_.N("use_rta_manager_for_async")&&
i2t()?f7S(d,E,e.clickTrackingParams):tB9(d,E,e.clickTrackingParams):_.f1(Error("oi"))}};
v.isFrostedGlassDisabled=!1;v.isChannelOrPlaylistPage=!1;return v};
_.V(wa,_.P);_.W=wa.prototype;_.W.created=function(){var v=_.dk();_.N("kevlar_clear_duplicate_pref_cookie")&&_.LI(_.RM,function(){var e=_.Kw.get("PREF");e&&!/f\d=/.test(e)&&(e=_.aH("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=e?"PREF=null;domain="+e+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.N("gzip_gel_with_worker")&&_.fos();_.N("jspb_serialize_with_worker")&&RbS();_.N("web_worker_availability_check")&&s79();_.N("nwl_init_killswitch")||toO().then(function(){_.RM.addLowPriorityJob(gvi)});
this.pageManagerAttachedPromise=_.gq();this.ytdAppBehavior.loadDepsPromise=_.$N([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.wB(this.onThrottledScroll,200,this);_.N("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);kzi();WL9=!!_.AE("ytappsettings.initialized");MW=_.AE("ytappsettings.previousValue");WNs=_.AE("ytappsettings.previousSnapshotTime");WL9||(WL9=!0,am9());vJC();e4i();_.xc("DEFERRED_DETACH",
_.N("kevlar_tuner_should_defer_detach"));_.xc("REUSE_COMPONENTS",!0);_.xc("STAMPER_STABLE_LIST",!0);_.xc("SCHEDULED_LAZY_LIST",!0);_.xc("openPopupConfig",f3i);_.xc("useClickHandler",!0);_.N("kevlar_shell_cleanup")&&_.RM.addLowPriorityJob(yUQ.bind(this,_.TO.caches));_.zr("IS_SHELL_LOAD")&&_.BF({shellStartupDurationMs:Math.round((0,_.E$)()-_.tU())});WSC(this.networkStatusManager);_.N("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",pa_(t3C)),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!",
pa_(fsi)),console.log("%cVisit http://go/join-youtube-web to apply today.",pa_(Ryi)));_.ca9(v.resolve(_.Vn),1E3)};
_.W.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var v=Z2i();v&&!_.N("external_fullscreen_killswitch")&&document.addEventListener(v,this.setFullscreen.bind(this));(v=window.matchMedia("(prefers-color-scheme: dark)"))&&v.addEventListener&&v.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.W.attached=function(){var v=this;_.HH().processSignal("ci");_.N("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.tQs?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.W0(_.git(),"SUCCESS");this.updateIconSet();_.aq(this.guideInnerContent,!1);_.oc().initVisibilityObserver();this.guideService.guideElement=this.guide;var e=document.createElement("ytd-miniplayer"),d=_.IB(this.hostElement).querySelector("#content");
_.IB(this.hostElement).insertBefore(e,d);_.HH().processSignal("ma");_.dk().resolve(_.P0).init(e);_.zr("IS_SHELL_LOAD")&&(d=document.createElement("ytd-network-status-banner"),_.IB(this.hostElement).insertBefore(d,e));_.N("kevlar_right_click_on_lockups")&&_.ly._onCaptureClick&&document.addEventListener("contextmenu",_.ly._onCaptureClick.bind(_.ly),!0);var E=function(){var T=_.TX("yt-page-navigation-progress");_.IB(v.hostElement).appendChild(T)};
setTimeout(function(){_.HH().parkOrScheduleJob(E,0,"eocs",16)},0);
_.N("service_worker_push_enabled")&&_.LI(_.RM,AUs);_.Qf(_.FT.getInstance(),this.dynamicActionMap,this.hostElement);_.Iq(this.hostElement,"ytd-app-attached");_.HH().processSignal("aa");Sz_(this.hostElement);_.pw("gapi.load",_.J4H);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.LI(_.RM,
function(){var T=document.createElement("ytd-video-preview");_.IB(_.IB(v.hostElement).querySelector("#video-preview")).appendChild(T)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.LI(_.RM,function(){Ezi();v.registerWithViewTransitionManager()});
if(_.xE()&&this.isAppDarkTheme()!==_.Rb())this.onDarkModeToggledAction();else e=_.Pv()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==e&&(_.N("enable_dark_theme_only_on_shorts")?_.uX(_.N("enable_dark_theme_only_on_shorts_control")?window.location.href:_.gZ(window.location.href,{theme:"dark"})):_.xf(new _.kL("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(Bv9=new xws(this.hostElement)),V3v=new Ln1(this.hostElement),kmv=new Nwv(this.hostElement),e5C=new v8O(this.hostElement)};
_.W.getThemeSettingsToLog=function(){var v=_.Pv()==="USER_INTERFACE_THEME_DARK";v=_.xE()?_.Rb()?"os-dark":"os-light":v?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:v,cookiesEnabled:_.jG()}};
_.W.detached=function(){_.Oz(this.guideInnerContent);_.RM.cancelJob(ow);ow=0;_.RM.cancelJob(GW);GW=0;_.wzH(TVt);TVt.length=0;eas=_.sj0=null;_.oc().dispose();_.N("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.gb(_.FT.getInstance(),Bv9.playlistHandlerActionMap,Bv9.JSC$32010_clientRoot);_.gb(_.FT.getInstance(),V3v.downloadManagerActionMap,V3v.JSC$32302_clientRoot);_.gb(_.FT.getInstance(),kmv.feedbackCollectorActionMap,kmv.JSC$32297_clientRoot);
for(var v=_.a(e5C.eventListeners),e=v.next();!e.done;e=v.next()){var d=_.a(e.value);e=d.next().value;d=d.next().value;d=_.a(d);for(var E=d.next();!E.done;E=d.next()){var T=_.a(E.value);E=T.next().value;T=T.next().value;e.removeEventListener(E,T)}}_.gb(_.FT.getInstance(),e5C.autonavPauseActionMap,e5C.JSC$19952_clientRoot)};
_.W.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.LB().getFlag(186)};
_.W.computeIsInlinePreviewEnabled=function(v,e,d){return!d&&_.lTv({miniplayerIsActive:v,miniplayerPlaybackState:e})};
_.W.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Oo({type:"SET_FROSTED_GLASS_MODE",payload:!_.N("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"}))};
_.W.computeIsFrostedGlassDisabled=function(v,e,d,E){return v||e||d||E&&_.N("web_frosted_glass_disable_watch")};
_.W.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.N("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.W.computeIsHomePage=function(v,e){if(!v||e==null||!e.endpoint)return!1;var d;return((d=_.L(e.endpoint,_.Lo))==null?void 0:d.browseId)==="FEwhat_to_watch"};
_.W.updateIsChannelOrPlaylistPage=function(){if(_.N("web_frosted_glass")){var v,e,d=(e=(v=_.dk().resolve(_.eG(_.v5)))==null?void 0:v.getCurrentPage())==null?void 0:e.pageSubtype;this.isChannelOrPlaylistPage=d?["channel","channels","playlist"].includes(d):!1}};
_.W.scheduleFrostedGlassInitialization=function(){var v=this;_.N("web_frosted_glass")&&_.HH().parkOrScheduleJob(function(){v.isFrostedGlassInitialized=!0},0,_.FN(["eocs",
"cr"]),300)};
_.W.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.$xJ(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Oo({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Oo({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.W.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(D3w(!0))};
_.W.onYtSignalActionRequestPersistentStorage=function(){if(!_.N("request_persistent_storage_killswitch")){var v=_.dk().resolve(_.XOQ);v.cachedPersistStatePromise||(v.cachedPersistStatePromise=bOC())}};
_.W.handleYtChannelCreationFormEndpoints=function(v){v&&this.ytComponentBehavior.resolveCommand(v)};
_.W.handleShowEngagementPanelEndpoint=function(v){v&&this.ytComponentBehavior.resolveCommand(v)};
_.W.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(D3w(!1))};
_.W.initIconDefs=function(v,e){var d=document.createElement("iron-iconset-svg");d.name=v;v=document.createElementNS("http://www.w3.org/2000/svg","svg");d.appendChild(v);v.appendChild(e);document.body.appendChild(d);return d};
_.W.onWindowResized=function(){_.b4(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var v=_.tVu.getInstance();v.documentWidth_=document.body.clientWidth;TpQ(v)};
_.W.onWindowScrolled=function(){var v=_.dk().resolve(_.v5).getCurrentPage();if(v!=null&&v.getScrollTop){var e=this.ytdReduxBehavior,d=e.dispatch;v=v.getScrollTop()<=0;d.call(e,_.Oo({type:"SET_SCROLL_AT_TOP",payload:v}))}};
_.W.guideIsVisibleButNotPersistentSelectorChanged=function(){var v=_.dk().resolve(_.v5).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=v.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"),
v.setScrollTop(this.guideScrollTop));_.YB(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.W.getCurrentPageScrollableElementType=function(){var v=_.dk().resolve(_.v5).getCurrentPage();if(v&&v.getPageScrollingElement())return v.getPageScrollingElement().nodeName};
_.W.observeGuideVisibility=function(){var v=_.tVu.getInstance(),e=this.miniGuideVisible;v.guidePersistentAndVisible_=this.guidePersistentAndVisible;v.miniGuideVisible_=e;TpQ(v)};
_.W.handleEduDismissAction=function(v){v&&v.eduDismissAction&&(_.b4(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.VVJ.getInstance(),_.eN.set(v.eduDismissAction.key+"-dismissed",!0))};
_.W.handleEduImpressionAction=function(v){if(v&&v.eduImpressionAction){var e=_.VVJ.getInstance();v=v.eduImpressionAction.key;e.JSC$12998_eduDisplayedThisLoad_[_.LFi[v].setKey||v]=!0;_.eN.set(v+"-impression",parseInt(_.eN.get(v+"-impression")||0,10)+1)}};
_.W.onYtSignalActionConfirmMentionsEdu=function(){_.b4(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Tf.getInstance();_.E1.set("edu-dismissed",!0)};
_.W.onYtSignalActionRecordMentionsEduImpression=function(){_.Tf.getInstance();var v=_.E1.set,e=parseInt(_.E1.get("edu-impressions"),10);v.call(_.E1,"edu-impressions",(isFinite(e)?e:0)+1)};
_.W.onYtPageManagerAttached=function(v){var e;((e=_.ew(v))==null?void 0:e.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.W.onInvokeInstrumentManagerAction=function(v,e){oz_(e,v)};
_.W.updateIconSet=function(){var v=this.hostElement.querySelector("#masthead");if(v){var e=_.bh(v),d=e.querySelector("g#yt-logo-updated");d&&(v=document.createElementNS("http://www.w3.org/2000/svg","defs"),v.appendChild(d.cloneNode(!0)),(e=e.querySelector("g#yt-logo-red-updated"))&&v.appendChild(e.cloneNode(!0)),this.initIconDefs("yt-logos-ext",v))}};
_.W.updateMastheadData=function(){var v=this,e,d,E,T,S;return _.I(function(O){if(O.nextAddress==1){e=v.data;d=v.hostElement.querySelector("#masthead");if(!d)return O.return();_.Uh(v,function(){d.data=v.topbarData});
if(!v.get("response.topbar",e)||v.get("response.topbar.responseContext.maxAgeSeconds",e)===0)return O.jumpTo(0);if(E=_.dk().resolve(_.Se))return O.yield(E(),6);T=_.dk().resolve(_.yc);return O.yield(T.put("service:topbar:fallback",new _.qp({innertubeResponse:v.get("response.topbar",e)})),0)}return(S=O.yieldResult)?O.yield(S.put("service:topbar:fallback",new _.qp({innertubeResponse:v.get("response.topbar",e)})),0):O.jumpTo(0)})};
_.W.computeTopbarData=function(v){if(!v)return null;var e;return this.isShortsPage&&this.topbarData&&!_.L((e=v.response)==null?void 0:e.topbar,esv)?this.topbarData:v.response&&"topbar"in v.response?_.L(v.response.topbar,esv)||null:null};
_.W.onSetTheaterModeEnabled=function(v,e){this.isTheaterModeSession=e.enabled;this.setTheaterModeStyles(e.enabled)};
_.W.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.W.onDarkModeToggledAction=function(){var v=_.mq(window.location.href);if(!_.Rns(v)){(v=!!_.QU(window.location.href).themeRefresh)&&_.xf(new _.kL("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!v){am9();v={themeRefresh:1};var e=_.dk().resolve(_.v5);if(e.isOnWatch()){var d,E;e=((d=e.getPlayerFromWatch())==null?void 0:(E=d.getPlayer())==null?void 0:E.getCurrentTime())||0;e>=1&&(v.time_continue=Math.floor(e))}_.jG()||_.Pv()!=="USER_INTERFACE_THEME_DARK"||(v.theme="dark");_.uX(_.gZ(window.location.href,
v))}_.N("web_appshell_refresh_trigger")&&_.TO.caches&&this.refreshAppShellResponse();d=_.g3(window.location.href);_.KE(_.dk().resolve(_.$1),_.TE(d,"theme"))}};
_.W.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.W.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.W.onPlayerFullscreen=function(v){_.SX();this.playerFullscreen=v};
_.W.setRestrictedMode=function(v){var e=_.LB();_.Va(0,58,v);e.save();_.dk().resolve(_.Vy).reload()};
_.W.onPageChanged=function(v){v.detail.newPageType==="ytd-watch-flexy"||v.detail.newPageType==="ytd-watch-fixie"||v.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.sk("WEB_PAGE_TYPE_WATCH")):v.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.sk("WEB_PAGE_TYPE_SHORTS")):v.detail.newPageType==="ytd-browse"&&v.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.sk("WEB_PAGE_TYPE_MINI_APP")):_.N("web_frosted_glass")&&v.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.sk("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.sk("WEB_PAGE_TYPE_UNKNOWN"));v.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.W.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.W.onGuideToggleTap=function(){_.Iq(this.hostElement,"yt-guide-toggle")};
_.W.onGuideToggleHover=function(){_.Iq(this.hostElement,"yt-guide-hover")};
_.W.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.W.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.W.setMastheadTheme=function(){var v=_.bh(this.hostElement).querySelector("#masthead");v&&(v.dark=v.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),v.isDarkThemeForced=!1)};
_.W.onRequestPanelModeChange=function(v,e){this.hideHeaderShadow=e.mode!=="seamed"};
_.W.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.W.onDrawerIronSelect=function(v){_.ew(v).id==="guide"&&this.processDrawerIronSelect()};
_.W.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var v="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(v="opened"));_.Iq(this.hostElement,"yt-autonav-pause-guide-"+v)};
_.W.onAddElementToApp=function(v){_.IB(this.hostElement).appendChild(v.detail)};
_.W.onThrottledScroll=function(){var v=_.dk().resolve(_.v5).getCurrentPage();v&&(this.scrollAtTop=v.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.W.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.W.setFullscreen=function(){if(_.N("external_fullscreen")||!this.isWatchPage){var v=_.N("kevlar_fullerscreen_root_only_killswitch")?!!_.SX():!!_.SX()&&_.SX()===document.documentElement;v=(this.isWatchPage||_.N("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(v||this.isFullWindowSession);this.fullscreen!==v&&((this.fullscreen=v)&&_.YB(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.d1().dispatch(_.OGM(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.b4(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.W.setFullscreenLoggingForShorts=function(v){var e,d,E;return _.I(function(T){if(T.nextAddress==1)return T.yield((e=_.dB())==null?void 0:e.getPlayerPromise(),2);d=T.yieldResult;(E=d)==null||E.setAppFullscreen(v);_.s9(T)})};
_.W.updateMastheadCssHeight=function(){var v=this.mastheadHeight;this.fullscreen&&(v=0);_.qr(this.hostElement,{"--ytd-masthead-height":v+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.W.updateNetworkStatusBannerDisplayStatus=function(){var v="unset";this.fullscreen&&(v="none");_.qr(this.hostElement,{"--ytd-network-status-banner-display":v})};
_.W.updateNetworkStatusBannerCssHeight=function(){var v="unset";this.fullscreen&&(v="0px");_.qr(this.hostElement,{"--ytd-network-status-banner-max-height":v})};
_.W.updateScrollAndMasthead=function(v,e,d,E){this.iMaxTheaterMode||(E=!1);var T=_.dk().resolve(_.v5).getCurrentPage();v||e||E?(document.body.classList.add("no-scroll"),T.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.hG(this,this.onScroll)),T.setScrollTop(0),_.qr(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Z$()+"px"})):d?_.Iq(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Iq(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
T.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.hG(this,this.onScroll)));this.mastheadHidden=v||e||d;this.updateMastheadCssHeight();_.N("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.W.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.W.onYtNavigateAction=function(v){v=this.get("navigateAction.endpoint",v);_.Iq(this.hostElement,"yt-navigate",{endpoint:v})};
_.W.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var v=document.createElement("yt-create-family-dialog");_.IB(this.hostElement).appendChild(v);this.hasCreateFamilyDialog=!0}};
_.W.onSetPushNotificationsEnabledCommand=function(v){var e=this,d=_.L(v,vMf);d&&typeof d.enabled==="boolean"&&(Notification.permission!=="granted"?C4i().then(function(){Notification.permission==="granted"?(sqs(!d.enabled).then(LNC),d.successAction&&_.mN(e.hostElement,[d.successAction])):d.failureAction&&_.mN(e.hostElement,[d.failureAction])}):(sqs(!d.enabled).then(LNC),d.successAction&&_.mN(this.hostElement,[d.successAction])))};
_.W.onYtSignalActionEnableChromeNotifications=function(){XF9(!0)};
_.W.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.L(this.topbarData.hotkeyDialog,TDw)}}})};
_.W.onYtSignalActionShowKeyboardShortcutDialog=function(){_.b4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.W.onYtEndpointChangeHandler=function(v,e){var d=_.nr(_.Ls);d.pendingPrefetchJob_&&(e=!(!e||e.autonav!="1"),d.pendingPrefetchJob_.resolve(v&&_.NYS(v)?_.kTO(v,e):""),d.pendingPrefetchJob_=null);_.b4(this.hostElement,"yt-pause-active-page-context");_.b4(this.hostElement,"ytd-log-youthere-nav");_.b4(this.hostElement,"yt-prepare-page-dispose")};
_.W.handleCommandWithCommandHandler=function(v,e){_.hg.instance.resolveCommand(v,{form:{element:e}})};
_.W.onYtTimedCommand=function(v){var e=this;v=_.L(v,Zs9);var d=v.command;d&&_.NP(_.RM,function(){var E=_.L(d,_.wDi);E?(_.hg.instance.resolveCommand(d),e.maybeLogGetAnswerRequestTick(E)):_.ya(e.hostElement,[d],e.hostElement)},v.timeoutMs||0)};
_.W.maybeLogGetAnswerRequestTick=function(v){v&&v.isFirstRequest&&(_.Xq("search_overview_answer"),_.zE("so_rq",void 0,"search_overview_answer"))};
_.W.onYtSignalActionSkipNavigation=function(){var v=_.dk().resolve(_.v5).getCurrentPage();_.nU(v)};
_.W.onYtSignalActionCopyDebugData=function(){DgC()};
_.W.handleEntityUpdateCommand=function(v){_.NE(_.L(v,_.ZC6).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.W.logFlowLoggingEventCommand=function(v){if(v=_.L(v,_.bL0))if(v.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var e=v.flowEventNamespace,d=v.flowEventType,E=v.flowType;E&&e&&d&&_.qCH(_.hk(e,d,v.flowEventMetadata),E)}else{e=_.jU();d=v.flowEventNamespace;E=v.flowEventType;var T=v.flowType;T&&d&&E&&_.$E(e,_.hk(d,E,v.flowEventMetadata),T,v.flowNonce)}};
_.W.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.W.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.W.onTouchStart=function(){var v=_.Jb();_.zz()&&_.ca(v.JSC$13225_screenManager,{visualElement:v.ve})};
_.W.handleSelectLanguageCommand=function(v){if(v=_.L(v,D$9).hl){var e=_.LB();e.set("hl",v);e.save();_.dk().resolve(_.Vy).reload()}};
_.W.handleConfirmDialogEndpoint=function(v){(v=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(v))&&this.ytOpenPopupBehavior.openPopup(v)};
_.W.handleOpenPopupNavigationEndpoints=function(v,e){_.N("web_button_rework")&&(v=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(v))&&this.ytOpenPopupBehavior.openPopup(v,e)};
_.W.handleSaveCommandToSessionStorage=function(v){if(v=_.L(v,_.G5J)){var e=v.key;e&&v.command&&window.sessionStorage.setItem(e,JSON.stringify(v.command))}};
_.W.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(v){v&&v.active&&v.active.postMessage({type:"refresh_shell"})}).catch(function(v){v.name!=="SecurityError"&&_.RI(v)})};
_.W.onDeviceThemeChanged=function(){var v=_.Rb();_.Va(_.LB(),185,v);_.LB().save()};
_.W.handleYtRegisterPromoCommand=function(v){if(_.L(v,pl1)){var e=_.dk().resolve(_.v5).getCurrentPage()||this.hostElement;I39().registerPromoCommand(_.L(v,pl1),e)}};
_.W.onYtNavigateHomeAction=function(){if(!_.N("kevlar_miniplayer_navigate_home_from_app_killswitch")){var v,e,d,E,T=(E=(v=this.topbarData)==null?void 0:(e=v.logo)==null?void 0:(d=e.topbarLogoRenderer)==null?void 0:d.endpoint)!=null?E:_.$_;this.ytComponentBehavior.resolveCommand(T)}};
_.W.onYtLocationCollectionCommand=function(v){e0C(_.L(v,Yei))};
_.W.onYtGetLocationCommand=function(v){S_O(_.L(v,bRi),this)};
_.W.updateRenderGuideFromBinding=function(v){this.renderGuide=v.detail.value};
_.W.updateGuidePersistentAndVisibleFromBinding=function(v){this.guidePersistentAndVisible=v.detail.value};
_.W.updateMiniGuideVisibleFromBinding=function(v){this.miniGuideVisible=v.detail.value};
_.W.onThemeSelected=function(v,e){var d=_.LB(),E=v||e?v:_.Rb(),T=(E&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!E&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Rns(_.mq(window.location.href));_.Va(0,165,v);_.Va(0,174,e);d.save();T&&_.b4(this.hostElement,"yt-dark-mode-toggled-action",[E]);_.b4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.W.getCurrentTheme=function(){return _.xE()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Pv()};
_.W.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.W.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.W.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.W.handleShowConsentPrimitive=function(v){var e=this,d,E;return _.I(function(T){if(T.nextAddress==1){try{d=(E=_.dB())==null?void 0:E.getPlayerPromise()}catch(S){}return T.yield($P9(v,d),2)}_.b4(e.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.s9(T)})};
_.W.handleSelectActiveIdentityEndpointInternal=function(v){_.Qd();v=_.L(v,_.aSu);if(v!=null&&v.supportedTokens){v=_.a(v.supportedTokens);for(var e=v.next();!e.done;e=v.next())e=e.value,e.accountSigninToken&&_.uX(e.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.W.handleUpdatePermissionRoleCommand=function(v){if(v=_.L(v,_.i6J)){var e;this.hasDelegation=!((e=_.L(v.renderer,_.aG0))==null||!e.status)}};
_.W.registerWithViewTransitionManager=function(){var v=_.dk().resolve(_.eG(_.j_));if(v){var e,d=(e=this.guide)==null?void 0:e.querySelector("#scrim"),E;e=(E=this.guide)==null?void 0:E.querySelector("#contentContainer");d&&e&&v.isAnyTransitionEnabled&&(E={},v.viewTransitionCoordinator.registerElement(d,(E.slide="app-drawer-scrim-page-transition",E["lockup-to-watch"]="app-drawer-scrim-page-transition",E["learning-journey"]="app-drawer-scrim-page-transition",E)),d={},v.viewTransitionCoordinator.registerElement(e,
(d.slide="app-drawer-container-page-transition",d["lockup-to-watch"]="app-drawer-container-page-transition",d["learning-journey"]="app-drawer-container-page-transition",d)))}};
_.vP.Object.defineProperties(wa.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.N("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.vP.Object.defineProperties(wa,{template:{configurable:!0,enumerable:!0,get:function(){if(rjv===void 0){var v=document.createElement("template");_.G(v,'\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');
v.content.insertBefore(_.u().content.cloneNode(!0),v.content.firstChild);rjv=v}v=rjv;return v}}});
wa.prototype.onOpenHotkeyDialog=wa.prototype.onOpenHotkeyDialog;wa.prototype.setFullscreen=wa.prototype.setFullscreen;wa.prototype.onAddElementToApp=wa.prototype.onAddElementToApp;wa.prototype.onDrawerIronSelect=wa.prototype.onDrawerIronSelect;wa.prototype.onGuideOpenButtonHover=wa.prototype.onGuideOpenButtonHover;wa.prototype.onRequestPanelModeChange=wa.prototype.onRequestPanelModeChange;wa.prototype.onPageDataUpdated=wa.prototype.onPageDataUpdated;wa.prototype.onPageChanged=wa.prototype.onPageChanged;
wa.prototype.onSetTheaterModeEnabled=wa.prototype.onSetTheaterModeEnabled;wa.prototype.updateMastheadData=wa.prototype.updateMastheadData;wa.prototype.onYtPageManagerAttached=wa.prototype.onYtPageManagerAttached;wa.prototype.observeGuideVisibility=wa.prototype.observeGuideVisibility;wa.prototype.guideIsVisibleButNotPersistentSelectorChanged=wa.prototype.guideIsVisibleButNotPersistentSelectorChanged;wa.prototype.isInlinePreviewEnabledChanged=wa.prototype.isInlinePreviewEnabledChanged;
wa.prototype.isWatchPageChanged=wa.prototype.isWatchPageChanged;wa.prototype.dispatchFrostedGlassMode=wa.prototype.dispatchFrostedGlassMode;_.c([_.M(_.lV),_.w("design:type",Object)],wa.prototype,"ytdReduxBehavior",void 0);_.c([_.M(_.Vo.YtEventForwardingBehavior),_.w("design:type",Object)],wa.prototype,"ytEventForwardingBehavior",void 0);_.c([_.M(_.h5.YtOpenPopupBehavior),_.w("design:type",Object)],wa.prototype,"ytOpenPopupBehavior",void 0);
_.c([_.M(_.$M.YtActionHandlerBehavior),_.w("design:type",Object)],wa.prototype,"ytActionHandlerBehavior",void 0);_.c([_.M({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.FT.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.N("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var v;((v=this.actionRouterNode.hostElement)!=null?v:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var v;((v=this.actionRouterNode.hostElement)!=null?v:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(v){this.actionRouter_.handleAction(v.detail)}}),
_.w("design:type",Object)],wa.prototype,"ytActionRouterBehavior",void 0);_.c([_.M(h1S.YtdAppBehavior),_.w("design:type",Object)],wa.prototype,"ytdAppBehavior",void 0);_.c([_.M(_.KR.YtEndpointBehavior),_.w("design:type",Object)],wa.prototype,"ytEndpointBehavior",void 0);_.c([_.M(sRs.YtEndpointHandlerWithYpcBehavior),_.w("design:type",Object)],wa.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.c([_.M(hyi.YtLogYpcFlowCommandsBehavior),_.w("design:type",Object)],wa.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.c([_.M(_.n.YtRendererBehavior),_.w("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.c([_.M(_.cl.YtComponentBehavior),_.w("design:type",Object)],wa.prototype,"ytComponentBehavior",void 0);_.c([_.f({selector:_.VxQ}),_.w("design:type",Object)],wa.prototype,"tabGesturesIsActive",void 0);_.c([_.f(),_.w("design:type",Boolean)],wa.prototype,"renderGuide",void 0);
_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],wa.prototype,"guidePersistentAndVisible",void 0);_.c([_.f({selector:_.Lst}),_.w("design:type",Boolean)],wa.prototype,"guideIsVisibleButNotPersistent",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],wa.prototype,"standalone",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],wa.prototype,"miniGuideVisible",void 0);
_.c([_.f({selector:_.vKO}),_.w("design:type",Number)],wa.prototype,"miniplayerPlaybackState",void 0);_.c([_.f({selector:_.za,reflectToAttribute:!0}),_.w("design:type",Boolean)],wa.prototype,"miniplayerIsActive",void 0);_.c([_.f({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.w("design:type",Boolean)],wa.prototype,"isInlinePreviewEnabled",void 0);_.c([_.f(),_.w("design:type",Boolean)],wa.prototype,"isInlinePreviewDisabled",void 0);
_.c([_.f({reflectToAttribute:!0,value:function(){return _.zr("START_IN_FULL_WINDOW_MODE")}}),
_.w("design:type",Boolean)],wa.prototype,"mastheadHidden",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],wa.prototype,"playerFullscreen",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wa.prototype,"deprecateFullerscreenUi",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],wa.prototype,"fullscreen",void 0);_.c([_.f({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],wa.prototype,"hideHeaderShadow",void 0);
_.c([_.f({value:{GUIDE_ALT_LABEL:_.sz("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.w("design:type",Object)],wa.prototype,"menuStrings",void 0);_.c([_.f({computed:"computeTopbarData(data)"}),_.w("design:type",Object)],wa.prototype,"topbarData",void 0);_.c([_.f({selector:_.n_j}),_.w("design:type",Boolean)],wa.prototype,"isWatchPage",void 0);_.c([_.f({selector:_.DNt,reflectToAttribute:!0}),_.w("design:type",Boolean)],wa.prototype,"isShortsPage",void 0);_.c([_.f({selector:function(v){return _.lq(v)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.w("design:type",Boolean)],wa.prototype,"isMiniAppPage",void 0);_.c([_.f({selector:function(v){return _.lq(v)==="WEB_PAGE_TYPE_BROWSE"}}),
_.w("design:type",Boolean)],wa.prototype,"isBrowsePage",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Boolean)],wa.prototype,"scrolling",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wa.prototype,"hasDelegation",void 0);_.c([_.f({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],wa.prototype,"guideScrolledByTouch",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wa.prototype,"darkerDarkTheme",void 0);
_.c([_.f(),_.w("design:type",Object)],wa.prototype,"isFrostedGlassInitialized",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wa.prototype,"frostedGlassExp",void 0);_.c([_.f({selector:function(v){return v.ui.chipBarIsSticky}}),
_.w("design:type",Boolean)],wa.prototype,"chipBarIsSticky",void 0);_.c([_.f({computed:"computeIsHomePage(isBrowsePage, data)"}),_.w("design:type",Boolean)],wa.prototype,"isHomePage",void 0);_.c([_.f({reflectToAttribute:!0}),_.w("design:type",Object)],wa.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.c([_.f(),_.w("design:type",Object)],wa.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.c([_.Iw("guide"),_.w("design:type",Object)],wa.prototype,"guide",void 0);
_.c([_.Iw("guide-service"),_.w("design:type",TJQ)],wa.prototype,"guideService",void 0);_.c([_.Iw("guide-inner-content"),_.w("design:type",HTMLDivElement)],wa.prototype,"guideInnerContent",void 0);_.c([_.f({selector:_.ert}),_.w("design:type",String)],wa.prototype,"frostedGlassMode",void 0);
_.c([_.$v("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wa.prototype,"dispatchFrostedGlassMode",null);_.c([_.f({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.w("design:type",Object)],wa.prototype,"isFrostedGlassDisabled",void 0);
_.c([_.$v("isWatchPage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wa.prototype,"isWatchPageChanged",null);_.c([_.t("isHomePage","chipBarIsSticky"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wa.prototype,"applyFrostedGlassToChipBar",null);_.c([_.f(),_.w("design:type",Object)],wa.prototype,"isChannelOrPlaylistPage",void 0);
_.c([_.V1("isInlinePreviewEnabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wa.prototype,"isInlinePreviewEnabledChanged",null);_.c([_.$v("guideIsVisibleButNotPersistent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wa.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.c([_.$v("guidePersistentAndVisible","miniGuideVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wa.prototype,"observeGuideVisibility",null);_.c([_.Kq("attached"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],wa.prototype,"onYtPageManagerAttached",null);_.c([_.$v("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],wa.prototype,"updateMastheadData",null);
_.c([_.Kq("yt-set-theater-mode-enabled"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],wa.prototype,"onSetTheaterModeEnabled",null);_.c([_.Kq("yt-page-type-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],wa.prototype,"onPageChanged",null);_.c([_.Kq("yt-page-data-updated"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wa.prototype,"onPageDataUpdated",null);
_.c([_.Kq("yt-request-panel-mode-change"),_.w("design:type",Function),_.w("design:paramtypes",[Event,Object]),_.w("design:returntype")],wa.prototype,"onRequestPanelModeChange",null);_.c([_.Kq("yt-guide-hover"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wa.prototype,"onGuideOpenButtonHover",null);_.c([_.Kq("app-drawer-transitioned"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],wa.prototype,"onDrawerIronSelect",null);
_.c([_.Kq("yt-add-element-to-app"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],wa.prototype,"onAddElementToApp",null);_.c([_.Kq("yt-set-fullerscreen-styles"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wa.prototype,"setFullscreen",null);_.c([_.Kq("yt-open-hotkey-dialog"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wa.prototype,"onOpenHotkeyDialog",null);
_.c([_.z({is:"ytd-app"})],wa);_.HH().processSignal("eor");
_.fX();
}catch(e){_._DumpException(e)}
try{
_.tz("NSzT5");
var wYO,QOS;_.rE=function(v){var e=document.createElement("link");_.vu(e,v,"stylesheet");document.head.appendChild(e)};
_.h6=function(v,e){var d,E;return _.I(function(T){d=document.createElement("div");d.id=v.id;v.className&&(d.className=v.className);E=v.element;if(!E)throw Error("Wj");if(v.location==="prepend")E.prepend(d);else if(v.location==="appendChild")E.appendChild(d);else if(v.location==="after")E.after(d);else throw Error("Xj");return T.return(_.VU(d,e,"ah"))})};
_.Kx=function(v){var e;return _.I(function(d){(e=document.getElementById(v))&&e.remove();_.s9(d)})};
_.$A=function(v,e){var d=document.querySelector(v);d?e(d):setTimeout(function(){_.$A(v,e)},1E3)};
_.Fh1=function(v,e,d){var E;_.I(function(T){if(T.nextAddress==1)return(E=document.getElementById(v))?T.jumpTo(2):T.yield(wYO(v,e,d),2);if(E=document.getElementById(v))E.style.display="block";_.s9(T)})};
wYO=function(v,e,d){return _.I(function(E){return E.return(new Promise(function(T){_.$A("div #panels",function(S){_.h6({element:S,location:"appendChild",id:v,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+d},e);T()})}))})};
QOS=function(){var v=document.querySelector("ytd-watch-metadata");v&&v.querySelectorAll("yt-button-view-model").forEach(function(e){e.querySelector('button[aria-label="Ask"]')&&e.remove()})};
_.Dyi=function(){_.Kx("creator_chatbots-entry-point");_.Kx("creator_chatbots-panel");_.rE(gk_);_.$A("ytd-watch-metadata #top-level-buttons-computed",function(v){document.getElementById("creator_chatbots-entry-point")||(_.h6({element:v,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.m(ukt,null)}),_.Fh1("creator_chatbots-panel",function(){return _.m(nk9,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"));
QOS()})};_.jg=_.l(function(v){var e=v.text;var d=v.onClick;var E=v.color;var T=v.backgroundColor;var S=v.buttonSize;var O=v.disabled;var b=v.iconName;var Y=v.iconSize;v=v.className;var q=_.rq(function(h){d(h)}),r={};
return _.m("button",{class:_.qe("ytpStandardButtonsHost",(r.ytpStandardButtonsLarge=function(){return(S==null?void 0:S())==="large"},r),v),
"on:click":q,style:_.jM({color:E,"background-color":T}),disabled:O}," ",_.m(_.y,{cond:b,then:function(){return _.m(_.sG,{className:"ytpStandardButtonsIconContainer",icon:b,size:Y})}}),e)},"$g");_.UyQ=_.l(function(v){var e;return _.m("div",{class:_.qe("ytprototypesEngagementPanelComponentHost",v.className),id:v.id},_.m("div",{class:_.qe("ytprototypesEngagementPanelComponentEngagementPanelHeader",v.headerClassName)},_.m("div",null,v.header()),_.m("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.m("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(e=v.HeaderButton)==null?void 0:e.call(v)),_.m(_.jg,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var d=v.id();if(d=document.getElementById(d))d.style.display="none"}}))),_.m("div",{class:_.qe("ytprototypesEngagementPanelComponentEngagementPanelContent",v.contentClassName),
style:function(){var d;return"height: "+(((d=v.height)==null?void 0:d.call(v))||"800px")+";"}},v.content()))},"bh");var pYO=_.Z9(["https://portraits.google.com"]),vq9=_.Z9(["https://portraits.google.com/kimscott_vidcontexttests"]),eb9=_.Z9(["https://labs-characters.teams.x20web.corp.google.com"]),dnf=_.ie(pYO),Eqt=_.ie(vq9),T3t=_.ie(eb9),nk9=_.l(function(){var v=_.N("enable_creator_chatbots_extension_dev_server"),e=document.createElement("iframe"),d=v?T3t:Eqt;_.T5j(e,1,d);e.className="ytprotoCreatorChatbotsAppLabsIframe";e.allow="microphone; clipboard-read; clipboard-write self "+d;var E=function(){var S;return _.I(function(O){if(O.nextAddress==
1)return O.yield(_.dk().resolve(_.a7),2);(S=O.yieldResult)&&S.pauseVideo();_.s9(O)})},T=function(){var S,O,b;
return _.I(function(Y){return Y.nextAddress==1?Y.yield(_.dk().resolve(_.a7),2):(S=Y.yieldResult)?Y.return({video_id:(b=(O=S.getVideoData())==null?void 0:O.video_id)!=null?b:"",timestamp_sec:S.getCurrentTime().toString()}):Y.return({})})};
window.addEventListener("message",function(S){var O,b,Y,q,r,h;return _.I(function(K){if(K.nextAddress==1){O=v?T3t.toString():dnf.toString();if(S.origin!==O)return console.warn("Received message from untrusted origin:",S.origin),K.return();b=S.data;if(typeof b!=="object"||b===null||!b.action)return K.return();if(b.action==="pause")return K.yield(E(),0);if(b.action!=="getYouTubeContext"||!S.source)return K.jumpTo(0);Y=S.source;q=Y.postMessage;r=JSON;h=r.stringify;return K.yield(T(),7)}q.call(Y,h.call(r,
{youTubeContext:K.yieldResult}),{targetOrigin:S.origin});return K.jumpTo(0)})});
_.gN({destination:window,iframe:e,origin:d.toString(),channelName:"xdc1",onMessage:function(S){var O,b;return _.I(function(Y){if(Y.nextAddress==1){if(S.data.action==="pause")return Y.yield(E(),0);if(S.data.action!=="getYouTubeContext")return Y.jumpTo(0);O=S;b=O.reply;return Y.yield(T(),5)}b.call(O,{youTubeContext:Y.yieldResult});return Y.jumpTo(0)})}});
return _.m("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.m(_.UyQ,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.m("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.m("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},
"Talk to the Creator"),_.m(_.H7,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.m(_.jg,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.Fa(window,_.R$(d.toString()),"_blank")}})},
content:function(){return e}}))},"ch");var Swt=_.Z9(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),gk_=_.ie(Swt),ukt=_.l(function(){var v=function(){_.Fh1("creator_chatbots-panel",function(){return _.m(nk9,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.m("div",{class:"ytd-menu-renderer"},_.m(_.mO,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:v}},
icon:function(){return _.m(_.sG,{icon:"SPARK"})}}))},"dh");
_.fX();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
